1 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4 * features/arm/arm-with-iwmmxt.c: Remove.
5 * features/arm/arm-with-iwmmxt.xml: Remove.
6 * features/arm/arm-with-m-fpa-layout.c: Remove.
7 * features/arm/arm-with-m-fpa-layout.xml: Remove.
8 * features/arm/arm-with-m-vfp-d16.c: Remove.
9 * features/arm/arm-with-m-vfp-d16.xml: Remove.
10 * features/arm/arm-with-m.c: Remove.
11 * features/arm/arm-with-m.xml: Remove.
12 * features/arm/arm-with-neon.c: Remove.
13 * features/arm/arm-with-neon.xml: Remove.
14 * features/arm/arm-with-vfpv2.c: Remove.
15 * features/arm/arm-with-vfpv2.xml: Remove.
16 * features/arm/arm-with-vfpv3.c: Remove.
17 * features/arm/arm-with-vfpv3.xml: Remove.
19 2019-07-19 Alan Hayward <alan.hayward@arm.com>
21 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
23 2019-07-19 Alan Hayward <alan.hayward@arm.com>
25 * arch/aarch32.c (aarch32_create_target_description): Create
26 target descriptions using features.
27 * arch/arm.c (arm_create_target_description)
28 (arm_create_mprofile_target_description): Likewise.
29 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
31 2019-07-19 Alan Hayward <alan.hayward@arm.com>
33 * Makefile.in: Add new files.
34 * aarch32-tdep.c: New file.
35 * aarch32-tdep.h: New file.
36 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
37 Call aarch32_read_description.
38 * arch/aarch32.c: New file.
39 * arch/aarch32.h: New file.
40 * arch/arm.c (arm_create_target_description)
41 (arm_create_mprofile_target_description): New function.
42 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
43 (arm_create_target_description)
44 (arm_create_mprofile_target_description): New declaration.
45 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
46 read_description functions.
47 * arm-linux-nat.c (arm_linux_nat_target::read_description):
49 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
50 * arm-tdep.c (tdesc_arm_list): New variable.
51 (arm_register_g_packet_guesses): Call create description functions.
52 (arm_read_description) (arm_read_mprofile_description): New
54 * arm-tdep.h (arm_read_description)
55 (arm_read_mprofile_description): Add declaration.
56 * configure.tgt: Add new files.
58 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
60 * top.c (new_ui_command): Open specified terminal just once.
62 2019-07-18 Tom Tromey <tromey@adacore.com>
64 * symtab.c (main_name): Constify return type.
65 * symfile.c (set_initial_language): Update.
66 * symtab.h (main_name): Constify return type.
68 2019-07-17 Tom Tromey <tom@tromey.com>
70 * tui/tui-winsource.c (tui_update_source_window)
71 (tui_update_source_window_as_is)
72 (tui_update_source_windows_with_line): Remove return.
73 * tui/tui-disasm.c (tui_show_disassem)
74 (tui_show_disassem_and_update_source): Remove return.
75 * tui/tui.c (tui_reset): Remove return.
76 * tui/tui-wingeneral.c
77 (tui_check_and_display_highlight_if_needed): Remove return.
79 2019-07-17 Tom Tromey <tom@tromey.com>
81 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
83 2019-07-17 Tom Tromey <tom@tromey.com>
85 * tui/tui-winsource.h (struct tui_exec_info_window)
86 (struct tui_source_window_base): Move from tui-data.h.
87 * tui/tui-winsource.c: Move many method definitions from
88 elsewhere. Remove "structuring" comments.
89 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
90 (tui_source_window_base::refresh_window): Move to
92 * tui/tui-win.c (tui_source_window_base::refresh_all)
93 (tui_source_window_base::update_tab_width)
94 (tui_source_window_base::set_new_height)
95 (tui_source_window_base::do_make_visible_with_new_height): Move to
97 * tui/tui-source.h: Update.
98 * tui/tui-source.c (tui_source_window_base::reset): Move to
100 * tui/tui-disasm.h: Update.
101 * tui/tui-data.h (struct tui_exec_info_window): Move to
103 (struct tui_source_window_base): Likewise.
104 * tui/tui-data.c (tui_source_window_base::clear_detail)
105 (tui_source_window_base, ~tui_source_window_base): Move to
108 2019-07-17 Tom Tromey <tom@tromey.com>
110 * tui/tui-win.c (tui_resize_all)
111 (tui_source_window_base::update_tab_width)
112 (tui_adjust_win_heights): Update.
113 (tui_win_info::make_invisible_and_set_new_height): Rename from
114 make_invisible_and_set_new_height.
115 * tui/tui-data.h (struct tui_win_info)
116 <make_invisible_and_set_new_height>: New method.
118 2019-07-17 Tom Tromey <tom@tromey.com>
121 * tui/tui-source.h (struct tui_source_window): Move from
123 * tui/tui-layout.c: Update.
124 * tui/tui-disasm.c: Update.
125 * tui/tui-data.h (struct tui_source_window): Move to
128 2019-07-17 Tom Tromey <tom@tromey.com>
130 * tui/tui-disasm.h (struct tui_disasm_window): Move from
132 * tui/tui-data.h (struct tui_disasm_window): Move to
135 2019-07-17 Tom Tromey <tom@tromey.com>
137 * tui/tui-regs.h (struct tui_data_item_window): Move from
139 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
140 * tui/tui-data.h (struct tui_data_item_window): Move to
142 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
144 2019-07-17 Tom Tromey <tom@tromey.com>
147 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
148 (tui_cmd_window::max_height): Move to tui-command.c.
149 * tui/tui-layout.c: Update.
150 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
151 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
153 * tui/tui-command.h (struct tui_cmd_window): Move from
155 * tui/tui-command.c: Remove "structuring" comments.
156 (tui_cmd_window::clear_detail)
157 (tui_cmd_window::do_make_visible_with_new_height)
158 (tui_cmd_window::max_height): Move from elsewhere.
160 2019-07-17 Tom Tromey <tom@tromey.com>
162 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
164 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
165 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
167 2019-07-17 Tom Tromey <tom@tromey.com>
170 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
172 * tui/tui-windata.h: Remove file.
173 * tui/tui-windata.c: Remove file.
174 * tui/tui-win.c (tui_data_window::set_new_height)
175 (tui_data_window::do_make_visible_with_new_height): Move to
177 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
178 * tui/tui-regs.c: Remove "structuring" comments.
179 (tui_data_window::first_data_item_displayed)
180 (tui_data_window::delete_data_content_windows)
181 (tui_data_window::erase_data_content)
182 (tui_data_window::display_all_data)
183 (tui_data_window::refresh_all)
184 (tui_data_window::do_scroll_vertical)
185 (tui_data_window::clear_detail, tui_data_window::set_new_height)
186 (tui_data_window::do_make_visible_with_new_height)
187 (tui_data_window::refresh_window): Move from elsewhere.
188 (_initialize_tui_regs): Move to end of file.
189 * tui/tui-layout.c: Update.
190 * tui/tui-hooks.c: Update.
191 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
192 * tui/tui-data.c (tui_data_window::clear_detail): Move to
194 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
196 2019-07-17 Tom Tromey <tom@tromey.com>
198 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
201 2019-07-17 Tom Tromey <tom@tromey.com>
203 * tui/tui-win.c (tui_source_window_base::set_new_height)
204 (tui_source_window_base::do_make_visible_with_new_height): Use
205 m_has_locator field directly.
206 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
208 (struct tui_source_window_base) <has_locator>: Likewise.
210 2019-07-17 Tom Tromey <tom@tromey.com>
212 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
214 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
216 * tui/tui-win.c (tui_source_window_base::set_new_height)
217 (tui_source_window_base::set_new_height)
218 (make_invisible_and_set_new_height)
219 (tui_source_window_base::do_make_visible_with_new_height)
220 (tui_source_window_base::do_make_visible_with_new_height):
222 * tui/tui-layout.c (show_source_disasm_command, show_data)
223 (show_source_or_disasm_and_command): Update.
224 * tui/tui-layout.c (show_layout): Update.
226 2019-07-17 Tom Tromey <tom@tromey.com>
228 * tui/tui-layout.c (make_data_window): Remove.
229 (show_data): Unify creation and re-initialization cases.
231 2019-07-17 Tom Tromey <tom@tromey.com>
233 * tui/tui-layout.c (make_source_window, make_disasm_window):
235 (show_data): Unify creation and re-initialization cases.
237 2019-07-17 Tom Tromey <tom@tromey.com>
239 * tui/tui-layout.c (make_command_window): Remove.
240 (show_source_disasm_command, show_source_or_disasm_and_command):
241 Unify creation and re-initialization cases.
243 2019-07-17 Tom Tromey <tom@tromey.com>
245 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
246 creation and re-initialization cases.
248 2019-07-17 Tom Tromey <tom@tromey.com>
250 * tui/tui-regs.c (tui_get_register): Return void.
252 2019-07-17 Tom Tromey <tom@tromey.com>
254 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
257 2019-07-17 Tom Tromey <tom@tromey.com>
259 * tui/tui-layout.c (show_source_disasm_command): Simplify window
262 2019-07-17 Tom Tromey <tom@tromey.com>
264 * tui/tui.h (tui_set_layout_by_name): Don't declare.
265 * tui/tui-regs.c (tui_reg_layout): New function.
266 (tui_show_registers, tui_reg_command): Use it.
267 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
268 (tui_layout_command): Rename from tui_set_layout_by_name. Change
270 (tui_layout_command): Remove.
272 2019-07-17 Tom Tromey <tom@tromey.com>
274 * tui/tui-layout.h (tui/tui-layout): Return void.
275 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
277 2019-07-17 Tom Tromey <tom@tromey.com>
279 * tui/tui-layout.c (show_source_disasm_command, show_data):
281 (reset_locator): Remove.
282 (show_source_or_disasm_and_command): Update.
284 2019-07-17 Tom Tromey <tom@tromey.com>
286 * tui/tui-source.c (tui_source_window_base::reset): Remove
288 * tui/tui-layout.c (make_command_window, make_source_window)
289 (make_disasm_window, make_data_window)
290 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
291 (reset_locator, show_source_or_disasm_and_command): Update.
292 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
294 (struct tui_source_window_base) <reset>: Likewise.
296 2019-07-17 Tom Tromey <tom@tromey.com>
298 * tui/tui-layout.c (show_source_disasm_command): Use
300 (reset_locator): New function.
301 (init_and_make_win): Remove.
302 (show_source_or_disasm_and_command): Use reset_locator.
304 2019-07-17 Tom Tromey <tom@tromey.com>
306 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
308 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
310 * tui/tui-source.c (tui_source_window_base::reset): New method.
311 * tui/tui-layout.c (make_command_window): Don't call
313 (make_source_window, make_disasm_window): Don't call
314 make_source_or_disasm_window.
315 (make_data_window): Don't call init_and_make_win. Change calling
317 (show_source_disasm_command, show_data): Simplify.
318 (make_source_or_disasm_window): Remove.
319 (show_source_or_disasm_and_command): Simplify.
320 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
321 (struct tui_source_window_base) <reset>: Likewise.
322 <execution_info>: Remove initializer.
323 * tui/tui-data.c (tui_source_window_base): Initialize
326 2019-07-17 Tom Tromey <tom@tromey.com>
328 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
331 2019-07-17 Tom Tromey <tom@tromey.com>
333 * tui/tui.c (tui_rl_other_window): Update.
334 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
335 superclass method first. Always iterate over regs_content.
336 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
338 * tui/tui-win.c (tui_set_focus_command): Update.
340 2019-07-17 Tom Tromey <tom@tromey.com>
342 * tui/tui-win.c (tui_set_focus_command): Rename from
343 tui_set_focus. Call tui_enable.
344 (tui_set_focus_command): Remove.
346 2019-07-17 Tom Tromey <tom@tromey.com>
348 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
350 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
352 (tui_data_window::refresh_window): Call refresh_window on data
353 items. Always call superclass refresh_window.
354 (tui_win_info::refresh): Remove.
355 (tui_source_window_base::refresh_window): Update.
356 (tui_refresh_all): Update.
357 * tui/tui-layout.c (show_source_disasm_command): Remove call to
359 (show_source_or_disasm_and_command): Likewise.
360 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
361 (struct tui_source_window_base) <refresh>: Likewise.
363 2019-07-17 Tom Tromey <tom@tromey.com>
365 * tui/tui-winsource.c (tui_clear_source_content)
366 (tui_show_source_content): Update.
367 * tui/tui-source.c (tui_source_window::showing_source_p): Check
368 whether content is empty.
369 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
372 2019-07-17 Tom Tromey <tom@tromey.com>
374 * tui/tui-winsource.c (tui_erase_source_content): Clear the
376 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
377 * tui/tui-source.c (tui_set_source_content_nil): Remove.
379 2019-07-17 Tom Tromey <tom@tromey.com>
381 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
382 (struct tui_data_item_window): Update.
384 2019-07-17 Tom Tromey <tom@tromey.com>
386 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
387 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
390 2019-07-17 Tom Tromey <tom@tromey.com>
392 * tui/tui-winsource.h (tui_erase_source_content)
393 (tui_clear_source_content): Remove "display_prompt" parameter.
394 * tui/tui-winsource.c (tui_update_source_window_as_is)
395 (tui_update_source_windows_with_addr): Update.
396 (tui_clear_source_content): Remove "display_prompt" parameter.
397 (tui_erase_source_content): Likewise. Simplify.
398 (tui_show_source_content): Update.
399 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
400 * tui/tui-stack.c (tui_show_frame_info): Update.
401 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
404 2019-07-17 Tom Tromey <tom@tromey.com>
406 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
407 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
409 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
412 2019-07-17 Tom Tromey <tom@tromey.com>
414 * tui/tui-winsource.c (tui_clear_source_content)
415 (tui_show_source_content, tui_show_exec_info_content)
416 (tui_clear_exec_info_content): Update.
417 * tui/tui-stack.c (tui_show_locator_content): Update.
418 (tui_show_frame_info): Update.
419 * tui/tui-source.h (tui_source_window): Don't declare.
420 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
421 from tui_source_is_displayed.
422 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
424 (struct tui_source_window_base) <content_in_use>: New field. Now
426 (struct tui_source_window) <showing_source_p>: New method.
427 (TUI_SRC_WIN): Change cast.
428 * tui/tui-data.c (tui_initialize_static_data): Update.
430 2019-07-17 Tom Tromey <tom@tromey.com>
432 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
434 * tui/tui-source.c (tui_source_window::location_matches_p): New
436 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
438 * tui/tui-data.h (struct tui_source_window_base)
439 <location_matches_p>: New method.
440 (struct tui_source_window, struct tui_disasm_window)
441 <location_matches_p>: Likewise.
443 2019-07-17 Tom Tromey <tom@tromey.com>
445 * tui/tui-win.c (tui_set_win_height_command): Rename from
447 (tui_set_win_height_command): Remove.
449 2019-07-17 Tom Tromey <tom@tromey.com>
451 * tui/tui-source.c (tui_source_window): New constructor. Add
453 (~tui_source_window): New destructor.
454 (tui_source_window::style_changed): New method.
455 * tui/tui-hooks.c (tui_redisplay_source): Remove.
456 (tui_attach_detach_observers): Update.
457 * tui/tui-data.h (struct tui_source_window): Make constructor not
458 inline. Add destructor.
459 (struct tui_source_window) <style_changed>: New method.
460 <m_observable>: New member.
462 2019-07-17 Tom Tromey <tom@tromey.com>
464 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
465 * tui/tui-win.c (tui_resize_all): Fix typo.
467 2019-07-17 Tom Tromey <tom@tromey.com>
469 * tui/tui-wingeneral.h (tui_refresh_all): Update.
470 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
471 (tui_refresh_all): Remove "list" parameter. Use foreach.
472 * tui/tui-win.c (window_name_completer): Use foreach.
473 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
474 (update_tab_width): Likewise.
475 * tui/tui-layout.c (show_layout): Update.
476 * tui/tui-data.h (class tui_window_iterator): New.
477 (struct all_tui_windows): New.
478 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
480 2019-07-17 Tom Tromey <tom@tromey.com>
482 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
483 parameter. Don't reference globals.
484 (tui_reg_command): Update.
486 2019-07-17 Tom Tromey <tom@tromey.com>
488 * tui/tui-regs.c (tui_show_registers): Simplify.
490 2019-07-17 Tom Tromey <tom@tromey.com>
492 * tui/tui-regs.c (tui_show_registers): Update.
493 (tui_show_register_group): Add win_info parameter.
495 2019-07-17 Tom Tromey <tom@tromey.com>
497 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
498 Rename from tui_display_reg_element_at_line.
499 (tui_data_window::display_registers_from_line): Update.
500 * tui/tui-data.h (struct tui_data_window)
501 <display_reg_element_at_line>: New method.
503 2019-07-17 Tom Tromey <tom@tromey.com>
505 * tui/tui-regs.h (tui_display_registers_from)
506 (tui_display_registers_from_line): Don't declare.
507 * tui/tui-windata.c (tui_data_window::display_all_data)
508 (tui_data_window::refresh_all)
509 (tui_data_window::do_scroll_vertical): Update.
510 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
511 from tui_display_registers_from.
512 (tui_display_reg_element_at_line): Update.
513 (tui_data_window::display_registers_from_line): Rename from
514 tui_display_registers_from_line.
515 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
516 display_registers_from_line>: New methods.
518 2019-07-17 Tom Tromey <tom@tromey.com>
520 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
521 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
522 from tui_erase_data_content.
523 (tui_data_window::display_all_data)
524 (tui_data_window::refresh_all)
525 (tui_data_window::do_scroll_vertical): Update.
526 * tui/tui-regs.c (tui_show_registers): Update.
527 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
530 2019-07-17 Tom Tromey <tom@tromey.com>
532 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
535 (tui_data_window::delete_data_content_windows): Rename from
536 tui_delete_data_content_windows.
537 (tui_data_window::display_all_data)
538 (tui_data_window::do_scroll_vertical): Update.
539 * tui/tui-data.h (struct tui_data_window)
540 <delete_data_content_windows>: New method.
542 2019-07-17 Tom Tromey <tom@tromey.com>
544 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
545 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
547 2019-07-17 Tom Tromey <tom@tromey.com>
549 * tui/tui-windata.h (tui_display_all_data): Don't declare.
550 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
551 from tui_display_all_data.
553 (tui_data_window::do_make_visible_with_new_height): Update.
554 * tui/tui-regs.c (tui_show_registers): Update.
555 * tui/tui-layout.c (tui_set_layout): Update.
556 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
559 2019-07-17 Tom Tromey <tom@tromey.com>
561 * tui/tui-windata.h (tui_display_data_from): Don't declare.
562 * tui/tui-windata.c (tui_display_data_from): Remove.
563 (tui_data_window::refresh_all): Update.
565 2019-07-17 Tom Tromey <tom@tromey.com>
567 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
568 * tui/tui-windata.c (tui_display_data_from_line): Remove.
569 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
570 tui_display_registers_from_line.
571 * tui/tui-regs.h (tui_display_registers_from_line): Update.
572 * tui/tui-regs.c (tui_display_registers_from_line): Remove
573 "force_display" parameter.
575 2019-07-17 Tom Tromey <tom@tromey.com>
577 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
579 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
580 Rename from tui_first_reg_element_no_inline.
581 (tui_display_reg_element_at_line)
582 (tui_display_registers_from_line): Update.
583 * tui/tui-data.h (struct tui_data_window)
584 <first_reg_element_no_inline>: New method.
586 2019-07-17 Tom Tromey <tom@tromey.com>
588 * tui/tui-windata.c (tui_display_data_from)
589 (tui_data_window::do_scroll_vertical): Update.
590 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
591 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
592 Rename from tui_line_from_reg_element_no.
593 (tui_display_registers_from_line): Update.
594 * tui/tui-data.h (struct tui_data_window)
595 <line_from_reg_element_no>: New method.
597 2019-07-17 Tom Tromey <tom@tromey.com>
599 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
600 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
601 tui_last_regs_line_no.
602 (tui_display_reg_element_at_line)
603 (tui_display_registers_from_line): Update.
604 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
607 2019-07-17 Tom Tromey <tom@tromey.com>
610 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
611 (tui_update_breakpoint_info): Add "being_deleted" parameter.
612 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
613 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
614 (tui_update_breakpoint_info): Likewise.
615 * tui/tui-hooks.c (tui_event_create_breakpoint)
616 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
619 2019-07-17 Tom Tromey <tom@tromey.com>
621 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
623 2019-07-17 Tom Tromey <tom@tromey.com>
625 * tui/tui-winsource.c (tui_update_source_window_as_is)
626 (tui_update_source_windows_with_addr): Update.
627 * tui/tui-source.h (tui_set_source_content)
628 (tui_show_symtab_source): Add "win_info" parameter.
629 * tui/tui-source.c (tui_set_source_content): Add "win_info"
631 (tui_show_symtab_source): Likewise.
633 2019-07-17 Tom Tromey <tom@tromey.com>
635 * tui/tui-wingeneral.c
636 (tui_check_and_display_highlight_if_needed): Check can_highlight.
638 2019-07-17 Tom Tromey <tom@tromey.com>
640 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
641 (struct tui_cmd_window) <can_scroll>: New method.
642 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
645 2019-07-17 Tom Tromey <tromey@adacore.com>
647 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
648 do_field_signed>: Rename. Change type of "value".
649 * ui-out.c (ui_out::field_signed): Rename from field_int.
650 Change type of "value".
651 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
653 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
654 do_field_int. Change type of "value".
655 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
656 do_field_int. Change type of "value".
657 * tracepoint.c (trace_status_mi, tfind_1)
658 (print_one_static_tracepoint_marker): Update.
659 * thread.c (print_thread_info_1, print_selected_thread_frame):
661 * stack.c (print_frame, print_frame_info): Update.
662 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
664 * source.c (print_source_lines_base): Update.
665 * skip.c (info_skip_command): Update.
666 * record-btrace.c (btrace_ui_out_decode_error)
667 (btrace_call_history_src_line): Update.
668 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
670 * progspace.c (print_program_space): Update.
671 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
672 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
673 do_field_int. Change type of "value".
674 * mi/mi-out.c (mi_ui_out::do_table_begin)
675 (mi_ui_out::do_table_header): Update.
676 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
678 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
679 (mi_cmd_data_list_changed_registers, output_register)
680 (mi_cmd_data_read_memory, mi_load_progress)
681 (mi_cmd_trace_frame_collected): Update.
682 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
684 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
685 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
686 (mi_cmd_var_list_children, varobj_update_one): Update.
687 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
688 (mi_cmd_stack_list_args, list_arg_or_local): Update.
689 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
690 * inferior.c (print_inferior): Update.
691 * gdb_bfd.c (print_one_bfd): Update.
692 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
694 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
695 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
696 do_field_int. Change type of "value".
697 * cli-out.c (cli_ui_out::do_field_signed): Rename from
698 do_field_int. Change type of "value".
699 * breakpoint.c (watchpoint_check, print_breakpoint_location)
700 (print_one_breakpoint_location, print_it_catch_fork)
701 (print_one_catch_fork, print_it_catch_vfork)
702 (print_one_catch_vfork, print_it_catch_solib)
703 (print_it_catch_exec, print_it_ranged_breakpoint)
704 (print_mention_watchpoint, print_mention_masked_watchpoint)
705 (bkpt_print_it, update_static_tracepoint): Update.
706 * break-catch-throw.c (print_it_exception_catchpoint): Update.
707 * break-catch-syscall.c (print_it_catch_syscall): Update.
708 * ada-tasks.c (print_ada_task_info): Update.
709 * ada-lang.c (print_it_exception, print_mention_exception):
712 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
715 * gdbarch.c: Regenerate.
716 * gdbarch.h: Regenerate.
717 * gdbarch.sh: Adjust return type and parameter types for
718 'stap_adjust_register'.
719 (i386_stap_adjust_register): Adjust signature and return new
721 * stap-probe.c (stap_parse_register_operand): Adjust use of
722 'gdbarch_stap_adjust_register'.
724 2019-07-17 Tom Tromey <tromey@adacore.com>
726 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
728 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
730 (struct s390_process_info): Add initializers.
731 (s390_add_process): Use new.
732 (s390_linux_nat_target::low_forget_process): Use delete.
733 (s390_linux_nat_target::low_new_fork)
734 (s390_linux_nat_target::stopped_by_watchpoint)
735 (s390_linux_nat_target::low_prepare_to_resume)
736 (s390_linux_nat_target::insert_watchpoint)
737 (s390_linux_nat_target::insert_hw_breakpoint)
738 (s390_linux_nat_target::remove_watchpoint)
739 (s390_linux_nat_target::remove_hw_breakpoint): Update.
741 2019-07-16 John Baldwin <jhb@FreeBSD.org>
743 * aarch64-fbsd-nat.c: Include regcache.h.
744 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
746 (aarch64_fbsd_nat_target::fetch_registers)
747 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
749 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
751 2019-07-16 John Baldwin <jhb@FreeBSD.org>
753 * fbsd-nat.c: Include gdbarch.h.
755 2019-07-15 Tom Tromey <tromey@adacore.com>
757 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
759 2019-07-15 Tom Tromey <tromey@adacore.com>
761 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
762 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
763 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
764 * cli-out.c (cli_ui_out::do_field_int): New method.
765 * ui-out.c (ui_out::field_unsigned): New method.
766 * symfile.c (generic_load): Use field_unsigned.
767 (print_transfer_performance): Likewise.
768 * record-btrace.c (ui_out_field_uint): Remove.
769 (btrace_call_history_insn_range, btrace_call_history): Use
771 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
773 * ui-out.h (class ui_out) <field_unsigned>: New method.
774 <do_field_unsigned>: Likewise.
776 2019-07-15 Tom Tromey <tromey@adacore.com>
778 * mi/mi-main.c (list_available_thread_groups): Use field_string.
779 * mi/mi-interp.c (mi_memory_changed): Use field_string.
780 * target.c (flash_erase_command): Use field_string.
781 * infrun.c (print_signal_received_reason): Use field_string.
782 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
783 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
785 * ada-tasks.c (print_ada_task_info): Use field_string.
787 2019-07-15 Tom Tromey <tromey@adacore.com>
789 * target.c (flash_erase_command): Use field_core_addr.
790 * symfile.c (generic_load): Use field_core_addr.
791 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
793 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
796 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
798 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
799 value if its desired type is smaller than a CORE_ADDR and signed.
801 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
803 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
804 of changes to field names, and use new is_reference field to
805 decide if a property is a reference or not.
806 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
808 (struct dwarf2_property_baton): Update header comment, rename
809 'referenced_type' to 'property_type' and update comments.
810 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
811 default property type, store in property baton, update to take
812 accound of renamed field.
813 (read_func_scope): Update call to attr_to_dynamic_prop.
814 (read_array_type): Likewise.
815 (dwarf2_per_cu_addr_sized_int_type): New function.
816 (read_subrange_index_type): Move type finding code to
817 dwarf2_per_cu_addr_sized_int_type.
818 (read_subrange_type): Update calls to attr_to_dynamic_prop.
819 (dwarf2_per_cu_addr_type): New function.
820 (set_die_type): Update calls to attr_to_dynamic_prop.
822 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
824 * dwarf2read.c (read_subrange_index_type): New function.
825 (read_subrange_type): Move code into new function and call it.
826 * gdbtypes.c (create_range_type): Add some asserts.
828 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
830 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
831 update return statements.
832 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
833 declaration, and update comment to match.
834 * gdbtypes.c (resolve_dynamic_array): Update call to
835 dwarf2_evaluate_property to match new return type.
837 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
839 * valarith.c (value_subscripted_rvalue): Change lowerbound
840 parameter type from int to LONGEST.
841 * value.h (value_subscripted_rvalue): Likewise in declaration.
843 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
845 * cli/cli-utils.c (info_print_command_completer): New function.
846 * cli/cli-utils.h: Add 'completer.h' include, and forward
847 declaration for 'struct cmd_list_element'.
848 (info_print_command_completer): Declare.
849 * stack.c (_initialize_stack): Add completer for 'info locals' and
851 * symtab.c (_initialize_symtab): Add completer for 'info
852 variables' and 'info functions'.
853 * NEWS: Mention completion for additional info commands.
855 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
857 * cli/cli-utils.c (extract_info_print_args): Delete.
858 (extract_arg_maybe_quoted): Delete.
859 (info_print_options_defs): New variable.
860 (make_info_print_options_def_group): New function.
861 (extract_info_print_options): Define new function.
862 * cli/cli-utils.h (extract_info_print_args): Delete.
863 (struct info_print_options): New structure.
864 (extract_info_print_options): Declare new function.
865 * stack.c (info_locals_command): Update to use new
866 extract_info_print_options, also add a header comment.
867 (info_args_command): Likewise.
868 * symtab.c (info_variables_command): Likewise.
869 (info_functions_command): Likewise.
871 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
873 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
874 to extract string arguments.
875 * common/common-utils.c (extract_string_maybe_quoted): New function.
876 * common/common-utils.h (extract_string_maybe_quoted): Declare.
878 2019-07-11 Tom Tromey <tromey@adacore.com>
880 * main.c (get_init_files): Use GDBINIT, not gdbinit.
881 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
882 * top.h (gdbinit): Don't declare.
883 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
885 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
886 * top.c (gdb_init): Don't call init_cli_cmds.
888 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
890 2019-07-11 Tom Tromey <tromey@adacore.com>
892 * python/py-inferior.c (add_thread_object): Don't use thread_obj
893 after it has been moved.
895 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
897 * valops.c (value_must_coerce_to_target): Change return type to
899 * value.h (value_must_coerce_to_target): Likewise.
901 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
903 * breakpoint.c (is_hardware_watchpoint): Remove
905 (is_masked_watchpoint): Change return type to bool.
906 (is_tracepoint): Likewise.
907 (is_breakpoint): Likewise.
908 (is_hardware_watchpoint): Likewise.
909 (is_watchpoint): Likewise.
910 (is_no_memory_software_watchpoint): Likewise.
911 (is_catchpoint): Likewise.
912 (breakpoint_1): Make FILTER parameter's return type bool.
913 is_masked_watchpoint): Change return type to bool.
914 (save_breakpoints): Make FILTER parameter's return type bool.
915 * breakpoint.h (is_breakpoint): Change return type to bool.
916 (is_watchpoint): Likewise.
917 (is_catchpoint): Likewise.
918 (is_tracepoint): Likewise.
920 2019-07-10 Tom Tromey <tom@tromey.com>
922 * defs.h: Don't include gdbarch.h.
923 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
924 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
925 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
926 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
927 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
928 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
929 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
930 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
931 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
932 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
933 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
934 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
935 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
936 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
937 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
938 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
939 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
940 record-btrace.c, record.h, regcache-dump.c, regcache.h,
941 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
942 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
943 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
944 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
945 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
946 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
947 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
948 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
949 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
951 2019-07-10 Tom Tromey <tromey@adacore.com>
953 * ada-lang.h (is_ada_exception_catchpoint): Declare.
954 * breakpoint.c (init_ada_exception_breakpoint): Register as
956 (print_one_breakpoint_location, print_one_breakpoint): Use
957 is_ada_exception_catchpoint.
958 * ada-lang.c (class ada_catchpoint_location): Pass
959 bp_loc_software_breakpoint to bp_location constructor.
960 (is_ada_exception_catchpoint): New function.
962 2019-07-10 Tom Tromey <tromey@adacore.com>
964 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
966 (struct arm_exidx_entry): New method operator<.
967 (struct arm_exidx_data) <section_maps>: Change type.
968 (arm_exidx_data_free): Remove.
969 (arm_exidx_data_key): Change type. Move lower.
970 (arm_exidx_new_objfile): Update.
971 (arm_compare_exidx_entries): Remove.
972 (arm_find_exidx_entry, _initialize_arm_tdep)
974 2019-07-10 Tom Tromey <tromey@adacore.com>
976 * solib-spu.c (ocl_program_data_key): Change type.
977 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
980 2019-07-10 Tom Tromey <tromey@adacore.com>
982 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
983 (struct solib_aix_inferior_data) <library_list>: Change type.
984 (solib_aix_inferior_data_handle): Change type.
985 (get_solib_aix_inferior_data): Update.
986 (solib_aix_free_library_list): Remove.
987 (library_list_start_library): Update.
988 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
990 (solib_aix_get_library_list)
991 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
992 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
994 2019-07-10 Tom Tromey <tromey@adacore.com>
996 * solib-dsbt.c (struct dsbt_info): Add initializers.
997 (solib_dsbt_pspace_data): Change type.
998 (dsbt_pspace_data_cleanup): Remove.
999 (get_dsbt_info, _initialize_dsbt_solib): Update.
1001 2019-07-10 Tom Tromey <tromey@adacore.com>
1003 * spu-tdep.c (spu_overlay_data): Change type.
1004 (spu_get_overlay_table, spu_overlay_new_objfile)
1005 (_initialize_spu_tdep): Update.
1007 2019-07-10 Tom Tromey <tromey@adacore.com>
1009 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1011 (dbx_objfile_data_key): Change type and declare later.
1012 (DBX_SYMFILE_INFO): Rewrite.
1013 * dbxread.c (dbx_objfile_data_key): Change type.
1014 (dbx_symfile_init): Update.
1015 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1016 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1017 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1019 2019-07-10 Tom Tromey <tromey@adacore.com>
1021 * jit.c (jit_program_space_key): Change type. Move lower.
1022 (get_jit_program_space_data): Update.
1023 (jit_program_space_data_cleanup): Remove.
1024 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1026 (struct jit_program_space_data): Add initializers.
1028 2019-07-10 Tom Tromey <tromey@adacore.com>
1030 * solib-darwin.c (struct darwin_info): Add initializers.
1031 (solib_darwin_pspace_data): Change type.
1032 (darwin_pspace_data_cleanup): Remove.
1033 (get_darwin_info, _initialize_darwin_solib): Update.
1035 2019-07-10 Tom Tromey <tromey@adacore.com>
1037 * remote-sim.c (struct sim_inferior_data): Add initializers,
1038 constructor, and destructor.
1039 (sim_inferior_data_key): Change type. Move lower.
1040 (check_for_duplicate_sim_descriptor): Update.
1041 (get_sim_inferior_data): Use new. Update.
1042 (~sim_inferior_data_cleanup): Rename from
1043 sim_inferior_data_cleanup. Simplify.
1044 (gdbsim_close_inferior, simulator_command)
1045 (sim_command_completer, _initialize_remote_sim): Update.
1046 (next_pid, INITIAL_PID): Move earlier.
1048 2019-07-10 Tom Tromey <tromey@adacore.com>
1050 * python/python-internal.h (create_thread_object): Return
1052 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1053 * python/py-inferior.c (struct threadlist_entry): Add
1055 <thread_obj>: Now a gdbpy_ref.
1056 (thread_to_thread_object): Update.
1057 (add_thread_object): Use new.
1058 (delete_thread_object): Use delete.
1059 (infpy_threads): Update.
1060 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1063 2019-07-10 Tom Tromey <tromey@adacore.com>
1065 * valops.c (value_cast): Specialize error message for Ada.
1067 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1069 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1071 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1073 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1074 bpstat_should_step): Return bool, adjust comments.
1075 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1076 bpstat_should_step): Likewise.
1078 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1080 * features/Makefile: Use feature target descriptions for Arm.
1081 * features/arm/arm-core.c: Generate new file.
1082 * features/arm/arm-fpa.c: Likewise.
1083 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1084 * features/arm/arm-m-profile.c: Likewise.
1085 * features/arm/arm-vfpv2.c: Likewise.
1086 * features/arm/arm-vfpv3.c: Likewise.
1087 * features/arm/xscale-iwmmxt.c: Likewise.
1088 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1090 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1092 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1095 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1097 * features/aarch64-pauth.c: Regenerate.
1099 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1101 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1103 (bpstat_what): Use false instead of 0.
1105 2019-07-09 Pedro Alves <palves@redhat.com>
1107 * break-catch-throw.c (is_exception_catchpoint): New.
1108 * breakpoint.c (print_one_breakpoint_location): New parameter
1109 'raw_loc'. Handle it. Use
1110 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1111 looking at the breakpoint's type.
1112 (print_one_breakpoint): If handling "maint info breakpoints", also
1113 print locations of exception catchpoints.
1114 * breakpoint.h (is_exception_catchpoint): Declare.
1116 2019-07-09 Pedro Alves <palves@redhat.com>
1118 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1120 (allocate_location_exception_catchpoint): New.
1121 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1122 (initialize_throw_catchpoint_ops): Install
1123 allocate_location_exception_catchpoint as allocate_location
1125 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1126 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1128 (breakpoint_address_is_meaningful): Delete.
1129 (bl_address_is_meaningful): New.
1130 (breakpoint_locations_match): Adjust comment.
1131 (bp_location_from_bp_type): New, factored out of...
1132 (bp_location::bp_location(breakpoint *)): ... this.
1133 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1135 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1136 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1137 breakpoint_address_is_meaningful.
1138 (bp_locations_compare): Adjust comment.
1139 (update_global_location_list): Use bl_address_is_meaningful
1140 instead of breakpoint_address_is_meaningful.
1141 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1143 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1144 * python/py-breakpoint.c (bppy_get_location): No longer check
1145 whether location is null.
1147 2019-07-09 Pedro Alves <palves@redhat.com>
1150 * breakpoint.c (print_one_breakpoint_location): Remove
1151 single-location assert.
1153 2019-07-09 Tom Tromey <tom@tromey.com>
1155 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1156 * configure: Rebuild.
1157 * configure.ac: Change common to gdbsupport.
1158 * gdbsupport: Rename from common.
1159 * acinclude.m4: Change common to gdbsupport.
1160 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1161 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1163 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1164 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1165 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1166 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1167 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1168 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1169 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1170 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1171 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1172 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1173 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1174 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1175 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1176 coff-pe-read.c, command.h, compile/compile-c-support.c,
1177 compile/compile-c.h, compile/compile-cplus-symbols.c,
1178 compile/compile-cplus-types.c, compile/compile-cplus.h,
1179 compile/compile-loc2c.c, compile/compile.c, completer.c,
1180 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1181 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1182 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1183 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1184 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1185 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1186 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1187 features/aarch64-core.c, features/aarch64-fpu.c,
1188 features/aarch64-pauth.c, features/aarch64-sve.c,
1189 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1190 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1191 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1192 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1193 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1194 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1195 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1196 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1197 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1198 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1199 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1200 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1201 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1202 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1203 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1204 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1205 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1206 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1207 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1208 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1209 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1210 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1211 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1212 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1213 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1214 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1215 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1216 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1217 minsyms.c, mips-linux-tdep.c, namespace.h,
1218 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1219 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1220 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1221 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1222 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1223 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1224 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1225 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1226 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1227 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1228 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1229 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1230 procfs.c, producer.c, progspace.h, psymtab.h,
1231 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1232 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1233 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1234 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1235 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1236 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1237 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1238 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1239 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1240 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1241 target-memory.c, target.c, target.h, target/waitstatus.c,
1242 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1243 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1244 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1245 unittests/array-view-selftests.c,
1246 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1247 unittests/common-utils-selftests.c,
1248 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1249 unittests/format_pieces-selftests.c,
1250 unittests/function-view-selftests.c,
1251 unittests/lookup_name_info-selftests.c,
1252 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1253 unittests/mkdir-recursive-selftests.c,
1254 unittests/observable-selftests.c,
1255 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1256 unittests/parse-connection-spec-selftests.c,
1257 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1258 unittests/scoped_fd-selftests.c,
1259 unittests/scoped_mmap-selftests.c,
1260 unittests/scoped_restore-selftests.c,
1261 unittests/string_view-selftests.c, unittests/style-selftests.c,
1262 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1263 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1264 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1265 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1266 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1267 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1269 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1271 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1273 (decode_digits_ordinary): Set explicit_line field in sal.
1274 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1275 symtab_and_line that was set on an explicit line number in
1276 assembler code. Do always update the recorded symtab and line if
1277 we do skip the prologue.
1279 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1281 * breakpoint.c (set_breakpoint_location_function): Remove
1282 explicit_loc parameter.
1283 (momentary_breakpoint_from_master): Update call to
1284 set_breakpoint_location_function.
1285 (add_location_to_breakpoint): Likewise.
1287 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1289 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1290 required features based on default bfd type when no specific bfd
1293 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1295 * NEWS: Mention that GDB printf and eval commands can now print
1296 C-style and Ada-style convenience var strings without
1297 calling the inferior.
1298 * printcmd.c (printf_c_string): Locally print GDB internal var
1299 instead of transiting via the inferior.
1300 (printf_wide_c_string): Likewise.
1302 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1304 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1306 2019-07-04 Tom Tromey <tom@tromey.com>
1309 * tui/tui-winsource.c (tui_clear_source_content): Update.
1310 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1311 (tui_update_breakpoint_info): Update.
1312 (tui_set_exec_info_content): Update.
1313 * tui/tui-source.c (tui_set_source_content_nil): Update.
1314 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1316 * tui/tui-data.h (enum tui_bp_flag): New.
1317 (tui_bp_flags): New enum flags type.
1318 (struct tui_source_element) <break_mode>: Change type. Rename
1320 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1321 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1323 * tui/tui-winsource.h: Fix comment.
1325 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1327 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1328 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1329 (store_fpregs_to_thread)
1330 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1331 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1332 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1333 (IWMMXT_REGS_SIZE): Add define.
1334 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1335 (fetch_vfp_regs, store_vfp_regs)
1336 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1337 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1339 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1341 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1343 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1344 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1345 (ARM_INT_REGISTER_SIZE): ...to this.
1346 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1347 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1348 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1349 (arm_linux_collect_gregset, supply_nwfpe_register)
1350 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1352 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1353 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1354 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1355 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1356 (arm_return_in_memory, arm_store_return_value)
1357 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1358 (arm_record_ld_st_multiple): Likewise.
1359 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1360 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1362 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1364 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1365 AARCH64_DISPLACED_MODIFIED_INSNS.
1366 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1367 (aarch64_displaced_step_copy_insn): Likewise.
1368 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1369 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1370 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1371 ARM_DISPLACED_MODIFIED_INSNS.
1372 * arm-tdep.c (arm_gdbarch_init): Likewise.
1373 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1374 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1375 (struct arm_displaced_step_closure): Use
1376 ARM_DISPLACED_MODIFIED_INSNS.
1378 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1380 * features/Makefile: Remove unused xml files.
1381 * features/aarch64.xml: Remove.
1382 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1383 * features/i386/amd64-avx-avx512.xml: Remove.
1384 * features/i386/amd64-avx-linux.xml: Remove.
1385 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1386 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1387 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1388 * features/i386/amd64-avx-mpx.xml: Remove.
1389 * features/i386/amd64-avx.xml: Remove.
1390 * features/i386/amd64-linux.xml: Remove.
1391 * features/i386/amd64-mpx-linux.xml: Remove.
1392 * features/i386/amd64-mpx.xml: Remove.
1393 * features/i386/amd64.xml: Remove.
1394 * features/i386/i386-avx-avx512-linux.xml: Remove.
1395 * features/i386/i386-avx-avx512.xml: Remove.
1396 * features/i386/i386-avx-linux.xml: Remove.
1397 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
1398 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
1399 * features/i386/i386-avx-mpx-linux.xml: Remove.
1400 * features/i386/i386-avx-mpx.xml: Remove.
1401 * features/i386/i386-avx.xml: Remove.
1402 * features/i386/i386-linux.xml: Remove.
1403 * features/i386/i386-mmx-linux.xml: Remove.
1404 * features/i386/i386-mmx.xml: Remove.
1405 * features/i386/i386-mpx-linux.xml: Remove.
1406 * features/i386/i386-mpx.xml: Remove.
1407 * features/i386/i386.xml: Remove.
1408 * features/i386/x32-avx-avx512-linux.xml: Remove.
1409 * features/i386/x32-avx-linux.xml: Remove.
1410 * features/i386/x32-linux.xml: Remove.
1412 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1414 * regformats/aarch64.dat: Remove.
1415 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
1416 * regformats/i386/amd64-avx-linux.dat: Remove.
1417 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
1418 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
1419 * regformats/i386/amd64-linux.dat: Remove.
1420 * regformats/i386/amd64-mpx-linux.dat: Remove.
1421 * regformats/i386/amd64.dat: Remove.
1422 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
1423 * regformats/i386/i386-avx-linux.dat: Remove.
1424 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
1425 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
1426 * regformats/i386/i386-linux.dat: Remove.
1427 * regformats/i386/i386-mmx-linux.dat: Remove.
1428 * regformats/i386/i386-mpx-linux.dat: Remove.
1429 * regformats/i386/i386.dat: Remove.
1430 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
1431 * regformats/i386/x32-avx-linux.dat: Remove.
1432 * regformats/i386/x32-linux.dat: Remove.
1434 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1436 * aarch64-tdep.c: Remove xml self tests.
1437 * amd64-linux-tdep.c: Likewise.
1438 * amd64-tdep.c: Likewise.
1439 * i386-linux-tdep.c: Likewise.
1440 * i386-tdep.c: Likewise.
1442 2019-07-03 Pedro Alves <palves@redhat.com>
1445 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
1446 (pipe_cmd_option_defs): New.
1447 (make_pipe_cmd_options_def_group): New.
1448 (pipe_command): Use gdb::option::process_options.
1449 (pipe_command_completer): New function.
1450 (_initialize_cli_cmds): Install completer for "pipe" command.
1452 2019-07-03 Pedro Alves <palves@redhat.com>
1454 * cli/cli-option.c (union option_value) <string>: New field.
1455 (struct option_def_and_value): Add ctor, move ctor, dtor and
1456 use DISABLE_COPY_AND_ASSIGN.
1457 (option_def_and_value::clear_value): New.
1458 (parse_option, save_option_value_in_ctx, get_val_type_str)
1459 (add_setshow_cmds_for_options): Handle var_string.
1460 * cli-option.h (union option_def::var_address) <string>: New
1462 (struct string_option_def): New.
1463 * maint-test-options.c (struct test_options_opts): Add default
1464 ctor and use DISABLE_COPY_AND_ASSIGN.
1465 <string_opt>: New field.
1466 (test_options_opts::~test_options_opts): New.
1467 (test_options_opts::dump): Also dump "-string".
1468 (test_options_option_defs): Install "string.
1470 2019-07-03 Pedro Alves <palves@redhat.com>
1472 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
1473 option_value with a null enumeration.
1474 (complete_options): Save the option values in the context.
1475 (save_option_value_in_ctx): New, factored out from ...
1476 (process_options): ... here.
1477 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
1479 * maint-test-options.c (test_options_opts::dump): New, factored
1481 (maintenance_test_options_command_mode): ... here.
1482 (maintenance_test_options_command_completion_result): Delete.
1483 (maintenance_test_options_command_completion_text): Update
1485 (maintenance_show_test_options_completion_result): Change
1486 prototype. Just print
1487 maintenance_test_options_command_completion_text.
1488 (save_completion_result): New.
1489 (maintenance_test_options_completer_mode): Pass options context to
1490 complete_options, and then save a dump.
1491 (_initialize_maint_test_options): Use add_cmd to install "maint
1492 show test-options-completion-result".
1494 2019-07-03 Pedro Alves <palves@redhat.com>
1496 * NEWS (New commands): Mention "with" and "maint with".
1497 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
1498 (with_command, with_command_completer): New.
1499 (pipe_command): Adjust to new repeat_previous
1501 (_initialize_cli_cmds): Install the "with" command and its "w"
1503 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
1505 * cli/cli-setshow.c (parse_cli_var_uinteger)
1506 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
1507 argument strings for all var_types.
1508 (get_setshow_command_value_string): New, factored out from ...
1509 (do_show_command): ... this.
1510 * cli/cli-setshow.h: Include <string>.
1511 (get_setshow_command_value_string): Declare.
1512 * command.h (repeat_previous): Now returns const char *. Adjust
1514 * maint.c: Include "cli/cli-cmds.h".
1515 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
1516 (_initialize_maint_cmds): Register the "maintenance with" command.
1517 * top.c (repeat_previous): Move bits from pipe_command here:
1518 Return the saved command line, if any; error out if there's no
1519 command to relaunch.
1521 2019-07-03 Pedro Alves <palves@redhat.com>
1523 * NEWS (New commands): Mention "maint set/show test-settings"
1524 instead of "maint test-settings".
1525 * maint-test-settings.c (maintenance_test_settings_list): Delete.
1526 (maintenance_test_settings_set_list): Rename to ...
1527 (maintenance_set_test_settings_list): ... this.
1528 (maintenance_test_settings_show_list): Rename to ...
1529 (maintenance_show_test_settings_list): ... this.
1530 (maintenance_test_settings_cmd): Delete.
1531 (maintenance_test_settings_set_cmd): ...
1532 (maintenance_set_test_settings_cmd): ... this.
1533 (maintenance_test_settings_show_cmd): ...
1534 (maintenance_show_test_settings_cmd): ... this.
1535 (maintenance_test_settings_show_value_cmd):
1536 (maintenance_show_test_settings_value_cmd): ... this.
1537 (_initialize_maint_test_settings): No longer install the "maint
1538 test-settings" prefix command. Rename "maint test-settings set"
1539 to "maint set test-settings", and "maint test-settings show" to
1540 "maint show test-settings". Adjust all subcommands.
1542 2019-07-03 Pedro Alves <palves@redhat.com>
1544 * maint-test-settings.c: Fix file's intro comment. Replace all
1545 references to "test-options" with references to "test-settings",
1548 2019-07-03 Pedro Alves <palves@redhat.com>
1550 * maint-test-settings.c (maintenance_test_settings_xxx)
1551 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
1553 (maintenance_test_settings_enums): Use them.
1554 (maintenance_test_settings_enum): Default to
1555 maintenance_test_settings_xxx.
1556 (_initialize_maint_test_settings): Initialize
1557 MAINTENANCE_TEST_SETTINGS_FILENAME.
1559 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1561 * breakpoint.h (remove_breakpoints_inf): Change return type to
1562 void, move function documentation here.
1563 * breakpoint.c (remove_breakpoints_inf): Change return type to
1564 void, move function documentation to header.
1566 2019-07-02 Pedro Alves <palves@redhat.com>
1568 * NEWS (Completion improvements): Mention "info threads".
1569 * thread.c (struct info_threads_opts, info_threads_option_defs)
1570 (make_info_threads_options_def_group): New.
1571 (info_threads_command): Use gdb::option::process_options.
1572 (info_threads_command_completer): New.
1573 (_initialize_thread): Use gdb::option::build_help to build the
1574 help text for "info threads".
1576 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1578 * defs.h (generic_load): Move from here...
1579 * symfile.h (generic_load): ... to here. Rename name parameter
1581 * symfile.c (generic_load): Add comment.
1583 2019-07-01 Tom Tromey <tromey@adacore.com>
1586 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
1587 declaration of without_params. Fix formatting.
1589 2019-07-01 Tom Tromey <tromey@adacore.com>
1591 * ada-exp.y (find_primitive_type): Update.
1592 * ada-lang.h (ada_lookup_symbol): Update.
1593 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
1595 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
1597 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
1599 PR breakpoints/24541
1600 * gdbarch.c: Regenerate.
1601 * gdbarch.h: Regenerate.
1602 * gdbarch.sh: Add 'stap_adjust_register'.
1603 * i386-tdep.c: Include '<unordered_set>'.
1604 (i386_stap_adjust_register): New function.
1605 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
1606 * stap-probe.c (stap_parse_register_operand): Call
1607 'gdbarch_stap_adjust_register'.
1609 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
1612 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
1613 * python/python.c (do_start_initialization): Use 'xmalloc'
1614 instead of 'PyMem_Malloc'.
1616 2019-06-28 Tom Tromey <tromey@adacore.com>
1618 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
1621 2019-06-27 Tom Tromey <tromey@adacore.com>
1623 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
1625 (arm_find_mapping_symbol, arm_record_special_symbol)
1626 (_initialize_arm_tdep): Update.
1627 (arm_objfile_data_free): Remove.
1629 2019-06-27 Tom Tromey <tromey@adacore.com>
1631 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
1632 to cp_print_static_field.
1634 2019-06-26 Tom Tromey <tromey@adacore.com>
1636 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
1637 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
1640 2019-06-26 Alan Hayward <alan.hayward@arm.com>
1642 * features/aarch64-core.c (create_feature_aarch64_core):
1644 * features/aarch64-core.xml: Add cpsr flags.
1646 2019-06-26 Alan Hayward <alan.hayward@arm.com>
1648 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
1649 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
1651 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
1653 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
1655 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
1657 (arm_record_special_symbol): Don't insert new symbol in sorted
1658 position, push it at the end.
1660 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
1662 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
1663 (arm_mapping_symbol_s): Remove.
1664 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
1665 (arm_mapping_symbol_vec): New typedef.
1666 (struct arm_per_objfile): Add constructor.
1667 <section_maps>: Change type to
1668 std::unique_ptr<arm_mapping_symbol_vec[]>.
1669 (arm_compare_mapping_symbols): Remove.
1670 (arm_find_mapping_symbol): Adjust to section_maps type change.
1671 (arm_objfile_data_free): Call delete on arm_per_objfile.
1672 (arm_record_special_symbol): Adjust to section_maps type change.
1673 Allocate arm_per_objfile with new.
1675 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1677 * cli/cli-cmds.c (alias_command): Compare the alias prefix
1678 with the command prefix.
1680 2019-06-25 Tom Tromey <tom@tromey.com>
1682 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
1683 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
1685 2019-06-25 Tom Tromey <tom@tromey.com>
1687 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
1689 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
1692 2019-06-25 Tom Tromey <tom@tromey.com>
1694 * tui/tui-winsource.c
1695 (tui_source_window_base::set_is_exec_point_at): Add check against
1698 2019-06-25 Tom Tromey <tom@tromey.com>
1700 * tui/tui-source.c (tui_set_source_content): Don't check before
1702 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
1704 2019-06-25 Tom Tromey <tom@tromey.com>
1706 * tui/tui-winsource.h (tui_update_source_window_as_is)
1707 (tui_alloc_source_buffer, tui_line_is_displayed)
1708 (tui_addr_is_displayed): Change type of win_info.
1709 * tui/tui-winsource.c (tui_update_source_window_as_is)
1710 (tui_clear_source_content, tui_show_source_line)
1711 (tui_show_source_content, tui_source_window_base::refill)
1712 (tui_source_window_base::set_is_exec_point_at)
1713 (tui_source_window_base::set_is_exec_point_at)
1714 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
1715 (tui_alloc_source_buffer, tui_line_is_displayed)
1716 (tui_addr_is_displayed): Change type of win_info. Update.
1717 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1718 (tui_source_window_base::do_make_visible_with_new_height):
1720 * tui/tui-source.c (tui_set_source_content)
1721 (tui_set_source_content_nil)
1722 (tui_source_window::do_scroll_vertical): Update.
1723 * tui/tui-layout.c (show_layout): Update.
1724 * tui/tui-disasm.c (tui_set_disassem_content)
1725 (tui_disasm_window::do_scroll_vertical): Update.
1726 * tui/tui-data.h (tui_win_content): Remove.
1727 (struct tui_gen_win_info) <content, content_size>: Remove.
1728 (struct tui_source_element): Add initializers and destructor.
1729 (union tui_which_element, struct tui_win_element): Remove.
1730 (struct tui_source_window_base) <content>: New field.
1731 (struct tui_data_window): Remove destructor.
1732 (tui_alloc_content, tui_free_win_content)
1733 (tui_free_all_source_wins_content): Don't declare.
1734 * tui/tui-data.c (tui_initialize_static_data): Update.
1735 (init_content_element, tui_alloc_content): Remove.
1736 (~tui_gen_win_info): Update.
1737 (~tui_data_window, tui_free_all_source_wins_content)
1738 (tui_free_win_content, free_content, free_content_elements):
1741 2019-06-25 Tom Tromey <tom@tromey.com>
1743 * tui/tui-winsource.h (tui_clear_source_content)
1744 (tui_erase_source_content, tui_show_source_content): Change type
1746 * tui/tui-winsource.c (tui_clear_source_content)
1747 (tui_erase_source_content, tui_show_source_content): Change type
1749 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1750 * tui/tui-source.h (tui_set_source_content_nil): Change type of
1752 * tui/tui-source.c (tui_set_source_content_nil): Change type of
1754 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
1756 2019-06-25 Tom Tromey <tom@tromey.com>
1758 * tui/tui-winsource.c (tui_clear_source_content)
1759 (tui_source_window_base::set_is_exec_point_at): Update.
1760 * tui/tui-source.c (tui_set_source_content_nil): Update.
1761 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
1763 * tui/tui-data.c (init_content_element): Update.
1765 2019-06-25 Tom Tromey <tom@tromey.com>
1767 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
1768 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
1769 * tui/tui-layout.c (init_and_make_win): Update.
1770 * tui/tui.h (enum tui_win_type): Update.
1771 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
1772 tui_win_is_auxillary.
1773 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
1774 tui_win_is_auxillary.
1776 2019-06-25 Tom Tromey <tom@tromey.com>
1778 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
1779 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
1780 (tui_delete_data_content_windows, tui_display_all_data)
1781 (tui_data_window::do_scroll_vertical, tui_display_data_from):
1783 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
1784 * tui/tui-regs.c (tui_last_regs_line_no)
1785 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
1786 (tui_show_registers): Update.
1787 (tui_show_register_group): Return void. Update.
1788 (tui_display_registers_from, tui_display_reg_element_at_line)
1789 (tui_display_registers_from_line, tui_check_register_values):
1791 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
1793 (struct tui_data_window) <regs_content>: Now a std::vector.
1794 <regs_content_count>: Remove.
1795 (tui_add_content_elements, tui_free_data_content): Don't declare.
1796 * tui/tui-data.c (tui_data_window::clear_detail): Update.
1797 (init_content_element): Remove DATA_WIN case. Add assert.
1798 (tui_add_content_elements): Remove.
1799 (tui_data_window): Update.
1800 (tui_free_data_content): Remove.
1801 (free_content_elements): Remove DATA_WIN case.
1803 2019-06-25 Tom Tromey <tom@tromey.com>
1805 * tui/tui-data.c (tui_data_item_window): Update.
1806 * tui/tui-windata.h (tui_check_data_values): Don't declare.
1807 * tui/tui-windata.c (tui_display_all_data)
1808 (tui_display_data_from_line): Update.
1809 (tui_check_data_values): Remove.
1810 * tui/tui-regs.c (tui_show_register_group)
1811 (tui_display_reg_element_at_line): Update.
1812 * tui/tui-hooks.c (tui_register_changed)
1813 (tui_refresh_frame_and_register_information): Call
1814 tui_check_register_values.
1815 * tui/tui-data.h (struct tui_data_window) <data_content,
1816 data_content_count, data_type>: Remove.
1817 (enum tui_data_type): Remove.
1819 * tui/tui-data.c (tui_data_window::clear_detail)
1820 (~tui_data_window): Update.
1822 2019-06-25 Tom Tromey <tom@tromey.com>
1824 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
1826 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
1827 Rename from tui_first_data_item_displayed. Update.
1828 (tui_data_window::refresh_all)
1829 (tui_data_window::do_scroll_vertical): Update.
1830 * tui/tui-data.h (struct tui_data_window)
1831 <first_data_item_displayed>: Declare new method.
1833 2019-06-25 Tom Tromey <tom@tromey.com>
1835 * tui/tui-data.h (tui_init_generic_part): Don't declare.
1836 * tui/tui-data.c (tui_init_generic_part): Remove, moving
1838 (tui_initialize_static_data): ...here.
1840 2019-06-25 Tom Tromey <tom@tromey.com>
1842 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
1843 (tui_display_registers_from, tui_check_register_values): Update.
1844 (tui_display_register): Remove win_info parameter; update.
1845 (tui_get_register): Change type of parameters.
1846 * tui/tui-data.h (struct tui_data_element): Remove.
1847 (union tui_which_element) <data>: Remove.
1848 <data_window>: Change type.
1849 (struct tui_data_item_window): New.
1850 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
1852 (~tui_data_item_window): New destructor.
1853 (free_content_elements): Remove DATA_ITEM_WIN case.
1855 2019-06-25 Tom Tromey <tom@tromey.com>
1857 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
1860 2019-06-25 Tom Tromey <tom@tromey.com>
1862 * tui/tui-data.h (struct tui_command_element): Remove.
1863 (union tui_which_element) <command>: Remove.
1864 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
1866 (free_content_elements): Remove CMD_WIN case.
1868 2019-06-25 Tom Tromey <tom@tromey.com>
1870 * tui/tui-layout.c (tui_set_layout): Update.
1871 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
1872 * tui/tui-data.c (layout_def): Update.
1874 2019-06-25 Tom Tromey <tom@tromey.com>
1876 * tui/tui-wingeneral.c (tui_refresh_all): Update.
1877 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1878 (tui_source_window_base::set_new_height): Update.
1879 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
1881 (tui_set_locator_fullname, tui_set_locator_info)
1882 (tui_show_frame_info): Update.
1883 * tui/tui-source.c (tui_set_source_content)
1884 (tui_source_is_displayed): Update.
1885 * tui/tui-layout.c (show_source_disasm_command, show_data)
1886 (show_source_or_disasm_and_command): Update.
1887 * tui/tui-disasm.c (tui_set_disassem_content)
1888 (tui_get_begin_asm_address): Update.
1889 * tui/tui-data.h (struct tui_locator_element): Remove.
1890 (union tui_which_element) <locator>: Remove.
1891 (struct tui_locator_window): New.
1892 (tui_locator_win_info_ptr): Change return type.
1893 * tui/tui-data.c (_locator): Change type.
1894 (tui_locator_win_info_ptr): Change return type.
1895 (init_content_element): Remove LOCATOR_WIN case. Add assert.
1896 (tui_alloc_content): Add assert.
1898 2019-06-25 Tom Tromey <tom@tromey.com>
1900 * tui/tui-winsource.c
1901 (tui_exec_info_window::maybe_allocate_content): New method.
1902 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
1903 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
1904 (make_source_or_disasm_window): Add cast.
1905 * tui/tui-data.h (union tui_which_element) <simple_string>:
1907 (struct tui_source_info): New.
1908 (struct tui_source_window_base) <execution_info>: Change type.
1909 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
1910 case, and add assert.
1911 (tui_alloc_content): Add assert.
1913 2019-06-25 Tom Tromey <tom@tromey.com>
1915 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
1916 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
1917 * tui/tui-data.c (tui_alloc_win_info): Remove.
1919 2019-06-25 Tom Tromey <tom@tromey.com>
1921 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
1922 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
1925 2019-06-25 Tom Tromey <tom@tromey.com>
1927 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
1928 make_visible_with_new_height method.
1929 (tui_win_info::make_visible_with_new_height): New method.
1930 (tui_source_window_base::do_make_visible_with_new_height)
1931 (tui_data_window::do_make_visible_with_new_height)
1932 (tui_cmd_window::do_make_visible_with_new_height): New methods.
1933 (make_visible_with_new_height): Remove.
1934 (tui_resize_all, tui_adjust_win_heights): Use
1935 make_visible_with_new_height method.
1936 * tui/tui-data.h (struct tui_win_info)
1937 <do_make_visible_with_new_height, make_visible_with_new_height>:
1939 (struct tui_source_window_base, struct tui_data_window)
1940 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
1943 2019-06-25 Tom Tromey <tom@tromey.com>
1945 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
1947 (update_tab_width): Call update_tab_width method.
1948 * tui/tui-data.h (struct tui_win_info)
1949 (struct tui_source_window_base) <update_tab_width>: New methods.
1951 2019-06-25 Tom Tromey <tom@tromey.com>
1953 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
1955 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
1957 (tui_gen_win_info::make_visible): Update.
1958 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
1960 * tui/tui-data.h (enum tui_box): New enum.
1961 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
1963 2019-06-25 Tom Tromey <tom@tromey.com>
1965 * tui/tui-layout.c (make_source_or_disasm_window): Always use
1966 init_and_make_win for EXEC_INFO_WIN.
1967 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
1969 (struct tui_win_info) <~tui_win_info>: Inline.
1970 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1972 * tui/tui-data.c (source_win, disasm_win): Remove globals.
1973 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
1975 (tui_initialize_static_data): Update.
1976 (~tui_gen_win_info): Handle more cleanup here.
1977 (~tui_source_window_base): Delete "execution_info".
1978 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
1980 2019-06-25 Tom Tromey <tom@tromey.com>
1982 * tui/tui-layout.c (make_command_window): Don't set
1984 (show_source_disasm_command): Call the reset method.
1985 (show_data): Don't set can_highlight. Call the reset method.
1986 (tui_gen_win_info::reset): Rename from init_gen_win_info
1987 (init_and_make_win): Simplify. Return tui_gen_win_info.
1988 (show_source_or_disasm_and_command): Call the reset method.
1989 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
1990 (struct tui_cmd_window): Set can_highlight.
1992 2019-06-25 Tom Tromey <tom@tromey.com>
1994 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
1996 (tui_make_visible, tui_make_invisible): Rewrite.
1997 (tui_win_info::make_visible): Remove.
1998 (tui_source_window_base::make_visible): Update.
1999 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2000 method. Moved from...
2001 (struct tui_win_info) <make_visible>: ...here.
2003 2019-06-25 Tom Tromey <tom@tromey.com>
2005 * tui/tui-winsource.c
2006 (tui_source_window_base::do_scroll_horizontal): Remove direction
2008 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2009 direction parameter.
2010 * tui/tui-win.c (tui_win_info::forward_scroll)
2011 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2012 (tui_win_info::right_scroll): Update.
2013 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2014 direction parameter.
2015 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2016 direction parameter.
2017 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2018 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2019 Remove direction parameter.
2020 (struct tui_source_window_base, struct tui_source_window)
2021 (struct tui_disasm_window, struct tui_data_window)
2022 (struct tui_cmd_window): Update.
2024 2019-06-25 Tom Tromey <tom@tromey.com>
2026 * tui/tui-winsource.h (tui_set_exec_info_content)
2027 (tui_show_exec_info_content, tui_erase_exec_info_content)
2028 (tui_clear_exec_info_content, tui_update_exec_info): Change
2029 argument to tui_source_window_base.
2030 * tui/tui-winsource.c (tui_set_exec_info_content)
2031 (tui_show_exec_info_content, tui_erase_exec_info_content)
2032 (tui_clear_exec_info_content, tui_update_exec_info): Change
2033 argument to tui_source_window_base.
2035 2019-06-25 Tom Tromey <tom@tromey.com>
2037 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2038 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2040 2019-06-25 Tom Tromey <tom@tromey.com>
2042 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2045 2019-06-25 Tom Tromey <tom@tromey.com>
2047 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2049 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2051 * tui/tui-source.c (tui_set_source_content): Update.
2052 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2054 2019-06-25 Tom Tromey <tom@tromey.com>
2056 * tui/tui-win.c (window_name_completer, tui_set_focus)
2057 (tui_all_windows_info): Use name method.
2058 * tui/tui-data.h (struct tui_gen_win_info)
2059 (struct tui_source_window, struct tui_disasm_window)
2060 (struct tui_data_window, struct tui_cmd_window) <name>: New
2062 (tui_win_name): Don't declare.
2063 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2064 (tui_win_name): Remove.
2066 2019-06-25 Tom Tromey <tom@tromey.com>
2068 * tui/tui-winsource.h (tui_update_source_window)
2069 (tui_update_source_window_as_is): Change parameter type.
2070 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2071 to be a tui_source_window_base.
2072 (tui_update_source_window_as_is): Likewise.
2073 * tui/tui-win.c (make_visible_with_new_height): Update.
2075 2019-06-25 Tom Tromey <tom@tromey.com>
2077 * tui/tui-winsource.c (tui_erase_source_content)
2078 (tui_show_source_content, tui_show_exec_info_content)
2079 (tui_erase_exec_info_content): Use refresh_window method.
2080 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2081 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2082 from tui_refresh_win.
2083 (tui_data_window::refresh_window): New method.
2084 (tui_win_info::refresh, tui_source_window_base::refresh)
2085 (tui_refresh_all): Use refresh_window method.
2086 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2088 * tui/tui-regs.c (tui_display_register): Call refresh_window
2090 * tui/tui-layout.c (show_source_disasm_command)
2091 (show_source_or_disasm_and_command): Call refresh_window method.
2092 * tui/tui-data.h (struct tui_gen_win_info)
2093 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2096 2019-06-25 Tom Tromey <tom@tromey.com>
2098 * tui/tui.c (tui_rl_other_window, tui_enable)
2099 (tui_is_window_visible, tui_get_command_dimension): Update.
2100 * tui/tui-winsource.c (tui_update_source_window_as_is)
2101 (tui_clear_source_content, tui_erase_source_content)
2102 (tui_show_source_line, tui_source_window_base::refill)
2103 (tui_source_window_base::do_scroll_horizontal)
2104 (tui_source_window_base::set_is_exec_point_at)
2105 (tui_update_breakpoint_info, tui_set_exec_info_content)
2106 (tui_alloc_source_buffer, tui_line_is_displayed)
2107 (tui_addr_is_displayed): Update.
2108 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2109 (tui_check_and_display_highlight_if_needed)
2110 (tui_win_info::make_visible, tui_win_info::refresh)
2111 (tui_refresh_all): Update.
2112 * tui/tui-windata.c (tui_first_data_item_displayed)
2113 (tui_delete_data_content_windows, tui_erase_data_content)
2114 (tui_display_all_data, tui_data_window::refresh_all)
2115 (tui_check_data_values): Update.
2116 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2117 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2118 (tui_win_info::backward_scroll, tui_refresh_all_win)
2119 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2120 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2121 (tui_source_window_base::set_new_height)
2122 (tui_data_window::set_new_height)
2123 (make_invisible_and_set_new_height)
2124 (make_visible_with_new_height, new_height_ok)
2125 (parse_scrolling_args): Update.
2126 * tui/tui-stack.c (tui_show_frame_info): Update.
2127 * tui/tui-source.c (tui_set_source_content)
2128 (tui_set_source_content_nil, tui_source_is_displayed)
2129 (tui_source_window::do_scroll_vertical): Update.
2130 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2131 (tui_display_registers_from, tui_display_reg_element_at_line)
2132 (tui_check_register_values, tui_reg_command): Update.
2133 * tui/tui-layout.c (tui_default_win_height)
2134 (show_source_disasm_command, show_data, init_and_make_win)
2135 (show_source_or_disasm_and_command): Update.
2136 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2137 (tui_redisplay_readline, tui_mld_flush)
2138 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2140 * tui/tui-disasm.c (tui_set_disassem_content)
2141 (tui_disasm_window::do_scroll_vertical): Update.
2142 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2144 (struct tui_win_info): Derive from tui_gen_win_info.
2145 <~tui_win_info>: Mark as override.
2146 <generic>: Remove member.
2147 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2148 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2149 (~tui_data_window, ~tui_win_info)
2150 (tui_free_all_source_wins_content): Update.
2151 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2153 2019-06-25 Tom Tromey <tom@tromey.com>
2155 * tui/tui-layout.c (init_and_make_win): Use new.
2156 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2157 destructor, initializers.
2158 (tui_alloc_generic_win_info): Don't declare.
2159 * tui/tui-data.c (_locator): Add argument to constructor.
2160 (source_win, disasm_win): New globals.
2161 (exec_info): Remove.
2162 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2164 (tui_alloc_generic_win_info): Remove.
2165 (init_content_element): Use new.
2166 (tui_win_info::tui_win_info): Update.
2167 (free_content_elements) <case DATA_WIN>: Use delete.
2169 2019-06-25 Tom Tromey <tom@tromey.com>
2171 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2172 * tui/tui-windata.c (tui_first_data_item_displayed)
2173 (tui_delete_data_content_windows): Update.
2174 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2175 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2176 (tui_display_registers_from, tui_check_register_values): Update.
2177 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2179 * tui/tui-data.c (init_content_element): Update. Allocate the new
2181 (tui_free_data_content): Update.
2182 (free_content_elements) <case DATA_WIN>: Free the window.
2184 2019-06-25 Tom Tromey <tom@tromey.com>
2186 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2188 * tui/tui-layout.c (make_command_window)
2189 (show_source_disasm_command, show_data, init_and_make_win)
2190 (show_source_or_disasm_and_command): Update.
2191 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2193 <can_highight, is_highlighted>: Now bool.
2194 (tui_set_win_highlight): Don't declare.
2195 * tui/tui-data.c (tui_set_win_highlight): Remove.
2197 2019-06-25 Tom Tromey <tom@tromey.com>
2199 * tui/tui-wingeneral.c (make_visible): Remove check of window
2202 2019-06-25 Tom Tromey <tom@tromey.com>
2204 * tui/tui-win.c (tui_win_info::max_height)
2205 (tui_cmd_window::max_height): New methods.
2206 (new_height_ok): Call max_height.
2207 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2208 <max_height>: New method.
2210 2019-06-25 Tom Tromey <tom@tromey.com>
2212 * tui/tui-win.c (tui_source_window_base::set_new_height)
2213 (tui_data_window::set_new_height): New methods.
2214 (make_invisible_and_set_new_height): Call set_new_height method.
2215 * tui/tui-data.h (struct tui_win_info)
2216 (struct tui_source_window_base, struct tui_data_window)
2217 <set_new_height>: New method.
2219 2019-06-25 Tom Tromey <tom@tromey.com>
2221 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2222 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2223 tui_refresh_data_win.
2224 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2226 (tui_refresh_all_win): Call the refresh_all method.
2227 (tui_set_focus): Likewise.
2228 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2229 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2232 2019-06-25 Tom Tromey <tom@tromey.com>
2234 * tui/tui-winsource.h (tui_refill_source_window)
2235 (tui_set_is_exec_point_at): Don't declare.
2236 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2237 (tui_source_window_base::refill): Rename from
2238 tui_refill_source_window.
2239 (tui_source_window_base::do_scroll_horizontal): Update.
2240 (tui_source_window_base::set_is_exec_point_at): Rename from
2241 tui_set_is_exec_point_at.
2242 (tui_update_all_breakpoint_info): Update.
2243 * tui/tui-stack.c (tui_show_frame_info): Update.
2244 * tui/tui-layout.c (show_data): Add cast.
2245 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2246 * tui/tui-data.h (struct tui_source_window_base) <refill,
2247 set_is_exec_point_at>: New methods.
2248 (tui_source_windows, tui_add_to_source_windows): Update types.
2249 (tui_add_to_source_windows): Remove redundant declaration.
2250 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2251 (tui_source_windows): Change return type.
2252 (tui_clear_source_windows_detail): Update.
2253 (tui_add_to_source_windows): Change type of parameter.
2254 (tui_free_all_source_wins_content): Update.
2256 2019-06-25 Tom Tromey <tom@tromey.com>
2258 * tui/tui-wingeneral.c (tui_win_info::refresh)
2259 (tui_source_window_base::refresh): New methods.
2260 (tui_refresh_all): Call the refresh method.
2261 * tui/tui-data.h (struct tui_win_info)
2262 (struct tui_source_window_base) <refresh>: New method.
2264 2019-06-25 Tom Tromey <tom@tromey.com>
2266 * tui/tui.h (tui_is_window_visible): Return bool.
2267 * tui/tui.c (tui_is_window_visible): Return bool.
2268 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2269 (tui_make_visible, tui_make_invisible)
2270 (tui_win_info::make_visible)
2271 (tui_source_window_base::make_visible, make_all_visible)
2272 (tui_make_all_visible, tui_make_all_invisible): Update.
2273 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2274 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2276 (struct tui_win_info, struct tui_source_window_base)
2277 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2278 * tui/tui-data.c (tui_init_generic_part): Update.
2280 2019-06-25 Tom Tromey <tom@tromey.com>
2282 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2283 (tui_source_window_base::make_visible): New methods.
2284 (make_all_visible): Make method call.
2285 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2286 (struct tui_source_window_base, struct tui_cmd_window): Override
2288 (tui_win_is_source_type): Don't declare.
2289 * tui/tui-data.c (tui_win_is_source_type): Remove.
2291 2019-06-25 Tom Tromey <tom@tromey.com>
2293 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2296 2019-06-25 Tom Tromey <tom@tromey.com>
2298 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2299 Inline constructor. Add initializers for members.
2300 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2301 constructors; now inline in class.
2303 2019-06-25 Tom Tromey <tom@tromey.com>
2305 * tui/tui-regs.c (tui_show_registers): Update.
2306 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2308 * tui/tui-data.c (tui_data_window::clear_detail)
2309 (tui_data_window): Update.
2311 2019-06-25 Tom Tromey <tom@tromey.com>
2313 * tui/tui-windata.c (tui_display_all_data)
2314 (tui_display_data_from_line, tui_display_data_from)
2315 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2317 * tui/tui-regs.c (tui_last_regs_line_no)
2318 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2319 (tui_show_registers, tui_show_register_group)
2320 (tui_display_registers_from, tui_display_reg_element_at_line)
2321 (tui_display_registers_from_line, tui_check_register_values)
2322 (tui_reg_next, tui_reg_prev): Update.
2323 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2324 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2326 (struct tui_win_info) <detail>: Remove. Add new fields from
2328 (TUI_DATA_WIN): Add cast.
2329 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2330 (~tui_data_window): Simplify.
2332 2019-06-25 Tom Tromey <tom@tromey.com>
2334 * tui/tui-layout.c (show_source_disasm_command)
2335 (show_source_or_disasm_and_command): Update.
2336 * tui/tui-io.c (update_cmdwin_start_line)
2337 (tui_redisplay_readline): Update.
2338 * tui/tui-data.h (struct tui_command_info): Remove.
2339 (struct tui_win_info) <detail>: Remove command_info member.
2340 (struct tui_data_window) <start_line>: New member, from
2342 (TUI_CMD_WIN): Add casts.
2344 2019-06-25 Tom Tromey <tom@tromey.com>
2346 * tui/tui-winsource.c (tui_update_source_window)
2347 (tui_refill_source_window)
2348 (tui_source_window_base::do_scroll_horizontal)
2349 (tui_update_breakpoint_info, tui_set_exec_info_content)
2350 (tui_show_exec_info_content, tui_erase_exec_info_content)
2351 (tui_clear_exec_info_content): Update.
2352 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2354 * tui/tui-win.c (make_invisible_and_set_new_height)
2355 (make_visible_with_new_height): Update.
2356 * tui/tui-source.c (tui_set_source_content)
2357 (tui_show_symtab_source): Update.
2358 * tui/tui-layout.c (extract_display_start_addr)
2359 (show_source_disasm_command, show_data)
2360 (make_source_or_disasm_window)
2361 (show_source_or_disasm_and_command): Update.
2362 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2363 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2365 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2366 to tui_source_window_base.
2367 (struct tui_win_info) <detail>: Remove source_info member.
2368 (struct tui_source_window_base) <has_locator>: Inline.
2369 Move contents from tui_source_info; rename has_locator member to
2371 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2372 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2374 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2376 (tui_free_all_source_wins_content): Cast to
2377 tui_source_window_base.
2379 2019-06-25 Tom Tromey <tom@tromey.com>
2381 * tui/tui-win.c (make_invisible_and_set_new_height)
2382 (make_visible_with_new_height): Call has_locator method.
2383 * tui/tui-layout.c (show_source_disasm_command, show_data)
2384 (show_source_or_disasm_and_command): Update for bool change.
2385 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2386 (tui_win_info) <has_locator>: New method.
2387 (struct tui_source_window_base) <has_locator>: New method.
2388 (tui_win_has_locator): Don't declare.
2389 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2390 from tui_win_has_locator.
2391 (tui_source_window_base): Use false, not FALSE.
2393 2019-06-25 Tom Tromey <tom@tromey.com>
2395 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
2396 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
2397 clear_detail method directly.
2398 (tui_clear_win_detail): Remove.
2400 2019-06-25 Tom Tromey <tom@tromey.com>
2402 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
2403 "this", not TUI_DISASM_WIN.
2405 2019-06-25 Tom Tromey <tom@tromey.com>
2407 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
2409 * tui/tui-winsource.c
2410 (tui_source_window_base::do_scroll_horizontal): Rename from
2411 tui_horizontal_source_scroll.
2412 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
2413 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
2414 from tui_vertical_data_scroll.
2415 * tui/tui-win.h (tui_scroll): Don't declare.
2416 * tui/tui-win.c (tui_win_info::forward_scroll)
2417 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2418 (tui_win_info::right_scroll): Rename and update.
2419 (tui_scroll_forward_command, tui_scroll_backward_command)
2420 (tui_scroll_left_command, tui_scroll_right_command): Update.
2421 (tui_scroll): Remove.
2422 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
2423 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
2424 from tui_vertical_source_scroll.
2425 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
2426 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
2427 from tui_vertical_disassem_scroll.
2428 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
2429 do_scroll_horizontal>: New methods.
2430 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
2432 (struct tui_source_window_base): Add do_scroll_horizontal.
2433 (struct tui_source_window, struct tui_disasm_window): Add
2435 (struct tui_data_window, struct tui_cmd_window): Add
2436 do_scroll_horizontal and do_scroll_vertical.
2437 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
2439 2019-06-25 Tom Tromey <tom@tromey.com>
2441 * tui/tui-data.h (struct tui_source_window_base): New struct.
2442 (struct tui_source_window): Derive from tui_source_window_base.
2443 (struct tui_disasm_window): New struct.
2444 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
2445 from tui_source_window::clear_detail.
2446 (tui_source_window_base): Rename from tui_source_window.
2447 (~tui_source_window_base): Rename from ~tui_source_window.
2448 (tui_alloc_win_info): Create a tui_disasm_window.
2450 2019-06-25 Tom Tromey <tom@tromey.com>
2452 * tui/tui-data.h (struct tui_source_window)
2453 (struct tui_data_window): Declare destructors.
2454 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
2456 (tui_win_info): Simplify.
2458 2019-06-25 Tom Tromey <tom@tromey.com>
2460 * tui/tui-winsource.c (tui_display_main)
2461 (tui_update_source_windows_with_addr)
2462 (tui_update_all_breakpoint_info): Update.
2463 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2464 (new_height_ok, parse_scrolling_args): Update.
2465 * tui/tui-stack.c (tui_show_frame_info): Update.
2466 * tui/tui-data.h (struct tui_list): Remove.
2467 (tui_source_windows): Return a reference to a std::vector.
2468 * tui/tui-data.c (source_windows): Now a std::vector.
2469 (tui_source_windows): Change return type.
2470 (tui_clear_source_windows): Rewrite.
2471 (tui_clear_source_windows_detail, tui_add_to_source_windows)
2472 (tui_free_all_source_wins_content): Rewrite.
2474 2019-06-25 Tom Tromey <tom@tromey.com>
2476 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
2477 (struct tui_data_window, struct tui_cmd_window): Declare
2478 clear_detail method.
2479 * tui/tui-data.c (tui_source_window::clear_detail)
2480 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
2482 (tui_clear_win_detail): Simplify.
2484 2019-06-25 Tom Tromey <tom@tromey.com>
2486 * tui/tui-layout.c (make_source_window, make_disasm_window)
2487 (make_source_or_disasm_window): Remove win_info_ptr parameter.
2488 Return the new window.
2489 (show_source_disasm_command, show_data)
2490 (show_source_or_disasm_and_command): Update.
2492 2019-06-25 Tom Tromey <tom@tromey.com>
2494 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
2495 parameter. Return the new window.
2496 (show_source_disasm_command): Update and remove NULL check.
2497 (show_source_or_disasm_and_command): Update.
2499 2019-06-25 Tom Tromey <tom@tromey.com>
2501 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
2503 2019-06-25 Tom Tromey <tom@tromey.com>
2505 * tui/tui-data.h (struct tui_win_info): Make constructor
2506 protected. Make destructor virtual. Add initializers.
2507 (tui_source_window, tui_data_window, tui_cmd_window): New
2509 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
2510 constructor. Add "type" parameter.
2511 (tui_source_window, tui_data_window, tui_cmd_window): New
2513 (tui_alloc_win_info): Instantiate the appropriate subclass.
2515 2019-06-25 Tom Tromey <tom@tromey.com>
2517 * tui/tui-win.c (tui_resize_all): Use delete.
2518 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
2520 (tui_free_window): Don't declare.
2521 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
2524 2019-06-25 Tom Tromey <tom@tromey.com>
2526 * tui/tui-data.h (struct tui_win_info): Add constructor.
2527 * tui/tui-data.c (tui_alloc_win_info): Use new.
2528 (tui_free_window): Use delete.
2530 2019-06-22 Tom Tromey <tom@tromey.com>
2532 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
2534 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
2536 2019-06-22 Tom Tromey <tom@tromey.com>
2538 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
2540 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
2542 2019-06-22 Tom de Vries <tdevries@suse.de>
2544 * dwarf2read.c (create_addrmap_from_aranges)
2545 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
2548 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
2550 * dwarf2read.h (dwarf2_section_info_def): Remove.
2551 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
2552 * dwarf2read.c (struct dwo_sections) <types>: Change type to
2553 std::vector<dwarf2_section_info>.
2554 (struct dwo_file) <~dwo_file>: Remove.
2555 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
2557 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
2558 (dwarf2_read_debug_names): Likewise.
2559 (create_debug_types_hash_table): Change parameter type to
2560 array_view, adjust code accordingly.
2561 (dwarf2_locate_dwo_sections): Adjust to std::vector.
2562 (partial_die_info::fixup): Likewise.
2563 (determine_prefix): Likewise.
2564 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
2566 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2568 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
2570 <~dwo_file>: Remove call to gdb_bfd_unref.
2571 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
2572 gdb_bfd_ref_ptr::get.
2574 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2576 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
2578 * dwarf2read.c (struct dwo_file): Initialize fields.
2580 (free_dwo_file): Remove, move content to ~dwo_file.
2581 (struct dwo_file_deleter): Remove.
2582 (dwo_file_up>: Remove custom deleter.
2583 (free_dwo_files): Remove.
2584 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
2586 (process_skeletonless_type_units): Call unique_ptr::get.
2587 (allocate_dwo_file_hash_table): Add deleter to created hash
2588 table. Change return type to htab_up.
2589 (lookup_dwo_file_slot): Don't memset dwo_file, call
2591 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
2592 (create_dwo_unit_in_dwp_v2): Likewise.
2593 (open_and_init_dwo_file): Likewise.
2594 (free_dwo_file_from_slot): Remove.
2596 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2598 * dwarf2read.h (struct dwarf2_section_info) <readin,
2599 is_virtual>: Change type to bool.
2600 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
2603 2019-06-19 Tom Tromey <tom@tromey.com>
2605 * tui/tui-data.h (tui_init_content_element): Don't declare.
2607 2019-06-19 Tom Tromey <tom@tromey.com>
2609 * tui/tui-data.h (tui_init_win_info): Don't declare.
2611 2019-06-19 Tom de Vries <tdevries@suse.de>
2613 * dwarf2read.h (abstract_to_concrete): Change type to
2614 std::unordered_map<sect_offset, std::vector<sect_offset>,
2615 gdb::hash_enum<sect_offset>>.
2617 2019-06-19 Tom Tromey <tromey@adacore.com>
2619 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
2620 EVAL_AVOID_SIDE_EFFECTS specially.
2622 2019-06-19 Tom Tromey <tromey@adacore.com>
2624 * source-cache.c (highlighter): New global.
2625 (source_cache::get_source_lines): Create a highlighter on demand.
2627 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
2629 * defs.h (deprecated_interactive_hook): Delete declaration.
2630 * interps.c (clear_interpreter_hooks): Remove use of
2631 deprecated_interactive_hook.
2632 * top.c (deprecated_interactive_hook): Delete definition.
2633 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
2635 2019-06-18 Tom de Vries <tdevries@suse.de>
2638 * dwarf2read.h (abstract_to_concrete): Change type from
2639 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
2640 std::unordered_map<sect_offset, std::vector<sect_offset>>.
2641 * dwarf2read.c (read_variable): Update.
2642 (dwarf2_fetch_die_loc_sect_off): Update.
2644 2019-06-17 Tom de Vries <tdevries@suse.de>
2647 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
2648 accessing parent[parent_len - 1].
2650 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2653 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
2654 call dtrace_process_dof with NULL dof.
2656 2019-06-16 Tom de Vries <tdevries@suse.de>
2659 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
2661 2019-06-16 Tom Tromey <tom@tromey.com>
2663 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2664 (make_all_visible): Use address of member.
2666 2019-06-16 Tom Tromey <tom@tromey.com>
2668 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
2669 (tui_free_window, free_content, free_content_elements): Remove
2671 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
2673 * tui/tui-regs.c (tui_show_register_group)
2674 (tui_display_registers_from, tui_display_reg_element_at_line):
2675 Remove unnecessary cast.
2677 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
2679 * linux-nat.c (normal_mask): Delete.
2680 (_initialize_linux_nat): Don't initialise normal_mask.
2682 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
2685 * dwarf-index-write.h (write_psymtabs_to_index): Add
2686 dwz_basename parameter.
2687 * dwarf-index-write.c (write_gdbindex): Move file writing to
2688 write_gdbindex_1. Change return type void.
2689 (assert_file_size): Move up, remove filename parameter.
2690 (write_gdbindex_1): New function.
2691 (write_debug_names): Change return type to void, call
2693 (struct index_wip_file): New struct.
2694 (write_psymtabs_to_index): Add dwz_basename parameter. Move
2695 file logic to index_wip_file. Write index for dwz file if
2697 (save_gdb_index_command): Pass basename of dwz file, if present.
2698 * dwarf-index-cache.c (index_cache::store): Obtain and pass
2699 build-id of dwz file, if present.
2700 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
2701 (dwarf2_get_dwz_file): Likewise.
2702 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
2703 (dwarf2_get_dwz_file): Likewise.
2705 2019-06-16 Tom Tromey <tom@tromey.com>
2707 * coffread.c (process_coff_symbol): Use xstrdup.
2708 * value.c (create_internalvar): Use xstrdup.
2710 2019-06-16 Tom Tromey <tom@tromey.com>
2712 * valops.c (value_cast, value_slice): Remove unnecessary cast.
2713 * breakpoint.c (stopin_command, stopat_command)
2714 (until_break_command, decode_location_default): Remove unnecessary
2716 * utils.c (subset_compare): Remove unnecessary cast.
2717 * ada-lang.c (ada_update_initial_language): Remove unnecessary
2719 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
2721 * infcmd.c (path_command): Remove unnecessary cast.
2722 * coffread.c (decode_type): Remove unnecessary cast.
2723 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
2724 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
2725 * tui/tui-stack.c (tui_show_locator_content)
2726 (tui_show_frame_info): Remove unnecessary cast.
2727 * tui/tui-win.c (tui_scroll_forward_command)
2728 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
2729 (parse_scrolling_args): Remove unnecessary cast.
2730 * tui/tui-data.c (init_win_info, tui_del_window)
2731 (tui_free_window, tui_del_data_windows, tui_free_data_content)
2732 (free_content_elements): Remove unnecessary cast.
2733 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
2735 * tui/tui-source.c (tui_set_source_content)
2736 (tui_vertical_source_scroll): Remove unnecessary cast.
2737 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
2739 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
2740 * tui/tui-regs.c (tui_display_registers_from)
2741 (tui_display_register): Remove unnecessary cast.
2742 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
2743 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
2744 (make_visible): Remove unnecessary cast.
2745 * tui/tui-winsource.c (tui_erase_source_content)
2746 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
2748 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
2749 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
2750 * stabsread.c (read_type, read_array_type, read_range_type):
2751 Remove unnecessary cast.
2752 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
2753 (parse_symbol, parse_type, upgrade_type, parse_external)
2754 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
2756 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
2758 2019-06-16 Tom Tromey <tom@tromey.com>
2760 * tui/tui-data.c (tui_alloc_generic_win_info)
2761 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
2764 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
2765 Andrew Burgess <andrew.burgess@embecosm.com>
2767 * f-typeprint.c (f_print_type): Don't return early for not
2768 associated or not allocated types.
2769 (f_type_print_varspec_suffix): Add print_rank parameter and print
2770 ranks of array types in case they dangling.
2771 (f_type_print_base): Add print_rank parameter.
2773 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2775 * NEWS: Mention new MI commands.
2776 * break-catch-throw.c (enum exception_event_kind): Move to
2778 (print_mention_exception_catchpoint): Output text as a single
2780 (catch_exception_command_1): Rename to...
2781 (catch_exception_event): ...this, make non-static, update header
2782 command, and change some parameter types.
2783 (catch_catch_command): Update for changes to
2784 catch_exception_command_1.
2785 (catch_throw_command): Likewise.
2786 (catch_rethrow_command): Likewise.
2787 * breakpoint.c (enum exception_event_kind): Delete.
2788 * breakpoint.h (enum exception_event_kind): Moved here from
2789 break-catch-throw.c.
2790 (catch_exception_event): Declare.
2791 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
2792 (mi_cmd_catch_throw): New function.
2793 (mi_cmd_catch_rethrow): New function.
2794 (mi_cmd_catch_catch): New function.
2795 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
2796 'catch-catch' entries.
2797 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
2798 (mi_cmd_catch_rethrow): Declare.
2799 (mi_cmd_catch_catch): Declare.
2801 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2803 * annotate.c (annotate_source_line): Change return type to void,
2804 update implementation to match.
2805 * annotate.h (annotate_source_line): Change return type to void,
2806 update header comment.
2807 * stack.c (print_frame_info): Don't change what frame information
2808 is printed based on whether annotations are on or not.
2810 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2812 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
2813 (annotate_source): Make static.
2814 (annotate_source_line): Moved from source.c and renamed from
2815 identify_source_line. Update the return type.
2816 * annotate.h (annotate_source): Delete declaration.
2817 (annotate_source_line): Declaration moved from source.h, and
2818 renamed from identify_source_line. Return type updated.
2819 * source.c (identify_source_line): Moved to annotate.c and renamed
2820 to annotate_source_line.
2821 (info_line_command): Remove check of annotation_level.
2822 * source.h (identify_source_line): Move declaration to annotate.h
2823 and rename to annotate_source_line.
2824 * stack.c: Add 'annotate.h' include.
2825 (print_frame_info): Remove check of annotation_level before
2826 calling annotate_source_line.
2828 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2830 * source-cache.c (source_cache::get_plain_source_lines): Use
2831 open_source_file_with_line_charpos instead of just
2832 open_source_file, remove call to find_source_lines.
2833 (source_cache::get_source_lines): Likewise.
2834 * source.c (find_source_lines): Make static.
2835 (get_filename_and_charpos): Renamed into...
2836 (open_source_file_with_line_charpos): ..this along with changes to
2837 return a scoped_fd, and some other minor clean ups.
2838 (identify_source_line): Use open_source_file_with_line_charpos.
2839 (search_command_helper): Use open_source_file_with_line_charpos
2840 instead of just open_source_file, remove call to
2842 * source.h (open_source_file_with_line_charpos): Declare new
2844 (find_source_lines): Delete declaration.
2846 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2848 * source.c (get_filename_and_charpos): Remove fullname
2850 (identify_source_line): Update call to get_filename_and_charpos.
2852 2019-06-14 Tom Tromey <tromey@adacore.com>
2855 * ui-style.h (skip_ansi_escape): Update comment.
2856 * ui-file.h (class no_terminal_escape_file): New class.
2857 * ui-file.c (no_terminal_escape_file::write)
2858 (no_terminal_escape_file::puts): New methods.
2859 * cli/cli-logging.c (handle_redirections): Use
2860 no_terminal_escape_file.
2862 2019-06-14 Tom Tromey <tromey@adacore.com>
2864 * NEWS: Move convenience variable news above Python news.
2866 2019-06-14 Tom Tromey <tom@tromey.com>
2868 * gnulib: Move directory to top-level.
2869 * configure.ac: Don't configure gnulib.
2870 * configure: Rebuild.
2871 * common/common-defs.h: Use new path to gnulib.
2872 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
2874 (INCGNU): Look in new gnulib location.
2875 (HFILES_NO_SRCDIR): Remove gnulib files.
2876 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
2877 (generated_files): Remove GNULIB_H.
2878 ($(LIBGNU), all-lib): Remove targets.
2879 (distclean): Don't mention GNULIB_BUILDDIR.
2880 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
2882 2019-06-14 Tom Tromey <tromey@adacore.com>
2884 * symfile.c (add_symbol_file_command): Remove obsolete comment.
2885 Warn if symbol file does not provide any symbols.
2887 2019-06-14 Tom Tromey <tromey@adacore.com>
2889 * source.c (find_and_open_source): Respect basenames_may_differ.
2891 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
2893 * annotate.c (annotate_breakpoints_invalid): Make use of
2894 scoped_restore_terminal_state.
2895 (annotate_frames_invalid): Likewise.
2897 2019-06-14 Tom Tromey <tromey@adacore.com>
2899 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
2900 allow assignment to an internalvar.
2902 2019-06-14 Tom Tromey <tromey@adacore.com>
2904 * ada-lex.l: Allow "_" in attribute names.
2906 2019-06-14 Tom Tromey <tromey@adacore.com>
2909 * regcache.c (registers_changed): Don't call alloca.
2910 * top.c (execute_command): Don't call alloca.
2912 2019-06-13 Pedro Alves <palves@redhat.com>
2914 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
2915 'expression'. When parsing an expression, error out if there's
2916 junk after "unlimited".
2917 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2918 (do_set_command): Adjust calls to is_unlimited_literal.
2920 2019-06-13 Pedro Alves <palves@redhat.com>
2922 * compile/compile.c (make_compile_options_def_group): Add braces
2923 around array_view initializer.
2924 * thread.c (make_thread_apply_all_options_def_group)
2925 (make_thread_apply_all_options_def_group): Likewise.
2927 2019-06-13 Pedro Alves <palves@redhat.com>
2929 * NEWS (New commands): Mention "maint test-options
2930 require-delimiter", "maint test-options unknown-is-error", "maint
2931 test-options unknown-is-operand" and "maint show
2932 test-options-completion-result".
2933 (New command options, command completion): New section.
2934 (Completion improvements): New section.
2935 Mention that you can abbreviate "unlimited".
2937 2019-06-13 Pedro Alves <palves@redhat.com>
2939 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
2940 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
2941 * unittests/cli-utils-selftests.c (test_parse_flags)
2942 (test_parse_flags_qcs): Delete.
2943 (test_cli_utils): Don't call deleted functions.
2945 2019-06-13 Pedro Alves <palves@redhat.com>
2947 * thread.c: Include "cli/cli-option.h".
2948 (tp_array_compar_ascending): Global.
2949 (tp_array_compar): Delete function.
2950 (tp_array_compar_ascending, tp_array_compar_descending): New
2952 (ascending_option_def, qcs_flag_option_def)
2953 (thr_qcs_flags_option_defs)
2954 (make_thread_apply_all_options_def_group)
2955 (make_thread_apply_options_def_group): New.
2956 (thread_apply_all_command): Use gdb::option::process_options.
2957 (thread_apply_command_completer)
2958 (thread_apply_all_command_completer): New.
2959 (thread_apply_command): Use gdb::option::process_options.
2960 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
2961 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
2962 to generate help text of "thread apply". Adjust "taas"'s help.
2963 * tid-parse.c (tid_range_parser::in_thread_range): New method.
2964 * tid-parse.h (tid_range_parser::in_thread_range): New method.
2966 2019-06-13 Pedro Alves <palves@redhat.com>
2968 * thread.c (thread_apply_command): Check for invalid TID with
2969 isdigit instead of !isalpha.
2971 2019-06-13 Pedro Alves <palves@redhat.com>
2973 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
2974 (validate_flags_qcs): New.
2975 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
2976 (validate_flags_qcs): Declare.
2977 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
2978 (make_frame_apply_options_def_group): New.
2979 (frame_apply_command_count): Process options with
2980 gdb::option::process_options.
2981 (frame_apply_completer): New.
2982 (frame_apply_level_completer, frame_apply_all_completer)
2983 (frame_apply_completer): New.
2984 (_initialize_stack): Update help of "frame apply", "frame apply
2985 level", "frame apply all" and "faas" to mention supported options
2986 and install command completers.
2987 * stack.h (frame_apply_all_completer): Declare.
2988 * thread.c: Include "stack.h".
2989 (tfaas_command): Add "--".
2990 (_initialize_thread): Update help "tfaas" to mention supported
2991 options and install command completer.
2993 2019-06-13 Pedro Alves <palves@redhat.com>
2995 * completer.c (complete_nested_command_line): New.
2996 (gdb_completion_word_break_characters_throw): Add assertion.
2997 * completer.h (complete_nested_command_line): Declare.
2999 2019-06-13 Pedro Alves <palves@redhat.com>
3001 * stack.c (parse_backtrace_qualifiers): New.
3002 (backtrace_command): Use it.
3003 (backtrace_command_completer): Complete on qualifiers.
3005 2019-06-13 Pedro Alves <palves@redhat.com>
3007 * frame.c: Include "cli/cli-option.h.
3008 (user_set_backtrace_options): New.
3009 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3011 (get_prev_frame): Adjust.
3012 (boolean_option_def, uinteger_option_def)
3013 (set_backtrace_option_defs): New.
3014 (_initialize_frame): Adjust and use
3015 gdb::option::add_setshow_cmds_for_options to install "set
3016 backtrace past-main" and "set backtrace past-entry".
3017 * frame.h: Include "cli/cli-option.h".
3018 (struct frame_print_options): Forward declare.
3019 (print_frame_arguments_all, print_frame_arguments_scalars)
3020 (print_frame_arguments_none): Declare.
3021 (print_entry_values): Delete declaration.
3022 (struct frame_print_options, user_frame_print_options): New.
3023 (struct set_backtrace_options): New.
3024 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3025 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3026 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3027 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3028 (list_args_or_locals): Add frame_print_options parameter.
3029 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3030 * python/py-framefilter.c (enumerate_args): Pass down
3031 USER_FRAME_PRINT_OPTIONS.
3032 * stack.c: Include "cli/cli-option.h".
3033 (print_frame_arguments_all, print_frame_arguments_scalars)
3034 (print_frame_arguments_none): Declare.
3035 (print_raw_frame_arguments, print_entry_values): Delete.
3036 (user_frame_print_options): New.
3037 (boolean_option_def, enum_option_def, frame_print_option_defs):
3039 (struct backtrace_cmd_options): New.
3040 (bt_flag_option_def): New.
3041 (backtrace_command_option_defs): New.
3042 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3043 (print_frame_arg, read_frame_arg, print_frame_args)
3044 (print_frame_info, print_frame): Add frame_print_options parameter
3046 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3047 (backtrace_command_1): Add frame_print_options and
3048 backtrace_cmd_options parameters and use them.
3049 (make_backtrace_options_def_group): New.
3050 (backtrace_command): Process command options with
3051 gdb::option::process_options.
3052 (backtrace_command_completer): New.
3053 (_initialize_stack): Extend "backtrace"'s help to mention
3054 supported options. Install completer for "backtrace".
3055 Install some settings commands with add_setshow_cmds_for_options.
3057 2019-06-13 Pedro Alves <palves@redhat.com>
3059 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3060 and that "set/show print raw frame-arguments" are now deprecated.
3062 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3064 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3065 * stack.c (_initialize_stack): Install "set/show print
3066 raw-frame-arguments", and deprecate "set/show print raw
3068 * valprint.c (_initialize_valprint): Deprecate "set/show print
3071 2019-06-13 Pedro Alves <palves@redhat.com>
3073 * compile/compile.c (struct compile_options): New.
3074 (compile_flag_option_def, compile_command_option_defs)
3075 (make_compile_options_def_group): New.
3076 (compile_file_command): Handle options with
3077 gdb::option::process_options.
3078 (compile_file_command_completer): New function.
3079 (compile_code_command): Handle options with
3080 gdb::option::process_options.
3081 (compile_code_command_completer): New function.
3082 (_initialize_compiler): Install completers for "compile code" and
3083 "compile file". Mention available options in "compile code" and
3084 "compile code"'s help.
3085 * completer.c (advance_to_completion_word): New, factored out from
3087 (advance_to_expression_complete_word_point): ... this.
3088 (advance_to_filename_complete_word_point): New.
3089 * completer.h (advance_to_filename_complete_word_point): New
3092 2019-06-13 Pedro Alves <palves@redhat.com>
3094 * compile/compile.c: Include "cli/cli-option.h".
3095 (compile_print_value): Scope data pointer is now a
3096 value_print_options pointer; adjust.
3097 (compile_print_command): Process options. Scope data pointer is
3098 now a value_print_options pointer; adjust.
3099 (_initialize_compile): Update "compile print"'s help to include
3100 supported options. Install a completer for "compile print".
3101 * cp-valprint.c (show_vtblprint, show_objectprint)
3102 (show_static_field_print): Delete.
3103 (_initialize_cp_valprint): Don't install "set print
3104 static-members", "set print vtbl", "set print object" here.
3105 * printcmd.c: Include "cli/cli-option.h" and
3106 "common/gdb_optional.h".
3107 (print_command_parse_format): Rework to fill in a
3108 value_print_options instead of a format_data.
3109 (print_value): Change parameter type from format_data pointer to
3110 value_print_options reference. Adjust.
3111 (print_command_1): Process options. Adjust to pass down a
3112 value_print_options.
3113 (print_command_completer): New.
3114 (_initialize_printcmd): Install print_command_completer as
3115 handle_brkchars completer for the "print" command. Update
3116 "print"'s help to include supported options.
3117 * valprint.c: Include "cli/cli-option.h".
3118 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3119 here from cp-valprint.c.
3120 (boolean_option_def, uinteger_option_def)
3121 (value_print_option_defs, make_value_print_options_def_group):
3122 New. Use gdb::option::add_setshow_cmds_for_options to install
3123 "set print elements", "set print null-stop", "set print repeats",
3124 "set print pretty", "set print union", "set print array", "set
3125 print address", "set print symbol", "set print array-indexes".
3126 * valprint.h: Include <string> and "cli/cli-option.h".
3127 (make_value_print_options_def_group): Declare.
3128 (print_value): Change parameter type from format_data pointer to
3129 value_print_options reference.
3130 (print_command_completer): Declare.
3132 2019-06-13 Pedro Alves <palves@redhat.com>
3134 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3135 (COMMON_SFILES): Add maint-test-settings.c.
3136 * cli/cli-decode.c (boolean_enums): New global, factored out from
3138 (add_setshow_boolean_cmd): ... here.
3139 * cli/cli-decode.h (boolean_enums): Declare.
3140 * cli/cli-option.c: New file.
3141 * cli/cli-option.h: New file.
3142 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3143 factored out from ...
3144 (parse_cli_boolean_value(const char *)): ... this.
3145 (is_unlimited_literal): Change parameter type to pointer to
3146 pointer. Adjust and advance ARG pointer.
3147 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3148 (parse_cli_var_enum): New, factored out from ...
3149 (do_set_command): ... this. Adjust.
3150 * cli/cli-setshow.h (parse_cli_boolean_value)
3151 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3152 (parse_cli_var_enum): Declare.
3153 * cli/cli-utils.c: Include "cli/cli-option.h".
3154 (get_ulongest): New.
3155 * cli/cli-utils.h (get_ulongest): Declare.
3156 (check_for_argument): New overloads.
3157 * maint-test-options.c: New file.
3159 2019-06-13 Pedro Alves <palves@redhat.com>
3161 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3162 parse a range if "-" is at the end of the string.
3164 2019-06-13 Pedro Alves <palves@redhat.com>
3166 * cli/cli-setshow.c (parse_auto_binary_operation)
3167 (parse_cli_boolean_value): Don't allow "o".
3169 2019-06-13 Pedro Alves <palves@redhat.com>
3171 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3172 * NEWS: Mention maint test-settings KIND.
3173 * maint-test-settings.c: New file.
3175 2019-06-13 Pedro Alves <palves@redhat.com>
3177 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3179 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3182 2019-06-13 Pedro Alves <palves@redhat.com>
3184 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3187 2019-06-13 Pedro Alves <palves@redhat.com>
3189 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3191 2019-06-13 Pedro Alves <palves@redhat.com>
3193 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3194 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3196 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3197 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3199 (check_for_argument): Skip spaces after argument.
3201 2019-06-13 Pedro Alves <palves@redhat.com>
3203 * thread.c (thread_apply_command): Adjust TID parsing.
3204 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3205 detected before end of string.
3206 (tid_is_in_list): Error out if LIST is invalid.
3208 2019-06-13 Pedro Alves <palves@redhat.com>
3210 * completer.c (complete_line_internal_1): Rewind completion word
3212 (completion_tracker::advance_custom_word_point_by): Change
3213 parameter type to int.
3214 * completer.h (completion_tracker::advance_custom_word_point_by):
3217 2019-06-13 Pedro Alves <palves@redhat.com>
3219 * completer.c (advance_to_completion_word): Handle delimiters.
3221 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3223 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3225 2019-06-11 Tom Tromey <tom@tromey.com>
3227 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3228 (xmalloc_failed): Move to alloc.c.
3229 * alloc.c: New file.
3230 * Makefile.in (COMMON_SFILES): Add alloc.c.
3232 2019-06-11 Tom Tromey <tom@tromey.com>
3234 * nat/linux-waitpid.c: Don't include server.h.
3235 (linux_debug): Remove.
3236 (my_waitpid): Update.
3238 2019-06-11 Tom Tromey <tromey@adacore.com>
3240 * infcall.c (_initialize_infcall): Remove trailing newline from
3242 * user-regs.c (_initialize_user_regs): Remove trailing newline
3244 * typeprint.c (_initialize_typeprint): Remove trailing newline
3246 * reverse.c (_initialize_reverse): Remove trailing newlines from
3248 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3250 * language.c (add_set_language_command): Remove trailing newline
3252 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3254 * disasm.c (_initialize_disasm): Remove trailing newline from
3256 * top.c (init_main): Remove trailing newline from help.
3257 * interps.c (_initialize_interpreter): Remove trailing newline
3259 * btrace.c (_initialize_btrace): Remove trailing newlines from
3261 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3263 * python/python.c (_initialize_python): Remove trailing newline
3265 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3267 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3268 from help. Reformat some text.
3269 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3271 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3274 2019-06-11 Tom Tromey <tromey@adacore.com>
3276 * darwin-nat.c (darwin_decode_exception_message)
3277 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3279 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3281 * valops.c (value_slice): Check for not allocated or not
3284 2019-06-10 Tom de Vries <tdevries@suse.de>
3287 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3288 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3291 2019-06-10 Tom de Vries <tdevries@suse.de>
3294 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3295 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3297 2019-06-10 Tom de Vries <tdevries@suse.de>
3300 * symtab.c (struct demangled_name_entry): Add language field.
3301 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3302 static minimal symbol". Set and use language field.
3304 2019-06-10 Tom Tromey <tromey@adacore.com>
3306 * ada-lang.c (_initialize_ada_language): Update help text.
3308 2019-06-10 Tom Tromey <tromey@adacore.com>
3310 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3312 * guile/guile.c (handle_boot_error): Don't end warning with a
3314 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3315 warning with a newline.
3316 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3318 (s12z_frame_cache): Likewise.
3319 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3321 * solib-svr4.c (disable_probes_interface): Don't end warning with
3323 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3325 * python/python.c (do_finish_initialization): Don't end warning
3328 2019-06-10 Tom Tromey <tom@tromey.com>
3330 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3331 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3334 2019-06-10 Tom Tromey <tromey@adacore.com>
3336 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3338 (elf_new_init): Don't call stabsread_new_init.
3339 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3340 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3341 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3343 2019-06-10 Tom de Vries <tdevries@suse.de>
3347 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3349 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3351 * source.c (find_and_open_source): Also rewrite relative file
3354 2019-04-26 Amos Bird <amosbird@gmail.com>
3356 * annotate.c (annotate_thread_exited): Add "thread-exited"
3359 2019-06-06 Tom Tromey <tromey@adacore.com>
3361 * maint.h (class scoped_command_stats): Use
3362 DISABLE_COPY_AND_ASSIGN.
3363 <print_time>: New method.
3364 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3366 (scoped_command_stats::print_time): New method.
3368 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3370 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3371 instructions of lengths 6 or 8 bytes.
3373 2019-06-04 Pedro Alves <palves@redhat.com>
3375 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3377 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3378 * breakpoint.c (condition_completer): Likewise.
3379 * cli/cli-dump.c (scan_expression): Likewise.
3380 * common/filestuff.c (mkdir_recursive): Likewise.
3381 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3382 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3383 (gdb_abspath): Likewise.
3384 * compile/compile-cplus-types.c
3385 (compile_cplus_instance::decl_name): Likewise.
3386 * completer.c (complete_explicit_location):
3387 (signal_completer, reg_or_group_completer_1): Likewise.
3388 * cp-support.c (cp_remove_params_if_any): Likewise.
3389 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3390 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3391 * infcmd.c (strip_bg_char): Likewise.
3392 * linespec.c (copy_token_string): Likewise.
3393 * mi/mi-main.c (output_cores): Likewise.
3394 * psymtab.c (psymtab_search_name):
3395 * symfile.c (test_set_ext_lang_command): Likewise.
3396 * target.c (target_fileio_read_stralloc): Likewise.
3397 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
3398 * value.c (complete_internalvar): Likewise.
3400 2019-06-04 Christian Biesinger <cbiesinger@google.com>
3402 Add objfile property to gdb.Type.
3403 * NEWS: Mention Python API addition.
3404 * python/py-type.c (typy_get_objfile): New method.
3406 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3408 * NEWS: Mention the new set|show style [title|highlight].
3409 Mention changes to "show style", "help" and "apropos".
3411 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3413 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
3414 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
3415 instead of print_help_for_command.
3416 (print_doc_of_command): New function.
3417 (help_list): Add 'apropos -v word' suggestion.
3418 (print_help_for_command): Style the command name using title style.
3419 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
3420 (_initialize_cli_cmds): Describe -v in apropos_command help.
3422 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3424 * cli/cli-style.h (cli_style_option): Add name in constructor,
3425 add m_name class member, add constructor with intensity,
3426 add name class function.
3427 (cli_style_option::add_setshow_commands): Remove name argument.
3428 (highlight_style, title_style): New styles.
3429 * cli/cli-style.c (do_show): New function that shows a style
3430 characteristic styling the style name with itself.
3431 (set_style_name): New function.
3432 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
3433 Update all callers according to the changes in cli/cli-style.h.
3434 * utils.h (fputs_highlighted): New function.
3435 * utils.c (fputs_highlighted): Likewise.
3437 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3439 * NEWS: Mention new pipe command and new convenience variables.
3441 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3443 * cli/cli-cmds.c (pipe_command): New function.
3444 (_initialize_cli_cmds): Call add_com for pipe_command.
3445 Define | as an alias for pipe.
3446 (exit_status_set_internal_vars): New function.
3447 (shell_escape): Call exit_status_set_internal_vars.
3448 cli/cli-decode.c (find_command_name_length): Recognize | as
3449 a single character command.
3451 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3453 * gdbcmd.h (execute_command_to_ui_file): New declaration.
3454 top.c (execute_command_to_ui_file): New function, mostly a copy
3455 of execute_command_to_string.
3456 (execute_command_to_string): Implement by calling
3457 execute_command_to_ui_file.
3459 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3461 * top.h (saved_command_line): Remove declaration.
3462 * top.c (previous_saved_command_line, previous_repeat_arguments):
3464 (saved_command_line): Make static, define together with other
3466 (dont_repeat): Clear repeat_arguments.
3467 (repeat_previous, get_saved_command_line, save_command_line):
3469 (gdb_init): Initialize saved_command_line
3470 and previous_saved_command_line.
3471 * main.c (captured_main_1): Remove saved_command_line initialization.
3472 * event-top.c (handle_line_of_input): Update to use
3473 the new 'repeat' related functions instead of direct access to
3475 * command.h (repeat_previous, get_saved_command_line,
3476 save_command_line): New declarations.
3477 (dont_repeat): Add comment.
3479 2019-05-30 Tom Tromey <tromey@adacore.com>
3481 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
3483 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
3485 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
3488 * completer.c (complete): Initialize variable word.
3490 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
3492 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
3493 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
3494 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
3495 'body' is NULL to the outter 'if', protecting the '!is_define'
3498 2019-05-29 Tom Tromey <tromey@adacore.com>
3500 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
3501 (dwarf_unknown): New function.
3502 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
3503 (dwarf_type_encoding_name): Use dwarf_unknown.
3505 2019-05-29 Tom Tromey <tromey@adacore.com>
3508 * cp-valprint.c (cp_print_value_fields): Call
3509 cp_print_static_field inside "try".
3511 2019-05-29 Tom Tromey <tromey@adacore.com>
3513 * inflow.c (struct terminal_info): Add default operator=.
3514 * configure: Rebuild.
3515 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
3516 -Wdeprecated-copy-dtor, -Wredundant-move.
3518 2019-05-29 Tom Tromey <tromey@adacore.com>
3521 * infcmd.c (print_return_value_1): Handle finish_print
3523 (show_print_finish): New function.
3524 (_initialize_infcmd): Add "set/show print finish" commands.
3525 * valprint.c (user_print_options): Initialize new member.
3526 * valprint.h (struct value_print_options) <finish_print>: New
3529 2019-05-28 Tom Tromey <tromey@adacore.com>
3531 * ada-lang.c (ada_remove_Xbn_suffix)
3532 (find_old_style_renaming_symbol)
3533 (parse_old_style_renaming): Remove.
3534 (ada_find_renaming_symbol): Don't call
3535 find_old_style_renaming_symbol.
3536 (ada_is_renaming_symbol): Rename from
3537 ada_find_renaming_symbol. Remove "block" parameter. Return
3539 (ada_read_var_value): Update and simplify.
3540 * ada-exp.y (write_var_or_type): Remove old code.
3542 2019-05-28 Alan Hayward <alan.hayward@arm.com>
3544 * event-top.c: Remove include comment.
3545 * inflow.c (class scoped_ignore_sigttou): Move from here...
3546 * inflow.h (class scoped_ignore_sigttou): ...to here.
3547 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
3548 * top.c: Remove include comment.
3550 2019-05-27 Tom Tromey <tom@tromey.com>
3554 2019-05-22 Tom Tromey <tromey@adacore.com>
3556 * target.c (target_follow_exec): Constify parameter.
3557 * target-delegates.c: Rebuild.
3558 * remote.c (remote_target::follow_exec): Constify parameter.
3559 * infrun.c (follow_exec): Constify parameter.
3560 * target.h (struct target_ops) <follow_exec>: Constify parameter.
3561 (target_follow_exec): Likewise.
3563 2019-05-22 Alan Hayward <alan.hayward@arm.com>
3565 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
3566 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
3568 2019-05-22 Alan Hayward <alan.hayward@arm.com>
3570 * NEWS: Add debugredirect and testsuite sections.
3572 2019-05-22 Simon Cook <simon.cook@embecosm.com>
3574 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
3575 target descriptions using exclusively floating point register name
3578 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3581 * f-lang.c (build_fortran_types): Handle the case where
3582 gdbarch_floatformat_for_type returns a nullptr.
3584 2019-05-21 Tom de Vries <tdevries@suse.de>
3587 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
3589 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3592 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
3594 * i386-tdep.c (i386_floatformat_for_type): Use
3595 floatformats_ia64_quad for the 16-byte floating point component
3596 within a fortran 32-byte complex number.
3598 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3600 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
3601 delete default constructor.
3602 (find_partial_die): Update to return const struct.
3603 (partial_die_parent_scope): Move variable declaration into scope
3604 of its use and change its type to auto.
3605 (guess_partial_die_structure_name): Likewise.
3606 (partial_die_info::fixup): Likewise.
3608 2019-05-17 Tom Tromey <tromey@adacore.com>
3610 * source.c (find_and_open_source): Remove cast.
3612 2019-05-17 Tom Tromey <tromey@adacore.com>
3614 * annotate.c (annotate_source): Make "filename" const.
3615 * annotate.h (annotate_source): Use const.
3617 2019-05-17 Alan Hayward <alan.hayward@arm.com>
3619 * disasm.c (set_disassembler_options): Send errors to stderr.
3621 2019-05-17 Alan Hayward <alan.hayward@arm.com>
3623 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
3624 (cli_interp_base::set_logging): Check debug_redirect.
3625 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
3626 * cli/cli-logging.c (debug_redirect): Add static variable.
3627 (pop_output_files): Add default param.
3628 (handle_redirections): Print debug setting.
3629 (show_logging_command): Likewise.
3630 (_initialize_cli_logging): Add debugredirect command.
3631 * interps.c (current_interp_set_logging): Add debug_redirect
3633 * interps.h (set_logging): Add debug_redirect parameter.
3634 (current_interp_set_logging): Likewise.
3635 * mi/mi-common.h: Likewise.
3636 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
3638 2019-05-17 Alan Hayward <alan.hayward@arm.com>
3639 Tom Tromey <tromey@adacore.com>
3641 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
3643 * cli/cli-interp.h (make_logging_output): Remove declaration.
3644 * cli/cli-logging.c (make_logging_output): Remove function.
3645 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
3647 * ui-file.c (tee_file::tee_file): Remove bools.
3648 (tee_file::~tee_file): Remove deletes.
3649 * ui-file.h (tee_file): Remove bools.
3651 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
3653 * mi/mi-cmds.h (mi_cmd_complete): New function.
3654 * mi/mi-main.c (mi_cmd_complete): Likewise.
3655 * mi/mi-cmds.c: Define new MI command -complete.
3656 * NEWS: Mention new -complete command.
3658 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
3660 * completer.h (complete): New function.
3661 * completer.c (complete): Likewise.
3662 * cli/cli-cmds.c: (complete_command): Update to use new complete()
3663 function defined in completer.h.
3665 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
3667 * MAINTAINERS (Write After Approval): Add myself.
3669 2019-05-17 Tom de Vries <tdevries@suse.de>
3672 * dwarf2read.c (struct cu_partial_die_info): New struct.
3673 (find_partial_die): Return cu_partial_die_info.
3674 (partial_die_parent_scope, guess_partial_die_structure_name)
3675 (partial_die_info::fixup): Handle new return type of find_partial_die.
3677 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3679 * stap-probe.c (stap_parse_register_operand): Make "regname" an
3680 "std::string", simplifying the algorithm.
3682 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3684 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
3685 (stap_static_probe_ops::get_probes): Likewise.
3687 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3689 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
3690 '-')" and "else if".
3691 (stap_parse_single_operand): Join checks for
3692 "gdbarch_stap_parse_special_token_p" and
3693 "gdbarch_stap_parse_special_token" in the same "if" statement.
3694 Invert check when verifying for operation on register
3697 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3699 * stap-probe.c (stap_get_opcode): Update comment.
3700 (stap_get_expected_argument_type): Likewise.
3701 (handle_stap_probe): Likewise.
3703 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3705 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
3706 return type to 'bool'. Adjust comment. Use 'bool' when
3708 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3709 * stap-probe.c (stap_parse_argument_1): Likewise.
3710 (stap_is_operator): Likewise.
3711 (stap_is_generic_prefix): Likewise.
3712 (stap_is_register_prefix): Likewise.
3713 (stap_is_register_indirection_prefix): Likewise.
3714 (stap_is_integer_prefix): Likewise.
3715 (stap_generic_check_suffix): Likewise.
3716 (stap_check_integer_suffix): Likewise.
3717 (stap_check_register_suffix): Likewise.
3718 (stap_check_register_indirection_suffix): Likewise.
3719 (stap_parse_register_operand): Likewise.
3720 (stap_parse_single_operand): Likewise.
3721 (stap_parse_argument_1): Likewise.
3722 (stap_probe::get_argument_count): Likewise.
3723 (stap_is_operator): Likewise.
3725 2019-05-16 Tom Tromey <tromey@adacore.com>
3727 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
3730 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
3732 * linux-thread-db.c (try_thread_db_load_1): Change return type
3734 (try_thread_db_load): Likewise.
3735 (try_thread_db_load_from_pdir_1): Likewise.
3736 (try_thread_db_load_from_pdir): Likewise.
3737 (try_thread_db_load_from_sdir): Likewise.
3738 (try_thread_db_load_from_dir): Likewise.
3739 (thread_db_load_search): Likewise.
3740 (has_libpthread): Likewise.
3741 (thread_db_load): Likewise.
3743 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
3745 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
3746 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
3747 NULL, and complain/return if that's the case.
3749 2019-05-15 John Darrington <john@darrington.wattle.id.au>
3751 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
3752 (advance, posn, abstract_read_memory): New functions.
3753 [struct mem_read_abstraction]: New struct.
3754 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
3756 2019-05-14 Tom Tromey <tromey@adacore.com>
3758 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
3759 value is not lval_memory.
3761 2019-05-14 Tom Tromey <tromey@adacore.com>
3763 * solib.c (info_sharedlibrary_command): Style the file name.
3765 2019-05-14 Alan Hayward <alan.hayward@arm.com>
3767 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
3768 (aarch64_vnv_type): Likewise.
3769 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
3770 * common/tdesc.c: Likewise.
3771 * common/tdesc.h (enum tdesc_type_kind): Likewise.
3772 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
3773 * features/aarch64-fpu.xml: Add ieee half view.
3774 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
3775 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
3776 * gdbtypes.h (struct builtin_type): Likewise.
3777 (struct objfile_type): Likewise.
3779 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
3781 * language.c (language_sniff_from_mangled_name): Fix "langauge"
3783 * location.h (string_to_event_location): Likewise.
3785 2019-05-11 Joel Brobecker <brobecker@adacore.com>
3789 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
3791 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
3792 New variable declaration.
3793 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
3795 (print_one_breakpoint): Use ui_out::test_flags and new global
3796 variable to compute use_fixed_output.
3797 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
3799 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
3800 (mi_multi_location_breakpoint_output_fixed): Remove.
3801 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
3803 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
3804 fix_multi_location_breakpoint_output flag if version >= 3.
3805 * ui-out.h (enum ui_out_flag)
3806 <fix_multi_location_breakpoint_output>: New enumerator.
3808 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
3810 * contrib/cc-with-tweaks.sh: Validate dwz's work.
3812 2019-05-10 Tom Tromey <tromey@adacore.com>
3814 * ada-lang.c (catch_ada_completer): New function.
3815 (_initialize_ada_language): Use it.
3817 2019-05-10 Tom Tromey <tromey@adacore.com>
3819 * thread.c (print_thread_info): Make "requested_threads" const.
3820 * gdbthread.h (print_thread_info): Make "requested_threads"
3822 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
3823 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
3825 2019-05-08 Tom Tromey <tom@tromey.com>
3827 * gdbtypes.c (objfile_type_data): Change type.
3828 (objfile_type, _initialize_gdbtypes): Update.
3830 2019-05-08 Tom Tromey <tom@tromey.com>
3832 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
3833 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
3834 (_initialize_dwarf2_frame): Update.
3836 2019-05-08 Tom Tromey <tom@tromey.com>
3838 * objc-lang.c (objc_objfile_data): Change type.
3839 (find_methods): Update.
3840 (_initialize_objc_lang): Remove.
3842 2019-05-08 Tom Tromey <tom@tromey.com>
3844 * stabsread.c (rs6000_builtin_type_data): Change type.
3845 (rs6000_builtin_type, _initialize_stabsread): Update.
3847 2019-05-08 Tom Tromey <tom@tromey.com>
3849 * mips-tdep.c (mips_pdr_data): Remove.
3850 (_initialize_mips_tdep): Update.
3852 2019-05-08 Tom Tromey <tom@tromey.com>
3854 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
3855 (hppa_init_objfile_priv_data, read_unwind_info)
3856 (find_unwind_entry, _initialize_hppa_tdep): Update.
3858 2019-05-08 Tom Tromey <tom@tromey.com>
3860 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
3861 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
3863 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
3865 2019-05-08 Tom Tromey <tom@tromey.com>
3867 * mdebugread.c (basic_type_data): Change type.
3868 (basic_type, _initialize_mdebugread): Update.
3870 2019-05-08 Tom Tromey <tom@tromey.com>
3872 * common/gdb_unique_ptr.h (struct noop_deleter): New.
3874 2019-05-08 Tom Tromey <tom@tromey.com>
3876 * nto-tdep.c (nto_inferior_data_reg): Change type.
3877 (nto_inferior_data): Update.
3878 (nto_inferior_data_cleanup, nto_new_inferior_data)
3879 (_initialize_nto_tdep): Remove.
3880 * nto-tdep.h (struct nto_inferior_data): Add initializers.
3882 2019-05-08 Tom Tromey <tom@tromey.com>
3884 * ada-lang.c (struct ada_inferior_data): Add initializers.
3885 (ada_inferior_data): Change type.
3886 (ada_inferior_data_cleanup): Remove.
3887 (get_ada_inferior_data, ada_inferior_exit)
3888 (struct ada_pspace_data): Add initializers, destructor.
3889 (ada_pspace_data_handle): Change type.
3890 (get_ada_pspace_data): Update.
3891 (ada_pspace_data_cleanup): Remove.
3893 2019-05-08 Tom Tromey <tom@tromey.com>
3895 * coffread.c (struct coff_symfile_info): Add initializers.
3896 (coff_objfile_data_key): Move lower. Change type.
3897 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
3899 (coff_free_info): Remove.
3901 2019-05-08 Tom Tromey <tom@tromey.com>
3903 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
3904 (fbsd_pspace_data_handle): Move lower. Change type.
3905 (get_fbsd_pspace_data): Update.
3906 (fbsd_pspace_data_cleanup): Remove.
3907 (_initialize_fbsd_tdep): Update.
3909 2019-05-08 Tom Tromey <tom@tromey.com>
3911 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
3912 (get_ada_tasks_pspace_data): Update.
3913 (ada_tasks_pspace_data_cleanup): Remove.
3914 (_initialize_tasks): Update.
3915 (ada_tasks_inferior_data_handle): Change type.
3916 (get_ada_tasks_inferior_data): Update.
3917 (ada_tasks_inferior_data_cleanup): Remove.
3918 (struct ada_tasks_pspace_data): Add initializers.
3920 2019-05-08 Tom Tromey <tom@tromey.com>
3922 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
3923 * symfile-debug.c (debug_sym_get_probes): Change type.
3924 * stap-probe.c (handle_stap_probe):
3925 (stap_static_probe_ops::get_probes): Change type.
3926 * probe.h (class static_probe_ops) <get_probes>: Change type.
3927 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
3928 (parse_probes_in_pspace): Update.
3929 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
3931 (any_static_probe_ops::get_probes): Change type.
3932 * elfread.c (elfread_data): New typedef.
3933 (probe_key): Change type.
3934 (elf_get_probes): Likewise. Update.
3935 (probe_key_free): Remove.
3936 (_initialize_elfread): Update.
3937 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
3939 (dtrace_process_dof_probe, dtrace_process_dof)
3940 (dtrace_static_probe_ops::get_probe): Change type.
3942 2019-05-08 Tom Tromey <tom@tromey.com>
3944 * xcoffread.c (struct xcoff_symfile_info): Rename from
3945 coff_symfile_info. Add initializers.
3946 (xcoff_objfile_data_key): Move lower. Change type.
3947 (XCOFF_DATA): Rewrite.
3948 (xcoff_free_info): Remove.
3949 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
3950 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
3951 (xcoff_initial_scan): Update.
3953 2019-05-08 Tom Tromey <tom@tromey.com>
3955 * solib-svr4.c (struct svr4_info): Add initializers and
3957 <probes_table>: Now an htab_up.
3958 (solib_svr4_pspace_data): Change type.
3959 (free_probes_table): Simplify.
3960 (~svr4_info): Rename from svr4_pspace_data_cleanup.
3961 (get_svr4_info, probes_table_htab_remove_objfile_probes)
3962 (probes_table_remove_objfile_probes, register_solib_event_probe)
3963 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
3964 (_initialize_svr4_solib): Update.
3966 2019-05-08 Tom Tromey <tom@tromey.com>
3968 * remote.c (remote_pspace_data): Change type.
3969 (remote_pspace_data_cleanup): Remove.
3970 (get_remote_exec_file, set_pspace_remote_exec_file)
3971 (_initialize_remote): Update.
3973 2019-05-08 Tom Tromey <tom@tromey.com>
3975 * breakpoint.c (breakpoint_objfile_key): Change type.
3976 (get_breakpoint_objfile_data): Update.
3977 (free_breakpoint_objfile_data): Remove.
3978 (_initialize_breakpoint): Update.
3980 2019-05-08 Tom Tromey <tom@tromey.com>
3982 * linux-tdep.c (struct linux_info): Add initializers.
3983 (linux_inferior_data): Move. Change type.
3984 (invalidate_linux_cache_inf): Update.
3985 (linux_inferior_data_cleanup): Remove.
3986 (get_linux_inferior_data, _initialize_linux_tdep): Update.
3988 2019-05-08 Tom Tromey <tom@tromey.com>
3990 * auxv.c (auxv_inferior_data): Move. Change type.
3991 (auxv_inferior_data_cleanup): Remove.
3992 (invalidate_auxv_cache_inf): Rewrite.
3993 (get_auxv_inferior_data, _initialize_auxv): Update.
3995 2019-05-08 Tom Tromey <tom@tromey.com>
3997 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
3998 (symfile_debug_objfile_data_key): Change type.
3999 (symfile_debug_installed, debug_qf_has_symbols)
4000 (debug_qf_find_last_source_symtab)
4001 (debug_qf_forget_cached_source_info)
4002 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4003 (debug_qf_print_stats, debug_qf_dump)
4004 (debug_qf_expand_symtabs_for_function)
4005 (debug_qf_expand_all_symtabs)
4006 (debug_qf_expand_symtabs_with_fullname)
4007 (debug_qf_map_matching_symbols)
4008 (debug_qf_expand_symtabs_matching)
4009 (debug_qf_find_pc_sect_compunit_symtab)
4010 (debug_qf_map_symbol_filenames)
4011 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4012 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4013 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4014 (debug_sym_read_linetable, debug_sym_relocate): Update.
4015 (symfile_debug_free_objfile): Remove.
4016 (install_symfile_debug_logging, _initialize_symfile_debug):
4019 2019-05-08 Tom Tromey <tom@tromey.com>
4021 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4022 allocate_on_obstack.
4023 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4024 (get_dwarf2_per_objfile): Update.
4025 (set_dwarf2_per_objfile): Remove.
4026 (dwarf2_has_info, dwarf2_get_section_info): Update.
4027 (dwarf2_free_objfile): Remove.
4028 (_initialize_dwarf2_read): Update.
4030 2019-05-08 Tom Tromey <tom@tromey.com>
4032 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4034 <unsupported_script_warning_printed,
4035 script_not_found_warning_printed>: Now bool.
4036 (auto_load_pspace_data): Change type.
4037 (~auto_load_pspace_info): Rename from
4038 auto_load_pspace_data_cleanup.
4039 (get_auto_load_pspace_data, init_loaded_scripts_info)
4040 (clear_section_scripts, maybe_print_unsupported_script_warning)
4041 (maybe_print_script_not_found_warning, _initialize_auto_load):
4044 2019-05-08 Tom Tromey <tom@tromey.com>
4046 * objfiles.c (objfile_pspace_info): Add destructor and
4048 (objfiles_pspace_data): Change type.
4049 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4050 (get_objfile_pspace_data): Update.
4051 (objfiles_bfd_data): Change type.
4052 (get_objfile_bfd_data): Update.
4053 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4055 2019-05-08 Tom Tromey <tom@tromey.com>
4057 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4059 (get_catch_syscall_inferior_data): Update.
4060 (catch_syscall_inferior_data_cleanup): Remove.
4061 (_initialize_break_catch_syscall): Update.
4063 2019-05-08 Tom Tromey <tom@tromey.com>
4065 * inflow.c (struct terminal_info): Add destructor and
4067 (inflow_inferior_data): Change type.
4068 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4069 (get_inflow_inferior_data, inflow_inferior_exit)
4070 (swap_terminal_info, _initialize_inflow): Update.
4072 2019-05-08 Tom Tromey <tom@tromey.com>
4074 * target-dcache.c (target_dcache_cleanup): Remove.
4075 (target_dcache_aspace_key): Change type.
4076 (target_dcache_init_p, target_dcache_invalidate)
4077 (target_dcache_get, target_dcache_get_or_init)
4078 (_initialize_target_dcache): Update.
4079 * dcache.h (struct dcache_deleter): New.
4081 2019-05-08 Tom Tromey <tom@tromey.com>
4083 * symtab.c (struct symbol_cache): Add destructor and
4085 (symbol_cache_key): Move. Change type.
4086 (make_symbol_cache, free_symbol_cache): Remove.
4087 (get_symbol_cache): Update.
4088 (symbol_cache_cleanup): Remove.
4089 (ALL_PSPACES, symbol_cache_flush)
4090 (maintenance_print_symbol_cache)
4091 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4094 2019-05-08 Tom Tromey <tom@tromey.com>
4096 * symtab.c (struct main_info): Add destructor and initializers.
4097 (main_progspace_key): Move. Change type.
4098 (get_main_info): Update.
4099 (main_info_cleanup): Remove.
4100 (_initialize_symtab): Update.
4102 2019-05-08 Tom Tromey <tom@tromey.com>
4104 * registry.h (DECLARE_REGISTRY): Define the _key class.
4106 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4108 * NEWS: Merge two 'New commands' sections.
4110 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4112 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4113 parameter and use Ada language definition instead.
4114 (ada_val_print_ptr): Remove unused language parameter.
4115 (ada_val_print_num): Remove language parameter and use Ada language
4117 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4119 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4120 parameter and use Ada language definition instead.
4121 (ada_val_print_1): Update all ada_val_print_xxx calls.
4122 Remove language parameter.
4123 (ada_val_print): Update ada_val_print_1 call.
4125 2019-05-08 Tom Tromey <tromey@adacore.com>
4127 * remote.c (remote_hw_watchpoint_limit)
4128 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4131 2019-05-08 Tom Tromey <tromey@adacore.com>
4133 * maint.c (_initialize_maint_cmds): Move initialization code to
4135 (watchdog, show_watchdog): Move to remote.c.
4136 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4138 (_initialize_remote): Move initialization code from maint.c.
4139 * defs.h (watchdog): Don't declare.
4141 2019-05-08 Tom Tromey <tromey@adacore.com>
4143 * tui/tui-interp.c: Include main.h.
4144 * interps.c: Include main.h.
4145 * main.h (interpreter_p): Declare.
4146 * defs.h (interpreter_p): Don't declare.
4148 2019-05-08 Tom Tromey <tromey@adacore.com>
4150 * dwarf2loc.c: Include dwarf2read.h.
4151 * defs.h (read_unsigned_leb128): Don't declare.
4152 * dwarf2read.h (read_unsigned_leb128): Declare.
4154 2019-05-08 Tom Tromey <tromey@adacore.com>
4156 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4159 2019-05-08 Tom Tromey <tromey@adacore.com>
4161 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4162 when no wrap column is set.
4164 2019-05-08 Tom Tromey <tromey@adacore.com>
4166 * c-lang.c (c_get_string): Handle non-C-style arrays.
4168 2019-05-08 Tom Tromey <tromey@adacore.com>
4170 * typeprint.c (print_offset_data::update): Print the bit offset,
4171 not the number of bits remaining.
4173 2019-05-08 Tom Tromey <tromey@adacore.com>
4175 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4176 padding at end of comment.
4178 2019-05-08 Tom Tromey <tromey@adacore.com>
4180 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4183 2019-05-06 Tom Tromey <tom@tromey.com>
4185 * common/scoped_mmap.c: Include common-defs.h.
4186 * common/scoped_mmap.h: Don't include config.h.
4188 2019-05-04 Tom Tromey <tom@tromey.com>
4190 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4191 (struct aarch64_call_info): Add initializers.
4192 <si>: Now a std::vector.
4193 (pass_on_stack, aarch64_push_dummy_call): Update.
4195 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
4196 Tom Tromey <tom@tromey.com>
4198 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4199 (ppc_threads): Now a std::vector. Now static.
4200 (hwdebug_find_thread_points_by_tid)
4201 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4204 2019-05-04 Tom Tromey <tom@tromey.com>
4206 * arc-tdep.c (arc_tdesc_init): Return bool.
4208 2019-05-04 Tom Tromey <tom@tromey.com>
4210 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4211 Use gdb_assert_not_reached.
4213 2019-05-04 Tom Tromey <tom@tromey.com>
4215 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4218 2019-05-04 Tom Tromey <tom@tromey.com>
4220 * arc-tdep.c (arc_tdesc_init): Use bool.
4222 2019-05-04 Tom Tromey <tom@tromey.com>
4224 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4226 2019-05-04 Tom Tromey <tom@tromey.com>
4228 * cli/cli-cmds.c (valid_command_p): Return bool.
4230 2019-05-04 Tom Tromey <tom@tromey.com>
4232 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4233 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4235 2019-05-04 Raul Tambre <raul@tambre.ee>
4237 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4238 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4239 operator for comparison.
4241 2019-05-04 Tom Tromey <tom@tromey.com>
4243 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4244 (lookup_partial_symbol, print_partial_symbols)
4245 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4246 (psymbol_compare): Update.
4247 (add_psymbol_to_bcache): Clear the entire psymbol.
4248 (maintenance_check_psymtabs): Update.
4249 * psympriv.h (struct partial_symbol): Don't derive from
4250 general_symbol_info.
4251 <obj_section, unrelocated_address, address,
4252 set_unrelocated_address>: Update.
4253 <ginfo>: New member.
4254 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4255 (debug_names::write_psymbols): Update.
4257 2019-05-04 Tom de Vries <tdevries@suse.de>
4259 * contrib/cc-with-tweaks.sh: Support -n arg.
4261 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4263 * corelow.c (core_target::detach): Ensure frame cache and
4264 register caches are cleared.
4265 inferior.c (exit_inferior_1): Likewise.
4267 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4268 Tom Tromey <tom@tromey.com>
4270 * dictionary.c (collate_pending_symbols_by_language): Remove
4271 "struct" from foreach.
4272 * symtab.c (lookup_global_symbol_from_objfile)
4273 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4275 * ser-tcp.c (net_open): Remove "struct" from foreach.
4276 * objfiles.c (objfile_relocate, objfile_rebase)
4277 (objfile_has_symbols): Remove "struct" from foreach.
4278 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4280 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4282 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4283 "struct" from foreach.
4284 * ada-lang.c (create_excep_cond_exprs)
4285 (ada_exception_catchpoint_cond_string): Remove "struct" from
4288 2019-05-03 Tom Tromey <tromey@adacore.com>
4290 * ada-exp.y (convert_char_literal): Check suffix of each
4293 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4296 * ada-exp.y (yywrap): Don't define.
4297 * ada-lex.l (%option): Add noyywrap
4300 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4302 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4303 _WIN32_WINNT to the XP level, unless already defined to a higher
4306 * unittests/parse-connection-spec-selftests.c:
4308 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4311 * symfile.c (find_separate_debug_file): Remove colon from the
4312 drive spec of DOS/Windows file names of the target, so that the
4313 file name produced from DEBUGDIR and the target's directory will
4314 be valid on DOS/Windows systems.
4316 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4318 * rust-lang.c (val_print_struct): Handle printing structures
4321 2019-05-02 Tom Tromey <tromey@adacore.com>
4323 * valarith.c (_initialize_valarith): Remove.
4325 2019-05-01 Tom Tromey <tromey@adacore.com>
4327 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4330 2019-05-01 Tom Tromey <tromey@adacore.com>
4332 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4333 for big-endian copies.
4335 2019-04-30 Ali Tamur <tamur@google.com>
4336 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4337 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4338 (read_3_bytes): New function.
4340 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4342 * windows-nat.c (main_thread_id): Delete.
4343 (handle_output_debug_string): Replace main_thread_id by
4344 current_event.dwThreadId.
4345 (fake_create_process): Likewise.
4346 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4347 Do not set main_thread_id.
4348 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4349 current_event.dwThreadId.
4350 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4352 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4354 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4355 Use current_event.dwThreadId instead of main_thread_id.
4357 2019-04-30 Tom Tromey <tromey@adacore.com>
4359 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4360 (create_excep_cond_exprs): Iterate over program spaces.
4361 (ada_exception_catchpoint_cond_string): Examine all minimal
4362 symbols for exception types.
4364 2019-04-30 Tom Tromey <tromey@adacore.com>
4367 * dwarf2read.c (process_structure_scope): Handle case where type
4368 has template parameters but no symbol was created.
4370 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4371 Chris January <chris.january@arm.com>
4373 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4375 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4377 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4379 * f-typeprint.c (f_print_type): Update rules for printing
4381 (f_type_print_varspec_suffix): Likewise.
4383 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4384 Chris January <chris.january@arm.com>
4386 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4389 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4391 * f-lang.c (build_fortran_types): Change name of void type to
4393 * f-typeprint.c (f_type_print_base): Print the name of the void
4394 type, rather than a fixed string.
4395 * f-valprint.c (f_decorations): Use lower case void string.
4397 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4398 Chris January <chris.january@arm.com>
4400 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
4403 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4404 Chris January <chris.january@arm.com>
4405 David Lecomber <david.lecomber@arm.com>
4407 * f-exp.y (BINOP_INTRINSIC): New token.
4408 (exp): New parser rule handling BINOP_INTRINSIC.
4409 (f77_keywords): Add new builtin procedures.
4410 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
4411 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4412 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
4413 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4414 (print_unop_subexp_f): New function.
4415 (print_binop_subexp_f): New function.
4416 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4417 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4418 (dump_subexp_body_f): Likewise.
4419 (operator_check_f): Likewise.
4420 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4421 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
4423 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4425 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
4427 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
4428 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
4429 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
4430 (operator_length_f): New fuction.
4431 (print_subexp_f): New function.
4432 (op_name_f): New function.
4433 (dump_subexp_body_f): New function.
4434 (operator_check_f): New function.
4435 (exp_descriptor_f): Replace standard expression handling functions
4437 * gdb/fortran-operator.def: New file.
4438 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
4439 * gdb/std-operator.def: Remove UNOP_KIND.
4441 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4443 * std-operator.def: Remove unbalanced, stray double quote
4446 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4447 Chris January <chris.january@arm.com>
4448 Daniel Everett <daniel.everett@arm.com>
4449 Nick Forrington <nick.forrington@arm.com>
4450 Richard Bunt <richard.bunt@arm.com>
4452 * cp-valprint.c (cp_print_value_fields): Allow an additional level
4453 of depth when printing anonymous structs or unions.
4454 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4455 Don't print either the top-level value, or the children if the
4456 max-depth is exceeded.
4457 (ppscm_print_children): When printing the key of a map, allow one
4458 extra level of depth.
4459 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
4460 print either the top-level value, or the children if the max-depth
4462 (print_children): When printing the key of a map, allow one extra
4464 * python/py-value.c (valpy_format_string): Add max_depth keyword.
4465 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
4466 (user_print_options): Initialise max_depth field.
4467 (val_print_scalar_or_string_type_p): New function.
4468 (val_print): Check to see if the max depth has been reached.
4469 (val_print_check_max_depth): Define new function.
4470 (show_print_max_depth): New function.
4471 (_initialize_valprint): Add 'print max-depth' option.
4472 * valprint.h (struct value_print_options) <max_depth>: New field.
4473 (val_print_check_max_depth): Declare new function.
4474 * NEWS: Document new feature.
4476 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4478 * ada-lang.c (ada_language_defn): Initialise new field.
4479 * c-lang.c (c_is_string_type_p): New function.
4480 (c_language_defn): Initialise new field.
4481 (cplus_language_defn): Initialise new field.
4482 (asm_language_defn): Initialise new field.
4483 (minimal_language_defn): Initialise new field.
4484 * c-lang.h (c_is_string_type_p): Declare new function.
4485 * d-lang.c (d_language_defn): Initialise new field.
4486 * f-lang.c (f_is_string_type_p): New function.
4487 (f_language_defn): Initialise new field.
4488 * go-lang.c (go_is_string_type_p): New function.
4489 (go_language_defn): Initialise new field.
4490 * language.c (default_is_string_type_p): New function.
4491 (unknown_language_defn): Initialise new field.
4492 (auto_language_defn): Initialise new field.
4493 * language.h (struct language_defn) <la_is_string_type_p>: New
4495 (default_is_string_type_p): Declare new function.
4496 * m2-lang.c (m2_language_defn): Initialise new field.
4497 * objc-lang.c (objc_language_defn): Initialise new field.
4498 * opencl-lang.c (opencl_language_defn): Initialise new field.
4499 * p-lang.c (pascal_is_string_type_p): New function.
4500 (pascal_language_defn): Initialise new field.
4501 * rust-lang.c (rust_is_string_type_p): New function.
4502 (rust_language_defn): Initialise new field.
4504 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4506 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
4508 * ada-lang.c (ada_language_defn): Initialise new field.
4509 * c-lang.c (c_language_defn): Likewise.
4510 (cplus_language_defn): Likewise.
4511 (asm_language_defn): Likewise.
4512 (minimal_language_defn): Likewise.
4513 * d-lang.c (d_language_defn): Likewise.
4514 * f-lang.c (f_language_defn): Likewise.
4515 * go-lang.c (go_language_defn): Likewise.
4516 * language.c (unknown_language_defn): Likewise.
4517 (auto_language_defn): Likewise.
4518 * m2-lang.c (m2_language_defn): Likewise.
4519 * objc-lang.c (objc_language_defn): Likewise.
4520 * opencl-lang.c (opencl_language_defn): Likewise.
4521 * p-lang.c (pascal_language_defn): Likewise.
4522 * rust-lang.c (rust_language_defn): Likewise.
4524 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4526 * ada-lang.c (ada_is_character_type): Change return type to bool.
4527 (ada_is_string_type): Likewise.
4528 * ada-lang.h (ada_is_character_type): Update declaration
4529 (ada_is_string_type): Likewise.
4531 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4533 Support style in 'frame|thread apply'
4535 * gdbcmd.h (execute_command_to_string): New term_out parameter.
4536 * record.c (record_start, record_stop): Update callers of
4537 execute_command_to_string with false.
4538 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
4539 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
4541 (class string_file): New constructor with term_out parameter.
4542 Override methods term_out and can_emit_style_escape. New member
4544 (class stdio_file): Override can_emit_style_escape.
4545 (class tee_file): Override term_out and can_emit_style_escape.
4546 * utils.h (can_emit_style_escape): Remove.
4547 * utils.c (can_emit_style_escape): Likewise.
4548 Update all callers of can_emit_style_escape (SOMESTREAM) to
4549 SOMESTREAM->can_emit_style_escape.
4550 * source-cache.c (source_cache::get_source_lines): Likewise.
4551 * stack.c (frame_apply_command_count): Call execute_command_to_string
4552 passing the term_out characteristic of the current gdb_stdout.
4553 * thread.c (thr_try_catch_cmd): Likewise.
4554 * top.c (execute_command_to_string): pass term_out parameter
4555 to construct the string_file for the command output.
4556 * ui-file.c (term_cli_styling): New function (most code moved
4557 from utils.c can_emit_style_escape).
4558 (string_file::string_file, string_file::can_emit_style_escape,
4559 stdio_file::can_emit_style_escape, tee_file::term_out,
4560 tee_file::can_emit_style_escape): New functions.
4562 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4564 * NEWS: Mention the new set|show may-call-functions.
4565 * infcall.c (may_call_functions_p): New variable.
4566 (show_may_call_functions_p): New function.
4567 (call_function_by_hand_dummy): Throws an error if not
4569 (_initialize_infcall): Call add_setshow_boolean_cmd for
4572 2019-04-25 Keith Seitz <keiths@redhat.com>
4575 * cp-support.c (inspect_type): Don't attempt substitutions
4576 of symbol with the same name.
4578 2019-04-25 Tom Tromey <tromey@adacore.com>
4581 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
4584 2019-04-25 Tom Tromey <tromey@adacore.com>
4586 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
4588 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
4589 (gdb_xml_parser::parse): Use std::move.
4590 * python/python-internal.h (gdbpy_convert_exception): Take a const
4592 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
4594 * python/py-utils.c (gdbpy_convert_exception): Take a const
4596 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
4598 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
4600 * mi/mi-main.c (mi_print_exception): Take a const reference.
4601 * main.c (handle_command_errors): Take a const reference.
4602 * linespec.c (parse_linespec): Use std::move.
4603 * infcall.c (run_inferior_call): Use std::move.
4604 (call_function_by_hand_dummy): Use std::move.
4605 * exec.c (try_open_exec_file): Use std::move.
4606 * exceptions.h (exception_print, exception_fprintf)
4607 (exception_print_same): Update.
4608 * exceptions.c (print_exception, exception_print)
4609 (exception_fprintf, exception_print_same): Change parameters to
4611 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
4612 * common/new-op.c: Use std::move.
4613 * common/common-exceptions.h (struct gdb_exception): Add move
4615 (struct gdb_exception_error, struct gdb_exception_quit, struct
4616 gdb_quit_bad_alloc): Change constructor to move constructor.
4617 (throw_exception): Change parameter to rvalue reference.
4618 * common/common-exceptions.c (throw_exception): Take rvalue
4620 * cli/cli-interp.c (safe_execute_command): Use std::move.
4621 * breakpoint.c (insert_bp_location, location_to_sals): Use
4624 2019-04-25 Tom Tromey <tromey@adacore.com>
4626 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
4627 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
4628 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
4629 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
4630 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
4631 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
4632 guile/scm-value.c: Use unpack.
4633 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
4634 gdbscm_gdb_exception.
4635 (gdbscm_throw_gdb_exception): Likewise.
4636 (struct gdbscm_gdb_exception): New.
4637 (unpack): New function.
4638 (gdbscm_wrap): Use unpack.
4640 2019-04-25 Tom Tromey <tromey@adacore.com>
4642 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
4643 (gdb_rl_callback_handler): Use std::move.
4644 * common/common-exceptions.h (struct gdb_exception): Add move
4645 assignment operator.
4646 (throw_exception_sjlj): Change "exception" to const reference.
4647 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
4648 (throw_exception_sjlj): Change "exception" to const reference.
4650 2019-04-25 Tom Tromey <tromey@adacore.com>
4652 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
4653 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
4654 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
4656 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
4658 * mi/mi-interp.c (mi_interp::exec): Update.
4659 * linespec.c (parse_linespec): Update.
4660 * infcall.c (run_inferior_call): Update.
4661 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
4662 * guile/scm-symbol.c (gdbscm_lookup_symbol)
4663 (gdbscm_lookup_global_symbol): Update.
4664 * guile/scm-param.c (gdbscm_parameter_value): Update.
4665 * guile/scm-frame.c (gdbscm_frame_read_register)
4666 (gdbscm_frame_read_var): Update.
4667 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
4668 * exec.c (try_open_exec_file): Update.
4669 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
4670 (gdb_rl_callback_handler): Update.
4671 * common/common-exceptions.h (exception_none): Don't declare.
4672 * common/common-exceptions.c (exception_none): Don't define.
4673 (struct catcher) <exception>: Update.
4674 * cli/cli-interp.c (safe_execute_command): Update.
4675 * breakpoint.c (insert_bp_location, location_to_sals): Update.
4677 2019-04-25 Ali Tamur <tamur@google.com>
4679 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
4680 (read_attribute_value): Likewise.
4681 (dwarf2_read_addr_index): Update comment.
4682 (read_str_index): Add DW_FORM_strx.
4683 (dwarf2_string_attr): Likewise.
4684 (dwarf2_const_value_attr): Likewise.
4685 (dump_die_shallow): Likewise.
4686 (dwarf2_fetch_constant_bytes): Likewise.
4687 (skip_form_bytes): Likewise.
4688 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
4690 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4694 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
4695 OFFSET. Verify if current mapping contains an ELF header.
4696 (linux_find_memory_regions_full): Adjust call to
4699 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
4700 Kang Li <kanglictf@gmail.com>
4704 * dwarf2-frame.c (read_initial_length): Be consistent about using
4705 unsigned representation of length.
4706 (decode_frame_entry_1): Likewise. Check for wraparound of
4707 end pointer as well as buffer overflow.
4709 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4711 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
4714 2019-04-24 Tom Tromey <tromey@adacore.com>
4716 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
4718 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4720 * s12z-tdep.c (s12z_unwind_pc): Delete.
4721 (s12z_unwind_sp): Delete.
4722 (s12z_gdbarch_init): Don't register deleted functions with
4725 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4727 * rl78-tdep.c (rl78_unwind_sp): Delete.
4728 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
4730 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4732 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
4733 (xstormy16_unwind_pc): Delete.
4734 (xstormy16_dummy_id): Delete.
4735 (xstormy16_gdbarch_init): Don't register deleted functions with
4738 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4740 * vax-tdep.c (vax_unwind_pc): Delete.
4741 (vax_gdbarch_init): Don't register deleted function with gdbarch.
4743 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4745 * v850-tdep.c (v850_unwind_sp): Delete.
4746 (v850_unwind_pc): Delete.
4747 (v850_dummy_id): Delete.
4748 (v850_gdbarch_init): Don't register deleted functions with
4751 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4753 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
4754 (tilegx_unwind_pc): Delete.
4755 (tilegx_unwind_dummy_id): Delete.
4756 (tilegx_gdbarch_init): Don't register deleted functions with
4759 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4761 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
4762 (tic6x_dummy_id): Delete.
4763 (tic6x_gdbarch_init): Don't register deleted functions with
4766 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4768 * sparc-tdep.c (sparc_unwind_pc): Delete.
4769 (sparc32_gdbarch_init): Don't register deleted function with
4772 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4774 * sh-tdep.c (sh_unwind_sp): Delete.
4775 (sh_unwind_pc): Delete.
4776 (sh_dummy_id): Delete.
4777 (sh_gdbarch_init): Don't register deleted functions with
4780 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4782 * score-tdep.c (score_unwind_sp): Delete.
4783 (score_unwind_pc): Delete.
4784 (score_dummy_id): Delete.
4785 (score_gdbarch_init): Don't register deleted functions with
4788 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4790 * rx-tdep.c (rx_unwind_pc): Delete.
4791 (rx_unwind_sp): Delete.
4792 (rx_dummy_id): Delete.
4793 (rx_gdbarch_init): Don't register deleted functions with
4794 gdbarch. Update comment.
4796 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4798 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
4799 (rs6000_dummy_id): Delete.
4800 (rs6000_gdbarch_init): Don't register deleted functions with
4803 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4805 * or1k-tdep.c (or1k_dummy_id): Delete.
4806 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
4808 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4810 * nios2-tdep.c (nios2_dummy_id): Delete.
4811 (nios2_unwind_sp): Delete.
4812 (nios2_gdbarch_init): Don't register deleted functions with
4815 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4817 * nds32-tdep.c (nds32_dummy_id): Delete.
4818 (nds32_unwind_pc): Delete.
4819 (nds32_unwind_sp): Delete.
4820 (nds32_gdbarch_init): Don't register deleted functions with
4823 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4825 * msp430-tdep.c (msp430_unwind_pc): Delete.
4826 (msp430_unwind_sp): Delete.
4827 (msp430_dummy_id): Delete.
4828 (msp430_gdbarch_init): Don't register deleted functions with
4831 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4833 * moxie-tdep.c (moxie_unwind_sp): Delete.
4834 (moxie_unwind_pc): Delete.
4835 (moxie_dummy_id): Delete.
4836 (moxie_gdbarch_init): Don't register deleted functions with
4839 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4841 * mn10300-tdep.c (mn10300_dummy_id): Delete.
4842 (mn10300_unwind_pc): Delete.
4843 (mn10300_unwind_sp): Delete.
4844 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
4846 (mn10300_frame_unwind_init): Don't register deleted functions with
4849 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4851 * mep-tdep.c (mep_unwind_pc): Delete.
4852 (mep_unwind_sp): Delete.
4853 (mep_dummy_id): Delete.
4854 (mep_gdbarch_init): Don't register deleted functions with
4857 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4859 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
4860 (m68hc11_unwind_sp): Delete.
4861 (m68hc11_gdbarch_init): Don't register deleted functions with
4864 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4866 * m32r-tdep.c (m32r_unwind_sp): Delete.
4867 (m32r_unwind_pc): Delete.
4868 (m32r_dummy_id): Delete.
4869 (m32r_gdbarch_init): Don't register deleted functions with
4872 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4874 * m32c-tdep.c (m32c_unwind_pc): Delete.
4875 (m32c_unwind_sp): Delete.
4876 (m32c_dummy_id): Delete.
4877 (m32c_gdbarch_init): Don't register deleted functions with
4880 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4882 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
4883 (lm32_unwind_pc): Delete.
4884 (lm32_dummy_id): Delete.
4885 (lm32_gdbarch_init): Don't register deleted functions with
4888 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4890 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
4891 (iq2000_unwind_pc): Delete.
4892 (iq2000_dummy_id): Delete.
4893 (iq2000_gdbarch_init): Don't register deleted functions with
4896 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4898 * nds32-tdep.c (nds32_type_align): Delete.
4899 (nds32_push_dummy_call): Use type_align instead.
4901 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4903 * arm-tdep.c (arm_type_align): Only handle vector override case.
4904 (arm_push_dummy_call): Use type_align.
4905 (arm_gdbarch_init): Register arm_type_align gdbarch function.
4907 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4909 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
4911 (pass_on_stack): Use type_align.
4912 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
4915 2019-04-23 Tom Tromey <tromey@adacore.com>
4917 * dwarf2read.c (line_header::file_name_at): Remove unused
4920 2019-04-23 Tom de Vries <tdevries@suse.de>
4923 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
4927 2019-03-27 Ali Tamur <tamur@google.com>
4929 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
4930 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
4931 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
4932 (dwarf_expr_context::get_addr_index): Likewise
4933 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
4934 (symbol_needs_eval_context::get_addr_index): Likewise
4935 (disassemble_dwarf_expression): Add DW_OP_addrx
4936 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
4937 (read_cutu_die_from_dwo): Update comment
4938 (skip_one_die): Add DW_FORM_addrx
4939 (read_attribute_value): Likewise
4940 (var_decode_location): Add DW_OP_addrx
4941 (dwarf2_const_value_attr): Add DW_FORM_addrx
4942 (dump_die_shallow): Likewise
4943 (dwarf2_fetch_constant_bytes): Likewise
4944 (decode_locdesc): Add DW_OP_addrx
4945 (skip_form_bytes): Add DW_FORM_addrx
4947 2019-04-22 Ali Tamur <tamur@google.com>
4949 * MAINTAINERS (Write After Approval): Add self.
4951 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
4953 * solib-svr4.c (get_svr4_info): Add pspace parameter.
4954 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
4955 (open_symbol_file_object): Likewise.
4956 (svr4_default_sos): Add info parameter.
4957 (svr4_read_so_list): Likewise.
4958 (svr4_current_sos_direct): Adjust functions calls to pass down
4960 (svr4_current_sos_1): Add info parameter.
4961 (svr4_current_sos): Call get_svr4_info, pass info down to
4963 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
4965 (svr4_in_dynsym_resolve_code): Pass current_program_space to
4967 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
4969 (probes_table_remove_objfile_probes): Likewise.
4970 (register_solib_event_probe): Add info parameter.
4971 (solist_update_incremental): Pass info parameter down to
4973 (disable_probes_interface): Add info parameter.
4974 (svr4_handle_solib_event): Pass current_program_space to
4975 get_svr4_info. Adjust disable_probes_interface cleanup.
4976 (svr4_create_probe_breakpoints): Add info parameter, pass it
4977 down to register_solib_event_probe.
4978 (svr4_create_solib_event_breakpoints): Add info parameter,
4979 pass it down to svr4_create_probe_breakpoints.
4980 (enable_break): Pass info down to
4981 svr4_create_solib_event_breakpoints.
4982 (svr4_solib_create_inferior_hook): Pass current_program_space to
4984 (svr4_clear_solib): Likewise.
4986 2019-04-22 Pedro Alves <palves@redhat.com>
4988 * solib-svr4.c (svr4_free_objfile_observer): New.
4989 (probe_and_action::objfile): New field.
4990 (probes_table_htab_remove_objfile_probes)
4991 (probes_table_remove_objfile_probes): New functions.
4992 (register_solib_event_probe): Add 'objfile' parameter. Store it
4993 in the new probe_and_action. Don't store the probe in 'lookup'.
4994 (svr4_create_probe_breakpoints): Pass objfile to
4995 register_solib_event_probe.
4996 (_initialize_svr4_solib): Register a free_objfile observer.
4998 2019-04-19 Tom Tromey <tom@tromey.com>
5000 * common/queue.h: Remove.
5002 2019-04-19 Tom Tromey <tom@tromey.com>
5004 * event-loop.c: Don't include "common/queue.h".
5006 2019-04-19 Tom Tromey <tom@tromey.com>
5008 * remote.c (remote_target): Use delete.
5009 * remote-notif.h: Include <list>, not "common/queue.h".
5010 (notif_client_p): Remove typedef.
5011 (remote_notif_state): Add constructor, destructor, initializer.
5012 <notif_queue>: Now a std::list.
5013 (remote_notif_state_xfree): Don't declare.
5014 * remote-notif.c (remote_notif_process, handle_notification)
5015 (remote_notif_state_allocate): Update.
5016 (~remote_notif_state): Rename from remote_notif_state_xfree.
5018 2019-04-19 Tom Tromey <tom@tromey.com>
5020 * symfile.c (reread_symbols): Update.
5021 * objfiles.c (objfile_register_static_link)
5022 (objfile_lookup_static_link): Update
5023 (~objfile) Don't delete static_links.
5024 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5026 2019-04-19 Tom Tromey <tom@tromey.com>
5028 * type-stack.h (struct type_stack) <insert>: Constify string.
5029 * type-stack.c (type_stack::insert): Constify string.
5030 * gdbtypes.h (lookup_template_type): Update.
5031 (address_space_name_to_int): Update.
5032 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5034 (lookup_template_type): Make name const.
5035 * c-exp.y: Update rules.
5036 (lex_one_token, classify_name, classify_inner_name)
5037 (c_print_token): Update.
5038 * p-exp.y: Update rules.
5040 * f-exp.y: Update rules.
5042 * d-exp.y: Update rules.
5043 (lex_one_token, classify_name, classify_inner_name): Update.
5044 * parse.c (write_dollar_variable, copy_name): Return std::string.
5045 * parser-defs.h (copy_name): Change return type.
5046 * m2-exp.y: Update rules.
5048 * go-exp.y (lex_one_token): Update.
5050 (classify_unsafe_function, classify_packaged_name)
5051 (classify_name, yylex): Update.
5053 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5055 * configure.ac: add --enable-source-highlight switch.
5056 * configure: Regenerate.
5057 * top.c (print_gdb_version): plumb --enable-source-highlight
5058 status to "show configuration".
5060 2019-04-19 Tom Tromey <tromey@adacore.com>
5062 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5064 (empty_record, ada_template_to_fixed_record_type_1)
5065 (template_to_static_fixed_type)
5066 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5067 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5068 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5071 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5074 * source.c (print_source_lines_base): Advance "iter" when a
5075 control character is seen.
5077 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5079 * inferior.h (struct infcall_suspend_state_deleter):
5080 Catch exception in destructor to avoid crash.
5082 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5084 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5085 close to the add_com "shell".
5087 2019-04-18 Tom Tromey <tromey@adacore.com>
5089 * process-stratum-target.h (class process_stratum_target)
5090 <stratum>: Add "final".
5092 2019-04-17 Tom Tromey <tromey@adacore.com>
5094 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5095 against nullptr before use.
5097 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5099 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5101 2019-04-17 Jim Wilson <jimw@sifive.com>
5102 Andrew Burgess <andrew.burgess@embecosm.com>
5104 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5105 code read might fail, assume 4-byte breakpoint in that case.
5107 2019-04-15 Leszek Swirski <leszeks@google.com>
5109 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5110 rather than a hand-rolled POD check when checking for forced MEMORY
5113 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5115 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5116 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5118 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5119 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5120 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5123 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5125 * aarch64-linux-nat.c
5126 (aarch64_linux_nat_target::thread_architecture): Add override.
5127 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5130 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5132 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5134 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5136 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5137 target types of size 96-bits, add some additional comments, and
5138 check that the builtin type we found was the correct size.
5140 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5142 * utils.c (prompt_for_continue): Don't restore the styling at the
5143 end, as applied_style has the wrong value. This fixes styling in
5144 long lists of file names that are interrupted by the "Continue?"
5147 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5149 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5150 * c-lang.c (c_language_defn): Likewise.
5151 (cplus_language_defn): Likewise.
5152 (asm_language_defn): Likewise.
5153 (minimal_language_defn): Likewise.
5154 * d-lang.c (d_language_defn): Likewise.
5155 * f-lang.c (f_language_defn): Likewise.
5156 * go-lang.c (go_language_defn): Likewise.
5157 * language.c (unknown_language_defn): Likewise.
5158 (auto_language_defn): Likewise.
5159 * language.h (struct language_defn): Remove la_magic field.
5160 (LANG_MAGIC): Delete.
5161 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5162 * objc-lang.c (objc_language_defn): Likewise.
5163 * opencl-lang.c (opencl_language_defn): Likewise.
5164 * p-lang.c (pascal_language_defn): Likewise.
5165 * rust-lang.c (rust_language_defn): Likewise.
5167 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5169 * riscv-tdep.c (riscv_type_align): New function.
5170 (riscv_type_alignment): Delete.
5171 (riscv_arg_location): Use 'type_align'.
5172 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5174 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5176 * gdbtypes.c (type_align): A struct with no non-static fields also
5179 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5181 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5183 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5185 (riscv_struct_info::analyse): New implementation using new
5186 analyse_inner member function.
5187 (riscv_struct_info::field_offset): New member function.
5188 (riscv_struct_info::m_offsets): New member variable.
5189 (riscv_struct_info::analyse_inner): New private member function,
5190 takes the old implementation of riscv_struct_info::analyse but
5191 extended to track field offsets.
5192 (riscv_call_arg_struct): Update the struct folding special cases
5193 to handle cases where empty C++ structs, which are non-zero
5195 (riscv_arg_location): Initialise the length of each location, a
5196 non-zero length now indicates the location is in use.
5197 (riscv_push_dummy_call): Allow for the first location having a
5198 non-zero offset when setting up arguments.
5199 (riscv_return_value): Likewise, but for return values.
5201 2019-04-11 Tom Tromey <tromey@adacore.com>
5203 * utils.c (internal_vproblem): Make "msg" const.
5205 2019-04-11 Alan Hayward <alan.hayward@arm.com>
5207 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5208 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5209 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5210 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5212 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5214 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5216 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5217 of amd64_collect_native_gregset.
5218 (amd64_linux_nat_target::store_registers): Likewise.
5220 2019-04-10 Tom Tromey <tom@tromey.com>
5222 * symtab.c (lookup_global_symbol_from_objfile)
5223 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5224 * objfiles.h (class separate_debug_iterator): New.
5225 (class separate_debug_range): New.
5226 (struct objfile) <separate_debug_objfiles>: New method.
5227 (objfile_separate_debug_iterate): Don't declare.
5228 * objfiles.c (separate_debug_iterator::operator++): Rename from
5229 objfile_separate_debug_iterate.
5230 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5232 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5235 2019-04-10 Tom Tromey <tom@tromey.com>
5237 * symfile.c (reread_symbols): Remove old comment.
5238 * objfiles.c (free_all_objfiles): Fix a typo.
5240 2019-04-10 Tom Tromey <tom@tromey.com>
5242 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5243 * minsyms.c (lookup_minimal_symbol): Use foreach.
5244 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5245 (lookup_minimal_symbol_solib_trampoline): Likewise.
5246 * symfile.c (reread_symbols): Use foreach.
5248 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
5249 Tom Tromey <tromey@adacore.com>
5252 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5253 (rust_lex_int_test): Change "value" to be LONGEST.
5254 (rust_lex_tests): Add test for long integer literal.
5256 2019-04-09 Tom Tromey <tromey@adacore.com>
5258 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5260 (extended_remote_target::attach): Update.
5261 (remote_target::remote_notice_new_inferior): Update.
5262 (remote_target::add_current_inferior_and_thread): Update.
5263 * inferior.c (exit_inferior_1): Use "false".
5264 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5266 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
5268 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
5269 the "start" command.
5271 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5273 * python/py-inferior.c (infpy_thread_from_thread_handle):
5274 Adjust comments to reflect renaming of thread_from_thread_handle
5275 to thread_from_handle. Adjust keywords. Fix type error message.
5276 (inferior_object_methods): Add thread_from_handle. Retain
5277 thread_from_thread_handle, but mark it as deprecated.
5279 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5281 * gdbthread.h (find_thread_by_handle): Revise declaration.
5282 * thread.c (find_thread_by_handle): Likewise. Adjust
5284 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5285 support for buffer objects as handles.
5287 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5289 * python/py-infthread.c (thpy_thread_handle): New function.
5290 (thread_object_methods): Register thpy_thread_handle.
5292 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5294 * gdbthread.h (thread_to_thread_handle): Declare.
5295 * thread.c (gdbtypes.h): Include.
5296 (thread_to_thread_handle): New function.
5298 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5299 (target_thread_info_to_thread_handle): Declare.
5300 * target.c (target_thread_info_to_thread_handle): New function.
5301 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5302 * target-delegates.c: Regenerate.
5304 * linux-thread-db.c (class thread_db_target): Add method
5305 thread_info_to_thread_handle.
5306 (thread_db_target::thread_info_to_thread_handle): Define.
5307 * remote.c (class remote_target): Add new method
5308 thread_info_to_thread_handle.
5309 (remote_target::thread_info_to_thread_handle): Define.
5311 2019-04-08 Pedro Alves <palves@redhat.com>
5313 * common/common-exceptions.c (throw_exception): Don't create
5314 named object to throw; throw directly.
5315 (throw_it): Likewise. Don't initialize gdb_exception::message
5316 here, with new; pass FMT and AP to the ctor instead.
5317 * common/common-exceptions.h: Include <string>.
5318 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5319 const char *, va_list)): New ctor. Use std::make_shared.
5320 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5322 (gdb_exception_error::gdb_exception_error(enum errors, const char
5324 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5326 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5328 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5329 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5332 2019-04-08 Tom Tromey <tom@tromey.com>
5334 * valops.c (value_rtti_indirect_type): Replace throw_exception
5336 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5338 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5340 * target.c (target_translate_tls_address): Replace throw_exception
5342 * stack.c (frame_apply_command_count): Replace throw_exception
5344 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5346 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5348 * rs6000-tdep.c (rs6000_frame_cache)
5349 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5350 * remote.c: Replace throw_exception with throw.
5351 * record-full.c (record_full_message, record_full_wait_1)
5352 (record_full_restore): Replace throw_exception with throw.
5354 (get_thread_current_frame_id, record_btrace_start_replaying)
5355 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5356 (cmd_record_btrace_start): Replace throw_exception with throw.
5357 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5359 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5360 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5362 (find_linespec_symbols): Replace throw_exception with throw.
5363 * infrun.c (displaced_step_prepare, resume): Replace
5364 throw_exception with throw.
5365 * infcmd.c (post_create_inferior): Replace throw_exception with
5367 * inf-loop.c (inferior_event_handler): Replace throw_exception
5369 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5370 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5371 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5372 (get_prev_frame_always, get_frame_pc_if_available)
5373 (get_frame_address_in_block_if_available, get_frame_language):
5374 Replace throw_exception with throw.
5375 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5376 throw_exception with throw.
5377 * eval.c (fetch_subexp_value, evaluate_var_value)
5378 (evaluate_funcall, evaluate_subexp_standard): Replace
5379 throw_exception with throw.
5380 * dwarf2loc.c (call_site_find_chain)
5381 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5382 Replace throw_exception with throw.
5383 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5385 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5387 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5388 * completer.c (complete_line_internal): Replace throw_exception
5390 * compile/compile-object-run.c (compile_object_run): Replace
5391 throw_exception with throw.
5392 * cli/cli-script.c (process_next_line): Replace throw_exception
5394 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
5395 (btrace_enable, btrace_maint_update_pt_packets): Replace
5396 throw_exception with throw.
5397 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
5398 throw_exception with throw.
5399 * break-catch-throw.c (re_set_exception_catchpoint): Replace
5400 throw_exception with throw.
5401 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5402 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
5403 * aarch64-tdep.c (aarch64_make_prologue_cache)
5404 (aarch64_make_stub_cache): Replace throw_exception with throw.
5406 2019-04-08 Tom Tromey <tom@tromey.com>
5408 * common/common-exceptions.c (throw_exception): Rename from
5409 throw_exception_cxx. Remove old copy. Make argument const.
5410 (throw_it): Create and throw exception objects directly.
5411 * common/common-exceptions.h (throw_exception): Make argument
5413 (struct gdb_exception_error): Add constructor.
5414 (struct gdb_exception_quit): Add constructor.
5416 2019-04-08 Tom Tromey <tom@tromey.com>
5418 * common/common-exceptions.h (exception_rethrow): Don't declare.
5419 (TRY_SJLJ): Update comment.
5420 (TRY, CATCH, END_CATCH): Remove.
5421 * common/common-exceptions.c (exception_rethrow): Remove.
5423 2019-04-08 Tom Tromey <tom@tromey.com>
5425 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
5427 (gdb_exception_error): Rename from
5428 gdb_exception_RETURN_MASK_ERROR.
5429 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
5430 (gdb_quit_bad_alloc): Update.
5431 * aarch64-tdep.c: Update.
5432 * ada-lang.c: Update.
5433 * ada-typeprint.c: Update.
5434 * ada-valprint.c: Update.
5435 * amd64-tdep.c: Update.
5436 * arch-utils.c: Update.
5437 * break-catch-throw.c: Update.
5438 * breakpoint.c: Update.
5440 * c-varobj.c: Update.
5441 * cli/cli-cmds.c: Update.
5442 * cli/cli-interp.c: Update.
5443 * cli/cli-script.c: Update.
5444 * common/common-exceptions.c: Update.
5445 * common/new-op.c: Update.
5446 * common/selftest.c: Update.
5447 * compile/compile-c-symbols.c: Update.
5448 * compile/compile-cplus-symbols.c: Update.
5449 * compile/compile-object-load.c: Update.
5450 * compile/compile-object-run.c: Update.
5451 * completer.c: Update.
5452 * corelow.c: Update.
5454 * cp-support.c: Update.
5455 * cp-valprint.c: Update.
5456 * darwin-nat.c: Update.
5457 * disasm-selftests.c: Update.
5458 * dtrace-probe.c: Update.
5459 * dwarf-index-cache.c: Update.
5460 * dwarf-index-write.c: Update.
5461 * dwarf2-frame-tailcall.c: Update.
5462 * dwarf2-frame.c: Update.
5463 * dwarf2loc.c: Update.
5464 * dwarf2read.c: Update.
5466 * event-loop.c: Update.
5467 * event-top.c: Update.
5469 * f-valprint.c: Update.
5470 * fbsd-tdep.c: Update.
5471 * frame-unwind.c: Update.
5473 * gdbtypes.c: Update.
5474 * gnu-v3-abi.c: Update.
5475 * guile/guile-internal.h: Update.
5476 * guile/scm-block.c: Update.
5477 * guile/scm-breakpoint.c: Update.
5478 * guile/scm-cmd.c: Update.
5479 * guile/scm-disasm.c: Update.
5480 * guile/scm-frame.c: Update.
5481 * guile/scm-lazy-string.c: Update.
5482 * guile/scm-math.c: Update.
5483 * guile/scm-param.c: Update.
5484 * guile/scm-ports.c: Update.
5485 * guile/scm-pretty-print.c: Update.
5486 * guile/scm-symbol.c: Update.
5487 * guile/scm-symtab.c: Update.
5488 * guile/scm-type.c: Update.
5489 * guile/scm-value.c: Update.
5490 * i386-linux-tdep.c: Update.
5491 * i386-tdep.c: Update.
5492 * inf-loop.c: Update.
5493 * infcall.c: Update.
5497 * language.c: Update.
5498 * linespec.c: Update.
5499 * linux-fork.c: Update.
5500 * linux-nat.c: Update.
5501 * linux-tdep.c: Update.
5502 * linux-thread-db.c: Update.
5504 * mi/mi-cmd-break.c: Update.
5505 * mi/mi-cmd-stack.c: Update.
5506 * mi/mi-interp.c: Update.
5507 * mi/mi-main.c: Update.
5508 * objc-lang.c: Update.
5509 * p-valprint.c: Update.
5511 * ppc-linux-tdep.c: Update.
5512 * printcmd.c: Update.
5513 * python/py-arch.c: Update.
5514 * python/py-breakpoint.c: Update.
5515 * python/py-cmd.c: Update.
5516 * python/py-finishbreakpoint.c: Update.
5517 * python/py-frame.c: Update.
5518 * python/py-framefilter.c: Update.
5519 * python/py-gdb-readline.c: Update.
5520 * python/py-inferior.c: Update.
5521 * python/py-infthread.c: Update.
5522 * python/py-lazy-string.c: Update.
5523 * python/py-linetable.c: Update.
5524 * python/py-objfile.c: Update.
5525 * python/py-param.c: Update.
5526 * python/py-prettyprint.c: Update.
5527 * python/py-progspace.c: Update.
5528 * python/py-record-btrace.c: Update.
5529 * python/py-record.c: Update.
5530 * python/py-symbol.c: Update.
5531 * python/py-type.c: Update.
5532 * python/py-unwind.c: Update.
5533 * python/py-utils.c: Update.
5534 * python/py-value.c: Update.
5535 * python/python.c: Update.
5536 * record-btrace.c: Update.
5537 * record-full.c: Update.
5538 * remote-fileio.c: Update.
5540 * riscv-tdep.c: Update.
5541 * rs6000-aix-tdep.c: Update.
5542 * rs6000-tdep.c: Update.
5543 * rust-exp.y: Update.
5544 * rust-lang.c: Update.
5545 * s390-tdep.c: Update.
5546 * selftest-arch.c: Update.
5547 * solib-dsbt.c: Update.
5548 * solib-frv.c: Update.
5549 * solib-spu.c: Update.
5550 * solib-svr4.c: Update.
5552 * sparc64-linux-tdep.c: Update.
5554 * symfile-mem.c: Update.
5555 * symmisc.c: Update.
5559 * tracefile-tfile.c: Update.
5560 * tui/tui.c: Update.
5561 * typeprint.c: Update.
5562 * unittests/cli-utils-selftests.c: Update.
5563 * unittests/parse-connection-spec-selftests.c: Update.
5565 * valprint.c: Update.
5568 * windows-nat.c: Update.
5569 * x86-linux-nat.c: Update.
5570 * xml-support.c: Update.
5572 2019-04-08 Tom Tromey <tom@tromey.com>
5574 * xml-support.c: Use C++ exception handling.
5575 * x86-linux-nat.c: Use C++ exception handling.
5576 * windows-nat.c: Use C++ exception handling.
5577 * varobj.c: Use C++ exception handling.
5578 * value.c: Use C++ exception handling.
5579 * valprint.c: Use C++ exception handling.
5580 * valops.c: Use C++ exception handling.
5581 * unittests/parse-connection-spec-selftests.c: Use C++ exception
5583 * unittests/cli-utils-selftests.c: Use C++ exception handling.
5584 * typeprint.c: Use C++ exception handling.
5585 * tui/tui.c: Use C++ exception handling.
5586 * tracefile-tfile.c: Use C++ exception handling.
5587 * top.c: Use C++ exception handling.
5588 * thread.c: Use C++ exception handling.
5589 * target.c: Use C++ exception handling.
5590 * symmisc.c: Use C++ exception handling.
5591 * symfile-mem.c: Use C++ exception handling.
5592 * stack.c: Use C++ exception handling.
5593 * sparc64-linux-tdep.c: Use C++ exception handling.
5594 * solib.c: Use C++ exception handling.
5595 * solib-svr4.c: Use C++ exception handling.
5596 * solib-spu.c: Use C++ exception handling.
5597 * solib-frv.c: Use C++ exception handling.
5598 * solib-dsbt.c: Use C++ exception handling.
5599 * selftest-arch.c: Use C++ exception handling.
5600 * s390-tdep.c: Use C++ exception handling.
5601 * rust-lang.c: Use C++ exception handling.
5602 * rust-exp.y: Use C++ exception handling.
5603 * rs6000-tdep.c: Use C++ exception handling.
5604 * rs6000-aix-tdep.c: Use C++ exception handling.
5605 * riscv-tdep.c: Use C++ exception handling.
5606 * remote.c: Use C++ exception handling.
5607 * remote-fileio.c: Use C++ exception handling.
5608 * record-full.c: Use C++ exception handling.
5609 * record-btrace.c: Use C++ exception handling.
5610 * python/python.c: Use C++ exception handling.
5611 * python/py-value.c: Use C++ exception handling.
5612 * python/py-utils.c: Use C++ exception handling.
5613 * python/py-unwind.c: Use C++ exception handling.
5614 * python/py-type.c: Use C++ exception handling.
5615 * python/py-symbol.c: Use C++ exception handling.
5616 * python/py-record.c: Use C++ exception handling.
5617 * python/py-record-btrace.c: Use C++ exception handling.
5618 * python/py-progspace.c: Use C++ exception handling.
5619 * python/py-prettyprint.c: Use C++ exception handling.
5620 * python/py-param.c: Use C++ exception handling.
5621 * python/py-objfile.c: Use C++ exception handling.
5622 * python/py-linetable.c: Use C++ exception handling.
5623 * python/py-lazy-string.c: Use C++ exception handling.
5624 * python/py-infthread.c: Use C++ exception handling.
5625 * python/py-inferior.c: Use C++ exception handling.
5626 * python/py-gdb-readline.c: Use C++ exception handling.
5627 * python/py-framefilter.c: Use C++ exception handling.
5628 * python/py-frame.c: Use C++ exception handling.
5629 * python/py-finishbreakpoint.c: Use C++ exception handling.
5630 * python/py-cmd.c: Use C++ exception handling.
5631 * python/py-breakpoint.c: Use C++ exception handling.
5632 * python/py-arch.c: Use C++ exception handling.
5633 * printcmd.c: Use C++ exception handling.
5634 * ppc-linux-tdep.c: Use C++ exception handling.
5635 * parse.c: Use C++ exception handling.
5636 * p-valprint.c: Use C++ exception handling.
5637 * objc-lang.c: Use C++ exception handling.
5638 * mi/mi-main.c: Use C++ exception handling.
5639 * mi/mi-interp.c: Use C++ exception handling.
5640 * mi/mi-cmd-stack.c: Use C++ exception handling.
5641 * mi/mi-cmd-break.c: Use C++ exception handling.
5642 * main.c: Use C++ exception handling.
5643 * linux-thread-db.c: Use C++ exception handling.
5644 * linux-tdep.c: Use C++ exception handling.
5645 * linux-nat.c: Use C++ exception handling.
5646 * linux-fork.c: Use C++ exception handling.
5647 * linespec.c: Use C++ exception handling.
5648 * language.c: Use C++ exception handling.
5649 * jit.c: Use C++ exception handling.
5650 * infrun.c: Use C++ exception handling.
5651 * infcmd.c: Use C++ exception handling.
5652 * infcall.c: Use C++ exception handling.
5653 * inf-loop.c: Use C++ exception handling.
5654 * i386-tdep.c: Use C++ exception handling.
5655 * i386-linux-tdep.c: Use C++ exception handling.
5656 * guile/scm-value.c: Use C++ exception handling.
5657 * guile/scm-type.c: Use C++ exception handling.
5658 * guile/scm-symtab.c: Use C++ exception handling.
5659 * guile/scm-symbol.c: Use C++ exception handling.
5660 * guile/scm-pretty-print.c: Use C++ exception handling.
5661 * guile/scm-ports.c: Use C++ exception handling.
5662 * guile/scm-param.c: Use C++ exception handling.
5663 * guile/scm-math.c: Use C++ exception handling.
5664 * guile/scm-lazy-string.c: Use C++ exception handling.
5665 * guile/scm-frame.c: Use C++ exception handling.
5666 * guile/scm-disasm.c: Use C++ exception handling.
5667 * guile/scm-cmd.c: Use C++ exception handling.
5668 * guile/scm-breakpoint.c: Use C++ exception handling.
5669 * guile/scm-block.c: Use C++ exception handling.
5670 * guile/guile-internal.h: Use C++ exception handling.
5671 * gnu-v3-abi.c: Use C++ exception handling.
5672 * gdbtypes.c: Use C++ exception handling.
5673 * frame.c: Use C++ exception handling.
5674 * frame-unwind.c: Use C++ exception handling.
5675 * fbsd-tdep.c: Use C++ exception handling.
5676 * f-valprint.c: Use C++ exception handling.
5677 * exec.c: Use C++ exception handling.
5678 * event-top.c: Use C++ exception handling.
5679 * event-loop.c: Use C++ exception handling.
5680 * eval.c: Use C++ exception handling.
5681 * dwarf2read.c: Use C++ exception handling.
5682 * dwarf2loc.c: Use C++ exception handling.
5683 * dwarf2-frame.c: Use C++ exception handling.
5684 * dwarf2-frame-tailcall.c: Use C++ exception handling.
5685 * dwarf-index-write.c: Use C++ exception handling.
5686 * dwarf-index-cache.c: Use C++ exception handling.
5687 * dtrace-probe.c: Use C++ exception handling.
5688 * disasm-selftests.c: Use C++ exception handling.
5689 * darwin-nat.c: Use C++ exception handling.
5690 * cp-valprint.c: Use C++ exception handling.
5691 * cp-support.c: Use C++ exception handling.
5692 * cp-abi.c: Use C++ exception handling.
5693 * corelow.c: Use C++ exception handling.
5694 * completer.c: Use C++ exception handling.
5695 * compile/compile-object-run.c: Use C++ exception handling.
5696 * compile/compile-object-load.c: Use C++ exception handling.
5697 * compile/compile-cplus-symbols.c: Use C++ exception handling.
5698 * compile/compile-c-symbols.c: Use C++ exception handling.
5699 * common/selftest.c: Use C++ exception handling.
5700 * common/new-op.c: Use C++ exception handling.
5701 * cli/cli-script.c: Use C++ exception handling.
5702 * cli/cli-interp.c: Use C++ exception handling.
5703 * cli/cli-cmds.c: Use C++ exception handling.
5704 * c-varobj.c: Use C++ exception handling.
5705 * btrace.c: Use C++ exception handling.
5706 * breakpoint.c: Use C++ exception handling.
5707 * break-catch-throw.c: Use C++ exception handling.
5708 * arch-utils.c: Use C++ exception handling.
5709 * amd64-tdep.c: Use C++ exception handling.
5710 * ada-valprint.c: Use C++ exception handling.
5711 * ada-typeprint.c: Use C++ exception handling.
5712 * ada-lang.c: Use C++ exception handling.
5713 * aarch64-tdep.c: Use C++ exception handling.
5715 2019-04-08 Tom Tromey <tom@tromey.com>
5717 * xml-support.c (gdb_xml_parser::parse): Update.
5718 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
5719 * value.c (show_convenience): Update.
5720 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
5721 (test_parse_flags_qcs): Update.
5722 * thread.c (thr_try_catch_cmd): Update.
5723 * target.c (target_translate_tls_address): Update.
5724 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5725 (info_frame_command_core, frame_apply_command_count): Update.
5726 * rust-exp.y (rust_lex_exception_test): Update.
5727 * riscv-tdep.c (riscv_print_one_register_info): Update.
5728 * remote.c (remote_target::enable_btrace): Update.
5729 * record-btrace.c (record_btrace_enable_warn): Update.
5730 * python/py-utils.c (gdbpy_convert_exception): Update.
5731 * printcmd.c (do_one_display, print_variable_and_value): Update.
5732 * mi/mi-main.c (mi_print_exception): Update.
5733 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
5734 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5735 * linux-nat.c (linux_nat_target::attach): Update.
5736 * linux-fork.c (class scoped_switch_fork_info): Update.
5737 * infrun.c (displaced_step_prepare): Update.
5738 * infcall.c (call_function_by_hand_dummy): Update.
5739 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
5740 * gnu-v3-abi.c (print_one_vtable): Update.
5741 * frame.c (get_prev_frame_always): Update.
5742 * f-valprint.c (info_common_command_for_block): Update.
5743 * exec.c (try_open_exec_file): Update.
5744 * exceptions.c (print_exception, exception_print)
5745 (exception_fprintf, exception_print_same): Update.
5746 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
5747 * dwarf-index-cache.c (index_cache::store)
5748 (index_cache::lookup_gdb_index): Update.
5749 * darwin-nat.c (maybe_cache_shell): Update.
5750 * cp-valprint.c (cp_print_value_fields): Update.
5751 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
5752 (gcc_cplus_symbol_address): Update.
5753 * compile/compile-c-symbols.c (gcc_convert_symbol)
5754 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
5755 * common/selftest.c: Update.
5756 * common/common-exceptions.h (struct gdb_exception) <message>: Now
5758 (exception_try_scope_entry, exception_try_scope_exit): Don't
5760 (struct exception_try_scope): Remove.
5761 (TRY): Don't use exception_try_scope.
5762 (struct gdb_exception): Add constructor, operator=.
5764 (struct gdb_exception_RETURN_MASK_ALL)
5765 (struct gdb_exception_RETURN_MASK_ERROR)
5766 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
5767 (struct gdb_quit_bad_alloc): Update.
5768 * common/common-exceptions.c (exception_none): Change
5770 (struct catcher) <state, exception>: Initialize inline.
5771 <prev>: Remove member.
5772 (current_catcher): Remove.
5773 (catchers): New global.
5774 (exceptions_state_mc_init): Simplify.
5775 (catcher_pop): Remove.
5776 (exceptions_state_mc, exceptions_state_mc_catch): Update.
5777 (try_scope_depth, exception_try_scope_entry)
5778 (exception_try_scope_exit): Remove.
5779 (throw_exception_sjlj): Update.
5780 (exception_messages, exception_messages_size): Remove.
5781 (throw_it): Simplify.
5782 (gdb_exception_sliced_copy): Remove.
5783 (throw_exception_cxx): Update.
5784 * cli/cli-script.c (script_from_file): Update.
5785 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
5787 * ada-valprint.c (ada_val_print): Update.
5788 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
5789 (create_excep_cond_exprs): Update.
5791 2019-04-08 Tom Tromey <tom@tromey.com>
5793 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
5794 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
5795 (TRY, CATCH, END_CATCH): Remove some definitions.
5796 * common/common-exceptions.c: Don't use GDB_XCPT.
5797 (catcher_list_size): Remove.
5798 (throw_exception, throw_it): Simplify.
5800 2019-04-05 Tom Tromey <tom@tromey.com>
5802 Revert the header-sorting patch.
5803 * ft32-tdep.c: Revert.
5804 * frv-tdep.c: Revert.
5805 * frv-linux-tdep.c: Revert.
5807 * frame-unwind.c: Revert.
5808 * frame-base.c: Revert.
5809 * fork-child.c: Revert.
5810 * findvar.c: Revert.
5811 * findcmd.c: Revert.
5812 * filesystem.c: Revert.
5813 * filename-seen-cache.h: Revert.
5814 * filename-seen-cache.c: Revert.
5815 * fbsd-tdep.c: Revert.
5816 * fbsd-nat.h: Revert.
5817 * fbsd-nat.c: Revert.
5818 * f-valprint.c: Revert.
5819 * f-typeprint.c: Revert.
5821 * extension.h: Revert.
5822 * extension.c: Revert.
5823 * extension-priv.h: Revert.
5824 * expprint.c: Revert.
5827 * exceptions.c: Revert.
5828 * event-top.c: Revert.
5829 * event-loop.c: Revert.
5831 * elfread.c: Revert.
5832 * dwarf2read.h: Revert.
5833 * dwarf2read.c: Revert.
5834 * dwarf2loc.c: Revert.
5835 * dwarf2expr.h: Revert.
5836 * dwarf2expr.c: Revert.
5837 * dwarf2-frame.c: Revert.
5838 * dwarf2-frame-tailcall.c: Revert.
5839 * dwarf-index-write.h: Revert.
5840 * dwarf-index-write.c: Revert.
5841 * dwarf-index-common.c: Revert.
5842 * dwarf-index-cache.h: Revert.
5843 * dwarf-index-cache.c: Revert.
5844 * dummy-frame.c: Revert.
5845 * dtrace-probe.c: Revert.
5848 * disasm-selftests.c: Revert.
5849 * dictionary.c: Revert.
5850 * dicos-tdep.c: Revert.
5851 * demangle.c: Revert.
5854 * darwin-nat.h: Revert.
5855 * darwin-nat.c: Revert.
5856 * darwin-nat-info.c: Revert.
5857 * d-valprint.c: Revert.
5858 * d-namespace.c: Revert.
5861 * csky-tdep.c: Revert.
5862 * csky-linux-tdep.c: Revert.
5863 * cris-tdep.c: Revert.
5864 * cris-linux-tdep.c: Revert.
5865 * cp-valprint.c: Revert.
5866 * cp-support.c: Revert.
5867 * cp-namespace.c: Revert.
5869 * corelow.c: Revert.
5870 * corefile.c: Revert.
5871 * continuations.c: Revert.
5872 * completer.h: Revert.
5873 * completer.c: Revert.
5874 * complaints.c: Revert.
5875 * coffread.c: Revert.
5876 * coff-pe-read.c: Revert.
5877 * cli-out.h: Revert.
5878 * cli-out.c: Revert.
5879 * charset.c: Revert.
5880 * c-varobj.c: Revert.
5881 * c-valprint.c: Revert.
5882 * c-typeprint.c: Revert.
5884 * buildsym.c: Revert.
5885 * buildsym-legacy.c: Revert.
5886 * build-id.h: Revert.
5887 * build-id.c: Revert.
5889 * bsd-uthread.c: Revert.
5890 * breakpoint.h: Revert.
5891 * breakpoint.c: Revert.
5892 * break-catch-throw.c: Revert.
5893 * break-catch-syscall.c: Revert.
5894 * break-catch-sig.c: Revert.
5895 * blockframe.c: Revert.
5897 * bfin-tdep.c: Revert.
5898 * bfin-linux-tdep.c: Revert.
5899 * bfd-target.c: Revert.
5901 * ax-general.c: Revert.
5904 * avr-tdep.c: Revert.
5906 * auto-load.c: Revert.
5907 * arm-wince-tdep.c: Revert.
5908 * arm-tdep.c: Revert.
5909 * arm-symbian-tdep.c: Revert.
5910 * arm-pikeos-tdep.c: Revert.
5911 * arm-obsd-tdep.c: Revert.
5912 * arm-nbsd-tdep.c: Revert.
5913 * arm-nbsd-nat.c: Revert.
5914 * arm-linux-tdep.c: Revert.
5915 * arm-linux-nat.c: Revert.
5916 * arm-fbsd-tdep.c: Revert.
5917 * arm-fbsd-nat.c: Revert.
5918 * arm-bsd-tdep.c: Revert.
5919 * arch-utils.c: Revert.
5920 * arc-tdep.c: Revert.
5921 * arc-newlib-tdep.c: Revert.
5922 * annotate.h: Revert.
5923 * annotate.c: Revert.
5924 * amd64-windows-tdep.c: Revert.
5925 * amd64-windows-nat.c: Revert.
5926 * amd64-tdep.c: Revert.
5927 * amd64-sol2-tdep.c: Revert.
5928 * amd64-obsd-tdep.c: Revert.
5929 * amd64-obsd-nat.c: Revert.
5930 * amd64-nbsd-tdep.c: Revert.
5931 * amd64-nbsd-nat.c: Revert.
5932 * amd64-nat.c: Revert.
5933 * amd64-linux-tdep.c: Revert.
5934 * amd64-linux-nat.c: Revert.
5935 * amd64-fbsd-tdep.c: Revert.
5936 * amd64-fbsd-nat.c: Revert.
5937 * amd64-dicos-tdep.c: Revert.
5938 * amd64-darwin-tdep.c: Revert.
5939 * amd64-bsd-nat.c: Revert.
5940 * alpha-tdep.c: Revert.
5941 * alpha-obsd-tdep.c: Revert.
5942 * alpha-nbsd-tdep.c: Revert.
5943 * alpha-mdebug-tdep.c: Revert.
5944 * alpha-linux-tdep.c: Revert.
5945 * alpha-linux-nat.c: Revert.
5946 * alpha-bsd-tdep.c: Revert.
5947 * alpha-bsd-nat.c: Revert.
5948 * aix-thread.c: Revert.
5950 * addrmap.c: Revert.
5951 * ada-varobj.c: Revert.
5952 * ada-valprint.c: Revert.
5953 * ada-typeprint.c: Revert.
5954 * ada-tasks.c: Revert.
5955 * ada-lang.c: Revert.
5956 * aarch64-tdep.c: Revert.
5957 * aarch64-ravenscar-thread.c: Revert.
5958 * aarch64-newlib-tdep.c: Revert.
5959 * aarch64-linux-tdep.c: Revert.
5960 * aarch64-linux-nat.c: Revert.
5961 * aarch64-fbsd-tdep.c: Revert.
5962 * aarch64-fbsd-nat.c: Revert.
5963 * aarch32-linux-nat.c: Revert.
5965 2019-04-05 Tom Tromey <tom@tromey.com>
5967 * ft32-tdep.c: Sort headers.
5968 * frv-tdep.c: Sort headers.
5969 * frv-linux-tdep.c: Sort headers.
5970 * frame.c: Sort headers.
5971 * frame-unwind.c: Sort headers.
5972 * frame-base.c: Sort headers.
5973 * fork-child.c: Sort headers.
5974 * findvar.c: Sort headers.
5975 * findcmd.c: Sort headers.
5976 * filesystem.c: Sort headers.
5977 * filename-seen-cache.h: Sort headers.
5978 * filename-seen-cache.c: Sort headers.
5979 * fbsd-tdep.c: Sort headers.
5980 * fbsd-nat.h: Sort headers.
5981 * fbsd-nat.c: Sort headers.
5982 * f-valprint.c: Sort headers.
5983 * f-typeprint.c: Sort headers.
5984 * f-lang.c: Sort headers.
5985 * extension.h: Sort headers.
5986 * extension.c: Sort headers.
5987 * extension-priv.h: Sort headers.
5988 * expprint.c: Sort headers.
5989 * exec.h: Sort headers.
5990 * exec.c: Sort headers.
5991 * exceptions.c: Sort headers.
5992 * event-top.c: Sort headers.
5993 * event-loop.c: Sort headers.
5994 * eval.c: Sort headers.
5995 * elfread.c: Sort headers.
5996 * dwarf2read.h: Sort headers.
5997 * dwarf2read.c: Sort headers.
5998 * dwarf2loc.c: Sort headers.
5999 * dwarf2expr.h: Sort headers.
6000 * dwarf2expr.c: Sort headers.
6001 * dwarf2-frame.c: Sort headers.
6002 * dwarf2-frame-tailcall.c: Sort headers.
6003 * dwarf-index-write.h: Sort headers.
6004 * dwarf-index-write.c: Sort headers.
6005 * dwarf-index-common.c: Sort headers.
6006 * dwarf-index-cache.h: Sort headers.
6007 * dwarf-index-cache.c: Sort headers.
6008 * dummy-frame.c: Sort headers.
6009 * dtrace-probe.c: Sort headers.
6010 * disasm.h: Sort headers.
6011 * disasm.c: Sort headers.
6012 * disasm-selftests.c: Sort headers.
6013 * dictionary.c: Sort headers.
6014 * dicos-tdep.c: Sort headers.
6015 * demangle.c: Sort headers.
6016 * dcache.h: Sort headers.
6017 * dcache.c: Sort headers.
6018 * darwin-nat.h: Sort headers.
6019 * darwin-nat.c: Sort headers.
6020 * darwin-nat-info.c: Sort headers.
6021 * d-valprint.c: Sort headers.
6022 * d-namespace.c: Sort headers.
6023 * d-lang.c: Sort headers.
6024 * ctf.c: Sort headers.
6025 * csky-tdep.c: Sort headers.
6026 * csky-linux-tdep.c: Sort headers.
6027 * cris-tdep.c: Sort headers.
6028 * cris-linux-tdep.c: Sort headers.
6029 * cp-valprint.c: Sort headers.
6030 * cp-support.c: Sort headers.
6031 * cp-namespace.c: Sort headers.
6032 * cp-abi.c: Sort headers.
6033 * corelow.c: Sort headers.
6034 * corefile.c: Sort headers.
6035 * continuations.c: Sort headers.
6036 * completer.h: Sort headers.
6037 * completer.c: Sort headers.
6038 * complaints.c: Sort headers.
6039 * coffread.c: Sort headers.
6040 * coff-pe-read.c: Sort headers.
6041 * cli-out.h: Sort headers.
6042 * cli-out.c: Sort headers.
6043 * charset.c: Sort headers.
6044 * c-varobj.c: Sort headers.
6045 * c-valprint.c: Sort headers.
6046 * c-typeprint.c: Sort headers.
6047 * c-lang.c: Sort headers.
6048 * buildsym.c: Sort headers.
6049 * buildsym-legacy.c: Sort headers.
6050 * build-id.h: Sort headers.
6051 * build-id.c: Sort headers.
6052 * btrace.c: Sort headers.
6053 * bsd-uthread.c: Sort headers.
6054 * breakpoint.h: Sort headers.
6055 * breakpoint.c: Sort headers.
6056 * break-catch-throw.c: Sort headers.
6057 * break-catch-syscall.c: Sort headers.
6058 * break-catch-sig.c: Sort headers.
6059 * blockframe.c: Sort headers.
6060 * block.c: Sort headers.
6061 * bfin-tdep.c: Sort headers.
6062 * bfin-linux-tdep.c: Sort headers.
6063 * bfd-target.c: Sort headers.
6064 * bcache.c: Sort headers.
6065 * ax-general.c: Sort headers.
6066 * ax-gdb.h: Sort headers.
6067 * ax-gdb.c: Sort headers.
6068 * avr-tdep.c: Sort headers.
6069 * auxv.c: Sort headers.
6070 * auto-load.c: Sort headers.
6071 * arm-wince-tdep.c: Sort headers.
6072 * arm-tdep.c: Sort headers.
6073 * arm-symbian-tdep.c: Sort headers.
6074 * arm-pikeos-tdep.c: Sort headers.
6075 * arm-obsd-tdep.c: Sort headers.
6076 * arm-nbsd-tdep.c: Sort headers.
6077 * arm-nbsd-nat.c: Sort headers.
6078 * arm-linux-tdep.c: Sort headers.
6079 * arm-linux-nat.c: Sort headers.
6080 * arm-fbsd-tdep.c: Sort headers.
6081 * arm-fbsd-nat.c: Sort headers.
6082 * arm-bsd-tdep.c: Sort headers.
6083 * arch-utils.c: Sort headers.
6084 * arc-tdep.c: Sort headers.
6085 * arc-newlib-tdep.c: Sort headers.
6086 * annotate.h: Sort headers.
6087 * annotate.c: Sort headers.
6088 * amd64-windows-tdep.c: Sort headers.
6089 * amd64-windows-nat.c: Sort headers.
6090 * amd64-tdep.c: Sort headers.
6091 * amd64-sol2-tdep.c: Sort headers.
6092 * amd64-obsd-tdep.c: Sort headers.
6093 * amd64-obsd-nat.c: Sort headers.
6094 * amd64-nbsd-tdep.c: Sort headers.
6095 * amd64-nbsd-nat.c: Sort headers.
6096 * amd64-nat.c: Sort headers.
6097 * amd64-linux-tdep.c: Sort headers.
6098 * amd64-linux-nat.c: Sort headers.
6099 * amd64-fbsd-tdep.c: Sort headers.
6100 * amd64-fbsd-nat.c: Sort headers.
6101 * amd64-dicos-tdep.c: Sort headers.
6102 * amd64-darwin-tdep.c: Sort headers.
6103 * amd64-bsd-nat.c: Sort headers.
6104 * alpha-tdep.c: Sort headers.
6105 * alpha-obsd-tdep.c: Sort headers.
6106 * alpha-nbsd-tdep.c: Sort headers.
6107 * alpha-mdebug-tdep.c: Sort headers.
6108 * alpha-linux-tdep.c: Sort headers.
6109 * alpha-linux-nat.c: Sort headers.
6110 * alpha-bsd-tdep.c: Sort headers.
6111 * alpha-bsd-nat.c: Sort headers.
6112 * aix-thread.c: Sort headers.
6113 * agent.c: Sort headers.
6114 * addrmap.c: Sort headers.
6115 * ada-varobj.c: Sort headers.
6116 * ada-valprint.c: Sort headers.
6117 * ada-typeprint.c: Sort headers.
6118 * ada-tasks.c: Sort headers.
6119 * ada-lang.c: Sort headers.
6120 * aarch64-tdep.c: Sort headers.
6121 * aarch64-ravenscar-thread.c: Sort headers.
6122 * aarch64-newlib-tdep.c: Sort headers.
6123 * aarch64-linux-tdep.c: Sort headers.
6124 * aarch64-linux-nat.c: Sort headers.
6125 * aarch64-fbsd-tdep.c: Sort headers.
6126 * aarch64-fbsd-nat.c: Sort headers.
6127 * aarch32-linux-nat.c: Sort headers.
6129 2019-04-04 Tom Tromey <tom@tromey.com>
6131 * varobj.c (varobj_create): Update.
6132 * rust-exp.y (struct rust_parser) <update_innermost_block,
6133 lookup_symbol>: New methods.
6134 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6136 (rust_parser::rust_lookup_type)
6137 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6138 * printcmd.c (display_command, do_one_display): Update.
6139 * parser-defs.h (struct parser_state) <parser_state>: Add
6140 "tracker" parameter.
6141 (block_tracker): New member.
6142 (class innermost_block_tracker) <innermost_block_tracker>: Add
6144 <reset>: Remove method.
6145 (innermost_block): Don't declare.
6146 (null_post_parser): Update.
6147 * parse.c (innermost_block): Remove global.
6148 (write_dollar_variable): Update.
6149 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6150 Remove "tracker_types" parameter.
6151 (parse_expression): Add "tracker" parameter.
6152 (parse_expression_for_completion): Update.
6153 (null_post_parser): Add "tracker" parameter.
6154 * p-exp.y: Update rules.
6155 * m2-exp.y: Update rules.
6156 * language.h (struct language_defn) <la_post_parser>: Add
6157 "tracker" parameter.
6158 * go-exp.y: Update rules.
6159 * f-exp.y: Update rules.
6160 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6162 * d-exp.y: Update rules.
6163 * c-exp.y: Update rules.
6164 * breakpoint.c (set_breakpoint_condition): Create an
6165 innermost_block_tracker.
6166 (watch_command_1): Likewise.
6167 * ada-lang.c (resolve): Add "tracker" parameter.
6168 (resolve_subexp): Likewise.
6169 * ada-exp.y (write_var_from_sym): Update.
6171 2019-04-04 Tom Tromey <tom@tromey.com>
6173 * type-stack.h: New file.
6174 * type-stack.c: New file.
6175 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6177 (insert_into_type_stack, insert_type, push_type, push_type_int)
6178 (insert_type_address_space, pop_type, pop_type_int)
6179 (pop_typelist, pop_type_stack, append_type_stack)
6180 (push_type_stack, get_type_stack, push_typelist)
6181 (follow_type_instance_flags, follow_types): Don't declare.
6182 * parse.c (type_stack): Remove global.
6183 (parse_exp_in_context): Update.
6184 (insert_into_type_stack, insert_type, push_type, push_type_int)
6185 (insert_type_address_space, pop_type, pop_type_int)
6186 (pop_typelist, pop_type_stack, append_type_stack)
6187 (push_type_stack, get_type_stack, push_typelist)
6188 (follow_type_instance_flags, follow_types): Remove (moved to
6190 * f-exp.y (type_stack): New global.
6192 (push_kind_type, f_parse): Update.
6193 * d-exp.y (type_stack): New global.
6196 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6198 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6199 (HFILES_NO_SRCDIR): Add type-stack.h.
6201 2019-04-04 Tom Tromey <tom@tromey.com>
6203 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6204 (rust_parser::convert_ast_to_expression, rust_parse)
6205 (rust_lex_test_completion, rust_lex_tests): Update.
6206 * parser-defs.h (struct expr_completion_state): New.
6207 (struct parser_state) <parser_state>: Add completion parameter.
6208 <mark_struct_expression, mark_completion_tag>: New methods.
6209 <parse_completion, m_completion_state>: New members.
6210 (prefixify_expression, null_post_parser): Update.
6211 (mark_struct_expression, mark_completion_tag): Don't declare.
6212 * parse.c (parse_completion, expout_last_struct)
6213 (expout_tag_completion_type, expout_completion_name): Remove
6215 (parser_state::mark_struct_expression)
6216 (parser_state::mark_completion_tag): Now methods.
6217 (prefixify_expression): Add last_struct parameter.
6218 (prefixify_subexp): Likewise.
6219 (parse_exp_1): Update.
6220 (parse_exp_in_context): Add cstate parameter. Update.
6221 (parse_expression_for_completion): Create an
6222 expr_completion_state.
6223 (null_post_parser): Add "completion" parameter.
6224 * p-exp.y: Update rules.
6226 * language.h (struct language_defn) <la_post_parser>: Add
6227 "completing" parameter.
6228 * go-exp.y: Update rules.
6229 (lex_one_token): Update.
6230 * expression.h (parse_completion): Don't declare.
6231 * d-exp.y: Update rules.
6232 (lex_one_token): Update rules.
6233 * c-exp.y: Update rules.
6234 (lex_one_token): Update.
6235 * ada-lang.c (resolve): Add "parse_completion" parameter.
6236 (resolve_subexp): Likewise.
6237 (ada_resolve_function): Likewise.
6239 2019-04-04 Tom Tromey <tom@tromey.com>
6241 * parser-defs.h (struct parser_state) <start_arglist,
6242 end_arglist>: New methods.
6243 <arglist_len, m_funcall_chain>: New members.
6244 (arglist_len, start_arglist, end_arglist): Don't declare.
6245 * parse.c (arglist_len, funcall_chain): Remove global.
6246 (start_arglist, end_arglist): Remove functions.
6247 (parse_exp_in_context): Update.
6248 * p-exp.y: Update rules.
6249 * m2-exp.y: Update rules.
6250 * go-exp.y: Update rules.
6251 * f-exp.y: Update rules.
6252 * d-exp.y: Update rules.
6253 * c-exp.y: Update rules.
6255 2019-04-04 Tom Tromey <tom@tromey.com>
6257 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6258 lex_operator, push_back>: New methods.
6260 (rust_parser::lex_hex, lex_escape): Rename and update.
6261 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6262 (rust_parser::lex_operator): Rename and update.
6263 (rust_parser::lex_number, rustyylex, rustyyerror)
6264 (rust_lex_test_init, rust_lex_test_sequence)
6265 (rust_lex_test_push_back, rust_lex_tests): Update.
6266 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6268 <lexptr, prev_lexptr>: New members.
6269 (lexptr, prev_lexptr): Don't declare.
6270 * parse.c (lexptr, prev_lexptr): Remove globals.
6271 (parse_exp_in_context): Update.
6272 * p-exp.y (yylex, yyerror): Update.
6273 * m2-exp.y (parse_number, yylex, yyerror): Update.
6274 * go-exp.y (lex_one_token, yyerror): Update.
6275 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6276 * d-exp.y (lex_one_token, yyerror): Update.
6277 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6278 (lex_one_token, yyerror): Update.
6279 * ada-lex.l (YY_INPUT): Update.
6280 (rewind_to_char): Update.
6281 * ada-exp.y (yyerror): Update.
6283 2019-04-04 Tom Tromey <tom@tromey.com>
6285 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6286 * parser-defs.h (struct parser_state) <parser_state>: Add new
6288 <comma_terminates>: New member.
6289 (comma_terminates): Don't declare global.
6290 * parse.c (comma_terminates): Remove global.
6291 (parse_exp_in_context): Update.
6292 * p-exp.y (yylex): Update.
6293 * m2-exp.y (yylex): Update.
6294 * go-exp.y (lex_one_token): Update.
6295 * f-exp.y (yylex): Update.
6296 * d-exp.y (lex_one_token): Update.
6297 * c-exp.y (lex_one_token): Update.
6298 * ada-lex.l: Update.
6300 2019-04-04 Tom Tromey <tom@tromey.com>
6302 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6303 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6304 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6305 * parser-defs.h (paren_depth): Don't declare.
6306 * parse.c (paren_depth): Remove global.
6307 (parse_exp_in_context): Update.
6308 * p-exp.y (paren_depth): New global.
6309 (pascal_parse): Initialize it.
6310 * m2-exp.y (paren_depth): New global.
6311 (m2_parse): Initialize it.
6312 * go-exp.y (paren_depth): New global.
6313 (go_parse): Initialize it.
6314 * f-exp.y (paren_depth): New global.
6315 (f_parse): Initialize it.
6316 * d-exp.y (paren_depth): New global.
6317 (d_parse): Initialize it.
6318 * c-exp.y (paren_depth): New global.
6319 (c_parse): Initialize it.
6320 * ada-lex.l (paren_depth): New global.
6321 (lexer_init): Initialize it.
6323 2019-04-04 Tom Tromey <tom@tromey.com>
6325 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6326 (rust_parser::convert_ast_to_type)
6327 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6328 * parser-defs.h (struct parser_state) <parser_state>: Add
6329 parameters. Initialize new members.
6330 <expression_context_block, expression_context_pc>: New members.
6331 * parse.c (expression_context_block, expression_context_pc):
6333 (parse_exp_in_context): Update.
6334 * p-exp.y: Update all rules.
6336 * m2-exp.y: Update all rules.
6338 * go-exp.y (yylex): Update.
6339 * f-exp.y (yylex): Update.
6340 * d-exp.y: Update all rules.
6342 * c-exp.y: Update all rules.
6343 (lex_one_token, classify_name, yylex, c_parse): Update.
6344 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6346 2019-04-04 Tom Tromey <tom@tromey.com>
6348 * gdbarch.h, gdbarch.c: Rebuild.
6349 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6351 (struct stap_parse_info): Replace "parser_state" with
6353 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6354 (parser_state): New class.
6355 * parse.c (expr_builder): Rename.
6356 (expr_builder::release): Rename.
6357 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6358 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6359 (write_exp_elt_longcst, write_exp_elt_floatcst)
6360 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6361 (write_exp_string_vector, write_exp_bitstring)
6362 (write_exp_msymbol, mark_struct_expression)
6363 (write_dollar_variable)
6364 (insert_type_address_space, increase_expout_size): Replace
6365 "parser_state" with "expr_builder".
6366 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6367 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6368 "parser_state" with "expr_builder".
6370 2019-04-04 Tom Tromey <tom@tromey.com>
6372 * rust-exp.y: Replace "parse_language" with method call.
6374 (yylex): Replace "parse_language" with method call.
6376 (yylex): Replace "parse_language" with method call.
6377 * go-exp.y (classify_name): Replace "parse_language" with method
6379 * f-exp.y (yylex): Replace "parse_language" with method call.
6380 * d-exp.y (lex_one_token): Replace "parse_language" with method
6383 (lex_one_token, classify_name, yylex): Replace "parse_language"
6385 * ada-exp.y (find_primitive_type, type_char)
6386 (type_system_address): Replace "parse_language" with method call.
6388 2019-04-04 Tom Tromey <tom@tromey.com>
6390 * rust-exp.y: Replace "parse_gdbarch" with method call.
6391 * parse.c (write_dollar_variable, insert_type_address_space):
6392 Replace "parse_gdbarch" with method call.
6393 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6395 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
6397 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
6398 "parse_gdbarch" with method call.
6399 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
6401 * f-exp.y (parse_type, parse_f_type, yylex): Replace
6402 "parse_gdbarch" with method call.
6403 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
6404 "parse_gdbarch" with method call.
6405 * c-exp.y (parse_type, parse_number, classify_name): Replace
6406 "parse_gdbarch" with method call.
6407 * ada-lex.l: Replace "parse_gdbarch" with method call.
6408 * ada-exp.y (parse_type, find_primitive_type, type_char)
6409 (type_system_address): Replace "parse_gdbarch" with method call.
6411 2019-04-04 Tom Tromey <tom@tromey.com>
6413 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
6414 * stap-probe.c (stap_parse_argument): Update.
6415 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
6416 initial_size parameter.
6417 * rust-exp.y (rust_lex_tests): Update.
6418 * parse.c (parser_state): Update.
6419 (parse_exp_in_context): Update.
6420 * parser-defs.h (struct parser_state) <parser_state>: Remove
6421 "initial_size" parameter.
6423 2019-04-04 Tom Tromey <tom@tromey.com>
6425 * parser-defs.h (increase_expout_size): Don't declare.
6426 * parse.c (increase_expout_size): Now static.
6428 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
6430 * gnu-nat.c (gnu_nat_target::wait): Fix
6431 target_waitstatus_to_string call.
6433 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6435 * eval.c (evaluate_subexp_standard): Handle internal functions
6436 during Fortran function call handling.
6438 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6440 * NEWS: Mention new internal functions.
6441 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
6442 (read_base_type): Use dwarf2_init_complex_target_type.
6443 * value.c (creal_internal_fn): New function.
6444 (cimag_internal_fn): New function.
6445 (_initialize_values): Register new internal functions.
6447 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6449 * infrun.c (stop_all_threads): If debug_infrun, always
6450 trace the wait status after wait_one, using
6451 target_waitstatus_to_string and target_pid_to_str.
6452 (handle_inferior_event): Replace various trace of
6453 wait status kind by a single trace.
6454 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
6455 wait status kind image by target_waitstatus_to_string.
6456 * target/waitstatus.c (target_waitstatus_to_string): Fix
6459 2019-04-01 Tom Tromey <tromey@adacore.com>
6462 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
6464 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
6465 Pedro Alves <palves@redhat.com>
6467 * top.c (quit_force): Call 'finalize_values'.
6468 * value.c (finalize_values): New function.
6469 * value.h (finalize_values): Declare.
6471 2019-03-30 Eli Zaretskii <eliz@gnu.org>
6473 * NEWS: Announce $_gdb_major and $_gdb_minor.
6475 * top.c (init_gdb_version_vars): New function.
6476 (gdb_init): Call init_gdb_version_vars.
6478 2019-03-29 Tom Tromey <tromey@adacore.com>
6480 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
6481 help text. Remove dead code.
6483 2019-03-29 Keith Seitz <keiths@redhat.com>
6485 From Siddhesh Poyarekar:
6486 * f-lang.h (f77_get_upperbound): Return LONGEST.
6487 (f77_get_lowerbound): Likewise.
6488 * f-typeprint.c (f_type_print_varspec_suffix): Expand
6489 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
6491 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
6492 plongest to format print it.
6493 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
6494 (f77_get_upperbound): Likewise.
6495 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
6496 LOWER_BOUND to LONGEST.
6497 (f77_create_arrayprint_offset_tbl): Likewise.
6499 2019-03-29 Keith Seitz <keiths@redhat.com>
6501 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6502 %s/pulongest for TYPE_LENGTH instead of %d in format
6504 * ada-typerint.c (ada_print_type): Likewise.
6505 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
6506 * compile/compile-c-support.c (generate_register_struct): Likewise.
6507 * gdbtypes.c (recursive_dump_type): Likewise.
6508 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
6509 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
6510 instead of %d in format strings.
6511 * riscv-tdep.c (riscv_type_alignment): Cast second argument
6512 to std::min to ULONGEST.
6513 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
6514 instead of %d in format strings.
6515 * tracepoint.c (info_scope_command): Likewise.
6516 * typeprint.c (print_offset_data::update)
6517 (print_offset_data::finish): Likewise.
6518 * xtensa-tdep.c (xtensa_store_return_value)
6519 (xtensa_push_dummy_call): Likewise.
6521 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
6523 * windows-nat.c (display_selector): Fixed format specifications
6526 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6528 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
6530 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
6532 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
6533 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
6534 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
6535 (nios2_linux_init_abi): Install it.
6537 2019-03-28 Alan Hayward <alan.hayward@arm.com>
6539 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
6541 2019-03-28 Alan Hayward <alan.hayward@arm.com>
6543 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
6545 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6546 Tom Tromey <tromey@adacore.com>
6548 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
6550 2019-03-26 Joel Brobecker <brobecker@adacore.com>
6552 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
6553 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
6554 method to compute the bounds of range types. Also print "[evaluated]"
6555 if the bounds' values come from a dynamic evaluation.
6557 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
6559 * cp-valprint.c (cp_print_value_fields): Don't print trailing
6560 whitespace when pretty printing is on.
6562 2019-03-26 Alan Hayward <alan.hayward@arm.com>
6564 * ppc-linux-nat.c: Add include.
6566 2019-03-26 Alan Hayward <alan.hayward@arm.com>
6568 * NEWS: Mention AArch64 Pointer Authentication.
6570 2019-03-26 Alan Hayward <alan.hayward@arm.com>
6572 * arm-linux-nat.c: Add include.
6574 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
6576 * source-cache.c (source_cache::get_source_lines): Re-read
6577 fullname after calling open_source_file.
6579 2019-03-25 John Baldwin <jhb@FreeBSD.org>
6581 * NEWS: Mention TLS support for FreeBSD.
6583 2019-03-25 Tom Tromey <tromey@adacore.com>
6585 * minsyms.c (BUNCH_SIZE): Update comment.
6586 (~minimal_symbol_reader): Remove old comment.
6587 (compact_minimal_symbols): Update comment.
6588 (minimal_symbol_reader::install): Remove old comment. Update
6591 2019-03-25 Alan Hayward <alan.hayward@arm.com>
6593 * s390-linux-nat.c: Add include.
6595 2019-03-25 Alan Hayward <alan.hayward@arm.com>
6597 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6598 Call linux_get_hwcap.
6599 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6601 (aarch64_linux_get_hwcap): Remove function.
6602 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
6604 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
6606 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6607 * linux-tdep.c (linux_get_hwcap): Add function.
6608 (linux_get_hwcap2): Likewise.
6609 * linux-tdep.h (linux_get_hwcap): Add declaration.
6610 (linux_get_hwcap2): Likewise.
6611 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
6612 (ppc_linux_get_hwcap2): Likewise.
6613 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
6615 (ppc_linux_nat_target::insert_watchpoint): Likewise.
6616 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
6617 (ppc_linux_nat_target::read_description): Likewise.
6618 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
6619 * s390-linux-nat.c: Likewise.
6620 * s390-linux-tdep.c (s390_core_read_description): Likewise.
6622 2019-03-24 Tom Tromey <tom@tromey.com>
6624 * ada-lang.c (standard_lookup): Simplify initialization.
6625 (ada_lookup_symbol_nonlocal): Simplify return.
6626 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
6627 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
6628 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
6629 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
6631 * solib.c (solib_global_lookup): Simplify.
6632 * symtab.c (null_block_symbol): Remove.
6633 (symbol_cache_lookup): Simplify returns.
6634 (lookup_language_this): Simplify returns.
6635 (lookup_symbol_aux): Simplify return.
6636 (lookup_local_symbol): Simplify returns.
6637 (lookup_global_symbol_from_objfile): Simplify return.
6638 (lookup_symbol_in_objfile_symtabs)
6639 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
6640 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
6641 (lookup_static_symbol, lookup_global_symbol): Simplify return.
6642 * cp-namespace.c (cp_lookup_bare_symbol)
6643 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
6644 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
6645 (cp_lookup_nested_symbol): Don't use null_block_symbol.
6646 (cp_lookup_symbol_via_imports): Simplify initialization.
6647 (find_symbol_in_baseclass): Likewise.
6648 * symtab.h (null_block_symbol): Remove.
6649 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
6650 (d_lookup_nested_symbol, d_lookup_symbol_imports)
6651 (d_lookup_symbol_module): Likewise.
6652 (find_symbol_in_baseclass): Simplify initialization.
6654 2019-03-24 Tom Tromey <tom@tromey.com>
6656 * expression.h: Don't include symtab.h.
6657 (struct block): Forward declare.
6659 2019-03-24 Tom Tromey <tom@tromey.com>
6661 * c-exp.y (typebase): Remove casts.
6662 * gdbtypes.c (lookup_unsigned_typename, )
6663 (lookup_signed_typename): Remove cast.
6664 * eval.c (parse_to_comma_and_eval): Remove cast.
6665 * parse.c (write_dollar_variable): Remove cast.
6666 * block.h (struct block) <superblock>: Now const.
6667 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
6668 * psymtab.c (psym_map_matching_symbols): Make "block" const.
6669 (map_block): Make "block" const.
6670 * symfile.h (struct quick_symbol_functions)
6671 <map_matching_symbols>: Constify block argument to "callback".
6672 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
6674 (find_pc_sect_compunit_symtab): Make "b" const.
6675 (find_symbol_at_address): Likewise.
6676 (search_symbols): Likewise.
6677 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
6678 (dw2_debug_names_lookup_symbol): Likewise.
6679 (dw2_map_matching_symbols): Update.
6680 * p-valprint.c (pascal_val_print): Remove "block".
6681 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
6682 (aux_add_nonlocal_symbols): Make "block" const.
6683 (resolve_subexp): Remove cast.
6684 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
6686 (iterate_over_file_blocks): Likewise.
6687 * f-exp.y (%union) <bval>: Remove.
6688 * coffread.c (patch_opaque_types): Make "b" const.
6689 * spu-tdep.c (spu_catch_start): Make "block" const.
6690 * c-valprint.c (print_unpacked_pointer): Remove "block".
6691 * symmisc.c (dump_symtab_1): Make "b" const.
6692 (block_depth): Make "block" const.
6693 * d-exp.y (%union) <bval>: Remove.
6694 * cp-support.h (cp_lookup_rtti_type): Update.
6695 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
6696 * psymtab.c (psym_lookup_symbol): Make "block" const.
6697 (maintenance_check_psymtabs): Make "b" const.
6698 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
6699 (enumerate_locals, enumerate_args): Update.
6700 * python/py-symtab.c (stpy_global_block): Make "block" const.
6701 (stpy_static_block): Likewise.
6702 * inline-frame.c (block_starting_point_at): Make "new_block"
6704 * block.c (find_block_in_blockvector): Make return type const.
6705 (blockvector_for_pc_sect): Make "b" const.
6706 (find_block_in_blockvector): Make "b" const.
6708 2019-03-23 Tom Tromey <tom@tromey.com>
6710 * varobj.c (varobj_create): Update.
6711 * symfile.c (clear_symtab_users): Don't reset innermost_block.
6712 * printcmd.c (display_command, do_one_display): Don't reset
6714 * parser-defs.h (enum innermost_block_tracker_type): Move to
6716 (innermost_block): Update comment.
6717 * parse.c (parse_exp_1): Add tracker_types parameter.
6718 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
6719 tracker_types parameter. Reset innermost_block.
6720 (parse_exp_in_context): Remove.
6721 (parse_expression_for_completion): Update.
6722 * objfiles.c (~objfile): Don't reset expression_context_block or
6724 * expression.h (enum innermost_block_tracker_type): Move from
6726 (parse_exp_1): Add tracker_types parameter.
6727 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
6728 reset innermost_block.
6730 2019-03-23 Tom Tromey <tom@tromey.com>
6732 * objfiles.h: Include bcache.h.
6734 2019-03-23 Tom Tromey <tom@tromey.com>
6736 * linespec.c (get_current_search_block): Use
6737 scoped_restore_current_language.
6738 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
6740 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6741 Jiong Wang <jiong.wang@arm.com>
6743 * aarch64-linux-tdep.c
6744 (aarch64_linux_iterate_over_regset_sections): Check for pauth
6746 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
6748 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6749 Jiong Wang <jiong.wang@arm.com>
6751 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
6753 (aarch64_analyze_prologue_test): Add PACIASP test.
6754 (aarch64_prologue_prev_register): Unmask PC value.
6756 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6757 Jiong Wang <jiong.wang@arm.com>
6759 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
6760 (aarch64_dwarf2_prev_register): Unmask PC value.
6761 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
6762 (aarch64_execute_dwarf_cfa_vendor_op): Check for
6763 DW_CFA_AARCH64_negate_ra_state.
6764 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
6766 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6767 Jiong Wang <jiong.wang@arm.com>
6769 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
6771 (aarch64_pseudo_register_name): Likewise.
6772 (aarch64_pseudo_register_type): Likewise.
6773 (aarch64_pseudo_register_reggroup_p): Likewise.
6774 (aarch64_gdbarch_init): Add pauth registers.
6775 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
6776 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
6777 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
6778 (struct gdbarch_tdep): Add regnum for ra_state.
6780 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6781 Jiong Wang <jiong.wang@arm.com>
6783 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
6785 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6786 Jiong Wang <jiong.wang@arm.com>
6788 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
6790 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
6791 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
6792 (aarch64_gdbarch_init): Add puth registers.
6793 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
6794 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
6795 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
6797 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6798 Jiong Wang <jiong.wang@arm.com>
6800 * aarch64-linux-nat.c
6801 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
6802 * aarch64-linux-tdep.c
6803 (aarch64_linux_core_read_description): Likewise.
6804 (aarch64_linux_get_hwcap): New function.
6805 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
6806 (aarch64_linux_get_hwcap): New declaration.
6808 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6809 Jiong Wang <jiong.wang@arm.com>
6811 * aarch64-linux-nat.c
6812 (aarch64_linux_nat_target::read_description): Add pauth param.
6813 * aarch64-linux-tdep.c
6814 (aarch64_linux_core_read_description): Likewise.
6815 * aarch64-tdep.c (struct target_desc): Add in pauth.
6816 (aarch64_read_description): Add pauth param.
6817 (aarch64_gdbarch_init): Likewise.
6818 * aarch64-tdep.h (aarch64_read_description): Likewise.
6819 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6820 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6821 * features/Makefile: Add new files.
6822 * features/aarch64-pauth.c: New file.
6823 * features/aarch64-pauth.xml: New file.
6825 2019-03-20 Tom Tromey <tromey@adacore.com>
6827 * infrun.c (handle_inferior_event): Rename from
6828 handle_inferior_event_1. Create a scoped_value_mark.
6829 (handle_inferior_event): Remove.
6831 2019-03-19 Tom Tromey <tromey@adacore.com>
6833 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
6834 * infrun.h (print_stop_event): Add "displays" parameter.
6835 * infrun.c (print_stop_event): Add "displays" parameter.
6837 2019-03-19 Pedro Alves <palves@redhat.com>
6839 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
6840 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
6841 to -1. Fix TABs vs spaces.
6842 (tui_ui_out::tui_ui_out): Don't initialize fields here.
6843 * tui/tui-out.h (tui_ui_out) Add intro comments.
6844 <m_line, m_start_of_line>: In-class initialize, and add describing
6847 2019-03-18 Alan Hayward <alan.hayward@arm.com>
6849 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
6851 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
6853 2019-03-18 Pedro Alves <palves@redhat.com>
6854 Eli Zaretskii <eliz@gnu.org>
6856 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
6857 m_line and m_start_of_line.
6859 2019-03-18 Eli Zaretskii <eliz@gnu.org>
6861 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
6862 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
6863 it returns a newline. This fixes a regression in TU mode, whereby
6864 the next line is output on the same screen line as the user input.
6866 2019-03-18 Tom Tromey <tromey@adacore.com>
6868 * minsyms.c (minimal_symbol_reader::install): Remove call to
6871 2019-03-18 Pedro Alves <palves@redhat.com>
6873 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
6875 (apply_style): New, factored out from ...
6876 (apply_ansi_escape): ... this. Handle reverse video mode.
6877 (tui_set_reverse_mode): New function.
6878 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
6879 * tui/tui-winsource.c (tui_show_source_line): Use
6880 tui_set_reverse_mode instead of setting A_STANDOUT.
6881 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
6884 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
6886 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
6889 2019-03-18 Tom Tromey <tromey@adacore.com>
6891 * ada-lang.c (empty_array): Add "high" parameter.
6892 (ada_evaluate_subexp): Update.
6894 2019-03-17 Sergei Trofimovich <siarheit@google.com>
6896 * unittests/string_view-selftests.c: Define
6897 _initialize_string_view_selftests unconditionally.
6899 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
6902 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
6904 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
6907 * windows-nat.c (display_selector): Fix format specifiers.
6909 2019-03-17 Eli Zaretskii <eliz@gnu.org>
6911 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
6912 tui_refill_source_window instead of tui_refresh_win, to update the
6913 current execution line. This fixes redisplay of the current line
6914 when stepping through the code with "next" or "step".
6916 2019-03-16 Eli Zaretskii <eliz@gnu.org>
6918 * source-cache.c (source_cache::get_source_lines): Call
6919 find_source_lines to initialize s->nlines. This fixes vertical
6920 scrolling of TUI source window when the DOWN arrow is pressed.
6922 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6924 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
6925 linux-thread-db.c (_initialize_thread_db): Likewise.
6927 2019-03-16 Eli Zaretskii <eliz@gnu.org>
6929 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
6930 wclrtoeol in tui_show_source_line". This reverts changes made in
6931 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
6933 2019-03-15 Tom Tromey <tom@tromey.com>
6935 * symtab.h (struct minimal_symbol): Derive from
6936 general_symbol_info.
6937 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
6938 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6939 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6940 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6941 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
6942 (MSYMBOL_SEARCH_NAME): Update.
6943 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
6944 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
6945 * minsyms.c (minimal_symbol_reader::record_full): Update.
6947 2019-03-15 Tom Tromey <tom@tromey.com>
6949 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
6951 2019-03-15 Tom Tromey <tom@tromey.com>
6953 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
6955 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
6957 * minsyms.c (lookup_minimal_symbol_by_pc_section)
6958 (build_minimal_symbol_hash_tables)
6959 (minimal_symbol_reader::install): Update.
6961 2019-03-15 Tom Tromey <tom@tromey.com>
6963 * symtab.c (create_demangled_names_hash): Update.
6964 (symbol_set_names): Update.
6965 * objfiles.h (struct objfile_per_bfd_storage)
6966 <demangled_names_hash>: Now an htab_up.
6967 * objfiles.c (objfile_per_bfd_storage): Simplify.
6969 2019-03-15 Tom Tromey <tom@tromey.com>
6971 * objfiles.h (struct objfile_per_bfd_storage): Declare
6973 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
6975 (get_objfile_bfd_data): Use new. Don't initialize
6977 (free_objfile_per_bfd_storage): Remove.
6978 (objfile_bfd_data_free, objfile::~objfile): Use delete.
6980 2019-03-15 Tom Tromey <tom@tromey.com>
6982 * symfile.c (reread_symbols): Update.
6983 * objfiles.c (objfile::objfile): Update.
6984 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
6985 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
6987 (minimal_symbol_reader::install): Update.
6988 (terminate_minimal_symbol_table): Remove.
6989 * jit.c (jit_object_close_impl): Update.
6991 2019-03-15 Tom Tromey <tom@tromey.com>
6993 * minsyms.c (minimal_symbol_reader::record_full): Remove some
6996 2019-03-15 Tom Tromey <tom@tromey.com>
6998 * objfiles.h (struct objfile_per_bfd_storage)
6999 <demangled_hash_languages>: Now a bitset.
7000 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7001 (lookup_minimal_symbol): Update.
7003 2019-03-15 Tom Tromey <tom@tromey.com>
7005 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7006 Don't return the symbol.
7007 * coffread.c (record_minimal_symbol): Use record_full.
7009 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7011 The MS-Windows port of ncurses fails to switch to a color pair if
7012 one or both of the colors are the implicit default colors. This
7013 change records the default colors when TUI is initialized, and
7014 then specifies them explicitly when a color pair uses the default
7015 colors. This allows color styling in TUI mode on MS-Windows.
7017 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7019 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7020 colors in ncurses_norm_attr.
7021 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7022 "none", replace it with the default color recorded in
7025 2019-03-14 Tom Tromey <tromey@adacore.com>
7027 * source-cache.h (class source_cache) <get_source_lines>: Return
7029 * source-cache.c (source_cache::extract_lines): Handle case where
7030 first_pos==npos. Return std::string.
7031 (source_cache::get_source_lines): Update.
7033 2019-03-14 Tom Tromey <tromey@adacore.com>
7035 * NEWS: Add item for "style sources" commands.
7036 * source-cache.c (source_cache::get_source_lines): Check
7038 * cli/cli-style.c (source_styling): New global.
7039 (_initialize_cli_style): Add "style sources" commands.
7040 (show_style_sources): New function.
7041 * cli/cli-style.h (source_styling): Declare.
7043 2019-03-14 Pedro Alves <palves@redhat.com>
7044 Tom Tromey <tromey@adacore.com>
7046 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7047 * tui/tui-winsource.c (tui_refill_source_window): New function,
7049 (tui_horizontal_source_scroll): ... here. Move some logic.
7050 * cli/cli-style.c (set_style_enabled): Notify new observable.
7051 * tui/tui-hooks.c (tui_redisplay_source): New function.
7052 (tui_attach_detach_observers): Attach or detach
7053 tui_redisplay_source.
7054 * observable.h (source_styling_changed): New observable.
7055 * observable.c: Define source_styling_changed observable.
7057 2019-03-13 Tom Tromey <tromey@adacore.com>
7059 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7060 (i386_gnu_nat_target::store_registers): Update.
7061 * target-debug.h (target_debug_print_std_string): New macro.
7062 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7063 * windows-tdep.c (display_one_tib): Update.
7064 * tui/tui-stack.c (tui_make_status_line): Update.
7065 * top.c (print_inferior_quit_action): Update.
7066 * thread.c (thr_try_catch_cmd): Update.
7067 (add_thread_with_info): Update.
7068 (thread_target_id_str): Update.
7069 (thr_try_catch_cmd): Update.
7070 (thread_command): Update.
7071 (thread_find_command): Update.
7072 * record-btrace.c (record_btrace_target::info_record)
7073 (record_btrace_resume_thread, record_btrace_target::resume)
7074 (record_btrace_cancel_resume, record_btrace_step_thread)
7075 (record_btrace_target::wait, record_btrace_target::wait)
7076 (record_btrace_target::wait, record_btrace_target::stop): Update.
7077 * progspace.c (print_program_space): Update.
7078 * process-stratum-target.c
7079 (process_stratum_target::thread_address_space): Update.
7080 * linux-fork.c (linux_fork_mourn_inferior)
7081 (detach_checkpoint_command, info_checkpoints_command)
7082 (linux_fork_context): Update.
7083 (linux_fork_detach): Update.
7084 (class scoped_switch_fork_info): Update.
7085 (delete_checkpoint_command): Update.
7086 * infrun.c (follow_fork_inferior): Update.
7087 (follow_fork_inferior): Update.
7088 (proceed_after_vfork_done): Update.
7089 (handle_vfork_child_exec_or_exit): Update.
7090 (follow_exec): Update.
7091 (displaced_step_prepare_throw): Update.
7092 (displaced_step_restore): Update.
7093 (start_step_over): Update.
7095 (clear_proceed_status_thread): Update.
7097 (print_target_wait_results): Update.
7098 (do_target_wait): Update.
7099 (context_switch): Update.
7100 (stop_all_threads): Update.
7101 (restart_threads): Update.
7102 (finish_step_over): Update.
7103 (handle_signal_stop): Update.
7104 (switch_back_to_stepped_thread): Update.
7105 (keep_going_pass_signal): Update.
7106 (print_exited_reason): Update.
7107 (normal_stop): Update.
7108 * inferior.c (inferior_pid_to_str): Change return type.
7109 (print_selected_inferior): Update.
7110 (add_inferior): Update.
7111 (detach_inferior): Update.
7112 * dummy-frame.c (fprint_dummy_frames): Update.
7113 * dcache.c (dcache_info_1): Update.
7114 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7115 (btrace_fetch, btrace_clear): Update.
7116 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7117 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7119 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7120 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7121 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7122 * gdbarch.c, gdbarch.h: Rebuild.
7123 * gdbarch.sh (core_pid_to_str): Change return type.
7124 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7126 (windows_nat_target::pid_to_str): Change return type.
7127 (windows_delete_thread): Update.
7128 (windows_nat_target::attach): Update.
7129 (windows_nat_target::files_info): Update.
7130 * target-delegates.c: Rebuild.
7131 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7133 (sol_thread_target::pid_to_str): Change return type.
7134 * remote.c (class remote_target) <pid_to_str>: Change return
7136 (remote_target::pid_to_str): Change return type.
7137 (extended_remote_target::attach, remote_target::remote_stop_ns)
7138 (remote_target::remote_notif_remove_queued_reply)
7139 (remote_target::push_stop_reply, remote_target::disable_btrace):
7141 (extended_remote_target::attach): Update.
7142 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7144 (gdbsim_target::pid_to_str): Change return type.
7145 * ravenscar-thread.c (struct ravenscar_thread_target)
7146 <pid_to_str>: Change return type.
7147 (ravenscar_thread_target::pid_to_str): Change return type.
7148 * procfs.c (class procfs_target) <pid_to_str>: Change return
7150 (procfs_target::pid_to_str): Change return type.
7151 (procfs_target::attach): Update.
7152 (procfs_target::detach): Update.
7153 (procfs_target::fetch_registers): Update.
7154 (procfs_target::store_registers): Update.
7155 (procfs_target::wait): Update.
7156 (procfs_target::files_info): Update.
7157 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7158 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7160 (nto_procfs_target::pid_to_str): Change return type.
7161 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7162 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7164 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7166 (attach_proc_task_lwp_callback, get_detach_signal)
7167 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7168 (linux_nat_target::resume, wait_lwp, stop_callback)
7169 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7170 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7171 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7172 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7173 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7175 (inf_ptrace_target::attach): Update.
7176 (inf_ptrace_target::files_info): Update.
7177 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7179 (go32_nat_target::pid_to_str): Change return type.
7180 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7181 (gnu_nat_target::wait): Update.
7182 (gnu_nat_target::wait): Update.
7183 (gnu_nat_target::resume): Update.
7184 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7185 (fbsd_nat_target::wait): Update.
7186 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7188 (darwin_nat_target::attach): Update.
7189 * corelow.c (class core_target) <pid_to_str>: Change return type.
7190 (core_target::pid_to_str): Change return type.
7191 * target.c (normal_pid_to_str): Change return type.
7192 (default_pid_to_str): Likewise.
7193 (target_pid_to_str): Change return type.
7194 (target_translate_tls_address): Update.
7195 (target_announce_detach): Update.
7196 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7198 (bsd_uthread_target::pid_to_str): Change return type.
7199 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7201 (bsd_kvm_target::pid_to_str): Change return type.
7202 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7204 (aix_thread_target::pid_to_str): Change return type.
7205 * target.h (struct target_ops) <pid_to_str>: Change return type.
7206 (target_pid_to_str, normal_pid_to_str): Likewise.
7207 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7209 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7211 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7213 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7215 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7217 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7220 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7222 * NEWS: Mention that the new default MI version is 3. Mention
7223 changes to the output of commands and events that deal with
7224 multi-location breakpoints.
7225 * breakpoint.c: Include "mi/mi-out.h".
7226 (print_one_breakpoint): Change output syntax if using MI version
7228 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7230 (mi_multi_location_breakpoint_output_fixed): New.
7231 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7232 (mi_cmd_fix_multi_location_breakpoint_output): New.
7233 (mi_multi_location_breakpoint_output_fixed): New.
7234 * mi/mi-cmds.c (mi_cmds): Register command
7235 -fix-multi-location-breakpoint-output.
7236 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7239 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7241 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7242 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7243 instantiate mi_ui_out based on interpreter name.
7244 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7245 * mi/mi-main.c (mi_load_progress): Likewise.
7247 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7249 * NEWS: Combine separate "New targets" sections for 8.3.
7251 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7253 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7254 (ppcfbsd_init_abi): Install gdbarch
7255 "fetch_tls_load_module_address" and "get_thread_local_address"
7258 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7260 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7261 (riscv_fbsd_init_abi): Install gdbarch
7262 "fetch_tls_load_module_address" and "get_thread_local_address"
7265 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7267 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7268 (i386fbsd_init_abi): Install gdbarch
7269 "fetch_tls_load_module_address" and "get_thread_local_address"
7272 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7274 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7275 (amd64fbsd_init_abi): Install gdbarch
7276 "fetch_tls_load_module_address" and "get_thread_local_address"
7279 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7281 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7282 (struct fbsd_pspace_data): New type.
7283 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7284 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7285 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7286 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7287 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7289 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7291 * gdbtypes.c (lookup_struct_elt): New function.
7292 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7293 * gdbtypes.h (struct struct_elt): New type.
7294 (lookup_struct_elt): New prototype.
7296 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7298 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7299 remove disabled code block.
7301 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7303 * gdbarch.sh (get_thread_local_address): New method.
7304 * gdbarch.h, gdbarch.c: Regenerate.
7305 * target.c (target_translate_tls_address): Use
7306 gdbarch_get_thread_local_address if present instead of
7307 target::get_thread_local_address.
7309 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7311 * target.h (target::get_thread_local_address): Update comment.
7313 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7315 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7316 objfile->separate_debug_objfile_backlink if not NULL.
7318 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7320 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7321 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7322 (amd64bsd_store_inferior_registers): Likewise.
7323 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7324 Enable segment base registers.
7325 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7326 PT_GETFSBASE and PT_GETGSBASE.
7327 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7329 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7330 segment base registers.
7331 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7333 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7335 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7336 Update calls to i386_target_description to add 'segments'
7338 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7339 add segment base registers.
7340 * arch/i386.c (i386_create_target_description): Add 'segments'
7341 parameter to enable segment base registers.
7342 * arch/i386.h (i386_create_target_description): Likewise.
7343 * features/i386/32bit-segments.xml: New file.
7344 * features/i386/32bit-segments.c: Generate.
7345 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7346 call to i386_target_description to add 'segments' parameter.
7347 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7348 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7349 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7350 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7351 if feature is present.
7352 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7353 Add 'segments' parameter to call to i386_target_description.
7354 (i386_target_description): Add 'segments' parameter to enable
7355 segment base registers.
7356 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7357 to call to i386_target_description.
7358 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7359 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7360 Define I386_NUM_REGS.
7361 (i386_target_description): Add 'segments' parameter to enable
7362 segment base registers.
7364 2019-03-12 Eli Zaretskii <eliz@gnu.org>
7367 * source-cache.c: #undef open and close, to avoid unresolved
7368 externals during linking.
7370 2019-03-12 Tom Tromey <tromey@adacore.com>
7372 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7373 const. Add initializers.
7374 (_initialize_remote): Don't initialize ptid globals.
7376 2019-03-12 Pedro Alves <palves@redhat.com>
7378 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7380 2019-03-12 Pedro Alves <palves@redhat.com>
7382 * cp-name-parser.y (main): Remove unused 'len' variable.
7384 2019-03-12 Tom Tromey <tromey@adacore.com>
7386 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7387 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7389 2019-03-12 Tom Tromey <tromey@adacore.com>
7391 * linux-nat.c (iterate_over_lwps): Update.
7392 (stop_callback): Remove parameter.
7393 (stop_wait_callback, detach_callback, resume_set_callback)
7394 (select_singlestep_lwp_callback, set_ignore_sigint)
7395 (status_callback, resumed_callback, resume_clear_callback)
7396 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
7398 (linux_nat_target::detach, linux_nat_target::resume)
7399 (linux_stop_and_wait_all_lwps, select_event_lwp)
7400 (linux_nat_filter_event, linux_nat_wait_1)
7401 (linux_nat_target::kill, linux_nat_target::stop)
7402 (linux_nat_target::stop): Update.
7403 (linux_nat_resume_callback): Change type.
7404 (resume_stopped_resumed_lwps, count_events_callback)
7405 (select_event_lwp_callback): Likewise.
7406 (linux_stop_lwp, linux_nat_stop_lwp): Update.
7407 * arm-linux-nat.c (struct update_registers_data): Remove.
7408 (update_registers_callback): Change type.
7409 (arm_linux_insert_hw_breakpoint1): Update.
7410 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
7412 (x86_linux_dr_set_addr): Update.
7413 (x86_linux_dr_set_control): Update.
7414 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
7415 (iterate_over_lwps): Use gdb::function_view.
7416 * nat/aarch64-linux-hw-point.c (struct
7417 aarch64_dr_update_callback_param): Remove.
7418 (debug_reg_change_callback): Change type.
7419 (aarch64_notify_debug_reg_change): Update.
7420 * s390-linux-nat.c (s390_refresh_per_info): Update.
7422 2019-03-11 Tom Tromey <tromey@adacore.com>
7424 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
7425 redundant assignment to "this_cu".
7427 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7429 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
7431 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7433 * gdbtypes.c (rank_one_type_parm_set): New function extracted
7435 (rank_one_type): ... this.
7437 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7439 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
7441 (rank_one_type): ... this.
7443 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7445 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
7447 (rank_one_type): ... this.
7449 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7451 * gdbtypes.c (rank_one_type_parm_float): New function extracted
7453 (rank_one_type): ... this.
7455 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7457 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
7459 (rank_one_type): ... this.
7461 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7463 * gdbtypes.c (rank_one_type_parm_range): New function extracted
7465 (rank_one_type): ... this.
7467 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7469 * gdbtypes.c (rank_one_type_parm_char): New function extracted
7471 (rank_one_type): ... this.
7473 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7475 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
7477 (rank_one_type): ... this.
7479 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7481 * gdbtypes.c (rank_one_type_parm_int): New function extracted
7483 (rank_one_type): ... this.
7485 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7487 * gdbtypes.c (rank_one_type_parm_func): New function extracted
7489 (rank_one_type): ... this.
7491 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7493 * gdbtypes.c (rank_one_type_parm_array): New function extracted
7495 (rank_one_type): ... this.
7497 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7499 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
7501 (rank_one_type): ... this.
7503 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7505 * inferior.c (initialize_inferiors): Ensure 'help set/show print
7506 inferior-events' shows the example events.
7508 2019-03-08 Eli Zaretskii <eliz@gnu.org>
7510 Support styling on native MS-Windows console
7513 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
7514 on MS-Windows if $TERM is not defined.
7516 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
7518 * posix-hdep.c (gdb_console_fputs):
7519 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
7521 * ui-file.h (gdb_console_fputs): Add prototype.
7523 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
7524 back to fputs only if the former returns zero.
7526 2019-03-07 Tom Tromey <tom@tromey.com>
7528 * symmisc.c (print_symbol_bcache_statistics): Update.
7529 (print_objfile_statistics): Update.
7530 * symfile.c (allocate_symtab): Update.
7531 * stabsread.c: Don't include bcache.h.
7532 * psymtab.h (struct psymbol_bcache): Don't declare.
7533 (class psymtab_storage) <psymbol_cache>: Now a bcache.
7534 (psymbol_bcache_init, psymbol_bcache_free)
7535 (psymbol_bcache_get_bcache): Don't declare.
7536 * psymtab.c (struct psymbol_bcache): Remove.
7537 (psymtab_storage::psymtab_storage): Update.
7538 (psymtab_storage::~psymtab_storage): Update.
7539 (psymbol_bcache_init, psymbol_bcache_free)
7540 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
7541 (add_psymbol_to_bcache): Update.
7542 (allocate_psymtab): Update.
7543 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7544 macro_cache>: No longer pointers.
7545 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
7546 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
7547 * macrotab.c (macro_bcache): Update.
7548 * macroexp.c: Don't include bcache.h.
7549 * gdbtypes.c (check_types_worklist): Update.
7550 (types_deeply_equal): Remove TRY/CATCH. Update.
7551 * elfread.c (elf_symtab_read): Update.
7552 * dwarf2read.c: Don't include bcache.h.
7553 * buildsym.c (buildsym_compunit::get_macro_table): Update.
7554 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
7555 (print_bcache_statistics, bcache_memory_used): Don't declare.
7556 (struct bcache): Move from bcache.c. Add constructor, destructor,
7557 methods. Rename all data members.
7558 * bcache.c (struct bcache): Move to bcache.h.
7559 (bcache::expand_hash_table): Rename from expand_hash_table.
7561 (bcache::insert): Rename from bcache_full.
7562 (bcache::compare): Rename from bcache_compare.
7563 (bcache_xmalloc): Remove.
7564 (bcache::~bcache): Rename from bcache_xfree.
7565 (bcache::print_statistics): Rename from print_bcache_statistics.
7566 (bcache::memory_used): Rename from bcache_memory_used.
7568 2019-03-07 Pedro Alves <palves@redhat.com>
7570 * infrun.c (normal_stop): Also check for
7571 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
7573 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7575 * f-lang.c (value_from_host_double): Moved to...
7576 * value.c (value_from_host_double): ...here.
7577 * value.h (value_from_host_double): Declare.
7578 * guile/scm-math.c (vlscm_convert_typed_number): Use
7579 value_from_host_double.
7580 (vlscm_convert_number): Likewise.
7581 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
7582 * python/py-value.c (convert_value_from_python): Likewise.
7584 2019-03-06 Tom Tromey <tom@tromey.com>
7586 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
7588 2019-03-06 Tom Tromey <tom@tromey.com>
7590 * utils.h (free_current_contents): Don't declare.
7591 * utils.c (free_current_contents): Remove.
7593 2019-03-06 Tom Tromey <tom@tromey.com>
7595 * top.c (quit_force): Update.
7596 * main.c (captured_command_loop): Update.
7597 * common/new-op.c (operator new): Update.
7598 * common/common-exceptions.c (struct catcher)
7599 <save_cleanup_chain>: Remove member.
7600 (exceptions_state_mc_init): Update.
7601 (exception_try_scope_entry): Return nullptr.
7602 (exception_try_scope_exit, exception_rethrow)
7603 (throw_exception_sjlj, throw_exception_cxx): Update.
7604 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
7605 (all_cleanups, do_cleanups, discard_cleanups)
7606 (discard_final_cleanups, save_cleanups, save_final_cleanups)
7607 (restore_cleanups, restore_final_cleanups): Don't declare.
7608 (do_final_cleanups): Remove parameter.
7609 * common/cleanups.c (cleanup_chain, make_cleanup)
7610 (make_cleanup_dtor, all_cleanups, do_cleanups)
7611 (discard_my_cleanups, discard_cleanups)
7612 (discard_final_cleanups, save_my_cleanups, save_cleanups)
7613 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
7614 (null_cleanup): Remove.
7615 (do_final_cleanups): Remove parameter.
7617 2019-03-06 Tom Tromey <tom@tromey.com>
7619 * remote.c (remote_target::remote_parse_stop_reply): Use
7622 2019-03-06 Tom Tromey <tom@tromey.com>
7624 * stabsread.c (struct stabs_field_info): Rename from field_info.
7625 <list, fnlist>: Add initializers.
7626 <obstack>: New member.
7627 (read_member_functions, read_struct_fields, read_baseclasses):
7628 Allocate on obstack. Don't use cleanups.
7629 (read_one_struct_field, read_member_functions, read_struct_fields)
7630 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
7631 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
7632 (read_struct_type): Update.
7634 2019-03-06 Tom Tromey <tom@tromey.com>
7636 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
7637 * common/filestuff.h (make_cleanup_close): Don't declare.
7638 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
7641 2019-03-06 Tom Tromey <tom@tromey.com>
7643 * solib-aix.c: Use make_scope_exit.
7645 2019-03-06 Tom Tromey <tom@tromey.com>
7647 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
7648 Use make_scope_exit.
7650 2019-03-06 Tom Tromey <tom@tromey.com>
7652 * solib-svr4.c (disable_probes_interface): Remove parameter.
7653 (svr4_handle_solib_event): Use make_scope_exit.
7655 2019-03-06 Tom Tromey <tom@tromey.com>
7657 * remote.c (struct stop_reply_deleter): Remove.
7658 (stop_reply_up): Update.
7659 (struct stop_reply): Derive from notif_event. Don't typedef.
7660 <regcache>: Now a std::vector.
7661 (stop_reply_xfree): Remove.
7662 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
7663 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
7664 (remote_target::discard_pending_stop_replies): Use delete.
7665 (remote_target::remote_parse_stop_reply): Update.
7666 (remote_target::process_stop_reply): Update.
7667 * remote-notif.h (struct notif_event): Add virtual destructor.
7668 Remove "dtr" member.
7669 (struct notif_client) <alloc_event>: Return a unique_ptr.
7670 (notif_event_xfree): Don't declare.
7671 (notif_event_up): New typedef.
7672 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
7673 (notif_event_xfree, do_notif_event_xfree): Remove.
7674 (remote_notif_state_xfree): Update.
7676 2019-03-06 Tom Tromey <tom@tromey.com>
7678 * infrun.c (displaced_step_clear_cleanup): Now a
7679 forward_scope_exit type.
7680 (displaced_step_prepare_throw): Update.
7681 (displaced_step_fixup): Update.
7683 2019-03-06 Tom Tromey <tom@tromey.com>
7685 * inferior.h (class inferior): Update comment.
7686 * gdbthread.h (class thread_info): Update comment.
7688 2019-03-06 Joel Brobecker <brobecker@adacore.com>
7689 Tom Tromey <tom@tromey.com>
7691 * stabsread.h (struct stab_section_list): Remove.
7692 (coffstab_build_psymtabs): Update.
7693 * dbxread.c (symbuf_sections): Now a std::vector.
7694 (sect_idx): New global.
7695 (fill_symbuf): Update.
7696 (coffstab_build_psymtabs): Change type of stabsects parameter.
7698 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
7700 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
7701 (coff_locate_sections): Update.
7702 (coff_symfile_read): Remove cleanups. Update.
7703 (init_stringtab): Add storage parameter.
7704 (free_stringtab, free_stringtab_cleanup): Remove.
7705 (init_lineno): Add storage parameter.
7706 (free_linetab, free_linetab_cleanup): Remove.
7708 2019-03-06 Pedro Alves <palves@redhat.com>
7710 * linux-fork.c (fork_info::clobber_regs): Delete.
7711 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
7712 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
7714 (scoped_switch_fork_info::scoped_switch_fork_info)
7715 (checkpoint_command, linux_fork_context): Adjust
7716 fork_save_infrun_state calls.
7718 2019-03-06 Pedro Alves <palves@redhat.com>
7720 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
7721 (inf_has_multiple_threads): Return 'bool' and rewrite using
7722 inferior_info::threads().
7724 2019-03-06 Pedro Alves <palves@redhat.com>
7726 * linux-fork.c: Include <list>.
7727 (fork_list): Now a std::list instance.
7728 (fork_info): Add ctor, dtor, and in-class initialize all fields.
7729 (forks_exist_p, find_last_fork): Adjust.
7733 (free_fork): Delete, folded into fork_info::~fork_info().
7734 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
7736 (init_fork_list): Delete.
7737 (linux_fork_killall, linux_fork_mourn_inferior)
7738 (linux_fork_detach, info_checkpoints_command): Adjust.
7739 (_initialize_linux_fork): No longer call init_fork_list.
7741 2019-03-06 Pedro Alves <palves@redhat.com>
7743 * linux-fork.c (new_fork): New, split out of ...
7744 (add_fork): ... this. Return void. Move "first fork" special
7745 case from here, to ...
7746 (checkpoint_command): ... here.
7747 * linux-linux.h (add_fork): Return void.
7749 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7751 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
7753 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7754 Chris January <chris.january@arm.com>
7755 David Lecomber <david.lecomber@arm.com>
7757 * f-exp.y: New token, UNOP_INTRINSIC.
7758 (exp): New pattern using UNOP_INTRINSIC token.
7759 (f77_keywords): Add 'abs' keyword.
7760 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
7761 (value_from_host_double): New function.
7762 (evaluate_subexp_f): Support UNOP_ABS.
7764 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7766 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
7769 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7771 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
7772 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
7773 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
7775 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7777 * f-exp.y (convert_to_kind_type): Handle more type kinds.
7779 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7780 Chris January <chris.january@arm.com>
7782 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
7783 * f-exp.y: Define 'KIND' token.
7784 (exp): New pattern for KIND expressions.
7785 (ptype): Handle types with a kind extension.
7786 (direct_abs_decl): Extend to spot kind extensions.
7787 (f77_keywords): Add 'kind' to the list.
7788 (push_kind_type): New function.
7789 (convert_to_kind_type): New function.
7790 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
7791 * parse.c (operator_length_standard): Likewise.
7792 * parser-defs.h (enum type_pieces): Add tp_kind.
7793 * std-operator.def: Add UNOP_KIND.
7795 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7797 * f-exp.y (f_parse): Set yydebug.
7799 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7801 * f-lang.c (evaluate_subexp_f): New function.
7802 (exp_descriptor_f): New global.
7803 (f_language_defn): Use exp_descriptor_f instead of
7804 exp_descriptor_standard.
7806 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7808 * f-exp.y (struct token): Add comments.
7809 (dot_ops): Remove uppercase versions and the end marker.
7810 (f77_keywords): Likewise.
7811 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
7812 entries in the dot_ops array are case insensitive, and use
7813 strncasecmp to compare strings. Also some whitespace cleanup in
7814 this area. Similar for the f77_keywords array, except entries in
7815 this list might be case sensitive.
7817 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7819 * f-exp.y (struct f77_boolean_val): Add comments.
7820 (boolean_values): Remove uppercase versions, and end marker.
7821 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
7822 and use strncasecmp to achieve case insensitivity. Additionally,
7823 perform whitespace cleanup around this code.
7825 2019-03-06 Tom Tromey <tromey@adacore.com>
7827 * remote-sim.c (gdbsim_target_open): Use result of
7830 2019-03-06 Richard Bunt <richard.bunt@arm.com>
7831 Dirk Schubert <dirk.schubert@arm.com>
7832 Chris January <chris.january@arm.com>
7834 * eval.c (evaluate_subexp_standard): Call Fortran argument
7836 * f-lang.c (struct value): A value which can be passed into a
7837 Fortran function call.
7838 (fortran_argument_convert): Wrap Fortran arguments in a pointer
7840 (struct type): Value ready for a Fortran function call.
7841 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
7843 * f-lang.h (fortran_argument_convert): Declaration.
7844 (fortran_preserve_arg_pointer): Declaration.
7845 * infcall.c (value_arg_coerce): Call Fortran argument logic.
7847 2019-03-05 Tom Tromey <tromey@adacore.com>
7849 * python/py-prettyprint.c (print_string_repr): Remove #if.
7850 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
7852 2019-03-05 Tom Tromey <tromey@adacore.com>
7854 * target.c (the_dummy_target): Move later. Change type to
7856 (initialize_targets): Don't initialize the_dummy_target.
7858 2019-03-05 Tom Tromey <tromey@adacore.com>
7860 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
7861 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
7863 2019-03-05 Tom Tromey <tromey@adacore.com>
7865 * windows-nat.c (windows_nat_target::attach)
7866 (windows_nat_target::detach): Don't call gdb_flush.
7867 * valprint.c (generic_val_print, val_print, val_print_string):
7868 Don't call gdb_flush.
7869 * utils.c (defaulted_query): Don't call gdb_flush.
7870 * typeprint.c (print_type_scalar): Don't call gdb_flush.
7871 * target.c (target_announce_detach): Don't call gdb_flush.
7872 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
7873 * remote.c (extended_remote_target::attach): Don't call
7875 * procfs.c (procfs_target::detach): Don't call gdb_flush.
7876 * printcmd.c (do_examine): Don't call gdb_flush.
7877 (info_display_command): Don't call gdb_flush.
7878 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
7879 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
7880 * memattr.c (info_mem_command): Don't call gdb_flush.
7881 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
7882 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
7883 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
7884 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
7885 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
7886 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
7887 (gnu_nat_target::detach): Don't call gdb_flush.
7888 * f-valprint.c (f_val_print): Don't call gdb_flush.
7889 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
7890 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
7891 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
7893 * c-valprint.c (c_val_print): Don't call gdb_flush.
7894 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
7896 2019-03-05 Tom Tromey <tromey@adacore.com>
7898 * varobj.c (update_dynamic_varobj_children): Update.
7899 (install_default_visualizer): Use reset, not release.
7900 * value.c (set_internalvar): Update.
7901 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
7902 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
7903 ATTRIBUTE_UNUSED_RESULT.
7905 2019-03-05 Tom Tromey <tromey@adacore.com>
7907 * remote.c (class scoped_remote_fd) <release>: Add
7908 ATTRIBUTE_UNUSED_RESULT.
7910 2019-03-05 Tom Tromey <tromey@adacore.com>
7912 * macroexp.c (struct macro_buffer) <release>: Add
7913 ATTRIBUTE_UNUSED_RESULT.
7915 2019-03-05 Tom Tromey <tromey@adacore.com>
7917 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
7918 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
7919 ATTRIBUTE_UNUSED_RESULT.
7921 2019-03-05 Tom Tromey <tromey@adacore.com>
7923 * common/scoped_fd.h (class scoped_fd) <release>: Add
7924 ATTRIBUTE_UNUSED_RESULT.
7926 2019-03-05 Tom Tromey <tromey@adacore.com>
7928 * parser-defs.h (struct parser_state) <release>: Add
7929 ATTRIBUTE_UNUSED_RESULT.
7931 2019-03-05 Tom Tromey <tromey@adacore.com>
7933 * utils.h (class gdb_argv) <release>: Add
7934 ATTRIBUTE_UNUSED_RESULT.
7935 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
7937 2019-03-02 Eli Zaretskii <eliz@gnu.org>
7939 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
7940 for-loop range, to avoid compiler warnings.
7942 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
7943 avoid compiler warnings about unused variables.
7945 * NEWS: Mention end of support for native debugging on MS-Windows
7949 * common/netstuff.c:
7950 * gdbserver/gdbreplay.c
7951 * gdbserver/remote-utils.c:
7953 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
7954 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
7955 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
7956 'getaddrinfo' and 'freeaddrinfo' were not available before
7957 Windows XP, and mingw.org's MinGW headers by default define
7958 _WIN32_WINNT to 0x500.
7960 2019-03-01 Gary Benson <gbenson@redhat.com>
7962 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
7964 2019-02-28 Brian Vandenberg <phantall@gmail.com>
7965 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7968 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
7969 set_sigint_trap, clear_sigint_trap.
7971 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7973 * target.c (target_detach): Clear the regcache and the
7976 2019-02-27 Pedro Alves <palves@redhat.com>
7978 * utils.c (set_screen_size): When we cap the height/width sizes,
7979 tweak the corresponding command variable to show "unlimited":
7981 2019-02-27 Saagar Jha <saagar@saagarjha.com>
7982 Pedro Alves <palves@redhat.com>
7984 * utils.c (set_screen_size): Reduce "infinite" rows and columns
7985 before calling rl_set_screen_size.
7987 2019-02-27 Tom Tromey <tromey@adacore.com>
7989 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
7991 * python/py-value.c: Remove Python 2.4 workaround.
7992 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
7994 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
7995 Python 2.4 workaround.
7996 * python/python-internal.h: Remove Python 2.4 comment.
7997 (Py_ssize_t): Don't define.
7998 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
7999 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8000 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8001 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8002 * python/python.c (do_start_initialization): Remove Python 2.4
8004 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8005 (print_children): Remove Python 2.4 workaround.
8006 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8008 (CHARBUFFERPROC_NAME): Remove.
8009 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8010 Python 2.4 workaround.
8012 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8014 * NEWS: Note minimum Python version.
8016 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8018 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8019 code from these functions. Remove corresponding ifdefs. Use
8020 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8021 Remove gotos and target of gotos.
8022 (infpy_search_memory): Likewise.
8024 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8026 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8027 (hppa_gdbarch_init): Don't register deleted functions with
8030 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8032 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8033 (h8300_unwind_sp): Delete.
8034 (h8300_dummy_id): Delete.
8035 (h8300_gdbarch_init): Don't register deleted functions with
8038 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8040 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8041 (ft32_unwind_pc): Delete.
8042 (ft32_unwind_sp): Delete.
8043 (ft32_gdbarch_init): Don't register deleted functions with
8046 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8048 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8049 (frv_unwind_pc): Delete.
8050 (frv_unwind_sp): Delete.
8051 (frv_gdbarch_init): Don't register deleted functions with
8054 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8056 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8057 (riscv_unwind_pc): Delete.
8058 (riscv_unwind_sp): Delete.
8059 (riscv_gdbarch_init): Don't register deleted functions with
8062 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8064 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8065 (csky_unwind_pc): Delete.
8066 (csky_unwind_sp): Delete.
8067 (csky_gdbarch_init): Don't register deleted functions with
8070 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8072 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8073 (cris_unwind_pc): Delete.
8074 (cris_unwind_sp): Delete.
8075 (cris_gdbarch_init): Don't register deleted functions with
8078 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8080 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8081 (bfin_unwind_pc): Delete.
8082 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8084 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8086 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8087 (arm_unwind_pc): Delete.
8088 (arm_unwind_sp): Delete.
8089 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8091 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8093 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8094 (arc_unwind_pc): Delete.
8095 (arc_unwind_sp): Delete.
8096 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8098 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8100 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8101 (alpha_unwind_pc): Delete.
8102 (alpha_gdbarch_init): Don't register deleted functions with
8105 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8107 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8108 (aarch64_unwind_pc): Delete.
8109 (aarch64_unwind_sp): Delete.
8110 (aarch64_gdbarch_init): Don't register deleted functions with
8113 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8115 * gdbtypes.c (type_align): Don't consider static members when
8116 computing structure alignment.
8118 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8120 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8121 return 0 for other types.
8122 * arch-utils.c (default_type_align): Always return 0.
8123 * gdbarch.h: Regenerate.
8124 * gdbarch.sh (type_align): Extend comment.
8125 * gdbtypes.c (type_align): Add additional comments, always call
8126 gdbarch_type_align before applying the default rules.
8127 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8128 generic code will then apply a suitable default.
8129 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8130 types, return 0 for other types.
8132 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8134 * NEWS: Create a new section for the next release branch.
8135 Rename the section of the current branch, now that it has
8138 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8140 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8141 * version.in: Bump version to 8.3.50.DATE-git.
8143 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
8145 * aix-thread.c (ptid_cmp): Remove unused variable.
8146 (get_signaled_thread): Likewise.
8147 (store_regs_user_thread): Likewise.
8148 (store_regs_kernel_thread): Likewise.
8149 (fetch_regs_kernel_thread): Remove shadowed variable.
8151 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8153 * features/riscv/32bit-cpu.xml: Add register numbers.
8154 * features/riscv/32bit-fpu.c: Regenerate.
8155 * features/riscv/32bit-fpu.xml: Add register numbers.
8156 * features/riscv/64bit-cpu.xml: Add register numbers.
8157 * features/riscv/64bit-fpu.c: Regenerate.
8158 * features/riscv/64bit-fpu.xml: Add register numbers.
8160 2019-02-26 Kevin Buettner <kevinb@redhat.com>
8162 * NEWS: Mention two argument form of gdb.Value constructor.
8163 * python/py-value.c (convert_buffer_and_type_to_value): New
8165 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8166 Add support for handling an optional second argument. Call
8167 convert_buffer_and_type_to_value as appropriate.
8168 * python/python-internal.h (Py_buffer_deleter): New struct.
8169 (Py_buffer_up): New typedef.
8171 2019-02-25 John Baldwin <jhb@FreeBSD.org>
8173 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8174 instead of releasing ownership.
8176 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
8178 * dwarf2read.c (open_and_init_dwp_file): Call
8179 elf_numsections instead of bfd_count_sections to initialize
8180 dwp_file->num_sections.
8182 2019-02-25 Tom Tromey <tromey@adacore.com>
8184 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8186 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8188 * gcore.in: Add '--readnever' option when invoking GDB.
8190 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8192 * MAINTAINERS: Update my email address.
8194 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8196 * build-id.c (build_id_to_debug_bfd_1): New function.
8197 (build_id_to_debug_bfd): Look for separate debug file in
8200 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8202 * gdbarch.sh: Update the copyright year range that is placed into
8205 2019-02-22 Keith Seitz <keiths@redhat.com>
8208 * linespec.c (create_sals_line_offset): Search for the default
8209 symtab's filename instead of its fullname.
8211 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8213 * NEWS: Update style defaults.
8215 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8217 * main.c (captured_main_1): Disable styling in batch mode.
8219 2019-02-20 Tom Tromey <tom@tromey.com>
8221 * symtab.c (symtab_symbol_info): Fix typos.
8223 2019-02-20 Tom Tromey <tromey@adacore.com>
8225 * findcmd.c (_initialize_mem_search): Use upper case for
8226 metasyntactic variables.
8228 2019-02-20 Alan Hayward <alan.hayward@arm.com>
8230 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8231 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8233 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8235 * top.h (source_file_name): Change to std::string.
8236 * top.c (source_file_name): Likewise.
8237 (command_line_input): Adjust.
8238 * cli/cli-script.c (script_from_file): Adjust.
8240 2019-02-19 Tom Tromey <tromey@adacore.com>
8242 * ravenscar-thread.c
8243 (ravenscar_thread_target::update_thread_list): Don't call
8244 ada_build_task_list.
8245 * ada-lang.h (ada_build_task_list): Don't declare.
8246 * ada-tasks.c (struct ada_tasks_inferior_data)
8247 <task_list_valid_p>: Now bool.
8248 (read_known_tasks, ada_task_list_changed)
8249 (ada_tasks_invalidate_inferior_data): Update.
8250 (read_known_tasks_array): Return bool.
8251 (read_known_tasks_list): Likewise.
8252 (read_known_tasks): Return void.
8253 (ada_build_task_list): Now static.
8255 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8257 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8258 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8260 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8262 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8263 variant for ada_tasks_pspace_data_handle and
8264 ada_tasks_inferior_data_handle.
8265 (ada_tasks_pspace_data_cleanup): New function.
8266 (ada_tasks_inferior_data_cleanup): New function.
8268 2019-02-17 Tom Tromey <tom@tromey.com>
8270 * macrotab.h (macro_source_fullname): Return a std::string.
8271 * macrotab.c (macro_include, check_for_redefinition)
8272 (macro_undef, macro_lookup_definition, foreach_macro)
8273 (foreach_macro_in_scope): Update.
8274 (macro_source_fullname): Return a std::string.
8275 * macrocmd.c (show_pp_source_pos): Update.
8277 2019-02-17 Tom Tromey <tom@tromey.com>
8279 * macrocmd.c (show_pp_source_pos): Style the file names.
8281 2019-02-17 Tom Tromey <tom@tromey.com>
8284 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8286 2019-02-17 Tom Tromey <tom@tromey.com>
8288 * ada-lang.c (user_select_syms): Use filtered printing.
8289 * utils.c (wrap_style): New global.
8290 (desired_style): Remove.
8291 (emit_style_escape): Add stream parameter.
8292 (set_output_style, reset_terminal_style, prompt_for_continue):
8294 (flush_wrap_buffer): Only flush gdb_stdout.
8295 (wrap_here): Set wrap_style.
8296 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8297 treat escape sequences as a character. Change when wrap buffer is
8299 (fputs_styled): Do not set the output style when the default is
8301 * ui-style.h (struct ui_file_style) <is_default>: New method.
8302 * source.c (print_source_lines_base): Emit escape sequences in one
8305 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8307 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8308 integers and enumeration types.
8310 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8312 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8313 instead of lookup_symbol_in_language
8314 (do_exact_match): New function.
8315 (ada_get_symbol_name_matcher): Return do_exact_match when
8316 doing a verbatim match.
8318 2019-02-15 Tom Tromey <tromey@adacore.com>
8320 * ravenscar-thread.c (ravenscar_thread_target::resume)
8321 (ravenscar_thread_target::wait): Special case wildcard requests.
8323 2019-02-15 Tom Tromey <tromey@adacore.com>
8325 * ravenscar-thread.c (base_ptid): Remove.
8326 (struct ravenscar_thread_target) <close>: New method.
8327 <m_base_ptid>: New member.
8328 <update_inferior_ptid, active_task, task_is_currently_active,
8329 runtime_initialized>: Declare methods.
8330 <ravenscar_thread_target>: Add constructor.
8331 (ravenscar_thread_target::task_is_currently_active)
8332 (ravenscar_thread_target::update_inferior_ptid)
8333 (ravenscar_runtime_initialized): Rename. Now methods.
8334 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8335 (ravenscar_thread_target::update_thread_list): Update.
8336 (ravenscar_thread_target::active_task): Now method.
8337 (ravenscar_thread_target::store_registers)
8338 (ravenscar_thread_target::prepare_to_store)
8339 (ravenscar_thread_target::prepare_to_store)
8340 (ravenscar_thread_target::mourn_inferior): Update.
8341 (ravenscar_inferior_created): Use "new" to create target.
8342 (ravenscar_thread_target::get_ada_task_ptid): Update.
8343 (_initialize_ravenscar): Don't initialize base_ptid.
8344 (ravenscar_ops): Remove global.
8346 2019-02-15 Tom Tromey <tromey@adacore.com>
8348 * target.h (push_target): Declare new overload.
8349 * target.c (push_target): New overload, taking an rvalue reference.
8350 * remote.c (remote_target::open_1): Use push_target overload.
8351 * corelow.c (core_target_open): Use push_target overload.
8353 2019-02-15 Tom Tromey <tromey@adacore.com>
8355 * ravenscar-thread.c (is_ravenscar_task)
8356 (ravenscar_task_is_currently_active): Return bool.
8357 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8358 (_initialize_ravenscar): Remove "(void)".
8359 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8362 2019-02-15 Tom Tromey <tromey@adacore.com>
8364 * ravenscar-thread.c (ravenscar_runtime_initializer)
8365 (has_ravenscar_runtime, get_running_thread_id)
8366 (ravenscar_thread_target::resume): Fix indentation.
8368 2019-02-15 Tom Tromey <tromey@adacore.com>
8370 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8371 from ravenscar_arch_ops.
8372 (sparc_ravenscar_ops::fetch_registers)
8373 (sparc_ravenscar_ops::store_registers): Now methods.
8374 (sparc_ravenscar_prepare_to_store): Remove.
8375 (sparc_ravenscar_ops): Redefine.
8376 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8377 methods and destructor. Remove members.
8378 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8379 (ravenscar_thread_target::store_registers)
8380 (ravenscar_thread_target::prepare_to_store): Update.
8381 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8383 (struct ppc_ravenscar_powerpc_ops): Derive from
8385 (ppc_ravenscar_powerpc_ops::fetch_registers)
8386 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8387 (ppc_ravenscar_powerpc_ops): Redefine.
8388 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8389 (ppc_ravenscar_e500_ops::fetch_registers)
8390 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8391 (ppc_ravenscar_e500_ops): Redefine.
8392 * aarch64-ravenscar-thread.c
8393 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8394 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
8395 (aarch64_ravenscar_fetch_registers)
8396 (aarch64_ravenscar_store_registers): Now methods.
8397 (aarch64_ravenscar_ops): Redefine.
8399 2019-02-15 Tom Tromey <tromey@adacore.com>
8401 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
8402 (ravenscar_thread_target::stopped_by_hw_breakpoint)
8403 (ravenscar_thread_target::stopped_by_watchpoint)
8404 (ravenscar_thread_target::stopped_data_address)
8405 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
8407 2019-02-15 Tom Tromey <tromey@adacore.com>
8409 * ravenscar-thread.c: Fix some typos.
8411 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8412 Tom Tromey <tromey@adacore.com>
8414 * ada-lang.c (ada_exception_sal): Change addr_string to a
8416 (create_ada_exception_catchpoint): Update.
8418 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8419 Tom Tromey <tromey@adacore.com>
8421 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
8422 (bp_location_ops): Remove.
8423 (base_breakpoint_allocate_location): Update.
8424 (free_bp_location): Update.
8425 * ada-lang.c (class ada_catchpoint_location)
8426 <ada_catchpoint_location>: Remove ops parameter.
8427 (ada_catchpoint_location_dtor): Remove.
8428 (ada_catchpoint_location_ops): Remove.
8429 (allocate_location_exception): Update.
8430 * breakpoint.h (struct bp_location_ops): Remove.
8431 (class bp_location) <bp_location>: Remove bp_location_ops
8433 <~bp_location>: Add destructor.
8436 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8437 Pedro Alves <palves@redhat.com>
8439 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
8442 2019-02-14 David Michael <fedora.dm0@gmail.com>
8443 Samuel Thibault <samuel.thibault@gnu.org>
8444 Thomas Schwinge <thomas@codesourcery.com>
8446 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
8447 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
8449 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8451 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
8452 (check_empty): Use "const char *".
8454 * gnu-nat.c (gnu_nat_target::detach): Instead of
8455 'detach_inferior (pid)' call
8456 'detach_inferior (find_inferior_pid (pid))'.
8458 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
8459 'nat/fork-inferior.o'.
8460 * gnu-nat.c: #include "nat/fork-inferior.h".
8462 * gnu-nat.c (gnu_nat_target::detach): Instead of
8463 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
8464 * gnu-nat.h: #include "inf-child.h".
8465 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
8466 'i386_gnu_nat_target::fetch_registers'.
8467 (gnu_store_registers): Rename/move to
8468 'i386_gnu_nat_target::store_registers'.
8470 * config/i386/nm-i386gnu.h: Don't "#include" any files.
8471 * gnu-nat.h (mach_thread_info): New function.
8472 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
8474 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
8476 2019-02-14 Frederic Konrad <konrad@adacore.com>
8478 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
8480 2019-02-14 Joel Brobecker <brobecker@adacore.com>
8482 * windows-nat.c (windows_add_thread): Add new parameter
8483 "main_thread_p" with default value set to false. Update
8484 function documentation as well as all callers.
8485 (windows_delete_thread): Likewise.
8486 (fake_create_process): Update call to windows_add_thread.
8487 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
8488 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
8489 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
8490 call to windows_delete_thread.
8492 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
8494 * MAINTAINERS: Add Andrew Burgess as global maintainer.
8496 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8498 * symfile.c (find_separate_debug_file): Use canonical path of
8499 sysroot with child_path instead of gdb_sysroot if it is valid.
8501 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8503 * symfile.c (find_separate_debug_file): Use child_path to
8504 determine if an object file is under a sysroot.
8506 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8508 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8509 unittests/child-path-selftests.c.
8510 * common/pathstuff.c (child_path): New function.
8511 * common/pathstuff.h (child_path): New prototype.
8512 * unittests/child-path-selftests.c: New file.
8514 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8516 * symfile.c (find_separate_debug_file): Look for separate debug
8517 files in debug directories under the sysroot.
8519 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8521 * symtab.h (struct minimal_symbol data_p): New const method.
8522 (struct minimal_symbol text_p): Likewise.
8523 * symtab.c (output_source_filename): Use file name style
8525 (print_symbol_info): Likewise.
8526 (print_msymbol_info): Use address style to print addresses.
8527 Use function name style to print executable text symbols.
8528 (expand_symtab_containing_pc): Use data_p.
8529 (find_pc_sect_compunit_symtab): Likewise.
8531 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8533 * breakpoint.c (describe_other_breakpoints): Use address style
8535 (say_where): Likewise.
8537 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8539 * ada-typeprint.c (print_func_type): Print function name
8540 style to print function name.
8541 * c-typeprint.c (c_print_type_1): Likewise.
8543 2019-02-11 Alan Hayward <alan.hayward@arm.com>
8545 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
8548 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8550 * c-exp.y (direct_abs_decl): Use emplace_back to record the
8553 2019-02-10 Joel Brobecker <brobecker@adacore.com>
8555 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
8556 TYPE_CODE_REF types.
8558 2019-02-08 Jim Wilson <jimw@sifive.com>
8560 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
8561 (riscv_linux_fregset): New.
8562 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
8564 2019-02-07 Tom Tromey <tom@tromey.com>
8566 * thread.c (thread_cancel_execution_command): Update.
8567 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
8569 (struct thread_fsm_ops): Remove.
8570 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
8571 (thread_fsm_should_stop, thread_fsm_return_value)
8572 (thread_fsm_set_finished, thread_fsm_finished_p)
8573 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
8575 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
8576 * infrun.c (clear_proceed_status_thread)
8577 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
8578 (print_stop_event): Update.
8579 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
8581 (step_command_fsm_ops): Remove.
8582 (new_step_command_fsm): Remove.
8584 (step_command_fsm::should_stop): Rename from
8585 step_command_fsm_should_stop.
8586 (step_command_fsm::clean_up): Rename from
8587 step_command_fsm_clean_up.
8588 (step_command_fsm::do_async_reply_reason): Rename from
8589 step_command_fsm_async_reply_reason.
8590 (struct until_next_fsm): Inherit from thread_fsm. Add
8592 (until_next_fsm_ops): Remove.
8593 (new_until_next_fsm): Remove.
8594 (until_next_fsm::should_stop): Rename from
8595 until_next_fsm_should_stop.
8596 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
8597 (until_next_fsm::do_async_reply_reason): Rename from
8598 until_next_fsm_async_reply_reason.
8599 (struct finish_command_fsm): Inherit from thread_fsm. Add
8600 constructor. Change type of breakpoint.
8601 (finish_command_fsm_ops): Remove.
8602 (new_finish_command_fsm): Remove.
8603 (finish_command_fsm::should_stop): Rename from
8604 finish_command_fsm_should_stop.
8605 (finish_command_fsm::clean_up): Rename from
8606 finish_command_fsm_clean_up.
8607 (finish_command_fsm::return_value): Rename from
8608 finish_command_fsm_return_value.
8609 (finish_command_fsm::do_async_reply_reason): Rename from
8610 finish_command_fsm_async_reply_reason.
8611 (finish_command): Update.
8612 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
8614 (call_thread_fsm_ops): Remove.
8615 (call_thread_fsm::call_thread_fsm): Rename from
8616 new_call_thread_fsm.
8617 (call_thread_fsm::should_stop): Rename from
8618 call_thread_fsm_should_stop.
8619 (call_thread_fsm::should_notify_stop): Rename from
8620 call_thread_fsm_should_notify_stop.
8621 (run_inferior_call, call_function_by_hand_dummy): Update.
8622 * cli/cli-interp.c (should_print_stop_to_console): Update.
8623 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
8624 Add constructor. Change type of location_breakpoint,
8626 (until_break_fsm_ops): Remove.
8627 (new_until_break_fsm): Remove.
8628 (until_break_fsm::should_stop): Rename from
8629 until_break_fsm_should_stop.
8630 (until_break_fsm::clean_up): Rename from
8631 until_break_fsm_clean_up.
8632 (until_break_fsm::do_async_reply_reason): Rename from
8633 until_break_fsm_async_reply_reason.
8634 (until_break_command): Update.
8635 * thread-fsm.c: Remove.
8636 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
8638 2019-02-07 Tom Tromey <tom@tromey.com>
8640 * yy-remap.h: Add include guard.
8641 * xtensa-tdep.h: Add include guard.
8642 * xcoffread.h: Rename include guard.
8643 * varobj-iter.h: Add include guard.
8644 * tui/tui.h: Rename include guard.
8645 * tui/tui-winsource.h: Rename include guard.
8646 * tui/tui-wingeneral.h: Rename include guard.
8647 * tui/tui-windata.h: Rename include guard.
8648 * tui/tui-win.h: Rename include guard.
8649 * tui/tui-stack.h: Rename include guard.
8650 * tui/tui-source.h: Rename include guard.
8651 * tui/tui-regs.h: Rename include guard.
8652 * tui/tui-out.h: Rename include guard.
8653 * tui/tui-layout.h: Rename include guard.
8654 * tui/tui-io.h: Rename include guard.
8655 * tui/tui-hooks.h: Rename include guard.
8656 * tui/tui-file.h: Rename include guard.
8657 * tui/tui-disasm.h: Rename include guard.
8658 * tui/tui-data.h: Rename include guard.
8659 * tui/tui-command.h: Rename include guard.
8660 * tic6x-tdep.h: Add include guard.
8661 * target/waitstatus.h: Rename include guard.
8662 * target/wait.h: Rename include guard.
8663 * target/target.h: Rename include guard.
8664 * target/resume.h: Rename include guard.
8665 * target-float.h: Rename include guard.
8666 * stabsread.h: Add include guard.
8667 * rs6000-tdep.h: Add include guard.
8668 * riscv-fbsd-tdep.h: Add include guard.
8669 * regformats/regdef.h: Rename include guard.
8670 * record.h: Rename include guard.
8671 * python/python.h: Rename include guard.
8672 * python/python-internal.h: Rename include guard.
8673 * python/py-stopevent.h: Rename include guard.
8674 * python/py-ref.h: Rename include guard.
8675 * python/py-record.h: Rename include guard.
8676 * python/py-record-full.h: Rename include guard.
8677 * python/py-record-btrace.h: Rename include guard.
8678 * python/py-instruction.h: Rename include guard.
8679 * python/py-events.h: Rename include guard.
8680 * python/py-event.h: Rename include guard.
8681 * procfs.h: Add include guard.
8682 * proc-utils.h: Add include guard.
8683 * p-lang.h: Add include guard.
8684 * or1k-tdep.h: Rename include guard.
8685 * observable.h: Rename include guard.
8686 * nto-tdep.h: Rename include guard.
8687 * nat/x86-linux.h: Rename include guard.
8688 * nat/x86-linux-dregs.h: Rename include guard.
8689 * nat/x86-gcc-cpuid.h: Add include guard.
8690 * nat/x86-dregs.h: Rename include guard.
8691 * nat/x86-cpuid.h: Rename include guard.
8692 * nat/ppc-linux.h: Rename include guard.
8693 * nat/mips-linux-watch.h: Rename include guard.
8694 * nat/linux-waitpid.h: Rename include guard.
8695 * nat/linux-ptrace.h: Rename include guard.
8696 * nat/linux-procfs.h: Rename include guard.
8697 * nat/linux-osdata.h: Rename include guard.
8698 * nat/linux-nat.h: Rename include guard.
8699 * nat/linux-namespaces.h: Rename include guard.
8700 * nat/linux-btrace.h: Rename include guard.
8701 * nat/glibc_thread_db.h: Rename include guard.
8702 * nat/gdb_thread_db.h: Rename include guard.
8703 * nat/gdb_ptrace.h: Rename include guard.
8704 * nat/fork-inferior.h: Rename include guard.
8705 * nat/amd64-linux-siginfo.h: Rename include guard.
8706 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
8707 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
8708 * nat/aarch64-linux.h: Rename include guard.
8709 * nat/aarch64-linux-hw-point.h: Rename include guard.
8710 * mn10300-tdep.h: Add include guard.
8711 * mips-linux-tdep.h: Add include guard.
8712 * mi/mi-parse.h: Rename include guard.
8713 * mi/mi-out.h: Rename include guard.
8714 * mi/mi-main.h: Rename include guard.
8715 * mi/mi-interp.h: Rename include guard.
8716 * mi/mi-getopt.h: Rename include guard.
8717 * mi/mi-console.h: Rename include guard.
8718 * mi/mi-common.h: Rename include guard.
8719 * mi/mi-cmds.h: Rename include guard.
8720 * mi/mi-cmd-break.h: Rename include guard.
8721 * m2-lang.h: Add include guard.
8722 * location.h: Rename include guard.
8723 * linux-record.h: Rename include guard.
8724 * linux-nat.h: Add include guard.
8725 * linux-fork.h: Add include guard.
8726 * i386-darwin-tdep.h: Rename include guard.
8727 * hppa-linux-offsets.h: Add include guard.
8728 * guile/guile.h: Rename include guard.
8729 * guile/guile-internal.h: Rename include guard.
8730 * gnu-nat.h: Rename include guard.
8731 * gdb-stabs.h: Rename include guard.
8732 * frv-tdep.h: Add include guard.
8733 * f-lang.h: Add include guard.
8734 * event-loop.h: Add include guard.
8735 * darwin-nat.h: Rename include guard.
8736 * cp-abi.h: Rename include guard.
8737 * config/sparc/nm-sol2.h: Rename include guard.
8738 * config/nm-nto.h: Rename include guard.
8739 * config/nm-linux.h: Add include guard.
8740 * config/i386/nm-i386gnu.h: Rename include guard.
8741 * config/djgpp/nl_types.h: Rename include guard.
8742 * config/djgpp/langinfo.h: Rename include guard.
8743 * compile/gcc-cp-plugin.h: Add include guard.
8744 * compile/gcc-c-plugin.h: Add include guard.
8745 * compile/compile.h: Rename include guard.
8746 * compile/compile-object-run.h: Rename include guard.
8747 * compile/compile-object-load.h: Rename include guard.
8748 * compile/compile-internal.h: Rename include guard.
8749 * compile/compile-cplus.h: Rename include guard.
8750 * compile/compile-c.h: Rename include guard.
8751 * common/xml-utils.h: Rename include guard.
8752 * common/x86-xstate.h: Rename include guard.
8753 * common/version.h: Rename include guard.
8754 * common/vec.h: Rename include guard.
8755 * common/tdesc.h: Rename include guard.
8756 * common/selftest.h: Rename include guard.
8757 * common/scoped_restore.h: Rename include guard.
8758 * common/scoped_mmap.h: Rename include guard.
8759 * common/scoped_fd.h: Rename include guard.
8760 * common/safe-iterator.h: Rename include guard.
8761 * common/run-time-clock.h: Rename include guard.
8762 * common/refcounted-object.h: Rename include guard.
8763 * common/queue.h: Rename include guard.
8764 * common/ptid.h: Rename include guard.
8765 * common/print-utils.h: Rename include guard.
8766 * common/preprocessor.h: Rename include guard.
8767 * common/pathstuff.h: Rename include guard.
8768 * common/observable.h: Rename include guard.
8769 * common/netstuff.h: Rename include guard.
8770 * common/job-control.h: Rename include guard.
8771 * common/host-defs.h: Rename include guard.
8772 * common/gdb_wait.h: Rename include guard.
8773 * common/gdb_vecs.h: Rename include guard.
8774 * common/gdb_unlinker.h: Rename include guard.
8775 * common/gdb_unique_ptr.h: Rename include guard.
8776 * common/gdb_tilde_expand.h: Rename include guard.
8777 * common/gdb_sys_time.h: Rename include guard.
8778 * common/gdb_string_view.h: Rename include guard.
8779 * common/gdb_splay_tree.h: Rename include guard.
8780 * common/gdb_setjmp.h: Rename include guard.
8781 * common/gdb_ref_ptr.h: Rename include guard.
8782 * common/gdb_optional.h: Rename include guard.
8783 * common/gdb_locale.h: Rename include guard.
8784 * common/gdb_assert.h: Rename include guard.
8785 * common/filtered-iterator.h: Rename include guard.
8786 * common/filestuff.h: Rename include guard.
8787 * common/fileio.h: Rename include guard.
8788 * common/environ.h: Rename include guard.
8789 * common/common-utils.h: Rename include guard.
8790 * common/common-types.h: Rename include guard.
8791 * common/common-regcache.h: Rename include guard.
8792 * common/common-inferior.h: Rename include guard.
8793 * common/common-gdbthread.h: Rename include guard.
8794 * common/common-exceptions.h: Rename include guard.
8795 * common/common-defs.h: Rename include guard.
8796 * common/common-debug.h: Rename include guard.
8797 * common/cleanups.h: Rename include guard.
8798 * common/buffer.h: Rename include guard.
8799 * common/btrace-common.h: Rename include guard.
8800 * common/break-common.h: Rename include guard.
8801 * cli/cli-utils.h: Rename include guard.
8802 * cli/cli-style.h: Rename include guard.
8803 * cli/cli-setshow.h: Rename include guard.
8804 * cli/cli-script.h: Rename include guard.
8805 * cli/cli-interp.h: Rename include guard.
8806 * cli/cli-decode.h: Rename include guard.
8807 * cli/cli-cmds.h: Rename include guard.
8808 * charset-list.h: Add include guard.
8809 * buildsym-legacy.h: Rename include guard.
8810 * bfin-tdep.h: Add include guard.
8811 * ax.h: Rename include guard.
8812 * arm-linux-tdep.h: Add include guard.
8813 * arm-fbsd-tdep.h: Add include guard.
8814 * arch/xtensa.h: Rename include guard.
8815 * arch/tic6x.h: Add include guard.
8816 * arch/i386.h: Add include guard.
8817 * arch/arm.h: Rename include guard.
8818 * arch/arm-linux.h: Rename include guard.
8819 * arch/arm-get-next-pcs.h: Rename include guard.
8820 * arch/amd64.h: Add include guard.
8821 * arch/aarch64-insn.h: Rename include guard.
8822 * arch-utils.h: Rename include guard.
8823 * annotate.h: Add include guard.
8824 * amd64-darwin-tdep.h: Rename include guard.
8825 * aarch64-linux-tdep.h: Add include guard.
8826 * aarch64-fbsd-tdep.h: Add include guard.
8827 * aarch32-linux-nat.h: Add include guard.
8829 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8831 * macrotab.c (macro_define_internal): New function that
8832 factorizes macro_define_object_internal and macro_define_function
8834 (macro_define_object_internal): Use macro_define_internal.
8835 (macro_define_function): Likewise.
8837 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8839 * macrocmd.c (extract_identifier): Return
8840 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
8843 2019-02-06 John Baldwin <jhb@FreeBSD.org>
8845 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
8847 2019-02-05 Tom Tromey <tom@tromey.com>
8849 * target.c (target_stack::unpush): Move assertion earlier.
8851 2019-01-30 Tom Tromey <tom@tromey.com>
8854 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
8855 (gdbpy_parse_and_eval): Likewise.
8856 * python/python-internal.h (gdbpy_allow_threads): New class.
8858 2019-01-28 John Baldwin <jhb@FreeBSD.org>
8860 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
8861 (aarch64_fbsd_fpregmap): Move earlier.
8862 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
8863 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
8864 instead of individual calls to trad_frame_set_reg_addr.
8865 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
8867 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
8868 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
8869 instead of individual calls to trad_frame_set_reg_addr.
8871 2019-01-28 Alan Hayward <alan.hayward@arm.com>
8873 * CONTRIBUTE: Replace contribution list with wiki link.
8875 2019-01-25 Tom Tromey <tom@tromey.com>
8877 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
8879 2019-01-25 Tom Tromey <tom@tromey.com>
8881 * xtensa-linux-nat.c: Fix common/ includes.
8882 * xml-support.h: Fix common/ includes.
8883 * xml-support.c: Fix common/ includes.
8884 * x86-linux-nat.c: Fix common/ includes.
8885 * windows-nat.c: Fix common/ includes.
8886 * varobj.h: Fix common/ includes.
8887 * varobj.c: Fix common/ includes.
8888 * value.c: Fix common/ includes.
8889 * valops.c: Fix common/ includes.
8890 * utils.c: Fix common/ includes.
8891 * unittests/xml-utils-selftests.c: Fix common/ includes.
8892 * unittests/utils-selftests.c: Fix common/ includes.
8893 * unittests/unpack-selftests.c: Fix common/ includes.
8894 * unittests/tracepoint-selftests.c: Fix common/ includes.
8895 * unittests/style-selftests.c: Fix common/ includes.
8896 * unittests/string_view-selftests.c: Fix common/ includes.
8897 * unittests/scoped_restore-selftests.c: Fix common/ includes.
8898 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
8899 * unittests/scoped_fd-selftests.c: Fix common/ includes.
8900 * unittests/rsp-low-selftests.c: Fix common/ includes.
8901 * unittests/parse-connection-spec-selftests.c: Fix common/
8903 * unittests/optional-selftests.c: Fix common/ includes.
8904 * unittests/offset-type-selftests.c: Fix common/ includes.
8905 * unittests/observable-selftests.c: Fix common/ includes.
8906 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
8907 * unittests/memrange-selftests.c: Fix common/ includes.
8908 * unittests/memory-map-selftests.c: Fix common/ includes.
8909 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
8910 * unittests/function-view-selftests.c: Fix common/ includes.
8911 * unittests/environ-selftests.c: Fix common/ includes.
8912 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
8913 * unittests/common-utils-selftests.c: Fix common/ includes.
8914 * unittests/cli-utils-selftests.c: Fix common/ includes.
8915 * unittests/array-view-selftests.c: Fix common/ includes.
8916 * ui-file.c: Fix common/ includes.
8917 * tui/tui-io.c: Fix common/ includes.
8918 * tracepoint.h: Fix common/ includes.
8919 * tracepoint.c: Fix common/ includes.
8920 * tracefile-tfile.c: Fix common/ includes.
8921 * top.h: Fix common/ includes.
8922 * top.c: Fix common/ includes.
8923 * thread.c: Fix common/ includes.
8924 * target/waitstatus.h: Fix common/ includes.
8925 * target/waitstatus.c: Fix common/ includes.
8926 * target.h: Fix common/ includes.
8927 * target.c: Fix common/ includes.
8928 * target-memory.c: Fix common/ includes.
8929 * target-descriptions.c: Fix common/ includes.
8930 * symtab.h: Fix common/ includes.
8931 * symfile.c: Fix common/ includes.
8932 * stap-probe.c: Fix common/ includes.
8933 * spu-linux-nat.c: Fix common/ includes.
8934 * sparc-nat.c: Fix common/ includes.
8935 * source.c: Fix common/ includes.
8936 * solib.c: Fix common/ includes.
8937 * solib-target.c: Fix common/ includes.
8938 * ser-unix.c: Fix common/ includes.
8939 * ser-tcp.c: Fix common/ includes.
8940 * ser-pipe.c: Fix common/ includes.
8941 * ser-base.c: Fix common/ includes.
8942 * selftest-arch.c: Fix common/ includes.
8943 * s12z-tdep.c: Fix common/ includes.
8944 * rust-exp.y: Fix common/ includes.
8945 * rs6000-aix-tdep.c: Fix common/ includes.
8946 * riscv-tdep.c: Fix common/ includes.
8947 * remote.c: Fix common/ includes.
8948 * remote-notif.h: Fix common/ includes.
8949 * remote-fileio.h: Fix common/ includes.
8950 * remote-fileio.c: Fix common/ includes.
8951 * regcache.h: Fix common/ includes.
8952 * regcache.c: Fix common/ includes.
8953 * record-btrace.c: Fix common/ includes.
8954 * python/python.c: Fix common/ includes.
8955 * python/py-type.c: Fix common/ includes.
8956 * python/py-inferior.c: Fix common/ includes.
8957 * progspace.h: Fix common/ includes.
8958 * producer.c: Fix common/ includes.
8959 * procfs.c: Fix common/ includes.
8960 * proc-api.c: Fix common/ includes.
8961 * printcmd.c: Fix common/ includes.
8962 * ppc-linux-nat.c: Fix common/ includes.
8963 * parser-defs.h: Fix common/ includes.
8964 * osdata.c: Fix common/ includes.
8965 * obsd-nat.c: Fix common/ includes.
8966 * nat/x86-linux.c: Fix common/ includes.
8967 * nat/x86-linux-dregs.c: Fix common/ includes.
8968 * nat/x86-dregs.h: Fix common/ includes.
8969 * nat/x86-dregs.c: Fix common/ includes.
8970 * nat/ppc-linux.c: Fix common/ includes.
8971 * nat/mips-linux-watch.h: Fix common/ includes.
8972 * nat/mips-linux-watch.c: Fix common/ includes.
8973 * nat/linux-waitpid.c: Fix common/ includes.
8974 * nat/linux-ptrace.h: Fix common/ includes.
8975 * nat/linux-ptrace.c: Fix common/ includes.
8976 * nat/linux-procfs.c: Fix common/ includes.
8977 * nat/linux-personality.c: Fix common/ includes.
8978 * nat/linux-osdata.c: Fix common/ includes.
8979 * nat/linux-namespaces.c: Fix common/ includes.
8980 * nat/linux-btrace.h: Fix common/ includes.
8981 * nat/linux-btrace.c: Fix common/ includes.
8982 * nat/fork-inferior.c: Fix common/ includes.
8983 * nat/amd64-linux-siginfo.c: Fix common/ includes.
8984 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
8985 * nat/aarch64-linux.c: Fix common/ includes.
8986 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
8987 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
8988 * namespace.h: Fix common/ includes.
8989 * mips-linux-tdep.c: Fix common/ includes.
8990 * minsyms.c: Fix common/ includes.
8991 * mi/mi-parse.h: Fix common/ includes.
8992 * mi/mi-main.c: Fix common/ includes.
8993 * mi/mi-cmd-env.c: Fix common/ includes.
8994 * memrange.h: Fix common/ includes.
8995 * memattr.c: Fix common/ includes.
8996 * maint.h: Fix common/ includes.
8997 * maint.c: Fix common/ includes.
8998 * main.c: Fix common/ includes.
8999 * machoread.c: Fix common/ includes.
9000 * location.c: Fix common/ includes.
9001 * linux-thread-db.c: Fix common/ includes.
9002 * linux-nat.c: Fix common/ includes.
9003 * linux-fork.c: Fix common/ includes.
9004 * inline-frame.c: Fix common/ includes.
9005 * infrun.c: Fix common/ includes.
9006 * inflow.c: Fix common/ includes.
9007 * inferior.h: Fix common/ includes.
9008 * inferior.c: Fix common/ includes.
9009 * infcmd.c: Fix common/ includes.
9010 * inf-ptrace.c: Fix common/ includes.
9011 * inf-child.c: Fix common/ includes.
9012 * ia64-linux-nat.c: Fix common/ includes.
9013 * i387-tdep.c: Fix common/ includes.
9014 * i386-tdep.c: Fix common/ includes.
9015 * i386-linux-tdep.c: Fix common/ includes.
9016 * i386-linux-nat.c: Fix common/ includes.
9017 * i386-go32-tdep.c: Fix common/ includes.
9018 * i386-fbsd-tdep.c: Fix common/ includes.
9019 * i386-fbsd-nat.c: Fix common/ includes.
9020 * guile/scm-type.c: Fix common/ includes.
9021 * guile/guile.c: Fix common/ includes.
9022 * go32-nat.c: Fix common/ includes.
9023 * gnu-nat.c: Fix common/ includes.
9024 * gdbthread.h: Fix common/ includes.
9025 * gdbarch-selftests.c: Fix common/ includes.
9026 * gdb_usleep.c: Fix common/ includes.
9027 * gdb_select.h: Fix common/ includes.
9028 * gdb_bfd.c: Fix common/ includes.
9029 * gcore.c: Fix common/ includes.
9030 * fork-child.c: Fix common/ includes.
9031 * findvar.c: Fix common/ includes.
9032 * fbsd-nat.c: Fix common/ includes.
9033 * event-top.c: Fix common/ includes.
9034 * event-loop.c: Fix common/ includes.
9035 * dwarf2read.c: Fix common/ includes.
9036 * dwarf2loc.c: Fix common/ includes.
9037 * dwarf2-frame.c: Fix common/ includes.
9038 * dwarf-index-cache.c: Fix common/ includes.
9039 * dtrace-probe.c: Fix common/ includes.
9040 * disasm-selftests.c: Fix common/ includes.
9041 * defs.h: Fix common/ includes.
9042 * csky-tdep.c: Fix common/ includes.
9043 * cp-valprint.c: Fix common/ includes.
9044 * cp-support.h: Fix common/ includes.
9045 * cp-support.c: Fix common/ includes.
9046 * corelow.c: Fix common/ includes.
9047 * completer.h: Fix common/ includes.
9048 * completer.c: Fix common/ includes.
9049 * compile/compile.c: Fix common/ includes.
9050 * compile/compile-loc2c.c: Fix common/ includes.
9051 * compile/compile-cplus-types.c: Fix common/ includes.
9052 * compile/compile-cplus-symbols.c: Fix common/ includes.
9053 * command.h: Fix common/ includes.
9054 * cli/cli-dump.c: Fix common/ includes.
9055 * cli/cli-cmds.c: Fix common/ includes.
9056 * charset.c: Fix common/ includes.
9057 * build-id.c: Fix common/ includes.
9058 * btrace.h: Fix common/ includes.
9059 * btrace.c: Fix common/ includes.
9060 * breakpoint.h: Fix common/ includes.
9061 * breakpoint.c: Fix common/ includes.
9063 (enum agent_op): Fix common/ includes.
9064 * ax-general.c (struct aop_map): Fix common/ includes.
9065 * ax-gdb.c: Fix common/ includes.
9066 * auxv.c: Fix common/ includes.
9067 * auto-load.c: Fix common/ includes.
9068 * arm-tdep.c: Fix common/ includes.
9069 * arch/riscv.c: Fix common/ includes.
9070 * arch/ppc-linux-common.c: Fix common/ includes.
9071 * arch/i386.c: Fix common/ includes.
9072 * arch/arm.c: Fix common/ includes.
9073 * arch/arm-linux.c: Fix common/ includes.
9074 * arch/arm-get-next-pcs.c: Fix common/ includes.
9075 * arch/amd64.c: Fix common/ includes.
9076 * arch/aarch64.c: Fix common/ includes.
9077 * arch/aarch64-insn.c: Fix common/ includes.
9078 * arch-utils.c: Fix common/ includes.
9079 * amd64-windows-tdep.c: Fix common/ includes.
9080 * amd64-tdep.c: Fix common/ includes.
9081 * amd64-sol2-tdep.c: Fix common/ includes.
9082 * amd64-obsd-tdep.c: Fix common/ includes.
9083 * amd64-nbsd-tdep.c: Fix common/ includes.
9084 * amd64-linux-tdep.c: Fix common/ includes.
9085 * amd64-linux-nat.c: Fix common/ includes.
9086 * amd64-fbsd-tdep.c: Fix common/ includes.
9087 * amd64-fbsd-nat.c: Fix common/ includes.
9088 * amd64-dicos-tdep.c: Fix common/ includes.
9089 * amd64-darwin-tdep.c: Fix common/ includes.
9090 * agent.c: Fix common/ includes.
9091 * ada-lang.h: Fix common/ includes.
9092 * ada-lang.c: Fix common/ includes.
9093 * aarch64-tdep.c: Fix common/ includes.
9095 2019-01-25 Tom Tromey <tom@tromey.com>
9097 * common/create-version.sh: Use common/version.h.
9099 2019-01-24 Pedro Alves <palves@redhat.com>
9101 * infrun.c (signal_stop, signal_print, signal_program)
9102 (signal_catch, signal_pass): Now arrays instead of pointers.
9103 (update_signals_program_target, do_target_resume)
9104 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9105 * linux-nat.c (linux_nat_target::pass_signals)
9106 (linux_nat_target::create_inferior, linux_nat_target::attach):
9108 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9109 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9110 * procfs.c (procfs_target::pass_signals): Adjust.
9111 * record-full.c (record_full_target::resume): Adjust.
9112 * remote.c (remote_target::pass_signals)
9113 (remote_target::program_signals): Adjust.
9114 * target-debug.h (target_debug_print_signals): Now takes a
9115 gdb::array_view as parameter. Adjust.
9116 * target.h (target_ops) <pass_signals, program_signals>: Replace
9117 pointer and length parameters with gdb::array_view.
9118 (target_pass_signals, target_program_signals): Likewise.
9119 * target-delegates.c: Regenerate.
9121 2019-01-24 Pedro Alves <palves@redhat.com>
9123 * common/forward-scope-exit.h
9124 (forward_scope_exit::forward_scope_exit): Pass arguments to
9125 m_bind_function directly, instead of creating a std::bind and
9128 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9130 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9132 (pass_in_v_vfp_candidate): Likewise.
9134 2019-01-23 Tom Tromey <tom@tromey.com>
9135 Pedro Alves <palves@redhat.com>
9137 * regcache.c (class regcache_invalidator): Remove.
9138 (regcache::raw_write): Use make_scope_exit.
9140 2019-01-23 Tom Tromey <tom@tromey.com>
9142 * ui-out.h (class ui_out_emit_type): Update comment.
9144 2019-01-23 Tom Tromey <tom@tromey.com>
9146 * infrun.c (fetch_inferior_event): Update comment.
9148 2019-01-23 Tom Tromey <tom@tromey.com>
9149 Pedro Alves <palves@redhat.com>
9151 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9153 (fetch_inferior_event): Use SCOPE_EXIT.
9156 2019-01-23 Tom Tromey <tom@tromey.com>
9157 Pedro Alves <palves@redhat.com>
9159 * infrun.c (disable_thread_events): Delete.
9160 (stop_all_threads): Use SCOPE_EXIT.
9162 2019-01-23 Tom Tromey <tom@tromey.com>
9163 Pedro Alves <palves@redhat.com>
9165 * symfile.c: Include forward-scope-exit.h.
9166 (clear_symtab_users_cleanup): Replace forward declaration with
9167 a FORWARD_SCOPE_EXIT.
9168 (syms_from_objfile_1): Use the forward_scope_exit and
9169 gdb::optional instead of cleanup_function.
9170 (reread_symbols): Use the forward_scope_exit instead of
9172 (clear_symtab_users_cleanup): Remove function.
9174 2019-01-23 Tom Tromey <tom@tromey.com>
9175 Pedro Alves <palves@redhat.com>
9177 * linux-nat.c: Include scope-exit.h.
9178 (cleanup_target_stop): Remove.
9179 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9182 2019-01-23 Tom Tromey <tom@tromey.com>
9183 Pedro Alves <palves@redhat.com>
9185 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9186 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9188 2019-01-23 Tom Tromey <tom@tromey.com>
9189 Andrew Burgess <andrew.burgess@embecosm.com>
9190 Pedro Alves <palves@redhat.com>
9192 * infrun.c (fetch_inferior_event): Use scope_exit.
9193 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9194 * top.c (execute_command): Use scope_exit.
9195 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9196 * utils.c (do_bpstat_clear_actions_cleanup)
9197 (make_bpstat_clear_actions_cleanup): Remove.
9199 2019-01-23 Tom Tromey <tom@tromey.com>
9200 Pedro Alves <palves@redhat.com>
9202 * infrun.c: Include "common/scope-exit.h"
9203 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9204 (wait_for_inferior): Use SCOPE_EXIT.
9205 (fetch_inferior_event): Use scope_exit.
9207 2019-01-23 Tom Tromey <tom@tromey.com>
9208 Pedro Alves <palves@redhat.com>
9210 * breakpoint.c (create_breakpoint): Remove cleanup.
9212 2019-01-23 Tom Tromey <tom@tromey.com>
9213 Andrew Burgess <andrew.burgess@embecosm.com>
9214 Pedro Alves <palves@redhat.com>
9216 2019-01-23 Pedro Alves <palves@redhat.com>
9218 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9220 2019-01-23 Pedro Alves <palves@redhat.com>
9221 Andrew Burgess <andrew.burgess@embecosm.com>
9223 * gdbthread.h: Include "common/forward-scope-exit.h".
9224 (scoped_finish_thread_state): Redefine custom class in terms of
9227 2019-01-23 Pedro Alves <palves@redhat.com>
9228 Andrew Burgess <andrew.burgess@embecosm.com>
9230 * common/forward-scope-exit.h: New file.
9232 2019-01-23 Pedro Alves <palves@redhat.com>
9233 Andrew Burgess <andrew.burgess@embecosm.com>
9234 Tom Tromey <tom@tromey.com>
9236 * common/scope-exit.h: New file.
9238 2019-01-23 Pedro Alves <palves@redhat.com>
9240 * common/preprocessor.h (ESC): Rename to ...
9241 (ESC_PARENS): ... this.
9242 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9243 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9245 2019-01-23 Tom Tromey <tom@tromey.com>
9247 * language.h (class scoped_switch_to_sym_language_if_auto):
9248 Initialize m_lang in both cases.
9250 2019-01-23 Alan Hayward <alan.hayward@arm.com>
9252 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9255 2019-01-22 Tom Tromey <tom@tromey.com>
9257 * corelow.c: Do not include sys/file.h.
9259 2019-01-22 Tom Tromey <tom@tromey.com>
9261 * tui/tui-wingeneral.h: Include gdb_curses.h.
9263 2019-01-22 Tom Tromey <tom@tromey.com>
9265 * source-cache.h (class source_cache) <get_source_lines,
9266 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9268 2019-01-22 Tom Tromey <tom@tromey.com>
9270 * remote-fileio.h (struct remote_target): Declare.
9272 2019-01-22 Tom Tromey <tom@tromey.com>
9274 * python/py-arch.c: Do not include py-ref.h.
9275 * python/py-bpevent.c: Do not include py-ref.h.
9276 * python/py-cmd.c: Do not include py-ref.h.
9277 * python/py-continueevent.c: Do not include py-ref.h.
9278 * python/py-event.h: Do not include py-ref.h.
9279 * python/py-evtregistry.c: Do not include py-ref.h.
9280 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9281 * python/py-frame.c: Do not include py-ref.h.
9282 * python/py-framefilter.c: Do not include py-ref.h.
9283 * python/py-function.c: Do not include py-ref.h.
9284 * python/py-infevents.c: Do not include py-ref.h.
9285 * python/py-linetable.c: Do not include py-ref.h.
9286 * python/py-objfile.c: Do not include py-ref.h.
9287 * python/py-param.c: Do not include py-ref.h.
9288 * python/py-prettyprint.c: Do not include py-ref.h.
9289 * python/py-progspace.c: Do not include py-ref.h.
9290 * python/py-symbol.c: Do not include py-ref.h.
9291 * python/py-symtab.c: Do not include py-ref.h.
9292 * python/py-type.c: Do not include py-ref.h.
9293 * python/py-unwind.c: Do not include py-ref.h.
9294 * python/py-utils.c: Do not include py-ref.h.
9295 * python/py-value.c: Do not include py-ref.h.
9296 * python/py-varobj.c: Do not include py-ref.h.
9297 * python/py-xmethods.c: Do not include py-ref.h.
9298 * python/python.c: Do not include py-ref.h.
9299 * varobj.c: Do not include py-ref.h.
9301 2019-01-22 Tom Tromey <tom@tromey.com>
9303 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9306 2019-01-22 Tom Tromey <tom@tromey.com>
9308 * compile/compile-cplus-types.c: Remove a comment by #include.
9310 2019-01-22 Tom Tromey <tom@tromey.com>
9312 * compile/gcc-c-plugin.h: Include compile-internal.h.
9314 2019-01-22 Tom Tromey <tom@tromey.com>
9316 * stabsread.c (EXTERN): Do not define.
9317 (symnum, next_symbol_text_func, processing_gcc_compilation)
9318 (within_function, global_sym_chain, global_stabs)
9319 (previous_stab_code, this_object_header_files)
9320 (n_this_object_header_files)
9321 (n_allocated_this_object_header_files): Define.
9322 * stabsread.h (EXTERN): Never define. Use "extern".
9324 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9326 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9329 2019-01-21 Tom Tromey <tom@tromey.com>
9331 * ui-out.c: Fix includes.
9332 * tui/tui-source.c: Fix includes.
9333 * target.c: Fix includes.
9334 * remote.c: Fix includes.
9335 * regcache.c: Fix includes.
9336 * python/py-block.c: Fix includes.
9337 * printcmd.c: Fix includes.
9338 * or1k-tdep.c: Fix includes.
9339 * mi/mi-main.c: Fix includes.
9340 * m32r-tdep.c: Fix includes.
9341 * csky-tdep.c: Fix includes.
9342 * compile/compile-cplus-types.c: Fix includes.
9343 * cli/cli-interp.c: Fix includes.
9345 2019-01-21 Alan Hayward <alan.hayward@arm.com>
9347 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9350 2019-01-16 Tom Tromey <tom@tromey.com>
9352 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9354 (struct objfile) <msymbols_range>: Move from top level.
9355 <msymbols>: New method.
9356 (class objfile_msymbols): Remove.
9357 * symtab.c (default_collect_symbol_completion_matches_break_on):
9359 * symmisc.c (dump_msymbols): Update.
9360 * stabsread.c (scan_file_globals): Update.
9361 * objc-lang.c (info_selectors_command, info_classes_command)
9362 (find_methods): Update.
9363 * minsyms.c (find_solib_trampoline_target): Update.
9364 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9365 * coffread.c (coff_symfile_read): Update.
9366 * ada-lang.c (ada_lookup_simple_minsym)
9367 (ada_collect_symbol_completion_matches): Update.
9369 2019-01-16 Tom Tromey <tom@tromey.com>
9371 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9372 type. Remove no-argument constructor.
9373 <iterator::operator++>: Simplify.
9375 <end>: Use minimal_symbol_count.
9377 2019-01-16 Tom Tromey <tom@tromey.com>
9379 * objfiles.h (struct objfile) <psymtabs>: New method.
9380 (class objfile_psymtabs): Remove.
9381 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9383 <range>: New method.
9384 (require_partial_symbols): Change return type.
9385 * psymtab.c (require_partial_symbols)
9386 (psym_expand_symtabs_matching): Update.
9387 * mdebugread.c (parse_partial_symbols): Update.
9388 * dbxread.c (dbx_end_psymtab): Update.
9390 2019-01-15 Tom Tromey <tom@tromey.com>
9392 * symtab.c (lookup_objfile_from_block)
9393 (lookup_symbol_in_objfile_symtabs)
9394 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
9395 (find_line_symtab, info_sources_command)
9396 (default_collect_symbol_completion_matches_break_on)
9397 (make_source_files_completion_list): Update.
9398 * symmisc.c (print_objfile_statistics, dump_objfile)
9399 (maintenance_print_symbols, maintenance_info_symtabs)
9400 (maintenance_check_symtabs, maintenance_info_line_tables):
9402 * source.c (select_source_symtab)
9403 (forget_cached_source_info_for_objfile): Update.
9404 * objfiles.h (class objfile_compunits): Remove.
9405 (struct objfile) <compunits_range>: New typedef.
9406 (compunits): New method.
9407 * objfiles.c (objfile_relocate1): Update.
9408 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9409 * maint.c (count_symtabs_and_blocks): Update.
9410 * linespec.c (iterate_over_all_matching_symtabs): Update.
9411 * cp-support.c (add_symbol_overload_list_qualified): Update.
9412 * coffread.c (coff_symtab_read): Update.
9413 * ada-lang.c (add_nonlocal_symbols)
9414 (ada_collect_symbol_completion_matches)
9415 (ada_add_global_exceptions): Update.
9417 2019-01-15 Tom Tromey <tom@tromey.com>
9419 * progspace.h (program_space) <objfiles_safe_range>: New
9421 <objfiles_safe>: New method.
9422 * objfiles.h (class all_objfiles_safe): Remove.
9423 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
9424 * jit.c (jit_inferior_exit_hook): Update.
9426 2019-01-17 Tom Tromey <tom@tromey.com>
9428 * progspace.h (program_space) <objfiles_range>: New typedef.
9429 <objfiles>: New method.
9430 <objfiles_head>: Rename from objfiles.
9431 (object_files): Update.
9432 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
9433 * guile/scm-pretty-print.c
9434 (ppscm_find_pretty_printer_from_objfiles): Update.
9435 * guile/scm-objfile.c (gdbscm_objfiles): Update.
9436 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
9438 * python/py-progspace.c (pspy_get_objfiles): Update.
9439 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
9441 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
9442 (objfpy_lookup_objfile_by_build_id): Update.
9443 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9444 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
9446 * symtab.c (iterate_over_symtabs, matching_obj_sections)
9447 (expand_symtab_containing_pc, lookup_objfile_from_block)
9448 (lookup_static_symbol, basic_lookup_transparent_type)
9449 (find_pc_sect_compunit_symtab, find_symbol_at_address)
9450 (find_line_symtab, info_sources_command)
9451 (default_collect_symbol_completion_matches_break_on)
9452 (make_source_files_completion_list, find_main_name): Update.
9453 * symmisc.c (print_symbol_bcache_statistics)
9454 (print_objfile_statistics, maintenance_print_symbols)
9455 (maintenance_print_msymbols, maintenance_print_objfiles)
9456 (maintenance_info_symtabs, maintenance_check_symtabs)
9457 (maintenance_expand_symtabs, maintenance_info_line_tables):
9459 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
9460 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
9461 (map_overlay_command, unmap_overlay_command)
9462 (simple_overlay_update, expand_symtabs_matching)
9463 (map_symbol_filenames): Update.
9464 * symfile-debug.c (set_debug_symfile): Update.
9465 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
9467 * source.c (select_source_symtab, forget_cached_source_info):
9469 * solib.c (solib_read_symbols): Update.
9470 * solib-spu.c (append_ocl_sos): Update.
9471 * psymtab.c (maintenance_print_psymbols)
9472 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
9473 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
9474 * printcmd.c (info_symbol_command): Update.
9475 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
9477 * objfiles.h (class all_objfiles): Remove.
9478 * objfiles.c (have_partial_symbols, have_full_symbols)
9479 (have_minimal_symbols, qsort_cmp, update_section_map)
9480 (shared_objfile_contains_address_p)
9481 (default_iterate_over_objfiles_in_search_order): Update.
9482 * objc-lang.c (info_selectors_command, info_classes_command)
9483 (find_methods): Update.
9484 * minsyms.c (find_solib_trampoline_target): Update.
9485 * maint.c (maintenance_info_sections)
9486 (maintenance_translate_address, count_symtabs_and_blocks):
9488 * main.c (captured_main_1): Update.
9489 * linux-thread-db.c (try_thread_db_load_from_pdir)
9490 (has_libpthread): Update.
9491 * linespec.c (iterate_over_all_matching_symtabs)
9492 (search_minsyms_for_name): Update.
9493 * jit.c (jit_find_objf_with_entry_addr): Update.
9494 * hppa-tdep.c (find_unwind_entry)
9495 (hppa_lookup_stub_minimal_symbol): Update.
9496 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
9498 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
9499 (elf_gnu_ifunc_resolve_by_got): Update.
9500 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
9501 * dwarf-index-write.c (save_gdb_index_command): Update.
9502 * cp-support.c (add_symbol_overload_list_qualified): Update.
9503 * breakpoint.c (create_overlay_event_breakpoint)
9504 (create_longjmp_master_breakpoint)
9505 (create_std_terminate_master_breakpoint)
9506 (create_exception_master_breakpoint): Update.
9507 * blockframe.c (find_pc_partial_function): Update.
9508 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
9509 (ada_collect_symbol_completion_matches)
9510 (ada_add_global_exceptions): Update.
9512 2019-01-17 Tom Tromey <tom@tromey.com>
9514 * solib-target.c (lm_info_target_p): Remove typedef. Don't
9516 (solib_target_parse_libraries): Change return type.
9517 (library_list_start_segment, library_list_start_section)
9518 (library_list_end_library, library_list_start_library); Update.
9519 (solib_target_free_library_list): Remove.
9520 (solib_target_parse_libraries): Remove cleanup. Change return
9522 (solib_target_current_sos): Update.
9524 2019-01-17 Tom Tromey <tromey@bapiya>
9526 * valprint.c: Replace "the the" with "the".
9527 * symtab.c: Replace "the the" with "the".
9528 * solib.c: Replace "the the" with "the".
9529 * solib-dsbt.c: Replace "the the" with "the".
9530 * linespec.c: Replace "the the" with "the".
9531 * dwarf2loc.h: Replace "the the" with "the".
9532 * amd64-windows-tdep.c: Replace "the the" with "the".
9533 * aarch64-tdep.c: Replace "the the" with "the".
9535 2019-01-16 Keith Seitz <keiths@redhat.com>
9538 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
9539 <builder>: Rename to ..
9540 <m_builder>: ... this and make private.
9541 (dwarf2_cu::get_builder): New method. Change all users of
9542 `builder' to use this method.
9543 (dwarf2_start_symtab): Move to ...
9544 (dwarf2_cu::start_symtab): ... here. Update all callers
9545 (setup_type_unit_groups): Move to ...
9546 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
9548 (dwarf2_cu::reset_builder): New method.
9549 (process_full_compunit, process_full_type_unit): Use
9550 dwarf2_cu::reset_builder.
9551 (follow_die_offset): Record the ancestor CU if it is different
9552 from the followed DIE's CU.
9553 (follow_die_sig_1): Likewise.
9555 2019-01-15 Tom Tromey <tom@tromey.com>
9557 * remote.c (class remote_state) <buf>: Now a char_vector.
9559 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
9561 (remote_target::getpkt_or_notif_sane_1)
9562 (remote_target::getpkt_sane)
9563 (remote_target::getpkt_or_notif_sane): Likewise.
9564 (class remote_target) <putpkt>: New overload.
9565 (remote_target::read_frame): Change type of "buf_p". Remove
9567 (packet_ok): New overload.
9568 (packet_check_result): New overload.
9571 2019-01-14 Tom Tromey <tom@tromey.com>
9573 * remote-notif.c (handle_notification, remote_notif_ack)
9574 (remote_notif_parse): Make "buf" const.
9575 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
9577 (remote_notif_parse, remote_notif_ack, handle_notification):
9579 * remote.c (remote_notif_stop_parse): Make "buf" const.
9580 (remote_target::remote_parse_stop_reply): Make "buf" const.
9581 (remote_notif_stop_ack): Make "buf" const.
9583 2019-01-14 Tom Tromey <tom@tromey.com>
9585 * remote.c (remote_console_output): Make parameter const.
9587 2019-01-14 Tom Tromey <tom@tromey.com>
9589 * target-debug.h (target_debug_print_signals): Constify.
9590 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
9591 * procfs.c (procfs_target::pass_signals): Update.
9592 * linux-nat.c (linux_nat_target::pass_signals): Update.
9593 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
9594 * target-delegates.c: Rebuild.
9595 * remote.c (remote_target::program_signals): Update.
9596 (remote_target::pass_signals): Update.
9597 * target.c (target_pass_signals): Constify argument.
9598 (target_program_signals): Likewise.
9599 * target.h (struct target_ops) <pass_signals, program_signals>:
9601 (target_pass_signals, target_program_signals): Constify argument.
9603 2019-01-14 Tom Tromey <tom@tromey.com>
9606 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
9608 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9610 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
9612 * rs6000-tdep.c: Include reggroups.h.
9613 (IS_V_ALIAS_PSEUDOREG): Define.
9614 (rs6000_register_name): Return names for the "vX" aliases.
9615 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
9616 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
9617 aliases. Call default_register_reggroup_p for all other
9619 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
9621 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
9622 Handle "vX" aliases.
9623 (v_alias_pseudo_register_collect): New function.
9624 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
9625 (rs6000_gdbarch_init): Initialize "vX" aliases as
9626 pseudo-registers. Restore registration of
9627 rs6000_pseudo_register_reggroup_p with
9628 set_tdesc_pseudo_register_reggroup_p.
9630 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
9632 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
9633 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
9634 set_gdbarch_num_pseudo_regs.
9636 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9638 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
9639 Remove arg prefixname, add do_set and do_show.
9640 Add member functions set_list and show_list.
9641 * cli/cli-style.c (class cli_style_option): Update accordingly.
9642 (style_set_list): Move to file scope.
9643 (style_show_list): Likewise.
9644 (set_style): Call help_list.
9645 (show_style): Call cmd_show_list.
9646 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
9647 Update to use the new macro.
9649 2019-10-12 Joel Brobecker <brobecker@adacore.com>
9651 * ada-lang.c (_initialize_ada_language): Expand the help text
9652 for the "catch exception" command.
9654 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9656 * symtab.c (matching_obj_sections): Initialize obj,
9657 declare it closer to its usage.
9659 2019-01-10 Tom Tromey <tom@tromey.com>
9661 * thread-iter.h (inf_threads_iterator): Use next_iterator.
9662 (basic_inf_threads_range): Remove.
9663 (inf_threads_range, inf_non_exited_threads_range)
9664 (safe_inf_threads_range): Use next_adapter.
9666 2019-01-10 Keith Seitz <keiths@redhat.com>
9670 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
9671 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
9673 2019-01-10 Keith Seitz <keiths@redhat.com>
9677 * dictionary.c (pending_to_vector): Remove.
9678 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
9679 Remove _1 suffix, replacing functions of the same name. Update
9681 (dict_create_hashed, dict_create_hashed_expandable)
9682 (dict_create_linear, dict_create_linear_expandable, dict_free)
9683 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
9684 Make functions static.
9686 2019-01-10 Keith Seitz <keiths@redhat.com>
9690 * dictionary.h (struct dictionary): Replace declaration with
9692 (dict_create_hashed, dict_create_hashed_expandable)
9693 (dict_create_linear, dict_create_linear_expandable)
9694 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
9695 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
9696 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
9697 taking multidictionary argument.
9698 [ALL_DICT_SYMBOLS]: Update for multidictionary.
9699 * block.h (struct block) <dict>: Change to multidictionary
9700 and rename `multidict'.
9701 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
9702 symmisc.c: Update all dictionary references to multidictionary.
9704 2019-01-10 Keith Seitz <keiths@redhat.com>
9708 * dictionary.c: Include unordered_map.
9709 (pending_to_vector): New function.
9710 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
9711 Rewrite the non-"_1" functions to take vector instead
9713 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
9714 "new" _1 versions of the same name.
9715 (multidictionary): Define.
9716 (std::hash<enum language): New definition.
9717 (collate_pending_symbols_by_language, mdict_create_hashed)
9718 (mdict_create_hashed_expandable, mdict_create_linear)
9719 (mdict_create_linear_expandable, mdict_free)
9720 (find_language_dictionary, create_new_language_dictionary)
9721 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
9722 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
9723 (mdict_size, mdict_empty): New functions.
9724 * dictionary.h (mdict_iterator): Define.
9726 2019-01-10 Pedro Alves <palves@redhat.com>
9728 * breakpoint.c (read_uploaded_action)
9729 (create_tracepoint_from_upload): Adjust to use
9730 gdb::unique_xmalloc_ptr.
9731 * ctf.c (ctf_write_uploaded_tp):
9732 (SET_ARRAY_FIELD): Use emplace_back.
9733 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
9734 * tracefile-tfile.c (tfile_write_uploaded_tp):
9735 * tracepoint.c (parse_tracepoint_definition): Adjust to use
9736 gdb::unique_xmalloc_ptr.
9737 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
9738 at_string, cond_string, cmd_strings>: Replace char pointers
9739 with gdb::unique_xmalloc_ptr.
9741 2019-01-10 Pedro Alves <palves@redhat.com>
9743 * solib-target.c (library_list_start_library): Don't xstrdup name.
9745 2019-01-10 Pedro Alves <palves@redhat.com>
9747 * mdebugread.c (parse_partial_symbols): Use
9748 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
9750 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
9752 * linux-fork.c (scoped_switch_fork_info)
9753 <~scoped_switch_fork_info>: Fix incorrect variable name.
9755 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
9757 * linux-fork.c (scoped_switch_fork_info)
9758 <scoped_switch_fork_info>: Make explicit.
9759 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
9761 2019-01-10 Tom Tromey <tom@tromey.com>
9763 * objfiles.h (objfile::reset_psymtabs): Update.
9764 * objfiles.c (objfile::objfile): Update.
9765 * psymtab.h (psymtab_storage::obstack): Update.
9766 (psymtab_storage::m_obstack): Use gdb::optional.
9767 (class psymtab_storage): Update comment. Remove objfile
9769 * psymtab.c (psymtab_storage::psymtab_storage): Update.
9771 2019-01-10 Tom Tromey <tom@tromey.com>
9773 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
9774 <free_psymtabs>: Now private.
9775 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
9776 (allocate_psymtab): Use new method.
9778 2019-01-10 Tom Tromey <tom@tromey.com>
9780 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
9781 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
9782 * mdebugread.c (parse_partial_symbols): Use
9783 allocate_dependencies.
9784 * dwarf2read.c (dwarf2_create_include_psymtab): Use
9785 allocate_dependencies.
9786 (process_psymtab_comp_unit_reader)
9787 (build_type_psymtab_dependencies): Likewise.
9788 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
9790 2019-01-10 Tom Tromey <tom@tromey.com>
9792 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
9793 PSYMBOL_SET_LANGUAGE.
9794 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
9796 2019-01-10 Tom Tromey <tom@tromey.com>
9798 * psymtab.h (psymtab_storage::obstack): New method.
9799 <m_obstack>: Rename from obstack; now private.
9800 * psymtab.c (psymtab_storage): Update.
9801 * dwarf2read.c (create_addrmap_from_index)
9802 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
9805 2019-01-10 Tom Tromey <tom@tromey.com>
9807 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
9808 * objfiles.h (objfile::reset_psymtabs): New method.
9810 2019-01-10 Tom Tromey <tom@tromey.com>
9812 * symmisc.c (print_symbol_bcache_statistics): Update.
9813 (print_objfile_statistics): Update.
9814 * symfile.c (reread_symbols): Update.
9815 * psymtab.h (class psymtab_storage): New.
9816 * psymtab.c (psymtab_storage): New constructor.
9817 (~psymtab_storage): New destructor.
9818 (require_partial_symbols): Update.
9819 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
9820 (find_pc_sect_psymtab, find_pc_sect_psymbol)
9821 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
9822 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
9823 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
9824 (start_psymtab_common, end_psymtab_common)
9825 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
9826 (allocate_psymtab): Update.
9827 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
9829 (dump_psymtab_addrmap, maintenance_print_psymbols)
9830 (maintenance_check_psymtabs): Update.
9831 (class objfile_psymtabs): Move to objfiles.h.
9832 * psympriv.h (discard_psymtab): Now inline.
9833 (psymtab_discarder::psymtab_discarder): Update.
9834 (psymtab_discarder::~psymtab_discarder): Update.
9835 (ALL_OBJFILE_PSYMTABS): Rewrite.
9836 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
9837 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
9839 <partial_symtabs>: New field.
9840 (class objfile_psymtabs): Move from psymtab.h. Update.
9841 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
9843 (objfile::~objfile): Don't destroy psymbol_cache.
9844 * mdebugread.c (parse_partial_symbols): Update.
9845 * dwarf2read.c (create_addrmap_from_index)
9846 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9847 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
9848 (add_partial_subprogram, dwarf2_ranges_read): Update.
9849 * dwarf-index-write.c (write_address_map)
9850 (write_one_signatured_type, recursively_write_psymbols)
9851 (class debug_names, class debug_names, write_psymtabs_to_index):
9854 2019-01-10 Tom Tromey <tom@tromey.com>
9856 * symtab.h (SYMBOL_SET_NAMES): Update.
9857 (symbol_set_names): Update.
9858 (MSYMBOL_SET_NAMES): Update.
9859 * symtab.c (symbol_set_names): Change argument to be an
9860 objfile_per_bfd_storage.
9861 * psymtab.c (add_psymbol_to_bcache): Update.
9862 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
9864 2019-01-10 Tom Tromey <tom@tromey.com>
9866 * symtab.c (create_demangled_names_hash): Change argument to be an
9867 objfile_per_bfd_storage.
9868 (symbol_set_names): Update.
9870 2019-01-10 Tom Tromey <tom@tromey.com>
9872 * xcoffread.c (xcoff_initial_scan): Unconditionally call
9874 * psymtab.c (init_psymbol_list): Do nothing if already called.
9875 * psympriv.h (init_psymbol_list): Add comment.
9876 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
9878 * dbxread.c (dbx_symfile_read): Unconditionally call
9881 2019-01-10 Tom Tromey <tom@tromey.com>
9883 * xcoffread.c (scan_xcoff_symtab): Update.
9884 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
9886 * mdebugread.c (parse_partial_symbols)
9887 (handle_psymbol_enumerators): Update.
9888 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
9889 * dbxread.c (read_dbx_symtab): Update.
9890 * psympriv.h (psymbol_placement): New enum.
9891 (add_psymbol_to_list): Update.
9893 2019-01-10 Tom Tromey <tom@tromey.com>
9895 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
9896 static_psymbols parameters.
9897 (scan_xcoff_symtab): Update.
9898 * psymtab.c (start_psymtab_common): Remove global_psymbols and
9899 static_psymbols parameters.
9900 * psympriv.h (start_psymtab_common): Update.
9901 * mdebugread.c (parse_partial_symbols): Update.
9902 * dwarf2read.c (create_partial_symtab): Update.
9903 * dbxread.c (read_dbx_symtab): Update.
9904 (start_psymtab): Remove global_psymbols and static_psymbols
9907 2019-01-10 Tom Tromey <tom@tromey.com>
9909 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
9910 * psymtab.c (allocate_psymtab): Add comment.
9911 * psympriv.h (allocate_psymtab): Add comment.
9912 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
9914 * dbxread.c (dbx_end_psymtab): Remove some initializations.
9916 2019-01-10 Tom Tromey <tom@tromey.com>
9918 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
9920 * mipsread.c: Include mdebugread.h.
9921 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
9923 * elfread.c: Include mdebugread.h.
9925 2019-01-09 Tom Tromey <tom@tromey.com>
9927 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
9928 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
9929 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
9930 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
9931 (psym_lookup_symbol, psym_find_last_source_symtab)
9932 (psym_forget_cached_source_info, psym_print_stats)
9933 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
9934 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
9935 (psym_map_matching_symbols, psym_expand_symtabs_matching)
9936 (psym_find_compunit_symtab_by_address)
9937 (maintenance_print_psymbols, maintenance_info_psymtabs)
9938 (maintenance_check_psymtabs): Use ranged for.
9939 * psymtab.h (class objfile_psymtabs): New.
9940 (require_partial_symbols): Return objfile_psymtabs.
9941 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
9943 2019-01-09 Tom Tromey <tom@tromey.com>
9945 * symfile.c (overlay_invalidate_all, find_pc_overlay)
9946 (find_pc_mapped_section, list_overlays_command)
9947 (map_overlay_command, unmap_overlay_command)
9948 (simple_overlay_update): Use all_objfiles.
9949 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
9950 * printcmd.c (info_symbol_command): Use all_objfiles.
9951 * objfiles.h (ALL_OBJSECTIONS): Remove.
9952 * maint.c (maintenance_translate_address): Use all_objfiles.
9953 * gcore.c (gcore_create_callback): Use all_objfiles.
9954 (objfile_find_memory_regions): Likewise.
9956 2019-01-09 Tom Tromey <tom@tromey.com>
9958 * symtab.c (find_line_symtab, info_sources_command)
9959 (make_source_files_completion_list): Use objfile_compunits.
9960 * source.c (select_source_symtab): Use objfile_compunits.
9961 * objfiles.h (struct objfile): Update comment.
9962 (ALL_OBJFILES): Remove.
9963 (ALL_FILETABS): Remove.
9964 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
9967 2019-01-09 Tom Tromey <tom@tromey.com>
9969 * symmisc.c (print_objfile_statistics, dump_objfile)
9970 (maintenance_print_symbols): Use compunit_filetabs.
9971 * source.c (forget_cached_source_info_for_objfile): Use
9973 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
9974 (ALL_FILETABS): Use compunit_filetabs.
9975 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
9976 * coffread.c (coff_symtab_read): Use compunit_filetabs.
9978 2019-01-09 Tom Tromey <tom@tromey.com>
9980 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
9981 (compunit_filetabs): New.
9982 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
9984 (info_sources_command, make_source_files_completion_list): Remove
9986 * symmisc.c (print_objfile_statistics, dump_objfile)
9987 (maintenance_print_symbols): Remove declaration.
9988 (maintenance_info_symtabs): Use compunit_filetabs.
9989 (maintenance_info_line_tables): Likewise.
9990 * source.c (select_source_symtab): Change local variable name.
9991 (forget_cached_source_info_for_objfile): Remove declaration.
9992 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
9993 * objfiles.c (objfile_relocate1): Remove declaration.
9994 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
9996 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
9997 * coffread.c (coff_symtab_read): Remove declaration.
9998 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10001 2019-01-09 Tom Tromey <tom@tromey.com>
10003 * symtab.c (lookup_objfile_from_block)
10004 (find_pc_sect_compunit_symtab, search_symbols)
10005 (default_collect_symbol_completion_matches_break_on): Use
10007 * objfiles.h (ALL_COMPUNITS): Remove.
10008 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10009 * cp-support.c (add_symbol_overload_list_qualified): Use
10011 * ada-lang.c (ada_collect_symbol_completion_matches)
10012 (ada_add_global_exceptions): Use objfile_compunits.
10014 2019-01-09 Tom Tromey <tom@tromey.com>
10016 * source.c (select_source_symtab)
10017 (forget_cached_source_info_for_objfile): Remove declaration.
10018 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10020 * maint.c (count_symtabs_and_blocks): Remove declaration.
10021 * cp-support.c (add_symbol_overload_list_qualified): Remove
10023 * coffread.c (coff_symtab_read): Remove declaration.
10024 * symtab.c (lookup_symbol_in_objfile_symtabs)
10025 (basic_lookup_transparent_type_1): Use objfile_compunits.
10026 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10027 (info_sources_command, search_symbols)
10028 (default_collect_symbol_completion_matches_break_on)
10029 (make_source_files_completion_list): Remove declaration.
10030 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10031 (ada_collect_symbol_completion_matches)
10032 (ada_add_global_exceptions): Remove declaration.
10033 * linespec.c (iterate_over_all_matching_symtabs): Use
10035 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10036 (class objfile_compunits): New.
10037 (ALL_COMPUNITS): Use objfile_compunits.
10038 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10039 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10041 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10043 2019-01-09 Tom Tromey <tom@tromey.com>
10045 * symtab.c (search_symbols)
10046 (default_collect_symbol_completion_matches_break_on): Use
10048 * ada-lang.c (ada_lookup_simple_minsym)
10049 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10050 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10051 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10053 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10054 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10055 * objc-lang.c (find_methods): Use objfile_msymbols.
10056 (info_selectors_command, info_classes_command): Likewise.
10057 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10058 * objfiles.h (class objfile_msymbols): New.
10059 (ALL_OBJFILE_MSYMBOLS): Remove.
10060 (ALL_MSYMBOLS): Remove.
10062 2019-01-09 Tom Tromey <tom@tromey.com>
10064 * common/next-iterator.h (next_adapter): Add Iterator template
10066 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10067 (class all_objfiles_safe): New.
10068 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10069 * objfiles.c (put_objfile_before): Update comment.
10070 (add_separate_debug_objfile): Likewise.
10071 (free_all_objfiles): Use all_objfiles_safe.
10072 (objfile_purge_solibs): Likewise.
10074 2019-01-09 Tom Tromey <tom@tromey.com>
10076 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10077 (expand_symtab_containing_pc, lookup_static_symbol)
10078 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10079 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10081 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10082 * breakpoint.c (create_overlay_event_breakpoint)
10083 (create_longjmp_master_breakpoint)
10084 (create_std_terminate_master_breakpoint)
10085 (create_exception_master_breakpoint): Use all_objfiles.
10086 * linux-thread-db.c (try_thread_db_load_from_pdir)
10087 (has_libpthread): Use all_objfiles.
10088 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10089 * linespec.c (iterate_over_all_matching_symtabs)
10090 (search_minsyms_for_name): Use all_objfiles.
10091 * maint.c (maintenance_info_sections): Use all_objfiles.
10092 * main.c (captured_main_1): Use all_objfiles.
10093 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10094 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10095 * guile/scm-pretty-print.c
10096 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10097 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10098 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10099 (maintenance_print_msymbols): Use all_objfiles.
10100 * source.c (select_source_symtab): Use all_objfiles.
10101 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10102 * symfile.c (remove_symbol_file_command)
10103 (expand_symtabs_matching, map_symbol_filenames): Use
10105 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10107 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10108 * objc-lang.c (find_methods): Use all_objfiles.
10109 * objfiles.c (have_partial_symbols, have_full_symbols)
10110 (have_minimal_symbols, qsort_cmp)
10111 (default_iterate_over_objfiles_in_search_order): Use
10113 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10114 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10115 (maintenance_check_psymtabs): Use all_objfiles.
10116 (ALL_PSYMTABS): Remove.
10117 * compile/compile-object-run.c (do_module_cleanup): Use
10119 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10120 * cp-support.c (add_symbol_overload_list_qualified): Use
10122 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10124 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10125 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10127 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10128 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10129 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10131 * solib.c (solib_read_symbols): Use all_objfiles
10133 2019-01-09 Tom Tromey <tom@tromey.com>
10135 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10136 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10138 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10139 * symmisc.c (print_symbol_bcache_statistics)
10140 (print_objfile_statistics, maintenance_print_objfiles)
10141 (maintenance_info_symtabs, maintenance_check_symtabs)
10142 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10144 * source.c (forget_cached_source_info): Use all_objfiles.
10145 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10146 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10147 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10148 * objfiles.c (update_section_map): Use all_objfiles.
10149 (shared_objfile_contains_address_p): Likewise.
10150 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10151 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10153 2019-01-09 Tom Tromey <tom@tromey.com>
10155 * common/next-iterator.h: New file.
10156 * objfiles.h (class all_objfiles): New.
10157 (struct objfile_iterator): New.
10159 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10161 * NEWS: Move the description of the changed "frame", "select-frame",
10162 and "info frame" commands to the Changed commands section.
10164 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10166 * gdbtypes.c (check_stub_method_group): Remove handling of old
10168 * linespec.c (find_methods): Likewise.
10169 * stabsread.c (read_member_functions): Likewise.
10170 * valops.c (search_struct_method): Likewise.
10171 (value_struct_elt_for_reference): Likewise.
10172 * NEWS: Mention this change.
10174 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10176 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10177 print_source_lines.
10178 * source.c (print_source_lines_base): Update line number check.
10179 (print_source_lines): New function.
10180 (source_lines_range::source_lines_range): New function.
10181 * source.h (class source_lines_range): New class.
10182 (print_source_lines): New declaration.
10184 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10186 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10188 2019-01-08 Tom Tromey <tom@tromey.com>
10189 Simon Marchi <simon.marchi@ericsson.com>
10192 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10193 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10194 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10195 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10196 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10197 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10199 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10201 * source.c (select_source_symtab): Move header comment to
10202 declaration in source.h.
10203 (forget_cached_source_info_for_objfile): Likewise.
10204 (forget_cached_source_info): Likewise.
10205 (identify_source_line): Likewise.
10206 * source.h (identify_source_line): Move declaration from symtab.h
10207 and add comment from source.c
10208 (print_source_lines): Likewise.
10209 (forget_cached_source_info_for_objfile): Likewise.
10210 (forget_cached_source_info): Likewise.
10211 (select_source_symtab): Likewise.
10212 (enum print_source_lines_flag): Move definition from symtab.h.
10213 * symtab.h (identify_source_line): Move declaration to source.h.
10214 (print_source_lines): Likewise.
10215 (forget_cached_source_info_for_objfile): Likewise.
10216 (forget_cached_source_info): Likewise.
10217 (select_source_symtab): Likewise.
10218 (enum print_source_lines_flag): Move definition to source.h.
10219 * tui/tui-hooks.c: Add 'source.h' include.
10221 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10223 * source.c (print_source_lines_base): Handle requests to print
10224 reverse line number sequences, and guard against empty lines
10227 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10229 * source.c (print_source_lines_base): Fix skip of '\r' if next
10232 2019-01-06 Tom Tromey <tom@tromey.com>
10234 * c-exp.y (struct c_parse_state) <macro_original_text,
10235 expansion_obstack>: New member.
10236 (macro_original_text, expansion_obstack): Remove globals.
10237 (scan_macro_expansion, scanning_macro_expansion)
10238 (finished_macro_expansion): Update.
10239 (scan_macro_cleanup): Remove.
10240 (yylex, c_parse): Update.
10242 2019-01-06 Tom Tromey <tom@tromey.com>
10244 * c-exp.y (struct c_parse_state) <strings>: New member.
10245 (operator_stoken): Update.
10247 2019-01-06 Tom Tromey <tom@tromey.com>
10249 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10250 (union type_stack_elt) <typelist_val>: Now a pointer to
10252 (type_stack_cleanup): Don't declare.
10253 (push_typelist): Update.
10254 * parse.c (pop_typelist): Return a std::vector.
10255 (push_typelist): Take a std::vector.
10256 (follow_types): Update. Do not free args.
10257 (type_stack_cleanup): Remove.
10258 * c-exp.y (struct c_parse_state): New.
10259 (cpstate): New global.
10260 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10261 (nonempty_typelist): Update.
10262 (func_mod): Create a new vector.
10263 (c_parse): Create a c_parse_state.
10264 (check_parameter_typelist): Do not delete params.
10265 (function_method): Update. Do not delete type_list.
10267 2019-01-06 Tom Tromey <tom@tromey.com>
10270 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10272 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10273 (print_return_value): Likewise.
10275 2019-01-05 Tom Tromey <tom@tromey.com>
10277 * contrib/cleanup_check.py: Remove.
10278 * contrib/gcc-with-excheck: Remove.
10279 * contrib/exsummary.py: Remove.
10280 * contrib/excheck.py: Remove.
10282 2019-01-05 Joel Brobecker <brobecker@adacore.com>
10284 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10285 NULL. Initialize tpprev to NULL instead of assigning it
10286 to NULL on the next statement.
10287 * windows-nat.c (windows_delete_thread): Remove check for
10288 main_thread_id before printing thread exit notifications.
10289 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10290 Remove thread ID check against main_thread_id.
10291 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10292 windows_delete_thread.
10293 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10295 2019-01-04 Tom Tromey <tom@tromey.com>
10297 * compile/compile.c (_initialize_compile): Use upper case for
10298 metasyntactic variables.
10299 * symmisc.c (_initialize_symmisc): Use upper case for
10300 metasyntactic variables.
10301 * psymtab.c (_initialize_psymtab): Use upper case for
10302 metasyntactic variables.
10303 * demangle.c (demangle_command): Use upper case for metasyntactic
10305 (_initialize_demangler): Likewise.
10306 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10309 2019-01-03 Tom Tromey <tom@tromey.com>
10311 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10313 2019-01-03 Tom Tromey <tom@tromey.com>
10315 * python/py-symtab.c (salpy_str): Update.
10316 (struct salpy_sal_object) <symtab>: Now a PyObject.
10317 (salpy_dealloc): Update.
10318 (del_objfile_sal): Use gdbpy_ref.
10320 2019-01-03 Tom Tromey <tom@tromey.com>
10322 * python/py-type.c (convert_field): Use new_reference. Return
10324 (make_fielditem): Return gdbpy_ref.
10325 (typy_fields): Update.
10326 (typy_getitem): Update.
10327 (field_name): Return gdbpy_ref. Use new_reference.
10328 (typy_iterator_iternext): Update.
10330 2019-01-03 Tom Tromey <tom@tromey.com>
10332 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10334 2019-01-03 Tom Tromey <tom@tromey.com>
10336 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10337 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10338 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10339 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10340 (pspy_set_type_printers): Likewise.
10341 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10342 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10343 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10344 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10345 (objfpy_set_type_printers): Likewise.
10347 2019-01-03 Tom Tromey <tom@tromey.com>
10349 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10350 (gdbpy_print_stack): Use gdbpy_err_fetch.
10351 * python/python-internal.h (class gdbpy_err_fetch): New class.
10352 (class gdbpy_enter) <m_error_type, m_error_value,
10353 m_error_traceback>: Remove.
10354 <m_error>: New member.
10355 (gdbpy_exception_to_string): Don't declare.
10356 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10357 * python/py-value.c (convert_value_from_python): Use
10359 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10360 gdbpy_exception_to_string.
10361 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10362 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10365 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10367 * linux-nat.c (delete_lwp_cleanup): Delete.
10368 (struct lwp_deleter): New struct.
10369 (lwp_info_up): New typedef.
10370 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10373 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10375 * linux-fork.c (class scoped_switch_fork_info): New class.
10376 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10378 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10380 * valops.c (find_overload_match): Remove use of null_cleanup, and
10381 calls to do_cleanups.
10383 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10385 * compile/compile-cplus-types.c
10386 (compile_cplus_instance::decl_name): Handle changes to
10388 * cp-support.c (cp_func_name): Update header comment, update
10390 * cp-support.h (cp_func_name): Update return type in declaration.
10391 * valops.c (find_overload_match): Move temp_func local to top
10392 level of function and change its type. Use temp_func to hold and
10393 delete temporary string obtained from cp_func_name.
10395 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10397 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
10398 gdb::char_vector, remove cleanup, and update uses of `msg`.
10400 2019-01-03 Jim Wilson <jimw@sifive.com>
10402 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
10404 2019-01-02 Tom Tromey <tom@tromey.com>
10406 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
10407 (tdesc_parse_xml): Remove cleanups.
10408 * target-descriptions.h (make_cleanup_free_target_description):
10410 (target_desc_deleter): New struct.
10411 (target_desc_up): New typedef.
10412 * target-descriptions.c (target_desc_deleter::operator()): Rename
10413 from free_target_description.
10414 (make_cleanup_free_target_description): Remove.
10416 2019-01-02 Tom Tromey <tom@tromey.com>
10418 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
10419 constructor, destructor.
10420 (linespec_parser): Remove typedef.
10421 (~linespec_parser): Rename from linespec_parser_delete.
10422 (linespec_lex_to_end, linespec_complete_label)
10423 (linespec_complete): Update.
10424 (decode_line_full): Remove cleanups.
10425 (decode_line_1): Update.
10427 2019-01-02 Tom Tromey <tom@tromey.com>
10429 * python/python-internal.h (inferior_to_inferior_object): Change
10431 * python/py-exitedevent.c (create_exited_event_object): Update.
10432 * python/py-inferior.c (inferior_to_inferior_object): Return
10434 (python_new_inferior, python_inferior_deleted)
10435 (thread_to_thread_object, delete_thread_object)
10436 (build_inferior_list, gdbpy_selected_inferior): Update.
10437 * python/py-infthread.c (create_thread_object): Update. Also fail
10438 if inferior_to_inferior_object fails.
10440 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
10442 * inferior.h (class inferior) <displaced_step_state>: New field.
10443 * infrun.h (struct displaced_step_state): Move here from
10444 infrun.c. Initialize fields, add constructor.
10445 <inf>: Remove field.
10446 <reset>: New method.
10447 * infrun.c (struct displaced_step_inferior_state): Move to
10449 (displaced_step_inferior_states): Remove.
10450 (get_displaced_stepping_state): Adust.
10451 (displaced_step_in_progress_any_inferior): Adjust.
10452 (displaced_step_in_progress_thread): Adjust.
10453 (displaced_step_in_progress): Adjust.
10454 (add_displaced_stepping_state): Remove.
10455 (get_displaced_step_closure_by_addr): Adjust.
10456 (remove_displaced_stepping_state): Remove.
10457 (infrun_inferior_exit): Call displaced_step_state.reset.
10458 (use_displaced_stepping): Don't check for NULL.
10459 (displaced_step_prepare_throw): Call
10460 get_displaced_stepping_state.
10461 (displaced_step_fixup): Don't check for NULL.
10462 (prepare_for_detach): Don't check for NULL.
10464 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10466 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
10467 in case of call that did not complete.
10469 2019-01-02 Andrey Utkin <autkin@undo.io>
10471 * symfile.c (find_separate_debug_file): Fix search of debug files for
10474 2019-01-02 Tom Tromey <tom@tromey.com>
10476 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
10478 * python/py-frame.c (frapy_older): Remove cast.
10479 (frapy_newer): Likewise.
10480 * python/py-breakpoint.c (local_setattro): Remove cast.
10481 * python/py-arch.c (archpy_name): Remove local variable.
10482 * python/py-type.c (gdbpy_lookup_type): Remove cast.
10484 2019-01-02 Joel Brobecker <brobecker@adacore.com>
10486 * unittests/basic_string_view/element_access/char/empty.cc:
10487 Fix year range in copyright header.
10489 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
10491 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
10493 <operator==>: Update with for removed field.
10495 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
10496 <isa_features>: ...this.
10497 <abi_features>: New field.
10498 (riscv_isa_flen): Update comment.
10499 (riscv_abi_xlen): New declaration.
10500 (riscv_abi_flen): New declaration.
10501 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
10503 (riscv_abi_xlen): New function.
10504 (riscv_isa_flen): Update to get answer from isa_features.
10505 (riscv_abi_flen): New function.
10506 (riscv_has_fp_abi): Update to get answer from abi_features.
10507 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
10509 (riscv_call_info) <xlen, flen>: Update comment.
10510 (riscv_call_arg_struct): Remove invalid assertions
10511 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
10513 (riscv_gdbarch_init): Gather isa features and abi features
10514 separately, ensure both match on the gdbarch when reusing an old
10515 gdbarch. Relax an error check to allow 32-bit abi float to run on
10516 a target with 64-bit float hardware.
10518 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10520 * source.c (search_command_helper): Stop reverse search
10521 when line 1 has been searched.
10523 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10525 * record-full.c (record_full_base_target::close): Rewrite
10526 record_full_core_buf_list free logic.
10528 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10530 * break-catch-syscall.c (print_one_catch_syscall): xfree
10533 2019-01-01 Joel Brobecker <brobecker@adacore.com>
10535 * top.c (print_gdb_version): Update Copyright year in version
10538 2019-01-01 Joel Brobecker <brobecker@adacore.com>
10540 Update copyright year range in all GDB files.
10542 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
10544 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
10546 For older changes see ChangeLog-2018.
10552 version-control: never