Arm: Prefix register sizes with ARM_
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2
3 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4 defines.
5 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7 (ARM_INT_REGISTER_SIZE): ...to this.
8 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
9 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
10 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
11 (arm_linux_collect_gregset, supply_nwfpe_register)
12 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
13 defines.
14 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
15 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
16 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
17 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
18 (arm_return_in_memory, arm_store_return_value)
19 (arm_get_longjmp_target, arm_register_g_packet_guesses)
20 (arm_record_ld_st_multiple): Likewise.
21 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
22 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
23
24 2019-07-04 Alan Hayward <alan.hayward@arm.com>
25
26 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
27 AARCH64_DISPLACED_MODIFIED_INSNS.
28 * aarch64-tdep.c (struct aarch64_displaced_step_data)
29 (aarch64_displaced_step_copy_insn): Likewise.
30 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
31 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
32 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
33 ARM_DISPLACED_MODIFIED_INSNS.
34 * arm-tdep.c (arm_gdbarch_init): Likewise.
35 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
36 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
37 (struct arm_displaced_step_closure): Use
38 ARM_DISPLACED_MODIFIED_INSNS.
39
40 2019-07-04 Alan Hayward <alan.hayward@arm.com>
41
42 * features/Makefile: Remove unused xml files.
43 * features/aarch64.xml: Remove.
44 * features/i386/amd64-avx-avx512-linux.xml: Remove.
45 * features/i386/amd64-avx-avx512.xml: Remove.
46 * features/i386/amd64-avx-linux.xml: Remove.
47 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
48 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
49 * features/i386/amd64-avx-mpx-linux.xml: Remove.
50 * features/i386/amd64-avx-mpx.xml: Remove.
51 * features/i386/amd64-avx.xml: Remove.
52 * features/i386/amd64-linux.xml: Remove.
53 * features/i386/amd64-mpx-linux.xml: Remove.
54 * features/i386/amd64-mpx.xml: Remove.
55 * features/i386/amd64.xml: Remove.
56 * features/i386/i386-avx-avx512-linux.xml: Remove.
57 * features/i386/i386-avx-avx512.xml: Remove.
58 * features/i386/i386-avx-linux.xml: Remove.
59 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
60 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
61 * features/i386/i386-avx-mpx-linux.xml: Remove.
62 * features/i386/i386-avx-mpx.xml: Remove.
63 * features/i386/i386-avx.xml: Remove.
64 * features/i386/i386-linux.xml: Remove.
65 * features/i386/i386-mmx-linux.xml: Remove.
66 * features/i386/i386-mmx.xml: Remove.
67 * features/i386/i386-mpx-linux.xml: Remove.
68 * features/i386/i386-mpx.xml: Remove.
69 * features/i386/i386.xml: Remove.
70 * features/i386/x32-avx-avx512-linux.xml: Remove.
71 * features/i386/x32-avx-linux.xml: Remove.
72 * features/i386/x32-linux.xml: Remove.
73
74 2019-07-04 Alan Hayward <alan.hayward@arm.com>
75
76 * regformats/aarch64.dat: Remove.
77 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
78 * regformats/i386/amd64-avx-linux.dat: Remove.
79 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
80 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
81 * regformats/i386/amd64-linux.dat: Remove.
82 * regformats/i386/amd64-mpx-linux.dat: Remove.
83 * regformats/i386/amd64.dat: Remove.
84 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
85 * regformats/i386/i386-avx-linux.dat: Remove.
86 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
87 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
88 * regformats/i386/i386-linux.dat: Remove.
89 * regformats/i386/i386-mmx-linux.dat: Remove.
90 * regformats/i386/i386-mpx-linux.dat: Remove.
91 * regformats/i386/i386.dat: Remove.
92 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
93 * regformats/i386/x32-avx-linux.dat: Remove.
94 * regformats/i386/x32-linux.dat: Remove.
95
96 2019-07-04 Alan Hayward <alan.hayward@arm.com>
97
98 * aarch64-tdep.c: Remove xml self tests.
99 * amd64-linux-tdep.c: Likewise.
100 * amd64-tdep.c: Likewise.
101 * i386-linux-tdep.c: Likewise.
102 * i386-tdep.c: Likewise.
103
104 2019-07-03 Pedro Alves <palves@redhat.com>
105
106 PR cli/24732
107 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
108 (pipe_cmd_option_defs): New.
109 (make_pipe_cmd_options_def_group): New.
110 (pipe_command): Use gdb::option::process_options.
111 (pipe_command_completer): New function.
112 (_initialize_cli_cmds): Install completer for "pipe" command.
113
114 2019-07-03 Pedro Alves <palves@redhat.com>
115
116 * cli/cli-option.c (union option_value) <string>: New field.
117 (struct option_def_and_value): Add ctor, move ctor, dtor and
118 use DISABLE_COPY_AND_ASSIGN.
119 (option_def_and_value::clear_value): New.
120 (parse_option, save_option_value_in_ctx, get_val_type_str)
121 (add_setshow_cmds_for_options): Handle var_string.
122 * cli-option.h (union option_def::var_address) <string>: New
123 field.
124 (struct string_option_def): New.
125 * maint-test-options.c (struct test_options_opts): Add default
126 ctor and use DISABLE_COPY_AND_ASSIGN.
127 <string_opt>: New field.
128 (test_options_opts::~test_options_opts): New.
129 (test_options_opts::dump): Also dump "-string".
130 (test_options_option_defs): Install "string.
131
132 2019-07-03 Pedro Alves <palves@redhat.com>
133
134 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
135 option_value with a null enumeration.
136 (complete_options): Save the option values in the context.
137 (save_option_value_in_ctx): New, factored out from ...
138 (process_options): ... here.
139 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
140 of the function.
141 * maint-test-options.c (test_options_opts::dump): New, factored
142 out from ...
143 (maintenance_test_options_command_mode): ... here.
144 (maintenance_test_options_command_completion_result): Delete.
145 (maintenance_test_options_command_completion_text): Update
146 comment.
147 (maintenance_show_test_options_completion_result): Change
148 prototype. Just print
149 maintenance_test_options_command_completion_text.
150 (save_completion_result): New.
151 (maintenance_test_options_completer_mode): Pass options context to
152 complete_options, and then save a dump.
153 (_initialize_maint_test_options): Use add_cmd to install "maint
154 show test-options-completion-result".
155
156 2019-07-03 Pedro Alves <palves@redhat.com>
157
158 * NEWS (New commands): Mention "with" and "maint with".
159 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
160 (with_command, with_command_completer): New.
161 (pipe_command): Adjust to new repeat_previous
162 interface.
163 (_initialize_cli_cmds): Install the "with" command and its "w"
164 alias.
165 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
166 declarations.
167 * cli/cli-setshow.c (parse_cli_var_uinteger)
168 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
169 argument strings for all var_types.
170 (get_setshow_command_value_string): New, factored out from ...
171 (do_show_command): ... this.
172 * cli/cli-setshow.h: Include <string>.
173 (get_setshow_command_value_string): Declare.
174 * command.h (repeat_previous): Now returns const char *. Adjust
175 comment.
176 * maint.c: Include "cli/cli-cmds.h".
177 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
178 (_initialize_maint_cmds): Register the "maintenance with" command.
179 * top.c (repeat_previous): Move bits from pipe_command here:
180 Return the saved command line, if any; error out if there's no
181 command to relaunch.
182
183 2019-07-03 Pedro Alves <palves@redhat.com>
184
185 * NEWS (New commands): Mention "maint set/show test-settings"
186 instead of "maint test-settings".
187 * maint-test-settings.c (maintenance_test_settings_list): Delete.
188 (maintenance_test_settings_set_list): Rename to ...
189 (maintenance_set_test_settings_list): ... this.
190 (maintenance_test_settings_show_list): Rename to ...
191 (maintenance_show_test_settings_list): ... this.
192 (maintenance_test_settings_cmd): Delete.
193 (maintenance_test_settings_set_cmd): ...
194 (maintenance_set_test_settings_cmd): ... this.
195 (maintenance_test_settings_show_cmd): ...
196 (maintenance_show_test_settings_cmd): ... this.
197 (maintenance_test_settings_show_value_cmd):
198 (maintenance_show_test_settings_value_cmd): ... this.
199 (_initialize_maint_test_settings): No longer install the "maint
200 test-settings" prefix command. Rename "maint test-settings set"
201 to "maint set test-settings", and "maint test-settings show" to
202 "maint show test-settings". Adjust all subcommands.
203
204 2019-07-03 Pedro Alves <palves@redhat.com>
205
206 * maint-test-settings.c: Fix file's intro comment. Replace all
207 references to "test-options" with references to "test-settings",
208 in comments.
209
210 2019-07-03 Pedro Alves <palves@redhat.com>
211
212 * maint-test-settings.c (maintenance_test_settings_xxx)
213 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
214 New.
215 (maintenance_test_settings_enums): Use them.
216 (maintenance_test_settings_enum): Default to
217 maintenance_test_settings_xxx.
218 (_initialize_maint_test_settings): Initialize
219 MAINTENANCE_TEST_SETTINGS_FILENAME.
220
221 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * breakpoint.h (remove_breakpoints_inf): Change return type to
224 void, move function documentation here.
225 * breakpoint.c (remove_breakpoints_inf): Change return type to
226 void, move function documentation to header.
227
228 2019-07-02 Pedro Alves <palves@redhat.com>
229
230 * NEWS (Completion improvements): Mention "info threads".
231 * thread.c (struct info_threads_opts, info_threads_option_defs)
232 (make_info_threads_options_def_group): New.
233 (info_threads_command): Use gdb::option::process_options.
234 (info_threads_command_completer): New.
235 (_initialize_thread): Use gdb::option::build_help to build the
236 help text for "info threads".
237
238 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
239
240 * defs.h (generic_load): Move from here...
241 * symfile.h (generic_load): ... to here. Rename name parameter
242 to args.
243 * symfile.c (generic_load): Add comment.
244
245 2019-07-01 Tom Tromey <tromey@adacore.com>
246
247 * dwarf2read.c
248 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
249 declaration of without_params. Fix formatting.
250
251 2019-07-01 Tom Tromey <tromey@adacore.com>
252
253 * ada-exp.y (find_primitive_type): Update.
254 * ada-lang.h (ada_lookup_symbol): Update.
255 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
256 parameter.
257 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
258
259 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
260
261 PR breakpoints/24541
262 * gdbarch.c: Regenerate.
263 * gdbarch.h: Regenerate.
264 * gdbarch.sh: Add 'stap_adjust_register'.
265 * i386-tdep.c: Include '<unordered_set>'.
266 (i386_stap_adjust_register): New function.
267 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
268 * stap-probe.c (stap_parse_register_operand): Call
269 'gdbarch_stap_adjust_register'.
270
271 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
272
273 PR python/24742
274 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
275 * python/python.c (do_start_initialization): Use 'xmalloc'
276 instead of 'PyMem_Malloc'.
277
278 2019-06-28 Tom Tromey <tromey@adacore.com>
279
280 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
281 for Ada.
282
283 2019-06-27 Tom Tromey <tromey@adacore.com>
284
285 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
286 objfile_key.
287 (arm_find_mapping_symbol, arm_record_special_symbol)
288 (_initialize_arm_tdep): Update.
289 (arm_objfile_data_free): Remove.
290
291 2019-06-27 Tom Tromey <tromey@adacore.com>
292
293 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
294 to cp_print_static_field.
295
296 2019-06-26 Tom Tromey <tromey@adacore.com>
297
298 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
299 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
300 declare.
301
302 2019-06-26 Alan Hayward <alan.hayward@arm.com>
303
304 * features/aarch64-core.c (create_feature_aarch64_core):
305 Regenerate.
306 * features/aarch64-core.xml: Add cpsr flags.
307
308 2019-06-26 Alan Hayward <alan.hayward@arm.com>
309
310 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
311 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
312
313 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
316 field.
317 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
318 use.
319 (arm_record_special_symbol): Don't insert new symbol in sorted
320 position, push it at the end.
321
322 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
325 (arm_mapping_symbol_s): Remove.
326 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
327 (arm_mapping_symbol_vec): New typedef.
328 (struct arm_per_objfile): Add constructor.
329 <section_maps>: Change type to
330 std::unique_ptr<arm_mapping_symbol_vec[]>.
331 (arm_compare_mapping_symbols): Remove.
332 (arm_find_mapping_symbol): Adjust to section_maps type change.
333 (arm_objfile_data_free): Call delete on arm_per_objfile.
334 (arm_record_special_symbol): Adjust to section_maps type change.
335 Allocate arm_per_objfile with new.
336
337 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
338
339 * cli/cli-cmds.c (alias_command): Compare the alias prefix
340 with the command prefix.
341
342 2019-06-25 Tom Tromey <tom@tromey.com>
343
344 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
345 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
346
347 2019-06-25 Tom Tromey <tom@tromey.com>
348
349 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
350 type.
351 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
352 protected.
353
354 2019-06-25 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-winsource.c
357 (tui_source_window_base::set_is_exec_point_at): Add check against
358 LOA_ADDRESS.
359
360 2019-06-25 Tom Tromey <tom@tromey.com>
361
362 * tui/tui-source.c (tui_set_source_content): Don't check before
363 xfree.
364 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
365
366 2019-06-25 Tom Tromey <tom@tromey.com>
367
368 * tui/tui-winsource.h (tui_update_source_window_as_is)
369 (tui_alloc_source_buffer, tui_line_is_displayed)
370 (tui_addr_is_displayed): Change type of win_info.
371 * tui/tui-winsource.c (tui_update_source_window_as_is)
372 (tui_clear_source_content, tui_show_source_line)
373 (tui_show_source_content, tui_source_window_base::refill)
374 (tui_source_window_base::set_is_exec_point_at)
375 (tui_source_window_base::set_is_exec_point_at)
376 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
377 (tui_alloc_source_buffer, tui_line_is_displayed)
378 (tui_addr_is_displayed): Change type of win_info. Update.
379 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
380 (tui_source_window_base::do_make_visible_with_new_height):
381 Update.
382 * tui/tui-source.c (tui_set_source_content)
383 (tui_set_source_content_nil)
384 (tui_source_window::do_scroll_vertical): Update.
385 * tui/tui-layout.c (show_layout): Update.
386 * tui/tui-disasm.c (tui_set_disassem_content)
387 (tui_disasm_window::do_scroll_vertical): Update.
388 * tui/tui-data.h (tui_win_content): Remove.
389 (struct tui_gen_win_info) <content, content_size>: Remove.
390 (struct tui_source_element): Add initializers and destructor.
391 (union tui_which_element, struct tui_win_element): Remove.
392 (struct tui_source_window_base) <content>: New field.
393 (struct tui_data_window): Remove destructor.
394 (tui_alloc_content, tui_free_win_content)
395 (tui_free_all_source_wins_content): Don't declare.
396 * tui/tui-data.c (tui_initialize_static_data): Update.
397 (init_content_element, tui_alloc_content): Remove.
398 (~tui_gen_win_info): Update.
399 (~tui_data_window, tui_free_all_source_wins_content)
400 (tui_free_win_content, free_content, free_content_elements):
401 Remove.
402
403 2019-06-25 Tom Tromey <tom@tromey.com>
404
405 * tui/tui-winsource.h (tui_clear_source_content)
406 (tui_erase_source_content, tui_show_source_content): Change type
407 of win_info.
408 * tui/tui-winsource.c (tui_clear_source_content)
409 (tui_erase_source_content, tui_show_source_content): Change type
410 of win_info.
411 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
412 * tui/tui-source.h (tui_set_source_content_nil): Change type of
413 win_info.
414 * tui/tui-source.c (tui_set_source_content_nil): Change type of
415 win_info.
416 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
417
418 2019-06-25 Tom Tromey <tom@tromey.com>
419
420 * tui/tui-winsource.c (tui_clear_source_content)
421 (tui_source_window_base::set_is_exec_point_at): Update.
422 * tui/tui-source.c (tui_set_source_content_nil): Update.
423 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
424 a bool.
425 * tui/tui-data.c (init_content_element): Update.
426
427 2019-06-25 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
430 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
431 * tui/tui-layout.c (init_and_make_win): Update.
432 * tui/tui.h (enum tui_win_type): Update.
433 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
434 tui_win_is_auxillary.
435 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
436 tui_win_is_auxillary.
437
438 2019-06-25 Tom Tromey <tom@tromey.com>
439
440 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
441 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
442 (tui_delete_data_content_windows, tui_display_all_data)
443 (tui_data_window::do_scroll_vertical, tui_display_data_from):
444 Update.
445 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
446 * tui/tui-regs.c (tui_last_regs_line_no)
447 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
448 (tui_show_registers): Update.
449 (tui_show_register_group): Return void. Update.
450 (tui_display_registers_from, tui_display_reg_element_at_line)
451 (tui_display_registers_from_line, tui_check_register_values):
452 Update.
453 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
454 member.
455 (struct tui_data_window) <regs_content>: Now a std::vector.
456 <regs_content_count>: Remove.
457 (tui_add_content_elements, tui_free_data_content): Don't declare.
458 * tui/tui-data.c (tui_data_window::clear_detail): Update.
459 (init_content_element): Remove DATA_WIN case. Add assert.
460 (tui_add_content_elements): Remove.
461 (tui_data_window): Update.
462 (tui_free_data_content): Remove.
463 (free_content_elements): Remove DATA_WIN case.
464
465 2019-06-25 Tom Tromey <tom@tromey.com>
466
467 * tui/tui-data.c (tui_data_item_window): Update.
468 * tui/tui-windata.h (tui_check_data_values): Don't declare.
469 * tui/tui-windata.c (tui_display_all_data)
470 (tui_display_data_from_line): Update.
471 (tui_check_data_values): Remove.
472 * tui/tui-regs.c (tui_show_register_group)
473 (tui_display_reg_element_at_line): Update.
474 * tui/tui-hooks.c (tui_register_changed)
475 (tui_refresh_frame_and_register_information): Call
476 tui_check_register_values.
477 * tui/tui-data.h (struct tui_data_window) <data_content,
478 data_content_count, data_type>: Remove.
479 (enum tui_data_type): Remove.
480
481 * tui/tui-data.c (tui_data_window::clear_detail)
482 (~tui_data_window): Update.
483
484 2019-06-25 Tom Tromey <tom@tromey.com>
485
486 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
487 declare.
488 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
489 Rename from tui_first_data_item_displayed. Update.
490 (tui_data_window::refresh_all)
491 (tui_data_window::do_scroll_vertical): Update.
492 * tui/tui-data.h (struct tui_data_window)
493 <first_data_item_displayed>: Declare new method.
494
495 2019-06-25 Tom Tromey <tom@tromey.com>
496
497 * tui/tui-data.h (tui_init_generic_part): Don't declare.
498 * tui/tui-data.c (tui_init_generic_part): Remove, moving
499 contents...
500 (tui_initialize_static_data): ...here.
501
502 2019-06-25 Tom Tromey <tom@tromey.com>
503
504 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
505 (tui_display_registers_from, tui_check_register_values): Update.
506 (tui_display_register): Remove win_info parameter; update.
507 (tui_get_register): Change type of parameters.
508 * tui/tui-data.h (struct tui_data_element): Remove.
509 (union tui_which_element) <data>: Remove.
510 <data_window>: Change type.
511 (struct tui_data_item_window): New.
512 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
513 case. Add assert.
514 (~tui_data_item_window): New destructor.
515 (free_content_elements): Remove DATA_ITEM_WIN case.
516
517 2019-06-25 Tom Tromey <tom@tromey.com>
518
519 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
520 Remove.
521
522 2019-06-25 Tom Tromey <tom@tromey.com>
523
524 * tui/tui-data.h (struct tui_command_element): Remove.
525 (union tui_which_element) <command>: Remove.
526 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
527 assert.
528 (free_content_elements): Remove CMD_WIN case.
529
530 2019-06-25 Tom Tromey <tom@tromey.com>
531
532 * tui/tui-layout.c (tui_set_layout): Update.
533 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
534 * tui/tui-data.c (layout_def): Update.
535
536 2019-06-25 Tom Tromey <tom@tromey.com>
537
538 * tui/tui-wingeneral.c (tui_refresh_all): Update.
539 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
540 (tui_source_window_base::set_new_height): Update.
541 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
542 Update.
543 (tui_set_locator_fullname, tui_set_locator_info)
544 (tui_show_frame_info): Update.
545 * tui/tui-source.c (tui_set_source_content)
546 (tui_source_is_displayed): Update.
547 * tui/tui-layout.c (show_source_disasm_command, show_data)
548 (show_source_or_disasm_and_command): Update.
549 * tui/tui-disasm.c (tui_set_disassem_content)
550 (tui_get_begin_asm_address): Update.
551 * tui/tui-data.h (struct tui_locator_element): Remove.
552 (union tui_which_element) <locator>: Remove.
553 (struct tui_locator_window): New.
554 (tui_locator_win_info_ptr): Change return type.
555 * tui/tui-data.c (_locator): Change type.
556 (tui_locator_win_info_ptr): Change return type.
557 (init_content_element): Remove LOCATOR_WIN case. Add assert.
558 (tui_alloc_content): Add assert.
559
560 2019-06-25 Tom Tromey <tom@tromey.com>
561
562 * tui/tui-winsource.c
563 (tui_exec_info_window::maybe_allocate_content): New method.
564 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
565 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
566 (make_source_or_disasm_window): Add cast.
567 * tui/tui-data.h (union tui_which_element) <simple_string>:
568 Remove.
569 (struct tui_source_info): New.
570 (struct tui_source_window_base) <execution_info>: Change type.
571 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
572 case, and add assert.
573 (tui_alloc_content): Add assert.
574
575 2019-06-25 Tom Tromey <tom@tromey.com>
576
577 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
578 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
579 * tui/tui-data.c (tui_alloc_win_info): Remove.
580
581 2019-06-25 Tom Tromey <tom@tromey.com>
582
583 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
584 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
585 can_highlight.
586
587 2019-06-25 Tom Tromey <tom@tromey.com>
588
589 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
590 make_visible_with_new_height method.
591 (tui_win_info::make_visible_with_new_height): New method.
592 (tui_source_window_base::do_make_visible_with_new_height)
593 (tui_data_window::do_make_visible_with_new_height)
594 (tui_cmd_window::do_make_visible_with_new_height): New methods.
595 (make_visible_with_new_height): Remove.
596 (tui_resize_all, tui_adjust_win_heights): Use
597 make_visible_with_new_height method.
598 * tui/tui-data.h (struct tui_win_info)
599 <do_make_visible_with_new_height, make_visible_with_new_height>:
600 New methods.
601 (struct tui_source_window_base, struct tui_data_window)
602 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
603 methods.
604
605 2019-06-25 Tom Tromey <tom@tromey.com>
606
607 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
608 method.
609 (update_tab_width): Call update_tab_width method.
610 * tui/tui-data.h (struct tui_win_info)
611 (struct tui_source_window_base) <update_tab_width>: New methods.
612
613 2019-06-25 Tom Tromey <tom@tromey.com>
614
615 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
616 parameter.
617 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
618 parameter.
619 (tui_gen_win_info::make_visible): Update.
620 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
621 parameter.
622 * tui/tui-data.h (enum tui_box): New enum.
623 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
624
625 2019-06-25 Tom Tromey <tom@tromey.com>
626
627 * tui/tui-layout.c (make_source_or_disasm_window): Always use
628 init_and_make_win for EXEC_INFO_WIN.
629 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
630 longer inline.
631 (struct tui_win_info) <~tui_win_info>: Inline.
632 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
633 Don't declare.
634 * tui/tui-data.c (source_win, disasm_win): Remove globals.
635 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
636 Remove.
637 (tui_initialize_static_data): Update.
638 (~tui_gen_win_info): Handle more cleanup here.
639 (~tui_source_window_base): Delete "execution_info".
640 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
641
642 2019-06-25 Tom Tromey <tom@tromey.com>
643
644 * tui/tui-layout.c (make_command_window): Don't set
645 can_highlight.
646 (show_source_disasm_command): Call the reset method.
647 (show_data): Don't set can_highlight. Call the reset method.
648 (tui_gen_win_info::reset): Rename from init_gen_win_info
649 (init_and_make_win): Simplify. Return tui_gen_win_info.
650 (show_source_or_disasm_and_command): Call the reset method.
651 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
652 (struct tui_cmd_window): Set can_highlight.
653
654 2019-06-25 Tom Tromey <tom@tromey.com>
655
656 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
657 from make_visible.
658 (tui_make_visible, tui_make_invisible): Rewrite.
659 (tui_win_info::make_visible): Remove.
660 (tui_source_window_base::make_visible): Update.
661 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
662 method. Moved from...
663 (struct tui_win_info) <make_visible>: ...here.
664
665 2019-06-25 Tom Tromey <tom@tromey.com>
666
667 * tui/tui-winsource.c
668 (tui_source_window_base::do_scroll_horizontal): Remove direction
669 parameter.
670 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
671 direction parameter.
672 * tui/tui-win.c (tui_win_info::forward_scroll)
673 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
674 (tui_win_info::right_scroll): Update.
675 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
676 direction parameter.
677 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
678 direction parameter.
679 * tui/tui-data.h (enum tui_scroll_direction): Remove.
680 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
681 Remove direction parameter.
682 (struct tui_source_window_base, struct tui_source_window)
683 (struct tui_disasm_window, struct tui_data_window)
684 (struct tui_cmd_window): Update.
685
686 2019-06-25 Tom Tromey <tom@tromey.com>
687
688 * tui/tui-winsource.h (tui_set_exec_info_content)
689 (tui_show_exec_info_content, tui_erase_exec_info_content)
690 (tui_clear_exec_info_content, tui_update_exec_info): Change
691 argument to tui_source_window_base.
692 * tui/tui-winsource.c (tui_set_exec_info_content)
693 (tui_show_exec_info_content, tui_erase_exec_info_content)
694 (tui_clear_exec_info_content, tui_update_exec_info): Change
695 argument to tui_source_window_base.
696
697 2019-06-25 Tom Tromey <tom@tromey.com>
698
699 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
700 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
701
702 2019-06-25 Tom Tromey <tom@tromey.com>
703
704 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
705 check.
706
707 2019-06-25 Tom Tromey <tom@tromey.com>
708
709 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
710 type to void.
711 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
712 type to void.
713 * tui/tui-source.c (tui_set_source_content): Update.
714 * tui/tui-disasm.c (tui_set_disassem_content): Update.
715
716 2019-06-25 Tom Tromey <tom@tromey.com>
717
718 * tui/tui-win.c (window_name_completer, tui_set_focus)
719 (tui_all_windows_info): Use name method.
720 * tui/tui-data.h (struct tui_gen_win_info)
721 (struct tui_source_window, struct tui_disasm_window)
722 (struct tui_data_window, struct tui_cmd_window) <name>: New
723 method.
724 (tui_win_name): Don't declare.
725 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
726 (tui_win_name): Remove.
727
728 2019-06-25 Tom Tromey <tom@tromey.com>
729
730 * tui/tui-winsource.h (tui_update_source_window)
731 (tui_update_source_window_as_is): Change parameter type.
732 * tui/tui-winsource.c (tui_update_source_window): Change win_info
733 to be a tui_source_window_base.
734 (tui_update_source_window_as_is): Likewise.
735 * tui/tui-win.c (make_visible_with_new_height): Update.
736
737 2019-06-25 Tom Tromey <tom@tromey.com>
738
739 * tui/tui-winsource.c (tui_erase_source_content)
740 (tui_show_source_content, tui_show_exec_info_content)
741 (tui_erase_exec_info_content): Use refresh_window method.
742 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
743 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
744 from tui_refresh_win.
745 (tui_data_window::refresh_window): New method.
746 (tui_win_info::refresh, tui_source_window_base::refresh)
747 (tui_refresh_all): Use refresh_window method.
748 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
749 method.
750 * tui/tui-regs.c (tui_display_register): Call refresh_window
751 method.
752 * tui/tui-layout.c (show_source_disasm_command)
753 (show_source_or_disasm_and_command): Call refresh_window method.
754 * tui/tui-data.h (struct tui_gen_win_info)
755 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
756 New method.
757
758 2019-06-25 Tom Tromey <tom@tromey.com>
759
760 * tui/tui.c (tui_rl_other_window, tui_enable)
761 (tui_is_window_visible, tui_get_command_dimension): Update.
762 * tui/tui-winsource.c (tui_update_source_window_as_is)
763 (tui_clear_source_content, tui_erase_source_content)
764 (tui_show_source_line, tui_source_window_base::refill)
765 (tui_source_window_base::do_scroll_horizontal)
766 (tui_source_window_base::set_is_exec_point_at)
767 (tui_update_breakpoint_info, tui_set_exec_info_content)
768 (tui_alloc_source_buffer, tui_line_is_displayed)
769 (tui_addr_is_displayed): Update.
770 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
771 (tui_check_and_display_highlight_if_needed)
772 (tui_win_info::make_visible, tui_win_info::refresh)
773 (tui_refresh_all): Update.
774 * tui/tui-windata.c (tui_first_data_item_displayed)
775 (tui_delete_data_content_windows, tui_erase_data_content)
776 (tui_display_all_data, tui_data_window::refresh_all)
777 (tui_check_data_values): Update.
778 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
779 (tui_set_win_focus_to, tui_win_info::forward_scroll)
780 (tui_win_info::backward_scroll, tui_refresh_all_win)
781 (tui_resize_all, tui_set_focus, tui_all_windows_info)
782 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
783 (tui_source_window_base::set_new_height)
784 (tui_data_window::set_new_height)
785 (make_invisible_and_set_new_height)
786 (make_visible_with_new_height, new_height_ok)
787 (parse_scrolling_args): Update.
788 * tui/tui-stack.c (tui_show_frame_info): Update.
789 * tui/tui-source.c (tui_set_source_content)
790 (tui_set_source_content_nil, tui_source_is_displayed)
791 (tui_source_window::do_scroll_vertical): Update.
792 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
793 (tui_display_registers_from, tui_display_reg_element_at_line)
794 (tui_check_register_values, tui_reg_command): Update.
795 * tui/tui-layout.c (tui_default_win_height)
796 (show_source_disasm_command, show_data, init_and_make_win)
797 (show_source_or_disasm_and_command): Update.
798 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
799 (tui_redisplay_readline, tui_mld_flush)
800 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
801 (tui_getc): Update.
802 * tui/tui-disasm.c (tui_set_disassem_content)
803 (tui_disasm_window::do_scroll_vertical): Update.
804 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
805 Now virtual.
806 (struct tui_win_info): Derive from tui_gen_win_info.
807 <~tui_win_info>: Mark as override.
808 <generic>: Remove member.
809 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
810 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
811 (~tui_data_window, ~tui_win_info)
812 (tui_free_all_source_wins_content): Update.
813 * tui/tui-command.c (tui_refresh_cmd_win): Update.
814
815 2019-06-25 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-layout.c (init_and_make_win): Use new.
818 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
819 destructor, initializers.
820 (tui_alloc_generic_win_info): Don't declare.
821 * tui/tui-data.c (_locator): Add argument to constructor.
822 (source_win, disasm_win): New globals.
823 (exec_info): Remove.
824 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
825 Update.
826 (tui_alloc_generic_win_info): Remove.
827 (init_content_element): Use new.
828 (tui_win_info::tui_win_info): Update.
829 (free_content_elements) <case DATA_WIN>: Use delete.
830
831 2019-06-25 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-wingeneral.c (tui_refresh_win): Update.
834 * tui/tui-windata.c (tui_first_data_item_displayed)
835 (tui_delete_data_content_windows): Update.
836 * tui/tui-win.c (tui_data_window::set_new_height): Update.
837 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
838 (tui_display_registers_from, tui_check_register_values): Update.
839 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
840 pointer.
841 * tui/tui-data.c (init_content_element): Update. Allocate the new
842 window.
843 (tui_free_data_content): Update.
844 (free_content_elements) <case DATA_WIN>: Free the window.
845
846 2019-06-25 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
849 Update.
850 * tui/tui-layout.c (make_command_window)
851 (show_source_disasm_command, show_data, init_and_make_win)
852 (show_source_or_disasm_and_command): Update.
853 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
854 method.
855 <can_highight, is_highlighted>: Now bool.
856 (tui_set_win_highlight): Don't declare.
857 * tui/tui-data.c (tui_set_win_highlight): Remove.
858
859 2019-06-25 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-wingeneral.c (make_visible): Remove check of window
862 type.
863
864 2019-06-25 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-win.c (tui_win_info::max_height)
867 (tui_cmd_window::max_height): New methods.
868 (new_height_ok): Call max_height.
869 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
870 <max_height>: New method.
871
872 2019-06-25 Tom Tromey <tom@tromey.com>
873
874 * tui/tui-win.c (tui_source_window_base::set_new_height)
875 (tui_data_window::set_new_height): New methods.
876 (make_invisible_and_set_new_height): Call set_new_height method.
877 * tui/tui-data.h (struct tui_win_info)
878 (struct tui_source_window_base, struct tui_data_window)
879 <set_new_height>: New method.
880
881 2019-06-25 Tom Tromey <tom@tromey.com>
882
883 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
884 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
885 tui_refresh_data_win.
886 * tui/tui-win.c (tui_source_window_base::refresh_all): New
887 method.
888 (tui_refresh_all_win): Call the refresh_all method.
889 (tui_set_focus): Likewise.
890 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
891 (struct tui_source_window_base, struct tui_data_window) <refresh>:
892 Likewise.
893
894 2019-06-25 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-winsource.h (tui_refill_source_window)
897 (tui_set_is_exec_point_at): Don't declare.
898 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
899 (tui_source_window_base::refill): Rename from
900 tui_refill_source_window.
901 (tui_source_window_base::do_scroll_horizontal): Update.
902 (tui_source_window_base::set_is_exec_point_at): Rename from
903 tui_set_is_exec_point_at.
904 (tui_update_all_breakpoint_info): Update.
905 * tui/tui-stack.c (tui_show_frame_info): Update.
906 * tui/tui-layout.c (show_data): Add cast.
907 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
908 * tui/tui-data.h (struct tui_source_window_base) <refill,
909 set_is_exec_point_at>: New methods.
910 (tui_source_windows, tui_add_to_source_windows): Update types.
911 (tui_add_to_source_windows): Remove redundant declaration.
912 * tui/tui-data.c (source_windows): Store tui_source_window_base.
913 (tui_source_windows): Change return type.
914 (tui_clear_source_windows_detail): Update.
915 (tui_add_to_source_windows): Change type of parameter.
916 (tui_free_all_source_wins_content): Update.
917
918 2019-06-25 Tom Tromey <tom@tromey.com>
919
920 * tui/tui-wingeneral.c (tui_win_info::refresh)
921 (tui_source_window_base::refresh): New methods.
922 (tui_refresh_all): Call the refresh method.
923 * tui/tui-data.h (struct tui_win_info)
924 (struct tui_source_window_base) <refresh>: New method.
925
926 2019-06-25 Tom Tromey <tom@tromey.com>
927
928 * tui/tui.h (tui_is_window_visible): Return bool.
929 * tui/tui.c (tui_is_window_visible): Return bool.
930 * tui/tui-wingeneral.c (tui_make_window, make_visible)
931 (tui_make_visible, tui_make_invisible)
932 (tui_win_info::make_visible)
933 (tui_source_window_base::make_visible, make_all_visible)
934 (tui_make_all_visible, tui_make_all_invisible): Update.
935 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
936 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
937 bool.
938 (struct tui_win_info, struct tui_source_window_base)
939 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
940 * tui/tui-data.c (tui_init_generic_part): Update.
941
942 2019-06-25 Tom Tromey <tom@tromey.com>
943
944 * tui/tui-wingeneral.c (tui_win_info::make_visible)
945 (tui_source_window_base::make_visible): New methods.
946 (make_all_visible): Make method call.
947 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
948 (struct tui_source_window_base, struct tui_cmd_window): Override
949 make_visible.
950 (tui_win_is_source_type): Don't declare.
951 * tui/tui-data.c (tui_win_is_source_type): Remove.
952
953 2019-06-25 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
956 NULL check.
957
958 2019-06-25 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
961 Inline constructor. Add initializers for members.
962 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
963 constructors; now inline in class.
964
965 2019-06-25 Tom Tromey <tom@tromey.com>
966
967 * tui/tui-regs.c (tui_show_registers): Update.
968 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
969 bool.
970 * tui/tui-data.c (tui_data_window::clear_detail)
971 (tui_data_window): Update.
972
973 2019-06-25 Tom Tromey <tom@tromey.com>
974
975 * tui/tui-windata.c (tui_display_all_data)
976 (tui_display_data_from_line, tui_display_data_from)
977 (tui_check_data_values, tui_data_window::do_scroll_vertical):
978 Update.
979 * tui/tui-regs.c (tui_last_regs_line_no)
980 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
981 (tui_show_registers, tui_show_register_group)
982 (tui_display_registers_from, tui_display_reg_element_at_line)
983 (tui_display_registers_from_line, tui_check_register_values)
984 (tui_reg_next, tui_reg_prev): Update.
985 * tui/tui-layout.c (tui_set_layout, show_data): Update.
986 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
987 tui_data_window.
988 (struct tui_win_info) <detail>: Remove. Add new fields from
989 tui_data_info.
990 (TUI_DATA_WIN): Add cast.
991 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
992 (~tui_data_window): Simplify.
993
994 2019-06-25 Tom Tromey <tom@tromey.com>
995
996 * tui/tui-layout.c (show_source_disasm_command)
997 (show_source_or_disasm_and_command): Update.
998 * tui/tui-io.c (update_cmdwin_start_line)
999 (tui_redisplay_readline): Update.
1000 * tui/tui-data.h (struct tui_command_info): Remove.
1001 (struct tui_win_info) <detail>: Remove command_info member.
1002 (struct tui_data_window) <start_line>: New member, from
1003 tui_command_info.
1004 (TUI_CMD_WIN): Add casts.
1005
1006 2019-06-25 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-winsource.c (tui_update_source_window)
1009 (tui_refill_source_window)
1010 (tui_source_window_base::do_scroll_horizontal)
1011 (tui_update_breakpoint_info, tui_set_exec_info_content)
1012 (tui_show_exec_info_content, tui_erase_exec_info_content)
1013 (tui_clear_exec_info_content): Update.
1014 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
1015 Update.
1016 * tui/tui-win.c (make_invisible_and_set_new_height)
1017 (make_visible_with_new_height): Update.
1018 * tui/tui-source.c (tui_set_source_content)
1019 (tui_show_symtab_source): Update.
1020 * tui/tui-layout.c (extract_display_start_addr)
1021 (show_source_disasm_command, show_data)
1022 (make_source_or_disasm_window)
1023 (show_source_or_disasm_and_command): Update.
1024 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
1025 (tui_disasm_window::do_scroll_vertical): Remove shadowing
1026 "gdbarch".
1027 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
1028 to tui_source_window_base.
1029 (struct tui_win_info) <detail>: Remove source_info member.
1030 (struct tui_source_window_base) <has_locator>: Inline.
1031 Move contents from tui_source_info; rename has_locator member to
1032 m_has_locator.
1033 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
1034 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
1035 header file.
1036 (tui_source_window_base::clear_detail, ~tui_source_window_base):
1037 Simplify.
1038 (tui_free_all_source_wins_content): Cast to
1039 tui_source_window_base.
1040
1041 2019-06-25 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-win.c (make_invisible_and_set_new_height)
1044 (make_visible_with_new_height): Call has_locator method.
1045 * tui/tui-layout.c (show_source_disasm_command, show_data)
1046 (show_source_or_disasm_and_command): Update for bool change.
1047 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
1048 (tui_win_info) <has_locator>: New method.
1049 (struct tui_source_window_base) <has_locator>: New method.
1050 (tui_win_has_locator): Don't declare.
1051 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
1052 from tui_win_has_locator.
1053 (tui_source_window_base): Use false, not FALSE.
1054
1055 2019-06-25 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
1058 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
1059 clear_detail method directly.
1060 (tui_clear_win_detail): Remove.
1061
1062 2019-06-25 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
1065 "this", not TUI_DISASM_WIN.
1066
1067 2019-06-25 Tom Tromey <tom@tromey.com>
1068
1069 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
1070 declare.
1071 * tui/tui-winsource.c
1072 (tui_source_window_base::do_scroll_horizontal): Rename from
1073 tui_horizontal_source_scroll.
1074 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
1075 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
1076 from tui_vertical_data_scroll.
1077 * tui/tui-win.h (tui_scroll): Don't declare.
1078 * tui/tui-win.c (tui_win_info::forward_scroll)
1079 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
1080 (tui_win_info::right_scroll): Rename and update.
1081 (tui_scroll_forward_command, tui_scroll_backward_command)
1082 (tui_scroll_left_command, tui_scroll_right_command): Update.
1083 (tui_scroll): Remove.
1084 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
1085 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
1086 from tui_vertical_source_scroll.
1087 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
1088 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
1089 from tui_vertical_disassem_scroll.
1090 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
1091 do_scroll_horizontal>: New methods.
1092 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
1093 Likewise.
1094 (struct tui_source_window_base): Add do_scroll_horizontal.
1095 (struct tui_source_window, struct tui_disasm_window): Add
1096 do_scroll_vertical.
1097 (struct tui_data_window, struct tui_cmd_window): Add
1098 do_scroll_horizontal and do_scroll_vertical.
1099 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
1100
1101 2019-06-25 Tom Tromey <tom@tromey.com>
1102
1103 * tui/tui-data.h (struct tui_source_window_base): New struct.
1104 (struct tui_source_window): Derive from tui_source_window_base.
1105 (struct tui_disasm_window): New struct.
1106 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
1107 from tui_source_window::clear_detail.
1108 (tui_source_window_base): Rename from tui_source_window.
1109 (~tui_source_window_base): Rename from ~tui_source_window.
1110 (tui_alloc_win_info): Create a tui_disasm_window.
1111
1112 2019-06-25 Tom Tromey <tom@tromey.com>
1113
1114 * tui/tui-data.h (struct tui_source_window)
1115 (struct tui_data_window): Declare destructors.
1116 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
1117 destructors.
1118 (tui_win_info): Simplify.
1119
1120 2019-06-25 Tom Tromey <tom@tromey.com>
1121
1122 * tui/tui-winsource.c (tui_display_main)
1123 (tui_update_source_windows_with_addr)
1124 (tui_update_all_breakpoint_info): Update.
1125 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1126 (new_height_ok, parse_scrolling_args): Update.
1127 * tui/tui-stack.c (tui_show_frame_info): Update.
1128 * tui/tui-data.h (struct tui_list): Remove.
1129 (tui_source_windows): Return a reference to a std::vector.
1130 * tui/tui-data.c (source_windows): Now a std::vector.
1131 (tui_source_windows): Change return type.
1132 (tui_clear_source_windows): Rewrite.
1133 (tui_clear_source_windows_detail, tui_add_to_source_windows)
1134 (tui_free_all_source_wins_content): Rewrite.
1135
1136 2019-06-25 Tom Tromey <tom@tromey.com>
1137
1138 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
1139 (struct tui_data_window, struct tui_cmd_window): Declare
1140 clear_detail method.
1141 * tui/tui-data.c (tui_source_window::clear_detail)
1142 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
1143 methods.
1144 (tui_clear_win_detail): Simplify.
1145
1146 2019-06-25 Tom Tromey <tom@tromey.com>
1147
1148 * tui/tui-layout.c (make_source_window, make_disasm_window)
1149 (make_source_or_disasm_window): Remove win_info_ptr parameter.
1150 Return the new window.
1151 (show_source_disasm_command, show_data)
1152 (show_source_or_disasm_and_command): Update.
1153
1154 2019-06-25 Tom Tromey <tom@tromey.com>
1155
1156 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
1157 parameter. Return the new window.
1158 (show_source_disasm_command): Update and remove NULL check.
1159 (show_source_or_disasm_and_command): Update.
1160
1161 2019-06-25 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
1164
1165 2019-06-25 Tom Tromey <tom@tromey.com>
1166
1167 * tui/tui-data.h (struct tui_win_info): Make constructor
1168 protected. Make destructor virtual. Add initializers.
1169 (tui_source_window, tui_data_window, tui_cmd_window): New
1170 classes.
1171 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
1172 constructor. Add "type" parameter.
1173 (tui_source_window, tui_data_window, tui_cmd_window): New
1174 constructors.
1175 (tui_alloc_win_info): Instantiate the appropriate subclass.
1176
1177 2019-06-25 Tom Tromey <tom@tromey.com>
1178
1179 * tui/tui-win.c (tui_resize_all): Use delete.
1180 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
1181 destructor.
1182 (tui_free_window): Don't declare.
1183 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
1184 Update.
1185
1186 2019-06-25 Tom Tromey <tom@tromey.com>
1187
1188 * tui/tui-data.h (struct tui_win_info): Add constructor.
1189 * tui/tui-data.c (tui_alloc_win_info): Use new.
1190 (tui_free_window): Use delete.
1191
1192 2019-06-22 Tom Tromey <tom@tromey.com>
1193
1194 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
1195 declare.
1196 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
1197
1198 2019-06-22 Tom Tromey <tom@tromey.com>
1199
1200 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
1201 declare.
1202 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
1203
1204 2019-06-22 Tom de Vries <tdevries@suse.de>
1205
1206 * dwarf2read.c (create_addrmap_from_aranges)
1207 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
1208 instead of '%zu'.
1209
1210 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * dwarf2read.h (dwarf2_section_info_def): Remove.
1213 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
1214 * dwarf2read.c (struct dwo_sections) <types>: Change type to
1215 std::vector<dwarf2_section_info>.
1216 (struct dwo_file) <~dwo_file>: Remove.
1217 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
1218 types field.
1219 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
1220 (dwarf2_read_debug_names): Likewise.
1221 (create_debug_types_hash_table): Change parameter type to
1222 array_view, adjust code accordingly.
1223 (dwarf2_locate_dwo_sections): Adjust to std::vector.
1224 (partial_die_info::fixup): Likewise.
1225 (determine_prefix): Likewise.
1226 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
1227
1228 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1229
1230 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
1231 gdb_bfd_ref_ptr.
1232 <~dwo_file>: Remove call to gdb_bfd_unref.
1233 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
1234 gdb_bfd_ref_ptr::get.
1235
1236 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1237
1238 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
1239 type to htab_up.
1240 * dwarf2read.c (struct dwo_file): Initialize fields.
1241 <~dwo_file>: New.
1242 (free_dwo_file): Remove, move content to ~dwo_file.
1243 (struct dwo_file_deleter): Remove.
1244 (dwo_file_up>: Remove custom deleter.
1245 (free_dwo_files): Remove.
1246 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
1247 dwo_files.
1248 (process_skeletonless_type_units): Call unique_ptr::get.
1249 (allocate_dwo_file_hash_table): Add deleter to created hash
1250 table. Change return type to htab_up.
1251 (lookup_dwo_file_slot): Don't memset dwo_file, call
1252 unique_ptr::get.
1253 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
1254 (create_dwo_unit_in_dwp_v2): Likewise.
1255 (open_and_init_dwo_file): Likewise.
1256 (free_dwo_file_from_slot): Remove.
1257
1258 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * dwarf2read.h (struct dwarf2_section_info) <readin,
1261 is_virtual>: Change type to bool.
1262 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
1263 true instead of 1.
1264
1265 2019-06-19 Tom Tromey <tom@tromey.com>
1266
1267 * tui/tui-data.h (tui_init_content_element): Don't declare.
1268
1269 2019-06-19 Tom Tromey <tom@tromey.com>
1270
1271 * tui/tui-data.h (tui_init_win_info): Don't declare.
1272
1273 2019-06-19 Tom de Vries <tdevries@suse.de>
1274
1275 * dwarf2read.h (abstract_to_concrete): Change type to
1276 std::unordered_map<sect_offset, std::vector<sect_offset>,
1277 gdb::hash_enum<sect_offset>>.
1278
1279 2019-06-19 Tom Tromey <tromey@adacore.com>
1280
1281 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
1282 EVAL_AVOID_SIDE_EFFECTS specially.
1283
1284 2019-06-19 Tom Tromey <tromey@adacore.com>
1285
1286 * source-cache.c (highlighter): New global.
1287 (source_cache::get_source_lines): Create a highlighter on demand.
1288
1289 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * defs.h (deprecated_interactive_hook): Delete declaration.
1292 * interps.c (clear_interpreter_hooks): Remove use of
1293 deprecated_interactive_hook.
1294 * top.c (deprecated_interactive_hook): Delete definition.
1295 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
1296
1297 2019-06-18 Tom de Vries <tdevries@suse.de>
1298
1299 PR gdb/24515
1300 * dwarf2read.h (abstract_to_concrete): Change type from
1301 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
1302 std::unordered_map<sect_offset, std::vector<sect_offset>>.
1303 * dwarf2read.c (read_variable): Update.
1304 (dwarf2_fetch_die_loc_sect_off): Update.
1305
1306 2019-06-17 Tom de Vries <tdevries@suse.de>
1307
1308 PR gdb/24617
1309 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
1310 accessing parent[parent_len - 1].
1311
1312 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
1313
1314 PR gdb/24364
1315 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
1316 call dtrace_process_dof with NULL dof.
1317
1318 2019-06-16 Tom de Vries <tdevries@suse.de>
1319
1320 PR gdb/24445
1321 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
1322
1323 2019-06-16 Tom Tromey <tom@tromey.com>
1324
1325 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
1326 (make_all_visible): Use address of member.
1327
1328 2019-06-16 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
1331 (tui_free_window, free_content, free_content_elements): Remove
1332 unnecessary cast.
1333 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
1334 cast.
1335 * tui/tui-regs.c (tui_show_register_group)
1336 (tui_display_registers_from, tui_display_reg_element_at_line):
1337 Remove unnecessary cast.
1338
1339 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * linux-nat.c (normal_mask): Delete.
1342 (_initialize_linux_nat): Don't initialise normal_mask.
1343
1344 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
1345
1346 PR gdb/24445
1347 * dwarf-index-write.h (write_psymtabs_to_index): Add
1348 dwz_basename parameter.
1349 * dwarf-index-write.c (write_gdbindex): Move file writing to
1350 write_gdbindex_1. Change return type void.
1351 (assert_file_size): Move up, remove filename parameter.
1352 (write_gdbindex_1): New function.
1353 (write_debug_names): Change return type to void, call
1354 assert_file_size.
1355 (struct index_wip_file): New struct.
1356 (write_psymtabs_to_index): Add dwz_basename parameter. Move
1357 file logic to index_wip_file. Write index for dwz file if
1358 needed.
1359 (save_gdb_index_command): Pass basename of dwz file, if present.
1360 * dwarf-index-cache.c (index_cache::store): Obtain and pass
1361 build-id of dwz file, if present.
1362 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
1363 (dwarf2_get_dwz_file): Likewise.
1364 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
1365 (dwarf2_get_dwz_file): Likewise.
1366
1367 2019-06-16 Tom Tromey <tom@tromey.com>
1368
1369 * coffread.c (process_coff_symbol): Use xstrdup.
1370 * value.c (create_internalvar): Use xstrdup.
1371
1372 2019-06-16 Tom Tromey <tom@tromey.com>
1373
1374 * valops.c (value_cast, value_slice): Remove unnecessary cast.
1375 * breakpoint.c (stopin_command, stopat_command)
1376 (until_break_command, decode_location_default): Remove unnecessary
1377 cast.
1378 * utils.c (subset_compare): Remove unnecessary cast.
1379 * ada-lang.c (ada_update_initial_language): Remove unnecessary
1380 cast.
1381 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
1382 cast.
1383 * infcmd.c (path_command): Remove unnecessary cast.
1384 * coffread.c (decode_type): Remove unnecessary cast.
1385 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
1386 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
1387 * tui/tui-stack.c (tui_show_locator_content)
1388 (tui_show_frame_info): Remove unnecessary cast.
1389 * tui/tui-win.c (tui_scroll_forward_command)
1390 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
1391 (parse_scrolling_args): Remove unnecessary cast.
1392 * tui/tui-data.c (init_win_info, tui_del_window)
1393 (tui_free_window, tui_del_data_windows, tui_free_data_content)
1394 (free_content_elements): Remove unnecessary cast.
1395 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
1396 unnecessary cast.
1397 * tui/tui-source.c (tui_set_source_content)
1398 (tui_vertical_source_scroll): Remove unnecessary cast.
1399 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
1400 cast.
1401 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
1402 * tui/tui-regs.c (tui_display_registers_from)
1403 (tui_display_register): Remove unnecessary cast.
1404 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
1405 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
1406 (make_visible): Remove unnecessary cast.
1407 * tui/tui-winsource.c (tui_erase_source_content)
1408 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
1409 unnecessary cast.
1410 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
1411 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
1412 * stabsread.c (read_type, read_array_type, read_range_type):
1413 Remove unnecessary cast.
1414 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
1415 (parse_symbol, parse_type, upgrade_type, parse_external)
1416 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
1417 unnecessary cast.
1418 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
1419
1420 2019-06-16 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui-data.c (tui_alloc_generic_win_info)
1423 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
1424 checks.
1425
1426 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
1427 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * f-typeprint.c (f_print_type): Don't return early for not
1430 associated or not allocated types.
1431 (f_type_print_varspec_suffix): Add print_rank parameter and print
1432 ranks of array types in case they dangling.
1433 (f_type_print_base): Add print_rank parameter.
1434
1435 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * NEWS: Mention new MI commands.
1438 * break-catch-throw.c (enum exception_event_kind): Move to
1439 breakpoint.h.
1440 (print_mention_exception_catchpoint): Output text as a single
1441 message.
1442 (catch_exception_command_1): Rename to...
1443 (catch_exception_event): ...this, make non-static, update header
1444 command, and change some parameter types.
1445 (catch_catch_command): Update for changes to
1446 catch_exception_command_1.
1447 (catch_throw_command): Likewise.
1448 (catch_rethrow_command): Likewise.
1449 * breakpoint.c (enum exception_event_kind): Delete.
1450 * breakpoint.h (enum exception_event_kind): Moved here from
1451 break-catch-throw.c.
1452 (catch_exception_event): Declare.
1453 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
1454 (mi_cmd_catch_throw): New function.
1455 (mi_cmd_catch_rethrow): New function.
1456 (mi_cmd_catch_catch): New function.
1457 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
1458 'catch-catch' entries.
1459 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
1460 (mi_cmd_catch_rethrow): Declare.
1461 (mi_cmd_catch_catch): Declare.
1462
1463 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * annotate.c (annotate_source_line): Change return type to void,
1466 update implementation to match.
1467 * annotate.h (annotate_source_line): Change return type to void,
1468 update header comment.
1469 * stack.c (print_frame_info): Don't change what frame information
1470 is printed based on whether annotations are on or not.
1471
1472 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
1475 (annotate_source): Make static.
1476 (annotate_source_line): Moved from source.c and renamed from
1477 identify_source_line. Update the return type.
1478 * annotate.h (annotate_source): Delete declaration.
1479 (annotate_source_line): Declaration moved from source.h, and
1480 renamed from identify_source_line. Return type updated.
1481 * source.c (identify_source_line): Moved to annotate.c and renamed
1482 to annotate_source_line.
1483 (info_line_command): Remove check of annotation_level.
1484 * source.h (identify_source_line): Move declaration to annotate.h
1485 and rename to annotate_source_line.
1486 * stack.c: Add 'annotate.h' include.
1487 (print_frame_info): Remove check of annotation_level before
1488 calling annotate_source_line.
1489
1490 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * source-cache.c (source_cache::get_plain_source_lines): Use
1493 open_source_file_with_line_charpos instead of just
1494 open_source_file, remove call to find_source_lines.
1495 (source_cache::get_source_lines): Likewise.
1496 * source.c (find_source_lines): Make static.
1497 (get_filename_and_charpos): Renamed into...
1498 (open_source_file_with_line_charpos): ..this along with changes to
1499 return a scoped_fd, and some other minor clean ups.
1500 (identify_source_line): Use open_source_file_with_line_charpos.
1501 (search_command_helper): Use open_source_file_with_line_charpos
1502 instead of just open_source_file, remove call to
1503 find_source_lines.
1504 * source.h (open_source_file_with_line_charpos): Declare new
1505 function.
1506 (find_source_lines): Delete declaration.
1507
1508 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * source.c (get_filename_and_charpos): Remove fullname
1511 parameter.
1512 (identify_source_line): Update call to get_filename_and_charpos.
1513
1514 2019-06-14 Tom Tromey <tromey@adacore.com>
1515
1516 PR gdb/24502:
1517 * ui-style.h (skip_ansi_escape): Update comment.
1518 * ui-file.h (class no_terminal_escape_file): New class.
1519 * ui-file.c (no_terminal_escape_file::write)
1520 (no_terminal_escape_file::puts): New methods.
1521 * cli/cli-logging.c (handle_redirections): Use
1522 no_terminal_escape_file.
1523
1524 2019-06-14 Tom Tromey <tromey@adacore.com>
1525
1526 * NEWS: Move convenience variable news above Python news.
1527
1528 2019-06-14 Tom Tromey <tom@tromey.com>
1529
1530 * gnulib: Move directory to top-level.
1531 * configure.ac: Don't configure gnulib.
1532 * configure: Rebuild.
1533 * common/common-defs.h: Use new path to gnulib.
1534 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
1535 (GNULIB_H): Remove.
1536 (INCGNU): Look in new gnulib location.
1537 (HFILES_NO_SRCDIR): Remove gnulib files.
1538 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
1539 (generated_files): Remove GNULIB_H.
1540 ($(LIBGNU), all-lib): Remove targets.
1541 (distclean): Don't mention GNULIB_BUILDDIR.
1542 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
1543
1544 2019-06-14 Tom Tromey <tromey@adacore.com>
1545
1546 * symfile.c (add_symbol_file_command): Remove obsolete comment.
1547 Warn if symbol file does not provide any symbols.
1548
1549 2019-06-14 Tom Tromey <tromey@adacore.com>
1550
1551 * source.c (find_and_open_source): Respect basenames_may_differ.
1552
1553 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * annotate.c (annotate_breakpoints_invalid): Make use of
1556 scoped_restore_terminal_state.
1557 (annotate_frames_invalid): Likewise.
1558
1559 2019-06-14 Tom Tromey <tromey@adacore.com>
1560
1561 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
1562 allow assignment to an internalvar.
1563
1564 2019-06-14 Tom Tromey <tromey@adacore.com>
1565
1566 * ada-lex.l: Allow "_" in attribute names.
1567
1568 2019-06-14 Tom Tromey <tromey@adacore.com>
1569
1570 PR gdb/24653:
1571 * regcache.c (registers_changed): Don't call alloca.
1572 * top.c (execute_command): Don't call alloca.
1573
1574 2019-06-13 Pedro Alves <palves@redhat.com>
1575
1576 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
1577 'expression'. When parsing an expression, error out if there's
1578 junk after "unlimited".
1579 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1580 (do_set_command): Adjust calls to is_unlimited_literal.
1581
1582 2019-06-13 Pedro Alves <palves@redhat.com>
1583
1584 * compile/compile.c (make_compile_options_def_group): Add braces
1585 around array_view initializer.
1586 * thread.c (make_thread_apply_all_options_def_group)
1587 (make_thread_apply_all_options_def_group): Likewise.
1588
1589 2019-06-13 Pedro Alves <palves@redhat.com>
1590
1591 * NEWS (New commands): Mention "maint test-options
1592 require-delimiter", "maint test-options unknown-is-error", "maint
1593 test-options unknown-is-operand" and "maint show
1594 test-options-completion-result".
1595 (New command options, command completion): New section.
1596 (Completion improvements): New section.
1597 Mention that you can abbreviate "unlimited".
1598
1599 2019-06-13 Pedro Alves <palves@redhat.com>
1600
1601 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
1602 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
1603 * unittests/cli-utils-selftests.c (test_parse_flags)
1604 (test_parse_flags_qcs): Delete.
1605 (test_cli_utils): Don't call deleted functions.
1606
1607 2019-06-13 Pedro Alves <palves@redhat.com>
1608
1609 * thread.c: Include "cli/cli-option.h".
1610 (tp_array_compar_ascending): Global.
1611 (tp_array_compar): Delete function.
1612 (tp_array_compar_ascending, tp_array_compar_descending): New
1613 functions.
1614 (ascending_option_def, qcs_flag_option_def)
1615 (thr_qcs_flags_option_defs)
1616 (make_thread_apply_all_options_def_group)
1617 (make_thread_apply_options_def_group): New.
1618 (thread_apply_all_command): Use gdb::option::process_options.
1619 (thread_apply_command_completer)
1620 (thread_apply_all_command_completer): New.
1621 (thread_apply_command): Use gdb::option::process_options.
1622 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
1623 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
1624 to generate help text of "thread apply". Adjust "taas"'s help.
1625 * tid-parse.c (tid_range_parser::in_thread_range): New method.
1626 * tid-parse.h (tid_range_parser::in_thread_range): New method.
1627
1628 2019-06-13 Pedro Alves <palves@redhat.com>
1629
1630 * thread.c (thread_apply_command): Check for invalid TID with
1631 isdigit instead of !isalpha.
1632
1633 2019-06-13 Pedro Alves <palves@redhat.com>
1634
1635 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
1636 (validate_flags_qcs): New.
1637 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
1638 (validate_flags_qcs): Declare.
1639 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
1640 (make_frame_apply_options_def_group): New.
1641 (frame_apply_command_count): Process options with
1642 gdb::option::process_options.
1643 (frame_apply_completer): New.
1644 (frame_apply_level_completer, frame_apply_all_completer)
1645 (frame_apply_completer): New.
1646 (_initialize_stack): Update help of "frame apply", "frame apply
1647 level", "frame apply all" and "faas" to mention supported options
1648 and install command completers.
1649 * stack.h (frame_apply_all_completer): Declare.
1650 * thread.c: Include "stack.h".
1651 (tfaas_command): Add "--".
1652 (_initialize_thread): Update help "tfaas" to mention supported
1653 options and install command completer.
1654
1655 2019-06-13 Pedro Alves <palves@redhat.com>
1656
1657 * completer.c (complete_nested_command_line): New.
1658 (gdb_completion_word_break_characters_throw): Add assertion.
1659 * completer.h (complete_nested_command_line): Declare.
1660
1661 2019-06-13 Pedro Alves <palves@redhat.com>
1662
1663 * stack.c (parse_backtrace_qualifiers): New.
1664 (backtrace_command): Use it.
1665 (backtrace_command_completer): Complete on qualifiers.
1666
1667 2019-06-13 Pedro Alves <palves@redhat.com>
1668
1669 * frame.c: Include "cli/cli-option.h.
1670 (user_set_backtrace_options): New.
1671 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
1672 Delete.
1673 (get_prev_frame): Adjust.
1674 (boolean_option_def, uinteger_option_def)
1675 (set_backtrace_option_defs): New.
1676 (_initialize_frame): Adjust and use
1677 gdb::option::add_setshow_cmds_for_options to install "set
1678 backtrace past-main" and "set backtrace past-entry".
1679 * frame.h: Include "cli/cli-option.h".
1680 (struct frame_print_options): Forward declare.
1681 (print_frame_arguments_all, print_frame_arguments_scalars)
1682 (print_frame_arguments_none): Declare.
1683 (print_entry_values): Delete declaration.
1684 (struct frame_print_options, user_frame_print_options): New.
1685 (struct set_backtrace_options): New.
1686 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
1687 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1688 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1689 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
1690 (list_args_or_locals): Add frame_print_options parameter.
1691 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1692 * python/py-framefilter.c (enumerate_args): Pass down
1693 USER_FRAME_PRINT_OPTIONS.
1694 * stack.c: Include "cli/cli-option.h".
1695 (print_frame_arguments_all, print_frame_arguments_scalars)
1696 (print_frame_arguments_none): Declare.
1697 (print_raw_frame_arguments, print_entry_values): Delete.
1698 (user_frame_print_options): New.
1699 (boolean_option_def, enum_option_def, frame_print_option_defs):
1700 New.
1701 (struct backtrace_cmd_options): New.
1702 (bt_flag_option_def): New.
1703 (backtrace_command_option_defs): New.
1704 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1705 (print_frame_arg, read_frame_arg, print_frame_args)
1706 (print_frame_info, print_frame): Add frame_print_options parameter
1707 and use it.
1708 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
1709 (backtrace_command_1): Add frame_print_options and
1710 backtrace_cmd_options parameters and use them.
1711 (make_backtrace_options_def_group): New.
1712 (backtrace_command): Process command options with
1713 gdb::option::process_options.
1714 (backtrace_command_completer): New.
1715 (_initialize_stack): Extend "backtrace"'s help to mention
1716 supported options. Install completer for "backtrace".
1717 Install some settings commands with add_setshow_cmds_for_options.
1718
1719 2019-06-13 Pedro Alves <palves@redhat.com>
1720
1721 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
1722 and that "set/show print raw frame-arguments" are now deprecated.
1723
1724 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
1725 command.
1726 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
1727 * stack.c (_initialize_stack): Install "set/show print
1728 raw-frame-arguments", and deprecate "set/show print raw
1729 frame-arguments".
1730 * valprint.c (_initialize_valprint): Deprecate "set/show print
1731 raw".
1732
1733 2019-06-13 Pedro Alves <palves@redhat.com>
1734
1735 * compile/compile.c (struct compile_options): New.
1736 (compile_flag_option_def, compile_command_option_defs)
1737 (make_compile_options_def_group): New.
1738 (compile_file_command): Handle options with
1739 gdb::option::process_options.
1740 (compile_file_command_completer): New function.
1741 (compile_code_command): Handle options with
1742 gdb::option::process_options.
1743 (compile_code_command_completer): New function.
1744 (_initialize_compiler): Install completers for "compile code" and
1745 "compile file". Mention available options in "compile code" and
1746 "compile code"'s help.
1747 * completer.c (advance_to_completion_word): New, factored out from
1748 ...
1749 (advance_to_expression_complete_word_point): ... this.
1750 (advance_to_filename_complete_word_point): New.
1751 * completer.h (advance_to_filename_complete_word_point): New
1752 declaration.
1753
1754 2019-06-13 Pedro Alves <palves@redhat.com>
1755
1756 * compile/compile.c: Include "cli/cli-option.h".
1757 (compile_print_value): Scope data pointer is now a
1758 value_print_options pointer; adjust.
1759 (compile_print_command): Process options. Scope data pointer is
1760 now a value_print_options pointer; adjust.
1761 (_initialize_compile): Update "compile print"'s help to include
1762 supported options. Install a completer for "compile print".
1763 * cp-valprint.c (show_vtblprint, show_objectprint)
1764 (show_static_field_print): Delete.
1765 (_initialize_cp_valprint): Don't install "set print
1766 static-members", "set print vtbl", "set print object" here.
1767 * printcmd.c: Include "cli/cli-option.h" and
1768 "common/gdb_optional.h".
1769 (print_command_parse_format): Rework to fill in a
1770 value_print_options instead of a format_data.
1771 (print_value): Change parameter type from format_data pointer to
1772 value_print_options reference. Adjust.
1773 (print_command_1): Process options. Adjust to pass down a
1774 value_print_options.
1775 (print_command_completer): New.
1776 (_initialize_printcmd): Install print_command_completer as
1777 handle_brkchars completer for the "print" command. Update
1778 "print"'s help to include supported options.
1779 * valprint.c: Include "cli/cli-option.h".
1780 (show_vtblprint, show_objectprint, show_static_field_print): Moved
1781 here from cp-valprint.c.
1782 (boolean_option_def, uinteger_option_def)
1783 (value_print_option_defs, make_value_print_options_def_group):
1784 New. Use gdb::option::add_setshow_cmds_for_options to install
1785 "set print elements", "set print null-stop", "set print repeats",
1786 "set print pretty", "set print union", "set print array", "set
1787 print address", "set print symbol", "set print array-indexes".
1788 * valprint.h: Include <string> and "cli/cli-option.h".
1789 (make_value_print_options_def_group): Declare.
1790 (print_value): Change parameter type from format_data pointer to
1791 value_print_options reference.
1792 (print_command_completer): Declare.
1793
1794 2019-06-13 Pedro Alves <palves@redhat.com>
1795
1796 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
1797 (COMMON_SFILES): Add maint-test-settings.c.
1798 * cli/cli-decode.c (boolean_enums): New global, factored out from
1799 ...
1800 (add_setshow_boolean_cmd): ... here.
1801 * cli/cli-decode.h (boolean_enums): Declare.
1802 * cli/cli-option.c: New file.
1803 * cli/cli-option.h: New file.
1804 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
1805 factored out from ...
1806 (parse_cli_boolean_value(const char *)): ... this.
1807 (is_unlimited_literal): Change parameter type to pointer to
1808 pointer. Adjust and advance ARG pointer.
1809 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1810 (parse_cli_var_enum): New, factored out from ...
1811 (do_set_command): ... this. Adjust.
1812 * cli/cli-setshow.h (parse_cli_boolean_value)
1813 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1814 (parse_cli_var_enum): Declare.
1815 * cli/cli-utils.c: Include "cli/cli-option.h".
1816 (get_ulongest): New.
1817 * cli/cli-utils.h (get_ulongest): Declare.
1818 (check_for_argument): New overloads.
1819 * maint-test-options.c: New file.
1820
1821 2019-06-13 Pedro Alves <palves@redhat.com>
1822
1823 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
1824 parse a range if "-" is at the end of the string.
1825
1826 2019-06-13 Pedro Alves <palves@redhat.com>
1827
1828 * cli/cli-setshow.c (parse_auto_binary_operation)
1829 (parse_cli_boolean_value): Don't allow "o".
1830
1831 2019-06-13 Pedro Alves <palves@redhat.com>
1832
1833 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
1834 * NEWS: Mention maint test-settings KIND.
1835 * maint-test-settings.c: New file.
1836
1837 2019-06-13 Pedro Alves <palves@redhat.com>
1838
1839 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
1840 completer.
1841 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
1842 "set" completers.
1843
1844 2019-06-13 Pedro Alves <palves@redhat.com>
1845
1846 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
1847 after item.
1848
1849 2019-06-13 Pedro Alves <palves@redhat.com>
1850
1851 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
1852
1853 2019-06-13 Pedro Alves <palves@redhat.com>
1854
1855 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
1856 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
1857 call.
1858 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
1859 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
1860 calls.
1861 (check_for_argument): Skip spaces after argument.
1862
1863 2019-06-13 Pedro Alves <palves@redhat.com>
1864
1865 * thread.c (thread_apply_command): Adjust TID parsing.
1866 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
1867 detected before end of string.
1868 (tid_is_in_list): Error out if LIST is invalid.
1869
1870 2019-06-13 Pedro Alves <palves@redhat.com>
1871
1872 * completer.c (complete_line_internal_1): Rewind completion word
1873 point.
1874 (completion_tracker::advance_custom_word_point_by): Change
1875 parameter type to int.
1876 * completer.h (completion_tracker::advance_custom_word_point_by):
1877 Likewise.
1878
1879 2019-06-13 Pedro Alves <palves@redhat.com>
1880
1881 * completer.c (advance_to_completion_word): Handle delimiters.
1882
1883 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
1884
1885 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
1886
1887 2019-06-11 Tom Tromey <tom@tromey.com>
1888
1889 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
1890 (xmalloc_failed): Move to alloc.c.
1891 * alloc.c: New file.
1892 * Makefile.in (COMMON_SFILES): Add alloc.c.
1893
1894 2019-06-11 Tom Tromey <tom@tromey.com>
1895
1896 * nat/linux-waitpid.c: Don't include server.h.
1897 (linux_debug): Remove.
1898 (my_waitpid): Update.
1899
1900 2019-06-11 Tom Tromey <tromey@adacore.com>
1901
1902 * infcall.c (_initialize_infcall): Remove trailing newline from
1903 help.
1904 * user-regs.c (_initialize_user_regs): Remove trailing newline
1905 from help.
1906 * typeprint.c (_initialize_typeprint): Remove trailing newline
1907 from help.
1908 * reverse.c (_initialize_reverse): Remove trailing newlines from
1909 help.
1910 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
1911 from help.
1912 * language.c (add_set_language_command): Remove trailing newline
1913 from help.
1914 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
1915 help.
1916 * disasm.c (_initialize_disasm): Remove trailing newline from
1917 help.
1918 * top.c (init_main): Remove trailing newline from help.
1919 * interps.c (_initialize_interpreter): Remove trailing newline
1920 from help.
1921 * btrace.c (_initialize_btrace): Remove trailing newlines from
1922 help.
1923 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
1924 from help.
1925 * python/python.c (_initialize_python): Remove trailing newline
1926 from help.
1927 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
1928 help.
1929 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
1930 from help. Reformat some text.
1931 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
1932 from help.
1933 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
1934 newline from help.
1935
1936 2019-06-11 Tom Tromey <tromey@adacore.com>
1937
1938 * darwin-nat.c (darwin_decode_exception_message)
1939 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
1940
1941 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * valops.c (value_slice): Check for not allocated or not
1944 associated values.
1945
1946 2019-06-10 Tom de Vries <tdevries@suse.de>
1947
1948 PR gdb/24618
1949 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
1950 sure an empty slot (defined by a 32-bit zero pair) is recognized as
1951 invalid.
1952
1953 2019-06-10 Tom de Vries <tdevries@suse.de>
1954
1955 PR gdb/24611
1956 * linespec.c (linespec_lexer_lex_string): Remove incorrect
1957 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
1958
1959 2019-06-10 Tom de Vries <tdevries@suse.de>
1960
1961 PR symtab/24545
1962 * symtab.c (struct demangled_name_entry): Add language field.
1963 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
1964 static minimal symbol". Set and use language field.
1965
1966 2019-06-10 Tom Tromey <tromey@adacore.com>
1967
1968 * ada-lang.c (_initialize_ada_language): Update help text.
1969
1970 2019-06-10 Tom Tromey <tromey@adacore.com>
1971
1972 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
1973 with a newline.
1974 * guile/guile.c (handle_boot_error): Don't end warning with a
1975 newline.
1976 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
1977 warning with a newline.
1978 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
1979 newline.
1980 (s12z_frame_cache): Likewise.
1981 * dwarf-index-cache.c (index_cache::store): Don't end warning with
1982 a newline.
1983 * solib-svr4.c (disable_probes_interface): Don't end warning with
1984 a newline.
1985 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
1986 newline.
1987 * python/python.c (do_finish_initialization): Don't end warning
1988 with a newline.
1989
1990 2019-06-10 Tom Tromey <tom@tromey.com>
1991
1992 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1993 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
1994 gdbpy_enter.
1995
1996 2019-06-10 Tom Tromey <tromey@adacore.com>
1997
1998 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
1999 data.
2000 (elf_new_init): Don't call stabsread_new_init.
2001 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
2002 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
2003 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
2004
2005 2019-06-10 Tom de Vries <tdevries@suse.de>
2006
2007 PR symtab/16264
2008 PR symtab/24517
2009 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
2010
2011 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
2012
2013 * source.c (find_and_open_source): Also rewrite relative file
2014 names.
2015
2016 2019-04-26 Amos Bird <amosbird@gmail.com>
2017
2018 * annotate.c (annotate_thread_exited): Add "thread-exited"
2019 annotation.
2020
2021 2019-06-06 Tom Tromey <tromey@adacore.com>
2022
2023 * maint.h (class scoped_command_stats): Use
2024 DISABLE_COPY_AND_ASSIGN.
2025 <print_time>: New method.
2026 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
2027 print_time.
2028 (scoped_command_stats::print_time): New method.
2029
2030 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
2033 instructions of lengths 6 or 8 bytes.
2034
2035 2019-06-04 Pedro Alves <palves@redhat.com>
2036
2037 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
2038
2039 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
2040 * breakpoint.c (condition_completer): Likewise.
2041 * cli/cli-dump.c (scan_expression): Likewise.
2042 * common/filestuff.c (mkdir_recursive): Likewise.
2043 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
2044 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
2045 (gdb_abspath): Likewise.
2046 * compile/compile-cplus-types.c
2047 (compile_cplus_instance::decl_name): Likewise.
2048 * completer.c (complete_explicit_location):
2049 (signal_completer, reg_or_group_completer_1): Likewise.
2050 * cp-support.c (cp_remove_params_if_any): Likewise.
2051 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
2052 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
2053 * infcmd.c (strip_bg_char): Likewise.
2054 * linespec.c (copy_token_string): Likewise.
2055 * mi/mi-main.c (output_cores): Likewise.
2056 * psymtab.c (psymtab_search_name):
2057 * symfile.c (test_set_ext_lang_command): Likewise.
2058 * target.c (target_fileio_read_stralloc): Likewise.
2059 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
2060 * value.c (complete_internalvar): Likewise.
2061
2062 2019-06-04 Christian Biesinger <cbiesinger@google.com>
2063
2064 Add objfile property to gdb.Type.
2065 * NEWS: Mention Python API addition.
2066 * python/py-type.c (typy_get_objfile): New method.
2067
2068 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2069
2070 * NEWS: Mention the new set|show style [title|highlight].
2071 Mention changes to "show style", "help" and "apropos".
2072
2073 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2074
2075 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
2076 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
2077 instead of print_help_for_command.
2078 (print_doc_of_command): New function.
2079 (help_list): Add 'apropos -v word' suggestion.
2080 (print_help_for_command): Style the command name using title style.
2081 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
2082 (_initialize_cli_cmds): Describe -v in apropos_command help.
2083
2084 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2085
2086 * cli/cli-style.h (cli_style_option): Add name in constructor,
2087 add m_name class member, add constructor with intensity,
2088 add name class function.
2089 (cli_style_option::add_setshow_commands): Remove name argument.
2090 (highlight_style, title_style): New styles.
2091 * cli/cli-style.c (do_show): New function that shows a style
2092 characteristic styling the style name with itself.
2093 (set_style_name): New function.
2094 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
2095 Update all callers according to the changes in cli/cli-style.h.
2096 * utils.h (fputs_highlighted): New function.
2097 * utils.c (fputs_highlighted): Likewise.
2098
2099 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2100
2101 * NEWS: Mention new pipe command and new convenience variables.
2102
2103 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2104
2105 * cli/cli-cmds.c (pipe_command): New function.
2106 (_initialize_cli_cmds): Call add_com for pipe_command.
2107 Define | as an alias for pipe.
2108 (exit_status_set_internal_vars): New function.
2109 (shell_escape): Call exit_status_set_internal_vars.
2110 cli/cli-decode.c (find_command_name_length): Recognize | as
2111 a single character command.
2112
2113 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2114
2115 * gdbcmd.h (execute_command_to_ui_file): New declaration.
2116 top.c (execute_command_to_ui_file): New function, mostly a copy
2117 of execute_command_to_string.
2118 (execute_command_to_string): Implement by calling
2119 execute_command_to_ui_file.
2120
2121 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2122
2123 * top.h (saved_command_line): Remove declaration.
2124 * top.c (previous_saved_command_line, previous_repeat_arguments):
2125 New variables.
2126 (saved_command_line): Make static, define together with other
2127 'repeat variables'.
2128 (dont_repeat): Clear repeat_arguments.
2129 (repeat_previous, get_saved_command_line, save_command_line):
2130 New functions.
2131 (gdb_init): Initialize saved_command_line
2132 and previous_saved_command_line.
2133 * main.c (captured_main_1): Remove saved_command_line initialization.
2134 * event-top.c (handle_line_of_input): Update to use
2135 the new 'repeat' related functions instead of direct access to
2136 saved_command_line.
2137 * command.h (repeat_previous, get_saved_command_line,
2138 save_command_line): New declarations.
2139 (dont_repeat): Add comment.
2140
2141 2019-05-30 Tom Tromey <tromey@adacore.com>
2142
2143 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
2144 Fix comment.
2145 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
2146
2147 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
2148
2149 PR cli/24587
2150 * completer.c (complete): Initialize variable word.
2151
2152 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
2153
2154 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2155 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
2156 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
2157 'body' is NULL to the outter 'if', protecting the '!is_define'
2158 situation as well.
2159
2160 2019-05-29 Tom Tromey <tromey@adacore.com>
2161
2162 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
2163 (dwarf_unknown): New function.
2164 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
2165 (dwarf_type_encoding_name): Use dwarf_unknown.
2166
2167 2019-05-29 Tom Tromey <tromey@adacore.com>
2168
2169 PR c++/20020:
2170 * cp-valprint.c (cp_print_value_fields): Call
2171 cp_print_static_field inside "try".
2172
2173 2019-05-29 Tom Tromey <tromey@adacore.com>
2174
2175 * inflow.c (struct terminal_info): Add default operator=.
2176 * configure: Rebuild.
2177 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
2178 -Wdeprecated-copy-dtor, -Wredundant-move.
2179
2180 2019-05-29 Tom Tromey <tromey@adacore.com>
2181
2182 * NEWS: Add entry.
2183 * infcmd.c (print_return_value_1): Handle finish_print
2184 option.
2185 (show_print_finish): New function.
2186 (_initialize_infcmd): Add "set/show print finish" commands.
2187 * valprint.c (user_print_options): Initialize new member.
2188 * valprint.h (struct value_print_options) <finish_print>: New
2189 member.
2190
2191 2019-05-28 Tom Tromey <tromey@adacore.com>
2192
2193 * ada-lang.c (ada_remove_Xbn_suffix)
2194 (find_old_style_renaming_symbol)
2195 (parse_old_style_renaming): Remove.
2196 (ada_find_renaming_symbol): Don't call
2197 find_old_style_renaming_symbol.
2198 (ada_is_renaming_symbol): Rename from
2199 ada_find_renaming_symbol. Remove "block" parameter. Return
2200 bool. Now static.
2201 (ada_read_var_value): Update and simplify.
2202 * ada-exp.y (write_var_or_type): Remove old code.
2203
2204 2019-05-28 Alan Hayward <alan.hayward@arm.com>
2205
2206 * event-top.c: Remove include comment.
2207 * inflow.c (class scoped_ignore_sigttou): Move from here...
2208 * inflow.h (class scoped_ignore_sigttou): ...to here.
2209 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
2210 * top.c: Remove include comment.
2211
2212 2019-05-27 Tom Tromey <tom@tromey.com>
2213
2214 * NEWS: Fix typo.
2215
2216 2019-05-22 Tom Tromey <tromey@adacore.com>
2217
2218 * target.c (target_follow_exec): Constify parameter.
2219 * target-delegates.c: Rebuild.
2220 * remote.c (remote_target::follow_exec): Constify parameter.
2221 * infrun.c (follow_exec): Constify parameter.
2222 * target.h (struct target_ops) <follow_exec>: Constify parameter.
2223 (target_follow_exec): Likewise.
2224
2225 2019-05-22 Alan Hayward <alan.hayward@arm.com>
2226
2227 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
2228 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
2229
2230 2019-05-22 Alan Hayward <alan.hayward@arm.com>
2231
2232 * NEWS: Add debugredirect and testsuite sections.
2233
2234 2019-05-22 Simon Cook <simon.cook@embecosm.com>
2235
2236 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
2237 target descriptions using exclusively floating point register name
2238 aliases.
2239
2240 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 PR gdb/18644:
2243 * f-lang.c (build_fortran_types): Handle the case where
2244 gdbarch_floatformat_for_type returns a nullptr.
2245
2246 2019-05-21 Tom de Vries <tdevries@suse.de>
2247
2248 PR cli/24587
2249 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
2250
2251 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2252
2253 PR gdb/18644:
2254 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
2255 16-byte floats.
2256 * i386-tdep.c (i386_floatformat_for_type): Use
2257 floatformats_ia64_quad for the 16-byte floating point component
2258 within a fortran 32-byte complex number.
2259
2260 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
2263 delete default constructor.
2264 (find_partial_die): Update to return const struct.
2265 (partial_die_parent_scope): Move variable declaration into scope
2266 of its use and change its type to auto.
2267 (guess_partial_die_structure_name): Likewise.
2268 (partial_die_info::fixup): Likewise.
2269
2270 2019-05-17 Tom Tromey <tromey@adacore.com>
2271
2272 * source.c (find_and_open_source): Remove cast.
2273
2274 2019-05-17 Tom Tromey <tromey@adacore.com>
2275
2276 * annotate.c (annotate_source): Make "filename" const.
2277 * annotate.h (annotate_source): Use const.
2278
2279 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2280
2281 * disasm.c (set_disassembler_options): Send errors to stderr.
2282
2283 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2284
2285 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
2286 (cli_interp_base::set_logging): Check debug_redirect.
2287 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
2288 * cli/cli-logging.c (debug_redirect): Add static variable.
2289 (pop_output_files): Add default param.
2290 (handle_redirections): Print debug setting.
2291 (show_logging_command): Likewise.
2292 (_initialize_cli_logging): Add debugredirect command.
2293 * interps.c (current_interp_set_logging): Add debug_redirect
2294 parameter.
2295 * interps.h (set_logging): Add debug_redirect parameter.
2296 (current_interp_set_logging): Likewise.
2297 * mi/mi-common.h: Likewise.
2298 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
2299
2300 2019-05-17 Alan Hayward <alan.hayward@arm.com>
2301 Tom Tromey <tromey@adacore.com>
2302
2303 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
2304 directly.
2305 * cli/cli-interp.h (make_logging_output): Remove declaration.
2306 * cli/cli-logging.c (make_logging_output): Remove function.
2307 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
2308 directly.
2309 * ui-file.c (tee_file::tee_file): Remove bools.
2310 (tee_file::~tee_file): Remove deletes.
2311 * ui-file.h (tee_file): Remove bools.
2312
2313 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
2314
2315 * mi/mi-cmds.h (mi_cmd_complete): New function.
2316 * mi/mi-main.c (mi_cmd_complete): Likewise.
2317 * mi/mi-cmds.c: Define new MI command -complete.
2318 * NEWS: Mention new -complete command.
2319
2320 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
2321
2322 * completer.h (complete): New function.
2323 * completer.c (complete): Likewise.
2324 * cli/cli-cmds.c: (complete_command): Update to use new complete()
2325 function defined in completer.h.
2326
2327 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
2328
2329 * MAINTAINERS (Write After Approval): Add myself.
2330
2331 2019-05-17 Tom de Vries <tdevries@suse.de>
2332
2333 PR gdb/24094
2334 * dwarf2read.c (struct cu_partial_die_info): New struct.
2335 (find_partial_die): Return cu_partial_die_info.
2336 (partial_die_parent_scope, guess_partial_die_structure_name)
2337 (partial_die_info::fixup): Handle new return type of find_partial_die.
2338
2339 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2340
2341 * stap-probe.c (stap_parse_register_operand): Make "regname" an
2342 "std::string", simplifying the algorithm.
2343
2344 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2345
2346 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
2347 (stap_static_probe_ops::get_probes): Likewise.
2348
2349 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2350
2351 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
2352 '-')" and "else if".
2353 (stap_parse_single_operand): Join checks for
2354 "gdbarch_stap_parse_special_token_p" and
2355 "gdbarch_stap_parse_special_token" in the same "if" statement.
2356 Invert check when verifying for operation on register
2357 displacement.
2358
2359 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2360
2361 * stap-probe.c (stap_get_opcode): Update comment.
2362 (stap_get_expected_argument_type): Likewise.
2363 (handle_stap_probe): Likewise.
2364
2365 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2366
2367 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
2368 return type to 'bool'. Adjust comment. Use 'bool' when
2369 appropriate.
2370 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2371 * stap-probe.c (stap_parse_argument_1): Likewise.
2372 (stap_is_operator): Likewise.
2373 (stap_is_generic_prefix): Likewise.
2374 (stap_is_register_prefix): Likewise.
2375 (stap_is_register_indirection_prefix): Likewise.
2376 (stap_is_integer_prefix): Likewise.
2377 (stap_generic_check_suffix): Likewise.
2378 (stap_check_integer_suffix): Likewise.
2379 (stap_check_register_suffix): Likewise.
2380 (stap_check_register_indirection_suffix): Likewise.
2381 (stap_parse_register_operand): Likewise.
2382 (stap_parse_single_operand): Likewise.
2383 (stap_parse_argument_1): Likewise.
2384 (stap_probe::get_argument_count): Likewise.
2385 (stap_is_operator): Likewise.
2386
2387 2019-05-16 Tom Tromey <tromey@adacore.com>
2388
2389 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
2390 keyword to foreach.
2391
2392 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * linux-thread-db.c (try_thread_db_load_1): Change return type
2395 to bool.
2396 (try_thread_db_load): Likewise.
2397 (try_thread_db_load_from_pdir_1): Likewise.
2398 (try_thread_db_load_from_pdir): Likewise.
2399 (try_thread_db_load_from_sdir): Likewise.
2400 (try_thread_db_load_from_dir): Likewise.
2401 (thread_db_load_search): Likewise.
2402 (has_libpthread): Likewise.
2403 (thread_db_load): Likewise.
2404
2405 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
2406
2407 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
2408 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
2409 NULL, and complain/return if that's the case.
2410
2411 2019-05-15 John Darrington <john@darrington.wattle.id.au>
2412
2413 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
2414 (advance, posn, abstract_read_memory): New functions.
2415 [struct mem_read_abstraction]: New struct.
2416 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
2417
2418 2019-05-14 Tom Tromey <tromey@adacore.com>
2419
2420 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
2421 value is not lval_memory.
2422
2423 2019-05-14 Tom Tromey <tromey@adacore.com>
2424
2425 * solib.c (info_sharedlibrary_command): Style the file name.
2426
2427 2019-05-14 Alan Hayward <alan.hayward@arm.com>
2428
2429 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
2430 (aarch64_vnv_type): Likewise.
2431 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
2432 * common/tdesc.c: Likewise.
2433 * common/tdesc.h (enum tdesc_type_kind): Likewise.
2434 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
2435 * features/aarch64-fpu.xml: Add ieee half view.
2436 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
2437 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
2438 * gdbtypes.h (struct builtin_type): Likewise.
2439 (struct objfile_type): Likewise.
2440
2441 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
2442
2443 * language.c (language_sniff_from_mangled_name): Fix "langauge"
2444 typo.
2445 * location.h (string_to_event_location): Likewise.
2446
2447 2019-05-11 Joel Brobecker <brobecker@adacore.com>
2448
2449 GDB 8.3 released.
2450
2451 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
2452
2453 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
2454 New variable declaration.
2455 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
2456 New variable.
2457 (print_one_breakpoint): Use ui_out::test_flags and new global
2458 variable to compute use_fixed_output.
2459 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
2460 Remove.
2461 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
2462 (mi_multi_location_breakpoint_output_fixed): Remove.
2463 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
2464 new variable.
2465 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
2466 fix_multi_location_breakpoint_output flag if version >= 3.
2467 * ui-out.h (enum ui_out_flag)
2468 <fix_multi_location_breakpoint_output>: New enumerator.
2469
2470 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
2471
2472 * contrib/cc-with-tweaks.sh: Validate dwz's work.
2473
2474 2019-05-10 Tom Tromey <tromey@adacore.com>
2475
2476 * ada-lang.c (catch_ada_completer): New function.
2477 (_initialize_ada_language): Use it.
2478
2479 2019-05-10 Tom Tromey <tromey@adacore.com>
2480
2481 * thread.c (print_thread_info): Make "requested_threads" const.
2482 * gdbthread.h (print_thread_info): Make "requested_threads"
2483 const.
2484 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
2485 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
2486
2487 2019-05-08 Tom Tromey <tom@tromey.com>
2488
2489 * gdbtypes.c (objfile_type_data): Change type.
2490 (objfile_type, _initialize_gdbtypes): Update.
2491
2492 2019-05-08 Tom Tromey <tom@tromey.com>
2493
2494 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
2495 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
2496 (_initialize_dwarf2_frame): Update.
2497
2498 2019-05-08 Tom Tromey <tom@tromey.com>
2499
2500 * objc-lang.c (objc_objfile_data): Change type.
2501 (find_methods): Update.
2502 (_initialize_objc_lang): Remove.
2503
2504 2019-05-08 Tom Tromey <tom@tromey.com>
2505
2506 * stabsread.c (rs6000_builtin_type_data): Change type.
2507 (rs6000_builtin_type, _initialize_stabsread): Update.
2508
2509 2019-05-08 Tom Tromey <tom@tromey.com>
2510
2511 * mips-tdep.c (mips_pdr_data): Remove.
2512 (_initialize_mips_tdep): Update.
2513
2514 2019-05-08 Tom Tromey <tom@tromey.com>
2515
2516 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
2517 (hppa_init_objfile_priv_data, read_unwind_info)
2518 (find_unwind_entry, _initialize_hppa_tdep): Update.
2519
2520 2019-05-08 Tom Tromey <tom@tromey.com>
2521
2522 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
2523 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
2524 on obstack.
2525 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
2526
2527 2019-05-08 Tom Tromey <tom@tromey.com>
2528
2529 * mdebugread.c (basic_type_data): Change type.
2530 (basic_type, _initialize_mdebugread): Update.
2531
2532 2019-05-08 Tom Tromey <tom@tromey.com>
2533
2534 * common/gdb_unique_ptr.h (struct noop_deleter): New.
2535
2536 2019-05-08 Tom Tromey <tom@tromey.com>
2537
2538 * nto-tdep.c (nto_inferior_data_reg): Change type.
2539 (nto_inferior_data): Update.
2540 (nto_inferior_data_cleanup, nto_new_inferior_data)
2541 (_initialize_nto_tdep): Remove.
2542 * nto-tdep.h (struct nto_inferior_data): Add initializers.
2543
2544 2019-05-08 Tom Tromey <tom@tromey.com>
2545
2546 * ada-lang.c (struct ada_inferior_data): Add initializers.
2547 (ada_inferior_data): Change type.
2548 (ada_inferior_data_cleanup): Remove.
2549 (get_ada_inferior_data, ada_inferior_exit)
2550 (struct ada_pspace_data): Add initializers, destructor.
2551 (ada_pspace_data_handle): Change type.
2552 (get_ada_pspace_data): Update.
2553 (ada_pspace_data_cleanup): Remove.
2554
2555 2019-05-08 Tom Tromey <tom@tromey.com>
2556
2557 * coffread.c (struct coff_symfile_info): Add initializers.
2558 (coff_objfile_data_key): Move lower. Change type.
2559 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
2560 Update.
2561 (coff_free_info): Remove.
2562
2563 2019-05-08 Tom Tromey <tom@tromey.com>
2564
2565 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
2566 (fbsd_pspace_data_handle): Move lower. Change type.
2567 (get_fbsd_pspace_data): Update.
2568 (fbsd_pspace_data_cleanup): Remove.
2569 (_initialize_fbsd_tdep): Update.
2570
2571 2019-05-08 Tom Tromey <tom@tromey.com>
2572
2573 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
2574 (get_ada_tasks_pspace_data): Update.
2575 (ada_tasks_pspace_data_cleanup): Remove.
2576 (_initialize_tasks): Update.
2577 (ada_tasks_inferior_data_handle): Change type.
2578 (get_ada_tasks_inferior_data): Update.
2579 (ada_tasks_inferior_data_cleanup): Remove.
2580 (struct ada_tasks_pspace_data): Add initializers.
2581
2582 2019-05-08 Tom Tromey <tom@tromey.com>
2583
2584 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
2585 * symfile-debug.c (debug_sym_get_probes): Change type.
2586 * stap-probe.c (handle_stap_probe):
2587 (stap_static_probe_ops::get_probes): Change type.
2588 * probe.h (class static_probe_ops) <get_probes>: Change type.
2589 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
2590 (parse_probes_in_pspace): Update.
2591 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
2592 Update.
2593 (any_static_probe_ops::get_probes): Change type.
2594 * elfread.c (elfread_data): New typedef.
2595 (probe_key): Change type.
2596 (elf_get_probes): Likewise. Update.
2597 (probe_key_free): Remove.
2598 (_initialize_elfread): Update.
2599 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
2600 Change type.
2601 (dtrace_process_dof_probe, dtrace_process_dof)
2602 (dtrace_static_probe_ops::get_probe): Change type.
2603
2604 2019-05-08 Tom Tromey <tom@tromey.com>
2605
2606 * xcoffread.c (struct xcoff_symfile_info): Rename from
2607 coff_symfile_info. Add initializers.
2608 (xcoff_objfile_data_key): Move lower. Change type.
2609 (XCOFF_DATA): Rewrite.
2610 (xcoff_free_info): Remove.
2611 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
2612 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
2613 (xcoff_initial_scan): Update.
2614
2615 2019-05-08 Tom Tromey <tom@tromey.com>
2616
2617 * solib-svr4.c (struct svr4_info): Add initializers and
2618 destructor.
2619 <probes_table>: Now an htab_up.
2620 (solib_svr4_pspace_data): Change type.
2621 (free_probes_table): Simplify.
2622 (~svr4_info): Rename from svr4_pspace_data_cleanup.
2623 (get_svr4_info, probes_table_htab_remove_objfile_probes)
2624 (probes_table_remove_objfile_probes, register_solib_event_probe)
2625 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
2626 (_initialize_svr4_solib): Update.
2627
2628 2019-05-08 Tom Tromey <tom@tromey.com>
2629
2630 * remote.c (remote_pspace_data): Change type.
2631 (remote_pspace_data_cleanup): Remove.
2632 (get_remote_exec_file, set_pspace_remote_exec_file)
2633 (_initialize_remote): Update.
2634
2635 2019-05-08 Tom Tromey <tom@tromey.com>
2636
2637 * breakpoint.c (breakpoint_objfile_key): Change type.
2638 (get_breakpoint_objfile_data): Update.
2639 (free_breakpoint_objfile_data): Remove.
2640 (_initialize_breakpoint): Update.
2641
2642 2019-05-08 Tom Tromey <tom@tromey.com>
2643
2644 * linux-tdep.c (struct linux_info): Add initializers.
2645 (linux_inferior_data): Move. Change type.
2646 (invalidate_linux_cache_inf): Update.
2647 (linux_inferior_data_cleanup): Remove.
2648 (get_linux_inferior_data, _initialize_linux_tdep): Update.
2649
2650 2019-05-08 Tom Tromey <tom@tromey.com>
2651
2652 * auxv.c (auxv_inferior_data): Move. Change type.
2653 (auxv_inferior_data_cleanup): Remove.
2654 (invalidate_auxv_cache_inf): Rewrite.
2655 (get_auxv_inferior_data, _initialize_auxv): Update.
2656
2657 2019-05-08 Tom Tromey <tom@tromey.com>
2658
2659 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
2660 (symfile_debug_objfile_data_key): Change type.
2661 (symfile_debug_installed, debug_qf_has_symbols)
2662 (debug_qf_find_last_source_symtab)
2663 (debug_qf_forget_cached_source_info)
2664 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
2665 (debug_qf_print_stats, debug_qf_dump)
2666 (debug_qf_expand_symtabs_for_function)
2667 (debug_qf_expand_all_symtabs)
2668 (debug_qf_expand_symtabs_with_fullname)
2669 (debug_qf_map_matching_symbols)
2670 (debug_qf_expand_symtabs_matching)
2671 (debug_qf_find_pc_sect_compunit_symtab)
2672 (debug_qf_map_symbol_filenames)
2673 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
2674 (debug_sym_new_init, debug_sym_init, debug_sym_read)
2675 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
2676 (debug_sym_read_linetable, debug_sym_relocate): Update.
2677 (symfile_debug_free_objfile): Remove.
2678 (install_symfile_debug_logging, _initialize_symfile_debug):
2679 Update.
2680
2681 2019-05-08 Tom Tromey <tom@tromey.com>
2682
2683 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
2684 allocate_on_obstack.
2685 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
2686 (get_dwarf2_per_objfile): Update.
2687 (set_dwarf2_per_objfile): Remove.
2688 (dwarf2_has_info, dwarf2_get_section_info): Update.
2689 (dwarf2_free_objfile): Remove.
2690 (_initialize_dwarf2_read): Update.
2691
2692 2019-05-08 Tom Tromey <tom@tromey.com>
2693
2694 * auto-load.c (struct auto_load_pspace_info): Add destructor and
2695 initializers.
2696 <unsupported_script_warning_printed,
2697 script_not_found_warning_printed>: Now bool.
2698 (auto_load_pspace_data): Change type.
2699 (~auto_load_pspace_info): Rename from
2700 auto_load_pspace_data_cleanup.
2701 (get_auto_load_pspace_data, init_loaded_scripts_info)
2702 (clear_section_scripts, maybe_print_unsupported_script_warning)
2703 (maybe_print_script_not_found_warning, _initialize_auto_load):
2704 Update.
2705
2706 2019-05-08 Tom Tromey <tom@tromey.com>
2707
2708 * objfiles.c (objfile_pspace_info): Add destructor and
2709 initializers.
2710 (objfiles_pspace_data): Change type.
2711 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
2712 (get_objfile_pspace_data): Update.
2713 (objfiles_bfd_data): Change type.
2714 (get_objfile_bfd_data): Update.
2715 (objfile_bfd_data_free, _initialize_objfiles): Remove.
2716
2717 2019-05-08 Tom Tromey <tom@tromey.com>
2718
2719 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
2720 Change type.
2721 (get_catch_syscall_inferior_data): Update.
2722 (catch_syscall_inferior_data_cleanup): Remove.
2723 (_initialize_break_catch_syscall): Update.
2724
2725 2019-05-08 Tom Tromey <tom@tromey.com>
2726
2727 * inflow.c (struct terminal_info): Add destructor and
2728 initializers.
2729 (inflow_inferior_data): Change type.
2730 (~terminal_info): Rename from inflow_inferior_data_cleanup.
2731 (get_inflow_inferior_data, inflow_inferior_exit)
2732 (swap_terminal_info, _initialize_inflow): Update.
2733
2734 2019-05-08 Tom Tromey <tom@tromey.com>
2735
2736 * target-dcache.c (target_dcache_cleanup): Remove.
2737 (target_dcache_aspace_key): Change type.
2738 (target_dcache_init_p, target_dcache_invalidate)
2739 (target_dcache_get, target_dcache_get_or_init)
2740 (_initialize_target_dcache): Update.
2741 * dcache.h (struct dcache_deleter): New.
2742
2743 2019-05-08 Tom Tromey <tom@tromey.com>
2744
2745 * symtab.c (struct symbol_cache): Add destructor and
2746 initializers.
2747 (symbol_cache_key): Move. Change type.
2748 (make_symbol_cache, free_symbol_cache): Remove.
2749 (get_symbol_cache): Update.
2750 (symbol_cache_cleanup): Remove.
2751 (ALL_PSPACES, symbol_cache_flush)
2752 (maintenance_print_symbol_cache)
2753 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
2754 Update.
2755
2756 2019-05-08 Tom Tromey <tom@tromey.com>
2757
2758 * symtab.c (struct main_info): Add destructor and initializers.
2759 (main_progspace_key): Move. Change type.
2760 (get_main_info): Update.
2761 (main_info_cleanup): Remove.
2762 (_initialize_symtab): Update.
2763
2764 2019-05-08 Tom Tromey <tom@tromey.com>
2765
2766 * registry.h (DECLARE_REGISTRY): Define the _key class.
2767
2768 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * NEWS: Merge two 'New commands' sections.
2771
2772 2019-05-08 Joel Brobecker <brobecker@adacore.com>
2773
2774 * ada-valprint.c (ada_val_print_gnat_array): Remove language
2775 parameter and use Ada language definition instead.
2776 (ada_val_print_ptr): Remove unused language parameter.
2777 (ada_val_print_num): Remove language parameter and use Ada language
2778 definition instead.
2779 (ada_val_print_enum, ada_val_print_flt): Remove unused language
2780 parameter.
2781 (ada_val_print_struct_union, ada_val_print_ref): Remove language
2782 parameter and use Ada language definition instead.
2783 (ada_val_print_1): Update all ada_val_print_xxx calls.
2784 Remove language parameter.
2785 (ada_val_print): Update ada_val_print_1 call.
2786
2787 2019-05-08 Tom Tromey <tromey@adacore.com>
2788
2789 * remote.c (remote_hw_watchpoint_limit)
2790 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
2791 Now static.
2792
2793 2019-05-08 Tom Tromey <tromey@adacore.com>
2794
2795 * maint.c (_initialize_maint_cmds): Move initialization code to
2796 remote.c.
2797 (watchdog, show_watchdog): Move to remote.c.
2798 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
2799 "watchdog" static.
2800 (_initialize_remote): Move initialization code from maint.c.
2801 * defs.h (watchdog): Don't declare.
2802
2803 2019-05-08 Tom Tromey <tromey@adacore.com>
2804
2805 * tui/tui-interp.c: Include main.h.
2806 * interps.c: Include main.h.
2807 * main.h (interpreter_p): Declare.
2808 * defs.h (interpreter_p): Don't declare.
2809
2810 2019-05-08 Tom Tromey <tromey@adacore.com>
2811
2812 * dwarf2loc.c: Include dwarf2read.h.
2813 * defs.h (read_unsigned_leb128): Don't declare.
2814 * dwarf2read.h (read_unsigned_leb128): Declare.
2815
2816 2019-05-08 Tom Tromey <tromey@adacore.com>
2817
2818 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
2819 method.
2820
2821 2019-05-08 Tom Tromey <tromey@adacore.com>
2822
2823 * utils.c (fputs_maybe_filtered): Reset style after paging, even
2824 when no wrap column is set.
2825
2826 2019-05-08 Tom Tromey <tromey@adacore.com>
2827
2828 * c-lang.c (c_get_string): Handle non-C-style arrays.
2829
2830 2019-05-08 Tom Tromey <tromey@adacore.com>
2831
2832 * typeprint.c (print_offset_data::update): Print the bit offset,
2833 not the number of bits remaining.
2834
2835 2019-05-08 Tom Tromey <tromey@adacore.com>
2836
2837 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
2838 padding at end of comment.
2839
2840 2019-05-08 Tom Tromey <tromey@adacore.com>
2841
2842 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
2843 Compare main types.
2844
2845 2019-05-06 Tom Tromey <tom@tromey.com>
2846
2847 * common/scoped_mmap.c: Include common-defs.h.
2848 * common/scoped_mmap.h: Don't include config.h.
2849
2850 2019-05-04 Tom Tromey <tom@tromey.com>
2851
2852 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
2853 (struct aarch64_call_info): Add initializers.
2854 <si>: Now a std::vector.
2855 (pass_on_stack, aarch64_push_dummy_call): Update.
2856
2857 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
2858 Tom Tromey <tom@tromey.com>
2859
2860 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
2861 (ppc_threads): Now a std::vector. Now static.
2862 (hwdebug_find_thread_points_by_tid)
2863 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
2864 Update.
2865
2866 2019-05-04 Tom Tromey <tom@tromey.com>
2867
2868 * arc-tdep.c (arc_tdesc_init): Return bool.
2869
2870 2019-05-04 Tom Tromey <tom@tromey.com>
2871
2872 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
2873 Use gdb_assert_not_reached.
2874
2875 2019-05-04 Tom Tromey <tom@tromey.com>
2876
2877 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
2878 "false".
2879
2880 2019-05-04 Tom Tromey <tom@tromey.com>
2881
2882 * arc-tdep.c (arc_tdesc_init): Use bool.
2883
2884 2019-05-04 Tom Tromey <tom@tromey.com>
2885
2886 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
2887
2888 2019-05-04 Tom Tromey <tom@tromey.com>
2889
2890 * cli/cli-cmds.c (valid_command_p): Return bool.
2891
2892 2019-05-04 Tom Tromey <tom@tromey.com>
2893
2894 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
2895 * command.h (valid_user_defined_cmd_name_p): Channge return type.
2896
2897 2019-05-04 Raul Tambre <raul@tambre.ee>
2898
2899 * python/lib/gdb/prompt.py (_ExtendedPrompt)
2900 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
2901 operator for comparison.
2902
2903 2019-05-04 Tom Tromey <tom@tromey.com>
2904
2905 * psymtab.c (psymbol_name_matches, match_partial_symbol)
2906 (lookup_partial_symbol, print_partial_symbols)
2907 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
2908 (psymbol_compare): Update.
2909 (add_psymbol_to_bcache): Clear the entire psymbol.
2910 (maintenance_check_psymtabs): Update.
2911 * psympriv.h (struct partial_symbol): Don't derive from
2912 general_symbol_info.
2913 <obj_section, unrelocated_address, address,
2914 set_unrelocated_address>: Update.
2915 <ginfo>: New member.
2916 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2917 (debug_names::write_psymbols): Update.
2918
2919 2019-05-04 Tom de Vries <tdevries@suse.de>
2920
2921 * contrib/cc-with-tweaks.sh: Support -n arg.
2922
2923 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2924
2925 * corelow.c (core_target::detach): Ensure frame cache and
2926 register caches are cleared.
2927 inferior.c (exit_inferior_1): Likewise.
2928
2929 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
2930 Tom Tromey <tom@tromey.com>
2931
2932 * dictionary.c (collate_pending_symbols_by_language): Remove
2933 "struct" from foreach.
2934 * symtab.c (lookup_global_symbol_from_objfile)
2935 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
2936 foreach.
2937 * ser-tcp.c (net_open): Remove "struct" from foreach.
2938 * objfiles.c (objfile_relocate, objfile_rebase)
2939 (objfile_has_symbols): Remove "struct" from foreach.
2940 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
2941 from foreach.
2942 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
2943 foreach.
2944 * darwin-nat.c (thread_info_from_private_thread_info): Remove
2945 "struct" from foreach.
2946 * ada-lang.c (create_excep_cond_exprs)
2947 (ada_exception_catchpoint_cond_string): Remove "struct" from
2948 foreach.
2949
2950 2019-05-03 Tom Tromey <tromey@adacore.com>
2951
2952 * ada-exp.y (convert_char_literal): Check suffix of each
2953 enumerator.
2954
2955 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
2956
2957 PR ada/21406:
2958 * ada-exp.y (yywrap): Don't define.
2959 * ada-lex.l (%option): Add noyywrap
2960 (yywrap): Remove.
2961
2962 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2963
2964 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
2965 _WIN32_WINNT to the XP level, unless already defined to a higher
2966 level.
2967
2968 * unittests/parse-connection-spec-selftests.c:
2969 * ser-tcp.c:
2970 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
2971 override.
2972
2973 * symfile.c (find_separate_debug_file): Remove colon from the
2974 drive spec of DOS/Windows file names of the target, so that the
2975 file name produced from DEBUGDIR and the target's directory will
2976 be valid on DOS/Windows systems.
2977
2978 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * rust-lang.c (val_print_struct): Handle printing structures
2981 containing strings.
2982
2983 2019-05-02 Tom Tromey <tromey@adacore.com>
2984
2985 * valarith.c (_initialize_valarith): Remove.
2986
2987 2019-05-01 Tom Tromey <tromey@adacore.com>
2988
2989 * ada-lang.c (ada_value_primitive_field): Treat more fields as
2990 bitfields.
2991
2992 2019-05-01 Tom Tromey <tromey@adacore.com>
2993
2994 * ada-lang.c (ada_value_assign): Correctly compute starting offset
2995 for big-endian copies.
2996
2997 2019-04-30 Ali Tamur <tamur@google.com>
2998 * gdb/dwarf2read.c (read_3_bytes): New declaration.
2999 (read_attribute_value): Added DW_FORM_strx1-4 cases.
3000 (read_3_bytes): New function.
3001
3002 2019-04-30 Joel Brobecker <brobecker@adacore.com>
3003
3004 * windows-nat.c (main_thread_id): Delete.
3005 (handle_output_debug_string): Replace main_thread_id by
3006 current_event.dwThreadId.
3007 (fake_create_process): Likewise.
3008 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
3009 Do not set main_thread_id.
3010 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
3011 current_event.dwThreadId.
3012 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
3013
3014 2019-04-30 Joel Brobecker <brobecker@adacore.com>
3015
3016 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
3017 Use current_event.dwThreadId instead of main_thread_id.
3018
3019 2019-04-30 Tom Tromey <tromey@adacore.com>
3020
3021 * ada-lang.c (ada_lookup_simple_minsyms): New function.
3022 (create_excep_cond_exprs): Iterate over program spaces.
3023 (ada_exception_catchpoint_cond_string): Examine all minimal
3024 symbols for exception types.
3025
3026 2019-04-30 Tom Tromey <tromey@adacore.com>
3027
3028 PR c++/24470:
3029 * dwarf2read.c (process_structure_scope): Handle case where type
3030 has template parameters but no symbol was created.
3031
3032 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3033 Chris January <chris.january@arm.com>
3034
3035 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
3036 qualifier.
3037 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
3038
3039 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3040
3041 * f-typeprint.c (f_print_type): Update rules for printing
3042 whitespace.
3043 (f_type_print_varspec_suffix): Likewise.
3044
3045 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3046 Chris January <chris.january@arm.com>
3047
3048 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
3049 function arguments.
3050
3051 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 * f-lang.c (build_fortran_types): Change name of void type to
3054 lower case.
3055 * f-typeprint.c (f_type_print_base): Print the name of the void
3056 type, rather than a fixed string.
3057 * f-valprint.c (f_decorations): Use lower case void string.
3058
3059 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3060 Chris January <chris.january@arm.com>
3061
3062 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
3063 types for Fortran.
3064
3065 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3066 Chris January <chris.january@arm.com>
3067 David Lecomber <david.lecomber@arm.com>
3068
3069 * f-exp.y (BINOP_INTRINSIC): New token.
3070 (exp): New parser rule handling BINOP_INTRINSIC.
3071 (f77_keywords): Add new builtin procedures.
3072 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
3073 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3074 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
3075 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3076 (print_unop_subexp_f): New function.
3077 (print_binop_subexp_f): New function.
3078 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3079 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
3080 (dump_subexp_body_f): Likewise.
3081 (operator_check_f): Likewise.
3082 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
3083 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
3084
3085 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3086
3087 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
3088 UNOP_KIND.
3089 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
3090 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
3091 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
3092 (operator_length_f): New fuction.
3093 (print_subexp_f): New function.
3094 (op_name_f): New function.
3095 (dump_subexp_body_f): New function.
3096 (operator_check_f): New function.
3097 (exp_descriptor_f): Replace standard expression handling functions
3098 with new functions.
3099 * gdb/fortran-operator.def: New file.
3100 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
3101 * gdb/std-operator.def: Remove UNOP_KIND.
3102
3103 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3104
3105 * std-operator.def: Remove unbalanced, stray double quote
3106 character.
3107
3108 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3109 Chris January <chris.january@arm.com>
3110 Daniel Everett <daniel.everett@arm.com>
3111 Nick Forrington <nick.forrington@arm.com>
3112 Richard Bunt <richard.bunt@arm.com>
3113
3114 * cp-valprint.c (cp_print_value_fields): Allow an additional level
3115 of depth when printing anonymous structs or unions.
3116 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3117 Don't print either the top-level value, or the children if the
3118 max-depth is exceeded.
3119 (ppscm_print_children): When printing the key of a map, allow one
3120 extra level of depth.
3121 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
3122 print either the top-level value, or the children if the max-depth
3123 is exceeded.
3124 (print_children): When printing the key of a map, allow one extra
3125 level of depth.
3126 * python/py-value.c (valpy_format_string): Add max_depth keyword.
3127 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
3128 (user_print_options): Initialise max_depth field.
3129 (val_print_scalar_or_string_type_p): New function.
3130 (val_print): Check to see if the max depth has been reached.
3131 (val_print_check_max_depth): Define new function.
3132 (show_print_max_depth): New function.
3133 (_initialize_valprint): Add 'print max-depth' option.
3134 * valprint.h (struct value_print_options) <max_depth>: New field.
3135 (val_print_check_max_depth): Declare new function.
3136 * NEWS: Document new feature.
3137
3138 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * ada-lang.c (ada_language_defn): Initialise new field.
3141 * c-lang.c (c_is_string_type_p): New function.
3142 (c_language_defn): Initialise new field.
3143 (cplus_language_defn): Initialise new field.
3144 (asm_language_defn): Initialise new field.
3145 (minimal_language_defn): Initialise new field.
3146 * c-lang.h (c_is_string_type_p): Declare new function.
3147 * d-lang.c (d_language_defn): Initialise new field.
3148 * f-lang.c (f_is_string_type_p): New function.
3149 (f_language_defn): Initialise new field.
3150 * go-lang.c (go_is_string_type_p): New function.
3151 (go_language_defn): Initialise new field.
3152 * language.c (default_is_string_type_p): New function.
3153 (unknown_language_defn): Initialise new field.
3154 (auto_language_defn): Initialise new field.
3155 * language.h (struct language_defn) <la_is_string_type_p>: New
3156 member variable.
3157 (default_is_string_type_p): Declare new function.
3158 * m2-lang.c (m2_language_defn): Initialise new field.
3159 * objc-lang.c (objc_language_defn): Initialise new field.
3160 * opencl-lang.c (opencl_language_defn): Initialise new field.
3161 * p-lang.c (pascal_is_string_type_p): New function.
3162 (pascal_language_defn): Initialise new field.
3163 * rust-lang.c (rust_is_string_type_p): New function.
3164 (rust_language_defn): Initialise new field.
3165
3166 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
3169 New field.
3170 * ada-lang.c (ada_language_defn): Initialise new field.
3171 * c-lang.c (c_language_defn): Likewise.
3172 (cplus_language_defn): Likewise.
3173 (asm_language_defn): Likewise.
3174 (minimal_language_defn): Likewise.
3175 * d-lang.c (d_language_defn): Likewise.
3176 * f-lang.c (f_language_defn): Likewise.
3177 * go-lang.c (go_language_defn): Likewise.
3178 * language.c (unknown_language_defn): Likewise.
3179 (auto_language_defn): Likewise.
3180 * m2-lang.c (m2_language_defn): Likewise.
3181 * objc-lang.c (objc_language_defn): Likewise.
3182 * opencl-lang.c (opencl_language_defn): Likewise.
3183 * p-lang.c (pascal_language_defn): Likewise.
3184 * rust-lang.c (rust_language_defn): Likewise.
3185
3186 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
3187
3188 * ada-lang.c (ada_is_character_type): Change return type to bool.
3189 (ada_is_string_type): Likewise.
3190 * ada-lang.h (ada_is_character_type): Update declaration
3191 (ada_is_string_type): Likewise.
3192
3193 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3194
3195 Support style in 'frame|thread apply'
3196
3197 * gdbcmd.h (execute_command_to_string): New term_out parameter.
3198 * record.c (record_start, record_stop): Update callers of
3199 execute_command_to_string with false.
3200 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
3201 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
3202 methods.
3203 (class string_file): New constructor with term_out parameter.
3204 Override methods term_out and can_emit_style_escape. New member
3205 term_out.
3206 (class stdio_file): Override can_emit_style_escape.
3207 (class tee_file): Override term_out and can_emit_style_escape.
3208 * utils.h (can_emit_style_escape): Remove.
3209 * utils.c (can_emit_style_escape): Likewise.
3210 Update all callers of can_emit_style_escape (SOMESTREAM) to
3211 SOMESTREAM->can_emit_style_escape.
3212 * source-cache.c (source_cache::get_source_lines): Likewise.
3213 * stack.c (frame_apply_command_count): Call execute_command_to_string
3214 passing the term_out characteristic of the current gdb_stdout.
3215 * thread.c (thr_try_catch_cmd): Likewise.
3216 * top.c (execute_command_to_string): pass term_out parameter
3217 to construct the string_file for the command output.
3218 * ui-file.c (term_cli_styling): New function (most code moved
3219 from utils.c can_emit_style_escape).
3220 (string_file::string_file, string_file::can_emit_style_escape,
3221 stdio_file::can_emit_style_escape, tee_file::term_out,
3222 tee_file::can_emit_style_escape): New functions.
3223
3224 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3225
3226 * NEWS: Mention the new set|show may-call-functions.
3227 * infcall.c (may_call_functions_p): New variable.
3228 (show_may_call_functions_p): New function.
3229 (call_function_by_hand_dummy): Throws an error if not
3230 may-call-functions.
3231 (_initialize_infcall): Call add_setshow_boolean_cmd for
3232 may-call-functions.
3233
3234 2019-04-25 Keith Seitz <keiths@redhat.com>
3235
3236 PR c++/24367
3237 * cp-support.c (inspect_type): Don't attempt substitutions
3238 of symbol with the same name.
3239
3240 2019-04-25 Tom Tromey <tromey@adacore.com>
3241
3242 PR gdb/24475:
3243 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
3244 static.
3245
3246 2019-04-25 Tom Tromey <tromey@adacore.com>
3247
3248 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
3249 rvalue reference.
3250 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
3251 (gdb_xml_parser::parse): Use std::move.
3252 * python/python-internal.h (gdbpy_convert_exception): Take a const
3253 reference.
3254 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
3255 std::move.
3256 * python/py-utils.c (gdbpy_convert_exception): Take a const
3257 reference.
3258 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3259 Use std::move.
3260 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3261 Use std::move.
3262 * mi/mi-main.c (mi_print_exception): Take a const reference.
3263 * main.c (handle_command_errors): Take a const reference.
3264 * linespec.c (parse_linespec): Use std::move.
3265 * infcall.c (run_inferior_call): Use std::move.
3266 (call_function_by_hand_dummy): Use std::move.
3267 * exec.c (try_open_exec_file): Use std::move.
3268 * exceptions.h (exception_print, exception_fprintf)
3269 (exception_print_same): Update.
3270 * exceptions.c (print_exception, exception_print)
3271 (exception_fprintf, exception_print_same): Change parameters to
3272 const reference.
3273 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
3274 * common/new-op.c: Use std::move.
3275 * common/common-exceptions.h (struct gdb_exception): Add move
3276 constructor.
3277 (struct gdb_exception_error, struct gdb_exception_quit, struct
3278 gdb_quit_bad_alloc): Change constructor to move constructor.
3279 (throw_exception): Change parameter to rvalue reference.
3280 * common/common-exceptions.c (throw_exception): Take rvalue
3281 reference.
3282 * cli/cli-interp.c (safe_execute_command): Use std::move.
3283 * breakpoint.c (insert_bp_location, location_to_sals): Use
3284 std::move.
3285
3286 2019-04-25 Tom Tromey <tromey@adacore.com>
3287
3288 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
3289 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
3290 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
3291 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
3292 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
3293 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
3294 guile/scm-value.c: Use unpack.
3295 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
3296 gdbscm_gdb_exception.
3297 (gdbscm_throw_gdb_exception): Likewise.
3298 (struct gdbscm_gdb_exception): New.
3299 (unpack): New function.
3300 (gdbscm_wrap): Use unpack.
3301
3302 2019-04-25 Tom Tromey <tromey@adacore.com>
3303
3304 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3305 (gdb_rl_callback_handler): Use std::move.
3306 * common/common-exceptions.h (struct gdb_exception): Add move
3307 assignment operator.
3308 (throw_exception_sjlj): Change "exception" to const reference.
3309 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
3310 (throw_exception_sjlj): Change "exception" to const reference.
3311
3312 2019-04-25 Tom Tromey <tromey@adacore.com>
3313
3314 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
3315 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
3316 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
3317 Update.
3318 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
3319 Update.
3320 * mi/mi-interp.c (mi_interp::exec): Update.
3321 * linespec.c (parse_linespec): Update.
3322 * infcall.c (run_inferior_call): Update.
3323 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
3324 * guile/scm-symbol.c (gdbscm_lookup_symbol)
3325 (gdbscm_lookup_global_symbol): Update.
3326 * guile/scm-param.c (gdbscm_parameter_value): Update.
3327 * guile/scm-frame.c (gdbscm_frame_read_register)
3328 (gdbscm_frame_read_var): Update.
3329 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
3330 * exec.c (try_open_exec_file): Update.
3331 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
3332 (gdb_rl_callback_handler): Update.
3333 * common/common-exceptions.h (exception_none): Don't declare.
3334 * common/common-exceptions.c (exception_none): Don't define.
3335 (struct catcher) <exception>: Update.
3336 * cli/cli-interp.c (safe_execute_command): Update.
3337 * breakpoint.c (insert_bp_location, location_to_sals): Update.
3338
3339 2019-04-25 Ali Tamur <tamur@google.com>
3340
3341 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
3342 (read_attribute_value): Likewise.
3343 (dwarf2_read_addr_index): Update comment.
3344 (read_str_index): Add DW_FORM_strx.
3345 (dwarf2_string_attr): Likewise.
3346 (dwarf2_const_value_attr): Likewise.
3347 (dump_die_shallow): Likewise.
3348 (dwarf2_fetch_constant_bytes): Likewise.
3349 (skip_form_bytes): Likewise.
3350 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
3351
3352 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
3353
3354 PR corefiles/11608
3355 PR corefiles/18187
3356 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
3357 OFFSET. Verify if current mapping contains an ELF header.
3358 (linux_find_memory_regions_full): Adjust call to
3359 dump_mapping_p.
3360
3361 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
3362 Kang Li <kanglictf@gmail.com>
3363
3364 PR gdb/21600
3365
3366 * dwarf2-frame.c (read_initial_length): Be consistent about using
3367 unsigned representation of length.
3368 (decode_frame_entry_1): Likewise. Check for wraparound of
3369 end pointer as well as buffer overflow.
3370
3371 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
3372
3373 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
3374 "vq".
3375
3376 2019-04-24 Tom Tromey <tromey@adacore.com>
3377
3378 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
3379
3380 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * s12z-tdep.c (s12z_unwind_pc): Delete.
3383 (s12z_unwind_sp): Delete.
3384 (s12z_gdbarch_init): Don't register deleted functions with
3385 gdbarch.
3386
3387 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3388
3389 * rl78-tdep.c (rl78_unwind_sp): Delete.
3390 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
3391
3392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
3395 (xstormy16_unwind_pc): Delete.
3396 (xstormy16_dummy_id): Delete.
3397 (xstormy16_gdbarch_init): Don't register deleted functions with
3398 gdbarch.
3399
3400 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * vax-tdep.c (vax_unwind_pc): Delete.
3403 (vax_gdbarch_init): Don't register deleted function with gdbarch.
3404
3405 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 * v850-tdep.c (v850_unwind_sp): Delete.
3408 (v850_unwind_pc): Delete.
3409 (v850_dummy_id): Delete.
3410 (v850_gdbarch_init): Don't register deleted functions with
3411 gdbarch.
3412
3413 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
3416 (tilegx_unwind_pc): Delete.
3417 (tilegx_unwind_dummy_id): Delete.
3418 (tilegx_gdbarch_init): Don't register deleted functions with
3419 gdbarch.
3420
3421 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3422
3423 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
3424 (tic6x_dummy_id): Delete.
3425 (tic6x_gdbarch_init): Don't register deleted functions with
3426 gdbarch.
3427
3428 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3429
3430 * sparc-tdep.c (sparc_unwind_pc): Delete.
3431 (sparc32_gdbarch_init): Don't register deleted function with
3432 gdbarch.
3433
3434 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * sh-tdep.c (sh_unwind_sp): Delete.
3437 (sh_unwind_pc): Delete.
3438 (sh_dummy_id): Delete.
3439 (sh_gdbarch_init): Don't register deleted functions with
3440 gdbarch.
3441
3442 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3443
3444 * score-tdep.c (score_unwind_sp): Delete.
3445 (score_unwind_pc): Delete.
3446 (score_dummy_id): Delete.
3447 (score_gdbarch_init): Don't register deleted functions with
3448 gdbarch.
3449
3450 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * rx-tdep.c (rx_unwind_pc): Delete.
3453 (rx_unwind_sp): Delete.
3454 (rx_dummy_id): Delete.
3455 (rx_gdbarch_init): Don't register deleted functions with
3456 gdbarch. Update comment.
3457
3458 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3459
3460 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
3461 (rs6000_dummy_id): Delete.
3462 (rs6000_gdbarch_init): Don't register deleted functions with
3463 gdbarch.
3464
3465 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3466
3467 * or1k-tdep.c (or1k_dummy_id): Delete.
3468 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
3469
3470 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * nios2-tdep.c (nios2_dummy_id): Delete.
3473 (nios2_unwind_sp): Delete.
3474 (nios2_gdbarch_init): Don't register deleted functions with
3475 gdbarch.
3476
3477 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 * nds32-tdep.c (nds32_dummy_id): Delete.
3480 (nds32_unwind_pc): Delete.
3481 (nds32_unwind_sp): Delete.
3482 (nds32_gdbarch_init): Don't register deleted functions with
3483 gdbarch.
3484
3485 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * msp430-tdep.c (msp430_unwind_pc): Delete.
3488 (msp430_unwind_sp): Delete.
3489 (msp430_dummy_id): Delete.
3490 (msp430_gdbarch_init): Don't register deleted functions with
3491 gdbarch.
3492
3493 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * moxie-tdep.c (moxie_unwind_sp): Delete.
3496 (moxie_unwind_pc): Delete.
3497 (moxie_dummy_id): Delete.
3498 (moxie_gdbarch_init): Don't register deleted functions with
3499 gdbarch.
3500
3501 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * mn10300-tdep.c (mn10300_dummy_id): Delete.
3504 (mn10300_unwind_pc): Delete.
3505 (mn10300_unwind_sp): Delete.
3506 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
3507 mn10300_unwind_sp.
3508 (mn10300_frame_unwind_init): Don't register deleted functions with
3509 gdbarch.
3510
3511 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * mep-tdep.c (mep_unwind_pc): Delete.
3514 (mep_unwind_sp): Delete.
3515 (mep_dummy_id): Delete.
3516 (mep_gdbarch_init): Don't register deleted functions with
3517 gdbarch.
3518
3519 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
3522 (m68hc11_unwind_sp): Delete.
3523 (m68hc11_gdbarch_init): Don't register deleted functions with
3524 gdbarch.
3525
3526 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3527
3528 * m32r-tdep.c (m32r_unwind_sp): Delete.
3529 (m32r_unwind_pc): Delete.
3530 (m32r_dummy_id): Delete.
3531 (m32r_gdbarch_init): Don't register deleted functions with
3532 gdbarch.
3533
3534 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * m32c-tdep.c (m32c_unwind_pc): Delete.
3537 (m32c_unwind_sp): Delete.
3538 (m32c_dummy_id): Delete.
3539 (m32c_gdbarch_init): Don't register deleted functions with
3540 gdbarch.
3541
3542 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
3545 (lm32_unwind_pc): Delete.
3546 (lm32_dummy_id): Delete.
3547 (lm32_gdbarch_init): Don't register deleted functions with
3548 gdbarch.
3549
3550 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
3553 (iq2000_unwind_pc): Delete.
3554 (iq2000_dummy_id): Delete.
3555 (iq2000_gdbarch_init): Don't register deleted functions with
3556 gdbarch.
3557
3558 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3559
3560 * nds32-tdep.c (nds32_type_align): Delete.
3561 (nds32_push_dummy_call): Use type_align instead.
3562
3563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3564
3565 * arm-tdep.c (arm_type_align): Only handle vector override case.
3566 (arm_push_dummy_call): Use type_align.
3567 (arm_gdbarch_init): Register arm_type_align gdbarch function.
3568
3569 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
3572 case.
3573 (pass_on_stack): Use type_align.
3574 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
3575 function.
3576
3577 2019-04-23 Tom Tromey <tromey@adacore.com>
3578
3579 * dwarf2read.c (line_header::file_name_at): Remove unused
3580 overload.
3581
3582 2019-04-23 Tom de Vries <tdevries@suse.de>
3583
3584 PR gdb/24438
3585 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
3586 invocation.
3587
3588
3589 2019-03-27 Ali Tamur <tamur@google.com>
3590
3591 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
3592 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
3593 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
3594 (dwarf_expr_context::get_addr_index): Likewise
3595 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
3596 (symbol_needs_eval_context::get_addr_index): Likewise
3597 (disassemble_dwarf_expression): Add DW_OP_addrx
3598 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
3599 (read_cutu_die_from_dwo): Update comment
3600 (skip_one_die): Add DW_FORM_addrx
3601 (read_attribute_value): Likewise
3602 (var_decode_location): Add DW_OP_addrx
3603 (dwarf2_const_value_attr): Add DW_FORM_addrx
3604 (dump_die_shallow): Likewise
3605 (dwarf2_fetch_constant_bytes): Likewise
3606 (decode_locdesc): Add DW_OP_addrx
3607 (skip_form_bytes): Add DW_FORM_addrx
3608
3609 2019-04-22 Ali Tamur <tamur@google.com>
3610
3611 * MAINTAINERS (Write After Approval): Add self.
3612
3613 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * solib-svr4.c (get_svr4_info): Add pspace parameter.
3616 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
3617 (open_symbol_file_object): Likewise.
3618 (svr4_default_sos): Add info parameter.
3619 (svr4_read_so_list): Likewise.
3620 (svr4_current_sos_direct): Adjust functions calls to pass down
3621 info.
3622 (svr4_current_sos_1): Add info parameter.
3623 (svr4_current_sos): Call get_svr4_info, pass info down to
3624 svr4_current_sos_1.
3625 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
3626 get_svr4_info.
3627 (svr4_in_dynsym_resolve_code): Pass current_program_space to
3628 get_svr4_info.
3629 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
3630 to get_svr4_info.
3631 (probes_table_remove_objfile_probes): Likewise.
3632 (register_solib_event_probe): Add info parameter.
3633 (solist_update_incremental): Pass info parameter down to
3634 svr4_read_so_list.
3635 (disable_probes_interface): Add info parameter.
3636 (svr4_handle_solib_event): Pass current_program_space to
3637 get_svr4_info. Adjust disable_probes_interface cleanup.
3638 (svr4_create_probe_breakpoints): Add info parameter, pass it
3639 down to register_solib_event_probe.
3640 (svr4_create_solib_event_breakpoints): Add info parameter,
3641 pass it down to svr4_create_probe_breakpoints.
3642 (enable_break): Pass info down to
3643 svr4_create_solib_event_breakpoints.
3644 (svr4_solib_create_inferior_hook): Pass current_program_space to
3645 get_svr4_info.
3646 (svr4_clear_solib): Likewise.
3647
3648 2019-04-22 Pedro Alves <palves@redhat.com>
3649
3650 * solib-svr4.c (svr4_free_objfile_observer): New.
3651 (probe_and_action::objfile): New field.
3652 (probes_table_htab_remove_objfile_probes)
3653 (probes_table_remove_objfile_probes): New functions.
3654 (register_solib_event_probe): Add 'objfile' parameter. Store it
3655 in the new probe_and_action. Don't store the probe in 'lookup'.
3656 (svr4_create_probe_breakpoints): Pass objfile to
3657 register_solib_event_probe.
3658 (_initialize_svr4_solib): Register a free_objfile observer.
3659
3660 2019-04-19 Tom Tromey <tom@tromey.com>
3661
3662 * common/queue.h: Remove.
3663
3664 2019-04-19 Tom Tromey <tom@tromey.com>
3665
3666 * event-loop.c: Don't include "common/queue.h".
3667
3668 2019-04-19 Tom Tromey <tom@tromey.com>
3669
3670 * remote.c (remote_target): Use delete.
3671 * remote-notif.h: Include <list>, not "common/queue.h".
3672 (notif_client_p): Remove typedef.
3673 (remote_notif_state): Add constructor, destructor, initializer.
3674 <notif_queue>: Now a std::list.
3675 (remote_notif_state_xfree): Don't declare.
3676 * remote-notif.c (remote_notif_process, handle_notification)
3677 (remote_notif_state_allocate): Update.
3678 (~remote_notif_state): Rename from remote_notif_state_xfree.
3679
3680 2019-04-19 Tom Tromey <tom@tromey.com>
3681
3682 * symfile.c (reread_symbols): Update.
3683 * objfiles.c (objfile_register_static_link)
3684 (objfile_lookup_static_link): Update
3685 (~objfile) Don't delete static_links.
3686 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
3687
3688 2019-04-19 Tom Tromey <tom@tromey.com>
3689
3690 * type-stack.h (struct type_stack) <insert>: Constify string.
3691 * type-stack.c (type_stack::insert): Constify string.
3692 * gdbtypes.h (lookup_template_type): Update.
3693 (address_space_name_to_int): Update.
3694 * gdbtypes.c (address_space_name_to_int): Make space_identifier
3695 const.
3696 (lookup_template_type): Make name const.
3697 * c-exp.y: Update rules.
3698 (lex_one_token, classify_name, classify_inner_name)
3699 (c_print_token): Update.
3700 * p-exp.y: Update rules.
3701 (yylex): Update.
3702 * f-exp.y: Update rules.
3703 (yylex): Update.
3704 * d-exp.y: Update rules.
3705 (lex_one_token, classify_name, classify_inner_name): Update.
3706 * parse.c (write_dollar_variable, copy_name): Return std::string.
3707 * parser-defs.h (copy_name): Change return type.
3708 * m2-exp.y: Update rules.
3709 (yylex): Update.
3710 * go-exp.y (lex_one_token): Update.
3711 Update rules.
3712 (classify_unsafe_function, classify_packaged_name)
3713 (classify_name, yylex): Update.
3714
3715 2019-04-19 Sergei Trofimovich <siarheit@google.com>
3716
3717 * configure.ac: add --enable-source-highlight switch.
3718 * configure: Regenerate.
3719 * top.c (print_gdb_version): plumb --enable-source-highlight
3720 status to "show configuration".
3721
3722 2019-04-19 Tom Tromey <tromey@adacore.com>
3723
3724 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
3725 Check ADA_TYPE_P.
3726 (empty_record, ada_template_to_fixed_record_type_1)
3727 (template_to_static_fixed_type)
3728 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
3729 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
3730 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
3731 macros.
3732
3733 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
3734
3735 PR symtab/24423:
3736 * source.c (print_source_lines_base): Advance "iter" when a
3737 control character is seen.
3738
3739 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3740
3741 * inferior.h (struct infcall_suspend_state_deleter):
3742 Catch exception in destructor to avoid crash.
3743
3744 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3745
3746 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
3747 close to the add_com "shell".
3748
3749 2019-04-18 Tom Tromey <tromey@adacore.com>
3750
3751 * process-stratum-target.h (class process_stratum_target)
3752 <stratum>: Add "final".
3753
3754 2019-04-17 Tom Tromey <tromey@adacore.com>
3755
3756 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
3757 against nullptr before use.
3758
3759 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3760
3761 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
3762
3763 2019-04-17 Jim Wilson <jimw@sifive.com>
3764 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
3767 code read might fail, assume 4-byte breakpoint in that case.
3768
3769 2019-04-15 Leszek Swirski <leszeks@google.com>
3770
3771 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
3772 rather than a hand-rolled POD check when checking for forced MEMORY
3773 classification.
3774
3775 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3776
3777 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
3778 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
3779 function.
3780 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
3781 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
3782 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
3783 declaration.
3784
3785 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3786
3787 * aarch64-linux-nat.c
3788 (aarch64_linux_nat_target::thread_architecture): Add override.
3789 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
3790 each VQ.
3791
3792 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3793
3794 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
3795
3796 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
3797
3798 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
3799 target types of size 96-bits, add some additional comments, and
3800 check that the builtin type we found was the correct size.
3801
3802 2019-04-12 Eli Zaretskii <eliz@gnu.org>
3803
3804 * utils.c (prompt_for_continue): Don't restore the styling at the
3805 end, as applied_style has the wrong value. This fixes styling in
3806 long lists of file names that are interrupted by the "Continue?"
3807 prompt.
3808
3809 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
3810
3811 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
3812 * c-lang.c (c_language_defn): Likewise.
3813 (cplus_language_defn): Likewise.
3814 (asm_language_defn): Likewise.
3815 (minimal_language_defn): Likewise.
3816 * d-lang.c (d_language_defn): Likewise.
3817 * f-lang.c (f_language_defn): Likewise.
3818 * go-lang.c (go_language_defn): Likewise.
3819 * language.c (unknown_language_defn): Likewise.
3820 (auto_language_defn): Likewise.
3821 * language.h (struct language_defn): Remove la_magic field.
3822 (LANG_MAGIC): Delete.
3823 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
3824 * objc-lang.c (objc_language_defn): Likewise.
3825 * opencl-lang.c (opencl_language_defn): Likewise.
3826 * p-lang.c (pascal_language_defn): Likewise.
3827 * rust-lang.c (rust_language_defn): Likewise.
3828
3829 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3830
3831 * riscv-tdep.c (riscv_type_align): New function.
3832 (riscv_type_alignment): Delete.
3833 (riscv_arg_location): Use 'type_align'.
3834 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
3835
3836 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * gdbtypes.c (type_align): A struct with no non-static fields also
3839 has alignment of 1.
3840
3841 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3842
3843 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
3844 component to 0.
3845 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
3846 member.
3847 (riscv_struct_info::analyse): New implementation using new
3848 analyse_inner member function.
3849 (riscv_struct_info::field_offset): New member function.
3850 (riscv_struct_info::m_offsets): New member variable.
3851 (riscv_struct_info::analyse_inner): New private member function,
3852 takes the old implementation of riscv_struct_info::analyse but
3853 extended to track field offsets.
3854 (riscv_call_arg_struct): Update the struct folding special cases
3855 to handle cases where empty C++ structs, which are non-zero
3856 length, are found.
3857 (riscv_arg_location): Initialise the length of each location, a
3858 non-zero length now indicates the location is in use.
3859 (riscv_push_dummy_call): Allow for the first location having a
3860 non-zero offset when setting up arguments.
3861 (riscv_return_value): Likewise, but for return values.
3862
3863 2019-04-11 Tom Tromey <tromey@adacore.com>
3864
3865 * utils.c (internal_vproblem): Make "msg" const.
3866
3867 2019-04-11 Alan Hayward <alan.hayward@arm.com>
3868
3869 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
3870 * trad-frame.c (trad_frame_reset_saved_regs): New function.
3871 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
3872 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
3873
3874 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3875
3876 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
3877 function.
3878 (fill_gregset): Call amd64_linux_collect_native_gregset instead
3879 of amd64_collect_native_gregset.
3880 (amd64_linux_nat_target::store_registers): Likewise.
3881
3882 2019-04-10 Tom Tromey <tom@tromey.com>
3883
3884 * symtab.c (lookup_global_symbol_from_objfile)
3885 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
3886 * objfiles.h (class separate_debug_iterator): New.
3887 (class separate_debug_range): New.
3888 (struct objfile) <separate_debug_objfiles>: New method.
3889 (objfile_separate_debug_iterate): Don't declare.
3890 * objfiles.c (separate_debug_iterator::operator++): Rename from
3891 objfile_separate_debug_iterate.
3892 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
3893 iterator.
3894 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
3895 iterator.
3896
3897 2019-04-10 Tom Tromey <tom@tromey.com>
3898
3899 * symfile.c (reread_symbols): Remove old comment.
3900 * objfiles.c (free_all_objfiles): Fix a typo.
3901
3902 2019-04-10 Tom Tromey <tom@tromey.com>
3903
3904 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
3905 * minsyms.c (lookup_minimal_symbol): Use foreach.
3906 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3907 (lookup_minimal_symbol_solib_trampoline): Likewise.
3908 * symfile.c (reread_symbols): Use foreach.
3909
3910 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
3911 Tom Tromey <tromey@adacore.com>
3912
3913 PR rust/24414:
3914 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
3915 (rust_lex_int_test): Change "value" to be LONGEST.
3916 (rust_lex_tests): Add test for long integer literal.
3917
3918 2019-04-09 Tom Tromey <tromey@adacore.com>
3919
3920 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
3921 to bool.
3922 (extended_remote_target::attach): Update.
3923 (remote_target::remote_notice_new_inferior): Update.
3924 (remote_target::add_current_inferior_and_thread): Update.
3925 * inferior.c (exit_inferior_1): Use "false".
3926 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
3927
3928 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
3931 the "start" command.
3932
3933 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3934
3935 * python/py-inferior.c (infpy_thread_from_thread_handle):
3936 Adjust comments to reflect renaming of thread_from_thread_handle
3937 to thread_from_handle. Adjust keywords. Fix type error message.
3938 (inferior_object_methods): Add thread_from_handle. Retain
3939 thread_from_thread_handle, but mark it as deprecated.
3940
3941 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3942
3943 * gdbthread.h (find_thread_by_handle): Revise declaration.
3944 * thread.c (find_thread_by_handle): Likewise. Adjust
3945 implementation too.
3946 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
3947 support for buffer objects as handles.
3948
3949 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3950
3951 * python/py-infthread.c (thpy_thread_handle): New function.
3952 (thread_object_methods): Register thpy_thread_handle.
3953
3954 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3955
3956 * gdbthread.h (thread_to_thread_handle): Declare.
3957 * thread.c (gdbtypes.h): Include.
3958 (thread_to_thread_handle): New function.
3959
3960 * target.h (struct target_ops): Add thread_info_to_thread_handle.
3961 (target_thread_info_to_thread_handle): Declare.
3962 * target.c (target_thread_info_to_thread_handle): New function.
3963 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
3964 * target-delegates.c: Regenerate.
3965
3966 * linux-thread-db.c (class thread_db_target): Add method
3967 thread_info_to_thread_handle.
3968 (thread_db_target::thread_info_to_thread_handle): Define.
3969 * remote.c (class remote_target): Add new method
3970 thread_info_to_thread_handle.
3971 (remote_target::thread_info_to_thread_handle): Define.
3972
3973 2019-04-08 Pedro Alves <palves@redhat.com>
3974
3975 * common/common-exceptions.c (throw_exception): Don't create
3976 named object to throw; throw directly.
3977 (throw_it): Likewise. Don't initialize gdb_exception::message
3978 here, with new; pass FMT and AP to the ctor instead.
3979 * common/common-exceptions.h: Include <string>.
3980 (gdb_exception::gdb_exception(enum return_reason, enum errors,
3981 const char *, va_list)): New ctor. Use std::make_shared.
3982 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
3983 errors)): Delete.
3984 (gdb_exception_error::gdb_exception_error(enum errors, const char
3985 *, va_list)): New.
3986 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
3987 Add assertion.
3988 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
3989 errors)): Delete.
3990 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
3991 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
3992 Add assertion.
3993
3994 2019-04-08 Tom Tromey <tom@tromey.com>
3995
3996 * valops.c (value_rtti_indirect_type): Replace throw_exception
3997 with throw.
3998 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
3999 with throw.
4000 * thread.c (thr_try_catch_cmd): Replace throw_exception with
4001 throw.
4002 * target.c (target_translate_tls_address): Replace throw_exception
4003 with throw.
4004 * stack.c (frame_apply_command_count): Replace throw_exception
4005 with throw.
4006 * solib-spu.c (append_ocl_sos): Replace throw_exception with
4007 throw.
4008 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
4009 with throw.
4010 * rs6000-tdep.c (rs6000_frame_cache)
4011 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
4012 * remote.c: Replace throw_exception with throw.
4013 * record-full.c (record_full_message, record_full_wait_1)
4014 (record_full_restore): Replace throw_exception with throw.
4015 * record-btrace.c:
4016 (get_thread_current_frame_id, record_btrace_start_replaying)
4017 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
4018 (cmd_record_btrace_start): Replace throw_exception with throw.
4019 * parse.c (parse_exp_in_context_1): Replace throw_exception with
4020 throw.
4021 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
4022 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
4023 * linespec.c:
4024 (find_linespec_symbols): Replace throw_exception with throw.
4025 * infrun.c (displaced_step_prepare, resume): Replace
4026 throw_exception with throw.
4027 * infcmd.c (post_create_inferior): Replace throw_exception with
4028 throw.
4029 * inf-loop.c (inferior_event_handler): Replace throw_exception
4030 with throw.
4031 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
4032 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
4033 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
4034 (get_prev_frame_always, get_frame_pc_if_available)
4035 (get_frame_address_in_block_if_available, get_frame_language):
4036 Replace throw_exception with throw.
4037 * frame-unwind.c (frame_unwind_try_unwinder): Replace
4038 throw_exception with throw.
4039 * eval.c (fetch_subexp_value, evaluate_var_value)
4040 (evaluate_funcall, evaluate_subexp_standard): Replace
4041 throw_exception with throw.
4042 * dwarf2loc.c (call_site_find_chain)
4043 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
4044 Replace throw_exception with throw.
4045 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
4046 with throw.
4047 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
4048 throw.
4049 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
4050 * completer.c (complete_line_internal): Replace throw_exception
4051 with throw.
4052 * compile/compile-object-run.c (compile_object_run): Replace
4053 throw_exception with throw.
4054 * cli/cli-script.c (process_next_line): Replace throw_exception
4055 with throw.
4056 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
4057 (btrace_enable, btrace_maint_update_pt_packets): Replace
4058 throw_exception with throw.
4059 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
4060 throw_exception with throw.
4061 * break-catch-throw.c (re_set_exception_catchpoint): Replace
4062 throw_exception with throw.
4063 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
4064 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
4065 * aarch64-tdep.c (aarch64_make_prologue_cache)
4066 (aarch64_make_stub_cache): Replace throw_exception with throw.
4067
4068 2019-04-08 Tom Tromey <tom@tromey.com>
4069
4070 * common/common-exceptions.c (throw_exception): Rename from
4071 throw_exception_cxx. Remove old copy. Make argument const.
4072 (throw_it): Create and throw exception objects directly.
4073 * common/common-exceptions.h (throw_exception): Make argument
4074 const.
4075 (struct gdb_exception_error): Add constructor.
4076 (struct gdb_exception_quit): Add constructor.
4077
4078 2019-04-08 Tom Tromey <tom@tromey.com>
4079
4080 * common/common-exceptions.h (exception_rethrow): Don't declare.
4081 (TRY_SJLJ): Update comment.
4082 (TRY, CATCH, END_CATCH): Remove.
4083 * common/common-exceptions.c (exception_rethrow): Remove.
4084
4085 2019-04-08 Tom Tromey <tom@tromey.com>
4086
4087 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
4088 Remove.
4089 (gdb_exception_error): Rename from
4090 gdb_exception_RETURN_MASK_ERROR.
4091 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
4092 (gdb_quit_bad_alloc): Update.
4093 * aarch64-tdep.c: Update.
4094 * ada-lang.c: Update.
4095 * ada-typeprint.c: Update.
4096 * ada-valprint.c: Update.
4097 * amd64-tdep.c: Update.
4098 * arch-utils.c: Update.
4099 * break-catch-throw.c: Update.
4100 * breakpoint.c: Update.
4101 * btrace.c: Update.
4102 * c-varobj.c: Update.
4103 * cli/cli-cmds.c: Update.
4104 * cli/cli-interp.c: Update.
4105 * cli/cli-script.c: Update.
4106 * common/common-exceptions.c: Update.
4107 * common/new-op.c: Update.
4108 * common/selftest.c: Update.
4109 * compile/compile-c-symbols.c: Update.
4110 * compile/compile-cplus-symbols.c: Update.
4111 * compile/compile-object-load.c: Update.
4112 * compile/compile-object-run.c: Update.
4113 * completer.c: Update.
4114 * corelow.c: Update.
4115 * cp-abi.c: Update.
4116 * cp-support.c: Update.
4117 * cp-valprint.c: Update.
4118 * darwin-nat.c: Update.
4119 * disasm-selftests.c: Update.
4120 * dtrace-probe.c: Update.
4121 * dwarf-index-cache.c: Update.
4122 * dwarf-index-write.c: Update.
4123 * dwarf2-frame-tailcall.c: Update.
4124 * dwarf2-frame.c: Update.
4125 * dwarf2loc.c: Update.
4126 * dwarf2read.c: Update.
4127 * eval.c: Update.
4128 * event-loop.c: Update.
4129 * event-top.c: Update.
4130 * exec.c: Update.
4131 * f-valprint.c: Update.
4132 * fbsd-tdep.c: Update.
4133 * frame-unwind.c: Update.
4134 * frame.c: Update.
4135 * gdbtypes.c: Update.
4136 * gnu-v3-abi.c: Update.
4137 * guile/guile-internal.h: Update.
4138 * guile/scm-block.c: Update.
4139 * guile/scm-breakpoint.c: Update.
4140 * guile/scm-cmd.c: Update.
4141 * guile/scm-disasm.c: Update.
4142 * guile/scm-frame.c: Update.
4143 * guile/scm-lazy-string.c: Update.
4144 * guile/scm-math.c: Update.
4145 * guile/scm-param.c: Update.
4146 * guile/scm-ports.c: Update.
4147 * guile/scm-pretty-print.c: Update.
4148 * guile/scm-symbol.c: Update.
4149 * guile/scm-symtab.c: Update.
4150 * guile/scm-type.c: Update.
4151 * guile/scm-value.c: Update.
4152 * i386-linux-tdep.c: Update.
4153 * i386-tdep.c: Update.
4154 * inf-loop.c: Update.
4155 * infcall.c: Update.
4156 * infcmd.c: Update.
4157 * infrun.c: Update.
4158 * jit.c: Update.
4159 * language.c: Update.
4160 * linespec.c: Update.
4161 * linux-fork.c: Update.
4162 * linux-nat.c: Update.
4163 * linux-tdep.c: Update.
4164 * linux-thread-db.c: Update.
4165 * main.c: Update.
4166 * mi/mi-cmd-break.c: Update.
4167 * mi/mi-cmd-stack.c: Update.
4168 * mi/mi-interp.c: Update.
4169 * mi/mi-main.c: Update.
4170 * objc-lang.c: Update.
4171 * p-valprint.c: Update.
4172 * parse.c: Update.
4173 * ppc-linux-tdep.c: Update.
4174 * printcmd.c: Update.
4175 * python/py-arch.c: Update.
4176 * python/py-breakpoint.c: Update.
4177 * python/py-cmd.c: Update.
4178 * python/py-finishbreakpoint.c: Update.
4179 * python/py-frame.c: Update.
4180 * python/py-framefilter.c: Update.
4181 * python/py-gdb-readline.c: Update.
4182 * python/py-inferior.c: Update.
4183 * python/py-infthread.c: Update.
4184 * python/py-lazy-string.c: Update.
4185 * python/py-linetable.c: Update.
4186 * python/py-objfile.c: Update.
4187 * python/py-param.c: Update.
4188 * python/py-prettyprint.c: Update.
4189 * python/py-progspace.c: Update.
4190 * python/py-record-btrace.c: Update.
4191 * python/py-record.c: Update.
4192 * python/py-symbol.c: Update.
4193 * python/py-type.c: Update.
4194 * python/py-unwind.c: Update.
4195 * python/py-utils.c: Update.
4196 * python/py-value.c: Update.
4197 * python/python.c: Update.
4198 * record-btrace.c: Update.
4199 * record-full.c: Update.
4200 * remote-fileio.c: Update.
4201 * remote.c: Update.
4202 * riscv-tdep.c: Update.
4203 * rs6000-aix-tdep.c: Update.
4204 * rs6000-tdep.c: Update.
4205 * rust-exp.y: Update.
4206 * rust-lang.c: Update.
4207 * s390-tdep.c: Update.
4208 * selftest-arch.c: Update.
4209 * solib-dsbt.c: Update.
4210 * solib-frv.c: Update.
4211 * solib-spu.c: Update.
4212 * solib-svr4.c: Update.
4213 * solib.c: Update.
4214 * sparc64-linux-tdep.c: Update.
4215 * stack.c: Update.
4216 * symfile-mem.c: Update.
4217 * symmisc.c: Update.
4218 * target.c: Update.
4219 * thread.c: Update.
4220 * top.c: Update.
4221 * tracefile-tfile.c: Update.
4222 * tui/tui.c: Update.
4223 * typeprint.c: Update.
4224 * unittests/cli-utils-selftests.c: Update.
4225 * unittests/parse-connection-spec-selftests.c: Update.
4226 * valops.c: Update.
4227 * valprint.c: Update.
4228 * value.c: Update.
4229 * varobj.c: Update.
4230 * windows-nat.c: Update.
4231 * x86-linux-nat.c: Update.
4232 * xml-support.c: Update.
4233
4234 2019-04-08 Tom Tromey <tom@tromey.com>
4235
4236 * xml-support.c: Use C++ exception handling.
4237 * x86-linux-nat.c: Use C++ exception handling.
4238 * windows-nat.c: Use C++ exception handling.
4239 * varobj.c: Use C++ exception handling.
4240 * value.c: Use C++ exception handling.
4241 * valprint.c: Use C++ exception handling.
4242 * valops.c: Use C++ exception handling.
4243 * unittests/parse-connection-spec-selftests.c: Use C++ exception
4244 handling.
4245 * unittests/cli-utils-selftests.c: Use C++ exception handling.
4246 * typeprint.c: Use C++ exception handling.
4247 * tui/tui.c: Use C++ exception handling.
4248 * tracefile-tfile.c: Use C++ exception handling.
4249 * top.c: Use C++ exception handling.
4250 * thread.c: Use C++ exception handling.
4251 * target.c: Use C++ exception handling.
4252 * symmisc.c: Use C++ exception handling.
4253 * symfile-mem.c: Use C++ exception handling.
4254 * stack.c: Use C++ exception handling.
4255 * sparc64-linux-tdep.c: Use C++ exception handling.
4256 * solib.c: Use C++ exception handling.
4257 * solib-svr4.c: Use C++ exception handling.
4258 * solib-spu.c: Use C++ exception handling.
4259 * solib-frv.c: Use C++ exception handling.
4260 * solib-dsbt.c: Use C++ exception handling.
4261 * selftest-arch.c: Use C++ exception handling.
4262 * s390-tdep.c: Use C++ exception handling.
4263 * rust-lang.c: Use C++ exception handling.
4264 * rust-exp.y: Use C++ exception handling.
4265 * rs6000-tdep.c: Use C++ exception handling.
4266 * rs6000-aix-tdep.c: Use C++ exception handling.
4267 * riscv-tdep.c: Use C++ exception handling.
4268 * remote.c: Use C++ exception handling.
4269 * remote-fileio.c: Use C++ exception handling.
4270 * record-full.c: Use C++ exception handling.
4271 * record-btrace.c: Use C++ exception handling.
4272 * python/python.c: Use C++ exception handling.
4273 * python/py-value.c: Use C++ exception handling.
4274 * python/py-utils.c: Use C++ exception handling.
4275 * python/py-unwind.c: Use C++ exception handling.
4276 * python/py-type.c: Use C++ exception handling.
4277 * python/py-symbol.c: Use C++ exception handling.
4278 * python/py-record.c: Use C++ exception handling.
4279 * python/py-record-btrace.c: Use C++ exception handling.
4280 * python/py-progspace.c: Use C++ exception handling.
4281 * python/py-prettyprint.c: Use C++ exception handling.
4282 * python/py-param.c: Use C++ exception handling.
4283 * python/py-objfile.c: Use C++ exception handling.
4284 * python/py-linetable.c: Use C++ exception handling.
4285 * python/py-lazy-string.c: Use C++ exception handling.
4286 * python/py-infthread.c: Use C++ exception handling.
4287 * python/py-inferior.c: Use C++ exception handling.
4288 * python/py-gdb-readline.c: Use C++ exception handling.
4289 * python/py-framefilter.c: Use C++ exception handling.
4290 * python/py-frame.c: Use C++ exception handling.
4291 * python/py-finishbreakpoint.c: Use C++ exception handling.
4292 * python/py-cmd.c: Use C++ exception handling.
4293 * python/py-breakpoint.c: Use C++ exception handling.
4294 * python/py-arch.c: Use C++ exception handling.
4295 * printcmd.c: Use C++ exception handling.
4296 * ppc-linux-tdep.c: Use C++ exception handling.
4297 * parse.c: Use C++ exception handling.
4298 * p-valprint.c: Use C++ exception handling.
4299 * objc-lang.c: Use C++ exception handling.
4300 * mi/mi-main.c: Use C++ exception handling.
4301 * mi/mi-interp.c: Use C++ exception handling.
4302 * mi/mi-cmd-stack.c: Use C++ exception handling.
4303 * mi/mi-cmd-break.c: Use C++ exception handling.
4304 * main.c: Use C++ exception handling.
4305 * linux-thread-db.c: Use C++ exception handling.
4306 * linux-tdep.c: Use C++ exception handling.
4307 * linux-nat.c: Use C++ exception handling.
4308 * linux-fork.c: Use C++ exception handling.
4309 * linespec.c: Use C++ exception handling.
4310 * language.c: Use C++ exception handling.
4311 * jit.c: Use C++ exception handling.
4312 * infrun.c: Use C++ exception handling.
4313 * infcmd.c: Use C++ exception handling.
4314 * infcall.c: Use C++ exception handling.
4315 * inf-loop.c: Use C++ exception handling.
4316 * i386-tdep.c: Use C++ exception handling.
4317 * i386-linux-tdep.c: Use C++ exception handling.
4318 * guile/scm-value.c: Use C++ exception handling.
4319 * guile/scm-type.c: Use C++ exception handling.
4320 * guile/scm-symtab.c: Use C++ exception handling.
4321 * guile/scm-symbol.c: Use C++ exception handling.
4322 * guile/scm-pretty-print.c: Use C++ exception handling.
4323 * guile/scm-ports.c: Use C++ exception handling.
4324 * guile/scm-param.c: Use C++ exception handling.
4325 * guile/scm-math.c: Use C++ exception handling.
4326 * guile/scm-lazy-string.c: Use C++ exception handling.
4327 * guile/scm-frame.c: Use C++ exception handling.
4328 * guile/scm-disasm.c: Use C++ exception handling.
4329 * guile/scm-cmd.c: Use C++ exception handling.
4330 * guile/scm-breakpoint.c: Use C++ exception handling.
4331 * guile/scm-block.c: Use C++ exception handling.
4332 * guile/guile-internal.h: Use C++ exception handling.
4333 * gnu-v3-abi.c: Use C++ exception handling.
4334 * gdbtypes.c: Use C++ exception handling.
4335 * frame.c: Use C++ exception handling.
4336 * frame-unwind.c: Use C++ exception handling.
4337 * fbsd-tdep.c: Use C++ exception handling.
4338 * f-valprint.c: Use C++ exception handling.
4339 * exec.c: Use C++ exception handling.
4340 * event-top.c: Use C++ exception handling.
4341 * event-loop.c: Use C++ exception handling.
4342 * eval.c: Use C++ exception handling.
4343 * dwarf2read.c: Use C++ exception handling.
4344 * dwarf2loc.c: Use C++ exception handling.
4345 * dwarf2-frame.c: Use C++ exception handling.
4346 * dwarf2-frame-tailcall.c: Use C++ exception handling.
4347 * dwarf-index-write.c: Use C++ exception handling.
4348 * dwarf-index-cache.c: Use C++ exception handling.
4349 * dtrace-probe.c: Use C++ exception handling.
4350 * disasm-selftests.c: Use C++ exception handling.
4351 * darwin-nat.c: Use C++ exception handling.
4352 * cp-valprint.c: Use C++ exception handling.
4353 * cp-support.c: Use C++ exception handling.
4354 * cp-abi.c: Use C++ exception handling.
4355 * corelow.c: Use C++ exception handling.
4356 * completer.c: Use C++ exception handling.
4357 * compile/compile-object-run.c: Use C++ exception handling.
4358 * compile/compile-object-load.c: Use C++ exception handling.
4359 * compile/compile-cplus-symbols.c: Use C++ exception handling.
4360 * compile/compile-c-symbols.c: Use C++ exception handling.
4361 * common/selftest.c: Use C++ exception handling.
4362 * common/new-op.c: Use C++ exception handling.
4363 * cli/cli-script.c: Use C++ exception handling.
4364 * cli/cli-interp.c: Use C++ exception handling.
4365 * cli/cli-cmds.c: Use C++ exception handling.
4366 * c-varobj.c: Use C++ exception handling.
4367 * btrace.c: Use C++ exception handling.
4368 * breakpoint.c: Use C++ exception handling.
4369 * break-catch-throw.c: Use C++ exception handling.
4370 * arch-utils.c: Use C++ exception handling.
4371 * amd64-tdep.c: Use C++ exception handling.
4372 * ada-valprint.c: Use C++ exception handling.
4373 * ada-typeprint.c: Use C++ exception handling.
4374 * ada-lang.c: Use C++ exception handling.
4375 * aarch64-tdep.c: Use C++ exception handling.
4376
4377 2019-04-08 Tom Tromey <tom@tromey.com>
4378
4379 * xml-support.c (gdb_xml_parser::parse): Update.
4380 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4381 * value.c (show_convenience): Update.
4382 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
4383 (test_parse_flags_qcs): Update.
4384 * thread.c (thr_try_catch_cmd): Update.
4385 * target.c (target_translate_tls_address): Update.
4386 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4387 (info_frame_command_core, frame_apply_command_count): Update.
4388 * rust-exp.y (rust_lex_exception_test): Update.
4389 * riscv-tdep.c (riscv_print_one_register_info): Update.
4390 * remote.c (remote_target::enable_btrace): Update.
4391 * record-btrace.c (record_btrace_enable_warn): Update.
4392 * python/py-utils.c (gdbpy_convert_exception): Update.
4393 * printcmd.c (do_one_display, print_variable_and_value): Update.
4394 * mi/mi-main.c (mi_print_exception): Update.
4395 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
4396 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4397 * linux-nat.c (linux_nat_target::attach): Update.
4398 * linux-fork.c (class scoped_switch_fork_info): Update.
4399 * infrun.c (displaced_step_prepare): Update.
4400 * infcall.c (call_function_by_hand_dummy): Update.
4401 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
4402 * gnu-v3-abi.c (print_one_vtable): Update.
4403 * frame.c (get_prev_frame_always): Update.
4404 * f-valprint.c (info_common_command_for_block): Update.
4405 * exec.c (try_open_exec_file): Update.
4406 * exceptions.c (print_exception, exception_print)
4407 (exception_fprintf, exception_print_same): Update.
4408 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
4409 * dwarf-index-cache.c (index_cache::store)
4410 (index_cache::lookup_gdb_index): Update.
4411 * darwin-nat.c (maybe_cache_shell): Update.
4412 * cp-valprint.c (cp_print_value_fields): Update.
4413 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
4414 (gcc_cplus_symbol_address): Update.
4415 * compile/compile-c-symbols.c (gcc_convert_symbol)
4416 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
4417 * common/selftest.c: Update.
4418 * common/common-exceptions.h (struct gdb_exception) <message>: Now
4419 a std::string.
4420 (exception_try_scope_entry, exception_try_scope_exit): Don't
4421 declare.
4422 (struct exception_try_scope): Remove.
4423 (TRY): Don't use exception_try_scope.
4424 (struct gdb_exception): Add constructor, operator=.
4425 <what>: New method.
4426 (struct gdb_exception_RETURN_MASK_ALL)
4427 (struct gdb_exception_RETURN_MASK_ERROR)
4428 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
4429 (struct gdb_quit_bad_alloc): Update.
4430 * common/common-exceptions.c (exception_none): Change
4431 initializer.
4432 (struct catcher) <state, exception>: Initialize inline.
4433 <prev>: Remove member.
4434 (current_catcher): Remove.
4435 (catchers): New global.
4436 (exceptions_state_mc_init): Simplify.
4437 (catcher_pop): Remove.
4438 (exceptions_state_mc, exceptions_state_mc_catch): Update.
4439 (try_scope_depth, exception_try_scope_entry)
4440 (exception_try_scope_exit): Remove.
4441 (throw_exception_sjlj): Update.
4442 (exception_messages, exception_messages_size): Remove.
4443 (throw_it): Simplify.
4444 (gdb_exception_sliced_copy): Remove.
4445 (throw_exception_cxx): Update.
4446 * cli/cli-script.c (script_from_file): Update.
4447 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
4448 Update.
4449 * ada-valprint.c (ada_val_print): Update.
4450 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
4451 (create_excep_cond_exprs): Update.
4452
4453 2019-04-08 Tom Tromey <tom@tromey.com>
4454
4455 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
4456 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
4457 (TRY, CATCH, END_CATCH): Remove some definitions.
4458 * common/common-exceptions.c: Don't use GDB_XCPT.
4459 (catcher_list_size): Remove.
4460 (throw_exception, throw_it): Simplify.
4461
4462 2019-04-05 Tom Tromey <tom@tromey.com>
4463
4464 Revert the header-sorting patch.
4465 * ft32-tdep.c: Revert.
4466 * frv-tdep.c: Revert.
4467 * frv-linux-tdep.c: Revert.
4468 * frame.c: Revert.
4469 * frame-unwind.c: Revert.
4470 * frame-base.c: Revert.
4471 * fork-child.c: Revert.
4472 * findvar.c: Revert.
4473 * findcmd.c: Revert.
4474 * filesystem.c: Revert.
4475 * filename-seen-cache.h: Revert.
4476 * filename-seen-cache.c: Revert.
4477 * fbsd-tdep.c: Revert.
4478 * fbsd-nat.h: Revert.
4479 * fbsd-nat.c: Revert.
4480 * f-valprint.c: Revert.
4481 * f-typeprint.c: Revert.
4482 * f-lang.c: Revert.
4483 * extension.h: Revert.
4484 * extension.c: Revert.
4485 * extension-priv.h: Revert.
4486 * expprint.c: Revert.
4487 * exec.h: Revert.
4488 * exec.c: Revert.
4489 * exceptions.c: Revert.
4490 * event-top.c: Revert.
4491 * event-loop.c: Revert.
4492 * eval.c: Revert.
4493 * elfread.c: Revert.
4494 * dwarf2read.h: Revert.
4495 * dwarf2read.c: Revert.
4496 * dwarf2loc.c: Revert.
4497 * dwarf2expr.h: Revert.
4498 * dwarf2expr.c: Revert.
4499 * dwarf2-frame.c: Revert.
4500 * dwarf2-frame-tailcall.c: Revert.
4501 * dwarf-index-write.h: Revert.
4502 * dwarf-index-write.c: Revert.
4503 * dwarf-index-common.c: Revert.
4504 * dwarf-index-cache.h: Revert.
4505 * dwarf-index-cache.c: Revert.
4506 * dummy-frame.c: Revert.
4507 * dtrace-probe.c: Revert.
4508 * disasm.h: Revert.
4509 * disasm.c: Revert.
4510 * disasm-selftests.c: Revert.
4511 * dictionary.c: Revert.
4512 * dicos-tdep.c: Revert.
4513 * demangle.c: Revert.
4514 * dcache.h: Revert.
4515 * dcache.c: Revert.
4516 * darwin-nat.h: Revert.
4517 * darwin-nat.c: Revert.
4518 * darwin-nat-info.c: Revert.
4519 * d-valprint.c: Revert.
4520 * d-namespace.c: Revert.
4521 * d-lang.c: Revert.
4522 * ctf.c: Revert.
4523 * csky-tdep.c: Revert.
4524 * csky-linux-tdep.c: Revert.
4525 * cris-tdep.c: Revert.
4526 * cris-linux-tdep.c: Revert.
4527 * cp-valprint.c: Revert.
4528 * cp-support.c: Revert.
4529 * cp-namespace.c: Revert.
4530 * cp-abi.c: Revert.
4531 * corelow.c: Revert.
4532 * corefile.c: Revert.
4533 * continuations.c: Revert.
4534 * completer.h: Revert.
4535 * completer.c: Revert.
4536 * complaints.c: Revert.
4537 * coffread.c: Revert.
4538 * coff-pe-read.c: Revert.
4539 * cli-out.h: Revert.
4540 * cli-out.c: Revert.
4541 * charset.c: Revert.
4542 * c-varobj.c: Revert.
4543 * c-valprint.c: Revert.
4544 * c-typeprint.c: Revert.
4545 * c-lang.c: Revert.
4546 * buildsym.c: Revert.
4547 * buildsym-legacy.c: Revert.
4548 * build-id.h: Revert.
4549 * build-id.c: Revert.
4550 * btrace.c: Revert.
4551 * bsd-uthread.c: Revert.
4552 * breakpoint.h: Revert.
4553 * breakpoint.c: Revert.
4554 * break-catch-throw.c: Revert.
4555 * break-catch-syscall.c: Revert.
4556 * break-catch-sig.c: Revert.
4557 * blockframe.c: Revert.
4558 * block.c: Revert.
4559 * bfin-tdep.c: Revert.
4560 * bfin-linux-tdep.c: Revert.
4561 * bfd-target.c: Revert.
4562 * bcache.c: Revert.
4563 * ax-general.c: Revert.
4564 * ax-gdb.h: Revert.
4565 * ax-gdb.c: Revert.
4566 * avr-tdep.c: Revert.
4567 * auxv.c: Revert.
4568 * auto-load.c: Revert.
4569 * arm-wince-tdep.c: Revert.
4570 * arm-tdep.c: Revert.
4571 * arm-symbian-tdep.c: Revert.
4572 * arm-pikeos-tdep.c: Revert.
4573 * arm-obsd-tdep.c: Revert.
4574 * arm-nbsd-tdep.c: Revert.
4575 * arm-nbsd-nat.c: Revert.
4576 * arm-linux-tdep.c: Revert.
4577 * arm-linux-nat.c: Revert.
4578 * arm-fbsd-tdep.c: Revert.
4579 * arm-fbsd-nat.c: Revert.
4580 * arm-bsd-tdep.c: Revert.
4581 * arch-utils.c: Revert.
4582 * arc-tdep.c: Revert.
4583 * arc-newlib-tdep.c: Revert.
4584 * annotate.h: Revert.
4585 * annotate.c: Revert.
4586 * amd64-windows-tdep.c: Revert.
4587 * amd64-windows-nat.c: Revert.
4588 * amd64-tdep.c: Revert.
4589 * amd64-sol2-tdep.c: Revert.
4590 * amd64-obsd-tdep.c: Revert.
4591 * amd64-obsd-nat.c: Revert.
4592 * amd64-nbsd-tdep.c: Revert.
4593 * amd64-nbsd-nat.c: Revert.
4594 * amd64-nat.c: Revert.
4595 * amd64-linux-tdep.c: Revert.
4596 * amd64-linux-nat.c: Revert.
4597 * amd64-fbsd-tdep.c: Revert.
4598 * amd64-fbsd-nat.c: Revert.
4599 * amd64-dicos-tdep.c: Revert.
4600 * amd64-darwin-tdep.c: Revert.
4601 * amd64-bsd-nat.c: Revert.
4602 * alpha-tdep.c: Revert.
4603 * alpha-obsd-tdep.c: Revert.
4604 * alpha-nbsd-tdep.c: Revert.
4605 * alpha-mdebug-tdep.c: Revert.
4606 * alpha-linux-tdep.c: Revert.
4607 * alpha-linux-nat.c: Revert.
4608 * alpha-bsd-tdep.c: Revert.
4609 * alpha-bsd-nat.c: Revert.
4610 * aix-thread.c: Revert.
4611 * agent.c: Revert.
4612 * addrmap.c: Revert.
4613 * ada-varobj.c: Revert.
4614 * ada-valprint.c: Revert.
4615 * ada-typeprint.c: Revert.
4616 * ada-tasks.c: Revert.
4617 * ada-lang.c: Revert.
4618 * aarch64-tdep.c: Revert.
4619 * aarch64-ravenscar-thread.c: Revert.
4620 * aarch64-newlib-tdep.c: Revert.
4621 * aarch64-linux-tdep.c: Revert.
4622 * aarch64-linux-nat.c: Revert.
4623 * aarch64-fbsd-tdep.c: Revert.
4624 * aarch64-fbsd-nat.c: Revert.
4625 * aarch32-linux-nat.c: Revert.
4626
4627 2019-04-05 Tom Tromey <tom@tromey.com>
4628
4629 * ft32-tdep.c: Sort headers.
4630 * frv-tdep.c: Sort headers.
4631 * frv-linux-tdep.c: Sort headers.
4632 * frame.c: Sort headers.
4633 * frame-unwind.c: Sort headers.
4634 * frame-base.c: Sort headers.
4635 * fork-child.c: Sort headers.
4636 * findvar.c: Sort headers.
4637 * findcmd.c: Sort headers.
4638 * filesystem.c: Sort headers.
4639 * filename-seen-cache.h: Sort headers.
4640 * filename-seen-cache.c: Sort headers.
4641 * fbsd-tdep.c: Sort headers.
4642 * fbsd-nat.h: Sort headers.
4643 * fbsd-nat.c: Sort headers.
4644 * f-valprint.c: Sort headers.
4645 * f-typeprint.c: Sort headers.
4646 * f-lang.c: Sort headers.
4647 * extension.h: Sort headers.
4648 * extension.c: Sort headers.
4649 * extension-priv.h: Sort headers.
4650 * expprint.c: Sort headers.
4651 * exec.h: Sort headers.
4652 * exec.c: Sort headers.
4653 * exceptions.c: Sort headers.
4654 * event-top.c: Sort headers.
4655 * event-loop.c: Sort headers.
4656 * eval.c: Sort headers.
4657 * elfread.c: Sort headers.
4658 * dwarf2read.h: Sort headers.
4659 * dwarf2read.c: Sort headers.
4660 * dwarf2loc.c: Sort headers.
4661 * dwarf2expr.h: Sort headers.
4662 * dwarf2expr.c: Sort headers.
4663 * dwarf2-frame.c: Sort headers.
4664 * dwarf2-frame-tailcall.c: Sort headers.
4665 * dwarf-index-write.h: Sort headers.
4666 * dwarf-index-write.c: Sort headers.
4667 * dwarf-index-common.c: Sort headers.
4668 * dwarf-index-cache.h: Sort headers.
4669 * dwarf-index-cache.c: Sort headers.
4670 * dummy-frame.c: Sort headers.
4671 * dtrace-probe.c: Sort headers.
4672 * disasm.h: Sort headers.
4673 * disasm.c: Sort headers.
4674 * disasm-selftests.c: Sort headers.
4675 * dictionary.c: Sort headers.
4676 * dicos-tdep.c: Sort headers.
4677 * demangle.c: Sort headers.
4678 * dcache.h: Sort headers.
4679 * dcache.c: Sort headers.
4680 * darwin-nat.h: Sort headers.
4681 * darwin-nat.c: Sort headers.
4682 * darwin-nat-info.c: Sort headers.
4683 * d-valprint.c: Sort headers.
4684 * d-namespace.c: Sort headers.
4685 * d-lang.c: Sort headers.
4686 * ctf.c: Sort headers.
4687 * csky-tdep.c: Sort headers.
4688 * csky-linux-tdep.c: Sort headers.
4689 * cris-tdep.c: Sort headers.
4690 * cris-linux-tdep.c: Sort headers.
4691 * cp-valprint.c: Sort headers.
4692 * cp-support.c: Sort headers.
4693 * cp-namespace.c: Sort headers.
4694 * cp-abi.c: Sort headers.
4695 * corelow.c: Sort headers.
4696 * corefile.c: Sort headers.
4697 * continuations.c: Sort headers.
4698 * completer.h: Sort headers.
4699 * completer.c: Sort headers.
4700 * complaints.c: Sort headers.
4701 * coffread.c: Sort headers.
4702 * coff-pe-read.c: Sort headers.
4703 * cli-out.h: Sort headers.
4704 * cli-out.c: Sort headers.
4705 * charset.c: Sort headers.
4706 * c-varobj.c: Sort headers.
4707 * c-valprint.c: Sort headers.
4708 * c-typeprint.c: Sort headers.
4709 * c-lang.c: Sort headers.
4710 * buildsym.c: Sort headers.
4711 * buildsym-legacy.c: Sort headers.
4712 * build-id.h: Sort headers.
4713 * build-id.c: Sort headers.
4714 * btrace.c: Sort headers.
4715 * bsd-uthread.c: Sort headers.
4716 * breakpoint.h: Sort headers.
4717 * breakpoint.c: Sort headers.
4718 * break-catch-throw.c: Sort headers.
4719 * break-catch-syscall.c: Sort headers.
4720 * break-catch-sig.c: Sort headers.
4721 * blockframe.c: Sort headers.
4722 * block.c: Sort headers.
4723 * bfin-tdep.c: Sort headers.
4724 * bfin-linux-tdep.c: Sort headers.
4725 * bfd-target.c: Sort headers.
4726 * bcache.c: Sort headers.
4727 * ax-general.c: Sort headers.
4728 * ax-gdb.h: Sort headers.
4729 * ax-gdb.c: Sort headers.
4730 * avr-tdep.c: Sort headers.
4731 * auxv.c: Sort headers.
4732 * auto-load.c: Sort headers.
4733 * arm-wince-tdep.c: Sort headers.
4734 * arm-tdep.c: Sort headers.
4735 * arm-symbian-tdep.c: Sort headers.
4736 * arm-pikeos-tdep.c: Sort headers.
4737 * arm-obsd-tdep.c: Sort headers.
4738 * arm-nbsd-tdep.c: Sort headers.
4739 * arm-nbsd-nat.c: Sort headers.
4740 * arm-linux-tdep.c: Sort headers.
4741 * arm-linux-nat.c: Sort headers.
4742 * arm-fbsd-tdep.c: Sort headers.
4743 * arm-fbsd-nat.c: Sort headers.
4744 * arm-bsd-tdep.c: Sort headers.
4745 * arch-utils.c: Sort headers.
4746 * arc-tdep.c: Sort headers.
4747 * arc-newlib-tdep.c: Sort headers.
4748 * annotate.h: Sort headers.
4749 * annotate.c: Sort headers.
4750 * amd64-windows-tdep.c: Sort headers.
4751 * amd64-windows-nat.c: Sort headers.
4752 * amd64-tdep.c: Sort headers.
4753 * amd64-sol2-tdep.c: Sort headers.
4754 * amd64-obsd-tdep.c: Sort headers.
4755 * amd64-obsd-nat.c: Sort headers.
4756 * amd64-nbsd-tdep.c: Sort headers.
4757 * amd64-nbsd-nat.c: Sort headers.
4758 * amd64-nat.c: Sort headers.
4759 * amd64-linux-tdep.c: Sort headers.
4760 * amd64-linux-nat.c: Sort headers.
4761 * amd64-fbsd-tdep.c: Sort headers.
4762 * amd64-fbsd-nat.c: Sort headers.
4763 * amd64-dicos-tdep.c: Sort headers.
4764 * amd64-darwin-tdep.c: Sort headers.
4765 * amd64-bsd-nat.c: Sort headers.
4766 * alpha-tdep.c: Sort headers.
4767 * alpha-obsd-tdep.c: Sort headers.
4768 * alpha-nbsd-tdep.c: Sort headers.
4769 * alpha-mdebug-tdep.c: Sort headers.
4770 * alpha-linux-tdep.c: Sort headers.
4771 * alpha-linux-nat.c: Sort headers.
4772 * alpha-bsd-tdep.c: Sort headers.
4773 * alpha-bsd-nat.c: Sort headers.
4774 * aix-thread.c: Sort headers.
4775 * agent.c: Sort headers.
4776 * addrmap.c: Sort headers.
4777 * ada-varobj.c: Sort headers.
4778 * ada-valprint.c: Sort headers.
4779 * ada-typeprint.c: Sort headers.
4780 * ada-tasks.c: Sort headers.
4781 * ada-lang.c: Sort headers.
4782 * aarch64-tdep.c: Sort headers.
4783 * aarch64-ravenscar-thread.c: Sort headers.
4784 * aarch64-newlib-tdep.c: Sort headers.
4785 * aarch64-linux-tdep.c: Sort headers.
4786 * aarch64-linux-nat.c: Sort headers.
4787 * aarch64-fbsd-tdep.c: Sort headers.
4788 * aarch64-fbsd-nat.c: Sort headers.
4789 * aarch32-linux-nat.c: Sort headers.
4790
4791 2019-04-04 Tom Tromey <tom@tromey.com>
4792
4793 * varobj.c (varobj_create): Update.
4794 * rust-exp.y (struct rust_parser) <update_innermost_block,
4795 lookup_symbol>: New methods.
4796 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
4797 Rename.
4798 (rust_parser::rust_lookup_type)
4799 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
4800 * printcmd.c (display_command, do_one_display): Update.
4801 * parser-defs.h (struct parser_state) <parser_state>: Add
4802 "tracker" parameter.
4803 (block_tracker): New member.
4804 (class innermost_block_tracker) <innermost_block_tracker>: Add
4805 "types" parameter.
4806 <reset>: Remove method.
4807 (innermost_block): Don't declare.
4808 (null_post_parser): Update.
4809 * parse.c (innermost_block): Remove global.
4810 (write_dollar_variable): Update.
4811 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
4812 Remove "tracker_types" parameter.
4813 (parse_expression): Add "tracker" parameter.
4814 (parse_expression_for_completion): Update.
4815 (null_post_parser): Add "tracker" parameter.
4816 * p-exp.y: Update rules.
4817 * m2-exp.y: Update rules.
4818 * language.h (struct language_defn) <la_post_parser>: Add
4819 "tracker" parameter.
4820 * go-exp.y: Update rules.
4821 * f-exp.y: Update rules.
4822 * expression.h (parse_expression, parse_exp_1): Add "tracker"
4823 parameter.
4824 * d-exp.y: Update rules.
4825 * c-exp.y: Update rules.
4826 * breakpoint.c (set_breakpoint_condition): Create an
4827 innermost_block_tracker.
4828 (watch_command_1): Likewise.
4829 * ada-lang.c (resolve): Add "tracker" parameter.
4830 (resolve_subexp): Likewise.
4831 * ada-exp.y (write_var_from_sym): Update.
4832
4833 2019-04-04 Tom Tromey <tom@tromey.com>
4834
4835 * type-stack.h: New file.
4836 * type-stack.c: New file.
4837 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
4838 type-stack.h.
4839 (insert_into_type_stack, insert_type, push_type, push_type_int)
4840 (insert_type_address_space, pop_type, pop_type_int)
4841 (pop_typelist, pop_type_stack, append_type_stack)
4842 (push_type_stack, get_type_stack, push_typelist)
4843 (follow_type_instance_flags, follow_types): Don't declare.
4844 * parse.c (type_stack): Remove global.
4845 (parse_exp_in_context): Update.
4846 (insert_into_type_stack, insert_type, push_type, push_type_int)
4847 (insert_type_address_space, pop_type, pop_type_int)
4848 (pop_typelist, pop_type_stack, append_type_stack)
4849 (push_type_stack, get_type_stack, push_typelist)
4850 (follow_type_instance_flags, follow_types): Remove (moved to
4851 type-stack.c).
4852 * f-exp.y (type_stack): New global.
4853 Update rules.
4854 (push_kind_type, f_parse): Update.
4855 * d-exp.y (type_stack): New global.
4856 Update rules.
4857 (d_parse): Update.
4858 * c-exp.y (struct c_parse_state) <type_stack>: New member.
4859 Update rules.
4860 * Makefile.in (COMMON_SFILES): Add type-stack.c.
4861 (HFILES_NO_SRCDIR): Add type-stack.h.
4862
4863 2019-04-04 Tom Tromey <tom@tromey.com>
4864
4865 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
4866 (rust_parser::convert_ast_to_expression, rust_parse)
4867 (rust_lex_test_completion, rust_lex_tests): Update.
4868 * parser-defs.h (struct expr_completion_state): New.
4869 (struct parser_state) <parser_state>: Add completion parameter.
4870 <mark_struct_expression, mark_completion_tag>: New methods.
4871 <parse_completion, m_completion_state>: New members.
4872 (prefixify_expression, null_post_parser): Update.
4873 (mark_struct_expression, mark_completion_tag): Don't declare.
4874 * parse.c (parse_completion, expout_last_struct)
4875 (expout_tag_completion_type, expout_completion_name): Remove
4876 globals.
4877 (parser_state::mark_struct_expression)
4878 (parser_state::mark_completion_tag): Now methods.
4879 (prefixify_expression): Add last_struct parameter.
4880 (prefixify_subexp): Likewise.
4881 (parse_exp_1): Update.
4882 (parse_exp_in_context): Add cstate parameter. Update.
4883 (parse_expression_for_completion): Create an
4884 expr_completion_state.
4885 (null_post_parser): Add "completion" parameter.
4886 * p-exp.y: Update rules.
4887 (yylex): Update.
4888 * language.h (struct language_defn) <la_post_parser>: Add
4889 "completing" parameter.
4890 * go-exp.y: Update rules.
4891 (lex_one_token): Update.
4892 * expression.h (parse_completion): Don't declare.
4893 * d-exp.y: Update rules.
4894 (lex_one_token): Update rules.
4895 * c-exp.y: Update rules.
4896 (lex_one_token): Update.
4897 * ada-lang.c (resolve): Add "parse_completion" parameter.
4898 (resolve_subexp): Likewise.
4899 (ada_resolve_function): Likewise.
4900
4901 2019-04-04 Tom Tromey <tom@tromey.com>
4902
4903 * parser-defs.h (struct parser_state) <start_arglist,
4904 end_arglist>: New methods.
4905 <arglist_len, m_funcall_chain>: New members.
4906 (arglist_len, start_arglist, end_arglist): Don't declare.
4907 * parse.c (arglist_len, funcall_chain): Remove global.
4908 (start_arglist, end_arglist): Remove functions.
4909 (parse_exp_in_context): Update.
4910 * p-exp.y: Update rules.
4911 * m2-exp.y: Update rules.
4912 * go-exp.y: Update rules.
4913 * f-exp.y: Update rules.
4914 * d-exp.y: Update rules.
4915 * c-exp.y: Update rules.
4916
4917 2019-04-04 Tom Tromey <tom@tromey.com>
4918
4919 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
4920 lex_operator, push_back>: New methods.
4921 Update all rules.
4922 (rust_parser::lex_hex, lex_escape): Rename and update.
4923 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
4924 (rust_parser::lex_operator): Rename and update.
4925 (rust_parser::lex_number, rustyylex, rustyyerror)
4926 (rust_lex_test_init, rust_lex_test_sequence)
4927 (rust_lex_test_push_back, rust_lex_tests): Update.
4928 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
4929 parameter.
4930 <lexptr, prev_lexptr>: New members.
4931 (lexptr, prev_lexptr): Don't declare.
4932 * parse.c (lexptr, prev_lexptr): Remove globals.
4933 (parse_exp_in_context): Update.
4934 * p-exp.y (yylex, yyerror): Update.
4935 * m2-exp.y (parse_number, yylex, yyerror): Update.
4936 * go-exp.y (lex_one_token, yyerror): Update.
4937 * f-exp.y (match_string_literal, yylex, yyerror): Update.
4938 * d-exp.y (lex_one_token, yyerror): Update.
4939 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
4940 (lex_one_token, yyerror): Update.
4941 * ada-lex.l (YY_INPUT): Update.
4942 (rewind_to_char): Update.
4943 * ada-exp.y (yyerror): Update.
4944
4945 2019-04-04 Tom Tromey <tom@tromey.com>
4946
4947 * rust-exp.y (rustyylex, rust_lex_tests): Update.
4948 * parser-defs.h (struct parser_state) <parser_state>: Add new
4949 parameter.
4950 <comma_terminates>: New member.
4951 (comma_terminates): Don't declare global.
4952 * parse.c (comma_terminates): Remove global.
4953 (parse_exp_in_context): Update.
4954 * p-exp.y (yylex): Update.
4955 * m2-exp.y (yylex): Update.
4956 * go-exp.y (lex_one_token): Update.
4957 * f-exp.y (yylex): Update.
4958 * d-exp.y (lex_one_token): Update.
4959 * c-exp.y (lex_one_token): Update.
4960 * ada-lex.l: Update.
4961
4962 2019-04-04 Tom Tromey <tom@tromey.com>
4963
4964 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
4965 (rustyylex, rust_lex_test_init, rust_lex_test_one)
4966 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
4967 * parser-defs.h (paren_depth): Don't declare.
4968 * parse.c (paren_depth): Remove global.
4969 (parse_exp_in_context): Update.
4970 * p-exp.y (paren_depth): New global.
4971 (pascal_parse): Initialize it.
4972 * m2-exp.y (paren_depth): New global.
4973 (m2_parse): Initialize it.
4974 * go-exp.y (paren_depth): New global.
4975 (go_parse): Initialize it.
4976 * f-exp.y (paren_depth): New global.
4977 (f_parse): Initialize it.
4978 * d-exp.y (paren_depth): New global.
4979 (d_parse): Initialize it.
4980 * c-exp.y (paren_depth): New global.
4981 (c_parse): Initialize it.
4982 * ada-lex.l (paren_depth): New global.
4983 (lexer_init): Initialize it.
4984
4985 2019-04-04 Tom Tromey <tom@tromey.com>
4986
4987 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
4988 (rust_parser::convert_ast_to_type)
4989 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
4990 * parser-defs.h (struct parser_state) <parser_state>: Add
4991 parameters. Initialize new members.
4992 <expression_context_block, expression_context_pc>: New members.
4993 * parse.c (expression_context_block, expression_context_pc):
4994 Remove globals.
4995 (parse_exp_in_context): Update.
4996 * p-exp.y: Update all rules.
4997 (yylex): Update.
4998 * m2-exp.y: Update all rules.
4999 (yylex): Update.
5000 * go-exp.y (yylex): Update.
5001 * f-exp.y (yylex): Update.
5002 * d-exp.y: Update all rules.
5003 (yylex): Update.
5004 * c-exp.y: Update all rules.
5005 (lex_one_token, classify_name, yylex, c_parse): Update.
5006 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
5007
5008 2019-04-04 Tom Tromey <tom@tromey.com>
5009
5010 * gdbarch.h, gdbarch.c: Rebuild.
5011 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
5012 * stap-probe.h:
5013 (struct stap_parse_info): Replace "parser_state" with
5014 "expr_builder".
5015 * parser-defs.h (struct expr_builder): Rename from "parser_state".
5016 (parser_state): New class.
5017 * parse.c (expr_builder): Rename.
5018 (expr_builder::release): Rename.
5019 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
5020 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
5021 (write_exp_elt_longcst, write_exp_elt_floatcst)
5022 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
5023 (write_exp_string_vector, write_exp_bitstring)
5024 (write_exp_msymbol, mark_struct_expression)
5025 (write_dollar_variable)
5026 (insert_type_address_space, increase_expout_size): Replace
5027 "parser_state" with "expr_builder".
5028 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
5029 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
5030 "parser_state" with "expr_builder".
5031
5032 2019-04-04 Tom Tromey <tom@tromey.com>
5033
5034 * rust-exp.y: Replace "parse_language" with method call.
5035 * p-exp.y:
5036 (yylex): Replace "parse_language" with method call.
5037 * m2-exp.y:
5038 (yylex): Replace "parse_language" with method call.
5039 * go-exp.y (classify_name): Replace "parse_language" with method
5040 call.
5041 * f-exp.y (yylex): Replace "parse_language" with method call.
5042 * d-exp.y (lex_one_token): Replace "parse_language" with method
5043 call.
5044 * c-exp.y:
5045 (lex_one_token, classify_name, yylex): Replace "parse_language"
5046 with method call.
5047 * ada-exp.y (find_primitive_type, type_char)
5048 (type_system_address): Replace "parse_language" with method call.
5049
5050 2019-04-04 Tom Tromey <tom@tromey.com>
5051
5052 * rust-exp.y: Replace "parse_gdbarch" with method call.
5053 * parse.c (write_dollar_variable, insert_type_address_space):
5054 Replace "parse_gdbarch" with method call.
5055 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
5056 call.
5057 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
5058 call.
5059 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
5060 "parse_gdbarch" with method call.
5061 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
5062 with method call.
5063 * f-exp.y (parse_type, parse_f_type, yylex): Replace
5064 "parse_gdbarch" with method call.
5065 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
5066 "parse_gdbarch" with method call.
5067 * c-exp.y (parse_type, parse_number, classify_name): Replace
5068 "parse_gdbarch" with method call.
5069 * ada-lex.l: Replace "parse_gdbarch" with method call.
5070 * ada-exp.y (parse_type, find_primitive_type, type_char)
5071 (type_system_address): Replace "parse_gdbarch" with method call.
5072
5073 2019-04-04 Tom Tromey <tom@tromey.com>
5074
5075 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
5076 * stap-probe.c (stap_parse_argument): Update.
5077 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
5078 initial_size parameter.
5079 * rust-exp.y (rust_lex_tests): Update.
5080 * parse.c (parser_state): Update.
5081 (parse_exp_in_context): Update.
5082 * parser-defs.h (struct parser_state) <parser_state>: Remove
5083 "initial_size" parameter.
5084
5085 2019-04-04 Tom Tromey <tom@tromey.com>
5086
5087 * parser-defs.h (increase_expout_size): Don't declare.
5088 * parse.c (increase_expout_size): Now static.
5089
5090 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
5091
5092 * gnu-nat.c (gnu_nat_target::wait): Fix
5093 target_waitstatus_to_string call.
5094
5095 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * eval.c (evaluate_subexp_standard): Handle internal functions
5098 during Fortran function call handling.
5099
5100 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * NEWS: Mention new internal functions.
5103 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
5104 (read_base_type): Use dwarf2_init_complex_target_type.
5105 * value.c (creal_internal_fn): New function.
5106 (cimag_internal_fn): New function.
5107 (_initialize_values): Register new internal functions.
5108
5109 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5110
5111 * infrun.c (stop_all_threads): If debug_infrun, always
5112 trace the wait status after wait_one, using
5113 target_waitstatus_to_string and target_pid_to_str.
5114 (handle_inferior_event): Replace various trace of
5115 wait status kind by a single trace.
5116 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
5117 wait status kind image by target_waitstatus_to_string.
5118 * target/waitstatus.c (target_waitstatus_to_string): Fix
5119 obsolete comment.
5120
5121 2019-04-01 Tom Tromey <tromey@adacore.com>
5122
5123 PR symtab/23331:
5124 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
5125
5126 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
5127 Pedro Alves <palves@redhat.com>
5128
5129 * top.c (quit_force): Call 'finalize_values'.
5130 * value.c (finalize_values): New function.
5131 * value.h (finalize_values): Declare.
5132
5133 2019-03-30 Eli Zaretskii <eliz@gnu.org>
5134
5135 * NEWS: Announce $_gdb_major and $_gdb_minor.
5136
5137 * top.c (init_gdb_version_vars): New function.
5138 (gdb_init): Call init_gdb_version_vars.
5139
5140 2019-03-29 Tom Tromey <tromey@adacore.com>
5141
5142 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
5143 help text. Remove dead code.
5144
5145 2019-03-29 Keith Seitz <keiths@redhat.com>
5146
5147 From Siddhesh Poyarekar:
5148 * f-lang.h (f77_get_upperbound): Return LONGEST.
5149 (f77_get_lowerbound): Likewise.
5150 * f-typeprint.c (f_type_print_varspec_suffix): Expand
5151 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
5152 print them.
5153 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
5154 plongest to format print it.
5155 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
5156 (f77_get_upperbound): Likewise.
5157 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
5158 LOWER_BOUND to LONGEST.
5159 (f77_create_arrayprint_offset_tbl): Likewise.
5160
5161 2019-03-29 Keith Seitz <keiths@redhat.com>
5162
5163 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5164 %s/pulongest for TYPE_LENGTH instead of %d in format
5165 strings.
5166 * ada-typerint.c (ada_print_type): Likewise.
5167 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
5168 * compile/compile-c-support.c (generate_register_struct): Likewise.
5169 * gdbtypes.c (recursive_dump_type): Likewise.
5170 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
5171 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
5172 instead of %d in format strings.
5173 * riscv-tdep.c (riscv_type_alignment): Cast second argument
5174 to std::min to ULONGEST.
5175 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
5176 instead of %d in format strings.
5177 * tracepoint.c (info_scope_command): Likewise.
5178 * typeprint.c (print_offset_data::update)
5179 (print_offset_data::finish): Likewise.
5180 * xtensa-tdep.c (xtensa_store_return_value)
5181 (xtensa_push_dummy_call): Likewise.
5182
5183 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
5184
5185 * windows-nat.c (display_selector): Fixed format specifications
5186 for 64-bit Cygwin.
5187
5188 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5189
5190 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
5191
5192 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
5193
5194 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
5195 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
5196 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
5197 (nios2_linux_init_abi): Install it.
5198
5199 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5200
5201 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
5202
5203 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5204
5205 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
5206
5207 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5208 Tom Tromey <tromey@adacore.com>
5209
5210 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
5211
5212 2019-03-26 Joel Brobecker <brobecker@adacore.com>
5213
5214 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
5215 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
5216 method to compute the bounds of range types. Also print "[evaluated]"
5217 if the bounds' values come from a dynamic evaluation.
5218
5219 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
5220
5221 * cp-valprint.c (cp_print_value_fields): Don't print trailing
5222 whitespace when pretty printing is on.
5223
5224 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5225
5226 * ppc-linux-nat.c: Add include.
5227
5228 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5229
5230 * NEWS: Mention AArch64 Pointer Authentication.
5231
5232 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5233
5234 * arm-linux-nat.c: Add include.
5235
5236 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
5237
5238 * source-cache.c (source_cache::get_source_lines): Re-read
5239 fullname after calling open_source_file.
5240
5241 2019-03-25 John Baldwin <jhb@FreeBSD.org>
5242
5243 * NEWS: Mention TLS support for FreeBSD.
5244
5245 2019-03-25 Tom Tromey <tromey@adacore.com>
5246
5247 * minsyms.c (BUNCH_SIZE): Update comment.
5248 (~minimal_symbol_reader): Remove old comment.
5249 (compact_minimal_symbols): Update comment.
5250 (minimal_symbol_reader::install): Remove old comment. Update
5251 other comments.
5252
5253 2019-03-25 Alan Hayward <alan.hayward@arm.com>
5254
5255 * s390-linux-nat.c: Add include.
5256
5257 2019-03-25 Alan Hayward <alan.hayward@arm.com>
5258
5259 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5260 Call linux_get_hwcap.
5261 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5262 Likewise.
5263 (aarch64_linux_get_hwcap): Remove function.
5264 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
5265 declaration.
5266 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
5267 linux_get_hwcap.
5268 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5269 * linux-tdep.c (linux_get_hwcap): Add function.
5270 (linux_get_hwcap2): Likewise.
5271 * linux-tdep.h (linux_get_hwcap): Add declaration.
5272 (linux_get_hwcap2): Likewise.
5273 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
5274 (ppc_linux_get_hwcap2): Likewise.
5275 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
5276 linux_get_hwcap.
5277 (ppc_linux_nat_target::insert_watchpoint): Likewise.
5278 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
5279 (ppc_linux_nat_target::read_description): Likewise.
5280 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
5281 * s390-linux-nat.c: Likewise.
5282 * s390-linux-tdep.c (s390_core_read_description): Likewise.
5283
5284 2019-03-24 Tom Tromey <tom@tromey.com>
5285
5286 * ada-lang.c (standard_lookup): Simplify initialization.
5287 (ada_lookup_symbol_nonlocal): Simplify return.
5288 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
5289 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
5290 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
5291 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
5292 initialization.
5293 * solib.c (solib_global_lookup): Simplify.
5294 * symtab.c (null_block_symbol): Remove.
5295 (symbol_cache_lookup): Simplify returns.
5296 (lookup_language_this): Simplify returns.
5297 (lookup_symbol_aux): Simplify return.
5298 (lookup_local_symbol): Simplify returns.
5299 (lookup_global_symbol_from_objfile): Simplify return.
5300 (lookup_symbol_in_objfile_symtabs)
5301 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
5302 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
5303 (lookup_static_symbol, lookup_global_symbol): Simplify return.
5304 * cp-namespace.c (cp_lookup_bare_symbol)
5305 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
5306 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
5307 (cp_lookup_nested_symbol): Don't use null_block_symbol.
5308 (cp_lookup_symbol_via_imports): Simplify initialization.
5309 (find_symbol_in_baseclass): Likewise.
5310 * symtab.h (null_block_symbol): Remove.
5311 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
5312 (d_lookup_nested_symbol, d_lookup_symbol_imports)
5313 (d_lookup_symbol_module): Likewise.
5314 (find_symbol_in_baseclass): Simplify initialization.
5315
5316 2019-03-24 Tom Tromey <tom@tromey.com>
5317
5318 * expression.h: Don't include symtab.h.
5319 (struct block): Forward declare.
5320
5321 2019-03-24 Tom Tromey <tom@tromey.com>
5322
5323 * c-exp.y (typebase): Remove casts.
5324 * gdbtypes.c (lookup_unsigned_typename, )
5325 (lookup_signed_typename): Remove cast.
5326 * eval.c (parse_to_comma_and_eval): Remove cast.
5327 * parse.c (write_dollar_variable): Remove cast.
5328 * block.h (struct block) <superblock>: Now const.
5329 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
5330 * psymtab.c (psym_map_matching_symbols): Make "block" const.
5331 (map_block): Make "block" const.
5332 * symfile.h (struct quick_symbol_functions)
5333 <map_matching_symbols>: Constify block argument to "callback".
5334 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
5335 const.
5336 (find_pc_sect_compunit_symtab): Make "b" const.
5337 (find_symbol_at_address): Likewise.
5338 (search_symbols): Likewise.
5339 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
5340 (dw2_debug_names_lookup_symbol): Likewise.
5341 (dw2_map_matching_symbols): Update.
5342 * p-valprint.c (pascal_val_print): Remove "block".
5343 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
5344 (aux_add_nonlocal_symbols): Make "block" const.
5345 (resolve_subexp): Remove cast.
5346 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
5347 const.
5348 (iterate_over_file_blocks): Likewise.
5349 * f-exp.y (%union) <bval>: Remove.
5350 * coffread.c (patch_opaque_types): Make "b" const.
5351 * spu-tdep.c (spu_catch_start): Make "block" const.
5352 * c-valprint.c (print_unpacked_pointer): Remove "block".
5353 * symmisc.c (dump_symtab_1): Make "b" const.
5354 (block_depth): Make "block" const.
5355 * d-exp.y (%union) <bval>: Remove.
5356 * cp-support.h (cp_lookup_rtti_type): Update.
5357 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
5358 * psymtab.c (psym_lookup_symbol): Make "block" const.
5359 (maintenance_check_psymtabs): Make "b" const.
5360 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
5361 (enumerate_locals, enumerate_args): Update.
5362 * python/py-symtab.c (stpy_global_block): Make "block" const.
5363 (stpy_static_block): Likewise.
5364 * inline-frame.c (block_starting_point_at): Make "new_block"
5365 const.
5366 * block.c (find_block_in_blockvector): Make return type const.
5367 (blockvector_for_pc_sect): Make "b" const.
5368 (find_block_in_blockvector): Make "b" const.
5369
5370 2019-03-23 Tom Tromey <tom@tromey.com>
5371
5372 * varobj.c (varobj_create): Update.
5373 * symfile.c (clear_symtab_users): Don't reset innermost_block.
5374 * printcmd.c (display_command, do_one_display): Don't reset
5375 innermost_block.
5376 * parser-defs.h (enum innermost_block_tracker_type): Move to
5377 expression.h.
5378 (innermost_block): Update comment.
5379 * parse.c (parse_exp_1): Add tracker_types parameter.
5380 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
5381 tracker_types parameter. Reset innermost_block.
5382 (parse_exp_in_context): Remove.
5383 (parse_expression_for_completion): Update.
5384 * objfiles.c (~objfile): Don't reset expression_context_block or
5385 innermost_block.
5386 * expression.h (enum innermost_block_tracker_type): Move from
5387 parser-defs.h.
5388 (parse_exp_1): Add tracker_types parameter.
5389 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
5390 reset innermost_block.
5391
5392 2019-03-23 Tom Tromey <tom@tromey.com>
5393
5394 * objfiles.h: Include bcache.h.
5395
5396 2019-03-23 Tom Tromey <tom@tromey.com>
5397
5398 * linespec.c (get_current_search_block): Use
5399 scoped_restore_current_language.
5400 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
5401
5402 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5403 Jiong Wang <jiong.wang@arm.com>
5404
5405 * aarch64-linux-tdep.c
5406 (aarch64_linux_iterate_over_regset_sections): Check for pauth
5407 section.
5408 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
5409
5410 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5411 Jiong Wang <jiong.wang@arm.com>
5412
5413 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
5414 instructions.
5415 (aarch64_analyze_prologue_test): Add PACIASP test.
5416 (aarch64_prologue_prev_register): Unmask PC value.
5417
5418 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5419 Jiong Wang <jiong.wang@arm.com>
5420
5421 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
5422 (aarch64_dwarf2_prev_register): Unmask PC value.
5423 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
5424 (aarch64_execute_dwarf_cfa_vendor_op): Check for
5425 DW_CFA_AARCH64_negate_ra_state.
5426 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
5427
5428 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5429 Jiong Wang <jiong.wang@arm.com>
5430
5431 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
5432 registers.
5433 (aarch64_pseudo_register_name): Likewise.
5434 (aarch64_pseudo_register_type): Likewise.
5435 (aarch64_pseudo_register_reggroup_p): Likewise.
5436 (aarch64_gdbarch_init): Add pauth registers.
5437 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
5438 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
5439 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
5440 (struct gdbarch_tdep): Add regnum for ra_state.
5441
5442 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5443 Jiong Wang <jiong.wang@arm.com>
5444
5445 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
5446
5447 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5448 Jiong Wang <jiong.wang@arm.com>
5449
5450 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
5451 function.
5452 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
5453 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
5454 (aarch64_gdbarch_init): Add puth registers.
5455 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
5456 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
5457 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
5458
5459 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5460 Jiong Wang <jiong.wang@arm.com>
5461
5462 * aarch64-linux-nat.c
5463 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
5464 * aarch64-linux-tdep.c
5465 (aarch64_linux_core_read_description): Likewise.
5466 (aarch64_linux_get_hwcap): New function.
5467 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
5468 (aarch64_linux_get_hwcap): New declaration.
5469
5470 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5471 Jiong Wang <jiong.wang@arm.com>
5472
5473 * aarch64-linux-nat.c
5474 (aarch64_linux_nat_target::read_description): Add pauth param.
5475 * aarch64-linux-tdep.c
5476 (aarch64_linux_core_read_description): Likewise.
5477 * aarch64-tdep.c (struct target_desc): Add in pauth.
5478 (aarch64_read_description): Add pauth param.
5479 (aarch64_gdbarch_init): Likewise.
5480 * aarch64-tdep.h (aarch64_read_description): Likewise.
5481 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5482 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5483 * features/Makefile: Add new files.
5484 * features/aarch64-pauth.c: New file.
5485 * features/aarch64-pauth.xml: New file.
5486
5487 2019-03-20 Tom Tromey <tromey@adacore.com>
5488
5489 * infrun.c (handle_inferior_event): Rename from
5490 handle_inferior_event_1. Create a scoped_value_mark.
5491 (handle_inferior_event): Remove.
5492
5493 2019-03-19 Tom Tromey <tromey@adacore.com>
5494
5495 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
5496 * infrun.h (print_stop_event): Add "displays" parameter.
5497 * infrun.c (print_stop_event): Add "displays" parameter.
5498
5499 2019-03-19 Pedro Alves <palves@redhat.com>
5500
5501 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
5502 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
5503 to -1. Fix TABs vs spaces.
5504 (tui_ui_out::tui_ui_out): Don't initialize fields here.
5505 * tui/tui-out.h (tui_ui_out) Add intro comments.
5506 <m_line, m_start_of_line>: In-class initialize, and add describing
5507 comment.
5508
5509 2019-03-18 Alan Hayward <alan.hayward@arm.com>
5510
5511 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
5512 variable names.
5513 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
5514
5515 2019-03-18 Pedro Alves <palves@redhat.com>
5516 Eli Zaretskii <eliz@gnu.org>
5517
5518 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
5519 m_line and m_start_of_line.
5520
5521 2019-03-18 Eli Zaretskii <eliz@gnu.org>
5522
5523 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
5524 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
5525 it returns a newline. This fixes a regression in TU mode, whereby
5526 the next line is output on the same screen line as the user input.
5527
5528 2019-03-18 Tom Tromey <tromey@adacore.com>
5529
5530 * minsyms.c (minimal_symbol_reader::install): Remove call to
5531 obstack_blank.
5532
5533 2019-03-18 Pedro Alves <palves@redhat.com>
5534
5535 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
5536 New globals.
5537 (apply_style): New, factored out from ...
5538 (apply_ansi_escape): ... this. Handle reverse video mode.
5539 (tui_set_reverse_mode): New function.
5540 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
5541 * tui/tui-winsource.c (tui_show_source_line): Use
5542 tui_set_reverse_mode instead of setting A_STANDOUT.
5543 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
5544 New setter methods.
5545
5546 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
5547
5548 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
5549 Handle tabs.
5550
5551 2019-03-18 Tom Tromey <tromey@adacore.com>
5552
5553 * ada-lang.c (empty_array): Add "high" parameter.
5554 (ada_evaluate_subexp): Update.
5555
5556 2019-03-17 Sergei Trofimovich <siarheit@google.com>
5557
5558 * unittests/string_view-selftests.c: Define
5559 _initialize_string_view_selftests unconditionally.
5560
5561 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
5562
5563 PR gdb/24350
5564 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
5565
5566 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
5567
5568 PR gdb/24351
5569 * windows-nat.c (display_selector): Fix format specifiers.
5570
5571 2019-03-17 Eli Zaretskii <eliz@gnu.org>
5572
5573 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
5574 tui_refill_source_window instead of tui_refresh_win, to update the
5575 current execution line. This fixes redisplay of the current line
5576 when stepping through the code with "next" or "step".
5577
5578 2019-03-16 Eli Zaretskii <eliz@gnu.org>
5579
5580 * source-cache.c (source_cache::get_source_lines): Call
5581 find_source_lines to initialize s->nlines. This fixes vertical
5582 scrolling of TUI source window when the DOWN arrow is pressed.
5583
5584 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5585
5586 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
5587 linux-thread-db.c (_initialize_thread_db): Likewise.
5588
5589 2019-03-16 Eli Zaretskii <eliz@gnu.org>
5590
5591 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
5592 wclrtoeol in tui_show_source_line". This reverts changes made in
5593 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
5594
5595 2019-03-15 Tom Tromey <tom@tromey.com>
5596
5597 * symtab.h (struct minimal_symbol): Derive from
5598 general_symbol_info.
5599 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
5600 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5601 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5602 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5603 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
5604 (MSYMBOL_SEARCH_NAME): Update.
5605 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
5606 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
5607 * minsyms.c (minimal_symbol_reader::record_full): Update.
5608
5609 2019-03-15 Tom Tromey <tom@tromey.com>
5610
5611 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
5612
5613 2019-03-15 Tom Tromey <tom@tromey.com>
5614
5615 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
5616 unique_xmalloc_ptr.
5617 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
5618 Update.
5619 * minsyms.c (lookup_minimal_symbol_by_pc_section)
5620 (build_minimal_symbol_hash_tables)
5621 (minimal_symbol_reader::install): Update.
5622
5623 2019-03-15 Tom Tromey <tom@tromey.com>
5624
5625 * symtab.c (create_demangled_names_hash): Update.
5626 (symbol_set_names): Update.
5627 * objfiles.h (struct objfile_per_bfd_storage)
5628 <demangled_names_hash>: Now an htab_up.
5629 * objfiles.c (objfile_per_bfd_storage): Simplify.
5630
5631 2019-03-15 Tom Tromey <tom@tromey.com>
5632
5633 * objfiles.h (struct objfile_per_bfd_storage): Declare
5634 destructor.
5635 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
5636 New.
5637 (get_objfile_bfd_data): Use new. Don't initialize
5638 language_of_main.
5639 (free_objfile_per_bfd_storage): Remove.
5640 (objfile_bfd_data_free, objfile::~objfile): Use delete.
5641
5642 2019-03-15 Tom Tromey <tom@tromey.com>
5643
5644 * symfile.c (reread_symbols): Update.
5645 * objfiles.c (objfile::objfile): Update.
5646 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
5647 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
5648 comment.
5649 (minimal_symbol_reader::install): Update.
5650 (terminate_minimal_symbol_table): Remove.
5651 * jit.c (jit_object_close_impl): Update.
5652
5653 2019-03-15 Tom Tromey <tom@tromey.com>
5654
5655 * minsyms.c (minimal_symbol_reader::record_full): Remove some
5656 initializations.
5657
5658 2019-03-15 Tom Tromey <tom@tromey.com>
5659
5660 * objfiles.h (struct objfile_per_bfd_storage)
5661 <demangled_hash_languages>: Now a bitset.
5662 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
5663 (lookup_minimal_symbol): Update.
5664
5665 2019-03-15 Tom Tromey <tom@tromey.com>
5666
5667 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
5668 Don't return the symbol.
5669 * coffread.c (record_minimal_symbol): Use record_full.
5670
5671 2019-03-14 Eli Zaretskii <eliz@gnu.org>
5672
5673 The MS-Windows port of ncurses fails to switch to a color pair if
5674 one or both of the colors are the implicit default colors. This
5675 change records the default colors when TUI is initialized, and
5676 then specifies them explicitly when a color pair uses the default
5677 colors. This allows color styling in TUI mode on MS-Windows.
5678
5679 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
5680 ncurses_norm_attr.
5681 (tui_initialize_io) [__MINGW32__]: Record the default terminal
5682 colors in ncurses_norm_attr.
5683 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
5684 "none", replace it with the default color recorded in
5685 ncurses_norm_attr.
5686
5687 2019-03-14 Tom Tromey <tromey@adacore.com>
5688
5689 * source-cache.h (class source_cache) <get_source_lines>: Return
5690 std::string.
5691 * source-cache.c (source_cache::extract_lines): Handle case where
5692 first_pos==npos. Return std::string.
5693 (source_cache::get_source_lines): Update.
5694
5695 2019-03-14 Tom Tromey <tromey@adacore.com>
5696
5697 * NEWS: Add item for "style sources" commands.
5698 * source-cache.c (source_cache::get_source_lines): Check
5699 source_styling.
5700 * cli/cli-style.c (source_styling): New global.
5701 (_initialize_cli_style): Add "style sources" commands.
5702 (show_style_sources): New function.
5703 * cli/cli-style.h (source_styling): Declare.
5704
5705 2019-03-14 Pedro Alves <palves@redhat.com>
5706 Tom Tromey <tromey@adacore.com>
5707
5708 * tui/tui-winsource.h (tui_refill_source_window): Declare.
5709 * tui/tui-winsource.c (tui_refill_source_window): New function,
5710 from...
5711 (tui_horizontal_source_scroll): ... here. Move some logic.
5712 * cli/cli-style.c (set_style_enabled): Notify new observable.
5713 * tui/tui-hooks.c (tui_redisplay_source): New function.
5714 (tui_attach_detach_observers): Attach or detach
5715 tui_redisplay_source.
5716 * observable.h (source_styling_changed): New observable.
5717 * observable.c: Define source_styling_changed observable.
5718
5719 2019-03-13 Tom Tromey <tromey@adacore.com>
5720
5721 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
5722 (i386_gnu_nat_target::store_registers): Update.
5723 * target-debug.h (target_debug_print_std_string): New macro.
5724 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
5725 * windows-tdep.c (display_one_tib): Update.
5726 * tui/tui-stack.c (tui_make_status_line): Update.
5727 * top.c (print_inferior_quit_action): Update.
5728 * thread.c (thr_try_catch_cmd): Update.
5729 (add_thread_with_info): Update.
5730 (thread_target_id_str): Update.
5731 (thr_try_catch_cmd): Update.
5732 (thread_command): Update.
5733 (thread_find_command): Update.
5734 * record-btrace.c (record_btrace_target::info_record)
5735 (record_btrace_resume_thread, record_btrace_target::resume)
5736 (record_btrace_cancel_resume, record_btrace_step_thread)
5737 (record_btrace_target::wait, record_btrace_target::wait)
5738 (record_btrace_target::wait, record_btrace_target::stop): Update.
5739 * progspace.c (print_program_space): Update.
5740 * process-stratum-target.c
5741 (process_stratum_target::thread_address_space): Update.
5742 * linux-fork.c (linux_fork_mourn_inferior)
5743 (detach_checkpoint_command, info_checkpoints_command)
5744 (linux_fork_context): Update.
5745 (linux_fork_detach): Update.
5746 (class scoped_switch_fork_info): Update.
5747 (delete_checkpoint_command): Update.
5748 * infrun.c (follow_fork_inferior): Update.
5749 (follow_fork_inferior): Update.
5750 (proceed_after_vfork_done): Update.
5751 (handle_vfork_child_exec_or_exit): Update.
5752 (follow_exec): Update.
5753 (displaced_step_prepare_throw): Update.
5754 (displaced_step_restore): Update.
5755 (start_step_over): Update.
5756 (resume_1): Update.
5757 (clear_proceed_status_thread): Update.
5758 (proceed): Update.
5759 (print_target_wait_results): Update.
5760 (do_target_wait): Update.
5761 (context_switch): Update.
5762 (stop_all_threads): Update.
5763 (restart_threads): Update.
5764 (finish_step_over): Update.
5765 (handle_signal_stop): Update.
5766 (switch_back_to_stepped_thread): Update.
5767 (keep_going_pass_signal): Update.
5768 (print_exited_reason): Update.
5769 (normal_stop): Update.
5770 * inferior.c (inferior_pid_to_str): Change return type.
5771 (print_selected_inferior): Update.
5772 (add_inferior): Update.
5773 (detach_inferior): Update.
5774 * dummy-frame.c (fprint_dummy_frames): Update.
5775 * dcache.c (dcache_info_1): Update.
5776 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
5777 (btrace_fetch, btrace_clear): Update.
5778 * linux-tdep.c (linux_core_pid_to_str): Change return type.
5779 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
5780 type.
5781 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
5782 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
5783 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
5784 * gdbarch.c, gdbarch.h: Rebuild.
5785 * gdbarch.sh (core_pid_to_str): Change return type.
5786 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
5787 return type.
5788 (windows_nat_target::pid_to_str): Change return type.
5789 (windows_delete_thread): Update.
5790 (windows_nat_target::attach): Update.
5791 (windows_nat_target::files_info): Update.
5792 * target-delegates.c: Rebuild.
5793 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
5794 return type.
5795 (sol_thread_target::pid_to_str): Change return type.
5796 * remote.c (class remote_target) <pid_to_str>: Change return
5797 type.
5798 (remote_target::pid_to_str): Change return type.
5799 (extended_remote_target::attach, remote_target::remote_stop_ns)
5800 (remote_target::remote_notif_remove_queued_reply)
5801 (remote_target::push_stop_reply, remote_target::disable_btrace):
5802 Update.
5803 (extended_remote_target::attach): Update.
5804 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
5805 type.
5806 (gdbsim_target::pid_to_str): Change return type.
5807 * ravenscar-thread.c (struct ravenscar_thread_target)
5808 <pid_to_str>: Change return type.
5809 (ravenscar_thread_target::pid_to_str): Change return type.
5810 * procfs.c (class procfs_target) <pid_to_str>: Change return
5811 type.
5812 (procfs_target::pid_to_str): Change return type.
5813 (procfs_target::attach): Update.
5814 (procfs_target::detach): Update.
5815 (procfs_target::fetch_registers): Update.
5816 (procfs_target::store_registers): Update.
5817 (procfs_target::wait): Update.
5818 (procfs_target::files_info): Update.
5819 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
5820 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
5821 return type.
5822 (nto_procfs_target::pid_to_str): Change return type.
5823 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
5824 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
5825 return type.
5826 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
5827 (exit_lwp): Update.
5828 (attach_proc_task_lwp_callback, get_detach_signal)
5829 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
5830 (linux_nat_target::resume, wait_lwp, stop_callback)
5831 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
5832 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
5833 (linux_nat_wait_1, resume_stopped_resumed_lwps)
5834 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
5835 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
5836 type.
5837 (inf_ptrace_target::attach): Update.
5838 (inf_ptrace_target::files_info): Update.
5839 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
5840 type.
5841 (go32_nat_target::pid_to_str): Change return type.
5842 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
5843 (gnu_nat_target::wait): Update.
5844 (gnu_nat_target::wait): Update.
5845 (gnu_nat_target::resume): Update.
5846 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
5847 (fbsd_nat_target::wait): Update.
5848 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
5849 type.
5850 (darwin_nat_target::attach): Update.
5851 * corelow.c (class core_target) <pid_to_str>: Change return type.
5852 (core_target::pid_to_str): Change return type.
5853 * target.c (normal_pid_to_str): Change return type.
5854 (default_pid_to_str): Likewise.
5855 (target_pid_to_str): Change return type.
5856 (target_translate_tls_address): Update.
5857 (target_announce_detach): Update.
5858 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
5859 return type.
5860 (bsd_uthread_target::pid_to_str): Change return type.
5861 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
5862 type.
5863 (bsd_kvm_target::pid_to_str): Change return type.
5864 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
5865 return type.
5866 (aix_thread_target::pid_to_str): Change return type.
5867 * target.h (struct target_ops) <pid_to_str>: Change return type.
5868 (target_pid_to_str, normal_pid_to_str): Likewise.
5869 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
5870 type.
5871 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
5872 type.
5873 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
5874 return type.
5875 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
5876 type.
5877 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
5878 type.
5879 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
5880 return type.
5881
5882 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
5883
5884 * NEWS: Mention that the new default MI version is 3. Mention
5885 changes to the output of commands and events that deal with
5886 multi-location breakpoints.
5887 * breakpoint.c: Include "mi/mi-out.h".
5888 (print_one_breakpoint): Change output syntax if using MI version
5889 >= 3.
5890 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
5891 New.
5892 (mi_multi_location_breakpoint_output_fixed): New.
5893 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
5894 (mi_cmd_fix_multi_location_breakpoint_output): New.
5895 (mi_multi_location_breakpoint_output_fixed): New.
5896 * mi/mi-cmds.c (mi_cmds): Register command
5897 -fix-multi-location-breakpoint-output.
5898 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
5899 interpreter "mi".
5900
5901 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5902
5903 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
5904 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
5905 instantiate mi_ui_out based on interpreter name.
5906 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
5907 * mi/mi-main.c (mi_load_progress): Likewise.
5908
5909 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5910
5911 * NEWS: Combine separate "New targets" sections for 8.3.
5912
5913 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5914
5915 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
5916 (ppcfbsd_init_abi): Install gdbarch
5917 "fetch_tls_load_module_address" and "get_thread_local_address"
5918 methods.
5919
5920 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5921
5922 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
5923 (riscv_fbsd_init_abi): Install gdbarch
5924 "fetch_tls_load_module_address" and "get_thread_local_address"
5925 methods.
5926
5927 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5928
5929 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
5930 (i386fbsd_init_abi): Install gdbarch
5931 "fetch_tls_load_module_address" and "get_thread_local_address"
5932 methods.
5933
5934 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5935
5936 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
5937 (amd64fbsd_init_abi): Install gdbarch
5938 "fetch_tls_load_module_address" and "get_thread_local_address"
5939 methods.
5940
5941 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5942
5943 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
5944 (struct fbsd_pspace_data): New type.
5945 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
5946 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
5947 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
5948 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
5949 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
5950
5951 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5952
5953 * gdbtypes.c (lookup_struct_elt): New function.
5954 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
5955 * gdbtypes.h (struct struct_elt): New type.
5956 (lookup_struct_elt): New prototype.
5957
5958 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5959
5960 * gdbtypes.c (lookup_struct_elt_type): Update comment and
5961 remove disabled code block.
5962
5963 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5964
5965 * gdbarch.sh (get_thread_local_address): New method.
5966 * gdbarch.h, gdbarch.c: Regenerate.
5967 * target.c (target_translate_tls_address): Use
5968 gdbarch_get_thread_local_address if present instead of
5969 target::get_thread_local_address.
5970
5971 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5972
5973 * target.h (target::get_thread_local_address): Update comment.
5974
5975 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5976
5977 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
5978 objfile->separate_debug_objfile_backlink if not NULL.
5979
5980 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5981
5982 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5983 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
5984 (amd64bsd_store_inferior_registers): Likewise.
5985 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
5986 Enable segment base registers.
5987 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
5988 PT_GETFSBASE and PT_GETGSBASE.
5989 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
5990 PT_SETGSBASE.
5991 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
5992 segment base registers.
5993 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
5994
5995 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5996
5997 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
5998 Update calls to i386_target_description to add 'segments'
5999 parameter.
6000 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
6001 add segment base registers.
6002 * arch/i386.c (i386_create_target_description): Add 'segments'
6003 parameter to enable segment base registers.
6004 * arch/i386.h (i386_create_target_description): Likewise.
6005 * features/i386/32bit-segments.xml: New file.
6006 * features/i386/32bit-segments.c: Generate.
6007 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
6008 call to i386_target_description to add 'segments' parameter.
6009 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
6010 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
6011 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
6012 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
6013 if feature is present.
6014 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
6015 Add 'segments' parameter to call to i386_target_description.
6016 (i386_target_description): Add 'segments' parameter to enable
6017 segment base registers.
6018 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
6019 to call to i386_target_description.
6020 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
6021 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
6022 Define I386_NUM_REGS.
6023 (i386_target_description): Add 'segments' parameter to enable
6024 segment base registers.
6025
6026 2019-03-12 Eli Zaretskii <eliz@gnu.org>
6027
6028 PR/24325
6029 * source-cache.c: #undef open and close, to avoid unresolved
6030 externals during linking.
6031
6032 2019-03-12 Tom Tromey <tromey@adacore.com>
6033
6034 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
6035 const. Add initializers.
6036 (_initialize_remote): Don't initialize ptid globals.
6037
6038 2019-03-12 Pedro Alves <palves@redhat.com>
6039
6040 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
6041
6042 2019-03-12 Pedro Alves <palves@redhat.com>
6043
6044 * cp-name-parser.y (main): Remove unused 'len' variable.
6045
6046 2019-03-12 Tom Tromey <tromey@adacore.com>
6047
6048 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
6049 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
6050
6051 2019-03-12 Tom Tromey <tromey@adacore.com>
6052
6053 * linux-nat.c (iterate_over_lwps): Update.
6054 (stop_callback): Remove parameter.
6055 (stop_wait_callback, detach_callback, resume_set_callback)
6056 (select_singlestep_lwp_callback, set_ignore_sigint)
6057 (status_callback, resumed_callback, resume_clear_callback)
6058 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
6059 data parameter.
6060 (linux_nat_target::detach, linux_nat_target::resume)
6061 (linux_stop_and_wait_all_lwps, select_event_lwp)
6062 (linux_nat_filter_event, linux_nat_wait_1)
6063 (linux_nat_target::kill, linux_nat_target::stop)
6064 (linux_nat_target::stop): Update.
6065 (linux_nat_resume_callback): Change type.
6066 (resume_stopped_resumed_lwps, count_events_callback)
6067 (select_event_lwp_callback): Likewise.
6068 (linux_stop_lwp, linux_nat_stop_lwp): Update.
6069 * arm-linux-nat.c (struct update_registers_data): Remove.
6070 (update_registers_callback): Change type.
6071 (arm_linux_insert_hw_breakpoint1): Update.
6072 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
6073 parameter.
6074 (x86_linux_dr_set_addr): Update.
6075 (x86_linux_dr_set_control): Update.
6076 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
6077 (iterate_over_lwps): Use gdb::function_view.
6078 * nat/aarch64-linux-hw-point.c (struct
6079 aarch64_dr_update_callback_param): Remove.
6080 (debug_reg_change_callback): Change type.
6081 (aarch64_notify_debug_reg_change): Update.
6082 * s390-linux-nat.c (s390_refresh_per_info): Update.
6083
6084 2019-03-11 Tom Tromey <tromey@adacore.com>
6085
6086 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
6087 redundant assignment to "this_cu".
6088
6089 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
6092
6093 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * gdbtypes.c (rank_one_type_parm_set): New function extracted
6096 from...
6097 (rank_one_type): ... this.
6098
6099 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
6102 from...
6103 (rank_one_type): ... this.
6104
6105 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
6108 from...
6109 (rank_one_type): ... this.
6110
6111 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6112
6113 * gdbtypes.c (rank_one_type_parm_float): New function extracted
6114 from...
6115 (rank_one_type): ... this.
6116
6117 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
6120 from...
6121 (rank_one_type): ... this.
6122
6123 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * gdbtypes.c (rank_one_type_parm_range): New function extracted
6126 from...
6127 (rank_one_type): ... this.
6128
6129 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * gdbtypes.c (rank_one_type_parm_char): New function extracted
6132 from...
6133 (rank_one_type): ... this.
6134
6135 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6136
6137 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
6138 from...
6139 (rank_one_type): ... this.
6140
6141 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6142
6143 * gdbtypes.c (rank_one_type_parm_int): New function extracted
6144 from...
6145 (rank_one_type): ... this.
6146
6147 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * gdbtypes.c (rank_one_type_parm_func): New function extracted
6150 from...
6151 (rank_one_type): ... this.
6152
6153 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6154
6155 * gdbtypes.c (rank_one_type_parm_array): New function extracted
6156 from...
6157 (rank_one_type): ... this.
6158
6159 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
6160
6161 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
6162 from...
6163 (rank_one_type): ... this.
6164
6165 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6166
6167 * inferior.c (initialize_inferiors): Ensure 'help set/show print
6168 inferior-events' shows the example events.
6169
6170 2019-03-08 Eli Zaretskii <eliz@gnu.org>
6171
6172 Support styling on native MS-Windows console
6173
6174 PR/24315
6175 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
6176 on MS-Windows if $TERM is not defined.
6177
6178 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
6179
6180 * posix-hdep.c (gdb_console_fputs):
6181 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
6182 functions.
6183 * ui-file.h (gdb_console_fputs): Add prototype.
6184
6185 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
6186 back to fputs only if the former returns zero.
6187
6188 2019-03-07 Tom Tromey <tom@tromey.com>
6189
6190 * symmisc.c (print_symbol_bcache_statistics): Update.
6191 (print_objfile_statistics): Update.
6192 * symfile.c (allocate_symtab): Update.
6193 * stabsread.c: Don't include bcache.h.
6194 * psymtab.h (struct psymbol_bcache): Don't declare.
6195 (class psymtab_storage) <psymbol_cache>: Now a bcache.
6196 (psymbol_bcache_init, psymbol_bcache_free)
6197 (psymbol_bcache_get_bcache): Don't declare.
6198 * psymtab.c (struct psymbol_bcache): Remove.
6199 (psymtab_storage::psymtab_storage): Update.
6200 (psymtab_storage::~psymtab_storage): Update.
6201 (psymbol_bcache_init, psymbol_bcache_free)
6202 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
6203 (add_psymbol_to_bcache): Update.
6204 (allocate_psymtab): Update.
6205 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6206 macro_cache>: No longer pointers.
6207 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
6208 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
6209 * macrotab.c (macro_bcache): Update.
6210 * macroexp.c: Don't include bcache.h.
6211 * gdbtypes.c (check_types_worklist): Update.
6212 (types_deeply_equal): Remove TRY/CATCH. Update.
6213 * elfread.c (elf_symtab_read): Update.
6214 * dwarf2read.c: Don't include bcache.h.
6215 * buildsym.c (buildsym_compunit::get_macro_table): Update.
6216 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
6217 (print_bcache_statistics, bcache_memory_used): Don't declare.
6218 (struct bcache): Move from bcache.c. Add constructor, destructor,
6219 methods. Rename all data members.
6220 * bcache.c (struct bcache): Move to bcache.h.
6221 (bcache::expand_hash_table): Rename from expand_hash_table.
6222 (bcache): Remove.
6223 (bcache::insert): Rename from bcache_full.
6224 (bcache::compare): Rename from bcache_compare.
6225 (bcache_xmalloc): Remove.
6226 (bcache::~bcache): Rename from bcache_xfree.
6227 (bcache::print_statistics): Rename from print_bcache_statistics.
6228 (bcache::memory_used): Rename from bcache_memory_used.
6229
6230 2019-03-07 Pedro Alves <palves@redhat.com>
6231
6232 * infrun.c (normal_stop): Also check for
6233 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
6234
6235 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
6236
6237 * f-lang.c (value_from_host_double): Moved to...
6238 * value.c (value_from_host_double): ...here.
6239 * value.h (value_from_host_double): Declare.
6240 * guile/scm-math.c (vlscm_convert_typed_number): Use
6241 value_from_host_double.
6242 (vlscm_convert_number): Likewise.
6243 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
6244 * python/py-value.c (convert_value_from_python): Likewise.
6245
6246 2019-03-06 Tom Tromey <tom@tromey.com>
6247
6248 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
6249
6250 2019-03-06 Tom Tromey <tom@tromey.com>
6251
6252 * utils.h (free_current_contents): Don't declare.
6253 * utils.c (free_current_contents): Remove.
6254
6255 2019-03-06 Tom Tromey <tom@tromey.com>
6256
6257 * top.c (quit_force): Update.
6258 * main.c (captured_command_loop): Update.
6259 * common/new-op.c (operator new): Update.
6260 * common/common-exceptions.c (struct catcher)
6261 <save_cleanup_chain>: Remove member.
6262 (exceptions_state_mc_init): Update.
6263 (exception_try_scope_entry): Return nullptr.
6264 (exception_try_scope_exit, exception_rethrow)
6265 (throw_exception_sjlj, throw_exception_cxx): Update.
6266 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
6267 (all_cleanups, do_cleanups, discard_cleanups)
6268 (discard_final_cleanups, save_cleanups, save_final_cleanups)
6269 (restore_cleanups, restore_final_cleanups): Don't declare.
6270 (do_final_cleanups): Remove parameter.
6271 * common/cleanups.c (cleanup_chain, make_cleanup)
6272 (make_cleanup_dtor, all_cleanups, do_cleanups)
6273 (discard_my_cleanups, discard_cleanups)
6274 (discard_final_cleanups, save_my_cleanups, save_cleanups)
6275 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
6276 (null_cleanup): Remove.
6277 (do_final_cleanups): Remove parameter.
6278
6279 2019-03-06 Tom Tromey <tom@tromey.com>
6280
6281 * remote.c (remote_target::remote_parse_stop_reply): Use
6282 unique_xmalloc_ptr.
6283
6284 2019-03-06 Tom Tromey <tom@tromey.com>
6285
6286 * stabsread.c (struct stabs_field_info): Rename from field_info.
6287 <list, fnlist>: Add initializers.
6288 <obstack>: New member.
6289 (read_member_functions, read_struct_fields, read_baseclasses):
6290 Allocate on obstack. Don't use cleanups.
6291 (read_one_struct_field, read_member_functions, read_struct_fields)
6292 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
6293 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
6294 (read_struct_type): Update.
6295
6296 2019-03-06 Tom Tromey <tom@tromey.com>
6297
6298 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
6299 * common/filestuff.h (make_cleanup_close): Don't declare.
6300 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
6301 Remove.
6302
6303 2019-03-06 Tom Tromey <tom@tromey.com>
6304
6305 * solib-aix.c: Use make_scope_exit.
6306
6307 2019-03-06 Tom Tromey <tom@tromey.com>
6308
6309 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
6310 Use make_scope_exit.
6311
6312 2019-03-06 Tom Tromey <tom@tromey.com>
6313
6314 * solib-svr4.c (disable_probes_interface): Remove parameter.
6315 (svr4_handle_solib_event): Use make_scope_exit.
6316
6317 2019-03-06 Tom Tromey <tom@tromey.com>
6318
6319 * remote.c (struct stop_reply_deleter): Remove.
6320 (stop_reply_up): Update.
6321 (struct stop_reply): Derive from notif_event. Don't typedef.
6322 <regcache>: Now a std::vector.
6323 (stop_reply_xfree): Remove.
6324 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
6325 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
6326 (remote_target::discard_pending_stop_replies): Use delete.
6327 (remote_target::remote_parse_stop_reply): Update.
6328 (remote_target::process_stop_reply): Update.
6329 * remote-notif.h (struct notif_event): Add virtual destructor.
6330 Remove "dtr" member.
6331 (struct notif_client) <alloc_event>: Return a unique_ptr.
6332 (notif_event_xfree): Don't declare.
6333 (notif_event_up): New typedef.
6334 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
6335 (notif_event_xfree, do_notif_event_xfree): Remove.
6336 (remote_notif_state_xfree): Update.
6337
6338 2019-03-06 Tom Tromey <tom@tromey.com>
6339
6340 * infrun.c (displaced_step_clear_cleanup): Now a
6341 forward_scope_exit type.
6342 (displaced_step_prepare_throw): Update.
6343 (displaced_step_fixup): Update.
6344
6345 2019-03-06 Tom Tromey <tom@tromey.com>
6346
6347 * inferior.h (class inferior): Update comment.
6348 * gdbthread.h (class thread_info): Update comment.
6349
6350 2019-03-06 Joel Brobecker <brobecker@adacore.com>
6351 Tom Tromey <tom@tromey.com>
6352
6353 * stabsread.h (struct stab_section_list): Remove.
6354 (coffstab_build_psymtabs): Update.
6355 * dbxread.c (symbuf_sections): Now a std::vector.
6356 (sect_idx): New global.
6357 (fill_symbuf): Update.
6358 (coffstab_build_psymtabs): Change type of stabsects parameter.
6359 Update.
6360 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
6361 std::vector.
6362 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
6363 (coff_locate_sections): Update.
6364 (coff_symfile_read): Remove cleanups. Update.
6365 (init_stringtab): Add storage parameter.
6366 (free_stringtab, free_stringtab_cleanup): Remove.
6367 (init_lineno): Add storage parameter.
6368 (free_linetab, free_linetab_cleanup): Remove.
6369
6370 2019-03-06 Pedro Alves <palves@redhat.com>
6371
6372 * linux-fork.c (fork_info::clobber_regs): Delete.
6373 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
6374 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
6375 comment. Adjust.
6376 (scoped_switch_fork_info::scoped_switch_fork_info)
6377 (checkpoint_command, linux_fork_context): Adjust
6378 fork_save_infrun_state calls.
6379
6380 2019-03-06 Pedro Alves <palves@redhat.com>
6381
6382 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
6383 (inf_has_multiple_threads): Return 'bool' and rewrite using
6384 inferior_info::threads().
6385
6386 2019-03-06 Pedro Alves <palves@redhat.com>
6387
6388 * linux-fork.c: Include <list>.
6389 (fork_list): Now a std::list instance.
6390 (fork_info): Add ctor, dtor, and in-class initialize all fields.
6391 (forks_exist_p, find_last_fork): Adjust.
6392 (new_fork): Delete.
6393 (one_fork_p): New.
6394 (add_fork): Adjust.
6395 (free_fork): Delete, folded into fork_info::~fork_info().
6396 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
6397 Adjust.
6398 (init_fork_list): Delete.
6399 (linux_fork_killall, linux_fork_mourn_inferior)
6400 (linux_fork_detach, info_checkpoints_command): Adjust.
6401 (_initialize_linux_fork): No longer call init_fork_list.
6402
6403 2019-03-06 Pedro Alves <palves@redhat.com>
6404
6405 * linux-fork.c (new_fork): New, split out of ...
6406 (add_fork): ... this. Return void. Move "first fork" special
6407 case from here, to ...
6408 (checkpoint_command): ... here.
6409 * linux-linux.h (add_fork): Return void.
6410
6411 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6412
6413 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
6414
6415 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6416 Chris January <chris.january@arm.com>
6417 David Lecomber <david.lecomber@arm.com>
6418
6419 * f-exp.y: New token, UNOP_INTRINSIC.
6420 (exp): New pattern using UNOP_INTRINSIC token.
6421 (f77_keywords): Add 'abs' keyword.
6422 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
6423 (value_from_host_double): New function.
6424 (evaluate_subexp_f): Support UNOP_ABS.
6425
6426 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6427
6428 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
6429 types.
6430
6431 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6432
6433 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
6434 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
6435 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
6436
6437 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6438
6439 * f-exp.y (convert_to_kind_type): Handle more type kinds.
6440
6441 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6442 Chris January <chris.january@arm.com>
6443
6444 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
6445 * f-exp.y: Define 'KIND' token.
6446 (exp): New pattern for KIND expressions.
6447 (ptype): Handle types with a kind extension.
6448 (direct_abs_decl): Extend to spot kind extensions.
6449 (f77_keywords): Add 'kind' to the list.
6450 (push_kind_type): New function.
6451 (convert_to_kind_type): New function.
6452 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
6453 * parse.c (operator_length_standard): Likewise.
6454 * parser-defs.h (enum type_pieces): Add tp_kind.
6455 * std-operator.def: Add UNOP_KIND.
6456
6457 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6458
6459 * f-exp.y (f_parse): Set yydebug.
6460
6461 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 * f-lang.c (evaluate_subexp_f): New function.
6464 (exp_descriptor_f): New global.
6465 (f_language_defn): Use exp_descriptor_f instead of
6466 exp_descriptor_standard.
6467
6468 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6469
6470 * f-exp.y (struct token): Add comments.
6471 (dot_ops): Remove uppercase versions and the end marker.
6472 (f77_keywords): Likewise.
6473 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
6474 entries in the dot_ops array are case insensitive, and use
6475 strncasecmp to compare strings. Also some whitespace cleanup in
6476 this area. Similar for the f77_keywords array, except entries in
6477 this list might be case sensitive.
6478
6479 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6480
6481 * f-exp.y (struct f77_boolean_val): Add comments.
6482 (boolean_values): Remove uppercase versions, and end marker.
6483 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
6484 and use strncasecmp to achieve case insensitivity. Additionally,
6485 perform whitespace cleanup around this code.
6486
6487 2019-03-06 Tom Tromey <tromey@adacore.com>
6488
6489 * remote-sim.c (gdbsim_target_open): Use result of
6490 gdb_argv::release.
6491
6492 2019-03-06 Richard Bunt <richard.bunt@arm.com>
6493 Dirk Schubert <dirk.schubert@arm.com>
6494 Chris January <chris.january@arm.com>
6495
6496 * eval.c (evaluate_subexp_standard): Call Fortran argument
6497 wrapping logic.
6498 * f-lang.c (struct value): A value which can be passed into a
6499 Fortran function call.
6500 (fortran_argument_convert): Wrap Fortran arguments in a pointer
6501 where appropriate.
6502 (struct type): Value ready for a Fortran function call.
6503 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
6504 is needed.
6505 * f-lang.h (fortran_argument_convert): Declaration.
6506 (fortran_preserve_arg_pointer): Declaration.
6507 * infcall.c (value_arg_coerce): Call Fortran argument logic.
6508
6509 2019-03-05 Tom Tromey <tromey@adacore.com>
6510
6511 * python/py-prettyprint.c (print_string_repr): Remove #if.
6512 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
6513
6514 2019-03-05 Tom Tromey <tromey@adacore.com>
6515
6516 * target.c (the_dummy_target): Move later. Change type to
6517 "dummy_target".
6518 (initialize_targets): Don't initialize the_dummy_target.
6519
6520 2019-03-05 Tom Tromey <tromey@adacore.com>
6521
6522 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
6523 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
6524
6525 2019-03-05 Tom Tromey <tromey@adacore.com>
6526
6527 * windows-nat.c (windows_nat_target::attach)
6528 (windows_nat_target::detach): Don't call gdb_flush.
6529 * valprint.c (generic_val_print, val_print, val_print_string):
6530 Don't call gdb_flush.
6531 * utils.c (defaulted_query): Don't call gdb_flush.
6532 * typeprint.c (print_type_scalar): Don't call gdb_flush.
6533 * target.c (target_announce_detach): Don't call gdb_flush.
6534 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
6535 * remote.c (extended_remote_target::attach): Don't call
6536 gdb_flush.
6537 * procfs.c (procfs_target::detach): Don't call gdb_flush.
6538 * printcmd.c (do_examine): Don't call gdb_flush.
6539 (info_display_command): Don't call gdb_flush.
6540 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
6541 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
6542 * memattr.c (info_mem_command): Don't call gdb_flush.
6543 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
6544 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
6545 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
6546 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
6547 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
6548 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
6549 (gnu_nat_target::detach): Don't call gdb_flush.
6550 * f-valprint.c (f_val_print): Don't call gdb_flush.
6551 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
6552 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
6553 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
6554 gdb_flush.
6555 * c-valprint.c (c_val_print): Don't call gdb_flush.
6556 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
6557
6558 2019-03-05 Tom Tromey <tromey@adacore.com>
6559
6560 * varobj.c (update_dynamic_varobj_children): Update.
6561 (install_default_visualizer): Use reset, not release.
6562 * value.c (set_internalvar): Update.
6563 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
6564 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
6565 ATTRIBUTE_UNUSED_RESULT.
6566
6567 2019-03-05 Tom Tromey <tromey@adacore.com>
6568
6569 * remote.c (class scoped_remote_fd) <release>: Add
6570 ATTRIBUTE_UNUSED_RESULT.
6571
6572 2019-03-05 Tom Tromey <tromey@adacore.com>
6573
6574 * macroexp.c (struct macro_buffer) <release>: Add
6575 ATTRIBUTE_UNUSED_RESULT.
6576
6577 2019-03-05 Tom Tromey <tromey@adacore.com>
6578
6579 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
6580 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
6581 ATTRIBUTE_UNUSED_RESULT.
6582
6583 2019-03-05 Tom Tromey <tromey@adacore.com>
6584
6585 * common/scoped_fd.h (class scoped_fd) <release>: Add
6586 ATTRIBUTE_UNUSED_RESULT.
6587
6588 2019-03-05 Tom Tromey <tromey@adacore.com>
6589
6590 * parser-defs.h (struct parser_state) <release>: Add
6591 ATTRIBUTE_UNUSED_RESULT.
6592
6593 2019-03-05 Tom Tromey <tromey@adacore.com>
6594
6595 * utils.h (class gdb_argv) <release>: Add
6596 ATTRIBUTE_UNUSED_RESULT.
6597 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
6598
6599 2019-03-02 Eli Zaretskii <eliz@gnu.org>
6600
6601 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
6602 for-loop range, to avoid compiler warnings.
6603
6604 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
6605 avoid compiler warnings about unused variables.
6606
6607 * NEWS: Mention end of support for native debugging on MS-Windows
6608 before XP.
6609
6610 PR gdb/24292
6611 * common/netstuff.c:
6612 * gdbserver/gdbreplay.c
6613 * gdbserver/remote-utils.c:
6614 * ser-tcp.c:
6615 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
6616 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
6617 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
6618 'getaddrinfo' and 'freeaddrinfo' were not available before
6619 Windows XP, and mingw.org's MinGW headers by default define
6620 _WIN32_WINNT to 0x500.
6621
6622 2019-03-01 Gary Benson <gbenson@redhat.com>
6623
6624 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
6625
6626 2019-02-28 Brian Vandenberg <phantall@gmail.com>
6627 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6628
6629 PR gdb/8527
6630 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
6631 set_sigint_trap, clear_sigint_trap.
6632
6633 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6634
6635 * target.c (target_detach): Clear the regcache and the
6636 frame cache.
6637
6638 2019-02-27 Pedro Alves <palves@redhat.com>
6639
6640 * utils.c (set_screen_size): When we cap the height/width sizes,
6641 tweak the corresponding command variable to show "unlimited":
6642
6643 2019-02-27 Saagar Jha <saagar@saagarjha.com>
6644 Pedro Alves <palves@redhat.com>
6645
6646 * utils.c (set_screen_size): Reduce "infinite" rows and columns
6647 before calling rl_set_screen_size.
6648
6649 2019-02-27 Tom Tromey <tromey@adacore.com>
6650
6651 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
6652 define.
6653 * python/py-value.c: Remove Python 2.4 workaround.
6654 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
6655 workaround.
6656 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
6657 Python 2.4 workaround.
6658 * python/python-internal.h: Remove Python 2.4 comment.
6659 (Py_ssize_t): Don't define.
6660 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
6661 (gdb_Py_DECREF): Remove Python 2.4 workaround.
6662 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
6663 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
6664 * python/python.c (do_start_initialization): Remove Python 2.4
6665 workaround.
6666 * python/py-prettyprint.c (class dummy_python_frame): Remove.
6667 (print_children): Remove Python 2.4 workaround.
6668 * python/py-inferior.c (buffer_procs): Remove Python 2.4
6669 workaround.
6670 (CHARBUFFERPROC_NAME): Remove.
6671 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
6672 Python 2.4 workaround.
6673
6674 2019-02-27 Kevin Buettner <kevinb@redhat.com>
6675
6676 * NEWS: Note minimum Python version.
6677
6678 2019-02-27 Kevin Buettner <kevinb@redhat.com>
6679
6680 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
6681 code from these functions. Remove corresponding ifdefs. Use
6682 Py_buffer_up instead of explicit calls to PyBuffer_Release.
6683 Remove gotos and target of gotos.
6684 (infpy_search_memory): Likewise.
6685
6686 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6687
6688 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
6689 (hppa_gdbarch_init): Don't register deleted functions with
6690 gdbarch.
6691
6692 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
6695 (h8300_unwind_sp): Delete.
6696 (h8300_dummy_id): Delete.
6697 (h8300_gdbarch_init): Don't register deleted functions with
6698 gdbarch.
6699
6700 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
6703 (ft32_unwind_pc): Delete.
6704 (ft32_unwind_sp): Delete.
6705 (ft32_gdbarch_init): Don't register deleted functions with
6706 gdbarch.
6707
6708 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6709
6710 * gdb/frv-tdep.c (frv_dummy_id): Delete.
6711 (frv_unwind_pc): Delete.
6712 (frv_unwind_sp): Delete.
6713 (frv_gdbarch_init): Don't register deleted functions with
6714 gdbarch.
6715
6716 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6717
6718 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
6719 (riscv_unwind_pc): Delete.
6720 (riscv_unwind_sp): Delete.
6721 (riscv_gdbarch_init): Don't register deleted functions with
6722 gdbarch.
6723
6724 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6725
6726 * gdb/csky-tdep.c (csky_dummy_id): Delete.
6727 (csky_unwind_pc): Delete.
6728 (csky_unwind_sp): Delete.
6729 (csky_gdbarch_init): Don't register deleted functions with
6730 gdbarch.
6731
6732 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6733
6734 * gdb/cris-tdep.c (cris_dummy_id): Delete.
6735 (cris_unwind_pc): Delete.
6736 (cris_unwind_sp): Delete.
6737 (cris_gdbarch_init): Don't register deleted functions with
6738 gdbarch.
6739
6740 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
6743 (bfin_unwind_pc): Delete.
6744 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
6745
6746 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6747
6748 * gdb/arm-tdep.c (arm_dummy_id): Delete.
6749 (arm_unwind_pc): Delete.
6750 (arm_unwind_sp): Delete.
6751 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
6752
6753 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6754
6755 * gdb/arc-tdep.c (arc_dummy_id): Delete.
6756 (arc_unwind_pc): Delete.
6757 (arc_unwind_sp): Delete.
6758 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
6759
6760 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6761
6762 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
6763 (alpha_unwind_pc): Delete.
6764 (alpha_gdbarch_init): Don't register deleted functions with
6765 gdbarch.
6766
6767 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
6770 (aarch64_unwind_pc): Delete.
6771 (aarch64_unwind_sp): Delete.
6772 (aarch64_gdbarch_init): Don't register deleted functions with
6773 gdbarch.
6774
6775 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6776
6777 * gdbtypes.c (type_align): Don't consider static members when
6778 computing structure alignment.
6779
6780 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
6783 return 0 for other types.
6784 * arch-utils.c (default_type_align): Always return 0.
6785 * gdbarch.h: Regenerate.
6786 * gdbarch.sh (type_align): Extend comment.
6787 * gdbtypes.c (type_align): Add additional comments, always call
6788 gdbarch_type_align before applying the default rules.
6789 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
6790 generic code will then apply a suitable default.
6791 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
6792 types, return 0 for other types.
6793
6794 2019-02-27 Joel Brobecker <brobecker@adacore.com>
6795
6796 * NEWS: Create a new section for the next release branch.
6797 Rename the section of the current branch, now that it has
6798 been cut.
6799
6800 2019-02-27 Joel Brobecker <brobecker@adacore.com>
6801
6802 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
6803 * version.in: Bump version to 8.3.50.DATE-git.
6804
6805 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
6806
6807 * aix-thread.c (ptid_cmp): Remove unused variable.
6808 (get_signaled_thread): Likewise.
6809 (store_regs_user_thread): Likewise.
6810 (store_regs_kernel_thread): Likewise.
6811 (fetch_regs_kernel_thread): Remove shadowed variable.
6812
6813 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * features/riscv/32bit-cpu.xml: Add register numbers.
6816 * features/riscv/32bit-fpu.c: Regenerate.
6817 * features/riscv/32bit-fpu.xml: Add register numbers.
6818 * features/riscv/64bit-cpu.xml: Add register numbers.
6819 * features/riscv/64bit-fpu.c: Regenerate.
6820 * features/riscv/64bit-fpu.xml: Add register numbers.
6821
6822 2019-02-26 Kevin Buettner <kevinb@redhat.com>
6823
6824 * NEWS: Mention two argument form of gdb.Value constructor.
6825 * python/py-value.c (convert_buffer_and_type_to_value): New
6826 function.
6827 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
6828 Add support for handling an optional second argument. Call
6829 convert_buffer_and_type_to_value as appropriate.
6830 * python/python-internal.h (Py_buffer_deleter): New struct.
6831 (Py_buffer_up): New typedef.
6832
6833 2019-02-25 John Baldwin <jhb@FreeBSD.org>
6834
6835 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
6836 instead of releasing ownership.
6837
6838 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
6839
6840 * dwarf2read.c (open_and_init_dwp_file): Call
6841 elf_numsections instead of bfd_count_sections to initialize
6842 dwp_file->num_sections.
6843
6844 2019-02-25 Tom Tromey <tromey@adacore.com>
6845
6846 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
6847
6848 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
6849
6850 * gcore.in: Add '--readnever' option when invoking GDB.
6851
6852 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * MAINTAINERS: Update my email address.
6855
6856 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6857
6858 * build-id.c (build_id_to_debug_bfd_1): New function.
6859 (build_id_to_debug_bfd): Look for separate debug file in
6860 sysroot.
6861
6862 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * gdbarch.sh: Update the copyright year range that is placed into
6865 generated files.
6866
6867 2019-02-22 Keith Seitz <keiths@redhat.com>
6868
6869 PR symtab/23853
6870 * linespec.c (create_sals_line_offset): Search for the default
6871 symtab's filename instead of its fullname.
6872
6873 2019-02-21 Alan Hayward <alan.hayward@arm.com>
6874
6875 * NEWS: Update style defaults.
6876
6877 2019-02-21 Alan Hayward <alan.hayward@arm.com>
6878
6879 * main.c (captured_main_1): Disable styling in batch mode.
6880
6881 2019-02-20 Tom Tromey <tom@tromey.com>
6882
6883 * symtab.c (symtab_symbol_info): Fix typos.
6884
6885 2019-02-20 Tom Tromey <tromey@adacore.com>
6886
6887 * findcmd.c (_initialize_mem_search): Use upper case for
6888 metasyntactic variables.
6889
6890 2019-02-20 Alan Hayward <alan.hayward@arm.com>
6891
6892 * aarch64-tdep.c (aarch64_add_reggroups): New function.
6893 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
6894
6895 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
6896
6897 * top.h (source_file_name): Change to std::string.
6898 * top.c (source_file_name): Likewise.
6899 (command_line_input): Adjust.
6900 * cli/cli-script.c (script_from_file): Adjust.
6901
6902 2019-02-19 Tom Tromey <tromey@adacore.com>
6903
6904 * ravenscar-thread.c
6905 (ravenscar_thread_target::update_thread_list): Don't call
6906 ada_build_task_list.
6907 * ada-lang.h (ada_build_task_list): Don't declare.
6908 * ada-tasks.c (struct ada_tasks_inferior_data)
6909 <task_list_valid_p>: Now bool.
6910 (read_known_tasks, ada_task_list_changed)
6911 (ada_tasks_invalidate_inferior_data): Update.
6912 (read_known_tasks_array): Return bool.
6913 (read_known_tasks_list): Likewise.
6914 (read_known_tasks): Return void.
6915 (ada_build_task_list): Now static.
6916
6917 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
6918
6919 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
6920 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
6921
6922 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6923
6924 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
6925 variant for ada_tasks_pspace_data_handle and
6926 ada_tasks_inferior_data_handle.
6927 (ada_tasks_pspace_data_cleanup): New function.
6928 (ada_tasks_inferior_data_cleanup): New function.
6929
6930 2019-02-17 Tom Tromey <tom@tromey.com>
6931
6932 * macrotab.h (macro_source_fullname): Return a std::string.
6933 * macrotab.c (macro_include, check_for_redefinition)
6934 (macro_undef, macro_lookup_definition, foreach_macro)
6935 (foreach_macro_in_scope): Update.
6936 (macro_source_fullname): Return a std::string.
6937 * macrocmd.c (show_pp_source_pos): Update.
6938
6939 2019-02-17 Tom Tromey <tom@tromey.com>
6940
6941 * macrocmd.c (show_pp_source_pos): Style the file names.
6942
6943 2019-02-17 Tom Tromey <tom@tromey.com>
6944
6945 PR tui/24197:
6946 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
6947
6948 2019-02-17 Tom Tromey <tom@tromey.com>
6949
6950 * ada-lang.c (user_select_syms): Use filtered printing.
6951 * utils.c (wrap_style): New global.
6952 (desired_style): Remove.
6953 (emit_style_escape): Add stream parameter.
6954 (set_output_style, reset_terminal_style, prompt_for_continue):
6955 Update.
6956 (flush_wrap_buffer): Only flush gdb_stdout.
6957 (wrap_here): Set wrap_style.
6958 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
6959 treat escape sequences as a character. Change when wrap buffer is
6960 flushed.
6961 (fputs_styled): Do not set the output style when the default is
6962 requested.
6963 * ui-style.h (struct ui_file_style) <is_default>: New method.
6964 * source.c (print_source_lines_base): Emit escape sequences in one
6965 piece.
6966
6967 2019-02-17 Joel Brobecker <brobecker@adacore.com>
6968
6969 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
6970 integers and enumeration types.
6971
6972 2019-02-17 Joel Brobecker <brobecker@adacore.com>
6973
6974 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
6975 instead of lookup_symbol_in_language
6976 (do_exact_match): New function.
6977 (ada_get_symbol_name_matcher): Return do_exact_match when
6978 doing a verbatim match.
6979
6980 2019-02-15 Tom Tromey <tromey@adacore.com>
6981
6982 * ravenscar-thread.c (ravenscar_thread_target::resume)
6983 (ravenscar_thread_target::wait): Special case wildcard requests.
6984
6985 2019-02-15 Tom Tromey <tromey@adacore.com>
6986
6987 * ravenscar-thread.c (base_ptid): Remove.
6988 (struct ravenscar_thread_target) <close>: New method.
6989 <m_base_ptid>: New member.
6990 <update_inferior_ptid, active_task, task_is_currently_active,
6991 runtime_initialized>: Declare methods.
6992 <ravenscar_thread_target>: Add constructor.
6993 (ravenscar_thread_target::task_is_currently_active)
6994 (ravenscar_thread_target::update_inferior_ptid)
6995 (ravenscar_runtime_initialized): Rename. Now methods.
6996 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
6997 (ravenscar_thread_target::update_thread_list): Update.
6998 (ravenscar_thread_target::active_task): Now method.
6999 (ravenscar_thread_target::store_registers)
7000 (ravenscar_thread_target::prepare_to_store)
7001 (ravenscar_thread_target::prepare_to_store)
7002 (ravenscar_thread_target::mourn_inferior): Update.
7003 (ravenscar_inferior_created): Use "new" to create target.
7004 (ravenscar_thread_target::get_ada_task_ptid): Update.
7005 (_initialize_ravenscar): Don't initialize base_ptid.
7006 (ravenscar_ops): Remove global.
7007
7008 2019-02-15 Tom Tromey <tromey@adacore.com>
7009
7010 * target.h (push_target): Declare new overload.
7011 * target.c (push_target): New overload, taking an rvalue reference.
7012 * remote.c (remote_target::open_1): Use push_target overload.
7013 * corelow.c (core_target_open): Use push_target overload.
7014
7015 2019-02-15 Tom Tromey <tromey@adacore.com>
7016
7017 * ravenscar-thread.c (is_ravenscar_task)
7018 (ravenscar_task_is_currently_active): Return bool.
7019 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
7020 (_initialize_ravenscar): Remove "(void)".
7021 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
7022 Return bool.
7023
7024 2019-02-15 Tom Tromey <tromey@adacore.com>
7025
7026 * ravenscar-thread.c (ravenscar_runtime_initializer)
7027 (has_ravenscar_runtime, get_running_thread_id)
7028 (ravenscar_thread_target::resume): Fix indentation.
7029
7030 2019-02-15 Tom Tromey <tromey@adacore.com>
7031
7032 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
7033 from ravenscar_arch_ops.
7034 (sparc_ravenscar_ops::fetch_registers)
7035 (sparc_ravenscar_ops::store_registers): Now methods.
7036 (sparc_ravenscar_prepare_to_store): Remove.
7037 (sparc_ravenscar_ops): Redefine.
7038 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
7039 methods and destructor. Remove members.
7040 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
7041 (ravenscar_thread_target::store_registers)
7042 (ravenscar_thread_target::prepare_to_store): Update.
7043 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
7044 Remove.
7045 (struct ppc_ravenscar_powerpc_ops): Derive from
7046 ravenscar_arch_ops.
7047 (ppc_ravenscar_powerpc_ops::fetch_registers)
7048 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
7049 (ppc_ravenscar_powerpc_ops): Redefine.
7050 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
7051 (ppc_ravenscar_e500_ops::fetch_registers)
7052 (ppc_ravenscar_e500_ops::store_registers): Now methods.
7053 (ppc_ravenscar_e500_ops): Redefine.
7054 * aarch64-ravenscar-thread.c
7055 (aarch64_ravenscar_generic_prepare_to_store): Remove.
7056 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
7057 (aarch64_ravenscar_fetch_registers)
7058 (aarch64_ravenscar_store_registers): Now methods.
7059 (aarch64_ravenscar_ops): Redefine.
7060
7061 2019-02-15 Tom Tromey <tromey@adacore.com>
7062
7063 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
7064 (ravenscar_thread_target::stopped_by_hw_breakpoint)
7065 (ravenscar_thread_target::stopped_by_watchpoint)
7066 (ravenscar_thread_target::stopped_data_address)
7067 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
7068
7069 2019-02-15 Tom Tromey <tromey@adacore.com>
7070
7071 * ravenscar-thread.c: Fix some typos.
7072
7073 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7074 Tom Tromey <tromey@adacore.com>
7075
7076 * ada-lang.c (ada_exception_sal): Change addr_string to a
7077 std::string.
7078 (create_ada_exception_catchpoint): Update.
7079
7080 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7081 Tom Tromey <tromey@adacore.com>
7082
7083 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
7084 (bp_location_ops): Remove.
7085 (base_breakpoint_allocate_location): Update.
7086 (free_bp_location): Update.
7087 * ada-lang.c (class ada_catchpoint_location)
7088 <ada_catchpoint_location>: Remove ops parameter.
7089 (ada_catchpoint_location_dtor): Remove.
7090 (ada_catchpoint_location_ops): Remove.
7091 (allocate_location_exception): Update.
7092 * breakpoint.h (struct bp_location_ops): Remove.
7093 (class bp_location) <bp_location>: Remove bp_location_ops
7094 parameter.
7095 <~bp_location>: Add destructor.
7096 <ops>: Remove.
7097
7098 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7099 Pedro Alves <palves@redhat.com>
7100
7101 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
7102 'PATH_MAX'.
7103
7104 2019-02-14 David Michael <fedora.dm0@gmail.com>
7105 Samuel Thibault <samuel.thibault@gnu.org>
7106 Thomas Schwinge <thomas@codesourcery.com>
7107
7108 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
7109 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
7110
7111 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
7112
7113 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
7114 (check_empty): Use "const char *".
7115
7116 * gnu-nat.c (gnu_nat_target::detach): Instead of
7117 'detach_inferior (pid)' call
7118 'detach_inferior (find_inferior_pid (pid))'.
7119
7120 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
7121 'nat/fork-inferior.o'.
7122 * gnu-nat.c: #include "nat/fork-inferior.h".
7123
7124 * gnu-nat.c (gnu_nat_target::detach): Instead of
7125 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
7126 * gnu-nat.h: #include "inf-child.h".
7127 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
7128 'i386_gnu_nat_target::fetch_registers'.
7129 (gnu_store_registers): Rename/move to
7130 'i386_gnu_nat_target::store_registers'.
7131
7132 * config/i386/nm-i386gnu.h: Don't "#include" any files.
7133 * gnu-nat.h (mach_thread_info): New function.
7134 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
7135
7136 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
7137
7138 2019-02-14 Frederic Konrad <konrad@adacore.com>
7139
7140 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
7141
7142 2019-02-14 Joel Brobecker <brobecker@adacore.com>
7143
7144 * windows-nat.c (windows_add_thread): Add new parameter
7145 "main_thread_p" with default value set to false. Update
7146 function documentation as well as all callers.
7147 (windows_delete_thread): Likewise.
7148 (fake_create_process): Update call to windows_add_thread.
7149 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
7150 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
7151 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
7152 call to windows_delete_thread.
7153
7154 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
7155
7156 * MAINTAINERS: Add Andrew Burgess as global maintainer.
7157
7158 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7159
7160 * symfile.c (find_separate_debug_file): Use canonical path of
7161 sysroot with child_path instead of gdb_sysroot if it is valid.
7162
7163 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7164
7165 * symfile.c (find_separate_debug_file): Use child_path to
7166 determine if an object file is under a sysroot.
7167
7168 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7169
7170 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7171 unittests/child-path-selftests.c.
7172 * common/pathstuff.c (child_path): New function.
7173 * common/pathstuff.h (child_path): New prototype.
7174 * unittests/child-path-selftests.c: New file.
7175
7176 2019-02-12 John Baldwin <jhb@FreeBSD.org>
7177
7178 * symfile.c (find_separate_debug_file): Look for separate debug
7179 files in debug directories under the sysroot.
7180
7181 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7182
7183 * symtab.h (struct minimal_symbol data_p): New const method.
7184 (struct minimal_symbol text_p): Likewise.
7185 * symtab.c (output_source_filename): Use file name style
7186 to print file name.
7187 (print_symbol_info): Likewise.
7188 (print_msymbol_info): Use address style to print addresses.
7189 Use function name style to print executable text symbols.
7190 (expand_symtab_containing_pc): Use data_p.
7191 (find_pc_sect_compunit_symtab): Likewise.
7192
7193 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7194
7195 * breakpoint.c (describe_other_breakpoints): Use address style
7196 to print addresses.
7197 (say_where): Likewise.
7198
7199 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7200
7201 * ada-typeprint.c (print_func_type): Print function name
7202 style to print function name.
7203 * c-typeprint.c (c_print_type_1): Likewise.
7204
7205 2019-02-11 Alan Hayward <alan.hayward@arm.com>
7206
7207 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
7208 for execve.
7209
7210 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7211
7212 * c-exp.y (direct_abs_decl): Use emplace_back to record the
7213 type_stack.
7214
7215 2019-02-10 Joel Brobecker <brobecker@adacore.com>
7216
7217 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
7218 TYPE_CODE_REF types.
7219
7220 2019-02-08 Jim Wilson <jimw@sifive.com>
7221
7222 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
7223 (riscv_linux_fregset): New.
7224 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
7225
7226 2019-02-07 Tom Tromey <tom@tromey.com>
7227
7228 * thread.c (thread_cancel_execution_command): Update.
7229 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
7230 methods.
7231 (struct thread_fsm_ops): Remove.
7232 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
7233 (thread_fsm_should_stop, thread_fsm_return_value)
7234 (thread_fsm_set_finished, thread_fsm_finished_p)
7235 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
7236 Don't declare.
7237 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
7238 * infrun.c (clear_proceed_status_thread)
7239 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
7240 (print_stop_event): Update.
7241 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
7242 Add constructor.
7243 (step_command_fsm_ops): Remove.
7244 (new_step_command_fsm): Remove.
7245 (step_1): Update.
7246 (step_command_fsm::should_stop): Rename from
7247 step_command_fsm_should_stop.
7248 (step_command_fsm::clean_up): Rename from
7249 step_command_fsm_clean_up.
7250 (step_command_fsm::do_async_reply_reason): Rename from
7251 step_command_fsm_async_reply_reason.
7252 (struct until_next_fsm): Inherit from thread_fsm. Add
7253 constructor.
7254 (until_next_fsm_ops): Remove.
7255 (new_until_next_fsm): Remove.
7256 (until_next_fsm::should_stop): Rename from
7257 until_next_fsm_should_stop.
7258 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
7259 (until_next_fsm::do_async_reply_reason): Rename from
7260 until_next_fsm_async_reply_reason.
7261 (struct finish_command_fsm): Inherit from thread_fsm. Add
7262 constructor. Change type of breakpoint.
7263 (finish_command_fsm_ops): Remove.
7264 (new_finish_command_fsm): Remove.
7265 (finish_command_fsm::should_stop): Rename from
7266 finish_command_fsm_should_stop.
7267 (finish_command_fsm::clean_up): Rename from
7268 finish_command_fsm_clean_up.
7269 (finish_command_fsm::return_value): Rename from
7270 finish_command_fsm_return_value.
7271 (finish_command_fsm::do_async_reply_reason): Rename from
7272 finish_command_fsm_async_reply_reason.
7273 (finish_command): Update.
7274 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
7275 Add constructor.
7276 (call_thread_fsm_ops): Remove.
7277 (call_thread_fsm::call_thread_fsm): Rename from
7278 new_call_thread_fsm.
7279 (call_thread_fsm::should_stop): Rename from
7280 call_thread_fsm_should_stop.
7281 (call_thread_fsm::should_notify_stop): Rename from
7282 call_thread_fsm_should_notify_stop.
7283 (run_inferior_call, call_function_by_hand_dummy): Update.
7284 * cli/cli-interp.c (should_print_stop_to_console): Update.
7285 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
7286 Add constructor. Change type of location_breakpoint,
7287 caller_breakpoint.
7288 (until_break_fsm_ops): Remove.
7289 (new_until_break_fsm): Remove.
7290 (until_break_fsm::should_stop): Rename from
7291 until_break_fsm_should_stop.
7292 (until_break_fsm::clean_up): Rename from
7293 until_break_fsm_clean_up.
7294 (until_break_fsm::do_async_reply_reason): Rename from
7295 until_break_fsm_async_reply_reason.
7296 (until_break_command): Update.
7297 * thread-fsm.c: Remove.
7298 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
7299
7300 2019-02-07 Tom Tromey <tom@tromey.com>
7301
7302 * yy-remap.h: Add include guard.
7303 * xtensa-tdep.h: Add include guard.
7304 * xcoffread.h: Rename include guard.
7305 * varobj-iter.h: Add include guard.
7306 * tui/tui.h: Rename include guard.
7307 * tui/tui-winsource.h: Rename include guard.
7308 * tui/tui-wingeneral.h: Rename include guard.
7309 * tui/tui-windata.h: Rename include guard.
7310 * tui/tui-win.h: Rename include guard.
7311 * tui/tui-stack.h: Rename include guard.
7312 * tui/tui-source.h: Rename include guard.
7313 * tui/tui-regs.h: Rename include guard.
7314 * tui/tui-out.h: Rename include guard.
7315 * tui/tui-layout.h: Rename include guard.
7316 * tui/tui-io.h: Rename include guard.
7317 * tui/tui-hooks.h: Rename include guard.
7318 * tui/tui-file.h: Rename include guard.
7319 * tui/tui-disasm.h: Rename include guard.
7320 * tui/tui-data.h: Rename include guard.
7321 * tui/tui-command.h: Rename include guard.
7322 * tic6x-tdep.h: Add include guard.
7323 * target/waitstatus.h: Rename include guard.
7324 * target/wait.h: Rename include guard.
7325 * target/target.h: Rename include guard.
7326 * target/resume.h: Rename include guard.
7327 * target-float.h: Rename include guard.
7328 * stabsread.h: Add include guard.
7329 * rs6000-tdep.h: Add include guard.
7330 * riscv-fbsd-tdep.h: Add include guard.
7331 * regformats/regdef.h: Rename include guard.
7332 * record.h: Rename include guard.
7333 * python/python.h: Rename include guard.
7334 * python/python-internal.h: Rename include guard.
7335 * python/py-stopevent.h: Rename include guard.
7336 * python/py-ref.h: Rename include guard.
7337 * python/py-record.h: Rename include guard.
7338 * python/py-record-full.h: Rename include guard.
7339 * python/py-record-btrace.h: Rename include guard.
7340 * python/py-instruction.h: Rename include guard.
7341 * python/py-events.h: Rename include guard.
7342 * python/py-event.h: Rename include guard.
7343 * procfs.h: Add include guard.
7344 * proc-utils.h: Add include guard.
7345 * p-lang.h: Add include guard.
7346 * or1k-tdep.h: Rename include guard.
7347 * observable.h: Rename include guard.
7348 * nto-tdep.h: Rename include guard.
7349 * nat/x86-linux.h: Rename include guard.
7350 * nat/x86-linux-dregs.h: Rename include guard.
7351 * nat/x86-gcc-cpuid.h: Add include guard.
7352 * nat/x86-dregs.h: Rename include guard.
7353 * nat/x86-cpuid.h: Rename include guard.
7354 * nat/ppc-linux.h: Rename include guard.
7355 * nat/mips-linux-watch.h: Rename include guard.
7356 * nat/linux-waitpid.h: Rename include guard.
7357 * nat/linux-ptrace.h: Rename include guard.
7358 * nat/linux-procfs.h: Rename include guard.
7359 * nat/linux-osdata.h: Rename include guard.
7360 * nat/linux-nat.h: Rename include guard.
7361 * nat/linux-namespaces.h: Rename include guard.
7362 * nat/linux-btrace.h: Rename include guard.
7363 * nat/glibc_thread_db.h: Rename include guard.
7364 * nat/gdb_thread_db.h: Rename include guard.
7365 * nat/gdb_ptrace.h: Rename include guard.
7366 * nat/fork-inferior.h: Rename include guard.
7367 * nat/amd64-linux-siginfo.h: Rename include guard.
7368 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
7369 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
7370 * nat/aarch64-linux.h: Rename include guard.
7371 * nat/aarch64-linux-hw-point.h: Rename include guard.
7372 * mn10300-tdep.h: Add include guard.
7373 * mips-linux-tdep.h: Add include guard.
7374 * mi/mi-parse.h: Rename include guard.
7375 * mi/mi-out.h: Rename include guard.
7376 * mi/mi-main.h: Rename include guard.
7377 * mi/mi-interp.h: Rename include guard.
7378 * mi/mi-getopt.h: Rename include guard.
7379 * mi/mi-console.h: Rename include guard.
7380 * mi/mi-common.h: Rename include guard.
7381 * mi/mi-cmds.h: Rename include guard.
7382 * mi/mi-cmd-break.h: Rename include guard.
7383 * m2-lang.h: Add include guard.
7384 * location.h: Rename include guard.
7385 * linux-record.h: Rename include guard.
7386 * linux-nat.h: Add include guard.
7387 * linux-fork.h: Add include guard.
7388 * i386-darwin-tdep.h: Rename include guard.
7389 * hppa-linux-offsets.h: Add include guard.
7390 * guile/guile.h: Rename include guard.
7391 * guile/guile-internal.h: Rename include guard.
7392 * gnu-nat.h: Rename include guard.
7393 * gdb-stabs.h: Rename include guard.
7394 * frv-tdep.h: Add include guard.
7395 * f-lang.h: Add include guard.
7396 * event-loop.h: Add include guard.
7397 * darwin-nat.h: Rename include guard.
7398 * cp-abi.h: Rename include guard.
7399 * config/sparc/nm-sol2.h: Rename include guard.
7400 * config/nm-nto.h: Rename include guard.
7401 * config/nm-linux.h: Add include guard.
7402 * config/i386/nm-i386gnu.h: Rename include guard.
7403 * config/djgpp/nl_types.h: Rename include guard.
7404 * config/djgpp/langinfo.h: Rename include guard.
7405 * compile/gcc-cp-plugin.h: Add include guard.
7406 * compile/gcc-c-plugin.h: Add include guard.
7407 * compile/compile.h: Rename include guard.
7408 * compile/compile-object-run.h: Rename include guard.
7409 * compile/compile-object-load.h: Rename include guard.
7410 * compile/compile-internal.h: Rename include guard.
7411 * compile/compile-cplus.h: Rename include guard.
7412 * compile/compile-c.h: Rename include guard.
7413 * common/xml-utils.h: Rename include guard.
7414 * common/x86-xstate.h: Rename include guard.
7415 * common/version.h: Rename include guard.
7416 * common/vec.h: Rename include guard.
7417 * common/tdesc.h: Rename include guard.
7418 * common/selftest.h: Rename include guard.
7419 * common/scoped_restore.h: Rename include guard.
7420 * common/scoped_mmap.h: Rename include guard.
7421 * common/scoped_fd.h: Rename include guard.
7422 * common/safe-iterator.h: Rename include guard.
7423 * common/run-time-clock.h: Rename include guard.
7424 * common/refcounted-object.h: Rename include guard.
7425 * common/queue.h: Rename include guard.
7426 * common/ptid.h: Rename include guard.
7427 * common/print-utils.h: Rename include guard.
7428 * common/preprocessor.h: Rename include guard.
7429 * common/pathstuff.h: Rename include guard.
7430 * common/observable.h: Rename include guard.
7431 * common/netstuff.h: Rename include guard.
7432 * common/job-control.h: Rename include guard.
7433 * common/host-defs.h: Rename include guard.
7434 * common/gdb_wait.h: Rename include guard.
7435 * common/gdb_vecs.h: Rename include guard.
7436 * common/gdb_unlinker.h: Rename include guard.
7437 * common/gdb_unique_ptr.h: Rename include guard.
7438 * common/gdb_tilde_expand.h: Rename include guard.
7439 * common/gdb_sys_time.h: Rename include guard.
7440 * common/gdb_string_view.h: Rename include guard.
7441 * common/gdb_splay_tree.h: Rename include guard.
7442 * common/gdb_setjmp.h: Rename include guard.
7443 * common/gdb_ref_ptr.h: Rename include guard.
7444 * common/gdb_optional.h: Rename include guard.
7445 * common/gdb_locale.h: Rename include guard.
7446 * common/gdb_assert.h: Rename include guard.
7447 * common/filtered-iterator.h: Rename include guard.
7448 * common/filestuff.h: Rename include guard.
7449 * common/fileio.h: Rename include guard.
7450 * common/environ.h: Rename include guard.
7451 * common/common-utils.h: Rename include guard.
7452 * common/common-types.h: Rename include guard.
7453 * common/common-regcache.h: Rename include guard.
7454 * common/common-inferior.h: Rename include guard.
7455 * common/common-gdbthread.h: Rename include guard.
7456 * common/common-exceptions.h: Rename include guard.
7457 * common/common-defs.h: Rename include guard.
7458 * common/common-debug.h: Rename include guard.
7459 * common/cleanups.h: Rename include guard.
7460 * common/buffer.h: Rename include guard.
7461 * common/btrace-common.h: Rename include guard.
7462 * common/break-common.h: Rename include guard.
7463 * cli/cli-utils.h: Rename include guard.
7464 * cli/cli-style.h: Rename include guard.
7465 * cli/cli-setshow.h: Rename include guard.
7466 * cli/cli-script.h: Rename include guard.
7467 * cli/cli-interp.h: Rename include guard.
7468 * cli/cli-decode.h: Rename include guard.
7469 * cli/cli-cmds.h: Rename include guard.
7470 * charset-list.h: Add include guard.
7471 * buildsym-legacy.h: Rename include guard.
7472 * bfin-tdep.h: Add include guard.
7473 * ax.h: Rename include guard.
7474 * arm-linux-tdep.h: Add include guard.
7475 * arm-fbsd-tdep.h: Add include guard.
7476 * arch/xtensa.h: Rename include guard.
7477 * arch/tic6x.h: Add include guard.
7478 * arch/i386.h: Add include guard.
7479 * arch/arm.h: Rename include guard.
7480 * arch/arm-linux.h: Rename include guard.
7481 * arch/arm-get-next-pcs.h: Rename include guard.
7482 * arch/amd64.h: Add include guard.
7483 * arch/aarch64-insn.h: Rename include guard.
7484 * arch-utils.h: Rename include guard.
7485 * annotate.h: Add include guard.
7486 * amd64-darwin-tdep.h: Rename include guard.
7487 * aarch64-linux-tdep.h: Add include guard.
7488 * aarch64-fbsd-tdep.h: Add include guard.
7489 * aarch32-linux-nat.h: Add include guard.
7490
7491 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7492
7493 * macrotab.c (macro_define_internal): New function that
7494 factorizes macro_define_object_internal and macro_define_function
7495 code.
7496 (macro_define_object_internal): Use macro_define_internal.
7497 (macro_define_function): Likewise.
7498
7499 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7500
7501 * macrocmd.c (extract_identifier): Return
7502 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
7503 callers.
7504
7505 2019-02-06 John Baldwin <jhb@FreeBSD.org>
7506
7507 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
7508
7509 2019-02-05 Tom Tromey <tom@tromey.com>
7510
7511 * target.c (target_stack::unpush): Move assertion earlier.
7512
7513 2019-01-30 Tom Tromey <tom@tromey.com>
7514
7515 PR python/23615:
7516 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
7517 (gdbpy_parse_and_eval): Likewise.
7518 * python/python-internal.h (gdbpy_allow_threads): New class.
7519
7520 2019-01-28 John Baldwin <jhb@FreeBSD.org>
7521
7522 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
7523 (aarch64_fbsd_fpregmap): Move earlier.
7524 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
7525 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7526 instead of individual calls to trad_frame_set_reg_addr.
7527 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
7528 earlier.
7529 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
7530 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
7531 instead of individual calls to trad_frame_set_reg_addr.
7532
7533 2019-01-28 Alan Hayward <alan.hayward@arm.com>
7534
7535 * CONTRIBUTE: Replace contribution list with wiki link.
7536
7537 2019-01-25 Tom Tromey <tom@tromey.com>
7538
7539 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
7540
7541 2019-01-25 Tom Tromey <tom@tromey.com>
7542
7543 * xtensa-linux-nat.c: Fix common/ includes.
7544 * xml-support.h: Fix common/ includes.
7545 * xml-support.c: Fix common/ includes.
7546 * x86-linux-nat.c: Fix common/ includes.
7547 * windows-nat.c: Fix common/ includes.
7548 * varobj.h: Fix common/ includes.
7549 * varobj.c: Fix common/ includes.
7550 * value.c: Fix common/ includes.
7551 * valops.c: Fix common/ includes.
7552 * utils.c: Fix common/ includes.
7553 * unittests/xml-utils-selftests.c: Fix common/ includes.
7554 * unittests/utils-selftests.c: Fix common/ includes.
7555 * unittests/unpack-selftests.c: Fix common/ includes.
7556 * unittests/tracepoint-selftests.c: Fix common/ includes.
7557 * unittests/style-selftests.c: Fix common/ includes.
7558 * unittests/string_view-selftests.c: Fix common/ includes.
7559 * unittests/scoped_restore-selftests.c: Fix common/ includes.
7560 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
7561 * unittests/scoped_fd-selftests.c: Fix common/ includes.
7562 * unittests/rsp-low-selftests.c: Fix common/ includes.
7563 * unittests/parse-connection-spec-selftests.c: Fix common/
7564 includes.
7565 * unittests/optional-selftests.c: Fix common/ includes.
7566 * unittests/offset-type-selftests.c: Fix common/ includes.
7567 * unittests/observable-selftests.c: Fix common/ includes.
7568 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
7569 * unittests/memrange-selftests.c: Fix common/ includes.
7570 * unittests/memory-map-selftests.c: Fix common/ includes.
7571 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
7572 * unittests/function-view-selftests.c: Fix common/ includes.
7573 * unittests/environ-selftests.c: Fix common/ includes.
7574 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
7575 * unittests/common-utils-selftests.c: Fix common/ includes.
7576 * unittests/cli-utils-selftests.c: Fix common/ includes.
7577 * unittests/array-view-selftests.c: Fix common/ includes.
7578 * ui-file.c: Fix common/ includes.
7579 * tui/tui-io.c: Fix common/ includes.
7580 * tracepoint.h: Fix common/ includes.
7581 * tracepoint.c: Fix common/ includes.
7582 * tracefile-tfile.c: Fix common/ includes.
7583 * top.h: Fix common/ includes.
7584 * top.c: Fix common/ includes.
7585 * thread.c: Fix common/ includes.
7586 * target/waitstatus.h: Fix common/ includes.
7587 * target/waitstatus.c: Fix common/ includes.
7588 * target.h: Fix common/ includes.
7589 * target.c: Fix common/ includes.
7590 * target-memory.c: Fix common/ includes.
7591 * target-descriptions.c: Fix common/ includes.
7592 * symtab.h: Fix common/ includes.
7593 * symfile.c: Fix common/ includes.
7594 * stap-probe.c: Fix common/ includes.
7595 * spu-linux-nat.c: Fix common/ includes.
7596 * sparc-nat.c: Fix common/ includes.
7597 * source.c: Fix common/ includes.
7598 * solib.c: Fix common/ includes.
7599 * solib-target.c: Fix common/ includes.
7600 * ser-unix.c: Fix common/ includes.
7601 * ser-tcp.c: Fix common/ includes.
7602 * ser-pipe.c: Fix common/ includes.
7603 * ser-base.c: Fix common/ includes.
7604 * selftest-arch.c: Fix common/ includes.
7605 * s12z-tdep.c: Fix common/ includes.
7606 * rust-exp.y: Fix common/ includes.
7607 * rs6000-aix-tdep.c: Fix common/ includes.
7608 * riscv-tdep.c: Fix common/ includes.
7609 * remote.c: Fix common/ includes.
7610 * remote-notif.h: Fix common/ includes.
7611 * remote-fileio.h: Fix common/ includes.
7612 * remote-fileio.c: Fix common/ includes.
7613 * regcache.h: Fix common/ includes.
7614 * regcache.c: Fix common/ includes.
7615 * record-btrace.c: Fix common/ includes.
7616 * python/python.c: Fix common/ includes.
7617 * python/py-type.c: Fix common/ includes.
7618 * python/py-inferior.c: Fix common/ includes.
7619 * progspace.h: Fix common/ includes.
7620 * producer.c: Fix common/ includes.
7621 * procfs.c: Fix common/ includes.
7622 * proc-api.c: Fix common/ includes.
7623 * printcmd.c: Fix common/ includes.
7624 * ppc-linux-nat.c: Fix common/ includes.
7625 * parser-defs.h: Fix common/ includes.
7626 * osdata.c: Fix common/ includes.
7627 * obsd-nat.c: Fix common/ includes.
7628 * nat/x86-linux.c: Fix common/ includes.
7629 * nat/x86-linux-dregs.c: Fix common/ includes.
7630 * nat/x86-dregs.h: Fix common/ includes.
7631 * nat/x86-dregs.c: Fix common/ includes.
7632 * nat/ppc-linux.c: Fix common/ includes.
7633 * nat/mips-linux-watch.h: Fix common/ includes.
7634 * nat/mips-linux-watch.c: Fix common/ includes.
7635 * nat/linux-waitpid.c: Fix common/ includes.
7636 * nat/linux-ptrace.h: Fix common/ includes.
7637 * nat/linux-ptrace.c: Fix common/ includes.
7638 * nat/linux-procfs.c: Fix common/ includes.
7639 * nat/linux-personality.c: Fix common/ includes.
7640 * nat/linux-osdata.c: Fix common/ includes.
7641 * nat/linux-namespaces.c: Fix common/ includes.
7642 * nat/linux-btrace.h: Fix common/ includes.
7643 * nat/linux-btrace.c: Fix common/ includes.
7644 * nat/fork-inferior.c: Fix common/ includes.
7645 * nat/amd64-linux-siginfo.c: Fix common/ includes.
7646 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
7647 * nat/aarch64-linux.c: Fix common/ includes.
7648 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
7649 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
7650 * namespace.h: Fix common/ includes.
7651 * mips-linux-tdep.c: Fix common/ includes.
7652 * minsyms.c: Fix common/ includes.
7653 * mi/mi-parse.h: Fix common/ includes.
7654 * mi/mi-main.c: Fix common/ includes.
7655 * mi/mi-cmd-env.c: Fix common/ includes.
7656 * memrange.h: Fix common/ includes.
7657 * memattr.c: Fix common/ includes.
7658 * maint.h: Fix common/ includes.
7659 * maint.c: Fix common/ includes.
7660 * main.c: Fix common/ includes.
7661 * machoread.c: Fix common/ includes.
7662 * location.c: Fix common/ includes.
7663 * linux-thread-db.c: Fix common/ includes.
7664 * linux-nat.c: Fix common/ includes.
7665 * linux-fork.c: Fix common/ includes.
7666 * inline-frame.c: Fix common/ includes.
7667 * infrun.c: Fix common/ includes.
7668 * inflow.c: Fix common/ includes.
7669 * inferior.h: Fix common/ includes.
7670 * inferior.c: Fix common/ includes.
7671 * infcmd.c: Fix common/ includes.
7672 * inf-ptrace.c: Fix common/ includes.
7673 * inf-child.c: Fix common/ includes.
7674 * ia64-linux-nat.c: Fix common/ includes.
7675 * i387-tdep.c: Fix common/ includes.
7676 * i386-tdep.c: Fix common/ includes.
7677 * i386-linux-tdep.c: Fix common/ includes.
7678 * i386-linux-nat.c: Fix common/ includes.
7679 * i386-go32-tdep.c: Fix common/ includes.
7680 * i386-fbsd-tdep.c: Fix common/ includes.
7681 * i386-fbsd-nat.c: Fix common/ includes.
7682 * guile/scm-type.c: Fix common/ includes.
7683 * guile/guile.c: Fix common/ includes.
7684 * go32-nat.c: Fix common/ includes.
7685 * gnu-nat.c: Fix common/ includes.
7686 * gdbthread.h: Fix common/ includes.
7687 * gdbarch-selftests.c: Fix common/ includes.
7688 * gdb_usleep.c: Fix common/ includes.
7689 * gdb_select.h: Fix common/ includes.
7690 * gdb_bfd.c: Fix common/ includes.
7691 * gcore.c: Fix common/ includes.
7692 * fork-child.c: Fix common/ includes.
7693 * findvar.c: Fix common/ includes.
7694 * fbsd-nat.c: Fix common/ includes.
7695 * event-top.c: Fix common/ includes.
7696 * event-loop.c: Fix common/ includes.
7697 * dwarf2read.c: Fix common/ includes.
7698 * dwarf2loc.c: Fix common/ includes.
7699 * dwarf2-frame.c: Fix common/ includes.
7700 * dwarf-index-cache.c: Fix common/ includes.
7701 * dtrace-probe.c: Fix common/ includes.
7702 * disasm-selftests.c: Fix common/ includes.
7703 * defs.h: Fix common/ includes.
7704 * csky-tdep.c: Fix common/ includes.
7705 * cp-valprint.c: Fix common/ includes.
7706 * cp-support.h: Fix common/ includes.
7707 * cp-support.c: Fix common/ includes.
7708 * corelow.c: Fix common/ includes.
7709 * completer.h: Fix common/ includes.
7710 * completer.c: Fix common/ includes.
7711 * compile/compile.c: Fix common/ includes.
7712 * compile/compile-loc2c.c: Fix common/ includes.
7713 * compile/compile-cplus-types.c: Fix common/ includes.
7714 * compile/compile-cplus-symbols.c: Fix common/ includes.
7715 * command.h: Fix common/ includes.
7716 * cli/cli-dump.c: Fix common/ includes.
7717 * cli/cli-cmds.c: Fix common/ includes.
7718 * charset.c: Fix common/ includes.
7719 * build-id.c: Fix common/ includes.
7720 * btrace.h: Fix common/ includes.
7721 * btrace.c: Fix common/ includes.
7722 * breakpoint.h: Fix common/ includes.
7723 * breakpoint.c: Fix common/ includes.
7724 * ax.h:
7725 (enum agent_op): Fix common/ includes.
7726 * ax-general.c (struct aop_map): Fix common/ includes.
7727 * ax-gdb.c: Fix common/ includes.
7728 * auxv.c: Fix common/ includes.
7729 * auto-load.c: Fix common/ includes.
7730 * arm-tdep.c: Fix common/ includes.
7731 * arch/riscv.c: Fix common/ includes.
7732 * arch/ppc-linux-common.c: Fix common/ includes.
7733 * arch/i386.c: Fix common/ includes.
7734 * arch/arm.c: Fix common/ includes.
7735 * arch/arm-linux.c: Fix common/ includes.
7736 * arch/arm-get-next-pcs.c: Fix common/ includes.
7737 * arch/amd64.c: Fix common/ includes.
7738 * arch/aarch64.c: Fix common/ includes.
7739 * arch/aarch64-insn.c: Fix common/ includes.
7740 * arch-utils.c: Fix common/ includes.
7741 * amd64-windows-tdep.c: Fix common/ includes.
7742 * amd64-tdep.c: Fix common/ includes.
7743 * amd64-sol2-tdep.c: Fix common/ includes.
7744 * amd64-obsd-tdep.c: Fix common/ includes.
7745 * amd64-nbsd-tdep.c: Fix common/ includes.
7746 * amd64-linux-tdep.c: Fix common/ includes.
7747 * amd64-linux-nat.c: Fix common/ includes.
7748 * amd64-fbsd-tdep.c: Fix common/ includes.
7749 * amd64-fbsd-nat.c: Fix common/ includes.
7750 * amd64-dicos-tdep.c: Fix common/ includes.
7751 * amd64-darwin-tdep.c: Fix common/ includes.
7752 * agent.c: Fix common/ includes.
7753 * ada-lang.h: Fix common/ includes.
7754 * ada-lang.c: Fix common/ includes.
7755 * aarch64-tdep.c: Fix common/ includes.
7756
7757 2019-01-25 Tom Tromey <tom@tromey.com>
7758
7759 * common/create-version.sh: Use common/version.h.
7760
7761 2019-01-24 Pedro Alves <palves@redhat.com>
7762
7763 * infrun.c (signal_stop, signal_print, signal_program)
7764 (signal_catch, signal_pass): Now arrays instead of pointers.
7765 (update_signals_program_target, do_target_resume)
7766 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
7767 * linux-nat.c (linux_nat_target::pass_signals)
7768 (linux_nat_target::create_inferior, linux_nat_target::attach):
7769 Adjust.
7770 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
7771 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
7772 * procfs.c (procfs_target::pass_signals): Adjust.
7773 * record-full.c (record_full_target::resume): Adjust.
7774 * remote.c (remote_target::pass_signals)
7775 (remote_target::program_signals): Adjust.
7776 * target-debug.h (target_debug_print_signals): Now takes a
7777 gdb::array_view as parameter. Adjust.
7778 * target.h (target_ops) <pass_signals, program_signals>: Replace
7779 pointer and length parameters with gdb::array_view.
7780 (target_pass_signals, target_program_signals): Likewise.
7781 * target-delegates.c: Regenerate.
7782
7783 2019-01-24 Pedro Alves <palves@redhat.com>
7784
7785 * common/forward-scope-exit.h
7786 (forward_scope_exit::forward_scope_exit): Pass arguments to
7787 m_bind_function directly, instead of creating a std::bind and
7788 copying that.
7789
7790 2019-01-24 Alan Hayward <alan.hayward@arm.com>
7791
7792 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7793 for static members.
7794 (pass_in_v_vfp_candidate): Likewise.
7795
7796 2019-01-23 Tom Tromey <tom@tromey.com>
7797 Pedro Alves <palves@redhat.com>
7798
7799 * regcache.c (class regcache_invalidator): Remove.
7800 (regcache::raw_write): Use make_scope_exit.
7801
7802 2019-01-23 Tom Tromey <tom@tromey.com>
7803
7804 * ui-out.h (class ui_out_emit_type): Update comment.
7805
7806 2019-01-23 Tom Tromey <tom@tromey.com>
7807
7808 * infrun.c (fetch_inferior_event): Update comment.
7809
7810 2019-01-23 Tom Tromey <tom@tromey.com>
7811 Pedro Alves <palves@redhat.com>
7812
7813 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
7814 parameter.
7815 (fetch_inferior_event): Use SCOPE_EXIT.
7816
7817
7818 2019-01-23 Tom Tromey <tom@tromey.com>
7819 Pedro Alves <palves@redhat.com>
7820
7821 * infrun.c (disable_thread_events): Delete.
7822 (stop_all_threads): Use SCOPE_EXIT.
7823
7824 2019-01-23 Tom Tromey <tom@tromey.com>
7825 Pedro Alves <palves@redhat.com>
7826
7827 * symfile.c: Include forward-scope-exit.h.
7828 (clear_symtab_users_cleanup): Replace forward declaration with
7829 a FORWARD_SCOPE_EXIT.
7830 (syms_from_objfile_1): Use the forward_scope_exit and
7831 gdb::optional instead of cleanup_function.
7832 (reread_symbols): Use the forward_scope_exit instead of
7833 cleanup_function.
7834 (clear_symtab_users_cleanup): Remove function.
7835
7836 2019-01-23 Tom Tromey <tom@tromey.com>
7837 Pedro Alves <palves@redhat.com>
7838
7839 * linux-nat.c: Include scope-exit.h.
7840 (cleanup_target_stop): Remove.
7841 (linux_nat_target::static_tracepoint_markers_by_strid): Use
7842 SCOPE_EXIT.
7843
7844 2019-01-23 Tom Tromey <tom@tromey.com>
7845 Pedro Alves <palves@redhat.com>
7846
7847 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
7848 (call_function_by_hand_dummy): Use SCOPE_EXIT.
7849
7850 2019-01-23 Tom Tromey <tom@tromey.com>
7851 Andrew Burgess <andrew.burgess@embecosm.com>
7852 Pedro Alves <palves@redhat.com>
7853
7854 * infrun.c (fetch_inferior_event): Use scope_exit.
7855 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
7856 * top.c (execute_command): Use scope_exit.
7857 * breakpoint.c (bpstat_do_actions): Use scope_exit.
7858 * utils.c (do_bpstat_clear_actions_cleanup)
7859 (make_bpstat_clear_actions_cleanup): Remove.
7860
7861 2019-01-23 Tom Tromey <tom@tromey.com>
7862 Pedro Alves <palves@redhat.com>
7863
7864 * infrun.c: Include "common/scope-exit.h"
7865 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
7866 (wait_for_inferior): Use SCOPE_EXIT.
7867 (fetch_inferior_event): Use scope_exit.
7868
7869 2019-01-23 Tom Tromey <tom@tromey.com>
7870 Pedro Alves <palves@redhat.com>
7871
7872 * breakpoint.c (create_breakpoint): Remove cleanup.
7873
7874 2019-01-23 Tom Tromey <tom@tromey.com>
7875 Andrew Burgess <andrew.burgess@embecosm.com>
7876 Pedro Alves <palves@redhat.com>
7877
7878 2019-01-23 Pedro Alves <palves@redhat.com>
7879
7880 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
7881
7882 2019-01-23 Pedro Alves <palves@redhat.com>
7883 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * gdbthread.h: Include "common/forward-scope-exit.h".
7886 (scoped_finish_thread_state): Redefine custom class in terms of
7887 forward_scope_exit.
7888
7889 2019-01-23 Pedro Alves <palves@redhat.com>
7890 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * common/forward-scope-exit.h: New file.
7893
7894 2019-01-23 Pedro Alves <palves@redhat.com>
7895 Andrew Burgess <andrew.burgess@embecosm.com>
7896 Tom Tromey <tom@tromey.com>
7897
7898 * common/scope-exit.h: New file.
7899
7900 2019-01-23 Pedro Alves <palves@redhat.com>
7901
7902 * common/preprocessor.h (ESC): Rename to ...
7903 (ESC_PARENS): ... this.
7904 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
7905 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
7906
7907 2019-01-23 Tom Tromey <tom@tromey.com>
7908
7909 * language.h (class scoped_switch_to_sym_language_if_auto):
7910 Initialize m_lang in both cases.
7911
7912 2019-01-23 Alan Hayward <alan.hayward@arm.com>
7913
7914 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
7915 with XCNEW.
7916
7917 2019-01-22 Tom Tromey <tom@tromey.com>
7918
7919 * corelow.c: Do not include sys/file.h.
7920
7921 2019-01-22 Tom Tromey <tom@tromey.com>
7922
7923 * tui/tui-wingeneral.h: Include gdb_curses.h.
7924
7925 2019-01-22 Tom Tromey <tom@tromey.com>
7926
7927 * source-cache.h (class source_cache) <get_source_lines,
7928 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
7929
7930 2019-01-22 Tom Tromey <tom@tromey.com>
7931
7932 * remote-fileio.h (struct remote_target): Declare.
7933
7934 2019-01-22 Tom Tromey <tom@tromey.com>
7935
7936 * python/py-arch.c: Do not include py-ref.h.
7937 * python/py-bpevent.c: Do not include py-ref.h.
7938 * python/py-cmd.c: Do not include py-ref.h.
7939 * python/py-continueevent.c: Do not include py-ref.h.
7940 * python/py-event.h: Do not include py-ref.h.
7941 * python/py-evtregistry.c: Do not include py-ref.h.
7942 * python/py-finishbreakpoint.c: Do not include py-ref.h.
7943 * python/py-frame.c: Do not include py-ref.h.
7944 * python/py-framefilter.c: Do not include py-ref.h.
7945 * python/py-function.c: Do not include py-ref.h.
7946 * python/py-infevents.c: Do not include py-ref.h.
7947 * python/py-linetable.c: Do not include py-ref.h.
7948 * python/py-objfile.c: Do not include py-ref.h.
7949 * python/py-param.c: Do not include py-ref.h.
7950 * python/py-prettyprint.c: Do not include py-ref.h.
7951 * python/py-progspace.c: Do not include py-ref.h.
7952 * python/py-symbol.c: Do not include py-ref.h.
7953 * python/py-symtab.c: Do not include py-ref.h.
7954 * python/py-type.c: Do not include py-ref.h.
7955 * python/py-unwind.c: Do not include py-ref.h.
7956 * python/py-utils.c: Do not include py-ref.h.
7957 * python/py-value.c: Do not include py-ref.h.
7958 * python/py-varobj.c: Do not include py-ref.h.
7959 * python/py-xmethods.c: Do not include py-ref.h.
7960 * python/python.c: Do not include py-ref.h.
7961 * varobj.c: Do not include py-ref.h.
7962
7963 2019-01-22 Tom Tromey <tom@tromey.com>
7964
7965 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
7966 keyword for bcache.
7967
7968 2019-01-22 Tom Tromey <tom@tromey.com>
7969
7970 * compile/compile-cplus-types.c: Remove a comment by #include.
7971
7972 2019-01-22 Tom Tromey <tom@tromey.com>
7973
7974 * compile/gcc-c-plugin.h: Include compile-internal.h.
7975
7976 2019-01-22 Tom Tromey <tom@tromey.com>
7977
7978 * stabsread.c (EXTERN): Do not define.
7979 (symnum, next_symbol_text_func, processing_gcc_compilation)
7980 (within_function, global_sym_chain, global_stabs)
7981 (previous_stab_code, this_object_header_files)
7982 (n_this_object_header_files)
7983 (n_allocated_this_object_header_files): Define.
7984 * stabsread.h (EXTERN): Never define. Use "extern".
7985
7986 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7987
7988 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
7989 history_value.
7990
7991 2019-01-21 Tom Tromey <tom@tromey.com>
7992
7993 * ui-out.c: Fix includes.
7994 * tui/tui-source.c: Fix includes.
7995 * target.c: Fix includes.
7996 * remote.c: Fix includes.
7997 * regcache.c: Fix includes.
7998 * python/py-block.c: Fix includes.
7999 * printcmd.c: Fix includes.
8000 * or1k-tdep.c: Fix includes.
8001 * mi/mi-main.c: Fix includes.
8002 * m32r-tdep.c: Fix includes.
8003 * csky-tdep.c: Fix includes.
8004 * compile/compile-cplus-types.c: Fix includes.
8005 * cli/cli-interp.c: Fix includes.
8006
8007 2019-01-21 Alan Hayward <alan.hayward@arm.com>
8008
8009 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
8010 for padding.
8011
8012 2019-01-16 Tom Tromey <tom@tromey.com>
8013
8014 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
8015 earlier.
8016 (struct objfile) <msymbols_range>: Move from top level.
8017 <msymbols>: New method.
8018 (class objfile_msymbols): Remove.
8019 * symtab.c (default_collect_symbol_completion_matches_break_on):
8020 Update.
8021 * symmisc.c (dump_msymbols): Update.
8022 * stabsread.c (scan_file_globals): Update.
8023 * objc-lang.c (info_selectors_command, info_classes_command)
8024 (find_methods): Update.
8025 * minsyms.c (find_solib_trampoline_target): Update.
8026 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
8027 * coffread.c (coff_symfile_read): Update.
8028 * ada-lang.c (ada_lookup_simple_minsym)
8029 (ada_collect_symbol_completion_matches): Update.
8030
8031 2019-01-16 Tom Tromey <tom@tromey.com>
8032
8033 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
8034 type. Remove no-argument constructor.
8035 <iterator::operator++>: Simplify.
8036 <begin>: Update.
8037 <end>: Use minimal_symbol_count.
8038
8039 2019-01-16 Tom Tromey <tom@tromey.com>
8040
8041 * objfiles.h (struct objfile) <psymtabs>: New method.
8042 (class objfile_psymtabs): Remove.
8043 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
8044 typedef.
8045 <range>: New method.
8046 (require_partial_symbols): Change return type.
8047 * psymtab.c (require_partial_symbols)
8048 (psym_expand_symtabs_matching): Update.
8049 * mdebugread.c (parse_partial_symbols): Update.
8050 * dbxread.c (dbx_end_psymtab): Update.
8051
8052 2019-01-15 Tom Tromey <tom@tromey.com>
8053
8054 * symtab.c (lookup_objfile_from_block)
8055 (lookup_symbol_in_objfile_symtabs)
8056 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
8057 (find_line_symtab, info_sources_command)
8058 (default_collect_symbol_completion_matches_break_on)
8059 (make_source_files_completion_list): Update.
8060 * symmisc.c (print_objfile_statistics, dump_objfile)
8061 (maintenance_print_symbols, maintenance_info_symtabs)
8062 (maintenance_check_symtabs, maintenance_info_line_tables):
8063 Update.
8064 * source.c (select_source_symtab)
8065 (forget_cached_source_info_for_objfile): Update.
8066 * objfiles.h (class objfile_compunits): Remove.
8067 (struct objfile) <compunits_range>: New typedef.
8068 (compunits): New method.
8069 * objfiles.c (objfile_relocate1): Update.
8070 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8071 * maint.c (count_symtabs_and_blocks): Update.
8072 * linespec.c (iterate_over_all_matching_symtabs): Update.
8073 * cp-support.c (add_symbol_overload_list_qualified): Update.
8074 * coffread.c (coff_symtab_read): Update.
8075 * ada-lang.c (add_nonlocal_symbols)
8076 (ada_collect_symbol_completion_matches)
8077 (ada_add_global_exceptions): Update.
8078
8079 2019-01-15 Tom Tromey <tom@tromey.com>
8080
8081 * progspace.h (program_space) <objfiles_safe_range>: New
8082 typedef.
8083 <objfiles_safe>: New method.
8084 * objfiles.h (class all_objfiles_safe): Remove.
8085 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
8086 * jit.c (jit_inferior_exit_hook): Update.
8087
8088 2019-01-17 Tom Tromey <tom@tromey.com>
8089
8090 * progspace.h (program_space) <objfiles_range>: New typedef.
8091 <objfiles>: New method.
8092 <objfiles_head>: Rename from objfiles.
8093 (object_files): Update.
8094 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
8095 * guile/scm-pretty-print.c
8096 (ppscm_find_pretty_printer_from_objfiles): Update.
8097 * guile/scm-objfile.c (gdbscm_objfiles): Update.
8098 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
8099 Update.
8100 * python/py-progspace.c (pspy_get_objfiles): Update.
8101 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8102 Update.
8103 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8104 (objfpy_lookup_objfile_by_build_id): Update.
8105 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
8106 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8107 Update.
8108 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8109 (expand_symtab_containing_pc, lookup_objfile_from_block)
8110 (lookup_static_symbol, basic_lookup_transparent_type)
8111 (find_pc_sect_compunit_symtab, find_symbol_at_address)
8112 (find_line_symtab, info_sources_command)
8113 (default_collect_symbol_completion_matches_break_on)
8114 (make_source_files_completion_list, find_main_name): Update.
8115 * symmisc.c (print_symbol_bcache_statistics)
8116 (print_objfile_statistics, maintenance_print_symbols)
8117 (maintenance_print_msymbols, maintenance_print_objfiles)
8118 (maintenance_info_symtabs, maintenance_check_symtabs)
8119 (maintenance_expand_symtabs, maintenance_info_line_tables):
8120 Update.
8121 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
8122 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
8123 (map_overlay_command, unmap_overlay_command)
8124 (simple_overlay_update, expand_symtabs_matching)
8125 (map_symbol_filenames): Update.
8126 * symfile-debug.c (set_debug_symfile): Update.
8127 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
8128 Update.
8129 * source.c (select_source_symtab, forget_cached_source_info):
8130 Update.
8131 * solib.c (solib_read_symbols): Update.
8132 * solib-spu.c (append_ocl_sos): Update.
8133 * psymtab.c (maintenance_print_psymbols)
8134 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
8135 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
8136 * printcmd.c (info_symbol_command): Update.
8137 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
8138 Update.
8139 * objfiles.h (class all_objfiles): Remove.
8140 * objfiles.c (have_partial_symbols, have_full_symbols)
8141 (have_minimal_symbols, qsort_cmp, update_section_map)
8142 (shared_objfile_contains_address_p)
8143 (default_iterate_over_objfiles_in_search_order): Update.
8144 * objc-lang.c (info_selectors_command, info_classes_command)
8145 (find_methods): Update.
8146 * minsyms.c (find_solib_trampoline_target): Update.
8147 * maint.c (maintenance_info_sections)
8148 (maintenance_translate_address, count_symtabs_and_blocks):
8149 Update.
8150 * main.c (captured_main_1): Update.
8151 * linux-thread-db.c (try_thread_db_load_from_pdir)
8152 (has_libpthread): Update.
8153 * linespec.c (iterate_over_all_matching_symtabs)
8154 (search_minsyms_for_name): Update.
8155 * jit.c (jit_find_objf_with_entry_addr): Update.
8156 * hppa-tdep.c (find_unwind_entry)
8157 (hppa_lookup_stub_minimal_symbol): Update.
8158 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
8159 Update.
8160 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8161 (elf_gnu_ifunc_resolve_by_got): Update.
8162 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
8163 * dwarf-index-write.c (save_gdb_index_command): Update.
8164 * cp-support.c (add_symbol_overload_list_qualified): Update.
8165 * breakpoint.c (create_overlay_event_breakpoint)
8166 (create_longjmp_master_breakpoint)
8167 (create_std_terminate_master_breakpoint)
8168 (create_exception_master_breakpoint): Update.
8169 * blockframe.c (find_pc_partial_function): Update.
8170 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
8171 (ada_collect_symbol_completion_matches)
8172 (ada_add_global_exceptions): Update.
8173
8174 2019-01-17 Tom Tromey <tom@tromey.com>
8175
8176 * solib-target.c (lm_info_target_p): Remove typedef. Don't
8177 declare VEC.
8178 (solib_target_parse_libraries): Change return type.
8179 (library_list_start_segment, library_list_start_section)
8180 (library_list_end_library, library_list_start_library); Update.
8181 (solib_target_free_library_list): Remove.
8182 (solib_target_parse_libraries): Remove cleanup. Change return
8183 type.
8184 (solib_target_current_sos): Update.
8185
8186 2019-01-17 Tom Tromey <tromey@bapiya>
8187
8188 * valprint.c: Replace "the the" with "the".
8189 * symtab.c: Replace "the the" with "the".
8190 * solib.c: Replace "the the" with "the".
8191 * solib-dsbt.c: Replace "the the" with "the".
8192 * linespec.c: Replace "the the" with "the".
8193 * dwarf2loc.h: Replace "the the" with "the".
8194 * amd64-windows-tdep.c: Replace "the the" with "the".
8195 * aarch64-tdep.c: Replace "the the" with "the".
8196
8197 2019-01-16 Keith Seitz <keiths@redhat.com>
8198
8199 PR gdb/23773
8200 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
8201 <builder>: Rename to ..
8202 <m_builder>: ... this and make private.
8203 (dwarf2_cu::get_builder): New method. Change all users of
8204 `builder' to use this method.
8205 (dwarf2_start_symtab): Move to ...
8206 (dwarf2_cu::start_symtab): ... here. Update all callers
8207 (setup_type_unit_groups): Move to ...
8208 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
8209 callers.
8210 (dwarf2_cu::reset_builder): New method.
8211 (process_full_compunit, process_full_type_unit): Use
8212 dwarf2_cu::reset_builder.
8213 (follow_die_offset): Record the ancestor CU if it is different
8214 from the followed DIE's CU.
8215 (follow_die_sig_1): Likewise.
8216
8217 2019-01-15 Tom Tromey <tom@tromey.com>
8218
8219 * remote.c (class remote_state) <buf>: Now a char_vector.
8220 <buf_size>: Remove.
8221 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
8222 parameter.
8223 (remote_target::getpkt_or_notif_sane_1)
8224 (remote_target::getpkt_sane)
8225 (remote_target::getpkt_or_notif_sane): Likewise.
8226 (class remote_target) <putpkt>: New overload.
8227 (remote_target::read_frame): Change type of "buf_p". Remove
8228 sizeof_p parameter.
8229 (packet_ok): New overload.
8230 (packet_check_result): New overload.
8231 Update all uses.
8232
8233 2019-01-14 Tom Tromey <tom@tromey.com>
8234
8235 * remote-notif.c (handle_notification, remote_notif_ack)
8236 (remote_notif_parse): Make "buf" const.
8237 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
8238 const.
8239 (remote_notif_parse, remote_notif_ack, handle_notification):
8240 Likewise.
8241 * remote.c (remote_notif_stop_parse): Make "buf" const.
8242 (remote_target::remote_parse_stop_reply): Make "buf" const.
8243 (remote_notif_stop_ack): Make "buf" const.
8244
8245 2019-01-14 Tom Tromey <tom@tromey.com>
8246
8247 * remote.c (remote_console_output): Make parameter const.
8248
8249 2019-01-14 Tom Tromey <tom@tromey.com>
8250
8251 * target-debug.h (target_debug_print_signals): Constify.
8252 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
8253 * procfs.c (procfs_target::pass_signals): Update.
8254 * linux-nat.c (linux_nat_target::pass_signals): Update.
8255 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
8256 * target-delegates.c: Rebuild.
8257 * remote.c (remote_target::program_signals): Update.
8258 (remote_target::pass_signals): Update.
8259 * target.c (target_pass_signals): Constify argument.
8260 (target_program_signals): Likewise.
8261 * target.h (struct target_ops) <pass_signals, program_signals>:
8262 Constify argument.
8263 (target_pass_signals, target_program_signals): Constify argument.
8264
8265 2019-01-14 Tom Tromey <tom@tromey.com>
8266
8267 PR tui/28819:
8268 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
8269
8270 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8271
8272 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
8273 field.
8274 * rs6000-tdep.c: Include reggroups.h.
8275 (IS_V_ALIAS_PSEUDOREG): Define.
8276 (rs6000_register_name): Return names for the "vX" aliases.
8277 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
8278 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
8279 aliases. Call default_register_reggroup_p for all other
8280 pseudo-registers.
8281 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
8282 New functions.
8283 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
8284 Handle "vX" aliases.
8285 (v_alias_pseudo_register_collect): New function.
8286 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
8287 (rs6000_gdbarch_init): Initialize "vX" aliases as
8288 pseudo-registers. Restore registration of
8289 rs6000_pseudo_register_reggroup_p with
8290 set_tdesc_pseudo_register_reggroup_p.
8291
8292 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
8293
8294 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
8295 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
8296 set_gdbarch_num_pseudo_regs.
8297
8298 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8299
8300 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
8301 Remove arg prefixname, add do_set and do_show.
8302 Add member functions set_list and show_list.
8303 * cli/cli-style.c (class cli_style_option): Update accordingly.
8304 (style_set_list): Move to file scope.
8305 (style_show_list): Likewise.
8306 (set_style): Call help_list.
8307 (show_style): Call cmd_show_list.
8308 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
8309 Update to use the new macro.
8310
8311 2019-10-12 Joel Brobecker <brobecker@adacore.com>
8312
8313 * ada-lang.c (_initialize_ada_language): Expand the help text
8314 for the "catch exception" command.
8315
8316 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8317
8318 * symtab.c (matching_obj_sections): Initialize obj,
8319 declare it closer to its usage.
8320
8321 2019-01-10 Tom Tromey <tom@tromey.com>
8322
8323 * thread-iter.h (inf_threads_iterator): Use next_iterator.
8324 (basic_inf_threads_range): Remove.
8325 (inf_threads_range, inf_non_exited_threads_range)
8326 (safe_inf_threads_range): Use next_adapter.
8327
8328 2019-01-10 Keith Seitz <keiths@redhat.com>
8329
8330 PR gdb/23712
8331 PR symtab/23010
8332 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
8333 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
8334
8335 2019-01-10 Keith Seitz <keiths@redhat.com>
8336
8337 PR gdb/23712
8338 PR symtab/23010
8339 * dictionary.c (pending_to_vector): Remove.
8340 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8341 Remove _1 suffix, replacing functions of the same name. Update
8342 all callers.
8343 (dict_create_hashed, dict_create_hashed_expandable)
8344 (dict_create_linear, dict_create_linear_expandable, dict_free)
8345 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
8346 Make functions static.
8347
8348 2019-01-10 Keith Seitz <keiths@redhat.com>
8349
8350 PR gdb/23712
8351 PR symtab/23010
8352 * dictionary.h (struct dictionary): Replace declaration with
8353 multidictionary.
8354 (dict_create_hashed, dict_create_hashed_expandable)
8355 (dict_create_linear, dict_create_linear_expandable)
8356 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
8357 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
8358 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
8359 taking multidictionary argument.
8360 [ALL_DICT_SYMBOLS]: Update for multidictionary.
8361 * block.h (struct block) <dict>: Change to multidictionary
8362 and rename `multidict'.
8363 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
8364 symmisc.c: Update all dictionary references to multidictionary.
8365
8366 2019-01-10 Keith Seitz <keiths@redhat.com>
8367
8368 PR gdb/23712
8369 PR symtab/23010
8370 * dictionary.c: Include unordered_map.
8371 (pending_to_vector): New function.
8372 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
8373 Rewrite the non-"_1" functions to take vector instead
8374 of linked list.
8375 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
8376 "new" _1 versions of the same name.
8377 (multidictionary): Define.
8378 (std::hash<enum language): New definition.
8379 (collate_pending_symbols_by_language, mdict_create_hashed)
8380 (mdict_create_hashed_expandable, mdict_create_linear)
8381 (mdict_create_linear_expandable, mdict_free)
8382 (find_language_dictionary, create_new_language_dictionary)
8383 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
8384 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
8385 (mdict_size, mdict_empty): New functions.
8386 * dictionary.h (mdict_iterator): Define.
8387
8388 2019-01-10 Pedro Alves <palves@redhat.com>
8389
8390 * breakpoint.c (read_uploaded_action)
8391 (create_tracepoint_from_upload): Adjust to use
8392 gdb::unique_xmalloc_ptr.
8393 * ctf.c (ctf_write_uploaded_tp):
8394 (SET_ARRAY_FIELD): Use emplace_back.
8395 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
8396 * tracefile-tfile.c (tfile_write_uploaded_tp):
8397 * tracepoint.c (parse_tracepoint_definition): Adjust to use
8398 gdb::unique_xmalloc_ptr.
8399 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
8400 at_string, cond_string, cmd_strings>: Replace char pointers
8401 with gdb::unique_xmalloc_ptr.
8402
8403 2019-01-10 Pedro Alves <palves@redhat.com>
8404
8405 * solib-target.c (library_list_start_library): Don't xstrdup name.
8406
8407 2019-01-10 Pedro Alves <palves@redhat.com>
8408
8409 * mdebugread.c (parse_partial_symbols): Use
8410 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
8411
8412 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * linux-fork.c (scoped_switch_fork_info)
8415 <~scoped_switch_fork_info>: Fix incorrect variable name.
8416
8417 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
8418
8419 * linux-fork.c (scoped_switch_fork_info)
8420 <scoped_switch_fork_info>: Make explicit.
8421 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
8422
8423 2019-01-10 Tom Tromey <tom@tromey.com>
8424
8425 * objfiles.h (objfile::reset_psymtabs): Update.
8426 * objfiles.c (objfile::objfile): Update.
8427 * psymtab.h (psymtab_storage::obstack): Update.
8428 (psymtab_storage::m_obstack): Use gdb::optional.
8429 (class psymtab_storage): Update comment. Remove objfile
8430 parameter.
8431 * psymtab.c (psymtab_storage::psymtab_storage): Update.
8432
8433 2019-01-10 Tom Tromey <tom@tromey.com>
8434
8435 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
8436 <free_psymtabs>: Now private.
8437 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
8438 (allocate_psymtab): Use new method.
8439
8440 2019-01-10 Tom Tromey <tom@tromey.com>
8441
8442 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
8443 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
8444 * mdebugread.c (parse_partial_symbols): Use
8445 allocate_dependencies.
8446 * dwarf2read.c (dwarf2_create_include_psymtab): Use
8447 allocate_dependencies.
8448 (process_psymtab_comp_unit_reader)
8449 (build_type_psymtab_dependencies): Likewise.
8450 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
8451
8452 2019-01-10 Tom Tromey <tom@tromey.com>
8453
8454 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
8455 PSYMBOL_SET_LANGUAGE.
8456 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
8457
8458 2019-01-10 Tom Tromey <tom@tromey.com>
8459
8460 * psymtab.h (psymtab_storage::obstack): New method.
8461 <m_obstack>: Rename from obstack; now private.
8462 * psymtab.c (psymtab_storage): Update.
8463 * dwarf2read.c (create_addrmap_from_index)
8464 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
8465 Update.
8466
8467 2019-01-10 Tom Tromey <tom@tromey.com>
8468
8469 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
8470 * objfiles.h (objfile::reset_psymtabs): New method.
8471
8472 2019-01-10 Tom Tromey <tom@tromey.com>
8473
8474 * symmisc.c (print_symbol_bcache_statistics): Update.
8475 (print_objfile_statistics): Update.
8476 * symfile.c (reread_symbols): Update.
8477 * psymtab.h (class psymtab_storage): New.
8478 * psymtab.c (psymtab_storage): New constructor.
8479 (~psymtab_storage): New destructor.
8480 (require_partial_symbols): Update.
8481 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
8482 (find_pc_sect_psymtab, find_pc_sect_psymbol)
8483 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
8484 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
8485 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
8486 (start_psymtab_common, end_psymtab_common)
8487 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
8488 (allocate_psymtab): Update.
8489 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
8490 Update.
8491 (dump_psymtab_addrmap, maintenance_print_psymbols)
8492 (maintenance_check_psymtabs): Update.
8493 (class objfile_psymtabs): Move to objfiles.h.
8494 * psympriv.h (discard_psymtab): Now inline.
8495 (psymtab_discarder::psymtab_discarder): Update.
8496 (psymtab_discarder::~psymtab_discarder): Update.
8497 (ALL_OBJFILE_PSYMTABS): Rewrite.
8498 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
8499 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
8500 Remove fields.
8501 <partial_symtabs>: New field.
8502 (class objfile_psymtabs): Move from psymtab.h. Update.
8503 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
8504 psymbol_cache.
8505 (objfile::~objfile): Don't destroy psymbol_cache.
8506 * mdebugread.c (parse_partial_symbols): Update.
8507 * dwarf2read.c (create_addrmap_from_index)
8508 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8509 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
8510 (add_partial_subprogram, dwarf2_ranges_read): Update.
8511 * dwarf-index-write.c (write_address_map)
8512 (write_one_signatured_type, recursively_write_psymbols)
8513 (class debug_names, class debug_names, write_psymtabs_to_index):
8514 Update.
8515
8516 2019-01-10 Tom Tromey <tom@tromey.com>
8517
8518 * symtab.h (SYMBOL_SET_NAMES): Update.
8519 (symbol_set_names): Update.
8520 (MSYMBOL_SET_NAMES): Update.
8521 * symtab.c (symbol_set_names): Change argument to be an
8522 objfile_per_bfd_storage.
8523 * psymtab.c (add_psymbol_to_bcache): Update.
8524 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
8525
8526 2019-01-10 Tom Tromey <tom@tromey.com>
8527
8528 * symtab.c (create_demangled_names_hash): Change argument to be an
8529 objfile_per_bfd_storage.
8530 (symbol_set_names): Update.
8531
8532 2019-01-10 Tom Tromey <tom@tromey.com>
8533
8534 * xcoffread.c (xcoff_initial_scan): Unconditionally call
8535 init_psymbol_list.
8536 * psymtab.c (init_psymbol_list): Do nothing if already called.
8537 * psympriv.h (init_psymbol_list): Add comment.
8538 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
8539 init_psymbol_list.
8540 * dbxread.c (dbx_symfile_read): Unconditionally call
8541 init_psymbol_list.
8542
8543 2019-01-10 Tom Tromey <tom@tromey.com>
8544
8545 * xcoffread.c (scan_xcoff_symtab): Update.
8546 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
8547 "where".
8548 * mdebugread.c (parse_partial_symbols)
8549 (handle_psymbol_enumerators): Update.
8550 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
8551 * dbxread.c (read_dbx_symtab): Update.
8552 * psympriv.h (psymbol_placement): New enum.
8553 (add_psymbol_to_list): Update.
8554
8555 2019-01-10 Tom Tromey <tom@tromey.com>
8556
8557 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
8558 static_psymbols parameters.
8559 (scan_xcoff_symtab): Update.
8560 * psymtab.c (start_psymtab_common): Remove global_psymbols and
8561 static_psymbols parameters.
8562 * psympriv.h (start_psymtab_common): Update.
8563 * mdebugread.c (parse_partial_symbols): Update.
8564 * dwarf2read.c (create_partial_symtab): Update.
8565 * dbxread.c (read_dbx_symtab): Update.
8566 (start_psymtab): Remove global_psymbols and static_psymbols
8567 parameters.
8568
8569 2019-01-10 Tom Tromey <tom@tromey.com>
8570
8571 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
8572 * psymtab.c (allocate_psymtab): Add comment.
8573 * psympriv.h (allocate_psymtab): Add comment.
8574 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
8575 initializations.
8576 * dbxread.c (dbx_end_psymtab): Remove some initializations.
8577
8578 2019-01-10 Tom Tromey <tom@tromey.com>
8579
8580 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
8581 Don't declare.
8582 * mipsread.c: Include mdebugread.h.
8583 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
8584 Declare.
8585 * elfread.c: Include mdebugread.h.
8586
8587 2019-01-09 Tom Tromey <tom@tromey.com>
8588
8589 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
8590 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
8591 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
8592 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
8593 (psym_lookup_symbol, psym_find_last_source_symtab)
8594 (psym_forget_cached_source_info, psym_print_stats)
8595 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
8596 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
8597 (psym_map_matching_symbols, psym_expand_symtabs_matching)
8598 (psym_find_compunit_symtab_by_address)
8599 (maintenance_print_psymbols, maintenance_info_psymtabs)
8600 (maintenance_check_psymtabs): Use ranged for.
8601 * psymtab.h (class objfile_psymtabs): New.
8602 (require_partial_symbols): Return objfile_psymtabs.
8603 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
8604
8605 2019-01-09 Tom Tromey <tom@tromey.com>
8606
8607 * symfile.c (overlay_invalidate_all, find_pc_overlay)
8608 (find_pc_mapped_section, list_overlays_command)
8609 (map_overlay_command, unmap_overlay_command)
8610 (simple_overlay_update): Use all_objfiles.
8611 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
8612 * printcmd.c (info_symbol_command): Use all_objfiles.
8613 * objfiles.h (ALL_OBJSECTIONS): Remove.
8614 * maint.c (maintenance_translate_address): Use all_objfiles.
8615 * gcore.c (gcore_create_callback): Use all_objfiles.
8616 (objfile_find_memory_regions): Likewise.
8617
8618 2019-01-09 Tom Tromey <tom@tromey.com>
8619
8620 * symtab.c (find_line_symtab, info_sources_command)
8621 (make_source_files_completion_list): Use objfile_compunits.
8622 * source.c (select_source_symtab): Use objfile_compunits.
8623 * objfiles.h (struct objfile): Update comment.
8624 (ALL_OBJFILES): Remove.
8625 (ALL_FILETABS): Remove.
8626 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
8627 objfile_compunits.
8628
8629 2019-01-09 Tom Tromey <tom@tromey.com>
8630
8631 * symmisc.c (print_objfile_statistics, dump_objfile)
8632 (maintenance_print_symbols): Use compunit_filetabs.
8633 * source.c (forget_cached_source_info_for_objfile): Use
8634 compunit_filetabs.
8635 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
8636 (ALL_FILETABS): Use compunit_filetabs.
8637 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
8638 * coffread.c (coff_symtab_read): Use compunit_filetabs.
8639
8640 2019-01-09 Tom Tromey <tom@tromey.com>
8641
8642 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
8643 (compunit_filetabs): New.
8644 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
8645 compunit_filetabs.
8646 (info_sources_command, make_source_files_completion_list): Remove
8647 declaration.
8648 * symmisc.c (print_objfile_statistics, dump_objfile)
8649 (maintenance_print_symbols): Remove declaration.
8650 (maintenance_info_symtabs): Use compunit_filetabs.
8651 (maintenance_info_line_tables): Likewise.
8652 * source.c (select_source_symtab): Change local variable name.
8653 (forget_cached_source_info_for_objfile): Remove declaration.
8654 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
8655 * objfiles.c (objfile_relocate1): Remove declaration.
8656 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
8657 declaration.
8658 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
8659 * coffread.c (coff_symtab_read): Remove declaration.
8660 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
8661 compunit_filetabs.
8662
8663 2019-01-09 Tom Tromey <tom@tromey.com>
8664
8665 * symtab.c (lookup_objfile_from_block)
8666 (find_pc_sect_compunit_symtab, search_symbols)
8667 (default_collect_symbol_completion_matches_break_on): Use
8668 objfile_compunits.
8669 * objfiles.h (ALL_COMPUNITS): Remove.
8670 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
8671 * cp-support.c (add_symbol_overload_list_qualified): Use
8672 objfile_compunits.
8673 * ada-lang.c (ada_collect_symbol_completion_matches)
8674 (ada_add_global_exceptions): Use objfile_compunits.
8675
8676 2019-01-09 Tom Tromey <tom@tromey.com>
8677
8678 * source.c (select_source_symtab)
8679 (forget_cached_source_info_for_objfile): Remove declaration.
8680 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
8681 declaration.
8682 * maint.c (count_symtabs_and_blocks): Remove declaration.
8683 * cp-support.c (add_symbol_overload_list_qualified): Remove
8684 declaration.
8685 * coffread.c (coff_symtab_read): Remove declaration.
8686 * symtab.c (lookup_symbol_in_objfile_symtabs)
8687 (basic_lookup_transparent_type_1): Use objfile_compunits.
8688 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
8689 (info_sources_command, search_symbols)
8690 (default_collect_symbol_completion_matches_break_on)
8691 (make_source_files_completion_list): Remove declaration.
8692 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
8693 (ada_collect_symbol_completion_matches)
8694 (ada_add_global_exceptions): Remove declaration.
8695 * linespec.c (iterate_over_all_matching_symtabs): Use
8696 objfile_compunits.
8697 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
8698 (class objfile_compunits): New.
8699 (ALL_COMPUNITS): Use objfile_compunits.
8700 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
8701 (maintenance_check_symtabs, maintenance_info_line_tables): Use
8702 objfile_compunits.
8703 * objfiles.c (objfile_relocate1): Use objfile_compunits.
8704
8705 2019-01-09 Tom Tromey <tom@tromey.com>
8706
8707 * symtab.c (search_symbols)
8708 (default_collect_symbol_completion_matches_break_on): Use
8709 objfile_msymbols.
8710 * ada-lang.c (ada_lookup_simple_minsym)
8711 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
8712 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
8713 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
8714 objfile_msymbols.
8715 * coffread.c (coff_symfile_read): Use objfile_msymbols.
8716 * symmisc.c (dump_msymbols): Use objfile_msymbols.
8717 * objc-lang.c (find_methods): Use objfile_msymbols.
8718 (info_selectors_command, info_classes_command): Likewise.
8719 * stabsread.c (scan_file_globals): Use objfile_msymbols.
8720 * objfiles.h (class objfile_msymbols): New.
8721 (ALL_OBJFILE_MSYMBOLS): Remove.
8722 (ALL_MSYMBOLS): Remove.
8723
8724 2019-01-09 Tom Tromey <tom@tromey.com>
8725
8726 * common/next-iterator.h (next_adapter): Add Iterator template
8727 parameter.
8728 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
8729 (class all_objfiles_safe): New.
8730 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
8731 * objfiles.c (put_objfile_before): Update comment.
8732 (add_separate_debug_objfile): Likewise.
8733 (free_all_objfiles): Use all_objfiles_safe.
8734 (objfile_purge_solibs): Likewise.
8735
8736 2019-01-09 Tom Tromey <tom@tromey.com>
8737
8738 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8739 (expand_symtab_containing_pc, lookup_static_symbol)
8740 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
8741 (find_symbol_at_address, find_line_symtab, find_main_name): Use
8742 all_objfiles.
8743 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
8744 * breakpoint.c (create_overlay_event_breakpoint)
8745 (create_longjmp_master_breakpoint)
8746 (create_std_terminate_master_breakpoint)
8747 (create_exception_master_breakpoint): Use all_objfiles.
8748 * linux-thread-db.c (try_thread_db_load_from_pdir)
8749 (has_libpthread): Use all_objfiles.
8750 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
8751 * linespec.c (iterate_over_all_matching_symtabs)
8752 (search_minsyms_for_name): Use all_objfiles.
8753 * maint.c (maintenance_info_sections): Use all_objfiles.
8754 * main.c (captured_main_1): Use all_objfiles.
8755 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
8756 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
8757 * guile/scm-pretty-print.c
8758 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
8759 * solib-spu.c (append_ocl_sos): Use all_objfiles.
8760 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
8761 (maintenance_print_msymbols): Use all_objfiles.
8762 * source.c (select_source_symtab): Use all_objfiles.
8763 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
8764 * symfile.c (remove_symbol_file_command)
8765 (expand_symtabs_matching, map_symbol_filenames): Use
8766 all_objfiles.
8767 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
8768 all_objfiles.
8769 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
8770 * objc-lang.c (find_methods): Use all_objfiles.
8771 * objfiles.c (have_partial_symbols, have_full_symbols)
8772 (have_minimal_symbols, qsort_cmp)
8773 (default_iterate_over_objfiles_in_search_order): Use
8774 all_objfiles.
8775 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
8776 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
8777 (maintenance_check_psymtabs): Use all_objfiles.
8778 (ALL_PSYMTABS): Remove.
8779 * compile/compile-object-run.c (do_module_cleanup): Use
8780 all_objfiles.
8781 * blockframe.c (find_pc_partial_function): Use all_objfiles.
8782 * cp-support.c (add_symbol_overload_list_qualified): Use
8783 all_objfiles.
8784 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8785 Use all_objfiles.
8786 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
8787 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
8788 all_objfiles.
8789 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8790 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
8791 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8792 Uses all_objfiles.
8793 * solib.c (solib_read_symbols): Use all_objfiles
8794
8795 2019-01-09 Tom Tromey <tom@tromey.com>
8796
8797 * probe.c (parse_probes_in_pspace): Use all_objfiles.
8798 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
8799 all_objfiles.
8800 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
8801 * symmisc.c (print_symbol_bcache_statistics)
8802 (print_objfile_statistics, maintenance_print_objfiles)
8803 (maintenance_info_symtabs, maintenance_check_symtabs)
8804 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
8805 all_objfiles.
8806 * source.c (forget_cached_source_info): Use all_objfiles.
8807 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
8808 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8809 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
8810 * objfiles.c (update_section_map): Use all_objfiles.
8811 (shared_objfile_contains_address_p): Likewise.
8812 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
8813 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
8814
8815 2019-01-09 Tom Tromey <tom@tromey.com>
8816
8817 * common/next-iterator.h: New file.
8818 * objfiles.h (class all_objfiles): New.
8819 (struct objfile_iterator): New.
8820
8821 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8822
8823 * NEWS: Move the description of the changed "frame", "select-frame",
8824 and "info frame" commands to the Changed commands section.
8825
8826 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
8827
8828 * gdbtypes.c (check_stub_method_group): Remove handling of old
8829 mangling schemes.
8830 * linespec.c (find_methods): Likewise.
8831 * stabsread.c (read_member_functions): Likewise.
8832 * valops.c (search_struct_method): Likewise.
8833 (value_struct_elt_for_reference): Likewise.
8834 * NEWS: Mention this change.
8835
8836 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
8839 print_source_lines.
8840 * source.c (print_source_lines_base): Update line number check.
8841 (print_source_lines): New function.
8842 (source_lines_range::source_lines_range): New function.
8843 * source.h (class source_lines_range): New class.
8844 (print_source_lines): New declaration.
8845
8846 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8847
8848 * linespec.c (linespec_state_destructor): Free self->canonical_names.
8849
8850 2019-01-08 Tom Tromey <tom@tromey.com>
8851 Simon Marchi <simon.marchi@ericsson.com>
8852
8853 PR gdb/24060
8854 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
8855 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
8856 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
8857 * f-exp.y (DOLLAR_VARIABLE): Likewise.
8858 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
8859 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
8860
8861 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8862
8863 * source.c (select_source_symtab): Move header comment to
8864 declaration in source.h.
8865 (forget_cached_source_info_for_objfile): Likewise.
8866 (forget_cached_source_info): Likewise.
8867 (identify_source_line): Likewise.
8868 * source.h (identify_source_line): Move declaration from symtab.h
8869 and add comment from source.c
8870 (print_source_lines): Likewise.
8871 (forget_cached_source_info_for_objfile): Likewise.
8872 (forget_cached_source_info): Likewise.
8873 (select_source_symtab): Likewise.
8874 (enum print_source_lines_flag): Move definition from symtab.h.
8875 * symtab.h (identify_source_line): Move declaration to source.h.
8876 (print_source_lines): Likewise.
8877 (forget_cached_source_info_for_objfile): Likewise.
8878 (forget_cached_source_info): Likewise.
8879 (select_source_symtab): Likewise.
8880 (enum print_source_lines_flag): Move definition to source.h.
8881 * tui/tui-hooks.c: Add 'source.h' include.
8882
8883 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8884
8885 * source.c (print_source_lines_base): Handle requests to print
8886 reverse line number sequences, and guard against empty lines
8887 string.
8888
8889 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8890
8891 * source.c (print_source_lines_base): Fix skip of '\r' if next
8892 character is '\n'.
8893
8894 2019-01-06 Tom Tromey <tom@tromey.com>
8895
8896 * c-exp.y (struct c_parse_state) <macro_original_text,
8897 expansion_obstack>: New member.
8898 (macro_original_text, expansion_obstack): Remove globals.
8899 (scan_macro_expansion, scanning_macro_expansion)
8900 (finished_macro_expansion): Update.
8901 (scan_macro_cleanup): Remove.
8902 (yylex, c_parse): Update.
8903
8904 2019-01-06 Tom Tromey <tom@tromey.com>
8905
8906 * c-exp.y (struct c_parse_state) <strings>: New member.
8907 (operator_stoken): Update.
8908
8909 2019-01-06 Tom Tromey <tom@tromey.com>
8910
8911 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
8912 (union type_stack_elt) <typelist_val>: Now a pointer to
8913 std::vector.
8914 (type_stack_cleanup): Don't declare.
8915 (push_typelist): Update.
8916 * parse.c (pop_typelist): Return a std::vector.
8917 (push_typelist): Take a std::vector.
8918 (follow_types): Update. Do not free args.
8919 (type_stack_cleanup): Remove.
8920 * c-exp.y (struct c_parse_state): New.
8921 (cpstate): New global.
8922 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
8923 (nonempty_typelist): Update.
8924 (func_mod): Create a new vector.
8925 (c_parse): Create a c_parse_state.
8926 (check_parameter_typelist): Do not delete params.
8927 (function_method): Update. Do not delete type_list.
8928
8929 2019-01-06 Tom Tromey <tom@tromey.com>
8930
8931 PR gdb/28155:
8932 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
8933 check_typedef.
8934 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
8935 (print_return_value): Likewise.
8936
8937 2019-01-05 Tom Tromey <tom@tromey.com>
8938
8939 * contrib/cleanup_check.py: Remove.
8940 * contrib/gcc-with-excheck: Remove.
8941 * contrib/exsummary.py: Remove.
8942 * contrib/excheck.py: Remove.
8943
8944 2019-01-05 Joel Brobecker <brobecker@adacore.com>
8945
8946 * thread.c (delete_thread_1): Add gdb_assert that THR is not
8947 NULL. Initialize tpprev to NULL instead of assigning it
8948 to NULL on the next statement.
8949 * windows-nat.c (windows_delete_thread): Remove check for
8950 main_thread_id before printing thread exit notifications.
8951 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
8952 Remove thread ID check against main_thread_id.
8953 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
8954 windows_delete_thread.
8955 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
8956
8957 2019-01-04 Tom Tromey <tom@tromey.com>
8958
8959 * compile/compile.c (_initialize_compile): Use upper case for
8960 metasyntactic variables.
8961 * symmisc.c (_initialize_symmisc): Use upper case for
8962 metasyntactic variables.
8963 * psymtab.c (_initialize_psymtab): Use upper case for
8964 metasyntactic variables.
8965 * demangle.c (demangle_command): Use upper case for metasyntactic
8966 variables.
8967 (_initialize_demangler): Likewise.
8968 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
8969 variables.
8970
8971 2019-01-03 Tom Tromey <tom@tromey.com>
8972
8973 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
8974
8975 2019-01-03 Tom Tromey <tom@tromey.com>
8976
8977 * python/py-symtab.c (salpy_str): Update.
8978 (struct salpy_sal_object) <symtab>: Now a PyObject.
8979 (salpy_dealloc): Update.
8980 (del_objfile_sal): Use gdbpy_ref.
8981
8982 2019-01-03 Tom Tromey <tom@tromey.com>
8983
8984 * python/py-type.c (convert_field): Use new_reference. Return
8985 gdbpy_ref.
8986 (make_fielditem): Return gdbpy_ref.
8987 (typy_fields): Update.
8988 (typy_getitem): Update.
8989 (field_name): Return gdbpy_ref. Use new_reference.
8990 (typy_iterator_iternext): Update.
8991
8992 2019-01-03 Tom Tromey <tom@tromey.com>
8993
8994 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
8995
8996 2019-01-03 Tom Tromey <tom@tromey.com>
8997
8998 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
8999 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
9000 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
9001 (pspy_set_frame_filters, pspy_set_frame_unwinders)
9002 (pspy_set_type_printers): Likewise.
9003 * python/py-function.c (fnpy_init): Use gdbpy_ref.
9004 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
9005 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
9006 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
9007 (objfpy_set_type_printers): Likewise.
9008
9009 2019-01-03 Tom Tromey <tom@tromey.com>
9010
9011 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
9012 (gdbpy_print_stack): Use gdbpy_err_fetch.
9013 * python/python-internal.h (class gdbpy_err_fetch): New class.
9014 (class gdbpy_enter) <m_error_type, m_error_value,
9015 m_error_traceback>: Remove.
9016 <m_error>: New member.
9017 (gdbpy_exception_to_string): Don't declare.
9018 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
9019 * python/py-value.c (convert_value_from_python): Use
9020 gdbpy_err_fetch.
9021 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
9022 gdbpy_exception_to_string.
9023 (gdbpy_handle_exception): Use gdbpy_err_fetch.
9024 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
9025 gdbpy_err_fetch.
9026
9027 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * linux-nat.c (delete_lwp_cleanup): Delete.
9030 (struct lwp_deleter): New struct.
9031 (lwp_info_up): New typedef.
9032 (linux_nat_target::follow_fork): Delete cleanup, and make use of
9033 lwp_info_up.
9034
9035 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9036
9037 * linux-fork.c (class scoped_switch_fork_info): New class.
9038 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
9039
9040 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9041
9042 * valops.c (find_overload_match): Remove use of null_cleanup, and
9043 calls to do_cleanups.
9044
9045 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9046
9047 * compile/compile-cplus-types.c
9048 (compile_cplus_instance::decl_name): Handle changes to
9049 cp_func_name.
9050 * cp-support.c (cp_func_name): Update header comment, update
9051 return type.
9052 * cp-support.h (cp_func_name): Update return type in declaration.
9053 * valops.c (find_overload_match): Move temp_func local to top
9054 level of function and change its type. Use temp_func to hold and
9055 delete temporary string obtained from cp_func_name.
9056
9057 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
9058
9059 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
9060 gdb::char_vector, remove cleanup, and update uses of `msg`.
9061
9062 2019-01-03 Jim Wilson <jimw@sifive.com>
9063
9064 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
9065
9066 2019-01-02 Tom Tromey <tom@tromey.com>
9067
9068 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
9069 (tdesc_parse_xml): Remove cleanups.
9070 * target-descriptions.h (make_cleanup_free_target_description):
9071 Don't declare.
9072 (target_desc_deleter): New struct.
9073 (target_desc_up): New typedef.
9074 * target-descriptions.c (target_desc_deleter::operator()): Rename
9075 from free_target_description.
9076 (make_cleanup_free_target_description): Remove.
9077
9078 2019-01-02 Tom Tromey <tom@tromey.com>
9079
9080 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
9081 constructor, destructor.
9082 (linespec_parser): Remove typedef.
9083 (~linespec_parser): Rename from linespec_parser_delete.
9084 (linespec_lex_to_end, linespec_complete_label)
9085 (linespec_complete): Update.
9086 (decode_line_full): Remove cleanups.
9087 (decode_line_1): Update.
9088
9089 2019-01-02 Tom Tromey <tom@tromey.com>
9090
9091 * python/python-internal.h (inferior_to_inferior_object): Change
9092 return type.
9093 * python/py-exitedevent.c (create_exited_event_object): Update.
9094 * python/py-inferior.c (inferior_to_inferior_object): Return
9095 gdbpy_ref.
9096 (python_new_inferior, python_inferior_deleted)
9097 (thread_to_thread_object, delete_thread_object)
9098 (build_inferior_list, gdbpy_selected_inferior): Update.
9099 * python/py-infthread.c (create_thread_object): Update. Also fail
9100 if inferior_to_inferior_object fails.
9101
9102 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
9103
9104 * inferior.h (class inferior) <displaced_step_state>: New field.
9105 * infrun.h (struct displaced_step_state): Move here from
9106 infrun.c. Initialize fields, add constructor.
9107 <inf>: Remove field.
9108 <reset>: New method.
9109 * infrun.c (struct displaced_step_inferior_state): Move to
9110 infrun.h.
9111 (displaced_step_inferior_states): Remove.
9112 (get_displaced_stepping_state): Adust.
9113 (displaced_step_in_progress_any_inferior): Adjust.
9114 (displaced_step_in_progress_thread): Adjust.
9115 (displaced_step_in_progress): Adjust.
9116 (add_displaced_stepping_state): Remove.
9117 (get_displaced_step_closure_by_addr): Adjust.
9118 (remove_displaced_stepping_state): Remove.
9119 (infrun_inferior_exit): Call displaced_step_state.reset.
9120 (use_displaced_stepping): Don't check for NULL.
9121 (displaced_step_prepare_throw): Call
9122 get_displaced_stepping_state.
9123 (displaced_step_fixup): Don't check for NULL.
9124 (prepare_for_detach): Don't check for NULL.
9125
9126 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9127
9128 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
9129 in case of call that did not complete.
9130
9131 2019-01-02 Andrey Utkin <autkin@undo.io>
9132
9133 * symfile.c (find_separate_debug_file): Fix search of debug files for
9134 remote debuggee.
9135
9136 2019-01-02 Tom Tromey <tom@tromey.com>
9137
9138 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
9139 indentation.
9140 * python/py-frame.c (frapy_older): Remove cast.
9141 (frapy_newer): Likewise.
9142 * python/py-breakpoint.c (local_setattro): Remove cast.
9143 * python/py-arch.c (archpy_name): Remove local variable.
9144 * python/py-type.c (gdbpy_lookup_type): Remove cast.
9145
9146 2019-01-02 Joel Brobecker <brobecker@adacore.com>
9147
9148 * unittests/basic_string_view/element_access/char/empty.cc:
9149 Fix year range in copyright header.
9150
9151 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
9152
9153 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
9154 Delete.
9155 <operator==>: Update with for removed field.
9156 <hash>: Likewise.
9157 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
9158 <isa_features>: ...this.
9159 <abi_features>: New field.
9160 (riscv_isa_flen): Update comment.
9161 (riscv_abi_xlen): New declaration.
9162 (riscv_abi_flen): New declaration.
9163 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
9164 isa_features.
9165 (riscv_abi_xlen): New function.
9166 (riscv_isa_flen): Update to get answer from isa_features.
9167 (riscv_abi_flen): New function.
9168 (riscv_has_fp_abi): Update to get answer from abi_features.
9169 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
9170 xlen and flen.
9171 (riscv_call_info) <xlen, flen>: Update comment.
9172 (riscv_call_arg_struct): Remove invalid assertions
9173 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
9174 is removed.
9175 (riscv_gdbarch_init): Gather isa features and abi features
9176 separately, ensure both match on the gdbarch when reusing an old
9177 gdbarch. Relax an error check to allow 32-bit abi float to run on
9178 a target with 64-bit float hardware.
9179
9180 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9181
9182 * source.c (search_command_helper): Stop reverse search
9183 when line 1 has been searched.
9184
9185 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9186
9187 * record-full.c (record_full_base_target::close): Rewrite
9188 record_full_core_buf_list free logic.
9189
9190 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9191
9192 * break-catch-syscall.c (print_one_catch_syscall): xfree
9193 the last text.
9194
9195 2019-01-01 Joel Brobecker <brobecker@adacore.com>
9196
9197 * top.c (print_gdb_version): Update Copyright year in version
9198 message.
9199
9200 2019-01-01 Joel Brobecker <brobecker@adacore.com>
9201
9202 Update copyright year range in all GDB files.
9203
9204 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
9205
9206 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
9207
9208 For older changes see ChangeLog-2018.
9209 \f
9210 Local Variables:
9211 mode: change-log
9212 left-margin: 8
9213 fill-column: 74
9214 version-control: never
9215 coding: utf-8
9216 End:
9217
This page took 0.210156 seconds and 5 git commands to generate.