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