]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
beadd3e8
SM
12019-08-25 Simon Marchi <simon.marchi@efficios.com>
2
3 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4 represent whether the symbol is static, dynamic, or we don't
5 know.
6
e3ec872f
YS
72019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
8
9 * gdb/rx-tdep.c (rx_register_names): New.
10 (rx_register_name): Delete.
11 (rx_psw_type): Delete.
12 (rx_fpsw_type): Delete.
13 (rx_register_type): Delete.
14 (rx_gdbarch_init): Convert target-descriptions.
15 (_initialize_rx_tdep): Add initialize_tdesc_rx.
16 * gdb/features/Makefile: Add rx.xml.
17 * gdb/features/rx.xml: New.
18 * gdb/features/rx.c: Generated.
19 * gdb/NEWS: Mention target description support.
20
d0509ba4
CB
212019-08-22 Christian Biesinger <cbiesinger@google.com>
22
23 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
24 *slot_ptr.
25
2d41fa11
SDJ
262019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
27
28 * configure.ac: Don't check for 'dlfcn.h' (moved to
29 gdbsupport/common.m4).
30 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
31 'gdbsupport/'.
32 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
33 * compile/compile-c-support.c: Include
34 'gdbsupport/gdb-dlfcn.h'.
35 * gdbsupport/common.m4: Check for 'dlfcn.h'.
36 * gdb-dlfcn.c: Move to...
37 * gdbsupport/gdb-dlfcn.c: ... here.
38 * gdb-dlfcn.h: Move to...
39 * gdbsupport/gdb-dlfcn.h: ... here.
40
de8af808
SL
412019-08-23 Sandra Loosemore <sandra@codesourcery.com>
42
43 * nios2-tdep.c (struct reg_value): Improve comments. Make
44 the offset field signed.
45
27204489
CB
462019-08-22 Christian Biesinger <cbiesinger@google.com>
47
48 * python/lib/gdb/__init__.py (_execute_file): New function.
49 * python/python.c (python_run_simple_file): Call gdb._execute_file
50 on Windows.
51
43771869
AB
522019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
53
54 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
55 all uses as this was never set to anything but a zero value.
56
26c957f1
PA
572019-08-21 Bogdan Harjoc <harjoc@gmail.com>
58
59 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
60
c07aae6e
CB
612019-08-21 Christian Biesinger <cbiesinger@google.com>
62
63 * tui/tui-data.h (tui_gen_win_info): Add an =default
64 move constructor, required by some GCC versions.
65
3960cb7a
JF
662019-08-21 Jinke Fan <fanjinke51@yeah.net>
67
68 * go32-nat.c (go32_sysinfo): Add hygon_p.
69
04c72a68
TT
702019-08-20 Tom Tromey <tom@tromey.com>
71
72 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
73 line_from_reg_element_no, first_reg_element_no_inline,
74 display_all_data, delete_data_content_windows,
75 erase_data_content>: Now private.
76
072272ce
TT
772019-08-20 Tom Tromey <tom@tromey.com>
78
79 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
80 (tui_unhighlight_win, tui_highlight_win)
81 (tui_win_info::make_window): Update.
82 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
83
973961bd
TT
842019-08-20 Tom Tromey <tom@tromey.com>
85
86 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
87 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
88 (MAX_PID_WIDTH): Move to tui-stack.c.
89 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
90 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
91 (MAX_PID_WIDTH): Move from tui-data.h.
92
ab0e1f1a
TT
932019-08-20 Tom Tromey <tom@tromey.com>
94
95 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
96 * tui/tui-wingeneral.c (box_win): Change type of win_info.
97 (box_win): Update.
98 (tui_gen_win_info::make_window): Rename from tui_make_window.
99 (tui_win_info::make_window): New method.
100 (tui_gen_win_info::make_visible): Update.
101 * tui/tui-source.c (tui_source_window::set_contents): Update.
102 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
103 (tui_data_window::display_registers_from): Update.
104 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
105 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
106 Declare.
107 <can_box>: Remove.
108 <title>: Remove.
109 (struct tui_win_info) <make_window>: Declare.
110 <can_box>: Now virtual.
111 <title>: New member.
112 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
113 * tui/tui-command.c (tui_cmd_window::resize): Update.
114
100c2bf3
TT
1152019-08-20 Tom Tromey <tom@tromey.com>
116
117 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
118 * tui/tui-regs.c (tui_data_window::show_registers): Update.
119 (tui_data_window::check_register_values): Update.
120
fa4dc567
TT
1212019-08-20 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-regs.h (struct tui_data_window): Use
124 DISABLE_COPY_AND_ASSIGN.
125 <regs_content>: Change type, removing unique_ptr.
126 <tui_data_window>: Add move constructor.
127 * tui/tui-regs.c (tui_data_window::show_registers)
128 (tui_data_window::show_register_group)
129 (tui_data_window::display_registers_from)
130 (tui_data_window::display_registers_from)
131 (tui_data_window::first_data_item_displayed)
132 (tui_data_window::delete_data_content_windows)
133 (tui_data_window::rerender, tui_data_window::refresh_window)
134 (tui_data_window::check_register_values): Update.
135
ca02d7c8
TT
1362019-08-20 Tom Tromey <tom@tromey.com>
137
138 * tui/tui-regs.h (struct tui_data_window) <show_registers,
139 show_register_group>: Declare.
140 (tui_show_register_group): Don't declare.
141 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
142 tui_show_registers.
143 (tui_data_window::show_register_group): Rename from
144 tui_show_register_group.
145 (tui_data_window::check_register_values, tui_reg_command):
146 Update.
147 * tui/tui-layout.c (tui_set_layout): Update.
148
63356bfd
TT
1492019-08-20 Tom Tromey <tom@tromey.com>
150
151 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
152 Declare.
153 (tui_check_register_values): Don't declare.
154 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
155 from tui_check_register_values.
156 * tui/tui-hooks.c (tui_register_changed): Update.
157
42cc14a7
TT
1582019-08-20 Tom Tromey <tom@tromey.com>
159
160 * tui/tui-regs.c (tui_reg_layout): Move later.
161 (tui_show_registers): Don't enable TUI mode or change layout.
162
b9ad3686
TT
1632019-08-20 Tom Tromey <tom@tromey.com>
164
165 * tui/tui-regs.h (struct tui_data_item_window)
166 <~tui_data_item_window>: Remove.
167 <content>: Now a unique_xmalloc_ptr.
168 * tui/tui-regs.c (tui_register_format): Return a
169 unique_xmalloc_ptr.
170 (tui_get_register): Update.
171 (~tui_data_item_window): Remove.
172 (tui_data_window::display_registers_from, tui_display_register):
173 Update.
174 * tui/tui-io.h (tui_expand_tabs): Update.
175 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
176 Remove "col" parameter.
177
8e114aab
TT
1782019-08-20 Tom Tromey <tom@tromey.com>
179
180 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
181 field.
182 * tui/tui-regs.c (~tui_data_item_window): Update.
183
1a4f81dd
TT
1842019-08-20 Tom Tromey <tom@tromey.com>
185
186 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
187 earlier.
188
0f8d8876
TT
1892019-08-20 Tom Tromey <tom@tromey.com>
190
191 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
192
605dc2c2
TT
1932019-08-20 Tom Tromey <tom@tromey.com>
194
195 * tui/tui-source.h (struct tui_source_window): Update.
196 * tui/tui-regs.c (tui_show_registers): Update.
197 * tui/tui-disasm.h (struct tui_disasm_window): Update.
198 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
199 (NO_REGS_STRING): Remove defines.
200
aedbe3bb
CM
2012019-08-20 Conrad Meyer <cem@FreeBSD.org>
202
203 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
204 unnecessary thread walk if remote doesn't support the packet.
205
7ce8f214
TT
2062019-08-19 Tom Tromey <tromey@adacore.com>
207
208 * python/py-value.c (value_has_field): Fix indentation.
209
f21c2bd7
TT
2102019-08-19 Tom Tromey <tromey@adacore.com>
211
212 * printcmd.c (do_one_display, info_display_command): Update.
213 * block.h (contained_in): Return bool. Add allow_nested
214 parameter.
215 * block.c (contained_in): Return bool. Add allow_nested
216 parameter.
217
d806ea2d
TT
2182019-08-19 Tom Tromey <tom@tromey.com>
219
220 * configure: Rebuild.
221 * configure.ac: Disallow the combination of -static-libstdc++ and
222 source highlight.
223 * source-cache.c (get_language_name): Handle rust.
224 (source_cache::get_source_lines): Ignore highlighting exceptions.
225
398fdd60
TT
2262019-08-16 Tom Tromey <tom@tromey.com>
227
228 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
229 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
230 (struct tui_source_window_base) <make_visible, refresh_window,
231 resize>: Remove methods.
232 <execution_info>: Remove field.
233 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
234 (tui_show_source_line, tui_source_window_base)
235 (~tui_source_window_base): Update.
236 (tui_source_window_base::resize)
237 (tui_source_window_base::make_visible)
238 (tui_source_window_base::refresh_window): Remove.
239 (tui_source_window_base::update_exec_info): Update.
240 * tui/tui-source.c (tui_source_window::set_contents): Update.
241 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
242
e699d331
TT
2432019-08-16 Tom Tromey <tom@tromey.com>
244
245 * tui/tui-hooks.c (tui_remove_hooks): Don't set
246 deprecated_query_hook.
247
bb01dbfc
TT
2482019-08-16 Tom Tromey <tom@tromey.com>
249
250 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
251 (tui_update_source_windows_with_line): Update.
252 * tui/tui-source.h (struct tui_source_window)
253 <show_symtab_source>: Declare.
254 (tui_show_symtab_source): Don't declare.
255 * tui/tui-source.c (tui_show_symtab_source): Rename from
256 tui_show_symtab_source.
257
81c82c4b
TT
2582019-08-16 Tom Tromey <tom@tromey.com>
259
260 * tui/tui-winsource.h (struct tui_source_window_base)
261 <set_contents>: Declare.
262 * tui/tui-winsource.c
263 (tui_source_window_base::update_source_window_as_is): Update.
264 * tui/tui-source.h (struct tui_source_window) <set_contents>:
265 Declare.
266 (tui_set_source_content): Don't declare.
267 * tui/tui-source.c (tui_source_window::set_contents): Rename from
268 tui_set_source_content.
269 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
270 Declare.
271 (tui_set_disassem_content): Don't declare.
272 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
273 tui_set_disassem_content.
274
2ddaf614
TT
2752019-08-16 Tom Tromey <tom@tromey.com>
276
277 * tui/tui-winsource.h (struct tui_source_window_base)
278 <update_breakpoint_info>: Declare.
279 (tui_update_breakpoint_info): Don't declare.
280 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
281 (tui_update_all_breakpoint_info): Update.
282 (tui_source_window_base::update_breakpoint_info): Rename from
283 tui_update_breakpoint_info.
284 (tui_source_window_base::update_exec_info): Update.
285
017f9828
TT
2862019-08-16 Tom Tromey <tom@tromey.com>
287
288 * tui/tui-winsource.h (struct tui_source_window_base)
289 <update_source_window>: Declare.
290 (tui_update_source_window): Don't declare.
291 * tui/tui-winsource.c
292 (tui_source_window_base::update_source_window): Rename from
293 tui_update_source_window.
294 (tui_source_window_base::rerender): Update.
295 * tui/tui-source.c (tui_source_window::maybe_update): Update.
296 * tui/tui-disasm.c (tui_show_disassem)
297 (tui_show_disassem_and_update_source)
298 (tui_disasm_window::maybe_update): Update.
299
ed8358e9
TT
3002019-08-16 Tom Tromey <tom@tromey.com>
301
302 * tui/tui-winsource.h (struct tui_source_window_base)
303 <update_source_window_as_is>: Declare.
304 (tui_update_source_window_as_is): Don't declare.
305 * tui/tui-winsource.c (tui_update_source_window): Update
306 (tui_source_window_base::update_source_window_as_is): Rename from
307 tui_update_source_window_as_is.
308 (tui_source_window_base::refill): Update.
309 * tui/tui-source.c (tui_show_symtab_source): Update.
310 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
311 Update.
312
20149b6b
TT
3132019-08-16 Tom Tromey <tom@tromey.com>
314
315 * tui/tui-winsource.h (tui_update_source_window)
316 (tui_update_source_window_as_is): Remove "noerror" parameter.
317 * tui/tui-winsource.c (tui_update_source_window)
318 (tui_update_source_window_as_is): Remove "noerror" parameter.
319 (tui_update_source_windows_with_addr)
320 (tui_update_source_windows_with_line)
321 (tui_source_window_base::rerender)
322 (tui_source_window_base::refill): Update.
323 * tui/tui-source.h (tui_set_source_content)
324 (tui_show_symtab_source): Remove "noerror" parameter.
325 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
326 parameter.
327 (tui_show_symtab_source): Likewise.
328 (tui_source_window::maybe_update): Update.
329 * tui/tui-disasm.c (tui_show_disassem)
330 (tui_show_disassem_and_update_source)
331 (tui_disasm_window::do_scroll_vertical)
332 (tui_disasm_window::maybe_update): Update.
333
2d83e710
TT
3342019-08-16 Tom Tromey <tom@tromey.com>
335
336 * tui/tui.c (tui_is_window_visible): Update.
337 * tui/tui-wingeneral.c (tui_make_window)
338 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
339 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
340 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
341 (tui_set_win_height_command, parse_scrolling_args): Update.
342 * tui/tui-source.c (tui_source_window::style_changed): Update.
343 * tui/tui-regs.c (tui_show_registers)
344 (tui_data_window::first_data_item_displayed)
345 (tui_data_window::delete_data_content_windows)
346 (tui_check_register_values, tui_reg_command): Update.
347 * tui/tui-disasm.c (tui_show_disassem): Update.
348 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
349 method.
350 <is_visible>: Remove field.
351 * tui/tui-data.c (tui_next_win, tui_prev_win)
352 (tui_delete_invisible_windows): Update.
353
d4ab829a
TT
3542019-08-16 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-winsource.h (struct tui_source_window_base)
357 <m_has_locator>: Remove.
358 * tui/tui-layout.c (show_source_disasm_command, show_data)
359 (show_source_or_disasm_and_command): Update.
360
aa7ca1bb
AH
3612019-08-16 Alan Hayward <alan.hayward@arm.com>
362
363 * NEWS (Other MI changes): New subsection.
364 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
365 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
366 * arch-utils.c (default_get_pc_address_flags): New function.
367 * arch-utils.h (default_get_pc_address_flags): New declaration.
368 * gdbarch.sh: Add get_pc_address_flags.
369 * gdbarch.c: Regenerate.
370 * gdbarch.h: Likewise.
371 * stack.c (print_pc): New function.
372 (print_frame_info) (print_frame): Call print_pc.
373
6eac171f
TV
3742019-08-16 Tom de Vries <tdevries@suse.de>
375
376 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
377 print_objfile_section_info.
378
3df505f6
TT
3792019-08-15 Tom Tromey <tom@tromey.com>
380
381 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
382 calling update_cmdwin_start_line.
383 * tui/tui-winsource.h (struct tui_source_window_base)
384 <do_make_visible_with_new_height, set_new_height>: Don't declare.
385 <rerender>: Declare.
386 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
387 Call rerender.
388 (tui_source_window_base::set_new_height): Remove.
389 (tui_source_window_base::rerender): Rename from
390 do_make_visible_with_new_height.
391 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
392 resize method.
393 (tui_win_info::make_invisible_and_set_new_height)
394 (tui_win_info::make_visible_with_new_height): Remove.
395 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
396 Declare.
397 * tui/tui-stack.c (tui_locator_window::rerender): New method.
398 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
399 do_make_visible_with_new_height>: Don't declare.
400 <rerender>: Declare.
401 * tui/tui-regs.c (tui_data_window::rerender): Rename from
402 set_new_height.
403 (tui_data_window::do_make_visible_with_new_height): Remove.
404 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
405 call tui_show_locator_content.
406 (tui_gen_win_info::resize): Call rerender.
407 (show_source_or_disasm_and_command): Don't call
408 tui_show_locator_content.
409 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
410 method.
411 (struct tui_win_info) <rerender>: Declare.
412 <set_new_height, make_invisible_and_set_new_height,
413 make_visible_with_new_height>: Don't declare.
414 * tui/tui-data.c (tui_win_list::rerender): New method.
415 * tui/tui-command.h (struct tui_cmd_window)
416 <do_make_visible_with_new_height>: Don't declare.
417 * tui/tui-command.c
418 (tui_cmd_window::do_make_visible_with_new_height): Remove.
419
272560b5
TT
4202019-08-15 Tom Tromey <tromey@adacore.com>
421
422 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
423 * ada-lang.c (ada_enum_name): Likewise.
424
08235187
CB
4252019-08-15 Christian Biesinger <cbiesinger@google.com>
426
427 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
428 leading underscore.
429 (GdbOutputErrorFile): Likewise.
430 (global scope): Adjust constructor calls to GdbOutput{,Error}File
431 accordingly.
432 (execute_unwinders): Rename to have a leading underscore.
433 (auto_load_packages): Likewise.
434 (global scope): Adjust call to auto_load_packages accordingly.
435 (GdbSetPythonDirectory): Likewise.
436 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
437 instead of execute_unwinders.
438
db502012
TT
4392019-08-15 Tom Tromey <tom@tromey.com>
440
441 * tui/tui-layout.c (show_layout, show_source_disasm_command)
442 (show_data): Don't change window visibility.
443 (tui_gen_win_info::resize): Remove special case for command
444 window. Use wresize, when available.
445 (show_source_or_disasm_and_command): Don't change window
446 visibility.
447 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
448 <make_visible>: New method.
449 * tui/tui-command.c (tui_cmd_window::resize): New method.
450
3891b65e
TT
4512019-08-15 Tom Tromey <tom@tromey.com>
452
453 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
454 (struct tui_source_windows): New.
455 * tui/tui-winsource.c (tui_display_main): Update.
456 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
457 (new_height_ok, parse_scrolling_args): Update.
458 * tui/tui-layout.c (show_layout, show_data): Update.
459 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
460 (tui_add_to_source_windows): Don't declare.
461 * tui/tui-data.c (source_windows, tui_source_windows)
462 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
463
ee556432
TT
4642019-08-15 Tom Tromey <tom@tromey.com>
465
466 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
467 Rename from reset.
468 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
469 * tui/tui-layout.c (show_source_disasm_command, show_data):
470 Update.
471 (tui_gen_win_info::resize): Rename.
472 (show_source_or_disasm_and_command): Update.
473 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
474 reset.
475
46f438e3
TT
4762019-08-15 Tom Tromey <tom@tromey.com>
477
478 * tui/tui-stack.c (tui_initialize_static_data): Remove.
479 * tui/tui-interp.c (tui_interp::init): Don't call
480 tui_initialize_static_data.
481 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
482
f4ce562c
TT
4832019-08-15 Tom Tromey <tom@tromey.com>
484
485 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
486 examine tui_win_list.
487
c398c3d0
TT
4882019-08-15 Tom Tromey <tom@tromey.com>
489
490 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
491 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
492 tui_clear_source_content.
493 (tui_clear_source_content): Remove.
494 (tui_source_window_base::do_erase_source_content): Hoist call to
495 content.clear().
496 * tui/tui-stack.c (tui_show_frame_info): Don't call
497 tui_clear_source_content.
498
e25d2004
TT
4992019-08-15 Tom Tromey <tom@tromey.com>
500
501 * tui/tui-winsource.h (struct tui_source_window_base)
502 <do_erase_source_content>: New method.
503 <erase_source_content>: New method.
504 (tui_erase_source_content): Don't declare.
505 * tui/tui-winsource.c (tui_clear_source_content): Update.
506 (tui_source_window_base::do_erase_source_content): Rename from
507 tui_erase_source_content.
508 (tui_source_window_base::show_source_content): Update.
509 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
510 * tui/tui-source.h (struct tui_source_window)
511 <erase_source_content>: New method.
512 * tui/tui-disasm.h (struct tui_disasm_window)
513 <erase_source_content>: New method.
514
002f15c2
TT
5152019-08-15 Tom Tromey <tom@tromey.com>
516
517 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
518 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
519 constructor.
520 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
521 * tui/tui-source.c (tui_set_source_content): Update.
522 * tui/tui-disasm.c (tui_set_disassem_content): Update.
523
c9033fe8
TT
5242019-08-15 Tom Tromey <tom@tromey.com>
525
526 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
527 * tui/tui-winsource.c (tui_line_is_displayed): Move to
528 tui-source.c.
529 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
530 Declare.
531 * tui/tui-source.c (tui_source_window::line_is_displayed): New
532 method.
533 (tui_source_window::maybe_update): Update.
534
088f37dd
TT
5352019-08-15 Tom Tromey <tom@tromey.com>
536
537 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
538 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
539 tui-disasm.c.
540 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
541 Declare.
542 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
543 method.
544 (tui_disasm_window::maybe_update): Update.
545
a54700c6
TT
5462019-08-15 Tom Tromey <tom@tromey.com>
547
548 * tui/tui-winsource.h (struct tui_source_window_base)
549 <maybe_update>: Declare.
550 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
551 method.
552 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
553 Declare.
554 * tui/tui-source.c (tui_source_window::maybe_update): New method.
555 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
556 Declare.
557 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
558
e2a678a5
TT
5592019-08-15 Tom Tromey <tom@tromey.com>
560
561 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
562
f2dda477
TT
5632019-08-15 Tom Tromey <tom@tromey.com>
564
565 * tui/tui-wingeneral.c: Include tui-stack.h.
566 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
567 (struct tui_locator_window): Move from tui-data.h.
568 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
569 (tui_initialize_static_data): Move from tui-data.c.
570 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
571 (struct tui_locator_window): Move to tui-stack.c.
572 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
573 (tui_initialize_static_data): Move to tui-stack.c.
574
ed4a1084
TT
5752019-08-15 Tom Tromey <tom@tromey.com>
576
577 * tui/tui-layout.c (show_source_disasm_command)
578 (show_source_or_disasm_and_command): Use make_visible method, not
579 tui_make_window.
580 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
581 Remove.
582
65962b20
TT
5832019-08-15 Tom Tromey <tom@tromey.com>
584
585 * tui/tui-wingeneral.h (tui_make_window): Update.
586 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
587 parameter.
588 (tui_gen_win_info::make_visible): Update.
589 * tui/tui-regs.c (tui_data_window::display_registers_from):
590 Update.
591 * tui/tui-layout.c (show_source_disasm_command)
592 (show_source_or_disasm_and_command): Update.
593 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
594 (enum tui_box): Remove.
595 (struct tui_win_info) <can_box>: New method.
596 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
597 method.
598
2208ee91
TV
5992019-08-15 Tom de Vries <tdevries@suse.de>
600
601 * linux-nat-trad.c: Include gdbarch.h.
602
75faf5c4
AH
6032019-08-14 Alan Hayward <alan.hayward@arm.com>
604
605 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
606 register sizes.
607
b1c896b3
TT
6082019-08-14 Tom Tromey <tromey@adacore.com>
609
610 * darwin-nat.c: Include gdbarch.h.
611 * darwin-nat-info.c: Include gdbarch.h.
612
6405cd73
TT
6132019-08-13 Tom Tromey <tom@tromey.com>
614
615 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
616 Remove.
617 * tui/tui-data.c (tui_initialize_static_data): Update.
618
5216580d
TT
6192019-08-13 Tom Tromey <tom@tromey.com>
620
621 * tui/tui-winsource.h (struct tui_exec_info_window)
622 <~tui_exec_info_window, maybe_allocate_content, get_content,
623 m_content>: Remove.
624 (struct tui_source_window_base) <set_exec_info_content,
625 show_exec_info_content>: Don't declare.
626 * tui/tui-winsource.c
627 (tui_exec_info_window::maybe_allocate_content): Remove.
628 (tui_source_window_base::update_exec_info): Rename from
629 set_exec_info_content.
630 (tui_source_window_base::show_exec_info_content)
631 (tui_source_window_base::update_exec_info): Remove.
632
93858ad3
TT
6332019-08-13 Tom Tromey <tom@tromey.com>
634
635 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
636 declare.
637 * tui/tui-winsource.c (tui_update_source_window_as_is)
638 (tui_update_source_windows_with_addr, tui_erase_source_content):
639 Update.
640 (tui_clear_exec_info_content): Remove.
641
e321e7ce
TT
6422019-08-13 Tom Tromey <tom@tromey.com>
643
644 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
645 declare.
646 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
647 call tui_erase_exec_info_content.
648 (tui_clear_exec_info_content): Rename from
649 tui_erase_exec_info_content.
650 (tui_clear_exec_info_content): Delete.
651
8270ac62
TT
6522019-08-13 Tom Tromey <tom@tromey.com>
653
654 * tui/tui-winsource.h (struct tui_source_window_base)
655 <show_exec_info_content>: Declare.
656 (tui_show_exec_info_content): Don't declare.
657 * tui/tui-winsource.c
658 (tui_source_window_base::show_exec_info_content): Rename from
659 tui_show_exec_info_content.
660 (tui_source_window_base::update_exec_info): Update.
661
7b56485d
TT
6622019-08-13 Tom Tromey <tom@tromey.com>
663
664 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
665 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
666 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
667 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
668 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
669 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
670 ... here.
671
7ba913dc
TT
6722019-08-13 Tom Tromey <tom@tromey.com>
673
674 * tui/tui-winsource.h (struct tui_source_window_base)
675 <update_exec_info>: Declare.
676 (tui_update_exec_info): Don't declare.
677 * tui/tui-winsource.c (tui_update_source_window_as_is)
678 (tui_source_window_base::refresh_all)
679 (tui_update_all_breakpoint_info): Update.
680 (tui_source_window_base::update_exec_info): Rename from
681 tui_update_exec_info.
682 * tui/tui-stack.c (tui_show_frame_info): Update.
683
37a4a131
TT
6842019-08-13 Tom Tromey <tom@tromey.com>
685
686 * tui/tui-winsource.h (struct tui_source_window_base)
687 <set_exec_info_content>: Declare.
688 (tui_set_exec_info_content): Don't declare.
689 * tui/tui-winsource.c
690 (tui_source_window_base::set_exec_info_content): Rename from
691 tui_set_exec_info_content.
692 (tui_update_exec_info): Update.
693
0bd27e07
TT
6942019-08-13 Tom Tromey <tom@tromey.com>
695
696 * tui/tui-winsource.h (struct tui_source_window_base)
697 <show_source_content>: Declare.
698 (tui_show_source_content): Don't declare.
699 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
700 (tui_source_window_base::show_source_content): Rename from
701 tui_show_source_content.
702 (tui_source_window_base::refresh_all): Update.
703 * tui/tui-layout.c (show_source_disasm_command)
704 (show_source_or_disasm_and_command): Update.
705
b4ef5aeb
TT
7062019-08-13 Tom Tromey <tom@tromey.com>
707
708 * tui/tui-winsource.c (tui_erase_source_content)
709 (tui_show_source_content, tui_source_window_base::refresh_all):
710 Update.
711 * tui/tui-wingeneral.h
712 (tui_check_and_display_highlight_if_needed): Don't declare.
713 * tui/tui-wingeneral.c
714 (tui_win_info::check_and_display_highlight_if_needed): Rename from
715 check_and_display_highlight_if_needed.
716 * tui/tui-win.c (tui_rehighlight_all)
717 (tui_win_info::make_visible_with_new_height): Update.
718 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
719 (tui_data_window::erase_data_content)
720 (tui_data_window::display_all_data): Update.
721 * tui/tui-data.h (struct tui_win_info)
722 <check_and_display_highlight_if_needed>: Declare.
723
fede5273
TT
7242019-08-13 Tom Tromey <tom@tromey.com>
725
726 * tui/tui-win.c (tui_resize_all): Call
727 tui_delete_invisible_windows.
728 * tui/tui-layout.c (show_layout): Call
729 tui_delete_invisible_windows.
730 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
731 * tui/tui-data.c (tui_delete_invisible_windows): New function.
732
22c3f490
TT
7332019-08-13 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
736 tui_add_win_to_layout.
737
16cb7910
TT
7382019-08-13 Tom Tromey <tom@tromey.com>
739
740 * tui/tui-layout.h (tui_default_win_height): Don't declare.
741 * tui/tui-layout.c (tui_default_win_height): Now static.
742
cc0c3ffb
TT
7432019-08-13 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-layout.c (show_layout): Unify all layout cases into a
746 single switch.
747 (show_source_disasm_command, show_source_or_disasm_and_command):
748 Don't check current layout.
749
3f3ffe54
TT
7502019-08-13 Tom Tromey <tom@tromey.com>
751
752 * tui/tui-wingeneral.c (make_all_visible): Remove.
753 (tui_make_all_invisible): Simplify.
754 * tui/tui-layout.c (tui_make_all_invisible): Move from
755 tui-wingeneral.c; simplify.
756 (show_layout): Hoist call to tui_make_all_invisible.
757 (show_data): Don't call tui_make_all_invisible.
758
69258091
TT
7592019-08-13 Tom Tromey <tom@tromey.com>
760
761 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
762 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
763
62cf57fe
TT
7642019-08-13 Tom Tromey <tom@tromey.com>
765
766 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
767 tui-data.c.
768 (show_source_disasm_command, show_data)
769 (show_source_or_disasm_and_command): Don't use
770 tui_set_current_layout_to.
771 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
772 * tui/tui-data.c (current_layout, tui_current_layout): Move to
773 tui-layout.c.
774 (tui_set_current_layout_to): Remove.
775
2afade5d
TT
7762019-08-13 Tom Tromey <tom@tromey.com>
777
778 * tui/tui-layout.c (tui_set_layout): Update.
779 * tui/tui-data.h (struct tui_layout_def): Remove.
780 (tui_layout_def): Don't declare.
781 * tui/tui-data.c (layout_def): Remove.
782 (tui_layout_def): Remove.
783
a3504e96
TT
7842019-08-13 Tom Tromey <tom@tromey.com>
785
786 * tui/tui-winsource.h (struct tui_source_window_base)
787 <clear_detail>: No longer "override".
788 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
789 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
790 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
791 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
792 Remove.
793 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
794
29c92911
TT
7952019-08-13 Tom Tromey <tromey@adacore.com>
796
797 * tracepoint.c: Don't include readline.h or history.h.
798
86c6b807
TT
7992019-08-12 Tom Tromey <tom@tromey.com>
800
801 * configure: Rebuild.
802 * configure.ac: Check for readline 7.
803 * NEWS: Mention readline 7 requirement.
804 * README: Update.
805
5db2718c
TT
8062019-08-12 Tom Tromey <tom@tromey.com>
807
808 * mingw-hdep.c (gdb_select): Remove readline hack.
809
dac36daf
PFC
8102019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
811
812 * blockframe.c (find_pc_partial_function): Set *block to nullptr
813 when the function fails.
814
1022c627
AA
8152019-08-09 Andreas Arnez <arnez@linux.ibm.com>
816
817 * s390-tdep.c (s390_type_align): New function.
818 (s390_gdbarch_init): Set it as type_align gdbarch method.
819
eba4caf2
TV
8202019-08-09 Tom de Vries <tdevries@suse.de>
821
822 PR gdb/24591
823 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
824 pc_low with relocation offset.
825
123cd851
TT
8262019-08-07 Tom Tromey <tromey@adacore.com>
827
828 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
829 (print_frame_args): Update.
830 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
831 Update.
832 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
833 * frame.h (struct frame_arg): Add initializers.
834 <error>: Now a unique_xmalloc_ptr.
835
3d31bc39
AH
8362019-08-07 Alan Hayward <alan.hayward@arm.com>
837
838 * NEWS: Expand the Pointer Authentication entry.
839 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
840 (aarch64_frame_unmask_lr): ... to this.
841 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
842 Call aarch64_frame_unmask_lr.
843 * frame.c (struct frame_info): Add "masked" variable.
844 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
845 (fprint_frame): Check for masked pc.
846 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
847 declarations.
848 * python/py-framefilter.c (py_print_frame): Check for masked pc.
849 * stack.c (print_frame): Check for masked pc.
850
0cf9feb9
TT
8512019-08-06 Tom Tromey <tom@tromey.com>
852
853 * stabsread.c (patch_block_stabs, read_one_struct_field)
854 (read_enum_type): Use obstack_strndup.
855 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
856 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
857 * dwarf2read.c (guess_full_die_structure_name)
858 (anonymous_struct_prefix): Use obstack_strndup.
859 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
860 * c-exp.y (yylex): Use obstack_strndup.
861 * ada-exp.y (write_object_renaming, write_ambiguous_var)
862 (write_var_or_type): Use obstack_strndup.
863
efba19b0
TT
8642019-08-06 Tom Tromey <tom@tromey.com>
865
866 * symfile.c (reread_symbols): Use obstack_strdup.
867 * stabsread.c (read_type): Use obstack_strdup.
868 * gdb_obstack.h (obstack_strdup): New overload.
869 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
870 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
871 (dwarf2_canonicalize_name): Use obstack_strdup.
872 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
873 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
874 Use obstack_strdup.
875
f25102f7
TT
8762019-08-06 Tom Tromey <tom@tromey.com>
877
878 * gdb_obstack.h (obstack_strdup): Define.
879 * gdb_obstack.c (obstack_strdup): Don't define.
880
021887d8
TT
8812019-08-06 Tom Tromey <tom@tromey.com>
882
883 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
884 obstack_strdup.
885 * typeprint.c (typedef_hash_table::find_global_typedef): Use
886 obstack_strdup.
887 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
888 * stabsread.c (common_block_start): Use obstack_strdup.
889 * objfiles.c (set_objfile_main_name, objfile): Use
890 obstack_strdup.
891 * namespace.c (add_using_directive): Use obstack_strdup.
892 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
893 * jit.c (finalize_symtab): Use obstack_strdup.
894 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
895 (guess_partial_die_structure_name, partial_die_info::fixup)
896 (dwarf2_name): Use obstack_strdup.
897 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
898 obstack_strdup.
899 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
900 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
901 obstack_strdup.
902 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
903
d2834edc
PW
9042019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
905
906 * unittests/help-doc-selftests.c: New file.
907 * Makefile.in: Add the new file.
908
590042fc
PW
9092019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
910
911 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
912 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
913 the full first line, except when FOR_VALUE_PREFIX. In this case,
914 the trailing '.' is not output, and the first character is uppercased.
915 (print_help_for_command): Update call to print_doc_line.
916 (print_doc_of_command): Likewise.
917 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
918 * cli/cli-option.c (append_indented_doc): Do not append newline.
919 (build_help_option): Append newline after first appended_indented_doc
920 only if a second call is done.
921 (build_help): Append 2 new lines before each option, except the first
922 one.
923 * compile/compile.c (_initialize_compile): Add new lines after
924 %OPTIONS%, when not at the end of the help.
925 Change help doc or code
926 producing the help doc to respect the invariants.
927 * maint-test-options.c (_initialize_maint_test_options): Likewise.
928 Also removed the new line after 'Options:', as all other commands
929 do not put an empty line between 'Options:' and the first option.
930 * printcmd.c (_initialize_printcmd): Likewise.
931 * stack.c (_initialize_stack): Likewise.
932 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
933 incorrectly telling COMMAND is optional.
934 * ada-lang.c (_initialize_ada_language): Change help doc or code
935 producing the help doc to respect the invariants.
936 * ada-tasks.c (_initialize_ada_tasks): Likewise.
937 * breakpoint.c (_initialize_breakpoint): Likewise.
938 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
939 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
940 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
941 * cli/cli-style.c (cli_style_option::add_setshow_commands,
942 _initialize_cli_style): Likewise.
943 * corelow.c (core_target_info): Likewise.
944 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
945 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
946 * filesystem.c (_initialize_filesystem): Likewise.
947 * frame.c (_initialize_frame): Likewise.
948 * gnu-nat.c (add_task_commands): Likewise.
949 * infcall.c (_initialize_infcall): Likewise.
950 * infcmd.c (_initialize_infcmd): Likewise.
951 * interps.c (_initialize_interpreter): Likewise.
952 * language.c (_initialize_language): Likewise.
953 * linux-fork.c (_initialize_linux_fork): Likewise.
954 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
955 * maint.c (_initialize_maint_cmds): Likewise.
956 * memattr.c (_initialize_mem): Likewise.
957 * printcmd.c (_initialize_printcmd): Likewise.
958 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
959 _RegEx): Likewise.
960 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
961 * record-btrace.c (_initialize_record_btrace): Likewise.
962 * record-full.c (_initialize_record_full): Likewise.
963 * record.c (_initialize_record): Likewise.
964 * regcache-dump.c (_initialize_regcache_dump): Likewise.
965 * regcache.c (_initialize_regcache): Likewise.
966 * remote.c (add_packet_config_cmd, init_remote_threadtests,
967 _initialize_remote): Likewise.
968 * ser-tcp.c (_initialize_ser_tcp): Likewise.
969 * serial.c (_initialize_serial): Likewise.
970 * skip.c (_initialize_step_skip): Likewise.
971 * source.c (_initialize_source): Likewise.
972 * stack.c (_initialize_stack): Likewise.
973 * symfile.c (_initialize_symfile): Likewise.
974 * symtab.c (_initialize_symtab): Likewise.
975 * target-descriptions.c (_initialize_target_descriptions): Likewise.
976 * top.c (init_main): Likewise.
977 * tracefile-tfile.c (tfile_target_info): Likewise.
978 * tracepoint.c (_initialize_tracepoint): Likewise.
979 * tui/tui-win.c (_initialize_tui_win): Likewise.
980 * utils.c (add_internal_problem_command): Likewise.
981 * valprint.c (value_print_option_defs): Likewise.
982
404f2902
FCE
9832019-08-06 Frank Ch. Eigler <fche@redhat.com>
984
985 PR build/24886
986 * configure.ac: Drop enable-libmcheck support.
987 * configure, config.in: Rebuild.
988 * libmcheck.m4: Remove.
989 * acinclude.m4: Don't include it.
990 * Makefile.in: Don't distribute it.
991 * top.c (print_gdb_configuration): Don't mention it.
992
046bebe1
TT
9932019-08-06 Tom Tromey <tom@tromey.com>
994
995 * utils.c (set_output_style): Sometimes pass stream to
996 emit_style_escape.
997 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
998 * record-btrace.c (btrace_insn_history): Update.
999 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1000 method.
1001 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1002 Update initializers.
1003 <m_uiout>: New field.
1004 <m_di>: Move lower.
1005 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1006 Remove "uiout" parameter.
1007 (dump_insns): Update.
1008 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1009 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1010
ddbcedf5
CB
10112019-08-06 Christian Biesinger <cbiesinger@google.com>
1012
1013 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1014 (error_in_psymtab_expansion): Likewise.
1015 (lookup_symbol_via_quick_fns): Likewise.
1016 (basic_lookup_transparent_type_quick): Likewise.
1017 (basic_lookup_transparent_type_1): Likewise.
1018
b08b16c8
TT
10192019-08-06 Tom Tromey <tromey@adacore.com>
1020
1021 * source.c (last_source_error): Now bool.
1022 (print_source_lines_base): Make "noprint" bool. Only open
1023 source file when last_source_visited changes.
1024
cb44333d
TT
10252019-08-06 Tom Tromey <tromey@adacore.com>
1026
1027 * annotate.c (annotate_source_line): Use g_source_cache.
1028 * source-cache.c (source_cache::get_plain_source_lines): Change
1029 parameters. Populate m_offset_cache.
1030 (source_cache::ensure): New method.
1031 (source_cache::get_line_charpos): New method.
1032 (extract_lines): Move lower. Change parameters.
1033 (source_cache::get_source_lines): Move lower.
1034 * source-cache.h (class source_cache): Update comment.
1035 <get_line_charpos>: New method.
1036 <get_source_lines>: Update comment.
1037 <clear>: Clear m_offset_cache.
1038 <get_plain_source_lines>: Change parameters.
1039 <ensure>: New method
1040 <m_offset_cache>: New member.
1041 * source.c (forget_cached_source_info_for_objfile): Update.
1042 (info_source_command): Use g_source_cache.
1043 (find_source_lines, open_source_file_with_line_charpos): Remove.
1044 (print_source_lines_base, search_command_helper): Use g_source_cache.
1045 * source.h (open_source_file_with_line_charpos): Don't declare.
1046 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1047 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1048 Use g_source_cache.
1049
872dceaa
TT
10502019-08-06 Tom Tromey <tromey@adacore.com>
1051
1052 * source-cache.c (source_cache::get_plain_source_lines):
1053 Remove "first_line" and "last_line" parameters.
1054 (source_cache::get_source_lines): Cache plain text.
1055 * source-cache.h (class source_cache)
1056 <get_plain_source_lines>: Update.
1057
269249d9
TT
10582019-08-06 Tom Tromey <tromey@adacore.com>
1059
1060 * source-cache.c (extract_lines): No longer a method.
1061 Changed type of parameter. Include final newline.
1062 (selftests::extract_lines_test): New function.
1063 (_initialize_source_cache): Likewise.
1064 * source-cache.h (class source_cache)
1065 <extract_lines>: Don't declare.
1066
c0e8dcd8
TT
10672019-08-06 Tom Tromey <tromey@adacore.com>
1068
1069 * breakpoint.c (init_breakpoint_sal): Update.
1070 (breakpoint): Update.
1071 * breakpoint.h (struct breakpoint) <filter>: Now a
1072 unique_xmalloc_ptr.
1073
0b27c27d
CB
10742019-08-05 Christian Biesinger <cbiesinger@google.com>
1075
1076 * NEWS: Mention dictionary access on blocks.
1077 * python/py-block.c (blpy_getitem): New function.
1078 (block_object_as_mapping): New struct.
1079 (block_object_type): Use new struct for tp_as_mapping field.
1080
4ee94178
CB
10812019-08-05 Christian Biesinger <cbiesinger@google.com>
1082
1083 * objfiles.h (objfile): Add a comment describing partial symbols.
1084
8abfcabc
TT
10852019-08-05 Tom Tromey <tromey@adacore.com>
1086
1087 * compile/compile.c (_initialize_compile): Use _(), not N_().
1088 * thread.c (_initialize_thread): Use _(), not N_().
1089 * stack.c (_initialize_stack): Use _(), not N_().
1090 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1091
2b79f376
SM
10922019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 * dwarf2read.c (struct dw2_symtab_iterator):
1095 <want_specific_block>: Remove.
1096 <block_index>: Change type to gdb::optional.
1097 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1098 change type of BLOCK_INDEX parameter to gdb::optional.
1099 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1100 (dw2_lookup_symbol): Don't pass argument for
1101 WANT_SPECIFIC_BLOCK.
1102 (dw2_expand_symtabs_for_function): Don't pass argument for
1103 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1104 (class dw2_debug_names_iterator)
1105 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1106 parameter, change BLOCK_INDEX type to gdb::optional.
1107 <m_want_specific_block>: Remove.
1108 <m_block_index>: Change type to gdb::optional.
1109 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1110 gdb::optional. Re-write in function of gdb::optional.
1111 (dw2_debug_names_lookup_symbol): Don't pass argument for
1112 WANT_SPECIFIC_BLOCK.
1113 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1114 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1115 BLOCK_INDEX.
1116
ae60f04e
PW
11172019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1118
1119 * NEWS: Mention changes to "info sources" command.
1120
28cd9371
PW
11212019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1122
1123 * symtab.c (filename_partial_match_opts): New struct type.
1124 (struct output_source_filename_data): New members
1125 regexp, c_regexp, partial_match.
1126 (output_source_filename): Use new members to decide to print file.
1127 (info_sources_option_defs): New variable.
1128 (make_info_sources_options_def_group, print_info_sources_header,
1129 info_sources_command_completer):
1130 New functions.
1131 (info_sources_command): Read new optional arguments.
1132 (_initialize_symtab): Update info sources help.
1133
ca683e3a
AO
11342019-08-02 Alexandre Oliva <oliva@adacore.com>
1135
1136 * ada-lang.c (exception_support_info_v0): Renamed from...
1137 (default_exception_support_info): ... this. Create new
1138 definition for v1.
1139 (ada_has_this_exception_support): Look up catch_handlers_sym.
1140 (ada_exception_support_info_sniffer): Try v0 after default.
1141
f1264162
TT
11422019-08-01 Tom Tromey <tromey@adacore.com>
1143
1144 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1145 gdbarch.h.
1146
0a7b2485
CB
11472019-08-01 Christian Biesinger <cbiesinger@google.com>
1148
1149 * s12z-tdep.c: Fix include path for s12z-opc.h.
1150
c6bdbeb7
AH
11512019-08-01 Alan Hayward <alan.hayward@arm.com>
1152
1153 * NEWS: Require GNU make 3.82.
1154
a2bd7b82
TT
11552019-07-16 Tom Tromey <tom@tromey.com>
1156
1157 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1158 declare.
1159
aa3b6533
TT
11602019-07-30 Tom Tromey <tromey@adacore.com>
1161
1162 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1163
a1530dc7
KB
11642019-07-30 Kevin Buettner <kevinb@redhat.com>
1165
1166 * printcmd.c (print_address_symbolic): Print negative offsets.
1167 (build_address_symbolic): Force signed arithmetic when computing
1168 offset.
1169
2906593f
CB
11702019-07-30 Christian Biesinger <cbiesinger@google.com>
1171
1172 PR/24474: Add a function to lookup static variables.
1173 * NEWS: Mention this new function.
1174 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1175 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1176 * python/python.c (python_GdbMethods): Add new function.
1177
c620ed88
CB
11782019-07-29 Christian Biesinger <cbiesinger@google.com>
1179
1180 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1181 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1182 (objfpy_lookup_static_symbol): New function.
1183 (objfile_object_methods): Add new functions.
1184
bc4268a5
PW
11852019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1186
1187 * NEWS: Mention 'set|show print frame-info'. Mention new
1188 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1189 backtrace argument. Mention that python frame filtering code
1190 is now consistent with what 'backtrace' command prints.
1191
4b5e8d19
PW
11922019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1193
1194 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1195 comments.
1196 (print_frame_info_auto, print_frame_info_source_line,
1197 print_frame_info_location, print_frame_info_source_and_location,
1198 print_frame_info_location_and_address, print_frame_info_short_location):
1199 New declarations.
1200 (struct frame_print_options): New member print_frame_info.
1201 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1202 * stack.h (get_user_print_what_frame_info): New declaration.
1203 (frame_show_address): New declaration.
1204 * stack.c (print_frame_arguments_choices): New value 'presence'.
1205 (print_frame_info_auto, print_frame_info_source_line,
1206 print_frame_info_location, print_frame_info_source_and_location,
1207 print_frame_info_location_and_address, print_frame_info_short_location,
1208 print_frame_info_choices, print_frame_info_print_what): New definitions.
1209 (print_frame_args): Only print dots for args if print frame-arguments
1210 is 'presence'.
1211 (frame_print_option_defs): New element for "frame-info".
1212 (get_user_print_what_frame_info): New function.
1213 (frame_show_address): Make non static. Move comment to stack.h.
1214 (print_frame_info_to_print_what): New function.
1215 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1216 to decide what to print.
1217 (backtrace_command_1): Handle the new print_frame_arguments_presence
1218 value.
1219 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1220 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1221 (py_print_frame): In non-mi mode, use LOCATION as default for
1222 print_what, similarly to frame information printed directly by
1223 backtrace command. Handle frame-info user option in non MI mode.
1224
6bdfee81
KB
12252019-07-27 Kevin Buettner <kevinb@redhat.com>
1226
1227 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1228 Add case for debugging 32-bit target on 64-bit host. Revise
1229 comment.
1230
98a617f8
KB
12312019-07-27 Kevin Buettner <kevinb@redhat.com>
1232
1233 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1234 instead of find_function_entry_range_from_pc.
1235
567238c9
KB
12362019-07-27 Kevin Buettner <kevinb@redhat.com>
1237
1238 * stack.c (find_frame_funname): Remove code which preferred
1239 minsym over symtab sym in "certain pathological cases".
1240
2dc80cf8
KB
1241 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1242 parameter. Change type of "do_demangle" to bool.
1243 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1244 Pass suitable "prefer_sym_over_minsym" flag to
1245 build_address_symbolic(). Don't output "+" for negative offsets.
1246 * printcmd.c (print_address_symbolic): Update invocation of
1247 build_address_symbolic to include a "prefer_sym_over_minsym"
1248 flag.
1249 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1250 Restrict cases in which use of minimal symbol is preferred to that
1251 of a found symbol. Update comments.
1252
1aff7173
KB
1253 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1254 for entry pc when entry pc is out of range for that FDE.
1255
89b085ac
BC
12562019-07-26 Brian Callahan <bcallah@openbsd.org>
1257
1258 PR gdb/24839:
1259 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1260 type.
1261
f32feb4a
CB
12622019-07-25 Christian Biesinger <cbiesinger@google.com>
1263
1264 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1265 this function's Python signature.
1266
1267
12682019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1269
1270 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1271 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1272 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1273 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1274 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1275
1276
c54e4253
YS
12772019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1278
1279 * h8300-tdep.c (h8300_register_name_common): New.
1280 h8300_register_name): Use h8300_register_name_common.
1281 (h8300s_register_name): Likewise.
1282 (h8300sx_register_name): Likewise.
1283 (h8300h_register_nam): New.
1284 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1285
1286
40eadf04
SP
12872019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1288
1289 * arm-tdep.c (arm_skip_cmse_entry): New function.
1290 (arm_is_sgstubs_section): New function.
1291 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1292
bfa2a36d
TT
12932019-07-22 Tom Tromey <tom@tromey.com>
1294
1295 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1296 Don't self-assign.
1297
a8e9d247
AB
12982019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1301 type_print.
1302
eb86c5e2
AB
13032019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1306 so that GDB doesn't match any msymbols when searching in the
1307 TYPES_DOMAIN.
1308 (print_symbol_info): Print using typedef_print or type_print based
1309 on the type of the symbol. Add updated FIXME comment moved from...
1310 (_initialize_symtab): ... move and update FIXME comment to above.
1311
a8eab7c6
AB
13122019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * NEWS: Mention adding -q option to "info types".
1315 * symtab.c (struct info_types_options): New struct.
1316 (info_types_options_defs): New variable.
1317 (make_info_types_options_def_group): New function.
1318 (info_types_command): Use gdb::option framework to parse options.
1319 (info_types_command_completer): New function.
1320 (_initialize_symtab): Extend the help text on "info types" and
1321 register command completer.
1322
b4603c34
CB
13232019-07-21 Christian Biesinger <cbiesinger@google.com>
1324
1325 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1326 (lookup_symbol_in_objfile): Change int to block_enum and add a
1327 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1328
c8cdc1e0
CB
13292019-07-20 Christian Biesinger <cbiesinger@google.com>
1330
1331 * MAINTAINERS (Write After Approval): Add self.
1332
01e175fe
AB
13332019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1334
1335 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1336 instruction to the dummy code region.
1337
56f79b63
TT
13382019-07-19 Tom Tromey <tromey@adacore.com>
1339
1340 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1341 (ARGSUSED, PARAMS, __func__): Remove rules.
1342
4c5aa8e0
AH
13432019-07-19 Alan Hayward <alan.hayward@arm.com>
1344
1345 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1346 * features/arm/arm-with-iwmmxt.c: Remove.
1347 * features/arm/arm-with-iwmmxt.xml: Remove.
1348 * features/arm/arm-with-m-fpa-layout.c: Remove.
1349 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1350 * features/arm/arm-with-m-vfp-d16.c: Remove.
1351 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1352 * features/arm/arm-with-m.c: Remove.
1353 * features/arm/arm-with-m.xml: Remove.
1354 * features/arm/arm-with-neon.c: Remove.
1355 * features/arm/arm-with-neon.xml: Remove.
1356 * features/arm/arm-with-vfpv2.c: Remove.
1357 * features/arm/arm-with-vfpv2.xml: Remove.
1358 * features/arm/arm-with-vfpv3.c: Remove.
1359 * features/arm/arm-with-vfpv3.xml: Remove.
1360
f42b2617
AH
13612019-07-19 Alan Hayward <alan.hayward@arm.com>
1362
1363 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1364
f29ec966
AH
13652019-07-19 Alan Hayward <alan.hayward@arm.com>
1366
1367 * arch/aarch32.c (aarch32_create_target_description): Create
1368 target descriptions using features.
1369 * arch/arm.c (arm_create_target_description)
1370 (arm_create_mprofile_target_description): Likewise.
1371 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1372
d105cce5
AH
13732019-07-19 Alan Hayward <alan.hayward@arm.com>
1374
1375 * Makefile.in: Add new files.
1376 * aarch32-tdep.c: New file.
1377 * aarch32-tdep.h: New file.
1378 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1379 Call aarch32_read_description.
1380 * arch/aarch32.c: New file.
1381 * arch/aarch32.h: New file.
1382 * arch/arm.c (arm_create_target_description)
1383 (arm_create_mprofile_target_description): New function.
1384 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1385 (arm_create_target_description)
1386 (arm_create_mprofile_target_description): New declaration.
1387 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1388 read_description functions.
1389 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1390 Likewise.
1391 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1392 * arm-tdep.c (tdesc_arm_list): New variable.
1393 (arm_register_g_packet_guesses): Call create description functions.
1394 (arm_read_description) (arm_read_mprofile_description): New
1395 function.
1396 * arm-tdep.h (arm_read_description)
1397 (arm_read_mprofile_description): Add declaration.
1398 * configure.tgt: Add new files.
1399
afe09f0b
GL
14002019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1401
1402 * top.c (new_ui_command): Open specified terminal just once.
1403
cd215b2e
TT
14042019-07-18 Tom Tromey <tromey@adacore.com>
1405
1406 * symtab.c (main_name): Constify return type.
1407 * symfile.c (set_initial_language): Update.
1408 * symtab.h (main_name): Constify return type.
1409
d8f68fcb
TT
14102019-07-17 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-winsource.c (tui_update_source_window)
1413 (tui_update_source_window_as_is)
1414 (tui_update_source_windows_with_line): Remove return.
1415 * tui/tui-disasm.c (tui_show_disassem)
1416 (tui_show_disassem_and_update_source): Remove return.
1417 * tui/tui.c (tui_reset): Remove return.
1418 * tui/tui-wingeneral.c
1419 (tui_check_and_display_highlight_if_needed): Remove return.
1420
ca5af91e
TT
14212019-07-17 Tom Tromey <tom@tromey.com>
1422
1423 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1424
5104fe36
TT
14252019-07-17 Tom Tromey <tom@tromey.com>
1426
1427 * tui/tui-winsource.h (struct tui_exec_info_window)
1428 (struct tui_source_window_base): Move from tui-data.h.
1429 * tui/tui-winsource.c: Move many method definitions from
1430 elsewhere. Remove "structuring" comments.
1431 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1432 (tui_source_window_base::refresh_window): Move to
1433 tui-winsource.c.
1434 * tui/tui-win.c (tui_source_window_base::refresh_all)
1435 (tui_source_window_base::update_tab_width)
1436 (tui_source_window_base::set_new_height)
1437 (tui_source_window_base::do_make_visible_with_new_height): Move to
1438 tui-winsource.c.
1439 * tui/tui-source.h: Update.
1440 * tui/tui-source.c (tui_source_window_base::reset): Move to
1441 tui-winsource.c.
1442 * tui/tui-disasm.h: Update.
1443 * tui/tui-data.h (struct tui_exec_info_window): Move to
1444 tui-winsource.h.
1445 (struct tui_source_window_base): Likewise.
1446 * tui/tui-data.c (tui_source_window_base::clear_detail)
1447 (tui_source_window_base, ~tui_source_window_base): Move to
1448 tui-winsource.c.
1449
daa15dde
TT
14502019-07-17 Tom Tromey <tom@tromey.com>
1451
1452 * tui/tui-win.c (tui_resize_all)
1453 (tui_source_window_base::update_tab_width)
1454 (tui_adjust_win_heights): Update.
1455 (tui_win_info::make_invisible_and_set_new_height): Rename from
1456 make_invisible_and_set_new_height.
1457 * tui/tui-data.h (struct tui_win_info)
1458 <make_invisible_and_set_new_height>: New method.
1459
bfad4537
TT
14602019-07-17 Tom Tromey <tom@tromey.com>
1461
1462 * tui/tui.c: Update.
1463 * tui/tui-source.h (struct tui_source_window): Move from
1464 tui-data.h.
1465 * tui/tui-layout.c: Update.
1466 * tui/tui-disasm.c: Update.
1467 * tui/tui-data.h (struct tui_source_window): Move to
1468 tui-source.h.
1469
88f7e873
TT
14702019-07-17 Tom Tromey <tom@tromey.com>
1471
1472 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1473 tui-data.h.
1474 * tui/tui-data.h (struct tui_disasm_window): Move to
1475 tui-disasm.h.
1476
96bd6233
TT
14772019-07-17 Tom Tromey <tom@tromey.com>
1478
1479 * tui/tui-regs.h (struct tui_data_item_window): Move from
1480 tui-data.h.
1481 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1482 * tui/tui-data.h (struct tui_data_item_window): Move to
1483 tui-regs.h.
1484 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1485
ce38393b
TT
14862019-07-17 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui.c: Update.
1489 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1490 (tui_cmd_window::max_height): Move to tui-command.c.
1491 * tui/tui-layout.c: Update.
1492 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1493 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1494 tui-command.c.
1495 * tui/tui-command.h (struct tui_cmd_window): Move from
1496 tui-data.h.
1497 * tui/tui-command.c: Remove "structuring" comments.
1498 (tui_cmd_window::clear_detail)
1499 (tui_cmd_window::do_make_visible_with_new_height)
1500 (tui_cmd_window::max_height): Move from elsewhere.
1501
2d8b51cb
TT
15022019-07-17 Tom Tromey <tom@tromey.com>
1503
1504 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1505 Now static.
1506 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1507 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1508
18ab23af
TT
15092019-07-17 Tom Tromey <tom@tromey.com>
1510
1511 * tui/tui.c: Update.
1512 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1513 tui-regs.c.
1514 * tui/tui-windata.h: Remove file.
1515 * tui/tui-windata.c: Remove file.
1516 * tui/tui-win.c (tui_data_window::set_new_height)
1517 (tui_data_window::do_make_visible_with_new_height): Move to
1518 tui-regs.c.
1519 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1520 * tui/tui-regs.c: Remove "structuring" comments.
1521 (tui_data_window::first_data_item_displayed)
1522 (tui_data_window::delete_data_content_windows)
1523 (tui_data_window::erase_data_content)
1524 (tui_data_window::display_all_data)
1525 (tui_data_window::refresh_all)
1526 (tui_data_window::do_scroll_vertical)
1527 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1528 (tui_data_window::do_make_visible_with_new_height)
1529 (tui_data_window::refresh_window): Move from elsewhere.
1530 (_initialize_tui_regs): Move to end of file.
1531 * tui/tui-layout.c: Update.
1532 * tui/tui-hooks.c: Update.
1533 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1534 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1535 tui-regs.c.
1536 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1537
88b7e7cc
TT
15382019-07-17 Tom Tromey <tom@tromey.com>
1539
1540 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1541 seen.
1542
0fcd3711
TT
15432019-07-17 Tom Tromey <tom@tromey.com>
1544
1545 * tui/tui-win.c (tui_source_window_base::set_new_height)
1546 (tui_source_window_base::do_make_visible_with_new_height): Use
1547 m_has_locator field directly.
1548 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1549 method.
1550 (struct tui_source_window_base) <has_locator>: Likewise.
1551
4a38112d
TT
15522019-07-17 Tom Tromey <tom@tromey.com>
1553
1554 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1555 Don't declare.
1556 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1557 Remove.
1558 * tui/tui-win.c (tui_source_window_base::set_new_height)
1559 (tui_source_window_base::set_new_height)
1560 (make_invisible_and_set_new_height)
1561 (tui_source_window_base::do_make_visible_with_new_height)
1562 (tui_source_window_base::do_make_visible_with_new_height):
1563 Update.
1564 * tui/tui-layout.c (show_source_disasm_command, show_data)
1565 (show_source_or_disasm_and_command): Update.
1566 * tui/tui-layout.c (show_layout): Update.
1567
09129226
TT
15682019-07-17 Tom Tromey <tom@tromey.com>
1569
1570 * tui/tui-layout.c (make_data_window): Remove.
1571 (show_data): Unify creation and re-initialization cases.
1572
4a8a5e84
TT
15732019-07-17 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-layout.c (make_source_window, make_disasm_window):
1576 Remove.
1577 (show_data): Unify creation and re-initialization cases.
1578
76d2be8e
TT
15792019-07-17 Tom Tromey <tom@tromey.com>
1580
1581 * tui/tui-layout.c (make_command_window): Remove.
1582 (show_source_disasm_command, show_source_or_disasm_and_command):
1583 Unify creation and re-initialization cases.
1584
890b8bde
TT
15852019-07-17 Tom Tromey <tom@tromey.com>
1586
1587 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1588 creation and re-initialization cases.
1589
2cdfa113
TT
15902019-07-17 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-regs.c (tui_get_register): Return void.
1593
8e3cfd09
TT
15942019-07-17 Tom Tromey <tom@tromey.com>
1595
1596 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1597 Simplify.
1598
f4e04977
TT
15992019-07-17 Tom Tromey <tom@tromey.com>
1600
1601 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1602 resetting.
1603
0379b883
TT
16042019-07-17 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1607 * tui/tui-regs.c (tui_reg_layout): New function.
1608 (tui_show_registers, tui_reg_command): Use it.
1609 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1610 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1611 parameters.
1612 (tui_layout_command): Remove.
1613
b7fbad91
TT
16142019-07-17 Tom Tromey <tom@tromey.com>
1615
1616 * tui/tui-layout.h (tui/tui-layout): Return void.
1617 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1618
4e1e56b9
TT
16192019-07-17 Tom Tromey <tom@tromey.com>
1620
1621 * tui/tui-layout.c (show_source_disasm_command, show_data):
1622 Update.
1623 (reset_locator): Remove.
1624 (show_source_or_disasm_and_command): Update.
1625
1e0c09ba
TT
16262019-07-17 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-source.c (tui_source_window_base::reset): Remove
1629 win_type parameter.
1630 * tui/tui-layout.c (make_command_window, make_source_window)
1631 (make_disasm_window, make_data_window)
1632 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1633 (reset_locator, show_source_or_disasm_and_command): Update.
1634 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1635 win_type parameter.
1636 (struct tui_source_window_base) <reset>: Likewise.
1637
1bf605de
TT
16382019-07-17 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-layout.c (show_source_disasm_command): Use
1641 reset_locator.
1642 (reset_locator): New function.
1643 (init_and_make_win): Remove.
1644 (show_source_or_disasm_and_command): Use reset_locator.
1645
098f9ed4
TT
16462019-07-17 Tom Tromey <tom@tromey.com>
1647
1648 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1649 condition.
1650 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1651 Remove condition.
1652 * tui/tui-source.c (tui_source_window_base::reset): New method.
1653 * tui/tui-layout.c (make_command_window): Don't call
1654 init_and_make_win.
1655 (make_source_window, make_disasm_window): Don't call
1656 make_source_or_disasm_window.
1657 (make_data_window): Don't call init_and_make_win. Change calling
1658 convention.
1659 (show_source_disasm_command, show_data): Simplify.
1660 (make_source_or_disasm_window): Remove.
1661 (show_source_or_disasm_and_command): Simplify.
1662 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1663 (struct tui_source_window_base) <reset>: Likewise.
1664 <execution_info>: Remove initializer.
1665 * tui/tui-data.c (tui_source_window_base): Initialize
1666 execution_info.
1667
80110957
TT
16682019-07-17 Tom Tromey <tom@tromey.com>
1669
1670 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1671 variable.
1672
cf82af05
TT
16732019-07-17 Tom Tromey <tom@tromey.com>
1674
1675 * tui/tui.c (tui_rl_other_window): Update.
1676 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1677 superclass method first. Always iterate over regs_content.
1678 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1679 method.
1680 * tui/tui-win.c (tui_set_focus_command): Update.
1681
01aeb396
TT
16822019-07-17 Tom Tromey <tom@tromey.com>
1683
1684 * tui/tui-win.c (tui_set_focus_command): Rename from
1685 tui_set_focus. Call tui_enable.
1686 (tui_set_focus_command): Remove.
1687
fd6c75ee
TT
16882019-07-17 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1691 refresh_window.
1692 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1693 touchwin.
1694 (tui_data_window::refresh_window): Call refresh_window on data
1695 items. Always call superclass refresh_window.
1696 (tui_win_info::refresh): Remove.
1697 (tui_source_window_base::refresh_window): Update.
1698 (tui_refresh_all): Update.
1699 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1700 refresh_window.
1701 (show_source_or_disasm_and_command): Likewise.
1702 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1703 (struct tui_source_window_base) <refresh>: Likewise.
1704
f6cc34a9
TT
17052019-07-17 Tom Tromey <tom@tromey.com>
1706
1707 * tui/tui-winsource.c (tui_clear_source_content)
1708 (tui_show_source_content): Update.
1709 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1710 whether content is empty.
1711 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1712 Remove.
1713
f31ec9af
TT
17142019-07-17 Tom Tromey <tom@tromey.com>
1715
1716 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1717 window's contents.
1718 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1719 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1720
d1b6f1e5
TT
17212019-07-17 Tom Tromey <tom@tromey.com>
1722
1723 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1724 (struct tui_data_item_window): Update.
1725
d9743a13
TT
17262019-07-17 Tom Tromey <tom@tromey.com>
1727
1728 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1729 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1730 defines.
1731
caf0bc4e
TT
17322019-07-17 Tom Tromey <tom@tromey.com>
1733
1734 * tui/tui-winsource.h (tui_erase_source_content)
1735 (tui_clear_source_content): Remove "display_prompt" parameter.
1736 * tui/tui-winsource.c (tui_update_source_window_as_is)
1737 (tui_update_source_windows_with_addr): Update.
1738 (tui_clear_source_content): Remove "display_prompt" parameter.
1739 (tui_erase_source_content): Likewise. Simplify.
1740 (tui_show_source_content): Update.
1741 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1742 * tui/tui-stack.c (tui_show_frame_info): Update.
1743 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1744 Remove defines.
1745
9d391078
TT
17462019-07-17 Tom Tromey <tom@tromey.com>
1747
1748 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1749 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1750 parameter.
1751 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1752 parameter.
1753
a38da35d
TT
17542019-07-17 Tom Tromey <tom@tromey.com>
1755
1756 * tui/tui-winsource.c (tui_clear_source_content)
1757 (tui_show_source_content, tui_show_exec_info_content)
1758 (tui_clear_exec_info_content): Update.
1759 * tui/tui-stack.c (tui_show_locator_content): Update.
1760 (tui_show_frame_info): Update.
1761 * tui/tui-source.h (tui_source_window): Don't declare.
1762 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1763 from tui_source_is_displayed.
1764 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1765 Remove field.
1766 (struct tui_source_window_base) <content_in_use>: New field. Now
1767 bool.
1768 (struct tui_source_window) <showing_source_p>: New method.
1769 (TUI_SRC_WIN): Change cast.
1770 * tui/tui-data.c (tui_initialize_static_data): Update.
1771
c2cd8994
TT
17722019-07-17 Tom Tromey <tom@tromey.com>
1773
1774 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1775 location_matches_p.
1776 * tui/tui-source.c (tui_source_window::location_matches_p): New
1777 method.
1778 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1779 method.
1780 * tui/tui-data.h (struct tui_source_window_base)
1781 <location_matches_p>: New method.
1782 (struct tui_source_window, struct tui_disasm_window)
1783 <location_matches_p>: Likewise.
1784
4dde7b34
TT
17852019-07-17 Tom Tromey <tom@tromey.com>
1786
1787 * tui/tui-win.c (tui_set_win_height_command): Rename from
1788 tui_set_win_height.
1789 (tui_set_win_height_command): Remove.
1790
b73dd877
TT
17912019-07-17 Tom Tromey <tom@tromey.com>
1792
1793 * tui/tui-source.c (tui_source_window): New constructor. Add
1794 observer.
1795 (~tui_source_window): New destructor.
1796 (tui_source_window::style_changed): New method.
1797 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1798 (tui_attach_detach_observers): Update.
1799 * tui/tui-data.h (struct tui_source_window): Make constructor not
1800 inline. Add destructor.
1801 (struct tui_source_window) <style_changed>: New method.
1802 <m_observable>: New member.
1803
ae2b5380
TT
18042019-07-17 Tom Tromey <tom@tromey.com>
1805
1806 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1807 * tui/tui-win.c (tui_resize_all): Fix typo.
1808
1ce3e844
TT
18092019-07-17 Tom Tromey <tom@tromey.com>
1810
1811 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1812 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1813 (tui_refresh_all): Remove "list" parameter. Use foreach.
1814 * tui/tui-win.c (window_name_completer): Use foreach.
1815 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1816 (update_tab_width): Likewise.
1817 * tui/tui-layout.c (show_layout): Update.
1818 * tui/tui-data.h (class tui_window_iterator): New.
1819 (struct all_tui_windows): New.
1820 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1821
fe3eaf1c
TT
18222019-07-17 Tom Tromey <tom@tromey.com>
1823
1824 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1825 parameter. Don't reference globals.
1826 (tui_reg_command): Update.
1827
368c1354
TT
18282019-07-17 Tom Tromey <tom@tromey.com>
1829
1830 * tui/tui-regs.c (tui_show_registers): Simplify.
1831
e80cd204
TT
18322019-07-17 Tom Tromey <tom@tromey.com>
1833
1834 * tui/tui-regs.c (tui_show_registers): Update.
1835 (tui_show_register_group): Add win_info parameter.
1836
aca2dd16
TT
18372019-07-17 Tom Tromey <tom@tromey.com>
1838
1839 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1840 Rename from tui_display_reg_element_at_line.
1841 (tui_data_window::display_registers_from_line): Update.
1842 * tui/tui-data.h (struct tui_data_window)
1843 <display_reg_element_at_line>: New method.
1844
517e9505
TT
18452019-07-17 Tom Tromey <tom@tromey.com>
1846
1847 * tui/tui-regs.h (tui_display_registers_from)
1848 (tui_display_registers_from_line): Don't declare.
1849 * tui/tui-windata.c (tui_data_window::display_all_data)
1850 (tui_data_window::refresh_all)
1851 (tui_data_window::do_scroll_vertical): Update.
1852 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1853 from tui_display_registers_from.
1854 (tui_display_reg_element_at_line): Update.
1855 (tui_data_window::display_registers_from_line): Rename from
1856 tui_display_registers_from_line.
1857 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1858 display_registers_from_line>: New methods.
1859
f76d8b19
TT
18602019-07-17 Tom Tromey <tom@tromey.com>
1861
1862 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1863 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1864 from tui_erase_data_content.
1865 (tui_data_window::display_all_data)
1866 (tui_data_window::refresh_all)
1867 (tui_data_window::do_scroll_vertical): Update.
1868 * tui/tui-regs.c (tui_show_registers): Update.
1869 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1870 New method.
1871
b4094625
TT
18722019-07-17 Tom Tromey <tom@tromey.com>
1873
1874 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1875 declare.
1876 * tui/tui-windata.c
1877 (tui_data_window::delete_data_content_windows): Rename from
1878 tui_delete_data_content_windows.
1879 (tui_data_window::display_all_data)
1880 (tui_data_window::do_scroll_vertical): Update.
1881 * tui/tui-data.h (struct tui_data_window)
1882 <delete_data_content_windows>: New method.
1883
c223a729
TT
18842019-07-17 Tom Tromey <tom@tromey.com>
1885
1886 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1887 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1888
50daf268
TT
18892019-07-17 Tom Tromey <tom@tromey.com>
1890
1891 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1892 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1893 from tui_display_all_data.
1894 * tui/tui-win.c
1895 (tui_data_window::do_make_visible_with_new_height): Update.
1896 * tui/tui-regs.c (tui_show_registers): Update.
1897 * tui/tui-layout.c (tui_set_layout): Update.
1898 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1899 method.
1900
df5f8cab
TT
19012019-07-17 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1904 * tui/tui-windata.c (tui_display_data_from): Remove.
1905 (tui_data_window::refresh_all): Update.
1906
80cb6c27
TT
19072019-07-17 Tom Tromey <tom@tromey.com>
1908
1909 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1910 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1911 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1912 tui_display_registers_from_line.
1913 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1914 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1915 "force_display" parameter.
1916
baff0c28
TT
19172019-07-17 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1920 declare.
1921 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1922 Rename from tui_first_reg_element_no_inline.
1923 (tui_display_reg_element_at_line)
1924 (tui_display_registers_from_line): Update.
1925 * tui/tui-data.h (struct tui_data_window)
1926 <first_reg_element_no_inline>: New method.
1927
3b23c5f2
TT
19282019-07-17 Tom Tromey <tom@tromey.com>
1929
1930 * tui/tui-windata.c (tui_display_data_from)
1931 (tui_data_window::do_scroll_vertical): Update.
1932 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1933 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1934 Rename from tui_line_from_reg_element_no.
1935 (tui_display_registers_from_line): Update.
1936 * tui/tui-data.h (struct tui_data_window)
1937 <line_from_reg_element_no>: New method.
1938
0b5ec218
TT
19392019-07-17 Tom Tromey <tom@tromey.com>
1940
1941 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1942 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1943 tui_last_regs_line_no.
1944 (tui_display_reg_element_at_line)
1945 (tui_display_registers_from_line): Update.
1946 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1947 method.
1948
0807ab7b
TT
19492019-07-17 Tom Tromey <tom@tromey.com>
1950
1951 PR tui/24722:
1952 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1953 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1954 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1955 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1956 (tui_update_breakpoint_info): Likewise.
1957 * tui/tui-hooks.c (tui_event_create_breakpoint)
1958 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1959 Update.
1960
9ad7fdef
TT
19612019-07-17 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1964
5813316f
TT
19652019-07-17 Tom Tromey <tom@tromey.com>
1966
1967 * tui/tui-winsource.c (tui_update_source_window_as_is)
1968 (tui_update_source_windows_with_addr): Update.
1969 * tui/tui-source.h (tui_set_source_content)
1970 (tui_show_symtab_source): Add "win_info" parameter.
1971 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1972 parameter.
1973 (tui_show_symtab_source): Likewise.
1974
00e264e7
TT
19752019-07-17 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-wingeneral.c
1978 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1979
06210ce4
TT
19802019-07-17 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1983 (struct tui_cmd_window) <can_scroll>: New method.
1984 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1985 method.
1986
381befee
TT
19872019-07-17 Tom Tromey <tromey@adacore.com>
1988
1989 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1990 do_field_signed>: Rename. Change type of "value".
1991 * ui-out.c (ui_out::field_signed): Rename from field_int.
1992 Change type of "value".
1993 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1994 type of "value".
1995 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1996 do_field_int. Change type of "value".
1997 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1998 do_field_int. Change type of "value".
1999 * tracepoint.c (trace_status_mi, tfind_1)
2000 (print_one_static_tracepoint_marker): Update.
2001 * thread.c (print_thread_info_1, print_selected_thread_frame):
2002 Update.
2003 * stack.c (print_frame, print_frame_info): Update.
2004 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2005 Update.
2006 * source.c (print_source_lines_base): Update.
2007 * skip.c (info_skip_command): Update.
2008 * record-btrace.c (btrace_ui_out_decode_error)
2009 (btrace_call_history_src_line): Update.
2010 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2011 Update.
2012 * progspace.c (print_program_space): Update.
2013 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2014 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2015 do_field_int. Change type of "value".
2016 * mi/mi-out.c (mi_ui_out::do_table_begin)
2017 (mi_ui_out::do_table_header): Update.
2018 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2019 type of "value".
2020 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2021 (mi_cmd_data_list_changed_registers, output_register)
2022 (mi_cmd_data_read_memory, mi_load_progress)
2023 (mi_cmd_trace_frame_collected): Update.
2024 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2025 Update.
2026 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2027 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2028 (mi_cmd_var_list_children, varobj_update_one): Update.
2029 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2030 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2031 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2032 * inferior.c (print_inferior): Update.
2033 * gdb_bfd.c (print_one_bfd): Update.
2034 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2035 Update.
2036 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2037 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2038 do_field_int. Change type of "value".
2039 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2040 do_field_int. Change type of "value".
2041 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2042 (print_one_breakpoint_location, print_it_catch_fork)
2043 (print_one_catch_fork, print_it_catch_vfork)
2044 (print_one_catch_vfork, print_it_catch_solib)
2045 (print_it_catch_exec, print_it_ranged_breakpoint)
2046 (print_mention_watchpoint, print_mention_masked_watchpoint)
2047 (bkpt_print_it, update_static_tracepoint): Update.
2048 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2049 * break-catch-syscall.c (print_it_catch_syscall): Update.
2050 * ada-tasks.c (print_ada_task_info): Update.
2051 * ada-lang.c (print_it_exception, print_mention_exception):
2052 Update.
2053
6b78c3f8
AB
20542019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2055
2056 PR breakpoints/24541
2057 * gdbarch.c: Regenerate.
2058 * gdbarch.h: Regenerate.
2059 * gdbarch.sh: Adjust return type and parameter types for
2060 'stap_adjust_register'.
2061 (i386_stap_adjust_register): Adjust signature and return new
2062 register name.
2063 * stap-probe.c (stap_parse_register_operand): Adjust use of
2064 'gdbarch_stap_adjust_register'.
2065
d72a9b85
TT
20662019-07-17 Tom Tromey <tromey@adacore.com>
2067
2068 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2069 declare VEC.
2070 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2071 std::vector.
2072 (struct s390_process_info): Add initializers.
2073 (s390_add_process): Use new.
2074 (s390_linux_nat_target::low_forget_process): Use delete.
2075 (s390_linux_nat_target::low_new_fork)
2076 (s390_linux_nat_target::stopped_by_watchpoint)
2077 (s390_linux_nat_target::low_prepare_to_resume)
2078 (s390_linux_nat_target::insert_watchpoint)
2079 (s390_linux_nat_target::insert_hw_breakpoint)
2080 (s390_linux_nat_target::remove_watchpoint)
2081 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2082
206e6c58
JB
20832019-07-16 John Baldwin <jhb@FreeBSD.org>
2084
2085 * aarch64-fbsd-nat.c: Include regcache.h.
2086 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2087 argument.
2088 (aarch64_fbsd_nat_target::fetch_registers)
2089 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2090 variable.
2091 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2092
cbde90f2
JB
20932019-07-16 John Baldwin <jhb@FreeBSD.org>
2094
2095 * fbsd-nat.c: Include gdbarch.h.
2096
07128006
TT
20972019-07-15 Tom Tromey <tromey@adacore.com>
2098
2099 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2100
1f77b012
TT
21012019-07-15 Tom Tromey <tromey@adacore.com>
2102
2103 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2104 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2105 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2106 * cli-out.c (cli_ui_out::do_field_int): New method.
2107 * ui-out.c (ui_out::field_unsigned): New method.
2108 * symfile.c (generic_load): Use field_unsigned.
2109 (print_transfer_performance): Likewise.
2110 * record-btrace.c (ui_out_field_uint): Remove.
2111 (btrace_call_history_insn_range, btrace_call_history): Use
2112 field_unsigned.
2113 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2114 field_unsigned.
2115 * ui-out.h (class ui_out) <field_unsigned>: New method.
2116 <do_field_unsigned>: Likewise.
2117
33eca680
TT
21182019-07-15 Tom Tromey <tromey@adacore.com>
2119
2120 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2121 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2122 * target.c (flash_erase_command): Use field_string.
2123 * infrun.c (print_signal_received_reason): Use field_string.
2124 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2125 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2126 field_string.
2127 * ada-tasks.c (print_ada_task_info): Use field_string.
2128
ca8d69be
TT
21292019-07-15 Tom Tromey <tromey@adacore.com>
2130
2131 * target.c (flash_erase_command): Use field_core_addr.
2132 * symfile.c (generic_load): Use field_core_addr.
2133 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2134 Use field_core_addr.
2135 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2136 field_core_addr.
2137
0d4e84ed
AB
21382019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2141 value if its desired type is smaller than a CORE_ADDR and signed.
2142
9a49df9d
AB
21432019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2144
2145 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2146 of changes to field names, and use new is_reference field to
2147 decide if a property is a reference or not.
2148 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2149 field.
2150 (struct dwarf2_property_baton): Update header comment, rename
2151 'referenced_type' to 'property_type' and update comments.
2152 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2153 default property type, store in property baton, update to take
2154 accound of renamed field.
2155 (read_func_scope): Update call to attr_to_dynamic_prop.
2156 (read_array_type): Likewise.
2157 (dwarf2_per_cu_addr_sized_int_type): New function.
2158 (read_subrange_index_type): Move type finding code to
2159 dwarf2_per_cu_addr_sized_int_type.
2160 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2161 (dwarf2_per_cu_addr_type): New function.
2162 (set_die_type): Update calls to attr_to_dynamic_prop.
2163
b86352cf
AB
21642019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * dwarf2read.c (read_subrange_index_type): New function.
2167 (read_subrange_type): Move code into new function and call it.
2168 * gdbtypes.c (create_range_type): Add some asserts.
2169
603490bf
AB
21702019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2173 update return statements.
2174 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2175 declaration, and update comment to match.
2176 * gdbtypes.c (resolve_dynamic_array): Update call to
2177 dwarf2_evaluate_property to match new return type.
2178
592f9d27
AB
21792019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * valarith.c (value_subscripted_rvalue): Change lowerbound
2182 parameter type from int to LONGEST.
2183 * value.h (value_subscripted_rvalue): Likewise in declaration.
2184
60cfcb20
AB
21852019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * cli/cli-utils.c (info_print_command_completer): New function.
2188 * cli/cli-utils.h: Add 'completer.h' include, and forward
2189 declaration for 'struct cmd_list_element'.
2190 (info_print_command_completer): Declare.
2191 * stack.c (_initialize_stack): Add completer for 'info locals' and
2192 'info args'.
2193 * symtab.c (_initialize_symtab): Add completer for 'info
2194 variables' and 'info functions'.
2195 * NEWS: Mention completion for additional info commands.
2196
b16507e0
AB
21972019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2198
2199 * cli/cli-utils.c (extract_info_print_args): Delete.
2200 (extract_arg_maybe_quoted): Delete.
2201 (info_print_options_defs): New variable.
2202 (make_info_print_options_def_group): New function.
2203 (extract_info_print_options): Define new function.
2204 * cli/cli-utils.h (extract_info_print_args): Delete.
2205 (struct info_print_options): New structure.
2206 (extract_info_print_options): Declare new function.
2207 * stack.c (info_locals_command): Update to use new
2208 extract_info_print_options, also add a header comment.
2209 (info_args_command): Likewise.
2210 * symtab.c (info_variables_command): Likewise.
2211 (info_functions_command): Likewise.
2212
021d8588
AB
22132019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2216 to extract string arguments.
2217 * common/common-utils.c (extract_string_maybe_quoted): New function.
2218 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2219
b777eb6d
TT
22202019-07-11 Tom Tromey <tromey@adacore.com>
2221
2222 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2223 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2224 * top.h (gdbinit): Don't declare.
2225 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2226 into...
2227 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2228 * top.c (gdb_init): Don't call init_cli_cmds.
2229 (gdbinit): Remove.
2230 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2231
72ee03ff
TT
22322019-07-11 Tom Tromey <tromey@adacore.com>
2233
2234 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2235 after it has been moved.
2236
00db9531
SM
22372019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * valops.c (value_must_coerce_to_target): Change return type to
2240 bool.
2241 * value.h (value_must_coerce_to_target): Likewise.
2242
f2478a7e
SM
22432019-07-10 Simon Marchi <simon.marchi@efficios.com>
2244
2245 * breakpoint.c (is_hardware_watchpoint): Remove
2246 forward-declaration.
2247 (is_masked_watchpoint): Change return type to bool.
2248 (is_tracepoint): Likewise.
2249 (is_breakpoint): Likewise.
2250 (is_hardware_watchpoint): Likewise.
2251 (is_watchpoint): Likewise.
2252 (is_no_memory_software_watchpoint): Likewise.
2253 (is_catchpoint): Likewise.
2254 (breakpoint_1): Make FILTER parameter's return type bool.
2255 is_masked_watchpoint): Change return type to bool.
2256 (save_breakpoints): Make FILTER parameter's return type bool.
2257 * breakpoint.h (is_breakpoint): Change return type to bool.
2258 (is_watchpoint): Likewise.
2259 (is_catchpoint): Likewise.
2260 (is_tracepoint): Likewise.
2261
0d12e84c
TT
22622019-07-10 Tom Tromey <tom@tromey.com>
2263
2264 * defs.h: Don't include gdbarch.h.
2265 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2266 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2267 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2268 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2269 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2270 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2271 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2272 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2273 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2274 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2275 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2276 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2277 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2278 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2279 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2280 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2281 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2282 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2283 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2284 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2285 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2286 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2287 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2288 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2289 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2290 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2291 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2292
f06f1252
TT
22932019-07-10 Tom Tromey <tromey@adacore.com>
2294
2295 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2296 * breakpoint.c (init_ada_exception_breakpoint): Register as
2297 bp_catchpoint.
2298 (print_one_breakpoint_location, print_one_breakpoint): Use
2299 is_ada_exception_catchpoint.
2300 * ada-lang.c (class ada_catchpoint_location): Pass
2301 bp_loc_software_breakpoint to bp_location constructor.
2302 (is_ada_exception_catchpoint): New function.
2303
7a5d944b
TT
23042019-07-10 Tom Tromey <tromey@adacore.com>
2305
2306 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2307 VEC.
2308 (struct arm_exidx_entry): New method operator<.
2309 (struct arm_exidx_data) <section_maps>: Change type.
2310 (arm_exidx_data_free): Remove.
2311 (arm_exidx_data_key): Change type. Move lower.
2312 (arm_exidx_new_objfile): Update.
2313 (arm_compare_exidx_entries): Remove.
2314 (arm_find_exidx_entry, _initialize_arm_tdep)
2315
48c66e1d
TT
23162019-07-10 Tom Tromey <tromey@adacore.com>
2317
2318 * solib-spu.c (ocl_program_data_key): Change type.
2319 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2320 Update.
2321
a269fbf1
TT
23222019-07-10 Tom Tromey <tromey@adacore.com>
2323
2324 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2325 (struct solib_aix_inferior_data) <library_list>: Change type.
2326 (solib_aix_inferior_data_handle): Change type.
2327 (get_solib_aix_inferior_data): Update.
2328 (solib_aix_free_library_list): Remove.
2329 (library_list_start_library): Update.
2330 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2331 return type.
2332 (solib_aix_get_library_list)
2333 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2334 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2335
c294730c
TT
23362019-07-10 Tom Tromey <tromey@adacore.com>
2337
2338 * solib-dsbt.c (struct dsbt_info): Add initializers.
2339 (solib_dsbt_pspace_data): Change type.
2340 (dsbt_pspace_data_cleanup): Remove.
2341 (get_dsbt_info, _initialize_dsbt_solib): Update.
2342
9d52077d
TT
23432019-07-10 Tom Tromey <tromey@adacore.com>
2344
2345 * spu-tdep.c (spu_overlay_data): Change type.
2346 (spu_get_overlay_table, spu_overlay_new_objfile)
2347 (_initialize_spu_tdep): Update.
2348
22a20dca
TT
23492019-07-10 Tom Tromey <tromey@adacore.com>
2350
2351 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2352 destructor.
2353 (dbx_objfile_data_key): Change type and declare later.
2354 (DBX_SYMFILE_INFO): Rewrite.
2355 * dbxread.c (dbx_objfile_data_key): Change type.
2356 (dbx_symfile_init): Update.
2357 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2358 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2359 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2360
cb60f420
TT
23612019-07-10 Tom Tromey <tromey@adacore.com>
2362
2363 * jit.c (jit_program_space_key): Change type. Move lower.
2364 (get_jit_program_space_data): Update.
2365 (jit_program_space_data_cleanup): Remove.
2366 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2367 Update.
2368 (struct jit_program_space_data): Add initializers.
2369
51df2ae3
TT
23702019-07-10 Tom Tromey <tromey@adacore.com>
2371
2372 * solib-darwin.c (struct darwin_info): Add initializers.
2373 (solib_darwin_pspace_data): Change type.
2374 (darwin_pspace_data_cleanup): Remove.
2375 (get_darwin_info, _initialize_darwin_solib): Update.
2376
18101a35
TT
23772019-07-10 Tom Tromey <tromey@adacore.com>
2378
2379 * remote-sim.c (struct sim_inferior_data): Add initializers,
2380 constructor, and destructor.
2381 (sim_inferior_data_key): Change type. Move lower.
2382 (check_for_duplicate_sim_descriptor): Update.
2383 (get_sim_inferior_data): Use new. Update.
2384 (~sim_inferior_data_cleanup): Rename from
2385 sim_inferior_data_cleanup. Simplify.
2386 (gdbsim_close_inferior, simulator_command)
2387 (sim_command_completer, _initialize_remote_sim): Update.
2388 (next_pid, INITIAL_PID): Move earlier.
2389
05b08ac1
TT
23902019-07-10 Tom Tromey <tromey@adacore.com>
2391
2392 * python/python-internal.h (create_thread_object): Return
2393 gdbpy_ref.
2394 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2395 * python/py-inferior.c (struct threadlist_entry): Add
2396 constructor.
2397 <thread_obj>: Now a gdbpy_ref.
2398 (thread_to_thread_object): Update.
2399 (add_thread_object): Use new.
2400 (delete_thread_object): Use delete.
2401 (infpy_threads): Update.
2402 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2403 GIL.
2404
32372d80
TT
24052019-07-10 Tom Tromey <tromey@adacore.com>
2406
2407 * valops.c (value_cast): Specialize error message for Ada.
2408
5c458ae8
SM
24092019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2410
2411 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2412
4c462cb0
SM
24132019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2416 bpstat_should_step): Return bool, adjust comments.
2417 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2418 bpstat_should_step): Likewise.
2419
89abbcc2
AH
24202019-07-10 Alan Hayward <alan.hayward@arm.com>
2421
2422 * features/Makefile: Use feature target descriptions for Arm.
2423 * features/arm/arm-core.c: Generate new file.
2424 * features/arm/arm-fpa.c: Likewise.
2425 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2426 * features/arm/arm-m-profile.c: Likewise.
2427 * features/arm/arm-vfpv2.c: Likewise.
2428 * features/arm/arm-vfpv3.c: Likewise.
2429 * features/arm/xscale-iwmmxt.c: Likewise.
2430 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2431
166a82be
AH
24322019-07-10 Alan Hayward <alan.hayward@arm.com>
2433
2434 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2435 ptrace earlier.
2436
9fb4c7e9
AH
24372019-07-10 Alan Hayward <alan.hayward@arm.com>
2438
2439 * features/aarch64-pauth.c: Regenerate.
2440
e2d0f980
SM
24412019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2442
2443 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2444 bool.
2445 (bpstat_what): Use false instead of 0.
2446
a38118e5
PA
24472019-07-09 Pedro Alves <palves@redhat.com>
2448
2449 * break-catch-throw.c (is_exception_catchpoint): New.
2450 * breakpoint.c (print_one_breakpoint_location): New parameter
2451 'raw_loc'. Handle it. Use
2452 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2453 looking at the breakpoint's type.
2454 (print_one_breakpoint): If handling "maint info breakpoints", also
2455 print locations of exception catchpoints.
2456 * breakpoint.h (is_exception_catchpoint): Declare.
2457
cb1e4e32
PA
24582019-07-09 Pedro Alves <palves@redhat.com>
2459
2460 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2461 "addr" field.
2462 (allocate_location_exception_catchpoint): New.
2463 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2464 (initialize_throw_catchpoint_ops): Install
2465 allocate_location_exception_catchpoint as allocate_location
2466 method.
2467 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2468 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2469 bp_loc_other.
2470 (breakpoint_address_is_meaningful): Delete.
2471 (bl_address_is_meaningful): New.
2472 (breakpoint_locations_match): Adjust comment.
2473 (bp_location_from_bp_type): New, factored out of...
2474 (bp_location::bp_location(breakpoint *)): ... this.
2475 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2476 factored out of...
2477 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2478 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2479 breakpoint_address_is_meaningful.
2480 (bp_locations_compare): Adjust comment.
2481 (update_global_location_list): Use bl_address_is_meaningful
2482 instead of breakpoint_address_is_meaningful.
2483 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2484 explicit.
2485 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2486 * python/py-breakpoint.c (bppy_get_location): No longer check
2487 whether location is null.
2488
b58a68fe
PA
24892019-07-09 Pedro Alves <palves@redhat.com>
2490
2491 PR c++/15468
2492 * breakpoint.c (print_one_breakpoint_location): Remove
2493 single-location assert.
2494
268a13a5
TT
24952019-07-09 Tom Tromey <tom@tromey.com>
2496
2497 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2498 * configure: Rebuild.
2499 * configure.ac: Change common to gdbsupport.
2500 * gdbsupport: Rename from common.
2501 * acinclude.m4: Change common to gdbsupport.
2502 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2503 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2504 gdbsupport.
2505 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2506 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2507 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2508 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2509 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2510 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2511 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2512 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2513 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2514 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2515 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2516 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2517 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2518 coff-pe-read.c, command.h, compile/compile-c-support.c,
2519 compile/compile-c.h, compile/compile-cplus-symbols.c,
2520 compile/compile-cplus-types.c, compile/compile-cplus.h,
2521 compile/compile-loc2c.c, compile/compile.c, completer.c,
2522 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2523 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2524 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2525 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2526 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2527 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2528 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2529 features/aarch64-core.c, features/aarch64-fpu.c,
2530 features/aarch64-pauth.c, features/aarch64-sve.c,
2531 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2532 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2533 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2534 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2535 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2536 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2537 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2538 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2539 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2540 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2541 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2542 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2543 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2544 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2545 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2546 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2547 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2548 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2549 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2550 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2551 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2552 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2553 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2554 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2555 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2556 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2557 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2558 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2559 minsyms.c, mips-linux-tdep.c, namespace.h,
2560 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2561 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2562 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2563 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2564 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2565 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2566 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2567 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2568 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2569 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2570 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2571 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2572 procfs.c, producer.c, progspace.h, psymtab.h,
2573 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2574 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2575 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2576 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2577 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2578 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2579 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2580 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2581 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2582 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2583 target-memory.c, target.c, target.h, target/waitstatus.c,
2584 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2585 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2586 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2587 unittests/array-view-selftests.c,
2588 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2589 unittests/common-utils-selftests.c,
2590 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2591 unittests/format_pieces-selftests.c,
2592 unittests/function-view-selftests.c,
2593 unittests/lookup_name_info-selftests.c,
2594 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2595 unittests/mkdir-recursive-selftests.c,
2596 unittests/observable-selftests.c,
2597 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2598 unittests/parse-connection-spec-selftests.c,
2599 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2600 unittests/scoped_fd-selftests.c,
2601 unittests/scoped_mmap-selftests.c,
2602 unittests/scoped_restore-selftests.c,
2603 unittests/string_view-selftests.c, unittests/style-selftests.c,
2604 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2605 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2606 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2607 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2608 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2609 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2610
5b0e2db4
AB
26112019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2614 bool value.
2615 (decode_digits_ordinary): Set explicit_line field in sal.
2616 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2617 symtab_and_line that was set on an explicit line number in
2618 assembler code. Do always update the recorded symtab and line if
2619 we do skip the prologue.
2620
0ba852ab
AB
26212019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * breakpoint.c (set_breakpoint_location_function): Remove
2624 explicit_loc parameter.
2625 (momentary_breakpoint_from_master): Update call to
2626 set_breakpoint_location_function.
2627 (add_location_to_breakpoint): Likewise.
2628
b3a7d171
AB
26292019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2632 required features based on default bfd type when no specific bfd
2633 is present.
2634
1f6f6e21
PW
26352019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2636
2637 * NEWS: Mention that GDB printf and eval commands can now print
2638 C-style and Ada-style convenience var strings without
2639 calling the inferior.
2640 * printcmd.c (printf_c_string): Locally print GDB internal var
2641 instead of transiting via the inferior.
2642 (printf_wide_c_string): Likewise.
2643
26442019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2645
2646 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2647
0598af48
TT
26482019-07-04 Tom Tromey <tom@tromey.com>
2649
2650 PR tui/24724:
2651 * tui/tui-winsource.c (tui_clear_source_content): Update.
2652 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2653 (tui_update_breakpoint_info): Update.
2654 (tui_set_exec_info_content): Update.
2655 * tui/tui-source.c (tui_set_source_content_nil): Update.
2656 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2657 has_break.
2658 * tui/tui-data.h (enum tui_bp_flag): New.
2659 (tui_bp_flags): New enum flags type.
2660 (struct tui_source_element) <break_mode>: Change type. Rename
2661 from has_break.
2662 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2663 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2664 constants.
2665 * tui/tui-winsource.h: Fix comment.
2666
350fab54
AH
26672019-07-04 Alan Hayward <alan.hayward@arm.com>
2668
2669 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2670 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2671 (store_fpregs_to_thread)
2672 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2673 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2674 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2675 (IWMMXT_REGS_SIZE): Add define.
2676 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2677 (fetch_vfp_regs, store_vfp_regs)
2678 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2679 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2680
f0452268
AH
26812019-07-04 Alan Hayward <alan.hayward@arm.com>
2682
2683 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2684 defines.
2685 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2686 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2687 (ARM_INT_REGISTER_SIZE): ...to this.
2688 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2689 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2690 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2691 (arm_linux_collect_gregset, supply_nwfpe_register)
2692 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2693 defines.
2694 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2695 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2696 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2697 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2698 (arm_return_in_memory, arm_store_return_value)
2699 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2700 (arm_record_ld_st_multiple): Likewise.
2701 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2702 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2703
e935475c
AH
27042019-07-04 Alan Hayward <alan.hayward@arm.com>
2705
2706 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2707 AARCH64_DISPLACED_MODIFIED_INSNS.
2708 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2709 (aarch64_displaced_step_copy_insn): Likewise.
2710 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2711 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2712 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2713 ARM_DISPLACED_MODIFIED_INSNS.
2714 * arm-tdep.c (arm_gdbarch_init): Likewise.
2715 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2716 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2717 (struct arm_displaced_step_closure): Use
2718 ARM_DISPLACED_MODIFIED_INSNS.
2719
df0bb381
AH
27202019-07-04 Alan Hayward <alan.hayward@arm.com>
2721
2722 * features/Makefile: Remove unused xml files.
2723 * features/aarch64.xml: Remove.
2724 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2725 * features/i386/amd64-avx-avx512.xml: Remove.
2726 * features/i386/amd64-avx-linux.xml: Remove.
2727 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2728 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2729 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2730 * features/i386/amd64-avx-mpx.xml: Remove.
2731 * features/i386/amd64-avx.xml: Remove.
2732 * features/i386/amd64-linux.xml: Remove.
2733 * features/i386/amd64-mpx-linux.xml: Remove.
2734 * features/i386/amd64-mpx.xml: Remove.
2735 * features/i386/amd64.xml: Remove.
2736 * features/i386/i386-avx-avx512-linux.xml: Remove.
2737 * features/i386/i386-avx-avx512.xml: Remove.
2738 * features/i386/i386-avx-linux.xml: Remove.
2739 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2740 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2741 * features/i386/i386-avx-mpx-linux.xml: Remove.
2742 * features/i386/i386-avx-mpx.xml: Remove.
2743 * features/i386/i386-avx.xml: Remove.
2744 * features/i386/i386-linux.xml: Remove.
2745 * features/i386/i386-mmx-linux.xml: Remove.
2746 * features/i386/i386-mmx.xml: Remove.
2747 * features/i386/i386-mpx-linux.xml: Remove.
2748 * features/i386/i386-mpx.xml: Remove.
2749 * features/i386/i386.xml: Remove.
2750 * features/i386/x32-avx-avx512-linux.xml: Remove.
2751 * features/i386/x32-avx-linux.xml: Remove.
2752 * features/i386/x32-linux.xml: Remove.
2753
edd6266a
AH
27542019-07-04 Alan Hayward <alan.hayward@arm.com>
2755
2756 * regformats/aarch64.dat: Remove.
2757 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2758 * regformats/i386/amd64-avx-linux.dat: Remove.
2759 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2760 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2761 * regformats/i386/amd64-linux.dat: Remove.
2762 * regformats/i386/amd64-mpx-linux.dat: Remove.
2763 * regformats/i386/amd64.dat: Remove.
2764 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2765 * regformats/i386/i386-avx-linux.dat: Remove.
2766 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2767 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2768 * regformats/i386/i386-linux.dat: Remove.
2769 * regformats/i386/i386-mmx-linux.dat: Remove.
2770 * regformats/i386/i386-mpx-linux.dat: Remove.
2771 * regformats/i386/i386.dat: Remove.
2772 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2773 * regformats/i386/x32-avx-linux.dat: Remove.
2774 * regformats/i386/x32-linux.dat: Remove.
2775
2b40fda7
AH
27762019-07-04 Alan Hayward <alan.hayward@arm.com>
2777
2778 * aarch64-tdep.c: Remove xml self tests.
2779 * amd64-linux-tdep.c: Likewise.
2780 * amd64-tdep.c: Likewise.
2781 * i386-linux-tdep.c: Likewise.
2782 * i386-tdep.c: Likewise.
2783
5f4ba3e7
PA
27842019-07-03 Pedro Alves <palves@redhat.com>
2785
2786 PR cli/24732
2787 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2788 (pipe_cmd_option_defs): New.
2789 (make_pipe_cmd_options_def_group): New.
2790 (pipe_command): Use gdb::option::process_options.
2791 (pipe_command_completer): New function.
2792 (_initialize_cli_cmds): Install completer for "pipe" command.
2793
3d9be6f5
PA
27942019-07-03 Pedro Alves <palves@redhat.com>
2795
2796 * cli/cli-option.c (union option_value) <string>: New field.
2797 (struct option_def_and_value): Add ctor, move ctor, dtor and
2798 use DISABLE_COPY_AND_ASSIGN.
2799 (option_def_and_value::clear_value): New.
2800 (parse_option, save_option_value_in_ctx, get_val_type_str)
2801 (add_setshow_cmds_for_options): Handle var_string.
2802 * cli-option.h (union option_def::var_address) <string>: New
2803 field.
2804 (struct string_option_def): New.
2805 * maint-test-options.c (struct test_options_opts): Add default
2806 ctor and use DISABLE_COPY_AND_ASSIGN.
2807 <string_opt>: New field.
2808 (test_options_opts::~test_options_opts): New.
2809 (test_options_opts::dump): Also dump "-string".
2810 (test_options_option_defs): Install "string.
2811
41fc454c
PA
28122019-07-03 Pedro Alves <palves@redhat.com>
2813
2814 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2815 option_value with a null enumeration.
2816 (complete_options): Save the option values in the context.
2817 (save_option_value_in_ctx): New, factored out from ...
2818 (process_options): ... here.
2819 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2820 of the function.
2821 * maint-test-options.c (test_options_opts::dump): New, factored
2822 out from ...
2823 (maintenance_test_options_command_mode): ... here.
2824 (maintenance_test_options_command_completion_result): Delete.
2825 (maintenance_test_options_command_completion_text): Update
2826 comment.
2827 (maintenance_show_test_options_completion_result): Change
2828 prototype. Just print
2829 maintenance_test_options_command_completion_text.
2830 (save_completion_result): New.
2831 (maintenance_test_options_completer_mode): Pass options context to
2832 complete_options, and then save a dump.
2833 (_initialize_maint_test_options): Use add_cmd to install "maint
2834 show test-options-completion-result".
2835
fdbc9870
PA
28362019-07-03 Pedro Alves <palves@redhat.com>
2837
2838 * NEWS (New commands): Mention "with" and "maint with".
2839 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2840 (with_command, with_command_completer): New.
2841 (pipe_command): Adjust to new repeat_previous
2842 interface.
2843 (_initialize_cli_cmds): Install the "with" command and its "w"
2844 alias.
2845 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2846 declarations.
2847 * cli/cli-setshow.c (parse_cli_var_uinteger)
2848 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2849 argument strings for all var_types.
2850 (get_setshow_command_value_string): New, factored out from ...
2851 (do_show_command): ... this.
2852 * cli/cli-setshow.h: Include <string>.
2853 (get_setshow_command_value_string): Declare.
2854 * command.h (repeat_previous): Now returns const char *. Adjust
2855 comment.
2856 * maint.c: Include "cli/cli-cmds.h".
2857 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2858 (_initialize_maint_cmds): Register the "maintenance with" command.
2859 * top.c (repeat_previous): Move bits from pipe_command here:
2860 Return the saved command line, if any; error out if there's no
2861 command to relaunch.
2862
c6ac8931
PA
28632019-07-03 Pedro Alves <palves@redhat.com>
2864
2865 * NEWS (New commands): Mention "maint set/show test-settings"
2866 instead of "maint test-settings".
2867 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2868 (maintenance_test_settings_set_list): Rename to ...
2869 (maintenance_set_test_settings_list): ... this.
2870 (maintenance_test_settings_show_list): Rename to ...
2871 (maintenance_show_test_settings_list): ... this.
2872 (maintenance_test_settings_cmd): Delete.
2873 (maintenance_test_settings_set_cmd): ...
2874 (maintenance_set_test_settings_cmd): ... this.
2875 (maintenance_test_settings_show_cmd): ...
2876 (maintenance_show_test_settings_cmd): ... this.
2877 (maintenance_test_settings_show_value_cmd):
2878 (maintenance_show_test_settings_value_cmd): ... this.
2879 (_initialize_maint_test_settings): No longer install the "maint
2880 test-settings" prefix command. Rename "maint test-settings set"
2881 to "maint set test-settings", and "maint test-settings show" to
2882 "maint show test-settings". Adjust all subcommands.
2883
d1fcf2fd
PA
28842019-07-03 Pedro Alves <palves@redhat.com>
2885
2886 * maint-test-settings.c: Fix file's intro comment. Replace all
2887 references to "test-options" with references to "test-settings",
2888 in comments.
2889
970f9d09
PA
28902019-07-03 Pedro Alves <palves@redhat.com>
2891
2892 * maint-test-settings.c (maintenance_test_settings_xxx)
2893 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2894 New.
2895 (maintenance_test_settings_enums): Use them.
2896 (maintenance_test_settings_enum): Default to
2897 maintenance_test_settings_xxx.
2898 (_initialize_maint_test_settings): Initialize
2899 MAINTENANCE_TEST_SETTINGS_FILENAME.
2900
f3869b1a
SM
29012019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * breakpoint.h (remove_breakpoints_inf): Change return type to
2904 void, move function documentation here.
2905 * breakpoint.c (remove_breakpoints_inf): Change return type to
2906 void, move function documentation to header.
2907
54d66006
PA
29082019-07-02 Pedro Alves <palves@redhat.com>
2909
2910 * NEWS (Completion improvements): Mention "info threads".
2911 * thread.c (struct info_threads_opts, info_threads_option_defs)
2912 (make_info_threads_options_def_group): New.
2913 (info_threads_command): Use gdb::option::process_options.
2914 (info_threads_command_completer): New.
2915 (_initialize_thread): Use gdb::option::build_help to build the
2916 help text for "info threads".
2917
854f6088
SM
29182019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2919
2920 * defs.h (generic_load): Move from here...
2921 * symfile.h (generic_load): ... to here. Rename name parameter
2922 to args.
2923 * symfile.c (generic_load): Add comment.
2924
54ee4252
TT
29252019-07-01 Tom Tromey <tromey@adacore.com>
2926
2927 * dwarf2read.c
2928 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2929 declaration of without_params. Fix formatting.
2930
65392b3e
TT
29312019-07-01 Tom Tromey <tromey@adacore.com>
2932
2933 * ada-exp.y (find_primitive_type): Update.
2934 * ada-lang.h (ada_lookup_symbol): Update.
2935 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2936 parameter.
2937 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2938
7d7571f0
SDJ
29392019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2940
2941 PR breakpoints/24541
2942 * gdbarch.c: Regenerate.
2943 * gdbarch.h: Regenerate.
2944 * gdbarch.sh: Add 'stap_adjust_register'.
2945 * i386-tdep.c: Include '<unordered_set>'.
2946 (i386_stap_adjust_register): New function.
2947 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2948 * stap-probe.c (stap_parse_register_operand): Call
2949 'gdbarch_stap_adjust_register'.
2950
5af5392a
SDJ
29512019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2952
2953 PR python/24742
2954 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2955 * python/python.c (do_start_initialization): Use 'xmalloc'
2956 instead of 'PyMem_Malloc'.
2957
10d06d82
TT
29582019-06-28 Tom Tromey <tromey@adacore.com>
2959
2960 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2961 for Ada.
2962
1b7f24cd
TT
29632019-06-27 Tom Tromey <tromey@adacore.com>
2964
2965 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2966 objfile_key.
2967 (arm_find_mapping_symbol, arm_record_special_symbol)
2968 (_initialize_arm_tdep): Update.
2969 (arm_objfile_data_free): Remove.
2970
3d507ff2
TT
29712019-06-27 Tom Tromey <tromey@adacore.com>
2972
2973 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2974 to cp_print_static_field.
2975
762c164d
TT
29762019-06-26 Tom Tromey <tromey@adacore.com>
2977
2978 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2979 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2980 declare.
2981
aa2f9bcf
AH
29822019-06-26 Alan Hayward <alan.hayward@arm.com>
2983
2984 * features/aarch64-core.c (create_feature_aarch64_core):
2985 Regenerate.
2986 * features/aarch64-core.xml: Add cpsr flags.
2987
3426ae57
AH
29882019-06-26 Alan Hayward <alan.hayward@arm.com>
2989
2990 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2991 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2992
4838e44c
SM
29932019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2994
2995 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2996 field.
2997 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2998 use.
2999 (arm_record_special_symbol): Don't insert new symbol in sorted
3000 position, push it at the end.
3001
54cc7474
SM
30022019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3003
3004 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3005 (arm_mapping_symbol_s): Remove.
3006 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3007 (arm_mapping_symbol_vec): New typedef.
3008 (struct arm_per_objfile): Add constructor.
3009 <section_maps>: Change type to
3010 std::unique_ptr<arm_mapping_symbol_vec[]>.
3011 (arm_compare_mapping_symbols): Remove.
3012 (arm_find_mapping_symbol): Adjust to section_maps type change.
3013 (arm_objfile_data_free): Call delete on arm_per_objfile.
3014 (arm_record_special_symbol): Adjust to section_maps type change.
3015 Allocate arm_per_objfile with new.
3016
b65b566c
PW
30172019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3018
3019 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3020 with the command prefix.
3021
c2fc64f5
TT
30222019-06-25 Tom Tromey <tom@tromey.com>
3023
3024 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3025 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3026
fb54fa76
TT
30272019-06-25 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3030 type.
3031 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3032 protected.
3033
f7952c57
TT
30342019-06-25 Tom Tromey <tom@tromey.com>
3035
3036 * tui/tui-winsource.c
3037 (tui_source_window_base::set_is_exec_point_at): Add check against
3038 LOA_ADDRESS.
3039
17568d78
TT
30402019-06-25 Tom Tromey <tom@tromey.com>
3041
3042 * tui/tui-source.c (tui_set_source_content): Don't check before
3043 xfree.
3044 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3045
53e7cdba
TT
30462019-06-25 Tom Tromey <tom@tromey.com>
3047
3048 * tui/tui-winsource.h (tui_update_source_window_as_is)
3049 (tui_alloc_source_buffer, tui_line_is_displayed)
3050 (tui_addr_is_displayed): Change type of win_info.
3051 * tui/tui-winsource.c (tui_update_source_window_as_is)
3052 (tui_clear_source_content, tui_show_source_line)
3053 (tui_show_source_content, tui_source_window_base::refill)
3054 (tui_source_window_base::set_is_exec_point_at)
3055 (tui_source_window_base::set_is_exec_point_at)
3056 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3057 (tui_alloc_source_buffer, tui_line_is_displayed)
3058 (tui_addr_is_displayed): Change type of win_info. Update.
3059 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3060 (tui_source_window_base::do_make_visible_with_new_height):
3061 Update.
3062 * tui/tui-source.c (tui_set_source_content)
3063 (tui_set_source_content_nil)
3064 (tui_source_window::do_scroll_vertical): Update.
3065 * tui/tui-layout.c (show_layout): Update.
3066 * tui/tui-disasm.c (tui_set_disassem_content)
3067 (tui_disasm_window::do_scroll_vertical): Update.
3068 * tui/tui-data.h (tui_win_content): Remove.
3069 (struct tui_gen_win_info) <content, content_size>: Remove.
3070 (struct tui_source_element): Add initializers and destructor.
3071 (union tui_which_element, struct tui_win_element): Remove.
3072 (struct tui_source_window_base) <content>: New field.
3073 (struct tui_data_window): Remove destructor.
3074 (tui_alloc_content, tui_free_win_content)
3075 (tui_free_all_source_wins_content): Don't declare.
3076 * tui/tui-data.c (tui_initialize_static_data): Update.
3077 (init_content_element, tui_alloc_content): Remove.
3078 (~tui_gen_win_info): Update.
3079 (~tui_data_window, tui_free_all_source_wins_content)
3080 (tui_free_win_content, free_content, free_content_elements):
3081 Remove.
3082
7908abbf
TT
30832019-06-25 Tom Tromey <tom@tromey.com>
3084
3085 * tui/tui-winsource.h (tui_clear_source_content)
3086 (tui_erase_source_content, tui_show_source_content): Change type
3087 of win_info.
3088 * tui/tui-winsource.c (tui_clear_source_content)
3089 (tui_erase_source_content, tui_show_source_content): Change type
3090 of win_info.
3091 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3092 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3093 win_info.
3094 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3095 win_info.
3096 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3097
02c28df0
TT
30982019-06-25 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-winsource.c (tui_clear_source_content)
3101 (tui_source_window_base::set_is_exec_point_at): Update.
3102 * tui/tui-source.c (tui_set_source_content_nil): Update.
3103 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3104 a bool.
3105 * tui/tui-data.c (init_content_element): Update.
3106
6658b1bf
TT
31072019-06-25 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3110 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3111 * tui/tui-layout.c (init_and_make_win): Update.
3112 * tui/tui.h (enum tui_win_type): Update.
3113 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3114 tui_win_is_auxillary.
3115 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3116 tui_win_is_auxillary.
3117
21e1c91e
TT
31182019-06-25 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3121 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3122 (tui_delete_data_content_windows, tui_display_all_data)
3123 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3124 Update.
3125 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3126 * tui/tui-regs.c (tui_last_regs_line_no)
3127 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3128 (tui_show_registers): Update.
3129 (tui_show_register_group): Return void. Update.
3130 (tui_display_registers_from, tui_display_reg_element_at_line)
3131 (tui_display_registers_from_line, tui_check_register_values):
3132 Update.
3133 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3134 member.
3135 (struct tui_data_window) <regs_content>: Now a std::vector.
3136 <regs_content_count>: Remove.
3137 (tui_add_content_elements, tui_free_data_content): Don't declare.
3138 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3139 (init_content_element): Remove DATA_WIN case. Add assert.
3140 (tui_add_content_elements): Remove.
3141 (tui_data_window): Update.
3142 (tui_free_data_content): Remove.
3143 (free_content_elements): Remove DATA_WIN case.
3144
115ac53b
TT
31452019-06-25 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-data.c (tui_data_item_window): Update.
3148 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3149 * tui/tui-windata.c (tui_display_all_data)
3150 (tui_display_data_from_line): Update.
3151 (tui_check_data_values): Remove.
3152 * tui/tui-regs.c (tui_show_register_group)
3153 (tui_display_reg_element_at_line): Update.
3154 * tui/tui-hooks.c (tui_register_changed)
3155 (tui_refresh_frame_and_register_information): Call
3156 tui_check_register_values.
3157 * tui/tui-data.h (struct tui_data_window) <data_content,
3158 data_content_count, data_type>: Remove.
3159 (enum tui_data_type): Remove.
3160
3161 * tui/tui-data.c (tui_data_window::clear_detail)
3162 (~tui_data_window): Update.
3163
eaf9738b
TT
31642019-06-25 Tom Tromey <tom@tromey.com>
3165
3166 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3167 declare.
3168 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3169 Rename from tui_first_data_item_displayed. Update.
3170 (tui_data_window::refresh_all)
3171 (tui_data_window::do_scroll_vertical): Update.
3172 * tui/tui-data.h (struct tui_data_window)
3173 <first_data_item_displayed>: Declare new method.
3174
31ca4723
TT
31752019-06-25 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3178 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3179 contents...
3180 (tui_initialize_static_data): ...here.
3181
41bcff7f
TT
31822019-06-25 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3185 (tui_display_registers_from, tui_check_register_values): Update.
3186 (tui_display_register): Remove win_info parameter; update.
3187 (tui_get_register): Change type of parameters.
3188 * tui/tui-data.h (struct tui_data_element): Remove.
3189 (union tui_which_element) <data>: Remove.
3190 <data_window>: Change type.
3191 (struct tui_data_item_window): New.
3192 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3193 case. Add assert.
3194 (~tui_data_item_window): New destructor.
3195 (free_content_elements): Remove DATA_ITEM_WIN case.
3196
d2802c33
TT
31972019-06-25 Tom Tromey <tom@tromey.com>
3198
3199 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3200 Remove.
3201
dd835f8b
TT
32022019-06-25 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-data.h (struct tui_command_element): Remove.
3205 (union tui_which_element) <command>: Remove.
3206 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3207 assert.
3208 (free_content_elements): Remove CMD_WIN case.
3209
bd7db367
TT
32102019-06-25 Tom Tromey <tom@tromey.com>
3211
3212 * tui/tui-layout.c (tui_set_layout): Update.
3213 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3214 * tui/tui-data.c (layout_def): Update.
3215
3add462f
TT
32162019-06-25 Tom Tromey <tom@tromey.com>
3217
3218 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3219 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3220 (tui_source_window_base::set_new_height): Update.
3221 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3222 Update.
3223 (tui_set_locator_fullname, tui_set_locator_info)
3224 (tui_show_frame_info): Update.
3225 * tui/tui-source.c (tui_set_source_content)
3226 (tui_source_is_displayed): Update.
3227 * tui/tui-layout.c (show_source_disasm_command, show_data)
3228 (show_source_or_disasm_and_command): Update.
3229 * tui/tui-disasm.c (tui_set_disassem_content)
3230 (tui_get_begin_asm_address): Update.
3231 * tui/tui-data.h (struct tui_locator_element): Remove.
3232 (union tui_which_element) <locator>: Remove.
3233 (struct tui_locator_window): New.
3234 (tui_locator_win_info_ptr): Change return type.
3235 * tui/tui-data.c (_locator): Change type.
3236 (tui_locator_win_info_ptr): Change return type.
3237 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3238 (tui_alloc_content): Add assert.
3239
489e9d8b
TT
32402019-06-25 Tom Tromey <tom@tromey.com>
3241
3242 * tui/tui-winsource.c
3243 (tui_exec_info_window::maybe_allocate_content): New method.
3244 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3245 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3246 (make_source_or_disasm_window): Add cast.
3247 * tui/tui-data.h (union tui_which_element) <simple_string>:
3248 Remove.
3249 (struct tui_source_info): New.
3250 (struct tui_source_window_base) <execution_info>: Change type.
3251 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3252 case, and add assert.
3253 (tui_alloc_content): Add assert.
3254
c3fabb7d
TT
32552019-06-25 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3258 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3259 * tui/tui-data.c (tui_alloc_win_info): Remove.
3260
bbc228ee
TT
32612019-06-25 Tom Tromey <tom@tromey.com>
3262
3263 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3264 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3265 can_highlight.
3266
5fcee43a
TT
32672019-06-25 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3270 make_visible_with_new_height method.
3271 (tui_win_info::make_visible_with_new_height): New method.
3272 (tui_source_window_base::do_make_visible_with_new_height)
3273 (tui_data_window::do_make_visible_with_new_height)
3274 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3275 (make_visible_with_new_height): Remove.
3276 (tui_resize_all, tui_adjust_win_heights): Use
3277 make_visible_with_new_height method.
3278 * tui/tui-data.h (struct tui_win_info)
3279 <do_make_visible_with_new_height, make_visible_with_new_height>:
3280 New methods.
3281 (struct tui_source_window_base, struct tui_data_window)
3282 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3283 methods.
3284
d83f1fe6
TT
32852019-06-25 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3288 method.
3289 (update_tab_width): Call update_tab_width method.
3290 * tui/tui-data.h (struct tui_win_info)
3291 (struct tui_source_window_base) <update_tab_width>: New methods.
3292
17374de4
TT
32932019-06-25 Tom Tromey <tom@tromey.com>
3294
3295 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3296 parameter.
3297 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3298 parameter.
3299 (tui_gen_win_info::make_visible): Update.
3300 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3301 parameter.
3302 * tui/tui-data.h (enum tui_box): New enum.
3303 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3304
f936bca2
TT
33052019-06-25 Tom Tromey <tom@tromey.com>
3306
3307 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3308 init_and_make_win for EXEC_INFO_WIN.
3309 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3310 longer inline.
3311 (struct tui_win_info) <~tui_win_info>: Inline.
3312 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3313 Don't declare.
3314 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3315 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3316 Remove.
3317 (tui_initialize_static_data): Update.
3318 (~tui_gen_win_info): Handle more cleanup here.
3319 (~tui_source_window_base): Delete "execution_info".
3320 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3321
d6ba6a11
TT
33222019-06-25 Tom Tromey <tom@tromey.com>
3323
3324 * tui/tui-layout.c (make_command_window): Don't set
3325 can_highlight.
3326 (show_source_disasm_command): Call the reset method.
3327 (show_data): Don't set can_highlight. Call the reset method.
3328 (tui_gen_win_info::reset): Rename from init_gen_win_info
3329 (init_and_make_win): Simplify. Return tui_gen_win_info.
3330 (show_source_or_disasm_and_command): Call the reset method.
3331 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3332 (struct tui_cmd_window): Set can_highlight.
3333
48a3bd16
TT
33342019-06-25 Tom Tromey <tom@tromey.com>
3335
3336 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3337 from make_visible.
3338 (tui_make_visible, tui_make_invisible): Rewrite.
3339 (tui_win_info::make_visible): Remove.
3340 (tui_source_window_base::make_visible): Update.
3341 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3342 method. Moved from...
3343 (struct tui_win_info) <make_visible>: ...here.
3344
c3bd716f
TT
33452019-06-25 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-winsource.c
3348 (tui_source_window_base::do_scroll_horizontal): Remove direction
3349 parameter.
3350 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3351 direction parameter.
3352 * tui/tui-win.c (tui_win_info::forward_scroll)
3353 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3354 (tui_win_info::right_scroll): Update.
3355 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3356 direction parameter.
3357 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3358 direction parameter.
3359 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3360 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3361 Remove direction parameter.
3362 (struct tui_source_window_base, struct tui_source_window)
3363 (struct tui_disasm_window, struct tui_data_window)
3364 (struct tui_cmd_window): Update.
3365
21c32dca
TT
33662019-06-25 Tom Tromey <tom@tromey.com>
3367
3368 * tui/tui-winsource.h (tui_set_exec_info_content)
3369 (tui_show_exec_info_content, tui_erase_exec_info_content)
3370 (tui_clear_exec_info_content, tui_update_exec_info): Change
3371 argument to tui_source_window_base.
3372 * tui/tui-winsource.c (tui_set_exec_info_content)
3373 (tui_show_exec_info_content, tui_erase_exec_info_content)
3374 (tui_clear_exec_info_content, tui_update_exec_info): Change
3375 argument to tui_source_window_base.
3376
73fbdc65
TT
33772019-06-25 Tom Tromey <tom@tromey.com>
3378
3379 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3380 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3381
33325343
TT
33822019-06-25 Tom Tromey <tom@tromey.com>
3383
3384 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3385 check.
3386
29d2c474
TT
33872019-06-25 Tom Tromey <tom@tromey.com>
3388
3389 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3390 type to void.
3391 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3392 type to void.
3393 * tui/tui-source.c (tui_set_source_content): Update.
3394 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3395
152f3f4b
TT
33962019-06-25 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui-win.c (window_name_completer, tui_set_focus)
3399 (tui_all_windows_info): Use name method.
3400 * tui/tui-data.h (struct tui_gen_win_info)
3401 (struct tui_source_window, struct tui_disasm_window)
3402 (struct tui_data_window, struct tui_cmd_window) <name>: New
3403 method.
3404 (tui_win_name): Don't declare.
3405 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3406 (tui_win_name): Remove.
3407
be4da588
TT
34082019-06-25 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-winsource.h (tui_update_source_window)
3411 (tui_update_source_window_as_is): Change parameter type.
3412 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3413 to be a tui_source_window_base.
3414 (tui_update_source_window_as_is): Likewise.
3415 * tui/tui-win.c (make_visible_with_new_height): Update.
3416
5b81daba
TT
34172019-06-25 Tom Tromey <tom@tromey.com>
3418
3419 * tui/tui-winsource.c (tui_erase_source_content)
3420 (tui_show_source_content, tui_show_exec_info_content)
3421 (tui_erase_exec_info_content): Use refresh_window method.
3422 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3423 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3424 from tui_refresh_win.
3425 (tui_data_window::refresh_window): New method.
3426 (tui_win_info::refresh, tui_source_window_base::refresh)
3427 (tui_refresh_all): Use refresh_window method.
3428 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3429 method.
3430 * tui/tui-regs.c (tui_display_register): Call refresh_window
3431 method.
3432 * tui/tui-layout.c (show_source_disasm_command)
3433 (show_source_or_disasm_and_command): Call refresh_window method.
3434 * tui/tui-data.h (struct tui_gen_win_info)
3435 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3436 New method.
3437
cb2ce893
TT
34382019-06-25 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui.c (tui_rl_other_window, tui_enable)
3441 (tui_is_window_visible, tui_get_command_dimension): Update.
3442 * tui/tui-winsource.c (tui_update_source_window_as_is)
3443 (tui_clear_source_content, tui_erase_source_content)
3444 (tui_show_source_line, tui_source_window_base::refill)
3445 (tui_source_window_base::do_scroll_horizontal)
3446 (tui_source_window_base::set_is_exec_point_at)
3447 (tui_update_breakpoint_info, tui_set_exec_info_content)
3448 (tui_alloc_source_buffer, tui_line_is_displayed)
3449 (tui_addr_is_displayed): Update.
3450 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3451 (tui_check_and_display_highlight_if_needed)
3452 (tui_win_info::make_visible, tui_win_info::refresh)
3453 (tui_refresh_all): Update.
3454 * tui/tui-windata.c (tui_first_data_item_displayed)
3455 (tui_delete_data_content_windows, tui_erase_data_content)
3456 (tui_display_all_data, tui_data_window::refresh_all)
3457 (tui_check_data_values): Update.
3458 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3459 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3460 (tui_win_info::backward_scroll, tui_refresh_all_win)
3461 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3462 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3463 (tui_source_window_base::set_new_height)
3464 (tui_data_window::set_new_height)
3465 (make_invisible_and_set_new_height)
3466 (make_visible_with_new_height, new_height_ok)
3467 (parse_scrolling_args): Update.
3468 * tui/tui-stack.c (tui_show_frame_info): Update.
3469 * tui/tui-source.c (tui_set_source_content)
3470 (tui_set_source_content_nil, tui_source_is_displayed)
3471 (tui_source_window::do_scroll_vertical): Update.
3472 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3473 (tui_display_registers_from, tui_display_reg_element_at_line)
3474 (tui_check_register_values, tui_reg_command): Update.
3475 * tui/tui-layout.c (tui_default_win_height)
3476 (show_source_disasm_command, show_data, init_and_make_win)
3477 (show_source_or_disasm_and_command): Update.
3478 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3479 (tui_redisplay_readline, tui_mld_flush)
3480 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3481 (tui_getc): Update.
3482 * tui/tui-disasm.c (tui_set_disassem_content)
3483 (tui_disasm_window::do_scroll_vertical): Update.
3484 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3485 Now virtual.
3486 (struct tui_win_info): Derive from tui_gen_win_info.
3487 <~tui_win_info>: Mark as override.
3488 <generic>: Remove member.
3489 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3490 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3491 (~tui_data_window, ~tui_win_info)
3492 (tui_free_all_source_wins_content): Update.
3493 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3494
ab313b35
TT
34952019-06-25 Tom Tromey <tom@tromey.com>
3496
3497 * tui/tui-layout.c (init_and_make_win): Use new.
3498 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3499 destructor, initializers.
3500 (tui_alloc_generic_win_info): Don't declare.
3501 * tui/tui-data.c (_locator): Add argument to constructor.
3502 (source_win, disasm_win): New globals.
3503 (exec_info): Remove.
3504 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3505 Update.
3506 (tui_alloc_generic_win_info): Remove.
3507 (init_content_element): Use new.
3508 (tui_win_info::tui_win_info): Update.
3509 (free_content_elements) <case DATA_WIN>: Use delete.
3510
dc2c33e4
TT
35112019-06-25 Tom Tromey <tom@tromey.com>
3512
3513 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3514 * tui/tui-windata.c (tui_first_data_item_displayed)
3515 (tui_delete_data_content_windows): Update.
3516 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3517 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3518 (tui_display_registers_from, tui_check_register_values): Update.
3519 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3520 pointer.
3521 * tui/tui-data.c (init_content_element): Update. Allocate the new
3522 window.
3523 (tui_free_data_content): Update.
3524 (free_content_elements) <case DATA_WIN>: Free the window.
3525
214a5cbe
TT
35262019-06-25 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3529 Update.
3530 * tui/tui-layout.c (make_command_window)
3531 (show_source_disasm_command, show_data, init_and_make_win)
3532 (show_source_or_disasm_and_command): Update.
3533 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3534 method.
3535 <can_highight, is_highlighted>: Now bool.
3536 (tui_set_win_highlight): Don't declare.
3537 * tui/tui-data.c (tui_set_win_highlight): Remove.
3538
8e2daf15
TT
35392019-06-25 Tom Tromey <tom@tromey.com>
3540
3541 * tui/tui-wingeneral.c (make_visible): Remove check of window
3542 type.
3543
8903bd8a
TT
35442019-06-25 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-win.c (tui_win_info::max_height)
3547 (tui_cmd_window::max_height): New methods.
3548 (new_height_ok): Call max_height.
3549 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3550 <max_height>: New method.
3551
3f02ce1e
TT
35522019-06-25 Tom Tromey <tom@tromey.com>
3553
3554 * tui/tui-win.c (tui_source_window_base::set_new_height)
3555 (tui_data_window::set_new_height): New methods.
3556 (make_invisible_and_set_new_height): Call set_new_height method.
3557 * tui/tui-data.h (struct tui_win_info)
3558 (struct tui_source_window_base, struct tui_data_window)
3559 <set_new_height>: New method.
3560
1825f487
TT
35612019-06-25 Tom Tromey <tom@tromey.com>
3562
3563 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3564 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3565 tui_refresh_data_win.
3566 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3567 method.
3568 (tui_refresh_all_win): Call the refresh_all method.
3569 (tui_set_focus): Likewise.
3570 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3571 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3572 Likewise.
3573
ad54d15b
TT
35742019-06-25 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-winsource.h (tui_refill_source_window)
3577 (tui_set_is_exec_point_at): Don't declare.
3578 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3579 (tui_source_window_base::refill): Rename from
3580 tui_refill_source_window.
3581 (tui_source_window_base::do_scroll_horizontal): Update.
3582 (tui_source_window_base::set_is_exec_point_at): Rename from
3583 tui_set_is_exec_point_at.
3584 (tui_update_all_breakpoint_info): Update.
3585 * tui/tui-stack.c (tui_show_frame_info): Update.
3586 * tui/tui-layout.c (show_data): Add cast.
3587 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3588 * tui/tui-data.h (struct tui_source_window_base) <refill,
3589 set_is_exec_point_at>: New methods.
3590 (tui_source_windows, tui_add_to_source_windows): Update types.
3591 (tui_add_to_source_windows): Remove redundant declaration.
3592 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3593 (tui_source_windows): Change return type.
3594 (tui_clear_source_windows_detail): Update.
3595 (tui_add_to_source_windows): Change type of parameter.
3596 (tui_free_all_source_wins_content): Update.
3597
2042b506
TT
35982019-06-25 Tom Tromey <tom@tromey.com>
3599
3600 * tui/tui-wingeneral.c (tui_win_info::refresh)
3601 (tui_source_window_base::refresh): New methods.
3602 (tui_refresh_all): Call the refresh method.
3603 * tui/tui-data.h (struct tui_win_info)
3604 (struct tui_source_window_base) <refresh>: New method.
3605
56122977
TT
36062019-06-25 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui.h (tui_is_window_visible): Return bool.
3609 * tui/tui.c (tui_is_window_visible): Return bool.
3610 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3611 (tui_make_visible, tui_make_invisible)
3612 (tui_win_info::make_visible)
3613 (tui_source_window_base::make_visible, make_all_visible)
3614 (tui_make_all_visible, tui_make_all_invisible): Update.
3615 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3616 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3617 bool.
3618 (struct tui_win_info, struct tui_source_window_base)
3619 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3620 * tui/tui-data.c (tui_init_generic_part): Update.
3621
cda37efb
TT
36222019-06-25 Tom Tromey <tom@tromey.com>
3623
3624 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3625 (tui_source_window_base::make_visible): New methods.
3626 (make_all_visible): Make method call.
3627 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3628 (struct tui_source_window_base, struct tui_cmd_window): Override
3629 make_visible.
3630 (tui_win_is_source_type): Don't declare.
3631 * tui/tui-data.c (tui_win_is_source_type): Remove.
3632
6a0ee02c
TT
36332019-06-25 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3636 NULL check.
3637
63901aec
TT
36382019-06-25 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3641 Inline constructor. Add initializers for members.
3642 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3643 constructors; now inline in class.
3644
ceb13a13
TT
36452019-06-25 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-regs.c (tui_show_registers): Update.
3648 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3649 bool.
3650 * tui/tui-data.c (tui_data_window::clear_detail)
3651 (tui_data_window): Update.
3652
238eb706
TT
36532019-06-25 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-windata.c (tui_display_all_data)
3656 (tui_display_data_from_line, tui_display_data_from)
3657 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3658 Update.
3659 * tui/tui-regs.c (tui_last_regs_line_no)
3660 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3661 (tui_show_registers, tui_show_register_group)
3662 (tui_display_registers_from, tui_display_reg_element_at_line)
3663 (tui_display_registers_from_line, tui_check_register_values)
3664 (tui_reg_next, tui_reg_prev): Update.
3665 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3666 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3667 tui_data_window.
3668 (struct tui_win_info) <detail>: Remove. Add new fields from
3669 tui_data_info.
3670 (TUI_DATA_WIN): Add cast.
3671 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3672 (~tui_data_window): Simplify.
3673
81491aa0
TT
36742019-06-25 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-layout.c (show_source_disasm_command)
3677 (show_source_or_disasm_and_command): Update.
3678 * tui/tui-io.c (update_cmdwin_start_line)
3679 (tui_redisplay_readline): Update.
3680 * tui/tui-data.h (struct tui_command_info): Remove.
3681 (struct tui_win_info) <detail>: Remove command_info member.
3682 (struct tui_data_window) <start_line>: New member, from
3683 tui_command_info.
3684 (TUI_CMD_WIN): Add casts.
3685
e6e41501
TT
36862019-06-25 Tom Tromey <tom@tromey.com>
3687
3688 * tui/tui-winsource.c (tui_update_source_window)
3689 (tui_refill_source_window)
3690 (tui_source_window_base::do_scroll_horizontal)
3691 (tui_update_breakpoint_info, tui_set_exec_info_content)
3692 (tui_show_exec_info_content, tui_erase_exec_info_content)
3693 (tui_clear_exec_info_content): Update.
3694 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3695 Update.
3696 * tui/tui-win.c (make_invisible_and_set_new_height)
3697 (make_visible_with_new_height): Update.
3698 * tui/tui-source.c (tui_set_source_content)
3699 (tui_show_symtab_source): Update.
3700 * tui/tui-layout.c (extract_display_start_addr)
3701 (show_source_disasm_command, show_data)
3702 (make_source_or_disasm_window)
3703 (show_source_or_disasm_and_command): Update.
3704 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3705 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3706 "gdbarch".
3707 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3708 to tui_source_window_base.
3709 (struct tui_win_info) <detail>: Remove source_info member.
3710 (struct tui_source_window_base) <has_locator>: Inline.
3711 Move contents from tui_source_info; rename has_locator member to
3712 m_has_locator.
3713 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3714 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3715 header file.
3716 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3717 Simplify.
3718 (tui_free_all_source_wins_content): Cast to
3719 tui_source_window_base.
3720
44f0e208
TT
37212019-06-25 Tom Tromey <tom@tromey.com>
3722
3723 * tui/tui-win.c (make_invisible_and_set_new_height)
3724 (make_visible_with_new_height): Call has_locator method.
3725 * tui/tui-layout.c (show_source_disasm_command, show_data)
3726 (show_source_or_disasm_and_command): Update for bool change.
3727 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3728 (tui_win_info) <has_locator>: New method.
3729 (struct tui_source_window_base) <has_locator>: New method.
3730 (tui_win_has_locator): Don't declare.
3731 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3732 from tui_win_has_locator.
3733 (tui_source_window_base): Use false, not FALSE.
3734
7778b912
TT
37352019-06-25 Tom Tromey <tom@tromey.com>
3736
3737 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3738 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3739 clear_detail method directly.
3740 (tui_clear_win_detail): Remove.
3741
f83d391c
TT
37422019-06-25 Tom Tromey <tom@tromey.com>
3743
3744 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3745 "this", not TUI_DISASM_WIN.
3746
13446e05
TT
37472019-06-25 Tom Tromey <tom@tromey.com>
3748
3749 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3750 declare.
3751 * tui/tui-winsource.c
3752 (tui_source_window_base::do_scroll_horizontal): Rename from
3753 tui_horizontal_source_scroll.
3754 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3755 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3756 from tui_vertical_data_scroll.
3757 * tui/tui-win.h (tui_scroll): Don't declare.
3758 * tui/tui-win.c (tui_win_info::forward_scroll)
3759 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3760 (tui_win_info::right_scroll): Rename and update.
3761 (tui_scroll_forward_command, tui_scroll_backward_command)
3762 (tui_scroll_left_command, tui_scroll_right_command): Update.
3763 (tui_scroll): Remove.
3764 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3765 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3766 from tui_vertical_source_scroll.
3767 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3768 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3769 from tui_vertical_disassem_scroll.
3770 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3771 do_scroll_horizontal>: New methods.
3772 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3773 Likewise.
3774 (struct tui_source_window_base): Add do_scroll_horizontal.
3775 (struct tui_source_window, struct tui_disasm_window): Add
3776 do_scroll_vertical.
3777 (struct tui_data_window, struct tui_cmd_window): Add
3778 do_scroll_horizontal and do_scroll_vertical.
3779 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3780
5cf82909
TT
37812019-06-25 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-data.h (struct tui_source_window_base): New struct.
3784 (struct tui_source_window): Derive from tui_source_window_base.
3785 (struct tui_disasm_window): New struct.
3786 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3787 from tui_source_window::clear_detail.
3788 (tui_source_window_base): Rename from tui_source_window.
3789 (~tui_source_window_base): Rename from ~tui_source_window.
3790 (tui_alloc_win_info): Create a tui_disasm_window.
3791
ee1d42d6
TT
37922019-06-25 Tom Tromey <tom@tromey.com>
3793
3794 * tui/tui-data.h (struct tui_source_window)
3795 (struct tui_data_window): Declare destructors.
3796 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3797 destructors.
3798 (tui_win_info): Simplify.
3799
b4eb2452
TT
38002019-06-25 Tom Tromey <tom@tromey.com>
3801
3802 * tui/tui-winsource.c (tui_display_main)
3803 (tui_update_source_windows_with_addr)
3804 (tui_update_all_breakpoint_info): Update.
3805 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3806 (new_height_ok, parse_scrolling_args): Update.
3807 * tui/tui-stack.c (tui_show_frame_info): Update.
3808 * tui/tui-data.h (struct tui_list): Remove.
3809 (tui_source_windows): Return a reference to a std::vector.
3810 * tui/tui-data.c (source_windows): Now a std::vector.
3811 (tui_source_windows): Change return type.
3812 (tui_clear_source_windows): Rewrite.
3813 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3814 (tui_free_all_source_wins_content): Rewrite.
3815
8761a91b
TT
38162019-06-25 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3819 (struct tui_data_window, struct tui_cmd_window): Declare
3820 clear_detail method.
3821 * tui/tui-data.c (tui_source_window::clear_detail)
3822 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3823 methods.
3824 (tui_clear_win_detail): Simplify.
3825
0ed69eda
TT
38262019-06-25 Tom Tromey <tom@tromey.com>
3827
3828 * tui/tui-layout.c (make_source_window, make_disasm_window)
3829 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3830 Return the new window.
3831 (show_source_disasm_command, show_data)
3832 (show_source_or_disasm_and_command): Update.
3833
82432e10
TT
38342019-06-25 Tom Tromey <tom@tromey.com>
3835
3836 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3837 parameter. Return the new window.
3838 (show_source_disasm_command): Update and remove NULL check.
3839 (show_source_or_disasm_and_command): Update.
3840
ec328aa5
TT
38412019-06-25 Tom Tromey <tom@tromey.com>
3842
3843 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3844
33b906ab
TT
38452019-06-25 Tom Tromey <tom@tromey.com>
3846
3847 * tui/tui-data.h (struct tui_win_info): Make constructor
3848 protected. Make destructor virtual. Add initializers.
3849 (tui_source_window, tui_data_window, tui_cmd_window): New
3850 classes.
3851 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3852 constructor. Add "type" parameter.
3853 (tui_source_window, tui_data_window, tui_cmd_window): New
3854 constructors.
3855 (tui_alloc_win_info): Instantiate the appropriate subclass.
3856
e7e11af4
TT
38572019-06-25 Tom Tromey <tom@tromey.com>
3858
3859 * tui/tui-win.c (tui_resize_all): Use delete.
3860 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3861 destructor.
3862 (tui_free_window): Don't declare.
3863 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3864 Update.
3865
6792b55e
TT
38662019-06-25 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-data.h (struct tui_win_info): Add constructor.
3869 * tui/tui-data.c (tui_alloc_win_info): Use new.
3870 (tui_free_window): Use delete.
3871
f95675e1
TT
38722019-06-22 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3875 declare.
3876 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3877
5bff081c
TT
38782019-06-22 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3881 declare.
3882 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3883
47e3f474
TV
38842019-06-22 Tom de Vries <tdevries@suse.de>
3885
3886 * dwarf2read.c (create_addrmap_from_aranges)
3887 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3888 instead of '%zu'.
3889
fd5866f6
SM
38902019-06-21 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2read.h (dwarf2_section_info_def): Remove.
3893 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3894 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3895 std::vector<dwarf2_section_info>.
3896 (struct dwo_file) <~dwo_file>: Remove.
3897 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3898 types field.
3899 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3900 (dwarf2_read_debug_names): Likewise.
3901 (create_debug_types_hash_table): Change parameter type to
3902 array_view, adjust code accordingly.
3903 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3904 (partial_die_info::fixup): Likewise.
3905 (determine_prefix): Likewise.
3906 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3907
fb1eb2f9
SM
39082019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3909
3910 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3911 gdb_bfd_ref_ptr.
3912 <~dwo_file>: Remove call to gdb_bfd_unref.
3913 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3914 gdb_bfd_ref_ptr::get.
3915
51ac9db5
SM
39162019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3917
3918 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3919 type to htab_up.
3920 * dwarf2read.c (struct dwo_file): Initialize fields.
3921 <~dwo_file>: New.
3922 (free_dwo_file): Remove, move content to ~dwo_file.
3923 (struct dwo_file_deleter): Remove.
3924 (dwo_file_up>: Remove custom deleter.
3925 (free_dwo_files): Remove.
3926 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3927 dwo_files.
3928 (process_skeletonless_type_units): Call unique_ptr::get.
3929 (allocate_dwo_file_hash_table): Add deleter to created hash
3930 table. Change return type to htab_up.
3931 (lookup_dwo_file_slot): Don't memset dwo_file, call
3932 unique_ptr::get.
3933 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3934 (create_dwo_unit_in_dwp_v2): Likewise.
3935 (open_and_init_dwo_file): Likewise.
3936 (free_dwo_file_from_slot): Remove.
3937
dc4ccb6f
SM
39382019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * dwarf2read.h (struct dwarf2_section_info) <readin,
3941 is_virtual>: Change type to bool.
3942 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3943 true instead of 1.
3944
e6a1c5cb
TT
39452019-06-19 Tom Tromey <tom@tromey.com>
3946
3947 * tui/tui-data.h (tui_init_content_element): Don't declare.
3948
6f6ffbeb
TT
39492019-06-19 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-data.h (tui_init_win_info): Don't declare.
3952
f23f598e
TV
39532019-06-19 Tom de Vries <tdevries@suse.de>
3954
3955 * dwarf2read.h (abstract_to_concrete): Change type to
3956 std::unordered_map<sect_offset, std::vector<sect_offset>,
3957 gdb::hash_enum<sect_offset>>.
3958
680e1bee
TT
39592019-06-19 Tom Tromey <tromey@adacore.com>
3960
3961 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3962 EVAL_AVOID_SIDE_EFFECTS specially.
3963
dcf37923
TT
39642019-06-19 Tom Tromey <tromey@adacore.com>
3965
3966 * source-cache.c (highlighter): New global.
3967 (source_cache::get_source_lines): Create a highlighter on demand.
3968
494986d5
AB
39692019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * defs.h (deprecated_interactive_hook): Delete declaration.
3972 * interps.c (clear_interpreter_hooks): Remove use of
3973 deprecated_interactive_hook.
3974 * top.c (deprecated_interactive_hook): Delete definition.
3975 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3976
3360b6e7
TV
39772019-06-18 Tom de Vries <tdevries@suse.de>
3978
3979 PR gdb/24515
3980 * dwarf2read.h (abstract_to_concrete): Change type from
3981 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3982 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3983 * dwarf2read.c (read_variable): Update.
3984 (dwarf2_fetch_die_loc_sect_off): Update.
3985
310b3441
TV
39862019-06-17 Tom de Vries <tdevries@suse.de>
3987
3988 PR gdb/24617
3989 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3990 accessing parent[parent_len - 1].
3991
ba9777be
PP
39922019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3993
3994 PR gdb/24364
3995 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3996 call dtrace_process_dof with NULL dof.
3997
2b9f6e89
TV
39982019-06-16 Tom de Vries <tdevries@suse.de>
3999
4000 PR gdb/24445
4001 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4002
431b3ead
TT
40032019-06-16 Tom Tromey <tom@tromey.com>
4004
4005 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4006 (make_all_visible): Use address of member.
4007
d04b44a1
TT
40082019-06-16 Tom Tromey <tom@tromey.com>
4009
4010 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4011 (tui_free_window, free_content, free_content_elements): Remove
4012 unnecessary cast.
4013 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4014 cast.
4015 * tui/tui-regs.c (tui_show_register_group)
4016 (tui_display_registers_from, tui_display_reg_element_at_line):
4017 Remove unnecessary cast.
4018
bf5142e7
AB
40192019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4020
4021 * linux-nat.c (normal_mask): Delete.
4022 (_initialize_linux_nat): Don't initialise normal_mask.
4023
c4973306
SM
40242019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4025
4026 PR gdb/24445
4027 * dwarf-index-write.h (write_psymtabs_to_index): Add
4028 dwz_basename parameter.
4029 * dwarf-index-write.c (write_gdbindex): Move file writing to
4030 write_gdbindex_1. Change return type void.
4031 (assert_file_size): Move up, remove filename parameter.
4032 (write_gdbindex_1): New function.
4033 (write_debug_names): Change return type to void, call
4034 assert_file_size.
4035 (struct index_wip_file): New struct.
4036 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4037 file logic to index_wip_file. Write index for dwz file if
4038 needed.
4039 (save_gdb_index_command): Pass basename of dwz file, if present.
4040 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4041 build-id of dwz file, if present.
4042 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4043 (dwarf2_get_dwz_file): Likewise.
4044 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4045 (dwarf2_get_dwz_file): Likewise.
4046
395f9c91
TT
40472019-06-16 Tom Tromey <tom@tromey.com>
4048
4049 * coffread.c (process_coff_symbol): Use xstrdup.
4050 * value.c (create_internalvar): Use xstrdup.
4051
cafb3438
TT
40522019-06-16 Tom Tromey <tom@tromey.com>
4053
4054 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4055 * breakpoint.c (stopin_command, stopat_command)
4056 (until_break_command, decode_location_default): Remove unnecessary
4057 cast.
4058 * utils.c (subset_compare): Remove unnecessary cast.
4059 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4060 cast.
4061 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4062 cast.
4063 * infcmd.c (path_command): Remove unnecessary cast.
4064 * coffread.c (decode_type): Remove unnecessary cast.
4065 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4066 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4067 * tui/tui-stack.c (tui_show_locator_content)
4068 (tui_show_frame_info): Remove unnecessary cast.
4069 * tui/tui-win.c (tui_scroll_forward_command)
4070 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4071 (parse_scrolling_args): Remove unnecessary cast.
4072 * tui/tui-data.c (init_win_info, tui_del_window)
4073 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4074 (free_content_elements): Remove unnecessary cast.
4075 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4076 unnecessary cast.
4077 * tui/tui-source.c (tui_set_source_content)
4078 (tui_vertical_source_scroll): Remove unnecessary cast.
4079 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4080 cast.
4081 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4082 * tui/tui-regs.c (tui_display_registers_from)
4083 (tui_display_register): Remove unnecessary cast.
4084 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4085 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4086 (make_visible): Remove unnecessary cast.
4087 * tui/tui-winsource.c (tui_erase_source_content)
4088 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4089 unnecessary cast.
4090 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4091 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4092 * stabsread.c (read_type, read_array_type, read_range_type):
4093 Remove unnecessary cast.
4094 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4095 (parse_symbol, parse_type, upgrade_type, parse_external)
4096 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4097 unnecessary cast.
4098 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4099
730ead81
TT
41002019-06-16 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui-data.c (tui_alloc_generic_win_info)
4103 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4104 checks.
4105
584a927c
AB
41062019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4107 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * f-typeprint.c (f_print_type): Don't return early for not
4110 associated or not allocated types.
4111 (f_type_print_varspec_suffix): Add print_rank parameter and print
4112 ranks of array types in case they dangling.
4113 (f_type_print_base): Add print_rank parameter.
4114
30056ea0
AB
41152019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4116
4117 * NEWS: Mention new MI commands.
4118 * break-catch-throw.c (enum exception_event_kind): Move to
4119 breakpoint.h.
4120 (print_mention_exception_catchpoint): Output text as a single
4121 message.
4122 (catch_exception_command_1): Rename to...
4123 (catch_exception_event): ...this, make non-static, update header
4124 command, and change some parameter types.
4125 (catch_catch_command): Update for changes to
4126 catch_exception_command_1.
4127 (catch_throw_command): Likewise.
4128 (catch_rethrow_command): Likewise.
4129 * breakpoint.c (enum exception_event_kind): Delete.
4130 * breakpoint.h (enum exception_event_kind): Moved here from
4131 break-catch-throw.c.
4132 (catch_exception_event): Declare.
4133 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4134 (mi_cmd_catch_throw): New function.
4135 (mi_cmd_catch_rethrow): New function.
4136 (mi_cmd_catch_catch): New function.
4137 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4138 'catch-catch' entries.
4139 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4140 (mi_cmd_catch_rethrow): Declare.
4141 (mi_cmd_catch_catch): Declare.
4142
ec8e2b6d
AB
41432019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4144
4145 * annotate.c (annotate_source_line): Change return type to void,
4146 update implementation to match.
4147 * annotate.h (annotate_source_line): Change return type to void,
4148 update header comment.
4149 * stack.c (print_frame_info): Don't change what frame information
4150 is printed based on whether annotations are on or not.
4151
0d3abd8c
AB
41522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4155 (annotate_source): Make static.
4156 (annotate_source_line): Moved from source.c and renamed from
4157 identify_source_line. Update the return type.
4158 * annotate.h (annotate_source): Delete declaration.
4159 (annotate_source_line): Declaration moved from source.h, and
4160 renamed from identify_source_line. Return type updated.
4161 * source.c (identify_source_line): Moved to annotate.c and renamed
4162 to annotate_source_line.
4163 (info_line_command): Remove check of annotation_level.
4164 * source.h (identify_source_line): Move declaration to annotate.h
4165 and rename to annotate_source_line.
4166 * stack.c: Add 'annotate.h' include.
4167 (print_frame_info): Remove check of annotation_level before
4168 calling annotate_source_line.
4169
00df30ae
AB
41702019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4171
4172 * source-cache.c (source_cache::get_plain_source_lines): Use
4173 open_source_file_with_line_charpos instead of just
4174 open_source_file, remove call to find_source_lines.
4175 (source_cache::get_source_lines): Likewise.
4176 * source.c (find_source_lines): Make static.
4177 (get_filename_and_charpos): Renamed into...
4178 (open_source_file_with_line_charpos): ..this along with changes to
4179 return a scoped_fd, and some other minor clean ups.
4180 (identify_source_line): Use open_source_file_with_line_charpos.
4181 (search_command_helper): Use open_source_file_with_line_charpos
4182 instead of just open_source_file, remove call to
4183 find_source_lines.
4184 * source.h (open_source_file_with_line_charpos): Declare new
4185 function.
4186 (find_source_lines): Delete declaration.
4187
afda45a2
AB
41882019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * source.c (get_filename_and_charpos): Remove fullname
4191 parameter.
4192 (identify_source_line): Update call to get_filename_and_charpos.
4193
0735b091
TT
41942019-06-14 Tom Tromey <tromey@adacore.com>
4195
4196 PR gdb/24502:
4197 * ui-style.h (skip_ansi_escape): Update comment.
4198 * ui-file.h (class no_terminal_escape_file): New class.
4199 * ui-file.c (no_terminal_escape_file::write)
4200 (no_terminal_escape_file::puts): New methods.
4201 * cli/cli-logging.c (handle_redirections): Use
4202 no_terminal_escape_file.
4203
52ce35e2
TT
42042019-06-14 Tom Tromey <tromey@adacore.com>
4205
4206 * NEWS: Move convenience variable news above Python news.
4207
73cc7272
TT
42082019-06-14 Tom Tromey <tom@tromey.com>
4209
4210 * gnulib: Move directory to top-level.
4211 * configure.ac: Don't configure gnulib.
4212 * configure: Rebuild.
4213 * common/common-defs.h: Use new path to gnulib.
4214 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4215 (GNULIB_H): Remove.
4216 (INCGNU): Look in new gnulib location.
4217 (HFILES_NO_SRCDIR): Remove gnulib files.
4218 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4219 (generated_files): Remove GNULIB_H.
4220 ($(LIBGNU), all-lib): Remove targets.
4221 (distclean): Don't mention GNULIB_BUILDDIR.
4222 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4223
f5686554
TT
42242019-06-14 Tom Tromey <tromey@adacore.com>
4225
4226 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4227 Warn if symbol file does not provide any symbols.
4228
a0c1ffed
TT
42292019-06-14 Tom Tromey <tromey@adacore.com>
4230
4231 * source.c (find_and_open_source): Respect basenames_may_differ.
4232
7c39e397
AB
42332019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * annotate.c (annotate_breakpoints_invalid): Make use of
4236 scoped_restore_terminal_state.
4237 (annotate_frames_invalid): Likewise.
4238
f411722c
TT
42392019-06-14 Tom Tromey <tromey@adacore.com>
4240
4241 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4242 allow assignment to an internalvar.
4243
4268ec18
TT
42442019-06-14 Tom Tromey <tromey@adacore.com>
4245
4246 * ada-lex.l: Allow "_" in attribute names.
4247
abdb711e
TT
42482019-06-14 Tom Tromey <tromey@adacore.com>
4249
4250 PR gdb/24653:
4251 * regcache.c (registers_changed): Don't call alloca.
4252 * top.c (execute_command): Don't call alloca.
4253
4c048731
PA
42542019-06-13 Pedro Alves <palves@redhat.com>
4255
4256 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4257 'expression'. When parsing an expression, error out if there's
4258 junk after "unlimited".
4259 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4260 (do_set_command): Adjust calls to is_unlimited_literal.
4261
66eb1ed3
PA
42622019-06-13 Pedro Alves <palves@redhat.com>
4263
4264 * compile/compile.c (make_compile_options_def_group): Add braces
4265 around array_view initializer.
4266 * thread.c (make_thread_apply_all_options_def_group)
4267 (make_thread_apply_all_options_def_group): Likewise.
4268
3345721a
PA
42692019-06-13 Pedro Alves <palves@redhat.com>
4270
4271 * NEWS (New commands): Mention "maint test-options
4272 require-delimiter", "maint test-options unknown-is-error", "maint
4273 test-options unknown-is-operand" and "maint show
4274 test-options-completion-result".
4275 (New command options, command completion): New section.
4276 (Completion improvements): New section.
4277 Mention that you can abbreviate "unlimited".
4278
6206060d
PA
42792019-06-13 Pedro Alves <palves@redhat.com>
4280
4281 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4282 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4283 * unittests/cli-utils-selftests.c (test_parse_flags)
4284 (test_parse_flags_qcs): Delete.
4285 (test_cli_utils): Don't call deleted functions.
4286
6665660a
PA
42872019-06-13 Pedro Alves <palves@redhat.com>
4288
4289 * thread.c: Include "cli/cli-option.h".
4290 (tp_array_compar_ascending): Global.
4291 (tp_array_compar): Delete function.
4292 (tp_array_compar_ascending, tp_array_compar_descending): New
4293 functions.
4294 (ascending_option_def, qcs_flag_option_def)
4295 (thr_qcs_flags_option_defs)
4296 (make_thread_apply_all_options_def_group)
4297 (make_thread_apply_options_def_group): New.
4298 (thread_apply_all_command): Use gdb::option::process_options.
4299 (thread_apply_command_completer)
4300 (thread_apply_all_command_completer): New.
4301 (thread_apply_command): Use gdb::option::process_options.
4302 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4303 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4304 to generate help text of "thread apply". Adjust "taas"'s help.
4305 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4306 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4307
f7e13587
PA
43082019-06-13 Pedro Alves <palves@redhat.com>
4309
4310 * thread.c (thread_apply_command): Check for invalid TID with
4311 isdigit instead of !isalpha.
4312
5d707134
PA
43132019-06-13 Pedro Alves <palves@redhat.com>
4314
4315 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4316 (validate_flags_qcs): New.
4317 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4318 (validate_flags_qcs): Declare.
4319 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4320 (make_frame_apply_options_def_group): New.
4321 (frame_apply_command_count): Process options with
4322 gdb::option::process_options.
4323 (frame_apply_completer): New.
4324 (frame_apply_level_completer, frame_apply_all_completer)
4325 (frame_apply_completer): New.
4326 (_initialize_stack): Update help of "frame apply", "frame apply
4327 level", "frame apply all" and "faas" to mention supported options
4328 and install command completers.
4329 * stack.h (frame_apply_all_completer): Declare.
4330 * thread.c: Include "stack.h".
4331 (tfaas_command): Add "--".
4332 (_initialize_thread): Update help "tfaas" to mention supported
4333 options and install command completer.
4334
272d4594
PA
43352019-06-13 Pedro Alves <palves@redhat.com>
4336
4337 * completer.c (complete_nested_command_line): New.
4338 (gdb_completion_word_break_characters_throw): Add assertion.
4339 * completer.h (complete_nested_command_line): Declare.
4340
90a1ef87
PA
43412019-06-13 Pedro Alves <palves@redhat.com>
4342
4343 * stack.c (parse_backtrace_qualifiers): New.
4344 (backtrace_command): Use it.
4345 (backtrace_command_completer): Complete on qualifiers.
4346
d4c16835
PA
43472019-06-13 Pedro Alves <palves@redhat.com>
4348
4349 * frame.c: Include "cli/cli-option.h.
4350 (user_set_backtrace_options): New.
4351 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4352 Delete.
4353 (get_prev_frame): Adjust.
4354 (boolean_option_def, uinteger_option_def)
4355 (set_backtrace_option_defs): New.
4356 (_initialize_frame): Adjust and use
4357 gdb::option::add_setshow_cmds_for_options to install "set
4358 backtrace past-main" and "set backtrace past-entry".
4359 * frame.h: Include "cli/cli-option.h".
4360 (struct frame_print_options): Forward declare.
4361 (print_frame_arguments_all, print_frame_arguments_scalars)
4362 (print_frame_arguments_none): Declare.
4363 (print_entry_values): Delete declaration.
4364 (struct frame_print_options, user_frame_print_options): New.
4365 (struct set_backtrace_options): New.
4366 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4367 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4368 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4369 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4370 (list_args_or_locals): Add frame_print_options parameter.
4371 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4372 * python/py-framefilter.c (enumerate_args): Pass down
4373 USER_FRAME_PRINT_OPTIONS.
4374 * stack.c: Include "cli/cli-option.h".
4375 (print_frame_arguments_all, print_frame_arguments_scalars)
4376 (print_frame_arguments_none): Declare.
4377 (print_raw_frame_arguments, print_entry_values): Delete.
4378 (user_frame_print_options): New.
4379 (boolean_option_def, enum_option_def, frame_print_option_defs):
4380 New.
4381 (struct backtrace_cmd_options): New.
4382 (bt_flag_option_def): New.
4383 (backtrace_command_option_defs): New.
4384 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4385 (print_frame_arg, read_frame_arg, print_frame_args)
4386 (print_frame_info, print_frame): Add frame_print_options parameter
4387 and use it.
4388 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4389 (backtrace_command_1): Add frame_print_options and
4390 backtrace_cmd_options parameters and use them.
4391 (make_backtrace_options_def_group): New.
4392 (backtrace_command): Process command options with
4393 gdb::option::process_options.
4394 (backtrace_command_completer): New.
4395 (_initialize_stack): Extend "backtrace"'s help to mention
4396 supported options. Install completer for "backtrace".
4397 Install some settings commands with add_setshow_cmds_for_options.
4398
2daf894e
PA
43992019-06-13 Pedro Alves <palves@redhat.com>
4400
4401 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4402 and that "set/show print raw frame-arguments" are now deprecated.
4403
4404 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4405 command.
4406 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4407 * stack.c (_initialize_stack): Install "set/show print
4408 raw-frame-arguments", and deprecate "set/show print raw
4409 frame-arguments".
4410 * valprint.c (_initialize_valprint): Deprecate "set/show print
4411 raw".
4412
e6ed716c
PA
44132019-06-13 Pedro Alves <palves@redhat.com>
4414
4415 * compile/compile.c (struct compile_options): New.
4416 (compile_flag_option_def, compile_command_option_defs)
4417 (make_compile_options_def_group): New.
4418 (compile_file_command): Handle options with
4419 gdb::option::process_options.
4420 (compile_file_command_completer): New function.
4421 (compile_code_command): Handle options with
4422 gdb::option::process_options.
4423 (compile_code_command_completer): New function.
4424 (_initialize_compiler): Install completers for "compile code" and
4425 "compile file". Mention available options in "compile code" and
4426 "compile code"'s help.
4427 * completer.c (advance_to_completion_word): New, factored out from
4428 ...
4429 (advance_to_expression_complete_word_point): ... this.
4430 (advance_to_filename_complete_word_point): New.
4431 * completer.h (advance_to_filename_complete_word_point): New
4432 declaration.
4433
7d8062de
PA
44342019-06-13 Pedro Alves <palves@redhat.com>
4435
4436 * compile/compile.c: Include "cli/cli-option.h".
4437 (compile_print_value): Scope data pointer is now a
4438 value_print_options pointer; adjust.
4439 (compile_print_command): Process options. Scope data pointer is
4440 now a value_print_options pointer; adjust.
4441 (_initialize_compile): Update "compile print"'s help to include
4442 supported options. Install a completer for "compile print".
4443 * cp-valprint.c (show_vtblprint, show_objectprint)
4444 (show_static_field_print): Delete.
4445 (_initialize_cp_valprint): Don't install "set print
4446 static-members", "set print vtbl", "set print object" here.
4447 * printcmd.c: Include "cli/cli-option.h" and
4448 "common/gdb_optional.h".
4449 (print_command_parse_format): Rework to fill in a
4450 value_print_options instead of a format_data.
4451 (print_value): Change parameter type from format_data pointer to
4452 value_print_options reference. Adjust.
4453 (print_command_1): Process options. Adjust to pass down a
4454 value_print_options.
4455 (print_command_completer): New.
4456 (_initialize_printcmd): Install print_command_completer as
4457 handle_brkchars completer for the "print" command. Update
4458 "print"'s help to include supported options.
4459 * valprint.c: Include "cli/cli-option.h".
4460 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4461 here from cp-valprint.c.
4462 (boolean_option_def, uinteger_option_def)
4463 (value_print_option_defs, make_value_print_options_def_group):
4464 New. Use gdb::option::add_setshow_cmds_for_options to install
4465 "set print elements", "set print null-stop", "set print repeats",
4466 "set print pretty", "set print union", "set print array", "set
4467 print address", "set print symbol", "set print array-indexes".
4468 * valprint.h: Include <string> and "cli/cli-option.h".
4469 (make_value_print_options_def_group): Declare.
4470 (print_value): Change parameter type from format_data pointer to
4471 value_print_options reference.
4472 (print_command_completer): Declare.
4473
9d0faba9
PA
44742019-06-13 Pedro Alves <palves@redhat.com>
4475
4476 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4477 (COMMON_SFILES): Add maint-test-settings.c.
4478 * cli/cli-decode.c (boolean_enums): New global, factored out from
4479 ...
4480 (add_setshow_boolean_cmd): ... here.
4481 * cli/cli-decode.h (boolean_enums): Declare.
4482 * cli/cli-option.c: New file.
4483 * cli/cli-option.h: New file.
4484 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4485 factored out from ...
4486 (parse_cli_boolean_value(const char *)): ... this.
4487 (is_unlimited_literal): Change parameter type to pointer to
4488 pointer. Adjust and advance ARG pointer.
4489 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4490 (parse_cli_var_enum): New, factored out from ...
4491 (do_set_command): ... this. Adjust.
4492 * cli/cli-setshow.h (parse_cli_boolean_value)
4493 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4494 (parse_cli_var_enum): Declare.
4495 * cli/cli-utils.c: Include "cli/cli-option.h".
4496 (get_ulongest): New.
4497 * cli/cli-utils.h (get_ulongest): Declare.
4498 (check_for_argument): New overloads.
4499 * maint-test-options.c: New file.
4500
2c722807
PA
45012019-06-13 Pedro Alves <palves@redhat.com>
4502
4503 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4504 parse a range if "-" is at the end of the string.
4505
dee7b4c8
PA
45062019-06-13 Pedro Alves <palves@redhat.com>
4507
4508 * cli/cli-setshow.c (parse_auto_binary_operation)
4509 (parse_cli_boolean_value): Don't allow "o".
4510
dca0f6c0
PA
45112019-06-13 Pedro Alves <palves@redhat.com>
4512
4513 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4514 * NEWS: Mention maint test-settings KIND.
4515 * maint-test-settings.c: New file.
4516
597bf39d
PA
45172019-06-13 Pedro Alves <palves@redhat.com>
4518
4519 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4520 completer.
4521 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4522 "set" completers.
4523
48c410fb
PA
45242019-06-13 Pedro Alves <palves@redhat.com>
4525
4526 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4527 after item.
4528
93bcb043
PA
45292019-06-13 Pedro Alves <palves@redhat.com>
4530
4531 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4532
cbba3ecd
PA
45332019-06-13 Pedro Alves <palves@redhat.com>
4534
4535 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4536 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4537 call.
4538 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4539 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4540 calls.
4541 (check_for_argument): Skip spaces after argument.
4542
b9a3f842
PA
45432019-06-13 Pedro Alves <palves@redhat.com>
4544
4545 * thread.c (thread_apply_command): Adjust TID parsing.
4546 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4547 detected before end of string.
4548 (tid_is_in_list): Error out if LIST is invalid.
4549
3844e605
PA
45502019-06-13 Pedro Alves <palves@redhat.com>
4551
4552 * completer.c (complete_line_internal_1): Rewind completion word
4553 point.
4554 (completion_tracker::advance_custom_word_point_by): Change
4555 parameter type to int.
4556 * completer.h (completion_tracker::advance_custom_word_point_by):
4557 Likewise.
4558
00b56dbe
PA
45592019-06-13 Pedro Alves <palves@redhat.com>
4560
4561 * completer.c (advance_to_completion_word): Handle delimiters.
4562
d106773e
PA
45632019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4564
4565 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4566
08f10e02
TT
45672019-06-11 Tom Tromey <tom@tromey.com>
4568
4569 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4570 (xmalloc_failed): Move to alloc.c.
4571 * alloc.c: New file.
4572 * Makefile.in (COMMON_SFILES): Add alloc.c.
4573
1c7fe951
TT
45742019-06-11 Tom Tromey <tom@tromey.com>
4575
4576 * nat/linux-waitpid.c: Don't include server.h.
4577 (linux_debug): Remove.
4578 (my_waitpid): Update.
4579
89549d7f
TT
45802019-06-11 Tom Tromey <tromey@adacore.com>
4581
4582 * infcall.c (_initialize_infcall): Remove trailing newline from
4583 help.
4584 * user-regs.c (_initialize_user_regs): Remove trailing newline
4585 from help.
4586 * typeprint.c (_initialize_typeprint): Remove trailing newline
4587 from help.
4588 * reverse.c (_initialize_reverse): Remove trailing newlines from
4589 help.
4590 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4591 from help.
4592 * language.c (add_set_language_command): Remove trailing newline
4593 from help.
4594 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4595 help.
4596 * disasm.c (_initialize_disasm): Remove trailing newline from
4597 help.
4598 * top.c (init_main): Remove trailing newline from help.
4599 * interps.c (_initialize_interpreter): Remove trailing newline
4600 from help.
4601 * btrace.c (_initialize_btrace): Remove trailing newlines from
4602 help.
4603 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4604 from help.
4605 * python/python.c (_initialize_python): Remove trailing newline
4606 from help.
4607 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4608 help.
4609 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4610 from help. Reformat some text.
4611 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4612 from help.
4613 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4614 newline from help.
4615
86108c13
TT
46162019-06-11 Tom Tromey <tromey@adacore.com>
4617
4618 * darwin-nat.c (darwin_decode_exception_message)
4619 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4620
a7067863
AB
46212019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * valops.c (value_slice): Check for not allocated or not
4624 associated values.
4625
9ab08412
TV
46262019-06-10 Tom de Vries <tdevries@suse.de>
4627
4628 PR gdb/24618
4629 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4630 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4631 invalid.
4632
f19e22e9
TV
46332019-06-10 Tom de Vries <tdevries@suse.de>
4634
4635 PR gdb/24611
4636 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4637 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4638
e99f9db0
TV
46392019-06-10 Tom de Vries <tdevries@suse.de>
4640
4641 PR symtab/24545
4642 * symtab.c (struct demangled_name_entry): Add language field.
4643 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4644 static minimal symbol". Set and use language field.
4645
9bf7038b
TT
46462019-06-10 Tom Tromey <tromey@adacore.com>
4647
4648 * ada-lang.c (_initialize_ada_language): Update help text.
4649
422186a9
TT
46502019-06-10 Tom Tromey <tromey@adacore.com>
4651
4652 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4653 with a newline.
4654 * guile/guile.c (handle_boot_error): Don't end warning with a
4655 newline.
4656 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4657 warning with a newline.
4658 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4659 newline.
4660 (s12z_frame_cache): Likewise.
4661 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4662 a newline.
4663 * solib-svr4.c (disable_probes_interface): Don't end warning with
4664 a newline.
4665 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4666 newline.
4667 * python/python.c (do_finish_initialization): Don't end warning
4668 with a newline.
4669
25ce02ee
TT
46702019-06-10 Tom Tromey <tom@tromey.com>
4671
4672 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4673 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4674 gdbpy_enter.
4675
caa429d8
TT
46762019-06-10 Tom Tromey <tromey@adacore.com>
4677
4678 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4679 data.
4680 (elf_new_init): Don't call stabsread_new_init.
4681 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4682 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4683 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4684
81873cc8
TV
46852019-06-10 Tom de Vries <tdevries@suse.de>
4686
4687 PR symtab/16264
4688 PR symtab/24517
4689 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4690
4fa0265e
РИ
46912019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4692
4693 * source.c (find_and_open_source): Also rewrite relative file
4694 names.
4695
1a3da2cd
AB
46962019-04-26 Amos Bird <amosbird@gmail.com>
4697
4698 * annotate.c (annotate_thread_exited): Add "thread-exited"
4699 annotation.
4700
3847a7bf
TT
47012019-06-06 Tom Tromey <tromey@adacore.com>
4702
4703 * maint.h (class scoped_command_stats): Use
4704 DISABLE_COPY_AND_ASSIGN.
4705 <print_time>: New method.
4706 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4707 print_time.
4708 (scoped_command_stats::print_time): New method.
4709
312617a3
AB
47102019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4713 instructions of lengths 6 or 8 bytes.
4714
b02f78f9
PA
47152019-06-04 Pedro Alves <palves@redhat.com>
4716
4717 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4718
4719 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4720 * breakpoint.c (condition_completer): Likewise.
4721 * cli/cli-dump.c (scan_expression): Likewise.
4722 * common/filestuff.c (mkdir_recursive): Likewise.
4723 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4724 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4725 (gdb_abspath): Likewise.
4726 * compile/compile-cplus-types.c
4727 (compile_cplus_instance::decl_name): Likewise.
4728 * completer.c (complete_explicit_location):
4729 (signal_completer, reg_or_group_completer_1): Likewise.
4730 * cp-support.c (cp_remove_params_if_any): Likewise.
4731 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4732 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4733 * infcmd.c (strip_bg_char): Likewise.
4734 * linespec.c (copy_token_string): Likewise.
4735 * mi/mi-main.c (output_cores): Likewise.
4736 * psymtab.c (psymtab_search_name):
4737 * symfile.c (test_set_ext_lang_command): Likewise.
4738 * target.c (target_fileio_read_stralloc): Likewise.
4739 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4740 * value.c (complete_internalvar): Likewise.
4741
e1f2e1a2
CB
47422019-06-04 Christian Biesinger <cbiesinger@google.com>
4743
4744 Add objfile property to gdb.Type.
d3238f7d
PA
4745 * NEWS: Mention Python API addition.
4746 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4747
e664d728
PW
47482019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4749
4750 * NEWS: Mention the new set|show style [title|highlight].
4751 Mention changes to "show style", "help" and "apropos".
4752
66d8c862
PW
47532019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4754
4755 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4756 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4757 instead of print_help_for_command.
4758 (print_doc_of_command): New function.
4759 (help_list): Add 'apropos -v word' suggestion.
4760 (print_help_for_command): Style the command name using title style.
4761 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4762 (_initialize_cli_cmds): Describe -v in apropos_command help.
4763
9303eb2f
PW
47642019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4765
4766 * cli/cli-style.h (cli_style_option): Add name in constructor,
4767 add m_name class member, add constructor with intensity,
4768 add name class function.
4769 (cli_style_option::add_setshow_commands): Remove name argument.
4770 (highlight_style, title_style): New styles.
4771 * cli/cli-style.c (do_show): New function that shows a style
4772 characteristic styling the style name with itself.
4773 (set_style_name): New function.
4774 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4775 Update all callers according to the changes in cli/cli-style.h.
4776 * utils.h (fputs_highlighted): New function.
4777 * utils.c (fputs_highlighted): Likewise.
4778
e2c52041
PW
47792019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4780
4781 * NEWS: Mention new pipe command and new convenience variables.
4782
947d3946
PW
47832019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4784
4785 * cli/cli-cmds.c (pipe_command): New function.
4786 (_initialize_cli_cmds): Call add_com for pipe_command.
4787 Define | as an alias for pipe.
4788 (exit_status_set_internal_vars): New function.
4789 (shell_escape): Call exit_status_set_internal_vars.
4790 cli/cli-decode.c (find_command_name_length): Recognize | as
4791 a single character command.
4792
b8fd0918
PW
47932019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4796 top.c (execute_command_to_ui_file): New function, mostly a copy
4797 of execute_command_to_string.
4798 (execute_command_to_string): Implement by calling
4799 execute_command_to_ui_file.
4800
68bb5386
PW
48012019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4802
4803 * top.h (saved_command_line): Remove declaration.
4804 * top.c (previous_saved_command_line, previous_repeat_arguments):
4805 New variables.
4806 (saved_command_line): Make static, define together with other
4807 'repeat variables'.
4808 (dont_repeat): Clear repeat_arguments.
4809 (repeat_previous, get_saved_command_line, save_command_line):
4810 New functions.
4811 (gdb_init): Initialize saved_command_line
4812 and previous_saved_command_line.
4813 * main.c (captured_main_1): Remove saved_command_line initialization.
4814 * event-top.c (handle_line_of_input): Update to use
4815 the new 'repeat' related functions instead of direct access to
4816 saved_command_line.
4817 * command.h (repeat_previous, get_saved_command_line,
4818 save_command_line): New declarations.
4819 (dont_repeat): Add comment.
4820
bfcdb852
TT
48212019-05-30 Tom Tromey <tromey@adacore.com>
4822
4823 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4824 Fix comment.
4825 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4826
0ef209f2
JV
48272019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4828
4829 PR cli/24587
4830 * completer.c (complete): Initialize variable word.
4831
955b06fa
SDJ
48322019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4833
4834 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4835 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4836 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4837 'body' is NULL to the outter 'if', protecting the '!is_define'
4838 situation as well.
4839
fa9c3fa0
TT
48402019-05-29 Tom Tromey <tromey@adacore.com>
4841
4842 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4843 (dwarf_unknown): New function.
4844 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4845 (dwarf_type_encoding_name): Use dwarf_unknown.
4846
4330d61d
TT
48472019-05-29 Tom Tromey <tromey@adacore.com>
4848
4849 PR c++/20020:
4850 * cp-valprint.c (cp_print_value_fields): Call
4851 cp_print_static_field inside "try".
4852
33a6bc35
TT
48532019-05-29 Tom Tromey <tromey@adacore.com>
4854
4855 * inflow.c (struct terminal_info): Add default operator=.
4856 * configure: Rebuild.
4857 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4858 -Wdeprecated-copy-dtor, -Wredundant-move.
4859
000439d5
TT
48602019-05-29 Tom Tromey <tromey@adacore.com>
4861
4862 * NEWS: Add entry.
4863 * infcmd.c (print_return_value_1): Handle finish_print
4864 option.
4865 (show_print_finish): New function.
4866 (_initialize_infcmd): Add "set/show print finish" commands.
4867 * valprint.c (user_print_options): Initialize new member.
4868 * valprint.h (struct value_print_options) <finish_print>: New
4869 member.
4870
c0e70c62
TT
48712019-05-28 Tom Tromey <tromey@adacore.com>
4872
4873 * ada-lang.c (ada_remove_Xbn_suffix)
4874 (find_old_style_renaming_symbol)
4875 (parse_old_style_renaming): Remove.
4876 (ada_find_renaming_symbol): Don't call
4877 find_old_style_renaming_symbol.
4878 (ada_is_renaming_symbol): Rename from
4879 ada_find_renaming_symbol. Remove "block" parameter. Return
4880 bool. Now static.
4881 (ada_read_var_value): Update and simplify.
4882 * ada-exp.y (write_var_or_type): Remove old code.
4883
766f8836
AH
48842019-05-28 Alan Hayward <alan.hayward@arm.com>
4885
4886 * event-top.c: Remove include comment.
4887 * inflow.c (class scoped_ignore_sigttou): Move from here...
4888 * inflow.h (class scoped_ignore_sigttou): ...to here.
4889 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4890 * top.c: Remove include comment.
4891
eb41253a
TT
48922019-05-27 Tom Tromey <tom@tromey.com>
4893
4894 * NEWS: Fix typo.
4895
4ca51187
TT
48962019-05-22 Tom Tromey <tromey@adacore.com>
4897
4898 * target.c (target_follow_exec): Constify parameter.
4899 * target-delegates.c: Rebuild.
4900 * remote.c (remote_target::follow_exec): Constify parameter.
4901 * infrun.c (follow_exec): Constify parameter.
4902 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4903 (target_follow_exec): Likewise.
4904
8fca4da0
AH
49052019-05-22 Alan Hayward <alan.hayward@arm.com>
4906
4907 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4908 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4909
b7060614
AH
49102019-05-22 Alan Hayward <alan.hayward@arm.com>
4911
4912 * NEWS: Add debugredirect and testsuite sections.
4913
0a5954bd
SC
49142019-05-22 Simon Cook <simon.cook@embecosm.com>
4915
4916 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4917 target descriptions using exclusively floating point register name
4918 aliases.
4919
dc42e902
AB
49202019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4921
4922 PR gdb/18644:
4923 * f-lang.c (build_fortran_types): Handle the case where
4924 gdbarch_floatformat_for_type returns a nullptr.
4925
fb7806c7
TV
49262019-05-21 Tom de Vries <tdevries@suse.de>
4927
4928 PR cli/24587
4929 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4930
34d11c68
AB
49312019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4932
4933 PR gdb/18644:
4934 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4935 16-byte floats.
4936 * i386-tdep.c (i386_floatformat_for_type): Use
4937 floatformats_ia64_quad for the 16-byte floating point component
4938 within a fortran 32-byte complex number.
4939
122cf0f2
AB
49402019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4943 delete default constructor.
4944 (find_partial_die): Update to return const struct.
4945 (partial_die_parent_scope): Move variable declaration into scope
4946 of its use and change its type to auto.
4947 (guess_partial_die_structure_name): Likewise.
4948 (partial_die_info::fixup): Likewise.
4949
33d0e35a
TT
49502019-05-17 Tom Tromey <tromey@adacore.com>
4951
4952 * source.c (find_and_open_source): Remove cast.
4953
a45575b0
TT
49542019-05-17 Tom Tromey <tromey@adacore.com>
4955
4956 * annotate.c (annotate_source): Make "filename" const.
4957 * annotate.h (annotate_source): Use const.
4958
81f47ac2
AH
49592019-05-17 Alan Hayward <alan.hayward@arm.com>
4960
4961 * disasm.c (set_disassembler_options): Send errors to stderr.
4962
ca1285d1
AH
49632019-05-17 Alan Hayward <alan.hayward@arm.com>
4964
4965 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4966 (cli_interp_base::set_logging): Check debug_redirect.
4967 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4968 * cli/cli-logging.c (debug_redirect): Add static variable.
4969 (pop_output_files): Add default param.
4970 (handle_redirections): Print debug setting.
4971 (show_logging_command): Likewise.
4972 (_initialize_cli_logging): Add debugredirect command.
4973 * interps.c (current_interp_set_logging): Add debug_redirect
4974 parameter.
4975 * interps.h (set_logging): Add debug_redirect parameter.
4976 (current_interp_set_logging): Likewise.
4977 * mi/mi-common.h: Likewise.
4978 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4979
49802019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4981 Tom Tromey <tromey@adacore.com>
4982
4983 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4984 directly.
4985 * cli/cli-interp.h (make_logging_output): Remove declaration.
4986 * cli/cli-logging.c (make_logging_output): Remove function.
4987 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4988 directly.
4989 * ui-file.c (tee_file::tee_file): Remove bools.
4990 (tee_file::~tee_file): Remove deletes.
4991 * ui-file.h (tee_file): Remove bools.
4992
26648588
JV
49932019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4994
4995 * mi/mi-cmds.h (mi_cmd_complete): New function.
4996 * mi/mi-main.c (mi_cmd_complete): Likewise.
4997 * mi/mi-cmds.c: Define new MI command -complete.
4998 * NEWS: Mention new -complete command.
4999
6e035501
JV
50002019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5001
5002 * completer.h (complete): New function.
5003 * completer.c (complete): Likewise.
5004 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5005 function defined in completer.h.
5006
7d0e2ece
JV
50072019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5008
e79be6e5 5009 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5010
fb816e8b
TV
50112019-05-17 Tom de Vries <tdevries@suse.de>
5012
5013 PR gdb/24094
5014 * dwarf2read.c (struct cu_partial_die_info): New struct.
5015 (find_partial_die): Return cu_partial_die_info.
5016 (partial_die_parent_scope, guess_partial_die_structure_name)
5017 (partial_die_info::fixup): Handle new return type of find_partial_die.
5018
677052f2
SDJ
50192019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5020
5021 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5022 "std::string", simplifying the algorithm.
5023
f3da9116
SDJ
50242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5025
5026 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5027 (stap_static_probe_ops::get_probes): Likewise.
5028
f1bb75ab
SDJ
50292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5030
5031 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5032 '-')" and "else if".
5033 (stap_parse_single_operand): Join checks for
5034 "gdbarch_stap_parse_special_token_p" and
5035 "gdbarch_stap_parse_special_token" in the same "if" statement.
5036 Invert check when verifying for operation on register
5037 displacement.
5038
3ca58cde
SDJ
50392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5040
5041 * stap-probe.c (stap_get_opcode): Update comment.
5042 (stap_get_expected_argument_type): Likewise.
5043 (handle_stap_probe): Likewise.
5044
af2d9bee
SDJ
50452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5046
5047 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5048 return type to 'bool'. Adjust comment. Use 'bool' when
5049 appropriate.
5050 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5051 * stap-probe.c (stap_parse_argument_1): Likewise.
5052 (stap_is_operator): Likewise.
5053 (stap_is_generic_prefix): Likewise.
5054 (stap_is_register_prefix): Likewise.
5055 (stap_is_register_indirection_prefix): Likewise.
5056 (stap_is_integer_prefix): Likewise.
5057 (stap_generic_check_suffix): Likewise.
5058 (stap_check_integer_suffix): Likewise.
5059 (stap_check_register_suffix): Likewise.
5060 (stap_check_register_indirection_suffix): Likewise.
5061 (stap_parse_register_operand): Likewise.
5062 (stap_parse_single_operand): Likewise.
5063 (stap_parse_argument_1): Likewise.
5064 (stap_probe::get_argument_count): Likewise.
5065 (stap_is_operator): Likewise.
5066
61c9c421
TT
50672019-05-16 Tom Tromey <tromey@adacore.com>
5068
5069 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5070 keyword to foreach.
5071
9ddc1af1
SM
50722019-05-15 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * linux-thread-db.c (try_thread_db_load_1): Change return type
5075 to bool.
5076 (try_thread_db_load): Likewise.
5077 (try_thread_db_load_from_pdir_1): Likewise.
5078 (try_thread_db_load_from_pdir): Likewise.
5079 (try_thread_db_load_from_sdir): Likewise.
5080 (try_thread_db_load_from_dir): Likewise.
5081 (thread_db_load_search): Likewise.
5082 (has_libpthread): Likewise.
5083 (thread_db_load): Likewise.
5084
7bede828
SDJ
50852019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5086
5087 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5088 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5089 NULL, and complain/return if that's the case.
5090
c5358db4
JD
50912019-05-15 John Darrington <john@darrington.wattle.id.au>
5092
5093 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5094 (advance, posn, abstract_read_memory): New functions.
5095 [struct mem_read_abstraction]: New struct.
5096 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5097
c408a94f
TT
50982019-05-14 Tom Tromey <tromey@adacore.com>
5099
5100 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5101 value is not lval_memory.
5102
e7bd7fba
TT
51032019-05-14 Tom Tromey <tromey@adacore.com>
5104
5105 * solib.c (info_sharedlibrary_command): Style the file name.
5106
a6d0f249
AH
51072019-05-14 Alan Hayward <alan.hayward@arm.com>
5108
5109 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5110 (aarch64_vnv_type): Likewise.
5111 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5112 * common/tdesc.c: Likewise.
5113 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5114 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5115 * features/aarch64-fpu.xml: Add ieee half view.
5116 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5117 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5118 * gdbtypes.h (struct builtin_type): Likewise.
5119 (struct objfile_type): Likewise.
5120
66b8bb74
SM
51212019-05-12 Paul Naert <paul.naert@polymtl.ca>
5122
5123 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5124 typo.
5125 * location.h (string_to_event_location): Likewise.
5126
21c219fd
JB
51272019-05-11 Joel Brobecker <brobecker@adacore.com>
5128
5129 GDB 8.3 released.
5130
13674803
SM
51312019-05-10 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5134 New variable declaration.
5135 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5136 New variable.
5137 (print_one_breakpoint): Use ui_out::test_flags and new global
5138 variable to compute use_fixed_output.
5139 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5140 Remove.
5141 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5142 (mi_multi_location_breakpoint_output_fixed): Remove.
5143 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5144 new variable.
5145 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5146 fix_multi_location_breakpoint_output flag if version >= 3.
5147 * ui-out.h (enum ui_out_flag)
5148 <fix_multi_location_breakpoint_output>: New enumerator.
5149
a9eac7f9
SM
51502019-05-10 Simon Marchi <simon.marchi@efficios.com>
5151
5152 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5153
71bed2db
TT
51542019-05-10 Tom Tromey <tromey@adacore.com>
5155
5156 * ada-lang.c (catch_ada_completer): New function.
5157 (_initialize_ada_language): Use it.
5158
24c54127
TT
51592019-05-10 Tom Tromey <tromey@adacore.com>
5160
5161 * thread.c (print_thread_info): Make "requested_threads" const.
5162 * gdbthread.h (print_thread_info): Make "requested_threads"
5163 const.
5164 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5165 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5166
7a102139
TT
51672019-05-08 Tom Tromey <tom@tromey.com>
5168
5169 * gdbtypes.c (objfile_type_data): Change type.
5170 (objfile_type, _initialize_gdbtypes): Update.
5171
924d79e2
TT
51722019-05-08 Tom Tromey <tom@tromey.com>
5173
5174 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5175 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5176 (_initialize_dwarf2_frame): Update.
5177
4c58e337
TT
51782019-05-08 Tom Tromey <tom@tromey.com>
5179
5180 * objc-lang.c (objc_objfile_data): Change type.
5181 (find_methods): Update.
5182 (_initialize_objc_lang): Remove.
5183
d772d2ab
TT
51842019-05-08 Tom Tromey <tom@tromey.com>
5185
5186 * stabsread.c (rs6000_builtin_type_data): Change type.
5187 (rs6000_builtin_type, _initialize_stabsread): Update.
5188
d11d83f4
TT
51892019-05-08 Tom Tromey <tom@tromey.com>
5190
5191 * mips-tdep.c (mips_pdr_data): Remove.
5192 (_initialize_mips_tdep): Update.
5193
9a73f0ad
TT
51942019-05-08 Tom Tromey <tom@tromey.com>
5195
5196 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5197 (hppa_init_objfile_priv_data, read_unwind_info)
5198 (find_unwind_entry, _initialize_hppa_tdep): Update.
5199
8127a2fa
TT
52002019-05-08 Tom Tromey <tom@tromey.com>
5201
5202 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5203 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5204 on obstack.
5205 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5206
91d3055d
TT
52072019-05-08 Tom Tromey <tom@tromey.com>
5208
5209 * mdebugread.c (basic_type_data): Change type.
5210 (basic_type, _initialize_mdebugread): Update.
5211
31930bd3
TT
52122019-05-08 Tom Tromey <tom@tromey.com>
5213
5214 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5215
bdb3ed9e
TT
52162019-05-08 Tom Tromey <tom@tromey.com>
5217
5218 * nto-tdep.c (nto_inferior_data_reg): Change type.
5219 (nto_inferior_data): Update.
5220 (nto_inferior_data_cleanup, nto_new_inferior_data)
5221 (_initialize_nto_tdep): Remove.
5222 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5223
f37b313d
TT
52242019-05-08 Tom Tromey <tom@tromey.com>
5225
5226 * ada-lang.c (struct ada_inferior_data): Add initializers.
5227 (ada_inferior_data): Change type.
5228 (ada_inferior_data_cleanup): Remove.
5229 (get_ada_inferior_data, ada_inferior_exit)
5230 (struct ada_pspace_data): Add initializers, destructor.
5231 (ada_pspace_data_handle): Change type.
5232 (get_ada_pspace_data): Update.
5233 (ada_pspace_data_cleanup): Remove.
5234
24699405
TT
52352019-05-08 Tom Tromey <tom@tromey.com>
5236
5237 * coffread.c (struct coff_symfile_info): Add initializers.
5238 (coff_objfile_data_key): Move lower. Change type.
5239 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5240 Update.
5241 (coff_free_info): Remove.
5242
d4e05d2f
TT
52432019-05-08 Tom Tromey <tom@tromey.com>
5244
5245 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5246 (fbsd_pspace_data_handle): Move lower. Change type.
5247 (get_fbsd_pspace_data): Update.
5248 (fbsd_pspace_data_cleanup): Remove.
5249 (_initialize_fbsd_tdep): Update.
5250
14ef6690
TT
52512019-05-08 Tom Tromey <tom@tromey.com>
5252
5253 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5254 (get_ada_tasks_pspace_data): Update.
5255 (ada_tasks_pspace_data_cleanup): Remove.
5256 (_initialize_tasks): Update.
5257 (ada_tasks_inferior_data_handle): Change type.
5258 (get_ada_tasks_inferior_data): Update.
5259 (ada_tasks_inferior_data_cleanup): Remove.
5260 (struct ada_tasks_pspace_data): Add initializers.
5261
814cf43a
TT
52622019-05-08 Tom Tromey <tom@tromey.com>
5263
5264 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5265 * symfile-debug.c (debug_sym_get_probes): Change type.
5266 * stap-probe.c (handle_stap_probe):
5267 (stap_static_probe_ops::get_probes): Change type.
5268 * probe.h (class static_probe_ops) <get_probes>: Change type.
5269 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5270 (parse_probes_in_pspace): Update.
5271 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5272 Update.
5273 (any_static_probe_ops::get_probes): Change type.
5274 * elfread.c (elfread_data): New typedef.
5275 (probe_key): Change type.
5276 (elf_get_probes): Likewise. Update.
5277 (probe_key_free): Remove.
5278 (_initialize_elfread): Update.
5279 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5280 Change type.
5281 (dtrace_process_dof_probe, dtrace_process_dof)
5282 (dtrace_static_probe_ops::get_probe): Change type.
5283
02dc647e
TT
52842019-05-08 Tom Tromey <tom@tromey.com>
5285
5286 * xcoffread.c (struct xcoff_symfile_info): Rename from
5287 coff_symfile_info. Add initializers.
5288 (xcoff_objfile_data_key): Move lower. Change type.
5289 (XCOFF_DATA): Rewrite.
5290 (xcoff_free_info): Remove.
5291 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5292 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5293 (xcoff_initial_scan): Update.
5294
09232438
TT
52952019-05-08 Tom Tromey <tom@tromey.com>
5296
5297 * solib-svr4.c (struct svr4_info): Add initializers and
5298 destructor.
5299 <probes_table>: Now an htab_up.
5300 (solib_svr4_pspace_data): Change type.
5301 (free_probes_table): Simplify.
5302 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5303 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5304 (probes_table_remove_objfile_probes, register_solib_event_probe)
5305 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5306 (_initialize_svr4_solib): Update.
5307
7b4a314f
TT
53082019-05-08 Tom Tromey <tom@tromey.com>
5309
5310 * remote.c (remote_pspace_data): Change type.
5311 (remote_pspace_data_cleanup): Remove.
5312 (get_remote_exec_file, set_pspace_remote_exec_file)
5313 (_initialize_remote): Update.
5314
51d3063a
TT
53152019-05-08 Tom Tromey <tom@tromey.com>
5316
5317 * breakpoint.c (breakpoint_objfile_key): Change type.
5318 (get_breakpoint_objfile_data): Update.
5319 (free_breakpoint_objfile_data): Remove.
5320 (_initialize_breakpoint): Update.
5321
89fb8848
TT
53222019-05-08 Tom Tromey <tom@tromey.com>
5323
5324 * linux-tdep.c (struct linux_info): Add initializers.
5325 (linux_inferior_data): Move. Change type.
5326 (invalidate_linux_cache_inf): Update.
5327 (linux_inferior_data_cleanup): Remove.
5328 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5329
e9b89e2d
TT
53302019-05-08 Tom Tromey <tom@tromey.com>
5331
5332 * auxv.c (auxv_inferior_data): Move. Change type.
5333 (auxv_inferior_data_cleanup): Remove.
5334 (invalidate_auxv_cache_inf): Rewrite.
5335 (get_auxv_inferior_data, _initialize_auxv): Update.
5336
8c42777c
TT
53372019-05-08 Tom Tromey <tom@tromey.com>
5338
5339 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5340 (symfile_debug_objfile_data_key): Change type.
5341 (symfile_debug_installed, debug_qf_has_symbols)
5342 (debug_qf_find_last_source_symtab)
5343 (debug_qf_forget_cached_source_info)
5344 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5345 (debug_qf_print_stats, debug_qf_dump)
5346 (debug_qf_expand_symtabs_for_function)
5347 (debug_qf_expand_all_symtabs)
5348 (debug_qf_expand_symtabs_with_fullname)
5349 (debug_qf_map_matching_symbols)
5350 (debug_qf_expand_symtabs_matching)
5351 (debug_qf_find_pc_sect_compunit_symtab)
5352 (debug_qf_map_symbol_filenames)
5353 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5354 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5355 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5356 (debug_sym_read_linetable, debug_sym_relocate): Update.
5357 (symfile_debug_free_objfile): Remove.
5358 (install_symfile_debug_logging, _initialize_symfile_debug):
5359 Update.
5360
5bfd760d
TT
53612019-05-08 Tom Tromey <tom@tromey.com>
5362
5363 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5364 allocate_on_obstack.
5365 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5366 (get_dwarf2_per_objfile): Update.
5367 (set_dwarf2_per_objfile): Remove.
5368 (dwarf2_has_info, dwarf2_get_section_info): Update.
5369 (dwarf2_free_objfile): Remove.
5370 (_initialize_dwarf2_read): Update.
5371
e85e19b4
TT
53722019-05-08 Tom Tromey <tom@tromey.com>
5373
5374 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5375 initializers.
5376 <unsupported_script_warning_printed,
5377 script_not_found_warning_printed>: Now bool.
5378 (auto_load_pspace_data): Change type.
5379 (~auto_load_pspace_info): Rename from
5380 auto_load_pspace_data_cleanup.
5381 (get_auto_load_pspace_data, init_loaded_scripts_info)
5382 (clear_section_scripts, maybe_print_unsupported_script_warning)
5383 (maybe_print_script_not_found_warning, _initialize_auto_load):
5384 Update.
5385
f6aa7436
TT
53862019-05-08 Tom Tromey <tom@tromey.com>
5387
5388 * objfiles.c (objfile_pspace_info): Add destructor and
5389 initializers.
5390 (objfiles_pspace_data): Change type.
5391 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5392 (get_objfile_pspace_data): Update.
5393 (objfiles_bfd_data): Change type.
5394 (get_objfile_bfd_data): Update.
5395 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5396
6ae614f6
TT
53972019-05-08 Tom Tromey <tom@tromey.com>
5398
5399 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5400 Change type.
5401 (get_catch_syscall_inferior_data): Update.
5402 (catch_syscall_inferior_data_cleanup): Remove.
5403 (_initialize_break_catch_syscall): Update.
5404
6509b8eb
TT
54052019-05-08 Tom Tromey <tom@tromey.com>
5406
5407 * inflow.c (struct terminal_info): Add destructor and
5408 initializers.
5409 (inflow_inferior_data): Change type.
5410 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5411 (get_inflow_inferior_data, inflow_inferior_exit)
5412 (swap_terminal_info, _initialize_inflow): Update.
5413
35632941
TT
54142019-05-08 Tom Tromey <tom@tromey.com>
5415
5416 * target-dcache.c (target_dcache_cleanup): Remove.
5417 (target_dcache_aspace_key): Change type.
5418 (target_dcache_init_p, target_dcache_invalidate)
5419 (target_dcache_get, target_dcache_get_or_init)
5420 (_initialize_target_dcache): Update.
5421 * dcache.h (struct dcache_deleter): New.
5422
3017b94d
TT
54232019-05-08 Tom Tromey <tom@tromey.com>
5424
5425 * symtab.c (struct symbol_cache): Add destructor and
5426 initializers.
5427 (symbol_cache_key): Move. Change type.
5428 (make_symbol_cache, free_symbol_cache): Remove.
5429 (get_symbol_cache): Update.
5430 (symbol_cache_cleanup): Remove.
5431 (ALL_PSPACES, symbol_cache_flush)
5432 (maintenance_print_symbol_cache)
5433 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5434 Update.
5435
a32ad8c5
TT
54362019-05-08 Tom Tromey <tom@tromey.com>
5437
5438 * symtab.c (struct main_info): Add destructor and initializers.
5439 (main_progspace_key): Move. Change type.
5440 (get_main_info): Update.
5441 (main_info_cleanup): Remove.
5442 (_initialize_symtab): Update.
5443
5f6e90a0
TT
54442019-05-08 Tom Tromey <tom@tromey.com>
5445
5446 * registry.h (DECLARE_REGISTRY): Define the _key class.
5447
1bd0c6e4
AB
54482019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5449
5450 * NEWS: Merge two 'New commands' sections.
5451
2228ef77
XR
54522019-05-08 Joel Brobecker <brobecker@adacore.com>
5453
5454 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5455 parameter and use Ada language definition instead.
5456 (ada_val_print_ptr): Remove unused language parameter.
5457 (ada_val_print_num): Remove language parameter and use Ada language
5458 definition instead.
5459 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5460 parameter.
5461 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5462 parameter and use Ada language definition instead.
5463 (ada_val_print_1): Update all ada_val_print_xxx calls.
5464 Remove language parameter.
5465 (ada_val_print): Update ada_val_print_1 call.
5466
60fcc1c3
TT
54672019-05-08 Tom Tromey <tromey@adacore.com>
5468
5469 * remote.c (remote_hw_watchpoint_limit)
5470 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5471 Now static.
5472
ed2b7c17
TT
54732019-05-08 Tom Tromey <tromey@adacore.com>
5474
5475 * maint.c (_initialize_maint_cmds): Move initialization code to
5476 remote.c.
5477 (watchdog, show_watchdog): Move to remote.c.
5478 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5479 "watchdog" static.
5480 (_initialize_remote): Move initialization code from maint.c.
5481 * defs.h (watchdog): Don't declare.
5482
b0be6c91
TT
54832019-05-08 Tom Tromey <tromey@adacore.com>
5484
5485 * tui/tui-interp.c: Include main.h.
5486 * interps.c: Include main.h.
5487 * main.h (interpreter_p): Declare.
5488 * defs.h (interpreter_p): Don't declare.
5489
587ee17b
TT
54902019-05-08 Tom Tromey <tromey@adacore.com>
5491
5492 * dwarf2loc.c: Include dwarf2read.h.
5493 * defs.h (read_unsigned_leb128): Don't declare.
5494 * dwarf2read.h (read_unsigned_leb128): Declare.
5495
ca1df239
TT
54962019-05-08 Tom Tromey <tromey@adacore.com>
5497
5498 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5499 method.
5500
99f20f08
TT
55012019-05-08 Tom Tromey <tromey@adacore.com>
5502
5503 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5504 when no wrap column is set.
5505
80e55b13
TT
55062019-05-08 Tom Tromey <tromey@adacore.com>
5507
5508 * c-lang.c (c_get_string): Handle non-C-style arrays.
5509
9d3421af
TT
55102019-05-08 Tom Tromey <tromey@adacore.com>
5511
5512 * typeprint.c (print_offset_data::update): Print the bit offset,
5513 not the number of bits remaining.
5514
844333e2
TT
55152019-05-08 Tom Tromey <tromey@adacore.com>
5516
5517 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5518 padding at end of comment.
5519
988915ee
TT
55202019-05-08 Tom Tromey <tromey@adacore.com>
5521
5522 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5523 Compare main types.
5524
26bfd823
TT
55252019-05-06 Tom Tromey <tom@tromey.com>
5526
5527 * common/scoped_mmap.c: Include common-defs.h.
5528 * common/scoped_mmap.h: Don't include config.h.
5529
89055eaa
TT
55302019-05-04 Tom Tromey <tom@tromey.com>
5531
5532 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5533 (struct aarch64_call_info): Add initializers.
5534 <si>: Now a std::vector.
5535 (pass_on_stack, aarch64_push_dummy_call): Update.
5536
5da01df5
TT
55372019-05-04 Simon Marchi <simon.marchi@efficios.com>
5538 Tom Tromey <tom@tromey.com>
5539
5540 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5541 (ppc_threads): Now a std::vector. Now static.
5542 (hwdebug_find_thread_points_by_tid)
5543 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5544 Update.
5545
fbdf05a1
TT
55462019-05-04 Tom Tromey <tom@tromey.com>
5547
5548 * arc-tdep.c (arc_tdesc_init): Return bool.
5549
06d16ec9
TT
55502019-05-04 Tom Tromey <tom@tromey.com>
5551
5552 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5553 Use gdb_assert_not_reached.
5554
9c056022
TT
55552019-05-04 Tom Tromey <tom@tromey.com>
5556
5557 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5558 "false".
5559
fa9c2a59
TT
55602019-05-04 Tom Tromey <tom@tromey.com>
5561
5562 * arc-tdep.c (arc_tdesc_init): Use bool.
5563
e2eb806a
TT
55642019-05-04 Tom Tromey <tom@tromey.com>
5565
5566 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5567
6fe87677
TT
55682019-05-04 Tom Tromey <tom@tromey.com>
5569
5570 * cli/cli-cmds.c (valid_command_p): Return bool.
5571
7f008c9e
TT
55722019-05-04 Tom Tromey <tom@tromey.com>
5573
5574 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5575 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5576
b6484282
RT
55772019-05-04 Raul Tambre <raul@tambre.ee>
5578
5579 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5580 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5581 operator for comparison.
5582
af97b416
TT
55832019-05-04 Tom Tromey <tom@tromey.com>
5584
5585 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5586 (lookup_partial_symbol, print_partial_symbols)
5587 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5588 (psymbol_compare): Update.
5589 (add_psymbol_to_bcache): Clear the entire psymbol.
5590 (maintenance_check_psymtabs): Update.
5591 * psympriv.h (struct partial_symbol): Don't derive from
5592 general_symbol_info.
5593 <obj_section, unrelocated_address, address,
5594 set_unrelocated_address>: Update.
5595 <ginfo>: New member.
5596 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5597 (debug_names::write_psymbols): Update.
5598
9d6d4be8
TV
55992019-05-04 Tom de Vries <tdevries@suse.de>
5600
5601 * contrib/cc-with-tweaks.sh: Support -n arg.
5602
66452beb
PW
56032019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5604
5605 * corelow.c (core_target::detach): Ensure frame cache and
5606 register caches are cleared.
5607 inferior.c (exit_inferior_1): Likewise.
5608
bde09ab7
TT
56092019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5610 Tom Tromey <tom@tromey.com>
5611
5612 * dictionary.c (collate_pending_symbols_by_language): Remove
5613 "struct" from foreach.
5614 * symtab.c (lookup_global_symbol_from_objfile)
5615 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5616 foreach.
5617 * ser-tcp.c (net_open): Remove "struct" from foreach.
5618 * objfiles.c (objfile_relocate, objfile_rebase)
5619 (objfile_has_symbols): Remove "struct" from foreach.
5620 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5621 from foreach.
5622 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5623 foreach.
5624 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5625 "struct" from foreach.
5626 * ada-lang.c (create_excep_cond_exprs)
5627 (ada_exception_catchpoint_cond_string): Remove "struct" from
5628 foreach.
5629
222a8d25
TT
56302019-05-03 Tom Tromey <tromey@adacore.com>
5631
5632 * ada-exp.y (convert_char_literal): Check suffix of each
5633 enumerator.
5634
fcd60b84
DP
56352019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5636
5637 PR ada/21406:
5638 * ada-exp.y (yywrap): Don't define.
5639 * ada-lex.l (%option): Add noyywrap
5640 (yywrap): Remove.
5641
5f2459c2
EZ
56422019-05-03 Eli Zaretskii <eliz@gnu.org>
5643
353ea2d1
EZ
5644 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5645 _WIN32_WINNT to the XP level, unless already defined to a higher
5646 level.
5647
5648 * unittests/parse-connection-spec-selftests.c:
5649 * ser-tcp.c:
5650 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5651 override.
5652
5f2459c2
EZ
5653 * symfile.c (find_separate_debug_file): Remove colon from the
5654 drive spec of DOS/Windows file names of the target, so that the
5655 file name produced from DEBUGDIR and the target's directory will
5656 be valid on DOS/Windows systems.
5657
80062eb9
AB
56582019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * rust-lang.c (val_print_struct): Handle printing structures
5661 containing strings.
5662
b8c05e85
TT
56632019-05-02 Tom Tromey <tromey@adacore.com>
5664
5665 * valarith.c (_initialize_valarith): Remove.
5666
4504bbde
TT
56672019-05-01 Tom Tromey <tromey@adacore.com>
5668
5669 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5670 bitfields.
5671
d48e62f4
TT
56722019-05-01 Tom Tromey <tromey@adacore.com>
5673
5674 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5675 for big-endian copies.
5676
15f18d14
AT
56772019-04-30 Ali Tamur <tamur@google.com>
5678 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5679 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5680 (read_3_bytes): New function.
5681
ab4ee614
JB
56822019-04-30 Joel Brobecker <brobecker@adacore.com>
5683
5684 * windows-nat.c (main_thread_id): Delete.
5685 (handle_output_debug_string): Replace main_thread_id by
5686 current_event.dwThreadId.
5687 (fake_create_process): Likewise.
5688 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5689 Do not set main_thread_id.
5690 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5691 current_event.dwThreadId.
5692 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5693
8ed5b76e
JB
56942019-04-30 Joel Brobecker <brobecker@adacore.com>
5695
5696 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5697 Use current_event.dwThreadId instead of main_thread_id.
5698
2ff0a947
TT
56992019-04-30 Tom Tromey <tromey@adacore.com>
5700
5701 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5702 (create_excep_cond_exprs): Iterate over program spaces.
5703 (ada_exception_catchpoint_cond_string): Examine all minimal
5704 symbols for exception types.
5705
a776957c
TT
57062019-04-30 Tom Tromey <tromey@adacore.com>
5707
5708 PR c++/24470:
5709 * dwarf2read.c (process_structure_scope): Handle case where type
5710 has template parameters but no symbol was created.
5711
bc68014d
AB
57122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5713 Chris January <chris.january@arm.com>
5714
5715 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5716 qualifier.
5717 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5718
f1fdc960
AB
57192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * f-typeprint.c (f_print_type): Update rules for printing
5722 whitespace.
5723 (f_type_print_varspec_suffix): Likewise.
5724
bf7a4de1
AB
57252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5726 Chris January <chris.january@arm.com>
5727
5728 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5729 function arguments.
5730
bbe75b9d
AB
57312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5732
5733 * f-lang.c (build_fortran_types): Change name of void type to
5734 lower case.
5735 * f-typeprint.c (f_type_print_base): Print the name of the void
5736 type, rather than a fixed string.
5737 * f-valprint.c (f_decorations): Use lower case void string.
5738
1db455a7
AB
57392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5740 Chris January <chris.january@arm.com>
5741
5742 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5743 types for Fortran.
5744
b6d03bb2
AB
57452019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5746 Chris January <chris.january@arm.com>
5747 David Lecomber <david.lecomber@arm.com>
5748
5749 * f-exp.y (BINOP_INTRINSIC): New token.
5750 (exp): New parser rule handling BINOP_INTRINSIC.
5751 (f77_keywords): Add new builtin procedures.
5752 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5753 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5754 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5755 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5756 (print_unop_subexp_f): New function.
5757 (print_binop_subexp_f): New function.
5758 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5759 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5760 (dump_subexp_body_f): Likewise.
5761 (operator_check_f): Likewise.
5762 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5763 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5764
83228e93
AB
57652019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5766
5767 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5768 UNOP_KIND.
5769 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5770 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5771 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5772 (operator_length_f): New fuction.
5773 (print_subexp_f): New function.
5774 (op_name_f): New function.
5775 (dump_subexp_body_f): New function.
5776 (operator_check_f): New function.
5777 (exp_descriptor_f): Replace standard expression handling functions
5778 with new functions.
5779 * gdb/fortran-operator.def: New file.
5780 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5781 * gdb/std-operator.def: Remove UNOP_KIND.
5782
6fdcd7cc
AB
57832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5784
5785 * std-operator.def: Remove unbalanced, stray double quote
5786 character.
5787
2e62ab40
AB
57882019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5789 Chris January <chris.january@arm.com>
5790 Daniel Everett <daniel.everett@arm.com>
5791 Nick Forrington <nick.forrington@arm.com>
5792 Richard Bunt <richard.bunt@arm.com>
5793
5794 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5795 of depth when printing anonymous structs or unions.
5796 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5797 Don't print either the top-level value, or the children if the
5798 max-depth is exceeded.
5799 (ppscm_print_children): When printing the key of a map, allow one
5800 extra level of depth.
5801 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5802 print either the top-level value, or the children if the max-depth
5803 is exceeded.
5804 (print_children): When printing the key of a map, allow one extra
5805 level of depth.
5806 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5807 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5808 (user_print_options): Initialise max_depth field.
5809 (val_print_scalar_or_string_type_p): New function.
5810 (val_print): Check to see if the max depth has been reached.
5811 (val_print_check_max_depth): Define new function.
5812 (show_print_max_depth): New function.
5813 (_initialize_valprint): Add 'print max-depth' option.
5814 * valprint.h (struct value_print_options) <max_depth>: New field.
5815 (val_print_check_max_depth): Declare new function.
5816 * NEWS: Document new feature.
5817
4be290b2
AB
58182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5819
5820 * ada-lang.c (ada_language_defn): Initialise new field.
5821 * c-lang.c (c_is_string_type_p): New function.
5822 (c_language_defn): Initialise new field.
5823 (cplus_language_defn): Initialise new field.
5824 (asm_language_defn): Initialise new field.
5825 (minimal_language_defn): Initialise new field.
5826 * c-lang.h (c_is_string_type_p): Declare new function.
5827 * d-lang.c (d_language_defn): Initialise new field.
5828 * f-lang.c (f_is_string_type_p): New function.
5829 (f_language_defn): Initialise new field.
5830 * go-lang.c (go_is_string_type_p): New function.
5831 (go_language_defn): Initialise new field.
5832 * language.c (default_is_string_type_p): New function.
5833 (unknown_language_defn): Initialise new field.
5834 (auto_language_defn): Initialise new field.
5835 * language.h (struct language_defn) <la_is_string_type_p>: New
5836 member variable.
5837 (default_is_string_type_p): Declare new function.
5838 * m2-lang.c (m2_language_defn): Initialise new field.
5839 * objc-lang.c (objc_language_defn): Initialise new field.
5840 * opencl-lang.c (opencl_language_defn): Initialise new field.
5841 * p-lang.c (pascal_is_string_type_p): New function.
5842 (pascal_language_defn): Initialise new field.
5843 * rust-lang.c (rust_is_string_type_p): New function.
5844 (rust_language_defn): Initialise new field.
5845
721b08c6
AB
58462019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5849 New field.
5850 * ada-lang.c (ada_language_defn): Initialise new field.
5851 * c-lang.c (c_language_defn): Likewise.
5852 (cplus_language_defn): Likewise.
5853 (asm_language_defn): Likewise.
5854 (minimal_language_defn): Likewise.
5855 * d-lang.c (d_language_defn): Likewise.
5856 * f-lang.c (f_language_defn): Likewise.
5857 * go-lang.c (go_language_defn): Likewise.
5858 * language.c (unknown_language_defn): Likewise.
5859 (auto_language_defn): Likewise.
5860 * m2-lang.c (m2_language_defn): Likewise.
5861 * objc-lang.c (objc_language_defn): Likewise.
5862 * opencl-lang.c (opencl_language_defn): Likewise.
5863 * p-lang.c (pascal_language_defn): Likewise.
5864 * rust-lang.c (rust_language_defn): Likewise.
5865
fc913e53
AB
58662019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5867
5868 * ada-lang.c (ada_is_character_type): Change return type to bool.
5869 (ada_is_string_type): Likewise.
5870 * ada-lang.h (ada_is_character_type): Update declaration
5871 (ada_is_string_type): Likewise.
5872
fa731fa0
PW
58732019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5874
5875 Support style in 'frame|thread apply'
5876
5877 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5878 * record.c (record_start, record_stop): Update callers of
5879 execute_command_to_string with false.
5880 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5881 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5882 methods.
5883 (class string_file): New constructor with term_out parameter.
5884 Override methods term_out and can_emit_style_escape. New member
5885 term_out.
5886 (class stdio_file): Override can_emit_style_escape.
5887 (class tee_file): Override term_out and can_emit_style_escape.
5888 * utils.h (can_emit_style_escape): Remove.
5889 * utils.c (can_emit_style_escape): Likewise.
5890 Update all callers of can_emit_style_escape (SOMESTREAM) to
5891 SOMESTREAM->can_emit_style_escape.
5892 * source-cache.c (source_cache::get_source_lines): Likewise.
5893 * stack.c (frame_apply_command_count): Call execute_command_to_string
5894 passing the term_out characteristic of the current gdb_stdout.
5895 * thread.c (thr_try_catch_cmd): Likewise.
5896 * top.c (execute_command_to_string): pass term_out parameter
5897 to construct the string_file for the command output.
5898 * ui-file.c (term_cli_styling): New function (most code moved
5899 from utils.c can_emit_style_escape).
5900 (string_file::string_file, string_file::can_emit_style_escape,
5901 stdio_file::can_emit_style_escape, tee_file::term_out,
5902 tee_file::can_emit_style_escape): New functions.
5903
136afab8
PW
59042019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5905
5906 * NEWS: Mention the new set|show may-call-functions.
5907 * infcall.c (may_call_functions_p): New variable.
5908 (show_may_call_functions_p): New function.
5909 (call_function_by_hand_dummy): Throws an error if not
5910 may-call-functions.
5911 (_initialize_infcall): Call add_setshow_boolean_cmd for
5912 may-call-functions.
5913
725cbb63
KS
59142019-04-25 Keith Seitz <keiths@redhat.com>
5915
5916 PR c++/24367
5917 * cp-support.c (inspect_type): Don't attempt substitutions
5918 of symbol with the same name.
5919
3d1cbb78
TT
59202019-04-25 Tom Tromey <tromey@adacore.com>
5921
5922 PR gdb/24475:
5923 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5924 static.
5925
94aeb44b
TT
59262019-04-25 Tom Tromey <tromey@adacore.com>
5927
5928 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5929 rvalue reference.
5930 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5931 (gdb_xml_parser::parse): Use std::move.
5932 * python/python-internal.h (gdbpy_convert_exception): Take a const
5933 reference.
5934 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5935 std::move.
5936 * python/py-utils.c (gdbpy_convert_exception): Take a const
5937 reference.
5938 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5939 Use std::move.
5940 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5941 Use std::move.
5942 * mi/mi-main.c (mi_print_exception): Take a const reference.
5943 * main.c (handle_command_errors): Take a const reference.
5944 * linespec.c (parse_linespec): Use std::move.
5945 * infcall.c (run_inferior_call): Use std::move.
5946 (call_function_by_hand_dummy): Use std::move.
5947 * exec.c (try_open_exec_file): Use std::move.
5948 * exceptions.h (exception_print, exception_fprintf)
5949 (exception_print_same): Update.
5950 * exceptions.c (print_exception, exception_print)
5951 (exception_fprintf, exception_print_same): Change parameters to
5952 const reference.
5953 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5954 * common/new-op.c: Use std::move.
5955 * common/common-exceptions.h (struct gdb_exception): Add move
5956 constructor.
5957 (struct gdb_exception_error, struct gdb_exception_quit, struct
5958 gdb_quit_bad_alloc): Change constructor to move constructor.
5959 (throw_exception): Change parameter to rvalue reference.
5960 * common/common-exceptions.c (throw_exception): Take rvalue
5961 reference.
5962 * cli/cli-interp.c (safe_execute_command): Use std::move.
5963 * breakpoint.c (insert_bp_location, location_to_sals): Use
5964 std::move.
5965
680d7fd5
TT
59662019-04-25 Tom Tromey <tromey@adacore.com>
5967
5968 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5969 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5970 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5971 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5972 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5973 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5974 guile/scm-value.c: Use unpack.
5975 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5976 gdbscm_gdb_exception.
5977 (gdbscm_throw_gdb_exception): Likewise.
5978 (struct gdbscm_gdb_exception): New.
5979 (unpack): New function.
5980 (gdbscm_wrap): Use unpack.
5981
c6fdd8b2
TT
59822019-04-25 Tom Tromey <tromey@adacore.com>
5983
5984 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5985 (gdb_rl_callback_handler): Use std::move.
5986 * common/common-exceptions.h (struct gdb_exception): Add move
5987 assignment operator.
5988 (throw_exception_sjlj): Change "exception" to const reference.
5989 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5990 (throw_exception_sjlj): Change "exception" to const reference.
5991
cc06b668
TT
59922019-04-25 Tom Tromey <tromey@adacore.com>
5993
5994 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5995 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5996 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5997 Update.
5998 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5999 Update.
6000 * mi/mi-interp.c (mi_interp::exec): Update.
6001 * linespec.c (parse_linespec): Update.
6002 * infcall.c (run_inferior_call): Update.
6003 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6004 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6005 (gdbscm_lookup_global_symbol): Update.
6006 * guile/scm-param.c (gdbscm_parameter_value): Update.
6007 * guile/scm-frame.c (gdbscm_frame_read_register)
6008 (gdbscm_frame_read_var): Update.
6009 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6010 * exec.c (try_open_exec_file): Update.
6011 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6012 (gdb_rl_callback_handler): Update.
6013 * common/common-exceptions.h (exception_none): Don't declare.
6014 * common/common-exceptions.c (exception_none): Don't define.
6015 (struct catcher) <exception>: Update.
6016 * cli/cli-interp.c (safe_execute_command): Update.
6017 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6018
cf532bd1
AT
60192019-04-25 Ali Tamur <tamur@google.com>
6020
6021 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6022 (read_attribute_value): Likewise.
6023 (dwarf2_read_addr_index): Update comment.
6024 (read_str_index): Add DW_FORM_strx.
6025 (dwarf2_string_attr): Likewise.
6026 (dwarf2_const_value_attr): Likewise.
6027 (dump_die_shallow): Likewise.
6028 (dwarf2_fetch_constant_bytes): Likewise.
6029 (skip_form_bytes): Likewise.
6030 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6031
82433e3e
SDJ
60322019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6033
6034 PR corefiles/11608
6035 PR corefiles/18187
6036 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6037 OFFSET. Verify if current mapping contains an ELF header.
6038 (linux_find_memory_regions_full): Adjust call to
6039 dump_mapping_p.
6040
723adb65
SL
60412019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6042 Kang Li <kanglictf@gmail.com>
6043
6044 PR gdb/21600
6045
6046 * dwarf2-frame.c (read_initial_length): Be consistent about using
6047 unsigned representation of length.
6048 (decode_frame_entry_1): Likewise. Check for wraparound of
6049 end pointer as well as buffer overflow.
6050
596179f7
SDJ
60512019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6052
6053 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6054 "vq".
6055
a59240a4
TT
60562019-04-24 Tom Tromey <tromey@adacore.com>
6057
6058 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6059
f872fdbb
AB
60602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 * s12z-tdep.c (s12z_unwind_pc): Delete.
6063 (s12z_unwind_sp): Delete.
6064 (s12z_gdbarch_init): Don't register deleted functions with
6065 gdbarch.
6066
b614e6f3
AB
60672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 * rl78-tdep.c (rl78_unwind_sp): Delete.
6070 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6071
14faed38
AB
60722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6073
6074 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6075 (xstormy16_unwind_pc): Delete.
6076 (xstormy16_dummy_id): Delete.
6077 (xstormy16_gdbarch_init): Don't register deleted functions with
6078 gdbarch.
6079
541aad8a
AB
60802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6081
6082 * vax-tdep.c (vax_unwind_pc): Delete.
6083 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6084
29222070
AB
60852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6086
6087 * v850-tdep.c (v850_unwind_sp): Delete.
6088 (v850_unwind_pc): Delete.
6089 (v850_dummy_id): Delete.
6090 (v850_gdbarch_init): Don't register deleted functions with
6091 gdbarch.
6092
0f534d76
AB
60932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6094
6095 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6096 (tilegx_unwind_pc): Delete.
6097 (tilegx_unwind_dummy_id): Delete.
6098 (tilegx_gdbarch_init): Don't register deleted functions with
6099 gdbarch.
6100
1ba7b7f9
AB
61012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6102
6103 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6104 (tic6x_dummy_id): Delete.
6105 (tic6x_gdbarch_init): Don't register deleted functions with
6106 gdbarch.
6107
d31f262c
AB
61082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6109
6110 * sparc-tdep.c (sparc_unwind_pc): Delete.
6111 (sparc32_gdbarch_init): Don't register deleted function with
6112 gdbarch.
6113
6d14d64d
AB
61142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6115
6116 * sh-tdep.c (sh_unwind_sp): Delete.
6117 (sh_unwind_pc): Delete.
6118 (sh_dummy_id): Delete.
6119 (sh_gdbarch_init): Don't register deleted functions with
6120 gdbarch.
6121
a40dde9d
AB
61222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6123
6124 * score-tdep.c (score_unwind_sp): Delete.
6125 (score_unwind_pc): Delete.
6126 (score_dummy_id): Delete.
6127 (score_gdbarch_init): Don't register deleted functions with
6128 gdbarch.
6129
47c47d69
AB
61302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6131
6132 * rx-tdep.c (rx_unwind_pc): Delete.
6133 (rx_unwind_sp): Delete.
6134 (rx_dummy_id): Delete.
6135 (rx_gdbarch_init): Don't register deleted functions with
6136 gdbarch. Update comment.
6137
833a4480
AB
61382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6139
6140 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6141 (rs6000_dummy_id): Delete.
6142 (rs6000_gdbarch_init): Don't register deleted functions with
6143 gdbarch.
6144
3f2cef49
AB
61452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6146
6147 * or1k-tdep.c (or1k_dummy_id): Delete.
6148 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6149
96acf884
AB
61502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6151
6152 * nios2-tdep.c (nios2_dummy_id): Delete.
6153 (nios2_unwind_sp): Delete.
6154 (nios2_gdbarch_init): Don't register deleted functions with
6155 gdbarch.
6156
ca0ab0aa
AB
61572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * nds32-tdep.c (nds32_dummy_id): Delete.
6160 (nds32_unwind_pc): Delete.
6161 (nds32_unwind_sp): Delete.
6162 (nds32_gdbarch_init): Don't register deleted functions with
6163 gdbarch.
6164
c8259044
AB
61652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6166
6167 * msp430-tdep.c (msp430_unwind_pc): Delete.
6168 (msp430_unwind_sp): Delete.
6169 (msp430_dummy_id): Delete.
6170 (msp430_gdbarch_init): Don't register deleted functions with
6171 gdbarch.
6172
27f113c8
AB
61732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6174
6175 * moxie-tdep.c (moxie_unwind_sp): Delete.
6176 (moxie_unwind_pc): Delete.
6177 (moxie_dummy_id): Delete.
6178 (moxie_gdbarch_init): Don't register deleted functions with
6179 gdbarch.
6180
aee6c3cd
AB
61812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6182
6183 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6184 (mn10300_unwind_pc): Delete.
6185 (mn10300_unwind_sp): Delete.
6186 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6187 mn10300_unwind_sp.
6188 (mn10300_frame_unwind_init): Don't register deleted functions with
6189 gdbarch.
6190
8e2b5aea
AB
61912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6192
6193 * mep-tdep.c (mep_unwind_pc): Delete.
6194 (mep_unwind_sp): Delete.
6195 (mep_dummy_id): Delete.
6196 (mep_gdbarch_init): Don't register deleted functions with
6197 gdbarch.
6198
43cf3ede
AB
61992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6200
6201 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6202 (m68hc11_unwind_sp): Delete.
6203 (m68hc11_gdbarch_init): Don't register deleted functions with
6204 gdbarch.
6205
5e79b7bb
AB
62062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * m32r-tdep.c (m32r_unwind_sp): Delete.
6209 (m32r_unwind_pc): Delete.
6210 (m32r_dummy_id): Delete.
6211 (m32r_gdbarch_init): Don't register deleted functions with
6212 gdbarch.
6213
89b268d8
AB
62142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6215
6216 * m32c-tdep.c (m32c_unwind_pc): Delete.
6217 (m32c_unwind_sp): Delete.
6218 (m32c_dummy_id): Delete.
6219 (m32c_gdbarch_init): Don't register deleted functions with
6220 gdbarch.
6221
946c28d2
AB
62222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6223
6224 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6225 (lm32_unwind_pc): Delete.
6226 (lm32_dummy_id): Delete.
6227 (lm32_gdbarch_init): Don't register deleted functions with
6228 gdbarch.
6229
bf12844a
AB
62302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6231
6232 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6233 (iq2000_unwind_pc): Delete.
6234 (iq2000_dummy_id): Delete.
6235 (iq2000_gdbarch_init): Don't register deleted functions with
6236 gdbarch.
6237
ecbc06d2
AB
62382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6239
6240 * nds32-tdep.c (nds32_type_align): Delete.
6241 (nds32_push_dummy_call): Use type_align instead.
6242
030197b4
AB
62432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6244
6245 * arm-tdep.c (arm_type_align): Only handle vector override case.
6246 (arm_push_dummy_call): Use type_align.
6247 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6248
b907456c
AB
62492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6250
6251 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6252 case.
6253 (pass_on_stack): Use type_align.
6254 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6255 function.
6256
9e97ba43
TT
62572019-04-23 Tom Tromey <tromey@adacore.com>
6258
6259 * dwarf2read.c (line_header::file_name_at): Remove unused
6260 overload.
6261
6892f601
TV
62622019-04-23 Tom de Vries <tdevries@suse.de>
6263
6264 PR gdb/24438
6265 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6266 invocation.
6267
336d760d
AT
6268
62692019-03-27 Ali Tamur <tamur@google.com>
6270
6271 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6272 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6273 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6274 (dwarf_expr_context::get_addr_index): Likewise
6275 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6276 (symbol_needs_eval_context::get_addr_index): Likewise
6277 (disassemble_dwarf_expression): Add DW_OP_addrx
6278 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6279 (read_cutu_die_from_dwo): Update comment
6280 (skip_one_die): Add DW_FORM_addrx
6281 (read_attribute_value): Likewise
6282 (var_decode_location): Add DW_OP_addrx
6283 (dwarf2_const_value_attr): Add DW_FORM_addrx
6284 (dump_die_shallow): Likewise
6285 (dwarf2_fetch_constant_bytes): Likewise
6286 (decode_locdesc): Add DW_OP_addrx
6287 (skip_form_bytes): Add DW_FORM_addrx
6288
ad9d13f8
AT
62892019-04-22 Ali Tamur <tamur@google.com>
6290
6291 * MAINTAINERS (Write After Approval): Add self.
6292
d70cc3ba
SM
62932019-04-22 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6296 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6297 (open_symbol_file_object): Likewise.
6298 (svr4_default_sos): Add info parameter.
6299 (svr4_read_so_list): Likewise.
6300 (svr4_current_sos_direct): Adjust functions calls to pass down
6301 info.
6302 (svr4_current_sos_1): Add info parameter.
6303 (svr4_current_sos): Call get_svr4_info, pass info down to
6304 svr4_current_sos_1.
6305 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6306 get_svr4_info.
6307 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6308 get_svr4_info.
6309 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6310 to get_svr4_info.
6311 (probes_table_remove_objfile_probes): Likewise.
6312 (register_solib_event_probe): Add info parameter.
6313 (solist_update_incremental): Pass info parameter down to
6314 svr4_read_so_list.
6315 (disable_probes_interface): Add info parameter.
6316 (svr4_handle_solib_event): Pass current_program_space to
6317 get_svr4_info. Adjust disable_probes_interface cleanup.
6318 (svr4_create_probe_breakpoints): Add info parameter, pass it
6319 down to register_solib_event_probe.
6320 (svr4_create_solib_event_breakpoints): Add info parameter,
6321 pass it down to svr4_create_probe_breakpoints.
6322 (enable_break): Pass info down to
6323 svr4_create_solib_event_breakpoints.
6324 (svr4_solib_create_inferior_hook): Pass current_program_space to
6325 get_svr4_info.
6326 (svr4_clear_solib): Likewise.
6327
7905fc35
PA
63282019-04-22 Pedro Alves <palves@redhat.com>
6329
6330 * solib-svr4.c (svr4_free_objfile_observer): New.
6331 (probe_and_action::objfile): New field.
6332 (probes_table_htab_remove_objfile_probes)
6333 (probes_table_remove_objfile_probes): New functions.
6334 (register_solib_event_probe): Add 'objfile' parameter. Store it
6335 in the new probe_and_action. Don't store the probe in 'lookup'.
6336 (svr4_create_probe_breakpoints): Pass objfile to
6337 register_solib_event_probe.
6338 (_initialize_svr4_solib): Register a free_objfile observer.
6339
fb881986
TT
63402019-04-19 Tom Tromey <tom@tromey.com>
6341
6342 * common/queue.h: Remove.
6343
8732db6c
TT
63442019-04-19 Tom Tromey <tom@tromey.com>
6345
6346 * event-loop.c: Don't include "common/queue.h".
6347
97dfbadd
TT
63482019-04-19 Tom Tromey <tom@tromey.com>
6349
6350 * remote.c (remote_target): Use delete.
6351 * remote-notif.h: Include <list>, not "common/queue.h".
6352 (notif_client_p): Remove typedef.
6353 (remote_notif_state): Add constructor, destructor, initializer.
6354 <notif_queue>: Now a std::list.
6355 (remote_notif_state_xfree): Don't declare.
6356 * remote-notif.c (remote_notif_process, handle_notification)
6357 (remote_notif_state_allocate): Update.
6358 (~remote_notif_state): Rename from remote_notif_state_xfree.
6359
cf250e36
TT
63602019-04-19 Tom Tromey <tom@tromey.com>
6361
6362 * symfile.c (reread_symbols): Update.
6363 * objfiles.c (objfile_register_static_link)
6364 (objfile_lookup_static_link): Update
6365 (~objfile) Don't delete static_links.
6366 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6367
61f4b350
TT
63682019-04-19 Tom Tromey <tom@tromey.com>
6369
6370 * type-stack.h (struct type_stack) <insert>: Constify string.
6371 * type-stack.c (type_stack::insert): Constify string.
6372 * gdbtypes.h (lookup_template_type): Update.
6373 (address_space_name_to_int): Update.
6374 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6375 const.
6376 (lookup_template_type): Make name const.
6377 * c-exp.y: Update rules.
6378 (lex_one_token, classify_name, classify_inner_name)
6379 (c_print_token): Update.
6380 * p-exp.y: Update rules.
6381 (yylex): Update.
6382 * f-exp.y: Update rules.
6383 (yylex): Update.
6384 * d-exp.y: Update rules.
6385 (lex_one_token, classify_name, classify_inner_name): Update.
6386 * parse.c (write_dollar_variable, copy_name): Return std::string.
6387 * parser-defs.h (copy_name): Change return type.
6388 * m2-exp.y: Update rules.
6389 (yylex): Update.
6390 * go-exp.y (lex_one_token): Update.
6391 Update rules.
6392 (classify_unsafe_function, classify_packaged_name)
6393 (classify_name, yylex): Update.
6394
189b8c2e
ST
63952019-04-19 Sergei Trofimovich <siarheit@google.com>
6396
6397 * configure.ac: add --enable-source-highlight switch.
6398 * configure: Regenerate.
6399 * top.c (print_gdb_version): plumb --enable-source-highlight
6400 status to "show configuration".
6401
8ecb59f8
TT
64022019-04-19 Tom Tromey <tromey@adacore.com>
6403
6404 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6405 Check ADA_TYPE_P.
6406 (empty_record, ada_template_to_fixed_record_type_1)
6407 (template_to_static_fixed_type)
6408 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6409 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6410 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6411 macros.
6412
62160ec9
TT
64132019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6414
6415 PR symtab/24423:
6416 * source.c (print_source_lines_base): Advance "iter" when a
6417 control character is seen.
6418
f2ae8bc8
PW
64192019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6420
6421 * inferior.h (struct infcall_suspend_state_deleter):
6422 Catch exception in destructor to avoid crash.
6423
d563b953
PW
64242019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6425
6426 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6427 close to the add_com "shell".
6428
dc34c897
TT
64292019-04-18 Tom Tromey <tromey@adacore.com>
6430
6431 * process-stratum-target.h (class process_stratum_target)
6432 <stratum>: Add "final".
6433
a12e5744
TT
64342019-04-17 Tom Tromey <tromey@adacore.com>
6435
6436 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6437 against nullptr before use.
6438
a7e559cc
AH
64392019-04-17 Alan Hayward <alan.hayward@arm.com>
6440
6441 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6442
c01660c6
AB
64432019-04-17 Jim Wilson <jimw@sifive.com>
6444 Andrew Burgess <andrew.burgess@embecosm.com>
6445
6446 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6447 code read might fail, assume 4-byte breakpoint in that case.
6448
4aa866af
LS
64492019-04-15 Leszek Swirski <leszeks@google.com>
6450
6451 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6452 rather than a hand-rolled POD check when checking for forced MEMORY
6453 classification.
6454
48574d91
AH
64552019-04-15 Alan Hayward <alan.hayward@arm.com>
6456
6457 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6458 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6459 function.
6460 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6461 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6462 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6463 declaration.
6464
4da037ef
AH
64652019-04-15 Alan Hayward <alan.hayward@arm.com>
6466
6467 * aarch64-linux-nat.c
6468 (aarch64_linux_nat_target::thread_architecture): Add override.
6469 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6470 each VQ.
6471
ccb8d7e8
AH
64722019-04-15 Alan Hayward <alan.hayward@arm.com>
6473
6474 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6475
35add35e
AB
64762019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6477
6478 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6479 target types of size 96-bits, add some additional comments, and
6480 check that the builtin type we found was the correct size.
6481
51196bbc
EZ
64822019-04-12 Eli Zaretskii <eliz@gnu.org>
6483
6484 * utils.c (prompt_for_continue): Don't restore the styling at the
6485 end, as applied_style has the wrong value. This fixes styling in
6486 long lists of file names that are interrupted by the "Continue?"
6487 prompt.
6488
62253a61
AB
64892019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6490
6491 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6492 * c-lang.c (c_language_defn): Likewise.
6493 (cplus_language_defn): Likewise.
6494 (asm_language_defn): Likewise.
6495 (minimal_language_defn): Likewise.
6496 * d-lang.c (d_language_defn): Likewise.
6497 * f-lang.c (f_language_defn): Likewise.
6498 * go-lang.c (go_language_defn): Likewise.
6499 * language.c (unknown_language_defn): Likewise.
6500 (auto_language_defn): Likewise.
6501 * language.h (struct language_defn): Remove la_magic field.
6502 (LANG_MAGIC): Delete.
6503 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6504 * objc-lang.c (objc_language_defn): Likewise.
6505 * opencl-lang.c (opencl_language_defn): Likewise.
6506 * p-lang.c (pascal_language_defn): Likewise.
6507 * rust-lang.c (rust_language_defn): Likewise.
6508
a9158a86
AB
65092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * riscv-tdep.c (riscv_type_align): New function.
6512 (riscv_type_alignment): Delete.
6513 (riscv_arg_location): Use 'type_align'.
6514 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6515
41077b66
AB
65162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6517
6518 * gdbtypes.c (type_align): A struct with no non-static fields also
6519 has alignment of 1.
6520
9f0272f8
AB
65212019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6522
6523 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6524 component to 0.
6525 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6526 member.
6527 (riscv_struct_info::analyse): New implementation using new
6528 analyse_inner member function.
6529 (riscv_struct_info::field_offset): New member function.
6530 (riscv_struct_info::m_offsets): New member variable.
6531 (riscv_struct_info::analyse_inner): New private member function,
6532 takes the old implementation of riscv_struct_info::analyse but
6533 extended to track field offsets.
6534 (riscv_call_arg_struct): Update the struct folding special cases
6535 to handle cases where empty C++ structs, which are non-zero
6536 length, are found.
6537 (riscv_arg_location): Initialise the length of each location, a
6538 non-zero length now indicates the location is in use.
6539 (riscv_push_dummy_call): Allow for the first location having a
6540 non-zero offset when setting up arguments.
6541 (riscv_return_value): Likewise, but for return values.
6542
02cf60c7
TT
65432019-04-11 Tom Tromey <tromey@adacore.com>
6544
6545 * utils.c (internal_vproblem): Make "msg" const.
6546
68811f8f
AH
65472019-04-11 Alan Hayward <alan.hayward@arm.com>
6548
6549 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6550 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6551 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6552 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6553
3f52fdbc
KB
65542019-04-10 Kevin Buettner <kevinb@redhat.com>
6555
6556 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6557 function.
6558 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6559 of amd64_collect_native_gregset.
6560 (amd64_linux_nat_target::store_registers): Likewise.
6561
e9ad22ee
TT
65622019-04-10 Tom Tromey <tom@tromey.com>
6563
6564 * symtab.c (lookup_global_symbol_from_objfile)
6565 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6566 * objfiles.h (class separate_debug_iterator): New.
6567 (class separate_debug_range): New.
6568 (struct objfile) <separate_debug_objfiles>: New method.
6569 (objfile_separate_debug_iterate): Don't declare.
6570 * objfiles.c (separate_debug_iterator::operator++): Rename from
6571 objfile_separate_debug_iterate.
6572 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6573 iterator.
6574 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6575 iterator.
6576
ee371134
TT
65772019-04-10 Tom Tromey <tom@tromey.com>
6578
6579 * symfile.c (reread_symbols): Remove old comment.
6580 * objfiles.c (free_all_objfiles): Fix a typo.
6581
bf227d61
TT
65822019-04-10 Tom Tromey <tom@tromey.com>
6583
6584 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6585 * minsyms.c (lookup_minimal_symbol): Use foreach.
6586 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6587 (lookup_minimal_symbol_solib_trampoline): Likewise.
6588 * symfile.c (reread_symbols): Use foreach.
6589
8dc433a0
TT
65902019-04-09 Ivan Begert <ivanbegert@gmail.com>
6591 Tom Tromey <tromey@adacore.com>
6592
6593 PR rust/24414:
6594 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6595 (rust_lex_int_test): Change "value" to be LONGEST.
6596 (rust_lex_tests): Add test for long integer literal.
6597
9ab8741a
TT
65982019-04-09 Tom Tromey <tromey@adacore.com>
6599
6600 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6601 to bool.
6602 (extended_remote_target::attach): Update.
6603 (remote_target::remote_notice_new_inferior): Update.
6604 (remote_target::add_current_inferior_and_thread): Update.
6605 * inferior.c (exit_inferior_1): Use "false".
6606 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6607
e242fd12
SM
66082019-04-09 Simon Marchi <simon.marchi@efficios.com>
6609
9ca1957f 6610 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6611 the "start" command.
6612
2b0c8b01
KB
66132019-04-08 Kevin Buettner <kevinb@redhat.com>
6614
6615 * python/py-inferior.c (infpy_thread_from_thread_handle):
6616 Adjust comments to reflect renaming of thread_from_thread_handle
6617 to thread_from_handle. Adjust keywords. Fix type error message.
6618 (inferior_object_methods): Add thread_from_handle. Retain
6619 thread_from_thread_handle, but mark it as deprecated.
6620
50a82723
KB
66212019-04-08 Kevin Buettner <kevinb@redhat.com>
6622
6623 * gdbthread.h (find_thread_by_handle): Revise declaration.
6624 * thread.c (find_thread_by_handle): Likewise. Adjust
6625 implementation too.
6626 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6627 support for buffer objects as handles.
6628
cf63b016
KB
66292019-04-08 Kevin Buettner <kevinb@redhat.com>
6630
6631 * python/py-infthread.c (thpy_thread_handle): New function.
6632 (thread_object_methods): Register thpy_thread_handle.
6633
3d6c6204
KB
66342019-04-08 Kevin Buettner <kevinb@redhat.com>
6635
6636 * gdbthread.h (thread_to_thread_handle): Declare.
6637 * thread.c (gdbtypes.h): Include.
6638 (thread_to_thread_handle): New function.
6639
6640 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6641 (target_thread_info_to_thread_handle): Declare.
6642 * target.c (target_thread_info_to_thread_handle): New function.
6643 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6644 * target-delegates.c: Regenerate.
6645
6646 * linux-thread-db.c (class thread_db_target): Add method
6647 thread_info_to_thread_handle.
6648 (thread_db_target::thread_info_to_thread_handle): Define.
6649 * remote.c (class remote_target): Add new method
6650 thread_info_to_thread_handle.
6651 (remote_target::thread_info_to_thread_handle): Define.
6652
56be6ea8
PA
66532019-04-08 Pedro Alves <palves@redhat.com>
6654
6655 * common/common-exceptions.c (throw_exception): Don't create
6656 named object to throw; throw directly.
6657 (throw_it): Likewise. Don't initialize gdb_exception::message
6658 here, with new; pass FMT and AP to the ctor instead.
6659 * common/common-exceptions.h: Include <string>.
6660 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6661 const char *, va_list)): New ctor. Use std::make_shared.
6662 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6663 errors)): Delete.
6664 (gdb_exception_error::gdb_exception_error(enum errors, const char
6665 *, va_list)): New.
6666 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6667 Add assertion.
6668 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6669 errors)): Delete.
6670 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6671 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6672 Add assertion.
6673
eedc3f4f
TT
66742019-04-08 Tom Tromey <tom@tromey.com>
6675
6676 * valops.c (value_rtti_indirect_type): Replace throw_exception
6677 with throw.
6678 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6679 with throw.
6680 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6681 throw.
6682 * target.c (target_translate_tls_address): Replace throw_exception
6683 with throw.
6684 * stack.c (frame_apply_command_count): Replace throw_exception
6685 with throw.
6686 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6687 throw.
6688 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6689 with throw.
6690 * rs6000-tdep.c (rs6000_frame_cache)
6691 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6692 * remote.c: Replace throw_exception with throw.
6693 * record-full.c (record_full_message, record_full_wait_1)
6694 (record_full_restore): Replace throw_exception with throw.
6695 * record-btrace.c:
6696 (get_thread_current_frame_id, record_btrace_start_replaying)
6697 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6698 (cmd_record_btrace_start): Replace throw_exception with throw.
6699 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6700 throw.
6701 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6702 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6703 * linespec.c:
6704 (find_linespec_symbols): Replace throw_exception with throw.
6705 * infrun.c (displaced_step_prepare, resume): Replace
6706 throw_exception with throw.
6707 * infcmd.c (post_create_inferior): Replace throw_exception with
6708 throw.
6709 * inf-loop.c (inferior_event_handler): Replace throw_exception
6710 with throw.
6711 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6712 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6713 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6714 (get_prev_frame_always, get_frame_pc_if_available)
6715 (get_frame_address_in_block_if_available, get_frame_language):
6716 Replace throw_exception with throw.
6717 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6718 throw_exception with throw.
6719 * eval.c (fetch_subexp_value, evaluate_var_value)
6720 (evaluate_funcall, evaluate_subexp_standard): Replace
6721 throw_exception with throw.
6722 * dwarf2loc.c (call_site_find_chain)
6723 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6724 Replace throw_exception with throw.
6725 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6726 with throw.
6727 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6728 throw.
6729 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6730 * completer.c (complete_line_internal): Replace throw_exception
6731 with throw.
6732 * compile/compile-object-run.c (compile_object_run): Replace
6733 throw_exception with throw.
6734 * cli/cli-script.c (process_next_line): Replace throw_exception
6735 with throw.
6736 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6737 (btrace_enable, btrace_maint_update_pt_packets): Replace
6738 throw_exception with throw.
6739 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6740 throw_exception with throw.
6741 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6742 throw_exception with throw.
6743 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6744 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6745 * aarch64-tdep.c (aarch64_make_prologue_cache)
6746 (aarch64_make_stub_cache): Replace throw_exception with throw.
6747
26003a20
TT
67482019-04-08 Tom Tromey <tom@tromey.com>
6749
6750 * common/common-exceptions.c (throw_exception): Rename from
6751 throw_exception_cxx. Remove old copy. Make argument const.
6752 (throw_it): Create and throw exception objects directly.
6753 * common/common-exceptions.h (throw_exception): Make argument
6754 const.
6755 (struct gdb_exception_error): Add constructor.
6756 (struct gdb_exception_quit): Add constructor.
6757
d272eb37
TT
67582019-04-08 Tom Tromey <tom@tromey.com>
6759
6760 * common/common-exceptions.h (exception_rethrow): Don't declare.
6761 (TRY_SJLJ): Update comment.
6762 (TRY, CATCH, END_CATCH): Remove.
6763 * common/common-exceptions.c (exception_rethrow): Remove.
6764
230d2906
TT
67652019-04-08 Tom Tromey <tom@tromey.com>
6766
6767 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6768 Remove.
6769 (gdb_exception_error): Rename from
6770 gdb_exception_RETURN_MASK_ERROR.
6771 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6772 (gdb_quit_bad_alloc): Update.
6773 * aarch64-tdep.c: Update.
6774 * ada-lang.c: Update.
6775 * ada-typeprint.c: Update.
6776 * ada-valprint.c: Update.
6777 * amd64-tdep.c: Update.
6778 * arch-utils.c: Update.
6779 * break-catch-throw.c: Update.
6780 * breakpoint.c: Update.
6781 * btrace.c: Update.
6782 * c-varobj.c: Update.
6783 * cli/cli-cmds.c: Update.
6784 * cli/cli-interp.c: Update.
6785 * cli/cli-script.c: Update.
6786 * common/common-exceptions.c: Update.
6787 * common/new-op.c: Update.
6788 * common/selftest.c: Update.
6789 * compile/compile-c-symbols.c: Update.
6790 * compile/compile-cplus-symbols.c: Update.
6791 * compile/compile-object-load.c: Update.
6792 * compile/compile-object-run.c: Update.
6793 * completer.c: Update.
6794 * corelow.c: Update.
6795 * cp-abi.c: Update.
6796 * cp-support.c: Update.
6797 * cp-valprint.c: Update.
6798 * darwin-nat.c: Update.
6799 * disasm-selftests.c: Update.
6800 * dtrace-probe.c: Update.
6801 * dwarf-index-cache.c: Update.
6802 * dwarf-index-write.c: Update.
6803 * dwarf2-frame-tailcall.c: Update.
6804 * dwarf2-frame.c: Update.
6805 * dwarf2loc.c: Update.
6806 * dwarf2read.c: Update.
6807 * eval.c: Update.
6808 * event-loop.c: Update.
6809 * event-top.c: Update.
6810 * exec.c: Update.
6811 * f-valprint.c: Update.
6812 * fbsd-tdep.c: Update.
6813 * frame-unwind.c: Update.
6814 * frame.c: Update.
6815 * gdbtypes.c: Update.
6816 * gnu-v3-abi.c: Update.
6817 * guile/guile-internal.h: Update.
6818 * guile/scm-block.c: Update.
6819 * guile/scm-breakpoint.c: Update.
6820 * guile/scm-cmd.c: Update.
6821 * guile/scm-disasm.c: Update.
6822 * guile/scm-frame.c: Update.
6823 * guile/scm-lazy-string.c: Update.
6824 * guile/scm-math.c: Update.
6825 * guile/scm-param.c: Update.
6826 * guile/scm-ports.c: Update.
6827 * guile/scm-pretty-print.c: Update.
6828 * guile/scm-symbol.c: Update.
6829 * guile/scm-symtab.c: Update.
6830 * guile/scm-type.c: Update.
6831 * guile/scm-value.c: Update.
6832 * i386-linux-tdep.c: Update.
6833 * i386-tdep.c: Update.
6834 * inf-loop.c: Update.
6835 * infcall.c: Update.
6836 * infcmd.c: Update.
6837 * infrun.c: Update.
6838 * jit.c: Update.
6839 * language.c: Update.
6840 * linespec.c: Update.
6841 * linux-fork.c: Update.
6842 * linux-nat.c: Update.
6843 * linux-tdep.c: Update.
6844 * linux-thread-db.c: Update.
6845 * main.c: Update.
6846 * mi/mi-cmd-break.c: Update.
6847 * mi/mi-cmd-stack.c: Update.
6848 * mi/mi-interp.c: Update.
6849 * mi/mi-main.c: Update.
6850 * objc-lang.c: Update.
6851 * p-valprint.c: Update.
6852 * parse.c: Update.
6853 * ppc-linux-tdep.c: Update.
6854 * printcmd.c: Update.
6855 * python/py-arch.c: Update.
6856 * python/py-breakpoint.c: Update.
6857 * python/py-cmd.c: Update.
6858 * python/py-finishbreakpoint.c: Update.
6859 * python/py-frame.c: Update.
6860 * python/py-framefilter.c: Update.
6861 * python/py-gdb-readline.c: Update.
6862 * python/py-inferior.c: Update.
6863 * python/py-infthread.c: Update.
6864 * python/py-lazy-string.c: Update.
6865 * python/py-linetable.c: Update.
6866 * python/py-objfile.c: Update.
6867 * python/py-param.c: Update.
6868 * python/py-prettyprint.c: Update.
6869 * python/py-progspace.c: Update.
6870 * python/py-record-btrace.c: Update.
6871 * python/py-record.c: Update.
6872 * python/py-symbol.c: Update.
6873 * python/py-type.c: Update.
6874 * python/py-unwind.c: Update.
6875 * python/py-utils.c: Update.
6876 * python/py-value.c: Update.
6877 * python/python.c: Update.
6878 * record-btrace.c: Update.
6879 * record-full.c: Update.
6880 * remote-fileio.c: Update.
6881 * remote.c: Update.
6882 * riscv-tdep.c: Update.
6883 * rs6000-aix-tdep.c: Update.
6884 * rs6000-tdep.c: Update.
6885 * rust-exp.y: Update.
6886 * rust-lang.c: Update.
6887 * s390-tdep.c: Update.
6888 * selftest-arch.c: Update.
6889 * solib-dsbt.c: Update.
6890 * solib-frv.c: Update.
6891 * solib-spu.c: Update.
6892 * solib-svr4.c: Update.
6893 * solib.c: Update.
6894 * sparc64-linux-tdep.c: Update.
6895 * stack.c: Update.
6896 * symfile-mem.c: Update.
6897 * symmisc.c: Update.
6898 * target.c: Update.
6899 * thread.c: Update.
6900 * top.c: Update.
6901 * tracefile-tfile.c: Update.
6902 * tui/tui.c: Update.
6903 * typeprint.c: Update.
6904 * unittests/cli-utils-selftests.c: Update.
6905 * unittests/parse-connection-spec-selftests.c: Update.
6906 * valops.c: Update.
6907 * valprint.c: Update.
6908 * value.c: Update.
6909 * varobj.c: Update.
6910 * windows-nat.c: Update.
6911 * x86-linux-nat.c: Update.
6912 * xml-support.c: Update.
6913
a70b8144
TT
69142019-04-08 Tom Tromey <tom@tromey.com>
6915
6916 * xml-support.c: Use C++ exception handling.
6917 * x86-linux-nat.c: Use C++ exception handling.
6918 * windows-nat.c: Use C++ exception handling.
6919 * varobj.c: Use C++ exception handling.
6920 * value.c: Use C++ exception handling.
6921 * valprint.c: Use C++ exception handling.
6922 * valops.c: Use C++ exception handling.
6923 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6924 handling.
6925 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6926 * typeprint.c: Use C++ exception handling.
6927 * tui/tui.c: Use C++ exception handling.
6928 * tracefile-tfile.c: Use C++ exception handling.
6929 * top.c: Use C++ exception handling.
6930 * thread.c: Use C++ exception handling.
6931 * target.c: Use C++ exception handling.
6932 * symmisc.c: Use C++ exception handling.
6933 * symfile-mem.c: Use C++ exception handling.
6934 * stack.c: Use C++ exception handling.
6935 * sparc64-linux-tdep.c: Use C++ exception handling.
6936 * solib.c: Use C++ exception handling.
6937 * solib-svr4.c: Use C++ exception handling.
6938 * solib-spu.c: Use C++ exception handling.
6939 * solib-frv.c: Use C++ exception handling.
6940 * solib-dsbt.c: Use C++ exception handling.
6941 * selftest-arch.c: Use C++ exception handling.
6942 * s390-tdep.c: Use C++ exception handling.
6943 * rust-lang.c: Use C++ exception handling.
6944 * rust-exp.y: Use C++ exception handling.
6945 * rs6000-tdep.c: Use C++ exception handling.
6946 * rs6000-aix-tdep.c: Use C++ exception handling.
6947 * riscv-tdep.c: Use C++ exception handling.
6948 * remote.c: Use C++ exception handling.
6949 * remote-fileio.c: Use C++ exception handling.
6950 * record-full.c: Use C++ exception handling.
6951 * record-btrace.c: Use C++ exception handling.
6952 * python/python.c: Use C++ exception handling.
6953 * python/py-value.c: Use C++ exception handling.
6954 * python/py-utils.c: Use C++ exception handling.
6955 * python/py-unwind.c: Use C++ exception handling.
6956 * python/py-type.c: Use C++ exception handling.
6957 * python/py-symbol.c: Use C++ exception handling.
6958 * python/py-record.c: Use C++ exception handling.
6959 * python/py-record-btrace.c: Use C++ exception handling.
6960 * python/py-progspace.c: Use C++ exception handling.
6961 * python/py-prettyprint.c: Use C++ exception handling.
6962 * python/py-param.c: Use C++ exception handling.
6963 * python/py-objfile.c: Use C++ exception handling.
6964 * python/py-linetable.c: Use C++ exception handling.
6965 * python/py-lazy-string.c: Use C++ exception handling.
6966 * python/py-infthread.c: Use C++ exception handling.
6967 * python/py-inferior.c: Use C++ exception handling.
6968 * python/py-gdb-readline.c: Use C++ exception handling.
6969 * python/py-framefilter.c: Use C++ exception handling.
6970 * python/py-frame.c: Use C++ exception handling.
6971 * python/py-finishbreakpoint.c: Use C++ exception handling.
6972 * python/py-cmd.c: Use C++ exception handling.
6973 * python/py-breakpoint.c: Use C++ exception handling.
6974 * python/py-arch.c: Use C++ exception handling.
6975 * printcmd.c: Use C++ exception handling.
6976 * ppc-linux-tdep.c: Use C++ exception handling.
6977 * parse.c: Use C++ exception handling.
6978 * p-valprint.c: Use C++ exception handling.
6979 * objc-lang.c: Use C++ exception handling.
6980 * mi/mi-main.c: Use C++ exception handling.
6981 * mi/mi-interp.c: Use C++ exception handling.
6982 * mi/mi-cmd-stack.c: Use C++ exception handling.
6983 * mi/mi-cmd-break.c: Use C++ exception handling.
6984 * main.c: Use C++ exception handling.
6985 * linux-thread-db.c: Use C++ exception handling.
6986 * linux-tdep.c: Use C++ exception handling.
6987 * linux-nat.c: Use C++ exception handling.
6988 * linux-fork.c: Use C++ exception handling.
6989 * linespec.c: Use C++ exception handling.
6990 * language.c: Use C++ exception handling.
6991 * jit.c: Use C++ exception handling.
6992 * infrun.c: Use C++ exception handling.
6993 * infcmd.c: Use C++ exception handling.
6994 * infcall.c: Use C++ exception handling.
6995 * inf-loop.c: Use C++ exception handling.
6996 * i386-tdep.c: Use C++ exception handling.
6997 * i386-linux-tdep.c: Use C++ exception handling.
6998 * guile/scm-value.c: Use C++ exception handling.
6999 * guile/scm-type.c: Use C++ exception handling.
7000 * guile/scm-symtab.c: Use C++ exception handling.
7001 * guile/scm-symbol.c: Use C++ exception handling.
7002 * guile/scm-pretty-print.c: Use C++ exception handling.
7003 * guile/scm-ports.c: Use C++ exception handling.
7004 * guile/scm-param.c: Use C++ exception handling.
7005 * guile/scm-math.c: Use C++ exception handling.
7006 * guile/scm-lazy-string.c: Use C++ exception handling.
7007 * guile/scm-frame.c: Use C++ exception handling.
7008 * guile/scm-disasm.c: Use C++ exception handling.
7009 * guile/scm-cmd.c: Use C++ exception handling.
7010 * guile/scm-breakpoint.c: Use C++ exception handling.
7011 * guile/scm-block.c: Use C++ exception handling.
7012 * guile/guile-internal.h: Use C++ exception handling.
7013 * gnu-v3-abi.c: Use C++ exception handling.
7014 * gdbtypes.c: Use C++ exception handling.
7015 * frame.c: Use C++ exception handling.
7016 * frame-unwind.c: Use C++ exception handling.
7017 * fbsd-tdep.c: Use C++ exception handling.
7018 * f-valprint.c: Use C++ exception handling.
7019 * exec.c: Use C++ exception handling.
7020 * event-top.c: Use C++ exception handling.
7021 * event-loop.c: Use C++ exception handling.
7022 * eval.c: Use C++ exception handling.
7023 * dwarf2read.c: Use C++ exception handling.
7024 * dwarf2loc.c: Use C++ exception handling.
7025 * dwarf2-frame.c: Use C++ exception handling.
7026 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7027 * dwarf-index-write.c: Use C++ exception handling.
7028 * dwarf-index-cache.c: Use C++ exception handling.
7029 * dtrace-probe.c: Use C++ exception handling.
7030 * disasm-selftests.c: Use C++ exception handling.
7031 * darwin-nat.c: Use C++ exception handling.
7032 * cp-valprint.c: Use C++ exception handling.
7033 * cp-support.c: Use C++ exception handling.
7034 * cp-abi.c: Use C++ exception handling.
7035 * corelow.c: Use C++ exception handling.
7036 * completer.c: Use C++ exception handling.
7037 * compile/compile-object-run.c: Use C++ exception handling.
7038 * compile/compile-object-load.c: Use C++ exception handling.
7039 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7040 * compile/compile-c-symbols.c: Use C++ exception handling.
7041 * common/selftest.c: Use C++ exception handling.
7042 * common/new-op.c: Use C++ exception handling.
7043 * cli/cli-script.c: Use C++ exception handling.
7044 * cli/cli-interp.c: Use C++ exception handling.
7045 * cli/cli-cmds.c: Use C++ exception handling.
7046 * c-varobj.c: Use C++ exception handling.
7047 * btrace.c: Use C++ exception handling.
7048 * breakpoint.c: Use C++ exception handling.
7049 * break-catch-throw.c: Use C++ exception handling.
7050 * arch-utils.c: Use C++ exception handling.
7051 * amd64-tdep.c: Use C++ exception handling.
7052 * ada-valprint.c: Use C++ exception handling.
7053 * ada-typeprint.c: Use C++ exception handling.
7054 * ada-lang.c: Use C++ exception handling.
7055 * aarch64-tdep.c: Use C++ exception handling.
7056
3d6e9d23
TT
70572019-04-08 Tom Tromey <tom@tromey.com>
7058
7059 * xml-support.c (gdb_xml_parser::parse): Update.
7060 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7061 * value.c (show_convenience): Update.
7062 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7063 (test_parse_flags_qcs): Update.
7064 * thread.c (thr_try_catch_cmd): Update.
7065 * target.c (target_translate_tls_address): Update.
7066 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7067 (info_frame_command_core, frame_apply_command_count): Update.
7068 * rust-exp.y (rust_lex_exception_test): Update.
7069 * riscv-tdep.c (riscv_print_one_register_info): Update.
7070 * remote.c (remote_target::enable_btrace): Update.
7071 * record-btrace.c (record_btrace_enable_warn): Update.
7072 * python/py-utils.c (gdbpy_convert_exception): Update.
7073 * printcmd.c (do_one_display, print_variable_and_value): Update.
7074 * mi/mi-main.c (mi_print_exception): Update.
7075 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7076 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7077 * linux-nat.c (linux_nat_target::attach): Update.
7078 * linux-fork.c (class scoped_switch_fork_info): Update.
7079 * infrun.c (displaced_step_prepare): Update.
7080 * infcall.c (call_function_by_hand_dummy): Update.
7081 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7082 * gnu-v3-abi.c (print_one_vtable): Update.
7083 * frame.c (get_prev_frame_always): Update.
7084 * f-valprint.c (info_common_command_for_block): Update.
7085 * exec.c (try_open_exec_file): Update.
7086 * exceptions.c (print_exception, exception_print)
7087 (exception_fprintf, exception_print_same): Update.
7088 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7089 * dwarf-index-cache.c (index_cache::store)
7090 (index_cache::lookup_gdb_index): Update.
7091 * darwin-nat.c (maybe_cache_shell): Update.
7092 * cp-valprint.c (cp_print_value_fields): Update.
7093 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7094 (gcc_cplus_symbol_address): Update.
7095 * compile/compile-c-symbols.c (gcc_convert_symbol)
7096 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7097 * common/selftest.c: Update.
7098 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7099 a std::string.
7100 (exception_try_scope_entry, exception_try_scope_exit): Don't
7101 declare.
7102 (struct exception_try_scope): Remove.
7103 (TRY): Don't use exception_try_scope.
7104 (struct gdb_exception): Add constructor, operator=.
7105 <what>: New method.
7106 (struct gdb_exception_RETURN_MASK_ALL)
7107 (struct gdb_exception_RETURN_MASK_ERROR)
7108 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7109 (struct gdb_quit_bad_alloc): Update.
7110 * common/common-exceptions.c (exception_none): Change
7111 initializer.
7112 (struct catcher) <state, exception>: Initialize inline.
7113 <prev>: Remove member.
7114 (current_catcher): Remove.
7115 (catchers): New global.
7116 (exceptions_state_mc_init): Simplify.
7117 (catcher_pop): Remove.
7118 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7119 (try_scope_depth, exception_try_scope_entry)
7120 (exception_try_scope_exit): Remove.
7121 (throw_exception_sjlj): Update.
7122 (exception_messages, exception_messages_size): Remove.
7123 (throw_it): Simplify.
7124 (gdb_exception_sliced_copy): Remove.
7125 (throw_exception_cxx): Update.
7126 * cli/cli-script.c (script_from_file): Update.
7127 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7128 Update.
7129 * ada-valprint.c (ada_val_print): Update.
7130 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7131 (create_excep_cond_exprs): Update.
7132
c5c10118
TT
71332019-04-08 Tom Tromey <tom@tromey.com>
7134
7135 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7136 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7137 (TRY, CATCH, END_CATCH): Remove some definitions.
7138 * common/common-exceptions.c: Don't use GDB_XCPT.
7139 (catcher_list_size): Remove.
7140 (throw_exception, throw_it): Simplify.
7141
4de283e4
TT
71422019-04-05 Tom Tromey <tom@tromey.com>
7143
7144 Revert the header-sorting patch.
7145 * ft32-tdep.c: Revert.
7146 * frv-tdep.c: Revert.
7147 * frv-linux-tdep.c: Revert.
7148 * frame.c: Revert.
7149 * frame-unwind.c: Revert.
7150 * frame-base.c: Revert.
7151 * fork-child.c: Revert.
7152 * findvar.c: Revert.
7153 * findcmd.c: Revert.
7154 * filesystem.c: Revert.
7155 * filename-seen-cache.h: Revert.
7156 * filename-seen-cache.c: Revert.
7157 * fbsd-tdep.c: Revert.
7158 * fbsd-nat.h: Revert.
7159 * fbsd-nat.c: Revert.
7160 * f-valprint.c: Revert.
7161 * f-typeprint.c: Revert.
7162 * f-lang.c: Revert.
7163 * extension.h: Revert.
7164 * extension.c: Revert.
7165 * extension-priv.h: Revert.
7166 * expprint.c: Revert.
7167 * exec.h: Revert.
7168 * exec.c: Revert.
7169 * exceptions.c: Revert.
7170 * event-top.c: Revert.
7171 * event-loop.c: Revert.
7172 * eval.c: Revert.
7173 * elfread.c: Revert.
7174 * dwarf2read.h: Revert.
7175 * dwarf2read.c: Revert.
7176 * dwarf2loc.c: Revert.
7177 * dwarf2expr.h: Revert.
7178 * dwarf2expr.c: Revert.
7179 * dwarf2-frame.c: Revert.
7180 * dwarf2-frame-tailcall.c: Revert.
7181 * dwarf-index-write.h: Revert.
7182 * dwarf-index-write.c: Revert.
7183 * dwarf-index-common.c: Revert.
7184 * dwarf-index-cache.h: Revert.
7185 * dwarf-index-cache.c: Revert.
7186 * dummy-frame.c: Revert.
7187 * dtrace-probe.c: Revert.
7188 * disasm.h: Revert.
7189 * disasm.c: Revert.
7190 * disasm-selftests.c: Revert.
7191 * dictionary.c: Revert.
7192 * dicos-tdep.c: Revert.
7193 * demangle.c: Revert.
7194 * dcache.h: Revert.
7195 * dcache.c: Revert.
7196 * darwin-nat.h: Revert.
7197 * darwin-nat.c: Revert.
7198 * darwin-nat-info.c: Revert.
7199 * d-valprint.c: Revert.
7200 * d-namespace.c: Revert.
7201 * d-lang.c: Revert.
7202 * ctf.c: Revert.
7203 * csky-tdep.c: Revert.
7204 * csky-linux-tdep.c: Revert.
7205 * cris-tdep.c: Revert.
7206 * cris-linux-tdep.c: Revert.
7207 * cp-valprint.c: Revert.
7208 * cp-support.c: Revert.
7209 * cp-namespace.c: Revert.
7210 * cp-abi.c: Revert.
7211 * corelow.c: Revert.
7212 * corefile.c: Revert.
7213 * continuations.c: Revert.
7214 * completer.h: Revert.
7215 * completer.c: Revert.
7216 * complaints.c: Revert.
7217 * coffread.c: Revert.
7218 * coff-pe-read.c: Revert.
7219 * cli-out.h: Revert.
7220 * cli-out.c: Revert.
7221 * charset.c: Revert.
7222 * c-varobj.c: Revert.
7223 * c-valprint.c: Revert.
7224 * c-typeprint.c: Revert.
7225 * c-lang.c: Revert.
7226 * buildsym.c: Revert.
7227 * buildsym-legacy.c: Revert.
7228 * build-id.h: Revert.
7229 * build-id.c: Revert.
7230 * btrace.c: Revert.
7231 * bsd-uthread.c: Revert.
7232 * breakpoint.h: Revert.
7233 * breakpoint.c: Revert.
7234 * break-catch-throw.c: Revert.
7235 * break-catch-syscall.c: Revert.
7236 * break-catch-sig.c: Revert.
7237 * blockframe.c: Revert.
7238 * block.c: Revert.
7239 * bfin-tdep.c: Revert.
7240 * bfin-linux-tdep.c: Revert.
7241 * bfd-target.c: Revert.
7242 * bcache.c: Revert.
7243 * ax-general.c: Revert.
7244 * ax-gdb.h: Revert.
7245 * ax-gdb.c: Revert.
7246 * avr-tdep.c: Revert.
7247 * auxv.c: Revert.
7248 * auto-load.c: Revert.
7249 * arm-wince-tdep.c: Revert.
7250 * arm-tdep.c: Revert.
7251 * arm-symbian-tdep.c: Revert.
7252 * arm-pikeos-tdep.c: Revert.
7253 * arm-obsd-tdep.c: Revert.
7254 * arm-nbsd-tdep.c: Revert.
7255 * arm-nbsd-nat.c: Revert.
7256 * arm-linux-tdep.c: Revert.
7257 * arm-linux-nat.c: Revert.
7258 * arm-fbsd-tdep.c: Revert.
7259 * arm-fbsd-nat.c: Revert.
7260 * arm-bsd-tdep.c: Revert.
7261 * arch-utils.c: Revert.
7262 * arc-tdep.c: Revert.
7263 * arc-newlib-tdep.c: Revert.
7264 * annotate.h: Revert.
7265 * annotate.c: Revert.
7266 * amd64-windows-tdep.c: Revert.
7267 * amd64-windows-nat.c: Revert.
7268 * amd64-tdep.c: Revert.
7269 * amd64-sol2-tdep.c: Revert.
7270 * amd64-obsd-tdep.c: Revert.
7271 * amd64-obsd-nat.c: Revert.
7272 * amd64-nbsd-tdep.c: Revert.
7273 * amd64-nbsd-nat.c: Revert.
7274 * amd64-nat.c: Revert.
7275 * amd64-linux-tdep.c: Revert.
7276 * amd64-linux-nat.c: Revert.
7277 * amd64-fbsd-tdep.c: Revert.
7278 * amd64-fbsd-nat.c: Revert.
7279 * amd64-dicos-tdep.c: Revert.
7280 * amd64-darwin-tdep.c: Revert.
7281 * amd64-bsd-nat.c: Revert.
7282 * alpha-tdep.c: Revert.
7283 * alpha-obsd-tdep.c: Revert.
7284 * alpha-nbsd-tdep.c: Revert.
7285 * alpha-mdebug-tdep.c: Revert.
7286 * alpha-linux-tdep.c: Revert.
7287 * alpha-linux-nat.c: Revert.
7288 * alpha-bsd-tdep.c: Revert.
7289 * alpha-bsd-nat.c: Revert.
7290 * aix-thread.c: Revert.
7291 * agent.c: Revert.
7292 * addrmap.c: Revert.
7293 * ada-varobj.c: Revert.
7294 * ada-valprint.c: Revert.
7295 * ada-typeprint.c: Revert.
7296 * ada-tasks.c: Revert.
7297 * ada-lang.c: Revert.
7298 * aarch64-tdep.c: Revert.
7299 * aarch64-ravenscar-thread.c: Revert.
7300 * aarch64-newlib-tdep.c: Revert.
7301 * aarch64-linux-tdep.c: Revert.
7302 * aarch64-linux-nat.c: Revert.
7303 * aarch64-fbsd-tdep.c: Revert.
7304 * aarch64-fbsd-nat.c: Revert.
7305 * aarch32-linux-nat.c: Revert.
7306
d55e5aa6
TT
73072019-04-05 Tom Tromey <tom@tromey.com>
7308
7309 * ft32-tdep.c: Sort headers.
7310 * frv-tdep.c: Sort headers.
7311 * frv-linux-tdep.c: Sort headers.
7312 * frame.c: Sort headers.
7313 * frame-unwind.c: Sort headers.
7314 * frame-base.c: Sort headers.
7315 * fork-child.c: Sort headers.
7316 * findvar.c: Sort headers.
7317 * findcmd.c: Sort headers.
7318 * filesystem.c: Sort headers.
7319 * filename-seen-cache.h: Sort headers.
7320 * filename-seen-cache.c: Sort headers.
7321 * fbsd-tdep.c: Sort headers.
7322 * fbsd-nat.h: Sort headers.
7323 * fbsd-nat.c: Sort headers.
7324 * f-valprint.c: Sort headers.
7325 * f-typeprint.c: Sort headers.
7326 * f-lang.c: Sort headers.
7327 * extension.h: Sort headers.
7328 * extension.c: Sort headers.
7329 * extension-priv.h: Sort headers.
7330 * expprint.c: Sort headers.
7331 * exec.h: Sort headers.
7332 * exec.c: Sort headers.
7333 * exceptions.c: Sort headers.
7334 * event-top.c: Sort headers.
7335 * event-loop.c: Sort headers.
7336 * eval.c: Sort headers.
7337 * elfread.c: Sort headers.
7338 * dwarf2read.h: Sort headers.
7339 * dwarf2read.c: Sort headers.
7340 * dwarf2loc.c: Sort headers.
7341 * dwarf2expr.h: Sort headers.
7342 * dwarf2expr.c: Sort headers.
7343 * dwarf2-frame.c: Sort headers.
7344 * dwarf2-frame-tailcall.c: Sort headers.
7345 * dwarf-index-write.h: Sort headers.
7346 * dwarf-index-write.c: Sort headers.
7347 * dwarf-index-common.c: Sort headers.
7348 * dwarf-index-cache.h: Sort headers.
7349 * dwarf-index-cache.c: Sort headers.
7350 * dummy-frame.c: Sort headers.
7351 * dtrace-probe.c: Sort headers.
7352 * disasm.h: Sort headers.
7353 * disasm.c: Sort headers.
7354 * disasm-selftests.c: Sort headers.
7355 * dictionary.c: Sort headers.
7356 * dicos-tdep.c: Sort headers.
7357 * demangle.c: Sort headers.
7358 * dcache.h: Sort headers.
7359 * dcache.c: Sort headers.
7360 * darwin-nat.h: Sort headers.
7361 * darwin-nat.c: Sort headers.
7362 * darwin-nat-info.c: Sort headers.
7363 * d-valprint.c: Sort headers.
7364 * d-namespace.c: Sort headers.
7365 * d-lang.c: Sort headers.
7366 * ctf.c: Sort headers.
7367 * csky-tdep.c: Sort headers.
7368 * csky-linux-tdep.c: Sort headers.
7369 * cris-tdep.c: Sort headers.
7370 * cris-linux-tdep.c: Sort headers.
7371 * cp-valprint.c: Sort headers.
7372 * cp-support.c: Sort headers.
7373 * cp-namespace.c: Sort headers.
7374 * cp-abi.c: Sort headers.
7375 * corelow.c: Sort headers.
7376 * corefile.c: Sort headers.
7377 * continuations.c: Sort headers.
7378 * completer.h: Sort headers.
7379 * completer.c: Sort headers.
7380 * complaints.c: Sort headers.
7381 * coffread.c: Sort headers.
7382 * coff-pe-read.c: Sort headers.
7383 * cli-out.h: Sort headers.
7384 * cli-out.c: Sort headers.
7385 * charset.c: Sort headers.
7386 * c-varobj.c: Sort headers.
7387 * c-valprint.c: Sort headers.
7388 * c-typeprint.c: Sort headers.
7389 * c-lang.c: Sort headers.
7390 * buildsym.c: Sort headers.
7391 * buildsym-legacy.c: Sort headers.
7392 * build-id.h: Sort headers.
7393 * build-id.c: Sort headers.
7394 * btrace.c: Sort headers.
7395 * bsd-uthread.c: Sort headers.
7396 * breakpoint.h: Sort headers.
7397 * breakpoint.c: Sort headers.
7398 * break-catch-throw.c: Sort headers.
7399 * break-catch-syscall.c: Sort headers.
7400 * break-catch-sig.c: Sort headers.
7401 * blockframe.c: Sort headers.
7402 * block.c: Sort headers.
7403 * bfin-tdep.c: Sort headers.
7404 * bfin-linux-tdep.c: Sort headers.
7405 * bfd-target.c: Sort headers.
7406 * bcache.c: Sort headers.
7407 * ax-general.c: Sort headers.
7408 * ax-gdb.h: Sort headers.
7409 * ax-gdb.c: Sort headers.
7410 * avr-tdep.c: Sort headers.
7411 * auxv.c: Sort headers.
7412 * auto-load.c: Sort headers.
7413 * arm-wince-tdep.c: Sort headers.
7414 * arm-tdep.c: Sort headers.
7415 * arm-symbian-tdep.c: Sort headers.
7416 * arm-pikeos-tdep.c: Sort headers.
7417 * arm-obsd-tdep.c: Sort headers.
7418 * arm-nbsd-tdep.c: Sort headers.
7419 * arm-nbsd-nat.c: Sort headers.
7420 * arm-linux-tdep.c: Sort headers.
7421 * arm-linux-nat.c: Sort headers.
7422 * arm-fbsd-tdep.c: Sort headers.
7423 * arm-fbsd-nat.c: Sort headers.
7424 * arm-bsd-tdep.c: Sort headers.
7425 * arch-utils.c: Sort headers.
7426 * arc-tdep.c: Sort headers.
7427 * arc-newlib-tdep.c: Sort headers.
7428 * annotate.h: Sort headers.
7429 * annotate.c: Sort headers.
7430 * amd64-windows-tdep.c: Sort headers.
7431 * amd64-windows-nat.c: Sort headers.
7432 * amd64-tdep.c: Sort headers.
7433 * amd64-sol2-tdep.c: Sort headers.
7434 * amd64-obsd-tdep.c: Sort headers.
7435 * amd64-obsd-nat.c: Sort headers.
7436 * amd64-nbsd-tdep.c: Sort headers.
7437 * amd64-nbsd-nat.c: Sort headers.
7438 * amd64-nat.c: Sort headers.
7439 * amd64-linux-tdep.c: Sort headers.
7440 * amd64-linux-nat.c: Sort headers.
7441 * amd64-fbsd-tdep.c: Sort headers.
7442 * amd64-fbsd-nat.c: Sort headers.
7443 * amd64-dicos-tdep.c: Sort headers.
7444 * amd64-darwin-tdep.c: Sort headers.
7445 * amd64-bsd-nat.c: Sort headers.
7446 * alpha-tdep.c: Sort headers.
7447 * alpha-obsd-tdep.c: Sort headers.
7448 * alpha-nbsd-tdep.c: Sort headers.
7449 * alpha-mdebug-tdep.c: Sort headers.
7450 * alpha-linux-tdep.c: Sort headers.
7451 * alpha-linux-nat.c: Sort headers.
7452 * alpha-bsd-tdep.c: Sort headers.
7453 * alpha-bsd-nat.c: Sort headers.
7454 * aix-thread.c: Sort headers.
7455 * agent.c: Sort headers.
7456 * addrmap.c: Sort headers.
7457 * ada-varobj.c: Sort headers.
7458 * ada-valprint.c: Sort headers.
7459 * ada-typeprint.c: Sort headers.
7460 * ada-tasks.c: Sort headers.
7461 * ada-lang.c: Sort headers.
7462 * aarch64-tdep.c: Sort headers.
7463 * aarch64-ravenscar-thread.c: Sort headers.
7464 * aarch64-newlib-tdep.c: Sort headers.
7465 * aarch64-linux-tdep.c: Sort headers.
7466 * aarch64-linux-nat.c: Sort headers.
7467 * aarch64-fbsd-tdep.c: Sort headers.
7468 * aarch64-fbsd-nat.c: Sort headers.
7469 * aarch32-linux-nat.c: Sort headers.
7470
699bd4cf
TT
74712019-04-04 Tom Tromey <tom@tromey.com>
7472
7473 * varobj.c (varobj_create): Update.
7474 * rust-exp.y (struct rust_parser) <update_innermost_block,
7475 lookup_symbol>: New methods.
7476 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7477 Rename.
7478 (rust_parser::rust_lookup_type)
7479 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7480 * printcmd.c (display_command, do_one_display): Update.
7481 * parser-defs.h (struct parser_state) <parser_state>: Add
7482 "tracker" parameter.
7483 (block_tracker): New member.
7484 (class innermost_block_tracker) <innermost_block_tracker>: Add
7485 "types" parameter.
7486 <reset>: Remove method.
7487 (innermost_block): Don't declare.
7488 (null_post_parser): Update.
7489 * parse.c (innermost_block): Remove global.
7490 (write_dollar_variable): Update.
7491 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7492 Remove "tracker_types" parameter.
7493 (parse_expression): Add "tracker" parameter.
7494 (parse_expression_for_completion): Update.
7495 (null_post_parser): Add "tracker" parameter.
7496 * p-exp.y: Update rules.
7497 * m2-exp.y: Update rules.
7498 * language.h (struct language_defn) <la_post_parser>: Add
7499 "tracker" parameter.
7500 * go-exp.y: Update rules.
7501 * f-exp.y: Update rules.
7502 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7503 parameter.
7504 * d-exp.y: Update rules.
7505 * c-exp.y: Update rules.
7506 * breakpoint.c (set_breakpoint_condition): Create an
7507 innermost_block_tracker.
7508 (watch_command_1): Likewise.
7509 * ada-lang.c (resolve): Add "tracker" parameter.
7510 (resolve_subexp): Likewise.
7511 * ada-exp.y (write_var_from_sym): Update.
7512
dac43e32
TT
75132019-04-04 Tom Tromey <tom@tromey.com>
7514
7515 * type-stack.h: New file.
7516 * type-stack.c: New file.
7517 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7518 type-stack.h.
7519 (insert_into_type_stack, insert_type, push_type, push_type_int)
7520 (insert_type_address_space, pop_type, pop_type_int)
7521 (pop_typelist, pop_type_stack, append_type_stack)
7522 (push_type_stack, get_type_stack, push_typelist)
7523 (follow_type_instance_flags, follow_types): Don't declare.
7524 * parse.c (type_stack): Remove global.
7525 (parse_exp_in_context): Update.
7526 (insert_into_type_stack, insert_type, push_type, push_type_int)
7527 (insert_type_address_space, pop_type, pop_type_int)
7528 (pop_typelist, pop_type_stack, append_type_stack)
7529 (push_type_stack, get_type_stack, push_typelist)
7530 (follow_type_instance_flags, follow_types): Remove (moved to
7531 type-stack.c).
7532 * f-exp.y (type_stack): New global.
7533 Update rules.
7534 (push_kind_type, f_parse): Update.
7535 * d-exp.y (type_stack): New global.
7536 Update rules.
7537 (d_parse): Update.
7538 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7539 Update rules.
7540 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7541 (HFILES_NO_SRCDIR): Add type-stack.h.
7542
2a612529
TT
75432019-04-04 Tom Tromey <tom@tromey.com>
7544
7545 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7546 (rust_parser::convert_ast_to_expression, rust_parse)
7547 (rust_lex_test_completion, rust_lex_tests): Update.
7548 * parser-defs.h (struct expr_completion_state): New.
7549 (struct parser_state) <parser_state>: Add completion parameter.
7550 <mark_struct_expression, mark_completion_tag>: New methods.
7551 <parse_completion, m_completion_state>: New members.
7552 (prefixify_expression, null_post_parser): Update.
7553 (mark_struct_expression, mark_completion_tag): Don't declare.
7554 * parse.c (parse_completion, expout_last_struct)
7555 (expout_tag_completion_type, expout_completion_name): Remove
7556 globals.
7557 (parser_state::mark_struct_expression)
7558 (parser_state::mark_completion_tag): Now methods.
7559 (prefixify_expression): Add last_struct parameter.
7560 (prefixify_subexp): Likewise.
7561 (parse_exp_1): Update.
7562 (parse_exp_in_context): Add cstate parameter. Update.
7563 (parse_expression_for_completion): Create an
7564 expr_completion_state.
7565 (null_post_parser): Add "completion" parameter.
7566 * p-exp.y: Update rules.
7567 (yylex): Update.
7568 * language.h (struct language_defn) <la_post_parser>: Add
7569 "completing" parameter.
7570 * go-exp.y: Update rules.
7571 (lex_one_token): Update.
7572 * expression.h (parse_completion): Don't declare.
7573 * d-exp.y: Update rules.
7574 (lex_one_token): Update rules.
7575 * c-exp.y: Update rules.
7576 (lex_one_token): Update.
7577 * ada-lang.c (resolve): Add "parse_completion" parameter.
7578 (resolve_subexp): Likewise.
7579 (ada_resolve_function): Likewise.
7580
43476f0b
TT
75812019-04-04 Tom Tromey <tom@tromey.com>
7582
7583 * parser-defs.h (struct parser_state) <start_arglist,
7584 end_arglist>: New methods.
7585 <arglist_len, m_funcall_chain>: New members.
7586 (arglist_len, start_arglist, end_arglist): Don't declare.
7587 * parse.c (arglist_len, funcall_chain): Remove global.
7588 (start_arglist, end_arglist): Remove functions.
7589 (parse_exp_in_context): Update.
7590 * p-exp.y: Update rules.
7591 * m2-exp.y: Update rules.
7592 * go-exp.y: Update rules.
7593 * f-exp.y: Update rules.
7594 * d-exp.y: Update rules.
7595 * c-exp.y: Update rules.
7596
5776fca3
TT
75972019-04-04 Tom Tromey <tom@tromey.com>
7598
7599 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7600 lex_operator, push_back>: New methods.
7601 Update all rules.
7602 (rust_parser::lex_hex, lex_escape): Rename and update.
7603 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7604 (rust_parser::lex_operator): Rename and update.
7605 (rust_parser::lex_number, rustyylex, rustyyerror)
7606 (rust_lex_test_init, rust_lex_test_sequence)
7607 (rust_lex_test_push_back, rust_lex_tests): Update.
7608 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7609 parameter.
7610 <lexptr, prev_lexptr>: New members.
7611 (lexptr, prev_lexptr): Don't declare.
7612 * parse.c (lexptr, prev_lexptr): Remove globals.
7613 (parse_exp_in_context): Update.
7614 * p-exp.y (yylex, yyerror): Update.
7615 * m2-exp.y (parse_number, yylex, yyerror): Update.
7616 * go-exp.y (lex_one_token, yyerror): Update.
7617 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7618 * d-exp.y (lex_one_token, yyerror): Update.
7619 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7620 (lex_one_token, yyerror): Update.
7621 * ada-lex.l (YY_INPUT): Update.
7622 (rewind_to_char): Update.
7623 * ada-exp.y (yyerror): Update.
7624
8621b685
TT
76252019-04-04 Tom Tromey <tom@tromey.com>
7626
7627 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7628 * parser-defs.h (struct parser_state) <parser_state>: Add new
7629 parameter.
7630 <comma_terminates>: New member.
7631 (comma_terminates): Don't declare global.
7632 * parse.c (comma_terminates): Remove global.
7633 (parse_exp_in_context): Update.
7634 * p-exp.y (yylex): Update.
7635 * m2-exp.y (yylex): Update.
7636 * go-exp.y (lex_one_token): Update.
7637 * f-exp.y (yylex): Update.
7638 * d-exp.y (lex_one_token): Update.
7639 * c-exp.y (lex_one_token): Update.
7640 * ada-lex.l: Update.
7641
28aaf3fd
TT
76422019-04-04 Tom Tromey <tom@tromey.com>
7643
7644 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7645 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7646 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7647 * parser-defs.h (paren_depth): Don't declare.
7648 * parse.c (paren_depth): Remove global.
7649 (parse_exp_in_context): Update.
7650 * p-exp.y (paren_depth): New global.
7651 (pascal_parse): Initialize it.
7652 * m2-exp.y (paren_depth): New global.
7653 (m2_parse): Initialize it.
7654 * go-exp.y (paren_depth): New global.
7655 (go_parse): Initialize it.
7656 * f-exp.y (paren_depth): New global.
7657 (f_parse): Initialize it.
7658 * d-exp.y (paren_depth): New global.
7659 (d_parse): Initialize it.
7660 * c-exp.y (paren_depth): New global.
7661 (c_parse): Initialize it.
7662 * ada-lex.l (paren_depth): New global.
7663 (lexer_init): Initialize it.
7664
1e58a4a4
TT
76652019-04-04 Tom Tromey <tom@tromey.com>
7666
7667 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7668 (rust_parser::convert_ast_to_type)
7669 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7670 * parser-defs.h (struct parser_state) <parser_state>: Add
7671 parameters. Initialize new members.
7672 <expression_context_block, expression_context_pc>: New members.
7673 * parse.c (expression_context_block, expression_context_pc):
7674 Remove globals.
7675 (parse_exp_in_context): Update.
7676 * p-exp.y: Update all rules.
7677 (yylex): Update.
7678 * m2-exp.y: Update all rules.
7679 (yylex): Update.
7680 * go-exp.y (yylex): Update.
7681 * f-exp.y (yylex): Update.
7682 * d-exp.y: Update all rules.
7683 (yylex): Update.
7684 * c-exp.y: Update all rules.
7685 (lex_one_token, classify_name, yylex, c_parse): Update.
7686 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7687
37eedb39
TT
76882019-04-04 Tom Tromey <tom@tromey.com>
7689
7690 * gdbarch.h, gdbarch.c: Rebuild.
7691 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7692 * stap-probe.h:
7693 (struct stap_parse_info): Replace "parser_state" with
7694 "expr_builder".
7695 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7696 (parser_state): New class.
7697 * parse.c (expr_builder): Rename.
7698 (expr_builder::release): Rename.
7699 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7700 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7701 (write_exp_elt_longcst, write_exp_elt_floatcst)
7702 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7703 (write_exp_string_vector, write_exp_bitstring)
7704 (write_exp_msymbol, mark_struct_expression)
7705 (write_dollar_variable)
7706 (insert_type_address_space, increase_expout_size): Replace
7707 "parser_state" with "expr_builder".
7708 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7709 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7710 "parser_state" with "expr_builder".
7711
73923d7e
TT
77122019-04-04 Tom Tromey <tom@tromey.com>
7713
7714 * rust-exp.y: Replace "parse_language" with method call.
7715 * p-exp.y:
7716 (yylex): Replace "parse_language" with method call.
7717 * m2-exp.y:
7718 (yylex): Replace "parse_language" with method call.
7719 * go-exp.y (classify_name): Replace "parse_language" with method
7720 call.
7721 * f-exp.y (yylex): Replace "parse_language" with method call.
7722 * d-exp.y (lex_one_token): Replace "parse_language" with method
7723 call.
7724 * c-exp.y:
7725 (lex_one_token, classify_name, yylex): Replace "parse_language"
7726 with method call.
7727 * ada-exp.y (find_primitive_type, type_char)
7728 (type_system_address): Replace "parse_language" with method call.
7729
fa9f5be6
TT
77302019-04-04 Tom Tromey <tom@tromey.com>
7731
7732 * rust-exp.y: Replace "parse_gdbarch" with method call.
7733 * parse.c (write_dollar_variable, insert_type_address_space):
7734 Replace "parse_gdbarch" with method call.
7735 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7736 call.
7737 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7738 call.
7739 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7740 "parse_gdbarch" with method call.
7741 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7742 with method call.
7743 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7744 "parse_gdbarch" with method call.
7745 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7746 "parse_gdbarch" with method call.
7747 * c-exp.y (parse_type, parse_number, classify_name): Replace
7748 "parse_gdbarch" with method call.
7749 * ada-lex.l: Replace "parse_gdbarch" with method call.
7750 * ada-exp.y (parse_type, find_primitive_type, type_char)
7751 (type_system_address): Replace "parse_gdbarch" with method call.
7752
1201a264
TT
77532019-04-04 Tom Tromey <tom@tromey.com>
7754
7755 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7756 * stap-probe.c (stap_parse_argument): Update.
7757 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7758 initial_size parameter.
7759 * rust-exp.y (rust_lex_tests): Update.
7760 * parse.c (parser_state): Update.
7761 (parse_exp_in_context): Update.
7762 * parser-defs.h (struct parser_state) <parser_state>: Remove
7763 "initial_size" parameter.
7764
e3980ce2
TT
77652019-04-04 Tom Tromey <tom@tromey.com>
7766
7767 * parser-defs.h (increase_expout_size): Don't declare.
7768 * parse.c (increase_expout_size): Now static.
7769
e9f8e3f1
TS
77702019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7771
7772 * gnu-nat.c (gnu_nat_target::wait): Fix
7773 target_waitstatus_to_string call.
7774
d7df6549
AB
77752019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7776
7777 * eval.c (evaluate_subexp_standard): Handle internal functions
7778 during Fortran function call handling.
7779
8bdc1658
AB
77802019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7781
7782 * NEWS: Mention new internal functions.
7783 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7784 (read_base_type): Use dwarf2_init_complex_target_type.
7785 * value.c (creal_internal_fn): New function.
7786 (cimag_internal_fn): New function.
7787 (_initialize_values): Register new internal functions.
7788
c29705b7
PW
77892019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7790
7791 * infrun.c (stop_all_threads): If debug_infrun, always
7792 trace the wait status after wait_one, using
7793 target_waitstatus_to_string and target_pid_to_str.
7794 (handle_inferior_event): Replace various trace of
7795 wait status kind by a single trace.
7796 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7797 wait status kind image by target_waitstatus_to_string.
7798 * target/waitstatus.c (target_waitstatus_to_string): Fix
7799 obsolete comment.
7800
05caa1d2
TT
78012019-04-01 Tom Tromey <tromey@adacore.com>
7802
7803 PR symtab/23331:
7804 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7805
9d1447e0
SDJ
78062019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7807 Pedro Alves <palves@redhat.com>
7808
7809 * top.c (quit_force): Call 'finalize_values'.
7810 * value.c (finalize_values): New function.
7811 * value.h (finalize_values): Declare.
7812
7734102d
EZ
78132019-03-30 Eli Zaretskii <eliz@gnu.org>
7814
7815 * NEWS: Announce $_gdb_major and $_gdb_minor.
7816
7817 * top.c (init_gdb_version_vars): New function.
7818 (gdb_init): Call init_gdb_version_vars.
7819
188e1fa9
TT
78202019-03-29 Tom Tromey <tromey@adacore.com>
7821
7822 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7823 help text. Remove dead code.
7824
2880242d
KS
78252019-03-29 Keith Seitz <keiths@redhat.com>
7826
7827 From Siddhesh Poyarekar:
7828 * f-lang.h (f77_get_upperbound): Return LONGEST.
7829 (f77_get_lowerbound): Likewise.
7830 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7831 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7832 print them.
7833 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7834 plongest to format print it.
7835 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7836 (f77_get_upperbound): Likewise.
7837 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7838 LOWER_BOUND to LONGEST.
7839 (f77_create_arrayprint_offset_tbl): Likewise.
7840
cc1defb1
KS
78412019-03-29 Keith Seitz <keiths@redhat.com>
7842
7843 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7844 %s/pulongest for TYPE_LENGTH instead of %d in format
7845 strings.
7846 * ada-typerint.c (ada_print_type): Likewise.
7847 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7848 * compile/compile-c-support.c (generate_register_struct): Likewise.
7849 * gdbtypes.c (recursive_dump_type): Likewise.
7850 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7851 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7852 instead of %d in format strings.
7853 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7854 to std::min to ULONGEST.
7855 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7856 instead of %d in format strings.
7857 * tracepoint.c (info_scope_command): Likewise.
7858 * typeprint.c (print_offset_data::update)
7859 (print_offset_data::finish): Likewise.
7860 * xtensa-tdep.c (xtensa_store_return_value)
7861 (xtensa_push_dummy_call): Likewise.
7862
e432ccf1
JT
78632019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7864
7865 * windows-nat.c (display_selector): Fixed format specifications
7866 for 64-bit Cygwin.
7867
65d2b333
PW
78682019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7869
7870 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7871
f489207e
SL
78722019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7873
7874 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7875 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7876 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7877 (nios2_linux_init_abi): Install it.
7878
bffa1015
AH
78792019-03-28 Alan Hayward <alan.hayward@arm.com>
7880
7881 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7882
fc96163a
AH
78832019-03-28 Alan Hayward <alan.hayward@arm.com>
7884
7885 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7886
20dc7e9b
PW
78872019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7888 Tom Tromey <tromey@adacore.com>
7889
7890 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7891
7f5331a8
JB
78922019-03-26 Joel Brobecker <brobecker@adacore.com>
7893
7894 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7895 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7896 method to compute the bounds of range types. Also print "[evaluated]"
7897 if the bounds' values come from a dynamic evaluation.
7898
18c77628
AB
78992019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7900
7901 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7902 whitespace when pretty printing is on.
7903
53c973f2
AH
79042019-03-26 Alan Hayward <alan.hayward@arm.com>
7905
e79be6e5 7906 * ppc-linux-nat.c: Add include.
53c973f2 7907
d851aa71
AH
79082019-03-26 Alan Hayward <alan.hayward@arm.com>
7909
e79be6e5 7910 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7911
2fe7bab7
AH
79122019-03-26 Alan Hayward <alan.hayward@arm.com>
7913
e79be6e5 7914 * arm-linux-nat.c: Add include.
2fe7bab7 7915
068ef30e
SM
79162019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7917
7918 * source-cache.c (source_cache::get_source_lines): Re-read
7919 fullname after calling open_source_file.
7920
81a24d04
JB
79212019-03-25 John Baldwin <jhb@FreeBSD.org>
7922
7923 * NEWS: Mention TLS support for FreeBSD.
7924
79e7ae11
TT
79252019-03-25 Tom Tromey <tromey@adacore.com>
7926
7927 * minsyms.c (BUNCH_SIZE): Update comment.
7928 (~minimal_symbol_reader): Remove old comment.
7929 (compact_minimal_symbols): Update comment.
7930 (minimal_symbol_reader::install): Remove old comment. Update
7931 other comments.
7932
d45963c2
AH
79332019-03-25 Alan Hayward <alan.hayward@arm.com>
7934
7935 * s390-linux-nat.c: Add include.
7936
0f83012e
AH
79372019-03-25 Alan Hayward <alan.hayward@arm.com>
7938
7939 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7940 Call linux_get_hwcap.
7941 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7942 Likewise.
7943 (aarch64_linux_get_hwcap): Remove function.
7944 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7945 declaration.
7946 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7947 linux_get_hwcap.
7948 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7949 * linux-tdep.c (linux_get_hwcap): Add function.
7950 (linux_get_hwcap2): Likewise.
7951 * linux-tdep.h (linux_get_hwcap): Add declaration.
7952 (linux_get_hwcap2): Likewise.
7953 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7954 (ppc_linux_get_hwcap2): Likewise.
7955 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7956 linux_get_hwcap.
7957 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7958 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7959 (ppc_linux_nat_target::read_description): Likewise.
7960 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7961 * s390-linux-nat.c: Likewise.
7962 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7963
6640a367
TT
79642019-03-24 Tom Tromey <tom@tromey.com>
7965
7966 * ada-lang.c (standard_lookup): Simplify initialization.
7967 (ada_lookup_symbol_nonlocal): Simplify return.
7968 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7969 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7970 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7971 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7972 initialization.
7973 * solib.c (solib_global_lookup): Simplify.
7974 * symtab.c (null_block_symbol): Remove.
7975 (symbol_cache_lookup): Simplify returns.
7976 (lookup_language_this): Simplify returns.
7977 (lookup_symbol_aux): Simplify return.
7978 (lookup_local_symbol): Simplify returns.
7979 (lookup_global_symbol_from_objfile): Simplify return.
7980 (lookup_symbol_in_objfile_symtabs)
7981 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7982 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7983 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7984 * cp-namespace.c (cp_lookup_bare_symbol)
7985 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7986 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7987 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7988 (cp_lookup_symbol_via_imports): Simplify initialization.
7989 (find_symbol_in_baseclass): Likewise.
7990 * symtab.h (null_block_symbol): Remove.
7991 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7992 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7993 (d_lookup_symbol_module): Likewise.
7994 (find_symbol_in_baseclass): Simplify initialization.
7995
a930ebcd
TT
79962019-03-24 Tom Tromey <tom@tromey.com>
7997
7998 * expression.h: Don't include symtab.h.
7999 (struct block): Forward declare.
8000
582942f4
TT
80012019-03-24 Tom Tromey <tom@tromey.com>
8002
8003 * c-exp.y (typebase): Remove casts.
8004 * gdbtypes.c (lookup_unsigned_typename, )
8005 (lookup_signed_typename): Remove cast.
8006 * eval.c (parse_to_comma_and_eval): Remove cast.
8007 * parse.c (write_dollar_variable): Remove cast.
8008 * block.h (struct block) <superblock>: Now const.
8009 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8010 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8011 (map_block): Make "block" const.
8012 * symfile.h (struct quick_symbol_functions)
8013 <map_matching_symbols>: Constify block argument to "callback".
8014 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8015 const.
8016 (find_pc_sect_compunit_symtab): Make "b" const.
8017 (find_symbol_at_address): Likewise.
8018 (search_symbols): Likewise.
8019 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8020 (dw2_debug_names_lookup_symbol): Likewise.
8021 (dw2_map_matching_symbols): Update.
8022 * p-valprint.c (pascal_val_print): Remove "block".
8023 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8024 (aux_add_nonlocal_symbols): Make "block" const.
8025 (resolve_subexp): Remove cast.
8026 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8027 const.
8028 (iterate_over_file_blocks): Likewise.
8029 * f-exp.y (%union) <bval>: Remove.
8030 * coffread.c (patch_opaque_types): Make "b" const.
8031 * spu-tdep.c (spu_catch_start): Make "block" const.
8032 * c-valprint.c (print_unpacked_pointer): Remove "block".
8033 * symmisc.c (dump_symtab_1): Make "b" const.
8034 (block_depth): Make "block" const.
8035 * d-exp.y (%union) <bval>: Remove.
8036 * cp-support.h (cp_lookup_rtti_type): Update.
8037 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8038 * psymtab.c (psym_lookup_symbol): Make "block" const.
8039 (maintenance_check_psymtabs): Make "b" const.
8040 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8041 (enumerate_locals, enumerate_args): Update.
8042 * python/py-symtab.c (stpy_global_block): Make "block" const.
8043 (stpy_static_block): Likewise.
8044 * inline-frame.c (block_starting_point_at): Make "new_block"
8045 const.
8046 * block.c (find_block_in_blockvector): Make return type const.
8047 (blockvector_for_pc_sect): Make "b" const.
8048 (find_block_in_blockvector): Make "b" const.
8049
7ad417dd
TT
80502019-03-23 Tom Tromey <tom@tromey.com>
8051
8052 * varobj.c (varobj_create): Update.
8053 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8054 * printcmd.c (display_command, do_one_display): Don't reset
8055 innermost_block.
8056 * parser-defs.h (enum innermost_block_tracker_type): Move to
8057 expression.h.
8058 (innermost_block): Update comment.
8059 * parse.c (parse_exp_1): Add tracker_types parameter.
8060 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8061 tracker_types parameter. Reset innermost_block.
8062 (parse_exp_in_context): Remove.
8063 (parse_expression_for_completion): Update.
8064 * objfiles.c (~objfile): Don't reset expression_context_block or
8065 innermost_block.
8066 * expression.h (enum innermost_block_tracker_type): Move from
8067 parser-defs.h.
8068 (parse_exp_1): Add tracker_types parameter.
8069 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8070 reset innermost_block.
8071
b366c208
TT
80722019-03-23 Tom Tromey <tom@tromey.com>
8073
8074 * objfiles.h: Include bcache.h.
8075
9bb9b2f9
TT
80762019-03-23 Tom Tromey <tom@tromey.com>
8077
8078 * linespec.c (get_current_search_block): Use
8079 scoped_restore_current_language.
8080 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8081
59c28372
AH
80822019-03-22 Alan Hayward <alan.hayward@arm.com>
8083 Jiong Wang <jiong.wang@arm.com>
8084
8085 * aarch64-linux-tdep.c
8086 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8087 section.
8088 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8089
17e116a7
AH
80902019-03-22 Alan Hayward <alan.hayward@arm.com>
8091 Jiong Wang <jiong.wang@arm.com>
8092
8093 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8094 instructions.
8095 (aarch64_analyze_prologue_test): Add PACIASP test.
8096 (aarch64_prologue_prev_register): Unmask PC value.
8097
11e1b75f
AH
80982019-03-22 Alan Hayward <alan.hayward@arm.com>
8099 Jiong Wang <jiong.wang@arm.com>
8100
8101 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8102 (aarch64_dwarf2_prev_register): Unmask PC value.
8103 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8104 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8105 DW_CFA_AARCH64_negate_ra_state.
8106 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8107
34dcc7cf
AH
81082019-03-22 Alan Hayward <alan.hayward@arm.com>
8109 Jiong Wang <jiong.wang@arm.com>
8110
8111 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8112 registers.
8113 (aarch64_pseudo_register_name): Likewise.
8114 (aarch64_pseudo_register_type): Likewise.
8115 (aarch64_pseudo_register_reggroup_p): Likewise.
8116 (aarch64_gdbarch_init): Add pauth registers.
8117 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8118 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8119 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8120 (struct gdbarch_tdep): Add regnum for ra_state.
8121
1ef53e6b
AH
81222019-03-22 Alan Hayward <alan.hayward@arm.com>
8123 Jiong Wang <jiong.wang@arm.com>
8124
8125 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8126
76bed0fd
AH
81272019-03-22 Alan Hayward <alan.hayward@arm.com>
8128 Jiong Wang <jiong.wang@arm.com>
8129
8130 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8131 function.
8132 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8133 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8134 (aarch64_gdbarch_init): Add puth registers.
8135 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8136 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8137 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8138
ee4fbcfa
AH
81392019-03-22 Alan Hayward <alan.hayward@arm.com>
8140 Jiong Wang <jiong.wang@arm.com>
8141
8142 * aarch64-linux-nat.c
8143 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8144 * aarch64-linux-tdep.c
8145 (aarch64_linux_core_read_description): Likewise.
8146 (aarch64_linux_get_hwcap): New function.
8147 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8148 (aarch64_linux_get_hwcap): New declaration.
8149
6dc0ebde
AH
81502019-03-22 Alan Hayward <alan.hayward@arm.com>
8151 Jiong Wang <jiong.wang@arm.com>
8152
8153 * aarch64-linux-nat.c
8154 (aarch64_linux_nat_target::read_description): Add pauth param.
8155 * aarch64-linux-tdep.c
8156 (aarch64_linux_core_read_description): Likewise.
8157 * aarch64-tdep.c (struct target_desc): Add in pauth.
8158 (aarch64_read_description): Add pauth param.
8159 (aarch64_gdbarch_init): Likewise.
8160 * aarch64-tdep.h (aarch64_read_description): Likewise.
8161 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8162 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8163 * features/Makefile: Add new files.
8164 * features/aarch64-pauth.c: New file.
8165 * features/aarch64-pauth.xml: New file.
8166
595915c1
TT
81672019-03-20 Tom Tromey <tromey@adacore.com>
8168
8169 * infrun.c (handle_inferior_event): Rename from
8170 handle_inferior_event_1. Create a scoped_value_mark.
8171 (handle_inferior_event): Remove.
8172
4c7d57e7
TT
81732019-03-19 Tom Tromey <tromey@adacore.com>
8174
8175 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8176 * infrun.h (print_stop_event): Add "displays" parameter.
8177 * infrun.c (print_stop_event): Add "displays" parameter.
8178
cb246234
PA
81792019-03-19 Pedro Alves <palves@redhat.com>
8180
8181 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8182 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8183 to -1. Fix TABs vs spaces.
8184 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8185 * tui/tui-out.h (tui_ui_out) Add intro comments.
8186 <m_line, m_start_of_line>: In-class initialize, and add describing
8187 comment.
8188
3a0e45b2
AH
81892019-03-18 Alan Hayward <alan.hayward@arm.com>
8190
8191 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8192 variable names.
8193 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8194
5371b850
PA
81952019-03-18 Pedro Alves <palves@redhat.com>
8196 Eli Zaretskii <eliz@gnu.org>
8197
8198 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8199 m_line and m_start_of_line.
8200
b17c4cd0
EZ
82012019-03-18 Eli Zaretskii <eliz@gnu.org>
8202
8203 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8204 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8205 it returns a newline. This fixes a regression in TU mode, whereby
8206 the next line is output on the same screen line as the user input.
8207
4bd56d18
TT
82082019-03-18 Tom Tromey <tromey@adacore.com>
8209
8210 * minsyms.c (minimal_symbol_reader::install): Remove call to
8211 obstack_blank.
8212
55c10aca
PA
82132019-03-18 Pedro Alves <palves@redhat.com>
8214
8215 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8216 New globals.
8217 (apply_style): New, factored out from ...
8218 (apply_ansi_escape): ... this. Handle reverse video mode.
8219 (tui_set_reverse_mode): New function.
8220 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8221 * tui/tui-winsource.c (tui_show_source_line): Use
8222 tui_set_reverse_mode instead of setting A_STANDOUT.
8223 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8224 New setter methods.
8225
647bb750
HD
82262019-03-18 Hannes Domani <ssbssa@yahoo.de>
8227
8228 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8229 Handle tabs.
8230
bff8c71f
TT
82312019-03-18 Tom Tromey <tromey@adacore.com>
8232
8233 * ada-lang.c (empty_array): Add "high" parameter.
8234 (ada_evaluate_subexp): Update.
8235
58785d98
ST
82362019-03-17 Sergei Trofimovich <siarheit@google.com>
8237
8238 * unittests/string_view-selftests.c: Define
8239 _initialize_string_view_selftests unconditionally.
8240
d4cbef22
ВМ
82412019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8242
8243 PR gdb/24350
8244 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8245
fce4c071
ВМ
82462019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8247
8248 PR gdb/24351
8249 * windows-nat.c (display_selector): Fix format specifiers.
8250
f7f0a123
EZ
82512019-03-17 Eli Zaretskii <eliz@gnu.org>
8252
8253 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8254 tui_refill_source_window instead of tui_refresh_win, to update the
8255 current execution line. This fixes redisplay of the current line
8256 when stepping through the code with "next" or "step".
8257
ab42892f
EZ
82582019-03-16 Eli Zaretskii <eliz@gnu.org>
8259
8260 * source-cache.c (source_cache::get_source_lines): Call
8261 find_source_lines to initialize s->nlines. This fixes vertical
8262 scrolling of TUI source window when the DOWN arrow is pressed.
8263
8d8c087f
PW
82642019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8265
8266 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8267 linux-thread-db.c (_initialize_thread_db): Likewise.
8268
798e1c30
EZ
82692019-03-16 Eli Zaretskii <eliz@gnu.org>
8270
8271 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8272 wclrtoeol in tui_show_source_line". This reverts changes made in
8273 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8274
eefba3da
TT
82752019-03-15 Tom Tromey <tom@tromey.com>
8276
8277 * symtab.h (struct minimal_symbol): Derive from
8278 general_symbol_info.
8279 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8280 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8281 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8282 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8283 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8284 (MSYMBOL_SEARCH_NAME): Update.
8285 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8286 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8287 * minsyms.c (minimal_symbol_reader::record_full): Update.
8288
0de2420c
TT
82892019-03-15 Tom Tromey <tom@tromey.com>
8290
8291 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8292
042d75e4
TT
82932019-03-15 Tom Tromey <tom@tromey.com>
8294
8295 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8296 unique_xmalloc_ptr.
8297 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8298 Update.
8299 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8300 (build_minimal_symbol_hash_tables)
8301 (minimal_symbol_reader::install): Update.
8302
db92718b
TT
83032019-03-15 Tom Tromey <tom@tromey.com>
8304
8305 * symtab.c (create_demangled_names_hash): Update.
8306 (symbol_set_names): Update.
8307 * objfiles.h (struct objfile_per_bfd_storage)
8308 <demangled_names_hash>: Now an htab_up.
8309 * objfiles.c (objfile_per_bfd_storage): Simplify.
8310
d6797f46
TT
83112019-03-15 Tom Tromey <tom@tromey.com>
8312
8313 * objfiles.h (struct objfile_per_bfd_storage): Declare
8314 destructor.
8315 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8316 New.
8317 (get_objfile_bfd_data): Use new. Don't initialize
8318 language_of_main.
8319 (free_objfile_per_bfd_storage): Remove.
8320 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8321
741d7538
TT
83222019-03-15 Tom Tromey <tom@tromey.com>
8323
8324 * symfile.c (reread_symbols): Update.
8325 * objfiles.c (objfile::objfile): Update.
8326 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8327 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8328 comment.
8329 (minimal_symbol_reader::install): Update.
8330 (terminate_minimal_symbol_table): Remove.
8331 * jit.c (jit_object_close_impl): Update.
8332
788c80d1
TT
83332019-03-15 Tom Tromey <tom@tromey.com>
8334
8335 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8336 initializations.
8337
1b7a07cb
TT
83382019-03-15 Tom Tromey <tom@tromey.com>
8339
8340 * objfiles.h (struct objfile_per_bfd_storage)
8341 <demangled_hash_languages>: Now a bitset.
8342 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8343 (lookup_minimal_symbol): Update.
8344
3db066bc
TT
83452019-03-15 Tom Tromey <tom@tromey.com>
8346
8347 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8348 Don't return the symbol.
8349 * coffread.c (record_minimal_symbol): Use record_full.
8350
3fff2c37
EZ
83512019-03-14 Eli Zaretskii <eliz@gnu.org>
8352
8353 The MS-Windows port of ncurses fails to switch to a color pair if
8354 one or both of the colors are the implicit default colors. This
8355 change records the default colors when TUI is initialized, and
8356 then specifies them explicitly when a color pair uses the default
8357 colors. This allows color styling in TUI mode on MS-Windows.
8358
8359 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8360 ncurses_norm_attr.
8361 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8362 colors in ncurses_norm_attr.
8363 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8364 "none", replace it with the default color recorded in
8365 ncurses_norm_attr.
8366
3b336828
TT
83672019-03-14 Tom Tromey <tromey@adacore.com>
8368
8369 * source-cache.h (class source_cache) <get_source_lines>: Return
8370 std::string.
8371 * source-cache.c (source_cache::extract_lines): Handle case where
8372 first_pos==npos. Return std::string.
8373 (source_cache::get_source_lines): Update.
8374
d085f989
TT
83752019-03-14 Tom Tromey <tromey@adacore.com>
8376
8377 * NEWS: Add item for "style sources" commands.
8378 * source-cache.c (source_cache::get_source_lines): Check
8379 source_styling.
8380 * cli/cli-style.c (source_styling): New global.
8381 (_initialize_cli_style): Add "style sources" commands.
8382 (show_style_sources): New function.
8383 * cli/cli-style.h (source_styling): Declare.
8384
6f11e682
TT
83852019-03-14 Pedro Alves <palves@redhat.com>
8386 Tom Tromey <tromey@adacore.com>
8387
8388 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8389 * tui/tui-winsource.c (tui_refill_source_window): New function,
8390 from...
8391 (tui_horizontal_source_scroll): ... here. Move some logic.
8392 * cli/cli-style.c (set_style_enabled): Notify new observable.
8393 * tui/tui-hooks.c (tui_redisplay_source): New function.
8394 (tui_attach_detach_observers): Attach or detach
8395 tui_redisplay_source.
8396 * observable.h (source_styling_changed): New observable.
8397 * observable.c: Define source_styling_changed observable.
8398
a068643d
TT
83992019-03-13 Tom Tromey <tromey@adacore.com>
8400
8401 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8402 (i386_gnu_nat_target::store_registers): Update.
8403 * target-debug.h (target_debug_print_std_string): New macro.
8404 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8405 * windows-tdep.c (display_one_tib): Update.
8406 * tui/tui-stack.c (tui_make_status_line): Update.
8407 * top.c (print_inferior_quit_action): Update.
8408 * thread.c (thr_try_catch_cmd): Update.
8409 (add_thread_with_info): Update.
8410 (thread_target_id_str): Update.
8411 (thr_try_catch_cmd): Update.
8412 (thread_command): Update.
8413 (thread_find_command): Update.
8414 * record-btrace.c (record_btrace_target::info_record)
8415 (record_btrace_resume_thread, record_btrace_target::resume)
8416 (record_btrace_cancel_resume, record_btrace_step_thread)
8417 (record_btrace_target::wait, record_btrace_target::wait)
8418 (record_btrace_target::wait, record_btrace_target::stop): Update.
8419 * progspace.c (print_program_space): Update.
8420 * process-stratum-target.c
8421 (process_stratum_target::thread_address_space): Update.
8422 * linux-fork.c (linux_fork_mourn_inferior)
8423 (detach_checkpoint_command, info_checkpoints_command)
8424 (linux_fork_context): Update.
8425 (linux_fork_detach): Update.
8426 (class scoped_switch_fork_info): Update.
8427 (delete_checkpoint_command): Update.
8428 * infrun.c (follow_fork_inferior): Update.
8429 (follow_fork_inferior): Update.
8430 (proceed_after_vfork_done): Update.
8431 (handle_vfork_child_exec_or_exit): Update.
8432 (follow_exec): Update.
8433 (displaced_step_prepare_throw): Update.
8434 (displaced_step_restore): Update.
8435 (start_step_over): Update.
8436 (resume_1): Update.
8437 (clear_proceed_status_thread): Update.
8438 (proceed): Update.
8439 (print_target_wait_results): Update.
8440 (do_target_wait): Update.
8441 (context_switch): Update.
8442 (stop_all_threads): Update.
8443 (restart_threads): Update.
8444 (finish_step_over): Update.
8445 (handle_signal_stop): Update.
8446 (switch_back_to_stepped_thread): Update.
8447 (keep_going_pass_signal): Update.
8448 (print_exited_reason): Update.
8449 (normal_stop): Update.
8450 * inferior.c (inferior_pid_to_str): Change return type.
8451 (print_selected_inferior): Update.
8452 (add_inferior): Update.
8453 (detach_inferior): Update.
8454 * dummy-frame.c (fprint_dummy_frames): Update.
8455 * dcache.c (dcache_info_1): Update.
8456 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8457 (btrace_fetch, btrace_clear): Update.
8458 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8459 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8460 type.
8461 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8462 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8463 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8464 * gdbarch.c, gdbarch.h: Rebuild.
8465 * gdbarch.sh (core_pid_to_str): Change return type.
8466 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8467 return type.
8468 (windows_nat_target::pid_to_str): Change return type.
8469 (windows_delete_thread): Update.
8470 (windows_nat_target::attach): Update.
8471 (windows_nat_target::files_info): Update.
8472 * target-delegates.c: Rebuild.
8473 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8474 return type.
8475 (sol_thread_target::pid_to_str): Change return type.
8476 * remote.c (class remote_target) <pid_to_str>: Change return
8477 type.
8478 (remote_target::pid_to_str): Change return type.
8479 (extended_remote_target::attach, remote_target::remote_stop_ns)
8480 (remote_target::remote_notif_remove_queued_reply)
8481 (remote_target::push_stop_reply, remote_target::disable_btrace):
8482 Update.
8483 (extended_remote_target::attach): Update.
8484 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8485 type.
8486 (gdbsim_target::pid_to_str): Change return type.
8487 * ravenscar-thread.c (struct ravenscar_thread_target)
8488 <pid_to_str>: Change return type.
8489 (ravenscar_thread_target::pid_to_str): Change return type.
8490 * procfs.c (class procfs_target) <pid_to_str>: Change return
8491 type.
8492 (procfs_target::pid_to_str): Change return type.
8493 (procfs_target::attach): Update.
8494 (procfs_target::detach): Update.
8495 (procfs_target::fetch_registers): Update.
8496 (procfs_target::store_registers): Update.
8497 (procfs_target::wait): Update.
8498 (procfs_target::files_info): Update.
8499 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8500 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8501 return type.
8502 (nto_procfs_target::pid_to_str): Change return type.
8503 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8504 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8505 return type.
8506 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8507 (exit_lwp): Update.
8508 (attach_proc_task_lwp_callback, get_detach_signal)
8509 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8510 (linux_nat_target::resume, wait_lwp, stop_callback)
8511 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8512 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8513 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8514 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8515 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8516 type.
8517 (inf_ptrace_target::attach): Update.
8518 (inf_ptrace_target::files_info): Update.
8519 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8520 type.
8521 (go32_nat_target::pid_to_str): Change return type.
8522 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8523 (gnu_nat_target::wait): Update.
8524 (gnu_nat_target::wait): Update.
8525 (gnu_nat_target::resume): Update.
8526 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8527 (fbsd_nat_target::wait): Update.
8528 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8529 type.
8530 (darwin_nat_target::attach): Update.
8531 * corelow.c (class core_target) <pid_to_str>: Change return type.
8532 (core_target::pid_to_str): Change return type.
8533 * target.c (normal_pid_to_str): Change return type.
8534 (default_pid_to_str): Likewise.
8535 (target_pid_to_str): Change return type.
8536 (target_translate_tls_address): Update.
8537 (target_announce_detach): Update.
8538 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8539 return type.
8540 (bsd_uthread_target::pid_to_str): Change return type.
8541 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8542 type.
8543 (bsd_kvm_target::pid_to_str): Change return type.
8544 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8545 return type.
8546 (aix_thread_target::pid_to_str): Change return type.
8547 * target.h (struct target_ops) <pid_to_str>: Change return type.
8548 (target_pid_to_str, normal_pid_to_str): Likewise.
8549 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8550 type.
8551 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8552 type.
8553 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8554 return type.
8555 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8556 type.
8557 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8558 type.
8559 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8560 return type.
8561
b4be1b06
SM
85622019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8563
8564 * NEWS: Mention that the new default MI version is 3. Mention
8565 changes to the output of commands and events that deal with
8566 multi-location breakpoints.
8567 * breakpoint.c: Include "mi/mi-out.h".
8568 (print_one_breakpoint): Change output syntax if using MI version
8569 >= 3.
8570 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8571 New.
8572 (mi_multi_location_breakpoint_output_fixed): New.
8573 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8574 (mi_cmd_fix_multi_location_breakpoint_output): New.
8575 (mi_multi_location_breakpoint_output_fixed): New.
8576 * mi/mi-cmds.c (mi_cmds): Register command
8577 -fix-multi-location-breakpoint-output.
8578 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8579 interpreter "mi".
8580
8e5e5494
SM
85812019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8582
8583 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8584 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8585 instantiate mi_ui_out based on interpreter name.
8586 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8587 * mi/mi-main.c (mi_load_progress): Likewise.
8588
197df35e
JB
85892019-03-12 John Baldwin <jhb@FreeBSD.org>
8590
8591 * NEWS: Combine separate "New targets" sections for 8.3.
8592
8399425f
JB
85932019-03-12 John Baldwin <jhb@FreeBSD.org>
8594
8595 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8596 (ppcfbsd_init_abi): Install gdbarch
8597 "fetch_tls_load_module_address" and "get_thread_local_address"
8598 methods.
8599
b0f87ed0
JB
86002019-03-12 John Baldwin <jhb@FreeBSD.org>
8601
8602 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8603 (riscv_fbsd_init_abi): Install gdbarch
8604 "fetch_tls_load_module_address" and "get_thread_local_address"
8605 methods.
8606
ce25aa57
JB
86072019-03-12 John Baldwin <jhb@FreeBSD.org>
8608
8609 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8610 (i386fbsd_init_abi): Install gdbarch
8611 "fetch_tls_load_module_address" and "get_thread_local_address"
8612 methods.
8613
f5424cfa
JB
86142019-03-12 John Baldwin <jhb@FreeBSD.org>
8615
8616 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8617 (amd64fbsd_init_abi): Install gdbarch
8618 "fetch_tls_load_module_address" and "get_thread_local_address"
8619 methods.
8620
945f3901
JB
86212019-03-12 John Baldwin <jhb@FreeBSD.org>
8622
8623 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8624 (struct fbsd_pspace_data): New type.
8625 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8626 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8627 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8628 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8629 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8630
ef0bd204
JB
86312019-03-12 John Baldwin <jhb@FreeBSD.org>
8632
8633 * gdbtypes.c (lookup_struct_elt): New function.
8634 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8635 * gdbtypes.h (struct struct_elt): New type.
8636 (lookup_struct_elt): New prototype.
8637
36c53a02
JB
86382019-03-12 John Baldwin <jhb@FreeBSD.org>
8639
8640 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8641 remove disabled code block.
8642
6e056c81
JB
86432019-03-12 John Baldwin <jhb@FreeBSD.org>
8644
8645 * gdbarch.sh (get_thread_local_address): New method.
8646 * gdbarch.h, gdbarch.c: Regenerate.
8647 * target.c (target_translate_tls_address): Use
8648 gdbarch_get_thread_local_address if present instead of
8649 target::get_thread_local_address.
8650
cd250a18
JB
86512019-03-12 John Baldwin <jhb@FreeBSD.org>
8652
8653 * target.h (target::get_thread_local_address): Update comment.
8654
df22c1e5
JB
86552019-03-12 John Baldwin <jhb@FreeBSD.org>
8656
8657 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8658 objfile->separate_debug_objfile_backlink if not NULL.
8659
dd6876c9
JB
86602019-03-12 John Baldwin <jhb@FreeBSD.org>
8661
8662 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8663 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8664 (amd64bsd_store_inferior_registers): Likewise.
8665 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8666 Enable segment base registers.
8667 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8668 PT_GETFSBASE and PT_GETGSBASE.
8669 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8670 PT_SETGSBASE.
8671 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8672 segment base registers.
8673 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8674
1163a4b7
JB
86752019-03-12 John Baldwin <jhb@FreeBSD.org>
8676
8677 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8678 Update calls to i386_target_description to add 'segments'
8679 parameter.
8680 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8681 add segment base registers.
8682 * arch/i386.c (i386_create_target_description): Add 'segments'
8683 parameter to enable segment base registers.
8684 * arch/i386.h (i386_create_target_description): Likewise.
8685 * features/i386/32bit-segments.xml: New file.
8686 * features/i386/32bit-segments.c: Generate.
8687 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8688 call to i386_target_description to add 'segments' parameter.
8689 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8690 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8691 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8692 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8693 if feature is present.
8694 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8695 Add 'segments' parameter to call to i386_target_description.
8696 (i386_target_description): Add 'segments' parameter to enable
8697 segment base registers.
8698 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8699 to call to i386_target_description.
8700 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8701 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8702 Define I386_NUM_REGS.
8703 (i386_target_description): Add 'segments' parameter to enable
8704 segment base registers.
8705
3a350822
EZ
87062019-03-12 Eli Zaretskii <eliz@gnu.org>
8707
8708 PR/24325
8709 * source-cache.c: #undef open and close, to avoid unresolved
8710 externals during linking.
8711
ffdd69cf
TT
87122019-03-12 Tom Tromey <tromey@adacore.com>
8713
8714 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8715 const. Add initializers.
8716 (_initialize_remote): Don't initialize ptid globals.
8717
ec148c57
PA
87182019-03-12 Pedro Alves <palves@redhat.com>
8719
8720 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8721
32764270
PA
87222019-03-12 Pedro Alves <palves@redhat.com>
8723
8724 * cp-name-parser.y (main): Remove unused 'len' variable.
8725
17547186
TT
87262019-03-12 Tom Tromey <tromey@adacore.com>
8727
8728 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8729 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8730
d3a70e03
TT
87312019-03-12 Tom Tromey <tromey@adacore.com>
8732
8733 * linux-nat.c (iterate_over_lwps): Update.
8734 (stop_callback): Remove parameter.
8735 (stop_wait_callback, detach_callback, resume_set_callback)
8736 (select_singlestep_lwp_callback, set_ignore_sigint)
8737 (status_callback, resumed_callback, resume_clear_callback)
8738 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8739 data parameter.
8740 (linux_nat_target::detach, linux_nat_target::resume)
8741 (linux_stop_and_wait_all_lwps, select_event_lwp)
8742 (linux_nat_filter_event, linux_nat_wait_1)
8743 (linux_nat_target::kill, linux_nat_target::stop)
8744 (linux_nat_target::stop): Update.
8745 (linux_nat_resume_callback): Change type.
8746 (resume_stopped_resumed_lwps, count_events_callback)
8747 (select_event_lwp_callback): Likewise.
8748 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8749 * arm-linux-nat.c (struct update_registers_data): Remove.
8750 (update_registers_callback): Change type.
8751 (arm_linux_insert_hw_breakpoint1): Update.
8752 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8753 parameter.
8754 (x86_linux_dr_set_addr): Update.
8755 (x86_linux_dr_set_control): Update.
8756 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8757 (iterate_over_lwps): Use gdb::function_view.
8758 * nat/aarch64-linux-hw-point.c (struct
8759 aarch64_dr_update_callback_param): Remove.
8760 (debug_reg_change_callback): Change type.
8761 (aarch64_notify_debug_reg_change): Update.
8762 * s390-linux-nat.c (s390_refresh_per_info): Update.
8763
82cb27ff
TT
87642019-03-11 Tom Tromey <tromey@adacore.com>
8765
8766 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8767 redundant assignment to "this_cu".
8768
568c0683
SM
87692019-03-08 Simon Marchi <simon.marchi@efficios.com>
8770
8771 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8772
f09ce22d
SM
87732019-03-08 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8776 from...
8777 (rank_one_type): ... this.
8778
595f96a9
SM
87792019-03-08 Simon Marchi <simon.marchi@efficios.com>
8780
8781 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8782 from...
8783 (rank_one_type): ... this.
8784
2598a94b
SM
87852019-03-08 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8788 from...
8789 (rank_one_type): ... this.
8790
7f17b20d
SM
87912019-03-08 Simon Marchi <simon.marchi@efficios.com>
8792
8793 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8794 from...
8795 (rank_one_type): ... this.
8796
2c509035
SM
87972019-03-08 Simon Marchi <simon.marchi@efficios.com>
8798
8799 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8800 from...
8801 (rank_one_type): ... this.
8802
0dd322dc
SM
88032019-03-08 Simon Marchi <simon.marchi@efficios.com>
8804
8805 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8806 from...
8807 (rank_one_type): ... this.
8808
41ea4728
SM
88092019-03-08 Simon Marchi <simon.marchi@efficios.com>
8810
8811 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8812 from...
8813 (rank_one_type): ... this.
8814
793cd1d2
SM
88152019-03-08 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8818 from...
8819 (rank_one_type): ... this.
8820
34910087
SM
88212019-03-08 Simon Marchi <simon.marchi@efficios.com>
8822
8823 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8824 from...
8825 (rank_one_type): ... this.
8826
f1f832d6
SM
88272019-03-08 Simon Marchi <simon.marchi@efficios.com>
8828
8829 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8830 from...
8831 (rank_one_type): ... this.
8832
b9f4512f
SM
88332019-03-08 Simon Marchi <simon.marchi@efficios.com>
8834
8835 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8836 from...
8837 (rank_one_type): ... this.
8838
9293fc63
SM
88392019-03-08 Simon Marchi <simon.marchi@efficios.com>
8840
8841 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8842 from...
8843 (rank_one_type): ... this.
8844
e3abbe7e
PW
88452019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8846
8847 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8848 inferior-events' shows the example events.
8849
e4adb939
EZ
88502019-03-08 Eli Zaretskii <eliz@gnu.org>
8851
8852 Support styling on native MS-Windows console
8853
8854 PR/24315
8855 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8856 on MS-Windows if $TERM is not defined.
8857
8858 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8859
8860 * posix-hdep.c (gdb_console_fputs):
8861 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8862 functions.
8863 * ui-file.h (gdb_console_fputs): Add prototype.
8864
8865 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8866 back to fputs only if the former returns zero.
8867
25629dfd
TT
88682019-03-07 Tom Tromey <tom@tromey.com>
8869
8870 * symmisc.c (print_symbol_bcache_statistics): Update.
8871 (print_objfile_statistics): Update.
8872 * symfile.c (allocate_symtab): Update.
8873 * stabsread.c: Don't include bcache.h.
8874 * psymtab.h (struct psymbol_bcache): Don't declare.
8875 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8876 (psymbol_bcache_init, psymbol_bcache_free)
8877 (psymbol_bcache_get_bcache): Don't declare.
8878 * psymtab.c (struct psymbol_bcache): Remove.
8879 (psymtab_storage::psymtab_storage): Update.
8880 (psymtab_storage::~psymtab_storage): Update.
8881 (psymbol_bcache_init, psymbol_bcache_free)
8882 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8883 (add_psymbol_to_bcache): Update.
8884 (allocate_psymtab): Update.
8885 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8886 macro_cache>: No longer pointers.
8887 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8888 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8889 * macrotab.c (macro_bcache): Update.
8890 * macroexp.c: Don't include bcache.h.
8891 * gdbtypes.c (check_types_worklist): Update.
8892 (types_deeply_equal): Remove TRY/CATCH. Update.
8893 * elfread.c (elf_symtab_read): Update.
8894 * dwarf2read.c: Don't include bcache.h.
8895 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8896 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8897 (print_bcache_statistics, bcache_memory_used): Don't declare.
8898 (struct bcache): Move from bcache.c. Add constructor, destructor,
8899 methods. Rename all data members.
8900 * bcache.c (struct bcache): Move to bcache.h.
8901 (bcache::expand_hash_table): Rename from expand_hash_table.
8902 (bcache): Remove.
8903 (bcache::insert): Rename from bcache_full.
8904 (bcache::compare): Rename from bcache_compare.
8905 (bcache_xmalloc): Remove.
8906 (bcache::~bcache): Rename from bcache_xfree.
8907 (bcache::print_statistics): Rename from print_bcache_statistics.
8908 (bcache::memory_used): Rename from bcache_memory_used.
8909
fe726667
PA
89102019-03-07 Pedro Alves <palves@redhat.com>
8911
8912 * infrun.c (normal_stop): Also check for
8913 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8914
7584bb30
AB
89152019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8916
8917 * f-lang.c (value_from_host_double): Moved to...
8918 * value.c (value_from_host_double): ...here.
8919 * value.h (value_from_host_double): Declare.
8920 * guile/scm-math.c (vlscm_convert_typed_number): Use
8921 value_from_host_double.
8922 (vlscm_convert_number): Likewise.
8923 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8924 * python/py-value.c (convert_value_from_python): Likewise.
8925
a7b1986e
TT
89262019-03-06 Tom Tromey <tom@tromey.com>
8927
8928 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8929
0ccf4211
TT
89302019-03-06 Tom Tromey <tom@tromey.com>
8931
8932 * utils.h (free_current_contents): Don't declare.
8933 * utils.c (free_current_contents): Remove.
8934
fe7b42e5
TT
89352019-03-06 Tom Tromey <tom@tromey.com>
8936
8937 * top.c (quit_force): Update.
8938 * main.c (captured_command_loop): Update.
8939 * common/new-op.c (operator new): Update.
8940 * common/common-exceptions.c (struct catcher)
8941 <save_cleanup_chain>: Remove member.
8942 (exceptions_state_mc_init): Update.
8943 (exception_try_scope_entry): Return nullptr.
8944 (exception_try_scope_exit, exception_rethrow)
8945 (throw_exception_sjlj, throw_exception_cxx): Update.
8946 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8947 (all_cleanups, do_cleanups, discard_cleanups)
8948 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8949 (restore_cleanups, restore_final_cleanups): Don't declare.
8950 (do_final_cleanups): Remove parameter.
8951 * common/cleanups.c (cleanup_chain, make_cleanup)
8952 (make_cleanup_dtor, all_cleanups, do_cleanups)
8953 (discard_my_cleanups, discard_cleanups)
8954 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8955 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8956 (null_cleanup): Remove.
8957 (do_final_cleanups): Remove parameter.
8958
c6321f19
TT
89592019-03-06 Tom Tromey <tom@tromey.com>
8960
8961 * remote.c (remote_target::remote_parse_stop_reply): Use
8962 unique_xmalloc_ptr.
8963
61b30099
TT
89642019-03-06 Tom Tromey <tom@tromey.com>
8965
8966 * stabsread.c (struct stabs_field_info): Rename from field_info.
8967 <list, fnlist>: Add initializers.
8968 <obstack>: New member.
8969 (read_member_functions, read_struct_fields, read_baseclasses):
8970 Allocate on obstack. Don't use cleanups.
8971 (read_one_struct_field, read_member_functions, read_struct_fields)
8972 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8973 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8974 (read_struct_type): Update.
8975
6cceac94
TT
89762019-03-06 Tom Tromey <tom@tromey.com>
8977
8978 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8979 * common/filestuff.h (make_cleanup_close): Don't declare.
8980 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8981 Remove.
8982
72412762
TT
89832019-03-06 Tom Tromey <tom@tromey.com>
8984
8985 * solib-aix.c: Use make_scope_exit.
8986
2b6ff1c0
TT
89872019-03-06 Tom Tromey <tom@tromey.com>
8988
8989 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8990 Use make_scope_exit.
8991
d01c5877
TT
89922019-03-06 Tom Tromey <tom@tromey.com>
8993
8994 * solib-svr4.c (disable_probes_interface): Remove parameter.
8995 (svr4_handle_solib_event): Use make_scope_exit.
8996
32603266
TT
89972019-03-06 Tom Tromey <tom@tromey.com>
8998
8999 * remote.c (struct stop_reply_deleter): Remove.
9000 (stop_reply_up): Update.
9001 (struct stop_reply): Derive from notif_event. Don't typedef.
9002 <regcache>: Now a std::vector.
9003 (stop_reply_xfree): Remove.
9004 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9005 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9006 (remote_target::discard_pending_stop_replies): Use delete.
9007 (remote_target::remote_parse_stop_reply): Update.
9008 (remote_target::process_stop_reply): Update.
9009 * remote-notif.h (struct notif_event): Add virtual destructor.
9010 Remove "dtr" member.
9011 (struct notif_client) <alloc_event>: Return a unique_ptr.
9012 (notif_event_xfree): Don't declare.
9013 (notif_event_up): New typedef.
9014 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9015 (notif_event_xfree, do_notif_event_xfree): Remove.
9016 (remote_notif_state_xfree): Update.
9017
9799571e
TT
90182019-03-06 Tom Tromey <tom@tromey.com>
9019
9020 * infrun.c (displaced_step_clear_cleanup): Now a
9021 forward_scope_exit type.
9022 (displaced_step_prepare_throw): Update.
9023 (displaced_step_fixup): Update.
9024
09e3c4ca
TT
90252019-03-06 Tom Tromey <tom@tromey.com>
9026
9027 * inferior.h (class inferior): Update comment.
9028 * gdbthread.h (class thread_info): Update comment.
9029
e2a03548
TT
90302019-03-06 Joel Brobecker <brobecker@adacore.com>
9031 Tom Tromey <tom@tromey.com>
9032
9033 * stabsread.h (struct stab_section_list): Remove.
9034 (coffstab_build_psymtabs): Update.
9035 * dbxread.c (symbuf_sections): Now a std::vector.
9036 (sect_idx): New global.
9037 (fill_symbuf): Update.
9038 (coffstab_build_psymtabs): Change type of stabsects parameter.
9039 Update.
9040 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9041 std::vector.
9042 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9043 (coff_locate_sections): Update.
9044 (coff_symfile_read): Remove cleanups. Update.
9045 (init_stringtab): Add storage parameter.
9046 (free_stringtab, free_stringtab_cleanup): Remove.
9047 (init_lineno): Add storage parameter.
9048 (free_linetab, free_linetab_cleanup): Remove.
9049
b7e60d85
PA
90502019-03-06 Pedro Alves <palves@redhat.com>
9051
9052 * linux-fork.c (fork_info::clobber_regs): Delete.
9053 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9054 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9055 comment. Adjust.
9056 (scoped_switch_fork_info::scoped_switch_fork_info)
9057 (checkpoint_command, linux_fork_context): Adjust
9058 fork_save_infrun_state calls.
9059
e52c971f
PA
90602019-03-06 Pedro Alves <palves@redhat.com>
9061
9062 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9063 (inf_has_multiple_threads): Return 'bool' and rewrite using
9064 inferior_info::threads().
9065
06974e6c
PA
90662019-03-06 Pedro Alves <palves@redhat.com>
9067
9068 * linux-fork.c: Include <list>.
9069 (fork_list): Now a std::list instance.
9070 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9071 (forks_exist_p, find_last_fork): Adjust.
9072 (new_fork): Delete.
9073 (one_fork_p): New.
9074 (add_fork): Adjust.
9075 (free_fork): Delete, folded into fork_info::~fork_info().
9076 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9077 Adjust.
9078 (init_fork_list): Delete.
9079 (linux_fork_killall, linux_fork_mourn_inferior)
9080 (linux_fork_detach, info_checkpoints_command): Adjust.
9081 (_initialize_linux_fork): No longer call init_fork_list.
9082
72f31aea
PA
90832019-03-06 Pedro Alves <palves@redhat.com>
9084
9085 * linux-fork.c (new_fork): New, split out of ...
9086 (add_fork): ... this. Return void. Move "first fork" special
9087 case from here, to ...
9088 (checkpoint_command): ... here.
9089 * linux-linux.h (add_fork): Return void.
9090
efbecbc1
AB
90912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9092
9093 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9094
0841c79a
AB
90952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9096 Chris January <chris.january@arm.com>
9097 David Lecomber <david.lecomber@arm.com>
9098
9099 * f-exp.y: New token, UNOP_INTRINSIC.
9100 (exp): New pattern using UNOP_INTRINSIC token.
9101 (f77_keywords): Add 'abs' keyword.
9102 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9103 (value_from_host_double): New function.
9104 (evaluate_subexp_f): Support UNOP_ABS.
9105
4a270568
AB
91062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9107
9108 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9109 types.
9110
067630bd
AB
91112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9112
9113 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9114 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9115 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9116
3be47f7a
AB
91172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9118
9119 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9120
4d00f5d8
AB
91212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9122 Chris January <chris.january@arm.com>
9123
9124 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9125 * f-exp.y: Define 'KIND' token.
9126 (exp): New pattern for KIND expressions.
9127 (ptype): Handle types with a kind extension.
9128 (direct_abs_decl): Extend to spot kind extensions.
9129 (f77_keywords): Add 'kind' to the list.
9130 (push_kind_type): New function.
9131 (convert_to_kind_type): New function.
9132 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9133 * parse.c (operator_length_standard): Likewise.
9134 * parser-defs.h (enum type_pieces): Add tp_kind.
9135 * std-operator.def: Add UNOP_KIND.
9136
e454224f
AB
91372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9138
9139 * f-exp.y (f_parse): Set yydebug.
9140
9dad4a58
AB
91412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9142
9143 * f-lang.c (evaluate_subexp_f): New function.
9144 (exp_descriptor_f): New global.
9145 (f_language_defn): Use exp_descriptor_f instead of
9146 exp_descriptor_standard.
9147
c8f91604
AB
91482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9149
9150 * f-exp.y (struct token): Add comments.
9151 (dot_ops): Remove uppercase versions and the end marker.
9152 (f77_keywords): Likewise.
9153 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9154 entries in the dot_ops array are case insensitive, and use
9155 strncasecmp to compare strings. Also some whitespace cleanup in
9156 this area. Similar for the f77_keywords array, except entries in
9157 this list might be case sensitive.
9158
dd9f2c76
AB
91592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9160
9161 * f-exp.y (struct f77_boolean_val): Add comments.
9162 (boolean_values): Remove uppercase versions, and end marker.
9163 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9164 and use strncasecmp to achieve case insensitivity. Additionally,
9165 perform whitespace cleanup around this code.
9166
67a3048c
TT
91672019-03-06 Tom Tromey <tromey@adacore.com>
9168
9169 * remote-sim.c (gdbsim_target_open): Use result of
9170 gdb_argv::release.
9171
aa3cfbda
RB
91722019-03-06 Richard Bunt <richard.bunt@arm.com>
9173 Dirk Schubert <dirk.schubert@arm.com>
9174 Chris January <chris.january@arm.com>
9175
9176 * eval.c (evaluate_subexp_standard): Call Fortran argument
9177 wrapping logic.
9178 * f-lang.c (struct value): A value which can be passed into a
9179 Fortran function call.
9180 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9181 where appropriate.
9182 (struct type): Value ready for a Fortran function call.
9183 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9184 is needed.
9185 * f-lang.h (fortran_argument_convert): Declaration.
9186 (fortran_preserve_arg_pointer): Declaration.
9187 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9188
ea38e5df
TT
91892019-03-05 Tom Tromey <tromey@adacore.com>
9190
9191 * python/py-prettyprint.c (print_string_repr): Remove #if.
9192 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9193
06b5b831
TT
91942019-03-05 Tom Tromey <tromey@adacore.com>
9195
9196 * target.c (the_dummy_target): Move later. Change type to
9197 "dummy_target".
9198 (initialize_targets): Don't initialize the_dummy_target.
9199
edbd9e45
TT
92002019-03-05 Tom Tromey <tromey@adacore.com>
9201
9202 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9203 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9204
c119e040
TT
92052019-03-05 Tom Tromey <tromey@adacore.com>
9206
9207 * windows-nat.c (windows_nat_target::attach)
9208 (windows_nat_target::detach): Don't call gdb_flush.
9209 * valprint.c (generic_val_print, val_print, val_print_string):
9210 Don't call gdb_flush.
9211 * utils.c (defaulted_query): Don't call gdb_flush.
9212 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9213 * target.c (target_announce_detach): Don't call gdb_flush.
9214 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9215 * remote.c (extended_remote_target::attach): Don't call
9216 gdb_flush.
9217 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9218 * printcmd.c (do_examine): Don't call gdb_flush.
9219 (info_display_command): Don't call gdb_flush.
9220 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9221 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9222 * memattr.c (info_mem_command): Don't call gdb_flush.
9223 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9224 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9225 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9226 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9227 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9228 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9229 (gnu_nat_target::detach): Don't call gdb_flush.
9230 * f-valprint.c (f_val_print): Don't call gdb_flush.
9231 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9232 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9233 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9234 gdb_flush.
9235 * c-valprint.c (c_val_print): Don't call gdb_flush.
9236 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9237
895dafa6
TT
92382019-03-05 Tom Tromey <tromey@adacore.com>
9239
9240 * varobj.c (update_dynamic_varobj_children): Update.
9241 (install_default_visualizer): Use reset, not release.
9242 * value.c (set_internalvar): Update.
9243 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9244 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9245 ATTRIBUTE_UNUSED_RESULT.
9246
88a774b9
TT
92472019-03-05 Tom Tromey <tromey@adacore.com>
9248
9249 * remote.c (class scoped_remote_fd) <release>: Add
9250 ATTRIBUTE_UNUSED_RESULT.
9251
4e4a8b93
TT
92522019-03-05 Tom Tromey <tromey@adacore.com>
9253
9254 * macroexp.c (struct macro_buffer) <release>: Add
9255 ATTRIBUTE_UNUSED_RESULT.
9256
083eef1f
TT
92572019-03-05 Tom Tromey <tromey@adacore.com>
9258
9259 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9260 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9261 ATTRIBUTE_UNUSED_RESULT.
9262
3cabd438
TT
92632019-03-05 Tom Tromey <tromey@adacore.com>
9264
9265 * common/scoped_fd.h (class scoped_fd) <release>: Add
9266 ATTRIBUTE_UNUSED_RESULT.
9267
41e3300a
TT
92682019-03-05 Tom Tromey <tromey@adacore.com>
9269
9270 * parser-defs.h (struct parser_state) <release>: Add
9271 ATTRIBUTE_UNUSED_RESULT.
9272
18cb7c9f
TT
92732019-03-05 Tom Tromey <tromey@adacore.com>
9274
9275 * utils.h (class gdb_argv) <release>: Add
9276 ATTRIBUTE_UNUSED_RESULT.
9277 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9278
41fa577f
EZ
92792019-03-02 Eli Zaretskii <eliz@gnu.org>
9280
a6a4b2c6
EZ
9281 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9282 for-loop range, to avoid compiler warnings.
9283
9284 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9285 avoid compiler warnings about unused variables.
9286
742a7df5
EZ
9287 * NEWS: Mention end of support for native debugging on MS-Windows
9288 before XP.
9289
41fa577f
EZ
9290 PR gdb/24292
9291 * common/netstuff.c:
9292 * gdbserver/gdbreplay.c
9293 * gdbserver/remote-utils.c:
9294 * ser-tcp.c:
9295 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9296 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9297 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9298 'getaddrinfo' and 'freeaddrinfo' were not available before
9299 Windows XP, and mingw.org's MinGW headers by default define
9300 _WIN32_WINNT to 0x500.
9301
827f438f
GB
93022019-03-01 Gary Benson <gbenson@redhat.com>
9303
9304 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9305
92137da0
RO
93062019-02-28 Brian Vandenberg <phantall@gmail.com>
9307 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9308
9309 PR gdb/8527
9310 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9311 set_sigint_trap, clear_sigint_trap.
9312
799efbe8
PW
93132019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9314
9315 * target.c (target_detach): Clear the regcache and the
9316 frame cache.
9317
8ed25214
PA
93182019-02-27 Pedro Alves <palves@redhat.com>
9319
9320 * utils.c (set_screen_size): When we cap the height/width sizes,
9321 tweak the corresponding command variable to show "unlimited":
9322
23031e31
SJ
93232019-02-27 Saagar Jha <saagar@saagarjha.com>
9324 Pedro Alves <palves@redhat.com>
9325
9326 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9327 before calling rl_set_screen_size.
9328
6c28e44a
TT
93292019-02-27 Tom Tromey <tromey@adacore.com>
9330
9331 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9332 define.
9333 * python/py-value.c: Remove Python 2.4 workaround.
9334 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9335 workaround.
9336 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9337 Python 2.4 workaround.
9338 * python/python-internal.h: Remove Python 2.4 comment.
9339 (Py_ssize_t): Don't define.
9340 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9341 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9342 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9343 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9344 * python/python.c (do_start_initialization): Remove Python 2.4
9345 workaround.
9346 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9347 (print_children): Remove Python 2.4 workaround.
9348 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9349 workaround.
9350 (CHARBUFFERPROC_NAME): Remove.
9351 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9352 Python 2.4 workaround.
9353
2c3fc25d 93542019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9355
2c3fc25d
KB
9356 * NEWS: Note minimum Python version.
9357
6ca62222
KB
93582019-02-27 Kevin Buettner <kevinb@redhat.com>
9359
9360 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9361 code from these functions. Remove corresponding ifdefs. Use
9362 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9363 Remove gotos and target of gotos.
9364 (infpy_search_memory): Likewise.
9365
f4bc7d2c
AB
93662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9367
9368 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9369 (hppa_gdbarch_init): Don't register deleted functions with
9370 gdbarch.
9371
9734a586
AB
93722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9373
9374 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9375 (h8300_unwind_sp): Delete.
9376 (h8300_dummy_id): Delete.
9377 (h8300_gdbarch_init): Don't register deleted functions with
9378 gdbarch.
9379
68b867f3
AB
93802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9381
9382 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9383 (ft32_unwind_pc): Delete.
9384 (ft32_unwind_sp): Delete.
9385 (ft32_gdbarch_init): Don't register deleted functions with
9386 gdbarch.
9387
2fbe7ad0
AB
93882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9389
9390 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9391 (frv_unwind_pc): Delete.
9392 (frv_unwind_sp): Delete.
9393 (frv_gdbarch_init): Don't register deleted functions with
9394 gdbarch.
9395
76055cbe
AB
93962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9397
9398 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9399 (riscv_unwind_pc): Delete.
9400 (riscv_unwind_sp): Delete.
9401 (riscv_gdbarch_init): Don't register deleted functions with
9402 gdbarch.
9403
4133e5a1
AB
94042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9407 (csky_unwind_pc): Delete.
9408 (csky_unwind_sp): Delete.
9409 (csky_gdbarch_init): Don't register deleted functions with
9410 gdbarch.
9411
8010f576
AB
94122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9413
9414 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9415 (cris_unwind_pc): Delete.
9416 (cris_unwind_sp): Delete.
9417 (cris_gdbarch_init): Don't register deleted functions with
9418 gdbarch.
9419
b56bf084
AB
94202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9421
9422 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9423 (bfin_unwind_pc): Delete.
9424 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9425
a19a650f
AB
94262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9427
9428 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9429 (arm_unwind_pc): Delete.
9430 (arm_unwind_sp): Delete.
9431 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9432
f8278c3c
AB
94332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9436 (arc_unwind_pc): Delete.
9437 (arc_unwind_sp): Delete.
9438 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9439
480e46cf
AB
94402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9441
9442 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9443 (alpha_unwind_pc): Delete.
9444 (alpha_gdbarch_init): Don't register deleted functions with
9445 gdbarch.
9446
7a995095
AB
94472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9448
9449 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9450 (aarch64_unwind_pc): Delete.
9451 (aarch64_unwind_sp): Delete.
9452 (aarch64_gdbarch_init): Don't register deleted functions with
9453 gdbarch.
9454
bf9a735e
AB
94552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9456
9457 * gdbtypes.c (type_align): Don't consider static members when
9458 computing structure alignment.
9459
5561fc30
AB
94602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9463 return 0 for other types.
9464 * arch-utils.c (default_type_align): Always return 0.
9465 * gdbarch.h: Regenerate.
9466 * gdbarch.sh (type_align): Extend comment.
9467 * gdbtypes.c (type_align): Add additional comments, always call
9468 gdbarch_type_align before applying the default rules.
9469 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9470 generic code will then apply a suitable default.
9471 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9472 types, return 0 for other types.
9473
9335e75a
JB
94742019-02-27 Joel Brobecker <brobecker@adacore.com>
9475
9476 * NEWS: Create a new section for the next release branch.
9477 Rename the section of the current branch, now that it has
9478 been cut.
9479
3d34d8de
JB
94802019-02-27 Joel Brobecker <brobecker@adacore.com>
9481
9482 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9483 * version.in: Bump version to 8.3.50.DATE-git.
9484
143420fb
SM
94852019-02-26 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * aix-thread.c (ptid_cmp): Remove unused variable.
9488 (get_signaled_thread): Likewise.
9489 (store_regs_user_thread): Likewise.
9490 (store_regs_kernel_thread): Likewise.
9491 (fetch_regs_kernel_thread): Remove shadowed variable.
9492
172fb711
AB
94932019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9494
9495 * features/riscv/32bit-cpu.xml: Add register numbers.
9496 * features/riscv/32bit-fpu.c: Regenerate.
9497 * features/riscv/32bit-fpu.xml: Add register numbers.
9498 * features/riscv/64bit-cpu.xml: Add register numbers.
9499 * features/riscv/64bit-fpu.c: Regenerate.
9500 * features/riscv/64bit-fpu.xml: Add register numbers.
9501
26c89782
KB
95022019-02-26 Kevin Buettner <kevinb@redhat.com>
9503
af54ade9 9504 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9505 * python/py-value.c (convert_buffer_and_type_to_value): New
9506 function.
9507 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9508 Add support for handling an optional second argument. Call
9509 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9510 * python/python-internal.h (Py_buffer_deleter): New struct.
9511 (Py_buffer_up): New typedef.
9512
0f58c9e8
JB
95132019-02-25 John Baldwin <jhb@FreeBSD.org>
9514
9515 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9516 instead of releasing ownership.
9517
0a0f4c01
JR
95182019-02-25 Jordan Rupprecht <rupprecht@google.com>
9519
9520 * dwarf2read.c (open_and_init_dwp_file): Call
9521 elf_numsections instead of bfd_count_sections to initialize
9522 dwp_file->num_sections.
9523
cd5a152c
TT
95242019-02-25 Tom Tromey <tromey@adacore.com>
9525
9526 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9527
8a6a8513
SDJ
95282019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9529
9530 * gcore.in: Add '--readnever' option when invoking GDB.
9531
04dcda9c
SM
95322019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9533
9534 * MAINTAINERS: Update my email address.
9535
07bc701d
SM
95362019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9537
9538 * build-id.c (build_id_to_debug_bfd_1): New function.
9539 (build_id_to_debug_bfd): Look for separate debug file in
9540 sysroot.
9541
c6f4a5d0
AB
95422019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9543
9544 * gdbarch.sh: Update the copyright year range that is placed into
9545 generated files.
9546
9600246d
KS
95472019-02-22 Keith Seitz <keiths@redhat.com>
9548
9549 PR symtab/23853
9550 * linespec.c (create_sals_line_offset): Search for the default
9551 symtab's filename instead of its fullname.
9552
7557a514
AH
95532019-02-21 Alan Hayward <alan.hayward@arm.com>
9554
9555 * NEWS: Update style defaults.
9556
ee2bcb0c
AH
95572019-02-21 Alan Hayward <alan.hayward@arm.com>
9558
9559 * main.c (captured_main_1): Disable styling in batch mode.
9560
0c95f9ed
TT
95612019-02-20 Tom Tromey <tom@tromey.com>
9562
9563 * symtab.c (symtab_symbol_info): Fix typos.
9564
c763b894
TT
95652019-02-20 Tom Tromey <tromey@adacore.com>
9566
9567 * findcmd.c (_initialize_mem_search): Use upper case for
9568 metasyntactic variables.
9569
0ef8a082
AH
95702019-02-20 Alan Hayward <alan.hayward@arm.com>
9571
9572 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9573 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9574
6caa91b6
SM
95752019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9576
9577 * top.h (source_file_name): Change to std::string.
9578 * top.c (source_file_name): Likewise.
9579 (command_line_input): Adjust.
9580 * cli/cli-script.c (script_from_file): Adjust.
9581
98814c6c
TT
95822019-02-19 Tom Tromey <tromey@adacore.com>
9583
9584 * ravenscar-thread.c
9585 (ravenscar_thread_target::update_thread_list): Don't call
9586 ada_build_task_list.
9587 * ada-lang.h (ada_build_task_list): Don't declare.
9588 * ada-tasks.c (struct ada_tasks_inferior_data)
9589 <task_list_valid_p>: Now bool.
9590 (read_known_tasks, ada_task_list_changed)
9591 (ada_tasks_invalidate_inferior_data): Update.
9592 (read_known_tasks_array): Return bool.
9593 (read_known_tasks_list): Likewise.
9594 (read_known_tasks): Return void.
9595 (ada_build_task_list): Now static.
9596
70cd633e
AB
95972019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9598
9599 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9600 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9601
040b3e95
PW
96022019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9603
9604 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9605 variant for ada_tasks_pspace_data_handle and
9606 ada_tasks_inferior_data_handle.
9607 (ada_tasks_pspace_data_cleanup): New function.
9608 (ada_tasks_inferior_data_cleanup): New function.
9609
9409233b
TT
96102019-02-17 Tom Tromey <tom@tromey.com>
9611
9612 * macrotab.h (macro_source_fullname): Return a std::string.
9613 * macrotab.c (macro_include, check_for_redefinition)
9614 (macro_undef, macro_lookup_definition, foreach_macro)
9615 (foreach_macro_in_scope): Update.
9616 (macro_source_fullname): Return a std::string.
9617 * macrocmd.c (show_pp_source_pos): Update.
9618
6506371f
TT
96192019-02-17 Tom Tromey <tom@tromey.com>
9620
9621 * macrocmd.c (show_pp_source_pos): Style the file names.
9622
0c820d67
TT
96232019-02-17 Tom Tromey <tom@tromey.com>
9624
9625 PR tui/24197:
9626 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9627
a0087920
TT
96282019-02-17 Tom Tromey <tom@tromey.com>
9629
9630 * ada-lang.c (user_select_syms): Use filtered printing.
9631 * utils.c (wrap_style): New global.
9632 (desired_style): Remove.
9633 (emit_style_escape): Add stream parameter.
9634 (set_output_style, reset_terminal_style, prompt_for_continue):
9635 Update.
9636 (flush_wrap_buffer): Only flush gdb_stdout.
9637 (wrap_here): Set wrap_style.
9638 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9639 treat escape sequences as a character. Change when wrap buffer is
9640 flushed.
9641 (fputs_styled): Do not set the output style when the default is
9642 requested.
9643 * ui-style.h (struct ui_file_style) <is_default>: New method.
9644 * source.c (print_source_lines_base): Emit escape sequences in one
9645 piece.
9646
75ba10dc
JB
96472019-02-17 Joel Brobecker <brobecker@adacore.com>
9648
9649 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9650 integers and enumeration types.
9651
a2cd4f14
JB
96522019-02-17 Joel Brobecker <brobecker@adacore.com>
9653
9654 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9655 instead of lookup_symbol_in_language
9656 (do_exact_match): New function.
9657 (ada_get_symbol_name_matcher): Return do_exact_match when
9658 doing a verbatim match.
9659
485b851b
TT
96602019-02-15 Tom Tromey <tromey@adacore.com>
9661
9662 * ravenscar-thread.c (ravenscar_thread_target::resume)
9663 (ravenscar_thread_target::wait): Special case wildcard requests.
9664
0b790b1e
TT
96652019-02-15 Tom Tromey <tromey@adacore.com>
9666
9667 * ravenscar-thread.c (base_ptid): Remove.
9668 (struct ravenscar_thread_target) <close>: New method.
9669 <m_base_ptid>: New member.
9670 <update_inferior_ptid, active_task, task_is_currently_active,
9671 runtime_initialized>: Declare methods.
9672 <ravenscar_thread_target>: Add constructor.
9673 (ravenscar_thread_target::task_is_currently_active)
9674 (ravenscar_thread_target::update_inferior_ptid)
9675 (ravenscar_runtime_initialized): Rename. Now methods.
9676 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9677 (ravenscar_thread_target::update_thread_list): Update.
9678 (ravenscar_thread_target::active_task): Now method.
9679 (ravenscar_thread_target::store_registers)
9680 (ravenscar_thread_target::prepare_to_store)
9681 (ravenscar_thread_target::prepare_to_store)
9682 (ravenscar_thread_target::mourn_inferior): Update.
9683 (ravenscar_inferior_created): Use "new" to create target.
9684 (ravenscar_thread_target::get_ada_task_ptid): Update.
9685 (_initialize_ravenscar): Don't initialize base_ptid.
9686 (ravenscar_ops): Remove global.
9687
dea57a62
TT
96882019-02-15 Tom Tromey <tromey@adacore.com>
9689
9690 * target.h (push_target): Declare new overload.
9691 * target.c (push_target): New overload, taking an rvalue reference.
9692 * remote.c (remote_target::open_1): Use push_target overload.
9693 * corelow.c (core_target_open): Use push_target overload.
9694
989f3c58
TT
96952019-02-15 Tom Tromey <tromey@adacore.com>
9696
9697 * ravenscar-thread.c (is_ravenscar_task)
9698 (ravenscar_task_is_currently_active): Return bool.
9699 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9700 (_initialize_ravenscar): Remove "(void)".
9701 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9702 Return bool.
9703
6cbcc006
TT
97042019-02-15 Tom Tromey <tromey@adacore.com>
9705
9706 * ravenscar-thread.c (ravenscar_runtime_initializer)
9707 (has_ravenscar_runtime, get_running_thread_id)
9708 (ravenscar_thread_target::resume): Fix indentation.
9709
7657f14d
TT
97102019-02-15 Tom Tromey <tromey@adacore.com>
9711
9712 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9713 from ravenscar_arch_ops.
9714 (sparc_ravenscar_ops::fetch_registers)
9715 (sparc_ravenscar_ops::store_registers): Now methods.
9716 (sparc_ravenscar_prepare_to_store): Remove.
9717 (sparc_ravenscar_ops): Redefine.
9718 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9719 methods and destructor. Remove members.
9720 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9721 (ravenscar_thread_target::store_registers)
9722 (ravenscar_thread_target::prepare_to_store): Update.
9723 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9724 Remove.
9725 (struct ppc_ravenscar_powerpc_ops): Derive from
9726 ravenscar_arch_ops.
9727 (ppc_ravenscar_powerpc_ops::fetch_registers)
9728 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9729 (ppc_ravenscar_powerpc_ops): Redefine.
9730 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9731 (ppc_ravenscar_e500_ops::fetch_registers)
9732 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9733 (ppc_ravenscar_e500_ops): Redefine.
9734 * aarch64-ravenscar-thread.c
9735 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9736 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9737 (aarch64_ravenscar_fetch_registers)
9738 (aarch64_ravenscar_store_registers): Now methods.
9739 (aarch64_ravenscar_ops): Redefine.
9740
5b6ea500
TT
97412019-02-15 Tom Tromey <tromey@adacore.com>
9742
9743 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9744 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9745 (ravenscar_thread_target::stopped_by_watchpoint)
9746 (ravenscar_thread_target::stopped_data_address)
9747 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9748
e397fd39
TT
97492019-02-15 Tom Tromey <tromey@adacore.com>
9750
9751 * ravenscar-thread.c: Fix some typos.
9752
cc12f4a8
TT
97532019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9754 Tom Tromey <tromey@adacore.com>
9755
9756 * ada-lang.c (ada_exception_sal): Change addr_string to a
9757 std::string.
9758 (create_ada_exception_catchpoint): Update.
9759
5f486660
TT
97602019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9761 Tom Tromey <tromey@adacore.com>
9762
9763 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9764 (bp_location_ops): Remove.
9765 (base_breakpoint_allocate_location): Update.
9766 (free_bp_location): Update.
9767 * ada-lang.c (class ada_catchpoint_location)
9768 <ada_catchpoint_location>: Remove ops parameter.
9769 (ada_catchpoint_location_dtor): Remove.
9770 (ada_catchpoint_location_ops): Remove.
9771 (allocate_location_exception): Update.
9772 * breakpoint.h (struct bp_location_ops): Remove.
9773 (class bp_location) <bp_location>: Remove bp_location_ops
9774 parameter.
9775 <~bp_location>: Add destructor.
9776 <ops>: Remove.
9777
b671c7fb
TS
97782019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9779 Pedro Alves <palves@redhat.com>
9780
9781 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9782 'PATH_MAX'.
9783
8071c5ce
DM
97842019-02-14 David Michael <fedora.dm0@gmail.com>
9785 Samuel Thibault <samuel.thibault@gnu.org>
9786 Thomas Schwinge <thomas@codesourcery.com>
9787
9788 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9789 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9790
b1041ae0
TS
97912019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9792
924514e1
TS
9793 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9794 (check_empty): Use "const char *".
9795
c29ee8d4
TS
9796 * gnu-nat.c (gnu_nat_target::detach): Instead of
9797 'detach_inferior (pid)' call
9798 'detach_inferior (find_inferior_pid (pid))'.
9799
6c6ef69f
TS
9800 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9801 'nat/fork-inferior.o'.
9802 * gnu-nat.c: #include "nat/fork-inferior.h".
9803
2d0a338c
TS
9804 * gnu-nat.c (gnu_nat_target::detach): Instead of
9805 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9806 * gnu-nat.h: #include "inf-child.h".
9807 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9808 'i386_gnu_nat_target::fetch_registers'.
9809 (gnu_store_registers): Rename/move to
9810 'i386_gnu_nat_target::store_registers'.
9811
cabb5f06
TS
9812 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9813 * gnu-nat.h (mach_thread_info): New function.
9814 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9815
b1041ae0
TS
9816 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9817
2988d01e
KF
98182019-02-14 Frederic Konrad <konrad@adacore.com>
9819
9820 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9821
c559d709
JB
98222019-02-14 Joel Brobecker <brobecker@adacore.com>
9823
9824 * windows-nat.c (windows_add_thread): Add new parameter
9825 "main_thread_p" with default value set to false. Update
9826 function documentation as well as all callers.
9827 (windows_delete_thread): Likewise.
9828 (fake_create_process): Update call to windows_add_thread.
9829 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9830 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9831 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9832 call to windows_delete_thread.
9833
007024cc
SM
98342019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9835
9836 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9837
f62318e9
JB
98382019-02-12 John Baldwin <jhb@FreeBSD.org>
9839
9840 * symfile.c (find_separate_debug_file): Use canonical path of
9841 sysroot with child_path instead of gdb_sysroot if it is valid.
9842
cd4b7848
JB
98432019-02-12 John Baldwin <jhb@FreeBSD.org>
9844
9845 * symfile.c (find_separate_debug_file): Use child_path to
9846 determine if an object file is under a sysroot.
9847
efac4bfe
JB
98482019-02-12 John Baldwin <jhb@FreeBSD.org>
9849
9850 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9851 unittests/child-path-selftests.c.
9852 * common/pathstuff.c (child_path): New function.
9853 * common/pathstuff.h (child_path): New prototype.
9854 * unittests/child-path-selftests.c: New file.
9855
402d2bfe
JB
98562019-02-12 John Baldwin <jhb@FreeBSD.org>
9857
9858 * symfile.c (find_separate_debug_file): Look for separate debug
9859 files in debug directories under the sysroot.
9860
1ed9f74e
PW
98612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9862
9863 * symtab.h (struct minimal_symbol data_p): New const method.
9864 (struct minimal_symbol text_p): Likewise.
9865 * symtab.c (output_source_filename): Use file name style
9866 to print file name.
9867 (print_symbol_info): Likewise.
9868 (print_msymbol_info): Use address style to print addresses.
9869 Use function name style to print executable text symbols.
9870 (expand_symtab_containing_pc): Use data_p.
9871 (find_pc_sect_compunit_symtab): Likewise.
9872
2636d81d
PW
98732019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9874
9875 * breakpoint.c (describe_other_breakpoints): Use address style
9876 to print addresses.
9877 (say_where): Likewise.
9878
ac8c53cc
PW
98792019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9880
9881 * ada-typeprint.c (print_func_type): Print function name
9882 style to print function name.
9883 * c-typeprint.c (c_print_type_1): Likewise.
9884
ea638c43
AH
98852019-02-11 Alan Hayward <alan.hayward@arm.com>
9886
9887 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9888 for execve.
9889
ab759ca8
PW
98902019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9891
9892 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9893 type_stack.
9894
aff29d1c
JB
98952019-02-10 Joel Brobecker <brobecker@adacore.com>
9896
9897 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9898 TYPE_CODE_REF types.
9899
617126bc
JW
99002019-02-08 Jim Wilson <jimw@sifive.com>
9901
9902 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9903 (riscv_linux_fregset): New.
9904 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9905
46e3ed7f
TT
99062019-02-07 Tom Tromey <tom@tromey.com>
9907
9908 * thread.c (thread_cancel_execution_command): Update.
9909 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9910 methods.
9911 (struct thread_fsm_ops): Remove.
9912 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9913 (thread_fsm_should_stop, thread_fsm_return_value)
9914 (thread_fsm_set_finished, thread_fsm_finished_p)
9915 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9916 Don't declare.
9917 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9918 * infrun.c (clear_proceed_status_thread)
9919 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9920 (print_stop_event): Update.
9921 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9922 Add constructor.
9923 (step_command_fsm_ops): Remove.
9924 (new_step_command_fsm): Remove.
9925 (step_1): Update.
9926 (step_command_fsm::should_stop): Rename from
9927 step_command_fsm_should_stop.
9928 (step_command_fsm::clean_up): Rename from
9929 step_command_fsm_clean_up.
9930 (step_command_fsm::do_async_reply_reason): Rename from
9931 step_command_fsm_async_reply_reason.
9932 (struct until_next_fsm): Inherit from thread_fsm. Add
9933 constructor.
9934 (until_next_fsm_ops): Remove.
9935 (new_until_next_fsm): Remove.
9936 (until_next_fsm::should_stop): Rename from
9937 until_next_fsm_should_stop.
9938 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9939 (until_next_fsm::do_async_reply_reason): Rename from
9940 until_next_fsm_async_reply_reason.
9941 (struct finish_command_fsm): Inherit from thread_fsm. Add
9942 constructor. Change type of breakpoint.
9943 (finish_command_fsm_ops): Remove.
9944 (new_finish_command_fsm): Remove.
9945 (finish_command_fsm::should_stop): Rename from
9946 finish_command_fsm_should_stop.
9947 (finish_command_fsm::clean_up): Rename from
9948 finish_command_fsm_clean_up.
9949 (finish_command_fsm::return_value): Rename from
9950 finish_command_fsm_return_value.
9951 (finish_command_fsm::do_async_reply_reason): Rename from
9952 finish_command_fsm_async_reply_reason.
9953 (finish_command): Update.
9954 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9955 Add constructor.
9956 (call_thread_fsm_ops): Remove.
9957 (call_thread_fsm::call_thread_fsm): Rename from
9958 new_call_thread_fsm.
9959 (call_thread_fsm::should_stop): Rename from
9960 call_thread_fsm_should_stop.
9961 (call_thread_fsm::should_notify_stop): Rename from
9962 call_thread_fsm_should_notify_stop.
9963 (run_inferior_call, call_function_by_hand_dummy): Update.
9964 * cli/cli-interp.c (should_print_stop_to_console): Update.
9965 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9966 Add constructor. Change type of location_breakpoint,
9967 caller_breakpoint.
9968 (until_break_fsm_ops): Remove.
9969 (new_until_break_fsm): Remove.
9970 (until_break_fsm::should_stop): Rename from
9971 until_break_fsm_should_stop.
9972 (until_break_fsm::clean_up): Rename from
9973 until_break_fsm_clean_up.
9974 (until_break_fsm::do_async_reply_reason): Rename from
9975 until_break_fsm_async_reply_reason.
9976 (until_break_command): Update.
9977 * thread-fsm.c: Remove.
9978 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9979
1a5c2598
TT
99802019-02-07 Tom Tromey <tom@tromey.com>
9981
9982 * yy-remap.h: Add include guard.
9983 * xtensa-tdep.h: Add include guard.
9984 * xcoffread.h: Rename include guard.
9985 * varobj-iter.h: Add include guard.
9986 * tui/tui.h: Rename include guard.
9987 * tui/tui-winsource.h: Rename include guard.
9988 * tui/tui-wingeneral.h: Rename include guard.
9989 * tui/tui-windata.h: Rename include guard.
9990 * tui/tui-win.h: Rename include guard.
9991 * tui/tui-stack.h: Rename include guard.
9992 * tui/tui-source.h: Rename include guard.
9993 * tui/tui-regs.h: Rename include guard.
9994 * tui/tui-out.h: Rename include guard.
9995 * tui/tui-layout.h: Rename include guard.
9996 * tui/tui-io.h: Rename include guard.
9997 * tui/tui-hooks.h: Rename include guard.
9998 * tui/tui-file.h: Rename include guard.
9999 * tui/tui-disasm.h: Rename include guard.
10000 * tui/tui-data.h: Rename include guard.
10001 * tui/tui-command.h: Rename include guard.
10002 * tic6x-tdep.h: Add include guard.
10003 * target/waitstatus.h: Rename include guard.
10004 * target/wait.h: Rename include guard.
10005 * target/target.h: Rename include guard.
10006 * target/resume.h: Rename include guard.
10007 * target-float.h: Rename include guard.
10008 * stabsread.h: Add include guard.
10009 * rs6000-tdep.h: Add include guard.
10010 * riscv-fbsd-tdep.h: Add include guard.
10011 * regformats/regdef.h: Rename include guard.
10012 * record.h: Rename include guard.
10013 * python/python.h: Rename include guard.
10014 * python/python-internal.h: Rename include guard.
10015 * python/py-stopevent.h: Rename include guard.
10016 * python/py-ref.h: Rename include guard.
10017 * python/py-record.h: Rename include guard.
10018 * python/py-record-full.h: Rename include guard.
10019 * python/py-record-btrace.h: Rename include guard.
10020 * python/py-instruction.h: Rename include guard.
10021 * python/py-events.h: Rename include guard.
10022 * python/py-event.h: Rename include guard.
10023 * procfs.h: Add include guard.
10024 * proc-utils.h: Add include guard.
10025 * p-lang.h: Add include guard.
10026 * or1k-tdep.h: Rename include guard.
10027 * observable.h: Rename include guard.
10028 * nto-tdep.h: Rename include guard.
10029 * nat/x86-linux.h: Rename include guard.
10030 * nat/x86-linux-dregs.h: Rename include guard.
10031 * nat/x86-gcc-cpuid.h: Add include guard.
10032 * nat/x86-dregs.h: Rename include guard.
10033 * nat/x86-cpuid.h: Rename include guard.
10034 * nat/ppc-linux.h: Rename include guard.
10035 * nat/mips-linux-watch.h: Rename include guard.
10036 * nat/linux-waitpid.h: Rename include guard.
10037 * nat/linux-ptrace.h: Rename include guard.
10038 * nat/linux-procfs.h: Rename include guard.
10039 * nat/linux-osdata.h: Rename include guard.
10040 * nat/linux-nat.h: Rename include guard.
10041 * nat/linux-namespaces.h: Rename include guard.
10042 * nat/linux-btrace.h: Rename include guard.
10043 * nat/glibc_thread_db.h: Rename include guard.
10044 * nat/gdb_thread_db.h: Rename include guard.
10045 * nat/gdb_ptrace.h: Rename include guard.
10046 * nat/fork-inferior.h: Rename include guard.
10047 * nat/amd64-linux-siginfo.h: Rename include guard.
10048 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10049 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10050 * nat/aarch64-linux.h: Rename include guard.
10051 * nat/aarch64-linux-hw-point.h: Rename include guard.
10052 * mn10300-tdep.h: Add include guard.
10053 * mips-linux-tdep.h: Add include guard.
10054 * mi/mi-parse.h: Rename include guard.
10055 * mi/mi-out.h: Rename include guard.
10056 * mi/mi-main.h: Rename include guard.
10057 * mi/mi-interp.h: Rename include guard.
10058 * mi/mi-getopt.h: Rename include guard.
10059 * mi/mi-console.h: Rename include guard.
10060 * mi/mi-common.h: Rename include guard.
10061 * mi/mi-cmds.h: Rename include guard.
10062 * mi/mi-cmd-break.h: Rename include guard.
10063 * m2-lang.h: Add include guard.
10064 * location.h: Rename include guard.
10065 * linux-record.h: Rename include guard.
10066 * linux-nat.h: Add include guard.
10067 * linux-fork.h: Add include guard.
10068 * i386-darwin-tdep.h: Rename include guard.
10069 * hppa-linux-offsets.h: Add include guard.
10070 * guile/guile.h: Rename include guard.
10071 * guile/guile-internal.h: Rename include guard.
10072 * gnu-nat.h: Rename include guard.
10073 * gdb-stabs.h: Rename include guard.
10074 * frv-tdep.h: Add include guard.
10075 * f-lang.h: Add include guard.
10076 * event-loop.h: Add include guard.
10077 * darwin-nat.h: Rename include guard.
10078 * cp-abi.h: Rename include guard.
10079 * config/sparc/nm-sol2.h: Rename include guard.
10080 * config/nm-nto.h: Rename include guard.
10081 * config/nm-linux.h: Add include guard.
10082 * config/i386/nm-i386gnu.h: Rename include guard.
10083 * config/djgpp/nl_types.h: Rename include guard.
10084 * config/djgpp/langinfo.h: Rename include guard.
10085 * compile/gcc-cp-plugin.h: Add include guard.
10086 * compile/gcc-c-plugin.h: Add include guard.
10087 * compile/compile.h: Rename include guard.
10088 * compile/compile-object-run.h: Rename include guard.
10089 * compile/compile-object-load.h: Rename include guard.
10090 * compile/compile-internal.h: Rename include guard.
10091 * compile/compile-cplus.h: Rename include guard.
10092 * compile/compile-c.h: Rename include guard.
10093 * common/xml-utils.h: Rename include guard.
10094 * common/x86-xstate.h: Rename include guard.
10095 * common/version.h: Rename include guard.
10096 * common/vec.h: Rename include guard.
10097 * common/tdesc.h: Rename include guard.
10098 * common/selftest.h: Rename include guard.
10099 * common/scoped_restore.h: Rename include guard.
10100 * common/scoped_mmap.h: Rename include guard.
10101 * common/scoped_fd.h: Rename include guard.
10102 * common/safe-iterator.h: Rename include guard.
10103 * common/run-time-clock.h: Rename include guard.
10104 * common/refcounted-object.h: Rename include guard.
10105 * common/queue.h: Rename include guard.
10106 * common/ptid.h: Rename include guard.
10107 * common/print-utils.h: Rename include guard.
10108 * common/preprocessor.h: Rename include guard.
10109 * common/pathstuff.h: Rename include guard.
10110 * common/observable.h: Rename include guard.
10111 * common/netstuff.h: Rename include guard.
10112 * common/job-control.h: Rename include guard.
10113 * common/host-defs.h: Rename include guard.
10114 * common/gdb_wait.h: Rename include guard.
10115 * common/gdb_vecs.h: Rename include guard.
10116 * common/gdb_unlinker.h: Rename include guard.
10117 * common/gdb_unique_ptr.h: Rename include guard.
10118 * common/gdb_tilde_expand.h: Rename include guard.
10119 * common/gdb_sys_time.h: Rename include guard.
10120 * common/gdb_string_view.h: Rename include guard.
10121 * common/gdb_splay_tree.h: Rename include guard.
10122 * common/gdb_setjmp.h: Rename include guard.
10123 * common/gdb_ref_ptr.h: Rename include guard.
10124 * common/gdb_optional.h: Rename include guard.
10125 * common/gdb_locale.h: Rename include guard.
10126 * common/gdb_assert.h: Rename include guard.
10127 * common/filtered-iterator.h: Rename include guard.
10128 * common/filestuff.h: Rename include guard.
10129 * common/fileio.h: Rename include guard.
10130 * common/environ.h: Rename include guard.
10131 * common/common-utils.h: Rename include guard.
10132 * common/common-types.h: Rename include guard.
10133 * common/common-regcache.h: Rename include guard.
10134 * common/common-inferior.h: Rename include guard.
10135 * common/common-gdbthread.h: Rename include guard.
10136 * common/common-exceptions.h: Rename include guard.
10137 * common/common-defs.h: Rename include guard.
10138 * common/common-debug.h: Rename include guard.
10139 * common/cleanups.h: Rename include guard.
10140 * common/buffer.h: Rename include guard.
10141 * common/btrace-common.h: Rename include guard.
10142 * common/break-common.h: Rename include guard.
10143 * cli/cli-utils.h: Rename include guard.
10144 * cli/cli-style.h: Rename include guard.
10145 * cli/cli-setshow.h: Rename include guard.
10146 * cli/cli-script.h: Rename include guard.
10147 * cli/cli-interp.h: Rename include guard.
10148 * cli/cli-decode.h: Rename include guard.
10149 * cli/cli-cmds.h: Rename include guard.
10150 * charset-list.h: Add include guard.
10151 * buildsym-legacy.h: Rename include guard.
10152 * bfin-tdep.h: Add include guard.
10153 * ax.h: Rename include guard.
10154 * arm-linux-tdep.h: Add include guard.
10155 * arm-fbsd-tdep.h: Add include guard.
10156 * arch/xtensa.h: Rename include guard.
10157 * arch/tic6x.h: Add include guard.
10158 * arch/i386.h: Add include guard.
10159 * arch/arm.h: Rename include guard.
10160 * arch/arm-linux.h: Rename include guard.
10161 * arch/arm-get-next-pcs.h: Rename include guard.
10162 * arch/amd64.h: Add include guard.
10163 * arch/aarch64-insn.h: Rename include guard.
10164 * arch-utils.h: Rename include guard.
10165 * annotate.h: Add include guard.
10166 * amd64-darwin-tdep.h: Rename include guard.
10167 * aarch64-linux-tdep.h: Add include guard.
10168 * aarch64-fbsd-tdep.h: Add include guard.
10169 * aarch32-linux-nat.h: Add include guard.
10170
ab9268d2
PW
101712019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10172
10173 * macrotab.c (macro_define_internal): New function that
10174 factorizes macro_define_object_internal and macro_define_function
10175 code.
10176 (macro_define_object_internal): Use macro_define_internal.
10177 (macro_define_function): Likewise.
10178
bb0da2b4
PW
101792019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10180
10181 * macrocmd.c (extract_identifier): Return
10182 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10183 callers.
10184
424eb552
JB
101852019-02-06 John Baldwin <jhb@FreeBSD.org>
10186
10187 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10188
1688cb29
TT
101892019-02-05 Tom Tromey <tom@tromey.com>
10190
10191 * target.c (target_stack::unpush): Move assertion earlier.
10192
b5eba2d8
TT
101932019-01-30 Tom Tromey <tom@tromey.com>
10194
10195 PR python/23615:
10196 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10197 (gdbpy_parse_and_eval): Likewise.
10198 * python/python-internal.h (gdbpy_allow_threads): New class.
10199
7054e2ff
JB
102002019-01-28 John Baldwin <jhb@FreeBSD.org>
10201
10202 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10203 (aarch64_fbsd_fpregmap): Move earlier.
10204 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10205 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10206 instead of individual calls to trad_frame_set_reg_addr.
10207 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10208 earlier.
10209 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10210 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10211 instead of individual calls to trad_frame_set_reg_addr.
10212
36c25ffa
AH
102132019-01-28 Alan Hayward <alan.hayward@arm.com>
10214
10215 * CONTRIBUTE: Replace contribution list with wiki link.
10216
a0707f3c
TT
102172019-01-25 Tom Tromey <tom@tromey.com>
10218
10219 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10220
0747795c
TT
102212019-01-25 Tom Tromey <tom@tromey.com>
10222
10223 * xtensa-linux-nat.c: Fix common/ includes.
10224 * xml-support.h: Fix common/ includes.
10225 * xml-support.c: Fix common/ includes.
10226 * x86-linux-nat.c: Fix common/ includes.
10227 * windows-nat.c: Fix common/ includes.
10228 * varobj.h: Fix common/ includes.
10229 * varobj.c: Fix common/ includes.
10230 * value.c: Fix common/ includes.
10231 * valops.c: Fix common/ includes.
10232 * utils.c: Fix common/ includes.
10233 * unittests/xml-utils-selftests.c: Fix common/ includes.
10234 * unittests/utils-selftests.c: Fix common/ includes.
10235 * unittests/unpack-selftests.c: Fix common/ includes.
10236 * unittests/tracepoint-selftests.c: Fix common/ includes.
10237 * unittests/style-selftests.c: Fix common/ includes.
10238 * unittests/string_view-selftests.c: Fix common/ includes.
10239 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10240 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10241 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10242 * unittests/rsp-low-selftests.c: Fix common/ includes.
10243 * unittests/parse-connection-spec-selftests.c: Fix common/
10244 includes.
10245 * unittests/optional-selftests.c: Fix common/ includes.
10246 * unittests/offset-type-selftests.c: Fix common/ includes.
10247 * unittests/observable-selftests.c: Fix common/ includes.
10248 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10249 * unittests/memrange-selftests.c: Fix common/ includes.
10250 * unittests/memory-map-selftests.c: Fix common/ includes.
10251 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10252 * unittests/function-view-selftests.c: Fix common/ includes.
10253 * unittests/environ-selftests.c: Fix common/ includes.
10254 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10255 * unittests/common-utils-selftests.c: Fix common/ includes.
10256 * unittests/cli-utils-selftests.c: Fix common/ includes.
10257 * unittests/array-view-selftests.c: Fix common/ includes.
10258 * ui-file.c: Fix common/ includes.
10259 * tui/tui-io.c: Fix common/ includes.
10260 * tracepoint.h: Fix common/ includes.
10261 * tracepoint.c: Fix common/ includes.
10262 * tracefile-tfile.c: Fix common/ includes.
10263 * top.h: Fix common/ includes.
10264 * top.c: Fix common/ includes.
10265 * thread.c: Fix common/ includes.
10266 * target/waitstatus.h: Fix common/ includes.
10267 * target/waitstatus.c: Fix common/ includes.
10268 * target.h: Fix common/ includes.
10269 * target.c: Fix common/ includes.
10270 * target-memory.c: Fix common/ includes.
10271 * target-descriptions.c: Fix common/ includes.
10272 * symtab.h: Fix common/ includes.
10273 * symfile.c: Fix common/ includes.
10274 * stap-probe.c: Fix common/ includes.
10275 * spu-linux-nat.c: Fix common/ includes.
10276 * sparc-nat.c: Fix common/ includes.
10277 * source.c: Fix common/ includes.
10278 * solib.c: Fix common/ includes.
10279 * solib-target.c: Fix common/ includes.
10280 * ser-unix.c: Fix common/ includes.
10281 * ser-tcp.c: Fix common/ includes.
10282 * ser-pipe.c: Fix common/ includes.
10283 * ser-base.c: Fix common/ includes.
10284 * selftest-arch.c: Fix common/ includes.
10285 * s12z-tdep.c: Fix common/ includes.
10286 * rust-exp.y: Fix common/ includes.
10287 * rs6000-aix-tdep.c: Fix common/ includes.
10288 * riscv-tdep.c: Fix common/ includes.
10289 * remote.c: Fix common/ includes.
10290 * remote-notif.h: Fix common/ includes.
10291 * remote-fileio.h: Fix common/ includes.
10292 * remote-fileio.c: Fix common/ includes.
10293 * regcache.h: Fix common/ includes.
10294 * regcache.c: Fix common/ includes.
10295 * record-btrace.c: Fix common/ includes.
10296 * python/python.c: Fix common/ includes.
10297 * python/py-type.c: Fix common/ includes.
10298 * python/py-inferior.c: Fix common/ includes.
10299 * progspace.h: Fix common/ includes.
10300 * producer.c: Fix common/ includes.
10301 * procfs.c: Fix common/ includes.
10302 * proc-api.c: Fix common/ includes.
10303 * printcmd.c: Fix common/ includes.
10304 * ppc-linux-nat.c: Fix common/ includes.
10305 * parser-defs.h: Fix common/ includes.
10306 * osdata.c: Fix common/ includes.
10307 * obsd-nat.c: Fix common/ includes.
10308 * nat/x86-linux.c: Fix common/ includes.
10309 * nat/x86-linux-dregs.c: Fix common/ includes.
10310 * nat/x86-dregs.h: Fix common/ includes.
10311 * nat/x86-dregs.c: Fix common/ includes.
10312 * nat/ppc-linux.c: Fix common/ includes.
10313 * nat/mips-linux-watch.h: Fix common/ includes.
10314 * nat/mips-linux-watch.c: Fix common/ includes.
10315 * nat/linux-waitpid.c: Fix common/ includes.
10316 * nat/linux-ptrace.h: Fix common/ includes.
10317 * nat/linux-ptrace.c: Fix common/ includes.
10318 * nat/linux-procfs.c: Fix common/ includes.
10319 * nat/linux-personality.c: Fix common/ includes.
10320 * nat/linux-osdata.c: Fix common/ includes.
10321 * nat/linux-namespaces.c: Fix common/ includes.
10322 * nat/linux-btrace.h: Fix common/ includes.
10323 * nat/linux-btrace.c: Fix common/ includes.
10324 * nat/fork-inferior.c: Fix common/ includes.
10325 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10326 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10327 * nat/aarch64-linux.c: Fix common/ includes.
10328 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10329 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10330 * namespace.h: Fix common/ includes.
10331 * mips-linux-tdep.c: Fix common/ includes.
10332 * minsyms.c: Fix common/ includes.
10333 * mi/mi-parse.h: Fix common/ includes.
10334 * mi/mi-main.c: Fix common/ includes.
10335 * mi/mi-cmd-env.c: Fix common/ includes.
10336 * memrange.h: Fix common/ includes.
10337 * memattr.c: Fix common/ includes.
10338 * maint.h: Fix common/ includes.
10339 * maint.c: Fix common/ includes.
10340 * main.c: Fix common/ includes.
10341 * machoread.c: Fix common/ includes.
10342 * location.c: Fix common/ includes.
10343 * linux-thread-db.c: Fix common/ includes.
10344 * linux-nat.c: Fix common/ includes.
10345 * linux-fork.c: Fix common/ includes.
10346 * inline-frame.c: Fix common/ includes.
10347 * infrun.c: Fix common/ includes.
10348 * inflow.c: Fix common/ includes.
10349 * inferior.h: Fix common/ includes.
10350 * inferior.c: Fix common/ includes.
10351 * infcmd.c: Fix common/ includes.
10352 * inf-ptrace.c: Fix common/ includes.
10353 * inf-child.c: Fix common/ includes.
10354 * ia64-linux-nat.c: Fix common/ includes.
10355 * i387-tdep.c: Fix common/ includes.
10356 * i386-tdep.c: Fix common/ includes.
10357 * i386-linux-tdep.c: Fix common/ includes.
10358 * i386-linux-nat.c: Fix common/ includes.
10359 * i386-go32-tdep.c: Fix common/ includes.
10360 * i386-fbsd-tdep.c: Fix common/ includes.
10361 * i386-fbsd-nat.c: Fix common/ includes.
10362 * guile/scm-type.c: Fix common/ includes.
10363 * guile/guile.c: Fix common/ includes.
10364 * go32-nat.c: Fix common/ includes.
10365 * gnu-nat.c: Fix common/ includes.
10366 * gdbthread.h: Fix common/ includes.
10367 * gdbarch-selftests.c: Fix common/ includes.
10368 * gdb_usleep.c: Fix common/ includes.
10369 * gdb_select.h: Fix common/ includes.
10370 * gdb_bfd.c: Fix common/ includes.
10371 * gcore.c: Fix common/ includes.
10372 * fork-child.c: Fix common/ includes.
10373 * findvar.c: Fix common/ includes.
10374 * fbsd-nat.c: Fix common/ includes.
10375 * event-top.c: Fix common/ includes.
10376 * event-loop.c: Fix common/ includes.
10377 * dwarf2read.c: Fix common/ includes.
10378 * dwarf2loc.c: Fix common/ includes.
10379 * dwarf2-frame.c: Fix common/ includes.
10380 * dwarf-index-cache.c: Fix common/ includes.
10381 * dtrace-probe.c: Fix common/ includes.
10382 * disasm-selftests.c: Fix common/ includes.
10383 * defs.h: Fix common/ includes.
10384 * csky-tdep.c: Fix common/ includes.
10385 * cp-valprint.c: Fix common/ includes.
10386 * cp-support.h: Fix common/ includes.
10387 * cp-support.c: Fix common/ includes.
10388 * corelow.c: Fix common/ includes.
10389 * completer.h: Fix common/ includes.
10390 * completer.c: Fix common/ includes.
10391 * compile/compile.c: Fix common/ includes.
10392 * compile/compile-loc2c.c: Fix common/ includes.
10393 * compile/compile-cplus-types.c: Fix common/ includes.
10394 * compile/compile-cplus-symbols.c: Fix common/ includes.
10395 * command.h: Fix common/ includes.
10396 * cli/cli-dump.c: Fix common/ includes.
10397 * cli/cli-cmds.c: Fix common/ includes.
10398 * charset.c: Fix common/ includes.
10399 * build-id.c: Fix common/ includes.
10400 * btrace.h: Fix common/ includes.
10401 * btrace.c: Fix common/ includes.
10402 * breakpoint.h: Fix common/ includes.
10403 * breakpoint.c: Fix common/ includes.
10404 * ax.h:
10405 (enum agent_op): Fix common/ includes.
10406 * ax-general.c (struct aop_map): Fix common/ includes.
10407 * ax-gdb.c: Fix common/ includes.
10408 * auxv.c: Fix common/ includes.
10409 * auto-load.c: Fix common/ includes.
10410 * arm-tdep.c: Fix common/ includes.
10411 * arch/riscv.c: Fix common/ includes.
10412 * arch/ppc-linux-common.c: Fix common/ includes.
10413 * arch/i386.c: Fix common/ includes.
10414 * arch/arm.c: Fix common/ includes.
10415 * arch/arm-linux.c: Fix common/ includes.
10416 * arch/arm-get-next-pcs.c: Fix common/ includes.
10417 * arch/amd64.c: Fix common/ includes.
10418 * arch/aarch64.c: Fix common/ includes.
10419 * arch/aarch64-insn.c: Fix common/ includes.
10420 * arch-utils.c: Fix common/ includes.
10421 * amd64-windows-tdep.c: Fix common/ includes.
10422 * amd64-tdep.c: Fix common/ includes.
10423 * amd64-sol2-tdep.c: Fix common/ includes.
10424 * amd64-obsd-tdep.c: Fix common/ includes.
10425 * amd64-nbsd-tdep.c: Fix common/ includes.
10426 * amd64-linux-tdep.c: Fix common/ includes.
10427 * amd64-linux-nat.c: Fix common/ includes.
10428 * amd64-fbsd-tdep.c: Fix common/ includes.
10429 * amd64-fbsd-nat.c: Fix common/ includes.
10430 * amd64-dicos-tdep.c: Fix common/ includes.
10431 * amd64-darwin-tdep.c: Fix common/ includes.
10432 * agent.c: Fix common/ includes.
10433 * ada-lang.h: Fix common/ includes.
10434 * ada-lang.c: Fix common/ includes.
10435 * aarch64-tdep.c: Fix common/ includes.
10436
2f5c153e
TT
104372019-01-25 Tom Tromey <tom@tromey.com>
10438
10439 * common/create-version.sh: Use common/version.h.
10440
adc6a863
PA
104412019-01-24 Pedro Alves <palves@redhat.com>
10442
10443 * infrun.c (signal_stop, signal_print, signal_program)
10444 (signal_catch, signal_pass): Now arrays instead of pointers.
10445 (update_signals_program_target, do_target_resume)
10446 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10447 * linux-nat.c (linux_nat_target::pass_signals)
10448 (linux_nat_target::create_inferior, linux_nat_target::attach):
10449 Adjust.
10450 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10451 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10452 * procfs.c (procfs_target::pass_signals): Adjust.
10453 * record-full.c (record_full_target::resume): Adjust.
10454 * remote.c (remote_target::pass_signals)
10455 (remote_target::program_signals): Adjust.
10456 * target-debug.h (target_debug_print_signals): Now takes a
10457 gdb::array_view as parameter. Adjust.
10458 * target.h (target_ops) <pass_signals, program_signals>: Replace
10459 pointer and length parameters with gdb::array_view.
10460 (target_pass_signals, target_program_signals): Likewise.
10461 * target-delegates.c: Regenerate.
10462
3046d67a
PA
104632019-01-24 Pedro Alves <palves@redhat.com>
10464
10465 * common/forward-scope-exit.h
10466 (forward_scope_exit::forward_scope_exit): Pass arguments to
10467 m_bind_function directly, instead of creating a std::bind and
10468 copying that.
10469
353229bf
AH
104702019-01-24 Alan Hayward <alan.hayward@arm.com>
10471
10472 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10473 for static members.
10474 (pass_in_v_vfp_candidate): Likewise.
10475
311dc83a
TT
104762019-01-23 Tom Tromey <tom@tromey.com>
10477 Pedro Alves <palves@redhat.com>
10478
10479 * regcache.c (class regcache_invalidator): Remove.
10480 (regcache::raw_write): Use make_scope_exit.
10481
296bd123
TT
104822019-01-23 Tom Tromey <tom@tromey.com>
10483
10484 * ui-out.h (class ui_out_emit_type): Update comment.
10485
979a0d13
TT
104862019-01-23 Tom Tromey <tom@tromey.com>
10487
10488 * infrun.c (fetch_inferior_event): Update comment.
10489
d238133d
TT
104902019-01-23 Tom Tromey <tom@tromey.com>
10491 Pedro Alves <palves@redhat.com>
10492
10493 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10494 parameter.
10495 (fetch_inferior_event): Use SCOPE_EXIT.
10496
10497
9885e6bb
TT
104982019-01-23 Tom Tromey <tom@tromey.com>
10499 Pedro Alves <palves@redhat.com>
10500
10501 * infrun.c (disable_thread_events): Delete.
10502 (stop_all_threads): Use SCOPE_EXIT.
10503
286526c1
TT
105042019-01-23 Tom Tromey <tom@tromey.com>
10505 Pedro Alves <palves@redhat.com>
10506
10507 * symfile.c: Include forward-scope-exit.h.
10508 (clear_symtab_users_cleanup): Replace forward declaration with
10509 a FORWARD_SCOPE_EXIT.
10510 (syms_from_objfile_1): Use the forward_scope_exit and
10511 gdb::optional instead of cleanup_function.
10512 (reread_symbols): Use the forward_scope_exit instead of
10513 cleanup_function.
10514 (clear_symtab_users_cleanup): Remove function.
10515
1db93f14
TT
105162019-01-23 Tom Tromey <tom@tromey.com>
10517 Pedro Alves <palves@redhat.com>
10518
10519 * linux-nat.c: Include scope-exit.h.
10520 (cleanup_target_stop): Remove.
10521 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10522 SCOPE_EXIT.
10523
2cc83d1e
TT
105242019-01-23 Tom Tromey <tom@tromey.com>
10525 Pedro Alves <palves@redhat.com>
10526
10527 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10528 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10529
694c6bf5
TT
105302019-01-23 Tom Tromey <tom@tromey.com>
10531 Andrew Burgess <andrew.burgess@embecosm.com>
10532 Pedro Alves <palves@redhat.com>
10533
10534 * infrun.c (fetch_inferior_event): Use scope_exit.
10535 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10536 * top.c (execute_command): Use scope_exit.
10537 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10538 * utils.c (do_bpstat_clear_actions_cleanup)
10539 (make_bpstat_clear_actions_cleanup): Remove.
10540
4c41382a
TT
105412019-01-23 Tom Tromey <tom@tromey.com>
10542 Pedro Alves <palves@redhat.com>
10543
10544 * infrun.c: Include "common/scope-exit.h"
10545 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10546 (wait_for_inferior): Use SCOPE_EXIT.
10547 (fetch_inferior_event): Use scope_exit.
10548
89f8fb50
TT
105492019-01-23 Tom Tromey <tom@tromey.com>
10550 Pedro Alves <palves@redhat.com>
10551
10552 * breakpoint.c (create_breakpoint): Remove cleanup.
10553
5419bdae
TT
105542019-01-23 Tom Tromey <tom@tromey.com>
10555 Andrew Burgess <andrew.burgess@embecosm.com>
10556 Pedro Alves <palves@redhat.com>
10557
e587ef42
PA
105582019-01-23 Pedro Alves <palves@redhat.com>
10559
10560 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10561
77f0e74c
PA
105622019-01-23 Pedro Alves <palves@redhat.com>
10563 Andrew Burgess <andrew.burgess@embecosm.com>
10564
10565 * gdbthread.h: Include "common/forward-scope-exit.h".
10566 (scoped_finish_thread_state): Redefine custom class in terms of
10567 forward_scope_exit.
10568
5b9b3e53
PA
105692019-01-23 Pedro Alves <palves@redhat.com>
10570 Andrew Burgess <andrew.burgess@embecosm.com>
10571
10572 * common/forward-scope-exit.h: New file.
10573
54b65c9b
PA
105742019-01-23 Pedro Alves <palves@redhat.com>
10575 Andrew Burgess <andrew.burgess@embecosm.com>
10576 Tom Tromey <tom@tromey.com>
10577
10578 * common/scope-exit.h: New file.
10579
cf08fb29
PA
105802019-01-23 Pedro Alves <palves@redhat.com>
10581
10582 * common/preprocessor.h (ESC): Rename to ...
10583 (ESC_PARENS): ... this.
10584 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10585 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10586
ae73e2e2
TT
105872019-01-23 Tom Tromey <tom@tromey.com>
10588
10589 * language.h (class scoped_switch_to_sym_language_if_auto):
10590 Initialize m_lang in both cases.
10591
6594e122
AH
105922019-01-23 Alan Hayward <alan.hayward@arm.com>
10593
10594 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10595 with XCNEW.
10596
a7c9855d
TT
105972019-01-22 Tom Tromey <tom@tromey.com>
10598
10599 * corelow.c: Do not include sys/file.h.
10600
93cc1d53
TT
106012019-01-22 Tom Tromey <tom@tromey.com>
10602
10603 * tui/tui-wingeneral.h: Include gdb_curses.h.
10604
38561778
TT
106052019-01-22 Tom Tromey <tom@tromey.com>
10606
10607 * source-cache.h (class source_cache) <get_source_lines,
10608 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10609
37b3ab5b
TT
106102019-01-22 Tom Tromey <tom@tromey.com>
10611
10612 * remote-fileio.h (struct remote_target): Declare.
10613
3fabc016
TT
106142019-01-22 Tom Tromey <tom@tromey.com>
10615
10616 * python/py-arch.c: Do not include py-ref.h.
10617 * python/py-bpevent.c: Do not include py-ref.h.
10618 * python/py-cmd.c: Do not include py-ref.h.
10619 * python/py-continueevent.c: Do not include py-ref.h.
10620 * python/py-event.h: Do not include py-ref.h.
10621 * python/py-evtregistry.c: Do not include py-ref.h.
10622 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10623 * python/py-frame.c: Do not include py-ref.h.
10624 * python/py-framefilter.c: Do not include py-ref.h.
10625 * python/py-function.c: Do not include py-ref.h.
10626 * python/py-infevents.c: Do not include py-ref.h.
10627 * python/py-linetable.c: Do not include py-ref.h.
10628 * python/py-objfile.c: Do not include py-ref.h.
10629 * python/py-param.c: Do not include py-ref.h.
10630 * python/py-prettyprint.c: Do not include py-ref.h.
10631 * python/py-progspace.c: Do not include py-ref.h.
10632 * python/py-symbol.c: Do not include py-ref.h.
10633 * python/py-symtab.c: Do not include py-ref.h.
10634 * python/py-type.c: Do not include py-ref.h.
10635 * python/py-unwind.c: Do not include py-ref.h.
10636 * python/py-utils.c: Do not include py-ref.h.
10637 * python/py-value.c: Do not include py-ref.h.
10638 * python/py-varobj.c: Do not include py-ref.h.
10639 * python/py-xmethods.c: Do not include py-ref.h.
10640 * python/python.c: Do not include py-ref.h.
10641 * varobj.c: Do not include py-ref.h.
10642
6b4d7774
TT
106432019-01-22 Tom Tromey <tom@tromey.com>
10644
10645 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10646 keyword for bcache.
10647
7af7e9b5
TT
106482019-01-22 Tom Tromey <tom@tromey.com>
10649
10650 * compile/compile-cplus-types.c: Remove a comment by #include.
10651
951d1049
TT
106522019-01-22 Tom Tromey <tom@tromey.com>
10653
10654 * compile/gcc-c-plugin.h: Include compile-internal.h.
10655
d65d5705
TT
106562019-01-22 Tom Tromey <tom@tromey.com>
10657
10658 * stabsread.c (EXTERN): Do not define.
10659 (symnum, next_symbol_text_func, processing_gcc_compilation)
10660 (within_function, global_sym_chain, global_stabs)
10661 (previous_stab_code, this_object_header_files)
10662 (n_this_object_header_files)
10663 (n_allocated_this_object_header_files): Define.
10664 * stabsread.h (EXTERN): Never define. Use "extern".
10665
b6fb1ee5
PW
106662019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10667
10668 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10669 history_value.
10670
be6d4f74
TT
106712019-01-21 Tom Tromey <tom@tromey.com>
10672
10673 * ui-out.c: Fix includes.
10674 * tui/tui-source.c: Fix includes.
10675 * target.c: Fix includes.
10676 * remote.c: Fix includes.
10677 * regcache.c: Fix includes.
10678 * python/py-block.c: Fix includes.
10679 * printcmd.c: Fix includes.
10680 * or1k-tdep.c: Fix includes.
10681 * mi/mi-main.c: Fix includes.
10682 * m32r-tdep.c: Fix includes.
10683 * csky-tdep.c: Fix includes.
10684 * compile/compile-cplus-types.c: Fix includes.
10685 * cli/cli-interp.c: Fix includes.
10686
73021deb
AH
106872019-01-21 Alan Hayward <alan.hayward@arm.com>
10688
10689 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10690 for padding.
10691
7932255d
TT
106922019-01-16 Tom Tromey <tom@tromey.com>
10693
10694 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10695 earlier.
10696 (struct objfile) <msymbols_range>: Move from top level.
10697 <msymbols>: New method.
10698 (class objfile_msymbols): Remove.
10699 * symtab.c (default_collect_symbol_completion_matches_break_on):
10700 Update.
10701 * symmisc.c (dump_msymbols): Update.
10702 * stabsread.c (scan_file_globals): Update.
10703 * objc-lang.c (info_selectors_command, info_classes_command)
10704 (find_methods): Update.
10705 * minsyms.c (find_solib_trampoline_target): Update.
10706 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10707 * coffread.c (coff_symfile_read): Update.
10708 * ada-lang.c (ada_lookup_simple_minsym)
10709 (ada_collect_symbol_completion_matches): Update.
10710
604b1bfb
TT
107112019-01-16 Tom Tromey <tom@tromey.com>
10712
10713 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10714 type. Remove no-argument constructor.
10715 <iterator::operator++>: Simplify.
10716 <begin>: Update.
10717 <end>: Use minimal_symbol_count.
10718
f252c6d5
TT
107192019-01-16 Tom Tromey <tom@tromey.com>
10720
10721 * objfiles.h (struct objfile) <psymtabs>: New method.
10722 (class objfile_psymtabs): Remove.
10723 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10724 typedef.
10725 <range>: New method.
10726 (require_partial_symbols): Change return type.
10727 * psymtab.c (require_partial_symbols)
10728 (psym_expand_symtabs_matching): Update.
10729 * mdebugread.c (parse_partial_symbols): Update.
10730 * dbxread.c (dbx_end_psymtab): Update.
10731
b669c953
TT
107322019-01-15 Tom Tromey <tom@tromey.com>
10733
10734 * symtab.c (lookup_objfile_from_block)
10735 (lookup_symbol_in_objfile_symtabs)
10736 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10737 (find_line_symtab, info_sources_command)
10738 (default_collect_symbol_completion_matches_break_on)
10739 (make_source_files_completion_list): Update.
10740 * symmisc.c (print_objfile_statistics, dump_objfile)
10741 (maintenance_print_symbols, maintenance_info_symtabs)
10742 (maintenance_check_symtabs, maintenance_info_line_tables):
10743 Update.
10744 * source.c (select_source_symtab)
10745 (forget_cached_source_info_for_objfile): Update.
10746 * objfiles.h (class objfile_compunits): Remove.
10747 (struct objfile) <compunits_range>: New typedef.
10748 (compunits): New method.
10749 * objfiles.c (objfile_relocate1): Update.
10750 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10751 * maint.c (count_symtabs_and_blocks): Update.
10752 * linespec.c (iterate_over_all_matching_symtabs): Update.
10753 * cp-support.c (add_symbol_overload_list_qualified): Update.
10754 * coffread.c (coff_symtab_read): Update.
10755 * ada-lang.c (add_nonlocal_symbols)
10756 (ada_collect_symbol_completion_matches)
10757 (ada_add_global_exceptions): Update.
10758
7e955d83
TT
107592019-01-15 Tom Tromey <tom@tromey.com>
10760
10761 * progspace.h (program_space) <objfiles_safe_range>: New
10762 typedef.
10763 <objfiles_safe>: New method.
10764 * objfiles.h (class all_objfiles_safe): Remove.
10765 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10766 * jit.c (jit_inferior_exit_hook): Update.
10767
2030c079
TT
107682019-01-17 Tom Tromey <tom@tromey.com>
10769
10770 * progspace.h (program_space) <objfiles_range>: New typedef.
10771 <objfiles>: New method.
10772 <objfiles_head>: Rename from objfiles.
10773 (object_files): Update.
10774 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10775 * guile/scm-pretty-print.c
10776 (ppscm_find_pretty_printer_from_objfiles): Update.
10777 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10778 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10779 Update.
10780 * python/py-progspace.c (pspy_get_objfiles): Update.
10781 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10782 Update.
10783 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10784 (objfpy_lookup_objfile_by_build_id): Update.
10785 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10786 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10787 Update.
10788 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10789 (expand_symtab_containing_pc, lookup_objfile_from_block)
10790 (lookup_static_symbol, basic_lookup_transparent_type)
10791 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10792 (find_line_symtab, info_sources_command)
10793 (default_collect_symbol_completion_matches_break_on)
10794 (make_source_files_completion_list, find_main_name): Update.
10795 * symmisc.c (print_symbol_bcache_statistics)
10796 (print_objfile_statistics, maintenance_print_symbols)
10797 (maintenance_print_msymbols, maintenance_print_objfiles)
10798 (maintenance_info_symtabs, maintenance_check_symtabs)
10799 (maintenance_expand_symtabs, maintenance_info_line_tables):
10800 Update.
10801 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10802 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10803 (map_overlay_command, unmap_overlay_command)
10804 (simple_overlay_update, expand_symtabs_matching)
10805 (map_symbol_filenames): Update.
10806 * symfile-debug.c (set_debug_symfile): Update.
10807 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10808 Update.
10809 * source.c (select_source_symtab, forget_cached_source_info):
10810 Update.
10811 * solib.c (solib_read_symbols): Update.
10812 * solib-spu.c (append_ocl_sos): Update.
10813 * psymtab.c (maintenance_print_psymbols)
10814 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10815 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10816 * printcmd.c (info_symbol_command): Update.
10817 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10818 Update.
10819 * objfiles.h (class all_objfiles): Remove.
10820 * objfiles.c (have_partial_symbols, have_full_symbols)
10821 (have_minimal_symbols, qsort_cmp, update_section_map)
10822 (shared_objfile_contains_address_p)
10823 (default_iterate_over_objfiles_in_search_order): Update.
10824 * objc-lang.c (info_selectors_command, info_classes_command)
10825 (find_methods): Update.
10826 * minsyms.c (find_solib_trampoline_target): Update.
10827 * maint.c (maintenance_info_sections)
10828 (maintenance_translate_address, count_symtabs_and_blocks):
10829 Update.
10830 * main.c (captured_main_1): Update.
10831 * linux-thread-db.c (try_thread_db_load_from_pdir)
10832 (has_libpthread): Update.
10833 * linespec.c (iterate_over_all_matching_symtabs)
10834 (search_minsyms_for_name): Update.
10835 * jit.c (jit_find_objf_with_entry_addr): Update.
10836 * hppa-tdep.c (find_unwind_entry)
10837 (hppa_lookup_stub_minimal_symbol): Update.
10838 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10839 Update.
10840 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10841 (elf_gnu_ifunc_resolve_by_got): Update.
10842 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10843 * dwarf-index-write.c (save_gdb_index_command): Update.
10844 * cp-support.c (add_symbol_overload_list_qualified): Update.
10845 * breakpoint.c (create_overlay_event_breakpoint)
10846 (create_longjmp_master_breakpoint)
10847 (create_std_terminate_master_breakpoint)
10848 (create_exception_master_breakpoint): Update.
10849 * blockframe.c (find_pc_partial_function): Update.
10850 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10851 (ada_collect_symbol_completion_matches)
10852 (ada_add_global_exceptions): Update.
10853
776489e0
TT
108542019-01-17 Tom Tromey <tom@tromey.com>
10855
10856 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10857 declare VEC.
10858 (solib_target_parse_libraries): Change return type.
10859 (library_list_start_segment, library_list_start_section)
10860 (library_list_end_library, library_list_start_library); Update.
10861 (solib_target_free_library_list): Remove.
10862 (solib_target_parse_libraries): Remove cleanup. Change return
10863 type.
10864 (solib_target_current_sos): Update.
10865
6471e7d2
TT
108662019-01-17 Tom Tromey <tromey@bapiya>
10867
10868 * valprint.c: Replace "the the" with "the".
10869 * symtab.c: Replace "the the" with "the".
10870 * solib.c: Replace "the the" with "the".
10871 * solib-dsbt.c: Replace "the the" with "the".
10872 * linespec.c: Replace "the the" with "the".
10873 * dwarf2loc.h: Replace "the the" with "the".
10874 * amd64-windows-tdep.c: Replace "the the" with "the".
10875 * aarch64-tdep.c: Replace "the the" with "the".
10876
c24bdb02
KS
108772019-01-16 Keith Seitz <keiths@redhat.com>
10878
10879 PR gdb/23773
10880 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10881 <builder>: Rename to ..
10882 <m_builder>: ... this and make private.
10883 (dwarf2_cu::get_builder): New method. Change all users of
10884 `builder' to use this method.
10885 (dwarf2_start_symtab): Move to ...
10886 (dwarf2_cu::start_symtab): ... here. Update all callers
10887 (setup_type_unit_groups): Move to ...
10888 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10889 callers.
10890 (dwarf2_cu::reset_builder): New method.
10891 (process_full_compunit, process_full_type_unit): Use
10892 dwarf2_cu::reset_builder.
10893 (follow_die_offset): Record the ancestor CU if it is different
10894 from the followed DIE's CU.
10895 (follow_die_sig_1): Likewise.
10896
8d64371b
TT
108972019-01-15 Tom Tromey <tom@tromey.com>
10898
10899 * remote.c (class remote_state) <buf>: Now a char_vector.
10900 <buf_size>: Remove.
10901 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10902 parameter.
10903 (remote_target::getpkt_or_notif_sane_1)
10904 (remote_target::getpkt_sane)
10905 (remote_target::getpkt_or_notif_sane): Likewise.
10906 (class remote_target) <putpkt>: New overload.
10907 (remote_target::read_frame): Change type of "buf_p". Remove
10908 sizeof_p parameter.
10909 (packet_ok): New overload.
10910 (packet_check_result): New overload.
10911 Update all uses.
10912
bb277751
TT
109132019-01-14 Tom Tromey <tom@tromey.com>
10914
10915 * remote-notif.c (handle_notification, remote_notif_ack)
10916 (remote_notif_parse): Make "buf" const.
10917 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10918 const.
10919 (remote_notif_parse, remote_notif_ack, handle_notification):
10920 Likewise.
10921 * remote.c (remote_notif_stop_parse): Make "buf" const.
10922 (remote_target::remote_parse_stop_reply): Make "buf" const.
10923 (remote_notif_stop_ack): Make "buf" const.
10924
05be00a8
TT
109252019-01-14 Tom Tromey <tom@tromey.com>
10926
10927 * remote.c (remote_console_output): Make parameter const.
10928
491adeca
TT
109292019-01-14 Tom Tromey <tom@tromey.com>
10930
10931 * target-debug.h (target_debug_print_signals): Constify.
10932 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10933 * procfs.c (procfs_target::pass_signals): Update.
10934 * linux-nat.c (linux_nat_target::pass_signals): Update.
10935 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10936 * target-delegates.c: Rebuild.
10937 * remote.c (remote_target::program_signals): Update.
10938 (remote_target::pass_signals): Update.
10939 * target.c (target_pass_signals): Constify argument.
10940 (target_program_signals): Likewise.
10941 * target.h (struct target_ops) <pass_signals, program_signals>:
10942 Constify argument.
10943 (target_pass_signals, target_program_signals): Constify argument.
10944
bbd94648
TT
109452019-01-14 Tom Tromey <tom@tromey.com>
10946
10947 PR tui/28819:
10948 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10949
6f072a10
PFC
109502019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10951
10952 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10953 field.
10954 * rs6000-tdep.c: Include reggroups.h.
10955 (IS_V_ALIAS_PSEUDOREG): Define.
10956 (rs6000_register_name): Return names for the "vX" aliases.
10957 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10958 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10959 aliases. Call default_register_reggroup_p for all other
10960 pseudo-registers.
10961 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10962 New functions.
10963 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10964 Handle "vX" aliases.
10965 (v_alias_pseudo_register_collect): New function.
10966 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10967 (rs6000_gdbarch_init): Initialize "vX" aliases as
10968 pseudo-registers. Restore registration of
10969 rs6000_pseudo_register_reggroup_p with
10970 set_tdesc_pseudo_register_reggroup_p.
10971
1a782351
MF
109722019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10973
10974 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10975 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10976 set_gdbarch_num_pseudo_regs.
10977
d73cff18
PW
109782019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10979
10980 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10981 Remove arg prefixname, add do_set and do_show.
10982 Add member functions set_list and show_list.
10983 * cli/cli-style.c (class cli_style_option): Update accordingly.
10984 (style_set_list): Move to file scope.
10985 (style_show_list): Likewise.
10986 (set_style): Call help_list.
10987 (show_style): Call cmd_show_list.
10988 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10989 Update to use the new macro.
10990
60a90376
JB
109912019-10-12 Joel Brobecker <brobecker@adacore.com>
10992
10993 * ada-lang.c (_initialize_ada_language): Expand the help text
10994 for the "catch exception" command.
10995
9d7c67bf
PW
109962019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10997
10998 * symtab.c (matching_obj_sections): Initialize obj,
10999 declare it closer to its usage.
11000
7cf47dc4
TT
110012019-01-10 Tom Tromey <tom@tromey.com>
11002
11003 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11004 (basic_inf_threads_range): Remove.
11005 (inf_threads_range, inf_non_exited_threads_range)
11006 (safe_inf_threads_range): Use next_adapter.
11007
d3cb6808
KS
110082019-01-10 Keith Seitz <keiths@redhat.com>
11009
11010 PR gdb/23712
11011 PR symtab/23010
11012 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11013 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11014
63a20375
KS
110152019-01-10 Keith Seitz <keiths@redhat.com>
11016
11017 PR gdb/23712
11018 PR symtab/23010
11019 * dictionary.c (pending_to_vector): Remove.
11020 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11021 Remove _1 suffix, replacing functions of the same name. Update
11022 all callers.
11023 (dict_create_hashed, dict_create_hashed_expandable)
11024 (dict_create_linear, dict_create_linear_expandable, dict_free)
11025 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11026 Make functions static.
11027
b026f593
KS
110282019-01-10 Keith Seitz <keiths@redhat.com>
11029
11030 PR gdb/23712
11031 PR symtab/23010
11032 * dictionary.h (struct dictionary): Replace declaration with
11033 multidictionary.
11034 (dict_create_hashed, dict_create_hashed_expandable)
11035 (dict_create_linear, dict_create_linear_expandable)
11036 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11037 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11038 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11039 taking multidictionary argument.
11040 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11041 * block.h (struct block) <dict>: Change to multidictionary
11042 and rename `multidict'.
11043 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11044 symmisc.c: Update all dictionary references to multidictionary.
11045
c7748ee9
KS
110462019-01-10 Keith Seitz <keiths@redhat.com>
11047
11048 PR gdb/23712
11049 PR symtab/23010
11050 * dictionary.c: Include unordered_map.
11051 (pending_to_vector): New function.
11052 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11053 Rewrite the non-"_1" functions to take vector instead
11054 of linked list.
11055 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11056 "new" _1 versions of the same name.
11057 (multidictionary): Define.
11058 (std::hash<enum language): New definition.
11059 (collate_pending_symbols_by_language, mdict_create_hashed)
11060 (mdict_create_hashed_expandable, mdict_create_linear)
11061 (mdict_create_linear_expandable, mdict_free)
11062 (find_language_dictionary, create_new_language_dictionary)
11063 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11064 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11065 (mdict_size, mdict_empty): New functions.
11066 * dictionary.h (mdict_iterator): Define.
11067
67aa1f3c
PA
110682019-01-10 Pedro Alves <palves@redhat.com>
11069
11070 * breakpoint.c (read_uploaded_action)
11071 (create_tracepoint_from_upload): Adjust to use
11072 gdb::unique_xmalloc_ptr.
11073 * ctf.c (ctf_write_uploaded_tp):
11074 (SET_ARRAY_FIELD): Use emplace_back.
11075 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11076 * tracefile-tfile.c (tfile_write_uploaded_tp):
11077 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11078 gdb::unique_xmalloc_ptr.
11079 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11080 at_string, cond_string, cmd_strings>: Replace char pointers
11081 with gdb::unique_xmalloc_ptr.
11082
2f667667
PA
110832019-01-10 Pedro Alves <palves@redhat.com>
11084
11085 * solib-target.c (library_list_start_library): Don't xstrdup name.
11086
36cb7237
PA
110872019-01-10 Pedro Alves <palves@redhat.com>
11088
11089 * mdebugread.c (parse_partial_symbols): Use
11090 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11091
da584958
AB
110922019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11093
11094 * linux-fork.c (scoped_switch_fork_info)
11095 <~scoped_switch_fork_info>: Fix incorrect variable name.
11096
1ef8573c
AB
110972019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11098
11099 * linux-fork.c (scoped_switch_fork_info)
11100 <scoped_switch_fork_info>: Make explicit.
11101 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11102
8d7bcccb
TT
111032019-01-10 Tom Tromey <tom@tromey.com>
11104
11105 * objfiles.h (objfile::reset_psymtabs): Update.
11106 * objfiles.c (objfile::objfile): Update.
11107 * psymtab.h (psymtab_storage::obstack): Update.
11108 (psymtab_storage::m_obstack): Use gdb::optional.
11109 (class psymtab_storage): Update comment. Remove objfile
11110 parameter.
11111 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11112
b596a3c7
TT
111132019-01-10 Tom Tromey <tom@tromey.com>
11114
11115 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11116 <free_psymtabs>: Now private.
11117 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11118 (allocate_psymtab): Use new method.
11119
a9342b62
TT
111202019-01-10 Tom Tromey <tom@tromey.com>
11121
11122 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11123 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11124 * mdebugread.c (parse_partial_symbols): Use
11125 allocate_dependencies.
11126 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11127 allocate_dependencies.
11128 (process_psymtab_comp_unit_reader)
11129 (build_type_psymtab_dependencies): Likewise.
11130 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11131
5af70966
TT
111322019-01-10 Tom Tromey <tom@tromey.com>
11133
11134 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11135 PSYMBOL_SET_LANGUAGE.
11136 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11137
5923a04c
TT
111382019-01-10 Tom Tromey <tom@tromey.com>
11139
11140 * psymtab.h (psymtab_storage::obstack): New method.
11141 <m_obstack>: Rename from obstack; now private.
11142 * psymtab.c (psymtab_storage): Update.
11143 * dwarf2read.c (create_addrmap_from_index)
11144 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11145 Update.
11146
6d6a12bf
TT
111472019-01-10 Tom Tromey <tom@tromey.com>
11148
11149 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11150 * objfiles.h (objfile::reset_psymtabs): New method.
11151
d320c2b5
TT
111522019-01-10 Tom Tromey <tom@tromey.com>
11153
11154 * symmisc.c (print_symbol_bcache_statistics): Update.
11155 (print_objfile_statistics): Update.
11156 * symfile.c (reread_symbols): Update.
11157 * psymtab.h (class psymtab_storage): New.
11158 * psymtab.c (psymtab_storage): New constructor.
11159 (~psymtab_storage): New destructor.
11160 (require_partial_symbols): Update.
11161 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11162 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11163 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11164 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11165 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11166 (start_psymtab_common, end_psymtab_common)
11167 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11168 (allocate_psymtab): Update.
11169 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11170 Update.
11171 (dump_psymtab_addrmap, maintenance_print_psymbols)
11172 (maintenance_check_psymtabs): Update.
11173 (class objfile_psymtabs): Move to objfiles.h.
11174 * psympriv.h (discard_psymtab): Now inline.
11175 (psymtab_discarder::psymtab_discarder): Update.
11176 (psymtab_discarder::~psymtab_discarder): Update.
11177 (ALL_OBJFILE_PSYMTABS): Rewrite.
11178 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11179 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11180 Remove fields.
11181 <partial_symtabs>: New field.
11182 (class objfile_psymtabs): Move from psymtab.h. Update.
11183 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11184 psymbol_cache.
11185 (objfile::~objfile): Don't destroy psymbol_cache.
11186 * mdebugread.c (parse_partial_symbols): Update.
11187 * dwarf2read.c (create_addrmap_from_index)
11188 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11189 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11190 (add_partial_subprogram, dwarf2_ranges_read): Update.
11191 * dwarf-index-write.c (write_address_map)
11192 (write_one_signatured_type, recursively_write_psymbols)
11193 (class debug_names, class debug_names, write_psymtabs_to_index):
11194 Update.
11195
1d94a5a3
TT
111962019-01-10 Tom Tromey <tom@tromey.com>
11197
11198 * symtab.h (SYMBOL_SET_NAMES): Update.
11199 (symbol_set_names): Update.
11200 (MSYMBOL_SET_NAMES): Update.
11201 * symtab.c (symbol_set_names): Change argument to be an
11202 objfile_per_bfd_storage.
11203 * psymtab.c (add_psymbol_to_bcache): Update.
11204 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11205
0f14768a
TT
112062019-01-10 Tom Tromey <tom@tromey.com>
11207
11208 * symtab.c (create_demangled_names_hash): Change argument to be an
11209 objfile_per_bfd_storage.
11210 (symbol_set_names): Update.
11211
6eee24ce
TT
112122019-01-10 Tom Tromey <tom@tromey.com>
11213
11214 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11215 init_psymbol_list.
11216 * psymtab.c (init_psymbol_list): Do nothing if already called.
11217 * psympriv.h (init_psymbol_list): Add comment.
11218 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11219 init_psymbol_list.
11220 * dbxread.c (dbx_symfile_read): Unconditionally call
11221 init_psymbol_list.
11222
75aedd27
TT
112232019-01-10 Tom Tromey <tom@tromey.com>
11224
11225 * xcoffread.c (scan_xcoff_symtab): Update.
11226 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11227 "where".
11228 * mdebugread.c (parse_partial_symbols)
11229 (handle_psymbol_enumerators): Update.
11230 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11231 * dbxread.c (read_dbx_symtab): Update.
11232 * psympriv.h (psymbol_placement): New enum.
11233 (add_psymbol_to_list): Update.
11234
939652a5
TT
112352019-01-10 Tom Tromey <tom@tromey.com>
11236
11237 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11238 static_psymbols parameters.
11239 (scan_xcoff_symtab): Update.
11240 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11241 static_psymbols parameters.
11242 * psympriv.h (start_psymtab_common): Update.
11243 * mdebugread.c (parse_partial_symbols): Update.
11244 * dwarf2read.c (create_partial_symtab): Update.
11245 * dbxread.c (read_dbx_symtab): Update.
11246 (start_psymtab): Remove global_psymbols and static_psymbols
11247 parameters.
11248
baa62830
TT
112492019-01-10 Tom Tromey <tom@tromey.com>
11250
11251 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11252 * psymtab.c (allocate_psymtab): Add comment.
11253 * psympriv.h (allocate_psymtab): Add comment.
11254 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11255 initializations.
11256 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11257
0e8f53ba
TT
112582019-01-10 Tom Tromey <tom@tromey.com>
11259
11260 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11261 Don't declare.
11262 * mipsread.c: Include mdebugread.h.
11263 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11264 Declare.
11265 * elfread.c: Include mdebugread.h.
11266
b22a7c6a
TT
112672019-01-09 Tom Tromey <tom@tromey.com>
11268
11269 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11270 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11271 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11272 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11273 (psym_lookup_symbol, psym_find_last_source_symtab)
11274 (psym_forget_cached_source_info, psym_print_stats)
11275 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11276 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11277 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11278 (psym_find_compunit_symtab_by_address)
11279 (maintenance_print_psymbols, maintenance_info_psymtabs)
11280 (maintenance_check_psymtabs): Use ranged for.
11281 * psymtab.h (class objfile_psymtabs): New.
11282 (require_partial_symbols): Return objfile_psymtabs.
11283 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11284
3b9d3ac2
TT
112852019-01-09 Tom Tromey <tom@tromey.com>
11286
11287 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11288 (find_pc_mapped_section, list_overlays_command)
11289 (map_overlay_command, unmap_overlay_command)
11290 (simple_overlay_update): Use all_objfiles.
11291 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11292 * printcmd.c (info_symbol_command): Use all_objfiles.
11293 * objfiles.h (ALL_OBJSECTIONS): Remove.
11294 * maint.c (maintenance_translate_address): Use all_objfiles.
11295 * gcore.c (gcore_create_callback): Use all_objfiles.
11296 (objfile_find_memory_regions): Likewise.
11297
8b31193a
TT
112982019-01-09 Tom Tromey <tom@tromey.com>
11299
11300 * symtab.c (find_line_symtab, info_sources_command)
11301 (make_source_files_completion_list): Use objfile_compunits.
11302 * source.c (select_source_symtab): Use objfile_compunits.
11303 * objfiles.h (struct objfile): Update comment.
11304 (ALL_OBJFILES): Remove.
11305 (ALL_FILETABS): Remove.
11306 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11307 objfile_compunits.
11308
d5da8b3c
TT
113092019-01-09 Tom Tromey <tom@tromey.com>
11310
11311 * symmisc.c (print_objfile_statistics, dump_objfile)
11312 (maintenance_print_symbols): Use compunit_filetabs.
11313 * source.c (forget_cached_source_info_for_objfile): Use
11314 compunit_filetabs.
11315 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11316 (ALL_FILETABS): Use compunit_filetabs.
11317 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11318 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11319
5accd1a0
TT
113202019-01-09 Tom Tromey <tom@tromey.com>
11321
11322 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11323 (compunit_filetabs): New.
11324 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11325 compunit_filetabs.
11326 (info_sources_command, make_source_files_completion_list): Remove
11327 declaration.
11328 * symmisc.c (print_objfile_statistics, dump_objfile)
11329 (maintenance_print_symbols): Remove declaration.
11330 (maintenance_info_symtabs): Use compunit_filetabs.
11331 (maintenance_info_line_tables): Likewise.
11332 * source.c (select_source_symtab): Change local variable name.
11333 (forget_cached_source_info_for_objfile): Remove declaration.
11334 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11335 * objfiles.c (objfile_relocate1): Remove declaration.
11336 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11337 declaration.
11338 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11339 * coffread.c (coff_symtab_read): Remove declaration.
11340 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11341 compunit_filetabs.
11342
d8aeb77f
TT
113432019-01-09 Tom Tromey <tom@tromey.com>
11344
11345 * symtab.c (lookup_objfile_from_block)
11346 (find_pc_sect_compunit_symtab, search_symbols)
11347 (default_collect_symbol_completion_matches_break_on): Use
11348 objfile_compunits.
11349 * objfiles.h (ALL_COMPUNITS): Remove.
11350 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11351 * cp-support.c (add_symbol_overload_list_qualified): Use
11352 objfile_compunits.
11353 * ada-lang.c (ada_collect_symbol_completion_matches)
11354 (ada_add_global_exceptions): Use objfile_compunits.
11355
592553c4
TT
113562019-01-09 Tom Tromey <tom@tromey.com>
11357
11358 * source.c (select_source_symtab)
11359 (forget_cached_source_info_for_objfile): Remove declaration.
11360 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11361 declaration.
11362 * maint.c (count_symtabs_and_blocks): Remove declaration.
11363 * cp-support.c (add_symbol_overload_list_qualified): Remove
11364 declaration.
11365 * coffread.c (coff_symtab_read): Remove declaration.
11366 * symtab.c (lookup_symbol_in_objfile_symtabs)
11367 (basic_lookup_transparent_type_1): Use objfile_compunits.
11368 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11369 (info_sources_command, search_symbols)
11370 (default_collect_symbol_completion_matches_break_on)
11371 (make_source_files_completion_list): Remove declaration.
11372 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11373 (ada_collect_symbol_completion_matches)
11374 (ada_add_global_exceptions): Remove declaration.
11375 * linespec.c (iterate_over_all_matching_symtabs): Use
11376 objfile_compunits.
11377 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11378 (class objfile_compunits): New.
11379 (ALL_COMPUNITS): Use objfile_compunits.
11380 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11381 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11382 objfile_compunits.
11383 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11384
5325b9bf
TT
113852019-01-09 Tom Tromey <tom@tromey.com>
11386
11387 * symtab.c (search_symbols)
11388 (default_collect_symbol_completion_matches_break_on): Use
11389 objfile_msymbols.
11390 * ada-lang.c (ada_lookup_simple_minsym)
11391 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11392 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11393 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11394 objfile_msymbols.
11395 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11396 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11397 * objc-lang.c (find_methods): Use objfile_msymbols.
11398 (info_selectors_command, info_classes_command): Likewise.
11399 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11400 * objfiles.h (class objfile_msymbols): New.
11401 (ALL_OBJFILE_MSYMBOLS): Remove.
11402 (ALL_MSYMBOLS): Remove.
11403
cac85af2
TT
114042019-01-09 Tom Tromey <tom@tromey.com>
11405
11406 * common/next-iterator.h (next_adapter): Add Iterator template
11407 parameter.
11408 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11409 (class all_objfiles_safe): New.
11410 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11411 * objfiles.c (put_objfile_before): Update comment.
11412 (add_separate_debug_objfile): Likewise.
11413 (free_all_objfiles): Use all_objfiles_safe.
11414 (objfile_purge_solibs): Likewise.
11415
aed57c53
TT
114162019-01-09 Tom Tromey <tom@tromey.com>
11417
11418 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11419 (expand_symtab_containing_pc, lookup_static_symbol)
11420 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11421 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11422 all_objfiles.
11423 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11424 * breakpoint.c (create_overlay_event_breakpoint)
11425 (create_longjmp_master_breakpoint)
11426 (create_std_terminate_master_breakpoint)
11427 (create_exception_master_breakpoint): Use all_objfiles.
11428 * linux-thread-db.c (try_thread_db_load_from_pdir)
11429 (has_libpthread): Use all_objfiles.
11430 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11431 * linespec.c (iterate_over_all_matching_symtabs)
11432 (search_minsyms_for_name): Use all_objfiles.
11433 * maint.c (maintenance_info_sections): Use all_objfiles.
11434 * main.c (captured_main_1): Use all_objfiles.
11435 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11436 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11437 * guile/scm-pretty-print.c
11438 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11439 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11440 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11441 (maintenance_print_msymbols): Use all_objfiles.
11442 * source.c (select_source_symtab): Use all_objfiles.
11443 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11444 * symfile.c (remove_symbol_file_command)
11445 (expand_symtabs_matching, map_symbol_filenames): Use
11446 all_objfiles.
11447 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11448 all_objfiles.
11449 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11450 * objc-lang.c (find_methods): Use all_objfiles.
11451 * objfiles.c (have_partial_symbols, have_full_symbols)
11452 (have_minimal_symbols, qsort_cmp)
11453 (default_iterate_over_objfiles_in_search_order): Use
11454 all_objfiles.
11455 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11456 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11457 (maintenance_check_psymtabs): Use all_objfiles.
11458 (ALL_PSYMTABS): Remove.
11459 * compile/compile-object-run.c (do_module_cleanup): Use
11460 all_objfiles.
11461 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11462 * cp-support.c (add_symbol_overload_list_qualified): Use
11463 all_objfiles.
11464 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11465 Use all_objfiles.
11466 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11467 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11468 all_objfiles.
11469 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11470 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11471 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11472 Uses all_objfiles.
11473 * solib.c (solib_read_symbols): Use all_objfiles
11474
99d89cde
TT
114752019-01-09 Tom Tromey <tom@tromey.com>
11476
11477 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11478 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11479 all_objfiles.
11480 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11481 * symmisc.c (print_symbol_bcache_statistics)
11482 (print_objfile_statistics, maintenance_print_objfiles)
11483 (maintenance_info_symtabs, maintenance_check_symtabs)
11484 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11485 all_objfiles.
11486 * source.c (forget_cached_source_info): Use all_objfiles.
11487 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11488 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11489 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11490 * objfiles.c (update_section_map): Use all_objfiles.
11491 (shared_objfile_contains_address_p): Likewise.
11492 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11493 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11494
21708325
TT
114952019-01-09 Tom Tromey <tom@tromey.com>
11496
11497 * common/next-iterator.h: New file.
11498 * objfiles.h (class all_objfiles): New.
11499 (struct objfile_iterator): New.
11500
669e09f6
PW
115012019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11502
11503 * NEWS: Move the description of the changed "frame", "select-frame",
11504 and "info frame" commands to the Changed commands section.
11505
041be526
SM
115062019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11507
11508 * gdbtypes.c (check_stub_method_group): Remove handling of old
11509 mangling schemes.
11510 * linespec.c (find_methods): Likewise.
11511 * stabsread.c (read_member_functions): Likewise.
11512 * valops.c (search_struct_method): Likewise.
11513 (value_struct_elt_for_reference): Likewise.
11514 * NEWS: Mention this change.
11515
0e2a2133
AB
115162019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11517
11518 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11519 print_source_lines.
11520 * source.c (print_source_lines_base): Update line number check.
11521 (print_source_lines): New function.
11522 (source_lines_range::source_lines_range): New function.
11523 * source.h (class source_lines_range): New class.
11524 (print_source_lines): New declaration.
11525
1055a3b4
PW
115262019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11527
11528 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11529
cfeadda5
TT
115302019-01-08 Tom Tromey <tom@tromey.com>
11531 Simon Marchi <simon.marchi@ericsson.com>
11532
11533 PR gdb/24060
11534 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11535 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11536 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11537 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11538 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11539 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11540
583068ca
AB
115412019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11542
11543 * source.c (select_source_symtab): Move header comment to
11544 declaration in source.h.
11545 (forget_cached_source_info_for_objfile): Likewise.
11546 (forget_cached_source_info): Likewise.
11547 (identify_source_line): Likewise.
11548 * source.h (identify_source_line): Move declaration from symtab.h
11549 and add comment from source.c
11550 (print_source_lines): Likewise.
11551 (forget_cached_source_info_for_objfile): Likewise.
11552 (forget_cached_source_info): Likewise.
11553 (select_source_symtab): Likewise.
11554 (enum print_source_lines_flag): Move definition from symtab.h.
11555 * symtab.h (identify_source_line): Move declaration to source.h.
11556 (print_source_lines): Likewise.
11557 (forget_cached_source_info_for_objfile): Likewise.
11558 (forget_cached_source_info): Likewise.
11559 (select_source_symtab): Likewise.
11560 (enum print_source_lines_flag): Move definition to source.h.
11561 * tui/tui-hooks.c: Add 'source.h' include.
11562
ec98a4ad
AB
115632019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11564
11565 * source.c (print_source_lines_base): Handle requests to print
11566 reverse line number sequences, and guard against empty lines
11567 string.
11568
62ea19c1
AB
115692019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11570
11571 * source.c (print_source_lines_base): Fix skip of '\r' if next
11572 character is '\n'.
11573
9d30e1fd
TT
115742019-01-06 Tom Tromey <tom@tromey.com>
11575
11576 * c-exp.y (struct c_parse_state) <macro_original_text,
11577 expansion_obstack>: New member.
11578 (macro_original_text, expansion_obstack): Remove globals.
11579 (scan_macro_expansion, scanning_macro_expansion)
11580 (finished_macro_expansion): Update.
11581 (scan_macro_cleanup): Remove.
11582 (yylex, c_parse): Update.
11583
c65bac38
TT
115842019-01-06 Tom Tromey <tom@tromey.com>
11585
11586 * c-exp.y (struct c_parse_state) <strings>: New member.
11587 (operator_stoken): Update.
11588
02e12e38
TT
115892019-01-06 Tom Tromey <tom@tromey.com>
11590
11591 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11592 (union type_stack_elt) <typelist_val>: Now a pointer to
11593 std::vector.
11594 (type_stack_cleanup): Don't declare.
11595 (push_typelist): Update.
11596 * parse.c (pop_typelist): Return a std::vector.
11597 (push_typelist): Take a std::vector.
11598 (follow_types): Update. Do not free args.
11599 (type_stack_cleanup): Remove.
11600 * c-exp.y (struct c_parse_state): New.
11601 (cpstate): New global.
11602 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11603 (nonempty_typelist): Update.
11604 (func_mod): Create a new vector.
11605 (c_parse): Create a c_parse_state.
11606 (check_parameter_typelist): Do not delete params.
11607 (function_method): Update. Do not delete type_list.
11608
f097f5ad
TT
116092019-01-06 Tom Tromey <tom@tromey.com>
11610
11611 PR gdb/28155:
11612 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11613 check_typedef.
11614 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11615 (print_return_value): Likewise.
11616
d2adf9f1
TT
116172019-01-05 Tom Tromey <tom@tromey.com>
11618
11619 * contrib/cleanup_check.py: Remove.
11620 * contrib/gcc-with-excheck: Remove.
11621 * contrib/exsummary.py: Remove.
11622 * contrib/excheck.py: Remove.
11623
2eab46b1
JB
116242019-01-05 Joel Brobecker <brobecker@adacore.com>
11625
11626 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11627 NULL. Initialize tpprev to NULL instead of assigning it
11628 to NULL on the next statement.
11629 * windows-nat.c (windows_delete_thread): Remove check for
11630 main_thread_id before printing thread exit notifications.
11631 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11632 Remove thread ID check against main_thread_id.
11633 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11634 windows_delete_thread.
11635 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11636
48c5e7e2
TT
116372019-01-04 Tom Tromey <tom@tromey.com>
11638
11639 * compile/compile.c (_initialize_compile): Use upper case for
11640 metasyntactic variables.
11641 * symmisc.c (_initialize_symmisc): Use upper case for
11642 metasyntactic variables.
11643 * psymtab.c (_initialize_psymtab): Use upper case for
11644 metasyntactic variables.
11645 * demangle.c (demangle_command): Use upper case for metasyntactic
11646 variables.
11647 (_initialize_demangler): Likewise.
11648 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11649 variables.
11650
986041cd
TT
116512019-01-03 Tom Tromey <tom@tromey.com>
11652
11653 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11654
7c711119
TT
116552019-01-03 Tom Tromey <tom@tromey.com>
11656
11657 * python/py-symtab.c (salpy_str): Update.
11658 (struct salpy_sal_object) <symtab>: Now a PyObject.
11659 (salpy_dealloc): Update.
11660 (del_objfile_sal): Use gdbpy_ref.
11661
1b20edf0
TT
116622019-01-03 Tom Tromey <tom@tromey.com>
11663
11664 * python/py-type.c (convert_field): Use new_reference. Return
11665 gdbpy_ref.
11666 (make_fielditem): Return gdbpy_ref.
11667 (typy_fields): Update.
11668 (typy_getitem): Update.
11669 (field_name): Return gdbpy_ref. Use new_reference.
11670 (typy_iterator_iternext): Update.
11671
ea41325b
TT
116722019-01-03 Tom Tromey <tom@tromey.com>
11673
11674 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11675
2a3c71d6
TT
116762019-01-03 Tom Tromey <tom@tromey.com>
11677
11678 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11679 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11680 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11681 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11682 (pspy_set_type_printers): Likewise.
11683 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11684 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11685 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11686 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11687 (objfpy_set_type_printers): Likewise.
11688
5c329e6a
TT
116892019-01-03 Tom Tromey <tom@tromey.com>
11690
11691 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11692 (gdbpy_print_stack): Use gdbpy_err_fetch.
11693 * python/python-internal.h (class gdbpy_err_fetch): New class.
11694 (class gdbpy_enter) <m_error_type, m_error_value,
11695 m_error_traceback>: Remove.
11696 <m_error>: New member.
11697 (gdbpy_exception_to_string): Don't declare.
11698 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11699 * python/py-value.c (convert_value_from_python): Use
11700 gdbpy_err_fetch.
11701 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11702 gdbpy_exception_to_string.
11703 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11704 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11705 gdbpy_err_fetch.
11706
169bb27b
AB
117072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11708
11709 * linux-nat.c (delete_lwp_cleanup): Delete.
11710 (struct lwp_deleter): New struct.
11711 (lwp_info_up): New typedef.
11712 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11713 lwp_info_up.
11714
a07c8880
AB
117152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11716
11717 * linux-fork.c (class scoped_switch_fork_info): New class.
11718 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11719
26089c49
AB
117202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11721
11722 * valops.c (find_overload_match): Remove use of null_cleanup, and
11723 calls to do_cleanups.
11724
06d3e5b0
AB
117252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11726
11727 * compile/compile-cplus-types.c
11728 (compile_cplus_instance::decl_name): Handle changes to
11729 cp_func_name.
11730 * cp-support.c (cp_func_name): Update header comment, update
11731 return type.
11732 * cp-support.h (cp_func_name): Update return type in declaration.
11733 * valops.c (find_overload_match): Move temp_func local to top
11734 level of function and change its type. Use temp_func to hold and
11735 delete temporary string obtained from cp_func_name.
11736
66644cd3
AB
117372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11738
11739 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11740 gdb::char_vector, remove cleanup, and update uses of `msg`.
11741
592d8c0a
JW
117422019-01-03 Jim Wilson <jimw@sifive.com>
11743
11744 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11745
c55d06ec
TT
117462019-01-02 Tom Tromey <tom@tromey.com>
11747
11748 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11749 (tdesc_parse_xml): Remove cleanups.
11750 * target-descriptions.h (make_cleanup_free_target_description):
11751 Don't declare.
11752 (target_desc_deleter): New struct.
11753 (target_desc_up): New typedef.
11754 * target-descriptions.c (target_desc_deleter::operator()): Rename
11755 from free_target_description.
11756 (make_cleanup_free_target_description): Remove.
11757
3a6ae42d
TT
117582019-01-02 Tom Tromey <tom@tromey.com>
11759
11760 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11761 constructor, destructor.
11762 (linespec_parser): Remove typedef.
11763 (~linespec_parser): Rename from linespec_parser_delete.
11764 (linespec_lex_to_end, linespec_complete_label)
11765 (linespec_complete): Update.
11766 (decode_line_full): Remove cleanups.
11767 (decode_line_1): Update.
11768
61fd3e73
TT
117692019-01-02 Tom Tromey <tom@tromey.com>
11770
11771 * python/python-internal.h (inferior_to_inferior_object): Change
11772 return type.
11773 * python/py-exitedevent.c (create_exited_event_object): Update.
11774 * python/py-inferior.c (inferior_to_inferior_object): Return
11775 gdbpy_ref.
11776 (python_new_inferior, python_inferior_deleted)
11777 (thread_to_thread_object, delete_thread_object)
11778 (build_inferior_list, gdbpy_selected_inferior): Update.
11779 * python/py-infthread.c (create_thread_object): Update. Also fail
11780 if inferior_to_inferior_object fails.
11781
d20172fc
SM
117822019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11783
11784 * inferior.h (class inferior) <displaced_step_state>: New field.
11785 * infrun.h (struct displaced_step_state): Move here from
11786 infrun.c. Initialize fields, add constructor.
11787 <inf>: Remove field.
11788 <reset>: New method.
11789 * infrun.c (struct displaced_step_inferior_state): Move to
11790 infrun.h.
11791 (displaced_step_inferior_states): Remove.
11792 (get_displaced_stepping_state): Adust.
11793 (displaced_step_in_progress_any_inferior): Adjust.
11794 (displaced_step_in_progress_thread): Adjust.
11795 (displaced_step_in_progress): Adjust.
11796 (add_displaced_stepping_state): Remove.
11797 (get_displaced_step_closure_by_addr): Adjust.
11798 (remove_displaced_stepping_state): Remove.
11799 (infrun_inferior_exit): Call displaced_step_state.reset.
11800 (use_displaced_stepping): Don't check for NULL.
11801 (displaced_step_prepare_throw): Call
11802 get_displaced_stepping_state.
11803 (displaced_step_fixup): Don't check for NULL.
11804 (prepare_for_detach): Don't check for NULL.
11805
e3319240
PW
118062019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11807
11808 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11809 in case of call that did not complete.
11810
5d36dfb9
AU
118112019-01-02 Andrey Utkin <autkin@undo.io>
11812
11813 * symfile.c (find_separate_debug_file): Fix search of debug files for
11814 remote debuggee.
11815
8833fbf0
TT
118162019-01-02 Tom Tromey <tom@tromey.com>
11817
11818 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11819 indentation.
11820 * python/py-frame.c (frapy_older): Remove cast.
11821 (frapy_newer): Likewise.
11822 * python/py-breakpoint.c (local_setattro): Remove cast.
11823 * python/py-arch.c (archpy_name): Remove local variable.
11824 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11825
4ada3dfd
JB
118262019-01-02 Joel Brobecker <brobecker@adacore.com>
11827
11828 * unittests/basic_string_view/element_access/char/empty.cc:
11829 Fix year range in copyright header.
11830
113b7b81
AB
118312019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11832
11833 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11834 Delete.
11835 <operator==>: Update with for removed field.
11836 <hash>: Likewise.
11837 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11838 <isa_features>: ...this.
11839 <abi_features>: New field.
11840 (riscv_isa_flen): Update comment.
11841 (riscv_abi_xlen): New declaration.
11842 (riscv_abi_flen): New declaration.
11843 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11844 isa_features.
11845 (riscv_abi_xlen): New function.
11846 (riscv_isa_flen): Update to get answer from isa_features.
11847 (riscv_abi_flen): New function.
11848 (riscv_has_fp_abi): Update to get answer from abi_features.
11849 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11850 xlen and flen.
11851 (riscv_call_info) <xlen, flen>: Update comment.
11852 (riscv_call_arg_struct): Remove invalid assertions
11853 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11854 is removed.
11855 (riscv_gdbarch_init): Gather isa features and abi features
11856 separately, ensure both match on the gdbarch when reusing an old
11857 gdbarch. Relax an error check to allow 32-bit abi float to run on
11858 a target with 64-bit float hardware.
11859
b18ca514
PW
118602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11861
11862 * source.c (search_command_helper): Stop reverse search
11863 when line 1 has been searched.
11864
ec70d8db
PW
118652019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11866
11867 * record-full.c (record_full_base_target::close): Rewrite
11868 record_full_core_buf_list free logic.
11869
5b38f9c1
PW
118702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11871
11872 * break-catch-syscall.c (print_one_catch_syscall): xfree
11873 the last text.
11874
66d91b39
JB
118752019-01-01 Joel Brobecker <brobecker@adacore.com>
11876
11877 * top.c (print_gdb_version): Update Copyright year in version
11878 message.
11879
42a4f53d
JB
118802019-01-01 Joel Brobecker <brobecker@adacore.com>
11881
11882 Update copyright year range in all GDB files.
11883
7e955d83 118842019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11885
5bbd631d 11886 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11887
5bbd631d 11888For older changes see ChangeLog-2018.
c906108c
SS
11889\f
11890Local Variables:
11891mode: change-log
11892left-margin: 8
11893fill-column: 74
11894version-control: never
57da7796 11895coding: utf-8
c906108c 11896End:
5bbd631d 11897