Some i18n fixes for the TUI
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
605dc2c2
TT
12019-08-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-source.h (struct tui_source_window): Update.
4 * tui/tui-regs.c (tui_show_registers): Update.
5 * tui/tui-disasm.h (struct tui_disasm_window): Update.
6 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
7 (NO_REGS_STRING): Remove defines.
8
aedbe3bb
CM
92019-08-20 Conrad Meyer <cem@FreeBSD.org>
10
11 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
12 unnecessary thread walk if remote doesn't support the packet.
13
7ce8f214
TT
142019-08-19 Tom Tromey <tromey@adacore.com>
15
16 * python/py-value.c (value_has_field): Fix indentation.
17
f21c2bd7
TT
182019-08-19 Tom Tromey <tromey@adacore.com>
19
20 * printcmd.c (do_one_display, info_display_command): Update.
21 * block.h (contained_in): Return bool. Add allow_nested
22 parameter.
23 * block.c (contained_in): Return bool. Add allow_nested
24 parameter.
25
d806ea2d
TT
262019-08-19 Tom Tromey <tom@tromey.com>
27
28 * configure: Rebuild.
29 * configure.ac: Disallow the combination of -static-libstdc++ and
30 source highlight.
31 * source-cache.c (get_language_name): Handle rust.
32 (source_cache::get_source_lines): Ignore highlighting exceptions.
33
398fdd60
TT
342019-08-16 Tom Tromey <tom@tromey.com>
35
36 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
37 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
38 (struct tui_source_window_base) <make_visible, refresh_window,
39 resize>: Remove methods.
40 <execution_info>: Remove field.
41 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
42 (tui_show_source_line, tui_source_window_base)
43 (~tui_source_window_base): Update.
44 (tui_source_window_base::resize)
45 (tui_source_window_base::make_visible)
46 (tui_source_window_base::refresh_window): Remove.
47 (tui_source_window_base::update_exec_info): Update.
48 * tui/tui-source.c (tui_source_window::set_contents): Update.
49 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
50
e699d331
TT
512019-08-16 Tom Tromey <tom@tromey.com>
52
53 * tui/tui-hooks.c (tui_remove_hooks): Don't set
54 deprecated_query_hook.
55
bb01dbfc
TT
562019-08-16 Tom Tromey <tom@tromey.com>
57
58 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
59 (tui_update_source_windows_with_line): Update.
60 * tui/tui-source.h (struct tui_source_window)
61 <show_symtab_source>: Declare.
62 (tui_show_symtab_source): Don't declare.
63 * tui/tui-source.c (tui_show_symtab_source): Rename from
64 tui_show_symtab_source.
65
81c82c4b
TT
662019-08-16 Tom Tromey <tom@tromey.com>
67
68 * tui/tui-winsource.h (struct tui_source_window_base)
69 <set_contents>: Declare.
70 * tui/tui-winsource.c
71 (tui_source_window_base::update_source_window_as_is): Update.
72 * tui/tui-source.h (struct tui_source_window) <set_contents>:
73 Declare.
74 (tui_set_source_content): Don't declare.
75 * tui/tui-source.c (tui_source_window::set_contents): Rename from
76 tui_set_source_content.
77 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
78 Declare.
79 (tui_set_disassem_content): Don't declare.
80 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
81 tui_set_disassem_content.
82
2ddaf614
TT
832019-08-16 Tom Tromey <tom@tromey.com>
84
85 * tui/tui-winsource.h (struct tui_source_window_base)
86 <update_breakpoint_info>: Declare.
87 (tui_update_breakpoint_info): Don't declare.
88 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
89 (tui_update_all_breakpoint_info): Update.
90 (tui_source_window_base::update_breakpoint_info): Rename from
91 tui_update_breakpoint_info.
92 (tui_source_window_base::update_exec_info): Update.
93
017f9828
TT
942019-08-16 Tom Tromey <tom@tromey.com>
95
96 * tui/tui-winsource.h (struct tui_source_window_base)
97 <update_source_window>: Declare.
98 (tui_update_source_window): Don't declare.
99 * tui/tui-winsource.c
100 (tui_source_window_base::update_source_window): Rename from
101 tui_update_source_window.
102 (tui_source_window_base::rerender): Update.
103 * tui/tui-source.c (tui_source_window::maybe_update): Update.
104 * tui/tui-disasm.c (tui_show_disassem)
105 (tui_show_disassem_and_update_source)
106 (tui_disasm_window::maybe_update): Update.
107
ed8358e9
TT
1082019-08-16 Tom Tromey <tom@tromey.com>
109
110 * tui/tui-winsource.h (struct tui_source_window_base)
111 <update_source_window_as_is>: Declare.
112 (tui_update_source_window_as_is): Don't declare.
113 * tui/tui-winsource.c (tui_update_source_window): Update
114 (tui_source_window_base::update_source_window_as_is): Rename from
115 tui_update_source_window_as_is.
116 (tui_source_window_base::refill): Update.
117 * tui/tui-source.c (tui_show_symtab_source): Update.
118 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
119 Update.
120
20149b6b
TT
1212019-08-16 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-winsource.h (tui_update_source_window)
124 (tui_update_source_window_as_is): Remove "noerror" parameter.
125 * tui/tui-winsource.c (tui_update_source_window)
126 (tui_update_source_window_as_is): Remove "noerror" parameter.
127 (tui_update_source_windows_with_addr)
128 (tui_update_source_windows_with_line)
129 (tui_source_window_base::rerender)
130 (tui_source_window_base::refill): Update.
131 * tui/tui-source.h (tui_set_source_content)
132 (tui_show_symtab_source): Remove "noerror" parameter.
133 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
134 parameter.
135 (tui_show_symtab_source): Likewise.
136 (tui_source_window::maybe_update): Update.
137 * tui/tui-disasm.c (tui_show_disassem)
138 (tui_show_disassem_and_update_source)
139 (tui_disasm_window::do_scroll_vertical)
140 (tui_disasm_window::maybe_update): Update.
141
2d83e710
TT
1422019-08-16 Tom Tromey <tom@tromey.com>
143
144 * tui/tui.c (tui_is_window_visible): Update.
145 * tui/tui-wingeneral.c (tui_make_window)
146 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
147 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
148 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
149 (tui_set_win_height_command, parse_scrolling_args): Update.
150 * tui/tui-source.c (tui_source_window::style_changed): Update.
151 * tui/tui-regs.c (tui_show_registers)
152 (tui_data_window::first_data_item_displayed)
153 (tui_data_window::delete_data_content_windows)
154 (tui_check_register_values, tui_reg_command): Update.
155 * tui/tui-disasm.c (tui_show_disassem): Update.
156 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
157 method.
158 <is_visible>: Remove field.
159 * tui/tui-data.c (tui_next_win, tui_prev_win)
160 (tui_delete_invisible_windows): Update.
161
d4ab829a
TT
1622019-08-16 Tom Tromey <tom@tromey.com>
163
164 * tui/tui-winsource.h (struct tui_source_window_base)
165 <m_has_locator>: Remove.
166 * tui/tui-layout.c (show_source_disasm_command, show_data)
167 (show_source_or_disasm_and_command): Update.
168
aa7ca1bb
AH
1692019-08-16 Alan Hayward <alan.hayward@arm.com>
170
171 * NEWS (Other MI changes): New subsection.
172 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
173 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
174 * arch-utils.c (default_get_pc_address_flags): New function.
175 * arch-utils.h (default_get_pc_address_flags): New declaration.
176 * gdbarch.sh: Add get_pc_address_flags.
177 * gdbarch.c: Regenerate.
178 * gdbarch.h: Likewise.
179 * stack.c (print_pc): New function.
180 (print_frame_info) (print_frame): Call print_pc.
181
6eac171f
TV
1822019-08-16 Tom de Vries <tdevries@suse.de>
183
184 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
185 print_objfile_section_info.
186
3df505f6
TT
1872019-08-15 Tom Tromey <tom@tromey.com>
188
189 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
190 calling update_cmdwin_start_line.
191 * tui/tui-winsource.h (struct tui_source_window_base)
192 <do_make_visible_with_new_height, set_new_height>: Don't declare.
193 <rerender>: Declare.
194 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
195 Call rerender.
196 (tui_source_window_base::set_new_height): Remove.
197 (tui_source_window_base::rerender): Rename from
198 do_make_visible_with_new_height.
199 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
200 resize method.
201 (tui_win_info::make_invisible_and_set_new_height)
202 (tui_win_info::make_visible_with_new_height): Remove.
203 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
204 Declare.
205 * tui/tui-stack.c (tui_locator_window::rerender): New method.
206 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
207 do_make_visible_with_new_height>: Don't declare.
208 <rerender>: Declare.
209 * tui/tui-regs.c (tui_data_window::rerender): Rename from
210 set_new_height.
211 (tui_data_window::do_make_visible_with_new_height): Remove.
212 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
213 call tui_show_locator_content.
214 (tui_gen_win_info::resize): Call rerender.
215 (show_source_or_disasm_and_command): Don't call
216 tui_show_locator_content.
217 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
218 method.
219 (struct tui_win_info) <rerender>: Declare.
220 <set_new_height, make_invisible_and_set_new_height,
221 make_visible_with_new_height>: Don't declare.
222 * tui/tui-data.c (tui_win_list::rerender): New method.
223 * tui/tui-command.h (struct tui_cmd_window)
224 <do_make_visible_with_new_height>: Don't declare.
225 * tui/tui-command.c
226 (tui_cmd_window::do_make_visible_with_new_height): Remove.
227
272560b5
TT
2282019-08-15 Tom Tromey <tromey@adacore.com>
229
230 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
231 * ada-lang.c (ada_enum_name): Likewise.
232
08235187
CB
2332019-08-15 Christian Biesinger <cbiesinger@google.com>
234
235 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
236 leading underscore.
237 (GdbOutputErrorFile): Likewise.
238 (global scope): Adjust constructor calls to GdbOutput{,Error}File
239 accordingly.
240 (execute_unwinders): Rename to have a leading underscore.
241 (auto_load_packages): Likewise.
242 (global scope): Adjust call to auto_load_packages accordingly.
243 (GdbSetPythonDirectory): Likewise.
244 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
245 instead of execute_unwinders.
246
db502012
TT
2472019-08-15 Tom Tromey <tom@tromey.com>
248
249 * tui/tui-layout.c (show_layout, show_source_disasm_command)
250 (show_data): Don't change window visibility.
251 (tui_gen_win_info::resize): Remove special case for command
252 window. Use wresize, when available.
253 (show_source_or_disasm_and_command): Don't change window
254 visibility.
255 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
256 <make_visible>: New method.
257 * tui/tui-command.c (tui_cmd_window::resize): New method.
258
3891b65e
TT
2592019-08-15 Tom Tromey <tom@tromey.com>
260
261 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
262 (struct tui_source_windows): New.
263 * tui/tui-winsource.c (tui_display_main): Update.
264 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
265 (new_height_ok, parse_scrolling_args): Update.
266 * tui/tui-layout.c (show_layout, show_data): Update.
267 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
268 (tui_add_to_source_windows): Don't declare.
269 * tui/tui-data.c (source_windows, tui_source_windows)
270 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
271
ee556432
TT
2722019-08-15 Tom Tromey <tom@tromey.com>
273
274 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
275 Rename from reset.
276 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
277 * tui/tui-layout.c (show_source_disasm_command, show_data):
278 Update.
279 (tui_gen_win_info::resize): Rename.
280 (show_source_or_disasm_and_command): Update.
281 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
282 reset.
283
46f438e3
TT
2842019-08-15 Tom Tromey <tom@tromey.com>
285
286 * tui/tui-stack.c (tui_initialize_static_data): Remove.
287 * tui/tui-interp.c (tui_interp::init): Don't call
288 tui_initialize_static_data.
289 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
290
f4ce562c
TT
2912019-08-15 Tom Tromey <tom@tromey.com>
292
293 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
294 examine tui_win_list.
295
c398c3d0
TT
2962019-08-15 Tom Tromey <tom@tromey.com>
297
298 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
299 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
300 tui_clear_source_content.
301 (tui_clear_source_content): Remove.
302 (tui_source_window_base::do_erase_source_content): Hoist call to
303 content.clear().
304 * tui/tui-stack.c (tui_show_frame_info): Don't call
305 tui_clear_source_content.
306
e25d2004
TT
3072019-08-15 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-winsource.h (struct tui_source_window_base)
310 <do_erase_source_content>: New method.
311 <erase_source_content>: New method.
312 (tui_erase_source_content): Don't declare.
313 * tui/tui-winsource.c (tui_clear_source_content): Update.
314 (tui_source_window_base::do_erase_source_content): Rename from
315 tui_erase_source_content.
316 (tui_source_window_base::show_source_content): Update.
317 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
318 * tui/tui-source.h (struct tui_source_window)
319 <erase_source_content>: New method.
320 * tui/tui-disasm.h (struct tui_disasm_window)
321 <erase_source_content>: New method.
322
002f15c2
TT
3232019-08-15 Tom Tromey <tom@tromey.com>
324
325 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
326 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
327 constructor.
328 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
329 * tui/tui-source.c (tui_set_source_content): Update.
330 * tui/tui-disasm.c (tui_set_disassem_content): Update.
331
c9033fe8
TT
3322019-08-15 Tom Tromey <tom@tromey.com>
333
334 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
335 * tui/tui-winsource.c (tui_line_is_displayed): Move to
336 tui-source.c.
337 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
338 Declare.
339 * tui/tui-source.c (tui_source_window::line_is_displayed): New
340 method.
341 (tui_source_window::maybe_update): Update.
342
088f37dd
TT
3432019-08-15 Tom Tromey <tom@tromey.com>
344
345 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
346 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
347 tui-disasm.c.
348 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
349 Declare.
350 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
351 method.
352 (tui_disasm_window::maybe_update): Update.
353
a54700c6
TT
3542019-08-15 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-winsource.h (struct tui_source_window_base)
357 <maybe_update>: Declare.
358 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
359 method.
360 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
361 Declare.
362 * tui/tui-source.c (tui_source_window::maybe_update): New method.
363 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
364 Declare.
365 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
366
e2a678a5
TT
3672019-08-15 Tom Tromey <tom@tromey.com>
368
369 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
370
f2dda477
TT
3712019-08-15 Tom Tromey <tom@tromey.com>
372
373 * tui/tui-wingeneral.c: Include tui-stack.h.
374 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
375 (struct tui_locator_window): Move from tui-data.h.
376 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
377 (tui_initialize_static_data): Move from tui-data.c.
378 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
379 (struct tui_locator_window): Move to tui-stack.c.
380 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
381 (tui_initialize_static_data): Move to tui-stack.c.
382
ed4a1084
TT
3832019-08-15 Tom Tromey <tom@tromey.com>
384
385 * tui/tui-layout.c (show_source_disasm_command)
386 (show_source_or_disasm_and_command): Use make_visible method, not
387 tui_make_window.
388 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
389 Remove.
390
65962b20
TT
3912019-08-15 Tom Tromey <tom@tromey.com>
392
393 * tui/tui-wingeneral.h (tui_make_window): Update.
394 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
395 parameter.
396 (tui_gen_win_info::make_visible): Update.
397 * tui/tui-regs.c (tui_data_window::display_registers_from):
398 Update.
399 * tui/tui-layout.c (show_source_disasm_command)
400 (show_source_or_disasm_and_command): Update.
401 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
402 (enum tui_box): Remove.
403 (struct tui_win_info) <can_box>: New method.
404 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
405 method.
406
2208ee91
TV
4072019-08-15 Tom de Vries <tdevries@suse.de>
408
409 * linux-nat-trad.c: Include gdbarch.h.
410
75faf5c4
AH
4112019-08-14 Alan Hayward <alan.hayward@arm.com>
412
413 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
414 register sizes.
415
b1c896b3
TT
4162019-08-14 Tom Tromey <tromey@adacore.com>
417
418 * darwin-nat.c: Include gdbarch.h.
419 * darwin-nat-info.c: Include gdbarch.h.
420
6405cd73
TT
4212019-08-13 Tom Tromey <tom@tromey.com>
422
423 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
424 Remove.
425 * tui/tui-data.c (tui_initialize_static_data): Update.
426
5216580d
TT
4272019-08-13 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-winsource.h (struct tui_exec_info_window)
430 <~tui_exec_info_window, maybe_allocate_content, get_content,
431 m_content>: Remove.
432 (struct tui_source_window_base) <set_exec_info_content,
433 show_exec_info_content>: Don't declare.
434 * tui/tui-winsource.c
435 (tui_exec_info_window::maybe_allocate_content): Remove.
436 (tui_source_window_base::update_exec_info): Rename from
437 set_exec_info_content.
438 (tui_source_window_base::show_exec_info_content)
439 (tui_source_window_base::update_exec_info): Remove.
440
93858ad3
TT
4412019-08-13 Tom Tromey <tom@tromey.com>
442
443 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
444 declare.
445 * tui/tui-winsource.c (tui_update_source_window_as_is)
446 (tui_update_source_windows_with_addr, tui_erase_source_content):
447 Update.
448 (tui_clear_exec_info_content): Remove.
449
e321e7ce
TT
4502019-08-13 Tom Tromey <tom@tromey.com>
451
452 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
453 declare.
454 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
455 call tui_erase_exec_info_content.
456 (tui_clear_exec_info_content): Rename from
457 tui_erase_exec_info_content.
458 (tui_clear_exec_info_content): Delete.
459
8270ac62
TT
4602019-08-13 Tom Tromey <tom@tromey.com>
461
462 * tui/tui-winsource.h (struct tui_source_window_base)
463 <show_exec_info_content>: Declare.
464 (tui_show_exec_info_content): Don't declare.
465 * tui/tui-winsource.c
466 (tui_source_window_base::show_exec_info_content): Rename from
467 tui_show_exec_info_content.
468 (tui_source_window_base::update_exec_info): Update.
469
7b56485d
TT
4702019-08-13 Tom Tromey <tom@tromey.com>
471
472 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
473 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
474 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
475 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
476 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
477 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
478 ... here.
479
7ba913dc
TT
4802019-08-13 Tom Tromey <tom@tromey.com>
481
482 * tui/tui-winsource.h (struct tui_source_window_base)
483 <update_exec_info>: Declare.
484 (tui_update_exec_info): Don't declare.
485 * tui/tui-winsource.c (tui_update_source_window_as_is)
486 (tui_source_window_base::refresh_all)
487 (tui_update_all_breakpoint_info): Update.
488 (tui_source_window_base::update_exec_info): Rename from
489 tui_update_exec_info.
490 * tui/tui-stack.c (tui_show_frame_info): Update.
491
37a4a131
TT
4922019-08-13 Tom Tromey <tom@tromey.com>
493
494 * tui/tui-winsource.h (struct tui_source_window_base)
495 <set_exec_info_content>: Declare.
496 (tui_set_exec_info_content): Don't declare.
497 * tui/tui-winsource.c
498 (tui_source_window_base::set_exec_info_content): Rename from
499 tui_set_exec_info_content.
500 (tui_update_exec_info): Update.
501
0bd27e07
TT
5022019-08-13 Tom Tromey <tom@tromey.com>
503
504 * tui/tui-winsource.h (struct tui_source_window_base)
505 <show_source_content>: Declare.
506 (tui_show_source_content): Don't declare.
507 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
508 (tui_source_window_base::show_source_content): Rename from
509 tui_show_source_content.
510 (tui_source_window_base::refresh_all): Update.
511 * tui/tui-layout.c (show_source_disasm_command)
512 (show_source_or_disasm_and_command): Update.
513
b4ef5aeb
TT
5142019-08-13 Tom Tromey <tom@tromey.com>
515
516 * tui/tui-winsource.c (tui_erase_source_content)
517 (tui_show_source_content, tui_source_window_base::refresh_all):
518 Update.
519 * tui/tui-wingeneral.h
520 (tui_check_and_display_highlight_if_needed): Don't declare.
521 * tui/tui-wingeneral.c
522 (tui_win_info::check_and_display_highlight_if_needed): Rename from
523 check_and_display_highlight_if_needed.
524 * tui/tui-win.c (tui_rehighlight_all)
525 (tui_win_info::make_visible_with_new_height): Update.
526 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
527 (tui_data_window::erase_data_content)
528 (tui_data_window::display_all_data): Update.
529 * tui/tui-data.h (struct tui_win_info)
530 <check_and_display_highlight_if_needed>: Declare.
531
fede5273
TT
5322019-08-13 Tom Tromey <tom@tromey.com>
533
534 * tui/tui-win.c (tui_resize_all): Call
535 tui_delete_invisible_windows.
536 * tui/tui-layout.c (show_layout): Call
537 tui_delete_invisible_windows.
538 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
539 * tui/tui-data.c (tui_delete_invisible_windows): New function.
540
22c3f490
TT
5412019-08-13 Tom Tromey <tom@tromey.com>
542
543 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
544 tui_add_win_to_layout.
545
16cb7910
TT
5462019-08-13 Tom Tromey <tom@tromey.com>
547
548 * tui/tui-layout.h (tui_default_win_height): Don't declare.
549 * tui/tui-layout.c (tui_default_win_height): Now static.
550
cc0c3ffb
TT
5512019-08-13 Tom Tromey <tom@tromey.com>
552
553 * tui/tui-layout.c (show_layout): Unify all layout cases into a
554 single switch.
555 (show_source_disasm_command, show_source_or_disasm_and_command):
556 Don't check current layout.
557
3f3ffe54
TT
5582019-08-13 Tom Tromey <tom@tromey.com>
559
560 * tui/tui-wingeneral.c (make_all_visible): Remove.
561 (tui_make_all_invisible): Simplify.
562 * tui/tui-layout.c (tui_make_all_invisible): Move from
563 tui-wingeneral.c; simplify.
564 (show_layout): Hoist call to tui_make_all_invisible.
565 (show_data): Don't call tui_make_all_invisible.
566
69258091
TT
5672019-08-13 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
570 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
571
62cf57fe
TT
5722019-08-13 Tom Tromey <tom@tromey.com>
573
574 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
575 tui-data.c.
576 (show_source_disasm_command, show_data)
577 (show_source_or_disasm_and_command): Don't use
578 tui_set_current_layout_to.
579 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
580 * tui/tui-data.c (current_layout, tui_current_layout): Move to
581 tui-layout.c.
582 (tui_set_current_layout_to): Remove.
583
2afade5d
TT
5842019-08-13 Tom Tromey <tom@tromey.com>
585
586 * tui/tui-layout.c (tui_set_layout): Update.
587 * tui/tui-data.h (struct tui_layout_def): Remove.
588 (tui_layout_def): Don't declare.
589 * tui/tui-data.c (layout_def): Remove.
590 (tui_layout_def): Remove.
591
a3504e96
TT
5922019-08-13 Tom Tromey <tom@tromey.com>
593
594 * tui/tui-winsource.h (struct tui_source_window_base)
595 <clear_detail>: No longer "override".
596 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
597 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
598 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
599 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
600 Remove.
601 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
602
29c92911
TT
6032019-08-13 Tom Tromey <tromey@adacore.com>
604
605 * tracepoint.c: Don't include readline.h or history.h.
606
86c6b807
TT
6072019-08-12 Tom Tromey <tom@tromey.com>
608
609 * configure: Rebuild.
610 * configure.ac: Check for readline 7.
611 * NEWS: Mention readline 7 requirement.
612 * README: Update.
613
5db2718c
TT
6142019-08-12 Tom Tromey <tom@tromey.com>
615
616 * mingw-hdep.c (gdb_select): Remove readline hack.
617
dac36daf
PFC
6182019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
619
620 * blockframe.c (find_pc_partial_function): Set *block to nullptr
621 when the function fails.
622
1022c627
AA
6232019-08-09 Andreas Arnez <arnez@linux.ibm.com>
624
625 * s390-tdep.c (s390_type_align): New function.
626 (s390_gdbarch_init): Set it as type_align gdbarch method.
627
eba4caf2
TV
6282019-08-09 Tom de Vries <tdevries@suse.de>
629
630 PR gdb/24591
631 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
632 pc_low with relocation offset.
633
123cd851
TT
6342019-08-07 Tom Tromey <tromey@adacore.com>
635
636 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
637 (print_frame_args): Update.
638 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
639 Update.
640 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
641 * frame.h (struct frame_arg): Add initializers.
642 <error>: Now a unique_xmalloc_ptr.
643
3d31bc39
AH
6442019-08-07 Alan Hayward <alan.hayward@arm.com>
645
646 * NEWS: Expand the Pointer Authentication entry.
647 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
648 (aarch64_frame_unmask_lr): ... to this.
649 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
650 Call aarch64_frame_unmask_lr.
651 * frame.c (struct frame_info): Add "masked" variable.
652 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
653 (fprint_frame): Check for masked pc.
654 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
655 declarations.
656 * python/py-framefilter.c (py_print_frame): Check for masked pc.
657 * stack.c (print_frame): Check for masked pc.
658
0cf9feb9
TT
6592019-08-06 Tom Tromey <tom@tromey.com>
660
661 * stabsread.c (patch_block_stabs, read_one_struct_field)
662 (read_enum_type): Use obstack_strndup.
663 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
664 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
665 * dwarf2read.c (guess_full_die_structure_name)
666 (anonymous_struct_prefix): Use obstack_strndup.
667 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
668 * c-exp.y (yylex): Use obstack_strndup.
669 * ada-exp.y (write_object_renaming, write_ambiguous_var)
670 (write_var_or_type): Use obstack_strndup.
671
efba19b0
TT
6722019-08-06 Tom Tromey <tom@tromey.com>
673
674 * symfile.c (reread_symbols): Use obstack_strdup.
675 * stabsread.c (read_type): Use obstack_strdup.
676 * gdb_obstack.h (obstack_strdup): New overload.
677 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
678 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
679 (dwarf2_canonicalize_name): Use obstack_strdup.
680 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
681 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
682 Use obstack_strdup.
683
f25102f7
TT
6842019-08-06 Tom Tromey <tom@tromey.com>
685
686 * gdb_obstack.h (obstack_strdup): Define.
687 * gdb_obstack.c (obstack_strdup): Don't define.
688
021887d8
TT
6892019-08-06 Tom Tromey <tom@tromey.com>
690
691 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
692 obstack_strdup.
693 * typeprint.c (typedef_hash_table::find_global_typedef): Use
694 obstack_strdup.
695 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
696 * stabsread.c (common_block_start): Use obstack_strdup.
697 * objfiles.c (set_objfile_main_name, objfile): Use
698 obstack_strdup.
699 * namespace.c (add_using_directive): Use obstack_strdup.
700 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
701 * jit.c (finalize_symtab): Use obstack_strdup.
702 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
703 (guess_partial_die_structure_name, partial_die_info::fixup)
704 (dwarf2_name): Use obstack_strdup.
705 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
706 obstack_strdup.
707 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
708 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
709 obstack_strdup.
710 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
711
d2834edc
PW
7122019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
713
714 * unittests/help-doc-selftests.c: New file.
715 * Makefile.in: Add the new file.
716
590042fc
PW
7172019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
718
719 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
720 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
721 the full first line, except when FOR_VALUE_PREFIX. In this case,
722 the trailing '.' is not output, and the first character is uppercased.
723 (print_help_for_command): Update call to print_doc_line.
724 (print_doc_of_command): Likewise.
725 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
726 * cli/cli-option.c (append_indented_doc): Do not append newline.
727 (build_help_option): Append newline after first appended_indented_doc
728 only if a second call is done.
729 (build_help): Append 2 new lines before each option, except the first
730 one.
731 * compile/compile.c (_initialize_compile): Add new lines after
732 %OPTIONS%, when not at the end of the help.
733 Change help doc or code
734 producing the help doc to respect the invariants.
735 * maint-test-options.c (_initialize_maint_test_options): Likewise.
736 Also removed the new line after 'Options:', as all other commands
737 do not put an empty line between 'Options:' and the first option.
738 * printcmd.c (_initialize_printcmd): Likewise.
739 * stack.c (_initialize_stack): Likewise.
740 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
741 incorrectly telling COMMAND is optional.
742 * ada-lang.c (_initialize_ada_language): Change help doc or code
743 producing the help doc to respect the invariants.
744 * ada-tasks.c (_initialize_ada_tasks): Likewise.
745 * breakpoint.c (_initialize_breakpoint): Likewise.
746 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
747 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
748 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
749 * cli/cli-style.c (cli_style_option::add_setshow_commands,
750 _initialize_cli_style): Likewise.
751 * corelow.c (core_target_info): Likewise.
752 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
753 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
754 * filesystem.c (_initialize_filesystem): Likewise.
755 * frame.c (_initialize_frame): Likewise.
756 * gnu-nat.c (add_task_commands): Likewise.
757 * infcall.c (_initialize_infcall): Likewise.
758 * infcmd.c (_initialize_infcmd): Likewise.
759 * interps.c (_initialize_interpreter): Likewise.
760 * language.c (_initialize_language): Likewise.
761 * linux-fork.c (_initialize_linux_fork): Likewise.
762 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
763 * maint.c (_initialize_maint_cmds): Likewise.
764 * memattr.c (_initialize_mem): Likewise.
765 * printcmd.c (_initialize_printcmd): Likewise.
766 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
767 _RegEx): Likewise.
768 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
769 * record-btrace.c (_initialize_record_btrace): Likewise.
770 * record-full.c (_initialize_record_full): Likewise.
771 * record.c (_initialize_record): Likewise.
772 * regcache-dump.c (_initialize_regcache_dump): Likewise.
773 * regcache.c (_initialize_regcache): Likewise.
774 * remote.c (add_packet_config_cmd, init_remote_threadtests,
775 _initialize_remote): Likewise.
776 * ser-tcp.c (_initialize_ser_tcp): Likewise.
777 * serial.c (_initialize_serial): Likewise.
778 * skip.c (_initialize_step_skip): Likewise.
779 * source.c (_initialize_source): Likewise.
780 * stack.c (_initialize_stack): Likewise.
781 * symfile.c (_initialize_symfile): Likewise.
782 * symtab.c (_initialize_symtab): Likewise.
783 * target-descriptions.c (_initialize_target_descriptions): Likewise.
784 * top.c (init_main): Likewise.
785 * tracefile-tfile.c (tfile_target_info): Likewise.
786 * tracepoint.c (_initialize_tracepoint): Likewise.
787 * tui/tui-win.c (_initialize_tui_win): Likewise.
788 * utils.c (add_internal_problem_command): Likewise.
789 * valprint.c (value_print_option_defs): Likewise.
790
404f2902
FCE
7912019-08-06 Frank Ch. Eigler <fche@redhat.com>
792
793 PR build/24886
794 * configure.ac: Drop enable-libmcheck support.
795 * configure, config.in: Rebuild.
796 * libmcheck.m4: Remove.
797 * acinclude.m4: Don't include it.
798 * Makefile.in: Don't distribute it.
799 * top.c (print_gdb_configuration): Don't mention it.
800
046bebe1
TT
8012019-08-06 Tom Tromey <tom@tromey.com>
802
803 * utils.c (set_output_style): Sometimes pass stream to
804 emit_style_escape.
805 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
806 * record-btrace.c (btrace_insn_history): Update.
807 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
808 method.
809 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
810 Update initializers.
811 <m_uiout>: New field.
812 <m_di>: Move lower.
813 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
814 Remove "uiout" parameter.
815 (dump_insns): Update.
816 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
817 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
818
ddbcedf5
CB
8192019-08-06 Christian Biesinger <cbiesinger@google.com>
820
821 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
822 (error_in_psymtab_expansion): Likewise.
823 (lookup_symbol_via_quick_fns): Likewise.
824 (basic_lookup_transparent_type_quick): Likewise.
825 (basic_lookup_transparent_type_1): Likewise.
826
b08b16c8
TT
8272019-08-06 Tom Tromey <tromey@adacore.com>
828
829 * source.c (last_source_error): Now bool.
830 (print_source_lines_base): Make "noprint" bool. Only open
831 source file when last_source_visited changes.
832
cb44333d
TT
8332019-08-06 Tom Tromey <tromey@adacore.com>
834
835 * annotate.c (annotate_source_line): Use g_source_cache.
836 * source-cache.c (source_cache::get_plain_source_lines): Change
837 parameters. Populate m_offset_cache.
838 (source_cache::ensure): New method.
839 (source_cache::get_line_charpos): New method.
840 (extract_lines): Move lower. Change parameters.
841 (source_cache::get_source_lines): Move lower.
842 * source-cache.h (class source_cache): Update comment.
843 <get_line_charpos>: New method.
844 <get_source_lines>: Update comment.
845 <clear>: Clear m_offset_cache.
846 <get_plain_source_lines>: Change parameters.
847 <ensure>: New method
848 <m_offset_cache>: New member.
849 * source.c (forget_cached_source_info_for_objfile): Update.
850 (info_source_command): Use g_source_cache.
851 (find_source_lines, open_source_file_with_line_charpos): Remove.
852 (print_source_lines_base, search_command_helper): Use g_source_cache.
853 * source.h (open_source_file_with_line_charpos): Don't declare.
854 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
855 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
856 Use g_source_cache.
857
872dceaa
TT
8582019-08-06 Tom Tromey <tromey@adacore.com>
859
860 * source-cache.c (source_cache::get_plain_source_lines):
861 Remove "first_line" and "last_line" parameters.
862 (source_cache::get_source_lines): Cache plain text.
863 * source-cache.h (class source_cache)
864 <get_plain_source_lines>: Update.
865
269249d9
TT
8662019-08-06 Tom Tromey <tromey@adacore.com>
867
868 * source-cache.c (extract_lines): No longer a method.
869 Changed type of parameter. Include final newline.
870 (selftests::extract_lines_test): New function.
871 (_initialize_source_cache): Likewise.
872 * source-cache.h (class source_cache)
873 <extract_lines>: Don't declare.
874
c0e8dcd8
TT
8752019-08-06 Tom Tromey <tromey@adacore.com>
876
877 * breakpoint.c (init_breakpoint_sal): Update.
878 (breakpoint): Update.
879 * breakpoint.h (struct breakpoint) <filter>: Now a
880 unique_xmalloc_ptr.
881
0b27c27d
CB
8822019-08-05 Christian Biesinger <cbiesinger@google.com>
883
884 * NEWS: Mention dictionary access on blocks.
885 * python/py-block.c (blpy_getitem): New function.
886 (block_object_as_mapping): New struct.
887 (block_object_type): Use new struct for tp_as_mapping field.
888
4ee94178
CB
8892019-08-05 Christian Biesinger <cbiesinger@google.com>
890
891 * objfiles.h (objfile): Add a comment describing partial symbols.
892
8abfcabc
TT
8932019-08-05 Tom Tromey <tromey@adacore.com>
894
895 * compile/compile.c (_initialize_compile): Use _(), not N_().
896 * thread.c (_initialize_thread): Use _(), not N_().
897 * stack.c (_initialize_stack): Use _(), not N_().
898 * printcmd.c (_initialize_printcmd): Use _(), not N_().
899
2b79f376
SM
9002019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * dwarf2read.c (struct dw2_symtab_iterator):
903 <want_specific_block>: Remove.
904 <block_index>: Change type to gdb::optional.
905 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
906 change type of BLOCK_INDEX parameter to gdb::optional.
907 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
908 (dw2_lookup_symbol): Don't pass argument for
909 WANT_SPECIFIC_BLOCK.
910 (dw2_expand_symtabs_for_function): Don't pass argument for
911 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
912 (class dw2_debug_names_iterator)
913 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
914 parameter, change BLOCK_INDEX type to gdb::optional.
915 <m_want_specific_block>: Remove.
916 <m_block_index>: Change type to gdb::optional.
917 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
918 gdb::optional. Re-write in function of gdb::optional.
919 (dw2_debug_names_lookup_symbol): Don't pass argument for
920 WANT_SPECIFIC_BLOCK.
921 (dw2_debug_names_expand_symtabs_for_function): Don't pass
922 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
923 BLOCK_INDEX.
924
ae60f04e
PW
9252019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
926
927 * NEWS: Mention changes to "info sources" command.
928
28cd9371
PW
9292019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
930
931 * symtab.c (filename_partial_match_opts): New struct type.
932 (struct output_source_filename_data): New members
933 regexp, c_regexp, partial_match.
934 (output_source_filename): Use new members to decide to print file.
935 (info_sources_option_defs): New variable.
936 (make_info_sources_options_def_group, print_info_sources_header,
937 info_sources_command_completer):
938 New functions.
939 (info_sources_command): Read new optional arguments.
940 (_initialize_symtab): Update info sources help.
941
ca683e3a
AO
9422019-08-02 Alexandre Oliva <oliva@adacore.com>
943
944 * ada-lang.c (exception_support_info_v0): Renamed from...
945 (default_exception_support_info): ... this. Create new
946 definition for v1.
947 (ada_has_this_exception_support): Look up catch_handlers_sym.
948 (ada_exception_support_info_sniffer): Try v0 after default.
949
f1264162
TT
9502019-08-01 Tom Tromey <tromey@adacore.com>
951
952 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
953 gdbarch.h.
954
0a7b2485
CB
9552019-08-01 Christian Biesinger <cbiesinger@google.com>
956
957 * s12z-tdep.c: Fix include path for s12z-opc.h.
958
c6bdbeb7
AH
9592019-08-01 Alan Hayward <alan.hayward@arm.com>
960
961 * NEWS: Require GNU make 3.82.
962
a2bd7b82
TT
9632019-07-16 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
966 declare.
967
aa3b6533
TT
9682019-07-30 Tom Tromey <tromey@adacore.com>
969
970 * block.c (contained_in): Remove BLOCK_FUNCTION check.
971
a1530dc7
KB
9722019-07-30 Kevin Buettner <kevinb@redhat.com>
973
974 * printcmd.c (print_address_symbolic): Print negative offsets.
975 (build_address_symbolic): Force signed arithmetic when computing
976 offset.
977
2906593f
CB
9782019-07-30 Christian Biesinger <cbiesinger@google.com>
979
980 PR/24474: Add a function to lookup static variables.
981 * NEWS: Mention this new function.
982 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
983 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
984 * python/python.c (python_GdbMethods): Add new function.
985
c620ed88
CB
9862019-07-29 Christian Biesinger <cbiesinger@google.com>
987
988 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
989 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
990 (objfpy_lookup_static_symbol): New function.
991 (objfile_object_methods): Add new functions.
992
bc4268a5
PW
9932019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
994
995 * NEWS: Mention 'set|show print frame-info'. Mention new
996 'presence' value for 'frame-arguments'. Mention new '-frame-info'
997 backtrace argument. Mention that python frame filtering code
998 is now consistent with what 'backtrace' command prints.
999
4b5e8d19
PW
10002019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1001
1002 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1003 comments.
1004 (print_frame_info_auto, print_frame_info_source_line,
1005 print_frame_info_location, print_frame_info_source_and_location,
1006 print_frame_info_location_and_address, print_frame_info_short_location):
1007 New declarations.
1008 (struct frame_print_options): New member print_frame_info.
1009 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1010 * stack.h (get_user_print_what_frame_info): New declaration.
1011 (frame_show_address): New declaration.
1012 * stack.c (print_frame_arguments_choices): New value 'presence'.
1013 (print_frame_info_auto, print_frame_info_source_line,
1014 print_frame_info_location, print_frame_info_source_and_location,
1015 print_frame_info_location_and_address, print_frame_info_short_location,
1016 print_frame_info_choices, print_frame_info_print_what): New definitions.
1017 (print_frame_args): Only print dots for args if print frame-arguments
1018 is 'presence'.
1019 (frame_print_option_defs): New element for "frame-info".
1020 (get_user_print_what_frame_info): New function.
1021 (frame_show_address): Make non static. Move comment to stack.h.
1022 (print_frame_info_to_print_what): New function.
1023 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1024 to decide what to print.
1025 (backtrace_command_1): Handle the new print_frame_arguments_presence
1026 value.
1027 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1028 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1029 (py_print_frame): In non-mi mode, use LOCATION as default for
1030 print_what, similarly to frame information printed directly by
1031 backtrace command. Handle frame-info user option in non MI mode.
1032
6bdfee81
KB
10332019-07-27 Kevin Buettner <kevinb@redhat.com>
1034
1035 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1036 Add case for debugging 32-bit target on 64-bit host. Revise
1037 comment.
1038
98a617f8
KB
10392019-07-27 Kevin Buettner <kevinb@redhat.com>
1040
1041 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1042 instead of find_function_entry_range_from_pc.
1043
567238c9
KB
10442019-07-27 Kevin Buettner <kevinb@redhat.com>
1045
1046 * stack.c (find_frame_funname): Remove code which preferred
1047 minsym over symtab sym in "certain pathological cases".
1048
2dc80cf8
KB
1049 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1050 parameter. Change type of "do_demangle" to bool.
1051 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1052 Pass suitable "prefer_sym_over_minsym" flag to
1053 build_address_symbolic(). Don't output "+" for negative offsets.
1054 * printcmd.c (print_address_symbolic): Update invocation of
1055 build_address_symbolic to include a "prefer_sym_over_minsym"
1056 flag.
1057 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1058 Restrict cases in which use of minimal symbol is preferred to that
1059 of a found symbol. Update comments.
1060
1aff7173
KB
1061 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1062 for entry pc when entry pc is out of range for that FDE.
1063
89b085ac
BC
10642019-07-26 Brian Callahan <bcallah@openbsd.org>
1065
1066 PR gdb/24839:
1067 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1068 type.
1069
f32feb4a
CB
10702019-07-25 Christian Biesinger <cbiesinger@google.com>
1071
1072 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1073 this function's Python signature.
1074
1075
10762019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1077
1078 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1079 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1080 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1081 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1082 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1083
1084
c54e4253
YS
10852019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1086
1087 * h8300-tdep.c (h8300_register_name_common): New.
1088 h8300_register_name): Use h8300_register_name_common.
1089 (h8300s_register_name): Likewise.
1090 (h8300sx_register_name): Likewise.
1091 (h8300h_register_nam): New.
1092 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1093
1094
40eadf04
SP
10952019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1096
1097 * arm-tdep.c (arm_skip_cmse_entry): New function.
1098 (arm_is_sgstubs_section): New function.
1099 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1100
bfa2a36d
TT
11012019-07-22 Tom Tromey <tom@tromey.com>
1102
1103 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1104 Don't self-assign.
1105
a8e9d247
AB
11062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1109 type_print.
1110
eb86c5e2
AB
11112019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1114 so that GDB doesn't match any msymbols when searching in the
1115 TYPES_DOMAIN.
1116 (print_symbol_info): Print using typedef_print or type_print based
1117 on the type of the symbol. Add updated FIXME comment moved from...
1118 (_initialize_symtab): ... move and update FIXME comment to above.
1119
a8eab7c6
AB
11202019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * NEWS: Mention adding -q option to "info types".
1123 * symtab.c (struct info_types_options): New struct.
1124 (info_types_options_defs): New variable.
1125 (make_info_types_options_def_group): New function.
1126 (info_types_command): Use gdb::option framework to parse options.
1127 (info_types_command_completer): New function.
1128 (_initialize_symtab): Extend the help text on "info types" and
1129 register command completer.
1130
b4603c34
CB
11312019-07-21 Christian Biesinger <cbiesinger@google.com>
1132
1133 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1134 (lookup_symbol_in_objfile): Change int to block_enum and add a
1135 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1136
c8cdc1e0
CB
11372019-07-20 Christian Biesinger <cbiesinger@google.com>
1138
1139 * MAINTAINERS (Write After Approval): Add self.
1140
01e175fe
AB
11412019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1144 instruction to the dummy code region.
1145
56f79b63
TT
11462019-07-19 Tom Tromey <tromey@adacore.com>
1147
1148 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1149 (ARGSUSED, PARAMS, __func__): Remove rules.
1150
4c5aa8e0
AH
11512019-07-19 Alan Hayward <alan.hayward@arm.com>
1152
1153 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1154 * features/arm/arm-with-iwmmxt.c: Remove.
1155 * features/arm/arm-with-iwmmxt.xml: Remove.
1156 * features/arm/arm-with-m-fpa-layout.c: Remove.
1157 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1158 * features/arm/arm-with-m-vfp-d16.c: Remove.
1159 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1160 * features/arm/arm-with-m.c: Remove.
1161 * features/arm/arm-with-m.xml: Remove.
1162 * features/arm/arm-with-neon.c: Remove.
1163 * features/arm/arm-with-neon.xml: Remove.
1164 * features/arm/arm-with-vfpv2.c: Remove.
1165 * features/arm/arm-with-vfpv2.xml: Remove.
1166 * features/arm/arm-with-vfpv3.c: Remove.
1167 * features/arm/arm-with-vfpv3.xml: Remove.
1168
f42b2617
AH
11692019-07-19 Alan Hayward <alan.hayward@arm.com>
1170
1171 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1172
f29ec966
AH
11732019-07-19 Alan Hayward <alan.hayward@arm.com>
1174
1175 * arch/aarch32.c (aarch32_create_target_description): Create
1176 target descriptions using features.
1177 * arch/arm.c (arm_create_target_description)
1178 (arm_create_mprofile_target_description): Likewise.
1179 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1180
d105cce5
AH
11812019-07-19 Alan Hayward <alan.hayward@arm.com>
1182
1183 * Makefile.in: Add new files.
1184 * aarch32-tdep.c: New file.
1185 * aarch32-tdep.h: New file.
1186 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1187 Call aarch32_read_description.
1188 * arch/aarch32.c: New file.
1189 * arch/aarch32.h: New file.
1190 * arch/arm.c (arm_create_target_description)
1191 (arm_create_mprofile_target_description): New function.
1192 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1193 (arm_create_target_description)
1194 (arm_create_mprofile_target_description): New declaration.
1195 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1196 read_description functions.
1197 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1198 Likewise.
1199 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1200 * arm-tdep.c (tdesc_arm_list): New variable.
1201 (arm_register_g_packet_guesses): Call create description functions.
1202 (arm_read_description) (arm_read_mprofile_description): New
1203 function.
1204 * arm-tdep.h (arm_read_description)
1205 (arm_read_mprofile_description): Add declaration.
1206 * configure.tgt: Add new files.
1207
afe09f0b
GL
12082019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1209
1210 * top.c (new_ui_command): Open specified terminal just once.
1211
cd215b2e
TT
12122019-07-18 Tom Tromey <tromey@adacore.com>
1213
1214 * symtab.c (main_name): Constify return type.
1215 * symfile.c (set_initial_language): Update.
1216 * symtab.h (main_name): Constify return type.
1217
d8f68fcb
TT
12182019-07-17 Tom Tromey <tom@tromey.com>
1219
1220 * tui/tui-winsource.c (tui_update_source_window)
1221 (tui_update_source_window_as_is)
1222 (tui_update_source_windows_with_line): Remove return.
1223 * tui/tui-disasm.c (tui_show_disassem)
1224 (tui_show_disassem_and_update_source): Remove return.
1225 * tui/tui.c (tui_reset): Remove return.
1226 * tui/tui-wingeneral.c
1227 (tui_check_and_display_highlight_if_needed): Remove return.
1228
ca5af91e
TT
12292019-07-17 Tom Tromey <tom@tromey.com>
1230
1231 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1232
5104fe36
TT
12332019-07-17 Tom Tromey <tom@tromey.com>
1234
1235 * tui/tui-winsource.h (struct tui_exec_info_window)
1236 (struct tui_source_window_base): Move from tui-data.h.
1237 * tui/tui-winsource.c: Move many method definitions from
1238 elsewhere. Remove "structuring" comments.
1239 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1240 (tui_source_window_base::refresh_window): Move to
1241 tui-winsource.c.
1242 * tui/tui-win.c (tui_source_window_base::refresh_all)
1243 (tui_source_window_base::update_tab_width)
1244 (tui_source_window_base::set_new_height)
1245 (tui_source_window_base::do_make_visible_with_new_height): Move to
1246 tui-winsource.c.
1247 * tui/tui-source.h: Update.
1248 * tui/tui-source.c (tui_source_window_base::reset): Move to
1249 tui-winsource.c.
1250 * tui/tui-disasm.h: Update.
1251 * tui/tui-data.h (struct tui_exec_info_window): Move to
1252 tui-winsource.h.
1253 (struct tui_source_window_base): Likewise.
1254 * tui/tui-data.c (tui_source_window_base::clear_detail)
1255 (tui_source_window_base, ~tui_source_window_base): Move to
1256 tui-winsource.c.
1257
daa15dde
TT
12582019-07-17 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-win.c (tui_resize_all)
1261 (tui_source_window_base::update_tab_width)
1262 (tui_adjust_win_heights): Update.
1263 (tui_win_info::make_invisible_and_set_new_height): Rename from
1264 make_invisible_and_set_new_height.
1265 * tui/tui-data.h (struct tui_win_info)
1266 <make_invisible_and_set_new_height>: New method.
1267
bfad4537
TT
12682019-07-17 Tom Tromey <tom@tromey.com>
1269
1270 * tui/tui.c: Update.
1271 * tui/tui-source.h (struct tui_source_window): Move from
1272 tui-data.h.
1273 * tui/tui-layout.c: Update.
1274 * tui/tui-disasm.c: Update.
1275 * tui/tui-data.h (struct tui_source_window): Move to
1276 tui-source.h.
1277
88f7e873
TT
12782019-07-17 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1281 tui-data.h.
1282 * tui/tui-data.h (struct tui_disasm_window): Move to
1283 tui-disasm.h.
1284
96bd6233
TT
12852019-07-17 Tom Tromey <tom@tromey.com>
1286
1287 * tui/tui-regs.h (struct tui_data_item_window): Move from
1288 tui-data.h.
1289 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1290 * tui/tui-data.h (struct tui_data_item_window): Move to
1291 tui-regs.h.
1292 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1293
ce38393b
TT
12942019-07-17 Tom Tromey <tom@tromey.com>
1295
1296 * tui/tui.c: Update.
1297 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1298 (tui_cmd_window::max_height): Move to tui-command.c.
1299 * tui/tui-layout.c: Update.
1300 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1301 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1302 tui-command.c.
1303 * tui/tui-command.h (struct tui_cmd_window): Move from
1304 tui-data.h.
1305 * tui/tui-command.c: Remove "structuring" comments.
1306 (tui_cmd_window::clear_detail)
1307 (tui_cmd_window::do_make_visible_with_new_height)
1308 (tui_cmd_window::max_height): Move from elsewhere.
1309
2d8b51cb
TT
13102019-07-17 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1313 Now static.
1314 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1315 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1316
18ab23af
TT
13172019-07-17 Tom Tromey <tom@tromey.com>
1318
1319 * tui/tui.c: Update.
1320 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1321 tui-regs.c.
1322 * tui/tui-windata.h: Remove file.
1323 * tui/tui-windata.c: Remove file.
1324 * tui/tui-win.c (tui_data_window::set_new_height)
1325 (tui_data_window::do_make_visible_with_new_height): Move to
1326 tui-regs.c.
1327 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1328 * tui/tui-regs.c: Remove "structuring" comments.
1329 (tui_data_window::first_data_item_displayed)
1330 (tui_data_window::delete_data_content_windows)
1331 (tui_data_window::erase_data_content)
1332 (tui_data_window::display_all_data)
1333 (tui_data_window::refresh_all)
1334 (tui_data_window::do_scroll_vertical)
1335 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1336 (tui_data_window::do_make_visible_with_new_height)
1337 (tui_data_window::refresh_window): Move from elsewhere.
1338 (_initialize_tui_regs): Move to end of file.
1339 * tui/tui-layout.c: Update.
1340 * tui/tui-hooks.c: Update.
1341 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1342 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1343 tui-regs.c.
1344 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1345
88b7e7cc
TT
13462019-07-17 Tom Tromey <tom@tromey.com>
1347
1348 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1349 seen.
1350
0fcd3711
TT
13512019-07-17 Tom Tromey <tom@tromey.com>
1352
1353 * tui/tui-win.c (tui_source_window_base::set_new_height)
1354 (tui_source_window_base::do_make_visible_with_new_height): Use
1355 m_has_locator field directly.
1356 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1357 method.
1358 (struct tui_source_window_base) <has_locator>: Likewise.
1359
4a38112d
TT
13602019-07-17 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1363 Don't declare.
1364 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1365 Remove.
1366 * tui/tui-win.c (tui_source_window_base::set_new_height)
1367 (tui_source_window_base::set_new_height)
1368 (make_invisible_and_set_new_height)
1369 (tui_source_window_base::do_make_visible_with_new_height)
1370 (tui_source_window_base::do_make_visible_with_new_height):
1371 Update.
1372 * tui/tui-layout.c (show_source_disasm_command, show_data)
1373 (show_source_or_disasm_and_command): Update.
1374 * tui/tui-layout.c (show_layout): Update.
1375
09129226
TT
13762019-07-17 Tom Tromey <tom@tromey.com>
1377
1378 * tui/tui-layout.c (make_data_window): Remove.
1379 (show_data): Unify creation and re-initialization cases.
1380
4a8a5e84
TT
13812019-07-17 Tom Tromey <tom@tromey.com>
1382
1383 * tui/tui-layout.c (make_source_window, make_disasm_window):
1384 Remove.
1385 (show_data): Unify creation and re-initialization cases.
1386
76d2be8e
TT
13872019-07-17 Tom Tromey <tom@tromey.com>
1388
1389 * tui/tui-layout.c (make_command_window): Remove.
1390 (show_source_disasm_command, show_source_or_disasm_and_command):
1391 Unify creation and re-initialization cases.
1392
890b8bde
TT
13932019-07-17 Tom Tromey <tom@tromey.com>
1394
1395 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1396 creation and re-initialization cases.
1397
2cdfa113
TT
13982019-07-17 Tom Tromey <tom@tromey.com>
1399
1400 * tui/tui-regs.c (tui_get_register): Return void.
1401
8e3cfd09
TT
14022019-07-17 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1405 Simplify.
1406
f4e04977
TT
14072019-07-17 Tom Tromey <tom@tromey.com>
1408
1409 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1410 resetting.
1411
0379b883
TT
14122019-07-17 Tom Tromey <tom@tromey.com>
1413
1414 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1415 * tui/tui-regs.c (tui_reg_layout): New function.
1416 (tui_show_registers, tui_reg_command): Use it.
1417 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1418 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1419 parameters.
1420 (tui_layout_command): Remove.
1421
b7fbad91
TT
14222019-07-17 Tom Tromey <tom@tromey.com>
1423
1424 * tui/tui-layout.h (tui/tui-layout): Return void.
1425 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1426
4e1e56b9
TT
14272019-07-17 Tom Tromey <tom@tromey.com>
1428
1429 * tui/tui-layout.c (show_source_disasm_command, show_data):
1430 Update.
1431 (reset_locator): Remove.
1432 (show_source_or_disasm_and_command): Update.
1433
1e0c09ba
TT
14342019-07-17 Tom Tromey <tom@tromey.com>
1435
1436 * tui/tui-source.c (tui_source_window_base::reset): Remove
1437 win_type parameter.
1438 * tui/tui-layout.c (make_command_window, make_source_window)
1439 (make_disasm_window, make_data_window)
1440 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1441 (reset_locator, show_source_or_disasm_and_command): Update.
1442 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1443 win_type parameter.
1444 (struct tui_source_window_base) <reset>: Likewise.
1445
1bf605de
TT
14462019-07-17 Tom Tromey <tom@tromey.com>
1447
1448 * tui/tui-layout.c (show_source_disasm_command): Use
1449 reset_locator.
1450 (reset_locator): New function.
1451 (init_and_make_win): Remove.
1452 (show_source_or_disasm_and_command): Use reset_locator.
1453
098f9ed4
TT
14542019-07-17 Tom Tromey <tom@tromey.com>
1455
1456 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1457 condition.
1458 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1459 Remove condition.
1460 * tui/tui-source.c (tui_source_window_base::reset): New method.
1461 * tui/tui-layout.c (make_command_window): Don't call
1462 init_and_make_win.
1463 (make_source_window, make_disasm_window): Don't call
1464 make_source_or_disasm_window.
1465 (make_data_window): Don't call init_and_make_win. Change calling
1466 convention.
1467 (show_source_disasm_command, show_data): Simplify.
1468 (make_source_or_disasm_window): Remove.
1469 (show_source_or_disasm_and_command): Simplify.
1470 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1471 (struct tui_source_window_base) <reset>: Likewise.
1472 <execution_info>: Remove initializer.
1473 * tui/tui-data.c (tui_source_window_base): Initialize
1474 execution_info.
1475
80110957
TT
14762019-07-17 Tom Tromey <tom@tromey.com>
1477
1478 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1479 variable.
1480
cf82af05
TT
14812019-07-17 Tom Tromey <tom@tromey.com>
1482
1483 * tui/tui.c (tui_rl_other_window): Update.
1484 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1485 superclass method first. Always iterate over regs_content.
1486 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1487 method.
1488 * tui/tui-win.c (tui_set_focus_command): Update.
1489
01aeb396
TT
14902019-07-17 Tom Tromey <tom@tromey.com>
1491
1492 * tui/tui-win.c (tui_set_focus_command): Rename from
1493 tui_set_focus. Call tui_enable.
1494 (tui_set_focus_command): Remove.
1495
fd6c75ee
TT
14962019-07-17 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1499 refresh_window.
1500 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1501 touchwin.
1502 (tui_data_window::refresh_window): Call refresh_window on data
1503 items. Always call superclass refresh_window.
1504 (tui_win_info::refresh): Remove.
1505 (tui_source_window_base::refresh_window): Update.
1506 (tui_refresh_all): Update.
1507 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1508 refresh_window.
1509 (show_source_or_disasm_and_command): Likewise.
1510 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1511 (struct tui_source_window_base) <refresh>: Likewise.
1512
f6cc34a9
TT
15132019-07-17 Tom Tromey <tom@tromey.com>
1514
1515 * tui/tui-winsource.c (tui_clear_source_content)
1516 (tui_show_source_content): Update.
1517 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1518 whether content is empty.
1519 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1520 Remove.
1521
f31ec9af
TT
15222019-07-17 Tom Tromey <tom@tromey.com>
1523
1524 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1525 window's contents.
1526 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1527 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1528
d1b6f1e5
TT
15292019-07-17 Tom Tromey <tom@tromey.com>
1530
1531 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1532 (struct tui_data_item_window): Update.
1533
d9743a13
TT
15342019-07-17 Tom Tromey <tom@tromey.com>
1535
1536 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1537 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1538 defines.
1539
caf0bc4e
TT
15402019-07-17 Tom Tromey <tom@tromey.com>
1541
1542 * tui/tui-winsource.h (tui_erase_source_content)
1543 (tui_clear_source_content): Remove "display_prompt" parameter.
1544 * tui/tui-winsource.c (tui_update_source_window_as_is)
1545 (tui_update_source_windows_with_addr): Update.
1546 (tui_clear_source_content): Remove "display_prompt" parameter.
1547 (tui_erase_source_content): Likewise. Simplify.
1548 (tui_show_source_content): Update.
1549 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1550 * tui/tui-stack.c (tui_show_frame_info): Update.
1551 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1552 Remove defines.
1553
9d391078
TT
15542019-07-17 Tom Tromey <tom@tromey.com>
1555
1556 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1557 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1558 parameter.
1559 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1560 parameter.
1561
a38da35d
TT
15622019-07-17 Tom Tromey <tom@tromey.com>
1563
1564 * tui/tui-winsource.c (tui_clear_source_content)
1565 (tui_show_source_content, tui_show_exec_info_content)
1566 (tui_clear_exec_info_content): Update.
1567 * tui/tui-stack.c (tui_show_locator_content): Update.
1568 (tui_show_frame_info): Update.
1569 * tui/tui-source.h (tui_source_window): Don't declare.
1570 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1571 from tui_source_is_displayed.
1572 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1573 Remove field.
1574 (struct tui_source_window_base) <content_in_use>: New field. Now
1575 bool.
1576 (struct tui_source_window) <showing_source_p>: New method.
1577 (TUI_SRC_WIN): Change cast.
1578 * tui/tui-data.c (tui_initialize_static_data): Update.
1579
c2cd8994
TT
15802019-07-17 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1583 location_matches_p.
1584 * tui/tui-source.c (tui_source_window::location_matches_p): New
1585 method.
1586 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1587 method.
1588 * tui/tui-data.h (struct tui_source_window_base)
1589 <location_matches_p>: New method.
1590 (struct tui_source_window, struct tui_disasm_window)
1591 <location_matches_p>: Likewise.
1592
4dde7b34
TT
15932019-07-17 Tom Tromey <tom@tromey.com>
1594
1595 * tui/tui-win.c (tui_set_win_height_command): Rename from
1596 tui_set_win_height.
1597 (tui_set_win_height_command): Remove.
1598
b73dd877
TT
15992019-07-17 Tom Tromey <tom@tromey.com>
1600
1601 * tui/tui-source.c (tui_source_window): New constructor. Add
1602 observer.
1603 (~tui_source_window): New destructor.
1604 (tui_source_window::style_changed): New method.
1605 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1606 (tui_attach_detach_observers): Update.
1607 * tui/tui-data.h (struct tui_source_window): Make constructor not
1608 inline. Add destructor.
1609 (struct tui_source_window) <style_changed>: New method.
1610 <m_observable>: New member.
1611
ae2b5380
TT
16122019-07-17 Tom Tromey <tom@tromey.com>
1613
1614 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1615 * tui/tui-win.c (tui_resize_all): Fix typo.
1616
1ce3e844
TT
16172019-07-17 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1620 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1621 (tui_refresh_all): Remove "list" parameter. Use foreach.
1622 * tui/tui-win.c (window_name_completer): Use foreach.
1623 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1624 (update_tab_width): Likewise.
1625 * tui/tui-layout.c (show_layout): Update.
1626 * tui/tui-data.h (class tui_window_iterator): New.
1627 (struct all_tui_windows): New.
1628 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1629
fe3eaf1c
TT
16302019-07-17 Tom Tromey <tom@tromey.com>
1631
1632 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1633 parameter. Don't reference globals.
1634 (tui_reg_command): Update.
1635
368c1354
TT
16362019-07-17 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-regs.c (tui_show_registers): Simplify.
1639
e80cd204
TT
16402019-07-17 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-regs.c (tui_show_registers): Update.
1643 (tui_show_register_group): Add win_info parameter.
1644
aca2dd16
TT
16452019-07-17 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1648 Rename from tui_display_reg_element_at_line.
1649 (tui_data_window::display_registers_from_line): Update.
1650 * tui/tui-data.h (struct tui_data_window)
1651 <display_reg_element_at_line>: New method.
1652
517e9505
TT
16532019-07-17 Tom Tromey <tom@tromey.com>
1654
1655 * tui/tui-regs.h (tui_display_registers_from)
1656 (tui_display_registers_from_line): Don't declare.
1657 * tui/tui-windata.c (tui_data_window::display_all_data)
1658 (tui_data_window::refresh_all)
1659 (tui_data_window::do_scroll_vertical): Update.
1660 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1661 from tui_display_registers_from.
1662 (tui_display_reg_element_at_line): Update.
1663 (tui_data_window::display_registers_from_line): Rename from
1664 tui_display_registers_from_line.
1665 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1666 display_registers_from_line>: New methods.
1667
f76d8b19
TT
16682019-07-17 Tom Tromey <tom@tromey.com>
1669
1670 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1671 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1672 from tui_erase_data_content.
1673 (tui_data_window::display_all_data)
1674 (tui_data_window::refresh_all)
1675 (tui_data_window::do_scroll_vertical): Update.
1676 * tui/tui-regs.c (tui_show_registers): Update.
1677 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1678 New method.
1679
b4094625
TT
16802019-07-17 Tom Tromey <tom@tromey.com>
1681
1682 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1683 declare.
1684 * tui/tui-windata.c
1685 (tui_data_window::delete_data_content_windows): Rename from
1686 tui_delete_data_content_windows.
1687 (tui_data_window::display_all_data)
1688 (tui_data_window::do_scroll_vertical): Update.
1689 * tui/tui-data.h (struct tui_data_window)
1690 <delete_data_content_windows>: New method.
1691
c223a729
TT
16922019-07-17 Tom Tromey <tom@tromey.com>
1693
1694 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1695 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1696
50daf268
TT
16972019-07-17 Tom Tromey <tom@tromey.com>
1698
1699 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1700 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1701 from tui_display_all_data.
1702 * tui/tui-win.c
1703 (tui_data_window::do_make_visible_with_new_height): Update.
1704 * tui/tui-regs.c (tui_show_registers): Update.
1705 * tui/tui-layout.c (tui_set_layout): Update.
1706 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1707 method.
1708
df5f8cab
TT
17092019-07-17 Tom Tromey <tom@tromey.com>
1710
1711 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1712 * tui/tui-windata.c (tui_display_data_from): Remove.
1713 (tui_data_window::refresh_all): Update.
1714
80cb6c27
TT
17152019-07-17 Tom Tromey <tom@tromey.com>
1716
1717 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1718 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1719 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1720 tui_display_registers_from_line.
1721 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1722 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1723 "force_display" parameter.
1724
baff0c28
TT
17252019-07-17 Tom Tromey <tom@tromey.com>
1726
1727 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1728 declare.
1729 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1730 Rename from tui_first_reg_element_no_inline.
1731 (tui_display_reg_element_at_line)
1732 (tui_display_registers_from_line): Update.
1733 * tui/tui-data.h (struct tui_data_window)
1734 <first_reg_element_no_inline>: New method.
1735
3b23c5f2
TT
17362019-07-17 Tom Tromey <tom@tromey.com>
1737
1738 * tui/tui-windata.c (tui_display_data_from)
1739 (tui_data_window::do_scroll_vertical): Update.
1740 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1741 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1742 Rename from tui_line_from_reg_element_no.
1743 (tui_display_registers_from_line): Update.
1744 * tui/tui-data.h (struct tui_data_window)
1745 <line_from_reg_element_no>: New method.
1746
0b5ec218
TT
17472019-07-17 Tom Tromey <tom@tromey.com>
1748
1749 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1750 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1751 tui_last_regs_line_no.
1752 (tui_display_reg_element_at_line)
1753 (tui_display_registers_from_line): Update.
1754 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1755 method.
1756
0807ab7b
TT
17572019-07-17 Tom Tromey <tom@tromey.com>
1758
1759 PR tui/24722:
1760 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1761 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1762 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1763 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1764 (tui_update_breakpoint_info): Likewise.
1765 * tui/tui-hooks.c (tui_event_create_breakpoint)
1766 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1767 Update.
1768
9ad7fdef
TT
17692019-07-17 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1772
5813316f
TT
17732019-07-17 Tom Tromey <tom@tromey.com>
1774
1775 * tui/tui-winsource.c (tui_update_source_window_as_is)
1776 (tui_update_source_windows_with_addr): Update.
1777 * tui/tui-source.h (tui_set_source_content)
1778 (tui_show_symtab_source): Add "win_info" parameter.
1779 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1780 parameter.
1781 (tui_show_symtab_source): Likewise.
1782
00e264e7
TT
17832019-07-17 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui-wingeneral.c
1786 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1787
06210ce4
TT
17882019-07-17 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1791 (struct tui_cmd_window) <can_scroll>: New method.
1792 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1793 method.
1794
381befee
TT
17952019-07-17 Tom Tromey <tromey@adacore.com>
1796
1797 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1798 do_field_signed>: Rename. Change type of "value".
1799 * ui-out.c (ui_out::field_signed): Rename from field_int.
1800 Change type of "value".
1801 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1802 type of "value".
1803 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1804 do_field_int. Change type of "value".
1805 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1806 do_field_int. Change type of "value".
1807 * tracepoint.c (trace_status_mi, tfind_1)
1808 (print_one_static_tracepoint_marker): Update.
1809 * thread.c (print_thread_info_1, print_selected_thread_frame):
1810 Update.
1811 * stack.c (print_frame, print_frame_info): Update.
1812 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1813 Update.
1814 * source.c (print_source_lines_base): Update.
1815 * skip.c (info_skip_command): Update.
1816 * record-btrace.c (btrace_ui_out_decode_error)
1817 (btrace_call_history_src_line): Update.
1818 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1819 Update.
1820 * progspace.c (print_program_space): Update.
1821 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1822 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1823 do_field_int. Change type of "value".
1824 * mi/mi-out.c (mi_ui_out::do_table_begin)
1825 (mi_ui_out::do_table_header): Update.
1826 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1827 type of "value".
1828 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1829 (mi_cmd_data_list_changed_registers, output_register)
1830 (mi_cmd_data_read_memory, mi_load_progress)
1831 (mi_cmd_trace_frame_collected): Update.
1832 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1833 Update.
1834 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1835 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1836 (mi_cmd_var_list_children, varobj_update_one): Update.
1837 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1838 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1839 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1840 * inferior.c (print_inferior): Update.
1841 * gdb_bfd.c (print_one_bfd): Update.
1842 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1843 Update.
1844 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1845 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1846 do_field_int. Change type of "value".
1847 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1848 do_field_int. Change type of "value".
1849 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1850 (print_one_breakpoint_location, print_it_catch_fork)
1851 (print_one_catch_fork, print_it_catch_vfork)
1852 (print_one_catch_vfork, print_it_catch_solib)
1853 (print_it_catch_exec, print_it_ranged_breakpoint)
1854 (print_mention_watchpoint, print_mention_masked_watchpoint)
1855 (bkpt_print_it, update_static_tracepoint): Update.
1856 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1857 * break-catch-syscall.c (print_it_catch_syscall): Update.
1858 * ada-tasks.c (print_ada_task_info): Update.
1859 * ada-lang.c (print_it_exception, print_mention_exception):
1860 Update.
1861
6b78c3f8
AB
18622019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 PR breakpoints/24541
1865 * gdbarch.c: Regenerate.
1866 * gdbarch.h: Regenerate.
1867 * gdbarch.sh: Adjust return type and parameter types for
1868 'stap_adjust_register'.
1869 (i386_stap_adjust_register): Adjust signature and return new
1870 register name.
1871 * stap-probe.c (stap_parse_register_operand): Adjust use of
1872 'gdbarch_stap_adjust_register'.
1873
d72a9b85
TT
18742019-07-17 Tom Tromey <tromey@adacore.com>
1875
1876 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1877 declare VEC.
1878 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1879 std::vector.
1880 (struct s390_process_info): Add initializers.
1881 (s390_add_process): Use new.
1882 (s390_linux_nat_target::low_forget_process): Use delete.
1883 (s390_linux_nat_target::low_new_fork)
1884 (s390_linux_nat_target::stopped_by_watchpoint)
1885 (s390_linux_nat_target::low_prepare_to_resume)
1886 (s390_linux_nat_target::insert_watchpoint)
1887 (s390_linux_nat_target::insert_hw_breakpoint)
1888 (s390_linux_nat_target::remove_watchpoint)
1889 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1890
206e6c58
JB
18912019-07-16 John Baldwin <jhb@FreeBSD.org>
1892
1893 * aarch64-fbsd-nat.c: Include regcache.h.
1894 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1895 argument.
1896 (aarch64_fbsd_nat_target::fetch_registers)
1897 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1898 variable.
1899 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1900
cbde90f2
JB
19012019-07-16 John Baldwin <jhb@FreeBSD.org>
1902
1903 * fbsd-nat.c: Include gdbarch.h.
1904
07128006
TT
19052019-07-15 Tom Tromey <tromey@adacore.com>
1906
1907 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1908
1f77b012
TT
19092019-07-15 Tom Tromey <tromey@adacore.com>
1910
1911 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1912 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1913 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1914 * cli-out.c (cli_ui_out::do_field_int): New method.
1915 * ui-out.c (ui_out::field_unsigned): New method.
1916 * symfile.c (generic_load): Use field_unsigned.
1917 (print_transfer_performance): Likewise.
1918 * record-btrace.c (ui_out_field_uint): Remove.
1919 (btrace_call_history_insn_range, btrace_call_history): Use
1920 field_unsigned.
1921 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1922 field_unsigned.
1923 * ui-out.h (class ui_out) <field_unsigned>: New method.
1924 <do_field_unsigned>: Likewise.
1925
33eca680
TT
19262019-07-15 Tom Tromey <tromey@adacore.com>
1927
1928 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1929 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1930 * target.c (flash_erase_command): Use field_string.
1931 * infrun.c (print_signal_received_reason): Use field_string.
1932 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1933 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1934 field_string.
1935 * ada-tasks.c (print_ada_task_info): Use field_string.
1936
ca8d69be
TT
19372019-07-15 Tom Tromey <tromey@adacore.com>
1938
1939 * target.c (flash_erase_command): Use field_core_addr.
1940 * symfile.c (generic_load): Use field_core_addr.
1941 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1942 Use field_core_addr.
1943 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1944 field_core_addr.
1945
0d4e84ed
AB
19462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1949 value if its desired type is smaller than a CORE_ADDR and signed.
1950
9a49df9d
AB
19512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1954 of changes to field names, and use new is_reference field to
1955 decide if a property is a reference or not.
1956 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1957 field.
1958 (struct dwarf2_property_baton): Update header comment, rename
1959 'referenced_type' to 'property_type' and update comments.
1960 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1961 default property type, store in property baton, update to take
1962 accound of renamed field.
1963 (read_func_scope): Update call to attr_to_dynamic_prop.
1964 (read_array_type): Likewise.
1965 (dwarf2_per_cu_addr_sized_int_type): New function.
1966 (read_subrange_index_type): Move type finding code to
1967 dwarf2_per_cu_addr_sized_int_type.
1968 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1969 (dwarf2_per_cu_addr_type): New function.
1970 (set_die_type): Update calls to attr_to_dynamic_prop.
1971
b86352cf
AB
19722019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * dwarf2read.c (read_subrange_index_type): New function.
1975 (read_subrange_type): Move code into new function and call it.
1976 * gdbtypes.c (create_range_type): Add some asserts.
1977
603490bf
AB
19782019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1981 update return statements.
1982 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1983 declaration, and update comment to match.
1984 * gdbtypes.c (resolve_dynamic_array): Update call to
1985 dwarf2_evaluate_property to match new return type.
1986
592f9d27
AB
19872019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * valarith.c (value_subscripted_rvalue): Change lowerbound
1990 parameter type from int to LONGEST.
1991 * value.h (value_subscripted_rvalue): Likewise in declaration.
1992
60cfcb20
AB
19932019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * cli/cli-utils.c (info_print_command_completer): New function.
1996 * cli/cli-utils.h: Add 'completer.h' include, and forward
1997 declaration for 'struct cmd_list_element'.
1998 (info_print_command_completer): Declare.
1999 * stack.c (_initialize_stack): Add completer for 'info locals' and
2000 'info args'.
2001 * symtab.c (_initialize_symtab): Add completer for 'info
2002 variables' and 'info functions'.
2003 * NEWS: Mention completion for additional info commands.
2004
b16507e0
AB
20052019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2006
2007 * cli/cli-utils.c (extract_info_print_args): Delete.
2008 (extract_arg_maybe_quoted): Delete.
2009 (info_print_options_defs): New variable.
2010 (make_info_print_options_def_group): New function.
2011 (extract_info_print_options): Define new function.
2012 * cli/cli-utils.h (extract_info_print_args): Delete.
2013 (struct info_print_options): New structure.
2014 (extract_info_print_options): Declare new function.
2015 * stack.c (info_locals_command): Update to use new
2016 extract_info_print_options, also add a header comment.
2017 (info_args_command): Likewise.
2018 * symtab.c (info_variables_command): Likewise.
2019 (info_functions_command): Likewise.
2020
021d8588
AB
20212019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2024 to extract string arguments.
2025 * common/common-utils.c (extract_string_maybe_quoted): New function.
2026 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2027
b777eb6d
TT
20282019-07-11 Tom Tromey <tromey@adacore.com>
2029
2030 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2031 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2032 * top.h (gdbinit): Don't declare.
2033 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2034 into...
2035 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2036 * top.c (gdb_init): Don't call init_cli_cmds.
2037 (gdbinit): Remove.
2038 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2039
72ee03ff
TT
20402019-07-11 Tom Tromey <tromey@adacore.com>
2041
2042 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2043 after it has been moved.
2044
00db9531
SM
20452019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * valops.c (value_must_coerce_to_target): Change return type to
2048 bool.
2049 * value.h (value_must_coerce_to_target): Likewise.
2050
f2478a7e
SM
20512019-07-10 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * breakpoint.c (is_hardware_watchpoint): Remove
2054 forward-declaration.
2055 (is_masked_watchpoint): Change return type to bool.
2056 (is_tracepoint): Likewise.
2057 (is_breakpoint): Likewise.
2058 (is_hardware_watchpoint): Likewise.
2059 (is_watchpoint): Likewise.
2060 (is_no_memory_software_watchpoint): Likewise.
2061 (is_catchpoint): Likewise.
2062 (breakpoint_1): Make FILTER parameter's return type bool.
2063 is_masked_watchpoint): Change return type to bool.
2064 (save_breakpoints): Make FILTER parameter's return type bool.
2065 * breakpoint.h (is_breakpoint): Change return type to bool.
2066 (is_watchpoint): Likewise.
2067 (is_catchpoint): Likewise.
2068 (is_tracepoint): Likewise.
2069
0d12e84c
TT
20702019-07-10 Tom Tromey <tom@tromey.com>
2071
2072 * defs.h: Don't include gdbarch.h.
2073 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2074 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2075 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2076 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2077 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2078 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2079 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2080 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2081 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2082 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2083 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2084 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2085 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2086 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2087 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2088 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2089 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2090 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2091 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2092 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2093 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2094 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2095 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2096 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2097 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2098 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2099 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2100
f06f1252
TT
21012019-07-10 Tom Tromey <tromey@adacore.com>
2102
2103 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2104 * breakpoint.c (init_ada_exception_breakpoint): Register as
2105 bp_catchpoint.
2106 (print_one_breakpoint_location, print_one_breakpoint): Use
2107 is_ada_exception_catchpoint.
2108 * ada-lang.c (class ada_catchpoint_location): Pass
2109 bp_loc_software_breakpoint to bp_location constructor.
2110 (is_ada_exception_catchpoint): New function.
2111
7a5d944b
TT
21122019-07-10 Tom Tromey <tromey@adacore.com>
2113
2114 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2115 VEC.
2116 (struct arm_exidx_entry): New method operator<.
2117 (struct arm_exidx_data) <section_maps>: Change type.
2118 (arm_exidx_data_free): Remove.
2119 (arm_exidx_data_key): Change type. Move lower.
2120 (arm_exidx_new_objfile): Update.
2121 (arm_compare_exidx_entries): Remove.
2122 (arm_find_exidx_entry, _initialize_arm_tdep)
2123
48c66e1d
TT
21242019-07-10 Tom Tromey <tromey@adacore.com>
2125
2126 * solib-spu.c (ocl_program_data_key): Change type.
2127 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2128 Update.
2129
a269fbf1
TT
21302019-07-10 Tom Tromey <tromey@adacore.com>
2131
2132 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2133 (struct solib_aix_inferior_data) <library_list>: Change type.
2134 (solib_aix_inferior_data_handle): Change type.
2135 (get_solib_aix_inferior_data): Update.
2136 (solib_aix_free_library_list): Remove.
2137 (library_list_start_library): Update.
2138 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2139 return type.
2140 (solib_aix_get_library_list)
2141 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2142 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2143
c294730c
TT
21442019-07-10 Tom Tromey <tromey@adacore.com>
2145
2146 * solib-dsbt.c (struct dsbt_info): Add initializers.
2147 (solib_dsbt_pspace_data): Change type.
2148 (dsbt_pspace_data_cleanup): Remove.
2149 (get_dsbt_info, _initialize_dsbt_solib): Update.
2150
9d52077d
TT
21512019-07-10 Tom Tromey <tromey@adacore.com>
2152
2153 * spu-tdep.c (spu_overlay_data): Change type.
2154 (spu_get_overlay_table, spu_overlay_new_objfile)
2155 (_initialize_spu_tdep): Update.
2156
22a20dca
TT
21572019-07-10 Tom Tromey <tromey@adacore.com>
2158
2159 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2160 destructor.
2161 (dbx_objfile_data_key): Change type and declare later.
2162 (DBX_SYMFILE_INFO): Rewrite.
2163 * dbxread.c (dbx_objfile_data_key): Change type.
2164 (dbx_symfile_init): Update.
2165 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2166 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2167 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2168
cb60f420
TT
21692019-07-10 Tom Tromey <tromey@adacore.com>
2170
2171 * jit.c (jit_program_space_key): Change type. Move lower.
2172 (get_jit_program_space_data): Update.
2173 (jit_program_space_data_cleanup): Remove.
2174 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2175 Update.
2176 (struct jit_program_space_data): Add initializers.
2177
51df2ae3
TT
21782019-07-10 Tom Tromey <tromey@adacore.com>
2179
2180 * solib-darwin.c (struct darwin_info): Add initializers.
2181 (solib_darwin_pspace_data): Change type.
2182 (darwin_pspace_data_cleanup): Remove.
2183 (get_darwin_info, _initialize_darwin_solib): Update.
2184
18101a35
TT
21852019-07-10 Tom Tromey <tromey@adacore.com>
2186
2187 * remote-sim.c (struct sim_inferior_data): Add initializers,
2188 constructor, and destructor.
2189 (sim_inferior_data_key): Change type. Move lower.
2190 (check_for_duplicate_sim_descriptor): Update.
2191 (get_sim_inferior_data): Use new. Update.
2192 (~sim_inferior_data_cleanup): Rename from
2193 sim_inferior_data_cleanup. Simplify.
2194 (gdbsim_close_inferior, simulator_command)
2195 (sim_command_completer, _initialize_remote_sim): Update.
2196 (next_pid, INITIAL_PID): Move earlier.
2197
05b08ac1
TT
21982019-07-10 Tom Tromey <tromey@adacore.com>
2199
2200 * python/python-internal.h (create_thread_object): Return
2201 gdbpy_ref.
2202 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2203 * python/py-inferior.c (struct threadlist_entry): Add
2204 constructor.
2205 <thread_obj>: Now a gdbpy_ref.
2206 (thread_to_thread_object): Update.
2207 (add_thread_object): Use new.
2208 (delete_thread_object): Use delete.
2209 (infpy_threads): Update.
2210 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2211 GIL.
2212
32372d80
TT
22132019-07-10 Tom Tromey <tromey@adacore.com>
2214
2215 * valops.c (value_cast): Specialize error message for Ada.
2216
5c458ae8
SM
22172019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2218
2219 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2220
4c462cb0
SM
22212019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2224 bpstat_should_step): Return bool, adjust comments.
2225 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2226 bpstat_should_step): Likewise.
2227
89abbcc2
AH
22282019-07-10 Alan Hayward <alan.hayward@arm.com>
2229
2230 * features/Makefile: Use feature target descriptions for Arm.
2231 * features/arm/arm-core.c: Generate new file.
2232 * features/arm/arm-fpa.c: Likewise.
2233 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2234 * features/arm/arm-m-profile.c: Likewise.
2235 * features/arm/arm-vfpv2.c: Likewise.
2236 * features/arm/arm-vfpv3.c: Likewise.
2237 * features/arm/xscale-iwmmxt.c: Likewise.
2238 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2239
166a82be
AH
22402019-07-10 Alan Hayward <alan.hayward@arm.com>
2241
2242 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2243 ptrace earlier.
2244
9fb4c7e9
AH
22452019-07-10 Alan Hayward <alan.hayward@arm.com>
2246
2247 * features/aarch64-pauth.c: Regenerate.
2248
e2d0f980
SM
22492019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2252 bool.
2253 (bpstat_what): Use false instead of 0.
2254
a38118e5
PA
22552019-07-09 Pedro Alves <palves@redhat.com>
2256
2257 * break-catch-throw.c (is_exception_catchpoint): New.
2258 * breakpoint.c (print_one_breakpoint_location): New parameter
2259 'raw_loc'. Handle it. Use
2260 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2261 looking at the breakpoint's type.
2262 (print_one_breakpoint): If handling "maint info breakpoints", also
2263 print locations of exception catchpoints.
2264 * breakpoint.h (is_exception_catchpoint): Declare.
2265
cb1e4e32
PA
22662019-07-09 Pedro Alves <palves@redhat.com>
2267
2268 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2269 "addr" field.
2270 (allocate_location_exception_catchpoint): New.
2271 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2272 (initialize_throw_catchpoint_ops): Install
2273 allocate_location_exception_catchpoint as allocate_location
2274 method.
2275 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2276 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2277 bp_loc_other.
2278 (breakpoint_address_is_meaningful): Delete.
2279 (bl_address_is_meaningful): New.
2280 (breakpoint_locations_match): Adjust comment.
2281 (bp_location_from_bp_type): New, factored out of...
2282 (bp_location::bp_location(breakpoint *)): ... this.
2283 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2284 factored out of...
2285 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2286 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2287 breakpoint_address_is_meaningful.
2288 (bp_locations_compare): Adjust comment.
2289 (update_global_location_list): Use bl_address_is_meaningful
2290 instead of breakpoint_address_is_meaningful.
2291 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2292 explicit.
2293 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2294 * python/py-breakpoint.c (bppy_get_location): No longer check
2295 whether location is null.
2296
b58a68fe
PA
22972019-07-09 Pedro Alves <palves@redhat.com>
2298
2299 PR c++/15468
2300 * breakpoint.c (print_one_breakpoint_location): Remove
2301 single-location assert.
2302
268a13a5
TT
23032019-07-09 Tom Tromey <tom@tromey.com>
2304
2305 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2306 * configure: Rebuild.
2307 * configure.ac: Change common to gdbsupport.
2308 * gdbsupport: Rename from common.
2309 * acinclude.m4: Change common to gdbsupport.
2310 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2311 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2312 gdbsupport.
2313 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2314 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2315 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2316 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2317 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2318 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2319 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2320 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2321 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2322 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2323 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2324 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2325 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2326 coff-pe-read.c, command.h, compile/compile-c-support.c,
2327 compile/compile-c.h, compile/compile-cplus-symbols.c,
2328 compile/compile-cplus-types.c, compile/compile-cplus.h,
2329 compile/compile-loc2c.c, compile/compile.c, completer.c,
2330 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2331 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2332 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2333 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2334 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2335 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2336 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2337 features/aarch64-core.c, features/aarch64-fpu.c,
2338 features/aarch64-pauth.c, features/aarch64-sve.c,
2339 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2340 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2341 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2342 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2343 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2344 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2345 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2346 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2347 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2348 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2349 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2350 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2351 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2352 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2353 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2354 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2355 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2356 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2357 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2358 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2359 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2360 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2361 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2362 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2363 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2364 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2365 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2366 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2367 minsyms.c, mips-linux-tdep.c, namespace.h,
2368 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2369 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2370 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2371 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2372 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2373 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2374 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2375 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2376 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2377 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2378 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2379 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2380 procfs.c, producer.c, progspace.h, psymtab.h,
2381 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2382 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2383 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2384 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2385 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2386 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2387 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2388 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2389 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2390 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2391 target-memory.c, target.c, target.h, target/waitstatus.c,
2392 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2393 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2394 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2395 unittests/array-view-selftests.c,
2396 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2397 unittests/common-utils-selftests.c,
2398 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2399 unittests/format_pieces-selftests.c,
2400 unittests/function-view-selftests.c,
2401 unittests/lookup_name_info-selftests.c,
2402 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2403 unittests/mkdir-recursive-selftests.c,
2404 unittests/observable-selftests.c,
2405 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2406 unittests/parse-connection-spec-selftests.c,
2407 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2408 unittests/scoped_fd-selftests.c,
2409 unittests/scoped_mmap-selftests.c,
2410 unittests/scoped_restore-selftests.c,
2411 unittests/string_view-selftests.c, unittests/style-selftests.c,
2412 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2413 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2414 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2415 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2416 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2417 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2418
5b0e2db4
AB
24192019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2422 bool value.
2423 (decode_digits_ordinary): Set explicit_line field in sal.
2424 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2425 symtab_and_line that was set on an explicit line number in
2426 assembler code. Do always update the recorded symtab and line if
2427 we do skip the prologue.
2428
0ba852ab
AB
24292019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * breakpoint.c (set_breakpoint_location_function): Remove
2432 explicit_loc parameter.
2433 (momentary_breakpoint_from_master): Update call to
2434 set_breakpoint_location_function.
2435 (add_location_to_breakpoint): Likewise.
2436
b3a7d171
AB
24372019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2440 required features based on default bfd type when no specific bfd
2441 is present.
2442
1f6f6e21
PW
24432019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2444
2445 * NEWS: Mention that GDB printf and eval commands can now print
2446 C-style and Ada-style convenience var strings without
2447 calling the inferior.
2448 * printcmd.c (printf_c_string): Locally print GDB internal var
2449 instead of transiting via the inferior.
2450 (printf_wide_c_string): Likewise.
2451
24522019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2453
2454 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2455
0598af48
TT
24562019-07-04 Tom Tromey <tom@tromey.com>
2457
2458 PR tui/24724:
2459 * tui/tui-winsource.c (tui_clear_source_content): Update.
2460 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2461 (tui_update_breakpoint_info): Update.
2462 (tui_set_exec_info_content): Update.
2463 * tui/tui-source.c (tui_set_source_content_nil): Update.
2464 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2465 has_break.
2466 * tui/tui-data.h (enum tui_bp_flag): New.
2467 (tui_bp_flags): New enum flags type.
2468 (struct tui_source_element) <break_mode>: Change type. Rename
2469 from has_break.
2470 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2471 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2472 constants.
2473 * tui/tui-winsource.h: Fix comment.
2474
350fab54
AH
24752019-07-04 Alan Hayward <alan.hayward@arm.com>
2476
2477 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2478 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2479 (store_fpregs_to_thread)
2480 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2481 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2482 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2483 (IWMMXT_REGS_SIZE): Add define.
2484 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2485 (fetch_vfp_regs, store_vfp_regs)
2486 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2487 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2488
f0452268
AH
24892019-07-04 Alan Hayward <alan.hayward@arm.com>
2490
2491 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2492 defines.
2493 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2494 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2495 (ARM_INT_REGISTER_SIZE): ...to this.
2496 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2497 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2498 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2499 (arm_linux_collect_gregset, supply_nwfpe_register)
2500 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2501 defines.
2502 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2503 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2504 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2505 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2506 (arm_return_in_memory, arm_store_return_value)
2507 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2508 (arm_record_ld_st_multiple): Likewise.
2509 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2510 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2511
e935475c
AH
25122019-07-04 Alan Hayward <alan.hayward@arm.com>
2513
2514 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2515 AARCH64_DISPLACED_MODIFIED_INSNS.
2516 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2517 (aarch64_displaced_step_copy_insn): Likewise.
2518 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2519 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2520 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2521 ARM_DISPLACED_MODIFIED_INSNS.
2522 * arm-tdep.c (arm_gdbarch_init): Likewise.
2523 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2524 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2525 (struct arm_displaced_step_closure): Use
2526 ARM_DISPLACED_MODIFIED_INSNS.
2527
df0bb381
AH
25282019-07-04 Alan Hayward <alan.hayward@arm.com>
2529
2530 * features/Makefile: Remove unused xml files.
2531 * features/aarch64.xml: Remove.
2532 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2533 * features/i386/amd64-avx-avx512.xml: Remove.
2534 * features/i386/amd64-avx-linux.xml: Remove.
2535 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2536 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2537 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2538 * features/i386/amd64-avx-mpx.xml: Remove.
2539 * features/i386/amd64-avx.xml: Remove.
2540 * features/i386/amd64-linux.xml: Remove.
2541 * features/i386/amd64-mpx-linux.xml: Remove.
2542 * features/i386/amd64-mpx.xml: Remove.
2543 * features/i386/amd64.xml: Remove.
2544 * features/i386/i386-avx-avx512-linux.xml: Remove.
2545 * features/i386/i386-avx-avx512.xml: Remove.
2546 * features/i386/i386-avx-linux.xml: Remove.
2547 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2548 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2549 * features/i386/i386-avx-mpx-linux.xml: Remove.
2550 * features/i386/i386-avx-mpx.xml: Remove.
2551 * features/i386/i386-avx.xml: Remove.
2552 * features/i386/i386-linux.xml: Remove.
2553 * features/i386/i386-mmx-linux.xml: Remove.
2554 * features/i386/i386-mmx.xml: Remove.
2555 * features/i386/i386-mpx-linux.xml: Remove.
2556 * features/i386/i386-mpx.xml: Remove.
2557 * features/i386/i386.xml: Remove.
2558 * features/i386/x32-avx-avx512-linux.xml: Remove.
2559 * features/i386/x32-avx-linux.xml: Remove.
2560 * features/i386/x32-linux.xml: Remove.
2561
edd6266a
AH
25622019-07-04 Alan Hayward <alan.hayward@arm.com>
2563
2564 * regformats/aarch64.dat: Remove.
2565 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2566 * regformats/i386/amd64-avx-linux.dat: Remove.
2567 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2568 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2569 * regformats/i386/amd64-linux.dat: Remove.
2570 * regformats/i386/amd64-mpx-linux.dat: Remove.
2571 * regformats/i386/amd64.dat: Remove.
2572 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2573 * regformats/i386/i386-avx-linux.dat: Remove.
2574 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2575 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2576 * regformats/i386/i386-linux.dat: Remove.
2577 * regformats/i386/i386-mmx-linux.dat: Remove.
2578 * regformats/i386/i386-mpx-linux.dat: Remove.
2579 * regformats/i386/i386.dat: Remove.
2580 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2581 * regformats/i386/x32-avx-linux.dat: Remove.
2582 * regformats/i386/x32-linux.dat: Remove.
2583
2b40fda7
AH
25842019-07-04 Alan Hayward <alan.hayward@arm.com>
2585
2586 * aarch64-tdep.c: Remove xml self tests.
2587 * amd64-linux-tdep.c: Likewise.
2588 * amd64-tdep.c: Likewise.
2589 * i386-linux-tdep.c: Likewise.
2590 * i386-tdep.c: Likewise.
2591
5f4ba3e7
PA
25922019-07-03 Pedro Alves <palves@redhat.com>
2593
2594 PR cli/24732
2595 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2596 (pipe_cmd_option_defs): New.
2597 (make_pipe_cmd_options_def_group): New.
2598 (pipe_command): Use gdb::option::process_options.
2599 (pipe_command_completer): New function.
2600 (_initialize_cli_cmds): Install completer for "pipe" command.
2601
3d9be6f5
PA
26022019-07-03 Pedro Alves <palves@redhat.com>
2603
2604 * cli/cli-option.c (union option_value) <string>: New field.
2605 (struct option_def_and_value): Add ctor, move ctor, dtor and
2606 use DISABLE_COPY_AND_ASSIGN.
2607 (option_def_and_value::clear_value): New.
2608 (parse_option, save_option_value_in_ctx, get_val_type_str)
2609 (add_setshow_cmds_for_options): Handle var_string.
2610 * cli-option.h (union option_def::var_address) <string>: New
2611 field.
2612 (struct string_option_def): New.
2613 * maint-test-options.c (struct test_options_opts): Add default
2614 ctor and use DISABLE_COPY_AND_ASSIGN.
2615 <string_opt>: New field.
2616 (test_options_opts::~test_options_opts): New.
2617 (test_options_opts::dump): Also dump "-string".
2618 (test_options_option_defs): Install "string.
2619
41fc454c
PA
26202019-07-03 Pedro Alves <palves@redhat.com>
2621
2622 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2623 option_value with a null enumeration.
2624 (complete_options): Save the option values in the context.
2625 (save_option_value_in_ctx): New, factored out from ...
2626 (process_options): ... here.
2627 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2628 of the function.
2629 * maint-test-options.c (test_options_opts::dump): New, factored
2630 out from ...
2631 (maintenance_test_options_command_mode): ... here.
2632 (maintenance_test_options_command_completion_result): Delete.
2633 (maintenance_test_options_command_completion_text): Update
2634 comment.
2635 (maintenance_show_test_options_completion_result): Change
2636 prototype. Just print
2637 maintenance_test_options_command_completion_text.
2638 (save_completion_result): New.
2639 (maintenance_test_options_completer_mode): Pass options context to
2640 complete_options, and then save a dump.
2641 (_initialize_maint_test_options): Use add_cmd to install "maint
2642 show test-options-completion-result".
2643
fdbc9870
PA
26442019-07-03 Pedro Alves <palves@redhat.com>
2645
2646 * NEWS (New commands): Mention "with" and "maint with".
2647 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2648 (with_command, with_command_completer): New.
2649 (pipe_command): Adjust to new repeat_previous
2650 interface.
2651 (_initialize_cli_cmds): Install the "with" command and its "w"
2652 alias.
2653 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2654 declarations.
2655 * cli/cli-setshow.c (parse_cli_var_uinteger)
2656 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2657 argument strings for all var_types.
2658 (get_setshow_command_value_string): New, factored out from ...
2659 (do_show_command): ... this.
2660 * cli/cli-setshow.h: Include <string>.
2661 (get_setshow_command_value_string): Declare.
2662 * command.h (repeat_previous): Now returns const char *. Adjust
2663 comment.
2664 * maint.c: Include "cli/cli-cmds.h".
2665 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2666 (_initialize_maint_cmds): Register the "maintenance with" command.
2667 * top.c (repeat_previous): Move bits from pipe_command here:
2668 Return the saved command line, if any; error out if there's no
2669 command to relaunch.
2670
c6ac8931
PA
26712019-07-03 Pedro Alves <palves@redhat.com>
2672
2673 * NEWS (New commands): Mention "maint set/show test-settings"
2674 instead of "maint test-settings".
2675 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2676 (maintenance_test_settings_set_list): Rename to ...
2677 (maintenance_set_test_settings_list): ... this.
2678 (maintenance_test_settings_show_list): Rename to ...
2679 (maintenance_show_test_settings_list): ... this.
2680 (maintenance_test_settings_cmd): Delete.
2681 (maintenance_test_settings_set_cmd): ...
2682 (maintenance_set_test_settings_cmd): ... this.
2683 (maintenance_test_settings_show_cmd): ...
2684 (maintenance_show_test_settings_cmd): ... this.
2685 (maintenance_test_settings_show_value_cmd):
2686 (maintenance_show_test_settings_value_cmd): ... this.
2687 (_initialize_maint_test_settings): No longer install the "maint
2688 test-settings" prefix command. Rename "maint test-settings set"
2689 to "maint set test-settings", and "maint test-settings show" to
2690 "maint show test-settings". Adjust all subcommands.
2691
d1fcf2fd
PA
26922019-07-03 Pedro Alves <palves@redhat.com>
2693
2694 * maint-test-settings.c: Fix file's intro comment. Replace all
2695 references to "test-options" with references to "test-settings",
2696 in comments.
2697
970f9d09
PA
26982019-07-03 Pedro Alves <palves@redhat.com>
2699
2700 * maint-test-settings.c (maintenance_test_settings_xxx)
2701 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2702 New.
2703 (maintenance_test_settings_enums): Use them.
2704 (maintenance_test_settings_enum): Default to
2705 maintenance_test_settings_xxx.
2706 (_initialize_maint_test_settings): Initialize
2707 MAINTENANCE_TEST_SETTINGS_FILENAME.
2708
f3869b1a
SM
27092019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * breakpoint.h (remove_breakpoints_inf): Change return type to
2712 void, move function documentation here.
2713 * breakpoint.c (remove_breakpoints_inf): Change return type to
2714 void, move function documentation to header.
2715
54d66006
PA
27162019-07-02 Pedro Alves <palves@redhat.com>
2717
2718 * NEWS (Completion improvements): Mention "info threads".
2719 * thread.c (struct info_threads_opts, info_threads_option_defs)
2720 (make_info_threads_options_def_group): New.
2721 (info_threads_command): Use gdb::option::process_options.
2722 (info_threads_command_completer): New.
2723 (_initialize_thread): Use gdb::option::build_help to build the
2724 help text for "info threads".
2725
854f6088
SM
27262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2727
2728 * defs.h (generic_load): Move from here...
2729 * symfile.h (generic_load): ... to here. Rename name parameter
2730 to args.
2731 * symfile.c (generic_load): Add comment.
2732
54ee4252
TT
27332019-07-01 Tom Tromey <tromey@adacore.com>
2734
2735 * dwarf2read.c
2736 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2737 declaration of without_params. Fix formatting.
2738
65392b3e
TT
27392019-07-01 Tom Tromey <tromey@adacore.com>
2740
2741 * ada-exp.y (find_primitive_type): Update.
2742 * ada-lang.h (ada_lookup_symbol): Update.
2743 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2744 parameter.
2745 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2746
7d7571f0
SDJ
27472019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2748
2749 PR breakpoints/24541
2750 * gdbarch.c: Regenerate.
2751 * gdbarch.h: Regenerate.
2752 * gdbarch.sh: Add 'stap_adjust_register'.
2753 * i386-tdep.c: Include '<unordered_set>'.
2754 (i386_stap_adjust_register): New function.
2755 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2756 * stap-probe.c (stap_parse_register_operand): Call
2757 'gdbarch_stap_adjust_register'.
2758
5af5392a
SDJ
27592019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2760
2761 PR python/24742
2762 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2763 * python/python.c (do_start_initialization): Use 'xmalloc'
2764 instead of 'PyMem_Malloc'.
2765
10d06d82
TT
27662019-06-28 Tom Tromey <tromey@adacore.com>
2767
2768 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2769 for Ada.
2770
1b7f24cd
TT
27712019-06-27 Tom Tromey <tromey@adacore.com>
2772
2773 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2774 objfile_key.
2775 (arm_find_mapping_symbol, arm_record_special_symbol)
2776 (_initialize_arm_tdep): Update.
2777 (arm_objfile_data_free): Remove.
2778
3d507ff2
TT
27792019-06-27 Tom Tromey <tromey@adacore.com>
2780
2781 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2782 to cp_print_static_field.
2783
762c164d
TT
27842019-06-26 Tom Tromey <tromey@adacore.com>
2785
2786 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2787 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2788 declare.
2789
aa2f9bcf
AH
27902019-06-26 Alan Hayward <alan.hayward@arm.com>
2791
2792 * features/aarch64-core.c (create_feature_aarch64_core):
2793 Regenerate.
2794 * features/aarch64-core.xml: Add cpsr flags.
2795
3426ae57
AH
27962019-06-26 Alan Hayward <alan.hayward@arm.com>
2797
2798 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2799 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2800
4838e44c
SM
28012019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2804 field.
2805 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2806 use.
2807 (arm_record_special_symbol): Don't insert new symbol in sorted
2808 position, push it at the end.
2809
54cc7474
SM
28102019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2811
2812 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2813 (arm_mapping_symbol_s): Remove.
2814 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2815 (arm_mapping_symbol_vec): New typedef.
2816 (struct arm_per_objfile): Add constructor.
2817 <section_maps>: Change type to
2818 std::unique_ptr<arm_mapping_symbol_vec[]>.
2819 (arm_compare_mapping_symbols): Remove.
2820 (arm_find_mapping_symbol): Adjust to section_maps type change.
2821 (arm_objfile_data_free): Call delete on arm_per_objfile.
2822 (arm_record_special_symbol): Adjust to section_maps type change.
2823 Allocate arm_per_objfile with new.
2824
b65b566c
PW
28252019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2826
2827 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2828 with the command prefix.
2829
c2fc64f5
TT
28302019-06-25 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2833 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2834
fb54fa76
TT
28352019-06-25 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2838 type.
2839 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2840 protected.
2841
f7952c57
TT
28422019-06-25 Tom Tromey <tom@tromey.com>
2843
2844 * tui/tui-winsource.c
2845 (tui_source_window_base::set_is_exec_point_at): Add check against
2846 LOA_ADDRESS.
2847
17568d78
TT
28482019-06-25 Tom Tromey <tom@tromey.com>
2849
2850 * tui/tui-source.c (tui_set_source_content): Don't check before
2851 xfree.
2852 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2853
53e7cdba
TT
28542019-06-25 Tom Tromey <tom@tromey.com>
2855
2856 * tui/tui-winsource.h (tui_update_source_window_as_is)
2857 (tui_alloc_source_buffer, tui_line_is_displayed)
2858 (tui_addr_is_displayed): Change type of win_info.
2859 * tui/tui-winsource.c (tui_update_source_window_as_is)
2860 (tui_clear_source_content, tui_show_source_line)
2861 (tui_show_source_content, tui_source_window_base::refill)
2862 (tui_source_window_base::set_is_exec_point_at)
2863 (tui_source_window_base::set_is_exec_point_at)
2864 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2865 (tui_alloc_source_buffer, tui_line_is_displayed)
2866 (tui_addr_is_displayed): Change type of win_info. Update.
2867 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2868 (tui_source_window_base::do_make_visible_with_new_height):
2869 Update.
2870 * tui/tui-source.c (tui_set_source_content)
2871 (tui_set_source_content_nil)
2872 (tui_source_window::do_scroll_vertical): Update.
2873 * tui/tui-layout.c (show_layout): Update.
2874 * tui/tui-disasm.c (tui_set_disassem_content)
2875 (tui_disasm_window::do_scroll_vertical): Update.
2876 * tui/tui-data.h (tui_win_content): Remove.
2877 (struct tui_gen_win_info) <content, content_size>: Remove.
2878 (struct tui_source_element): Add initializers and destructor.
2879 (union tui_which_element, struct tui_win_element): Remove.
2880 (struct tui_source_window_base) <content>: New field.
2881 (struct tui_data_window): Remove destructor.
2882 (tui_alloc_content, tui_free_win_content)
2883 (tui_free_all_source_wins_content): Don't declare.
2884 * tui/tui-data.c (tui_initialize_static_data): Update.
2885 (init_content_element, tui_alloc_content): Remove.
2886 (~tui_gen_win_info): Update.
2887 (~tui_data_window, tui_free_all_source_wins_content)
2888 (tui_free_win_content, free_content, free_content_elements):
2889 Remove.
2890
7908abbf
TT
28912019-06-25 Tom Tromey <tom@tromey.com>
2892
2893 * tui/tui-winsource.h (tui_clear_source_content)
2894 (tui_erase_source_content, tui_show_source_content): Change type
2895 of win_info.
2896 * tui/tui-winsource.c (tui_clear_source_content)
2897 (tui_erase_source_content, tui_show_source_content): Change type
2898 of win_info.
2899 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2900 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2901 win_info.
2902 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2903 win_info.
2904 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2905
02c28df0
TT
29062019-06-25 Tom Tromey <tom@tromey.com>
2907
2908 * tui/tui-winsource.c (tui_clear_source_content)
2909 (tui_source_window_base::set_is_exec_point_at): Update.
2910 * tui/tui-source.c (tui_set_source_content_nil): Update.
2911 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2912 a bool.
2913 * tui/tui-data.c (init_content_element): Update.
2914
6658b1bf
TT
29152019-06-25 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2918 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2919 * tui/tui-layout.c (init_and_make_win): Update.
2920 * tui/tui.h (enum tui_win_type): Update.
2921 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2922 tui_win_is_auxillary.
2923 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2924 tui_win_is_auxillary.
2925
21e1c91e
TT
29262019-06-25 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2929 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2930 (tui_delete_data_content_windows, tui_display_all_data)
2931 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2932 Update.
2933 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2934 * tui/tui-regs.c (tui_last_regs_line_no)
2935 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2936 (tui_show_registers): Update.
2937 (tui_show_register_group): Return void. Update.
2938 (tui_display_registers_from, tui_display_reg_element_at_line)
2939 (tui_display_registers_from_line, tui_check_register_values):
2940 Update.
2941 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2942 member.
2943 (struct tui_data_window) <regs_content>: Now a std::vector.
2944 <regs_content_count>: Remove.
2945 (tui_add_content_elements, tui_free_data_content): Don't declare.
2946 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2947 (init_content_element): Remove DATA_WIN case. Add assert.
2948 (tui_add_content_elements): Remove.
2949 (tui_data_window): Update.
2950 (tui_free_data_content): Remove.
2951 (free_content_elements): Remove DATA_WIN case.
2952
115ac53b
TT
29532019-06-25 Tom Tromey <tom@tromey.com>
2954
2955 * tui/tui-data.c (tui_data_item_window): Update.
2956 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2957 * tui/tui-windata.c (tui_display_all_data)
2958 (tui_display_data_from_line): Update.
2959 (tui_check_data_values): Remove.
2960 * tui/tui-regs.c (tui_show_register_group)
2961 (tui_display_reg_element_at_line): Update.
2962 * tui/tui-hooks.c (tui_register_changed)
2963 (tui_refresh_frame_and_register_information): Call
2964 tui_check_register_values.
2965 * tui/tui-data.h (struct tui_data_window) <data_content,
2966 data_content_count, data_type>: Remove.
2967 (enum tui_data_type): Remove.
2968
2969 * tui/tui-data.c (tui_data_window::clear_detail)
2970 (~tui_data_window): Update.
2971
eaf9738b
TT
29722019-06-25 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2975 declare.
2976 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2977 Rename from tui_first_data_item_displayed. Update.
2978 (tui_data_window::refresh_all)
2979 (tui_data_window::do_scroll_vertical): Update.
2980 * tui/tui-data.h (struct tui_data_window)
2981 <first_data_item_displayed>: Declare new method.
2982
31ca4723
TT
29832019-06-25 Tom Tromey <tom@tromey.com>
2984
2985 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2986 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2987 contents...
2988 (tui_initialize_static_data): ...here.
2989
41bcff7f
TT
29902019-06-25 Tom Tromey <tom@tromey.com>
2991
2992 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2993 (tui_display_registers_from, tui_check_register_values): Update.
2994 (tui_display_register): Remove win_info parameter; update.
2995 (tui_get_register): Change type of parameters.
2996 * tui/tui-data.h (struct tui_data_element): Remove.
2997 (union tui_which_element) <data>: Remove.
2998 <data_window>: Change type.
2999 (struct tui_data_item_window): New.
3000 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3001 case. Add assert.
3002 (~tui_data_item_window): New destructor.
3003 (free_content_elements): Remove DATA_ITEM_WIN case.
3004
d2802c33
TT
30052019-06-25 Tom Tromey <tom@tromey.com>
3006
3007 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3008 Remove.
3009
dd835f8b
TT
30102019-06-25 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-data.h (struct tui_command_element): Remove.
3013 (union tui_which_element) <command>: Remove.
3014 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3015 assert.
3016 (free_content_elements): Remove CMD_WIN case.
3017
bd7db367
TT
30182019-06-25 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-layout.c (tui_set_layout): Update.
3021 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3022 * tui/tui-data.c (layout_def): Update.
3023
3add462f
TT
30242019-06-25 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3027 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3028 (tui_source_window_base::set_new_height): Update.
3029 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3030 Update.
3031 (tui_set_locator_fullname, tui_set_locator_info)
3032 (tui_show_frame_info): Update.
3033 * tui/tui-source.c (tui_set_source_content)
3034 (tui_source_is_displayed): Update.
3035 * tui/tui-layout.c (show_source_disasm_command, show_data)
3036 (show_source_or_disasm_and_command): Update.
3037 * tui/tui-disasm.c (tui_set_disassem_content)
3038 (tui_get_begin_asm_address): Update.
3039 * tui/tui-data.h (struct tui_locator_element): Remove.
3040 (union tui_which_element) <locator>: Remove.
3041 (struct tui_locator_window): New.
3042 (tui_locator_win_info_ptr): Change return type.
3043 * tui/tui-data.c (_locator): Change type.
3044 (tui_locator_win_info_ptr): Change return type.
3045 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3046 (tui_alloc_content): Add assert.
3047
489e9d8b
TT
30482019-06-25 Tom Tromey <tom@tromey.com>
3049
3050 * tui/tui-winsource.c
3051 (tui_exec_info_window::maybe_allocate_content): New method.
3052 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3053 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3054 (make_source_or_disasm_window): Add cast.
3055 * tui/tui-data.h (union tui_which_element) <simple_string>:
3056 Remove.
3057 (struct tui_source_info): New.
3058 (struct tui_source_window_base) <execution_info>: Change type.
3059 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3060 case, and add assert.
3061 (tui_alloc_content): Add assert.
3062
c3fabb7d
TT
30632019-06-25 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3066 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3067 * tui/tui-data.c (tui_alloc_win_info): Remove.
3068
bbc228ee
TT
30692019-06-25 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3072 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3073 can_highlight.
3074
5fcee43a
TT
30752019-06-25 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3078 make_visible_with_new_height method.
3079 (tui_win_info::make_visible_with_new_height): New method.
3080 (tui_source_window_base::do_make_visible_with_new_height)
3081 (tui_data_window::do_make_visible_with_new_height)
3082 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3083 (make_visible_with_new_height): Remove.
3084 (tui_resize_all, tui_adjust_win_heights): Use
3085 make_visible_with_new_height method.
3086 * tui/tui-data.h (struct tui_win_info)
3087 <do_make_visible_with_new_height, make_visible_with_new_height>:
3088 New methods.
3089 (struct tui_source_window_base, struct tui_data_window)
3090 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3091 methods.
3092
d83f1fe6
TT
30932019-06-25 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3096 method.
3097 (update_tab_width): Call update_tab_width method.
3098 * tui/tui-data.h (struct tui_win_info)
3099 (struct tui_source_window_base) <update_tab_width>: New methods.
3100
17374de4
TT
31012019-06-25 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3104 parameter.
3105 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3106 parameter.
3107 (tui_gen_win_info::make_visible): Update.
3108 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3109 parameter.
3110 * tui/tui-data.h (enum tui_box): New enum.
3111 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3112
f936bca2
TT
31132019-06-25 Tom Tromey <tom@tromey.com>
3114
3115 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3116 init_and_make_win for EXEC_INFO_WIN.
3117 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3118 longer inline.
3119 (struct tui_win_info) <~tui_win_info>: Inline.
3120 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3121 Don't declare.
3122 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3123 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3124 Remove.
3125 (tui_initialize_static_data): Update.
3126 (~tui_gen_win_info): Handle more cleanup here.
3127 (~tui_source_window_base): Delete "execution_info".
3128 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3129
d6ba6a11
TT
31302019-06-25 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-layout.c (make_command_window): Don't set
3133 can_highlight.
3134 (show_source_disasm_command): Call the reset method.
3135 (show_data): Don't set can_highlight. Call the reset method.
3136 (tui_gen_win_info::reset): Rename from init_gen_win_info
3137 (init_and_make_win): Simplify. Return tui_gen_win_info.
3138 (show_source_or_disasm_and_command): Call the reset method.
3139 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3140 (struct tui_cmd_window): Set can_highlight.
3141
48a3bd16
TT
31422019-06-25 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3145 from make_visible.
3146 (tui_make_visible, tui_make_invisible): Rewrite.
3147 (tui_win_info::make_visible): Remove.
3148 (tui_source_window_base::make_visible): Update.
3149 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3150 method. Moved from...
3151 (struct tui_win_info) <make_visible>: ...here.
3152
c3bd716f
TT
31532019-06-25 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-winsource.c
3156 (tui_source_window_base::do_scroll_horizontal): Remove direction
3157 parameter.
3158 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3159 direction parameter.
3160 * tui/tui-win.c (tui_win_info::forward_scroll)
3161 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3162 (tui_win_info::right_scroll): Update.
3163 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3164 direction parameter.
3165 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3166 direction parameter.
3167 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3168 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3169 Remove direction parameter.
3170 (struct tui_source_window_base, struct tui_source_window)
3171 (struct tui_disasm_window, struct tui_data_window)
3172 (struct tui_cmd_window): Update.
3173
21c32dca
TT
31742019-06-25 Tom Tromey <tom@tromey.com>
3175
3176 * tui/tui-winsource.h (tui_set_exec_info_content)
3177 (tui_show_exec_info_content, tui_erase_exec_info_content)
3178 (tui_clear_exec_info_content, tui_update_exec_info): Change
3179 argument to tui_source_window_base.
3180 * tui/tui-winsource.c (tui_set_exec_info_content)
3181 (tui_show_exec_info_content, tui_erase_exec_info_content)
3182 (tui_clear_exec_info_content, tui_update_exec_info): Change
3183 argument to tui_source_window_base.
3184
73fbdc65
TT
31852019-06-25 Tom Tromey <tom@tromey.com>
3186
3187 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3188 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3189
33325343
TT
31902019-06-25 Tom Tromey <tom@tromey.com>
3191
3192 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3193 check.
3194
29d2c474
TT
31952019-06-25 Tom Tromey <tom@tromey.com>
3196
3197 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3198 type to void.
3199 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3200 type to void.
3201 * tui/tui-source.c (tui_set_source_content): Update.
3202 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3203
152f3f4b
TT
32042019-06-25 Tom Tromey <tom@tromey.com>
3205
3206 * tui/tui-win.c (window_name_completer, tui_set_focus)
3207 (tui_all_windows_info): Use name method.
3208 * tui/tui-data.h (struct tui_gen_win_info)
3209 (struct tui_source_window, struct tui_disasm_window)
3210 (struct tui_data_window, struct tui_cmd_window) <name>: New
3211 method.
3212 (tui_win_name): Don't declare.
3213 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3214 (tui_win_name): Remove.
3215
be4da588
TT
32162019-06-25 Tom Tromey <tom@tromey.com>
3217
3218 * tui/tui-winsource.h (tui_update_source_window)
3219 (tui_update_source_window_as_is): Change parameter type.
3220 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3221 to be a tui_source_window_base.
3222 (tui_update_source_window_as_is): Likewise.
3223 * tui/tui-win.c (make_visible_with_new_height): Update.
3224
5b81daba
TT
32252019-06-25 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-winsource.c (tui_erase_source_content)
3228 (tui_show_source_content, tui_show_exec_info_content)
3229 (tui_erase_exec_info_content): Use refresh_window method.
3230 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3231 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3232 from tui_refresh_win.
3233 (tui_data_window::refresh_window): New method.
3234 (tui_win_info::refresh, tui_source_window_base::refresh)
3235 (tui_refresh_all): Use refresh_window method.
3236 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3237 method.
3238 * tui/tui-regs.c (tui_display_register): Call refresh_window
3239 method.
3240 * tui/tui-layout.c (show_source_disasm_command)
3241 (show_source_or_disasm_and_command): Call refresh_window method.
3242 * tui/tui-data.h (struct tui_gen_win_info)
3243 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3244 New method.
3245
cb2ce893
TT
32462019-06-25 Tom Tromey <tom@tromey.com>
3247
3248 * tui/tui.c (tui_rl_other_window, tui_enable)
3249 (tui_is_window_visible, tui_get_command_dimension): Update.
3250 * tui/tui-winsource.c (tui_update_source_window_as_is)
3251 (tui_clear_source_content, tui_erase_source_content)
3252 (tui_show_source_line, tui_source_window_base::refill)
3253 (tui_source_window_base::do_scroll_horizontal)
3254 (tui_source_window_base::set_is_exec_point_at)
3255 (tui_update_breakpoint_info, tui_set_exec_info_content)
3256 (tui_alloc_source_buffer, tui_line_is_displayed)
3257 (tui_addr_is_displayed): Update.
3258 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3259 (tui_check_and_display_highlight_if_needed)
3260 (tui_win_info::make_visible, tui_win_info::refresh)
3261 (tui_refresh_all): Update.
3262 * tui/tui-windata.c (tui_first_data_item_displayed)
3263 (tui_delete_data_content_windows, tui_erase_data_content)
3264 (tui_display_all_data, tui_data_window::refresh_all)
3265 (tui_check_data_values): Update.
3266 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3267 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3268 (tui_win_info::backward_scroll, tui_refresh_all_win)
3269 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3270 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3271 (tui_source_window_base::set_new_height)
3272 (tui_data_window::set_new_height)
3273 (make_invisible_and_set_new_height)
3274 (make_visible_with_new_height, new_height_ok)
3275 (parse_scrolling_args): Update.
3276 * tui/tui-stack.c (tui_show_frame_info): Update.
3277 * tui/tui-source.c (tui_set_source_content)
3278 (tui_set_source_content_nil, tui_source_is_displayed)
3279 (tui_source_window::do_scroll_vertical): Update.
3280 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3281 (tui_display_registers_from, tui_display_reg_element_at_line)
3282 (tui_check_register_values, tui_reg_command): Update.
3283 * tui/tui-layout.c (tui_default_win_height)
3284 (show_source_disasm_command, show_data, init_and_make_win)
3285 (show_source_or_disasm_and_command): Update.
3286 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3287 (tui_redisplay_readline, tui_mld_flush)
3288 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3289 (tui_getc): Update.
3290 * tui/tui-disasm.c (tui_set_disassem_content)
3291 (tui_disasm_window::do_scroll_vertical): Update.
3292 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3293 Now virtual.
3294 (struct tui_win_info): Derive from tui_gen_win_info.
3295 <~tui_win_info>: Mark as override.
3296 <generic>: Remove member.
3297 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3298 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3299 (~tui_data_window, ~tui_win_info)
3300 (tui_free_all_source_wins_content): Update.
3301 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3302
ab313b35
TT
33032019-06-25 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-layout.c (init_and_make_win): Use new.
3306 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3307 destructor, initializers.
3308 (tui_alloc_generic_win_info): Don't declare.
3309 * tui/tui-data.c (_locator): Add argument to constructor.
3310 (source_win, disasm_win): New globals.
3311 (exec_info): Remove.
3312 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3313 Update.
3314 (tui_alloc_generic_win_info): Remove.
3315 (init_content_element): Use new.
3316 (tui_win_info::tui_win_info): Update.
3317 (free_content_elements) <case DATA_WIN>: Use delete.
3318
dc2c33e4
TT
33192019-06-25 Tom Tromey <tom@tromey.com>
3320
3321 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3322 * tui/tui-windata.c (tui_first_data_item_displayed)
3323 (tui_delete_data_content_windows): Update.
3324 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3325 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3326 (tui_display_registers_from, tui_check_register_values): Update.
3327 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3328 pointer.
3329 * tui/tui-data.c (init_content_element): Update. Allocate the new
3330 window.
3331 (tui_free_data_content): Update.
3332 (free_content_elements) <case DATA_WIN>: Free the window.
3333
214a5cbe
TT
33342019-06-25 Tom Tromey <tom@tromey.com>
3335
3336 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3337 Update.
3338 * tui/tui-layout.c (make_command_window)
3339 (show_source_disasm_command, show_data, init_and_make_win)
3340 (show_source_or_disasm_and_command): Update.
3341 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3342 method.
3343 <can_highight, is_highlighted>: Now bool.
3344 (tui_set_win_highlight): Don't declare.
3345 * tui/tui-data.c (tui_set_win_highlight): Remove.
3346
8e2daf15
TT
33472019-06-25 Tom Tromey <tom@tromey.com>
3348
3349 * tui/tui-wingeneral.c (make_visible): Remove check of window
3350 type.
3351
8903bd8a
TT
33522019-06-25 Tom Tromey <tom@tromey.com>
3353
3354 * tui/tui-win.c (tui_win_info::max_height)
3355 (tui_cmd_window::max_height): New methods.
3356 (new_height_ok): Call max_height.
3357 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3358 <max_height>: New method.
3359
3f02ce1e
TT
33602019-06-25 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-win.c (tui_source_window_base::set_new_height)
3363 (tui_data_window::set_new_height): New methods.
3364 (make_invisible_and_set_new_height): Call set_new_height method.
3365 * tui/tui-data.h (struct tui_win_info)
3366 (struct tui_source_window_base, struct tui_data_window)
3367 <set_new_height>: New method.
3368
1825f487
TT
33692019-06-25 Tom Tromey <tom@tromey.com>
3370
3371 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3372 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3373 tui_refresh_data_win.
3374 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3375 method.
3376 (tui_refresh_all_win): Call the refresh_all method.
3377 (tui_set_focus): Likewise.
3378 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3379 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3380 Likewise.
3381
ad54d15b
TT
33822019-06-25 Tom Tromey <tom@tromey.com>
3383
3384 * tui/tui-winsource.h (tui_refill_source_window)
3385 (tui_set_is_exec_point_at): Don't declare.
3386 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3387 (tui_source_window_base::refill): Rename from
3388 tui_refill_source_window.
3389 (tui_source_window_base::do_scroll_horizontal): Update.
3390 (tui_source_window_base::set_is_exec_point_at): Rename from
3391 tui_set_is_exec_point_at.
3392 (tui_update_all_breakpoint_info): Update.
3393 * tui/tui-stack.c (tui_show_frame_info): Update.
3394 * tui/tui-layout.c (show_data): Add cast.
3395 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3396 * tui/tui-data.h (struct tui_source_window_base) <refill,
3397 set_is_exec_point_at>: New methods.
3398 (tui_source_windows, tui_add_to_source_windows): Update types.
3399 (tui_add_to_source_windows): Remove redundant declaration.
3400 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3401 (tui_source_windows): Change return type.
3402 (tui_clear_source_windows_detail): Update.
3403 (tui_add_to_source_windows): Change type of parameter.
3404 (tui_free_all_source_wins_content): Update.
3405
2042b506
TT
34062019-06-25 Tom Tromey <tom@tromey.com>
3407
3408 * tui/tui-wingeneral.c (tui_win_info::refresh)
3409 (tui_source_window_base::refresh): New methods.
3410 (tui_refresh_all): Call the refresh method.
3411 * tui/tui-data.h (struct tui_win_info)
3412 (struct tui_source_window_base) <refresh>: New method.
3413
56122977
TT
34142019-06-25 Tom Tromey <tom@tromey.com>
3415
3416 * tui/tui.h (tui_is_window_visible): Return bool.
3417 * tui/tui.c (tui_is_window_visible): Return bool.
3418 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3419 (tui_make_visible, tui_make_invisible)
3420 (tui_win_info::make_visible)
3421 (tui_source_window_base::make_visible, make_all_visible)
3422 (tui_make_all_visible, tui_make_all_invisible): Update.
3423 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3424 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3425 bool.
3426 (struct tui_win_info, struct tui_source_window_base)
3427 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3428 * tui/tui-data.c (tui_init_generic_part): Update.
3429
cda37efb
TT
34302019-06-25 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3433 (tui_source_window_base::make_visible): New methods.
3434 (make_all_visible): Make method call.
3435 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3436 (struct tui_source_window_base, struct tui_cmd_window): Override
3437 make_visible.
3438 (tui_win_is_source_type): Don't declare.
3439 * tui/tui-data.c (tui_win_is_source_type): Remove.
3440
6a0ee02c
TT
34412019-06-25 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3444 NULL check.
3445
63901aec
TT
34462019-06-25 Tom Tromey <tom@tromey.com>
3447
3448 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3449 Inline constructor. Add initializers for members.
3450 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3451 constructors; now inline in class.
3452
ceb13a13
TT
34532019-06-25 Tom Tromey <tom@tromey.com>
3454
3455 * tui/tui-regs.c (tui_show_registers): Update.
3456 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3457 bool.
3458 * tui/tui-data.c (tui_data_window::clear_detail)
3459 (tui_data_window): Update.
3460
238eb706
TT
34612019-06-25 Tom Tromey <tom@tromey.com>
3462
3463 * tui/tui-windata.c (tui_display_all_data)
3464 (tui_display_data_from_line, tui_display_data_from)
3465 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3466 Update.
3467 * tui/tui-regs.c (tui_last_regs_line_no)
3468 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3469 (tui_show_registers, tui_show_register_group)
3470 (tui_display_registers_from, tui_display_reg_element_at_line)
3471 (tui_display_registers_from_line, tui_check_register_values)
3472 (tui_reg_next, tui_reg_prev): Update.
3473 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3474 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3475 tui_data_window.
3476 (struct tui_win_info) <detail>: Remove. Add new fields from
3477 tui_data_info.
3478 (TUI_DATA_WIN): Add cast.
3479 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3480 (~tui_data_window): Simplify.
3481
81491aa0
TT
34822019-06-25 Tom Tromey <tom@tromey.com>
3483
3484 * tui/tui-layout.c (show_source_disasm_command)
3485 (show_source_or_disasm_and_command): Update.
3486 * tui/tui-io.c (update_cmdwin_start_line)
3487 (tui_redisplay_readline): Update.
3488 * tui/tui-data.h (struct tui_command_info): Remove.
3489 (struct tui_win_info) <detail>: Remove command_info member.
3490 (struct tui_data_window) <start_line>: New member, from
3491 tui_command_info.
3492 (TUI_CMD_WIN): Add casts.
3493
e6e41501
TT
34942019-06-25 Tom Tromey <tom@tromey.com>
3495
3496 * tui/tui-winsource.c (tui_update_source_window)
3497 (tui_refill_source_window)
3498 (tui_source_window_base::do_scroll_horizontal)
3499 (tui_update_breakpoint_info, tui_set_exec_info_content)
3500 (tui_show_exec_info_content, tui_erase_exec_info_content)
3501 (tui_clear_exec_info_content): Update.
3502 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3503 Update.
3504 * tui/tui-win.c (make_invisible_and_set_new_height)
3505 (make_visible_with_new_height): Update.
3506 * tui/tui-source.c (tui_set_source_content)
3507 (tui_show_symtab_source): Update.
3508 * tui/tui-layout.c (extract_display_start_addr)
3509 (show_source_disasm_command, show_data)
3510 (make_source_or_disasm_window)
3511 (show_source_or_disasm_and_command): Update.
3512 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3513 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3514 "gdbarch".
3515 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3516 to tui_source_window_base.
3517 (struct tui_win_info) <detail>: Remove source_info member.
3518 (struct tui_source_window_base) <has_locator>: Inline.
3519 Move contents from tui_source_info; rename has_locator member to
3520 m_has_locator.
3521 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3522 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3523 header file.
3524 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3525 Simplify.
3526 (tui_free_all_source_wins_content): Cast to
3527 tui_source_window_base.
3528
44f0e208
TT
35292019-06-25 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-win.c (make_invisible_and_set_new_height)
3532 (make_visible_with_new_height): Call has_locator method.
3533 * tui/tui-layout.c (show_source_disasm_command, show_data)
3534 (show_source_or_disasm_and_command): Update for bool change.
3535 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3536 (tui_win_info) <has_locator>: New method.
3537 (struct tui_source_window_base) <has_locator>: New method.
3538 (tui_win_has_locator): Don't declare.
3539 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3540 from tui_win_has_locator.
3541 (tui_source_window_base): Use false, not FALSE.
3542
7778b912
TT
35432019-06-25 Tom Tromey <tom@tromey.com>
3544
3545 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3546 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3547 clear_detail method directly.
3548 (tui_clear_win_detail): Remove.
3549
f83d391c
TT
35502019-06-25 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3553 "this", not TUI_DISASM_WIN.
3554
13446e05
TT
35552019-06-25 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3558 declare.
3559 * tui/tui-winsource.c
3560 (tui_source_window_base::do_scroll_horizontal): Rename from
3561 tui_horizontal_source_scroll.
3562 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3563 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3564 from tui_vertical_data_scroll.
3565 * tui/tui-win.h (tui_scroll): Don't declare.
3566 * tui/tui-win.c (tui_win_info::forward_scroll)
3567 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3568 (tui_win_info::right_scroll): Rename and update.
3569 (tui_scroll_forward_command, tui_scroll_backward_command)
3570 (tui_scroll_left_command, tui_scroll_right_command): Update.
3571 (tui_scroll): Remove.
3572 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3573 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3574 from tui_vertical_source_scroll.
3575 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3576 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3577 from tui_vertical_disassem_scroll.
3578 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3579 do_scroll_horizontal>: New methods.
3580 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3581 Likewise.
3582 (struct tui_source_window_base): Add do_scroll_horizontal.
3583 (struct tui_source_window, struct tui_disasm_window): Add
3584 do_scroll_vertical.
3585 (struct tui_data_window, struct tui_cmd_window): Add
3586 do_scroll_horizontal and do_scroll_vertical.
3587 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3588
5cf82909
TT
35892019-06-25 Tom Tromey <tom@tromey.com>
3590
3591 * tui/tui-data.h (struct tui_source_window_base): New struct.
3592 (struct tui_source_window): Derive from tui_source_window_base.
3593 (struct tui_disasm_window): New struct.
3594 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3595 from tui_source_window::clear_detail.
3596 (tui_source_window_base): Rename from tui_source_window.
3597 (~tui_source_window_base): Rename from ~tui_source_window.
3598 (tui_alloc_win_info): Create a tui_disasm_window.
3599
ee1d42d6
TT
36002019-06-25 Tom Tromey <tom@tromey.com>
3601
3602 * tui/tui-data.h (struct tui_source_window)
3603 (struct tui_data_window): Declare destructors.
3604 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3605 destructors.
3606 (tui_win_info): Simplify.
3607
b4eb2452
TT
36082019-06-25 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-winsource.c (tui_display_main)
3611 (tui_update_source_windows_with_addr)
3612 (tui_update_all_breakpoint_info): Update.
3613 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3614 (new_height_ok, parse_scrolling_args): Update.
3615 * tui/tui-stack.c (tui_show_frame_info): Update.
3616 * tui/tui-data.h (struct tui_list): Remove.
3617 (tui_source_windows): Return a reference to a std::vector.
3618 * tui/tui-data.c (source_windows): Now a std::vector.
3619 (tui_source_windows): Change return type.
3620 (tui_clear_source_windows): Rewrite.
3621 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3622 (tui_free_all_source_wins_content): Rewrite.
3623
8761a91b
TT
36242019-06-25 Tom Tromey <tom@tromey.com>
3625
3626 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3627 (struct tui_data_window, struct tui_cmd_window): Declare
3628 clear_detail method.
3629 * tui/tui-data.c (tui_source_window::clear_detail)
3630 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3631 methods.
3632 (tui_clear_win_detail): Simplify.
3633
0ed69eda
TT
36342019-06-25 Tom Tromey <tom@tromey.com>
3635
3636 * tui/tui-layout.c (make_source_window, make_disasm_window)
3637 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3638 Return the new window.
3639 (show_source_disasm_command, show_data)
3640 (show_source_or_disasm_and_command): Update.
3641
82432e10
TT
36422019-06-25 Tom Tromey <tom@tromey.com>
3643
3644 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3645 parameter. Return the new window.
3646 (show_source_disasm_command): Update and remove NULL check.
3647 (show_source_or_disasm_and_command): Update.
3648
ec328aa5
TT
36492019-06-25 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3652
33b906ab
TT
36532019-06-25 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-data.h (struct tui_win_info): Make constructor
3656 protected. Make destructor virtual. Add initializers.
3657 (tui_source_window, tui_data_window, tui_cmd_window): New
3658 classes.
3659 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3660 constructor. Add "type" parameter.
3661 (tui_source_window, tui_data_window, tui_cmd_window): New
3662 constructors.
3663 (tui_alloc_win_info): Instantiate the appropriate subclass.
3664
e7e11af4
TT
36652019-06-25 Tom Tromey <tom@tromey.com>
3666
3667 * tui/tui-win.c (tui_resize_all): Use delete.
3668 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3669 destructor.
3670 (tui_free_window): Don't declare.
3671 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3672 Update.
3673
6792b55e
TT
36742019-06-25 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-data.h (struct tui_win_info): Add constructor.
3677 * tui/tui-data.c (tui_alloc_win_info): Use new.
3678 (tui_free_window): Use delete.
3679
f95675e1
TT
36802019-06-22 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3683 declare.
3684 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3685
5bff081c
TT
36862019-06-22 Tom Tromey <tom@tromey.com>
3687
3688 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3689 declare.
3690 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3691
47e3f474
TV
36922019-06-22 Tom de Vries <tdevries@suse.de>
3693
3694 * dwarf2read.c (create_addrmap_from_aranges)
3695 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3696 instead of '%zu'.
3697
fd5866f6
SM
36982019-06-21 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * dwarf2read.h (dwarf2_section_info_def): Remove.
3701 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3702 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3703 std::vector<dwarf2_section_info>.
3704 (struct dwo_file) <~dwo_file>: Remove.
3705 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3706 types field.
3707 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3708 (dwarf2_read_debug_names): Likewise.
3709 (create_debug_types_hash_table): Change parameter type to
3710 array_view, adjust code accordingly.
3711 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3712 (partial_die_info::fixup): Likewise.
3713 (determine_prefix): Likewise.
3714 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3715
fb1eb2f9
SM
37162019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3717
3718 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3719 gdb_bfd_ref_ptr.
3720 <~dwo_file>: Remove call to gdb_bfd_unref.
3721 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3722 gdb_bfd_ref_ptr::get.
3723
51ac9db5
SM
37242019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3725
3726 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3727 type to htab_up.
3728 * dwarf2read.c (struct dwo_file): Initialize fields.
3729 <~dwo_file>: New.
3730 (free_dwo_file): Remove, move content to ~dwo_file.
3731 (struct dwo_file_deleter): Remove.
3732 (dwo_file_up>: Remove custom deleter.
3733 (free_dwo_files): Remove.
3734 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3735 dwo_files.
3736 (process_skeletonless_type_units): Call unique_ptr::get.
3737 (allocate_dwo_file_hash_table): Add deleter to created hash
3738 table. Change return type to htab_up.
3739 (lookup_dwo_file_slot): Don't memset dwo_file, call
3740 unique_ptr::get.
3741 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3742 (create_dwo_unit_in_dwp_v2): Likewise.
3743 (open_and_init_dwo_file): Likewise.
3744 (free_dwo_file_from_slot): Remove.
3745
dc4ccb6f
SM
37462019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3747
3748 * dwarf2read.h (struct dwarf2_section_info) <readin,
3749 is_virtual>: Change type to bool.
3750 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3751 true instead of 1.
3752
e6a1c5cb
TT
37532019-06-19 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-data.h (tui_init_content_element): Don't declare.
3756
6f6ffbeb
TT
37572019-06-19 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-data.h (tui_init_win_info): Don't declare.
3760
f23f598e
TV
37612019-06-19 Tom de Vries <tdevries@suse.de>
3762
3763 * dwarf2read.h (abstract_to_concrete): Change type to
3764 std::unordered_map<sect_offset, std::vector<sect_offset>,
3765 gdb::hash_enum<sect_offset>>.
3766
680e1bee
TT
37672019-06-19 Tom Tromey <tromey@adacore.com>
3768
3769 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3770 EVAL_AVOID_SIDE_EFFECTS specially.
3771
dcf37923
TT
37722019-06-19 Tom Tromey <tromey@adacore.com>
3773
3774 * source-cache.c (highlighter): New global.
3775 (source_cache::get_source_lines): Create a highlighter on demand.
3776
494986d5
AB
37772019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3778
3779 * defs.h (deprecated_interactive_hook): Delete declaration.
3780 * interps.c (clear_interpreter_hooks): Remove use of
3781 deprecated_interactive_hook.
3782 * top.c (deprecated_interactive_hook): Delete definition.
3783 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3784
3360b6e7
TV
37852019-06-18 Tom de Vries <tdevries@suse.de>
3786
3787 PR gdb/24515
3788 * dwarf2read.h (abstract_to_concrete): Change type from
3789 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3790 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3791 * dwarf2read.c (read_variable): Update.
3792 (dwarf2_fetch_die_loc_sect_off): Update.
3793
310b3441
TV
37942019-06-17 Tom de Vries <tdevries@suse.de>
3795
3796 PR gdb/24617
3797 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3798 accessing parent[parent_len - 1].
3799
ba9777be
PP
38002019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3801
3802 PR gdb/24364
3803 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3804 call dtrace_process_dof with NULL dof.
3805
2b9f6e89
TV
38062019-06-16 Tom de Vries <tdevries@suse.de>
3807
3808 PR gdb/24445
3809 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3810
431b3ead
TT
38112019-06-16 Tom Tromey <tom@tromey.com>
3812
3813 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3814 (make_all_visible): Use address of member.
3815
d04b44a1
TT
38162019-06-16 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3819 (tui_free_window, free_content, free_content_elements): Remove
3820 unnecessary cast.
3821 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3822 cast.
3823 * tui/tui-regs.c (tui_show_register_group)
3824 (tui_display_registers_from, tui_display_reg_element_at_line):
3825 Remove unnecessary cast.
3826
bf5142e7
AB
38272019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * linux-nat.c (normal_mask): Delete.
3830 (_initialize_linux_nat): Don't initialise normal_mask.
3831
c4973306
SM
38322019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3833
3834 PR gdb/24445
3835 * dwarf-index-write.h (write_psymtabs_to_index): Add
3836 dwz_basename parameter.
3837 * dwarf-index-write.c (write_gdbindex): Move file writing to
3838 write_gdbindex_1. Change return type void.
3839 (assert_file_size): Move up, remove filename parameter.
3840 (write_gdbindex_1): New function.
3841 (write_debug_names): Change return type to void, call
3842 assert_file_size.
3843 (struct index_wip_file): New struct.
3844 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3845 file logic to index_wip_file. Write index for dwz file if
3846 needed.
3847 (save_gdb_index_command): Pass basename of dwz file, if present.
3848 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3849 build-id of dwz file, if present.
3850 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3851 (dwarf2_get_dwz_file): Likewise.
3852 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3853 (dwarf2_get_dwz_file): Likewise.
3854
395f9c91
TT
38552019-06-16 Tom Tromey <tom@tromey.com>
3856
3857 * coffread.c (process_coff_symbol): Use xstrdup.
3858 * value.c (create_internalvar): Use xstrdup.
3859
cafb3438
TT
38602019-06-16 Tom Tromey <tom@tromey.com>
3861
3862 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3863 * breakpoint.c (stopin_command, stopat_command)
3864 (until_break_command, decode_location_default): Remove unnecessary
3865 cast.
3866 * utils.c (subset_compare): Remove unnecessary cast.
3867 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3868 cast.
3869 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3870 cast.
3871 * infcmd.c (path_command): Remove unnecessary cast.
3872 * coffread.c (decode_type): Remove unnecessary cast.
3873 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3874 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3875 * tui/tui-stack.c (tui_show_locator_content)
3876 (tui_show_frame_info): Remove unnecessary cast.
3877 * tui/tui-win.c (tui_scroll_forward_command)
3878 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3879 (parse_scrolling_args): Remove unnecessary cast.
3880 * tui/tui-data.c (init_win_info, tui_del_window)
3881 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3882 (free_content_elements): Remove unnecessary cast.
3883 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3884 unnecessary cast.
3885 * tui/tui-source.c (tui_set_source_content)
3886 (tui_vertical_source_scroll): Remove unnecessary cast.
3887 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3888 cast.
3889 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3890 * tui/tui-regs.c (tui_display_registers_from)
3891 (tui_display_register): Remove unnecessary cast.
3892 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3893 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3894 (make_visible): Remove unnecessary cast.
3895 * tui/tui-winsource.c (tui_erase_source_content)
3896 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3897 unnecessary cast.
3898 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3899 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3900 * stabsread.c (read_type, read_array_type, read_range_type):
3901 Remove unnecessary cast.
3902 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3903 (parse_symbol, parse_type, upgrade_type, parse_external)
3904 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3905 unnecessary cast.
3906 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3907
730ead81
TT
39082019-06-16 Tom Tromey <tom@tromey.com>
3909
3910 * tui/tui-data.c (tui_alloc_generic_win_info)
3911 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3912 checks.
3913
584a927c
AB
39142019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3915 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * f-typeprint.c (f_print_type): Don't return early for not
3918 associated or not allocated types.
3919 (f_type_print_varspec_suffix): Add print_rank parameter and print
3920 ranks of array types in case they dangling.
3921 (f_type_print_base): Add print_rank parameter.
3922
30056ea0
AB
39232019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3924
3925 * NEWS: Mention new MI commands.
3926 * break-catch-throw.c (enum exception_event_kind): Move to
3927 breakpoint.h.
3928 (print_mention_exception_catchpoint): Output text as a single
3929 message.
3930 (catch_exception_command_1): Rename to...
3931 (catch_exception_event): ...this, make non-static, update header
3932 command, and change some parameter types.
3933 (catch_catch_command): Update for changes to
3934 catch_exception_command_1.
3935 (catch_throw_command): Likewise.
3936 (catch_rethrow_command): Likewise.
3937 * breakpoint.c (enum exception_event_kind): Delete.
3938 * breakpoint.h (enum exception_event_kind): Moved here from
3939 break-catch-throw.c.
3940 (catch_exception_event): Declare.
3941 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3942 (mi_cmd_catch_throw): New function.
3943 (mi_cmd_catch_rethrow): New function.
3944 (mi_cmd_catch_catch): New function.
3945 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3946 'catch-catch' entries.
3947 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3948 (mi_cmd_catch_rethrow): Declare.
3949 (mi_cmd_catch_catch): Declare.
3950
ec8e2b6d
AB
39512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * annotate.c (annotate_source_line): Change return type to void,
3954 update implementation to match.
3955 * annotate.h (annotate_source_line): Change return type to void,
3956 update header comment.
3957 * stack.c (print_frame_info): Don't change what frame information
3958 is printed based on whether annotations are on or not.
3959
0d3abd8c
AB
39602019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3963 (annotate_source): Make static.
3964 (annotate_source_line): Moved from source.c and renamed from
3965 identify_source_line. Update the return type.
3966 * annotate.h (annotate_source): Delete declaration.
3967 (annotate_source_line): Declaration moved from source.h, and
3968 renamed from identify_source_line. Return type updated.
3969 * source.c (identify_source_line): Moved to annotate.c and renamed
3970 to annotate_source_line.
3971 (info_line_command): Remove check of annotation_level.
3972 * source.h (identify_source_line): Move declaration to annotate.h
3973 and rename to annotate_source_line.
3974 * stack.c: Add 'annotate.h' include.
3975 (print_frame_info): Remove check of annotation_level before
3976 calling annotate_source_line.
3977
00df30ae
AB
39782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3979
3980 * source-cache.c (source_cache::get_plain_source_lines): Use
3981 open_source_file_with_line_charpos instead of just
3982 open_source_file, remove call to find_source_lines.
3983 (source_cache::get_source_lines): Likewise.
3984 * source.c (find_source_lines): Make static.
3985 (get_filename_and_charpos): Renamed into...
3986 (open_source_file_with_line_charpos): ..this along with changes to
3987 return a scoped_fd, and some other minor clean ups.
3988 (identify_source_line): Use open_source_file_with_line_charpos.
3989 (search_command_helper): Use open_source_file_with_line_charpos
3990 instead of just open_source_file, remove call to
3991 find_source_lines.
3992 * source.h (open_source_file_with_line_charpos): Declare new
3993 function.
3994 (find_source_lines): Delete declaration.
3995
afda45a2
AB
39962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3997
3998 * source.c (get_filename_and_charpos): Remove fullname
3999 parameter.
4000 (identify_source_line): Update call to get_filename_and_charpos.
4001
0735b091
TT
40022019-06-14 Tom Tromey <tromey@adacore.com>
4003
4004 PR gdb/24502:
4005 * ui-style.h (skip_ansi_escape): Update comment.
4006 * ui-file.h (class no_terminal_escape_file): New class.
4007 * ui-file.c (no_terminal_escape_file::write)
4008 (no_terminal_escape_file::puts): New methods.
4009 * cli/cli-logging.c (handle_redirections): Use
4010 no_terminal_escape_file.
4011
52ce35e2
TT
40122019-06-14 Tom Tromey <tromey@adacore.com>
4013
4014 * NEWS: Move convenience variable news above Python news.
4015
73cc7272
TT
40162019-06-14 Tom Tromey <tom@tromey.com>
4017
4018 * gnulib: Move directory to top-level.
4019 * configure.ac: Don't configure gnulib.
4020 * configure: Rebuild.
4021 * common/common-defs.h: Use new path to gnulib.
4022 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4023 (GNULIB_H): Remove.
4024 (INCGNU): Look in new gnulib location.
4025 (HFILES_NO_SRCDIR): Remove gnulib files.
4026 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4027 (generated_files): Remove GNULIB_H.
4028 ($(LIBGNU), all-lib): Remove targets.
4029 (distclean): Don't mention GNULIB_BUILDDIR.
4030 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4031
f5686554
TT
40322019-06-14 Tom Tromey <tromey@adacore.com>
4033
4034 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4035 Warn if symbol file does not provide any symbols.
4036
a0c1ffed
TT
40372019-06-14 Tom Tromey <tromey@adacore.com>
4038
4039 * source.c (find_and_open_source): Respect basenames_may_differ.
4040
7c39e397
AB
40412019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * annotate.c (annotate_breakpoints_invalid): Make use of
4044 scoped_restore_terminal_state.
4045 (annotate_frames_invalid): Likewise.
4046
f411722c
TT
40472019-06-14 Tom Tromey <tromey@adacore.com>
4048
4049 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4050 allow assignment to an internalvar.
4051
4268ec18
TT
40522019-06-14 Tom Tromey <tromey@adacore.com>
4053
4054 * ada-lex.l: Allow "_" in attribute names.
4055
abdb711e
TT
40562019-06-14 Tom Tromey <tromey@adacore.com>
4057
4058 PR gdb/24653:
4059 * regcache.c (registers_changed): Don't call alloca.
4060 * top.c (execute_command): Don't call alloca.
4061
4c048731
PA
40622019-06-13 Pedro Alves <palves@redhat.com>
4063
4064 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4065 'expression'. When parsing an expression, error out if there's
4066 junk after "unlimited".
4067 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4068 (do_set_command): Adjust calls to is_unlimited_literal.
4069
66eb1ed3
PA
40702019-06-13 Pedro Alves <palves@redhat.com>
4071
4072 * compile/compile.c (make_compile_options_def_group): Add braces
4073 around array_view initializer.
4074 * thread.c (make_thread_apply_all_options_def_group)
4075 (make_thread_apply_all_options_def_group): Likewise.
4076
3345721a
PA
40772019-06-13 Pedro Alves <palves@redhat.com>
4078
4079 * NEWS (New commands): Mention "maint test-options
4080 require-delimiter", "maint test-options unknown-is-error", "maint
4081 test-options unknown-is-operand" and "maint show
4082 test-options-completion-result".
4083 (New command options, command completion): New section.
4084 (Completion improvements): New section.
4085 Mention that you can abbreviate "unlimited".
4086
6206060d
PA
40872019-06-13 Pedro Alves <palves@redhat.com>
4088
4089 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4090 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4091 * unittests/cli-utils-selftests.c (test_parse_flags)
4092 (test_parse_flags_qcs): Delete.
4093 (test_cli_utils): Don't call deleted functions.
4094
6665660a
PA
40952019-06-13 Pedro Alves <palves@redhat.com>
4096
4097 * thread.c: Include "cli/cli-option.h".
4098 (tp_array_compar_ascending): Global.
4099 (tp_array_compar): Delete function.
4100 (tp_array_compar_ascending, tp_array_compar_descending): New
4101 functions.
4102 (ascending_option_def, qcs_flag_option_def)
4103 (thr_qcs_flags_option_defs)
4104 (make_thread_apply_all_options_def_group)
4105 (make_thread_apply_options_def_group): New.
4106 (thread_apply_all_command): Use gdb::option::process_options.
4107 (thread_apply_command_completer)
4108 (thread_apply_all_command_completer): New.
4109 (thread_apply_command): Use gdb::option::process_options.
4110 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4111 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4112 to generate help text of "thread apply". Adjust "taas"'s help.
4113 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4114 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4115
f7e13587
PA
41162019-06-13 Pedro Alves <palves@redhat.com>
4117
4118 * thread.c (thread_apply_command): Check for invalid TID with
4119 isdigit instead of !isalpha.
4120
5d707134
PA
41212019-06-13 Pedro Alves <palves@redhat.com>
4122
4123 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4124 (validate_flags_qcs): New.
4125 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4126 (validate_flags_qcs): Declare.
4127 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4128 (make_frame_apply_options_def_group): New.
4129 (frame_apply_command_count): Process options with
4130 gdb::option::process_options.
4131 (frame_apply_completer): New.
4132 (frame_apply_level_completer, frame_apply_all_completer)
4133 (frame_apply_completer): New.
4134 (_initialize_stack): Update help of "frame apply", "frame apply
4135 level", "frame apply all" and "faas" to mention supported options
4136 and install command completers.
4137 * stack.h (frame_apply_all_completer): Declare.
4138 * thread.c: Include "stack.h".
4139 (tfaas_command): Add "--".
4140 (_initialize_thread): Update help "tfaas" to mention supported
4141 options and install command completer.
4142
272d4594
PA
41432019-06-13 Pedro Alves <palves@redhat.com>
4144
4145 * completer.c (complete_nested_command_line): New.
4146 (gdb_completion_word_break_characters_throw): Add assertion.
4147 * completer.h (complete_nested_command_line): Declare.
4148
90a1ef87
PA
41492019-06-13 Pedro Alves <palves@redhat.com>
4150
4151 * stack.c (parse_backtrace_qualifiers): New.
4152 (backtrace_command): Use it.
4153 (backtrace_command_completer): Complete on qualifiers.
4154
d4c16835
PA
41552019-06-13 Pedro Alves <palves@redhat.com>
4156
4157 * frame.c: Include "cli/cli-option.h.
4158 (user_set_backtrace_options): New.
4159 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4160 Delete.
4161 (get_prev_frame): Adjust.
4162 (boolean_option_def, uinteger_option_def)
4163 (set_backtrace_option_defs): New.
4164 (_initialize_frame): Adjust and use
4165 gdb::option::add_setshow_cmds_for_options to install "set
4166 backtrace past-main" and "set backtrace past-entry".
4167 * frame.h: Include "cli/cli-option.h".
4168 (struct frame_print_options): Forward declare.
4169 (print_frame_arguments_all, print_frame_arguments_scalars)
4170 (print_frame_arguments_none): Declare.
4171 (print_entry_values): Delete declaration.
4172 (struct frame_print_options, user_frame_print_options): New.
4173 (struct set_backtrace_options): New.
4174 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4175 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4176 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4177 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4178 (list_args_or_locals): Add frame_print_options parameter.
4179 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4180 * python/py-framefilter.c (enumerate_args): Pass down
4181 USER_FRAME_PRINT_OPTIONS.
4182 * stack.c: Include "cli/cli-option.h".
4183 (print_frame_arguments_all, print_frame_arguments_scalars)
4184 (print_frame_arguments_none): Declare.
4185 (print_raw_frame_arguments, print_entry_values): Delete.
4186 (user_frame_print_options): New.
4187 (boolean_option_def, enum_option_def, frame_print_option_defs):
4188 New.
4189 (struct backtrace_cmd_options): New.
4190 (bt_flag_option_def): New.
4191 (backtrace_command_option_defs): New.
4192 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4193 (print_frame_arg, read_frame_arg, print_frame_args)
4194 (print_frame_info, print_frame): Add frame_print_options parameter
4195 and use it.
4196 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4197 (backtrace_command_1): Add frame_print_options and
4198 backtrace_cmd_options parameters and use them.
4199 (make_backtrace_options_def_group): New.
4200 (backtrace_command): Process command options with
4201 gdb::option::process_options.
4202 (backtrace_command_completer): New.
4203 (_initialize_stack): Extend "backtrace"'s help to mention
4204 supported options. Install completer for "backtrace".
4205 Install some settings commands with add_setshow_cmds_for_options.
4206
2daf894e
PA
42072019-06-13 Pedro Alves <palves@redhat.com>
4208
4209 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4210 and that "set/show print raw frame-arguments" are now deprecated.
4211
4212 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4213 command.
4214 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4215 * stack.c (_initialize_stack): Install "set/show print
4216 raw-frame-arguments", and deprecate "set/show print raw
4217 frame-arguments".
4218 * valprint.c (_initialize_valprint): Deprecate "set/show print
4219 raw".
4220
e6ed716c
PA
42212019-06-13 Pedro Alves <palves@redhat.com>
4222
4223 * compile/compile.c (struct compile_options): New.
4224 (compile_flag_option_def, compile_command_option_defs)
4225 (make_compile_options_def_group): New.
4226 (compile_file_command): Handle options with
4227 gdb::option::process_options.
4228 (compile_file_command_completer): New function.
4229 (compile_code_command): Handle options with
4230 gdb::option::process_options.
4231 (compile_code_command_completer): New function.
4232 (_initialize_compiler): Install completers for "compile code" and
4233 "compile file". Mention available options in "compile code" and
4234 "compile code"'s help.
4235 * completer.c (advance_to_completion_word): New, factored out from
4236 ...
4237 (advance_to_expression_complete_word_point): ... this.
4238 (advance_to_filename_complete_word_point): New.
4239 * completer.h (advance_to_filename_complete_word_point): New
4240 declaration.
4241
7d8062de
PA
42422019-06-13 Pedro Alves <palves@redhat.com>
4243
4244 * compile/compile.c: Include "cli/cli-option.h".
4245 (compile_print_value): Scope data pointer is now a
4246 value_print_options pointer; adjust.
4247 (compile_print_command): Process options. Scope data pointer is
4248 now a value_print_options pointer; adjust.
4249 (_initialize_compile): Update "compile print"'s help to include
4250 supported options. Install a completer for "compile print".
4251 * cp-valprint.c (show_vtblprint, show_objectprint)
4252 (show_static_field_print): Delete.
4253 (_initialize_cp_valprint): Don't install "set print
4254 static-members", "set print vtbl", "set print object" here.
4255 * printcmd.c: Include "cli/cli-option.h" and
4256 "common/gdb_optional.h".
4257 (print_command_parse_format): Rework to fill in a
4258 value_print_options instead of a format_data.
4259 (print_value): Change parameter type from format_data pointer to
4260 value_print_options reference. Adjust.
4261 (print_command_1): Process options. Adjust to pass down a
4262 value_print_options.
4263 (print_command_completer): New.
4264 (_initialize_printcmd): Install print_command_completer as
4265 handle_brkchars completer for the "print" command. Update
4266 "print"'s help to include supported options.
4267 * valprint.c: Include "cli/cli-option.h".
4268 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4269 here from cp-valprint.c.
4270 (boolean_option_def, uinteger_option_def)
4271 (value_print_option_defs, make_value_print_options_def_group):
4272 New. Use gdb::option::add_setshow_cmds_for_options to install
4273 "set print elements", "set print null-stop", "set print repeats",
4274 "set print pretty", "set print union", "set print array", "set
4275 print address", "set print symbol", "set print array-indexes".
4276 * valprint.h: Include <string> and "cli/cli-option.h".
4277 (make_value_print_options_def_group): Declare.
4278 (print_value): Change parameter type from format_data pointer to
4279 value_print_options reference.
4280 (print_command_completer): Declare.
4281
9d0faba9
PA
42822019-06-13 Pedro Alves <palves@redhat.com>
4283
4284 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4285 (COMMON_SFILES): Add maint-test-settings.c.
4286 * cli/cli-decode.c (boolean_enums): New global, factored out from
4287 ...
4288 (add_setshow_boolean_cmd): ... here.
4289 * cli/cli-decode.h (boolean_enums): Declare.
4290 * cli/cli-option.c: New file.
4291 * cli/cli-option.h: New file.
4292 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4293 factored out from ...
4294 (parse_cli_boolean_value(const char *)): ... this.
4295 (is_unlimited_literal): Change parameter type to pointer to
4296 pointer. Adjust and advance ARG pointer.
4297 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4298 (parse_cli_var_enum): New, factored out from ...
4299 (do_set_command): ... this. Adjust.
4300 * cli/cli-setshow.h (parse_cli_boolean_value)
4301 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4302 (parse_cli_var_enum): Declare.
4303 * cli/cli-utils.c: Include "cli/cli-option.h".
4304 (get_ulongest): New.
4305 * cli/cli-utils.h (get_ulongest): Declare.
4306 (check_for_argument): New overloads.
4307 * maint-test-options.c: New file.
4308
2c722807
PA
43092019-06-13 Pedro Alves <palves@redhat.com>
4310
4311 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4312 parse a range if "-" is at the end of the string.
4313
dee7b4c8
PA
43142019-06-13 Pedro Alves <palves@redhat.com>
4315
4316 * cli/cli-setshow.c (parse_auto_binary_operation)
4317 (parse_cli_boolean_value): Don't allow "o".
4318
dca0f6c0
PA
43192019-06-13 Pedro Alves <palves@redhat.com>
4320
4321 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4322 * NEWS: Mention maint test-settings KIND.
4323 * maint-test-settings.c: New file.
4324
597bf39d
PA
43252019-06-13 Pedro Alves <palves@redhat.com>
4326
4327 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4328 completer.
4329 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4330 "set" completers.
4331
48c410fb
PA
43322019-06-13 Pedro Alves <palves@redhat.com>
4333
4334 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4335 after item.
4336
93bcb043
PA
43372019-06-13 Pedro Alves <palves@redhat.com>
4338
4339 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4340
cbba3ecd
PA
43412019-06-13 Pedro Alves <palves@redhat.com>
4342
4343 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4344 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4345 call.
4346 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4347 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4348 calls.
4349 (check_for_argument): Skip spaces after argument.
4350
b9a3f842
PA
43512019-06-13 Pedro Alves <palves@redhat.com>
4352
4353 * thread.c (thread_apply_command): Adjust TID parsing.
4354 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4355 detected before end of string.
4356 (tid_is_in_list): Error out if LIST is invalid.
4357
3844e605
PA
43582019-06-13 Pedro Alves <palves@redhat.com>
4359
4360 * completer.c (complete_line_internal_1): Rewind completion word
4361 point.
4362 (completion_tracker::advance_custom_word_point_by): Change
4363 parameter type to int.
4364 * completer.h (completion_tracker::advance_custom_word_point_by):
4365 Likewise.
4366
00b56dbe
PA
43672019-06-13 Pedro Alves <palves@redhat.com>
4368
4369 * completer.c (advance_to_completion_word): Handle delimiters.
4370
d106773e
PA
43712019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4372
4373 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4374
08f10e02
TT
43752019-06-11 Tom Tromey <tom@tromey.com>
4376
4377 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4378 (xmalloc_failed): Move to alloc.c.
4379 * alloc.c: New file.
4380 * Makefile.in (COMMON_SFILES): Add alloc.c.
4381
1c7fe951
TT
43822019-06-11 Tom Tromey <tom@tromey.com>
4383
4384 * nat/linux-waitpid.c: Don't include server.h.
4385 (linux_debug): Remove.
4386 (my_waitpid): Update.
4387
89549d7f
TT
43882019-06-11 Tom Tromey <tromey@adacore.com>
4389
4390 * infcall.c (_initialize_infcall): Remove trailing newline from
4391 help.
4392 * user-regs.c (_initialize_user_regs): Remove trailing newline
4393 from help.
4394 * typeprint.c (_initialize_typeprint): Remove trailing newline
4395 from help.
4396 * reverse.c (_initialize_reverse): Remove trailing newlines from
4397 help.
4398 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4399 from help.
4400 * language.c (add_set_language_command): Remove trailing newline
4401 from help.
4402 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4403 help.
4404 * disasm.c (_initialize_disasm): Remove trailing newline from
4405 help.
4406 * top.c (init_main): Remove trailing newline from help.
4407 * interps.c (_initialize_interpreter): Remove trailing newline
4408 from help.
4409 * btrace.c (_initialize_btrace): Remove trailing newlines from
4410 help.
4411 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4412 from help.
4413 * python/python.c (_initialize_python): Remove trailing newline
4414 from help.
4415 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4416 help.
4417 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4418 from help. Reformat some text.
4419 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4420 from help.
4421 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4422 newline from help.
4423
86108c13
TT
44242019-06-11 Tom Tromey <tromey@adacore.com>
4425
4426 * darwin-nat.c (darwin_decode_exception_message)
4427 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4428
a7067863
AB
44292019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4430
4431 * valops.c (value_slice): Check for not allocated or not
4432 associated values.
4433
9ab08412
TV
44342019-06-10 Tom de Vries <tdevries@suse.de>
4435
4436 PR gdb/24618
4437 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4438 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4439 invalid.
4440
f19e22e9
TV
44412019-06-10 Tom de Vries <tdevries@suse.de>
4442
4443 PR gdb/24611
4444 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4445 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4446
e99f9db0
TV
44472019-06-10 Tom de Vries <tdevries@suse.de>
4448
4449 PR symtab/24545
4450 * symtab.c (struct demangled_name_entry): Add language field.
4451 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4452 static minimal symbol". Set and use language field.
4453
9bf7038b
TT
44542019-06-10 Tom Tromey <tromey@adacore.com>
4455
4456 * ada-lang.c (_initialize_ada_language): Update help text.
4457
422186a9
TT
44582019-06-10 Tom Tromey <tromey@adacore.com>
4459
4460 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4461 with a newline.
4462 * guile/guile.c (handle_boot_error): Don't end warning with a
4463 newline.
4464 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4465 warning with a newline.
4466 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4467 newline.
4468 (s12z_frame_cache): Likewise.
4469 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4470 a newline.
4471 * solib-svr4.c (disable_probes_interface): Don't end warning with
4472 a newline.
4473 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4474 newline.
4475 * python/python.c (do_finish_initialization): Don't end warning
4476 with a newline.
4477
25ce02ee
TT
44782019-06-10 Tom Tromey <tom@tromey.com>
4479
4480 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4481 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4482 gdbpy_enter.
4483
caa429d8
TT
44842019-06-10 Tom Tromey <tromey@adacore.com>
4485
4486 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4487 data.
4488 (elf_new_init): Don't call stabsread_new_init.
4489 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4490 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4491 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4492
81873cc8
TV
44932019-06-10 Tom de Vries <tdevries@suse.de>
4494
4495 PR symtab/16264
4496 PR symtab/24517
4497 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4498
4fa0265e
РИ
44992019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4500
4501 * source.c (find_and_open_source): Also rewrite relative file
4502 names.
4503
1a3da2cd
AB
45042019-04-26 Amos Bird <amosbird@gmail.com>
4505
4506 * annotate.c (annotate_thread_exited): Add "thread-exited"
4507 annotation.
4508
3847a7bf
TT
45092019-06-06 Tom Tromey <tromey@adacore.com>
4510
4511 * maint.h (class scoped_command_stats): Use
4512 DISABLE_COPY_AND_ASSIGN.
4513 <print_time>: New method.
4514 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4515 print_time.
4516 (scoped_command_stats::print_time): New method.
4517
312617a3
AB
45182019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4519
4520 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4521 instructions of lengths 6 or 8 bytes.
4522
b02f78f9
PA
45232019-06-04 Pedro Alves <palves@redhat.com>
4524
4525 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4526
4527 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4528 * breakpoint.c (condition_completer): Likewise.
4529 * cli/cli-dump.c (scan_expression): Likewise.
4530 * common/filestuff.c (mkdir_recursive): Likewise.
4531 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4532 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4533 (gdb_abspath): Likewise.
4534 * compile/compile-cplus-types.c
4535 (compile_cplus_instance::decl_name): Likewise.
4536 * completer.c (complete_explicit_location):
4537 (signal_completer, reg_or_group_completer_1): Likewise.
4538 * cp-support.c (cp_remove_params_if_any): Likewise.
4539 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4540 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4541 * infcmd.c (strip_bg_char): Likewise.
4542 * linespec.c (copy_token_string): Likewise.
4543 * mi/mi-main.c (output_cores): Likewise.
4544 * psymtab.c (psymtab_search_name):
4545 * symfile.c (test_set_ext_lang_command): Likewise.
4546 * target.c (target_fileio_read_stralloc): Likewise.
4547 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4548 * value.c (complete_internalvar): Likewise.
4549
e1f2e1a2
CB
45502019-06-04 Christian Biesinger <cbiesinger@google.com>
4551
4552 Add objfile property to gdb.Type.
d3238f7d
PA
4553 * NEWS: Mention Python API addition.
4554 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4555
e664d728
PW
45562019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4557
4558 * NEWS: Mention the new set|show style [title|highlight].
4559 Mention changes to "show style", "help" and "apropos".
4560
66d8c862
PW
45612019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4562
4563 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4564 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4565 instead of print_help_for_command.
4566 (print_doc_of_command): New function.
4567 (help_list): Add 'apropos -v word' suggestion.
4568 (print_help_for_command): Style the command name using title style.
4569 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4570 (_initialize_cli_cmds): Describe -v in apropos_command help.
4571
9303eb2f
PW
45722019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4573
4574 * cli/cli-style.h (cli_style_option): Add name in constructor,
4575 add m_name class member, add constructor with intensity,
4576 add name class function.
4577 (cli_style_option::add_setshow_commands): Remove name argument.
4578 (highlight_style, title_style): New styles.
4579 * cli/cli-style.c (do_show): New function that shows a style
4580 characteristic styling the style name with itself.
4581 (set_style_name): New function.
4582 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4583 Update all callers according to the changes in cli/cli-style.h.
4584 * utils.h (fputs_highlighted): New function.
4585 * utils.c (fputs_highlighted): Likewise.
4586
e2c52041
PW
45872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4588
4589 * NEWS: Mention new pipe command and new convenience variables.
4590
947d3946
PW
45912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4592
4593 * cli/cli-cmds.c (pipe_command): New function.
4594 (_initialize_cli_cmds): Call add_com for pipe_command.
4595 Define | as an alias for pipe.
4596 (exit_status_set_internal_vars): New function.
4597 (shell_escape): Call exit_status_set_internal_vars.
4598 cli/cli-decode.c (find_command_name_length): Recognize | as
4599 a single character command.
4600
b8fd0918
PW
46012019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4602
4603 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4604 top.c (execute_command_to_ui_file): New function, mostly a copy
4605 of execute_command_to_string.
4606 (execute_command_to_string): Implement by calling
4607 execute_command_to_ui_file.
4608
68bb5386
PW
46092019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4610
4611 * top.h (saved_command_line): Remove declaration.
4612 * top.c (previous_saved_command_line, previous_repeat_arguments):
4613 New variables.
4614 (saved_command_line): Make static, define together with other
4615 'repeat variables'.
4616 (dont_repeat): Clear repeat_arguments.
4617 (repeat_previous, get_saved_command_line, save_command_line):
4618 New functions.
4619 (gdb_init): Initialize saved_command_line
4620 and previous_saved_command_line.
4621 * main.c (captured_main_1): Remove saved_command_line initialization.
4622 * event-top.c (handle_line_of_input): Update to use
4623 the new 'repeat' related functions instead of direct access to
4624 saved_command_line.
4625 * command.h (repeat_previous, get_saved_command_line,
4626 save_command_line): New declarations.
4627 (dont_repeat): Add comment.
4628
bfcdb852
TT
46292019-05-30 Tom Tromey <tromey@adacore.com>
4630
4631 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4632 Fix comment.
4633 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4634
0ef209f2
JV
46352019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4636
4637 PR cli/24587
4638 * completer.c (complete): Initialize variable word.
4639
955b06fa
SDJ
46402019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4641
4642 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4643 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4644 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4645 'body' is NULL to the outter 'if', protecting the '!is_define'
4646 situation as well.
4647
fa9c3fa0
TT
46482019-05-29 Tom Tromey <tromey@adacore.com>
4649
4650 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4651 (dwarf_unknown): New function.
4652 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4653 (dwarf_type_encoding_name): Use dwarf_unknown.
4654
4330d61d
TT
46552019-05-29 Tom Tromey <tromey@adacore.com>
4656
4657 PR c++/20020:
4658 * cp-valprint.c (cp_print_value_fields): Call
4659 cp_print_static_field inside "try".
4660
33a6bc35
TT
46612019-05-29 Tom Tromey <tromey@adacore.com>
4662
4663 * inflow.c (struct terminal_info): Add default operator=.
4664 * configure: Rebuild.
4665 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4666 -Wdeprecated-copy-dtor, -Wredundant-move.
4667
000439d5
TT
46682019-05-29 Tom Tromey <tromey@adacore.com>
4669
4670 * NEWS: Add entry.
4671 * infcmd.c (print_return_value_1): Handle finish_print
4672 option.
4673 (show_print_finish): New function.
4674 (_initialize_infcmd): Add "set/show print finish" commands.
4675 * valprint.c (user_print_options): Initialize new member.
4676 * valprint.h (struct value_print_options) <finish_print>: New
4677 member.
4678
c0e70c62
TT
46792019-05-28 Tom Tromey <tromey@adacore.com>
4680
4681 * ada-lang.c (ada_remove_Xbn_suffix)
4682 (find_old_style_renaming_symbol)
4683 (parse_old_style_renaming): Remove.
4684 (ada_find_renaming_symbol): Don't call
4685 find_old_style_renaming_symbol.
4686 (ada_is_renaming_symbol): Rename from
4687 ada_find_renaming_symbol. Remove "block" parameter. Return
4688 bool. Now static.
4689 (ada_read_var_value): Update and simplify.
4690 * ada-exp.y (write_var_or_type): Remove old code.
4691
766f8836
AH
46922019-05-28 Alan Hayward <alan.hayward@arm.com>
4693
4694 * event-top.c: Remove include comment.
4695 * inflow.c (class scoped_ignore_sigttou): Move from here...
4696 * inflow.h (class scoped_ignore_sigttou): ...to here.
4697 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4698 * top.c: Remove include comment.
4699
eb41253a
TT
47002019-05-27 Tom Tromey <tom@tromey.com>
4701
4702 * NEWS: Fix typo.
4703
4ca51187
TT
47042019-05-22 Tom Tromey <tromey@adacore.com>
4705
4706 * target.c (target_follow_exec): Constify parameter.
4707 * target-delegates.c: Rebuild.
4708 * remote.c (remote_target::follow_exec): Constify parameter.
4709 * infrun.c (follow_exec): Constify parameter.
4710 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4711 (target_follow_exec): Likewise.
4712
8fca4da0
AH
47132019-05-22 Alan Hayward <alan.hayward@arm.com>
4714
4715 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4716 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4717
b7060614
AH
47182019-05-22 Alan Hayward <alan.hayward@arm.com>
4719
4720 * NEWS: Add debugredirect and testsuite sections.
4721
0a5954bd
SC
47222019-05-22 Simon Cook <simon.cook@embecosm.com>
4723
4724 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4725 target descriptions using exclusively floating point register name
4726 aliases.
4727
dc42e902
AB
47282019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 PR gdb/18644:
4731 * f-lang.c (build_fortran_types): Handle the case where
4732 gdbarch_floatformat_for_type returns a nullptr.
4733
fb7806c7
TV
47342019-05-21 Tom de Vries <tdevries@suse.de>
4735
4736 PR cli/24587
4737 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4738
34d11c68
AB
47392019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4740
4741 PR gdb/18644:
4742 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4743 16-byte floats.
4744 * i386-tdep.c (i386_floatformat_for_type): Use
4745 floatformats_ia64_quad for the 16-byte floating point component
4746 within a fortran 32-byte complex number.
4747
122cf0f2
AB
47482019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4751 delete default constructor.
4752 (find_partial_die): Update to return const struct.
4753 (partial_die_parent_scope): Move variable declaration into scope
4754 of its use and change its type to auto.
4755 (guess_partial_die_structure_name): Likewise.
4756 (partial_die_info::fixup): Likewise.
4757
33d0e35a
TT
47582019-05-17 Tom Tromey <tromey@adacore.com>
4759
4760 * source.c (find_and_open_source): Remove cast.
4761
a45575b0
TT
47622019-05-17 Tom Tromey <tromey@adacore.com>
4763
4764 * annotate.c (annotate_source): Make "filename" const.
4765 * annotate.h (annotate_source): Use const.
4766
81f47ac2
AH
47672019-05-17 Alan Hayward <alan.hayward@arm.com>
4768
4769 * disasm.c (set_disassembler_options): Send errors to stderr.
4770
ca1285d1
AH
47712019-05-17 Alan Hayward <alan.hayward@arm.com>
4772
4773 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4774 (cli_interp_base::set_logging): Check debug_redirect.
4775 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4776 * cli/cli-logging.c (debug_redirect): Add static variable.
4777 (pop_output_files): Add default param.
4778 (handle_redirections): Print debug setting.
4779 (show_logging_command): Likewise.
4780 (_initialize_cli_logging): Add debugredirect command.
4781 * interps.c (current_interp_set_logging): Add debug_redirect
4782 parameter.
4783 * interps.h (set_logging): Add debug_redirect parameter.
4784 (current_interp_set_logging): Likewise.
4785 * mi/mi-common.h: Likewise.
4786 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4787
47882019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4789 Tom Tromey <tromey@adacore.com>
4790
4791 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4792 directly.
4793 * cli/cli-interp.h (make_logging_output): Remove declaration.
4794 * cli/cli-logging.c (make_logging_output): Remove function.
4795 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4796 directly.
4797 * ui-file.c (tee_file::tee_file): Remove bools.
4798 (tee_file::~tee_file): Remove deletes.
4799 * ui-file.h (tee_file): Remove bools.
4800
26648588
JV
48012019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4802
4803 * mi/mi-cmds.h (mi_cmd_complete): New function.
4804 * mi/mi-main.c (mi_cmd_complete): Likewise.
4805 * mi/mi-cmds.c: Define new MI command -complete.
4806 * NEWS: Mention new -complete command.
4807
6e035501
JV
48082019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4809
4810 * completer.h (complete): New function.
4811 * completer.c (complete): Likewise.
4812 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4813 function defined in completer.h.
4814
7d0e2ece
JV
48152019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4816
e79be6e5 4817 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4818
fb816e8b
TV
48192019-05-17 Tom de Vries <tdevries@suse.de>
4820
4821 PR gdb/24094
4822 * dwarf2read.c (struct cu_partial_die_info): New struct.
4823 (find_partial_die): Return cu_partial_die_info.
4824 (partial_die_parent_scope, guess_partial_die_structure_name)
4825 (partial_die_info::fixup): Handle new return type of find_partial_die.
4826
677052f2
SDJ
48272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4828
4829 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4830 "std::string", simplifying the algorithm.
4831
f3da9116
SDJ
48322019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4833
4834 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4835 (stap_static_probe_ops::get_probes): Likewise.
4836
f1bb75ab
SDJ
48372019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4838
4839 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4840 '-')" and "else if".
4841 (stap_parse_single_operand): Join checks for
4842 "gdbarch_stap_parse_special_token_p" and
4843 "gdbarch_stap_parse_special_token" in the same "if" statement.
4844 Invert check when verifying for operation on register
4845 displacement.
4846
3ca58cde
SDJ
48472019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4848
4849 * stap-probe.c (stap_get_opcode): Update comment.
4850 (stap_get_expected_argument_type): Likewise.
4851 (handle_stap_probe): Likewise.
4852
af2d9bee
SDJ
48532019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4854
4855 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4856 return type to 'bool'. Adjust comment. Use 'bool' when
4857 appropriate.
4858 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4859 * stap-probe.c (stap_parse_argument_1): Likewise.
4860 (stap_is_operator): Likewise.
4861 (stap_is_generic_prefix): Likewise.
4862 (stap_is_register_prefix): Likewise.
4863 (stap_is_register_indirection_prefix): Likewise.
4864 (stap_is_integer_prefix): Likewise.
4865 (stap_generic_check_suffix): Likewise.
4866 (stap_check_integer_suffix): Likewise.
4867 (stap_check_register_suffix): Likewise.
4868 (stap_check_register_indirection_suffix): Likewise.
4869 (stap_parse_register_operand): Likewise.
4870 (stap_parse_single_operand): Likewise.
4871 (stap_parse_argument_1): Likewise.
4872 (stap_probe::get_argument_count): Likewise.
4873 (stap_is_operator): Likewise.
4874
61c9c421
TT
48752019-05-16 Tom Tromey <tromey@adacore.com>
4876
4877 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4878 keyword to foreach.
4879
9ddc1af1
SM
48802019-05-15 Simon Marchi <simon.marchi@efficios.com>
4881
4882 * linux-thread-db.c (try_thread_db_load_1): Change return type
4883 to bool.
4884 (try_thread_db_load): Likewise.
4885 (try_thread_db_load_from_pdir_1): Likewise.
4886 (try_thread_db_load_from_pdir): Likewise.
4887 (try_thread_db_load_from_sdir): Likewise.
4888 (try_thread_db_load_from_dir): Likewise.
4889 (thread_db_load_search): Likewise.
4890 (has_libpthread): Likewise.
4891 (thread_db_load): Likewise.
4892
7bede828
SDJ
48932019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4894
4895 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4896 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4897 NULL, and complain/return if that's the case.
4898
c5358db4
JD
48992019-05-15 John Darrington <john@darrington.wattle.id.au>
4900
4901 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4902 (advance, posn, abstract_read_memory): New functions.
4903 [struct mem_read_abstraction]: New struct.
4904 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4905
c408a94f
TT
49062019-05-14 Tom Tromey <tromey@adacore.com>
4907
4908 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4909 value is not lval_memory.
4910
e7bd7fba
TT
49112019-05-14 Tom Tromey <tromey@adacore.com>
4912
4913 * solib.c (info_sharedlibrary_command): Style the file name.
4914
a6d0f249
AH
49152019-05-14 Alan Hayward <alan.hayward@arm.com>
4916
4917 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4918 (aarch64_vnv_type): Likewise.
4919 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4920 * common/tdesc.c: Likewise.
4921 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4922 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4923 * features/aarch64-fpu.xml: Add ieee half view.
4924 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4925 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4926 * gdbtypes.h (struct builtin_type): Likewise.
4927 (struct objfile_type): Likewise.
4928
66b8bb74
SM
49292019-05-12 Paul Naert <paul.naert@polymtl.ca>
4930
4931 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4932 typo.
4933 * location.h (string_to_event_location): Likewise.
4934
21c219fd
JB
49352019-05-11 Joel Brobecker <brobecker@adacore.com>
4936
4937 GDB 8.3 released.
4938
13674803
SM
49392019-05-10 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4942 New variable declaration.
4943 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4944 New variable.
4945 (print_one_breakpoint): Use ui_out::test_flags and new global
4946 variable to compute use_fixed_output.
4947 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4948 Remove.
4949 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4950 (mi_multi_location_breakpoint_output_fixed): Remove.
4951 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4952 new variable.
4953 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4954 fix_multi_location_breakpoint_output flag if version >= 3.
4955 * ui-out.h (enum ui_out_flag)
4956 <fix_multi_location_breakpoint_output>: New enumerator.
4957
a9eac7f9
SM
49582019-05-10 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4961
71bed2db
TT
49622019-05-10 Tom Tromey <tromey@adacore.com>
4963
4964 * ada-lang.c (catch_ada_completer): New function.
4965 (_initialize_ada_language): Use it.
4966
24c54127
TT
49672019-05-10 Tom Tromey <tromey@adacore.com>
4968
4969 * thread.c (print_thread_info): Make "requested_threads" const.
4970 * gdbthread.h (print_thread_info): Make "requested_threads"
4971 const.
4972 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4973 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4974
7a102139
TT
49752019-05-08 Tom Tromey <tom@tromey.com>
4976
4977 * gdbtypes.c (objfile_type_data): Change type.
4978 (objfile_type, _initialize_gdbtypes): Update.
4979
924d79e2
TT
49802019-05-08 Tom Tromey <tom@tromey.com>
4981
4982 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4983 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4984 (_initialize_dwarf2_frame): Update.
4985
4c58e337
TT
49862019-05-08 Tom Tromey <tom@tromey.com>
4987
4988 * objc-lang.c (objc_objfile_data): Change type.
4989 (find_methods): Update.
4990 (_initialize_objc_lang): Remove.
4991
d772d2ab
TT
49922019-05-08 Tom Tromey <tom@tromey.com>
4993
4994 * stabsread.c (rs6000_builtin_type_data): Change type.
4995 (rs6000_builtin_type, _initialize_stabsread): Update.
4996
d11d83f4
TT
49972019-05-08 Tom Tromey <tom@tromey.com>
4998
4999 * mips-tdep.c (mips_pdr_data): Remove.
5000 (_initialize_mips_tdep): Update.
5001
9a73f0ad
TT
50022019-05-08 Tom Tromey <tom@tromey.com>
5003
5004 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5005 (hppa_init_objfile_priv_data, read_unwind_info)
5006 (find_unwind_entry, _initialize_hppa_tdep): Update.
5007
8127a2fa
TT
50082019-05-08 Tom Tromey <tom@tromey.com>
5009
5010 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5011 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5012 on obstack.
5013 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5014
91d3055d
TT
50152019-05-08 Tom Tromey <tom@tromey.com>
5016
5017 * mdebugread.c (basic_type_data): Change type.
5018 (basic_type, _initialize_mdebugread): Update.
5019
31930bd3
TT
50202019-05-08 Tom Tromey <tom@tromey.com>
5021
5022 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5023
bdb3ed9e
TT
50242019-05-08 Tom Tromey <tom@tromey.com>
5025
5026 * nto-tdep.c (nto_inferior_data_reg): Change type.
5027 (nto_inferior_data): Update.
5028 (nto_inferior_data_cleanup, nto_new_inferior_data)
5029 (_initialize_nto_tdep): Remove.
5030 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5031
f37b313d
TT
50322019-05-08 Tom Tromey <tom@tromey.com>
5033
5034 * ada-lang.c (struct ada_inferior_data): Add initializers.
5035 (ada_inferior_data): Change type.
5036 (ada_inferior_data_cleanup): Remove.
5037 (get_ada_inferior_data, ada_inferior_exit)
5038 (struct ada_pspace_data): Add initializers, destructor.
5039 (ada_pspace_data_handle): Change type.
5040 (get_ada_pspace_data): Update.
5041 (ada_pspace_data_cleanup): Remove.
5042
24699405
TT
50432019-05-08 Tom Tromey <tom@tromey.com>
5044
5045 * coffread.c (struct coff_symfile_info): Add initializers.
5046 (coff_objfile_data_key): Move lower. Change type.
5047 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5048 Update.
5049 (coff_free_info): Remove.
5050
d4e05d2f
TT
50512019-05-08 Tom Tromey <tom@tromey.com>
5052
5053 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5054 (fbsd_pspace_data_handle): Move lower. Change type.
5055 (get_fbsd_pspace_data): Update.
5056 (fbsd_pspace_data_cleanup): Remove.
5057 (_initialize_fbsd_tdep): Update.
5058
14ef6690
TT
50592019-05-08 Tom Tromey <tom@tromey.com>
5060
5061 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5062 (get_ada_tasks_pspace_data): Update.
5063 (ada_tasks_pspace_data_cleanup): Remove.
5064 (_initialize_tasks): Update.
5065 (ada_tasks_inferior_data_handle): Change type.
5066 (get_ada_tasks_inferior_data): Update.
5067 (ada_tasks_inferior_data_cleanup): Remove.
5068 (struct ada_tasks_pspace_data): Add initializers.
5069
814cf43a
TT
50702019-05-08 Tom Tromey <tom@tromey.com>
5071
5072 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5073 * symfile-debug.c (debug_sym_get_probes): Change type.
5074 * stap-probe.c (handle_stap_probe):
5075 (stap_static_probe_ops::get_probes): Change type.
5076 * probe.h (class static_probe_ops) <get_probes>: Change type.
5077 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5078 (parse_probes_in_pspace): Update.
5079 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5080 Update.
5081 (any_static_probe_ops::get_probes): Change type.
5082 * elfread.c (elfread_data): New typedef.
5083 (probe_key): Change type.
5084 (elf_get_probes): Likewise. Update.
5085 (probe_key_free): Remove.
5086 (_initialize_elfread): Update.
5087 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5088 Change type.
5089 (dtrace_process_dof_probe, dtrace_process_dof)
5090 (dtrace_static_probe_ops::get_probe): Change type.
5091
02dc647e
TT
50922019-05-08 Tom Tromey <tom@tromey.com>
5093
5094 * xcoffread.c (struct xcoff_symfile_info): Rename from
5095 coff_symfile_info. Add initializers.
5096 (xcoff_objfile_data_key): Move lower. Change type.
5097 (XCOFF_DATA): Rewrite.
5098 (xcoff_free_info): Remove.
5099 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5100 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5101 (xcoff_initial_scan): Update.
5102
09232438
TT
51032019-05-08 Tom Tromey <tom@tromey.com>
5104
5105 * solib-svr4.c (struct svr4_info): Add initializers and
5106 destructor.
5107 <probes_table>: Now an htab_up.
5108 (solib_svr4_pspace_data): Change type.
5109 (free_probes_table): Simplify.
5110 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5111 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5112 (probes_table_remove_objfile_probes, register_solib_event_probe)
5113 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5114 (_initialize_svr4_solib): Update.
5115
7b4a314f
TT
51162019-05-08 Tom Tromey <tom@tromey.com>
5117
5118 * remote.c (remote_pspace_data): Change type.
5119 (remote_pspace_data_cleanup): Remove.
5120 (get_remote_exec_file, set_pspace_remote_exec_file)
5121 (_initialize_remote): Update.
5122
51d3063a
TT
51232019-05-08 Tom Tromey <tom@tromey.com>
5124
5125 * breakpoint.c (breakpoint_objfile_key): Change type.
5126 (get_breakpoint_objfile_data): Update.
5127 (free_breakpoint_objfile_data): Remove.
5128 (_initialize_breakpoint): Update.
5129
89fb8848
TT
51302019-05-08 Tom Tromey <tom@tromey.com>
5131
5132 * linux-tdep.c (struct linux_info): Add initializers.
5133 (linux_inferior_data): Move. Change type.
5134 (invalidate_linux_cache_inf): Update.
5135 (linux_inferior_data_cleanup): Remove.
5136 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5137
e9b89e2d
TT
51382019-05-08 Tom Tromey <tom@tromey.com>
5139
5140 * auxv.c (auxv_inferior_data): Move. Change type.
5141 (auxv_inferior_data_cleanup): Remove.
5142 (invalidate_auxv_cache_inf): Rewrite.
5143 (get_auxv_inferior_data, _initialize_auxv): Update.
5144
8c42777c
TT
51452019-05-08 Tom Tromey <tom@tromey.com>
5146
5147 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5148 (symfile_debug_objfile_data_key): Change type.
5149 (symfile_debug_installed, debug_qf_has_symbols)
5150 (debug_qf_find_last_source_symtab)
5151 (debug_qf_forget_cached_source_info)
5152 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5153 (debug_qf_print_stats, debug_qf_dump)
5154 (debug_qf_expand_symtabs_for_function)
5155 (debug_qf_expand_all_symtabs)
5156 (debug_qf_expand_symtabs_with_fullname)
5157 (debug_qf_map_matching_symbols)
5158 (debug_qf_expand_symtabs_matching)
5159 (debug_qf_find_pc_sect_compunit_symtab)
5160 (debug_qf_map_symbol_filenames)
5161 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5162 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5163 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5164 (debug_sym_read_linetable, debug_sym_relocate): Update.
5165 (symfile_debug_free_objfile): Remove.
5166 (install_symfile_debug_logging, _initialize_symfile_debug):
5167 Update.
5168
5bfd760d
TT
51692019-05-08 Tom Tromey <tom@tromey.com>
5170
5171 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5172 allocate_on_obstack.
5173 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5174 (get_dwarf2_per_objfile): Update.
5175 (set_dwarf2_per_objfile): Remove.
5176 (dwarf2_has_info, dwarf2_get_section_info): Update.
5177 (dwarf2_free_objfile): Remove.
5178 (_initialize_dwarf2_read): Update.
5179
e85e19b4
TT
51802019-05-08 Tom Tromey <tom@tromey.com>
5181
5182 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5183 initializers.
5184 <unsupported_script_warning_printed,
5185 script_not_found_warning_printed>: Now bool.
5186 (auto_load_pspace_data): Change type.
5187 (~auto_load_pspace_info): Rename from
5188 auto_load_pspace_data_cleanup.
5189 (get_auto_load_pspace_data, init_loaded_scripts_info)
5190 (clear_section_scripts, maybe_print_unsupported_script_warning)
5191 (maybe_print_script_not_found_warning, _initialize_auto_load):
5192 Update.
5193
f6aa7436
TT
51942019-05-08 Tom Tromey <tom@tromey.com>
5195
5196 * objfiles.c (objfile_pspace_info): Add destructor and
5197 initializers.
5198 (objfiles_pspace_data): Change type.
5199 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5200 (get_objfile_pspace_data): Update.
5201 (objfiles_bfd_data): Change type.
5202 (get_objfile_bfd_data): Update.
5203 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5204
6ae614f6
TT
52052019-05-08 Tom Tromey <tom@tromey.com>
5206
5207 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5208 Change type.
5209 (get_catch_syscall_inferior_data): Update.
5210 (catch_syscall_inferior_data_cleanup): Remove.
5211 (_initialize_break_catch_syscall): Update.
5212
6509b8eb
TT
52132019-05-08 Tom Tromey <tom@tromey.com>
5214
5215 * inflow.c (struct terminal_info): Add destructor and
5216 initializers.
5217 (inflow_inferior_data): Change type.
5218 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5219 (get_inflow_inferior_data, inflow_inferior_exit)
5220 (swap_terminal_info, _initialize_inflow): Update.
5221
35632941
TT
52222019-05-08 Tom Tromey <tom@tromey.com>
5223
5224 * target-dcache.c (target_dcache_cleanup): Remove.
5225 (target_dcache_aspace_key): Change type.
5226 (target_dcache_init_p, target_dcache_invalidate)
5227 (target_dcache_get, target_dcache_get_or_init)
5228 (_initialize_target_dcache): Update.
5229 * dcache.h (struct dcache_deleter): New.
5230
3017b94d
TT
52312019-05-08 Tom Tromey <tom@tromey.com>
5232
5233 * symtab.c (struct symbol_cache): Add destructor and
5234 initializers.
5235 (symbol_cache_key): Move. Change type.
5236 (make_symbol_cache, free_symbol_cache): Remove.
5237 (get_symbol_cache): Update.
5238 (symbol_cache_cleanup): Remove.
5239 (ALL_PSPACES, symbol_cache_flush)
5240 (maintenance_print_symbol_cache)
5241 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5242 Update.
5243
a32ad8c5
TT
52442019-05-08 Tom Tromey <tom@tromey.com>
5245
5246 * symtab.c (struct main_info): Add destructor and initializers.
5247 (main_progspace_key): Move. Change type.
5248 (get_main_info): Update.
5249 (main_info_cleanup): Remove.
5250 (_initialize_symtab): Update.
5251
5f6e90a0
TT
52522019-05-08 Tom Tromey <tom@tromey.com>
5253
5254 * registry.h (DECLARE_REGISTRY): Define the _key class.
5255
1bd0c6e4
AB
52562019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5257
5258 * NEWS: Merge two 'New commands' sections.
5259
2228ef77
XR
52602019-05-08 Joel Brobecker <brobecker@adacore.com>
5261
5262 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5263 parameter and use Ada language definition instead.
5264 (ada_val_print_ptr): Remove unused language parameter.
5265 (ada_val_print_num): Remove language parameter and use Ada language
5266 definition instead.
5267 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5268 parameter.
5269 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5270 parameter and use Ada language definition instead.
5271 (ada_val_print_1): Update all ada_val_print_xxx calls.
5272 Remove language parameter.
5273 (ada_val_print): Update ada_val_print_1 call.
5274
60fcc1c3
TT
52752019-05-08 Tom Tromey <tromey@adacore.com>
5276
5277 * remote.c (remote_hw_watchpoint_limit)
5278 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5279 Now static.
5280
ed2b7c17
TT
52812019-05-08 Tom Tromey <tromey@adacore.com>
5282
5283 * maint.c (_initialize_maint_cmds): Move initialization code to
5284 remote.c.
5285 (watchdog, show_watchdog): Move to remote.c.
5286 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5287 "watchdog" static.
5288 (_initialize_remote): Move initialization code from maint.c.
5289 * defs.h (watchdog): Don't declare.
5290
b0be6c91
TT
52912019-05-08 Tom Tromey <tromey@adacore.com>
5292
5293 * tui/tui-interp.c: Include main.h.
5294 * interps.c: Include main.h.
5295 * main.h (interpreter_p): Declare.
5296 * defs.h (interpreter_p): Don't declare.
5297
587ee17b
TT
52982019-05-08 Tom Tromey <tromey@adacore.com>
5299
5300 * dwarf2loc.c: Include dwarf2read.h.
5301 * defs.h (read_unsigned_leb128): Don't declare.
5302 * dwarf2read.h (read_unsigned_leb128): Declare.
5303
ca1df239
TT
53042019-05-08 Tom Tromey <tromey@adacore.com>
5305
5306 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5307 method.
5308
99f20f08
TT
53092019-05-08 Tom Tromey <tromey@adacore.com>
5310
5311 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5312 when no wrap column is set.
5313
80e55b13
TT
53142019-05-08 Tom Tromey <tromey@adacore.com>
5315
5316 * c-lang.c (c_get_string): Handle non-C-style arrays.
5317
9d3421af
TT
53182019-05-08 Tom Tromey <tromey@adacore.com>
5319
5320 * typeprint.c (print_offset_data::update): Print the bit offset,
5321 not the number of bits remaining.
5322
844333e2
TT
53232019-05-08 Tom Tromey <tromey@adacore.com>
5324
5325 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5326 padding at end of comment.
5327
988915ee
TT
53282019-05-08 Tom Tromey <tromey@adacore.com>
5329
5330 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5331 Compare main types.
5332
26bfd823
TT
53332019-05-06 Tom Tromey <tom@tromey.com>
5334
5335 * common/scoped_mmap.c: Include common-defs.h.
5336 * common/scoped_mmap.h: Don't include config.h.
5337
89055eaa
TT
53382019-05-04 Tom Tromey <tom@tromey.com>
5339
5340 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5341 (struct aarch64_call_info): Add initializers.
5342 <si>: Now a std::vector.
5343 (pass_on_stack, aarch64_push_dummy_call): Update.
5344
5da01df5
TT
53452019-05-04 Simon Marchi <simon.marchi@efficios.com>
5346 Tom Tromey <tom@tromey.com>
5347
5348 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5349 (ppc_threads): Now a std::vector. Now static.
5350 (hwdebug_find_thread_points_by_tid)
5351 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5352 Update.
5353
fbdf05a1
TT
53542019-05-04 Tom Tromey <tom@tromey.com>
5355
5356 * arc-tdep.c (arc_tdesc_init): Return bool.
5357
06d16ec9
TT
53582019-05-04 Tom Tromey <tom@tromey.com>
5359
5360 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5361 Use gdb_assert_not_reached.
5362
9c056022
TT
53632019-05-04 Tom Tromey <tom@tromey.com>
5364
5365 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5366 "false".
5367
fa9c2a59
TT
53682019-05-04 Tom Tromey <tom@tromey.com>
5369
5370 * arc-tdep.c (arc_tdesc_init): Use bool.
5371
e2eb806a
TT
53722019-05-04 Tom Tromey <tom@tromey.com>
5373
5374 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5375
6fe87677
TT
53762019-05-04 Tom Tromey <tom@tromey.com>
5377
5378 * cli/cli-cmds.c (valid_command_p): Return bool.
5379
7f008c9e
TT
53802019-05-04 Tom Tromey <tom@tromey.com>
5381
5382 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5383 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5384
b6484282
RT
53852019-05-04 Raul Tambre <raul@tambre.ee>
5386
5387 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5388 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5389 operator for comparison.
5390
af97b416
TT
53912019-05-04 Tom Tromey <tom@tromey.com>
5392
5393 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5394 (lookup_partial_symbol, print_partial_symbols)
5395 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5396 (psymbol_compare): Update.
5397 (add_psymbol_to_bcache): Clear the entire psymbol.
5398 (maintenance_check_psymtabs): Update.
5399 * psympriv.h (struct partial_symbol): Don't derive from
5400 general_symbol_info.
5401 <obj_section, unrelocated_address, address,
5402 set_unrelocated_address>: Update.
5403 <ginfo>: New member.
5404 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5405 (debug_names::write_psymbols): Update.
5406
9d6d4be8
TV
54072019-05-04 Tom de Vries <tdevries@suse.de>
5408
5409 * contrib/cc-with-tweaks.sh: Support -n arg.
5410
66452beb
PW
54112019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5412
5413 * corelow.c (core_target::detach): Ensure frame cache and
5414 register caches are cleared.
5415 inferior.c (exit_inferior_1): Likewise.
5416
bde09ab7
TT
54172019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5418 Tom Tromey <tom@tromey.com>
5419
5420 * dictionary.c (collate_pending_symbols_by_language): Remove
5421 "struct" from foreach.
5422 * symtab.c (lookup_global_symbol_from_objfile)
5423 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5424 foreach.
5425 * ser-tcp.c (net_open): Remove "struct" from foreach.
5426 * objfiles.c (objfile_relocate, objfile_rebase)
5427 (objfile_has_symbols): Remove "struct" from foreach.
5428 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5429 from foreach.
5430 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5431 foreach.
5432 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5433 "struct" from foreach.
5434 * ada-lang.c (create_excep_cond_exprs)
5435 (ada_exception_catchpoint_cond_string): Remove "struct" from
5436 foreach.
5437
222a8d25
TT
54382019-05-03 Tom Tromey <tromey@adacore.com>
5439
5440 * ada-exp.y (convert_char_literal): Check suffix of each
5441 enumerator.
5442
fcd60b84
DP
54432019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5444
5445 PR ada/21406:
5446 * ada-exp.y (yywrap): Don't define.
5447 * ada-lex.l (%option): Add noyywrap
5448 (yywrap): Remove.
5449
5f2459c2
EZ
54502019-05-03 Eli Zaretskii <eliz@gnu.org>
5451
353ea2d1
EZ
5452 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5453 _WIN32_WINNT to the XP level, unless already defined to a higher
5454 level.
5455
5456 * unittests/parse-connection-spec-selftests.c:
5457 * ser-tcp.c:
5458 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5459 override.
5460
5f2459c2
EZ
5461 * symfile.c (find_separate_debug_file): Remove colon from the
5462 drive spec of DOS/Windows file names of the target, so that the
5463 file name produced from DEBUGDIR and the target's directory will
5464 be valid on DOS/Windows systems.
5465
80062eb9
AB
54662019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5467
5468 * rust-lang.c (val_print_struct): Handle printing structures
5469 containing strings.
5470
b8c05e85
TT
54712019-05-02 Tom Tromey <tromey@adacore.com>
5472
5473 * valarith.c (_initialize_valarith): Remove.
5474
4504bbde
TT
54752019-05-01 Tom Tromey <tromey@adacore.com>
5476
5477 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5478 bitfields.
5479
d48e62f4
TT
54802019-05-01 Tom Tromey <tromey@adacore.com>
5481
5482 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5483 for big-endian copies.
5484
15f18d14
AT
54852019-04-30 Ali Tamur <tamur@google.com>
5486 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5487 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5488 (read_3_bytes): New function.
5489
ab4ee614
JB
54902019-04-30 Joel Brobecker <brobecker@adacore.com>
5491
5492 * windows-nat.c (main_thread_id): Delete.
5493 (handle_output_debug_string): Replace main_thread_id by
5494 current_event.dwThreadId.
5495 (fake_create_process): Likewise.
5496 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5497 Do not set main_thread_id.
5498 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5499 current_event.dwThreadId.
5500 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5501
8ed5b76e
JB
55022019-04-30 Joel Brobecker <brobecker@adacore.com>
5503
5504 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5505 Use current_event.dwThreadId instead of main_thread_id.
5506
2ff0a947
TT
55072019-04-30 Tom Tromey <tromey@adacore.com>
5508
5509 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5510 (create_excep_cond_exprs): Iterate over program spaces.
5511 (ada_exception_catchpoint_cond_string): Examine all minimal
5512 symbols for exception types.
5513
a776957c
TT
55142019-04-30 Tom Tromey <tromey@adacore.com>
5515
5516 PR c++/24470:
5517 * dwarf2read.c (process_structure_scope): Handle case where type
5518 has template parameters but no symbol was created.
5519
bc68014d
AB
55202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5521 Chris January <chris.january@arm.com>
5522
5523 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5524 qualifier.
5525 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5526
f1fdc960
AB
55272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 * f-typeprint.c (f_print_type): Update rules for printing
5530 whitespace.
5531 (f_type_print_varspec_suffix): Likewise.
5532
bf7a4de1
AB
55332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5534 Chris January <chris.january@arm.com>
5535
5536 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5537 function arguments.
5538
bbe75b9d
AB
55392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * f-lang.c (build_fortran_types): Change name of void type to
5542 lower case.
5543 * f-typeprint.c (f_type_print_base): Print the name of the void
5544 type, rather than a fixed string.
5545 * f-valprint.c (f_decorations): Use lower case void string.
5546
1db455a7
AB
55472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5548 Chris January <chris.january@arm.com>
5549
5550 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5551 types for Fortran.
5552
b6d03bb2
AB
55532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5554 Chris January <chris.january@arm.com>
5555 David Lecomber <david.lecomber@arm.com>
5556
5557 * f-exp.y (BINOP_INTRINSIC): New token.
5558 (exp): New parser rule handling BINOP_INTRINSIC.
5559 (f77_keywords): Add new builtin procedures.
5560 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5561 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5562 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5563 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5564 (print_unop_subexp_f): New function.
5565 (print_binop_subexp_f): New function.
5566 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5567 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5568 (dump_subexp_body_f): Likewise.
5569 (operator_check_f): Likewise.
5570 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5571 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5572
83228e93
AB
55732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5576 UNOP_KIND.
5577 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5578 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5579 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5580 (operator_length_f): New fuction.
5581 (print_subexp_f): New function.
5582 (op_name_f): New function.
5583 (dump_subexp_body_f): New function.
5584 (operator_check_f): New function.
5585 (exp_descriptor_f): Replace standard expression handling functions
5586 with new functions.
5587 * gdb/fortran-operator.def: New file.
5588 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5589 * gdb/std-operator.def: Remove UNOP_KIND.
5590
6fdcd7cc
AB
55912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5592
5593 * std-operator.def: Remove unbalanced, stray double quote
5594 character.
5595
2e62ab40
AB
55962019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5597 Chris January <chris.january@arm.com>
5598 Daniel Everett <daniel.everett@arm.com>
5599 Nick Forrington <nick.forrington@arm.com>
5600 Richard Bunt <richard.bunt@arm.com>
5601
5602 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5603 of depth when printing anonymous structs or unions.
5604 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5605 Don't print either the top-level value, or the children if the
5606 max-depth is exceeded.
5607 (ppscm_print_children): When printing the key of a map, allow one
5608 extra level of depth.
5609 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5610 print either the top-level value, or the children if the max-depth
5611 is exceeded.
5612 (print_children): When printing the key of a map, allow one extra
5613 level of depth.
5614 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5615 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5616 (user_print_options): Initialise max_depth field.
5617 (val_print_scalar_or_string_type_p): New function.
5618 (val_print): Check to see if the max depth has been reached.
5619 (val_print_check_max_depth): Define new function.
5620 (show_print_max_depth): New function.
5621 (_initialize_valprint): Add 'print max-depth' option.
5622 * valprint.h (struct value_print_options) <max_depth>: New field.
5623 (val_print_check_max_depth): Declare new function.
5624 * NEWS: Document new feature.
5625
4be290b2
AB
56262019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5627
5628 * ada-lang.c (ada_language_defn): Initialise new field.
5629 * c-lang.c (c_is_string_type_p): New function.
5630 (c_language_defn): Initialise new field.
5631 (cplus_language_defn): Initialise new field.
5632 (asm_language_defn): Initialise new field.
5633 (minimal_language_defn): Initialise new field.
5634 * c-lang.h (c_is_string_type_p): Declare new function.
5635 * d-lang.c (d_language_defn): Initialise new field.
5636 * f-lang.c (f_is_string_type_p): New function.
5637 (f_language_defn): Initialise new field.
5638 * go-lang.c (go_is_string_type_p): New function.
5639 (go_language_defn): Initialise new field.
5640 * language.c (default_is_string_type_p): New function.
5641 (unknown_language_defn): Initialise new field.
5642 (auto_language_defn): Initialise new field.
5643 * language.h (struct language_defn) <la_is_string_type_p>: New
5644 member variable.
5645 (default_is_string_type_p): Declare new function.
5646 * m2-lang.c (m2_language_defn): Initialise new field.
5647 * objc-lang.c (objc_language_defn): Initialise new field.
5648 * opencl-lang.c (opencl_language_defn): Initialise new field.
5649 * p-lang.c (pascal_is_string_type_p): New function.
5650 (pascal_language_defn): Initialise new field.
5651 * rust-lang.c (rust_is_string_type_p): New function.
5652 (rust_language_defn): Initialise new field.
5653
721b08c6
AB
56542019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5655
5656 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5657 New field.
5658 * ada-lang.c (ada_language_defn): Initialise new field.
5659 * c-lang.c (c_language_defn): Likewise.
5660 (cplus_language_defn): Likewise.
5661 (asm_language_defn): Likewise.
5662 (minimal_language_defn): Likewise.
5663 * d-lang.c (d_language_defn): Likewise.
5664 * f-lang.c (f_language_defn): Likewise.
5665 * go-lang.c (go_language_defn): Likewise.
5666 * language.c (unknown_language_defn): Likewise.
5667 (auto_language_defn): Likewise.
5668 * m2-lang.c (m2_language_defn): Likewise.
5669 * objc-lang.c (objc_language_defn): Likewise.
5670 * opencl-lang.c (opencl_language_defn): Likewise.
5671 * p-lang.c (pascal_language_defn): Likewise.
5672 * rust-lang.c (rust_language_defn): Likewise.
5673
fc913e53
AB
56742019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5675
5676 * ada-lang.c (ada_is_character_type): Change return type to bool.
5677 (ada_is_string_type): Likewise.
5678 * ada-lang.h (ada_is_character_type): Update declaration
5679 (ada_is_string_type): Likewise.
5680
fa731fa0
PW
56812019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5682
5683 Support style in 'frame|thread apply'
5684
5685 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5686 * record.c (record_start, record_stop): Update callers of
5687 execute_command_to_string with false.
5688 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5689 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5690 methods.
5691 (class string_file): New constructor with term_out parameter.
5692 Override methods term_out and can_emit_style_escape. New member
5693 term_out.
5694 (class stdio_file): Override can_emit_style_escape.
5695 (class tee_file): Override term_out and can_emit_style_escape.
5696 * utils.h (can_emit_style_escape): Remove.
5697 * utils.c (can_emit_style_escape): Likewise.
5698 Update all callers of can_emit_style_escape (SOMESTREAM) to
5699 SOMESTREAM->can_emit_style_escape.
5700 * source-cache.c (source_cache::get_source_lines): Likewise.
5701 * stack.c (frame_apply_command_count): Call execute_command_to_string
5702 passing the term_out characteristic of the current gdb_stdout.
5703 * thread.c (thr_try_catch_cmd): Likewise.
5704 * top.c (execute_command_to_string): pass term_out parameter
5705 to construct the string_file for the command output.
5706 * ui-file.c (term_cli_styling): New function (most code moved
5707 from utils.c can_emit_style_escape).
5708 (string_file::string_file, string_file::can_emit_style_escape,
5709 stdio_file::can_emit_style_escape, tee_file::term_out,
5710 tee_file::can_emit_style_escape): New functions.
5711
136afab8
PW
57122019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5713
5714 * NEWS: Mention the new set|show may-call-functions.
5715 * infcall.c (may_call_functions_p): New variable.
5716 (show_may_call_functions_p): New function.
5717 (call_function_by_hand_dummy): Throws an error if not
5718 may-call-functions.
5719 (_initialize_infcall): Call add_setshow_boolean_cmd for
5720 may-call-functions.
5721
725cbb63
KS
57222019-04-25 Keith Seitz <keiths@redhat.com>
5723
5724 PR c++/24367
5725 * cp-support.c (inspect_type): Don't attempt substitutions
5726 of symbol with the same name.
5727
3d1cbb78
TT
57282019-04-25 Tom Tromey <tromey@adacore.com>
5729
5730 PR gdb/24475:
5731 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5732 static.
5733
94aeb44b
TT
57342019-04-25 Tom Tromey <tromey@adacore.com>
5735
5736 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5737 rvalue reference.
5738 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5739 (gdb_xml_parser::parse): Use std::move.
5740 * python/python-internal.h (gdbpy_convert_exception): Take a const
5741 reference.
5742 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5743 std::move.
5744 * python/py-utils.c (gdbpy_convert_exception): Take a const
5745 reference.
5746 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5747 Use std::move.
5748 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5749 Use std::move.
5750 * mi/mi-main.c (mi_print_exception): Take a const reference.
5751 * main.c (handle_command_errors): Take a const reference.
5752 * linespec.c (parse_linespec): Use std::move.
5753 * infcall.c (run_inferior_call): Use std::move.
5754 (call_function_by_hand_dummy): Use std::move.
5755 * exec.c (try_open_exec_file): Use std::move.
5756 * exceptions.h (exception_print, exception_fprintf)
5757 (exception_print_same): Update.
5758 * exceptions.c (print_exception, exception_print)
5759 (exception_fprintf, exception_print_same): Change parameters to
5760 const reference.
5761 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5762 * common/new-op.c: Use std::move.
5763 * common/common-exceptions.h (struct gdb_exception): Add move
5764 constructor.
5765 (struct gdb_exception_error, struct gdb_exception_quit, struct
5766 gdb_quit_bad_alloc): Change constructor to move constructor.
5767 (throw_exception): Change parameter to rvalue reference.
5768 * common/common-exceptions.c (throw_exception): Take rvalue
5769 reference.
5770 * cli/cli-interp.c (safe_execute_command): Use std::move.
5771 * breakpoint.c (insert_bp_location, location_to_sals): Use
5772 std::move.
5773
680d7fd5
TT
57742019-04-25 Tom Tromey <tromey@adacore.com>
5775
5776 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5777 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5778 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5779 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5780 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5781 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5782 guile/scm-value.c: Use unpack.
5783 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5784 gdbscm_gdb_exception.
5785 (gdbscm_throw_gdb_exception): Likewise.
5786 (struct gdbscm_gdb_exception): New.
5787 (unpack): New function.
5788 (gdbscm_wrap): Use unpack.
5789
c6fdd8b2
TT
57902019-04-25 Tom Tromey <tromey@adacore.com>
5791
5792 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5793 (gdb_rl_callback_handler): Use std::move.
5794 * common/common-exceptions.h (struct gdb_exception): Add move
5795 assignment operator.
5796 (throw_exception_sjlj): Change "exception" to const reference.
5797 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5798 (throw_exception_sjlj): Change "exception" to const reference.
5799
cc06b668
TT
58002019-04-25 Tom Tromey <tromey@adacore.com>
5801
5802 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5803 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5804 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5805 Update.
5806 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5807 Update.
5808 * mi/mi-interp.c (mi_interp::exec): Update.
5809 * linespec.c (parse_linespec): Update.
5810 * infcall.c (run_inferior_call): Update.
5811 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5812 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5813 (gdbscm_lookup_global_symbol): Update.
5814 * guile/scm-param.c (gdbscm_parameter_value): Update.
5815 * guile/scm-frame.c (gdbscm_frame_read_register)
5816 (gdbscm_frame_read_var): Update.
5817 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5818 * exec.c (try_open_exec_file): Update.
5819 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5820 (gdb_rl_callback_handler): Update.
5821 * common/common-exceptions.h (exception_none): Don't declare.
5822 * common/common-exceptions.c (exception_none): Don't define.
5823 (struct catcher) <exception>: Update.
5824 * cli/cli-interp.c (safe_execute_command): Update.
5825 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5826
cf532bd1
AT
58272019-04-25 Ali Tamur <tamur@google.com>
5828
5829 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5830 (read_attribute_value): Likewise.
5831 (dwarf2_read_addr_index): Update comment.
5832 (read_str_index): Add DW_FORM_strx.
5833 (dwarf2_string_attr): Likewise.
5834 (dwarf2_const_value_attr): Likewise.
5835 (dump_die_shallow): Likewise.
5836 (dwarf2_fetch_constant_bytes): Likewise.
5837 (skip_form_bytes): Likewise.
5838 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5839
82433e3e
SDJ
58402019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5841
5842 PR corefiles/11608
5843 PR corefiles/18187
5844 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5845 OFFSET. Verify if current mapping contains an ELF header.
5846 (linux_find_memory_regions_full): Adjust call to
5847 dump_mapping_p.
5848
723adb65
SL
58492019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5850 Kang Li <kanglictf@gmail.com>
5851
5852 PR gdb/21600
5853
5854 * dwarf2-frame.c (read_initial_length): Be consistent about using
5855 unsigned representation of length.
5856 (decode_frame_entry_1): Likewise. Check for wraparound of
5857 end pointer as well as buffer overflow.
5858
596179f7
SDJ
58592019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5860
5861 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5862 "vq".
5863
a59240a4
TT
58642019-04-24 Tom Tromey <tromey@adacore.com>
5865
5866 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5867
f872fdbb
AB
58682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5869
5870 * s12z-tdep.c (s12z_unwind_pc): Delete.
5871 (s12z_unwind_sp): Delete.
5872 (s12z_gdbarch_init): Don't register deleted functions with
5873 gdbarch.
5874
b614e6f3
AB
58752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5876
5877 * rl78-tdep.c (rl78_unwind_sp): Delete.
5878 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5879
14faed38
AB
58802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5881
5882 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5883 (xstormy16_unwind_pc): Delete.
5884 (xstormy16_dummy_id): Delete.
5885 (xstormy16_gdbarch_init): Don't register deleted functions with
5886 gdbarch.
5887
541aad8a
AB
58882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5889
5890 * vax-tdep.c (vax_unwind_pc): Delete.
5891 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5892
29222070
AB
58932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5894
5895 * v850-tdep.c (v850_unwind_sp): Delete.
5896 (v850_unwind_pc): Delete.
5897 (v850_dummy_id): Delete.
5898 (v850_gdbarch_init): Don't register deleted functions with
5899 gdbarch.
5900
0f534d76
AB
59012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5902
5903 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5904 (tilegx_unwind_pc): Delete.
5905 (tilegx_unwind_dummy_id): Delete.
5906 (tilegx_gdbarch_init): Don't register deleted functions with
5907 gdbarch.
5908
1ba7b7f9
AB
59092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5912 (tic6x_dummy_id): Delete.
5913 (tic6x_gdbarch_init): Don't register deleted functions with
5914 gdbarch.
5915
d31f262c
AB
59162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5917
5918 * sparc-tdep.c (sparc_unwind_pc): Delete.
5919 (sparc32_gdbarch_init): Don't register deleted function with
5920 gdbarch.
5921
6d14d64d
AB
59222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5923
5924 * sh-tdep.c (sh_unwind_sp): Delete.
5925 (sh_unwind_pc): Delete.
5926 (sh_dummy_id): Delete.
5927 (sh_gdbarch_init): Don't register deleted functions with
5928 gdbarch.
5929
a40dde9d
AB
59302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * score-tdep.c (score_unwind_sp): Delete.
5933 (score_unwind_pc): Delete.
5934 (score_dummy_id): Delete.
5935 (score_gdbarch_init): Don't register deleted functions with
5936 gdbarch.
5937
47c47d69
AB
59382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5939
5940 * rx-tdep.c (rx_unwind_pc): Delete.
5941 (rx_unwind_sp): Delete.
5942 (rx_dummy_id): Delete.
5943 (rx_gdbarch_init): Don't register deleted functions with
5944 gdbarch. Update comment.
5945
833a4480
AB
59462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5947
5948 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5949 (rs6000_dummy_id): Delete.
5950 (rs6000_gdbarch_init): Don't register deleted functions with
5951 gdbarch.
5952
3f2cef49
AB
59532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5954
5955 * or1k-tdep.c (or1k_dummy_id): Delete.
5956 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5957
96acf884
AB
59582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5959
5960 * nios2-tdep.c (nios2_dummy_id): Delete.
5961 (nios2_unwind_sp): Delete.
5962 (nios2_gdbarch_init): Don't register deleted functions with
5963 gdbarch.
5964
ca0ab0aa
AB
59652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5966
5967 * nds32-tdep.c (nds32_dummy_id): Delete.
5968 (nds32_unwind_pc): Delete.
5969 (nds32_unwind_sp): Delete.
5970 (nds32_gdbarch_init): Don't register deleted functions with
5971 gdbarch.
5972
c8259044
AB
59732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5974
5975 * msp430-tdep.c (msp430_unwind_pc): Delete.
5976 (msp430_unwind_sp): Delete.
5977 (msp430_dummy_id): Delete.
5978 (msp430_gdbarch_init): Don't register deleted functions with
5979 gdbarch.
5980
27f113c8
AB
59812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * moxie-tdep.c (moxie_unwind_sp): Delete.
5984 (moxie_unwind_pc): Delete.
5985 (moxie_dummy_id): Delete.
5986 (moxie_gdbarch_init): Don't register deleted functions with
5987 gdbarch.
5988
aee6c3cd
AB
59892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5992 (mn10300_unwind_pc): Delete.
5993 (mn10300_unwind_sp): Delete.
5994 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5995 mn10300_unwind_sp.
5996 (mn10300_frame_unwind_init): Don't register deleted functions with
5997 gdbarch.
5998
8e2b5aea
AB
59992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6000
6001 * mep-tdep.c (mep_unwind_pc): Delete.
6002 (mep_unwind_sp): Delete.
6003 (mep_dummy_id): Delete.
6004 (mep_gdbarch_init): Don't register deleted functions with
6005 gdbarch.
6006
43cf3ede
AB
60072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6008
6009 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6010 (m68hc11_unwind_sp): Delete.
6011 (m68hc11_gdbarch_init): Don't register deleted functions with
6012 gdbarch.
6013
5e79b7bb
AB
60142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6015
6016 * m32r-tdep.c (m32r_unwind_sp): Delete.
6017 (m32r_unwind_pc): Delete.
6018 (m32r_dummy_id): Delete.
6019 (m32r_gdbarch_init): Don't register deleted functions with
6020 gdbarch.
6021
89b268d8
AB
60222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 * m32c-tdep.c (m32c_unwind_pc): Delete.
6025 (m32c_unwind_sp): Delete.
6026 (m32c_dummy_id): Delete.
6027 (m32c_gdbarch_init): Don't register deleted functions with
6028 gdbarch.
6029
946c28d2
AB
60302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6033 (lm32_unwind_pc): Delete.
6034 (lm32_dummy_id): Delete.
6035 (lm32_gdbarch_init): Don't register deleted functions with
6036 gdbarch.
6037
bf12844a
AB
60382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6041 (iq2000_unwind_pc): Delete.
6042 (iq2000_dummy_id): Delete.
6043 (iq2000_gdbarch_init): Don't register deleted functions with
6044 gdbarch.
6045
ecbc06d2
AB
60462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6047
6048 * nds32-tdep.c (nds32_type_align): Delete.
6049 (nds32_push_dummy_call): Use type_align instead.
6050
030197b4
AB
60512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6052
6053 * arm-tdep.c (arm_type_align): Only handle vector override case.
6054 (arm_push_dummy_call): Use type_align.
6055 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6056
b907456c
AB
60572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6058
6059 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6060 case.
6061 (pass_on_stack): Use type_align.
6062 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6063 function.
6064
9e97ba43
TT
60652019-04-23 Tom Tromey <tromey@adacore.com>
6066
6067 * dwarf2read.c (line_header::file_name_at): Remove unused
6068 overload.
6069
6892f601
TV
60702019-04-23 Tom de Vries <tdevries@suse.de>
6071
6072 PR gdb/24438
6073 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6074 invocation.
6075
336d760d
AT
6076
60772019-03-27 Ali Tamur <tamur@google.com>
6078
6079 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6080 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6081 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6082 (dwarf_expr_context::get_addr_index): Likewise
6083 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6084 (symbol_needs_eval_context::get_addr_index): Likewise
6085 (disassemble_dwarf_expression): Add DW_OP_addrx
6086 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6087 (read_cutu_die_from_dwo): Update comment
6088 (skip_one_die): Add DW_FORM_addrx
6089 (read_attribute_value): Likewise
6090 (var_decode_location): Add DW_OP_addrx
6091 (dwarf2_const_value_attr): Add DW_FORM_addrx
6092 (dump_die_shallow): Likewise
6093 (dwarf2_fetch_constant_bytes): Likewise
6094 (decode_locdesc): Add DW_OP_addrx
6095 (skip_form_bytes): Add DW_FORM_addrx
6096
ad9d13f8
AT
60972019-04-22 Ali Tamur <tamur@google.com>
6098
6099 * MAINTAINERS (Write After Approval): Add self.
6100
d70cc3ba
SM
61012019-04-22 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6104 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6105 (open_symbol_file_object): Likewise.
6106 (svr4_default_sos): Add info parameter.
6107 (svr4_read_so_list): Likewise.
6108 (svr4_current_sos_direct): Adjust functions calls to pass down
6109 info.
6110 (svr4_current_sos_1): Add info parameter.
6111 (svr4_current_sos): Call get_svr4_info, pass info down to
6112 svr4_current_sos_1.
6113 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6114 get_svr4_info.
6115 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6116 get_svr4_info.
6117 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6118 to get_svr4_info.
6119 (probes_table_remove_objfile_probes): Likewise.
6120 (register_solib_event_probe): Add info parameter.
6121 (solist_update_incremental): Pass info parameter down to
6122 svr4_read_so_list.
6123 (disable_probes_interface): Add info parameter.
6124 (svr4_handle_solib_event): Pass current_program_space to
6125 get_svr4_info. Adjust disable_probes_interface cleanup.
6126 (svr4_create_probe_breakpoints): Add info parameter, pass it
6127 down to register_solib_event_probe.
6128 (svr4_create_solib_event_breakpoints): Add info parameter,
6129 pass it down to svr4_create_probe_breakpoints.
6130 (enable_break): Pass info down to
6131 svr4_create_solib_event_breakpoints.
6132 (svr4_solib_create_inferior_hook): Pass current_program_space to
6133 get_svr4_info.
6134 (svr4_clear_solib): Likewise.
6135
7905fc35
PA
61362019-04-22 Pedro Alves <palves@redhat.com>
6137
6138 * solib-svr4.c (svr4_free_objfile_observer): New.
6139 (probe_and_action::objfile): New field.
6140 (probes_table_htab_remove_objfile_probes)
6141 (probes_table_remove_objfile_probes): New functions.
6142 (register_solib_event_probe): Add 'objfile' parameter. Store it
6143 in the new probe_and_action. Don't store the probe in 'lookup'.
6144 (svr4_create_probe_breakpoints): Pass objfile to
6145 register_solib_event_probe.
6146 (_initialize_svr4_solib): Register a free_objfile observer.
6147
fb881986
TT
61482019-04-19 Tom Tromey <tom@tromey.com>
6149
6150 * common/queue.h: Remove.
6151
8732db6c
TT
61522019-04-19 Tom Tromey <tom@tromey.com>
6153
6154 * event-loop.c: Don't include "common/queue.h".
6155
97dfbadd
TT
61562019-04-19 Tom Tromey <tom@tromey.com>
6157
6158 * remote.c (remote_target): Use delete.
6159 * remote-notif.h: Include <list>, not "common/queue.h".
6160 (notif_client_p): Remove typedef.
6161 (remote_notif_state): Add constructor, destructor, initializer.
6162 <notif_queue>: Now a std::list.
6163 (remote_notif_state_xfree): Don't declare.
6164 * remote-notif.c (remote_notif_process, handle_notification)
6165 (remote_notif_state_allocate): Update.
6166 (~remote_notif_state): Rename from remote_notif_state_xfree.
6167
cf250e36
TT
61682019-04-19 Tom Tromey <tom@tromey.com>
6169
6170 * symfile.c (reread_symbols): Update.
6171 * objfiles.c (objfile_register_static_link)
6172 (objfile_lookup_static_link): Update
6173 (~objfile) Don't delete static_links.
6174 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6175
61f4b350
TT
61762019-04-19 Tom Tromey <tom@tromey.com>
6177
6178 * type-stack.h (struct type_stack) <insert>: Constify string.
6179 * type-stack.c (type_stack::insert): Constify string.
6180 * gdbtypes.h (lookup_template_type): Update.
6181 (address_space_name_to_int): Update.
6182 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6183 const.
6184 (lookup_template_type): Make name const.
6185 * c-exp.y: Update rules.
6186 (lex_one_token, classify_name, classify_inner_name)
6187 (c_print_token): Update.
6188 * p-exp.y: Update rules.
6189 (yylex): Update.
6190 * f-exp.y: Update rules.
6191 (yylex): Update.
6192 * d-exp.y: Update rules.
6193 (lex_one_token, classify_name, classify_inner_name): Update.
6194 * parse.c (write_dollar_variable, copy_name): Return std::string.
6195 * parser-defs.h (copy_name): Change return type.
6196 * m2-exp.y: Update rules.
6197 (yylex): Update.
6198 * go-exp.y (lex_one_token): Update.
6199 Update rules.
6200 (classify_unsafe_function, classify_packaged_name)
6201 (classify_name, yylex): Update.
6202
189b8c2e
ST
62032019-04-19 Sergei Trofimovich <siarheit@google.com>
6204
6205 * configure.ac: add --enable-source-highlight switch.
6206 * configure: Regenerate.
6207 * top.c (print_gdb_version): plumb --enable-source-highlight
6208 status to "show configuration".
6209
8ecb59f8
TT
62102019-04-19 Tom Tromey <tromey@adacore.com>
6211
6212 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6213 Check ADA_TYPE_P.
6214 (empty_record, ada_template_to_fixed_record_type_1)
6215 (template_to_static_fixed_type)
6216 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6217 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6218 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6219 macros.
6220
62160ec9
TT
62212019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6222
6223 PR symtab/24423:
6224 * source.c (print_source_lines_base): Advance "iter" when a
6225 control character is seen.
6226
f2ae8bc8
PW
62272019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6228
6229 * inferior.h (struct infcall_suspend_state_deleter):
6230 Catch exception in destructor to avoid crash.
6231
d563b953
PW
62322019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6233
6234 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6235 close to the add_com "shell".
6236
dc34c897
TT
62372019-04-18 Tom Tromey <tromey@adacore.com>
6238
6239 * process-stratum-target.h (class process_stratum_target)
6240 <stratum>: Add "final".
6241
a12e5744
TT
62422019-04-17 Tom Tromey <tromey@adacore.com>
6243
6244 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6245 against nullptr before use.
6246
a7e559cc
AH
62472019-04-17 Alan Hayward <alan.hayward@arm.com>
6248
6249 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6250
c01660c6
AB
62512019-04-17 Jim Wilson <jimw@sifive.com>
6252 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6255 code read might fail, assume 4-byte breakpoint in that case.
6256
4aa866af
LS
62572019-04-15 Leszek Swirski <leszeks@google.com>
6258
6259 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6260 rather than a hand-rolled POD check when checking for forced MEMORY
6261 classification.
6262
48574d91
AH
62632019-04-15 Alan Hayward <alan.hayward@arm.com>
6264
6265 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6266 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6267 function.
6268 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6269 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6270 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6271 declaration.
6272
4da037ef
AH
62732019-04-15 Alan Hayward <alan.hayward@arm.com>
6274
6275 * aarch64-linux-nat.c
6276 (aarch64_linux_nat_target::thread_architecture): Add override.
6277 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6278 each VQ.
6279
ccb8d7e8
AH
62802019-04-15 Alan Hayward <alan.hayward@arm.com>
6281
6282 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6283
35add35e
AB
62842019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6287 target types of size 96-bits, add some additional comments, and
6288 check that the builtin type we found was the correct size.
6289
51196bbc
EZ
62902019-04-12 Eli Zaretskii <eliz@gnu.org>
6291
6292 * utils.c (prompt_for_continue): Don't restore the styling at the
6293 end, as applied_style has the wrong value. This fixes styling in
6294 long lists of file names that are interrupted by the "Continue?"
6295 prompt.
6296
62253a61
AB
62972019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6298
6299 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6300 * c-lang.c (c_language_defn): Likewise.
6301 (cplus_language_defn): Likewise.
6302 (asm_language_defn): Likewise.
6303 (minimal_language_defn): Likewise.
6304 * d-lang.c (d_language_defn): Likewise.
6305 * f-lang.c (f_language_defn): Likewise.
6306 * go-lang.c (go_language_defn): Likewise.
6307 * language.c (unknown_language_defn): Likewise.
6308 (auto_language_defn): Likewise.
6309 * language.h (struct language_defn): Remove la_magic field.
6310 (LANG_MAGIC): Delete.
6311 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6312 * objc-lang.c (objc_language_defn): Likewise.
6313 * opencl-lang.c (opencl_language_defn): Likewise.
6314 * p-lang.c (pascal_language_defn): Likewise.
6315 * rust-lang.c (rust_language_defn): Likewise.
6316
a9158a86
AB
63172019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6318
6319 * riscv-tdep.c (riscv_type_align): New function.
6320 (riscv_type_alignment): Delete.
6321 (riscv_arg_location): Use 'type_align'.
6322 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6323
41077b66
AB
63242019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * gdbtypes.c (type_align): A struct with no non-static fields also
6327 has alignment of 1.
6328
9f0272f8
AB
63292019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6332 component to 0.
6333 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6334 member.
6335 (riscv_struct_info::analyse): New implementation using new
6336 analyse_inner member function.
6337 (riscv_struct_info::field_offset): New member function.
6338 (riscv_struct_info::m_offsets): New member variable.
6339 (riscv_struct_info::analyse_inner): New private member function,
6340 takes the old implementation of riscv_struct_info::analyse but
6341 extended to track field offsets.
6342 (riscv_call_arg_struct): Update the struct folding special cases
6343 to handle cases where empty C++ structs, which are non-zero
6344 length, are found.
6345 (riscv_arg_location): Initialise the length of each location, a
6346 non-zero length now indicates the location is in use.
6347 (riscv_push_dummy_call): Allow for the first location having a
6348 non-zero offset when setting up arguments.
6349 (riscv_return_value): Likewise, but for return values.
6350
02cf60c7
TT
63512019-04-11 Tom Tromey <tromey@adacore.com>
6352
6353 * utils.c (internal_vproblem): Make "msg" const.
6354
68811f8f
AH
63552019-04-11 Alan Hayward <alan.hayward@arm.com>
6356
6357 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6358 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6359 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6360 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6361
3f52fdbc
KB
63622019-04-10 Kevin Buettner <kevinb@redhat.com>
6363
6364 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6365 function.
6366 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6367 of amd64_collect_native_gregset.
6368 (amd64_linux_nat_target::store_registers): Likewise.
6369
e9ad22ee
TT
63702019-04-10 Tom Tromey <tom@tromey.com>
6371
6372 * symtab.c (lookup_global_symbol_from_objfile)
6373 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6374 * objfiles.h (class separate_debug_iterator): New.
6375 (class separate_debug_range): New.
6376 (struct objfile) <separate_debug_objfiles>: New method.
6377 (objfile_separate_debug_iterate): Don't declare.
6378 * objfiles.c (separate_debug_iterator::operator++): Rename from
6379 objfile_separate_debug_iterate.
6380 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6381 iterator.
6382 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6383 iterator.
6384
ee371134
TT
63852019-04-10 Tom Tromey <tom@tromey.com>
6386
6387 * symfile.c (reread_symbols): Remove old comment.
6388 * objfiles.c (free_all_objfiles): Fix a typo.
6389
bf227d61
TT
63902019-04-10 Tom Tromey <tom@tromey.com>
6391
6392 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6393 * minsyms.c (lookup_minimal_symbol): Use foreach.
6394 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6395 (lookup_minimal_symbol_solib_trampoline): Likewise.
6396 * symfile.c (reread_symbols): Use foreach.
6397
8dc433a0
TT
63982019-04-09 Ivan Begert <ivanbegert@gmail.com>
6399 Tom Tromey <tromey@adacore.com>
6400
6401 PR rust/24414:
6402 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6403 (rust_lex_int_test): Change "value" to be LONGEST.
6404 (rust_lex_tests): Add test for long integer literal.
6405
9ab8741a
TT
64062019-04-09 Tom Tromey <tromey@adacore.com>
6407
6408 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6409 to bool.
6410 (extended_remote_target::attach): Update.
6411 (remote_target::remote_notice_new_inferior): Update.
6412 (remote_target::add_current_inferior_and_thread): Update.
6413 * inferior.c (exit_inferior_1): Use "false".
6414 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6415
e242fd12
SM
64162019-04-09 Simon Marchi <simon.marchi@efficios.com>
6417
9ca1957f 6418 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6419 the "start" command.
6420
2b0c8b01
KB
64212019-04-08 Kevin Buettner <kevinb@redhat.com>
6422
6423 * python/py-inferior.c (infpy_thread_from_thread_handle):
6424 Adjust comments to reflect renaming of thread_from_thread_handle
6425 to thread_from_handle. Adjust keywords. Fix type error message.
6426 (inferior_object_methods): Add thread_from_handle. Retain
6427 thread_from_thread_handle, but mark it as deprecated.
6428
50a82723
KB
64292019-04-08 Kevin Buettner <kevinb@redhat.com>
6430
6431 * gdbthread.h (find_thread_by_handle): Revise declaration.
6432 * thread.c (find_thread_by_handle): Likewise. Adjust
6433 implementation too.
6434 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6435 support for buffer objects as handles.
6436
cf63b016
KB
64372019-04-08 Kevin Buettner <kevinb@redhat.com>
6438
6439 * python/py-infthread.c (thpy_thread_handle): New function.
6440 (thread_object_methods): Register thpy_thread_handle.
6441
3d6c6204
KB
64422019-04-08 Kevin Buettner <kevinb@redhat.com>
6443
6444 * gdbthread.h (thread_to_thread_handle): Declare.
6445 * thread.c (gdbtypes.h): Include.
6446 (thread_to_thread_handle): New function.
6447
6448 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6449 (target_thread_info_to_thread_handle): Declare.
6450 * target.c (target_thread_info_to_thread_handle): New function.
6451 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6452 * target-delegates.c: Regenerate.
6453
6454 * linux-thread-db.c (class thread_db_target): Add method
6455 thread_info_to_thread_handle.
6456 (thread_db_target::thread_info_to_thread_handle): Define.
6457 * remote.c (class remote_target): Add new method
6458 thread_info_to_thread_handle.
6459 (remote_target::thread_info_to_thread_handle): Define.
6460
56be6ea8
PA
64612019-04-08 Pedro Alves <palves@redhat.com>
6462
6463 * common/common-exceptions.c (throw_exception): Don't create
6464 named object to throw; throw directly.
6465 (throw_it): Likewise. Don't initialize gdb_exception::message
6466 here, with new; pass FMT and AP to the ctor instead.
6467 * common/common-exceptions.h: Include <string>.
6468 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6469 const char *, va_list)): New ctor. Use std::make_shared.
6470 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6471 errors)): Delete.
6472 (gdb_exception_error::gdb_exception_error(enum errors, const char
6473 *, va_list)): New.
6474 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6475 Add assertion.
6476 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6477 errors)): Delete.
6478 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6479 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6480 Add assertion.
6481
eedc3f4f
TT
64822019-04-08 Tom Tromey <tom@tromey.com>
6483
6484 * valops.c (value_rtti_indirect_type): Replace throw_exception
6485 with throw.
6486 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6487 with throw.
6488 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6489 throw.
6490 * target.c (target_translate_tls_address): Replace throw_exception
6491 with throw.
6492 * stack.c (frame_apply_command_count): Replace throw_exception
6493 with throw.
6494 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6495 throw.
6496 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6497 with throw.
6498 * rs6000-tdep.c (rs6000_frame_cache)
6499 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6500 * remote.c: Replace throw_exception with throw.
6501 * record-full.c (record_full_message, record_full_wait_1)
6502 (record_full_restore): Replace throw_exception with throw.
6503 * record-btrace.c:
6504 (get_thread_current_frame_id, record_btrace_start_replaying)
6505 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6506 (cmd_record_btrace_start): Replace throw_exception with throw.
6507 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6508 throw.
6509 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6510 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6511 * linespec.c:
6512 (find_linespec_symbols): Replace throw_exception with throw.
6513 * infrun.c (displaced_step_prepare, resume): Replace
6514 throw_exception with throw.
6515 * infcmd.c (post_create_inferior): Replace throw_exception with
6516 throw.
6517 * inf-loop.c (inferior_event_handler): Replace throw_exception
6518 with throw.
6519 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6520 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6521 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6522 (get_prev_frame_always, get_frame_pc_if_available)
6523 (get_frame_address_in_block_if_available, get_frame_language):
6524 Replace throw_exception with throw.
6525 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6526 throw_exception with throw.
6527 * eval.c (fetch_subexp_value, evaluate_var_value)
6528 (evaluate_funcall, evaluate_subexp_standard): Replace
6529 throw_exception with throw.
6530 * dwarf2loc.c (call_site_find_chain)
6531 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6532 Replace throw_exception with throw.
6533 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6534 with throw.
6535 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6536 throw.
6537 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6538 * completer.c (complete_line_internal): Replace throw_exception
6539 with throw.
6540 * compile/compile-object-run.c (compile_object_run): Replace
6541 throw_exception with throw.
6542 * cli/cli-script.c (process_next_line): Replace throw_exception
6543 with throw.
6544 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6545 (btrace_enable, btrace_maint_update_pt_packets): Replace
6546 throw_exception with throw.
6547 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6548 throw_exception with throw.
6549 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6550 throw_exception with throw.
6551 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6552 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6553 * aarch64-tdep.c (aarch64_make_prologue_cache)
6554 (aarch64_make_stub_cache): Replace throw_exception with throw.
6555
26003a20
TT
65562019-04-08 Tom Tromey <tom@tromey.com>
6557
6558 * common/common-exceptions.c (throw_exception): Rename from
6559 throw_exception_cxx. Remove old copy. Make argument const.
6560 (throw_it): Create and throw exception objects directly.
6561 * common/common-exceptions.h (throw_exception): Make argument
6562 const.
6563 (struct gdb_exception_error): Add constructor.
6564 (struct gdb_exception_quit): Add constructor.
6565
d272eb37
TT
65662019-04-08 Tom Tromey <tom@tromey.com>
6567
6568 * common/common-exceptions.h (exception_rethrow): Don't declare.
6569 (TRY_SJLJ): Update comment.
6570 (TRY, CATCH, END_CATCH): Remove.
6571 * common/common-exceptions.c (exception_rethrow): Remove.
6572
230d2906
TT
65732019-04-08 Tom Tromey <tom@tromey.com>
6574
6575 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6576 Remove.
6577 (gdb_exception_error): Rename from
6578 gdb_exception_RETURN_MASK_ERROR.
6579 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6580 (gdb_quit_bad_alloc): Update.
6581 * aarch64-tdep.c: Update.
6582 * ada-lang.c: Update.
6583 * ada-typeprint.c: Update.
6584 * ada-valprint.c: Update.
6585 * amd64-tdep.c: Update.
6586 * arch-utils.c: Update.
6587 * break-catch-throw.c: Update.
6588 * breakpoint.c: Update.
6589 * btrace.c: Update.
6590 * c-varobj.c: Update.
6591 * cli/cli-cmds.c: Update.
6592 * cli/cli-interp.c: Update.
6593 * cli/cli-script.c: Update.
6594 * common/common-exceptions.c: Update.
6595 * common/new-op.c: Update.
6596 * common/selftest.c: Update.
6597 * compile/compile-c-symbols.c: Update.
6598 * compile/compile-cplus-symbols.c: Update.
6599 * compile/compile-object-load.c: Update.
6600 * compile/compile-object-run.c: Update.
6601 * completer.c: Update.
6602 * corelow.c: Update.
6603 * cp-abi.c: Update.
6604 * cp-support.c: Update.
6605 * cp-valprint.c: Update.
6606 * darwin-nat.c: Update.
6607 * disasm-selftests.c: Update.
6608 * dtrace-probe.c: Update.
6609 * dwarf-index-cache.c: Update.
6610 * dwarf-index-write.c: Update.
6611 * dwarf2-frame-tailcall.c: Update.
6612 * dwarf2-frame.c: Update.
6613 * dwarf2loc.c: Update.
6614 * dwarf2read.c: Update.
6615 * eval.c: Update.
6616 * event-loop.c: Update.
6617 * event-top.c: Update.
6618 * exec.c: Update.
6619 * f-valprint.c: Update.
6620 * fbsd-tdep.c: Update.
6621 * frame-unwind.c: Update.
6622 * frame.c: Update.
6623 * gdbtypes.c: Update.
6624 * gnu-v3-abi.c: Update.
6625 * guile/guile-internal.h: Update.
6626 * guile/scm-block.c: Update.
6627 * guile/scm-breakpoint.c: Update.
6628 * guile/scm-cmd.c: Update.
6629 * guile/scm-disasm.c: Update.
6630 * guile/scm-frame.c: Update.
6631 * guile/scm-lazy-string.c: Update.
6632 * guile/scm-math.c: Update.
6633 * guile/scm-param.c: Update.
6634 * guile/scm-ports.c: Update.
6635 * guile/scm-pretty-print.c: Update.
6636 * guile/scm-symbol.c: Update.
6637 * guile/scm-symtab.c: Update.
6638 * guile/scm-type.c: Update.
6639 * guile/scm-value.c: Update.
6640 * i386-linux-tdep.c: Update.
6641 * i386-tdep.c: Update.
6642 * inf-loop.c: Update.
6643 * infcall.c: Update.
6644 * infcmd.c: Update.
6645 * infrun.c: Update.
6646 * jit.c: Update.
6647 * language.c: Update.
6648 * linespec.c: Update.
6649 * linux-fork.c: Update.
6650 * linux-nat.c: Update.
6651 * linux-tdep.c: Update.
6652 * linux-thread-db.c: Update.
6653 * main.c: Update.
6654 * mi/mi-cmd-break.c: Update.
6655 * mi/mi-cmd-stack.c: Update.
6656 * mi/mi-interp.c: Update.
6657 * mi/mi-main.c: Update.
6658 * objc-lang.c: Update.
6659 * p-valprint.c: Update.
6660 * parse.c: Update.
6661 * ppc-linux-tdep.c: Update.
6662 * printcmd.c: Update.
6663 * python/py-arch.c: Update.
6664 * python/py-breakpoint.c: Update.
6665 * python/py-cmd.c: Update.
6666 * python/py-finishbreakpoint.c: Update.
6667 * python/py-frame.c: Update.
6668 * python/py-framefilter.c: Update.
6669 * python/py-gdb-readline.c: Update.
6670 * python/py-inferior.c: Update.
6671 * python/py-infthread.c: Update.
6672 * python/py-lazy-string.c: Update.
6673 * python/py-linetable.c: Update.
6674 * python/py-objfile.c: Update.
6675 * python/py-param.c: Update.
6676 * python/py-prettyprint.c: Update.
6677 * python/py-progspace.c: Update.
6678 * python/py-record-btrace.c: Update.
6679 * python/py-record.c: Update.
6680 * python/py-symbol.c: Update.
6681 * python/py-type.c: Update.
6682 * python/py-unwind.c: Update.
6683 * python/py-utils.c: Update.
6684 * python/py-value.c: Update.
6685 * python/python.c: Update.
6686 * record-btrace.c: Update.
6687 * record-full.c: Update.
6688 * remote-fileio.c: Update.
6689 * remote.c: Update.
6690 * riscv-tdep.c: Update.
6691 * rs6000-aix-tdep.c: Update.
6692 * rs6000-tdep.c: Update.
6693 * rust-exp.y: Update.
6694 * rust-lang.c: Update.
6695 * s390-tdep.c: Update.
6696 * selftest-arch.c: Update.
6697 * solib-dsbt.c: Update.
6698 * solib-frv.c: Update.
6699 * solib-spu.c: Update.
6700 * solib-svr4.c: Update.
6701 * solib.c: Update.
6702 * sparc64-linux-tdep.c: Update.
6703 * stack.c: Update.
6704 * symfile-mem.c: Update.
6705 * symmisc.c: Update.
6706 * target.c: Update.
6707 * thread.c: Update.
6708 * top.c: Update.
6709 * tracefile-tfile.c: Update.
6710 * tui/tui.c: Update.
6711 * typeprint.c: Update.
6712 * unittests/cli-utils-selftests.c: Update.
6713 * unittests/parse-connection-spec-selftests.c: Update.
6714 * valops.c: Update.
6715 * valprint.c: Update.
6716 * value.c: Update.
6717 * varobj.c: Update.
6718 * windows-nat.c: Update.
6719 * x86-linux-nat.c: Update.
6720 * xml-support.c: Update.
6721
a70b8144
TT
67222019-04-08 Tom Tromey <tom@tromey.com>
6723
6724 * xml-support.c: Use C++ exception handling.
6725 * x86-linux-nat.c: Use C++ exception handling.
6726 * windows-nat.c: Use C++ exception handling.
6727 * varobj.c: Use C++ exception handling.
6728 * value.c: Use C++ exception handling.
6729 * valprint.c: Use C++ exception handling.
6730 * valops.c: Use C++ exception handling.
6731 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6732 handling.
6733 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6734 * typeprint.c: Use C++ exception handling.
6735 * tui/tui.c: Use C++ exception handling.
6736 * tracefile-tfile.c: Use C++ exception handling.
6737 * top.c: Use C++ exception handling.
6738 * thread.c: Use C++ exception handling.
6739 * target.c: Use C++ exception handling.
6740 * symmisc.c: Use C++ exception handling.
6741 * symfile-mem.c: Use C++ exception handling.
6742 * stack.c: Use C++ exception handling.
6743 * sparc64-linux-tdep.c: Use C++ exception handling.
6744 * solib.c: Use C++ exception handling.
6745 * solib-svr4.c: Use C++ exception handling.
6746 * solib-spu.c: Use C++ exception handling.
6747 * solib-frv.c: Use C++ exception handling.
6748 * solib-dsbt.c: Use C++ exception handling.
6749 * selftest-arch.c: Use C++ exception handling.
6750 * s390-tdep.c: Use C++ exception handling.
6751 * rust-lang.c: Use C++ exception handling.
6752 * rust-exp.y: Use C++ exception handling.
6753 * rs6000-tdep.c: Use C++ exception handling.
6754 * rs6000-aix-tdep.c: Use C++ exception handling.
6755 * riscv-tdep.c: Use C++ exception handling.
6756 * remote.c: Use C++ exception handling.
6757 * remote-fileio.c: Use C++ exception handling.
6758 * record-full.c: Use C++ exception handling.
6759 * record-btrace.c: Use C++ exception handling.
6760 * python/python.c: Use C++ exception handling.
6761 * python/py-value.c: Use C++ exception handling.
6762 * python/py-utils.c: Use C++ exception handling.
6763 * python/py-unwind.c: Use C++ exception handling.
6764 * python/py-type.c: Use C++ exception handling.
6765 * python/py-symbol.c: Use C++ exception handling.
6766 * python/py-record.c: Use C++ exception handling.
6767 * python/py-record-btrace.c: Use C++ exception handling.
6768 * python/py-progspace.c: Use C++ exception handling.
6769 * python/py-prettyprint.c: Use C++ exception handling.
6770 * python/py-param.c: Use C++ exception handling.
6771 * python/py-objfile.c: Use C++ exception handling.
6772 * python/py-linetable.c: Use C++ exception handling.
6773 * python/py-lazy-string.c: Use C++ exception handling.
6774 * python/py-infthread.c: Use C++ exception handling.
6775 * python/py-inferior.c: Use C++ exception handling.
6776 * python/py-gdb-readline.c: Use C++ exception handling.
6777 * python/py-framefilter.c: Use C++ exception handling.
6778 * python/py-frame.c: Use C++ exception handling.
6779 * python/py-finishbreakpoint.c: Use C++ exception handling.
6780 * python/py-cmd.c: Use C++ exception handling.
6781 * python/py-breakpoint.c: Use C++ exception handling.
6782 * python/py-arch.c: Use C++ exception handling.
6783 * printcmd.c: Use C++ exception handling.
6784 * ppc-linux-tdep.c: Use C++ exception handling.
6785 * parse.c: Use C++ exception handling.
6786 * p-valprint.c: Use C++ exception handling.
6787 * objc-lang.c: Use C++ exception handling.
6788 * mi/mi-main.c: Use C++ exception handling.
6789 * mi/mi-interp.c: Use C++ exception handling.
6790 * mi/mi-cmd-stack.c: Use C++ exception handling.
6791 * mi/mi-cmd-break.c: Use C++ exception handling.
6792 * main.c: Use C++ exception handling.
6793 * linux-thread-db.c: Use C++ exception handling.
6794 * linux-tdep.c: Use C++ exception handling.
6795 * linux-nat.c: Use C++ exception handling.
6796 * linux-fork.c: Use C++ exception handling.
6797 * linespec.c: Use C++ exception handling.
6798 * language.c: Use C++ exception handling.
6799 * jit.c: Use C++ exception handling.
6800 * infrun.c: Use C++ exception handling.
6801 * infcmd.c: Use C++ exception handling.
6802 * infcall.c: Use C++ exception handling.
6803 * inf-loop.c: Use C++ exception handling.
6804 * i386-tdep.c: Use C++ exception handling.
6805 * i386-linux-tdep.c: Use C++ exception handling.
6806 * guile/scm-value.c: Use C++ exception handling.
6807 * guile/scm-type.c: Use C++ exception handling.
6808 * guile/scm-symtab.c: Use C++ exception handling.
6809 * guile/scm-symbol.c: Use C++ exception handling.
6810 * guile/scm-pretty-print.c: Use C++ exception handling.
6811 * guile/scm-ports.c: Use C++ exception handling.
6812 * guile/scm-param.c: Use C++ exception handling.
6813 * guile/scm-math.c: Use C++ exception handling.
6814 * guile/scm-lazy-string.c: Use C++ exception handling.
6815 * guile/scm-frame.c: Use C++ exception handling.
6816 * guile/scm-disasm.c: Use C++ exception handling.
6817 * guile/scm-cmd.c: Use C++ exception handling.
6818 * guile/scm-breakpoint.c: Use C++ exception handling.
6819 * guile/scm-block.c: Use C++ exception handling.
6820 * guile/guile-internal.h: Use C++ exception handling.
6821 * gnu-v3-abi.c: Use C++ exception handling.
6822 * gdbtypes.c: Use C++ exception handling.
6823 * frame.c: Use C++ exception handling.
6824 * frame-unwind.c: Use C++ exception handling.
6825 * fbsd-tdep.c: Use C++ exception handling.
6826 * f-valprint.c: Use C++ exception handling.
6827 * exec.c: Use C++ exception handling.
6828 * event-top.c: Use C++ exception handling.
6829 * event-loop.c: Use C++ exception handling.
6830 * eval.c: Use C++ exception handling.
6831 * dwarf2read.c: Use C++ exception handling.
6832 * dwarf2loc.c: Use C++ exception handling.
6833 * dwarf2-frame.c: Use C++ exception handling.
6834 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6835 * dwarf-index-write.c: Use C++ exception handling.
6836 * dwarf-index-cache.c: Use C++ exception handling.
6837 * dtrace-probe.c: Use C++ exception handling.
6838 * disasm-selftests.c: Use C++ exception handling.
6839 * darwin-nat.c: Use C++ exception handling.
6840 * cp-valprint.c: Use C++ exception handling.
6841 * cp-support.c: Use C++ exception handling.
6842 * cp-abi.c: Use C++ exception handling.
6843 * corelow.c: Use C++ exception handling.
6844 * completer.c: Use C++ exception handling.
6845 * compile/compile-object-run.c: Use C++ exception handling.
6846 * compile/compile-object-load.c: Use C++ exception handling.
6847 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6848 * compile/compile-c-symbols.c: Use C++ exception handling.
6849 * common/selftest.c: Use C++ exception handling.
6850 * common/new-op.c: Use C++ exception handling.
6851 * cli/cli-script.c: Use C++ exception handling.
6852 * cli/cli-interp.c: Use C++ exception handling.
6853 * cli/cli-cmds.c: Use C++ exception handling.
6854 * c-varobj.c: Use C++ exception handling.
6855 * btrace.c: Use C++ exception handling.
6856 * breakpoint.c: Use C++ exception handling.
6857 * break-catch-throw.c: Use C++ exception handling.
6858 * arch-utils.c: Use C++ exception handling.
6859 * amd64-tdep.c: Use C++ exception handling.
6860 * ada-valprint.c: Use C++ exception handling.
6861 * ada-typeprint.c: Use C++ exception handling.
6862 * ada-lang.c: Use C++ exception handling.
6863 * aarch64-tdep.c: Use C++ exception handling.
6864
3d6e9d23
TT
68652019-04-08 Tom Tromey <tom@tromey.com>
6866
6867 * xml-support.c (gdb_xml_parser::parse): Update.
6868 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6869 * value.c (show_convenience): Update.
6870 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6871 (test_parse_flags_qcs): Update.
6872 * thread.c (thr_try_catch_cmd): Update.
6873 * target.c (target_translate_tls_address): Update.
6874 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6875 (info_frame_command_core, frame_apply_command_count): Update.
6876 * rust-exp.y (rust_lex_exception_test): Update.
6877 * riscv-tdep.c (riscv_print_one_register_info): Update.
6878 * remote.c (remote_target::enable_btrace): Update.
6879 * record-btrace.c (record_btrace_enable_warn): Update.
6880 * python/py-utils.c (gdbpy_convert_exception): Update.
6881 * printcmd.c (do_one_display, print_variable_and_value): Update.
6882 * mi/mi-main.c (mi_print_exception): Update.
6883 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6884 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6885 * linux-nat.c (linux_nat_target::attach): Update.
6886 * linux-fork.c (class scoped_switch_fork_info): Update.
6887 * infrun.c (displaced_step_prepare): Update.
6888 * infcall.c (call_function_by_hand_dummy): Update.
6889 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6890 * gnu-v3-abi.c (print_one_vtable): Update.
6891 * frame.c (get_prev_frame_always): Update.
6892 * f-valprint.c (info_common_command_for_block): Update.
6893 * exec.c (try_open_exec_file): Update.
6894 * exceptions.c (print_exception, exception_print)
6895 (exception_fprintf, exception_print_same): Update.
6896 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6897 * dwarf-index-cache.c (index_cache::store)
6898 (index_cache::lookup_gdb_index): Update.
6899 * darwin-nat.c (maybe_cache_shell): Update.
6900 * cp-valprint.c (cp_print_value_fields): Update.
6901 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6902 (gcc_cplus_symbol_address): Update.
6903 * compile/compile-c-symbols.c (gcc_convert_symbol)
6904 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6905 * common/selftest.c: Update.
6906 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6907 a std::string.
6908 (exception_try_scope_entry, exception_try_scope_exit): Don't
6909 declare.
6910 (struct exception_try_scope): Remove.
6911 (TRY): Don't use exception_try_scope.
6912 (struct gdb_exception): Add constructor, operator=.
6913 <what>: New method.
6914 (struct gdb_exception_RETURN_MASK_ALL)
6915 (struct gdb_exception_RETURN_MASK_ERROR)
6916 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6917 (struct gdb_quit_bad_alloc): Update.
6918 * common/common-exceptions.c (exception_none): Change
6919 initializer.
6920 (struct catcher) <state, exception>: Initialize inline.
6921 <prev>: Remove member.
6922 (current_catcher): Remove.
6923 (catchers): New global.
6924 (exceptions_state_mc_init): Simplify.
6925 (catcher_pop): Remove.
6926 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6927 (try_scope_depth, exception_try_scope_entry)
6928 (exception_try_scope_exit): Remove.
6929 (throw_exception_sjlj): Update.
6930 (exception_messages, exception_messages_size): Remove.
6931 (throw_it): Simplify.
6932 (gdb_exception_sliced_copy): Remove.
6933 (throw_exception_cxx): Update.
6934 * cli/cli-script.c (script_from_file): Update.
6935 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6936 Update.
6937 * ada-valprint.c (ada_val_print): Update.
6938 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6939 (create_excep_cond_exprs): Update.
6940
c5c10118
TT
69412019-04-08 Tom Tromey <tom@tromey.com>
6942
6943 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6944 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6945 (TRY, CATCH, END_CATCH): Remove some definitions.
6946 * common/common-exceptions.c: Don't use GDB_XCPT.
6947 (catcher_list_size): Remove.
6948 (throw_exception, throw_it): Simplify.
6949
4de283e4
TT
69502019-04-05 Tom Tromey <tom@tromey.com>
6951
6952 Revert the header-sorting patch.
6953 * ft32-tdep.c: Revert.
6954 * frv-tdep.c: Revert.
6955 * frv-linux-tdep.c: Revert.
6956 * frame.c: Revert.
6957 * frame-unwind.c: Revert.
6958 * frame-base.c: Revert.
6959 * fork-child.c: Revert.
6960 * findvar.c: Revert.
6961 * findcmd.c: Revert.
6962 * filesystem.c: Revert.
6963 * filename-seen-cache.h: Revert.
6964 * filename-seen-cache.c: Revert.
6965 * fbsd-tdep.c: Revert.
6966 * fbsd-nat.h: Revert.
6967 * fbsd-nat.c: Revert.
6968 * f-valprint.c: Revert.
6969 * f-typeprint.c: Revert.
6970 * f-lang.c: Revert.
6971 * extension.h: Revert.
6972 * extension.c: Revert.
6973 * extension-priv.h: Revert.
6974 * expprint.c: Revert.
6975 * exec.h: Revert.
6976 * exec.c: Revert.
6977 * exceptions.c: Revert.
6978 * event-top.c: Revert.
6979 * event-loop.c: Revert.
6980 * eval.c: Revert.
6981 * elfread.c: Revert.
6982 * dwarf2read.h: Revert.
6983 * dwarf2read.c: Revert.
6984 * dwarf2loc.c: Revert.
6985 * dwarf2expr.h: Revert.
6986 * dwarf2expr.c: Revert.
6987 * dwarf2-frame.c: Revert.
6988 * dwarf2-frame-tailcall.c: Revert.
6989 * dwarf-index-write.h: Revert.
6990 * dwarf-index-write.c: Revert.
6991 * dwarf-index-common.c: Revert.
6992 * dwarf-index-cache.h: Revert.
6993 * dwarf-index-cache.c: Revert.
6994 * dummy-frame.c: Revert.
6995 * dtrace-probe.c: Revert.
6996 * disasm.h: Revert.
6997 * disasm.c: Revert.
6998 * disasm-selftests.c: Revert.
6999 * dictionary.c: Revert.
7000 * dicos-tdep.c: Revert.
7001 * demangle.c: Revert.
7002 * dcache.h: Revert.
7003 * dcache.c: Revert.
7004 * darwin-nat.h: Revert.
7005 * darwin-nat.c: Revert.
7006 * darwin-nat-info.c: Revert.
7007 * d-valprint.c: Revert.
7008 * d-namespace.c: Revert.
7009 * d-lang.c: Revert.
7010 * ctf.c: Revert.
7011 * csky-tdep.c: Revert.
7012 * csky-linux-tdep.c: Revert.
7013 * cris-tdep.c: Revert.
7014 * cris-linux-tdep.c: Revert.
7015 * cp-valprint.c: Revert.
7016 * cp-support.c: Revert.
7017 * cp-namespace.c: Revert.
7018 * cp-abi.c: Revert.
7019 * corelow.c: Revert.
7020 * corefile.c: Revert.
7021 * continuations.c: Revert.
7022 * completer.h: Revert.
7023 * completer.c: Revert.
7024 * complaints.c: Revert.
7025 * coffread.c: Revert.
7026 * coff-pe-read.c: Revert.
7027 * cli-out.h: Revert.
7028 * cli-out.c: Revert.
7029 * charset.c: Revert.
7030 * c-varobj.c: Revert.
7031 * c-valprint.c: Revert.
7032 * c-typeprint.c: Revert.
7033 * c-lang.c: Revert.
7034 * buildsym.c: Revert.
7035 * buildsym-legacy.c: Revert.
7036 * build-id.h: Revert.
7037 * build-id.c: Revert.
7038 * btrace.c: Revert.
7039 * bsd-uthread.c: Revert.
7040 * breakpoint.h: Revert.
7041 * breakpoint.c: Revert.
7042 * break-catch-throw.c: Revert.
7043 * break-catch-syscall.c: Revert.
7044 * break-catch-sig.c: Revert.
7045 * blockframe.c: Revert.
7046 * block.c: Revert.
7047 * bfin-tdep.c: Revert.
7048 * bfin-linux-tdep.c: Revert.
7049 * bfd-target.c: Revert.
7050 * bcache.c: Revert.
7051 * ax-general.c: Revert.
7052 * ax-gdb.h: Revert.
7053 * ax-gdb.c: Revert.
7054 * avr-tdep.c: Revert.
7055 * auxv.c: Revert.
7056 * auto-load.c: Revert.
7057 * arm-wince-tdep.c: Revert.
7058 * arm-tdep.c: Revert.
7059 * arm-symbian-tdep.c: Revert.
7060 * arm-pikeos-tdep.c: Revert.
7061 * arm-obsd-tdep.c: Revert.
7062 * arm-nbsd-tdep.c: Revert.
7063 * arm-nbsd-nat.c: Revert.
7064 * arm-linux-tdep.c: Revert.
7065 * arm-linux-nat.c: Revert.
7066 * arm-fbsd-tdep.c: Revert.
7067 * arm-fbsd-nat.c: Revert.
7068 * arm-bsd-tdep.c: Revert.
7069 * arch-utils.c: Revert.
7070 * arc-tdep.c: Revert.
7071 * arc-newlib-tdep.c: Revert.
7072 * annotate.h: Revert.
7073 * annotate.c: Revert.
7074 * amd64-windows-tdep.c: Revert.
7075 * amd64-windows-nat.c: Revert.
7076 * amd64-tdep.c: Revert.
7077 * amd64-sol2-tdep.c: Revert.
7078 * amd64-obsd-tdep.c: Revert.
7079 * amd64-obsd-nat.c: Revert.
7080 * amd64-nbsd-tdep.c: Revert.
7081 * amd64-nbsd-nat.c: Revert.
7082 * amd64-nat.c: Revert.
7083 * amd64-linux-tdep.c: Revert.
7084 * amd64-linux-nat.c: Revert.
7085 * amd64-fbsd-tdep.c: Revert.
7086 * amd64-fbsd-nat.c: Revert.
7087 * amd64-dicos-tdep.c: Revert.
7088 * amd64-darwin-tdep.c: Revert.
7089 * amd64-bsd-nat.c: Revert.
7090 * alpha-tdep.c: Revert.
7091 * alpha-obsd-tdep.c: Revert.
7092 * alpha-nbsd-tdep.c: Revert.
7093 * alpha-mdebug-tdep.c: Revert.
7094 * alpha-linux-tdep.c: Revert.
7095 * alpha-linux-nat.c: Revert.
7096 * alpha-bsd-tdep.c: Revert.
7097 * alpha-bsd-nat.c: Revert.
7098 * aix-thread.c: Revert.
7099 * agent.c: Revert.
7100 * addrmap.c: Revert.
7101 * ada-varobj.c: Revert.
7102 * ada-valprint.c: Revert.
7103 * ada-typeprint.c: Revert.
7104 * ada-tasks.c: Revert.
7105 * ada-lang.c: Revert.
7106 * aarch64-tdep.c: Revert.
7107 * aarch64-ravenscar-thread.c: Revert.
7108 * aarch64-newlib-tdep.c: Revert.
7109 * aarch64-linux-tdep.c: Revert.
7110 * aarch64-linux-nat.c: Revert.
7111 * aarch64-fbsd-tdep.c: Revert.
7112 * aarch64-fbsd-nat.c: Revert.
7113 * aarch32-linux-nat.c: Revert.
7114
d55e5aa6
TT
71152019-04-05 Tom Tromey <tom@tromey.com>
7116
7117 * ft32-tdep.c: Sort headers.
7118 * frv-tdep.c: Sort headers.
7119 * frv-linux-tdep.c: Sort headers.
7120 * frame.c: Sort headers.
7121 * frame-unwind.c: Sort headers.
7122 * frame-base.c: Sort headers.
7123 * fork-child.c: Sort headers.
7124 * findvar.c: Sort headers.
7125 * findcmd.c: Sort headers.
7126 * filesystem.c: Sort headers.
7127 * filename-seen-cache.h: Sort headers.
7128 * filename-seen-cache.c: Sort headers.
7129 * fbsd-tdep.c: Sort headers.
7130 * fbsd-nat.h: Sort headers.
7131 * fbsd-nat.c: Sort headers.
7132 * f-valprint.c: Sort headers.
7133 * f-typeprint.c: Sort headers.
7134 * f-lang.c: Sort headers.
7135 * extension.h: Sort headers.
7136 * extension.c: Sort headers.
7137 * extension-priv.h: Sort headers.
7138 * expprint.c: Sort headers.
7139 * exec.h: Sort headers.
7140 * exec.c: Sort headers.
7141 * exceptions.c: Sort headers.
7142 * event-top.c: Sort headers.
7143 * event-loop.c: Sort headers.
7144 * eval.c: Sort headers.
7145 * elfread.c: Sort headers.
7146 * dwarf2read.h: Sort headers.
7147 * dwarf2read.c: Sort headers.
7148 * dwarf2loc.c: Sort headers.
7149 * dwarf2expr.h: Sort headers.
7150 * dwarf2expr.c: Sort headers.
7151 * dwarf2-frame.c: Sort headers.
7152 * dwarf2-frame-tailcall.c: Sort headers.
7153 * dwarf-index-write.h: Sort headers.
7154 * dwarf-index-write.c: Sort headers.
7155 * dwarf-index-common.c: Sort headers.
7156 * dwarf-index-cache.h: Sort headers.
7157 * dwarf-index-cache.c: Sort headers.
7158 * dummy-frame.c: Sort headers.
7159 * dtrace-probe.c: Sort headers.
7160 * disasm.h: Sort headers.
7161 * disasm.c: Sort headers.
7162 * disasm-selftests.c: Sort headers.
7163 * dictionary.c: Sort headers.
7164 * dicos-tdep.c: Sort headers.
7165 * demangle.c: Sort headers.
7166 * dcache.h: Sort headers.
7167 * dcache.c: Sort headers.
7168 * darwin-nat.h: Sort headers.
7169 * darwin-nat.c: Sort headers.
7170 * darwin-nat-info.c: Sort headers.
7171 * d-valprint.c: Sort headers.
7172 * d-namespace.c: Sort headers.
7173 * d-lang.c: Sort headers.
7174 * ctf.c: Sort headers.
7175 * csky-tdep.c: Sort headers.
7176 * csky-linux-tdep.c: Sort headers.
7177 * cris-tdep.c: Sort headers.
7178 * cris-linux-tdep.c: Sort headers.
7179 * cp-valprint.c: Sort headers.
7180 * cp-support.c: Sort headers.
7181 * cp-namespace.c: Sort headers.
7182 * cp-abi.c: Sort headers.
7183 * corelow.c: Sort headers.
7184 * corefile.c: Sort headers.
7185 * continuations.c: Sort headers.
7186 * completer.h: Sort headers.
7187 * completer.c: Sort headers.
7188 * complaints.c: Sort headers.
7189 * coffread.c: Sort headers.
7190 * coff-pe-read.c: Sort headers.
7191 * cli-out.h: Sort headers.
7192 * cli-out.c: Sort headers.
7193 * charset.c: Sort headers.
7194 * c-varobj.c: Sort headers.
7195 * c-valprint.c: Sort headers.
7196 * c-typeprint.c: Sort headers.
7197 * c-lang.c: Sort headers.
7198 * buildsym.c: Sort headers.
7199 * buildsym-legacy.c: Sort headers.
7200 * build-id.h: Sort headers.
7201 * build-id.c: Sort headers.
7202 * btrace.c: Sort headers.
7203 * bsd-uthread.c: Sort headers.
7204 * breakpoint.h: Sort headers.
7205 * breakpoint.c: Sort headers.
7206 * break-catch-throw.c: Sort headers.
7207 * break-catch-syscall.c: Sort headers.
7208 * break-catch-sig.c: Sort headers.
7209 * blockframe.c: Sort headers.
7210 * block.c: Sort headers.
7211 * bfin-tdep.c: Sort headers.
7212 * bfin-linux-tdep.c: Sort headers.
7213 * bfd-target.c: Sort headers.
7214 * bcache.c: Sort headers.
7215 * ax-general.c: Sort headers.
7216 * ax-gdb.h: Sort headers.
7217 * ax-gdb.c: Sort headers.
7218 * avr-tdep.c: Sort headers.
7219 * auxv.c: Sort headers.
7220 * auto-load.c: Sort headers.
7221 * arm-wince-tdep.c: Sort headers.
7222 * arm-tdep.c: Sort headers.
7223 * arm-symbian-tdep.c: Sort headers.
7224 * arm-pikeos-tdep.c: Sort headers.
7225 * arm-obsd-tdep.c: Sort headers.
7226 * arm-nbsd-tdep.c: Sort headers.
7227 * arm-nbsd-nat.c: Sort headers.
7228 * arm-linux-tdep.c: Sort headers.
7229 * arm-linux-nat.c: Sort headers.
7230 * arm-fbsd-tdep.c: Sort headers.
7231 * arm-fbsd-nat.c: Sort headers.
7232 * arm-bsd-tdep.c: Sort headers.
7233 * arch-utils.c: Sort headers.
7234 * arc-tdep.c: Sort headers.
7235 * arc-newlib-tdep.c: Sort headers.
7236 * annotate.h: Sort headers.
7237 * annotate.c: Sort headers.
7238 * amd64-windows-tdep.c: Sort headers.
7239 * amd64-windows-nat.c: Sort headers.
7240 * amd64-tdep.c: Sort headers.
7241 * amd64-sol2-tdep.c: Sort headers.
7242 * amd64-obsd-tdep.c: Sort headers.
7243 * amd64-obsd-nat.c: Sort headers.
7244 * amd64-nbsd-tdep.c: Sort headers.
7245 * amd64-nbsd-nat.c: Sort headers.
7246 * amd64-nat.c: Sort headers.
7247 * amd64-linux-tdep.c: Sort headers.
7248 * amd64-linux-nat.c: Sort headers.
7249 * amd64-fbsd-tdep.c: Sort headers.
7250 * amd64-fbsd-nat.c: Sort headers.
7251 * amd64-dicos-tdep.c: Sort headers.
7252 * amd64-darwin-tdep.c: Sort headers.
7253 * amd64-bsd-nat.c: Sort headers.
7254 * alpha-tdep.c: Sort headers.
7255 * alpha-obsd-tdep.c: Sort headers.
7256 * alpha-nbsd-tdep.c: Sort headers.
7257 * alpha-mdebug-tdep.c: Sort headers.
7258 * alpha-linux-tdep.c: Sort headers.
7259 * alpha-linux-nat.c: Sort headers.
7260 * alpha-bsd-tdep.c: Sort headers.
7261 * alpha-bsd-nat.c: Sort headers.
7262 * aix-thread.c: Sort headers.
7263 * agent.c: Sort headers.
7264 * addrmap.c: Sort headers.
7265 * ada-varobj.c: Sort headers.
7266 * ada-valprint.c: Sort headers.
7267 * ada-typeprint.c: Sort headers.
7268 * ada-tasks.c: Sort headers.
7269 * ada-lang.c: Sort headers.
7270 * aarch64-tdep.c: Sort headers.
7271 * aarch64-ravenscar-thread.c: Sort headers.
7272 * aarch64-newlib-tdep.c: Sort headers.
7273 * aarch64-linux-tdep.c: Sort headers.
7274 * aarch64-linux-nat.c: Sort headers.
7275 * aarch64-fbsd-tdep.c: Sort headers.
7276 * aarch64-fbsd-nat.c: Sort headers.
7277 * aarch32-linux-nat.c: Sort headers.
7278
699bd4cf
TT
72792019-04-04 Tom Tromey <tom@tromey.com>
7280
7281 * varobj.c (varobj_create): Update.
7282 * rust-exp.y (struct rust_parser) <update_innermost_block,
7283 lookup_symbol>: New methods.
7284 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7285 Rename.
7286 (rust_parser::rust_lookup_type)
7287 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7288 * printcmd.c (display_command, do_one_display): Update.
7289 * parser-defs.h (struct parser_state) <parser_state>: Add
7290 "tracker" parameter.
7291 (block_tracker): New member.
7292 (class innermost_block_tracker) <innermost_block_tracker>: Add
7293 "types" parameter.
7294 <reset>: Remove method.
7295 (innermost_block): Don't declare.
7296 (null_post_parser): Update.
7297 * parse.c (innermost_block): Remove global.
7298 (write_dollar_variable): Update.
7299 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7300 Remove "tracker_types" parameter.
7301 (parse_expression): Add "tracker" parameter.
7302 (parse_expression_for_completion): Update.
7303 (null_post_parser): Add "tracker" parameter.
7304 * p-exp.y: Update rules.
7305 * m2-exp.y: Update rules.
7306 * language.h (struct language_defn) <la_post_parser>: Add
7307 "tracker" parameter.
7308 * go-exp.y: Update rules.
7309 * f-exp.y: Update rules.
7310 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7311 parameter.
7312 * d-exp.y: Update rules.
7313 * c-exp.y: Update rules.
7314 * breakpoint.c (set_breakpoint_condition): Create an
7315 innermost_block_tracker.
7316 (watch_command_1): Likewise.
7317 * ada-lang.c (resolve): Add "tracker" parameter.
7318 (resolve_subexp): Likewise.
7319 * ada-exp.y (write_var_from_sym): Update.
7320
dac43e32
TT
73212019-04-04 Tom Tromey <tom@tromey.com>
7322
7323 * type-stack.h: New file.
7324 * type-stack.c: New file.
7325 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7326 type-stack.h.
7327 (insert_into_type_stack, insert_type, push_type, push_type_int)
7328 (insert_type_address_space, pop_type, pop_type_int)
7329 (pop_typelist, pop_type_stack, append_type_stack)
7330 (push_type_stack, get_type_stack, push_typelist)
7331 (follow_type_instance_flags, follow_types): Don't declare.
7332 * parse.c (type_stack): Remove global.
7333 (parse_exp_in_context): Update.
7334 (insert_into_type_stack, insert_type, push_type, push_type_int)
7335 (insert_type_address_space, pop_type, pop_type_int)
7336 (pop_typelist, pop_type_stack, append_type_stack)
7337 (push_type_stack, get_type_stack, push_typelist)
7338 (follow_type_instance_flags, follow_types): Remove (moved to
7339 type-stack.c).
7340 * f-exp.y (type_stack): New global.
7341 Update rules.
7342 (push_kind_type, f_parse): Update.
7343 * d-exp.y (type_stack): New global.
7344 Update rules.
7345 (d_parse): Update.
7346 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7347 Update rules.
7348 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7349 (HFILES_NO_SRCDIR): Add type-stack.h.
7350
2a612529
TT
73512019-04-04 Tom Tromey <tom@tromey.com>
7352
7353 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7354 (rust_parser::convert_ast_to_expression, rust_parse)
7355 (rust_lex_test_completion, rust_lex_tests): Update.
7356 * parser-defs.h (struct expr_completion_state): New.
7357 (struct parser_state) <parser_state>: Add completion parameter.
7358 <mark_struct_expression, mark_completion_tag>: New methods.
7359 <parse_completion, m_completion_state>: New members.
7360 (prefixify_expression, null_post_parser): Update.
7361 (mark_struct_expression, mark_completion_tag): Don't declare.
7362 * parse.c (parse_completion, expout_last_struct)
7363 (expout_tag_completion_type, expout_completion_name): Remove
7364 globals.
7365 (parser_state::mark_struct_expression)
7366 (parser_state::mark_completion_tag): Now methods.
7367 (prefixify_expression): Add last_struct parameter.
7368 (prefixify_subexp): Likewise.
7369 (parse_exp_1): Update.
7370 (parse_exp_in_context): Add cstate parameter. Update.
7371 (parse_expression_for_completion): Create an
7372 expr_completion_state.
7373 (null_post_parser): Add "completion" parameter.
7374 * p-exp.y: Update rules.
7375 (yylex): Update.
7376 * language.h (struct language_defn) <la_post_parser>: Add
7377 "completing" parameter.
7378 * go-exp.y: Update rules.
7379 (lex_one_token): Update.
7380 * expression.h (parse_completion): Don't declare.
7381 * d-exp.y: Update rules.
7382 (lex_one_token): Update rules.
7383 * c-exp.y: Update rules.
7384 (lex_one_token): Update.
7385 * ada-lang.c (resolve): Add "parse_completion" parameter.
7386 (resolve_subexp): Likewise.
7387 (ada_resolve_function): Likewise.
7388
43476f0b
TT
73892019-04-04 Tom Tromey <tom@tromey.com>
7390
7391 * parser-defs.h (struct parser_state) <start_arglist,
7392 end_arglist>: New methods.
7393 <arglist_len, m_funcall_chain>: New members.
7394 (arglist_len, start_arglist, end_arglist): Don't declare.
7395 * parse.c (arglist_len, funcall_chain): Remove global.
7396 (start_arglist, end_arglist): Remove functions.
7397 (parse_exp_in_context): Update.
7398 * p-exp.y: Update rules.
7399 * m2-exp.y: Update rules.
7400 * go-exp.y: Update rules.
7401 * f-exp.y: Update rules.
7402 * d-exp.y: Update rules.
7403 * c-exp.y: Update rules.
7404
5776fca3
TT
74052019-04-04 Tom Tromey <tom@tromey.com>
7406
7407 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7408 lex_operator, push_back>: New methods.
7409 Update all rules.
7410 (rust_parser::lex_hex, lex_escape): Rename and update.
7411 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7412 (rust_parser::lex_operator): Rename and update.
7413 (rust_parser::lex_number, rustyylex, rustyyerror)
7414 (rust_lex_test_init, rust_lex_test_sequence)
7415 (rust_lex_test_push_back, rust_lex_tests): Update.
7416 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7417 parameter.
7418 <lexptr, prev_lexptr>: New members.
7419 (lexptr, prev_lexptr): Don't declare.
7420 * parse.c (lexptr, prev_lexptr): Remove globals.
7421 (parse_exp_in_context): Update.
7422 * p-exp.y (yylex, yyerror): Update.
7423 * m2-exp.y (parse_number, yylex, yyerror): Update.
7424 * go-exp.y (lex_one_token, yyerror): Update.
7425 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7426 * d-exp.y (lex_one_token, yyerror): Update.
7427 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7428 (lex_one_token, yyerror): Update.
7429 * ada-lex.l (YY_INPUT): Update.
7430 (rewind_to_char): Update.
7431 * ada-exp.y (yyerror): Update.
7432
8621b685
TT
74332019-04-04 Tom Tromey <tom@tromey.com>
7434
7435 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7436 * parser-defs.h (struct parser_state) <parser_state>: Add new
7437 parameter.
7438 <comma_terminates>: New member.
7439 (comma_terminates): Don't declare global.
7440 * parse.c (comma_terminates): Remove global.
7441 (parse_exp_in_context): Update.
7442 * p-exp.y (yylex): Update.
7443 * m2-exp.y (yylex): Update.
7444 * go-exp.y (lex_one_token): Update.
7445 * f-exp.y (yylex): Update.
7446 * d-exp.y (lex_one_token): Update.
7447 * c-exp.y (lex_one_token): Update.
7448 * ada-lex.l: Update.
7449
28aaf3fd
TT
74502019-04-04 Tom Tromey <tom@tromey.com>
7451
7452 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7453 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7454 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7455 * parser-defs.h (paren_depth): Don't declare.
7456 * parse.c (paren_depth): Remove global.
7457 (parse_exp_in_context): Update.
7458 * p-exp.y (paren_depth): New global.
7459 (pascal_parse): Initialize it.
7460 * m2-exp.y (paren_depth): New global.
7461 (m2_parse): Initialize it.
7462 * go-exp.y (paren_depth): New global.
7463 (go_parse): Initialize it.
7464 * f-exp.y (paren_depth): New global.
7465 (f_parse): Initialize it.
7466 * d-exp.y (paren_depth): New global.
7467 (d_parse): Initialize it.
7468 * c-exp.y (paren_depth): New global.
7469 (c_parse): Initialize it.
7470 * ada-lex.l (paren_depth): New global.
7471 (lexer_init): Initialize it.
7472
1e58a4a4
TT
74732019-04-04 Tom Tromey <tom@tromey.com>
7474
7475 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7476 (rust_parser::convert_ast_to_type)
7477 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7478 * parser-defs.h (struct parser_state) <parser_state>: Add
7479 parameters. Initialize new members.
7480 <expression_context_block, expression_context_pc>: New members.
7481 * parse.c (expression_context_block, expression_context_pc):
7482 Remove globals.
7483 (parse_exp_in_context): Update.
7484 * p-exp.y: Update all rules.
7485 (yylex): Update.
7486 * m2-exp.y: Update all rules.
7487 (yylex): Update.
7488 * go-exp.y (yylex): Update.
7489 * f-exp.y (yylex): Update.
7490 * d-exp.y: Update all rules.
7491 (yylex): Update.
7492 * c-exp.y: Update all rules.
7493 (lex_one_token, classify_name, yylex, c_parse): Update.
7494 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7495
37eedb39
TT
74962019-04-04 Tom Tromey <tom@tromey.com>
7497
7498 * gdbarch.h, gdbarch.c: Rebuild.
7499 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7500 * stap-probe.h:
7501 (struct stap_parse_info): Replace "parser_state" with
7502 "expr_builder".
7503 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7504 (parser_state): New class.
7505 * parse.c (expr_builder): Rename.
7506 (expr_builder::release): Rename.
7507 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7508 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7509 (write_exp_elt_longcst, write_exp_elt_floatcst)
7510 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7511 (write_exp_string_vector, write_exp_bitstring)
7512 (write_exp_msymbol, mark_struct_expression)
7513 (write_dollar_variable)
7514 (insert_type_address_space, increase_expout_size): Replace
7515 "parser_state" with "expr_builder".
7516 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7517 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7518 "parser_state" with "expr_builder".
7519
73923d7e
TT
75202019-04-04 Tom Tromey <tom@tromey.com>
7521
7522 * rust-exp.y: Replace "parse_language" with method call.
7523 * p-exp.y:
7524 (yylex): Replace "parse_language" with method call.
7525 * m2-exp.y:
7526 (yylex): Replace "parse_language" with method call.
7527 * go-exp.y (classify_name): Replace "parse_language" with method
7528 call.
7529 * f-exp.y (yylex): Replace "parse_language" with method call.
7530 * d-exp.y (lex_one_token): Replace "parse_language" with method
7531 call.
7532 * c-exp.y:
7533 (lex_one_token, classify_name, yylex): Replace "parse_language"
7534 with method call.
7535 * ada-exp.y (find_primitive_type, type_char)
7536 (type_system_address): Replace "parse_language" with method call.
7537
fa9f5be6
TT
75382019-04-04 Tom Tromey <tom@tromey.com>
7539
7540 * rust-exp.y: Replace "parse_gdbarch" with method call.
7541 * parse.c (write_dollar_variable, insert_type_address_space):
7542 Replace "parse_gdbarch" with method call.
7543 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7544 call.
7545 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7546 call.
7547 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7548 "parse_gdbarch" with method call.
7549 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7550 with method call.
7551 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7552 "parse_gdbarch" with method call.
7553 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7554 "parse_gdbarch" with method call.
7555 * c-exp.y (parse_type, parse_number, classify_name): Replace
7556 "parse_gdbarch" with method call.
7557 * ada-lex.l: Replace "parse_gdbarch" with method call.
7558 * ada-exp.y (parse_type, find_primitive_type, type_char)
7559 (type_system_address): Replace "parse_gdbarch" with method call.
7560
1201a264
TT
75612019-04-04 Tom Tromey <tom@tromey.com>
7562
7563 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7564 * stap-probe.c (stap_parse_argument): Update.
7565 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7566 initial_size parameter.
7567 * rust-exp.y (rust_lex_tests): Update.
7568 * parse.c (parser_state): Update.
7569 (parse_exp_in_context): Update.
7570 * parser-defs.h (struct parser_state) <parser_state>: Remove
7571 "initial_size" parameter.
7572
e3980ce2
TT
75732019-04-04 Tom Tromey <tom@tromey.com>
7574
7575 * parser-defs.h (increase_expout_size): Don't declare.
7576 * parse.c (increase_expout_size): Now static.
7577
e9f8e3f1
TS
75782019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7579
7580 * gnu-nat.c (gnu_nat_target::wait): Fix
7581 target_waitstatus_to_string call.
7582
d7df6549
AB
75832019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * eval.c (evaluate_subexp_standard): Handle internal functions
7586 during Fortran function call handling.
7587
8bdc1658
AB
75882019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7589
7590 * NEWS: Mention new internal functions.
7591 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7592 (read_base_type): Use dwarf2_init_complex_target_type.
7593 * value.c (creal_internal_fn): New function.
7594 (cimag_internal_fn): New function.
7595 (_initialize_values): Register new internal functions.
7596
c29705b7
PW
75972019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7598
7599 * infrun.c (stop_all_threads): If debug_infrun, always
7600 trace the wait status after wait_one, using
7601 target_waitstatus_to_string and target_pid_to_str.
7602 (handle_inferior_event): Replace various trace of
7603 wait status kind by a single trace.
7604 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7605 wait status kind image by target_waitstatus_to_string.
7606 * target/waitstatus.c (target_waitstatus_to_string): Fix
7607 obsolete comment.
7608
05caa1d2
TT
76092019-04-01 Tom Tromey <tromey@adacore.com>
7610
7611 PR symtab/23331:
7612 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7613
9d1447e0
SDJ
76142019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7615 Pedro Alves <palves@redhat.com>
7616
7617 * top.c (quit_force): Call 'finalize_values'.
7618 * value.c (finalize_values): New function.
7619 * value.h (finalize_values): Declare.
7620
7734102d
EZ
76212019-03-30 Eli Zaretskii <eliz@gnu.org>
7622
7623 * NEWS: Announce $_gdb_major and $_gdb_minor.
7624
7625 * top.c (init_gdb_version_vars): New function.
7626 (gdb_init): Call init_gdb_version_vars.
7627
188e1fa9
TT
76282019-03-29 Tom Tromey <tromey@adacore.com>
7629
7630 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7631 help text. Remove dead code.
7632
2880242d
KS
76332019-03-29 Keith Seitz <keiths@redhat.com>
7634
7635 From Siddhesh Poyarekar:
7636 * f-lang.h (f77_get_upperbound): Return LONGEST.
7637 (f77_get_lowerbound): Likewise.
7638 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7639 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7640 print them.
7641 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7642 plongest to format print it.
7643 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7644 (f77_get_upperbound): Likewise.
7645 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7646 LOWER_BOUND to LONGEST.
7647 (f77_create_arrayprint_offset_tbl): Likewise.
7648
cc1defb1
KS
76492019-03-29 Keith Seitz <keiths@redhat.com>
7650
7651 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7652 %s/pulongest for TYPE_LENGTH instead of %d in format
7653 strings.
7654 * ada-typerint.c (ada_print_type): Likewise.
7655 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7656 * compile/compile-c-support.c (generate_register_struct): Likewise.
7657 * gdbtypes.c (recursive_dump_type): Likewise.
7658 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7659 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7660 instead of %d in format strings.
7661 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7662 to std::min to ULONGEST.
7663 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7664 instead of %d in format strings.
7665 * tracepoint.c (info_scope_command): Likewise.
7666 * typeprint.c (print_offset_data::update)
7667 (print_offset_data::finish): Likewise.
7668 * xtensa-tdep.c (xtensa_store_return_value)
7669 (xtensa_push_dummy_call): Likewise.
7670
e432ccf1
JT
76712019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7672
7673 * windows-nat.c (display_selector): Fixed format specifications
7674 for 64-bit Cygwin.
7675
65d2b333
PW
76762019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7677
7678 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7679
f489207e
SL
76802019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7681
7682 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7683 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7684 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7685 (nios2_linux_init_abi): Install it.
7686
bffa1015
AH
76872019-03-28 Alan Hayward <alan.hayward@arm.com>
7688
7689 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7690
fc96163a
AH
76912019-03-28 Alan Hayward <alan.hayward@arm.com>
7692
7693 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7694
20dc7e9b
PW
76952019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7696 Tom Tromey <tromey@adacore.com>
7697
7698 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7699
7f5331a8
JB
77002019-03-26 Joel Brobecker <brobecker@adacore.com>
7701
7702 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7703 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7704 method to compute the bounds of range types. Also print "[evaluated]"
7705 if the bounds' values come from a dynamic evaluation.
7706
18c77628
AB
77072019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7710 whitespace when pretty printing is on.
7711
53c973f2
AH
77122019-03-26 Alan Hayward <alan.hayward@arm.com>
7713
e79be6e5 7714 * ppc-linux-nat.c: Add include.
53c973f2 7715
d851aa71
AH
77162019-03-26 Alan Hayward <alan.hayward@arm.com>
7717
e79be6e5 7718 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7719
2fe7bab7
AH
77202019-03-26 Alan Hayward <alan.hayward@arm.com>
7721
e79be6e5 7722 * arm-linux-nat.c: Add include.
2fe7bab7 7723
068ef30e
SM
77242019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7725
7726 * source-cache.c (source_cache::get_source_lines): Re-read
7727 fullname after calling open_source_file.
7728
81a24d04
JB
77292019-03-25 John Baldwin <jhb@FreeBSD.org>
7730
7731 * NEWS: Mention TLS support for FreeBSD.
7732
79e7ae11
TT
77332019-03-25 Tom Tromey <tromey@adacore.com>
7734
7735 * minsyms.c (BUNCH_SIZE): Update comment.
7736 (~minimal_symbol_reader): Remove old comment.
7737 (compact_minimal_symbols): Update comment.
7738 (minimal_symbol_reader::install): Remove old comment. Update
7739 other comments.
7740
d45963c2
AH
77412019-03-25 Alan Hayward <alan.hayward@arm.com>
7742
7743 * s390-linux-nat.c: Add include.
7744
0f83012e
AH
77452019-03-25 Alan Hayward <alan.hayward@arm.com>
7746
7747 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7748 Call linux_get_hwcap.
7749 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7750 Likewise.
7751 (aarch64_linux_get_hwcap): Remove function.
7752 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7753 declaration.
7754 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7755 linux_get_hwcap.
7756 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7757 * linux-tdep.c (linux_get_hwcap): Add function.
7758 (linux_get_hwcap2): Likewise.
7759 * linux-tdep.h (linux_get_hwcap): Add declaration.
7760 (linux_get_hwcap2): Likewise.
7761 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7762 (ppc_linux_get_hwcap2): Likewise.
7763 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7764 linux_get_hwcap.
7765 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7766 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7767 (ppc_linux_nat_target::read_description): Likewise.
7768 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7769 * s390-linux-nat.c: Likewise.
7770 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7771
6640a367
TT
77722019-03-24 Tom Tromey <tom@tromey.com>
7773
7774 * ada-lang.c (standard_lookup): Simplify initialization.
7775 (ada_lookup_symbol_nonlocal): Simplify return.
7776 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7777 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7778 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7779 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7780 initialization.
7781 * solib.c (solib_global_lookup): Simplify.
7782 * symtab.c (null_block_symbol): Remove.
7783 (symbol_cache_lookup): Simplify returns.
7784 (lookup_language_this): Simplify returns.
7785 (lookup_symbol_aux): Simplify return.
7786 (lookup_local_symbol): Simplify returns.
7787 (lookup_global_symbol_from_objfile): Simplify return.
7788 (lookup_symbol_in_objfile_symtabs)
7789 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7790 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7791 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7792 * cp-namespace.c (cp_lookup_bare_symbol)
7793 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7794 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7795 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7796 (cp_lookup_symbol_via_imports): Simplify initialization.
7797 (find_symbol_in_baseclass): Likewise.
7798 * symtab.h (null_block_symbol): Remove.
7799 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7800 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7801 (d_lookup_symbol_module): Likewise.
7802 (find_symbol_in_baseclass): Simplify initialization.
7803
a930ebcd
TT
78042019-03-24 Tom Tromey <tom@tromey.com>
7805
7806 * expression.h: Don't include symtab.h.
7807 (struct block): Forward declare.
7808
582942f4
TT
78092019-03-24 Tom Tromey <tom@tromey.com>
7810
7811 * c-exp.y (typebase): Remove casts.
7812 * gdbtypes.c (lookup_unsigned_typename, )
7813 (lookup_signed_typename): Remove cast.
7814 * eval.c (parse_to_comma_and_eval): Remove cast.
7815 * parse.c (write_dollar_variable): Remove cast.
7816 * block.h (struct block) <superblock>: Now const.
7817 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7818 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7819 (map_block): Make "block" const.
7820 * symfile.h (struct quick_symbol_functions)
7821 <map_matching_symbols>: Constify block argument to "callback".
7822 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7823 const.
7824 (find_pc_sect_compunit_symtab): Make "b" const.
7825 (find_symbol_at_address): Likewise.
7826 (search_symbols): Likewise.
7827 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7828 (dw2_debug_names_lookup_symbol): Likewise.
7829 (dw2_map_matching_symbols): Update.
7830 * p-valprint.c (pascal_val_print): Remove "block".
7831 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7832 (aux_add_nonlocal_symbols): Make "block" const.
7833 (resolve_subexp): Remove cast.
7834 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7835 const.
7836 (iterate_over_file_blocks): Likewise.
7837 * f-exp.y (%union) <bval>: Remove.
7838 * coffread.c (patch_opaque_types): Make "b" const.
7839 * spu-tdep.c (spu_catch_start): Make "block" const.
7840 * c-valprint.c (print_unpacked_pointer): Remove "block".
7841 * symmisc.c (dump_symtab_1): Make "b" const.
7842 (block_depth): Make "block" const.
7843 * d-exp.y (%union) <bval>: Remove.
7844 * cp-support.h (cp_lookup_rtti_type): Update.
7845 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7846 * psymtab.c (psym_lookup_symbol): Make "block" const.
7847 (maintenance_check_psymtabs): Make "b" const.
7848 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7849 (enumerate_locals, enumerate_args): Update.
7850 * python/py-symtab.c (stpy_global_block): Make "block" const.
7851 (stpy_static_block): Likewise.
7852 * inline-frame.c (block_starting_point_at): Make "new_block"
7853 const.
7854 * block.c (find_block_in_blockvector): Make return type const.
7855 (blockvector_for_pc_sect): Make "b" const.
7856 (find_block_in_blockvector): Make "b" const.
7857
7ad417dd
TT
78582019-03-23 Tom Tromey <tom@tromey.com>
7859
7860 * varobj.c (varobj_create): Update.
7861 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7862 * printcmd.c (display_command, do_one_display): Don't reset
7863 innermost_block.
7864 * parser-defs.h (enum innermost_block_tracker_type): Move to
7865 expression.h.
7866 (innermost_block): Update comment.
7867 * parse.c (parse_exp_1): Add tracker_types parameter.
7868 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7869 tracker_types parameter. Reset innermost_block.
7870 (parse_exp_in_context): Remove.
7871 (parse_expression_for_completion): Update.
7872 * objfiles.c (~objfile): Don't reset expression_context_block or
7873 innermost_block.
7874 * expression.h (enum innermost_block_tracker_type): Move from
7875 parser-defs.h.
7876 (parse_exp_1): Add tracker_types parameter.
7877 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7878 reset innermost_block.
7879
b366c208
TT
78802019-03-23 Tom Tromey <tom@tromey.com>
7881
7882 * objfiles.h: Include bcache.h.
7883
9bb9b2f9
TT
78842019-03-23 Tom Tromey <tom@tromey.com>
7885
7886 * linespec.c (get_current_search_block): Use
7887 scoped_restore_current_language.
7888 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7889
59c28372
AH
78902019-03-22 Alan Hayward <alan.hayward@arm.com>
7891 Jiong Wang <jiong.wang@arm.com>
7892
7893 * aarch64-linux-tdep.c
7894 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7895 section.
7896 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7897
17e116a7
AH
78982019-03-22 Alan Hayward <alan.hayward@arm.com>
7899 Jiong Wang <jiong.wang@arm.com>
7900
7901 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7902 instructions.
7903 (aarch64_analyze_prologue_test): Add PACIASP test.
7904 (aarch64_prologue_prev_register): Unmask PC value.
7905
11e1b75f
AH
79062019-03-22 Alan Hayward <alan.hayward@arm.com>
7907 Jiong Wang <jiong.wang@arm.com>
7908
7909 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7910 (aarch64_dwarf2_prev_register): Unmask PC value.
7911 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7912 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7913 DW_CFA_AARCH64_negate_ra_state.
7914 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7915
34dcc7cf
AH
79162019-03-22 Alan Hayward <alan.hayward@arm.com>
7917 Jiong Wang <jiong.wang@arm.com>
7918
7919 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7920 registers.
7921 (aarch64_pseudo_register_name): Likewise.
7922 (aarch64_pseudo_register_type): Likewise.
7923 (aarch64_pseudo_register_reggroup_p): Likewise.
7924 (aarch64_gdbarch_init): Add pauth registers.
7925 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7926 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7927 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7928 (struct gdbarch_tdep): Add regnum for ra_state.
7929
1ef53e6b
AH
79302019-03-22 Alan Hayward <alan.hayward@arm.com>
7931 Jiong Wang <jiong.wang@arm.com>
7932
7933 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7934
76bed0fd
AH
79352019-03-22 Alan Hayward <alan.hayward@arm.com>
7936 Jiong Wang <jiong.wang@arm.com>
7937
7938 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7939 function.
7940 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7941 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7942 (aarch64_gdbarch_init): Add puth registers.
7943 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7944 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7945 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7946
ee4fbcfa
AH
79472019-03-22 Alan Hayward <alan.hayward@arm.com>
7948 Jiong Wang <jiong.wang@arm.com>
7949
7950 * aarch64-linux-nat.c
7951 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7952 * aarch64-linux-tdep.c
7953 (aarch64_linux_core_read_description): Likewise.
7954 (aarch64_linux_get_hwcap): New function.
7955 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7956 (aarch64_linux_get_hwcap): New declaration.
7957
6dc0ebde
AH
79582019-03-22 Alan Hayward <alan.hayward@arm.com>
7959 Jiong Wang <jiong.wang@arm.com>
7960
7961 * aarch64-linux-nat.c
7962 (aarch64_linux_nat_target::read_description): Add pauth param.
7963 * aarch64-linux-tdep.c
7964 (aarch64_linux_core_read_description): Likewise.
7965 * aarch64-tdep.c (struct target_desc): Add in pauth.
7966 (aarch64_read_description): Add pauth param.
7967 (aarch64_gdbarch_init): Likewise.
7968 * aarch64-tdep.h (aarch64_read_description): Likewise.
7969 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7970 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7971 * features/Makefile: Add new files.
7972 * features/aarch64-pauth.c: New file.
7973 * features/aarch64-pauth.xml: New file.
7974
595915c1
TT
79752019-03-20 Tom Tromey <tromey@adacore.com>
7976
7977 * infrun.c (handle_inferior_event): Rename from
7978 handle_inferior_event_1. Create a scoped_value_mark.
7979 (handle_inferior_event): Remove.
7980
4c7d57e7
TT
79812019-03-19 Tom Tromey <tromey@adacore.com>
7982
7983 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7984 * infrun.h (print_stop_event): Add "displays" parameter.
7985 * infrun.c (print_stop_event): Add "displays" parameter.
7986
cb246234
PA
79872019-03-19 Pedro Alves <palves@redhat.com>
7988
7989 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7990 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7991 to -1. Fix TABs vs spaces.
7992 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7993 * tui/tui-out.h (tui_ui_out) Add intro comments.
7994 <m_line, m_start_of_line>: In-class initialize, and add describing
7995 comment.
7996
3a0e45b2
AH
79972019-03-18 Alan Hayward <alan.hayward@arm.com>
7998
7999 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8000 variable names.
8001 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8002
5371b850
PA
80032019-03-18 Pedro Alves <palves@redhat.com>
8004 Eli Zaretskii <eliz@gnu.org>
8005
8006 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8007 m_line and m_start_of_line.
8008
b17c4cd0
EZ
80092019-03-18 Eli Zaretskii <eliz@gnu.org>
8010
8011 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8012 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8013 it returns a newline. This fixes a regression in TU mode, whereby
8014 the next line is output on the same screen line as the user input.
8015
4bd56d18
TT
80162019-03-18 Tom Tromey <tromey@adacore.com>
8017
8018 * minsyms.c (minimal_symbol_reader::install): Remove call to
8019 obstack_blank.
8020
55c10aca
PA
80212019-03-18 Pedro Alves <palves@redhat.com>
8022
8023 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8024 New globals.
8025 (apply_style): New, factored out from ...
8026 (apply_ansi_escape): ... this. Handle reverse video mode.
8027 (tui_set_reverse_mode): New function.
8028 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8029 * tui/tui-winsource.c (tui_show_source_line): Use
8030 tui_set_reverse_mode instead of setting A_STANDOUT.
8031 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8032 New setter methods.
8033
647bb750
HD
80342019-03-18 Hannes Domani <ssbssa@yahoo.de>
8035
8036 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8037 Handle tabs.
8038
bff8c71f
TT
80392019-03-18 Tom Tromey <tromey@adacore.com>
8040
8041 * ada-lang.c (empty_array): Add "high" parameter.
8042 (ada_evaluate_subexp): Update.
8043
58785d98
ST
80442019-03-17 Sergei Trofimovich <siarheit@google.com>
8045
8046 * unittests/string_view-selftests.c: Define
8047 _initialize_string_view_selftests unconditionally.
8048
d4cbef22
ВМ
80492019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8050
8051 PR gdb/24350
8052 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8053
fce4c071
ВМ
80542019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8055
8056 PR gdb/24351
8057 * windows-nat.c (display_selector): Fix format specifiers.
8058
f7f0a123
EZ
80592019-03-17 Eli Zaretskii <eliz@gnu.org>
8060
8061 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8062 tui_refill_source_window instead of tui_refresh_win, to update the
8063 current execution line. This fixes redisplay of the current line
8064 when stepping through the code with "next" or "step".
8065
ab42892f
EZ
80662019-03-16 Eli Zaretskii <eliz@gnu.org>
8067
8068 * source-cache.c (source_cache::get_source_lines): Call
8069 find_source_lines to initialize s->nlines. This fixes vertical
8070 scrolling of TUI source window when the DOWN arrow is pressed.
8071
8d8c087f
PW
80722019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8073
8074 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8075 linux-thread-db.c (_initialize_thread_db): Likewise.
8076
798e1c30
EZ
80772019-03-16 Eli Zaretskii <eliz@gnu.org>
8078
8079 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8080 wclrtoeol in tui_show_source_line". This reverts changes made in
8081 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8082
eefba3da
TT
80832019-03-15 Tom Tromey <tom@tromey.com>
8084
8085 * symtab.h (struct minimal_symbol): Derive from
8086 general_symbol_info.
8087 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8088 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8089 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8090 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8091 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8092 (MSYMBOL_SEARCH_NAME): Update.
8093 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8094 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8095 * minsyms.c (minimal_symbol_reader::record_full): Update.
8096
0de2420c
TT
80972019-03-15 Tom Tromey <tom@tromey.com>
8098
8099 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8100
042d75e4
TT
81012019-03-15 Tom Tromey <tom@tromey.com>
8102
8103 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8104 unique_xmalloc_ptr.
8105 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8106 Update.
8107 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8108 (build_minimal_symbol_hash_tables)
8109 (minimal_symbol_reader::install): Update.
8110
db92718b
TT
81112019-03-15 Tom Tromey <tom@tromey.com>
8112
8113 * symtab.c (create_demangled_names_hash): Update.
8114 (symbol_set_names): Update.
8115 * objfiles.h (struct objfile_per_bfd_storage)
8116 <demangled_names_hash>: Now an htab_up.
8117 * objfiles.c (objfile_per_bfd_storage): Simplify.
8118
d6797f46
TT
81192019-03-15 Tom Tromey <tom@tromey.com>
8120
8121 * objfiles.h (struct objfile_per_bfd_storage): Declare
8122 destructor.
8123 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8124 New.
8125 (get_objfile_bfd_data): Use new. Don't initialize
8126 language_of_main.
8127 (free_objfile_per_bfd_storage): Remove.
8128 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8129
741d7538
TT
81302019-03-15 Tom Tromey <tom@tromey.com>
8131
8132 * symfile.c (reread_symbols): Update.
8133 * objfiles.c (objfile::objfile): Update.
8134 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8135 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8136 comment.
8137 (minimal_symbol_reader::install): Update.
8138 (terminate_minimal_symbol_table): Remove.
8139 * jit.c (jit_object_close_impl): Update.
8140
788c80d1
TT
81412019-03-15 Tom Tromey <tom@tromey.com>
8142
8143 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8144 initializations.
8145
1b7a07cb
TT
81462019-03-15 Tom Tromey <tom@tromey.com>
8147
8148 * objfiles.h (struct objfile_per_bfd_storage)
8149 <demangled_hash_languages>: Now a bitset.
8150 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8151 (lookup_minimal_symbol): Update.
8152
3db066bc
TT
81532019-03-15 Tom Tromey <tom@tromey.com>
8154
8155 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8156 Don't return the symbol.
8157 * coffread.c (record_minimal_symbol): Use record_full.
8158
3fff2c37
EZ
81592019-03-14 Eli Zaretskii <eliz@gnu.org>
8160
8161 The MS-Windows port of ncurses fails to switch to a color pair if
8162 one or both of the colors are the implicit default colors. This
8163 change records the default colors when TUI is initialized, and
8164 then specifies them explicitly when a color pair uses the default
8165 colors. This allows color styling in TUI mode on MS-Windows.
8166
8167 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8168 ncurses_norm_attr.
8169 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8170 colors in ncurses_norm_attr.
8171 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8172 "none", replace it with the default color recorded in
8173 ncurses_norm_attr.
8174
3b336828
TT
81752019-03-14 Tom Tromey <tromey@adacore.com>
8176
8177 * source-cache.h (class source_cache) <get_source_lines>: Return
8178 std::string.
8179 * source-cache.c (source_cache::extract_lines): Handle case where
8180 first_pos==npos. Return std::string.
8181 (source_cache::get_source_lines): Update.
8182
d085f989
TT
81832019-03-14 Tom Tromey <tromey@adacore.com>
8184
8185 * NEWS: Add item for "style sources" commands.
8186 * source-cache.c (source_cache::get_source_lines): Check
8187 source_styling.
8188 * cli/cli-style.c (source_styling): New global.
8189 (_initialize_cli_style): Add "style sources" commands.
8190 (show_style_sources): New function.
8191 * cli/cli-style.h (source_styling): Declare.
8192
6f11e682
TT
81932019-03-14 Pedro Alves <palves@redhat.com>
8194 Tom Tromey <tromey@adacore.com>
8195
8196 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8197 * tui/tui-winsource.c (tui_refill_source_window): New function,
8198 from...
8199 (tui_horizontal_source_scroll): ... here. Move some logic.
8200 * cli/cli-style.c (set_style_enabled): Notify new observable.
8201 * tui/tui-hooks.c (tui_redisplay_source): New function.
8202 (tui_attach_detach_observers): Attach or detach
8203 tui_redisplay_source.
8204 * observable.h (source_styling_changed): New observable.
8205 * observable.c: Define source_styling_changed observable.
8206
a068643d
TT
82072019-03-13 Tom Tromey <tromey@adacore.com>
8208
8209 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8210 (i386_gnu_nat_target::store_registers): Update.
8211 * target-debug.h (target_debug_print_std_string): New macro.
8212 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8213 * windows-tdep.c (display_one_tib): Update.
8214 * tui/tui-stack.c (tui_make_status_line): Update.
8215 * top.c (print_inferior_quit_action): Update.
8216 * thread.c (thr_try_catch_cmd): Update.
8217 (add_thread_with_info): Update.
8218 (thread_target_id_str): Update.
8219 (thr_try_catch_cmd): Update.
8220 (thread_command): Update.
8221 (thread_find_command): Update.
8222 * record-btrace.c (record_btrace_target::info_record)
8223 (record_btrace_resume_thread, record_btrace_target::resume)
8224 (record_btrace_cancel_resume, record_btrace_step_thread)
8225 (record_btrace_target::wait, record_btrace_target::wait)
8226 (record_btrace_target::wait, record_btrace_target::stop): Update.
8227 * progspace.c (print_program_space): Update.
8228 * process-stratum-target.c
8229 (process_stratum_target::thread_address_space): Update.
8230 * linux-fork.c (linux_fork_mourn_inferior)
8231 (detach_checkpoint_command, info_checkpoints_command)
8232 (linux_fork_context): Update.
8233 (linux_fork_detach): Update.
8234 (class scoped_switch_fork_info): Update.
8235 (delete_checkpoint_command): Update.
8236 * infrun.c (follow_fork_inferior): Update.
8237 (follow_fork_inferior): Update.
8238 (proceed_after_vfork_done): Update.
8239 (handle_vfork_child_exec_or_exit): Update.
8240 (follow_exec): Update.
8241 (displaced_step_prepare_throw): Update.
8242 (displaced_step_restore): Update.
8243 (start_step_over): Update.
8244 (resume_1): Update.
8245 (clear_proceed_status_thread): Update.
8246 (proceed): Update.
8247 (print_target_wait_results): Update.
8248 (do_target_wait): Update.
8249 (context_switch): Update.
8250 (stop_all_threads): Update.
8251 (restart_threads): Update.
8252 (finish_step_over): Update.
8253 (handle_signal_stop): Update.
8254 (switch_back_to_stepped_thread): Update.
8255 (keep_going_pass_signal): Update.
8256 (print_exited_reason): Update.
8257 (normal_stop): Update.
8258 * inferior.c (inferior_pid_to_str): Change return type.
8259 (print_selected_inferior): Update.
8260 (add_inferior): Update.
8261 (detach_inferior): Update.
8262 * dummy-frame.c (fprint_dummy_frames): Update.
8263 * dcache.c (dcache_info_1): Update.
8264 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8265 (btrace_fetch, btrace_clear): Update.
8266 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8267 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8268 type.
8269 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8270 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8271 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8272 * gdbarch.c, gdbarch.h: Rebuild.
8273 * gdbarch.sh (core_pid_to_str): Change return type.
8274 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8275 return type.
8276 (windows_nat_target::pid_to_str): Change return type.
8277 (windows_delete_thread): Update.
8278 (windows_nat_target::attach): Update.
8279 (windows_nat_target::files_info): Update.
8280 * target-delegates.c: Rebuild.
8281 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8282 return type.
8283 (sol_thread_target::pid_to_str): Change return type.
8284 * remote.c (class remote_target) <pid_to_str>: Change return
8285 type.
8286 (remote_target::pid_to_str): Change return type.
8287 (extended_remote_target::attach, remote_target::remote_stop_ns)
8288 (remote_target::remote_notif_remove_queued_reply)
8289 (remote_target::push_stop_reply, remote_target::disable_btrace):
8290 Update.
8291 (extended_remote_target::attach): Update.
8292 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8293 type.
8294 (gdbsim_target::pid_to_str): Change return type.
8295 * ravenscar-thread.c (struct ravenscar_thread_target)
8296 <pid_to_str>: Change return type.
8297 (ravenscar_thread_target::pid_to_str): Change return type.
8298 * procfs.c (class procfs_target) <pid_to_str>: Change return
8299 type.
8300 (procfs_target::pid_to_str): Change return type.
8301 (procfs_target::attach): Update.
8302 (procfs_target::detach): Update.
8303 (procfs_target::fetch_registers): Update.
8304 (procfs_target::store_registers): Update.
8305 (procfs_target::wait): Update.
8306 (procfs_target::files_info): Update.
8307 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8308 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8309 return type.
8310 (nto_procfs_target::pid_to_str): Change return type.
8311 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8312 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8313 return type.
8314 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8315 (exit_lwp): Update.
8316 (attach_proc_task_lwp_callback, get_detach_signal)
8317 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8318 (linux_nat_target::resume, wait_lwp, stop_callback)
8319 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8320 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8321 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8322 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8323 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8324 type.
8325 (inf_ptrace_target::attach): Update.
8326 (inf_ptrace_target::files_info): Update.
8327 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8328 type.
8329 (go32_nat_target::pid_to_str): Change return type.
8330 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8331 (gnu_nat_target::wait): Update.
8332 (gnu_nat_target::wait): Update.
8333 (gnu_nat_target::resume): Update.
8334 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8335 (fbsd_nat_target::wait): Update.
8336 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8337 type.
8338 (darwin_nat_target::attach): Update.
8339 * corelow.c (class core_target) <pid_to_str>: Change return type.
8340 (core_target::pid_to_str): Change return type.
8341 * target.c (normal_pid_to_str): Change return type.
8342 (default_pid_to_str): Likewise.
8343 (target_pid_to_str): Change return type.
8344 (target_translate_tls_address): Update.
8345 (target_announce_detach): Update.
8346 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8347 return type.
8348 (bsd_uthread_target::pid_to_str): Change return type.
8349 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8350 type.
8351 (bsd_kvm_target::pid_to_str): Change return type.
8352 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8353 return type.
8354 (aix_thread_target::pid_to_str): Change return type.
8355 * target.h (struct target_ops) <pid_to_str>: Change return type.
8356 (target_pid_to_str, normal_pid_to_str): Likewise.
8357 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8358 type.
8359 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8360 type.
8361 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8362 return type.
8363 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8364 type.
8365 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8366 type.
8367 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8368 return type.
8369
b4be1b06
SM
83702019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8371
8372 * NEWS: Mention that the new default MI version is 3. Mention
8373 changes to the output of commands and events that deal with
8374 multi-location breakpoints.
8375 * breakpoint.c: Include "mi/mi-out.h".
8376 (print_one_breakpoint): Change output syntax if using MI version
8377 >= 3.
8378 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8379 New.
8380 (mi_multi_location_breakpoint_output_fixed): New.
8381 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8382 (mi_cmd_fix_multi_location_breakpoint_output): New.
8383 (mi_multi_location_breakpoint_output_fixed): New.
8384 * mi/mi-cmds.c (mi_cmds): Register command
8385 -fix-multi-location-breakpoint-output.
8386 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8387 interpreter "mi".
8388
8e5e5494
SM
83892019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8390
8391 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8392 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8393 instantiate mi_ui_out based on interpreter name.
8394 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8395 * mi/mi-main.c (mi_load_progress): Likewise.
8396
197df35e
JB
83972019-03-12 John Baldwin <jhb@FreeBSD.org>
8398
8399 * NEWS: Combine separate "New targets" sections for 8.3.
8400
8399425f
JB
84012019-03-12 John Baldwin <jhb@FreeBSD.org>
8402
8403 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8404 (ppcfbsd_init_abi): Install gdbarch
8405 "fetch_tls_load_module_address" and "get_thread_local_address"
8406 methods.
8407
b0f87ed0
JB
84082019-03-12 John Baldwin <jhb@FreeBSD.org>
8409
8410 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8411 (riscv_fbsd_init_abi): Install gdbarch
8412 "fetch_tls_load_module_address" and "get_thread_local_address"
8413 methods.
8414
ce25aa57
JB
84152019-03-12 John Baldwin <jhb@FreeBSD.org>
8416
8417 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8418 (i386fbsd_init_abi): Install gdbarch
8419 "fetch_tls_load_module_address" and "get_thread_local_address"
8420 methods.
8421
f5424cfa
JB
84222019-03-12 John Baldwin <jhb@FreeBSD.org>
8423
8424 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8425 (amd64fbsd_init_abi): Install gdbarch
8426 "fetch_tls_load_module_address" and "get_thread_local_address"
8427 methods.
8428
945f3901
JB
84292019-03-12 John Baldwin <jhb@FreeBSD.org>
8430
8431 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8432 (struct fbsd_pspace_data): New type.
8433 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8434 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8435 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8436 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8437 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8438
ef0bd204
JB
84392019-03-12 John Baldwin <jhb@FreeBSD.org>
8440
8441 * gdbtypes.c (lookup_struct_elt): New function.
8442 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8443 * gdbtypes.h (struct struct_elt): New type.
8444 (lookup_struct_elt): New prototype.
8445
36c53a02
JB
84462019-03-12 John Baldwin <jhb@FreeBSD.org>
8447
8448 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8449 remove disabled code block.
8450
6e056c81
JB
84512019-03-12 John Baldwin <jhb@FreeBSD.org>
8452
8453 * gdbarch.sh (get_thread_local_address): New method.
8454 * gdbarch.h, gdbarch.c: Regenerate.
8455 * target.c (target_translate_tls_address): Use
8456 gdbarch_get_thread_local_address if present instead of
8457 target::get_thread_local_address.
8458
cd250a18
JB
84592019-03-12 John Baldwin <jhb@FreeBSD.org>
8460
8461 * target.h (target::get_thread_local_address): Update comment.
8462
df22c1e5
JB
84632019-03-12 John Baldwin <jhb@FreeBSD.org>
8464
8465 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8466 objfile->separate_debug_objfile_backlink if not NULL.
8467
dd6876c9
JB
84682019-03-12 John Baldwin <jhb@FreeBSD.org>
8469
8470 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8471 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8472 (amd64bsd_store_inferior_registers): Likewise.
8473 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8474 Enable segment base registers.
8475 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8476 PT_GETFSBASE and PT_GETGSBASE.
8477 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8478 PT_SETGSBASE.
8479 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8480 segment base registers.
8481 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8482
1163a4b7
JB
84832019-03-12 John Baldwin <jhb@FreeBSD.org>
8484
8485 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8486 Update calls to i386_target_description to add 'segments'
8487 parameter.
8488 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8489 add segment base registers.
8490 * arch/i386.c (i386_create_target_description): Add 'segments'
8491 parameter to enable segment base registers.
8492 * arch/i386.h (i386_create_target_description): Likewise.
8493 * features/i386/32bit-segments.xml: New file.
8494 * features/i386/32bit-segments.c: Generate.
8495 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8496 call to i386_target_description to add 'segments' parameter.
8497 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8498 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8499 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8500 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8501 if feature is present.
8502 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8503 Add 'segments' parameter to call to i386_target_description.
8504 (i386_target_description): Add 'segments' parameter to enable
8505 segment base registers.
8506 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8507 to call to i386_target_description.
8508 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8509 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8510 Define I386_NUM_REGS.
8511 (i386_target_description): Add 'segments' parameter to enable
8512 segment base registers.
8513
3a350822
EZ
85142019-03-12 Eli Zaretskii <eliz@gnu.org>
8515
8516 PR/24325
8517 * source-cache.c: #undef open and close, to avoid unresolved
8518 externals during linking.
8519
ffdd69cf
TT
85202019-03-12 Tom Tromey <tromey@adacore.com>
8521
8522 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8523 const. Add initializers.
8524 (_initialize_remote): Don't initialize ptid globals.
8525
ec148c57
PA
85262019-03-12 Pedro Alves <palves@redhat.com>
8527
8528 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8529
32764270
PA
85302019-03-12 Pedro Alves <palves@redhat.com>
8531
8532 * cp-name-parser.y (main): Remove unused 'len' variable.
8533
17547186
TT
85342019-03-12 Tom Tromey <tromey@adacore.com>
8535
8536 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8537 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8538
d3a70e03
TT
85392019-03-12 Tom Tromey <tromey@adacore.com>
8540
8541 * linux-nat.c (iterate_over_lwps): Update.
8542 (stop_callback): Remove parameter.
8543 (stop_wait_callback, detach_callback, resume_set_callback)
8544 (select_singlestep_lwp_callback, set_ignore_sigint)
8545 (status_callback, resumed_callback, resume_clear_callback)
8546 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8547 data parameter.
8548 (linux_nat_target::detach, linux_nat_target::resume)
8549 (linux_stop_and_wait_all_lwps, select_event_lwp)
8550 (linux_nat_filter_event, linux_nat_wait_1)
8551 (linux_nat_target::kill, linux_nat_target::stop)
8552 (linux_nat_target::stop): Update.
8553 (linux_nat_resume_callback): Change type.
8554 (resume_stopped_resumed_lwps, count_events_callback)
8555 (select_event_lwp_callback): Likewise.
8556 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8557 * arm-linux-nat.c (struct update_registers_data): Remove.
8558 (update_registers_callback): Change type.
8559 (arm_linux_insert_hw_breakpoint1): Update.
8560 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8561 parameter.
8562 (x86_linux_dr_set_addr): Update.
8563 (x86_linux_dr_set_control): Update.
8564 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8565 (iterate_over_lwps): Use gdb::function_view.
8566 * nat/aarch64-linux-hw-point.c (struct
8567 aarch64_dr_update_callback_param): Remove.
8568 (debug_reg_change_callback): Change type.
8569 (aarch64_notify_debug_reg_change): Update.
8570 * s390-linux-nat.c (s390_refresh_per_info): Update.
8571
82cb27ff
TT
85722019-03-11 Tom Tromey <tromey@adacore.com>
8573
8574 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8575 redundant assignment to "this_cu".
8576
568c0683
SM
85772019-03-08 Simon Marchi <simon.marchi@efficios.com>
8578
8579 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8580
f09ce22d
SM
85812019-03-08 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8584 from...
8585 (rank_one_type): ... this.
8586
595f96a9
SM
85872019-03-08 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8590 from...
8591 (rank_one_type): ... this.
8592
2598a94b
SM
85932019-03-08 Simon Marchi <simon.marchi@efficios.com>
8594
8595 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8596 from...
8597 (rank_one_type): ... this.
8598
7f17b20d
SM
85992019-03-08 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8602 from...
8603 (rank_one_type): ... this.
8604
2c509035
SM
86052019-03-08 Simon Marchi <simon.marchi@efficios.com>
8606
8607 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8608 from...
8609 (rank_one_type): ... this.
8610
0dd322dc
SM
86112019-03-08 Simon Marchi <simon.marchi@efficios.com>
8612
8613 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8614 from...
8615 (rank_one_type): ... this.
8616
41ea4728
SM
86172019-03-08 Simon Marchi <simon.marchi@efficios.com>
8618
8619 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8620 from...
8621 (rank_one_type): ... this.
8622
793cd1d2
SM
86232019-03-08 Simon Marchi <simon.marchi@efficios.com>
8624
8625 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8626 from...
8627 (rank_one_type): ... this.
8628
34910087
SM
86292019-03-08 Simon Marchi <simon.marchi@efficios.com>
8630
8631 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8632 from...
8633 (rank_one_type): ... this.
8634
f1f832d6
SM
86352019-03-08 Simon Marchi <simon.marchi@efficios.com>
8636
8637 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8638 from...
8639 (rank_one_type): ... this.
8640
b9f4512f
SM
86412019-03-08 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8644 from...
8645 (rank_one_type): ... this.
8646
9293fc63
SM
86472019-03-08 Simon Marchi <simon.marchi@efficios.com>
8648
8649 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8650 from...
8651 (rank_one_type): ... this.
8652
e3abbe7e
PW
86532019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8654
8655 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8656 inferior-events' shows the example events.
8657
e4adb939
EZ
86582019-03-08 Eli Zaretskii <eliz@gnu.org>
8659
8660 Support styling on native MS-Windows console
8661
8662 PR/24315
8663 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8664 on MS-Windows if $TERM is not defined.
8665
8666 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8667
8668 * posix-hdep.c (gdb_console_fputs):
8669 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8670 functions.
8671 * ui-file.h (gdb_console_fputs): Add prototype.
8672
8673 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8674 back to fputs only if the former returns zero.
8675
25629dfd
TT
86762019-03-07 Tom Tromey <tom@tromey.com>
8677
8678 * symmisc.c (print_symbol_bcache_statistics): Update.
8679 (print_objfile_statistics): Update.
8680 * symfile.c (allocate_symtab): Update.
8681 * stabsread.c: Don't include bcache.h.
8682 * psymtab.h (struct psymbol_bcache): Don't declare.
8683 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8684 (psymbol_bcache_init, psymbol_bcache_free)
8685 (psymbol_bcache_get_bcache): Don't declare.
8686 * psymtab.c (struct psymbol_bcache): Remove.
8687 (psymtab_storage::psymtab_storage): Update.
8688 (psymtab_storage::~psymtab_storage): Update.
8689 (psymbol_bcache_init, psymbol_bcache_free)
8690 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8691 (add_psymbol_to_bcache): Update.
8692 (allocate_psymtab): Update.
8693 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8694 macro_cache>: No longer pointers.
8695 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8696 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8697 * macrotab.c (macro_bcache): Update.
8698 * macroexp.c: Don't include bcache.h.
8699 * gdbtypes.c (check_types_worklist): Update.
8700 (types_deeply_equal): Remove TRY/CATCH. Update.
8701 * elfread.c (elf_symtab_read): Update.
8702 * dwarf2read.c: Don't include bcache.h.
8703 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8704 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8705 (print_bcache_statistics, bcache_memory_used): Don't declare.
8706 (struct bcache): Move from bcache.c. Add constructor, destructor,
8707 methods. Rename all data members.
8708 * bcache.c (struct bcache): Move to bcache.h.
8709 (bcache::expand_hash_table): Rename from expand_hash_table.
8710 (bcache): Remove.
8711 (bcache::insert): Rename from bcache_full.
8712 (bcache::compare): Rename from bcache_compare.
8713 (bcache_xmalloc): Remove.
8714 (bcache::~bcache): Rename from bcache_xfree.
8715 (bcache::print_statistics): Rename from print_bcache_statistics.
8716 (bcache::memory_used): Rename from bcache_memory_used.
8717
fe726667
PA
87182019-03-07 Pedro Alves <palves@redhat.com>
8719
8720 * infrun.c (normal_stop): Also check for
8721 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8722
7584bb30
AB
87232019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * f-lang.c (value_from_host_double): Moved to...
8726 * value.c (value_from_host_double): ...here.
8727 * value.h (value_from_host_double): Declare.
8728 * guile/scm-math.c (vlscm_convert_typed_number): Use
8729 value_from_host_double.
8730 (vlscm_convert_number): Likewise.
8731 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8732 * python/py-value.c (convert_value_from_python): Likewise.
8733
a7b1986e
TT
87342019-03-06 Tom Tromey <tom@tromey.com>
8735
8736 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8737
0ccf4211
TT
87382019-03-06 Tom Tromey <tom@tromey.com>
8739
8740 * utils.h (free_current_contents): Don't declare.
8741 * utils.c (free_current_contents): Remove.
8742
fe7b42e5
TT
87432019-03-06 Tom Tromey <tom@tromey.com>
8744
8745 * top.c (quit_force): Update.
8746 * main.c (captured_command_loop): Update.
8747 * common/new-op.c (operator new): Update.
8748 * common/common-exceptions.c (struct catcher)
8749 <save_cleanup_chain>: Remove member.
8750 (exceptions_state_mc_init): Update.
8751 (exception_try_scope_entry): Return nullptr.
8752 (exception_try_scope_exit, exception_rethrow)
8753 (throw_exception_sjlj, throw_exception_cxx): Update.
8754 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8755 (all_cleanups, do_cleanups, discard_cleanups)
8756 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8757 (restore_cleanups, restore_final_cleanups): Don't declare.
8758 (do_final_cleanups): Remove parameter.
8759 * common/cleanups.c (cleanup_chain, make_cleanup)
8760 (make_cleanup_dtor, all_cleanups, do_cleanups)
8761 (discard_my_cleanups, discard_cleanups)
8762 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8763 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8764 (null_cleanup): Remove.
8765 (do_final_cleanups): Remove parameter.
8766
c6321f19
TT
87672019-03-06 Tom Tromey <tom@tromey.com>
8768
8769 * remote.c (remote_target::remote_parse_stop_reply): Use
8770 unique_xmalloc_ptr.
8771
61b30099
TT
87722019-03-06 Tom Tromey <tom@tromey.com>
8773
8774 * stabsread.c (struct stabs_field_info): Rename from field_info.
8775 <list, fnlist>: Add initializers.
8776 <obstack>: New member.
8777 (read_member_functions, read_struct_fields, read_baseclasses):
8778 Allocate on obstack. Don't use cleanups.
8779 (read_one_struct_field, read_member_functions, read_struct_fields)
8780 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8781 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8782 (read_struct_type): Update.
8783
6cceac94
TT
87842019-03-06 Tom Tromey <tom@tromey.com>
8785
8786 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8787 * common/filestuff.h (make_cleanup_close): Don't declare.
8788 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8789 Remove.
8790
72412762
TT
87912019-03-06 Tom Tromey <tom@tromey.com>
8792
8793 * solib-aix.c: Use make_scope_exit.
8794
2b6ff1c0
TT
87952019-03-06 Tom Tromey <tom@tromey.com>
8796
8797 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8798 Use make_scope_exit.
8799
d01c5877
TT
88002019-03-06 Tom Tromey <tom@tromey.com>
8801
8802 * solib-svr4.c (disable_probes_interface): Remove parameter.
8803 (svr4_handle_solib_event): Use make_scope_exit.
8804
32603266
TT
88052019-03-06 Tom Tromey <tom@tromey.com>
8806
8807 * remote.c (struct stop_reply_deleter): Remove.
8808 (stop_reply_up): Update.
8809 (struct stop_reply): Derive from notif_event. Don't typedef.
8810 <regcache>: Now a std::vector.
8811 (stop_reply_xfree): Remove.
8812 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8813 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8814 (remote_target::discard_pending_stop_replies): Use delete.
8815 (remote_target::remote_parse_stop_reply): Update.
8816 (remote_target::process_stop_reply): Update.
8817 * remote-notif.h (struct notif_event): Add virtual destructor.
8818 Remove "dtr" member.
8819 (struct notif_client) <alloc_event>: Return a unique_ptr.
8820 (notif_event_xfree): Don't declare.
8821 (notif_event_up): New typedef.
8822 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8823 (notif_event_xfree, do_notif_event_xfree): Remove.
8824 (remote_notif_state_xfree): Update.
8825
9799571e
TT
88262019-03-06 Tom Tromey <tom@tromey.com>
8827
8828 * infrun.c (displaced_step_clear_cleanup): Now a
8829 forward_scope_exit type.
8830 (displaced_step_prepare_throw): Update.
8831 (displaced_step_fixup): Update.
8832
09e3c4ca
TT
88332019-03-06 Tom Tromey <tom@tromey.com>
8834
8835 * inferior.h (class inferior): Update comment.
8836 * gdbthread.h (class thread_info): Update comment.
8837
e2a03548
TT
88382019-03-06 Joel Brobecker <brobecker@adacore.com>
8839 Tom Tromey <tom@tromey.com>
8840
8841 * stabsread.h (struct stab_section_list): Remove.
8842 (coffstab_build_psymtabs): Update.
8843 * dbxread.c (symbuf_sections): Now a std::vector.
8844 (sect_idx): New global.
8845 (fill_symbuf): Update.
8846 (coffstab_build_psymtabs): Change type of stabsects parameter.
8847 Update.
8848 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8849 std::vector.
8850 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8851 (coff_locate_sections): Update.
8852 (coff_symfile_read): Remove cleanups. Update.
8853 (init_stringtab): Add storage parameter.
8854 (free_stringtab, free_stringtab_cleanup): Remove.
8855 (init_lineno): Add storage parameter.
8856 (free_linetab, free_linetab_cleanup): Remove.
8857
b7e60d85
PA
88582019-03-06 Pedro Alves <palves@redhat.com>
8859
8860 * linux-fork.c (fork_info::clobber_regs): Delete.
8861 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8862 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8863 comment. Adjust.
8864 (scoped_switch_fork_info::scoped_switch_fork_info)
8865 (checkpoint_command, linux_fork_context): Adjust
8866 fork_save_infrun_state calls.
8867
e52c971f
PA
88682019-03-06 Pedro Alves <palves@redhat.com>
8869
8870 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8871 (inf_has_multiple_threads): Return 'bool' and rewrite using
8872 inferior_info::threads().
8873
06974e6c
PA
88742019-03-06 Pedro Alves <palves@redhat.com>
8875
8876 * linux-fork.c: Include <list>.
8877 (fork_list): Now a std::list instance.
8878 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8879 (forks_exist_p, find_last_fork): Adjust.
8880 (new_fork): Delete.
8881 (one_fork_p): New.
8882 (add_fork): Adjust.
8883 (free_fork): Delete, folded into fork_info::~fork_info().
8884 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8885 Adjust.
8886 (init_fork_list): Delete.
8887 (linux_fork_killall, linux_fork_mourn_inferior)
8888 (linux_fork_detach, info_checkpoints_command): Adjust.
8889 (_initialize_linux_fork): No longer call init_fork_list.
8890
72f31aea
PA
88912019-03-06 Pedro Alves <palves@redhat.com>
8892
8893 * linux-fork.c (new_fork): New, split out of ...
8894 (add_fork): ... this. Return void. Move "first fork" special
8895 case from here, to ...
8896 (checkpoint_command): ... here.
8897 * linux-linux.h (add_fork): Return void.
8898
efbecbc1
AB
88992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8900
8901 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8902
0841c79a
AB
89032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8904 Chris January <chris.january@arm.com>
8905 David Lecomber <david.lecomber@arm.com>
8906
8907 * f-exp.y: New token, UNOP_INTRINSIC.
8908 (exp): New pattern using UNOP_INTRINSIC token.
8909 (f77_keywords): Add 'abs' keyword.
8910 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8911 (value_from_host_double): New function.
8912 (evaluate_subexp_f): Support UNOP_ABS.
8913
4a270568
AB
89142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8915
8916 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8917 types.
8918
067630bd
AB
89192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8920
8921 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8922 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8923 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8924
3be47f7a
AB
89252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8926
8927 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8928
4d00f5d8
AB
89292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8930 Chris January <chris.january@arm.com>
8931
8932 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8933 * f-exp.y: Define 'KIND' token.
8934 (exp): New pattern for KIND expressions.
8935 (ptype): Handle types with a kind extension.
8936 (direct_abs_decl): Extend to spot kind extensions.
8937 (f77_keywords): Add 'kind' to the list.
8938 (push_kind_type): New function.
8939 (convert_to_kind_type): New function.
8940 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8941 * parse.c (operator_length_standard): Likewise.
8942 * parser-defs.h (enum type_pieces): Add tp_kind.
8943 * std-operator.def: Add UNOP_KIND.
8944
e454224f
AB
89452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8946
8947 * f-exp.y (f_parse): Set yydebug.
8948
9dad4a58
AB
89492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8950
8951 * f-lang.c (evaluate_subexp_f): New function.
8952 (exp_descriptor_f): New global.
8953 (f_language_defn): Use exp_descriptor_f instead of
8954 exp_descriptor_standard.
8955
c8f91604
AB
89562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8957
8958 * f-exp.y (struct token): Add comments.
8959 (dot_ops): Remove uppercase versions and the end marker.
8960 (f77_keywords): Likewise.
8961 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8962 entries in the dot_ops array are case insensitive, and use
8963 strncasecmp to compare strings. Also some whitespace cleanup in
8964 this area. Similar for the f77_keywords array, except entries in
8965 this list might be case sensitive.
8966
dd9f2c76
AB
89672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8968
8969 * f-exp.y (struct f77_boolean_val): Add comments.
8970 (boolean_values): Remove uppercase versions, and end marker.
8971 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8972 and use strncasecmp to achieve case insensitivity. Additionally,
8973 perform whitespace cleanup around this code.
8974
67a3048c
TT
89752019-03-06 Tom Tromey <tromey@adacore.com>
8976
8977 * remote-sim.c (gdbsim_target_open): Use result of
8978 gdb_argv::release.
8979
aa3cfbda
RB
89802019-03-06 Richard Bunt <richard.bunt@arm.com>
8981 Dirk Schubert <dirk.schubert@arm.com>
8982 Chris January <chris.january@arm.com>
8983
8984 * eval.c (evaluate_subexp_standard): Call Fortran argument
8985 wrapping logic.
8986 * f-lang.c (struct value): A value which can be passed into a
8987 Fortran function call.
8988 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8989 where appropriate.
8990 (struct type): Value ready for a Fortran function call.
8991 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8992 is needed.
8993 * f-lang.h (fortran_argument_convert): Declaration.
8994 (fortran_preserve_arg_pointer): Declaration.
8995 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8996
ea38e5df
TT
89972019-03-05 Tom Tromey <tromey@adacore.com>
8998
8999 * python/py-prettyprint.c (print_string_repr): Remove #if.
9000 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9001
06b5b831
TT
90022019-03-05 Tom Tromey <tromey@adacore.com>
9003
9004 * target.c (the_dummy_target): Move later. Change type to
9005 "dummy_target".
9006 (initialize_targets): Don't initialize the_dummy_target.
9007
edbd9e45
TT
90082019-03-05 Tom Tromey <tromey@adacore.com>
9009
9010 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9011 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9012
c119e040
TT
90132019-03-05 Tom Tromey <tromey@adacore.com>
9014
9015 * windows-nat.c (windows_nat_target::attach)
9016 (windows_nat_target::detach): Don't call gdb_flush.
9017 * valprint.c (generic_val_print, val_print, val_print_string):
9018 Don't call gdb_flush.
9019 * utils.c (defaulted_query): Don't call gdb_flush.
9020 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9021 * target.c (target_announce_detach): Don't call gdb_flush.
9022 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9023 * remote.c (extended_remote_target::attach): Don't call
9024 gdb_flush.
9025 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9026 * printcmd.c (do_examine): Don't call gdb_flush.
9027 (info_display_command): Don't call gdb_flush.
9028 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9029 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9030 * memattr.c (info_mem_command): Don't call gdb_flush.
9031 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9032 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9033 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9034 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9035 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9036 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9037 (gnu_nat_target::detach): Don't call gdb_flush.
9038 * f-valprint.c (f_val_print): Don't call gdb_flush.
9039 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9040 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9041 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9042 gdb_flush.
9043 * c-valprint.c (c_val_print): Don't call gdb_flush.
9044 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9045
895dafa6
TT
90462019-03-05 Tom Tromey <tromey@adacore.com>
9047
9048 * varobj.c (update_dynamic_varobj_children): Update.
9049 (install_default_visualizer): Use reset, not release.
9050 * value.c (set_internalvar): Update.
9051 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9052 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9053 ATTRIBUTE_UNUSED_RESULT.
9054
88a774b9
TT
90552019-03-05 Tom Tromey <tromey@adacore.com>
9056
9057 * remote.c (class scoped_remote_fd) <release>: Add
9058 ATTRIBUTE_UNUSED_RESULT.
9059
4e4a8b93
TT
90602019-03-05 Tom Tromey <tromey@adacore.com>
9061
9062 * macroexp.c (struct macro_buffer) <release>: Add
9063 ATTRIBUTE_UNUSED_RESULT.
9064
083eef1f
TT
90652019-03-05 Tom Tromey <tromey@adacore.com>
9066
9067 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9068 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9069 ATTRIBUTE_UNUSED_RESULT.
9070
3cabd438
TT
90712019-03-05 Tom Tromey <tromey@adacore.com>
9072
9073 * common/scoped_fd.h (class scoped_fd) <release>: Add
9074 ATTRIBUTE_UNUSED_RESULT.
9075
41e3300a
TT
90762019-03-05 Tom Tromey <tromey@adacore.com>
9077
9078 * parser-defs.h (struct parser_state) <release>: Add
9079 ATTRIBUTE_UNUSED_RESULT.
9080
18cb7c9f
TT
90812019-03-05 Tom Tromey <tromey@adacore.com>
9082
9083 * utils.h (class gdb_argv) <release>: Add
9084 ATTRIBUTE_UNUSED_RESULT.
9085 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9086
41fa577f
EZ
90872019-03-02 Eli Zaretskii <eliz@gnu.org>
9088
a6a4b2c6
EZ
9089 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9090 for-loop range, to avoid compiler warnings.
9091
9092 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9093 avoid compiler warnings about unused variables.
9094
742a7df5
EZ
9095 * NEWS: Mention end of support for native debugging on MS-Windows
9096 before XP.
9097
41fa577f
EZ
9098 PR gdb/24292
9099 * common/netstuff.c:
9100 * gdbserver/gdbreplay.c
9101 * gdbserver/remote-utils.c:
9102 * ser-tcp.c:
9103 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9104 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9105 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9106 'getaddrinfo' and 'freeaddrinfo' were not available before
9107 Windows XP, and mingw.org's MinGW headers by default define
9108 _WIN32_WINNT to 0x500.
9109
827f438f
GB
91102019-03-01 Gary Benson <gbenson@redhat.com>
9111
9112 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9113
92137da0
RO
91142019-02-28 Brian Vandenberg <phantall@gmail.com>
9115 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9116
9117 PR gdb/8527
9118 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9119 set_sigint_trap, clear_sigint_trap.
9120
799efbe8
PW
91212019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9122
9123 * target.c (target_detach): Clear the regcache and the
9124 frame cache.
9125
8ed25214
PA
91262019-02-27 Pedro Alves <palves@redhat.com>
9127
9128 * utils.c (set_screen_size): When we cap the height/width sizes,
9129 tweak the corresponding command variable to show "unlimited":
9130
23031e31
SJ
91312019-02-27 Saagar Jha <saagar@saagarjha.com>
9132 Pedro Alves <palves@redhat.com>
9133
9134 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9135 before calling rl_set_screen_size.
9136
6c28e44a
TT
91372019-02-27 Tom Tromey <tromey@adacore.com>
9138
9139 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9140 define.
9141 * python/py-value.c: Remove Python 2.4 workaround.
9142 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9143 workaround.
9144 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9145 Python 2.4 workaround.
9146 * python/python-internal.h: Remove Python 2.4 comment.
9147 (Py_ssize_t): Don't define.
9148 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9149 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9150 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9151 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9152 * python/python.c (do_start_initialization): Remove Python 2.4
9153 workaround.
9154 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9155 (print_children): Remove Python 2.4 workaround.
9156 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9157 workaround.
9158 (CHARBUFFERPROC_NAME): Remove.
9159 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9160 Python 2.4 workaround.
9161
2c3fc25d 91622019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9163
2c3fc25d
KB
9164 * NEWS: Note minimum Python version.
9165
6ca62222
KB
91662019-02-27 Kevin Buettner <kevinb@redhat.com>
9167
9168 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9169 code from these functions. Remove corresponding ifdefs. Use
9170 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9171 Remove gotos and target of gotos.
9172 (infpy_search_memory): Likewise.
9173
f4bc7d2c
AB
91742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9175
9176 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9177 (hppa_gdbarch_init): Don't register deleted functions with
9178 gdbarch.
9179
9734a586
AB
91802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9181
9182 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9183 (h8300_unwind_sp): Delete.
9184 (h8300_dummy_id): Delete.
9185 (h8300_gdbarch_init): Don't register deleted functions with
9186 gdbarch.
9187
68b867f3
AB
91882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9189
9190 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9191 (ft32_unwind_pc): Delete.
9192 (ft32_unwind_sp): Delete.
9193 (ft32_gdbarch_init): Don't register deleted functions with
9194 gdbarch.
9195
2fbe7ad0
AB
91962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9197
9198 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9199 (frv_unwind_pc): Delete.
9200 (frv_unwind_sp): Delete.
9201 (frv_gdbarch_init): Don't register deleted functions with
9202 gdbarch.
9203
76055cbe
AB
92042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9205
9206 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9207 (riscv_unwind_pc): Delete.
9208 (riscv_unwind_sp): Delete.
9209 (riscv_gdbarch_init): Don't register deleted functions with
9210 gdbarch.
9211
4133e5a1
AB
92122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9213
9214 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9215 (csky_unwind_pc): Delete.
9216 (csky_unwind_sp): Delete.
9217 (csky_gdbarch_init): Don't register deleted functions with
9218 gdbarch.
9219
8010f576
AB
92202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9221
9222 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9223 (cris_unwind_pc): Delete.
9224 (cris_unwind_sp): Delete.
9225 (cris_gdbarch_init): Don't register deleted functions with
9226 gdbarch.
9227
b56bf084
AB
92282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9229
9230 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9231 (bfin_unwind_pc): Delete.
9232 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9233
a19a650f
AB
92342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9235
9236 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9237 (arm_unwind_pc): Delete.
9238 (arm_unwind_sp): Delete.
9239 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9240
f8278c3c
AB
92412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9242
9243 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9244 (arc_unwind_pc): Delete.
9245 (arc_unwind_sp): Delete.
9246 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9247
480e46cf
AB
92482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9249
9250 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9251 (alpha_unwind_pc): Delete.
9252 (alpha_gdbarch_init): Don't register deleted functions with
9253 gdbarch.
9254
7a995095
AB
92552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9256
9257 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9258 (aarch64_unwind_pc): Delete.
9259 (aarch64_unwind_sp): Delete.
9260 (aarch64_gdbarch_init): Don't register deleted functions with
9261 gdbarch.
9262
bf9a735e
AB
92632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9264
9265 * gdbtypes.c (type_align): Don't consider static members when
9266 computing structure alignment.
9267
5561fc30
AB
92682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9269
9270 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9271 return 0 for other types.
9272 * arch-utils.c (default_type_align): Always return 0.
9273 * gdbarch.h: Regenerate.
9274 * gdbarch.sh (type_align): Extend comment.
9275 * gdbtypes.c (type_align): Add additional comments, always call
9276 gdbarch_type_align before applying the default rules.
9277 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9278 generic code will then apply a suitable default.
9279 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9280 types, return 0 for other types.
9281
9335e75a
JB
92822019-02-27 Joel Brobecker <brobecker@adacore.com>
9283
9284 * NEWS: Create a new section for the next release branch.
9285 Rename the section of the current branch, now that it has
9286 been cut.
9287
3d34d8de
JB
92882019-02-27 Joel Brobecker <brobecker@adacore.com>
9289
9290 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9291 * version.in: Bump version to 8.3.50.DATE-git.
9292
143420fb
SM
92932019-02-26 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * aix-thread.c (ptid_cmp): Remove unused variable.
9296 (get_signaled_thread): Likewise.
9297 (store_regs_user_thread): Likewise.
9298 (store_regs_kernel_thread): Likewise.
9299 (fetch_regs_kernel_thread): Remove shadowed variable.
9300
172fb711
AB
93012019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9302
9303 * features/riscv/32bit-cpu.xml: Add register numbers.
9304 * features/riscv/32bit-fpu.c: Regenerate.
9305 * features/riscv/32bit-fpu.xml: Add register numbers.
9306 * features/riscv/64bit-cpu.xml: Add register numbers.
9307 * features/riscv/64bit-fpu.c: Regenerate.
9308 * features/riscv/64bit-fpu.xml: Add register numbers.
9309
26c89782
KB
93102019-02-26 Kevin Buettner <kevinb@redhat.com>
9311
af54ade9 9312 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9313 * python/py-value.c (convert_buffer_and_type_to_value): New
9314 function.
9315 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9316 Add support for handling an optional second argument. Call
9317 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9318 * python/python-internal.h (Py_buffer_deleter): New struct.
9319 (Py_buffer_up): New typedef.
9320
0f58c9e8
JB
93212019-02-25 John Baldwin <jhb@FreeBSD.org>
9322
9323 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9324 instead of releasing ownership.
9325
0a0f4c01
JR
93262019-02-25 Jordan Rupprecht <rupprecht@google.com>
9327
9328 * dwarf2read.c (open_and_init_dwp_file): Call
9329 elf_numsections instead of bfd_count_sections to initialize
9330 dwp_file->num_sections.
9331
cd5a152c
TT
93322019-02-25 Tom Tromey <tromey@adacore.com>
9333
9334 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9335
8a6a8513
SDJ
93362019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9337
9338 * gcore.in: Add '--readnever' option when invoking GDB.
9339
04dcda9c
SM
93402019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9341
9342 * MAINTAINERS: Update my email address.
9343
07bc701d
SM
93442019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9345
9346 * build-id.c (build_id_to_debug_bfd_1): New function.
9347 (build_id_to_debug_bfd): Look for separate debug file in
9348 sysroot.
9349
c6f4a5d0
AB
93502019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9351
9352 * gdbarch.sh: Update the copyright year range that is placed into
9353 generated files.
9354
9600246d
KS
93552019-02-22 Keith Seitz <keiths@redhat.com>
9356
9357 PR symtab/23853
9358 * linespec.c (create_sals_line_offset): Search for the default
9359 symtab's filename instead of its fullname.
9360
7557a514
AH
93612019-02-21 Alan Hayward <alan.hayward@arm.com>
9362
9363 * NEWS: Update style defaults.
9364
ee2bcb0c
AH
93652019-02-21 Alan Hayward <alan.hayward@arm.com>
9366
9367 * main.c (captured_main_1): Disable styling in batch mode.
9368
0c95f9ed
TT
93692019-02-20 Tom Tromey <tom@tromey.com>
9370
9371 * symtab.c (symtab_symbol_info): Fix typos.
9372
c763b894
TT
93732019-02-20 Tom Tromey <tromey@adacore.com>
9374
9375 * findcmd.c (_initialize_mem_search): Use upper case for
9376 metasyntactic variables.
9377
0ef8a082
AH
93782019-02-20 Alan Hayward <alan.hayward@arm.com>
9379
9380 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9381 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9382
6caa91b6
SM
93832019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9384
9385 * top.h (source_file_name): Change to std::string.
9386 * top.c (source_file_name): Likewise.
9387 (command_line_input): Adjust.
9388 * cli/cli-script.c (script_from_file): Adjust.
9389
98814c6c
TT
93902019-02-19 Tom Tromey <tromey@adacore.com>
9391
9392 * ravenscar-thread.c
9393 (ravenscar_thread_target::update_thread_list): Don't call
9394 ada_build_task_list.
9395 * ada-lang.h (ada_build_task_list): Don't declare.
9396 * ada-tasks.c (struct ada_tasks_inferior_data)
9397 <task_list_valid_p>: Now bool.
9398 (read_known_tasks, ada_task_list_changed)
9399 (ada_tasks_invalidate_inferior_data): Update.
9400 (read_known_tasks_array): Return bool.
9401 (read_known_tasks_list): Likewise.
9402 (read_known_tasks): Return void.
9403 (ada_build_task_list): Now static.
9404
70cd633e
AB
94052019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9406
9407 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9408 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9409
040b3e95
PW
94102019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9411
9412 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9413 variant for ada_tasks_pspace_data_handle and
9414 ada_tasks_inferior_data_handle.
9415 (ada_tasks_pspace_data_cleanup): New function.
9416 (ada_tasks_inferior_data_cleanup): New function.
9417
9409233b
TT
94182019-02-17 Tom Tromey <tom@tromey.com>
9419
9420 * macrotab.h (macro_source_fullname): Return a std::string.
9421 * macrotab.c (macro_include, check_for_redefinition)
9422 (macro_undef, macro_lookup_definition, foreach_macro)
9423 (foreach_macro_in_scope): Update.
9424 (macro_source_fullname): Return a std::string.
9425 * macrocmd.c (show_pp_source_pos): Update.
9426
6506371f
TT
94272019-02-17 Tom Tromey <tom@tromey.com>
9428
9429 * macrocmd.c (show_pp_source_pos): Style the file names.
9430
0c820d67
TT
94312019-02-17 Tom Tromey <tom@tromey.com>
9432
9433 PR tui/24197:
9434 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9435
a0087920
TT
94362019-02-17 Tom Tromey <tom@tromey.com>
9437
9438 * ada-lang.c (user_select_syms): Use filtered printing.
9439 * utils.c (wrap_style): New global.
9440 (desired_style): Remove.
9441 (emit_style_escape): Add stream parameter.
9442 (set_output_style, reset_terminal_style, prompt_for_continue):
9443 Update.
9444 (flush_wrap_buffer): Only flush gdb_stdout.
9445 (wrap_here): Set wrap_style.
9446 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9447 treat escape sequences as a character. Change when wrap buffer is
9448 flushed.
9449 (fputs_styled): Do not set the output style when the default is
9450 requested.
9451 * ui-style.h (struct ui_file_style) <is_default>: New method.
9452 * source.c (print_source_lines_base): Emit escape sequences in one
9453 piece.
9454
75ba10dc
JB
94552019-02-17 Joel Brobecker <brobecker@adacore.com>
9456
9457 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9458 integers and enumeration types.
9459
a2cd4f14
JB
94602019-02-17 Joel Brobecker <brobecker@adacore.com>
9461
9462 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9463 instead of lookup_symbol_in_language
9464 (do_exact_match): New function.
9465 (ada_get_symbol_name_matcher): Return do_exact_match when
9466 doing a verbatim match.
9467
485b851b
TT
94682019-02-15 Tom Tromey <tromey@adacore.com>
9469
9470 * ravenscar-thread.c (ravenscar_thread_target::resume)
9471 (ravenscar_thread_target::wait): Special case wildcard requests.
9472
0b790b1e
TT
94732019-02-15 Tom Tromey <tromey@adacore.com>
9474
9475 * ravenscar-thread.c (base_ptid): Remove.
9476 (struct ravenscar_thread_target) <close>: New method.
9477 <m_base_ptid>: New member.
9478 <update_inferior_ptid, active_task, task_is_currently_active,
9479 runtime_initialized>: Declare methods.
9480 <ravenscar_thread_target>: Add constructor.
9481 (ravenscar_thread_target::task_is_currently_active)
9482 (ravenscar_thread_target::update_inferior_ptid)
9483 (ravenscar_runtime_initialized): Rename. Now methods.
9484 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9485 (ravenscar_thread_target::update_thread_list): Update.
9486 (ravenscar_thread_target::active_task): Now method.
9487 (ravenscar_thread_target::store_registers)
9488 (ravenscar_thread_target::prepare_to_store)
9489 (ravenscar_thread_target::prepare_to_store)
9490 (ravenscar_thread_target::mourn_inferior): Update.
9491 (ravenscar_inferior_created): Use "new" to create target.
9492 (ravenscar_thread_target::get_ada_task_ptid): Update.
9493 (_initialize_ravenscar): Don't initialize base_ptid.
9494 (ravenscar_ops): Remove global.
9495
dea57a62
TT
94962019-02-15 Tom Tromey <tromey@adacore.com>
9497
9498 * target.h (push_target): Declare new overload.
9499 * target.c (push_target): New overload, taking an rvalue reference.
9500 * remote.c (remote_target::open_1): Use push_target overload.
9501 * corelow.c (core_target_open): Use push_target overload.
9502
989f3c58
TT
95032019-02-15 Tom Tromey <tromey@adacore.com>
9504
9505 * ravenscar-thread.c (is_ravenscar_task)
9506 (ravenscar_task_is_currently_active): Return bool.
9507 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9508 (_initialize_ravenscar): Remove "(void)".
9509 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9510 Return bool.
9511
6cbcc006
TT
95122019-02-15 Tom Tromey <tromey@adacore.com>
9513
9514 * ravenscar-thread.c (ravenscar_runtime_initializer)
9515 (has_ravenscar_runtime, get_running_thread_id)
9516 (ravenscar_thread_target::resume): Fix indentation.
9517
7657f14d
TT
95182019-02-15 Tom Tromey <tromey@adacore.com>
9519
9520 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9521 from ravenscar_arch_ops.
9522 (sparc_ravenscar_ops::fetch_registers)
9523 (sparc_ravenscar_ops::store_registers): Now methods.
9524 (sparc_ravenscar_prepare_to_store): Remove.
9525 (sparc_ravenscar_ops): Redefine.
9526 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9527 methods and destructor. Remove members.
9528 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9529 (ravenscar_thread_target::store_registers)
9530 (ravenscar_thread_target::prepare_to_store): Update.
9531 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9532 Remove.
9533 (struct ppc_ravenscar_powerpc_ops): Derive from
9534 ravenscar_arch_ops.
9535 (ppc_ravenscar_powerpc_ops::fetch_registers)
9536 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9537 (ppc_ravenscar_powerpc_ops): Redefine.
9538 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9539 (ppc_ravenscar_e500_ops::fetch_registers)
9540 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9541 (ppc_ravenscar_e500_ops): Redefine.
9542 * aarch64-ravenscar-thread.c
9543 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9544 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9545 (aarch64_ravenscar_fetch_registers)
9546 (aarch64_ravenscar_store_registers): Now methods.
9547 (aarch64_ravenscar_ops): Redefine.
9548
5b6ea500
TT
95492019-02-15 Tom Tromey <tromey@adacore.com>
9550
9551 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9552 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9553 (ravenscar_thread_target::stopped_by_watchpoint)
9554 (ravenscar_thread_target::stopped_data_address)
9555 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9556
e397fd39
TT
95572019-02-15 Tom Tromey <tromey@adacore.com>
9558
9559 * ravenscar-thread.c: Fix some typos.
9560
cc12f4a8
TT
95612019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9562 Tom Tromey <tromey@adacore.com>
9563
9564 * ada-lang.c (ada_exception_sal): Change addr_string to a
9565 std::string.
9566 (create_ada_exception_catchpoint): Update.
9567
5f486660
TT
95682019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9569 Tom Tromey <tromey@adacore.com>
9570
9571 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9572 (bp_location_ops): Remove.
9573 (base_breakpoint_allocate_location): Update.
9574 (free_bp_location): Update.
9575 * ada-lang.c (class ada_catchpoint_location)
9576 <ada_catchpoint_location>: Remove ops parameter.
9577 (ada_catchpoint_location_dtor): Remove.
9578 (ada_catchpoint_location_ops): Remove.
9579 (allocate_location_exception): Update.
9580 * breakpoint.h (struct bp_location_ops): Remove.
9581 (class bp_location) <bp_location>: Remove bp_location_ops
9582 parameter.
9583 <~bp_location>: Add destructor.
9584 <ops>: Remove.
9585
b671c7fb
TS
95862019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9587 Pedro Alves <palves@redhat.com>
9588
9589 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9590 'PATH_MAX'.
9591
8071c5ce
DM
95922019-02-14 David Michael <fedora.dm0@gmail.com>
9593 Samuel Thibault <samuel.thibault@gnu.org>
9594 Thomas Schwinge <thomas@codesourcery.com>
9595
9596 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9597 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9598
b1041ae0
TS
95992019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9600
924514e1
TS
9601 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9602 (check_empty): Use "const char *".
9603
c29ee8d4
TS
9604 * gnu-nat.c (gnu_nat_target::detach): Instead of
9605 'detach_inferior (pid)' call
9606 'detach_inferior (find_inferior_pid (pid))'.
9607
6c6ef69f
TS
9608 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9609 'nat/fork-inferior.o'.
9610 * gnu-nat.c: #include "nat/fork-inferior.h".
9611
2d0a338c
TS
9612 * gnu-nat.c (gnu_nat_target::detach): Instead of
9613 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9614 * gnu-nat.h: #include "inf-child.h".
9615 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9616 'i386_gnu_nat_target::fetch_registers'.
9617 (gnu_store_registers): Rename/move to
9618 'i386_gnu_nat_target::store_registers'.
9619
cabb5f06
TS
9620 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9621 * gnu-nat.h (mach_thread_info): New function.
9622 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9623
b1041ae0
TS
9624 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9625
2988d01e
KF
96262019-02-14 Frederic Konrad <konrad@adacore.com>
9627
9628 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9629
c559d709
JB
96302019-02-14 Joel Brobecker <brobecker@adacore.com>
9631
9632 * windows-nat.c (windows_add_thread): Add new parameter
9633 "main_thread_p" with default value set to false. Update
9634 function documentation as well as all callers.
9635 (windows_delete_thread): Likewise.
9636 (fake_create_process): Update call to windows_add_thread.
9637 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9638 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9639 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9640 call to windows_delete_thread.
9641
007024cc
SM
96422019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9643
9644 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9645
f62318e9
JB
96462019-02-12 John Baldwin <jhb@FreeBSD.org>
9647
9648 * symfile.c (find_separate_debug_file): Use canonical path of
9649 sysroot with child_path instead of gdb_sysroot if it is valid.
9650
cd4b7848
JB
96512019-02-12 John Baldwin <jhb@FreeBSD.org>
9652
9653 * symfile.c (find_separate_debug_file): Use child_path to
9654 determine if an object file is under a sysroot.
9655
efac4bfe
JB
96562019-02-12 John Baldwin <jhb@FreeBSD.org>
9657
9658 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9659 unittests/child-path-selftests.c.
9660 * common/pathstuff.c (child_path): New function.
9661 * common/pathstuff.h (child_path): New prototype.
9662 * unittests/child-path-selftests.c: New file.
9663
402d2bfe
JB
96642019-02-12 John Baldwin <jhb@FreeBSD.org>
9665
9666 * symfile.c (find_separate_debug_file): Look for separate debug
9667 files in debug directories under the sysroot.
9668
1ed9f74e
PW
96692019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9670
9671 * symtab.h (struct minimal_symbol data_p): New const method.
9672 (struct minimal_symbol text_p): Likewise.
9673 * symtab.c (output_source_filename): Use file name style
9674 to print file name.
9675 (print_symbol_info): Likewise.
9676 (print_msymbol_info): Use address style to print addresses.
9677 Use function name style to print executable text symbols.
9678 (expand_symtab_containing_pc): Use data_p.
9679 (find_pc_sect_compunit_symtab): Likewise.
9680
2636d81d
PW
96812019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9682
9683 * breakpoint.c (describe_other_breakpoints): Use address style
9684 to print addresses.
9685 (say_where): Likewise.
9686
ac8c53cc
PW
96872019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9688
9689 * ada-typeprint.c (print_func_type): Print function name
9690 style to print function name.
9691 * c-typeprint.c (c_print_type_1): Likewise.
9692
ea638c43
AH
96932019-02-11 Alan Hayward <alan.hayward@arm.com>
9694
9695 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9696 for execve.
9697
ab759ca8
PW
96982019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9699
9700 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9701 type_stack.
9702
aff29d1c
JB
97032019-02-10 Joel Brobecker <brobecker@adacore.com>
9704
9705 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9706 TYPE_CODE_REF types.
9707
617126bc
JW
97082019-02-08 Jim Wilson <jimw@sifive.com>
9709
9710 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9711 (riscv_linux_fregset): New.
9712 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9713
46e3ed7f
TT
97142019-02-07 Tom Tromey <tom@tromey.com>
9715
9716 * thread.c (thread_cancel_execution_command): Update.
9717 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9718 methods.
9719 (struct thread_fsm_ops): Remove.
9720 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9721 (thread_fsm_should_stop, thread_fsm_return_value)
9722 (thread_fsm_set_finished, thread_fsm_finished_p)
9723 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9724 Don't declare.
9725 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9726 * infrun.c (clear_proceed_status_thread)
9727 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9728 (print_stop_event): Update.
9729 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9730 Add constructor.
9731 (step_command_fsm_ops): Remove.
9732 (new_step_command_fsm): Remove.
9733 (step_1): Update.
9734 (step_command_fsm::should_stop): Rename from
9735 step_command_fsm_should_stop.
9736 (step_command_fsm::clean_up): Rename from
9737 step_command_fsm_clean_up.
9738 (step_command_fsm::do_async_reply_reason): Rename from
9739 step_command_fsm_async_reply_reason.
9740 (struct until_next_fsm): Inherit from thread_fsm. Add
9741 constructor.
9742 (until_next_fsm_ops): Remove.
9743 (new_until_next_fsm): Remove.
9744 (until_next_fsm::should_stop): Rename from
9745 until_next_fsm_should_stop.
9746 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9747 (until_next_fsm::do_async_reply_reason): Rename from
9748 until_next_fsm_async_reply_reason.
9749 (struct finish_command_fsm): Inherit from thread_fsm. Add
9750 constructor. Change type of breakpoint.
9751 (finish_command_fsm_ops): Remove.
9752 (new_finish_command_fsm): Remove.
9753 (finish_command_fsm::should_stop): Rename from
9754 finish_command_fsm_should_stop.
9755 (finish_command_fsm::clean_up): Rename from
9756 finish_command_fsm_clean_up.
9757 (finish_command_fsm::return_value): Rename from
9758 finish_command_fsm_return_value.
9759 (finish_command_fsm::do_async_reply_reason): Rename from
9760 finish_command_fsm_async_reply_reason.
9761 (finish_command): Update.
9762 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9763 Add constructor.
9764 (call_thread_fsm_ops): Remove.
9765 (call_thread_fsm::call_thread_fsm): Rename from
9766 new_call_thread_fsm.
9767 (call_thread_fsm::should_stop): Rename from
9768 call_thread_fsm_should_stop.
9769 (call_thread_fsm::should_notify_stop): Rename from
9770 call_thread_fsm_should_notify_stop.
9771 (run_inferior_call, call_function_by_hand_dummy): Update.
9772 * cli/cli-interp.c (should_print_stop_to_console): Update.
9773 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9774 Add constructor. Change type of location_breakpoint,
9775 caller_breakpoint.
9776 (until_break_fsm_ops): Remove.
9777 (new_until_break_fsm): Remove.
9778 (until_break_fsm::should_stop): Rename from
9779 until_break_fsm_should_stop.
9780 (until_break_fsm::clean_up): Rename from
9781 until_break_fsm_clean_up.
9782 (until_break_fsm::do_async_reply_reason): Rename from
9783 until_break_fsm_async_reply_reason.
9784 (until_break_command): Update.
9785 * thread-fsm.c: Remove.
9786 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9787
1a5c2598
TT
97882019-02-07 Tom Tromey <tom@tromey.com>
9789
9790 * yy-remap.h: Add include guard.
9791 * xtensa-tdep.h: Add include guard.
9792 * xcoffread.h: Rename include guard.
9793 * varobj-iter.h: Add include guard.
9794 * tui/tui.h: Rename include guard.
9795 * tui/tui-winsource.h: Rename include guard.
9796 * tui/tui-wingeneral.h: Rename include guard.
9797 * tui/tui-windata.h: Rename include guard.
9798 * tui/tui-win.h: Rename include guard.
9799 * tui/tui-stack.h: Rename include guard.
9800 * tui/tui-source.h: Rename include guard.
9801 * tui/tui-regs.h: Rename include guard.
9802 * tui/tui-out.h: Rename include guard.
9803 * tui/tui-layout.h: Rename include guard.
9804 * tui/tui-io.h: Rename include guard.
9805 * tui/tui-hooks.h: Rename include guard.
9806 * tui/tui-file.h: Rename include guard.
9807 * tui/tui-disasm.h: Rename include guard.
9808 * tui/tui-data.h: Rename include guard.
9809 * tui/tui-command.h: Rename include guard.
9810 * tic6x-tdep.h: Add include guard.
9811 * target/waitstatus.h: Rename include guard.
9812 * target/wait.h: Rename include guard.
9813 * target/target.h: Rename include guard.
9814 * target/resume.h: Rename include guard.
9815 * target-float.h: Rename include guard.
9816 * stabsread.h: Add include guard.
9817 * rs6000-tdep.h: Add include guard.
9818 * riscv-fbsd-tdep.h: Add include guard.
9819 * regformats/regdef.h: Rename include guard.
9820 * record.h: Rename include guard.
9821 * python/python.h: Rename include guard.
9822 * python/python-internal.h: Rename include guard.
9823 * python/py-stopevent.h: Rename include guard.
9824 * python/py-ref.h: Rename include guard.
9825 * python/py-record.h: Rename include guard.
9826 * python/py-record-full.h: Rename include guard.
9827 * python/py-record-btrace.h: Rename include guard.
9828 * python/py-instruction.h: Rename include guard.
9829 * python/py-events.h: Rename include guard.
9830 * python/py-event.h: Rename include guard.
9831 * procfs.h: Add include guard.
9832 * proc-utils.h: Add include guard.
9833 * p-lang.h: Add include guard.
9834 * or1k-tdep.h: Rename include guard.
9835 * observable.h: Rename include guard.
9836 * nto-tdep.h: Rename include guard.
9837 * nat/x86-linux.h: Rename include guard.
9838 * nat/x86-linux-dregs.h: Rename include guard.
9839 * nat/x86-gcc-cpuid.h: Add include guard.
9840 * nat/x86-dregs.h: Rename include guard.
9841 * nat/x86-cpuid.h: Rename include guard.
9842 * nat/ppc-linux.h: Rename include guard.
9843 * nat/mips-linux-watch.h: Rename include guard.
9844 * nat/linux-waitpid.h: Rename include guard.
9845 * nat/linux-ptrace.h: Rename include guard.
9846 * nat/linux-procfs.h: Rename include guard.
9847 * nat/linux-osdata.h: Rename include guard.
9848 * nat/linux-nat.h: Rename include guard.
9849 * nat/linux-namespaces.h: Rename include guard.
9850 * nat/linux-btrace.h: Rename include guard.
9851 * nat/glibc_thread_db.h: Rename include guard.
9852 * nat/gdb_thread_db.h: Rename include guard.
9853 * nat/gdb_ptrace.h: Rename include guard.
9854 * nat/fork-inferior.h: Rename include guard.
9855 * nat/amd64-linux-siginfo.h: Rename include guard.
9856 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9857 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9858 * nat/aarch64-linux.h: Rename include guard.
9859 * nat/aarch64-linux-hw-point.h: Rename include guard.
9860 * mn10300-tdep.h: Add include guard.
9861 * mips-linux-tdep.h: Add include guard.
9862 * mi/mi-parse.h: Rename include guard.
9863 * mi/mi-out.h: Rename include guard.
9864 * mi/mi-main.h: Rename include guard.
9865 * mi/mi-interp.h: Rename include guard.
9866 * mi/mi-getopt.h: Rename include guard.
9867 * mi/mi-console.h: Rename include guard.
9868 * mi/mi-common.h: Rename include guard.
9869 * mi/mi-cmds.h: Rename include guard.
9870 * mi/mi-cmd-break.h: Rename include guard.
9871 * m2-lang.h: Add include guard.
9872 * location.h: Rename include guard.
9873 * linux-record.h: Rename include guard.
9874 * linux-nat.h: Add include guard.
9875 * linux-fork.h: Add include guard.
9876 * i386-darwin-tdep.h: Rename include guard.
9877 * hppa-linux-offsets.h: Add include guard.
9878 * guile/guile.h: Rename include guard.
9879 * guile/guile-internal.h: Rename include guard.
9880 * gnu-nat.h: Rename include guard.
9881 * gdb-stabs.h: Rename include guard.
9882 * frv-tdep.h: Add include guard.
9883 * f-lang.h: Add include guard.
9884 * event-loop.h: Add include guard.
9885 * darwin-nat.h: Rename include guard.
9886 * cp-abi.h: Rename include guard.
9887 * config/sparc/nm-sol2.h: Rename include guard.
9888 * config/nm-nto.h: Rename include guard.
9889 * config/nm-linux.h: Add include guard.
9890 * config/i386/nm-i386gnu.h: Rename include guard.
9891 * config/djgpp/nl_types.h: Rename include guard.
9892 * config/djgpp/langinfo.h: Rename include guard.
9893 * compile/gcc-cp-plugin.h: Add include guard.
9894 * compile/gcc-c-plugin.h: Add include guard.
9895 * compile/compile.h: Rename include guard.
9896 * compile/compile-object-run.h: Rename include guard.
9897 * compile/compile-object-load.h: Rename include guard.
9898 * compile/compile-internal.h: Rename include guard.
9899 * compile/compile-cplus.h: Rename include guard.
9900 * compile/compile-c.h: Rename include guard.
9901 * common/xml-utils.h: Rename include guard.
9902 * common/x86-xstate.h: Rename include guard.
9903 * common/version.h: Rename include guard.
9904 * common/vec.h: Rename include guard.
9905 * common/tdesc.h: Rename include guard.
9906 * common/selftest.h: Rename include guard.
9907 * common/scoped_restore.h: Rename include guard.
9908 * common/scoped_mmap.h: Rename include guard.
9909 * common/scoped_fd.h: Rename include guard.
9910 * common/safe-iterator.h: Rename include guard.
9911 * common/run-time-clock.h: Rename include guard.
9912 * common/refcounted-object.h: Rename include guard.
9913 * common/queue.h: Rename include guard.
9914 * common/ptid.h: Rename include guard.
9915 * common/print-utils.h: Rename include guard.
9916 * common/preprocessor.h: Rename include guard.
9917 * common/pathstuff.h: Rename include guard.
9918 * common/observable.h: Rename include guard.
9919 * common/netstuff.h: Rename include guard.
9920 * common/job-control.h: Rename include guard.
9921 * common/host-defs.h: Rename include guard.
9922 * common/gdb_wait.h: Rename include guard.
9923 * common/gdb_vecs.h: Rename include guard.
9924 * common/gdb_unlinker.h: Rename include guard.
9925 * common/gdb_unique_ptr.h: Rename include guard.
9926 * common/gdb_tilde_expand.h: Rename include guard.
9927 * common/gdb_sys_time.h: Rename include guard.
9928 * common/gdb_string_view.h: Rename include guard.
9929 * common/gdb_splay_tree.h: Rename include guard.
9930 * common/gdb_setjmp.h: Rename include guard.
9931 * common/gdb_ref_ptr.h: Rename include guard.
9932 * common/gdb_optional.h: Rename include guard.
9933 * common/gdb_locale.h: Rename include guard.
9934 * common/gdb_assert.h: Rename include guard.
9935 * common/filtered-iterator.h: Rename include guard.
9936 * common/filestuff.h: Rename include guard.
9937 * common/fileio.h: Rename include guard.
9938 * common/environ.h: Rename include guard.
9939 * common/common-utils.h: Rename include guard.
9940 * common/common-types.h: Rename include guard.
9941 * common/common-regcache.h: Rename include guard.
9942 * common/common-inferior.h: Rename include guard.
9943 * common/common-gdbthread.h: Rename include guard.
9944 * common/common-exceptions.h: Rename include guard.
9945 * common/common-defs.h: Rename include guard.
9946 * common/common-debug.h: Rename include guard.
9947 * common/cleanups.h: Rename include guard.
9948 * common/buffer.h: Rename include guard.
9949 * common/btrace-common.h: Rename include guard.
9950 * common/break-common.h: Rename include guard.
9951 * cli/cli-utils.h: Rename include guard.
9952 * cli/cli-style.h: Rename include guard.
9953 * cli/cli-setshow.h: Rename include guard.
9954 * cli/cli-script.h: Rename include guard.
9955 * cli/cli-interp.h: Rename include guard.
9956 * cli/cli-decode.h: Rename include guard.
9957 * cli/cli-cmds.h: Rename include guard.
9958 * charset-list.h: Add include guard.
9959 * buildsym-legacy.h: Rename include guard.
9960 * bfin-tdep.h: Add include guard.
9961 * ax.h: Rename include guard.
9962 * arm-linux-tdep.h: Add include guard.
9963 * arm-fbsd-tdep.h: Add include guard.
9964 * arch/xtensa.h: Rename include guard.
9965 * arch/tic6x.h: Add include guard.
9966 * arch/i386.h: Add include guard.
9967 * arch/arm.h: Rename include guard.
9968 * arch/arm-linux.h: Rename include guard.
9969 * arch/arm-get-next-pcs.h: Rename include guard.
9970 * arch/amd64.h: Add include guard.
9971 * arch/aarch64-insn.h: Rename include guard.
9972 * arch-utils.h: Rename include guard.
9973 * annotate.h: Add include guard.
9974 * amd64-darwin-tdep.h: Rename include guard.
9975 * aarch64-linux-tdep.h: Add include guard.
9976 * aarch64-fbsd-tdep.h: Add include guard.
9977 * aarch32-linux-nat.h: Add include guard.
9978
ab9268d2
PW
99792019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9980
9981 * macrotab.c (macro_define_internal): New function that
9982 factorizes macro_define_object_internal and macro_define_function
9983 code.
9984 (macro_define_object_internal): Use macro_define_internal.
9985 (macro_define_function): Likewise.
9986
bb0da2b4
PW
99872019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9988
9989 * macrocmd.c (extract_identifier): Return
9990 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9991 callers.
9992
424eb552
JB
99932019-02-06 John Baldwin <jhb@FreeBSD.org>
9994
9995 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9996
1688cb29
TT
99972019-02-05 Tom Tromey <tom@tromey.com>
9998
9999 * target.c (target_stack::unpush): Move assertion earlier.
10000
b5eba2d8
TT
100012019-01-30 Tom Tromey <tom@tromey.com>
10002
10003 PR python/23615:
10004 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10005 (gdbpy_parse_and_eval): Likewise.
10006 * python/python-internal.h (gdbpy_allow_threads): New class.
10007
7054e2ff
JB
100082019-01-28 John Baldwin <jhb@FreeBSD.org>
10009
10010 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10011 (aarch64_fbsd_fpregmap): Move earlier.
10012 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10013 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10014 instead of individual calls to trad_frame_set_reg_addr.
10015 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10016 earlier.
10017 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10018 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10019 instead of individual calls to trad_frame_set_reg_addr.
10020
36c25ffa
AH
100212019-01-28 Alan Hayward <alan.hayward@arm.com>
10022
10023 * CONTRIBUTE: Replace contribution list with wiki link.
10024
a0707f3c
TT
100252019-01-25 Tom Tromey <tom@tromey.com>
10026
10027 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10028
0747795c
TT
100292019-01-25 Tom Tromey <tom@tromey.com>
10030
10031 * xtensa-linux-nat.c: Fix common/ includes.
10032 * xml-support.h: Fix common/ includes.
10033 * xml-support.c: Fix common/ includes.
10034 * x86-linux-nat.c: Fix common/ includes.
10035 * windows-nat.c: Fix common/ includes.
10036 * varobj.h: Fix common/ includes.
10037 * varobj.c: Fix common/ includes.
10038 * value.c: Fix common/ includes.
10039 * valops.c: Fix common/ includes.
10040 * utils.c: Fix common/ includes.
10041 * unittests/xml-utils-selftests.c: Fix common/ includes.
10042 * unittests/utils-selftests.c: Fix common/ includes.
10043 * unittests/unpack-selftests.c: Fix common/ includes.
10044 * unittests/tracepoint-selftests.c: Fix common/ includes.
10045 * unittests/style-selftests.c: Fix common/ includes.
10046 * unittests/string_view-selftests.c: Fix common/ includes.
10047 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10048 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10049 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10050 * unittests/rsp-low-selftests.c: Fix common/ includes.
10051 * unittests/parse-connection-spec-selftests.c: Fix common/
10052 includes.
10053 * unittests/optional-selftests.c: Fix common/ includes.
10054 * unittests/offset-type-selftests.c: Fix common/ includes.
10055 * unittests/observable-selftests.c: Fix common/ includes.
10056 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10057 * unittests/memrange-selftests.c: Fix common/ includes.
10058 * unittests/memory-map-selftests.c: Fix common/ includes.
10059 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10060 * unittests/function-view-selftests.c: Fix common/ includes.
10061 * unittests/environ-selftests.c: Fix common/ includes.
10062 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10063 * unittests/common-utils-selftests.c: Fix common/ includes.
10064 * unittests/cli-utils-selftests.c: Fix common/ includes.
10065 * unittests/array-view-selftests.c: Fix common/ includes.
10066 * ui-file.c: Fix common/ includes.
10067 * tui/tui-io.c: Fix common/ includes.
10068 * tracepoint.h: Fix common/ includes.
10069 * tracepoint.c: Fix common/ includes.
10070 * tracefile-tfile.c: Fix common/ includes.
10071 * top.h: Fix common/ includes.
10072 * top.c: Fix common/ includes.
10073 * thread.c: Fix common/ includes.
10074 * target/waitstatus.h: Fix common/ includes.
10075 * target/waitstatus.c: Fix common/ includes.
10076 * target.h: Fix common/ includes.
10077 * target.c: Fix common/ includes.
10078 * target-memory.c: Fix common/ includes.
10079 * target-descriptions.c: Fix common/ includes.
10080 * symtab.h: Fix common/ includes.
10081 * symfile.c: Fix common/ includes.
10082 * stap-probe.c: Fix common/ includes.
10083 * spu-linux-nat.c: Fix common/ includes.
10084 * sparc-nat.c: Fix common/ includes.
10085 * source.c: Fix common/ includes.
10086 * solib.c: Fix common/ includes.
10087 * solib-target.c: Fix common/ includes.
10088 * ser-unix.c: Fix common/ includes.
10089 * ser-tcp.c: Fix common/ includes.
10090 * ser-pipe.c: Fix common/ includes.
10091 * ser-base.c: Fix common/ includes.
10092 * selftest-arch.c: Fix common/ includes.
10093 * s12z-tdep.c: Fix common/ includes.
10094 * rust-exp.y: Fix common/ includes.
10095 * rs6000-aix-tdep.c: Fix common/ includes.
10096 * riscv-tdep.c: Fix common/ includes.
10097 * remote.c: Fix common/ includes.
10098 * remote-notif.h: Fix common/ includes.
10099 * remote-fileio.h: Fix common/ includes.
10100 * remote-fileio.c: Fix common/ includes.
10101 * regcache.h: Fix common/ includes.
10102 * regcache.c: Fix common/ includes.
10103 * record-btrace.c: Fix common/ includes.
10104 * python/python.c: Fix common/ includes.
10105 * python/py-type.c: Fix common/ includes.
10106 * python/py-inferior.c: Fix common/ includes.
10107 * progspace.h: Fix common/ includes.
10108 * producer.c: Fix common/ includes.
10109 * procfs.c: Fix common/ includes.
10110 * proc-api.c: Fix common/ includes.
10111 * printcmd.c: Fix common/ includes.
10112 * ppc-linux-nat.c: Fix common/ includes.
10113 * parser-defs.h: Fix common/ includes.
10114 * osdata.c: Fix common/ includes.
10115 * obsd-nat.c: Fix common/ includes.
10116 * nat/x86-linux.c: Fix common/ includes.
10117 * nat/x86-linux-dregs.c: Fix common/ includes.
10118 * nat/x86-dregs.h: Fix common/ includes.
10119 * nat/x86-dregs.c: Fix common/ includes.
10120 * nat/ppc-linux.c: Fix common/ includes.
10121 * nat/mips-linux-watch.h: Fix common/ includes.
10122 * nat/mips-linux-watch.c: Fix common/ includes.
10123 * nat/linux-waitpid.c: Fix common/ includes.
10124 * nat/linux-ptrace.h: Fix common/ includes.
10125 * nat/linux-ptrace.c: Fix common/ includes.
10126 * nat/linux-procfs.c: Fix common/ includes.
10127 * nat/linux-personality.c: Fix common/ includes.
10128 * nat/linux-osdata.c: Fix common/ includes.
10129 * nat/linux-namespaces.c: Fix common/ includes.
10130 * nat/linux-btrace.h: Fix common/ includes.
10131 * nat/linux-btrace.c: Fix common/ includes.
10132 * nat/fork-inferior.c: Fix common/ includes.
10133 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10134 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10135 * nat/aarch64-linux.c: Fix common/ includes.
10136 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10137 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10138 * namespace.h: Fix common/ includes.
10139 * mips-linux-tdep.c: Fix common/ includes.
10140 * minsyms.c: Fix common/ includes.
10141 * mi/mi-parse.h: Fix common/ includes.
10142 * mi/mi-main.c: Fix common/ includes.
10143 * mi/mi-cmd-env.c: Fix common/ includes.
10144 * memrange.h: Fix common/ includes.
10145 * memattr.c: Fix common/ includes.
10146 * maint.h: Fix common/ includes.
10147 * maint.c: Fix common/ includes.
10148 * main.c: Fix common/ includes.
10149 * machoread.c: Fix common/ includes.
10150 * location.c: Fix common/ includes.
10151 * linux-thread-db.c: Fix common/ includes.
10152 * linux-nat.c: Fix common/ includes.
10153 * linux-fork.c: Fix common/ includes.
10154 * inline-frame.c: Fix common/ includes.
10155 * infrun.c: Fix common/ includes.
10156 * inflow.c: Fix common/ includes.
10157 * inferior.h: Fix common/ includes.
10158 * inferior.c: Fix common/ includes.
10159 * infcmd.c: Fix common/ includes.
10160 * inf-ptrace.c: Fix common/ includes.
10161 * inf-child.c: Fix common/ includes.
10162 * ia64-linux-nat.c: Fix common/ includes.
10163 * i387-tdep.c: Fix common/ includes.
10164 * i386-tdep.c: Fix common/ includes.
10165 * i386-linux-tdep.c: Fix common/ includes.
10166 * i386-linux-nat.c: Fix common/ includes.
10167 * i386-go32-tdep.c: Fix common/ includes.
10168 * i386-fbsd-tdep.c: Fix common/ includes.
10169 * i386-fbsd-nat.c: Fix common/ includes.
10170 * guile/scm-type.c: Fix common/ includes.
10171 * guile/guile.c: Fix common/ includes.
10172 * go32-nat.c: Fix common/ includes.
10173 * gnu-nat.c: Fix common/ includes.
10174 * gdbthread.h: Fix common/ includes.
10175 * gdbarch-selftests.c: Fix common/ includes.
10176 * gdb_usleep.c: Fix common/ includes.
10177 * gdb_select.h: Fix common/ includes.
10178 * gdb_bfd.c: Fix common/ includes.
10179 * gcore.c: Fix common/ includes.
10180 * fork-child.c: Fix common/ includes.
10181 * findvar.c: Fix common/ includes.
10182 * fbsd-nat.c: Fix common/ includes.
10183 * event-top.c: Fix common/ includes.
10184 * event-loop.c: Fix common/ includes.
10185 * dwarf2read.c: Fix common/ includes.
10186 * dwarf2loc.c: Fix common/ includes.
10187 * dwarf2-frame.c: Fix common/ includes.
10188 * dwarf-index-cache.c: Fix common/ includes.
10189 * dtrace-probe.c: Fix common/ includes.
10190 * disasm-selftests.c: Fix common/ includes.
10191 * defs.h: Fix common/ includes.
10192 * csky-tdep.c: Fix common/ includes.
10193 * cp-valprint.c: Fix common/ includes.
10194 * cp-support.h: Fix common/ includes.
10195 * cp-support.c: Fix common/ includes.
10196 * corelow.c: Fix common/ includes.
10197 * completer.h: Fix common/ includes.
10198 * completer.c: Fix common/ includes.
10199 * compile/compile.c: Fix common/ includes.
10200 * compile/compile-loc2c.c: Fix common/ includes.
10201 * compile/compile-cplus-types.c: Fix common/ includes.
10202 * compile/compile-cplus-symbols.c: Fix common/ includes.
10203 * command.h: Fix common/ includes.
10204 * cli/cli-dump.c: Fix common/ includes.
10205 * cli/cli-cmds.c: Fix common/ includes.
10206 * charset.c: Fix common/ includes.
10207 * build-id.c: Fix common/ includes.
10208 * btrace.h: Fix common/ includes.
10209 * btrace.c: Fix common/ includes.
10210 * breakpoint.h: Fix common/ includes.
10211 * breakpoint.c: Fix common/ includes.
10212 * ax.h:
10213 (enum agent_op): Fix common/ includes.
10214 * ax-general.c (struct aop_map): Fix common/ includes.
10215 * ax-gdb.c: Fix common/ includes.
10216 * auxv.c: Fix common/ includes.
10217 * auto-load.c: Fix common/ includes.
10218 * arm-tdep.c: Fix common/ includes.
10219 * arch/riscv.c: Fix common/ includes.
10220 * arch/ppc-linux-common.c: Fix common/ includes.
10221 * arch/i386.c: Fix common/ includes.
10222 * arch/arm.c: Fix common/ includes.
10223 * arch/arm-linux.c: Fix common/ includes.
10224 * arch/arm-get-next-pcs.c: Fix common/ includes.
10225 * arch/amd64.c: Fix common/ includes.
10226 * arch/aarch64.c: Fix common/ includes.
10227 * arch/aarch64-insn.c: Fix common/ includes.
10228 * arch-utils.c: Fix common/ includes.
10229 * amd64-windows-tdep.c: Fix common/ includes.
10230 * amd64-tdep.c: Fix common/ includes.
10231 * amd64-sol2-tdep.c: Fix common/ includes.
10232 * amd64-obsd-tdep.c: Fix common/ includes.
10233 * amd64-nbsd-tdep.c: Fix common/ includes.
10234 * amd64-linux-tdep.c: Fix common/ includes.
10235 * amd64-linux-nat.c: Fix common/ includes.
10236 * amd64-fbsd-tdep.c: Fix common/ includes.
10237 * amd64-fbsd-nat.c: Fix common/ includes.
10238 * amd64-dicos-tdep.c: Fix common/ includes.
10239 * amd64-darwin-tdep.c: Fix common/ includes.
10240 * agent.c: Fix common/ includes.
10241 * ada-lang.h: Fix common/ includes.
10242 * ada-lang.c: Fix common/ includes.
10243 * aarch64-tdep.c: Fix common/ includes.
10244
2f5c153e
TT
102452019-01-25 Tom Tromey <tom@tromey.com>
10246
10247 * common/create-version.sh: Use common/version.h.
10248
adc6a863
PA
102492019-01-24 Pedro Alves <palves@redhat.com>
10250
10251 * infrun.c (signal_stop, signal_print, signal_program)
10252 (signal_catch, signal_pass): Now arrays instead of pointers.
10253 (update_signals_program_target, do_target_resume)
10254 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10255 * linux-nat.c (linux_nat_target::pass_signals)
10256 (linux_nat_target::create_inferior, linux_nat_target::attach):
10257 Adjust.
10258 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10259 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10260 * procfs.c (procfs_target::pass_signals): Adjust.
10261 * record-full.c (record_full_target::resume): Adjust.
10262 * remote.c (remote_target::pass_signals)
10263 (remote_target::program_signals): Adjust.
10264 * target-debug.h (target_debug_print_signals): Now takes a
10265 gdb::array_view as parameter. Adjust.
10266 * target.h (target_ops) <pass_signals, program_signals>: Replace
10267 pointer and length parameters with gdb::array_view.
10268 (target_pass_signals, target_program_signals): Likewise.
10269 * target-delegates.c: Regenerate.
10270
3046d67a
PA
102712019-01-24 Pedro Alves <palves@redhat.com>
10272
10273 * common/forward-scope-exit.h
10274 (forward_scope_exit::forward_scope_exit): Pass arguments to
10275 m_bind_function directly, instead of creating a std::bind and
10276 copying that.
10277
353229bf
AH
102782019-01-24 Alan Hayward <alan.hayward@arm.com>
10279
10280 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10281 for static members.
10282 (pass_in_v_vfp_candidate): Likewise.
10283
311dc83a
TT
102842019-01-23 Tom Tromey <tom@tromey.com>
10285 Pedro Alves <palves@redhat.com>
10286
10287 * regcache.c (class regcache_invalidator): Remove.
10288 (regcache::raw_write): Use make_scope_exit.
10289
296bd123
TT
102902019-01-23 Tom Tromey <tom@tromey.com>
10291
10292 * ui-out.h (class ui_out_emit_type): Update comment.
10293
979a0d13
TT
102942019-01-23 Tom Tromey <tom@tromey.com>
10295
10296 * infrun.c (fetch_inferior_event): Update comment.
10297
d238133d
TT
102982019-01-23 Tom Tromey <tom@tromey.com>
10299 Pedro Alves <palves@redhat.com>
10300
10301 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10302 parameter.
10303 (fetch_inferior_event): Use SCOPE_EXIT.
10304
10305
9885e6bb
TT
103062019-01-23 Tom Tromey <tom@tromey.com>
10307 Pedro Alves <palves@redhat.com>
10308
10309 * infrun.c (disable_thread_events): Delete.
10310 (stop_all_threads): Use SCOPE_EXIT.
10311
286526c1
TT
103122019-01-23 Tom Tromey <tom@tromey.com>
10313 Pedro Alves <palves@redhat.com>
10314
10315 * symfile.c: Include forward-scope-exit.h.
10316 (clear_symtab_users_cleanup): Replace forward declaration with
10317 a FORWARD_SCOPE_EXIT.
10318 (syms_from_objfile_1): Use the forward_scope_exit and
10319 gdb::optional instead of cleanup_function.
10320 (reread_symbols): Use the forward_scope_exit instead of
10321 cleanup_function.
10322 (clear_symtab_users_cleanup): Remove function.
10323
1db93f14
TT
103242019-01-23 Tom Tromey <tom@tromey.com>
10325 Pedro Alves <palves@redhat.com>
10326
10327 * linux-nat.c: Include scope-exit.h.
10328 (cleanup_target_stop): Remove.
10329 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10330 SCOPE_EXIT.
10331
2cc83d1e
TT
103322019-01-23 Tom Tromey <tom@tromey.com>
10333 Pedro Alves <palves@redhat.com>
10334
10335 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10336 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10337
694c6bf5
TT
103382019-01-23 Tom Tromey <tom@tromey.com>
10339 Andrew Burgess <andrew.burgess@embecosm.com>
10340 Pedro Alves <palves@redhat.com>
10341
10342 * infrun.c (fetch_inferior_event): Use scope_exit.
10343 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10344 * top.c (execute_command): Use scope_exit.
10345 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10346 * utils.c (do_bpstat_clear_actions_cleanup)
10347 (make_bpstat_clear_actions_cleanup): Remove.
10348
4c41382a
TT
103492019-01-23 Tom Tromey <tom@tromey.com>
10350 Pedro Alves <palves@redhat.com>
10351
10352 * infrun.c: Include "common/scope-exit.h"
10353 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10354 (wait_for_inferior): Use SCOPE_EXIT.
10355 (fetch_inferior_event): Use scope_exit.
10356
89f8fb50
TT
103572019-01-23 Tom Tromey <tom@tromey.com>
10358 Pedro Alves <palves@redhat.com>
10359
10360 * breakpoint.c (create_breakpoint): Remove cleanup.
10361
5419bdae
TT
103622019-01-23 Tom Tromey <tom@tromey.com>
10363 Andrew Burgess <andrew.burgess@embecosm.com>
10364 Pedro Alves <palves@redhat.com>
10365
e587ef42
PA
103662019-01-23 Pedro Alves <palves@redhat.com>
10367
10368 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10369
77f0e74c
PA
103702019-01-23 Pedro Alves <palves@redhat.com>
10371 Andrew Burgess <andrew.burgess@embecosm.com>
10372
10373 * gdbthread.h: Include "common/forward-scope-exit.h".
10374 (scoped_finish_thread_state): Redefine custom class in terms of
10375 forward_scope_exit.
10376
5b9b3e53
PA
103772019-01-23 Pedro Alves <palves@redhat.com>
10378 Andrew Burgess <andrew.burgess@embecosm.com>
10379
10380 * common/forward-scope-exit.h: New file.
10381
54b65c9b
PA
103822019-01-23 Pedro Alves <palves@redhat.com>
10383 Andrew Burgess <andrew.burgess@embecosm.com>
10384 Tom Tromey <tom@tromey.com>
10385
10386 * common/scope-exit.h: New file.
10387
cf08fb29
PA
103882019-01-23 Pedro Alves <palves@redhat.com>
10389
10390 * common/preprocessor.h (ESC): Rename to ...
10391 (ESC_PARENS): ... this.
10392 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10393 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10394
ae73e2e2
TT
103952019-01-23 Tom Tromey <tom@tromey.com>
10396
10397 * language.h (class scoped_switch_to_sym_language_if_auto):
10398 Initialize m_lang in both cases.
10399
6594e122
AH
104002019-01-23 Alan Hayward <alan.hayward@arm.com>
10401
10402 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10403 with XCNEW.
10404
a7c9855d
TT
104052019-01-22 Tom Tromey <tom@tromey.com>
10406
10407 * corelow.c: Do not include sys/file.h.
10408
93cc1d53
TT
104092019-01-22 Tom Tromey <tom@tromey.com>
10410
10411 * tui/tui-wingeneral.h: Include gdb_curses.h.
10412
38561778
TT
104132019-01-22 Tom Tromey <tom@tromey.com>
10414
10415 * source-cache.h (class source_cache) <get_source_lines,
10416 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10417
37b3ab5b
TT
104182019-01-22 Tom Tromey <tom@tromey.com>
10419
10420 * remote-fileio.h (struct remote_target): Declare.
10421
3fabc016
TT
104222019-01-22 Tom Tromey <tom@tromey.com>
10423
10424 * python/py-arch.c: Do not include py-ref.h.
10425 * python/py-bpevent.c: Do not include py-ref.h.
10426 * python/py-cmd.c: Do not include py-ref.h.
10427 * python/py-continueevent.c: Do not include py-ref.h.
10428 * python/py-event.h: Do not include py-ref.h.
10429 * python/py-evtregistry.c: Do not include py-ref.h.
10430 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10431 * python/py-frame.c: Do not include py-ref.h.
10432 * python/py-framefilter.c: Do not include py-ref.h.
10433 * python/py-function.c: Do not include py-ref.h.
10434 * python/py-infevents.c: Do not include py-ref.h.
10435 * python/py-linetable.c: Do not include py-ref.h.
10436 * python/py-objfile.c: Do not include py-ref.h.
10437 * python/py-param.c: Do not include py-ref.h.
10438 * python/py-prettyprint.c: Do not include py-ref.h.
10439 * python/py-progspace.c: Do not include py-ref.h.
10440 * python/py-symbol.c: Do not include py-ref.h.
10441 * python/py-symtab.c: Do not include py-ref.h.
10442 * python/py-type.c: Do not include py-ref.h.
10443 * python/py-unwind.c: Do not include py-ref.h.
10444 * python/py-utils.c: Do not include py-ref.h.
10445 * python/py-value.c: Do not include py-ref.h.
10446 * python/py-varobj.c: Do not include py-ref.h.
10447 * python/py-xmethods.c: Do not include py-ref.h.
10448 * python/python.c: Do not include py-ref.h.
10449 * varobj.c: Do not include py-ref.h.
10450
6b4d7774
TT
104512019-01-22 Tom Tromey <tom@tromey.com>
10452
10453 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10454 keyword for bcache.
10455
7af7e9b5
TT
104562019-01-22 Tom Tromey <tom@tromey.com>
10457
10458 * compile/compile-cplus-types.c: Remove a comment by #include.
10459
951d1049
TT
104602019-01-22 Tom Tromey <tom@tromey.com>
10461
10462 * compile/gcc-c-plugin.h: Include compile-internal.h.
10463
d65d5705
TT
104642019-01-22 Tom Tromey <tom@tromey.com>
10465
10466 * stabsread.c (EXTERN): Do not define.
10467 (symnum, next_symbol_text_func, processing_gcc_compilation)
10468 (within_function, global_sym_chain, global_stabs)
10469 (previous_stab_code, this_object_header_files)
10470 (n_this_object_header_files)
10471 (n_allocated_this_object_header_files): Define.
10472 * stabsread.h (EXTERN): Never define. Use "extern".
10473
b6fb1ee5
PW
104742019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10475
10476 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10477 history_value.
10478
be6d4f74
TT
104792019-01-21 Tom Tromey <tom@tromey.com>
10480
10481 * ui-out.c: Fix includes.
10482 * tui/tui-source.c: Fix includes.
10483 * target.c: Fix includes.
10484 * remote.c: Fix includes.
10485 * regcache.c: Fix includes.
10486 * python/py-block.c: Fix includes.
10487 * printcmd.c: Fix includes.
10488 * or1k-tdep.c: Fix includes.
10489 * mi/mi-main.c: Fix includes.
10490 * m32r-tdep.c: Fix includes.
10491 * csky-tdep.c: Fix includes.
10492 * compile/compile-cplus-types.c: Fix includes.
10493 * cli/cli-interp.c: Fix includes.
10494
73021deb
AH
104952019-01-21 Alan Hayward <alan.hayward@arm.com>
10496
10497 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10498 for padding.
10499
7932255d
TT
105002019-01-16 Tom Tromey <tom@tromey.com>
10501
10502 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10503 earlier.
10504 (struct objfile) <msymbols_range>: Move from top level.
10505 <msymbols>: New method.
10506 (class objfile_msymbols): Remove.
10507 * symtab.c (default_collect_symbol_completion_matches_break_on):
10508 Update.
10509 * symmisc.c (dump_msymbols): Update.
10510 * stabsread.c (scan_file_globals): Update.
10511 * objc-lang.c (info_selectors_command, info_classes_command)
10512 (find_methods): Update.
10513 * minsyms.c (find_solib_trampoline_target): Update.
10514 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10515 * coffread.c (coff_symfile_read): Update.
10516 * ada-lang.c (ada_lookup_simple_minsym)
10517 (ada_collect_symbol_completion_matches): Update.
10518
604b1bfb
TT
105192019-01-16 Tom Tromey <tom@tromey.com>
10520
10521 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10522 type. Remove no-argument constructor.
10523 <iterator::operator++>: Simplify.
10524 <begin>: Update.
10525 <end>: Use minimal_symbol_count.
10526
f252c6d5
TT
105272019-01-16 Tom Tromey <tom@tromey.com>
10528
10529 * objfiles.h (struct objfile) <psymtabs>: New method.
10530 (class objfile_psymtabs): Remove.
10531 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10532 typedef.
10533 <range>: New method.
10534 (require_partial_symbols): Change return type.
10535 * psymtab.c (require_partial_symbols)
10536 (psym_expand_symtabs_matching): Update.
10537 * mdebugread.c (parse_partial_symbols): Update.
10538 * dbxread.c (dbx_end_psymtab): Update.
10539
b669c953
TT
105402019-01-15 Tom Tromey <tom@tromey.com>
10541
10542 * symtab.c (lookup_objfile_from_block)
10543 (lookup_symbol_in_objfile_symtabs)
10544 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10545 (find_line_symtab, info_sources_command)
10546 (default_collect_symbol_completion_matches_break_on)
10547 (make_source_files_completion_list): Update.
10548 * symmisc.c (print_objfile_statistics, dump_objfile)
10549 (maintenance_print_symbols, maintenance_info_symtabs)
10550 (maintenance_check_symtabs, maintenance_info_line_tables):
10551 Update.
10552 * source.c (select_source_symtab)
10553 (forget_cached_source_info_for_objfile): Update.
10554 * objfiles.h (class objfile_compunits): Remove.
10555 (struct objfile) <compunits_range>: New typedef.
10556 (compunits): New method.
10557 * objfiles.c (objfile_relocate1): Update.
10558 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10559 * maint.c (count_symtabs_and_blocks): Update.
10560 * linespec.c (iterate_over_all_matching_symtabs): Update.
10561 * cp-support.c (add_symbol_overload_list_qualified): Update.
10562 * coffread.c (coff_symtab_read): Update.
10563 * ada-lang.c (add_nonlocal_symbols)
10564 (ada_collect_symbol_completion_matches)
10565 (ada_add_global_exceptions): Update.
10566
7e955d83
TT
105672019-01-15 Tom Tromey <tom@tromey.com>
10568
10569 * progspace.h (program_space) <objfiles_safe_range>: New
10570 typedef.
10571 <objfiles_safe>: New method.
10572 * objfiles.h (class all_objfiles_safe): Remove.
10573 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10574 * jit.c (jit_inferior_exit_hook): Update.
10575
2030c079
TT
105762019-01-17 Tom Tromey <tom@tromey.com>
10577
10578 * progspace.h (program_space) <objfiles_range>: New typedef.
10579 <objfiles>: New method.
10580 <objfiles_head>: Rename from objfiles.
10581 (object_files): Update.
10582 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10583 * guile/scm-pretty-print.c
10584 (ppscm_find_pretty_printer_from_objfiles): Update.
10585 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10586 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10587 Update.
10588 * python/py-progspace.c (pspy_get_objfiles): Update.
10589 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10590 Update.
10591 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10592 (objfpy_lookup_objfile_by_build_id): Update.
10593 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10594 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10595 Update.
10596 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10597 (expand_symtab_containing_pc, lookup_objfile_from_block)
10598 (lookup_static_symbol, basic_lookup_transparent_type)
10599 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10600 (find_line_symtab, info_sources_command)
10601 (default_collect_symbol_completion_matches_break_on)
10602 (make_source_files_completion_list, find_main_name): Update.
10603 * symmisc.c (print_symbol_bcache_statistics)
10604 (print_objfile_statistics, maintenance_print_symbols)
10605 (maintenance_print_msymbols, maintenance_print_objfiles)
10606 (maintenance_info_symtabs, maintenance_check_symtabs)
10607 (maintenance_expand_symtabs, maintenance_info_line_tables):
10608 Update.
10609 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10610 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10611 (map_overlay_command, unmap_overlay_command)
10612 (simple_overlay_update, expand_symtabs_matching)
10613 (map_symbol_filenames): Update.
10614 * symfile-debug.c (set_debug_symfile): Update.
10615 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10616 Update.
10617 * source.c (select_source_symtab, forget_cached_source_info):
10618 Update.
10619 * solib.c (solib_read_symbols): Update.
10620 * solib-spu.c (append_ocl_sos): Update.
10621 * psymtab.c (maintenance_print_psymbols)
10622 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10623 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10624 * printcmd.c (info_symbol_command): Update.
10625 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10626 Update.
10627 * objfiles.h (class all_objfiles): Remove.
10628 * objfiles.c (have_partial_symbols, have_full_symbols)
10629 (have_minimal_symbols, qsort_cmp, update_section_map)
10630 (shared_objfile_contains_address_p)
10631 (default_iterate_over_objfiles_in_search_order): Update.
10632 * objc-lang.c (info_selectors_command, info_classes_command)
10633 (find_methods): Update.
10634 * minsyms.c (find_solib_trampoline_target): Update.
10635 * maint.c (maintenance_info_sections)
10636 (maintenance_translate_address, count_symtabs_and_blocks):
10637 Update.
10638 * main.c (captured_main_1): Update.
10639 * linux-thread-db.c (try_thread_db_load_from_pdir)
10640 (has_libpthread): Update.
10641 * linespec.c (iterate_over_all_matching_symtabs)
10642 (search_minsyms_for_name): Update.
10643 * jit.c (jit_find_objf_with_entry_addr): Update.
10644 * hppa-tdep.c (find_unwind_entry)
10645 (hppa_lookup_stub_minimal_symbol): Update.
10646 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10647 Update.
10648 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10649 (elf_gnu_ifunc_resolve_by_got): Update.
10650 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10651 * dwarf-index-write.c (save_gdb_index_command): Update.
10652 * cp-support.c (add_symbol_overload_list_qualified): Update.
10653 * breakpoint.c (create_overlay_event_breakpoint)
10654 (create_longjmp_master_breakpoint)
10655 (create_std_terminate_master_breakpoint)
10656 (create_exception_master_breakpoint): Update.
10657 * blockframe.c (find_pc_partial_function): Update.
10658 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10659 (ada_collect_symbol_completion_matches)
10660 (ada_add_global_exceptions): Update.
10661
776489e0
TT
106622019-01-17 Tom Tromey <tom@tromey.com>
10663
10664 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10665 declare VEC.
10666 (solib_target_parse_libraries): Change return type.
10667 (library_list_start_segment, library_list_start_section)
10668 (library_list_end_library, library_list_start_library); Update.
10669 (solib_target_free_library_list): Remove.
10670 (solib_target_parse_libraries): Remove cleanup. Change return
10671 type.
10672 (solib_target_current_sos): Update.
10673
6471e7d2
TT
106742019-01-17 Tom Tromey <tromey@bapiya>
10675
10676 * valprint.c: Replace "the the" with "the".
10677 * symtab.c: Replace "the the" with "the".
10678 * solib.c: Replace "the the" with "the".
10679 * solib-dsbt.c: Replace "the the" with "the".
10680 * linespec.c: Replace "the the" with "the".
10681 * dwarf2loc.h: Replace "the the" with "the".
10682 * amd64-windows-tdep.c: Replace "the the" with "the".
10683 * aarch64-tdep.c: Replace "the the" with "the".
10684
c24bdb02
KS
106852019-01-16 Keith Seitz <keiths@redhat.com>
10686
10687 PR gdb/23773
10688 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10689 <builder>: Rename to ..
10690 <m_builder>: ... this and make private.
10691 (dwarf2_cu::get_builder): New method. Change all users of
10692 `builder' to use this method.
10693 (dwarf2_start_symtab): Move to ...
10694 (dwarf2_cu::start_symtab): ... here. Update all callers
10695 (setup_type_unit_groups): Move to ...
10696 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10697 callers.
10698 (dwarf2_cu::reset_builder): New method.
10699 (process_full_compunit, process_full_type_unit): Use
10700 dwarf2_cu::reset_builder.
10701 (follow_die_offset): Record the ancestor CU if it is different
10702 from the followed DIE's CU.
10703 (follow_die_sig_1): Likewise.
10704
8d64371b
TT
107052019-01-15 Tom Tromey <tom@tromey.com>
10706
10707 * remote.c (class remote_state) <buf>: Now a char_vector.
10708 <buf_size>: Remove.
10709 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10710 parameter.
10711 (remote_target::getpkt_or_notif_sane_1)
10712 (remote_target::getpkt_sane)
10713 (remote_target::getpkt_or_notif_sane): Likewise.
10714 (class remote_target) <putpkt>: New overload.
10715 (remote_target::read_frame): Change type of "buf_p". Remove
10716 sizeof_p parameter.
10717 (packet_ok): New overload.
10718 (packet_check_result): New overload.
10719 Update all uses.
10720
bb277751
TT
107212019-01-14 Tom Tromey <tom@tromey.com>
10722
10723 * remote-notif.c (handle_notification, remote_notif_ack)
10724 (remote_notif_parse): Make "buf" const.
10725 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10726 const.
10727 (remote_notif_parse, remote_notif_ack, handle_notification):
10728 Likewise.
10729 * remote.c (remote_notif_stop_parse): Make "buf" const.
10730 (remote_target::remote_parse_stop_reply): Make "buf" const.
10731 (remote_notif_stop_ack): Make "buf" const.
10732
05be00a8
TT
107332019-01-14 Tom Tromey <tom@tromey.com>
10734
10735 * remote.c (remote_console_output): Make parameter const.
10736
491adeca
TT
107372019-01-14 Tom Tromey <tom@tromey.com>
10738
10739 * target-debug.h (target_debug_print_signals): Constify.
10740 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10741 * procfs.c (procfs_target::pass_signals): Update.
10742 * linux-nat.c (linux_nat_target::pass_signals): Update.
10743 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10744 * target-delegates.c: Rebuild.
10745 * remote.c (remote_target::program_signals): Update.
10746 (remote_target::pass_signals): Update.
10747 * target.c (target_pass_signals): Constify argument.
10748 (target_program_signals): Likewise.
10749 * target.h (struct target_ops) <pass_signals, program_signals>:
10750 Constify argument.
10751 (target_pass_signals, target_program_signals): Constify argument.
10752
bbd94648
TT
107532019-01-14 Tom Tromey <tom@tromey.com>
10754
10755 PR tui/28819:
10756 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10757
6f072a10
PFC
107582019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10759
10760 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10761 field.
10762 * rs6000-tdep.c: Include reggroups.h.
10763 (IS_V_ALIAS_PSEUDOREG): Define.
10764 (rs6000_register_name): Return names for the "vX" aliases.
10765 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10766 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10767 aliases. Call default_register_reggroup_p for all other
10768 pseudo-registers.
10769 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10770 New functions.
10771 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10772 Handle "vX" aliases.
10773 (v_alias_pseudo_register_collect): New function.
10774 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10775 (rs6000_gdbarch_init): Initialize "vX" aliases as
10776 pseudo-registers. Restore registration of
10777 rs6000_pseudo_register_reggroup_p with
10778 set_tdesc_pseudo_register_reggroup_p.
10779
1a782351
MF
107802019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10781
10782 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10783 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10784 set_gdbarch_num_pseudo_regs.
10785
d73cff18
PW
107862019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10787
10788 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10789 Remove arg prefixname, add do_set and do_show.
10790 Add member functions set_list and show_list.
10791 * cli/cli-style.c (class cli_style_option): Update accordingly.
10792 (style_set_list): Move to file scope.
10793 (style_show_list): Likewise.
10794 (set_style): Call help_list.
10795 (show_style): Call cmd_show_list.
10796 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10797 Update to use the new macro.
10798
60a90376
JB
107992019-10-12 Joel Brobecker <brobecker@adacore.com>
10800
10801 * ada-lang.c (_initialize_ada_language): Expand the help text
10802 for the "catch exception" command.
10803
9d7c67bf
PW
108042019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10805
10806 * symtab.c (matching_obj_sections): Initialize obj,
10807 declare it closer to its usage.
10808
7cf47dc4
TT
108092019-01-10 Tom Tromey <tom@tromey.com>
10810
10811 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10812 (basic_inf_threads_range): Remove.
10813 (inf_threads_range, inf_non_exited_threads_range)
10814 (safe_inf_threads_range): Use next_adapter.
10815
d3cb6808
KS
108162019-01-10 Keith Seitz <keiths@redhat.com>
10817
10818 PR gdb/23712
10819 PR symtab/23010
10820 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10821 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10822
63a20375
KS
108232019-01-10 Keith Seitz <keiths@redhat.com>
10824
10825 PR gdb/23712
10826 PR symtab/23010
10827 * dictionary.c (pending_to_vector): Remove.
10828 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10829 Remove _1 suffix, replacing functions of the same name. Update
10830 all callers.
10831 (dict_create_hashed, dict_create_hashed_expandable)
10832 (dict_create_linear, dict_create_linear_expandable, dict_free)
10833 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10834 Make functions static.
10835
b026f593
KS
108362019-01-10 Keith Seitz <keiths@redhat.com>
10837
10838 PR gdb/23712
10839 PR symtab/23010
10840 * dictionary.h (struct dictionary): Replace declaration with
10841 multidictionary.
10842 (dict_create_hashed, dict_create_hashed_expandable)
10843 (dict_create_linear, dict_create_linear_expandable)
10844 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10845 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10846 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10847 taking multidictionary argument.
10848 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10849 * block.h (struct block) <dict>: Change to multidictionary
10850 and rename `multidict'.
10851 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10852 symmisc.c: Update all dictionary references to multidictionary.
10853
c7748ee9
KS
108542019-01-10 Keith Seitz <keiths@redhat.com>
10855
10856 PR gdb/23712
10857 PR symtab/23010
10858 * dictionary.c: Include unordered_map.
10859 (pending_to_vector): New function.
10860 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10861 Rewrite the non-"_1" functions to take vector instead
10862 of linked list.
10863 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10864 "new" _1 versions of the same name.
10865 (multidictionary): Define.
10866 (std::hash<enum language): New definition.
10867 (collate_pending_symbols_by_language, mdict_create_hashed)
10868 (mdict_create_hashed_expandable, mdict_create_linear)
10869 (mdict_create_linear_expandable, mdict_free)
10870 (find_language_dictionary, create_new_language_dictionary)
10871 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10872 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10873 (mdict_size, mdict_empty): New functions.
10874 * dictionary.h (mdict_iterator): Define.
10875
67aa1f3c
PA
108762019-01-10 Pedro Alves <palves@redhat.com>
10877
10878 * breakpoint.c (read_uploaded_action)
10879 (create_tracepoint_from_upload): Adjust to use
10880 gdb::unique_xmalloc_ptr.
10881 * ctf.c (ctf_write_uploaded_tp):
10882 (SET_ARRAY_FIELD): Use emplace_back.
10883 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10884 * tracefile-tfile.c (tfile_write_uploaded_tp):
10885 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10886 gdb::unique_xmalloc_ptr.
10887 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10888 at_string, cond_string, cmd_strings>: Replace char pointers
10889 with gdb::unique_xmalloc_ptr.
10890
2f667667
PA
108912019-01-10 Pedro Alves <palves@redhat.com>
10892
10893 * solib-target.c (library_list_start_library): Don't xstrdup name.
10894
36cb7237
PA
108952019-01-10 Pedro Alves <palves@redhat.com>
10896
10897 * mdebugread.c (parse_partial_symbols): Use
10898 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10899
da584958
AB
109002019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10901
10902 * linux-fork.c (scoped_switch_fork_info)
10903 <~scoped_switch_fork_info>: Fix incorrect variable name.
10904
1ef8573c
AB
109052019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10906
10907 * linux-fork.c (scoped_switch_fork_info)
10908 <scoped_switch_fork_info>: Make explicit.
10909 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10910
8d7bcccb
TT
109112019-01-10 Tom Tromey <tom@tromey.com>
10912
10913 * objfiles.h (objfile::reset_psymtabs): Update.
10914 * objfiles.c (objfile::objfile): Update.
10915 * psymtab.h (psymtab_storage::obstack): Update.
10916 (psymtab_storage::m_obstack): Use gdb::optional.
10917 (class psymtab_storage): Update comment. Remove objfile
10918 parameter.
10919 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10920
b596a3c7
TT
109212019-01-10 Tom Tromey <tom@tromey.com>
10922
10923 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10924 <free_psymtabs>: Now private.
10925 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10926 (allocate_psymtab): Use new method.
10927
a9342b62
TT
109282019-01-10 Tom Tromey <tom@tromey.com>
10929
10930 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10931 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10932 * mdebugread.c (parse_partial_symbols): Use
10933 allocate_dependencies.
10934 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10935 allocate_dependencies.
10936 (process_psymtab_comp_unit_reader)
10937 (build_type_psymtab_dependencies): Likewise.
10938 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10939
5af70966
TT
109402019-01-10 Tom Tromey <tom@tromey.com>
10941
10942 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10943 PSYMBOL_SET_LANGUAGE.
10944 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10945
5923a04c
TT
109462019-01-10 Tom Tromey <tom@tromey.com>
10947
10948 * psymtab.h (psymtab_storage::obstack): New method.
10949 <m_obstack>: Rename from obstack; now private.
10950 * psymtab.c (psymtab_storage): Update.
10951 * dwarf2read.c (create_addrmap_from_index)
10952 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10953 Update.
10954
6d6a12bf
TT
109552019-01-10 Tom Tromey <tom@tromey.com>
10956
10957 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10958 * objfiles.h (objfile::reset_psymtabs): New method.
10959
d320c2b5
TT
109602019-01-10 Tom Tromey <tom@tromey.com>
10961
10962 * symmisc.c (print_symbol_bcache_statistics): Update.
10963 (print_objfile_statistics): Update.
10964 * symfile.c (reread_symbols): Update.
10965 * psymtab.h (class psymtab_storage): New.
10966 * psymtab.c (psymtab_storage): New constructor.
10967 (~psymtab_storage): New destructor.
10968 (require_partial_symbols): Update.
10969 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10970 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10971 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10972 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10973 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10974 (start_psymtab_common, end_psymtab_common)
10975 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10976 (allocate_psymtab): Update.
10977 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10978 Update.
10979 (dump_psymtab_addrmap, maintenance_print_psymbols)
10980 (maintenance_check_psymtabs): Update.
10981 (class objfile_psymtabs): Move to objfiles.h.
10982 * psympriv.h (discard_psymtab): Now inline.
10983 (psymtab_discarder::psymtab_discarder): Update.
10984 (psymtab_discarder::~psymtab_discarder): Update.
10985 (ALL_OBJFILE_PSYMTABS): Rewrite.
10986 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10987 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10988 Remove fields.
10989 <partial_symtabs>: New field.
10990 (class objfile_psymtabs): Move from psymtab.h. Update.
10991 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10992 psymbol_cache.
10993 (objfile::~objfile): Don't destroy psymbol_cache.
10994 * mdebugread.c (parse_partial_symbols): Update.
10995 * dwarf2read.c (create_addrmap_from_index)
10996 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10997 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10998 (add_partial_subprogram, dwarf2_ranges_read): Update.
10999 * dwarf-index-write.c (write_address_map)
11000 (write_one_signatured_type, recursively_write_psymbols)
11001 (class debug_names, class debug_names, write_psymtabs_to_index):
11002 Update.
11003
1d94a5a3
TT
110042019-01-10 Tom Tromey <tom@tromey.com>
11005
11006 * symtab.h (SYMBOL_SET_NAMES): Update.
11007 (symbol_set_names): Update.
11008 (MSYMBOL_SET_NAMES): Update.
11009 * symtab.c (symbol_set_names): Change argument to be an
11010 objfile_per_bfd_storage.
11011 * psymtab.c (add_psymbol_to_bcache): Update.
11012 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11013
0f14768a
TT
110142019-01-10 Tom Tromey <tom@tromey.com>
11015
11016 * symtab.c (create_demangled_names_hash): Change argument to be an
11017 objfile_per_bfd_storage.
11018 (symbol_set_names): Update.
11019
6eee24ce
TT
110202019-01-10 Tom Tromey <tom@tromey.com>
11021
11022 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11023 init_psymbol_list.
11024 * psymtab.c (init_psymbol_list): Do nothing if already called.
11025 * psympriv.h (init_psymbol_list): Add comment.
11026 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11027 init_psymbol_list.
11028 * dbxread.c (dbx_symfile_read): Unconditionally call
11029 init_psymbol_list.
11030
75aedd27
TT
110312019-01-10 Tom Tromey <tom@tromey.com>
11032
11033 * xcoffread.c (scan_xcoff_symtab): Update.
11034 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11035 "where".
11036 * mdebugread.c (parse_partial_symbols)
11037 (handle_psymbol_enumerators): Update.
11038 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11039 * dbxread.c (read_dbx_symtab): Update.
11040 * psympriv.h (psymbol_placement): New enum.
11041 (add_psymbol_to_list): Update.
11042
939652a5
TT
110432019-01-10 Tom Tromey <tom@tromey.com>
11044
11045 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11046 static_psymbols parameters.
11047 (scan_xcoff_symtab): Update.
11048 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11049 static_psymbols parameters.
11050 * psympriv.h (start_psymtab_common): Update.
11051 * mdebugread.c (parse_partial_symbols): Update.
11052 * dwarf2read.c (create_partial_symtab): Update.
11053 * dbxread.c (read_dbx_symtab): Update.
11054 (start_psymtab): Remove global_psymbols and static_psymbols
11055 parameters.
11056
baa62830
TT
110572019-01-10 Tom Tromey <tom@tromey.com>
11058
11059 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11060 * psymtab.c (allocate_psymtab): Add comment.
11061 * psympriv.h (allocate_psymtab): Add comment.
11062 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11063 initializations.
11064 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11065
0e8f53ba
TT
110662019-01-10 Tom Tromey <tom@tromey.com>
11067
11068 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11069 Don't declare.
11070 * mipsread.c: Include mdebugread.h.
11071 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11072 Declare.
11073 * elfread.c: Include mdebugread.h.
11074
b22a7c6a
TT
110752019-01-09 Tom Tromey <tom@tromey.com>
11076
11077 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11078 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11079 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11080 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11081 (psym_lookup_symbol, psym_find_last_source_symtab)
11082 (psym_forget_cached_source_info, psym_print_stats)
11083 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11084 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11085 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11086 (psym_find_compunit_symtab_by_address)
11087 (maintenance_print_psymbols, maintenance_info_psymtabs)
11088 (maintenance_check_psymtabs): Use ranged for.
11089 * psymtab.h (class objfile_psymtabs): New.
11090 (require_partial_symbols): Return objfile_psymtabs.
11091 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11092
3b9d3ac2
TT
110932019-01-09 Tom Tromey <tom@tromey.com>
11094
11095 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11096 (find_pc_mapped_section, list_overlays_command)
11097 (map_overlay_command, unmap_overlay_command)
11098 (simple_overlay_update): Use all_objfiles.
11099 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11100 * printcmd.c (info_symbol_command): Use all_objfiles.
11101 * objfiles.h (ALL_OBJSECTIONS): Remove.
11102 * maint.c (maintenance_translate_address): Use all_objfiles.
11103 * gcore.c (gcore_create_callback): Use all_objfiles.
11104 (objfile_find_memory_regions): Likewise.
11105
8b31193a
TT
111062019-01-09 Tom Tromey <tom@tromey.com>
11107
11108 * symtab.c (find_line_symtab, info_sources_command)
11109 (make_source_files_completion_list): Use objfile_compunits.
11110 * source.c (select_source_symtab): Use objfile_compunits.
11111 * objfiles.h (struct objfile): Update comment.
11112 (ALL_OBJFILES): Remove.
11113 (ALL_FILETABS): Remove.
11114 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11115 objfile_compunits.
11116
d5da8b3c
TT
111172019-01-09 Tom Tromey <tom@tromey.com>
11118
11119 * symmisc.c (print_objfile_statistics, dump_objfile)
11120 (maintenance_print_symbols): Use compunit_filetabs.
11121 * source.c (forget_cached_source_info_for_objfile): Use
11122 compunit_filetabs.
11123 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11124 (ALL_FILETABS): Use compunit_filetabs.
11125 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11126 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11127
5accd1a0
TT
111282019-01-09 Tom Tromey <tom@tromey.com>
11129
11130 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11131 (compunit_filetabs): New.
11132 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11133 compunit_filetabs.
11134 (info_sources_command, make_source_files_completion_list): Remove
11135 declaration.
11136 * symmisc.c (print_objfile_statistics, dump_objfile)
11137 (maintenance_print_symbols): Remove declaration.
11138 (maintenance_info_symtabs): Use compunit_filetabs.
11139 (maintenance_info_line_tables): Likewise.
11140 * source.c (select_source_symtab): Change local variable name.
11141 (forget_cached_source_info_for_objfile): Remove declaration.
11142 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11143 * objfiles.c (objfile_relocate1): Remove declaration.
11144 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11145 declaration.
11146 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11147 * coffread.c (coff_symtab_read): Remove declaration.
11148 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11149 compunit_filetabs.
11150
d8aeb77f
TT
111512019-01-09 Tom Tromey <tom@tromey.com>
11152
11153 * symtab.c (lookup_objfile_from_block)
11154 (find_pc_sect_compunit_symtab, search_symbols)
11155 (default_collect_symbol_completion_matches_break_on): Use
11156 objfile_compunits.
11157 * objfiles.h (ALL_COMPUNITS): Remove.
11158 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11159 * cp-support.c (add_symbol_overload_list_qualified): Use
11160 objfile_compunits.
11161 * ada-lang.c (ada_collect_symbol_completion_matches)
11162 (ada_add_global_exceptions): Use objfile_compunits.
11163
592553c4
TT
111642019-01-09 Tom Tromey <tom@tromey.com>
11165
11166 * source.c (select_source_symtab)
11167 (forget_cached_source_info_for_objfile): Remove declaration.
11168 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11169 declaration.
11170 * maint.c (count_symtabs_and_blocks): Remove declaration.
11171 * cp-support.c (add_symbol_overload_list_qualified): Remove
11172 declaration.
11173 * coffread.c (coff_symtab_read): Remove declaration.
11174 * symtab.c (lookup_symbol_in_objfile_symtabs)
11175 (basic_lookup_transparent_type_1): Use objfile_compunits.
11176 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11177 (info_sources_command, search_symbols)
11178 (default_collect_symbol_completion_matches_break_on)
11179 (make_source_files_completion_list): Remove declaration.
11180 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11181 (ada_collect_symbol_completion_matches)
11182 (ada_add_global_exceptions): Remove declaration.
11183 * linespec.c (iterate_over_all_matching_symtabs): Use
11184 objfile_compunits.
11185 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11186 (class objfile_compunits): New.
11187 (ALL_COMPUNITS): Use objfile_compunits.
11188 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11189 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11190 objfile_compunits.
11191 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11192
5325b9bf
TT
111932019-01-09 Tom Tromey <tom@tromey.com>
11194
11195 * symtab.c (search_symbols)
11196 (default_collect_symbol_completion_matches_break_on): Use
11197 objfile_msymbols.
11198 * ada-lang.c (ada_lookup_simple_minsym)
11199 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11200 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11201 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11202 objfile_msymbols.
11203 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11204 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11205 * objc-lang.c (find_methods): Use objfile_msymbols.
11206 (info_selectors_command, info_classes_command): Likewise.
11207 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11208 * objfiles.h (class objfile_msymbols): New.
11209 (ALL_OBJFILE_MSYMBOLS): Remove.
11210 (ALL_MSYMBOLS): Remove.
11211
cac85af2
TT
112122019-01-09 Tom Tromey <tom@tromey.com>
11213
11214 * common/next-iterator.h (next_adapter): Add Iterator template
11215 parameter.
11216 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11217 (class all_objfiles_safe): New.
11218 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11219 * objfiles.c (put_objfile_before): Update comment.
11220 (add_separate_debug_objfile): Likewise.
11221 (free_all_objfiles): Use all_objfiles_safe.
11222 (objfile_purge_solibs): Likewise.
11223
aed57c53
TT
112242019-01-09 Tom Tromey <tom@tromey.com>
11225
11226 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11227 (expand_symtab_containing_pc, lookup_static_symbol)
11228 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11229 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11230 all_objfiles.
11231 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11232 * breakpoint.c (create_overlay_event_breakpoint)
11233 (create_longjmp_master_breakpoint)
11234 (create_std_terminate_master_breakpoint)
11235 (create_exception_master_breakpoint): Use all_objfiles.
11236 * linux-thread-db.c (try_thread_db_load_from_pdir)
11237 (has_libpthread): Use all_objfiles.
11238 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11239 * linespec.c (iterate_over_all_matching_symtabs)
11240 (search_minsyms_for_name): Use all_objfiles.
11241 * maint.c (maintenance_info_sections): Use all_objfiles.
11242 * main.c (captured_main_1): Use all_objfiles.
11243 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11244 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11245 * guile/scm-pretty-print.c
11246 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11247 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11248 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11249 (maintenance_print_msymbols): Use all_objfiles.
11250 * source.c (select_source_symtab): Use all_objfiles.
11251 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11252 * symfile.c (remove_symbol_file_command)
11253 (expand_symtabs_matching, map_symbol_filenames): Use
11254 all_objfiles.
11255 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11256 all_objfiles.
11257 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11258 * objc-lang.c (find_methods): Use all_objfiles.
11259 * objfiles.c (have_partial_symbols, have_full_symbols)
11260 (have_minimal_symbols, qsort_cmp)
11261 (default_iterate_over_objfiles_in_search_order): Use
11262 all_objfiles.
11263 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11264 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11265 (maintenance_check_psymtabs): Use all_objfiles.
11266 (ALL_PSYMTABS): Remove.
11267 * compile/compile-object-run.c (do_module_cleanup): Use
11268 all_objfiles.
11269 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11270 * cp-support.c (add_symbol_overload_list_qualified): Use
11271 all_objfiles.
11272 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11273 Use all_objfiles.
11274 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11275 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11276 all_objfiles.
11277 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11278 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11279 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11280 Uses all_objfiles.
11281 * solib.c (solib_read_symbols): Use all_objfiles
11282
99d89cde
TT
112832019-01-09 Tom Tromey <tom@tromey.com>
11284
11285 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11286 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11287 all_objfiles.
11288 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11289 * symmisc.c (print_symbol_bcache_statistics)
11290 (print_objfile_statistics, maintenance_print_objfiles)
11291 (maintenance_info_symtabs, maintenance_check_symtabs)
11292 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11293 all_objfiles.
11294 * source.c (forget_cached_source_info): Use all_objfiles.
11295 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11296 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11297 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11298 * objfiles.c (update_section_map): Use all_objfiles.
11299 (shared_objfile_contains_address_p): Likewise.
11300 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11301 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11302
21708325
TT
113032019-01-09 Tom Tromey <tom@tromey.com>
11304
11305 * common/next-iterator.h: New file.
11306 * objfiles.h (class all_objfiles): New.
11307 (struct objfile_iterator): New.
11308
669e09f6
PW
113092019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11310
11311 * NEWS: Move the description of the changed "frame", "select-frame",
11312 and "info frame" commands to the Changed commands section.
11313
041be526
SM
113142019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11315
11316 * gdbtypes.c (check_stub_method_group): Remove handling of old
11317 mangling schemes.
11318 * linespec.c (find_methods): Likewise.
11319 * stabsread.c (read_member_functions): Likewise.
11320 * valops.c (search_struct_method): Likewise.
11321 (value_struct_elt_for_reference): Likewise.
11322 * NEWS: Mention this change.
11323
0e2a2133
AB
113242019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11325
11326 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11327 print_source_lines.
11328 * source.c (print_source_lines_base): Update line number check.
11329 (print_source_lines): New function.
11330 (source_lines_range::source_lines_range): New function.
11331 * source.h (class source_lines_range): New class.
11332 (print_source_lines): New declaration.
11333
1055a3b4
PW
113342019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11335
11336 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11337
cfeadda5
TT
113382019-01-08 Tom Tromey <tom@tromey.com>
11339 Simon Marchi <simon.marchi@ericsson.com>
11340
11341 PR gdb/24060
11342 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11343 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11344 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11345 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11346 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11347 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11348
583068ca
AB
113492019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11350
11351 * source.c (select_source_symtab): Move header comment to
11352 declaration in source.h.
11353 (forget_cached_source_info_for_objfile): Likewise.
11354 (forget_cached_source_info): Likewise.
11355 (identify_source_line): Likewise.
11356 * source.h (identify_source_line): Move declaration from symtab.h
11357 and add comment from source.c
11358 (print_source_lines): Likewise.
11359 (forget_cached_source_info_for_objfile): Likewise.
11360 (forget_cached_source_info): Likewise.
11361 (select_source_symtab): Likewise.
11362 (enum print_source_lines_flag): Move definition from symtab.h.
11363 * symtab.h (identify_source_line): Move declaration to source.h.
11364 (print_source_lines): Likewise.
11365 (forget_cached_source_info_for_objfile): Likewise.
11366 (forget_cached_source_info): Likewise.
11367 (select_source_symtab): Likewise.
11368 (enum print_source_lines_flag): Move definition to source.h.
11369 * tui/tui-hooks.c: Add 'source.h' include.
11370
ec98a4ad
AB
113712019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11372
11373 * source.c (print_source_lines_base): Handle requests to print
11374 reverse line number sequences, and guard against empty lines
11375 string.
11376
62ea19c1
AB
113772019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11378
11379 * source.c (print_source_lines_base): Fix skip of '\r' if next
11380 character is '\n'.
11381
9d30e1fd
TT
113822019-01-06 Tom Tromey <tom@tromey.com>
11383
11384 * c-exp.y (struct c_parse_state) <macro_original_text,
11385 expansion_obstack>: New member.
11386 (macro_original_text, expansion_obstack): Remove globals.
11387 (scan_macro_expansion, scanning_macro_expansion)
11388 (finished_macro_expansion): Update.
11389 (scan_macro_cleanup): Remove.
11390 (yylex, c_parse): Update.
11391
c65bac38
TT
113922019-01-06 Tom Tromey <tom@tromey.com>
11393
11394 * c-exp.y (struct c_parse_state) <strings>: New member.
11395 (operator_stoken): Update.
11396
02e12e38
TT
113972019-01-06 Tom Tromey <tom@tromey.com>
11398
11399 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11400 (union type_stack_elt) <typelist_val>: Now a pointer to
11401 std::vector.
11402 (type_stack_cleanup): Don't declare.
11403 (push_typelist): Update.
11404 * parse.c (pop_typelist): Return a std::vector.
11405 (push_typelist): Take a std::vector.
11406 (follow_types): Update. Do not free args.
11407 (type_stack_cleanup): Remove.
11408 * c-exp.y (struct c_parse_state): New.
11409 (cpstate): New global.
11410 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11411 (nonempty_typelist): Update.
11412 (func_mod): Create a new vector.
11413 (c_parse): Create a c_parse_state.
11414 (check_parameter_typelist): Do not delete params.
11415 (function_method): Update. Do not delete type_list.
11416
f097f5ad
TT
114172019-01-06 Tom Tromey <tom@tromey.com>
11418
11419 PR gdb/28155:
11420 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11421 check_typedef.
11422 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11423 (print_return_value): Likewise.
11424
d2adf9f1
TT
114252019-01-05 Tom Tromey <tom@tromey.com>
11426
11427 * contrib/cleanup_check.py: Remove.
11428 * contrib/gcc-with-excheck: Remove.
11429 * contrib/exsummary.py: Remove.
11430 * contrib/excheck.py: Remove.
11431
2eab46b1
JB
114322019-01-05 Joel Brobecker <brobecker@adacore.com>
11433
11434 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11435 NULL. Initialize tpprev to NULL instead of assigning it
11436 to NULL on the next statement.
11437 * windows-nat.c (windows_delete_thread): Remove check for
11438 main_thread_id before printing thread exit notifications.
11439 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11440 Remove thread ID check against main_thread_id.
11441 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11442 windows_delete_thread.
11443 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11444
48c5e7e2
TT
114452019-01-04 Tom Tromey <tom@tromey.com>
11446
11447 * compile/compile.c (_initialize_compile): Use upper case for
11448 metasyntactic variables.
11449 * symmisc.c (_initialize_symmisc): Use upper case for
11450 metasyntactic variables.
11451 * psymtab.c (_initialize_psymtab): Use upper case for
11452 metasyntactic variables.
11453 * demangle.c (demangle_command): Use upper case for metasyntactic
11454 variables.
11455 (_initialize_demangler): Likewise.
11456 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11457 variables.
11458
986041cd
TT
114592019-01-03 Tom Tromey <tom@tromey.com>
11460
11461 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11462
7c711119
TT
114632019-01-03 Tom Tromey <tom@tromey.com>
11464
11465 * python/py-symtab.c (salpy_str): Update.
11466 (struct salpy_sal_object) <symtab>: Now a PyObject.
11467 (salpy_dealloc): Update.
11468 (del_objfile_sal): Use gdbpy_ref.
11469
1b20edf0
TT
114702019-01-03 Tom Tromey <tom@tromey.com>
11471
11472 * python/py-type.c (convert_field): Use new_reference. Return
11473 gdbpy_ref.
11474 (make_fielditem): Return gdbpy_ref.
11475 (typy_fields): Update.
11476 (typy_getitem): Update.
11477 (field_name): Return gdbpy_ref. Use new_reference.
11478 (typy_iterator_iternext): Update.
11479
ea41325b
TT
114802019-01-03 Tom Tromey <tom@tromey.com>
11481
11482 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11483
2a3c71d6
TT
114842019-01-03 Tom Tromey <tom@tromey.com>
11485
11486 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11487 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11488 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11489 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11490 (pspy_set_type_printers): Likewise.
11491 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11492 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11493 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11494 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11495 (objfpy_set_type_printers): Likewise.
11496
5c329e6a
TT
114972019-01-03 Tom Tromey <tom@tromey.com>
11498
11499 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11500 (gdbpy_print_stack): Use gdbpy_err_fetch.
11501 * python/python-internal.h (class gdbpy_err_fetch): New class.
11502 (class gdbpy_enter) <m_error_type, m_error_value,
11503 m_error_traceback>: Remove.
11504 <m_error>: New member.
11505 (gdbpy_exception_to_string): Don't declare.
11506 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11507 * python/py-value.c (convert_value_from_python): Use
11508 gdbpy_err_fetch.
11509 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11510 gdbpy_exception_to_string.
11511 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11512 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11513 gdbpy_err_fetch.
11514
169bb27b
AB
115152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11516
11517 * linux-nat.c (delete_lwp_cleanup): Delete.
11518 (struct lwp_deleter): New struct.
11519 (lwp_info_up): New typedef.
11520 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11521 lwp_info_up.
11522
a07c8880
AB
115232019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11524
11525 * linux-fork.c (class scoped_switch_fork_info): New class.
11526 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11527
26089c49
AB
115282019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11529
11530 * valops.c (find_overload_match): Remove use of null_cleanup, and
11531 calls to do_cleanups.
11532
06d3e5b0
AB
115332019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11534
11535 * compile/compile-cplus-types.c
11536 (compile_cplus_instance::decl_name): Handle changes to
11537 cp_func_name.
11538 * cp-support.c (cp_func_name): Update header comment, update
11539 return type.
11540 * cp-support.h (cp_func_name): Update return type in declaration.
11541 * valops.c (find_overload_match): Move temp_func local to top
11542 level of function and change its type. Use temp_func to hold and
11543 delete temporary string obtained from cp_func_name.
11544
66644cd3
AB
115452019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11546
11547 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11548 gdb::char_vector, remove cleanup, and update uses of `msg`.
11549
592d8c0a
JW
115502019-01-03 Jim Wilson <jimw@sifive.com>
11551
11552 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11553
c55d06ec
TT
115542019-01-02 Tom Tromey <tom@tromey.com>
11555
11556 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11557 (tdesc_parse_xml): Remove cleanups.
11558 * target-descriptions.h (make_cleanup_free_target_description):
11559 Don't declare.
11560 (target_desc_deleter): New struct.
11561 (target_desc_up): New typedef.
11562 * target-descriptions.c (target_desc_deleter::operator()): Rename
11563 from free_target_description.
11564 (make_cleanup_free_target_description): Remove.
11565
3a6ae42d
TT
115662019-01-02 Tom Tromey <tom@tromey.com>
11567
11568 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11569 constructor, destructor.
11570 (linespec_parser): Remove typedef.
11571 (~linespec_parser): Rename from linespec_parser_delete.
11572 (linespec_lex_to_end, linespec_complete_label)
11573 (linespec_complete): Update.
11574 (decode_line_full): Remove cleanups.
11575 (decode_line_1): Update.
11576
61fd3e73
TT
115772019-01-02 Tom Tromey <tom@tromey.com>
11578
11579 * python/python-internal.h (inferior_to_inferior_object): Change
11580 return type.
11581 * python/py-exitedevent.c (create_exited_event_object): Update.
11582 * python/py-inferior.c (inferior_to_inferior_object): Return
11583 gdbpy_ref.
11584 (python_new_inferior, python_inferior_deleted)
11585 (thread_to_thread_object, delete_thread_object)
11586 (build_inferior_list, gdbpy_selected_inferior): Update.
11587 * python/py-infthread.c (create_thread_object): Update. Also fail
11588 if inferior_to_inferior_object fails.
11589
d20172fc
SM
115902019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11591
11592 * inferior.h (class inferior) <displaced_step_state>: New field.
11593 * infrun.h (struct displaced_step_state): Move here from
11594 infrun.c. Initialize fields, add constructor.
11595 <inf>: Remove field.
11596 <reset>: New method.
11597 * infrun.c (struct displaced_step_inferior_state): Move to
11598 infrun.h.
11599 (displaced_step_inferior_states): Remove.
11600 (get_displaced_stepping_state): Adust.
11601 (displaced_step_in_progress_any_inferior): Adjust.
11602 (displaced_step_in_progress_thread): Adjust.
11603 (displaced_step_in_progress): Adjust.
11604 (add_displaced_stepping_state): Remove.
11605 (get_displaced_step_closure_by_addr): Adjust.
11606 (remove_displaced_stepping_state): Remove.
11607 (infrun_inferior_exit): Call displaced_step_state.reset.
11608 (use_displaced_stepping): Don't check for NULL.
11609 (displaced_step_prepare_throw): Call
11610 get_displaced_stepping_state.
11611 (displaced_step_fixup): Don't check for NULL.
11612 (prepare_for_detach): Don't check for NULL.
11613
e3319240
PW
116142019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11615
11616 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11617 in case of call that did not complete.
11618
5d36dfb9
AU
116192019-01-02 Andrey Utkin <autkin@undo.io>
11620
11621 * symfile.c (find_separate_debug_file): Fix search of debug files for
11622 remote debuggee.
11623
8833fbf0
TT
116242019-01-02 Tom Tromey <tom@tromey.com>
11625
11626 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11627 indentation.
11628 * python/py-frame.c (frapy_older): Remove cast.
11629 (frapy_newer): Likewise.
11630 * python/py-breakpoint.c (local_setattro): Remove cast.
11631 * python/py-arch.c (archpy_name): Remove local variable.
11632 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11633
4ada3dfd
JB
116342019-01-02 Joel Brobecker <brobecker@adacore.com>
11635
11636 * unittests/basic_string_view/element_access/char/empty.cc:
11637 Fix year range in copyright header.
11638
113b7b81
AB
116392019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11640
11641 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11642 Delete.
11643 <operator==>: Update with for removed field.
11644 <hash>: Likewise.
11645 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11646 <isa_features>: ...this.
11647 <abi_features>: New field.
11648 (riscv_isa_flen): Update comment.
11649 (riscv_abi_xlen): New declaration.
11650 (riscv_abi_flen): New declaration.
11651 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11652 isa_features.
11653 (riscv_abi_xlen): New function.
11654 (riscv_isa_flen): Update to get answer from isa_features.
11655 (riscv_abi_flen): New function.
11656 (riscv_has_fp_abi): Update to get answer from abi_features.
11657 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11658 xlen and flen.
11659 (riscv_call_info) <xlen, flen>: Update comment.
11660 (riscv_call_arg_struct): Remove invalid assertions
11661 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11662 is removed.
11663 (riscv_gdbarch_init): Gather isa features and abi features
11664 separately, ensure both match on the gdbarch when reusing an old
11665 gdbarch. Relax an error check to allow 32-bit abi float to run on
11666 a target with 64-bit float hardware.
11667
b18ca514
PW
116682019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11669
11670 * source.c (search_command_helper): Stop reverse search
11671 when line 1 has been searched.
11672
ec70d8db
PW
116732019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11674
11675 * record-full.c (record_full_base_target::close): Rewrite
11676 record_full_core_buf_list free logic.
11677
5b38f9c1
PW
116782019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11679
11680 * break-catch-syscall.c (print_one_catch_syscall): xfree
11681 the last text.
11682
66d91b39
JB
116832019-01-01 Joel Brobecker <brobecker@adacore.com>
11684
11685 * top.c (print_gdb_version): Update Copyright year in version
11686 message.
11687
42a4f53d
JB
116882019-01-01 Joel Brobecker <brobecker@adacore.com>
11689
11690 Update copyright year range in all GDB files.
11691
7e955d83 116922019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11693
5bbd631d 11694 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11695
5bbd631d 11696For older changes see ChangeLog-2018.
c906108c
SS
11697\f
11698Local Variables:
11699mode: change-log
11700left-margin: 8
11701fill-column: 74
11702version-control: never
57da7796 11703coding: utf-8
c906108c 11704End:
5bbd631d 11705
This page took 2.950627 seconds and 4 git commands to generate.