Move contents of tui_show_frame_info to new method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a54700c6
TT
12019-08-15 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.h (struct tui_source_window_base)
4 <maybe_update>: Declare.
5 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
6 method.
7 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
8 Declare.
9 * tui/tui-source.c (tui_source_window::maybe_update): New method.
10 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
11 Declare.
12 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
13
e2a678a5
TT
142019-08-15 Tom Tromey <tom@tromey.com>
15
16 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
17
f2dda477
TT
182019-08-15 Tom Tromey <tom@tromey.com>
19
20 * tui/tui-wingeneral.c: Include tui-stack.h.
21 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
22 (struct tui_locator_window): Move from tui-data.h.
23 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
24 (tui_initialize_static_data): Move from tui-data.c.
25 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
26 (struct tui_locator_window): Move to tui-stack.c.
27 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
28 (tui_initialize_static_data): Move to tui-stack.c.
29
ed4a1084
TT
302019-08-15 Tom Tromey <tom@tromey.com>
31
32 * tui/tui-layout.c (show_source_disasm_command)
33 (show_source_or_disasm_and_command): Use make_visible method, not
34 tui_make_window.
35 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
36 Remove.
37
65962b20
TT
382019-08-15 Tom Tromey <tom@tromey.com>
39
40 * tui/tui-wingeneral.h (tui_make_window): Update.
41 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
42 parameter.
43 (tui_gen_win_info::make_visible): Update.
44 * tui/tui-regs.c (tui_data_window::display_registers_from):
45 Update.
46 * tui/tui-layout.c (show_source_disasm_command)
47 (show_source_or_disasm_and_command): Update.
48 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
49 (enum tui_box): Remove.
50 (struct tui_win_info) <can_box>: New method.
51 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
52 method.
53
2208ee91
TV
542019-08-15 Tom de Vries <tdevries@suse.de>
55
56 * linux-nat-trad.c: Include gdbarch.h.
57
75faf5c4
AH
582019-08-14 Alan Hayward <alan.hayward@arm.com>
59
60 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
61 register sizes.
62
b1c896b3
TT
632019-08-14 Tom Tromey <tromey@adacore.com>
64
65 * darwin-nat.c: Include gdbarch.h.
66 * darwin-nat-info.c: Include gdbarch.h.
67
6405cd73
TT
682019-08-13 Tom Tromey <tom@tromey.com>
69
70 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
71 Remove.
72 * tui/tui-data.c (tui_initialize_static_data): Update.
73
5216580d
TT
742019-08-13 Tom Tromey <tom@tromey.com>
75
76 * tui/tui-winsource.h (struct tui_exec_info_window)
77 <~tui_exec_info_window, maybe_allocate_content, get_content,
78 m_content>: Remove.
79 (struct tui_source_window_base) <set_exec_info_content,
80 show_exec_info_content>: Don't declare.
81 * tui/tui-winsource.c
82 (tui_exec_info_window::maybe_allocate_content): Remove.
83 (tui_source_window_base::update_exec_info): Rename from
84 set_exec_info_content.
85 (tui_source_window_base::show_exec_info_content)
86 (tui_source_window_base::update_exec_info): Remove.
87
93858ad3
TT
882019-08-13 Tom Tromey <tom@tromey.com>
89
90 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
91 declare.
92 * tui/tui-winsource.c (tui_update_source_window_as_is)
93 (tui_update_source_windows_with_addr, tui_erase_source_content):
94 Update.
95 (tui_clear_exec_info_content): Remove.
96
e321e7ce
TT
972019-08-13 Tom Tromey <tom@tromey.com>
98
99 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
100 declare.
101 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
102 call tui_erase_exec_info_content.
103 (tui_clear_exec_info_content): Rename from
104 tui_erase_exec_info_content.
105 (tui_clear_exec_info_content): Delete.
106
8270ac62
TT
1072019-08-13 Tom Tromey <tom@tromey.com>
108
109 * tui/tui-winsource.h (struct tui_source_window_base)
110 <show_exec_info_content>: Declare.
111 (tui_show_exec_info_content): Don't declare.
112 * tui/tui-winsource.c
113 (tui_source_window_base::show_exec_info_content): Rename from
114 tui_show_exec_info_content.
115 (tui_source_window_base::update_exec_info): Update.
116
7b56485d
TT
1172019-08-13 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
120 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
121 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
122 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
123 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
124 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
125 ... here.
126
7ba913dc
TT
1272019-08-13 Tom Tromey <tom@tromey.com>
128
129 * tui/tui-winsource.h (struct tui_source_window_base)
130 <update_exec_info>: Declare.
131 (tui_update_exec_info): Don't declare.
132 * tui/tui-winsource.c (tui_update_source_window_as_is)
133 (tui_source_window_base::refresh_all)
134 (tui_update_all_breakpoint_info): Update.
135 (tui_source_window_base::update_exec_info): Rename from
136 tui_update_exec_info.
137 * tui/tui-stack.c (tui_show_frame_info): Update.
138
37a4a131
TT
1392019-08-13 Tom Tromey <tom@tromey.com>
140
141 * tui/tui-winsource.h (struct tui_source_window_base)
142 <set_exec_info_content>: Declare.
143 (tui_set_exec_info_content): Don't declare.
144 * tui/tui-winsource.c
145 (tui_source_window_base::set_exec_info_content): Rename from
146 tui_set_exec_info_content.
147 (tui_update_exec_info): Update.
148
0bd27e07
TT
1492019-08-13 Tom Tromey <tom@tromey.com>
150
151 * tui/tui-winsource.h (struct tui_source_window_base)
152 <show_source_content>: Declare.
153 (tui_show_source_content): Don't declare.
154 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
155 (tui_source_window_base::show_source_content): Rename from
156 tui_show_source_content.
157 (tui_source_window_base::refresh_all): Update.
158 * tui/tui-layout.c (show_source_disasm_command)
159 (show_source_or_disasm_and_command): Update.
160
b4ef5aeb
TT
1612019-08-13 Tom Tromey <tom@tromey.com>
162
163 * tui/tui-winsource.c (tui_erase_source_content)
164 (tui_show_source_content, tui_source_window_base::refresh_all):
165 Update.
166 * tui/tui-wingeneral.h
167 (tui_check_and_display_highlight_if_needed): Don't declare.
168 * tui/tui-wingeneral.c
169 (tui_win_info::check_and_display_highlight_if_needed): Rename from
170 check_and_display_highlight_if_needed.
171 * tui/tui-win.c (tui_rehighlight_all)
172 (tui_win_info::make_visible_with_new_height): Update.
173 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
174 (tui_data_window::erase_data_content)
175 (tui_data_window::display_all_data): Update.
176 * tui/tui-data.h (struct tui_win_info)
177 <check_and_display_highlight_if_needed>: Declare.
178
fede5273
TT
1792019-08-13 Tom Tromey <tom@tromey.com>
180
181 * tui/tui-win.c (tui_resize_all): Call
182 tui_delete_invisible_windows.
183 * tui/tui-layout.c (show_layout): Call
184 tui_delete_invisible_windows.
185 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
186 * tui/tui-data.c (tui_delete_invisible_windows): New function.
187
22c3f490
TT
1882019-08-13 Tom Tromey <tom@tromey.com>
189
190 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
191 tui_add_win_to_layout.
192
16cb7910
TT
1932019-08-13 Tom Tromey <tom@tromey.com>
194
195 * tui/tui-layout.h (tui_default_win_height): Don't declare.
196 * tui/tui-layout.c (tui_default_win_height): Now static.
197
cc0c3ffb
TT
1982019-08-13 Tom Tromey <tom@tromey.com>
199
200 * tui/tui-layout.c (show_layout): Unify all layout cases into a
201 single switch.
202 (show_source_disasm_command, show_source_or_disasm_and_command):
203 Don't check current layout.
204
3f3ffe54
TT
2052019-08-13 Tom Tromey <tom@tromey.com>
206
207 * tui/tui-wingeneral.c (make_all_visible): Remove.
208 (tui_make_all_invisible): Simplify.
209 * tui/tui-layout.c (tui_make_all_invisible): Move from
210 tui-wingeneral.c; simplify.
211 (show_layout): Hoist call to tui_make_all_invisible.
212 (show_data): Don't call tui_make_all_invisible.
213
69258091
TT
2142019-08-13 Tom Tromey <tom@tromey.com>
215
216 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
217 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
218
62cf57fe
TT
2192019-08-13 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
222 tui-data.c.
223 (show_source_disasm_command, show_data)
224 (show_source_or_disasm_and_command): Don't use
225 tui_set_current_layout_to.
226 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
227 * tui/tui-data.c (current_layout, tui_current_layout): Move to
228 tui-layout.c.
229 (tui_set_current_layout_to): Remove.
230
2afade5d
TT
2312019-08-13 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-layout.c (tui_set_layout): Update.
234 * tui/tui-data.h (struct tui_layout_def): Remove.
235 (tui_layout_def): Don't declare.
236 * tui/tui-data.c (layout_def): Remove.
237 (tui_layout_def): Remove.
238
a3504e96
TT
2392019-08-13 Tom Tromey <tom@tromey.com>
240
241 * tui/tui-winsource.h (struct tui_source_window_base)
242 <clear_detail>: No longer "override".
243 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
244 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
245 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
246 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
247 Remove.
248 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
249
29c92911
TT
2502019-08-13 Tom Tromey <tromey@adacore.com>
251
252 * tracepoint.c: Don't include readline.h or history.h.
253
86c6b807
TT
2542019-08-12 Tom Tromey <tom@tromey.com>
255
256 * configure: Rebuild.
257 * configure.ac: Check for readline 7.
258 * NEWS: Mention readline 7 requirement.
259 * README: Update.
260
5db2718c
TT
2612019-08-12 Tom Tromey <tom@tromey.com>
262
263 * mingw-hdep.c (gdb_select): Remove readline hack.
264
dac36daf
PFC
2652019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
266
267 * blockframe.c (find_pc_partial_function): Set *block to nullptr
268 when the function fails.
269
1022c627
AA
2702019-08-09 Andreas Arnez <arnez@linux.ibm.com>
271
272 * s390-tdep.c (s390_type_align): New function.
273 (s390_gdbarch_init): Set it as type_align gdbarch method.
274
eba4caf2
TV
2752019-08-09 Tom de Vries <tdevries@suse.de>
276
277 PR gdb/24591
278 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
279 pc_low with relocation offset.
280
123cd851
TT
2812019-08-07 Tom Tromey <tromey@adacore.com>
282
283 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
284 (print_frame_args): Update.
285 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
286 Update.
287 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
288 * frame.h (struct frame_arg): Add initializers.
289 <error>: Now a unique_xmalloc_ptr.
290
3d31bc39
AH
2912019-08-07 Alan Hayward <alan.hayward@arm.com>
292
293 * NEWS: Expand the Pointer Authentication entry.
294 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
295 (aarch64_frame_unmask_lr): ... to this.
296 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
297 Call aarch64_frame_unmask_lr.
298 * frame.c (struct frame_info): Add "masked" variable.
299 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
300 (fprint_frame): Check for masked pc.
301 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
302 declarations.
303 * python/py-framefilter.c (py_print_frame): Check for masked pc.
304 * stack.c (print_frame): Check for masked pc.
305
0cf9feb9
TT
3062019-08-06 Tom Tromey <tom@tromey.com>
307
308 * stabsread.c (patch_block_stabs, read_one_struct_field)
309 (read_enum_type): Use obstack_strndup.
310 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
311 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
312 * dwarf2read.c (guess_full_die_structure_name)
313 (anonymous_struct_prefix): Use obstack_strndup.
314 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
315 * c-exp.y (yylex): Use obstack_strndup.
316 * ada-exp.y (write_object_renaming, write_ambiguous_var)
317 (write_var_or_type): Use obstack_strndup.
318
efba19b0
TT
3192019-08-06 Tom Tromey <tom@tromey.com>
320
321 * symfile.c (reread_symbols): Use obstack_strdup.
322 * stabsread.c (read_type): Use obstack_strdup.
323 * gdb_obstack.h (obstack_strdup): New overload.
324 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
325 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
326 (dwarf2_canonicalize_name): Use obstack_strdup.
327 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
328 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
329 Use obstack_strdup.
330
f25102f7
TT
3312019-08-06 Tom Tromey <tom@tromey.com>
332
333 * gdb_obstack.h (obstack_strdup): Define.
334 * gdb_obstack.c (obstack_strdup): Don't define.
335
021887d8
TT
3362019-08-06 Tom Tromey <tom@tromey.com>
337
338 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
339 obstack_strdup.
340 * typeprint.c (typedef_hash_table::find_global_typedef): Use
341 obstack_strdup.
342 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
343 * stabsread.c (common_block_start): Use obstack_strdup.
344 * objfiles.c (set_objfile_main_name, objfile): Use
345 obstack_strdup.
346 * namespace.c (add_using_directive): Use obstack_strdup.
347 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
348 * jit.c (finalize_symtab): Use obstack_strdup.
349 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
350 (guess_partial_die_structure_name, partial_die_info::fixup)
351 (dwarf2_name): Use obstack_strdup.
352 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
353 obstack_strdup.
354 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
355 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
356 obstack_strdup.
357 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
358
d2834edc
PW
3592019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
360
361 * unittests/help-doc-selftests.c: New file.
362 * Makefile.in: Add the new file.
363
590042fc
PW
3642019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
365
366 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
367 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
368 the full first line, except when FOR_VALUE_PREFIX. In this case,
369 the trailing '.' is not output, and the first character is uppercased.
370 (print_help_for_command): Update call to print_doc_line.
371 (print_doc_of_command): Likewise.
372 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
373 * cli/cli-option.c (append_indented_doc): Do not append newline.
374 (build_help_option): Append newline after first appended_indented_doc
375 only if a second call is done.
376 (build_help): Append 2 new lines before each option, except the first
377 one.
378 * compile/compile.c (_initialize_compile): Add new lines after
379 %OPTIONS%, when not at the end of the help.
380 Change help doc or code
381 producing the help doc to respect the invariants.
382 * maint-test-options.c (_initialize_maint_test_options): Likewise.
383 Also removed the new line after 'Options:', as all other commands
384 do not put an empty line between 'Options:' and the first option.
385 * printcmd.c (_initialize_printcmd): Likewise.
386 * stack.c (_initialize_stack): Likewise.
387 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
388 incorrectly telling COMMAND is optional.
389 * ada-lang.c (_initialize_ada_language): Change help doc or code
390 producing the help doc to respect the invariants.
391 * ada-tasks.c (_initialize_ada_tasks): Likewise.
392 * breakpoint.c (_initialize_breakpoint): Likewise.
393 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
394 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
395 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
396 * cli/cli-style.c (cli_style_option::add_setshow_commands,
397 _initialize_cli_style): Likewise.
398 * corelow.c (core_target_info): Likewise.
399 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
400 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
401 * filesystem.c (_initialize_filesystem): Likewise.
402 * frame.c (_initialize_frame): Likewise.
403 * gnu-nat.c (add_task_commands): Likewise.
404 * infcall.c (_initialize_infcall): Likewise.
405 * infcmd.c (_initialize_infcmd): Likewise.
406 * interps.c (_initialize_interpreter): Likewise.
407 * language.c (_initialize_language): Likewise.
408 * linux-fork.c (_initialize_linux_fork): Likewise.
409 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
410 * maint.c (_initialize_maint_cmds): Likewise.
411 * memattr.c (_initialize_mem): Likewise.
412 * printcmd.c (_initialize_printcmd): Likewise.
413 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
414 _RegEx): Likewise.
415 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
416 * record-btrace.c (_initialize_record_btrace): Likewise.
417 * record-full.c (_initialize_record_full): Likewise.
418 * record.c (_initialize_record): Likewise.
419 * regcache-dump.c (_initialize_regcache_dump): Likewise.
420 * regcache.c (_initialize_regcache): Likewise.
421 * remote.c (add_packet_config_cmd, init_remote_threadtests,
422 _initialize_remote): Likewise.
423 * ser-tcp.c (_initialize_ser_tcp): Likewise.
424 * serial.c (_initialize_serial): Likewise.
425 * skip.c (_initialize_step_skip): Likewise.
426 * source.c (_initialize_source): Likewise.
427 * stack.c (_initialize_stack): Likewise.
428 * symfile.c (_initialize_symfile): Likewise.
429 * symtab.c (_initialize_symtab): Likewise.
430 * target-descriptions.c (_initialize_target_descriptions): Likewise.
431 * top.c (init_main): Likewise.
432 * tracefile-tfile.c (tfile_target_info): Likewise.
433 * tracepoint.c (_initialize_tracepoint): Likewise.
434 * tui/tui-win.c (_initialize_tui_win): Likewise.
435 * utils.c (add_internal_problem_command): Likewise.
436 * valprint.c (value_print_option_defs): Likewise.
437
404f2902
FCE
4382019-08-06 Frank Ch. Eigler <fche@redhat.com>
439
440 PR build/24886
441 * configure.ac: Drop enable-libmcheck support.
442 * configure, config.in: Rebuild.
443 * libmcheck.m4: Remove.
444 * acinclude.m4: Don't include it.
445 * Makefile.in: Don't distribute it.
446 * top.c (print_gdb_configuration): Don't mention it.
447
046bebe1
TT
4482019-08-06 Tom Tromey <tom@tromey.com>
449
450 * utils.c (set_output_style): Sometimes pass stream to
451 emit_style_escape.
452 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
453 * record-btrace.c (btrace_insn_history): Update.
454 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
455 method.
456 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
457 Update initializers.
458 <m_uiout>: New field.
459 <m_di>: Move lower.
460 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
461 Remove "uiout" parameter.
462 (dump_insns): Update.
463 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
464 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
465
ddbcedf5
CB
4662019-08-06 Christian Biesinger <cbiesinger@google.com>
467
468 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
469 (error_in_psymtab_expansion): Likewise.
470 (lookup_symbol_via_quick_fns): Likewise.
471 (basic_lookup_transparent_type_quick): Likewise.
472 (basic_lookup_transparent_type_1): Likewise.
473
b08b16c8
TT
4742019-08-06 Tom Tromey <tromey@adacore.com>
475
476 * source.c (last_source_error): Now bool.
477 (print_source_lines_base): Make "noprint" bool. Only open
478 source file when last_source_visited changes.
479
cb44333d
TT
4802019-08-06 Tom Tromey <tromey@adacore.com>
481
482 * annotate.c (annotate_source_line): Use g_source_cache.
483 * source-cache.c (source_cache::get_plain_source_lines): Change
484 parameters. Populate m_offset_cache.
485 (source_cache::ensure): New method.
486 (source_cache::get_line_charpos): New method.
487 (extract_lines): Move lower. Change parameters.
488 (source_cache::get_source_lines): Move lower.
489 * source-cache.h (class source_cache): Update comment.
490 <get_line_charpos>: New method.
491 <get_source_lines>: Update comment.
492 <clear>: Clear m_offset_cache.
493 <get_plain_source_lines>: Change parameters.
494 <ensure>: New method
495 <m_offset_cache>: New member.
496 * source.c (forget_cached_source_info_for_objfile): Update.
497 (info_source_command): Use g_source_cache.
498 (find_source_lines, open_source_file_with_line_charpos): Remove.
499 (print_source_lines_base, search_command_helper): Use g_source_cache.
500 * source.h (open_source_file_with_line_charpos): Don't declare.
501 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
502 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
503 Use g_source_cache.
504
872dceaa
TT
5052019-08-06 Tom Tromey <tromey@adacore.com>
506
507 * source-cache.c (source_cache::get_plain_source_lines):
508 Remove "first_line" and "last_line" parameters.
509 (source_cache::get_source_lines): Cache plain text.
510 * source-cache.h (class source_cache)
511 <get_plain_source_lines>: Update.
512
269249d9
TT
5132019-08-06 Tom Tromey <tromey@adacore.com>
514
515 * source-cache.c (extract_lines): No longer a method.
516 Changed type of parameter. Include final newline.
517 (selftests::extract_lines_test): New function.
518 (_initialize_source_cache): Likewise.
519 * source-cache.h (class source_cache)
520 <extract_lines>: Don't declare.
521
c0e8dcd8
TT
5222019-08-06 Tom Tromey <tromey@adacore.com>
523
524 * breakpoint.c (init_breakpoint_sal): Update.
525 (breakpoint): Update.
526 * breakpoint.h (struct breakpoint) <filter>: Now a
527 unique_xmalloc_ptr.
528
0b27c27d
CB
5292019-08-05 Christian Biesinger <cbiesinger@google.com>
530
531 * NEWS: Mention dictionary access on blocks.
532 * python/py-block.c (blpy_getitem): New function.
533 (block_object_as_mapping): New struct.
534 (block_object_type): Use new struct for tp_as_mapping field.
535
4ee94178
CB
5362019-08-05 Christian Biesinger <cbiesinger@google.com>
537
538 * objfiles.h (objfile): Add a comment describing partial symbols.
539
8abfcabc
TT
5402019-08-05 Tom Tromey <tromey@adacore.com>
541
542 * compile/compile.c (_initialize_compile): Use _(), not N_().
543 * thread.c (_initialize_thread): Use _(), not N_().
544 * stack.c (_initialize_stack): Use _(), not N_().
545 * printcmd.c (_initialize_printcmd): Use _(), not N_().
546
2b79f376
SM
5472019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * dwarf2read.c (struct dw2_symtab_iterator):
550 <want_specific_block>: Remove.
551 <block_index>: Change type to gdb::optional.
552 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
553 change type of BLOCK_INDEX parameter to gdb::optional.
554 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
555 (dw2_lookup_symbol): Don't pass argument for
556 WANT_SPECIFIC_BLOCK.
557 (dw2_expand_symtabs_for_function): Don't pass argument for
558 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
559 (class dw2_debug_names_iterator)
560 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
561 parameter, change BLOCK_INDEX type to gdb::optional.
562 <m_want_specific_block>: Remove.
563 <m_block_index>: Change type to gdb::optional.
564 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
565 gdb::optional. Re-write in function of gdb::optional.
566 (dw2_debug_names_lookup_symbol): Don't pass argument for
567 WANT_SPECIFIC_BLOCK.
568 (dw2_debug_names_expand_symtabs_for_function): Don't pass
569 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
570 BLOCK_INDEX.
571
ae60f04e
PW
5722019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
573
574 * NEWS: Mention changes to "info sources" command.
575
28cd9371
PW
5762019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
577
578 * symtab.c (filename_partial_match_opts): New struct type.
579 (struct output_source_filename_data): New members
580 regexp, c_regexp, partial_match.
581 (output_source_filename): Use new members to decide to print file.
582 (info_sources_option_defs): New variable.
583 (make_info_sources_options_def_group, print_info_sources_header,
584 info_sources_command_completer):
585 New functions.
586 (info_sources_command): Read new optional arguments.
587 (_initialize_symtab): Update info sources help.
588
ca683e3a
AO
5892019-08-02 Alexandre Oliva <oliva@adacore.com>
590
591 * ada-lang.c (exception_support_info_v0): Renamed from...
592 (default_exception_support_info): ... this. Create new
593 definition for v1.
594 (ada_has_this_exception_support): Look up catch_handlers_sym.
595 (ada_exception_support_info_sniffer): Try v0 after default.
596
f1264162
TT
5972019-08-01 Tom Tromey <tromey@adacore.com>
598
599 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
600 gdbarch.h.
601
0a7b2485
CB
6022019-08-01 Christian Biesinger <cbiesinger@google.com>
603
604 * s12z-tdep.c: Fix include path for s12z-opc.h.
605
c6bdbeb7
AH
6062019-08-01 Alan Hayward <alan.hayward@arm.com>
607
608 * NEWS: Require GNU make 3.82.
609
a2bd7b82
TT
6102019-07-16 Tom Tromey <tom@tromey.com>
611
612 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
613 declare.
614
aa3b6533
TT
6152019-07-30 Tom Tromey <tromey@adacore.com>
616
617 * block.c (contained_in): Remove BLOCK_FUNCTION check.
618
a1530dc7
KB
6192019-07-30 Kevin Buettner <kevinb@redhat.com>
620
621 * printcmd.c (print_address_symbolic): Print negative offsets.
622 (build_address_symbolic): Force signed arithmetic when computing
623 offset.
624
2906593f
CB
6252019-07-30 Christian Biesinger <cbiesinger@google.com>
626
627 PR/24474: Add a function to lookup static variables.
628 * NEWS: Mention this new function.
629 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
630 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
631 * python/python.c (python_GdbMethods): Add new function.
632
c620ed88
CB
6332019-07-29 Christian Biesinger <cbiesinger@google.com>
634
635 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
636 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
637 (objfpy_lookup_static_symbol): New function.
638 (objfile_object_methods): Add new functions.
639
bc4268a5
PW
6402019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
641
642 * NEWS: Mention 'set|show print frame-info'. Mention new
643 'presence' value for 'frame-arguments'. Mention new '-frame-info'
644 backtrace argument. Mention that python frame filtering code
645 is now consistent with what 'backtrace' command prints.
646
4b5e8d19
PW
6472019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
648
649 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
650 comments.
651 (print_frame_info_auto, print_frame_info_source_line,
652 print_frame_info_location, print_frame_info_source_and_location,
653 print_frame_info_location_and_address, print_frame_info_short_location):
654 New declarations.
655 (struct frame_print_options): New member print_frame_info.
656 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
657 * stack.h (get_user_print_what_frame_info): New declaration.
658 (frame_show_address): New declaration.
659 * stack.c (print_frame_arguments_choices): New value 'presence'.
660 (print_frame_info_auto, print_frame_info_source_line,
661 print_frame_info_location, print_frame_info_source_and_location,
662 print_frame_info_location_and_address, print_frame_info_short_location,
663 print_frame_info_choices, print_frame_info_print_what): New definitions.
664 (print_frame_args): Only print dots for args if print frame-arguments
665 is 'presence'.
666 (frame_print_option_defs): New element for "frame-info".
667 (get_user_print_what_frame_info): New function.
668 (frame_show_address): Make non static. Move comment to stack.h.
669 (print_frame_info_to_print_what): New function.
670 (print_frame_info): Update comment. Use fp_opts.print_frame_info
671 to decide what to print.
672 (backtrace_command_1): Handle the new print_frame_arguments_presence
673 value.
674 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
675 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
676 (py_print_frame): In non-mi mode, use LOCATION as default for
677 print_what, similarly to frame information printed directly by
678 backtrace command. Handle frame-info user option in non MI mode.
679
6bdfee81
KB
6802019-07-27 Kevin Buettner <kevinb@redhat.com>
681
682 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
683 Add case for debugging 32-bit target on 64-bit host. Revise
684 comment.
685
98a617f8
KB
6862019-07-27 Kevin Buettner <kevinb@redhat.com>
687
688 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
689 instead of find_function_entry_range_from_pc.
690
567238c9
KB
6912019-07-27 Kevin Buettner <kevinb@redhat.com>
692
693 * stack.c (find_frame_funname): Remove code which preferred
694 minsym over symtab sym in "certain pathological cases".
695
2dc80cf8
KB
696 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
697 parameter. Change type of "do_demangle" to bool.
698 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
699 Pass suitable "prefer_sym_over_minsym" flag to
700 build_address_symbolic(). Don't output "+" for negative offsets.
701 * printcmd.c (print_address_symbolic): Update invocation of
702 build_address_symbolic to include a "prefer_sym_over_minsym"
703 flag.
704 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
705 Restrict cases in which use of minimal symbol is preferred to that
706 of a found symbol. Update comments.
707
1aff7173
KB
708 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
709 for entry pc when entry pc is out of range for that FDE.
710
89b085ac
BC
7112019-07-26 Brian Callahan <bcallah@openbsd.org>
712
713 PR gdb/24839:
714 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
715 type.
716
f32feb4a
CB
7172019-07-25 Christian Biesinger <cbiesinger@google.com>
718
719 * python/py-objfile.c (add_separate_debug_file): Fix comment about
720 this function's Python signature.
721
722
7232019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
724
725 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
726 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
727 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
728 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
729 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
730
731
c54e4253
YS
7322019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
733
734 * h8300-tdep.c (h8300_register_name_common): New.
735 h8300_register_name): Use h8300_register_name_common.
736 (h8300s_register_name): Likewise.
737 (h8300sx_register_name): Likewise.
738 (h8300h_register_nam): New.
739 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
740
741
40eadf04
SP
7422019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
743
744 * arm-tdep.c (arm_skip_cmse_entry): New function.
745 (arm_is_sgstubs_section): New function.
746 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
747
bfa2a36d
TT
7482019-07-22 Tom Tromey <tom@tromey.com>
749
750 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
751 Don't self-assign.
752
a8e9d247
AB
7532019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
754
755 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
756 type_print.
757
eb86c5e2
AB
7582019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
759
760 * symtab.c (search_symbols): Adjust msymbol matching type arrays
761 so that GDB doesn't match any msymbols when searching in the
762 TYPES_DOMAIN.
763 (print_symbol_info): Print using typedef_print or type_print based
764 on the type of the symbol. Add updated FIXME comment moved from...
765 (_initialize_symtab): ... move and update FIXME comment to above.
766
a8eab7c6
AB
7672019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * NEWS: Mention adding -q option to "info types".
770 * symtab.c (struct info_types_options): New struct.
771 (info_types_options_defs): New variable.
772 (make_info_types_options_def_group): New function.
773 (info_types_command): Use gdb::option framework to parse options.
774 (info_types_command_completer): New function.
775 (_initialize_symtab): Extend the help text on "info types" and
776 register command completer.
777
b4603c34
CB
7782019-07-21 Christian Biesinger <cbiesinger@google.com>
779
780 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
781 (lookup_symbol_in_objfile): Change int to block_enum and add a
782 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
783
c8cdc1e0
CB
7842019-07-20 Christian Biesinger <cbiesinger@google.com>
785
786 * MAINTAINERS (Write After Approval): Add self.
787
01e175fe
AB
7882019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
791 instruction to the dummy code region.
792
56f79b63
TT
7932019-07-19 Tom Tromey <tromey@adacore.com>
794
795 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
796 (ARGSUSED, PARAMS, __func__): Remove rules.
797
4c5aa8e0
AH
7982019-07-19 Alan Hayward <alan.hayward@arm.com>
799
800 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
801 * features/arm/arm-with-iwmmxt.c: Remove.
802 * features/arm/arm-with-iwmmxt.xml: Remove.
803 * features/arm/arm-with-m-fpa-layout.c: Remove.
804 * features/arm/arm-with-m-fpa-layout.xml: Remove.
805 * features/arm/arm-with-m-vfp-d16.c: Remove.
806 * features/arm/arm-with-m-vfp-d16.xml: Remove.
807 * features/arm/arm-with-m.c: Remove.
808 * features/arm/arm-with-m.xml: Remove.
809 * features/arm/arm-with-neon.c: Remove.
810 * features/arm/arm-with-neon.xml: Remove.
811 * features/arm/arm-with-vfpv2.c: Remove.
812 * features/arm/arm-with-vfpv2.xml: Remove.
813 * features/arm/arm-with-vfpv3.c: Remove.
814 * features/arm/arm-with-vfpv3.xml: Remove.
815
f42b2617
AH
8162019-07-19 Alan Hayward <alan.hayward@arm.com>
817
818 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
819
f29ec966
AH
8202019-07-19 Alan Hayward <alan.hayward@arm.com>
821
822 * arch/aarch32.c (aarch32_create_target_description): Create
823 target descriptions using features.
824 * arch/arm.c (arm_create_target_description)
825 (arm_create_mprofile_target_description): Likewise.
826 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
827
d105cce5
AH
8282019-07-19 Alan Hayward <alan.hayward@arm.com>
829
830 * Makefile.in: Add new files.
831 * aarch32-tdep.c: New file.
832 * aarch32-tdep.h: New file.
833 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
834 Call aarch32_read_description.
835 * arch/aarch32.c: New file.
836 * arch/aarch32.h: New file.
837 * arch/arm.c (arm_create_target_description)
838 (arm_create_mprofile_target_description): New function.
839 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
840 (arm_create_target_description)
841 (arm_create_mprofile_target_description): New declaration.
842 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
843 read_description functions.
844 * arm-linux-nat.c (arm_linux_nat_target::read_description):
845 Likewise.
846 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
847 * arm-tdep.c (tdesc_arm_list): New variable.
848 (arm_register_g_packet_guesses): Call create description functions.
849 (arm_read_description) (arm_read_mprofile_description): New
850 function.
851 * arm-tdep.h (arm_read_description)
852 (arm_read_mprofile_description): Add declaration.
853 * configure.tgt: Add new files.
854
afe09f0b
GL
8552019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
856
857 * top.c (new_ui_command): Open specified terminal just once.
858
cd215b2e
TT
8592019-07-18 Tom Tromey <tromey@adacore.com>
860
861 * symtab.c (main_name): Constify return type.
862 * symfile.c (set_initial_language): Update.
863 * symtab.h (main_name): Constify return type.
864
d8f68fcb
TT
8652019-07-17 Tom Tromey <tom@tromey.com>
866
867 * tui/tui-winsource.c (tui_update_source_window)
868 (tui_update_source_window_as_is)
869 (tui_update_source_windows_with_line): Remove return.
870 * tui/tui-disasm.c (tui_show_disassem)
871 (tui_show_disassem_and_update_source): Remove return.
872 * tui/tui.c (tui_reset): Remove return.
873 * tui/tui-wingeneral.c
874 (tui_check_and_display_highlight_if_needed): Remove return.
875
ca5af91e
TT
8762019-07-17 Tom Tromey <tom@tromey.com>
877
878 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
879
5104fe36
TT
8802019-07-17 Tom Tromey <tom@tromey.com>
881
882 * tui/tui-winsource.h (struct tui_exec_info_window)
883 (struct tui_source_window_base): Move from tui-data.h.
884 * tui/tui-winsource.c: Move many method definitions from
885 elsewhere. Remove "structuring" comments.
886 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
887 (tui_source_window_base::refresh_window): Move to
888 tui-winsource.c.
889 * tui/tui-win.c (tui_source_window_base::refresh_all)
890 (tui_source_window_base::update_tab_width)
891 (tui_source_window_base::set_new_height)
892 (tui_source_window_base::do_make_visible_with_new_height): Move to
893 tui-winsource.c.
894 * tui/tui-source.h: Update.
895 * tui/tui-source.c (tui_source_window_base::reset): Move to
896 tui-winsource.c.
897 * tui/tui-disasm.h: Update.
898 * tui/tui-data.h (struct tui_exec_info_window): Move to
899 tui-winsource.h.
900 (struct tui_source_window_base): Likewise.
901 * tui/tui-data.c (tui_source_window_base::clear_detail)
902 (tui_source_window_base, ~tui_source_window_base): Move to
903 tui-winsource.c.
904
daa15dde
TT
9052019-07-17 Tom Tromey <tom@tromey.com>
906
907 * tui/tui-win.c (tui_resize_all)
908 (tui_source_window_base::update_tab_width)
909 (tui_adjust_win_heights): Update.
910 (tui_win_info::make_invisible_and_set_new_height): Rename from
911 make_invisible_and_set_new_height.
912 * tui/tui-data.h (struct tui_win_info)
913 <make_invisible_and_set_new_height>: New method.
914
bfad4537
TT
9152019-07-17 Tom Tromey <tom@tromey.com>
916
917 * tui/tui.c: Update.
918 * tui/tui-source.h (struct tui_source_window): Move from
919 tui-data.h.
920 * tui/tui-layout.c: Update.
921 * tui/tui-disasm.c: Update.
922 * tui/tui-data.h (struct tui_source_window): Move to
923 tui-source.h.
924
88f7e873
TT
9252019-07-17 Tom Tromey <tom@tromey.com>
926
927 * tui/tui-disasm.h (struct tui_disasm_window): Move from
928 tui-data.h.
929 * tui/tui-data.h (struct tui_disasm_window): Move to
930 tui-disasm.h.
931
96bd6233
TT
9322019-07-17 Tom Tromey <tom@tromey.com>
933
934 * tui/tui-regs.h (struct tui_data_item_window): Move from
935 tui-data.h.
936 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
937 * tui/tui-data.h (struct tui_data_item_window): Move to
938 tui-regs.h.
939 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
940
ce38393b
TT
9412019-07-17 Tom Tromey <tom@tromey.com>
942
943 * tui/tui.c: Update.
944 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
945 (tui_cmd_window::max_height): Move to tui-command.c.
946 * tui/tui-layout.c: Update.
947 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
948 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
949 tui-command.c.
950 * tui/tui-command.h (struct tui_cmd_window): Move from
951 tui-data.h.
952 * tui/tui-command.c: Remove "structuring" comments.
953 (tui_cmd_window::clear_detail)
954 (tui_cmd_window::do_make_visible_with_new_height)
955 (tui_cmd_window::max_height): Move from elsewhere.
956
2d8b51cb
TT
9572019-07-17 Tom Tromey <tom@tromey.com>
958
959 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
960 Now static.
961 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
962 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
963
18ab23af
TT
9642019-07-17 Tom Tromey <tom@tromey.com>
965
966 * tui/tui.c: Update.
967 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
968 tui-regs.c.
969 * tui/tui-windata.h: Remove file.
970 * tui/tui-windata.c: Remove file.
971 * tui/tui-win.c (tui_data_window::set_new_height)
972 (tui_data_window::do_make_visible_with_new_height): Move to
973 tui-regs.c.
974 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
975 * tui/tui-regs.c: Remove "structuring" comments.
976 (tui_data_window::first_data_item_displayed)
977 (tui_data_window::delete_data_content_windows)
978 (tui_data_window::erase_data_content)
979 (tui_data_window::display_all_data)
980 (tui_data_window::refresh_all)
981 (tui_data_window::do_scroll_vertical)
982 (tui_data_window::clear_detail, tui_data_window::set_new_height)
983 (tui_data_window::do_make_visible_with_new_height)
984 (tui_data_window::refresh_window): Move from elsewhere.
985 (_initialize_tui_regs): Move to end of file.
986 * tui/tui-layout.c: Update.
987 * tui/tui-hooks.c: Update.
988 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
989 * tui/tui-data.c (tui_data_window::clear_detail): Move to
990 tui-regs.c.
991 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
992
88b7e7cc
TT
9932019-07-17 Tom Tromey <tom@tromey.com>
994
995 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
996 seen.
997
0fcd3711
TT
9982019-07-17 Tom Tromey <tom@tromey.com>
999
1000 * tui/tui-win.c (tui_source_window_base::set_new_height)
1001 (tui_source_window_base::do_make_visible_with_new_height): Use
1002 m_has_locator field directly.
1003 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1004 method.
1005 (struct tui_source_window_base) <has_locator>: Likewise.
1006
4a38112d
TT
10072019-07-17 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1010 Don't declare.
1011 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1012 Remove.
1013 * tui/tui-win.c (tui_source_window_base::set_new_height)
1014 (tui_source_window_base::set_new_height)
1015 (make_invisible_and_set_new_height)
1016 (tui_source_window_base::do_make_visible_with_new_height)
1017 (tui_source_window_base::do_make_visible_with_new_height):
1018 Update.
1019 * tui/tui-layout.c (show_source_disasm_command, show_data)
1020 (show_source_or_disasm_and_command): Update.
1021 * tui/tui-layout.c (show_layout): Update.
1022
09129226
TT
10232019-07-17 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-layout.c (make_data_window): Remove.
1026 (show_data): Unify creation and re-initialization cases.
1027
4a8a5e84
TT
10282019-07-17 Tom Tromey <tom@tromey.com>
1029
1030 * tui/tui-layout.c (make_source_window, make_disasm_window):
1031 Remove.
1032 (show_data): Unify creation and re-initialization cases.
1033
76d2be8e
TT
10342019-07-17 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-layout.c (make_command_window): Remove.
1037 (show_source_disasm_command, show_source_or_disasm_and_command):
1038 Unify creation and re-initialization cases.
1039
890b8bde
TT
10402019-07-17 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1043 creation and re-initialization cases.
1044
2cdfa113
TT
10452019-07-17 Tom Tromey <tom@tromey.com>
1046
1047 * tui/tui-regs.c (tui_get_register): Return void.
1048
8e3cfd09
TT
10492019-07-17 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1052 Simplify.
1053
f4e04977
TT
10542019-07-17 Tom Tromey <tom@tromey.com>
1055
1056 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1057 resetting.
1058
0379b883
TT
10592019-07-17 Tom Tromey <tom@tromey.com>
1060
1061 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1062 * tui/tui-regs.c (tui_reg_layout): New function.
1063 (tui_show_registers, tui_reg_command): Use it.
1064 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1065 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1066 parameters.
1067 (tui_layout_command): Remove.
1068
b7fbad91
TT
10692019-07-17 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-layout.h (tui/tui-layout): Return void.
1072 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1073
4e1e56b9
TT
10742019-07-17 Tom Tromey <tom@tromey.com>
1075
1076 * tui/tui-layout.c (show_source_disasm_command, show_data):
1077 Update.
1078 (reset_locator): Remove.
1079 (show_source_or_disasm_and_command): Update.
1080
1e0c09ba
TT
10812019-07-17 Tom Tromey <tom@tromey.com>
1082
1083 * tui/tui-source.c (tui_source_window_base::reset): Remove
1084 win_type parameter.
1085 * tui/tui-layout.c (make_command_window, make_source_window)
1086 (make_disasm_window, make_data_window)
1087 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1088 (reset_locator, show_source_or_disasm_and_command): Update.
1089 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1090 win_type parameter.
1091 (struct tui_source_window_base) <reset>: Likewise.
1092
1bf605de
TT
10932019-07-17 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-layout.c (show_source_disasm_command): Use
1096 reset_locator.
1097 (reset_locator): New function.
1098 (init_and_make_win): Remove.
1099 (show_source_or_disasm_and_command): Use reset_locator.
1100
098f9ed4
TT
11012019-07-17 Tom Tromey <tom@tromey.com>
1102
1103 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1104 condition.
1105 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1106 Remove condition.
1107 * tui/tui-source.c (tui_source_window_base::reset): New method.
1108 * tui/tui-layout.c (make_command_window): Don't call
1109 init_and_make_win.
1110 (make_source_window, make_disasm_window): Don't call
1111 make_source_or_disasm_window.
1112 (make_data_window): Don't call init_and_make_win. Change calling
1113 convention.
1114 (show_source_disasm_command, show_data): Simplify.
1115 (make_source_or_disasm_window): Remove.
1116 (show_source_or_disasm_and_command): Simplify.
1117 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1118 (struct tui_source_window_base) <reset>: Likewise.
1119 <execution_info>: Remove initializer.
1120 * tui/tui-data.c (tui_source_window_base): Initialize
1121 execution_info.
1122
80110957
TT
11232019-07-17 Tom Tromey <tom@tromey.com>
1124
1125 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1126 variable.
1127
cf82af05
TT
11282019-07-17 Tom Tromey <tom@tromey.com>
1129
1130 * tui/tui.c (tui_rl_other_window): Update.
1131 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1132 superclass method first. Always iterate over regs_content.
1133 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1134 method.
1135 * tui/tui-win.c (tui_set_focus_command): Update.
1136
01aeb396
TT
11372019-07-17 Tom Tromey <tom@tromey.com>
1138
1139 * tui/tui-win.c (tui_set_focus_command): Rename from
1140 tui_set_focus. Call tui_enable.
1141 (tui_set_focus_command): Remove.
1142
fd6c75ee
TT
11432019-07-17 Tom Tromey <tom@tromey.com>
1144
1145 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1146 refresh_window.
1147 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1148 touchwin.
1149 (tui_data_window::refresh_window): Call refresh_window on data
1150 items. Always call superclass refresh_window.
1151 (tui_win_info::refresh): Remove.
1152 (tui_source_window_base::refresh_window): Update.
1153 (tui_refresh_all): Update.
1154 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1155 refresh_window.
1156 (show_source_or_disasm_and_command): Likewise.
1157 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1158 (struct tui_source_window_base) <refresh>: Likewise.
1159
f6cc34a9
TT
11602019-07-17 Tom Tromey <tom@tromey.com>
1161
1162 * tui/tui-winsource.c (tui_clear_source_content)
1163 (tui_show_source_content): Update.
1164 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1165 whether content is empty.
1166 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1167 Remove.
1168
f31ec9af
TT
11692019-07-17 Tom Tromey <tom@tromey.com>
1170
1171 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1172 window's contents.
1173 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1174 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1175
d1b6f1e5
TT
11762019-07-17 Tom Tromey <tom@tromey.com>
1177
1178 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1179 (struct tui_data_item_window): Update.
1180
d9743a13
TT
11812019-07-17 Tom Tromey <tom@tromey.com>
1182
1183 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1184 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1185 defines.
1186
caf0bc4e
TT
11872019-07-17 Tom Tromey <tom@tromey.com>
1188
1189 * tui/tui-winsource.h (tui_erase_source_content)
1190 (tui_clear_source_content): Remove "display_prompt" parameter.
1191 * tui/tui-winsource.c (tui_update_source_window_as_is)
1192 (tui_update_source_windows_with_addr): Update.
1193 (tui_clear_source_content): Remove "display_prompt" parameter.
1194 (tui_erase_source_content): Likewise. Simplify.
1195 (tui_show_source_content): Update.
1196 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1197 * tui/tui-stack.c (tui_show_frame_info): Update.
1198 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1199 Remove defines.
1200
9d391078
TT
12012019-07-17 Tom Tromey <tom@tromey.com>
1202
1203 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1204 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1205 parameter.
1206 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1207 parameter.
1208
a38da35d
TT
12092019-07-17 Tom Tromey <tom@tromey.com>
1210
1211 * tui/tui-winsource.c (tui_clear_source_content)
1212 (tui_show_source_content, tui_show_exec_info_content)
1213 (tui_clear_exec_info_content): Update.
1214 * tui/tui-stack.c (tui_show_locator_content): Update.
1215 (tui_show_frame_info): Update.
1216 * tui/tui-source.h (tui_source_window): Don't declare.
1217 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1218 from tui_source_is_displayed.
1219 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1220 Remove field.
1221 (struct tui_source_window_base) <content_in_use>: New field. Now
1222 bool.
1223 (struct tui_source_window) <showing_source_p>: New method.
1224 (TUI_SRC_WIN): Change cast.
1225 * tui/tui-data.c (tui_initialize_static_data): Update.
1226
c2cd8994
TT
12272019-07-17 Tom Tromey <tom@tromey.com>
1228
1229 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1230 location_matches_p.
1231 * tui/tui-source.c (tui_source_window::location_matches_p): New
1232 method.
1233 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1234 method.
1235 * tui/tui-data.h (struct tui_source_window_base)
1236 <location_matches_p>: New method.
1237 (struct tui_source_window, struct tui_disasm_window)
1238 <location_matches_p>: Likewise.
1239
4dde7b34
TT
12402019-07-17 Tom Tromey <tom@tromey.com>
1241
1242 * tui/tui-win.c (tui_set_win_height_command): Rename from
1243 tui_set_win_height.
1244 (tui_set_win_height_command): Remove.
1245
b73dd877
TT
12462019-07-17 Tom Tromey <tom@tromey.com>
1247
1248 * tui/tui-source.c (tui_source_window): New constructor. Add
1249 observer.
1250 (~tui_source_window): New destructor.
1251 (tui_source_window::style_changed): New method.
1252 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1253 (tui_attach_detach_observers): Update.
1254 * tui/tui-data.h (struct tui_source_window): Make constructor not
1255 inline. Add destructor.
1256 (struct tui_source_window) <style_changed>: New method.
1257 <m_observable>: New member.
1258
ae2b5380
TT
12592019-07-17 Tom Tromey <tom@tromey.com>
1260
1261 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1262 * tui/tui-win.c (tui_resize_all): Fix typo.
1263
1ce3e844
TT
12642019-07-17 Tom Tromey <tom@tromey.com>
1265
1266 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1267 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1268 (tui_refresh_all): Remove "list" parameter. Use foreach.
1269 * tui/tui-win.c (window_name_completer): Use foreach.
1270 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1271 (update_tab_width): Likewise.
1272 * tui/tui-layout.c (show_layout): Update.
1273 * tui/tui-data.h (class tui_window_iterator): New.
1274 (struct all_tui_windows): New.
1275 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1276
fe3eaf1c
TT
12772019-07-17 Tom Tromey <tom@tromey.com>
1278
1279 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1280 parameter. Don't reference globals.
1281 (tui_reg_command): Update.
1282
368c1354
TT
12832019-07-17 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-regs.c (tui_show_registers): Simplify.
1286
e80cd204
TT
12872019-07-17 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-regs.c (tui_show_registers): Update.
1290 (tui_show_register_group): Add win_info parameter.
1291
aca2dd16
TT
12922019-07-17 Tom Tromey <tom@tromey.com>
1293
1294 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1295 Rename from tui_display_reg_element_at_line.
1296 (tui_data_window::display_registers_from_line): Update.
1297 * tui/tui-data.h (struct tui_data_window)
1298 <display_reg_element_at_line>: New method.
1299
517e9505
TT
13002019-07-17 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui-regs.h (tui_display_registers_from)
1303 (tui_display_registers_from_line): Don't declare.
1304 * tui/tui-windata.c (tui_data_window::display_all_data)
1305 (tui_data_window::refresh_all)
1306 (tui_data_window::do_scroll_vertical): Update.
1307 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1308 from tui_display_registers_from.
1309 (tui_display_reg_element_at_line): Update.
1310 (tui_data_window::display_registers_from_line): Rename from
1311 tui_display_registers_from_line.
1312 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1313 display_registers_from_line>: New methods.
1314
f76d8b19
TT
13152019-07-17 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1318 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1319 from tui_erase_data_content.
1320 (tui_data_window::display_all_data)
1321 (tui_data_window::refresh_all)
1322 (tui_data_window::do_scroll_vertical): Update.
1323 * tui/tui-regs.c (tui_show_registers): Update.
1324 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1325 New method.
1326
b4094625
TT
13272019-07-17 Tom Tromey <tom@tromey.com>
1328
1329 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1330 declare.
1331 * tui/tui-windata.c
1332 (tui_data_window::delete_data_content_windows): Rename from
1333 tui_delete_data_content_windows.
1334 (tui_data_window::display_all_data)
1335 (tui_data_window::do_scroll_vertical): Update.
1336 * tui/tui-data.h (struct tui_data_window)
1337 <delete_data_content_windows>: New method.
1338
c223a729
TT
13392019-07-17 Tom Tromey <tom@tromey.com>
1340
1341 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1342 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1343
50daf268
TT
13442019-07-17 Tom Tromey <tom@tromey.com>
1345
1346 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1347 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1348 from tui_display_all_data.
1349 * tui/tui-win.c
1350 (tui_data_window::do_make_visible_with_new_height): Update.
1351 * tui/tui-regs.c (tui_show_registers): Update.
1352 * tui/tui-layout.c (tui_set_layout): Update.
1353 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1354 method.
1355
df5f8cab
TT
13562019-07-17 Tom Tromey <tom@tromey.com>
1357
1358 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1359 * tui/tui-windata.c (tui_display_data_from): Remove.
1360 (tui_data_window::refresh_all): Update.
1361
80cb6c27
TT
13622019-07-17 Tom Tromey <tom@tromey.com>
1363
1364 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1365 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1366 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1367 tui_display_registers_from_line.
1368 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1369 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1370 "force_display" parameter.
1371
baff0c28
TT
13722019-07-17 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1375 declare.
1376 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1377 Rename from tui_first_reg_element_no_inline.
1378 (tui_display_reg_element_at_line)
1379 (tui_display_registers_from_line): Update.
1380 * tui/tui-data.h (struct tui_data_window)
1381 <first_reg_element_no_inline>: New method.
1382
3b23c5f2
TT
13832019-07-17 Tom Tromey <tom@tromey.com>
1384
1385 * tui/tui-windata.c (tui_display_data_from)
1386 (tui_data_window::do_scroll_vertical): Update.
1387 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1388 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1389 Rename from tui_line_from_reg_element_no.
1390 (tui_display_registers_from_line): Update.
1391 * tui/tui-data.h (struct tui_data_window)
1392 <line_from_reg_element_no>: New method.
1393
0b5ec218
TT
13942019-07-17 Tom Tromey <tom@tromey.com>
1395
1396 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1397 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1398 tui_last_regs_line_no.
1399 (tui_display_reg_element_at_line)
1400 (tui_display_registers_from_line): Update.
1401 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1402 method.
1403
0807ab7b
TT
14042019-07-17 Tom Tromey <tom@tromey.com>
1405
1406 PR tui/24722:
1407 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1408 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1409 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1410 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1411 (tui_update_breakpoint_info): Likewise.
1412 * tui/tui-hooks.c (tui_event_create_breakpoint)
1413 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1414 Update.
1415
9ad7fdef
TT
14162019-07-17 Tom Tromey <tom@tromey.com>
1417
1418 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1419
5813316f
TT
14202019-07-17 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui-winsource.c (tui_update_source_window_as_is)
1423 (tui_update_source_windows_with_addr): Update.
1424 * tui/tui-source.h (tui_set_source_content)
1425 (tui_show_symtab_source): Add "win_info" parameter.
1426 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1427 parameter.
1428 (tui_show_symtab_source): Likewise.
1429
00e264e7
TT
14302019-07-17 Tom Tromey <tom@tromey.com>
1431
1432 * tui/tui-wingeneral.c
1433 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1434
06210ce4
TT
14352019-07-17 Tom Tromey <tom@tromey.com>
1436
1437 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1438 (struct tui_cmd_window) <can_scroll>: New method.
1439 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1440 method.
1441
381befee
TT
14422019-07-17 Tom Tromey <tromey@adacore.com>
1443
1444 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1445 do_field_signed>: Rename. Change type of "value".
1446 * ui-out.c (ui_out::field_signed): Rename from field_int.
1447 Change type of "value".
1448 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1449 type of "value".
1450 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1451 do_field_int. Change type of "value".
1452 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1453 do_field_int. Change type of "value".
1454 * tracepoint.c (trace_status_mi, tfind_1)
1455 (print_one_static_tracepoint_marker): Update.
1456 * thread.c (print_thread_info_1, print_selected_thread_frame):
1457 Update.
1458 * stack.c (print_frame, print_frame_info): Update.
1459 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1460 Update.
1461 * source.c (print_source_lines_base): Update.
1462 * skip.c (info_skip_command): Update.
1463 * record-btrace.c (btrace_ui_out_decode_error)
1464 (btrace_call_history_src_line): Update.
1465 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1466 Update.
1467 * progspace.c (print_program_space): Update.
1468 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1469 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1470 do_field_int. Change type of "value".
1471 * mi/mi-out.c (mi_ui_out::do_table_begin)
1472 (mi_ui_out::do_table_header): Update.
1473 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1474 type of "value".
1475 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1476 (mi_cmd_data_list_changed_registers, output_register)
1477 (mi_cmd_data_read_memory, mi_load_progress)
1478 (mi_cmd_trace_frame_collected): Update.
1479 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1480 Update.
1481 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1482 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1483 (mi_cmd_var_list_children, varobj_update_one): Update.
1484 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1485 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1486 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1487 * inferior.c (print_inferior): Update.
1488 * gdb_bfd.c (print_one_bfd): Update.
1489 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1490 Update.
1491 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1492 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1493 do_field_int. Change type of "value".
1494 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1495 do_field_int. Change type of "value".
1496 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1497 (print_one_breakpoint_location, print_it_catch_fork)
1498 (print_one_catch_fork, print_it_catch_vfork)
1499 (print_one_catch_vfork, print_it_catch_solib)
1500 (print_it_catch_exec, print_it_ranged_breakpoint)
1501 (print_mention_watchpoint, print_mention_masked_watchpoint)
1502 (bkpt_print_it, update_static_tracepoint): Update.
1503 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1504 * break-catch-syscall.c (print_it_catch_syscall): Update.
1505 * ada-tasks.c (print_ada_task_info): Update.
1506 * ada-lang.c (print_it_exception, print_mention_exception):
1507 Update.
1508
6b78c3f8
AB
15092019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 PR breakpoints/24541
1512 * gdbarch.c: Regenerate.
1513 * gdbarch.h: Regenerate.
1514 * gdbarch.sh: Adjust return type and parameter types for
1515 'stap_adjust_register'.
1516 (i386_stap_adjust_register): Adjust signature and return new
1517 register name.
1518 * stap-probe.c (stap_parse_register_operand): Adjust use of
1519 'gdbarch_stap_adjust_register'.
1520
d72a9b85
TT
15212019-07-17 Tom Tromey <tromey@adacore.com>
1522
1523 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1524 declare VEC.
1525 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1526 std::vector.
1527 (struct s390_process_info): Add initializers.
1528 (s390_add_process): Use new.
1529 (s390_linux_nat_target::low_forget_process): Use delete.
1530 (s390_linux_nat_target::low_new_fork)
1531 (s390_linux_nat_target::stopped_by_watchpoint)
1532 (s390_linux_nat_target::low_prepare_to_resume)
1533 (s390_linux_nat_target::insert_watchpoint)
1534 (s390_linux_nat_target::insert_hw_breakpoint)
1535 (s390_linux_nat_target::remove_watchpoint)
1536 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1537
206e6c58
JB
15382019-07-16 John Baldwin <jhb@FreeBSD.org>
1539
1540 * aarch64-fbsd-nat.c: Include regcache.h.
1541 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1542 argument.
1543 (aarch64_fbsd_nat_target::fetch_registers)
1544 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1545 variable.
1546 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1547
cbde90f2
JB
15482019-07-16 John Baldwin <jhb@FreeBSD.org>
1549
1550 * fbsd-nat.c: Include gdbarch.h.
1551
07128006
TT
15522019-07-15 Tom Tromey <tromey@adacore.com>
1553
1554 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1555
1f77b012
TT
15562019-07-15 Tom Tromey <tromey@adacore.com>
1557
1558 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1559 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1560 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1561 * cli-out.c (cli_ui_out::do_field_int): New method.
1562 * ui-out.c (ui_out::field_unsigned): New method.
1563 * symfile.c (generic_load): Use field_unsigned.
1564 (print_transfer_performance): Likewise.
1565 * record-btrace.c (ui_out_field_uint): Remove.
1566 (btrace_call_history_insn_range, btrace_call_history): Use
1567 field_unsigned.
1568 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1569 field_unsigned.
1570 * ui-out.h (class ui_out) <field_unsigned>: New method.
1571 <do_field_unsigned>: Likewise.
1572
33eca680
TT
15732019-07-15 Tom Tromey <tromey@adacore.com>
1574
1575 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1576 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1577 * target.c (flash_erase_command): Use field_string.
1578 * infrun.c (print_signal_received_reason): Use field_string.
1579 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1580 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1581 field_string.
1582 * ada-tasks.c (print_ada_task_info): Use field_string.
1583
ca8d69be
TT
15842019-07-15 Tom Tromey <tromey@adacore.com>
1585
1586 * target.c (flash_erase_command): Use field_core_addr.
1587 * symfile.c (generic_load): Use field_core_addr.
1588 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1589 Use field_core_addr.
1590 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1591 field_core_addr.
1592
0d4e84ed
AB
15932019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1596 value if its desired type is smaller than a CORE_ADDR and signed.
1597
9a49df9d
AB
15982019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1601 of changes to field names, and use new is_reference field to
1602 decide if a property is a reference or not.
1603 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1604 field.
1605 (struct dwarf2_property_baton): Update header comment, rename
1606 'referenced_type' to 'property_type' and update comments.
1607 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1608 default property type, store in property baton, update to take
1609 accound of renamed field.
1610 (read_func_scope): Update call to attr_to_dynamic_prop.
1611 (read_array_type): Likewise.
1612 (dwarf2_per_cu_addr_sized_int_type): New function.
1613 (read_subrange_index_type): Move type finding code to
1614 dwarf2_per_cu_addr_sized_int_type.
1615 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1616 (dwarf2_per_cu_addr_type): New function.
1617 (set_die_type): Update calls to attr_to_dynamic_prop.
1618
b86352cf
AB
16192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * dwarf2read.c (read_subrange_index_type): New function.
1622 (read_subrange_type): Move code into new function and call it.
1623 * gdbtypes.c (create_range_type): Add some asserts.
1624
603490bf
AB
16252019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1628 update return statements.
1629 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1630 declaration, and update comment to match.
1631 * gdbtypes.c (resolve_dynamic_array): Update call to
1632 dwarf2_evaluate_property to match new return type.
1633
592f9d27
AB
16342019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * valarith.c (value_subscripted_rvalue): Change lowerbound
1637 parameter type from int to LONGEST.
1638 * value.h (value_subscripted_rvalue): Likewise in declaration.
1639
60cfcb20
AB
16402019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1641
1642 * cli/cli-utils.c (info_print_command_completer): New function.
1643 * cli/cli-utils.h: Add 'completer.h' include, and forward
1644 declaration for 'struct cmd_list_element'.
1645 (info_print_command_completer): Declare.
1646 * stack.c (_initialize_stack): Add completer for 'info locals' and
1647 'info args'.
1648 * symtab.c (_initialize_symtab): Add completer for 'info
1649 variables' and 'info functions'.
1650 * NEWS: Mention completion for additional info commands.
1651
b16507e0
AB
16522019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1653
1654 * cli/cli-utils.c (extract_info_print_args): Delete.
1655 (extract_arg_maybe_quoted): Delete.
1656 (info_print_options_defs): New variable.
1657 (make_info_print_options_def_group): New function.
1658 (extract_info_print_options): Define new function.
1659 * cli/cli-utils.h (extract_info_print_args): Delete.
1660 (struct info_print_options): New structure.
1661 (extract_info_print_options): Declare new function.
1662 * stack.c (info_locals_command): Update to use new
1663 extract_info_print_options, also add a header comment.
1664 (info_args_command): Likewise.
1665 * symtab.c (info_variables_command): Likewise.
1666 (info_functions_command): Likewise.
1667
021d8588
AB
16682019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1671 to extract string arguments.
1672 * common/common-utils.c (extract_string_maybe_quoted): New function.
1673 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1674
b777eb6d
TT
16752019-07-11 Tom Tromey <tromey@adacore.com>
1676
1677 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1678 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1679 * top.h (gdbinit): Don't declare.
1680 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1681 into...
1682 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1683 * top.c (gdb_init): Don't call init_cli_cmds.
1684 (gdbinit): Remove.
1685 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1686
72ee03ff
TT
16872019-07-11 Tom Tromey <tromey@adacore.com>
1688
1689 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1690 after it has been moved.
1691
00db9531
SM
16922019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * valops.c (value_must_coerce_to_target): Change return type to
1695 bool.
1696 * value.h (value_must_coerce_to_target): Likewise.
1697
f2478a7e
SM
16982019-07-10 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * breakpoint.c (is_hardware_watchpoint): Remove
1701 forward-declaration.
1702 (is_masked_watchpoint): Change return type to bool.
1703 (is_tracepoint): Likewise.
1704 (is_breakpoint): Likewise.
1705 (is_hardware_watchpoint): Likewise.
1706 (is_watchpoint): Likewise.
1707 (is_no_memory_software_watchpoint): Likewise.
1708 (is_catchpoint): Likewise.
1709 (breakpoint_1): Make FILTER parameter's return type bool.
1710 is_masked_watchpoint): Change return type to bool.
1711 (save_breakpoints): Make FILTER parameter's return type bool.
1712 * breakpoint.h (is_breakpoint): Change return type to bool.
1713 (is_watchpoint): Likewise.
1714 (is_catchpoint): Likewise.
1715 (is_tracepoint): Likewise.
1716
0d12e84c
TT
17172019-07-10 Tom Tromey <tom@tromey.com>
1718
1719 * defs.h: Don't include gdbarch.h.
1720 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1721 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1722 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1723 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1724 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1725 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1726 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1727 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1728 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1729 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1730 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1731 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1732 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1733 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1734 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1735 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1736 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1737 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1738 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1739 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1740 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1741 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1742 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1743 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1744 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1745 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1746 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1747
f06f1252
TT
17482019-07-10 Tom Tromey <tromey@adacore.com>
1749
1750 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1751 * breakpoint.c (init_ada_exception_breakpoint): Register as
1752 bp_catchpoint.
1753 (print_one_breakpoint_location, print_one_breakpoint): Use
1754 is_ada_exception_catchpoint.
1755 * ada-lang.c (class ada_catchpoint_location): Pass
1756 bp_loc_software_breakpoint to bp_location constructor.
1757 (is_ada_exception_catchpoint): New function.
1758
7a5d944b
TT
17592019-07-10 Tom Tromey <tromey@adacore.com>
1760
1761 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1762 VEC.
1763 (struct arm_exidx_entry): New method operator<.
1764 (struct arm_exidx_data) <section_maps>: Change type.
1765 (arm_exidx_data_free): Remove.
1766 (arm_exidx_data_key): Change type. Move lower.
1767 (arm_exidx_new_objfile): Update.
1768 (arm_compare_exidx_entries): Remove.
1769 (arm_find_exidx_entry, _initialize_arm_tdep)
1770
48c66e1d
TT
17712019-07-10 Tom Tromey <tromey@adacore.com>
1772
1773 * solib-spu.c (ocl_program_data_key): Change type.
1774 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1775 Update.
1776
a269fbf1
TT
17772019-07-10 Tom Tromey <tromey@adacore.com>
1778
1779 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1780 (struct solib_aix_inferior_data) <library_list>: Change type.
1781 (solib_aix_inferior_data_handle): Change type.
1782 (get_solib_aix_inferior_data): Update.
1783 (solib_aix_free_library_list): Remove.
1784 (library_list_start_library): Update.
1785 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1786 return type.
1787 (solib_aix_get_library_list)
1788 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1789 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1790
c294730c
TT
17912019-07-10 Tom Tromey <tromey@adacore.com>
1792
1793 * solib-dsbt.c (struct dsbt_info): Add initializers.
1794 (solib_dsbt_pspace_data): Change type.
1795 (dsbt_pspace_data_cleanup): Remove.
1796 (get_dsbt_info, _initialize_dsbt_solib): Update.
1797
9d52077d
TT
17982019-07-10 Tom Tromey <tromey@adacore.com>
1799
1800 * spu-tdep.c (spu_overlay_data): Change type.
1801 (spu_get_overlay_table, spu_overlay_new_objfile)
1802 (_initialize_spu_tdep): Update.
1803
22a20dca
TT
18042019-07-10 Tom Tromey <tromey@adacore.com>
1805
1806 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1807 destructor.
1808 (dbx_objfile_data_key): Change type and declare later.
1809 (DBX_SYMFILE_INFO): Rewrite.
1810 * dbxread.c (dbx_objfile_data_key): Change type.
1811 (dbx_symfile_init): Update.
1812 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1813 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1814 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1815
cb60f420
TT
18162019-07-10 Tom Tromey <tromey@adacore.com>
1817
1818 * jit.c (jit_program_space_key): Change type. Move lower.
1819 (get_jit_program_space_data): Update.
1820 (jit_program_space_data_cleanup): Remove.
1821 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1822 Update.
1823 (struct jit_program_space_data): Add initializers.
1824
51df2ae3
TT
18252019-07-10 Tom Tromey <tromey@adacore.com>
1826
1827 * solib-darwin.c (struct darwin_info): Add initializers.
1828 (solib_darwin_pspace_data): Change type.
1829 (darwin_pspace_data_cleanup): Remove.
1830 (get_darwin_info, _initialize_darwin_solib): Update.
1831
18101a35
TT
18322019-07-10 Tom Tromey <tromey@adacore.com>
1833
1834 * remote-sim.c (struct sim_inferior_data): Add initializers,
1835 constructor, and destructor.
1836 (sim_inferior_data_key): Change type. Move lower.
1837 (check_for_duplicate_sim_descriptor): Update.
1838 (get_sim_inferior_data): Use new. Update.
1839 (~sim_inferior_data_cleanup): Rename from
1840 sim_inferior_data_cleanup. Simplify.
1841 (gdbsim_close_inferior, simulator_command)
1842 (sim_command_completer, _initialize_remote_sim): Update.
1843 (next_pid, INITIAL_PID): Move earlier.
1844
05b08ac1
TT
18452019-07-10 Tom Tromey <tromey@adacore.com>
1846
1847 * python/python-internal.h (create_thread_object): Return
1848 gdbpy_ref.
1849 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1850 * python/py-inferior.c (struct threadlist_entry): Add
1851 constructor.
1852 <thread_obj>: Now a gdbpy_ref.
1853 (thread_to_thread_object): Update.
1854 (add_thread_object): Use new.
1855 (delete_thread_object): Use delete.
1856 (infpy_threads): Update.
1857 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1858 GIL.
1859
32372d80
TT
18602019-07-10 Tom Tromey <tromey@adacore.com>
1861
1862 * valops.c (value_cast): Specialize error message for Ada.
1863
5c458ae8
SM
18642019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1867
4c462cb0
SM
18682019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1871 bpstat_should_step): Return bool, adjust comments.
1872 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1873 bpstat_should_step): Likewise.
1874
89abbcc2
AH
18752019-07-10 Alan Hayward <alan.hayward@arm.com>
1876
1877 * features/Makefile: Use feature target descriptions for Arm.
1878 * features/arm/arm-core.c: Generate new file.
1879 * features/arm/arm-fpa.c: Likewise.
1880 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1881 * features/arm/arm-m-profile.c: Likewise.
1882 * features/arm/arm-vfpv2.c: Likewise.
1883 * features/arm/arm-vfpv3.c: Likewise.
1884 * features/arm/xscale-iwmmxt.c: Likewise.
1885 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1886
166a82be
AH
18872019-07-10 Alan Hayward <alan.hayward@arm.com>
1888
1889 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1890 ptrace earlier.
1891
9fb4c7e9
AH
18922019-07-10 Alan Hayward <alan.hayward@arm.com>
1893
1894 * features/aarch64-pauth.c: Regenerate.
1895
e2d0f980
SM
18962019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1899 bool.
1900 (bpstat_what): Use false instead of 0.
1901
a38118e5
PA
19022019-07-09 Pedro Alves <palves@redhat.com>
1903
1904 * break-catch-throw.c (is_exception_catchpoint): New.
1905 * breakpoint.c (print_one_breakpoint_location): New parameter
1906 'raw_loc'. Handle it. Use
1907 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1908 looking at the breakpoint's type.
1909 (print_one_breakpoint): If handling "maint info breakpoints", also
1910 print locations of exception catchpoints.
1911 * breakpoint.h (is_exception_catchpoint): Declare.
1912
cb1e4e32
PA
19132019-07-09 Pedro Alves <palves@redhat.com>
1914
1915 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1916 "addr" field.
1917 (allocate_location_exception_catchpoint): New.
1918 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1919 (initialize_throw_catchpoint_ops): Install
1920 allocate_location_exception_catchpoint as allocate_location
1921 method.
1922 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1923 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1924 bp_loc_other.
1925 (breakpoint_address_is_meaningful): Delete.
1926 (bl_address_is_meaningful): New.
1927 (breakpoint_locations_match): Adjust comment.
1928 (bp_location_from_bp_type): New, factored out of...
1929 (bp_location::bp_location(breakpoint *)): ... this.
1930 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1931 factored out of...
1932 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1933 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1934 breakpoint_address_is_meaningful.
1935 (bp_locations_compare): Adjust comment.
1936 (update_global_location_list): Use bl_address_is_meaningful
1937 instead of breakpoint_address_is_meaningful.
1938 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1939 explicit.
1940 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1941 * python/py-breakpoint.c (bppy_get_location): No longer check
1942 whether location is null.
1943
b58a68fe
PA
19442019-07-09 Pedro Alves <palves@redhat.com>
1945
1946 PR c++/15468
1947 * breakpoint.c (print_one_breakpoint_location): Remove
1948 single-location assert.
1949
268a13a5
TT
19502019-07-09 Tom Tromey <tom@tromey.com>
1951
1952 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1953 * configure: Rebuild.
1954 * configure.ac: Change common to gdbsupport.
1955 * gdbsupport: Rename from common.
1956 * acinclude.m4: Change common to gdbsupport.
1957 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1958 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1959 gdbsupport.
1960 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1961 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1962 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1963 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1964 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1965 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1966 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1967 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1968 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1969 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1970 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1971 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1972 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1973 coff-pe-read.c, command.h, compile/compile-c-support.c,
1974 compile/compile-c.h, compile/compile-cplus-symbols.c,
1975 compile/compile-cplus-types.c, compile/compile-cplus.h,
1976 compile/compile-loc2c.c, compile/compile.c, completer.c,
1977 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1978 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1979 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1980 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1981 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1982 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1983 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1984 features/aarch64-core.c, features/aarch64-fpu.c,
1985 features/aarch64-pauth.c, features/aarch64-sve.c,
1986 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1987 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1988 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1989 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1990 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1991 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1992 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1993 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1994 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1995 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1996 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1997 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1998 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1999 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2000 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2001 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2002 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2003 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2004 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2005 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2006 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2007 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2008 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2009 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2010 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2011 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2012 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2013 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2014 minsyms.c, mips-linux-tdep.c, namespace.h,
2015 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2016 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2017 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2018 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2019 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2020 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2021 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2022 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2023 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2024 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2025 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2026 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2027 procfs.c, producer.c, progspace.h, psymtab.h,
2028 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2029 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2030 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2031 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2032 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2033 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2034 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2035 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2036 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2037 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2038 target-memory.c, target.c, target.h, target/waitstatus.c,
2039 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2040 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2041 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2042 unittests/array-view-selftests.c,
2043 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2044 unittests/common-utils-selftests.c,
2045 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2046 unittests/format_pieces-selftests.c,
2047 unittests/function-view-selftests.c,
2048 unittests/lookup_name_info-selftests.c,
2049 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2050 unittests/mkdir-recursive-selftests.c,
2051 unittests/observable-selftests.c,
2052 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2053 unittests/parse-connection-spec-selftests.c,
2054 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2055 unittests/scoped_fd-selftests.c,
2056 unittests/scoped_mmap-selftests.c,
2057 unittests/scoped_restore-selftests.c,
2058 unittests/string_view-selftests.c, unittests/style-selftests.c,
2059 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2060 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2061 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2062 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2063 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2064 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2065
5b0e2db4
AB
20662019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2069 bool value.
2070 (decode_digits_ordinary): Set explicit_line field in sal.
2071 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2072 symtab_and_line that was set on an explicit line number in
2073 assembler code. Do always update the recorded symtab and line if
2074 we do skip the prologue.
2075
0ba852ab
AB
20762019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * breakpoint.c (set_breakpoint_location_function): Remove
2079 explicit_loc parameter.
2080 (momentary_breakpoint_from_master): Update call to
2081 set_breakpoint_location_function.
2082 (add_location_to_breakpoint): Likewise.
2083
b3a7d171
AB
20842019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2087 required features based on default bfd type when no specific bfd
2088 is present.
2089
1f6f6e21
PW
20902019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2091
2092 * NEWS: Mention that GDB printf and eval commands can now print
2093 C-style and Ada-style convenience var strings without
2094 calling the inferior.
2095 * printcmd.c (printf_c_string): Locally print GDB internal var
2096 instead of transiting via the inferior.
2097 (printf_wide_c_string): Likewise.
2098
20992019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2100
2101 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2102
0598af48
TT
21032019-07-04 Tom Tromey <tom@tromey.com>
2104
2105 PR tui/24724:
2106 * tui/tui-winsource.c (tui_clear_source_content): Update.
2107 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2108 (tui_update_breakpoint_info): Update.
2109 (tui_set_exec_info_content): Update.
2110 * tui/tui-source.c (tui_set_source_content_nil): Update.
2111 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2112 has_break.
2113 * tui/tui-data.h (enum tui_bp_flag): New.
2114 (tui_bp_flags): New enum flags type.
2115 (struct tui_source_element) <break_mode>: Change type. Rename
2116 from has_break.
2117 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2118 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2119 constants.
2120 * tui/tui-winsource.h: Fix comment.
2121
350fab54
AH
21222019-07-04 Alan Hayward <alan.hayward@arm.com>
2123
2124 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2125 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2126 (store_fpregs_to_thread)
2127 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2128 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2129 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2130 (IWMMXT_REGS_SIZE): Add define.
2131 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2132 (fetch_vfp_regs, store_vfp_regs)
2133 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2134 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2135
f0452268
AH
21362019-07-04 Alan Hayward <alan.hayward@arm.com>
2137
2138 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2139 defines.
2140 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2141 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2142 (ARM_INT_REGISTER_SIZE): ...to this.
2143 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2144 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2145 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2146 (arm_linux_collect_gregset, supply_nwfpe_register)
2147 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2148 defines.
2149 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2150 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2151 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2152 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2153 (arm_return_in_memory, arm_store_return_value)
2154 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2155 (arm_record_ld_st_multiple): Likewise.
2156 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2157 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2158
e935475c
AH
21592019-07-04 Alan Hayward <alan.hayward@arm.com>
2160
2161 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2162 AARCH64_DISPLACED_MODIFIED_INSNS.
2163 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2164 (aarch64_displaced_step_copy_insn): Likewise.
2165 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2166 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2167 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2168 ARM_DISPLACED_MODIFIED_INSNS.
2169 * arm-tdep.c (arm_gdbarch_init): Likewise.
2170 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2171 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2172 (struct arm_displaced_step_closure): Use
2173 ARM_DISPLACED_MODIFIED_INSNS.
2174
df0bb381
AH
21752019-07-04 Alan Hayward <alan.hayward@arm.com>
2176
2177 * features/Makefile: Remove unused xml files.
2178 * features/aarch64.xml: Remove.
2179 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2180 * features/i386/amd64-avx-avx512.xml: Remove.
2181 * features/i386/amd64-avx-linux.xml: Remove.
2182 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2183 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2184 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2185 * features/i386/amd64-avx-mpx.xml: Remove.
2186 * features/i386/amd64-avx.xml: Remove.
2187 * features/i386/amd64-linux.xml: Remove.
2188 * features/i386/amd64-mpx-linux.xml: Remove.
2189 * features/i386/amd64-mpx.xml: Remove.
2190 * features/i386/amd64.xml: Remove.
2191 * features/i386/i386-avx-avx512-linux.xml: Remove.
2192 * features/i386/i386-avx-avx512.xml: Remove.
2193 * features/i386/i386-avx-linux.xml: Remove.
2194 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2195 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2196 * features/i386/i386-avx-mpx-linux.xml: Remove.
2197 * features/i386/i386-avx-mpx.xml: Remove.
2198 * features/i386/i386-avx.xml: Remove.
2199 * features/i386/i386-linux.xml: Remove.
2200 * features/i386/i386-mmx-linux.xml: Remove.
2201 * features/i386/i386-mmx.xml: Remove.
2202 * features/i386/i386-mpx-linux.xml: Remove.
2203 * features/i386/i386-mpx.xml: Remove.
2204 * features/i386/i386.xml: Remove.
2205 * features/i386/x32-avx-avx512-linux.xml: Remove.
2206 * features/i386/x32-avx-linux.xml: Remove.
2207 * features/i386/x32-linux.xml: Remove.
2208
edd6266a
AH
22092019-07-04 Alan Hayward <alan.hayward@arm.com>
2210
2211 * regformats/aarch64.dat: Remove.
2212 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2213 * regformats/i386/amd64-avx-linux.dat: Remove.
2214 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2215 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2216 * regformats/i386/amd64-linux.dat: Remove.
2217 * regformats/i386/amd64-mpx-linux.dat: Remove.
2218 * regformats/i386/amd64.dat: Remove.
2219 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2220 * regformats/i386/i386-avx-linux.dat: Remove.
2221 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2222 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2223 * regformats/i386/i386-linux.dat: Remove.
2224 * regformats/i386/i386-mmx-linux.dat: Remove.
2225 * regformats/i386/i386-mpx-linux.dat: Remove.
2226 * regformats/i386/i386.dat: Remove.
2227 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2228 * regformats/i386/x32-avx-linux.dat: Remove.
2229 * regformats/i386/x32-linux.dat: Remove.
2230
2b40fda7
AH
22312019-07-04 Alan Hayward <alan.hayward@arm.com>
2232
2233 * aarch64-tdep.c: Remove xml self tests.
2234 * amd64-linux-tdep.c: Likewise.
2235 * amd64-tdep.c: Likewise.
2236 * i386-linux-tdep.c: Likewise.
2237 * i386-tdep.c: Likewise.
2238
5f4ba3e7
PA
22392019-07-03 Pedro Alves <palves@redhat.com>
2240
2241 PR cli/24732
2242 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2243 (pipe_cmd_option_defs): New.
2244 (make_pipe_cmd_options_def_group): New.
2245 (pipe_command): Use gdb::option::process_options.
2246 (pipe_command_completer): New function.
2247 (_initialize_cli_cmds): Install completer for "pipe" command.
2248
3d9be6f5
PA
22492019-07-03 Pedro Alves <palves@redhat.com>
2250
2251 * cli/cli-option.c (union option_value) <string>: New field.
2252 (struct option_def_and_value): Add ctor, move ctor, dtor and
2253 use DISABLE_COPY_AND_ASSIGN.
2254 (option_def_and_value::clear_value): New.
2255 (parse_option, save_option_value_in_ctx, get_val_type_str)
2256 (add_setshow_cmds_for_options): Handle var_string.
2257 * cli-option.h (union option_def::var_address) <string>: New
2258 field.
2259 (struct string_option_def): New.
2260 * maint-test-options.c (struct test_options_opts): Add default
2261 ctor and use DISABLE_COPY_AND_ASSIGN.
2262 <string_opt>: New field.
2263 (test_options_opts::~test_options_opts): New.
2264 (test_options_opts::dump): Also dump "-string".
2265 (test_options_option_defs): Install "string.
2266
41fc454c
PA
22672019-07-03 Pedro Alves <palves@redhat.com>
2268
2269 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2270 option_value with a null enumeration.
2271 (complete_options): Save the option values in the context.
2272 (save_option_value_in_ctx): New, factored out from ...
2273 (process_options): ... here.
2274 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2275 of the function.
2276 * maint-test-options.c (test_options_opts::dump): New, factored
2277 out from ...
2278 (maintenance_test_options_command_mode): ... here.
2279 (maintenance_test_options_command_completion_result): Delete.
2280 (maintenance_test_options_command_completion_text): Update
2281 comment.
2282 (maintenance_show_test_options_completion_result): Change
2283 prototype. Just print
2284 maintenance_test_options_command_completion_text.
2285 (save_completion_result): New.
2286 (maintenance_test_options_completer_mode): Pass options context to
2287 complete_options, and then save a dump.
2288 (_initialize_maint_test_options): Use add_cmd to install "maint
2289 show test-options-completion-result".
2290
fdbc9870
PA
22912019-07-03 Pedro Alves <palves@redhat.com>
2292
2293 * NEWS (New commands): Mention "with" and "maint with".
2294 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2295 (with_command, with_command_completer): New.
2296 (pipe_command): Adjust to new repeat_previous
2297 interface.
2298 (_initialize_cli_cmds): Install the "with" command and its "w"
2299 alias.
2300 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2301 declarations.
2302 * cli/cli-setshow.c (parse_cli_var_uinteger)
2303 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2304 argument strings for all var_types.
2305 (get_setshow_command_value_string): New, factored out from ...
2306 (do_show_command): ... this.
2307 * cli/cli-setshow.h: Include <string>.
2308 (get_setshow_command_value_string): Declare.
2309 * command.h (repeat_previous): Now returns const char *. Adjust
2310 comment.
2311 * maint.c: Include "cli/cli-cmds.h".
2312 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2313 (_initialize_maint_cmds): Register the "maintenance with" command.
2314 * top.c (repeat_previous): Move bits from pipe_command here:
2315 Return the saved command line, if any; error out if there's no
2316 command to relaunch.
2317
c6ac8931
PA
23182019-07-03 Pedro Alves <palves@redhat.com>
2319
2320 * NEWS (New commands): Mention "maint set/show test-settings"
2321 instead of "maint test-settings".
2322 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2323 (maintenance_test_settings_set_list): Rename to ...
2324 (maintenance_set_test_settings_list): ... this.
2325 (maintenance_test_settings_show_list): Rename to ...
2326 (maintenance_show_test_settings_list): ... this.
2327 (maintenance_test_settings_cmd): Delete.
2328 (maintenance_test_settings_set_cmd): ...
2329 (maintenance_set_test_settings_cmd): ... this.
2330 (maintenance_test_settings_show_cmd): ...
2331 (maintenance_show_test_settings_cmd): ... this.
2332 (maintenance_test_settings_show_value_cmd):
2333 (maintenance_show_test_settings_value_cmd): ... this.
2334 (_initialize_maint_test_settings): No longer install the "maint
2335 test-settings" prefix command. Rename "maint test-settings set"
2336 to "maint set test-settings", and "maint test-settings show" to
2337 "maint show test-settings". Adjust all subcommands.
2338
d1fcf2fd
PA
23392019-07-03 Pedro Alves <palves@redhat.com>
2340
2341 * maint-test-settings.c: Fix file's intro comment. Replace all
2342 references to "test-options" with references to "test-settings",
2343 in comments.
2344
970f9d09
PA
23452019-07-03 Pedro Alves <palves@redhat.com>
2346
2347 * maint-test-settings.c (maintenance_test_settings_xxx)
2348 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2349 New.
2350 (maintenance_test_settings_enums): Use them.
2351 (maintenance_test_settings_enum): Default to
2352 maintenance_test_settings_xxx.
2353 (_initialize_maint_test_settings): Initialize
2354 MAINTENANCE_TEST_SETTINGS_FILENAME.
2355
f3869b1a
SM
23562019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2357
2358 * breakpoint.h (remove_breakpoints_inf): Change return type to
2359 void, move function documentation here.
2360 * breakpoint.c (remove_breakpoints_inf): Change return type to
2361 void, move function documentation to header.
2362
54d66006
PA
23632019-07-02 Pedro Alves <palves@redhat.com>
2364
2365 * NEWS (Completion improvements): Mention "info threads".
2366 * thread.c (struct info_threads_opts, info_threads_option_defs)
2367 (make_info_threads_options_def_group): New.
2368 (info_threads_command): Use gdb::option::process_options.
2369 (info_threads_command_completer): New.
2370 (_initialize_thread): Use gdb::option::build_help to build the
2371 help text for "info threads".
2372
854f6088
SM
23732019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2374
2375 * defs.h (generic_load): Move from here...
2376 * symfile.h (generic_load): ... to here. Rename name parameter
2377 to args.
2378 * symfile.c (generic_load): Add comment.
2379
54ee4252
TT
23802019-07-01 Tom Tromey <tromey@adacore.com>
2381
2382 * dwarf2read.c
2383 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2384 declaration of without_params. Fix formatting.
2385
65392b3e
TT
23862019-07-01 Tom Tromey <tromey@adacore.com>
2387
2388 * ada-exp.y (find_primitive_type): Update.
2389 * ada-lang.h (ada_lookup_symbol): Update.
2390 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2391 parameter.
2392 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2393
7d7571f0
SDJ
23942019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2395
2396 PR breakpoints/24541
2397 * gdbarch.c: Regenerate.
2398 * gdbarch.h: Regenerate.
2399 * gdbarch.sh: Add 'stap_adjust_register'.
2400 * i386-tdep.c: Include '<unordered_set>'.
2401 (i386_stap_adjust_register): New function.
2402 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2403 * stap-probe.c (stap_parse_register_operand): Call
2404 'gdbarch_stap_adjust_register'.
2405
5af5392a
SDJ
24062019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2407
2408 PR python/24742
2409 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2410 * python/python.c (do_start_initialization): Use 'xmalloc'
2411 instead of 'PyMem_Malloc'.
2412
10d06d82
TT
24132019-06-28 Tom Tromey <tromey@adacore.com>
2414
2415 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2416 for Ada.
2417
1b7f24cd
TT
24182019-06-27 Tom Tromey <tromey@adacore.com>
2419
2420 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2421 objfile_key.
2422 (arm_find_mapping_symbol, arm_record_special_symbol)
2423 (_initialize_arm_tdep): Update.
2424 (arm_objfile_data_free): Remove.
2425
3d507ff2
TT
24262019-06-27 Tom Tromey <tromey@adacore.com>
2427
2428 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2429 to cp_print_static_field.
2430
762c164d
TT
24312019-06-26 Tom Tromey <tromey@adacore.com>
2432
2433 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2434 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2435 declare.
2436
aa2f9bcf
AH
24372019-06-26 Alan Hayward <alan.hayward@arm.com>
2438
2439 * features/aarch64-core.c (create_feature_aarch64_core):
2440 Regenerate.
2441 * features/aarch64-core.xml: Add cpsr flags.
2442
3426ae57
AH
24432019-06-26 Alan Hayward <alan.hayward@arm.com>
2444
2445 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2446 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2447
4838e44c
SM
24482019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2451 field.
2452 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2453 use.
2454 (arm_record_special_symbol): Don't insert new symbol in sorted
2455 position, push it at the end.
2456
54cc7474
SM
24572019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2458
2459 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2460 (arm_mapping_symbol_s): Remove.
2461 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2462 (arm_mapping_symbol_vec): New typedef.
2463 (struct arm_per_objfile): Add constructor.
2464 <section_maps>: Change type to
2465 std::unique_ptr<arm_mapping_symbol_vec[]>.
2466 (arm_compare_mapping_symbols): Remove.
2467 (arm_find_mapping_symbol): Adjust to section_maps type change.
2468 (arm_objfile_data_free): Call delete on arm_per_objfile.
2469 (arm_record_special_symbol): Adjust to section_maps type change.
2470 Allocate arm_per_objfile with new.
2471
b65b566c
PW
24722019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2473
2474 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2475 with the command prefix.
2476
c2fc64f5
TT
24772019-06-25 Tom Tromey <tom@tromey.com>
2478
2479 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2480 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2481
fb54fa76
TT
24822019-06-25 Tom Tromey <tom@tromey.com>
2483
2484 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2485 type.
2486 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2487 protected.
2488
f7952c57
TT
24892019-06-25 Tom Tromey <tom@tromey.com>
2490
2491 * tui/tui-winsource.c
2492 (tui_source_window_base::set_is_exec_point_at): Add check against
2493 LOA_ADDRESS.
2494
17568d78
TT
24952019-06-25 Tom Tromey <tom@tromey.com>
2496
2497 * tui/tui-source.c (tui_set_source_content): Don't check before
2498 xfree.
2499 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2500
53e7cdba
TT
25012019-06-25 Tom Tromey <tom@tromey.com>
2502
2503 * tui/tui-winsource.h (tui_update_source_window_as_is)
2504 (tui_alloc_source_buffer, tui_line_is_displayed)
2505 (tui_addr_is_displayed): Change type of win_info.
2506 * tui/tui-winsource.c (tui_update_source_window_as_is)
2507 (tui_clear_source_content, tui_show_source_line)
2508 (tui_show_source_content, tui_source_window_base::refill)
2509 (tui_source_window_base::set_is_exec_point_at)
2510 (tui_source_window_base::set_is_exec_point_at)
2511 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2512 (tui_alloc_source_buffer, tui_line_is_displayed)
2513 (tui_addr_is_displayed): Change type of win_info. Update.
2514 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2515 (tui_source_window_base::do_make_visible_with_new_height):
2516 Update.
2517 * tui/tui-source.c (tui_set_source_content)
2518 (tui_set_source_content_nil)
2519 (tui_source_window::do_scroll_vertical): Update.
2520 * tui/tui-layout.c (show_layout): Update.
2521 * tui/tui-disasm.c (tui_set_disassem_content)
2522 (tui_disasm_window::do_scroll_vertical): Update.
2523 * tui/tui-data.h (tui_win_content): Remove.
2524 (struct tui_gen_win_info) <content, content_size>: Remove.
2525 (struct tui_source_element): Add initializers and destructor.
2526 (union tui_which_element, struct tui_win_element): Remove.
2527 (struct tui_source_window_base) <content>: New field.
2528 (struct tui_data_window): Remove destructor.
2529 (tui_alloc_content, tui_free_win_content)
2530 (tui_free_all_source_wins_content): Don't declare.
2531 * tui/tui-data.c (tui_initialize_static_data): Update.
2532 (init_content_element, tui_alloc_content): Remove.
2533 (~tui_gen_win_info): Update.
2534 (~tui_data_window, tui_free_all_source_wins_content)
2535 (tui_free_win_content, free_content, free_content_elements):
2536 Remove.
2537
7908abbf
TT
25382019-06-25 Tom Tromey <tom@tromey.com>
2539
2540 * tui/tui-winsource.h (tui_clear_source_content)
2541 (tui_erase_source_content, tui_show_source_content): Change type
2542 of win_info.
2543 * tui/tui-winsource.c (tui_clear_source_content)
2544 (tui_erase_source_content, tui_show_source_content): Change type
2545 of win_info.
2546 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2547 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2548 win_info.
2549 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2550 win_info.
2551 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2552
02c28df0
TT
25532019-06-25 Tom Tromey <tom@tromey.com>
2554
2555 * tui/tui-winsource.c (tui_clear_source_content)
2556 (tui_source_window_base::set_is_exec_point_at): Update.
2557 * tui/tui-source.c (tui_set_source_content_nil): Update.
2558 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2559 a bool.
2560 * tui/tui-data.c (init_content_element): Update.
2561
6658b1bf
TT
25622019-06-25 Tom Tromey <tom@tromey.com>
2563
2564 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2565 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2566 * tui/tui-layout.c (init_and_make_win): Update.
2567 * tui/tui.h (enum tui_win_type): Update.
2568 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2569 tui_win_is_auxillary.
2570 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2571 tui_win_is_auxillary.
2572
21e1c91e
TT
25732019-06-25 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2576 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2577 (tui_delete_data_content_windows, tui_display_all_data)
2578 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2579 Update.
2580 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2581 * tui/tui-regs.c (tui_last_regs_line_no)
2582 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2583 (tui_show_registers): Update.
2584 (tui_show_register_group): Return void. Update.
2585 (tui_display_registers_from, tui_display_reg_element_at_line)
2586 (tui_display_registers_from_line, tui_check_register_values):
2587 Update.
2588 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2589 member.
2590 (struct tui_data_window) <regs_content>: Now a std::vector.
2591 <regs_content_count>: Remove.
2592 (tui_add_content_elements, tui_free_data_content): Don't declare.
2593 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2594 (init_content_element): Remove DATA_WIN case. Add assert.
2595 (tui_add_content_elements): Remove.
2596 (tui_data_window): Update.
2597 (tui_free_data_content): Remove.
2598 (free_content_elements): Remove DATA_WIN case.
2599
115ac53b
TT
26002019-06-25 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-data.c (tui_data_item_window): Update.
2603 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2604 * tui/tui-windata.c (tui_display_all_data)
2605 (tui_display_data_from_line): Update.
2606 (tui_check_data_values): Remove.
2607 * tui/tui-regs.c (tui_show_register_group)
2608 (tui_display_reg_element_at_line): Update.
2609 * tui/tui-hooks.c (tui_register_changed)
2610 (tui_refresh_frame_and_register_information): Call
2611 tui_check_register_values.
2612 * tui/tui-data.h (struct tui_data_window) <data_content,
2613 data_content_count, data_type>: Remove.
2614 (enum tui_data_type): Remove.
2615
2616 * tui/tui-data.c (tui_data_window::clear_detail)
2617 (~tui_data_window): Update.
2618
eaf9738b
TT
26192019-06-25 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2622 declare.
2623 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2624 Rename from tui_first_data_item_displayed. Update.
2625 (tui_data_window::refresh_all)
2626 (tui_data_window::do_scroll_vertical): Update.
2627 * tui/tui-data.h (struct tui_data_window)
2628 <first_data_item_displayed>: Declare new method.
2629
31ca4723
TT
26302019-06-25 Tom Tromey <tom@tromey.com>
2631
2632 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2633 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2634 contents...
2635 (tui_initialize_static_data): ...here.
2636
41bcff7f
TT
26372019-06-25 Tom Tromey <tom@tromey.com>
2638
2639 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2640 (tui_display_registers_from, tui_check_register_values): Update.
2641 (tui_display_register): Remove win_info parameter; update.
2642 (tui_get_register): Change type of parameters.
2643 * tui/tui-data.h (struct tui_data_element): Remove.
2644 (union tui_which_element) <data>: Remove.
2645 <data_window>: Change type.
2646 (struct tui_data_item_window): New.
2647 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2648 case. Add assert.
2649 (~tui_data_item_window): New destructor.
2650 (free_content_elements): Remove DATA_ITEM_WIN case.
2651
d2802c33
TT
26522019-06-25 Tom Tromey <tom@tromey.com>
2653
2654 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2655 Remove.
2656
dd835f8b
TT
26572019-06-25 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-data.h (struct tui_command_element): Remove.
2660 (union tui_which_element) <command>: Remove.
2661 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2662 assert.
2663 (free_content_elements): Remove CMD_WIN case.
2664
bd7db367
TT
26652019-06-25 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-layout.c (tui_set_layout): Update.
2668 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2669 * tui/tui-data.c (layout_def): Update.
2670
3add462f
TT
26712019-06-25 Tom Tromey <tom@tromey.com>
2672
2673 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2674 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2675 (tui_source_window_base::set_new_height): Update.
2676 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2677 Update.
2678 (tui_set_locator_fullname, tui_set_locator_info)
2679 (tui_show_frame_info): Update.
2680 * tui/tui-source.c (tui_set_source_content)
2681 (tui_source_is_displayed): Update.
2682 * tui/tui-layout.c (show_source_disasm_command, show_data)
2683 (show_source_or_disasm_and_command): Update.
2684 * tui/tui-disasm.c (tui_set_disassem_content)
2685 (tui_get_begin_asm_address): Update.
2686 * tui/tui-data.h (struct tui_locator_element): Remove.
2687 (union tui_which_element) <locator>: Remove.
2688 (struct tui_locator_window): New.
2689 (tui_locator_win_info_ptr): Change return type.
2690 * tui/tui-data.c (_locator): Change type.
2691 (tui_locator_win_info_ptr): Change return type.
2692 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2693 (tui_alloc_content): Add assert.
2694
489e9d8b
TT
26952019-06-25 Tom Tromey <tom@tromey.com>
2696
2697 * tui/tui-winsource.c
2698 (tui_exec_info_window::maybe_allocate_content): New method.
2699 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2700 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2701 (make_source_or_disasm_window): Add cast.
2702 * tui/tui-data.h (union tui_which_element) <simple_string>:
2703 Remove.
2704 (struct tui_source_info): New.
2705 (struct tui_source_window_base) <execution_info>: Change type.
2706 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2707 case, and add assert.
2708 (tui_alloc_content): Add assert.
2709
c3fabb7d
TT
27102019-06-25 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2713 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2714 * tui/tui-data.c (tui_alloc_win_info): Remove.
2715
bbc228ee
TT
27162019-06-25 Tom Tromey <tom@tromey.com>
2717
2718 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2719 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2720 can_highlight.
2721
5fcee43a
TT
27222019-06-25 Tom Tromey <tom@tromey.com>
2723
2724 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2725 make_visible_with_new_height method.
2726 (tui_win_info::make_visible_with_new_height): New method.
2727 (tui_source_window_base::do_make_visible_with_new_height)
2728 (tui_data_window::do_make_visible_with_new_height)
2729 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2730 (make_visible_with_new_height): Remove.
2731 (tui_resize_all, tui_adjust_win_heights): Use
2732 make_visible_with_new_height method.
2733 * tui/tui-data.h (struct tui_win_info)
2734 <do_make_visible_with_new_height, make_visible_with_new_height>:
2735 New methods.
2736 (struct tui_source_window_base, struct tui_data_window)
2737 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2738 methods.
2739
d83f1fe6
TT
27402019-06-25 Tom Tromey <tom@tromey.com>
2741
2742 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2743 method.
2744 (update_tab_width): Call update_tab_width method.
2745 * tui/tui-data.h (struct tui_win_info)
2746 (struct tui_source_window_base) <update_tab_width>: New methods.
2747
17374de4
TT
27482019-06-25 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2751 parameter.
2752 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2753 parameter.
2754 (tui_gen_win_info::make_visible): Update.
2755 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2756 parameter.
2757 * tui/tui-data.h (enum tui_box): New enum.
2758 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2759
f936bca2
TT
27602019-06-25 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2763 init_and_make_win for EXEC_INFO_WIN.
2764 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2765 longer inline.
2766 (struct tui_win_info) <~tui_win_info>: Inline.
2767 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2768 Don't declare.
2769 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2770 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2771 Remove.
2772 (tui_initialize_static_data): Update.
2773 (~tui_gen_win_info): Handle more cleanup here.
2774 (~tui_source_window_base): Delete "execution_info".
2775 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2776
d6ba6a11
TT
27772019-06-25 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui-layout.c (make_command_window): Don't set
2780 can_highlight.
2781 (show_source_disasm_command): Call the reset method.
2782 (show_data): Don't set can_highlight. Call the reset method.
2783 (tui_gen_win_info::reset): Rename from init_gen_win_info
2784 (init_and_make_win): Simplify. Return tui_gen_win_info.
2785 (show_source_or_disasm_and_command): Call the reset method.
2786 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2787 (struct tui_cmd_window): Set can_highlight.
2788
48a3bd16
TT
27892019-06-25 Tom Tromey <tom@tromey.com>
2790
2791 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2792 from make_visible.
2793 (tui_make_visible, tui_make_invisible): Rewrite.
2794 (tui_win_info::make_visible): Remove.
2795 (tui_source_window_base::make_visible): Update.
2796 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2797 method. Moved from...
2798 (struct tui_win_info) <make_visible>: ...here.
2799
c3bd716f
TT
28002019-06-25 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-winsource.c
2803 (tui_source_window_base::do_scroll_horizontal): Remove direction
2804 parameter.
2805 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2806 direction parameter.
2807 * tui/tui-win.c (tui_win_info::forward_scroll)
2808 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2809 (tui_win_info::right_scroll): Update.
2810 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2811 direction parameter.
2812 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2813 direction parameter.
2814 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2815 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2816 Remove direction parameter.
2817 (struct tui_source_window_base, struct tui_source_window)
2818 (struct tui_disasm_window, struct tui_data_window)
2819 (struct tui_cmd_window): Update.
2820
21c32dca
TT
28212019-06-25 Tom Tromey <tom@tromey.com>
2822
2823 * tui/tui-winsource.h (tui_set_exec_info_content)
2824 (tui_show_exec_info_content, tui_erase_exec_info_content)
2825 (tui_clear_exec_info_content, tui_update_exec_info): Change
2826 argument to tui_source_window_base.
2827 * tui/tui-winsource.c (tui_set_exec_info_content)
2828 (tui_show_exec_info_content, tui_erase_exec_info_content)
2829 (tui_clear_exec_info_content, tui_update_exec_info): Change
2830 argument to tui_source_window_base.
2831
73fbdc65
TT
28322019-06-25 Tom Tromey <tom@tromey.com>
2833
2834 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2835 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2836
33325343
TT
28372019-06-25 Tom Tromey <tom@tromey.com>
2838
2839 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2840 check.
2841
29d2c474
TT
28422019-06-25 Tom Tromey <tom@tromey.com>
2843
2844 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2845 type to void.
2846 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2847 type to void.
2848 * tui/tui-source.c (tui_set_source_content): Update.
2849 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2850
152f3f4b
TT
28512019-06-25 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-win.c (window_name_completer, tui_set_focus)
2854 (tui_all_windows_info): Use name method.
2855 * tui/tui-data.h (struct tui_gen_win_info)
2856 (struct tui_source_window, struct tui_disasm_window)
2857 (struct tui_data_window, struct tui_cmd_window) <name>: New
2858 method.
2859 (tui_win_name): Don't declare.
2860 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2861 (tui_win_name): Remove.
2862
be4da588
TT
28632019-06-25 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-winsource.h (tui_update_source_window)
2866 (tui_update_source_window_as_is): Change parameter type.
2867 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2868 to be a tui_source_window_base.
2869 (tui_update_source_window_as_is): Likewise.
2870 * tui/tui-win.c (make_visible_with_new_height): Update.
2871
5b81daba
TT
28722019-06-25 Tom Tromey <tom@tromey.com>
2873
2874 * tui/tui-winsource.c (tui_erase_source_content)
2875 (tui_show_source_content, tui_show_exec_info_content)
2876 (tui_erase_exec_info_content): Use refresh_window method.
2877 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2878 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2879 from tui_refresh_win.
2880 (tui_data_window::refresh_window): New method.
2881 (tui_win_info::refresh, tui_source_window_base::refresh)
2882 (tui_refresh_all): Use refresh_window method.
2883 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2884 method.
2885 * tui/tui-regs.c (tui_display_register): Call refresh_window
2886 method.
2887 * tui/tui-layout.c (show_source_disasm_command)
2888 (show_source_or_disasm_and_command): Call refresh_window method.
2889 * tui/tui-data.h (struct tui_gen_win_info)
2890 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2891 New method.
2892
cb2ce893
TT
28932019-06-25 Tom Tromey <tom@tromey.com>
2894
2895 * tui/tui.c (tui_rl_other_window, tui_enable)
2896 (tui_is_window_visible, tui_get_command_dimension): Update.
2897 * tui/tui-winsource.c (tui_update_source_window_as_is)
2898 (tui_clear_source_content, tui_erase_source_content)
2899 (tui_show_source_line, tui_source_window_base::refill)
2900 (tui_source_window_base::do_scroll_horizontal)
2901 (tui_source_window_base::set_is_exec_point_at)
2902 (tui_update_breakpoint_info, tui_set_exec_info_content)
2903 (tui_alloc_source_buffer, tui_line_is_displayed)
2904 (tui_addr_is_displayed): Update.
2905 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2906 (tui_check_and_display_highlight_if_needed)
2907 (tui_win_info::make_visible, tui_win_info::refresh)
2908 (tui_refresh_all): Update.
2909 * tui/tui-windata.c (tui_first_data_item_displayed)
2910 (tui_delete_data_content_windows, tui_erase_data_content)
2911 (tui_display_all_data, tui_data_window::refresh_all)
2912 (tui_check_data_values): Update.
2913 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2914 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2915 (tui_win_info::backward_scroll, tui_refresh_all_win)
2916 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2917 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2918 (tui_source_window_base::set_new_height)
2919 (tui_data_window::set_new_height)
2920 (make_invisible_and_set_new_height)
2921 (make_visible_with_new_height, new_height_ok)
2922 (parse_scrolling_args): Update.
2923 * tui/tui-stack.c (tui_show_frame_info): Update.
2924 * tui/tui-source.c (tui_set_source_content)
2925 (tui_set_source_content_nil, tui_source_is_displayed)
2926 (tui_source_window::do_scroll_vertical): Update.
2927 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2928 (tui_display_registers_from, tui_display_reg_element_at_line)
2929 (tui_check_register_values, tui_reg_command): Update.
2930 * tui/tui-layout.c (tui_default_win_height)
2931 (show_source_disasm_command, show_data, init_and_make_win)
2932 (show_source_or_disasm_and_command): Update.
2933 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2934 (tui_redisplay_readline, tui_mld_flush)
2935 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2936 (tui_getc): Update.
2937 * tui/tui-disasm.c (tui_set_disassem_content)
2938 (tui_disasm_window::do_scroll_vertical): Update.
2939 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2940 Now virtual.
2941 (struct tui_win_info): Derive from tui_gen_win_info.
2942 <~tui_win_info>: Mark as override.
2943 <generic>: Remove member.
2944 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2945 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2946 (~tui_data_window, ~tui_win_info)
2947 (tui_free_all_source_wins_content): Update.
2948 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2949
ab313b35
TT
29502019-06-25 Tom Tromey <tom@tromey.com>
2951
2952 * tui/tui-layout.c (init_and_make_win): Use new.
2953 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2954 destructor, initializers.
2955 (tui_alloc_generic_win_info): Don't declare.
2956 * tui/tui-data.c (_locator): Add argument to constructor.
2957 (source_win, disasm_win): New globals.
2958 (exec_info): Remove.
2959 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2960 Update.
2961 (tui_alloc_generic_win_info): Remove.
2962 (init_content_element): Use new.
2963 (tui_win_info::tui_win_info): Update.
2964 (free_content_elements) <case DATA_WIN>: Use delete.
2965
dc2c33e4
TT
29662019-06-25 Tom Tromey <tom@tromey.com>
2967
2968 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2969 * tui/tui-windata.c (tui_first_data_item_displayed)
2970 (tui_delete_data_content_windows): Update.
2971 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2972 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2973 (tui_display_registers_from, tui_check_register_values): Update.
2974 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2975 pointer.
2976 * tui/tui-data.c (init_content_element): Update. Allocate the new
2977 window.
2978 (tui_free_data_content): Update.
2979 (free_content_elements) <case DATA_WIN>: Free the window.
2980
214a5cbe
TT
29812019-06-25 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2984 Update.
2985 * tui/tui-layout.c (make_command_window)
2986 (show_source_disasm_command, show_data, init_and_make_win)
2987 (show_source_or_disasm_and_command): Update.
2988 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2989 method.
2990 <can_highight, is_highlighted>: Now bool.
2991 (tui_set_win_highlight): Don't declare.
2992 * tui/tui-data.c (tui_set_win_highlight): Remove.
2993
8e2daf15
TT
29942019-06-25 Tom Tromey <tom@tromey.com>
2995
2996 * tui/tui-wingeneral.c (make_visible): Remove check of window
2997 type.
2998
8903bd8a
TT
29992019-06-25 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-win.c (tui_win_info::max_height)
3002 (tui_cmd_window::max_height): New methods.
3003 (new_height_ok): Call max_height.
3004 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3005 <max_height>: New method.
3006
3f02ce1e
TT
30072019-06-25 Tom Tromey <tom@tromey.com>
3008
3009 * tui/tui-win.c (tui_source_window_base::set_new_height)
3010 (tui_data_window::set_new_height): New methods.
3011 (make_invisible_and_set_new_height): Call set_new_height method.
3012 * tui/tui-data.h (struct tui_win_info)
3013 (struct tui_source_window_base, struct tui_data_window)
3014 <set_new_height>: New method.
3015
1825f487
TT
30162019-06-25 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3019 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3020 tui_refresh_data_win.
3021 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3022 method.
3023 (tui_refresh_all_win): Call the refresh_all method.
3024 (tui_set_focus): Likewise.
3025 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3026 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3027 Likewise.
3028
ad54d15b
TT
30292019-06-25 Tom Tromey <tom@tromey.com>
3030
3031 * tui/tui-winsource.h (tui_refill_source_window)
3032 (tui_set_is_exec_point_at): Don't declare.
3033 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3034 (tui_source_window_base::refill): Rename from
3035 tui_refill_source_window.
3036 (tui_source_window_base::do_scroll_horizontal): Update.
3037 (tui_source_window_base::set_is_exec_point_at): Rename from
3038 tui_set_is_exec_point_at.
3039 (tui_update_all_breakpoint_info): Update.
3040 * tui/tui-stack.c (tui_show_frame_info): Update.
3041 * tui/tui-layout.c (show_data): Add cast.
3042 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3043 * tui/tui-data.h (struct tui_source_window_base) <refill,
3044 set_is_exec_point_at>: New methods.
3045 (tui_source_windows, tui_add_to_source_windows): Update types.
3046 (tui_add_to_source_windows): Remove redundant declaration.
3047 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3048 (tui_source_windows): Change return type.
3049 (tui_clear_source_windows_detail): Update.
3050 (tui_add_to_source_windows): Change type of parameter.
3051 (tui_free_all_source_wins_content): Update.
3052
2042b506
TT
30532019-06-25 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-wingeneral.c (tui_win_info::refresh)
3056 (tui_source_window_base::refresh): New methods.
3057 (tui_refresh_all): Call the refresh method.
3058 * tui/tui-data.h (struct tui_win_info)
3059 (struct tui_source_window_base) <refresh>: New method.
3060
56122977
TT
30612019-06-25 Tom Tromey <tom@tromey.com>
3062
3063 * tui/tui.h (tui_is_window_visible): Return bool.
3064 * tui/tui.c (tui_is_window_visible): Return bool.
3065 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3066 (tui_make_visible, tui_make_invisible)
3067 (tui_win_info::make_visible)
3068 (tui_source_window_base::make_visible, make_all_visible)
3069 (tui_make_all_visible, tui_make_all_invisible): Update.
3070 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3071 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3072 bool.
3073 (struct tui_win_info, struct tui_source_window_base)
3074 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3075 * tui/tui-data.c (tui_init_generic_part): Update.
3076
cda37efb
TT
30772019-06-25 Tom Tromey <tom@tromey.com>
3078
3079 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3080 (tui_source_window_base::make_visible): New methods.
3081 (make_all_visible): Make method call.
3082 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3083 (struct tui_source_window_base, struct tui_cmd_window): Override
3084 make_visible.
3085 (tui_win_is_source_type): Don't declare.
3086 * tui/tui-data.c (tui_win_is_source_type): Remove.
3087
6a0ee02c
TT
30882019-06-25 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3091 NULL check.
3092
63901aec
TT
30932019-06-25 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3096 Inline constructor. Add initializers for members.
3097 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3098 constructors; now inline in class.
3099
ceb13a13
TT
31002019-06-25 Tom Tromey <tom@tromey.com>
3101
3102 * tui/tui-regs.c (tui_show_registers): Update.
3103 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3104 bool.
3105 * tui/tui-data.c (tui_data_window::clear_detail)
3106 (tui_data_window): Update.
3107
238eb706
TT
31082019-06-25 Tom Tromey <tom@tromey.com>
3109
3110 * tui/tui-windata.c (tui_display_all_data)
3111 (tui_display_data_from_line, tui_display_data_from)
3112 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3113 Update.
3114 * tui/tui-regs.c (tui_last_regs_line_no)
3115 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3116 (tui_show_registers, tui_show_register_group)
3117 (tui_display_registers_from, tui_display_reg_element_at_line)
3118 (tui_display_registers_from_line, tui_check_register_values)
3119 (tui_reg_next, tui_reg_prev): Update.
3120 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3121 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3122 tui_data_window.
3123 (struct tui_win_info) <detail>: Remove. Add new fields from
3124 tui_data_info.
3125 (TUI_DATA_WIN): Add cast.
3126 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3127 (~tui_data_window): Simplify.
3128
81491aa0
TT
31292019-06-25 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-layout.c (show_source_disasm_command)
3132 (show_source_or_disasm_and_command): Update.
3133 * tui/tui-io.c (update_cmdwin_start_line)
3134 (tui_redisplay_readline): Update.
3135 * tui/tui-data.h (struct tui_command_info): Remove.
3136 (struct tui_win_info) <detail>: Remove command_info member.
3137 (struct tui_data_window) <start_line>: New member, from
3138 tui_command_info.
3139 (TUI_CMD_WIN): Add casts.
3140
e6e41501
TT
31412019-06-25 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-winsource.c (tui_update_source_window)
3144 (tui_refill_source_window)
3145 (tui_source_window_base::do_scroll_horizontal)
3146 (tui_update_breakpoint_info, tui_set_exec_info_content)
3147 (tui_show_exec_info_content, tui_erase_exec_info_content)
3148 (tui_clear_exec_info_content): Update.
3149 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3150 Update.
3151 * tui/tui-win.c (make_invisible_and_set_new_height)
3152 (make_visible_with_new_height): Update.
3153 * tui/tui-source.c (tui_set_source_content)
3154 (tui_show_symtab_source): Update.
3155 * tui/tui-layout.c (extract_display_start_addr)
3156 (show_source_disasm_command, show_data)
3157 (make_source_or_disasm_window)
3158 (show_source_or_disasm_and_command): Update.
3159 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3160 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3161 "gdbarch".
3162 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3163 to tui_source_window_base.
3164 (struct tui_win_info) <detail>: Remove source_info member.
3165 (struct tui_source_window_base) <has_locator>: Inline.
3166 Move contents from tui_source_info; rename has_locator member to
3167 m_has_locator.
3168 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3169 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3170 header file.
3171 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3172 Simplify.
3173 (tui_free_all_source_wins_content): Cast to
3174 tui_source_window_base.
3175
44f0e208
TT
31762019-06-25 Tom Tromey <tom@tromey.com>
3177
3178 * tui/tui-win.c (make_invisible_and_set_new_height)
3179 (make_visible_with_new_height): Call has_locator method.
3180 * tui/tui-layout.c (show_source_disasm_command, show_data)
3181 (show_source_or_disasm_and_command): Update for bool change.
3182 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3183 (tui_win_info) <has_locator>: New method.
3184 (struct tui_source_window_base) <has_locator>: New method.
3185 (tui_win_has_locator): Don't declare.
3186 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3187 from tui_win_has_locator.
3188 (tui_source_window_base): Use false, not FALSE.
3189
7778b912
TT
31902019-06-25 Tom Tromey <tom@tromey.com>
3191
3192 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3193 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3194 clear_detail method directly.
3195 (tui_clear_win_detail): Remove.
3196
f83d391c
TT
31972019-06-25 Tom Tromey <tom@tromey.com>
3198
3199 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3200 "this", not TUI_DISASM_WIN.
3201
13446e05
TT
32022019-06-25 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3205 declare.
3206 * tui/tui-winsource.c
3207 (tui_source_window_base::do_scroll_horizontal): Rename from
3208 tui_horizontal_source_scroll.
3209 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3210 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3211 from tui_vertical_data_scroll.
3212 * tui/tui-win.h (tui_scroll): Don't declare.
3213 * tui/tui-win.c (tui_win_info::forward_scroll)
3214 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3215 (tui_win_info::right_scroll): Rename and update.
3216 (tui_scroll_forward_command, tui_scroll_backward_command)
3217 (tui_scroll_left_command, tui_scroll_right_command): Update.
3218 (tui_scroll): Remove.
3219 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3220 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3221 from tui_vertical_source_scroll.
3222 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3223 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3224 from tui_vertical_disassem_scroll.
3225 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3226 do_scroll_horizontal>: New methods.
3227 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3228 Likewise.
3229 (struct tui_source_window_base): Add do_scroll_horizontal.
3230 (struct tui_source_window, struct tui_disasm_window): Add
3231 do_scroll_vertical.
3232 (struct tui_data_window, struct tui_cmd_window): Add
3233 do_scroll_horizontal and do_scroll_vertical.
3234 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3235
5cf82909
TT
32362019-06-25 Tom Tromey <tom@tromey.com>
3237
3238 * tui/tui-data.h (struct tui_source_window_base): New struct.
3239 (struct tui_source_window): Derive from tui_source_window_base.
3240 (struct tui_disasm_window): New struct.
3241 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3242 from tui_source_window::clear_detail.
3243 (tui_source_window_base): Rename from tui_source_window.
3244 (~tui_source_window_base): Rename from ~tui_source_window.
3245 (tui_alloc_win_info): Create a tui_disasm_window.
3246
ee1d42d6
TT
32472019-06-25 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-data.h (struct tui_source_window)
3250 (struct tui_data_window): Declare destructors.
3251 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3252 destructors.
3253 (tui_win_info): Simplify.
3254
b4eb2452
TT
32552019-06-25 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-winsource.c (tui_display_main)
3258 (tui_update_source_windows_with_addr)
3259 (tui_update_all_breakpoint_info): Update.
3260 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3261 (new_height_ok, parse_scrolling_args): Update.
3262 * tui/tui-stack.c (tui_show_frame_info): Update.
3263 * tui/tui-data.h (struct tui_list): Remove.
3264 (tui_source_windows): Return a reference to a std::vector.
3265 * tui/tui-data.c (source_windows): Now a std::vector.
3266 (tui_source_windows): Change return type.
3267 (tui_clear_source_windows): Rewrite.
3268 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3269 (tui_free_all_source_wins_content): Rewrite.
3270
8761a91b
TT
32712019-06-25 Tom Tromey <tom@tromey.com>
3272
3273 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3274 (struct tui_data_window, struct tui_cmd_window): Declare
3275 clear_detail method.
3276 * tui/tui-data.c (tui_source_window::clear_detail)
3277 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3278 methods.
3279 (tui_clear_win_detail): Simplify.
3280
0ed69eda
TT
32812019-06-25 Tom Tromey <tom@tromey.com>
3282
3283 * tui/tui-layout.c (make_source_window, make_disasm_window)
3284 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3285 Return the new window.
3286 (show_source_disasm_command, show_data)
3287 (show_source_or_disasm_and_command): Update.
3288
82432e10
TT
32892019-06-25 Tom Tromey <tom@tromey.com>
3290
3291 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3292 parameter. Return the new window.
3293 (show_source_disasm_command): Update and remove NULL check.
3294 (show_source_or_disasm_and_command): Update.
3295
ec328aa5
TT
32962019-06-25 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3299
33b906ab
TT
33002019-06-25 Tom Tromey <tom@tromey.com>
3301
3302 * tui/tui-data.h (struct tui_win_info): Make constructor
3303 protected. Make destructor virtual. Add initializers.
3304 (tui_source_window, tui_data_window, tui_cmd_window): New
3305 classes.
3306 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3307 constructor. Add "type" parameter.
3308 (tui_source_window, tui_data_window, tui_cmd_window): New
3309 constructors.
3310 (tui_alloc_win_info): Instantiate the appropriate subclass.
3311
e7e11af4
TT
33122019-06-25 Tom Tromey <tom@tromey.com>
3313
3314 * tui/tui-win.c (tui_resize_all): Use delete.
3315 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3316 destructor.
3317 (tui_free_window): Don't declare.
3318 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3319 Update.
3320
6792b55e
TT
33212019-06-25 Tom Tromey <tom@tromey.com>
3322
3323 * tui/tui-data.h (struct tui_win_info): Add constructor.
3324 * tui/tui-data.c (tui_alloc_win_info): Use new.
3325 (tui_free_window): Use delete.
3326
f95675e1
TT
33272019-06-22 Tom Tromey <tom@tromey.com>
3328
3329 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3330 declare.
3331 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3332
5bff081c
TT
33332019-06-22 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3336 declare.
3337 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3338
47e3f474
TV
33392019-06-22 Tom de Vries <tdevries@suse.de>
3340
3341 * dwarf2read.c (create_addrmap_from_aranges)
3342 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3343 instead of '%zu'.
3344
fd5866f6
SM
33452019-06-21 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * dwarf2read.h (dwarf2_section_info_def): Remove.
3348 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3349 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3350 std::vector<dwarf2_section_info>.
3351 (struct dwo_file) <~dwo_file>: Remove.
3352 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3353 types field.
3354 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3355 (dwarf2_read_debug_names): Likewise.
3356 (create_debug_types_hash_table): Change parameter type to
3357 array_view, adjust code accordingly.
3358 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3359 (partial_die_info::fixup): Likewise.
3360 (determine_prefix): Likewise.
3361 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3362
fb1eb2f9
SM
33632019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3366 gdb_bfd_ref_ptr.
3367 <~dwo_file>: Remove call to gdb_bfd_unref.
3368 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3369 gdb_bfd_ref_ptr::get.
3370
51ac9db5
SM
33712019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3372
3373 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3374 type to htab_up.
3375 * dwarf2read.c (struct dwo_file): Initialize fields.
3376 <~dwo_file>: New.
3377 (free_dwo_file): Remove, move content to ~dwo_file.
3378 (struct dwo_file_deleter): Remove.
3379 (dwo_file_up>: Remove custom deleter.
3380 (free_dwo_files): Remove.
3381 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3382 dwo_files.
3383 (process_skeletonless_type_units): Call unique_ptr::get.
3384 (allocate_dwo_file_hash_table): Add deleter to created hash
3385 table. Change return type to htab_up.
3386 (lookup_dwo_file_slot): Don't memset dwo_file, call
3387 unique_ptr::get.
3388 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3389 (create_dwo_unit_in_dwp_v2): Likewise.
3390 (open_and_init_dwo_file): Likewise.
3391 (free_dwo_file_from_slot): Remove.
3392
dc4ccb6f
SM
33932019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3394
3395 * dwarf2read.h (struct dwarf2_section_info) <readin,
3396 is_virtual>: Change type to bool.
3397 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3398 true instead of 1.
3399
e6a1c5cb
TT
34002019-06-19 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-data.h (tui_init_content_element): Don't declare.
3403
6f6ffbeb
TT
34042019-06-19 Tom Tromey <tom@tromey.com>
3405
3406 * tui/tui-data.h (tui_init_win_info): Don't declare.
3407
f23f598e
TV
34082019-06-19 Tom de Vries <tdevries@suse.de>
3409
3410 * dwarf2read.h (abstract_to_concrete): Change type to
3411 std::unordered_map<sect_offset, std::vector<sect_offset>,
3412 gdb::hash_enum<sect_offset>>.
3413
680e1bee
TT
34142019-06-19 Tom Tromey <tromey@adacore.com>
3415
3416 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3417 EVAL_AVOID_SIDE_EFFECTS specially.
3418
dcf37923
TT
34192019-06-19 Tom Tromey <tromey@adacore.com>
3420
3421 * source-cache.c (highlighter): New global.
3422 (source_cache::get_source_lines): Create a highlighter on demand.
3423
494986d5
AB
34242019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * defs.h (deprecated_interactive_hook): Delete declaration.
3427 * interps.c (clear_interpreter_hooks): Remove use of
3428 deprecated_interactive_hook.
3429 * top.c (deprecated_interactive_hook): Delete definition.
3430 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3431
3360b6e7
TV
34322019-06-18 Tom de Vries <tdevries@suse.de>
3433
3434 PR gdb/24515
3435 * dwarf2read.h (abstract_to_concrete): Change type from
3436 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3437 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3438 * dwarf2read.c (read_variable): Update.
3439 (dwarf2_fetch_die_loc_sect_off): Update.
3440
310b3441
TV
34412019-06-17 Tom de Vries <tdevries@suse.de>
3442
3443 PR gdb/24617
3444 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3445 accessing parent[parent_len - 1].
3446
ba9777be
PP
34472019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3448
3449 PR gdb/24364
3450 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3451 call dtrace_process_dof with NULL dof.
3452
2b9f6e89
TV
34532019-06-16 Tom de Vries <tdevries@suse.de>
3454
3455 PR gdb/24445
3456 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3457
431b3ead
TT
34582019-06-16 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3461 (make_all_visible): Use address of member.
3462
d04b44a1
TT
34632019-06-16 Tom Tromey <tom@tromey.com>
3464
3465 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3466 (tui_free_window, free_content, free_content_elements): Remove
3467 unnecessary cast.
3468 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3469 cast.
3470 * tui/tui-regs.c (tui_show_register_group)
3471 (tui_display_registers_from, tui_display_reg_element_at_line):
3472 Remove unnecessary cast.
3473
bf5142e7
AB
34742019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3475
3476 * linux-nat.c (normal_mask): Delete.
3477 (_initialize_linux_nat): Don't initialise normal_mask.
3478
c4973306
SM
34792019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3480
3481 PR gdb/24445
3482 * dwarf-index-write.h (write_psymtabs_to_index): Add
3483 dwz_basename parameter.
3484 * dwarf-index-write.c (write_gdbindex): Move file writing to
3485 write_gdbindex_1. Change return type void.
3486 (assert_file_size): Move up, remove filename parameter.
3487 (write_gdbindex_1): New function.
3488 (write_debug_names): Change return type to void, call
3489 assert_file_size.
3490 (struct index_wip_file): New struct.
3491 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3492 file logic to index_wip_file. Write index for dwz file if
3493 needed.
3494 (save_gdb_index_command): Pass basename of dwz file, if present.
3495 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3496 build-id of dwz file, if present.
3497 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3498 (dwarf2_get_dwz_file): Likewise.
3499 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3500 (dwarf2_get_dwz_file): Likewise.
3501
395f9c91
TT
35022019-06-16 Tom Tromey <tom@tromey.com>
3503
3504 * coffread.c (process_coff_symbol): Use xstrdup.
3505 * value.c (create_internalvar): Use xstrdup.
3506
cafb3438
TT
35072019-06-16 Tom Tromey <tom@tromey.com>
3508
3509 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3510 * breakpoint.c (stopin_command, stopat_command)
3511 (until_break_command, decode_location_default): Remove unnecessary
3512 cast.
3513 * utils.c (subset_compare): Remove unnecessary cast.
3514 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3515 cast.
3516 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3517 cast.
3518 * infcmd.c (path_command): Remove unnecessary cast.
3519 * coffread.c (decode_type): Remove unnecessary cast.
3520 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3521 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3522 * tui/tui-stack.c (tui_show_locator_content)
3523 (tui_show_frame_info): Remove unnecessary cast.
3524 * tui/tui-win.c (tui_scroll_forward_command)
3525 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3526 (parse_scrolling_args): Remove unnecessary cast.
3527 * tui/tui-data.c (init_win_info, tui_del_window)
3528 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3529 (free_content_elements): Remove unnecessary cast.
3530 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3531 unnecessary cast.
3532 * tui/tui-source.c (tui_set_source_content)
3533 (tui_vertical_source_scroll): Remove unnecessary cast.
3534 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3535 cast.
3536 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3537 * tui/tui-regs.c (tui_display_registers_from)
3538 (tui_display_register): Remove unnecessary cast.
3539 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3540 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3541 (make_visible): Remove unnecessary cast.
3542 * tui/tui-winsource.c (tui_erase_source_content)
3543 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3544 unnecessary cast.
3545 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3546 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3547 * stabsread.c (read_type, read_array_type, read_range_type):
3548 Remove unnecessary cast.
3549 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3550 (parse_symbol, parse_type, upgrade_type, parse_external)
3551 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3552 unnecessary cast.
3553 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3554
730ead81
TT
35552019-06-16 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-data.c (tui_alloc_generic_win_info)
3558 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3559 checks.
3560
584a927c
AB
35612019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3562 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * f-typeprint.c (f_print_type): Don't return early for not
3565 associated or not allocated types.
3566 (f_type_print_varspec_suffix): Add print_rank parameter and print
3567 ranks of array types in case they dangling.
3568 (f_type_print_base): Add print_rank parameter.
3569
30056ea0
AB
35702019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3571
3572 * NEWS: Mention new MI commands.
3573 * break-catch-throw.c (enum exception_event_kind): Move to
3574 breakpoint.h.
3575 (print_mention_exception_catchpoint): Output text as a single
3576 message.
3577 (catch_exception_command_1): Rename to...
3578 (catch_exception_event): ...this, make non-static, update header
3579 command, and change some parameter types.
3580 (catch_catch_command): Update for changes to
3581 catch_exception_command_1.
3582 (catch_throw_command): Likewise.
3583 (catch_rethrow_command): Likewise.
3584 * breakpoint.c (enum exception_event_kind): Delete.
3585 * breakpoint.h (enum exception_event_kind): Moved here from
3586 break-catch-throw.c.
3587 (catch_exception_event): Declare.
3588 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3589 (mi_cmd_catch_throw): New function.
3590 (mi_cmd_catch_rethrow): New function.
3591 (mi_cmd_catch_catch): New function.
3592 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3593 'catch-catch' entries.
3594 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3595 (mi_cmd_catch_rethrow): Declare.
3596 (mi_cmd_catch_catch): Declare.
3597
ec8e2b6d
AB
35982019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * annotate.c (annotate_source_line): Change return type to void,
3601 update implementation to match.
3602 * annotate.h (annotate_source_line): Change return type to void,
3603 update header comment.
3604 * stack.c (print_frame_info): Don't change what frame information
3605 is printed based on whether annotations are on or not.
3606
0d3abd8c
AB
36072019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3610 (annotate_source): Make static.
3611 (annotate_source_line): Moved from source.c and renamed from
3612 identify_source_line. Update the return type.
3613 * annotate.h (annotate_source): Delete declaration.
3614 (annotate_source_line): Declaration moved from source.h, and
3615 renamed from identify_source_line. Return type updated.
3616 * source.c (identify_source_line): Moved to annotate.c and renamed
3617 to annotate_source_line.
3618 (info_line_command): Remove check of annotation_level.
3619 * source.h (identify_source_line): Move declaration to annotate.h
3620 and rename to annotate_source_line.
3621 * stack.c: Add 'annotate.h' include.
3622 (print_frame_info): Remove check of annotation_level before
3623 calling annotate_source_line.
3624
00df30ae
AB
36252019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * source-cache.c (source_cache::get_plain_source_lines): Use
3628 open_source_file_with_line_charpos instead of just
3629 open_source_file, remove call to find_source_lines.
3630 (source_cache::get_source_lines): Likewise.
3631 * source.c (find_source_lines): Make static.
3632 (get_filename_and_charpos): Renamed into...
3633 (open_source_file_with_line_charpos): ..this along with changes to
3634 return a scoped_fd, and some other minor clean ups.
3635 (identify_source_line): Use open_source_file_with_line_charpos.
3636 (search_command_helper): Use open_source_file_with_line_charpos
3637 instead of just open_source_file, remove call to
3638 find_source_lines.
3639 * source.h (open_source_file_with_line_charpos): Declare new
3640 function.
3641 (find_source_lines): Delete declaration.
3642
afda45a2
AB
36432019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * source.c (get_filename_and_charpos): Remove fullname
3646 parameter.
3647 (identify_source_line): Update call to get_filename_and_charpos.
3648
0735b091
TT
36492019-06-14 Tom Tromey <tromey@adacore.com>
3650
3651 PR gdb/24502:
3652 * ui-style.h (skip_ansi_escape): Update comment.
3653 * ui-file.h (class no_terminal_escape_file): New class.
3654 * ui-file.c (no_terminal_escape_file::write)
3655 (no_terminal_escape_file::puts): New methods.
3656 * cli/cli-logging.c (handle_redirections): Use
3657 no_terminal_escape_file.
3658
52ce35e2
TT
36592019-06-14 Tom Tromey <tromey@adacore.com>
3660
3661 * NEWS: Move convenience variable news above Python news.
3662
73cc7272
TT
36632019-06-14 Tom Tromey <tom@tromey.com>
3664
3665 * gnulib: Move directory to top-level.
3666 * configure.ac: Don't configure gnulib.
3667 * configure: Rebuild.
3668 * common/common-defs.h: Use new path to gnulib.
3669 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3670 (GNULIB_H): Remove.
3671 (INCGNU): Look in new gnulib location.
3672 (HFILES_NO_SRCDIR): Remove gnulib files.
3673 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3674 (generated_files): Remove GNULIB_H.
3675 ($(LIBGNU), all-lib): Remove targets.
3676 (distclean): Don't mention GNULIB_BUILDDIR.
3677 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3678
f5686554
TT
36792019-06-14 Tom Tromey <tromey@adacore.com>
3680
3681 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3682 Warn if symbol file does not provide any symbols.
3683
a0c1ffed
TT
36842019-06-14 Tom Tromey <tromey@adacore.com>
3685
3686 * source.c (find_and_open_source): Respect basenames_may_differ.
3687
7c39e397
AB
36882019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * annotate.c (annotate_breakpoints_invalid): Make use of
3691 scoped_restore_terminal_state.
3692 (annotate_frames_invalid): Likewise.
3693
f411722c
TT
36942019-06-14 Tom Tromey <tromey@adacore.com>
3695
3696 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3697 allow assignment to an internalvar.
3698
4268ec18
TT
36992019-06-14 Tom Tromey <tromey@adacore.com>
3700
3701 * ada-lex.l: Allow "_" in attribute names.
3702
abdb711e
TT
37032019-06-14 Tom Tromey <tromey@adacore.com>
3704
3705 PR gdb/24653:
3706 * regcache.c (registers_changed): Don't call alloca.
3707 * top.c (execute_command): Don't call alloca.
3708
4c048731
PA
37092019-06-13 Pedro Alves <palves@redhat.com>
3710
3711 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3712 'expression'. When parsing an expression, error out if there's
3713 junk after "unlimited".
3714 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3715 (do_set_command): Adjust calls to is_unlimited_literal.
3716
66eb1ed3
PA
37172019-06-13 Pedro Alves <palves@redhat.com>
3718
3719 * compile/compile.c (make_compile_options_def_group): Add braces
3720 around array_view initializer.
3721 * thread.c (make_thread_apply_all_options_def_group)
3722 (make_thread_apply_all_options_def_group): Likewise.
3723
3345721a
PA
37242019-06-13 Pedro Alves <palves@redhat.com>
3725
3726 * NEWS (New commands): Mention "maint test-options
3727 require-delimiter", "maint test-options unknown-is-error", "maint
3728 test-options unknown-is-operand" and "maint show
3729 test-options-completion-result".
3730 (New command options, command completion): New section.
3731 (Completion improvements): New section.
3732 Mention that you can abbreviate "unlimited".
3733
6206060d
PA
37342019-06-13 Pedro Alves <palves@redhat.com>
3735
3736 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3737 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3738 * unittests/cli-utils-selftests.c (test_parse_flags)
3739 (test_parse_flags_qcs): Delete.
3740 (test_cli_utils): Don't call deleted functions.
3741
6665660a
PA
37422019-06-13 Pedro Alves <palves@redhat.com>
3743
3744 * thread.c: Include "cli/cli-option.h".
3745 (tp_array_compar_ascending): Global.
3746 (tp_array_compar): Delete function.
3747 (tp_array_compar_ascending, tp_array_compar_descending): New
3748 functions.
3749 (ascending_option_def, qcs_flag_option_def)
3750 (thr_qcs_flags_option_defs)
3751 (make_thread_apply_all_options_def_group)
3752 (make_thread_apply_options_def_group): New.
3753 (thread_apply_all_command): Use gdb::option::process_options.
3754 (thread_apply_command_completer)
3755 (thread_apply_all_command_completer): New.
3756 (thread_apply_command): Use gdb::option::process_options.
3757 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3758 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3759 to generate help text of "thread apply". Adjust "taas"'s help.
3760 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3761 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3762
f7e13587
PA
37632019-06-13 Pedro Alves <palves@redhat.com>
3764
3765 * thread.c (thread_apply_command): Check for invalid TID with
3766 isdigit instead of !isalpha.
3767
5d707134
PA
37682019-06-13 Pedro Alves <palves@redhat.com>
3769
3770 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3771 (validate_flags_qcs): New.
3772 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3773 (validate_flags_qcs): Declare.
3774 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3775 (make_frame_apply_options_def_group): New.
3776 (frame_apply_command_count): Process options with
3777 gdb::option::process_options.
3778 (frame_apply_completer): New.
3779 (frame_apply_level_completer, frame_apply_all_completer)
3780 (frame_apply_completer): New.
3781 (_initialize_stack): Update help of "frame apply", "frame apply
3782 level", "frame apply all" and "faas" to mention supported options
3783 and install command completers.
3784 * stack.h (frame_apply_all_completer): Declare.
3785 * thread.c: Include "stack.h".
3786 (tfaas_command): Add "--".
3787 (_initialize_thread): Update help "tfaas" to mention supported
3788 options and install command completer.
3789
272d4594
PA
37902019-06-13 Pedro Alves <palves@redhat.com>
3791
3792 * completer.c (complete_nested_command_line): New.
3793 (gdb_completion_word_break_characters_throw): Add assertion.
3794 * completer.h (complete_nested_command_line): Declare.
3795
90a1ef87
PA
37962019-06-13 Pedro Alves <palves@redhat.com>
3797
3798 * stack.c (parse_backtrace_qualifiers): New.
3799 (backtrace_command): Use it.
3800 (backtrace_command_completer): Complete on qualifiers.
3801
d4c16835
PA
38022019-06-13 Pedro Alves <palves@redhat.com>
3803
3804 * frame.c: Include "cli/cli-option.h.
3805 (user_set_backtrace_options): New.
3806 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3807 Delete.
3808 (get_prev_frame): Adjust.
3809 (boolean_option_def, uinteger_option_def)
3810 (set_backtrace_option_defs): New.
3811 (_initialize_frame): Adjust and use
3812 gdb::option::add_setshow_cmds_for_options to install "set
3813 backtrace past-main" and "set backtrace past-entry".
3814 * frame.h: Include "cli/cli-option.h".
3815 (struct frame_print_options): Forward declare.
3816 (print_frame_arguments_all, print_frame_arguments_scalars)
3817 (print_frame_arguments_none): Declare.
3818 (print_entry_values): Delete declaration.
3819 (struct frame_print_options, user_frame_print_options): New.
3820 (struct set_backtrace_options): New.
3821 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3822 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3823 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3824 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3825 (list_args_or_locals): Add frame_print_options parameter.
3826 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3827 * python/py-framefilter.c (enumerate_args): Pass down
3828 USER_FRAME_PRINT_OPTIONS.
3829 * stack.c: Include "cli/cli-option.h".
3830 (print_frame_arguments_all, print_frame_arguments_scalars)
3831 (print_frame_arguments_none): Declare.
3832 (print_raw_frame_arguments, print_entry_values): Delete.
3833 (user_frame_print_options): New.
3834 (boolean_option_def, enum_option_def, frame_print_option_defs):
3835 New.
3836 (struct backtrace_cmd_options): New.
3837 (bt_flag_option_def): New.
3838 (backtrace_command_option_defs): New.
3839 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3840 (print_frame_arg, read_frame_arg, print_frame_args)
3841 (print_frame_info, print_frame): Add frame_print_options parameter
3842 and use it.
3843 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3844 (backtrace_command_1): Add frame_print_options and
3845 backtrace_cmd_options parameters and use them.
3846 (make_backtrace_options_def_group): New.
3847 (backtrace_command): Process command options with
3848 gdb::option::process_options.
3849 (backtrace_command_completer): New.
3850 (_initialize_stack): Extend "backtrace"'s help to mention
3851 supported options. Install completer for "backtrace".
3852 Install some settings commands with add_setshow_cmds_for_options.
3853
2daf894e
PA
38542019-06-13 Pedro Alves <palves@redhat.com>
3855
3856 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3857 and that "set/show print raw frame-arguments" are now deprecated.
3858
3859 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3860 command.
3861 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3862 * stack.c (_initialize_stack): Install "set/show print
3863 raw-frame-arguments", and deprecate "set/show print raw
3864 frame-arguments".
3865 * valprint.c (_initialize_valprint): Deprecate "set/show print
3866 raw".
3867
e6ed716c
PA
38682019-06-13 Pedro Alves <palves@redhat.com>
3869
3870 * compile/compile.c (struct compile_options): New.
3871 (compile_flag_option_def, compile_command_option_defs)
3872 (make_compile_options_def_group): New.
3873 (compile_file_command): Handle options with
3874 gdb::option::process_options.
3875 (compile_file_command_completer): New function.
3876 (compile_code_command): Handle options with
3877 gdb::option::process_options.
3878 (compile_code_command_completer): New function.
3879 (_initialize_compiler): Install completers for "compile code" and
3880 "compile file". Mention available options in "compile code" and
3881 "compile code"'s help.
3882 * completer.c (advance_to_completion_word): New, factored out from
3883 ...
3884 (advance_to_expression_complete_word_point): ... this.
3885 (advance_to_filename_complete_word_point): New.
3886 * completer.h (advance_to_filename_complete_word_point): New
3887 declaration.
3888
7d8062de
PA
38892019-06-13 Pedro Alves <palves@redhat.com>
3890
3891 * compile/compile.c: Include "cli/cli-option.h".
3892 (compile_print_value): Scope data pointer is now a
3893 value_print_options pointer; adjust.
3894 (compile_print_command): Process options. Scope data pointer is
3895 now a value_print_options pointer; adjust.
3896 (_initialize_compile): Update "compile print"'s help to include
3897 supported options. Install a completer for "compile print".
3898 * cp-valprint.c (show_vtblprint, show_objectprint)
3899 (show_static_field_print): Delete.
3900 (_initialize_cp_valprint): Don't install "set print
3901 static-members", "set print vtbl", "set print object" here.
3902 * printcmd.c: Include "cli/cli-option.h" and
3903 "common/gdb_optional.h".
3904 (print_command_parse_format): Rework to fill in a
3905 value_print_options instead of a format_data.
3906 (print_value): Change parameter type from format_data pointer to
3907 value_print_options reference. Adjust.
3908 (print_command_1): Process options. Adjust to pass down a
3909 value_print_options.
3910 (print_command_completer): New.
3911 (_initialize_printcmd): Install print_command_completer as
3912 handle_brkchars completer for the "print" command. Update
3913 "print"'s help to include supported options.
3914 * valprint.c: Include "cli/cli-option.h".
3915 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3916 here from cp-valprint.c.
3917 (boolean_option_def, uinteger_option_def)
3918 (value_print_option_defs, make_value_print_options_def_group):
3919 New. Use gdb::option::add_setshow_cmds_for_options to install
3920 "set print elements", "set print null-stop", "set print repeats",
3921 "set print pretty", "set print union", "set print array", "set
3922 print address", "set print symbol", "set print array-indexes".
3923 * valprint.h: Include <string> and "cli/cli-option.h".
3924 (make_value_print_options_def_group): Declare.
3925 (print_value): Change parameter type from format_data pointer to
3926 value_print_options reference.
3927 (print_command_completer): Declare.
3928
9d0faba9
PA
39292019-06-13 Pedro Alves <palves@redhat.com>
3930
3931 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3932 (COMMON_SFILES): Add maint-test-settings.c.
3933 * cli/cli-decode.c (boolean_enums): New global, factored out from
3934 ...
3935 (add_setshow_boolean_cmd): ... here.
3936 * cli/cli-decode.h (boolean_enums): Declare.
3937 * cli/cli-option.c: New file.
3938 * cli/cli-option.h: New file.
3939 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3940 factored out from ...
3941 (parse_cli_boolean_value(const char *)): ... this.
3942 (is_unlimited_literal): Change parameter type to pointer to
3943 pointer. Adjust and advance ARG pointer.
3944 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3945 (parse_cli_var_enum): New, factored out from ...
3946 (do_set_command): ... this. Adjust.
3947 * cli/cli-setshow.h (parse_cli_boolean_value)
3948 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3949 (parse_cli_var_enum): Declare.
3950 * cli/cli-utils.c: Include "cli/cli-option.h".
3951 (get_ulongest): New.
3952 * cli/cli-utils.h (get_ulongest): Declare.
3953 (check_for_argument): New overloads.
3954 * maint-test-options.c: New file.
3955
2c722807
PA
39562019-06-13 Pedro Alves <palves@redhat.com>
3957
3958 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3959 parse a range if "-" is at the end of the string.
3960
dee7b4c8
PA
39612019-06-13 Pedro Alves <palves@redhat.com>
3962
3963 * cli/cli-setshow.c (parse_auto_binary_operation)
3964 (parse_cli_boolean_value): Don't allow "o".
3965
dca0f6c0
PA
39662019-06-13 Pedro Alves <palves@redhat.com>
3967
3968 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3969 * NEWS: Mention maint test-settings KIND.
3970 * maint-test-settings.c: New file.
3971
597bf39d
PA
39722019-06-13 Pedro Alves <palves@redhat.com>
3973
3974 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3975 completer.
3976 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3977 "set" completers.
3978
48c410fb
PA
39792019-06-13 Pedro Alves <palves@redhat.com>
3980
3981 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3982 after item.
3983
93bcb043
PA
39842019-06-13 Pedro Alves <palves@redhat.com>
3985
3986 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3987
cbba3ecd
PA
39882019-06-13 Pedro Alves <palves@redhat.com>
3989
3990 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3991 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3992 call.
3993 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3994 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3995 calls.
3996 (check_for_argument): Skip spaces after argument.
3997
b9a3f842
PA
39982019-06-13 Pedro Alves <palves@redhat.com>
3999
4000 * thread.c (thread_apply_command): Adjust TID parsing.
4001 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4002 detected before end of string.
4003 (tid_is_in_list): Error out if LIST is invalid.
4004
3844e605
PA
40052019-06-13 Pedro Alves <palves@redhat.com>
4006
4007 * completer.c (complete_line_internal_1): Rewind completion word
4008 point.
4009 (completion_tracker::advance_custom_word_point_by): Change
4010 parameter type to int.
4011 * completer.h (completion_tracker::advance_custom_word_point_by):
4012 Likewise.
4013
00b56dbe
PA
40142019-06-13 Pedro Alves <palves@redhat.com>
4015
4016 * completer.c (advance_to_completion_word): Handle delimiters.
4017
d106773e
PA
40182019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4019
4020 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4021
08f10e02
TT
40222019-06-11 Tom Tromey <tom@tromey.com>
4023
4024 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4025 (xmalloc_failed): Move to alloc.c.
4026 * alloc.c: New file.
4027 * Makefile.in (COMMON_SFILES): Add alloc.c.
4028
1c7fe951
TT
40292019-06-11 Tom Tromey <tom@tromey.com>
4030
4031 * nat/linux-waitpid.c: Don't include server.h.
4032 (linux_debug): Remove.
4033 (my_waitpid): Update.
4034
89549d7f
TT
40352019-06-11 Tom Tromey <tromey@adacore.com>
4036
4037 * infcall.c (_initialize_infcall): Remove trailing newline from
4038 help.
4039 * user-regs.c (_initialize_user_regs): Remove trailing newline
4040 from help.
4041 * typeprint.c (_initialize_typeprint): Remove trailing newline
4042 from help.
4043 * reverse.c (_initialize_reverse): Remove trailing newlines from
4044 help.
4045 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4046 from help.
4047 * language.c (add_set_language_command): Remove trailing newline
4048 from help.
4049 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4050 help.
4051 * disasm.c (_initialize_disasm): Remove trailing newline from
4052 help.
4053 * top.c (init_main): Remove trailing newline from help.
4054 * interps.c (_initialize_interpreter): Remove trailing newline
4055 from help.
4056 * btrace.c (_initialize_btrace): Remove trailing newlines from
4057 help.
4058 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4059 from help.
4060 * python/python.c (_initialize_python): Remove trailing newline
4061 from help.
4062 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4063 help.
4064 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4065 from help. Reformat some text.
4066 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4067 from help.
4068 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4069 newline from help.
4070
86108c13
TT
40712019-06-11 Tom Tromey <tromey@adacore.com>
4072
4073 * darwin-nat.c (darwin_decode_exception_message)
4074 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4075
a7067863
AB
40762019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * valops.c (value_slice): Check for not allocated or not
4079 associated values.
4080
9ab08412
TV
40812019-06-10 Tom de Vries <tdevries@suse.de>
4082
4083 PR gdb/24618
4084 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4085 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4086 invalid.
4087
f19e22e9
TV
40882019-06-10 Tom de Vries <tdevries@suse.de>
4089
4090 PR gdb/24611
4091 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4092 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4093
e99f9db0
TV
40942019-06-10 Tom de Vries <tdevries@suse.de>
4095
4096 PR symtab/24545
4097 * symtab.c (struct demangled_name_entry): Add language field.
4098 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4099 static minimal symbol". Set and use language field.
4100
9bf7038b
TT
41012019-06-10 Tom Tromey <tromey@adacore.com>
4102
4103 * ada-lang.c (_initialize_ada_language): Update help text.
4104
422186a9
TT
41052019-06-10 Tom Tromey <tromey@adacore.com>
4106
4107 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4108 with a newline.
4109 * guile/guile.c (handle_boot_error): Don't end warning with a
4110 newline.
4111 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4112 warning with a newline.
4113 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4114 newline.
4115 (s12z_frame_cache): Likewise.
4116 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4117 a newline.
4118 * solib-svr4.c (disable_probes_interface): Don't end warning with
4119 a newline.
4120 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4121 newline.
4122 * python/python.c (do_finish_initialization): Don't end warning
4123 with a newline.
4124
25ce02ee
TT
41252019-06-10 Tom Tromey <tom@tromey.com>
4126
4127 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4128 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4129 gdbpy_enter.
4130
caa429d8
TT
41312019-06-10 Tom Tromey <tromey@adacore.com>
4132
4133 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4134 data.
4135 (elf_new_init): Don't call stabsread_new_init.
4136 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4137 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4138 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4139
81873cc8
TV
41402019-06-10 Tom de Vries <tdevries@suse.de>
4141
4142 PR symtab/16264
4143 PR symtab/24517
4144 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4145
4fa0265e
РИ
41462019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4147
4148 * source.c (find_and_open_source): Also rewrite relative file
4149 names.
4150
1a3da2cd
AB
41512019-04-26 Amos Bird <amosbird@gmail.com>
4152
4153 * annotate.c (annotate_thread_exited): Add "thread-exited"
4154 annotation.
4155
3847a7bf
TT
41562019-06-06 Tom Tromey <tromey@adacore.com>
4157
4158 * maint.h (class scoped_command_stats): Use
4159 DISABLE_COPY_AND_ASSIGN.
4160 <print_time>: New method.
4161 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4162 print_time.
4163 (scoped_command_stats::print_time): New method.
4164
312617a3
AB
41652019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4168 instructions of lengths 6 or 8 bytes.
4169
b02f78f9
PA
41702019-06-04 Pedro Alves <palves@redhat.com>
4171
4172 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4173
4174 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4175 * breakpoint.c (condition_completer): Likewise.
4176 * cli/cli-dump.c (scan_expression): Likewise.
4177 * common/filestuff.c (mkdir_recursive): Likewise.
4178 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4179 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4180 (gdb_abspath): Likewise.
4181 * compile/compile-cplus-types.c
4182 (compile_cplus_instance::decl_name): Likewise.
4183 * completer.c (complete_explicit_location):
4184 (signal_completer, reg_or_group_completer_1): Likewise.
4185 * cp-support.c (cp_remove_params_if_any): Likewise.
4186 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4187 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4188 * infcmd.c (strip_bg_char): Likewise.
4189 * linespec.c (copy_token_string): Likewise.
4190 * mi/mi-main.c (output_cores): Likewise.
4191 * psymtab.c (psymtab_search_name):
4192 * symfile.c (test_set_ext_lang_command): Likewise.
4193 * target.c (target_fileio_read_stralloc): Likewise.
4194 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4195 * value.c (complete_internalvar): Likewise.
4196
e1f2e1a2
CB
41972019-06-04 Christian Biesinger <cbiesinger@google.com>
4198
4199 Add objfile property to gdb.Type.
d3238f7d
PA
4200 * NEWS: Mention Python API addition.
4201 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4202
e664d728
PW
42032019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4204
4205 * NEWS: Mention the new set|show style [title|highlight].
4206 Mention changes to "show style", "help" and "apropos".
4207
66d8c862
PW
42082019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4209
4210 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4211 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4212 instead of print_help_for_command.
4213 (print_doc_of_command): New function.
4214 (help_list): Add 'apropos -v word' suggestion.
4215 (print_help_for_command): Style the command name using title style.
4216 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4217 (_initialize_cli_cmds): Describe -v in apropos_command help.
4218
9303eb2f
PW
42192019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4220
4221 * cli/cli-style.h (cli_style_option): Add name in constructor,
4222 add m_name class member, add constructor with intensity,
4223 add name class function.
4224 (cli_style_option::add_setshow_commands): Remove name argument.
4225 (highlight_style, title_style): New styles.
4226 * cli/cli-style.c (do_show): New function that shows a style
4227 characteristic styling the style name with itself.
4228 (set_style_name): New function.
4229 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4230 Update all callers according to the changes in cli/cli-style.h.
4231 * utils.h (fputs_highlighted): New function.
4232 * utils.c (fputs_highlighted): Likewise.
4233
e2c52041
PW
42342019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4235
4236 * NEWS: Mention new pipe command and new convenience variables.
4237
947d3946
PW
42382019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4239
4240 * cli/cli-cmds.c (pipe_command): New function.
4241 (_initialize_cli_cmds): Call add_com for pipe_command.
4242 Define | as an alias for pipe.
4243 (exit_status_set_internal_vars): New function.
4244 (shell_escape): Call exit_status_set_internal_vars.
4245 cli/cli-decode.c (find_command_name_length): Recognize | as
4246 a single character command.
4247
b8fd0918
PW
42482019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4249
4250 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4251 top.c (execute_command_to_ui_file): New function, mostly a copy
4252 of execute_command_to_string.
4253 (execute_command_to_string): Implement by calling
4254 execute_command_to_ui_file.
4255
68bb5386
PW
42562019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4257
4258 * top.h (saved_command_line): Remove declaration.
4259 * top.c (previous_saved_command_line, previous_repeat_arguments):
4260 New variables.
4261 (saved_command_line): Make static, define together with other
4262 'repeat variables'.
4263 (dont_repeat): Clear repeat_arguments.
4264 (repeat_previous, get_saved_command_line, save_command_line):
4265 New functions.
4266 (gdb_init): Initialize saved_command_line
4267 and previous_saved_command_line.
4268 * main.c (captured_main_1): Remove saved_command_line initialization.
4269 * event-top.c (handle_line_of_input): Update to use
4270 the new 'repeat' related functions instead of direct access to
4271 saved_command_line.
4272 * command.h (repeat_previous, get_saved_command_line,
4273 save_command_line): New declarations.
4274 (dont_repeat): Add comment.
4275
bfcdb852
TT
42762019-05-30 Tom Tromey <tromey@adacore.com>
4277
4278 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4279 Fix comment.
4280 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4281
0ef209f2
JV
42822019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4283
4284 PR cli/24587
4285 * completer.c (complete): Initialize variable word.
4286
955b06fa
SDJ
42872019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4288
4289 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4290 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4291 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4292 'body' is NULL to the outter 'if', protecting the '!is_define'
4293 situation as well.
4294
fa9c3fa0
TT
42952019-05-29 Tom Tromey <tromey@adacore.com>
4296
4297 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4298 (dwarf_unknown): New function.
4299 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4300 (dwarf_type_encoding_name): Use dwarf_unknown.
4301
4330d61d
TT
43022019-05-29 Tom Tromey <tromey@adacore.com>
4303
4304 PR c++/20020:
4305 * cp-valprint.c (cp_print_value_fields): Call
4306 cp_print_static_field inside "try".
4307
33a6bc35
TT
43082019-05-29 Tom Tromey <tromey@adacore.com>
4309
4310 * inflow.c (struct terminal_info): Add default operator=.
4311 * configure: Rebuild.
4312 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4313 -Wdeprecated-copy-dtor, -Wredundant-move.
4314
000439d5
TT
43152019-05-29 Tom Tromey <tromey@adacore.com>
4316
4317 * NEWS: Add entry.
4318 * infcmd.c (print_return_value_1): Handle finish_print
4319 option.
4320 (show_print_finish): New function.
4321 (_initialize_infcmd): Add "set/show print finish" commands.
4322 * valprint.c (user_print_options): Initialize new member.
4323 * valprint.h (struct value_print_options) <finish_print>: New
4324 member.
4325
c0e70c62
TT
43262019-05-28 Tom Tromey <tromey@adacore.com>
4327
4328 * ada-lang.c (ada_remove_Xbn_suffix)
4329 (find_old_style_renaming_symbol)
4330 (parse_old_style_renaming): Remove.
4331 (ada_find_renaming_symbol): Don't call
4332 find_old_style_renaming_symbol.
4333 (ada_is_renaming_symbol): Rename from
4334 ada_find_renaming_symbol. Remove "block" parameter. Return
4335 bool. Now static.
4336 (ada_read_var_value): Update and simplify.
4337 * ada-exp.y (write_var_or_type): Remove old code.
4338
766f8836
AH
43392019-05-28 Alan Hayward <alan.hayward@arm.com>
4340
4341 * event-top.c: Remove include comment.
4342 * inflow.c (class scoped_ignore_sigttou): Move from here...
4343 * inflow.h (class scoped_ignore_sigttou): ...to here.
4344 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4345 * top.c: Remove include comment.
4346
eb41253a
TT
43472019-05-27 Tom Tromey <tom@tromey.com>
4348
4349 * NEWS: Fix typo.
4350
4ca51187
TT
43512019-05-22 Tom Tromey <tromey@adacore.com>
4352
4353 * target.c (target_follow_exec): Constify parameter.
4354 * target-delegates.c: Rebuild.
4355 * remote.c (remote_target::follow_exec): Constify parameter.
4356 * infrun.c (follow_exec): Constify parameter.
4357 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4358 (target_follow_exec): Likewise.
4359
8fca4da0
AH
43602019-05-22 Alan Hayward <alan.hayward@arm.com>
4361
4362 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4363 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4364
b7060614
AH
43652019-05-22 Alan Hayward <alan.hayward@arm.com>
4366
4367 * NEWS: Add debugredirect and testsuite sections.
4368
0a5954bd
SC
43692019-05-22 Simon Cook <simon.cook@embecosm.com>
4370
4371 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4372 target descriptions using exclusively floating point register name
4373 aliases.
4374
dc42e902
AB
43752019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 PR gdb/18644:
4378 * f-lang.c (build_fortran_types): Handle the case where
4379 gdbarch_floatformat_for_type returns a nullptr.
4380
fb7806c7
TV
43812019-05-21 Tom de Vries <tdevries@suse.de>
4382
4383 PR cli/24587
4384 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4385
34d11c68
AB
43862019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4387
4388 PR gdb/18644:
4389 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4390 16-byte floats.
4391 * i386-tdep.c (i386_floatformat_for_type): Use
4392 floatformats_ia64_quad for the 16-byte floating point component
4393 within a fortran 32-byte complex number.
4394
122cf0f2
AB
43952019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4398 delete default constructor.
4399 (find_partial_die): Update to return const struct.
4400 (partial_die_parent_scope): Move variable declaration into scope
4401 of its use and change its type to auto.
4402 (guess_partial_die_structure_name): Likewise.
4403 (partial_die_info::fixup): Likewise.
4404
33d0e35a
TT
44052019-05-17 Tom Tromey <tromey@adacore.com>
4406
4407 * source.c (find_and_open_source): Remove cast.
4408
a45575b0
TT
44092019-05-17 Tom Tromey <tromey@adacore.com>
4410
4411 * annotate.c (annotate_source): Make "filename" const.
4412 * annotate.h (annotate_source): Use const.
4413
81f47ac2
AH
44142019-05-17 Alan Hayward <alan.hayward@arm.com>
4415
4416 * disasm.c (set_disassembler_options): Send errors to stderr.
4417
ca1285d1
AH
44182019-05-17 Alan Hayward <alan.hayward@arm.com>
4419
4420 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4421 (cli_interp_base::set_logging): Check debug_redirect.
4422 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4423 * cli/cli-logging.c (debug_redirect): Add static variable.
4424 (pop_output_files): Add default param.
4425 (handle_redirections): Print debug setting.
4426 (show_logging_command): Likewise.
4427 (_initialize_cli_logging): Add debugredirect command.
4428 * interps.c (current_interp_set_logging): Add debug_redirect
4429 parameter.
4430 * interps.h (set_logging): Add debug_redirect parameter.
4431 (current_interp_set_logging): Likewise.
4432 * mi/mi-common.h: Likewise.
4433 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4434
44352019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4436 Tom Tromey <tromey@adacore.com>
4437
4438 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4439 directly.
4440 * cli/cli-interp.h (make_logging_output): Remove declaration.
4441 * cli/cli-logging.c (make_logging_output): Remove function.
4442 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4443 directly.
4444 * ui-file.c (tee_file::tee_file): Remove bools.
4445 (tee_file::~tee_file): Remove deletes.
4446 * ui-file.h (tee_file): Remove bools.
4447
26648588
JV
44482019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4449
4450 * mi/mi-cmds.h (mi_cmd_complete): New function.
4451 * mi/mi-main.c (mi_cmd_complete): Likewise.
4452 * mi/mi-cmds.c: Define new MI command -complete.
4453 * NEWS: Mention new -complete command.
4454
6e035501
JV
44552019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4456
4457 * completer.h (complete): New function.
4458 * completer.c (complete): Likewise.
4459 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4460 function defined in completer.h.
4461
7d0e2ece
JV
44622019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4463
e79be6e5 4464 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4465
fb816e8b
TV
44662019-05-17 Tom de Vries <tdevries@suse.de>
4467
4468 PR gdb/24094
4469 * dwarf2read.c (struct cu_partial_die_info): New struct.
4470 (find_partial_die): Return cu_partial_die_info.
4471 (partial_die_parent_scope, guess_partial_die_structure_name)
4472 (partial_die_info::fixup): Handle new return type of find_partial_die.
4473
677052f2
SDJ
44742019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4475
4476 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4477 "std::string", simplifying the algorithm.
4478
f3da9116
SDJ
44792019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4480
4481 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4482 (stap_static_probe_ops::get_probes): Likewise.
4483
f1bb75ab
SDJ
44842019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4485
4486 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4487 '-')" and "else if".
4488 (stap_parse_single_operand): Join checks for
4489 "gdbarch_stap_parse_special_token_p" and
4490 "gdbarch_stap_parse_special_token" in the same "if" statement.
4491 Invert check when verifying for operation on register
4492 displacement.
4493
3ca58cde
SDJ
44942019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4495
4496 * stap-probe.c (stap_get_opcode): Update comment.
4497 (stap_get_expected_argument_type): Likewise.
4498 (handle_stap_probe): Likewise.
4499
af2d9bee
SDJ
45002019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4501
4502 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4503 return type to 'bool'. Adjust comment. Use 'bool' when
4504 appropriate.
4505 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4506 * stap-probe.c (stap_parse_argument_1): Likewise.
4507 (stap_is_operator): Likewise.
4508 (stap_is_generic_prefix): Likewise.
4509 (stap_is_register_prefix): Likewise.
4510 (stap_is_register_indirection_prefix): Likewise.
4511 (stap_is_integer_prefix): Likewise.
4512 (stap_generic_check_suffix): Likewise.
4513 (stap_check_integer_suffix): Likewise.
4514 (stap_check_register_suffix): Likewise.
4515 (stap_check_register_indirection_suffix): Likewise.
4516 (stap_parse_register_operand): Likewise.
4517 (stap_parse_single_operand): Likewise.
4518 (stap_parse_argument_1): Likewise.
4519 (stap_probe::get_argument_count): Likewise.
4520 (stap_is_operator): Likewise.
4521
61c9c421
TT
45222019-05-16 Tom Tromey <tromey@adacore.com>
4523
4524 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4525 keyword to foreach.
4526
9ddc1af1
SM
45272019-05-15 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * linux-thread-db.c (try_thread_db_load_1): Change return type
4530 to bool.
4531 (try_thread_db_load): Likewise.
4532 (try_thread_db_load_from_pdir_1): Likewise.
4533 (try_thread_db_load_from_pdir): Likewise.
4534 (try_thread_db_load_from_sdir): Likewise.
4535 (try_thread_db_load_from_dir): Likewise.
4536 (thread_db_load_search): Likewise.
4537 (has_libpthread): Likewise.
4538 (thread_db_load): Likewise.
4539
7bede828
SDJ
45402019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4541
4542 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4543 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4544 NULL, and complain/return if that's the case.
4545
c5358db4
JD
45462019-05-15 John Darrington <john@darrington.wattle.id.au>
4547
4548 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4549 (advance, posn, abstract_read_memory): New functions.
4550 [struct mem_read_abstraction]: New struct.
4551 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4552
c408a94f
TT
45532019-05-14 Tom Tromey <tromey@adacore.com>
4554
4555 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4556 value is not lval_memory.
4557
e7bd7fba
TT
45582019-05-14 Tom Tromey <tromey@adacore.com>
4559
4560 * solib.c (info_sharedlibrary_command): Style the file name.
4561
a6d0f249
AH
45622019-05-14 Alan Hayward <alan.hayward@arm.com>
4563
4564 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4565 (aarch64_vnv_type): Likewise.
4566 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4567 * common/tdesc.c: Likewise.
4568 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4569 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4570 * features/aarch64-fpu.xml: Add ieee half view.
4571 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4572 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4573 * gdbtypes.h (struct builtin_type): Likewise.
4574 (struct objfile_type): Likewise.
4575
66b8bb74
SM
45762019-05-12 Paul Naert <paul.naert@polymtl.ca>
4577
4578 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4579 typo.
4580 * location.h (string_to_event_location): Likewise.
4581
21c219fd
JB
45822019-05-11 Joel Brobecker <brobecker@adacore.com>
4583
4584 GDB 8.3 released.
4585
13674803
SM
45862019-05-10 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4589 New variable declaration.
4590 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4591 New variable.
4592 (print_one_breakpoint): Use ui_out::test_flags and new global
4593 variable to compute use_fixed_output.
4594 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4595 Remove.
4596 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4597 (mi_multi_location_breakpoint_output_fixed): Remove.
4598 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4599 new variable.
4600 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4601 fix_multi_location_breakpoint_output flag if version >= 3.
4602 * ui-out.h (enum ui_out_flag)
4603 <fix_multi_location_breakpoint_output>: New enumerator.
4604
a9eac7f9
SM
46052019-05-10 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4608
71bed2db
TT
46092019-05-10 Tom Tromey <tromey@adacore.com>
4610
4611 * ada-lang.c (catch_ada_completer): New function.
4612 (_initialize_ada_language): Use it.
4613
24c54127
TT
46142019-05-10 Tom Tromey <tromey@adacore.com>
4615
4616 * thread.c (print_thread_info): Make "requested_threads" const.
4617 * gdbthread.h (print_thread_info): Make "requested_threads"
4618 const.
4619 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4620 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4621
7a102139
TT
46222019-05-08 Tom Tromey <tom@tromey.com>
4623
4624 * gdbtypes.c (objfile_type_data): Change type.
4625 (objfile_type, _initialize_gdbtypes): Update.
4626
924d79e2
TT
46272019-05-08 Tom Tromey <tom@tromey.com>
4628
4629 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4630 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4631 (_initialize_dwarf2_frame): Update.
4632
4c58e337
TT
46332019-05-08 Tom Tromey <tom@tromey.com>
4634
4635 * objc-lang.c (objc_objfile_data): Change type.
4636 (find_methods): Update.
4637 (_initialize_objc_lang): Remove.
4638
d772d2ab
TT
46392019-05-08 Tom Tromey <tom@tromey.com>
4640
4641 * stabsread.c (rs6000_builtin_type_data): Change type.
4642 (rs6000_builtin_type, _initialize_stabsread): Update.
4643
d11d83f4
TT
46442019-05-08 Tom Tromey <tom@tromey.com>
4645
4646 * mips-tdep.c (mips_pdr_data): Remove.
4647 (_initialize_mips_tdep): Update.
4648
9a73f0ad
TT
46492019-05-08 Tom Tromey <tom@tromey.com>
4650
4651 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4652 (hppa_init_objfile_priv_data, read_unwind_info)
4653 (find_unwind_entry, _initialize_hppa_tdep): Update.
4654
8127a2fa
TT
46552019-05-08 Tom Tromey <tom@tromey.com>
4656
4657 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4658 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4659 on obstack.
4660 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4661
91d3055d
TT
46622019-05-08 Tom Tromey <tom@tromey.com>
4663
4664 * mdebugread.c (basic_type_data): Change type.
4665 (basic_type, _initialize_mdebugread): Update.
4666
31930bd3
TT
46672019-05-08 Tom Tromey <tom@tromey.com>
4668
4669 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4670
bdb3ed9e
TT
46712019-05-08 Tom Tromey <tom@tromey.com>
4672
4673 * nto-tdep.c (nto_inferior_data_reg): Change type.
4674 (nto_inferior_data): Update.
4675 (nto_inferior_data_cleanup, nto_new_inferior_data)
4676 (_initialize_nto_tdep): Remove.
4677 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4678
f37b313d
TT
46792019-05-08 Tom Tromey <tom@tromey.com>
4680
4681 * ada-lang.c (struct ada_inferior_data): Add initializers.
4682 (ada_inferior_data): Change type.
4683 (ada_inferior_data_cleanup): Remove.
4684 (get_ada_inferior_data, ada_inferior_exit)
4685 (struct ada_pspace_data): Add initializers, destructor.
4686 (ada_pspace_data_handle): Change type.
4687 (get_ada_pspace_data): Update.
4688 (ada_pspace_data_cleanup): Remove.
4689
24699405
TT
46902019-05-08 Tom Tromey <tom@tromey.com>
4691
4692 * coffread.c (struct coff_symfile_info): Add initializers.
4693 (coff_objfile_data_key): Move lower. Change type.
4694 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4695 Update.
4696 (coff_free_info): Remove.
4697
d4e05d2f
TT
46982019-05-08 Tom Tromey <tom@tromey.com>
4699
4700 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4701 (fbsd_pspace_data_handle): Move lower. Change type.
4702 (get_fbsd_pspace_data): Update.
4703 (fbsd_pspace_data_cleanup): Remove.
4704 (_initialize_fbsd_tdep): Update.
4705
14ef6690
TT
47062019-05-08 Tom Tromey <tom@tromey.com>
4707
4708 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4709 (get_ada_tasks_pspace_data): Update.
4710 (ada_tasks_pspace_data_cleanup): Remove.
4711 (_initialize_tasks): Update.
4712 (ada_tasks_inferior_data_handle): Change type.
4713 (get_ada_tasks_inferior_data): Update.
4714 (ada_tasks_inferior_data_cleanup): Remove.
4715 (struct ada_tasks_pspace_data): Add initializers.
4716
814cf43a
TT
47172019-05-08 Tom Tromey <tom@tromey.com>
4718
4719 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4720 * symfile-debug.c (debug_sym_get_probes): Change type.
4721 * stap-probe.c (handle_stap_probe):
4722 (stap_static_probe_ops::get_probes): Change type.
4723 * probe.h (class static_probe_ops) <get_probes>: Change type.
4724 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4725 (parse_probes_in_pspace): Update.
4726 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4727 Update.
4728 (any_static_probe_ops::get_probes): Change type.
4729 * elfread.c (elfread_data): New typedef.
4730 (probe_key): Change type.
4731 (elf_get_probes): Likewise. Update.
4732 (probe_key_free): Remove.
4733 (_initialize_elfread): Update.
4734 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4735 Change type.
4736 (dtrace_process_dof_probe, dtrace_process_dof)
4737 (dtrace_static_probe_ops::get_probe): Change type.
4738
02dc647e
TT
47392019-05-08 Tom Tromey <tom@tromey.com>
4740
4741 * xcoffread.c (struct xcoff_symfile_info): Rename from
4742 coff_symfile_info. Add initializers.
4743 (xcoff_objfile_data_key): Move lower. Change type.
4744 (XCOFF_DATA): Rewrite.
4745 (xcoff_free_info): Remove.
4746 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4747 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4748 (xcoff_initial_scan): Update.
4749
09232438
TT
47502019-05-08 Tom Tromey <tom@tromey.com>
4751
4752 * solib-svr4.c (struct svr4_info): Add initializers and
4753 destructor.
4754 <probes_table>: Now an htab_up.
4755 (solib_svr4_pspace_data): Change type.
4756 (free_probes_table): Simplify.
4757 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4758 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4759 (probes_table_remove_objfile_probes, register_solib_event_probe)
4760 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4761 (_initialize_svr4_solib): Update.
4762
7b4a314f
TT
47632019-05-08 Tom Tromey <tom@tromey.com>
4764
4765 * remote.c (remote_pspace_data): Change type.
4766 (remote_pspace_data_cleanup): Remove.
4767 (get_remote_exec_file, set_pspace_remote_exec_file)
4768 (_initialize_remote): Update.
4769
51d3063a
TT
47702019-05-08 Tom Tromey <tom@tromey.com>
4771
4772 * breakpoint.c (breakpoint_objfile_key): Change type.
4773 (get_breakpoint_objfile_data): Update.
4774 (free_breakpoint_objfile_data): Remove.
4775 (_initialize_breakpoint): Update.
4776
89fb8848
TT
47772019-05-08 Tom Tromey <tom@tromey.com>
4778
4779 * linux-tdep.c (struct linux_info): Add initializers.
4780 (linux_inferior_data): Move. Change type.
4781 (invalidate_linux_cache_inf): Update.
4782 (linux_inferior_data_cleanup): Remove.
4783 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4784
e9b89e2d
TT
47852019-05-08 Tom Tromey <tom@tromey.com>
4786
4787 * auxv.c (auxv_inferior_data): Move. Change type.
4788 (auxv_inferior_data_cleanup): Remove.
4789 (invalidate_auxv_cache_inf): Rewrite.
4790 (get_auxv_inferior_data, _initialize_auxv): Update.
4791
8c42777c
TT
47922019-05-08 Tom Tromey <tom@tromey.com>
4793
4794 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4795 (symfile_debug_objfile_data_key): Change type.
4796 (symfile_debug_installed, debug_qf_has_symbols)
4797 (debug_qf_find_last_source_symtab)
4798 (debug_qf_forget_cached_source_info)
4799 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4800 (debug_qf_print_stats, debug_qf_dump)
4801 (debug_qf_expand_symtabs_for_function)
4802 (debug_qf_expand_all_symtabs)
4803 (debug_qf_expand_symtabs_with_fullname)
4804 (debug_qf_map_matching_symbols)
4805 (debug_qf_expand_symtabs_matching)
4806 (debug_qf_find_pc_sect_compunit_symtab)
4807 (debug_qf_map_symbol_filenames)
4808 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4809 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4810 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4811 (debug_sym_read_linetable, debug_sym_relocate): Update.
4812 (symfile_debug_free_objfile): Remove.
4813 (install_symfile_debug_logging, _initialize_symfile_debug):
4814 Update.
4815
5bfd760d
TT
48162019-05-08 Tom Tromey <tom@tromey.com>
4817
4818 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4819 allocate_on_obstack.
4820 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4821 (get_dwarf2_per_objfile): Update.
4822 (set_dwarf2_per_objfile): Remove.
4823 (dwarf2_has_info, dwarf2_get_section_info): Update.
4824 (dwarf2_free_objfile): Remove.
4825 (_initialize_dwarf2_read): Update.
4826
e85e19b4
TT
48272019-05-08 Tom Tromey <tom@tromey.com>
4828
4829 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4830 initializers.
4831 <unsupported_script_warning_printed,
4832 script_not_found_warning_printed>: Now bool.
4833 (auto_load_pspace_data): Change type.
4834 (~auto_load_pspace_info): Rename from
4835 auto_load_pspace_data_cleanup.
4836 (get_auto_load_pspace_data, init_loaded_scripts_info)
4837 (clear_section_scripts, maybe_print_unsupported_script_warning)
4838 (maybe_print_script_not_found_warning, _initialize_auto_load):
4839 Update.
4840
f6aa7436
TT
48412019-05-08 Tom Tromey <tom@tromey.com>
4842
4843 * objfiles.c (objfile_pspace_info): Add destructor and
4844 initializers.
4845 (objfiles_pspace_data): Change type.
4846 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4847 (get_objfile_pspace_data): Update.
4848 (objfiles_bfd_data): Change type.
4849 (get_objfile_bfd_data): Update.
4850 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4851
6ae614f6
TT
48522019-05-08 Tom Tromey <tom@tromey.com>
4853
4854 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4855 Change type.
4856 (get_catch_syscall_inferior_data): Update.
4857 (catch_syscall_inferior_data_cleanup): Remove.
4858 (_initialize_break_catch_syscall): Update.
4859
6509b8eb
TT
48602019-05-08 Tom Tromey <tom@tromey.com>
4861
4862 * inflow.c (struct terminal_info): Add destructor and
4863 initializers.
4864 (inflow_inferior_data): Change type.
4865 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4866 (get_inflow_inferior_data, inflow_inferior_exit)
4867 (swap_terminal_info, _initialize_inflow): Update.
4868
35632941
TT
48692019-05-08 Tom Tromey <tom@tromey.com>
4870
4871 * target-dcache.c (target_dcache_cleanup): Remove.
4872 (target_dcache_aspace_key): Change type.
4873 (target_dcache_init_p, target_dcache_invalidate)
4874 (target_dcache_get, target_dcache_get_or_init)
4875 (_initialize_target_dcache): Update.
4876 * dcache.h (struct dcache_deleter): New.
4877
3017b94d
TT
48782019-05-08 Tom Tromey <tom@tromey.com>
4879
4880 * symtab.c (struct symbol_cache): Add destructor and
4881 initializers.
4882 (symbol_cache_key): Move. Change type.
4883 (make_symbol_cache, free_symbol_cache): Remove.
4884 (get_symbol_cache): Update.
4885 (symbol_cache_cleanup): Remove.
4886 (ALL_PSPACES, symbol_cache_flush)
4887 (maintenance_print_symbol_cache)
4888 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4889 Update.
4890
a32ad8c5
TT
48912019-05-08 Tom Tromey <tom@tromey.com>
4892
4893 * symtab.c (struct main_info): Add destructor and initializers.
4894 (main_progspace_key): Move. Change type.
4895 (get_main_info): Update.
4896 (main_info_cleanup): Remove.
4897 (_initialize_symtab): Update.
4898
5f6e90a0
TT
48992019-05-08 Tom Tromey <tom@tromey.com>
4900
4901 * registry.h (DECLARE_REGISTRY): Define the _key class.
4902
1bd0c6e4
AB
49032019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4904
4905 * NEWS: Merge two 'New commands' sections.
4906
2228ef77
XR
49072019-05-08 Joel Brobecker <brobecker@adacore.com>
4908
4909 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4910 parameter and use Ada language definition instead.
4911 (ada_val_print_ptr): Remove unused language parameter.
4912 (ada_val_print_num): Remove language parameter and use Ada language
4913 definition instead.
4914 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4915 parameter.
4916 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4917 parameter and use Ada language definition instead.
4918 (ada_val_print_1): Update all ada_val_print_xxx calls.
4919 Remove language parameter.
4920 (ada_val_print): Update ada_val_print_1 call.
4921
60fcc1c3
TT
49222019-05-08 Tom Tromey <tromey@adacore.com>
4923
4924 * remote.c (remote_hw_watchpoint_limit)
4925 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4926 Now static.
4927
ed2b7c17
TT
49282019-05-08 Tom Tromey <tromey@adacore.com>
4929
4930 * maint.c (_initialize_maint_cmds): Move initialization code to
4931 remote.c.
4932 (watchdog, show_watchdog): Move to remote.c.
4933 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4934 "watchdog" static.
4935 (_initialize_remote): Move initialization code from maint.c.
4936 * defs.h (watchdog): Don't declare.
4937
b0be6c91
TT
49382019-05-08 Tom Tromey <tromey@adacore.com>
4939
4940 * tui/tui-interp.c: Include main.h.
4941 * interps.c: Include main.h.
4942 * main.h (interpreter_p): Declare.
4943 * defs.h (interpreter_p): Don't declare.
4944
587ee17b
TT
49452019-05-08 Tom Tromey <tromey@adacore.com>
4946
4947 * dwarf2loc.c: Include dwarf2read.h.
4948 * defs.h (read_unsigned_leb128): Don't declare.
4949 * dwarf2read.h (read_unsigned_leb128): Declare.
4950
ca1df239
TT
49512019-05-08 Tom Tromey <tromey@adacore.com>
4952
4953 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4954 method.
4955
99f20f08
TT
49562019-05-08 Tom Tromey <tromey@adacore.com>
4957
4958 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4959 when no wrap column is set.
4960
80e55b13
TT
49612019-05-08 Tom Tromey <tromey@adacore.com>
4962
4963 * c-lang.c (c_get_string): Handle non-C-style arrays.
4964
9d3421af
TT
49652019-05-08 Tom Tromey <tromey@adacore.com>
4966
4967 * typeprint.c (print_offset_data::update): Print the bit offset,
4968 not the number of bits remaining.
4969
844333e2
TT
49702019-05-08 Tom Tromey <tromey@adacore.com>
4971
4972 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4973 padding at end of comment.
4974
988915ee
TT
49752019-05-08 Tom Tromey <tromey@adacore.com>
4976
4977 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4978 Compare main types.
4979
26bfd823
TT
49802019-05-06 Tom Tromey <tom@tromey.com>
4981
4982 * common/scoped_mmap.c: Include common-defs.h.
4983 * common/scoped_mmap.h: Don't include config.h.
4984
89055eaa
TT
49852019-05-04 Tom Tromey <tom@tromey.com>
4986
4987 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4988 (struct aarch64_call_info): Add initializers.
4989 <si>: Now a std::vector.
4990 (pass_on_stack, aarch64_push_dummy_call): Update.
4991
5da01df5
TT
49922019-05-04 Simon Marchi <simon.marchi@efficios.com>
4993 Tom Tromey <tom@tromey.com>
4994
4995 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4996 (ppc_threads): Now a std::vector. Now static.
4997 (hwdebug_find_thread_points_by_tid)
4998 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4999 Update.
5000
fbdf05a1
TT
50012019-05-04 Tom Tromey <tom@tromey.com>
5002
5003 * arc-tdep.c (arc_tdesc_init): Return bool.
5004
06d16ec9
TT
50052019-05-04 Tom Tromey <tom@tromey.com>
5006
5007 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5008 Use gdb_assert_not_reached.
5009
9c056022
TT
50102019-05-04 Tom Tromey <tom@tromey.com>
5011
5012 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5013 "false".
5014
fa9c2a59
TT
50152019-05-04 Tom Tromey <tom@tromey.com>
5016
5017 * arc-tdep.c (arc_tdesc_init): Use bool.
5018
e2eb806a
TT
50192019-05-04 Tom Tromey <tom@tromey.com>
5020
5021 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5022
6fe87677
TT
50232019-05-04 Tom Tromey <tom@tromey.com>
5024
5025 * cli/cli-cmds.c (valid_command_p): Return bool.
5026
7f008c9e
TT
50272019-05-04 Tom Tromey <tom@tromey.com>
5028
5029 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5030 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5031
b6484282
RT
50322019-05-04 Raul Tambre <raul@tambre.ee>
5033
5034 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5035 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5036 operator for comparison.
5037
af97b416
TT
50382019-05-04 Tom Tromey <tom@tromey.com>
5039
5040 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5041 (lookup_partial_symbol, print_partial_symbols)
5042 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5043 (psymbol_compare): Update.
5044 (add_psymbol_to_bcache): Clear the entire psymbol.
5045 (maintenance_check_psymtabs): Update.
5046 * psympriv.h (struct partial_symbol): Don't derive from
5047 general_symbol_info.
5048 <obj_section, unrelocated_address, address,
5049 set_unrelocated_address>: Update.
5050 <ginfo>: New member.
5051 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5052 (debug_names::write_psymbols): Update.
5053
9d6d4be8
TV
50542019-05-04 Tom de Vries <tdevries@suse.de>
5055
5056 * contrib/cc-with-tweaks.sh: Support -n arg.
5057
66452beb
PW
50582019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5059
5060 * corelow.c (core_target::detach): Ensure frame cache and
5061 register caches are cleared.
5062 inferior.c (exit_inferior_1): Likewise.
5063
bde09ab7
TT
50642019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5065 Tom Tromey <tom@tromey.com>
5066
5067 * dictionary.c (collate_pending_symbols_by_language): Remove
5068 "struct" from foreach.
5069 * symtab.c (lookup_global_symbol_from_objfile)
5070 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5071 foreach.
5072 * ser-tcp.c (net_open): Remove "struct" from foreach.
5073 * objfiles.c (objfile_relocate, objfile_rebase)
5074 (objfile_has_symbols): Remove "struct" from foreach.
5075 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5076 from foreach.
5077 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5078 foreach.
5079 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5080 "struct" from foreach.
5081 * ada-lang.c (create_excep_cond_exprs)
5082 (ada_exception_catchpoint_cond_string): Remove "struct" from
5083 foreach.
5084
222a8d25
TT
50852019-05-03 Tom Tromey <tromey@adacore.com>
5086
5087 * ada-exp.y (convert_char_literal): Check suffix of each
5088 enumerator.
5089
fcd60b84
DP
50902019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5091
5092 PR ada/21406:
5093 * ada-exp.y (yywrap): Don't define.
5094 * ada-lex.l (%option): Add noyywrap
5095 (yywrap): Remove.
5096
5f2459c2
EZ
50972019-05-03 Eli Zaretskii <eliz@gnu.org>
5098
353ea2d1
EZ
5099 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5100 _WIN32_WINNT to the XP level, unless already defined to a higher
5101 level.
5102
5103 * unittests/parse-connection-spec-selftests.c:
5104 * ser-tcp.c:
5105 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5106 override.
5107
5f2459c2
EZ
5108 * symfile.c (find_separate_debug_file): Remove colon from the
5109 drive spec of DOS/Windows file names of the target, so that the
5110 file name produced from DEBUGDIR and the target's directory will
5111 be valid on DOS/Windows systems.
5112
80062eb9
AB
51132019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * rust-lang.c (val_print_struct): Handle printing structures
5116 containing strings.
5117
b8c05e85
TT
51182019-05-02 Tom Tromey <tromey@adacore.com>
5119
5120 * valarith.c (_initialize_valarith): Remove.
5121
4504bbde
TT
51222019-05-01 Tom Tromey <tromey@adacore.com>
5123
5124 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5125 bitfields.
5126
d48e62f4
TT
51272019-05-01 Tom Tromey <tromey@adacore.com>
5128
5129 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5130 for big-endian copies.
5131
15f18d14
AT
51322019-04-30 Ali Tamur <tamur@google.com>
5133 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5134 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5135 (read_3_bytes): New function.
5136
ab4ee614
JB
51372019-04-30 Joel Brobecker <brobecker@adacore.com>
5138
5139 * windows-nat.c (main_thread_id): Delete.
5140 (handle_output_debug_string): Replace main_thread_id by
5141 current_event.dwThreadId.
5142 (fake_create_process): Likewise.
5143 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5144 Do not set main_thread_id.
5145 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5146 current_event.dwThreadId.
5147 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5148
8ed5b76e
JB
51492019-04-30 Joel Brobecker <brobecker@adacore.com>
5150
5151 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5152 Use current_event.dwThreadId instead of main_thread_id.
5153
2ff0a947
TT
51542019-04-30 Tom Tromey <tromey@adacore.com>
5155
5156 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5157 (create_excep_cond_exprs): Iterate over program spaces.
5158 (ada_exception_catchpoint_cond_string): Examine all minimal
5159 symbols for exception types.
5160
a776957c
TT
51612019-04-30 Tom Tromey <tromey@adacore.com>
5162
5163 PR c++/24470:
5164 * dwarf2read.c (process_structure_scope): Handle case where type
5165 has template parameters but no symbol was created.
5166
bc68014d
AB
51672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5168 Chris January <chris.january@arm.com>
5169
5170 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5171 qualifier.
5172 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5173
f1fdc960
AB
51742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * f-typeprint.c (f_print_type): Update rules for printing
5177 whitespace.
5178 (f_type_print_varspec_suffix): Likewise.
5179
bf7a4de1
AB
51802019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5181 Chris January <chris.january@arm.com>
5182
5183 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5184 function arguments.
5185
bbe75b9d
AB
51862019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5187
5188 * f-lang.c (build_fortran_types): Change name of void type to
5189 lower case.
5190 * f-typeprint.c (f_type_print_base): Print the name of the void
5191 type, rather than a fixed string.
5192 * f-valprint.c (f_decorations): Use lower case void string.
5193
1db455a7
AB
51942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5195 Chris January <chris.january@arm.com>
5196
5197 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5198 types for Fortran.
5199
b6d03bb2
AB
52002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5201 Chris January <chris.january@arm.com>
5202 David Lecomber <david.lecomber@arm.com>
5203
5204 * f-exp.y (BINOP_INTRINSIC): New token.
5205 (exp): New parser rule handling BINOP_INTRINSIC.
5206 (f77_keywords): Add new builtin procedures.
5207 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5208 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5209 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5210 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5211 (print_unop_subexp_f): New function.
5212 (print_binop_subexp_f): New function.
5213 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5214 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5215 (dump_subexp_body_f): Likewise.
5216 (operator_check_f): Likewise.
5217 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5218 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5219
83228e93
AB
52202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5221
5222 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5223 UNOP_KIND.
5224 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5225 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5226 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5227 (operator_length_f): New fuction.
5228 (print_subexp_f): New function.
5229 (op_name_f): New function.
5230 (dump_subexp_body_f): New function.
5231 (operator_check_f): New function.
5232 (exp_descriptor_f): Replace standard expression handling functions
5233 with new functions.
5234 * gdb/fortran-operator.def: New file.
5235 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5236 * gdb/std-operator.def: Remove UNOP_KIND.
5237
6fdcd7cc
AB
52382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5239
5240 * std-operator.def: Remove unbalanced, stray double quote
5241 character.
5242
2e62ab40
AB
52432019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5244 Chris January <chris.january@arm.com>
5245 Daniel Everett <daniel.everett@arm.com>
5246 Nick Forrington <nick.forrington@arm.com>
5247 Richard Bunt <richard.bunt@arm.com>
5248
5249 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5250 of depth when printing anonymous structs or unions.
5251 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5252 Don't print either the top-level value, or the children if the
5253 max-depth is exceeded.
5254 (ppscm_print_children): When printing the key of a map, allow one
5255 extra level of depth.
5256 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5257 print either the top-level value, or the children if the max-depth
5258 is exceeded.
5259 (print_children): When printing the key of a map, allow one extra
5260 level of depth.
5261 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5262 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5263 (user_print_options): Initialise max_depth field.
5264 (val_print_scalar_or_string_type_p): New function.
5265 (val_print): Check to see if the max depth has been reached.
5266 (val_print_check_max_depth): Define new function.
5267 (show_print_max_depth): New function.
5268 (_initialize_valprint): Add 'print max-depth' option.
5269 * valprint.h (struct value_print_options) <max_depth>: New field.
5270 (val_print_check_max_depth): Declare new function.
5271 * NEWS: Document new feature.
5272
4be290b2
AB
52732019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5274
5275 * ada-lang.c (ada_language_defn): Initialise new field.
5276 * c-lang.c (c_is_string_type_p): New function.
5277 (c_language_defn): Initialise new field.
5278 (cplus_language_defn): Initialise new field.
5279 (asm_language_defn): Initialise new field.
5280 (minimal_language_defn): Initialise new field.
5281 * c-lang.h (c_is_string_type_p): Declare new function.
5282 * d-lang.c (d_language_defn): Initialise new field.
5283 * f-lang.c (f_is_string_type_p): New function.
5284 (f_language_defn): Initialise new field.
5285 * go-lang.c (go_is_string_type_p): New function.
5286 (go_language_defn): Initialise new field.
5287 * language.c (default_is_string_type_p): New function.
5288 (unknown_language_defn): Initialise new field.
5289 (auto_language_defn): Initialise new field.
5290 * language.h (struct language_defn) <la_is_string_type_p>: New
5291 member variable.
5292 (default_is_string_type_p): Declare new function.
5293 * m2-lang.c (m2_language_defn): Initialise new field.
5294 * objc-lang.c (objc_language_defn): Initialise new field.
5295 * opencl-lang.c (opencl_language_defn): Initialise new field.
5296 * p-lang.c (pascal_is_string_type_p): New function.
5297 (pascal_language_defn): Initialise new field.
5298 * rust-lang.c (rust_is_string_type_p): New function.
5299 (rust_language_defn): Initialise new field.
5300
721b08c6
AB
53012019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5302
5303 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5304 New field.
5305 * ada-lang.c (ada_language_defn): Initialise new field.
5306 * c-lang.c (c_language_defn): Likewise.
5307 (cplus_language_defn): Likewise.
5308 (asm_language_defn): Likewise.
5309 (minimal_language_defn): Likewise.
5310 * d-lang.c (d_language_defn): Likewise.
5311 * f-lang.c (f_language_defn): Likewise.
5312 * go-lang.c (go_language_defn): Likewise.
5313 * language.c (unknown_language_defn): Likewise.
5314 (auto_language_defn): Likewise.
5315 * m2-lang.c (m2_language_defn): Likewise.
5316 * objc-lang.c (objc_language_defn): Likewise.
5317 * opencl-lang.c (opencl_language_defn): Likewise.
5318 * p-lang.c (pascal_language_defn): Likewise.
5319 * rust-lang.c (rust_language_defn): Likewise.
5320
fc913e53
AB
53212019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5322
5323 * ada-lang.c (ada_is_character_type): Change return type to bool.
5324 (ada_is_string_type): Likewise.
5325 * ada-lang.h (ada_is_character_type): Update declaration
5326 (ada_is_string_type): Likewise.
5327
fa731fa0
PW
53282019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5329
5330 Support style in 'frame|thread apply'
5331
5332 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5333 * record.c (record_start, record_stop): Update callers of
5334 execute_command_to_string with false.
5335 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5336 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5337 methods.
5338 (class string_file): New constructor with term_out parameter.
5339 Override methods term_out and can_emit_style_escape. New member
5340 term_out.
5341 (class stdio_file): Override can_emit_style_escape.
5342 (class tee_file): Override term_out and can_emit_style_escape.
5343 * utils.h (can_emit_style_escape): Remove.
5344 * utils.c (can_emit_style_escape): Likewise.
5345 Update all callers of can_emit_style_escape (SOMESTREAM) to
5346 SOMESTREAM->can_emit_style_escape.
5347 * source-cache.c (source_cache::get_source_lines): Likewise.
5348 * stack.c (frame_apply_command_count): Call execute_command_to_string
5349 passing the term_out characteristic of the current gdb_stdout.
5350 * thread.c (thr_try_catch_cmd): Likewise.
5351 * top.c (execute_command_to_string): pass term_out parameter
5352 to construct the string_file for the command output.
5353 * ui-file.c (term_cli_styling): New function (most code moved
5354 from utils.c can_emit_style_escape).
5355 (string_file::string_file, string_file::can_emit_style_escape,
5356 stdio_file::can_emit_style_escape, tee_file::term_out,
5357 tee_file::can_emit_style_escape): New functions.
5358
136afab8
PW
53592019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5360
5361 * NEWS: Mention the new set|show may-call-functions.
5362 * infcall.c (may_call_functions_p): New variable.
5363 (show_may_call_functions_p): New function.
5364 (call_function_by_hand_dummy): Throws an error if not
5365 may-call-functions.
5366 (_initialize_infcall): Call add_setshow_boolean_cmd for
5367 may-call-functions.
5368
725cbb63
KS
53692019-04-25 Keith Seitz <keiths@redhat.com>
5370
5371 PR c++/24367
5372 * cp-support.c (inspect_type): Don't attempt substitutions
5373 of symbol with the same name.
5374
3d1cbb78
TT
53752019-04-25 Tom Tromey <tromey@adacore.com>
5376
5377 PR gdb/24475:
5378 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5379 static.
5380
94aeb44b
TT
53812019-04-25 Tom Tromey <tromey@adacore.com>
5382
5383 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5384 rvalue reference.
5385 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5386 (gdb_xml_parser::parse): Use std::move.
5387 * python/python-internal.h (gdbpy_convert_exception): Take a const
5388 reference.
5389 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5390 std::move.
5391 * python/py-utils.c (gdbpy_convert_exception): Take a const
5392 reference.
5393 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5394 Use std::move.
5395 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5396 Use std::move.
5397 * mi/mi-main.c (mi_print_exception): Take a const reference.
5398 * main.c (handle_command_errors): Take a const reference.
5399 * linespec.c (parse_linespec): Use std::move.
5400 * infcall.c (run_inferior_call): Use std::move.
5401 (call_function_by_hand_dummy): Use std::move.
5402 * exec.c (try_open_exec_file): Use std::move.
5403 * exceptions.h (exception_print, exception_fprintf)
5404 (exception_print_same): Update.
5405 * exceptions.c (print_exception, exception_print)
5406 (exception_fprintf, exception_print_same): Change parameters to
5407 const reference.
5408 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5409 * common/new-op.c: Use std::move.
5410 * common/common-exceptions.h (struct gdb_exception): Add move
5411 constructor.
5412 (struct gdb_exception_error, struct gdb_exception_quit, struct
5413 gdb_quit_bad_alloc): Change constructor to move constructor.
5414 (throw_exception): Change parameter to rvalue reference.
5415 * common/common-exceptions.c (throw_exception): Take rvalue
5416 reference.
5417 * cli/cli-interp.c (safe_execute_command): Use std::move.
5418 * breakpoint.c (insert_bp_location, location_to_sals): Use
5419 std::move.
5420
680d7fd5
TT
54212019-04-25 Tom Tromey <tromey@adacore.com>
5422
5423 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5424 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5425 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5426 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5427 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5428 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5429 guile/scm-value.c: Use unpack.
5430 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5431 gdbscm_gdb_exception.
5432 (gdbscm_throw_gdb_exception): Likewise.
5433 (struct gdbscm_gdb_exception): New.
5434 (unpack): New function.
5435 (gdbscm_wrap): Use unpack.
5436
c6fdd8b2
TT
54372019-04-25 Tom Tromey <tromey@adacore.com>
5438
5439 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5440 (gdb_rl_callback_handler): Use std::move.
5441 * common/common-exceptions.h (struct gdb_exception): Add move
5442 assignment operator.
5443 (throw_exception_sjlj): Change "exception" to const reference.
5444 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5445 (throw_exception_sjlj): Change "exception" to const reference.
5446
cc06b668
TT
54472019-04-25 Tom Tromey <tromey@adacore.com>
5448
5449 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5450 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5451 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5452 Update.
5453 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5454 Update.
5455 * mi/mi-interp.c (mi_interp::exec): Update.
5456 * linespec.c (parse_linespec): Update.
5457 * infcall.c (run_inferior_call): Update.
5458 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5459 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5460 (gdbscm_lookup_global_symbol): Update.
5461 * guile/scm-param.c (gdbscm_parameter_value): Update.
5462 * guile/scm-frame.c (gdbscm_frame_read_register)
5463 (gdbscm_frame_read_var): Update.
5464 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5465 * exec.c (try_open_exec_file): Update.
5466 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5467 (gdb_rl_callback_handler): Update.
5468 * common/common-exceptions.h (exception_none): Don't declare.
5469 * common/common-exceptions.c (exception_none): Don't define.
5470 (struct catcher) <exception>: Update.
5471 * cli/cli-interp.c (safe_execute_command): Update.
5472 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5473
cf532bd1
AT
54742019-04-25 Ali Tamur <tamur@google.com>
5475
5476 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5477 (read_attribute_value): Likewise.
5478 (dwarf2_read_addr_index): Update comment.
5479 (read_str_index): Add DW_FORM_strx.
5480 (dwarf2_string_attr): Likewise.
5481 (dwarf2_const_value_attr): Likewise.
5482 (dump_die_shallow): Likewise.
5483 (dwarf2_fetch_constant_bytes): Likewise.
5484 (skip_form_bytes): Likewise.
5485 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5486
82433e3e
SDJ
54872019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5488
5489 PR corefiles/11608
5490 PR corefiles/18187
5491 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5492 OFFSET. Verify if current mapping contains an ELF header.
5493 (linux_find_memory_regions_full): Adjust call to
5494 dump_mapping_p.
5495
723adb65
SL
54962019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5497 Kang Li <kanglictf@gmail.com>
5498
5499 PR gdb/21600
5500
5501 * dwarf2-frame.c (read_initial_length): Be consistent about using
5502 unsigned representation of length.
5503 (decode_frame_entry_1): Likewise. Check for wraparound of
5504 end pointer as well as buffer overflow.
5505
596179f7
SDJ
55062019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5507
5508 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5509 "vq".
5510
a59240a4
TT
55112019-04-24 Tom Tromey <tromey@adacore.com>
5512
5513 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5514
f872fdbb
AB
55152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5516
5517 * s12z-tdep.c (s12z_unwind_pc): Delete.
5518 (s12z_unwind_sp): Delete.
5519 (s12z_gdbarch_init): Don't register deleted functions with
5520 gdbarch.
5521
b614e6f3
AB
55222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5523
5524 * rl78-tdep.c (rl78_unwind_sp): Delete.
5525 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5526
14faed38
AB
55272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5530 (xstormy16_unwind_pc): Delete.
5531 (xstormy16_dummy_id): Delete.
5532 (xstormy16_gdbarch_init): Don't register deleted functions with
5533 gdbarch.
5534
541aad8a
AB
55352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5536
5537 * vax-tdep.c (vax_unwind_pc): Delete.
5538 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5539
29222070
AB
55402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5541
5542 * v850-tdep.c (v850_unwind_sp): Delete.
5543 (v850_unwind_pc): Delete.
5544 (v850_dummy_id): Delete.
5545 (v850_gdbarch_init): Don't register deleted functions with
5546 gdbarch.
5547
0f534d76
AB
55482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5551 (tilegx_unwind_pc): Delete.
5552 (tilegx_unwind_dummy_id): Delete.
5553 (tilegx_gdbarch_init): Don't register deleted functions with
5554 gdbarch.
5555
1ba7b7f9
AB
55562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5559 (tic6x_dummy_id): Delete.
5560 (tic6x_gdbarch_init): Don't register deleted functions with
5561 gdbarch.
5562
d31f262c
AB
55632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5564
5565 * sparc-tdep.c (sparc_unwind_pc): Delete.
5566 (sparc32_gdbarch_init): Don't register deleted function with
5567 gdbarch.
5568
6d14d64d
AB
55692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5570
5571 * sh-tdep.c (sh_unwind_sp): Delete.
5572 (sh_unwind_pc): Delete.
5573 (sh_dummy_id): Delete.
5574 (sh_gdbarch_init): Don't register deleted functions with
5575 gdbarch.
5576
a40dde9d
AB
55772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5578
5579 * score-tdep.c (score_unwind_sp): Delete.
5580 (score_unwind_pc): Delete.
5581 (score_dummy_id): Delete.
5582 (score_gdbarch_init): Don't register deleted functions with
5583 gdbarch.
5584
47c47d69
AB
55852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * rx-tdep.c (rx_unwind_pc): Delete.
5588 (rx_unwind_sp): Delete.
5589 (rx_dummy_id): Delete.
5590 (rx_gdbarch_init): Don't register deleted functions with
5591 gdbarch. Update comment.
5592
833a4480
AB
55932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5594
5595 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5596 (rs6000_dummy_id): Delete.
5597 (rs6000_gdbarch_init): Don't register deleted functions with
5598 gdbarch.
5599
3f2cef49
AB
56002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5601
5602 * or1k-tdep.c (or1k_dummy_id): Delete.
5603 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5604
96acf884
AB
56052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5606
5607 * nios2-tdep.c (nios2_dummy_id): Delete.
5608 (nios2_unwind_sp): Delete.
5609 (nios2_gdbarch_init): Don't register deleted functions with
5610 gdbarch.
5611
ca0ab0aa
AB
56122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5613
5614 * nds32-tdep.c (nds32_dummy_id): Delete.
5615 (nds32_unwind_pc): Delete.
5616 (nds32_unwind_sp): Delete.
5617 (nds32_gdbarch_init): Don't register deleted functions with
5618 gdbarch.
5619
c8259044
AB
56202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 * msp430-tdep.c (msp430_unwind_pc): Delete.
5623 (msp430_unwind_sp): Delete.
5624 (msp430_dummy_id): Delete.
5625 (msp430_gdbarch_init): Don't register deleted functions with
5626 gdbarch.
5627
27f113c8
AB
56282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5629
5630 * moxie-tdep.c (moxie_unwind_sp): Delete.
5631 (moxie_unwind_pc): Delete.
5632 (moxie_dummy_id): Delete.
5633 (moxie_gdbarch_init): Don't register deleted functions with
5634 gdbarch.
5635
aee6c3cd
AB
56362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5637
5638 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5639 (mn10300_unwind_pc): Delete.
5640 (mn10300_unwind_sp): Delete.
5641 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5642 mn10300_unwind_sp.
5643 (mn10300_frame_unwind_init): Don't register deleted functions with
5644 gdbarch.
5645
8e2b5aea
AB
56462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5647
5648 * mep-tdep.c (mep_unwind_pc): Delete.
5649 (mep_unwind_sp): Delete.
5650 (mep_dummy_id): Delete.
5651 (mep_gdbarch_init): Don't register deleted functions with
5652 gdbarch.
5653
43cf3ede
AB
56542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5655
5656 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5657 (m68hc11_unwind_sp): Delete.
5658 (m68hc11_gdbarch_init): Don't register deleted functions with
5659 gdbarch.
5660
5e79b7bb
AB
56612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5662
5663 * m32r-tdep.c (m32r_unwind_sp): Delete.
5664 (m32r_unwind_pc): Delete.
5665 (m32r_dummy_id): Delete.
5666 (m32r_gdbarch_init): Don't register deleted functions with
5667 gdbarch.
5668
89b268d8
AB
56692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5670
5671 * m32c-tdep.c (m32c_unwind_pc): Delete.
5672 (m32c_unwind_sp): Delete.
5673 (m32c_dummy_id): Delete.
5674 (m32c_gdbarch_init): Don't register deleted functions with
5675 gdbarch.
5676
946c28d2
AB
56772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5678
5679 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5680 (lm32_unwind_pc): Delete.
5681 (lm32_dummy_id): Delete.
5682 (lm32_gdbarch_init): Don't register deleted functions with
5683 gdbarch.
5684
bf12844a
AB
56852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5686
5687 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5688 (iq2000_unwind_pc): Delete.
5689 (iq2000_dummy_id): Delete.
5690 (iq2000_gdbarch_init): Don't register deleted functions with
5691 gdbarch.
5692
ecbc06d2
AB
56932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5694
5695 * nds32-tdep.c (nds32_type_align): Delete.
5696 (nds32_push_dummy_call): Use type_align instead.
5697
030197b4
AB
56982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * arm-tdep.c (arm_type_align): Only handle vector override case.
5701 (arm_push_dummy_call): Use type_align.
5702 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5703
b907456c
AB
57042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5707 case.
5708 (pass_on_stack): Use type_align.
5709 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5710 function.
5711
9e97ba43
TT
57122019-04-23 Tom Tromey <tromey@adacore.com>
5713
5714 * dwarf2read.c (line_header::file_name_at): Remove unused
5715 overload.
5716
6892f601
TV
57172019-04-23 Tom de Vries <tdevries@suse.de>
5718
5719 PR gdb/24438
5720 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5721 invocation.
5722
336d760d
AT
5723
57242019-03-27 Ali Tamur <tamur@google.com>
5725
5726 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5727 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5728 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5729 (dwarf_expr_context::get_addr_index): Likewise
5730 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5731 (symbol_needs_eval_context::get_addr_index): Likewise
5732 (disassemble_dwarf_expression): Add DW_OP_addrx
5733 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5734 (read_cutu_die_from_dwo): Update comment
5735 (skip_one_die): Add DW_FORM_addrx
5736 (read_attribute_value): Likewise
5737 (var_decode_location): Add DW_OP_addrx
5738 (dwarf2_const_value_attr): Add DW_FORM_addrx
5739 (dump_die_shallow): Likewise
5740 (dwarf2_fetch_constant_bytes): Likewise
5741 (decode_locdesc): Add DW_OP_addrx
5742 (skip_form_bytes): Add DW_FORM_addrx
5743
ad9d13f8
AT
57442019-04-22 Ali Tamur <tamur@google.com>
5745
5746 * MAINTAINERS (Write After Approval): Add self.
5747
d70cc3ba
SM
57482019-04-22 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5751 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5752 (open_symbol_file_object): Likewise.
5753 (svr4_default_sos): Add info parameter.
5754 (svr4_read_so_list): Likewise.
5755 (svr4_current_sos_direct): Adjust functions calls to pass down
5756 info.
5757 (svr4_current_sos_1): Add info parameter.
5758 (svr4_current_sos): Call get_svr4_info, pass info down to
5759 svr4_current_sos_1.
5760 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5761 get_svr4_info.
5762 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5763 get_svr4_info.
5764 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5765 to get_svr4_info.
5766 (probes_table_remove_objfile_probes): Likewise.
5767 (register_solib_event_probe): Add info parameter.
5768 (solist_update_incremental): Pass info parameter down to
5769 svr4_read_so_list.
5770 (disable_probes_interface): Add info parameter.
5771 (svr4_handle_solib_event): Pass current_program_space to
5772 get_svr4_info. Adjust disable_probes_interface cleanup.
5773 (svr4_create_probe_breakpoints): Add info parameter, pass it
5774 down to register_solib_event_probe.
5775 (svr4_create_solib_event_breakpoints): Add info parameter,
5776 pass it down to svr4_create_probe_breakpoints.
5777 (enable_break): Pass info down to
5778 svr4_create_solib_event_breakpoints.
5779 (svr4_solib_create_inferior_hook): Pass current_program_space to
5780 get_svr4_info.
5781 (svr4_clear_solib): Likewise.
5782
7905fc35
PA
57832019-04-22 Pedro Alves <palves@redhat.com>
5784
5785 * solib-svr4.c (svr4_free_objfile_observer): New.
5786 (probe_and_action::objfile): New field.
5787 (probes_table_htab_remove_objfile_probes)
5788 (probes_table_remove_objfile_probes): New functions.
5789 (register_solib_event_probe): Add 'objfile' parameter. Store it
5790 in the new probe_and_action. Don't store the probe in 'lookup'.
5791 (svr4_create_probe_breakpoints): Pass objfile to
5792 register_solib_event_probe.
5793 (_initialize_svr4_solib): Register a free_objfile observer.
5794
fb881986
TT
57952019-04-19 Tom Tromey <tom@tromey.com>
5796
5797 * common/queue.h: Remove.
5798
8732db6c
TT
57992019-04-19 Tom Tromey <tom@tromey.com>
5800
5801 * event-loop.c: Don't include "common/queue.h".
5802
97dfbadd
TT
58032019-04-19 Tom Tromey <tom@tromey.com>
5804
5805 * remote.c (remote_target): Use delete.
5806 * remote-notif.h: Include <list>, not "common/queue.h".
5807 (notif_client_p): Remove typedef.
5808 (remote_notif_state): Add constructor, destructor, initializer.
5809 <notif_queue>: Now a std::list.
5810 (remote_notif_state_xfree): Don't declare.
5811 * remote-notif.c (remote_notif_process, handle_notification)
5812 (remote_notif_state_allocate): Update.
5813 (~remote_notif_state): Rename from remote_notif_state_xfree.
5814
cf250e36
TT
58152019-04-19 Tom Tromey <tom@tromey.com>
5816
5817 * symfile.c (reread_symbols): Update.
5818 * objfiles.c (objfile_register_static_link)
5819 (objfile_lookup_static_link): Update
5820 (~objfile) Don't delete static_links.
5821 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5822
61f4b350
TT
58232019-04-19 Tom Tromey <tom@tromey.com>
5824
5825 * type-stack.h (struct type_stack) <insert>: Constify string.
5826 * type-stack.c (type_stack::insert): Constify string.
5827 * gdbtypes.h (lookup_template_type): Update.
5828 (address_space_name_to_int): Update.
5829 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5830 const.
5831 (lookup_template_type): Make name const.
5832 * c-exp.y: Update rules.
5833 (lex_one_token, classify_name, classify_inner_name)
5834 (c_print_token): Update.
5835 * p-exp.y: Update rules.
5836 (yylex): Update.
5837 * f-exp.y: Update rules.
5838 (yylex): Update.
5839 * d-exp.y: Update rules.
5840 (lex_one_token, classify_name, classify_inner_name): Update.
5841 * parse.c (write_dollar_variable, copy_name): Return std::string.
5842 * parser-defs.h (copy_name): Change return type.
5843 * m2-exp.y: Update rules.
5844 (yylex): Update.
5845 * go-exp.y (lex_one_token): Update.
5846 Update rules.
5847 (classify_unsafe_function, classify_packaged_name)
5848 (classify_name, yylex): Update.
5849
189b8c2e
ST
58502019-04-19 Sergei Trofimovich <siarheit@google.com>
5851
5852 * configure.ac: add --enable-source-highlight switch.
5853 * configure: Regenerate.
5854 * top.c (print_gdb_version): plumb --enable-source-highlight
5855 status to "show configuration".
5856
8ecb59f8
TT
58572019-04-19 Tom Tromey <tromey@adacore.com>
5858
5859 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5860 Check ADA_TYPE_P.
5861 (empty_record, ada_template_to_fixed_record_type_1)
5862 (template_to_static_fixed_type)
5863 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5864 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5865 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5866 macros.
5867
62160ec9
TT
58682019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5869
5870 PR symtab/24423:
5871 * source.c (print_source_lines_base): Advance "iter" when a
5872 control character is seen.
5873
f2ae8bc8
PW
58742019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5875
5876 * inferior.h (struct infcall_suspend_state_deleter):
5877 Catch exception in destructor to avoid crash.
5878
d563b953
PW
58792019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5880
5881 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5882 close to the add_com "shell".
5883
dc34c897
TT
58842019-04-18 Tom Tromey <tromey@adacore.com>
5885
5886 * process-stratum-target.h (class process_stratum_target)
5887 <stratum>: Add "final".
5888
a12e5744
TT
58892019-04-17 Tom Tromey <tromey@adacore.com>
5890
5891 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5892 against nullptr before use.
5893
a7e559cc
AH
58942019-04-17 Alan Hayward <alan.hayward@arm.com>
5895
5896 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5897
c01660c6
AB
58982019-04-17 Jim Wilson <jimw@sifive.com>
5899 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5902 code read might fail, assume 4-byte breakpoint in that case.
5903
4aa866af
LS
59042019-04-15 Leszek Swirski <leszeks@google.com>
5905
5906 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5907 rather than a hand-rolled POD check when checking for forced MEMORY
5908 classification.
5909
48574d91
AH
59102019-04-15 Alan Hayward <alan.hayward@arm.com>
5911
5912 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5913 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5914 function.
5915 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5916 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5917 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5918 declaration.
5919
4da037ef
AH
59202019-04-15 Alan Hayward <alan.hayward@arm.com>
5921
5922 * aarch64-linux-nat.c
5923 (aarch64_linux_nat_target::thread_architecture): Add override.
5924 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5925 each VQ.
5926
ccb8d7e8
AH
59272019-04-15 Alan Hayward <alan.hayward@arm.com>
5928
5929 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5930
35add35e
AB
59312019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5934 target types of size 96-bits, add some additional comments, and
5935 check that the builtin type we found was the correct size.
5936
51196bbc
EZ
59372019-04-12 Eli Zaretskii <eliz@gnu.org>
5938
5939 * utils.c (prompt_for_continue): Don't restore the styling at the
5940 end, as applied_style has the wrong value. This fixes styling in
5941 long lists of file names that are interrupted by the "Continue?"
5942 prompt.
5943
62253a61
AB
59442019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5947 * c-lang.c (c_language_defn): Likewise.
5948 (cplus_language_defn): Likewise.
5949 (asm_language_defn): Likewise.
5950 (minimal_language_defn): Likewise.
5951 * d-lang.c (d_language_defn): Likewise.
5952 * f-lang.c (f_language_defn): Likewise.
5953 * go-lang.c (go_language_defn): Likewise.
5954 * language.c (unknown_language_defn): Likewise.
5955 (auto_language_defn): Likewise.
5956 * language.h (struct language_defn): Remove la_magic field.
5957 (LANG_MAGIC): Delete.
5958 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5959 * objc-lang.c (objc_language_defn): Likewise.
5960 * opencl-lang.c (opencl_language_defn): Likewise.
5961 * p-lang.c (pascal_language_defn): Likewise.
5962 * rust-lang.c (rust_language_defn): Likewise.
5963
a9158a86
AB
59642019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5965
5966 * riscv-tdep.c (riscv_type_align): New function.
5967 (riscv_type_alignment): Delete.
5968 (riscv_arg_location): Use 'type_align'.
5969 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5970
41077b66
AB
59712019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5972
5973 * gdbtypes.c (type_align): A struct with no non-static fields also
5974 has alignment of 1.
5975
9f0272f8
AB
59762019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5977
5978 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5979 component to 0.
5980 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5981 member.
5982 (riscv_struct_info::analyse): New implementation using new
5983 analyse_inner member function.
5984 (riscv_struct_info::field_offset): New member function.
5985 (riscv_struct_info::m_offsets): New member variable.
5986 (riscv_struct_info::analyse_inner): New private member function,
5987 takes the old implementation of riscv_struct_info::analyse but
5988 extended to track field offsets.
5989 (riscv_call_arg_struct): Update the struct folding special cases
5990 to handle cases where empty C++ structs, which are non-zero
5991 length, are found.
5992 (riscv_arg_location): Initialise the length of each location, a
5993 non-zero length now indicates the location is in use.
5994 (riscv_push_dummy_call): Allow for the first location having a
5995 non-zero offset when setting up arguments.
5996 (riscv_return_value): Likewise, but for return values.
5997
02cf60c7
TT
59982019-04-11 Tom Tromey <tromey@adacore.com>
5999
6000 * utils.c (internal_vproblem): Make "msg" const.
6001
68811f8f
AH
60022019-04-11 Alan Hayward <alan.hayward@arm.com>
6003
6004 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6005 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6006 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6007 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6008
3f52fdbc
KB
60092019-04-10 Kevin Buettner <kevinb@redhat.com>
6010
6011 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6012 function.
6013 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6014 of amd64_collect_native_gregset.
6015 (amd64_linux_nat_target::store_registers): Likewise.
6016
e9ad22ee
TT
60172019-04-10 Tom Tromey <tom@tromey.com>
6018
6019 * symtab.c (lookup_global_symbol_from_objfile)
6020 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6021 * objfiles.h (class separate_debug_iterator): New.
6022 (class separate_debug_range): New.
6023 (struct objfile) <separate_debug_objfiles>: New method.
6024 (objfile_separate_debug_iterate): Don't declare.
6025 * objfiles.c (separate_debug_iterator::operator++): Rename from
6026 objfile_separate_debug_iterate.
6027 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6028 iterator.
6029 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6030 iterator.
6031
ee371134
TT
60322019-04-10 Tom Tromey <tom@tromey.com>
6033
6034 * symfile.c (reread_symbols): Remove old comment.
6035 * objfiles.c (free_all_objfiles): Fix a typo.
6036
bf227d61
TT
60372019-04-10 Tom Tromey <tom@tromey.com>
6038
6039 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6040 * minsyms.c (lookup_minimal_symbol): Use foreach.
6041 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6042 (lookup_minimal_symbol_solib_trampoline): Likewise.
6043 * symfile.c (reread_symbols): Use foreach.
6044
8dc433a0
TT
60452019-04-09 Ivan Begert <ivanbegert@gmail.com>
6046 Tom Tromey <tromey@adacore.com>
6047
6048 PR rust/24414:
6049 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6050 (rust_lex_int_test): Change "value" to be LONGEST.
6051 (rust_lex_tests): Add test for long integer literal.
6052
9ab8741a
TT
60532019-04-09 Tom Tromey <tromey@adacore.com>
6054
6055 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6056 to bool.
6057 (extended_remote_target::attach): Update.
6058 (remote_target::remote_notice_new_inferior): Update.
6059 (remote_target::add_current_inferior_and_thread): Update.
6060 * inferior.c (exit_inferior_1): Use "false".
6061 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6062
e242fd12
SM
60632019-04-09 Simon Marchi <simon.marchi@efficios.com>
6064
9ca1957f 6065 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6066 the "start" command.
6067
2b0c8b01
KB
60682019-04-08 Kevin Buettner <kevinb@redhat.com>
6069
6070 * python/py-inferior.c (infpy_thread_from_thread_handle):
6071 Adjust comments to reflect renaming of thread_from_thread_handle
6072 to thread_from_handle. Adjust keywords. Fix type error message.
6073 (inferior_object_methods): Add thread_from_handle. Retain
6074 thread_from_thread_handle, but mark it as deprecated.
6075
50a82723
KB
60762019-04-08 Kevin Buettner <kevinb@redhat.com>
6077
6078 * gdbthread.h (find_thread_by_handle): Revise declaration.
6079 * thread.c (find_thread_by_handle): Likewise. Adjust
6080 implementation too.
6081 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6082 support for buffer objects as handles.
6083
cf63b016
KB
60842019-04-08 Kevin Buettner <kevinb@redhat.com>
6085
6086 * python/py-infthread.c (thpy_thread_handle): New function.
6087 (thread_object_methods): Register thpy_thread_handle.
6088
3d6c6204
KB
60892019-04-08 Kevin Buettner <kevinb@redhat.com>
6090
6091 * gdbthread.h (thread_to_thread_handle): Declare.
6092 * thread.c (gdbtypes.h): Include.
6093 (thread_to_thread_handle): New function.
6094
6095 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6096 (target_thread_info_to_thread_handle): Declare.
6097 * target.c (target_thread_info_to_thread_handle): New function.
6098 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6099 * target-delegates.c: Regenerate.
6100
6101 * linux-thread-db.c (class thread_db_target): Add method
6102 thread_info_to_thread_handle.
6103 (thread_db_target::thread_info_to_thread_handle): Define.
6104 * remote.c (class remote_target): Add new method
6105 thread_info_to_thread_handle.
6106 (remote_target::thread_info_to_thread_handle): Define.
6107
56be6ea8
PA
61082019-04-08 Pedro Alves <palves@redhat.com>
6109
6110 * common/common-exceptions.c (throw_exception): Don't create
6111 named object to throw; throw directly.
6112 (throw_it): Likewise. Don't initialize gdb_exception::message
6113 here, with new; pass FMT and AP to the ctor instead.
6114 * common/common-exceptions.h: Include <string>.
6115 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6116 const char *, va_list)): New ctor. Use std::make_shared.
6117 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6118 errors)): Delete.
6119 (gdb_exception_error::gdb_exception_error(enum errors, const char
6120 *, va_list)): New.
6121 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6122 Add assertion.
6123 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6124 errors)): Delete.
6125 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6126 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6127 Add assertion.
6128
eedc3f4f
TT
61292019-04-08 Tom Tromey <tom@tromey.com>
6130
6131 * valops.c (value_rtti_indirect_type): Replace throw_exception
6132 with throw.
6133 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6134 with throw.
6135 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6136 throw.
6137 * target.c (target_translate_tls_address): Replace throw_exception
6138 with throw.
6139 * stack.c (frame_apply_command_count): Replace throw_exception
6140 with throw.
6141 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6142 throw.
6143 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6144 with throw.
6145 * rs6000-tdep.c (rs6000_frame_cache)
6146 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6147 * remote.c: Replace throw_exception with throw.
6148 * record-full.c (record_full_message, record_full_wait_1)
6149 (record_full_restore): Replace throw_exception with throw.
6150 * record-btrace.c:
6151 (get_thread_current_frame_id, record_btrace_start_replaying)
6152 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6153 (cmd_record_btrace_start): Replace throw_exception with throw.
6154 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6155 throw.
6156 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6157 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6158 * linespec.c:
6159 (find_linespec_symbols): Replace throw_exception with throw.
6160 * infrun.c (displaced_step_prepare, resume): Replace
6161 throw_exception with throw.
6162 * infcmd.c (post_create_inferior): Replace throw_exception with
6163 throw.
6164 * inf-loop.c (inferior_event_handler): Replace throw_exception
6165 with throw.
6166 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6167 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6168 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6169 (get_prev_frame_always, get_frame_pc_if_available)
6170 (get_frame_address_in_block_if_available, get_frame_language):
6171 Replace throw_exception with throw.
6172 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6173 throw_exception with throw.
6174 * eval.c (fetch_subexp_value, evaluate_var_value)
6175 (evaluate_funcall, evaluate_subexp_standard): Replace
6176 throw_exception with throw.
6177 * dwarf2loc.c (call_site_find_chain)
6178 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6179 Replace throw_exception with throw.
6180 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6181 with throw.
6182 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6183 throw.
6184 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6185 * completer.c (complete_line_internal): Replace throw_exception
6186 with throw.
6187 * compile/compile-object-run.c (compile_object_run): Replace
6188 throw_exception with throw.
6189 * cli/cli-script.c (process_next_line): Replace throw_exception
6190 with throw.
6191 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6192 (btrace_enable, btrace_maint_update_pt_packets): Replace
6193 throw_exception with throw.
6194 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6195 throw_exception with throw.
6196 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6197 throw_exception with throw.
6198 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6199 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6200 * aarch64-tdep.c (aarch64_make_prologue_cache)
6201 (aarch64_make_stub_cache): Replace throw_exception with throw.
6202
26003a20
TT
62032019-04-08 Tom Tromey <tom@tromey.com>
6204
6205 * common/common-exceptions.c (throw_exception): Rename from
6206 throw_exception_cxx. Remove old copy. Make argument const.
6207 (throw_it): Create and throw exception objects directly.
6208 * common/common-exceptions.h (throw_exception): Make argument
6209 const.
6210 (struct gdb_exception_error): Add constructor.
6211 (struct gdb_exception_quit): Add constructor.
6212
d272eb37
TT
62132019-04-08 Tom Tromey <tom@tromey.com>
6214
6215 * common/common-exceptions.h (exception_rethrow): Don't declare.
6216 (TRY_SJLJ): Update comment.
6217 (TRY, CATCH, END_CATCH): Remove.
6218 * common/common-exceptions.c (exception_rethrow): Remove.
6219
230d2906
TT
62202019-04-08 Tom Tromey <tom@tromey.com>
6221
6222 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6223 Remove.
6224 (gdb_exception_error): Rename from
6225 gdb_exception_RETURN_MASK_ERROR.
6226 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6227 (gdb_quit_bad_alloc): Update.
6228 * aarch64-tdep.c: Update.
6229 * ada-lang.c: Update.
6230 * ada-typeprint.c: Update.
6231 * ada-valprint.c: Update.
6232 * amd64-tdep.c: Update.
6233 * arch-utils.c: Update.
6234 * break-catch-throw.c: Update.
6235 * breakpoint.c: Update.
6236 * btrace.c: Update.
6237 * c-varobj.c: Update.
6238 * cli/cli-cmds.c: Update.
6239 * cli/cli-interp.c: Update.
6240 * cli/cli-script.c: Update.
6241 * common/common-exceptions.c: Update.
6242 * common/new-op.c: Update.
6243 * common/selftest.c: Update.
6244 * compile/compile-c-symbols.c: Update.
6245 * compile/compile-cplus-symbols.c: Update.
6246 * compile/compile-object-load.c: Update.
6247 * compile/compile-object-run.c: Update.
6248 * completer.c: Update.
6249 * corelow.c: Update.
6250 * cp-abi.c: Update.
6251 * cp-support.c: Update.
6252 * cp-valprint.c: Update.
6253 * darwin-nat.c: Update.
6254 * disasm-selftests.c: Update.
6255 * dtrace-probe.c: Update.
6256 * dwarf-index-cache.c: Update.
6257 * dwarf-index-write.c: Update.
6258 * dwarf2-frame-tailcall.c: Update.
6259 * dwarf2-frame.c: Update.
6260 * dwarf2loc.c: Update.
6261 * dwarf2read.c: Update.
6262 * eval.c: Update.
6263 * event-loop.c: Update.
6264 * event-top.c: Update.
6265 * exec.c: Update.
6266 * f-valprint.c: Update.
6267 * fbsd-tdep.c: Update.
6268 * frame-unwind.c: Update.
6269 * frame.c: Update.
6270 * gdbtypes.c: Update.
6271 * gnu-v3-abi.c: Update.
6272 * guile/guile-internal.h: Update.
6273 * guile/scm-block.c: Update.
6274 * guile/scm-breakpoint.c: Update.
6275 * guile/scm-cmd.c: Update.
6276 * guile/scm-disasm.c: Update.
6277 * guile/scm-frame.c: Update.
6278 * guile/scm-lazy-string.c: Update.
6279 * guile/scm-math.c: Update.
6280 * guile/scm-param.c: Update.
6281 * guile/scm-ports.c: Update.
6282 * guile/scm-pretty-print.c: Update.
6283 * guile/scm-symbol.c: Update.
6284 * guile/scm-symtab.c: Update.
6285 * guile/scm-type.c: Update.
6286 * guile/scm-value.c: Update.
6287 * i386-linux-tdep.c: Update.
6288 * i386-tdep.c: Update.
6289 * inf-loop.c: Update.
6290 * infcall.c: Update.
6291 * infcmd.c: Update.
6292 * infrun.c: Update.
6293 * jit.c: Update.
6294 * language.c: Update.
6295 * linespec.c: Update.
6296 * linux-fork.c: Update.
6297 * linux-nat.c: Update.
6298 * linux-tdep.c: Update.
6299 * linux-thread-db.c: Update.
6300 * main.c: Update.
6301 * mi/mi-cmd-break.c: Update.
6302 * mi/mi-cmd-stack.c: Update.
6303 * mi/mi-interp.c: Update.
6304 * mi/mi-main.c: Update.
6305 * objc-lang.c: Update.
6306 * p-valprint.c: Update.
6307 * parse.c: Update.
6308 * ppc-linux-tdep.c: Update.
6309 * printcmd.c: Update.
6310 * python/py-arch.c: Update.
6311 * python/py-breakpoint.c: Update.
6312 * python/py-cmd.c: Update.
6313 * python/py-finishbreakpoint.c: Update.
6314 * python/py-frame.c: Update.
6315 * python/py-framefilter.c: Update.
6316 * python/py-gdb-readline.c: Update.
6317 * python/py-inferior.c: Update.
6318 * python/py-infthread.c: Update.
6319 * python/py-lazy-string.c: Update.
6320 * python/py-linetable.c: Update.
6321 * python/py-objfile.c: Update.
6322 * python/py-param.c: Update.
6323 * python/py-prettyprint.c: Update.
6324 * python/py-progspace.c: Update.
6325 * python/py-record-btrace.c: Update.
6326 * python/py-record.c: Update.
6327 * python/py-symbol.c: Update.
6328 * python/py-type.c: Update.
6329 * python/py-unwind.c: Update.
6330 * python/py-utils.c: Update.
6331 * python/py-value.c: Update.
6332 * python/python.c: Update.
6333 * record-btrace.c: Update.
6334 * record-full.c: Update.
6335 * remote-fileio.c: Update.
6336 * remote.c: Update.
6337 * riscv-tdep.c: Update.
6338 * rs6000-aix-tdep.c: Update.
6339 * rs6000-tdep.c: Update.
6340 * rust-exp.y: Update.
6341 * rust-lang.c: Update.
6342 * s390-tdep.c: Update.
6343 * selftest-arch.c: Update.
6344 * solib-dsbt.c: Update.
6345 * solib-frv.c: Update.
6346 * solib-spu.c: Update.
6347 * solib-svr4.c: Update.
6348 * solib.c: Update.
6349 * sparc64-linux-tdep.c: Update.
6350 * stack.c: Update.
6351 * symfile-mem.c: Update.
6352 * symmisc.c: Update.
6353 * target.c: Update.
6354 * thread.c: Update.
6355 * top.c: Update.
6356 * tracefile-tfile.c: Update.
6357 * tui/tui.c: Update.
6358 * typeprint.c: Update.
6359 * unittests/cli-utils-selftests.c: Update.
6360 * unittests/parse-connection-spec-selftests.c: Update.
6361 * valops.c: Update.
6362 * valprint.c: Update.
6363 * value.c: Update.
6364 * varobj.c: Update.
6365 * windows-nat.c: Update.
6366 * x86-linux-nat.c: Update.
6367 * xml-support.c: Update.
6368
a70b8144
TT
63692019-04-08 Tom Tromey <tom@tromey.com>
6370
6371 * xml-support.c: Use C++ exception handling.
6372 * x86-linux-nat.c: Use C++ exception handling.
6373 * windows-nat.c: Use C++ exception handling.
6374 * varobj.c: Use C++ exception handling.
6375 * value.c: Use C++ exception handling.
6376 * valprint.c: Use C++ exception handling.
6377 * valops.c: Use C++ exception handling.
6378 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6379 handling.
6380 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6381 * typeprint.c: Use C++ exception handling.
6382 * tui/tui.c: Use C++ exception handling.
6383 * tracefile-tfile.c: Use C++ exception handling.
6384 * top.c: Use C++ exception handling.
6385 * thread.c: Use C++ exception handling.
6386 * target.c: Use C++ exception handling.
6387 * symmisc.c: Use C++ exception handling.
6388 * symfile-mem.c: Use C++ exception handling.
6389 * stack.c: Use C++ exception handling.
6390 * sparc64-linux-tdep.c: Use C++ exception handling.
6391 * solib.c: Use C++ exception handling.
6392 * solib-svr4.c: Use C++ exception handling.
6393 * solib-spu.c: Use C++ exception handling.
6394 * solib-frv.c: Use C++ exception handling.
6395 * solib-dsbt.c: Use C++ exception handling.
6396 * selftest-arch.c: Use C++ exception handling.
6397 * s390-tdep.c: Use C++ exception handling.
6398 * rust-lang.c: Use C++ exception handling.
6399 * rust-exp.y: Use C++ exception handling.
6400 * rs6000-tdep.c: Use C++ exception handling.
6401 * rs6000-aix-tdep.c: Use C++ exception handling.
6402 * riscv-tdep.c: Use C++ exception handling.
6403 * remote.c: Use C++ exception handling.
6404 * remote-fileio.c: Use C++ exception handling.
6405 * record-full.c: Use C++ exception handling.
6406 * record-btrace.c: Use C++ exception handling.
6407 * python/python.c: Use C++ exception handling.
6408 * python/py-value.c: Use C++ exception handling.
6409 * python/py-utils.c: Use C++ exception handling.
6410 * python/py-unwind.c: Use C++ exception handling.
6411 * python/py-type.c: Use C++ exception handling.
6412 * python/py-symbol.c: Use C++ exception handling.
6413 * python/py-record.c: Use C++ exception handling.
6414 * python/py-record-btrace.c: Use C++ exception handling.
6415 * python/py-progspace.c: Use C++ exception handling.
6416 * python/py-prettyprint.c: Use C++ exception handling.
6417 * python/py-param.c: Use C++ exception handling.
6418 * python/py-objfile.c: Use C++ exception handling.
6419 * python/py-linetable.c: Use C++ exception handling.
6420 * python/py-lazy-string.c: Use C++ exception handling.
6421 * python/py-infthread.c: Use C++ exception handling.
6422 * python/py-inferior.c: Use C++ exception handling.
6423 * python/py-gdb-readline.c: Use C++ exception handling.
6424 * python/py-framefilter.c: Use C++ exception handling.
6425 * python/py-frame.c: Use C++ exception handling.
6426 * python/py-finishbreakpoint.c: Use C++ exception handling.
6427 * python/py-cmd.c: Use C++ exception handling.
6428 * python/py-breakpoint.c: Use C++ exception handling.
6429 * python/py-arch.c: Use C++ exception handling.
6430 * printcmd.c: Use C++ exception handling.
6431 * ppc-linux-tdep.c: Use C++ exception handling.
6432 * parse.c: Use C++ exception handling.
6433 * p-valprint.c: Use C++ exception handling.
6434 * objc-lang.c: Use C++ exception handling.
6435 * mi/mi-main.c: Use C++ exception handling.
6436 * mi/mi-interp.c: Use C++ exception handling.
6437 * mi/mi-cmd-stack.c: Use C++ exception handling.
6438 * mi/mi-cmd-break.c: Use C++ exception handling.
6439 * main.c: Use C++ exception handling.
6440 * linux-thread-db.c: Use C++ exception handling.
6441 * linux-tdep.c: Use C++ exception handling.
6442 * linux-nat.c: Use C++ exception handling.
6443 * linux-fork.c: Use C++ exception handling.
6444 * linespec.c: Use C++ exception handling.
6445 * language.c: Use C++ exception handling.
6446 * jit.c: Use C++ exception handling.
6447 * infrun.c: Use C++ exception handling.
6448 * infcmd.c: Use C++ exception handling.
6449 * infcall.c: Use C++ exception handling.
6450 * inf-loop.c: Use C++ exception handling.
6451 * i386-tdep.c: Use C++ exception handling.
6452 * i386-linux-tdep.c: Use C++ exception handling.
6453 * guile/scm-value.c: Use C++ exception handling.
6454 * guile/scm-type.c: Use C++ exception handling.
6455 * guile/scm-symtab.c: Use C++ exception handling.
6456 * guile/scm-symbol.c: Use C++ exception handling.
6457 * guile/scm-pretty-print.c: Use C++ exception handling.
6458 * guile/scm-ports.c: Use C++ exception handling.
6459 * guile/scm-param.c: Use C++ exception handling.
6460 * guile/scm-math.c: Use C++ exception handling.
6461 * guile/scm-lazy-string.c: Use C++ exception handling.
6462 * guile/scm-frame.c: Use C++ exception handling.
6463 * guile/scm-disasm.c: Use C++ exception handling.
6464 * guile/scm-cmd.c: Use C++ exception handling.
6465 * guile/scm-breakpoint.c: Use C++ exception handling.
6466 * guile/scm-block.c: Use C++ exception handling.
6467 * guile/guile-internal.h: Use C++ exception handling.
6468 * gnu-v3-abi.c: Use C++ exception handling.
6469 * gdbtypes.c: Use C++ exception handling.
6470 * frame.c: Use C++ exception handling.
6471 * frame-unwind.c: Use C++ exception handling.
6472 * fbsd-tdep.c: Use C++ exception handling.
6473 * f-valprint.c: Use C++ exception handling.
6474 * exec.c: Use C++ exception handling.
6475 * event-top.c: Use C++ exception handling.
6476 * event-loop.c: Use C++ exception handling.
6477 * eval.c: Use C++ exception handling.
6478 * dwarf2read.c: Use C++ exception handling.
6479 * dwarf2loc.c: Use C++ exception handling.
6480 * dwarf2-frame.c: Use C++ exception handling.
6481 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6482 * dwarf-index-write.c: Use C++ exception handling.
6483 * dwarf-index-cache.c: Use C++ exception handling.
6484 * dtrace-probe.c: Use C++ exception handling.
6485 * disasm-selftests.c: Use C++ exception handling.
6486 * darwin-nat.c: Use C++ exception handling.
6487 * cp-valprint.c: Use C++ exception handling.
6488 * cp-support.c: Use C++ exception handling.
6489 * cp-abi.c: Use C++ exception handling.
6490 * corelow.c: Use C++ exception handling.
6491 * completer.c: Use C++ exception handling.
6492 * compile/compile-object-run.c: Use C++ exception handling.
6493 * compile/compile-object-load.c: Use C++ exception handling.
6494 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6495 * compile/compile-c-symbols.c: Use C++ exception handling.
6496 * common/selftest.c: Use C++ exception handling.
6497 * common/new-op.c: Use C++ exception handling.
6498 * cli/cli-script.c: Use C++ exception handling.
6499 * cli/cli-interp.c: Use C++ exception handling.
6500 * cli/cli-cmds.c: Use C++ exception handling.
6501 * c-varobj.c: Use C++ exception handling.
6502 * btrace.c: Use C++ exception handling.
6503 * breakpoint.c: Use C++ exception handling.
6504 * break-catch-throw.c: Use C++ exception handling.
6505 * arch-utils.c: Use C++ exception handling.
6506 * amd64-tdep.c: Use C++ exception handling.
6507 * ada-valprint.c: Use C++ exception handling.
6508 * ada-typeprint.c: Use C++ exception handling.
6509 * ada-lang.c: Use C++ exception handling.
6510 * aarch64-tdep.c: Use C++ exception handling.
6511
3d6e9d23
TT
65122019-04-08 Tom Tromey <tom@tromey.com>
6513
6514 * xml-support.c (gdb_xml_parser::parse): Update.
6515 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6516 * value.c (show_convenience): Update.
6517 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6518 (test_parse_flags_qcs): Update.
6519 * thread.c (thr_try_catch_cmd): Update.
6520 * target.c (target_translate_tls_address): Update.
6521 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6522 (info_frame_command_core, frame_apply_command_count): Update.
6523 * rust-exp.y (rust_lex_exception_test): Update.
6524 * riscv-tdep.c (riscv_print_one_register_info): Update.
6525 * remote.c (remote_target::enable_btrace): Update.
6526 * record-btrace.c (record_btrace_enable_warn): Update.
6527 * python/py-utils.c (gdbpy_convert_exception): Update.
6528 * printcmd.c (do_one_display, print_variable_and_value): Update.
6529 * mi/mi-main.c (mi_print_exception): Update.
6530 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6531 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6532 * linux-nat.c (linux_nat_target::attach): Update.
6533 * linux-fork.c (class scoped_switch_fork_info): Update.
6534 * infrun.c (displaced_step_prepare): Update.
6535 * infcall.c (call_function_by_hand_dummy): Update.
6536 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6537 * gnu-v3-abi.c (print_one_vtable): Update.
6538 * frame.c (get_prev_frame_always): Update.
6539 * f-valprint.c (info_common_command_for_block): Update.
6540 * exec.c (try_open_exec_file): Update.
6541 * exceptions.c (print_exception, exception_print)
6542 (exception_fprintf, exception_print_same): Update.
6543 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6544 * dwarf-index-cache.c (index_cache::store)
6545 (index_cache::lookup_gdb_index): Update.
6546 * darwin-nat.c (maybe_cache_shell): Update.
6547 * cp-valprint.c (cp_print_value_fields): Update.
6548 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6549 (gcc_cplus_symbol_address): Update.
6550 * compile/compile-c-symbols.c (gcc_convert_symbol)
6551 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6552 * common/selftest.c: Update.
6553 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6554 a std::string.
6555 (exception_try_scope_entry, exception_try_scope_exit): Don't
6556 declare.
6557 (struct exception_try_scope): Remove.
6558 (TRY): Don't use exception_try_scope.
6559 (struct gdb_exception): Add constructor, operator=.
6560 <what>: New method.
6561 (struct gdb_exception_RETURN_MASK_ALL)
6562 (struct gdb_exception_RETURN_MASK_ERROR)
6563 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6564 (struct gdb_quit_bad_alloc): Update.
6565 * common/common-exceptions.c (exception_none): Change
6566 initializer.
6567 (struct catcher) <state, exception>: Initialize inline.
6568 <prev>: Remove member.
6569 (current_catcher): Remove.
6570 (catchers): New global.
6571 (exceptions_state_mc_init): Simplify.
6572 (catcher_pop): Remove.
6573 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6574 (try_scope_depth, exception_try_scope_entry)
6575 (exception_try_scope_exit): Remove.
6576 (throw_exception_sjlj): Update.
6577 (exception_messages, exception_messages_size): Remove.
6578 (throw_it): Simplify.
6579 (gdb_exception_sliced_copy): Remove.
6580 (throw_exception_cxx): Update.
6581 * cli/cli-script.c (script_from_file): Update.
6582 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6583 Update.
6584 * ada-valprint.c (ada_val_print): Update.
6585 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6586 (create_excep_cond_exprs): Update.
6587
c5c10118
TT
65882019-04-08 Tom Tromey <tom@tromey.com>
6589
6590 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6591 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6592 (TRY, CATCH, END_CATCH): Remove some definitions.
6593 * common/common-exceptions.c: Don't use GDB_XCPT.
6594 (catcher_list_size): Remove.
6595 (throw_exception, throw_it): Simplify.
6596
4de283e4
TT
65972019-04-05 Tom Tromey <tom@tromey.com>
6598
6599 Revert the header-sorting patch.
6600 * ft32-tdep.c: Revert.
6601 * frv-tdep.c: Revert.
6602 * frv-linux-tdep.c: Revert.
6603 * frame.c: Revert.
6604 * frame-unwind.c: Revert.
6605 * frame-base.c: Revert.
6606 * fork-child.c: Revert.
6607 * findvar.c: Revert.
6608 * findcmd.c: Revert.
6609 * filesystem.c: Revert.
6610 * filename-seen-cache.h: Revert.
6611 * filename-seen-cache.c: Revert.
6612 * fbsd-tdep.c: Revert.
6613 * fbsd-nat.h: Revert.
6614 * fbsd-nat.c: Revert.
6615 * f-valprint.c: Revert.
6616 * f-typeprint.c: Revert.
6617 * f-lang.c: Revert.
6618 * extension.h: Revert.
6619 * extension.c: Revert.
6620 * extension-priv.h: Revert.
6621 * expprint.c: Revert.
6622 * exec.h: Revert.
6623 * exec.c: Revert.
6624 * exceptions.c: Revert.
6625 * event-top.c: Revert.
6626 * event-loop.c: Revert.
6627 * eval.c: Revert.
6628 * elfread.c: Revert.
6629 * dwarf2read.h: Revert.
6630 * dwarf2read.c: Revert.
6631 * dwarf2loc.c: Revert.
6632 * dwarf2expr.h: Revert.
6633 * dwarf2expr.c: Revert.
6634 * dwarf2-frame.c: Revert.
6635 * dwarf2-frame-tailcall.c: Revert.
6636 * dwarf-index-write.h: Revert.
6637 * dwarf-index-write.c: Revert.
6638 * dwarf-index-common.c: Revert.
6639 * dwarf-index-cache.h: Revert.
6640 * dwarf-index-cache.c: Revert.
6641 * dummy-frame.c: Revert.
6642 * dtrace-probe.c: Revert.
6643 * disasm.h: Revert.
6644 * disasm.c: Revert.
6645 * disasm-selftests.c: Revert.
6646 * dictionary.c: Revert.
6647 * dicos-tdep.c: Revert.
6648 * demangle.c: Revert.
6649 * dcache.h: Revert.
6650 * dcache.c: Revert.
6651 * darwin-nat.h: Revert.
6652 * darwin-nat.c: Revert.
6653 * darwin-nat-info.c: Revert.
6654 * d-valprint.c: Revert.
6655 * d-namespace.c: Revert.
6656 * d-lang.c: Revert.
6657 * ctf.c: Revert.
6658 * csky-tdep.c: Revert.
6659 * csky-linux-tdep.c: Revert.
6660 * cris-tdep.c: Revert.
6661 * cris-linux-tdep.c: Revert.
6662 * cp-valprint.c: Revert.
6663 * cp-support.c: Revert.
6664 * cp-namespace.c: Revert.
6665 * cp-abi.c: Revert.
6666 * corelow.c: Revert.
6667 * corefile.c: Revert.
6668 * continuations.c: Revert.
6669 * completer.h: Revert.
6670 * completer.c: Revert.
6671 * complaints.c: Revert.
6672 * coffread.c: Revert.
6673 * coff-pe-read.c: Revert.
6674 * cli-out.h: Revert.
6675 * cli-out.c: Revert.
6676 * charset.c: Revert.
6677 * c-varobj.c: Revert.
6678 * c-valprint.c: Revert.
6679 * c-typeprint.c: Revert.
6680 * c-lang.c: Revert.
6681 * buildsym.c: Revert.
6682 * buildsym-legacy.c: Revert.
6683 * build-id.h: Revert.
6684 * build-id.c: Revert.
6685 * btrace.c: Revert.
6686 * bsd-uthread.c: Revert.
6687 * breakpoint.h: Revert.
6688 * breakpoint.c: Revert.
6689 * break-catch-throw.c: Revert.
6690 * break-catch-syscall.c: Revert.
6691 * break-catch-sig.c: Revert.
6692 * blockframe.c: Revert.
6693 * block.c: Revert.
6694 * bfin-tdep.c: Revert.
6695 * bfin-linux-tdep.c: Revert.
6696 * bfd-target.c: Revert.
6697 * bcache.c: Revert.
6698 * ax-general.c: Revert.
6699 * ax-gdb.h: Revert.
6700 * ax-gdb.c: Revert.
6701 * avr-tdep.c: Revert.
6702 * auxv.c: Revert.
6703 * auto-load.c: Revert.
6704 * arm-wince-tdep.c: Revert.
6705 * arm-tdep.c: Revert.
6706 * arm-symbian-tdep.c: Revert.
6707 * arm-pikeos-tdep.c: Revert.
6708 * arm-obsd-tdep.c: Revert.
6709 * arm-nbsd-tdep.c: Revert.
6710 * arm-nbsd-nat.c: Revert.
6711 * arm-linux-tdep.c: Revert.
6712 * arm-linux-nat.c: Revert.
6713 * arm-fbsd-tdep.c: Revert.
6714 * arm-fbsd-nat.c: Revert.
6715 * arm-bsd-tdep.c: Revert.
6716 * arch-utils.c: Revert.
6717 * arc-tdep.c: Revert.
6718 * arc-newlib-tdep.c: Revert.
6719 * annotate.h: Revert.
6720 * annotate.c: Revert.
6721 * amd64-windows-tdep.c: Revert.
6722 * amd64-windows-nat.c: Revert.
6723 * amd64-tdep.c: Revert.
6724 * amd64-sol2-tdep.c: Revert.
6725 * amd64-obsd-tdep.c: Revert.
6726 * amd64-obsd-nat.c: Revert.
6727 * amd64-nbsd-tdep.c: Revert.
6728 * amd64-nbsd-nat.c: Revert.
6729 * amd64-nat.c: Revert.
6730 * amd64-linux-tdep.c: Revert.
6731 * amd64-linux-nat.c: Revert.
6732 * amd64-fbsd-tdep.c: Revert.
6733 * amd64-fbsd-nat.c: Revert.
6734 * amd64-dicos-tdep.c: Revert.
6735 * amd64-darwin-tdep.c: Revert.
6736 * amd64-bsd-nat.c: Revert.
6737 * alpha-tdep.c: Revert.
6738 * alpha-obsd-tdep.c: Revert.
6739 * alpha-nbsd-tdep.c: Revert.
6740 * alpha-mdebug-tdep.c: Revert.
6741 * alpha-linux-tdep.c: Revert.
6742 * alpha-linux-nat.c: Revert.
6743 * alpha-bsd-tdep.c: Revert.
6744 * alpha-bsd-nat.c: Revert.
6745 * aix-thread.c: Revert.
6746 * agent.c: Revert.
6747 * addrmap.c: Revert.
6748 * ada-varobj.c: Revert.
6749 * ada-valprint.c: Revert.
6750 * ada-typeprint.c: Revert.
6751 * ada-tasks.c: Revert.
6752 * ada-lang.c: Revert.
6753 * aarch64-tdep.c: Revert.
6754 * aarch64-ravenscar-thread.c: Revert.
6755 * aarch64-newlib-tdep.c: Revert.
6756 * aarch64-linux-tdep.c: Revert.
6757 * aarch64-linux-nat.c: Revert.
6758 * aarch64-fbsd-tdep.c: Revert.
6759 * aarch64-fbsd-nat.c: Revert.
6760 * aarch32-linux-nat.c: Revert.
6761
d55e5aa6
TT
67622019-04-05 Tom Tromey <tom@tromey.com>
6763
6764 * ft32-tdep.c: Sort headers.
6765 * frv-tdep.c: Sort headers.
6766 * frv-linux-tdep.c: Sort headers.
6767 * frame.c: Sort headers.
6768 * frame-unwind.c: Sort headers.
6769 * frame-base.c: Sort headers.
6770 * fork-child.c: Sort headers.
6771 * findvar.c: Sort headers.
6772 * findcmd.c: Sort headers.
6773 * filesystem.c: Sort headers.
6774 * filename-seen-cache.h: Sort headers.
6775 * filename-seen-cache.c: Sort headers.
6776 * fbsd-tdep.c: Sort headers.
6777 * fbsd-nat.h: Sort headers.
6778 * fbsd-nat.c: Sort headers.
6779 * f-valprint.c: Sort headers.
6780 * f-typeprint.c: Sort headers.
6781 * f-lang.c: Sort headers.
6782 * extension.h: Sort headers.
6783 * extension.c: Sort headers.
6784 * extension-priv.h: Sort headers.
6785 * expprint.c: Sort headers.
6786 * exec.h: Sort headers.
6787 * exec.c: Sort headers.
6788 * exceptions.c: Sort headers.
6789 * event-top.c: Sort headers.
6790 * event-loop.c: Sort headers.
6791 * eval.c: Sort headers.
6792 * elfread.c: Sort headers.
6793 * dwarf2read.h: Sort headers.
6794 * dwarf2read.c: Sort headers.
6795 * dwarf2loc.c: Sort headers.
6796 * dwarf2expr.h: Sort headers.
6797 * dwarf2expr.c: Sort headers.
6798 * dwarf2-frame.c: Sort headers.
6799 * dwarf2-frame-tailcall.c: Sort headers.
6800 * dwarf-index-write.h: Sort headers.
6801 * dwarf-index-write.c: Sort headers.
6802 * dwarf-index-common.c: Sort headers.
6803 * dwarf-index-cache.h: Sort headers.
6804 * dwarf-index-cache.c: Sort headers.
6805 * dummy-frame.c: Sort headers.
6806 * dtrace-probe.c: Sort headers.
6807 * disasm.h: Sort headers.
6808 * disasm.c: Sort headers.
6809 * disasm-selftests.c: Sort headers.
6810 * dictionary.c: Sort headers.
6811 * dicos-tdep.c: Sort headers.
6812 * demangle.c: Sort headers.
6813 * dcache.h: Sort headers.
6814 * dcache.c: Sort headers.
6815 * darwin-nat.h: Sort headers.
6816 * darwin-nat.c: Sort headers.
6817 * darwin-nat-info.c: Sort headers.
6818 * d-valprint.c: Sort headers.
6819 * d-namespace.c: Sort headers.
6820 * d-lang.c: Sort headers.
6821 * ctf.c: Sort headers.
6822 * csky-tdep.c: Sort headers.
6823 * csky-linux-tdep.c: Sort headers.
6824 * cris-tdep.c: Sort headers.
6825 * cris-linux-tdep.c: Sort headers.
6826 * cp-valprint.c: Sort headers.
6827 * cp-support.c: Sort headers.
6828 * cp-namespace.c: Sort headers.
6829 * cp-abi.c: Sort headers.
6830 * corelow.c: Sort headers.
6831 * corefile.c: Sort headers.
6832 * continuations.c: Sort headers.
6833 * completer.h: Sort headers.
6834 * completer.c: Sort headers.
6835 * complaints.c: Sort headers.
6836 * coffread.c: Sort headers.
6837 * coff-pe-read.c: Sort headers.
6838 * cli-out.h: Sort headers.
6839 * cli-out.c: Sort headers.
6840 * charset.c: Sort headers.
6841 * c-varobj.c: Sort headers.
6842 * c-valprint.c: Sort headers.
6843 * c-typeprint.c: Sort headers.
6844 * c-lang.c: Sort headers.
6845 * buildsym.c: Sort headers.
6846 * buildsym-legacy.c: Sort headers.
6847 * build-id.h: Sort headers.
6848 * build-id.c: Sort headers.
6849 * btrace.c: Sort headers.
6850 * bsd-uthread.c: Sort headers.
6851 * breakpoint.h: Sort headers.
6852 * breakpoint.c: Sort headers.
6853 * break-catch-throw.c: Sort headers.
6854 * break-catch-syscall.c: Sort headers.
6855 * break-catch-sig.c: Sort headers.
6856 * blockframe.c: Sort headers.
6857 * block.c: Sort headers.
6858 * bfin-tdep.c: Sort headers.
6859 * bfin-linux-tdep.c: Sort headers.
6860 * bfd-target.c: Sort headers.
6861 * bcache.c: Sort headers.
6862 * ax-general.c: Sort headers.
6863 * ax-gdb.h: Sort headers.
6864 * ax-gdb.c: Sort headers.
6865 * avr-tdep.c: Sort headers.
6866 * auxv.c: Sort headers.
6867 * auto-load.c: Sort headers.
6868 * arm-wince-tdep.c: Sort headers.
6869 * arm-tdep.c: Sort headers.
6870 * arm-symbian-tdep.c: Sort headers.
6871 * arm-pikeos-tdep.c: Sort headers.
6872 * arm-obsd-tdep.c: Sort headers.
6873 * arm-nbsd-tdep.c: Sort headers.
6874 * arm-nbsd-nat.c: Sort headers.
6875 * arm-linux-tdep.c: Sort headers.
6876 * arm-linux-nat.c: Sort headers.
6877 * arm-fbsd-tdep.c: Sort headers.
6878 * arm-fbsd-nat.c: Sort headers.
6879 * arm-bsd-tdep.c: Sort headers.
6880 * arch-utils.c: Sort headers.
6881 * arc-tdep.c: Sort headers.
6882 * arc-newlib-tdep.c: Sort headers.
6883 * annotate.h: Sort headers.
6884 * annotate.c: Sort headers.
6885 * amd64-windows-tdep.c: Sort headers.
6886 * amd64-windows-nat.c: Sort headers.
6887 * amd64-tdep.c: Sort headers.
6888 * amd64-sol2-tdep.c: Sort headers.
6889 * amd64-obsd-tdep.c: Sort headers.
6890 * amd64-obsd-nat.c: Sort headers.
6891 * amd64-nbsd-tdep.c: Sort headers.
6892 * amd64-nbsd-nat.c: Sort headers.
6893 * amd64-nat.c: Sort headers.
6894 * amd64-linux-tdep.c: Sort headers.
6895 * amd64-linux-nat.c: Sort headers.
6896 * amd64-fbsd-tdep.c: Sort headers.
6897 * amd64-fbsd-nat.c: Sort headers.
6898 * amd64-dicos-tdep.c: Sort headers.
6899 * amd64-darwin-tdep.c: Sort headers.
6900 * amd64-bsd-nat.c: Sort headers.
6901 * alpha-tdep.c: Sort headers.
6902 * alpha-obsd-tdep.c: Sort headers.
6903 * alpha-nbsd-tdep.c: Sort headers.
6904 * alpha-mdebug-tdep.c: Sort headers.
6905 * alpha-linux-tdep.c: Sort headers.
6906 * alpha-linux-nat.c: Sort headers.
6907 * alpha-bsd-tdep.c: Sort headers.
6908 * alpha-bsd-nat.c: Sort headers.
6909 * aix-thread.c: Sort headers.
6910 * agent.c: Sort headers.
6911 * addrmap.c: Sort headers.
6912 * ada-varobj.c: Sort headers.
6913 * ada-valprint.c: Sort headers.
6914 * ada-typeprint.c: Sort headers.
6915 * ada-tasks.c: Sort headers.
6916 * ada-lang.c: Sort headers.
6917 * aarch64-tdep.c: Sort headers.
6918 * aarch64-ravenscar-thread.c: Sort headers.
6919 * aarch64-newlib-tdep.c: Sort headers.
6920 * aarch64-linux-tdep.c: Sort headers.
6921 * aarch64-linux-nat.c: Sort headers.
6922 * aarch64-fbsd-tdep.c: Sort headers.
6923 * aarch64-fbsd-nat.c: Sort headers.
6924 * aarch32-linux-nat.c: Sort headers.
6925
699bd4cf
TT
69262019-04-04 Tom Tromey <tom@tromey.com>
6927
6928 * varobj.c (varobj_create): Update.
6929 * rust-exp.y (struct rust_parser) <update_innermost_block,
6930 lookup_symbol>: New methods.
6931 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6932 Rename.
6933 (rust_parser::rust_lookup_type)
6934 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6935 * printcmd.c (display_command, do_one_display): Update.
6936 * parser-defs.h (struct parser_state) <parser_state>: Add
6937 "tracker" parameter.
6938 (block_tracker): New member.
6939 (class innermost_block_tracker) <innermost_block_tracker>: Add
6940 "types" parameter.
6941 <reset>: Remove method.
6942 (innermost_block): Don't declare.
6943 (null_post_parser): Update.
6944 * parse.c (innermost_block): Remove global.
6945 (write_dollar_variable): Update.
6946 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6947 Remove "tracker_types" parameter.
6948 (parse_expression): Add "tracker" parameter.
6949 (parse_expression_for_completion): Update.
6950 (null_post_parser): Add "tracker" parameter.
6951 * p-exp.y: Update rules.
6952 * m2-exp.y: Update rules.
6953 * language.h (struct language_defn) <la_post_parser>: Add
6954 "tracker" parameter.
6955 * go-exp.y: Update rules.
6956 * f-exp.y: Update rules.
6957 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6958 parameter.
6959 * d-exp.y: Update rules.
6960 * c-exp.y: Update rules.
6961 * breakpoint.c (set_breakpoint_condition): Create an
6962 innermost_block_tracker.
6963 (watch_command_1): Likewise.
6964 * ada-lang.c (resolve): Add "tracker" parameter.
6965 (resolve_subexp): Likewise.
6966 * ada-exp.y (write_var_from_sym): Update.
6967
dac43e32
TT
69682019-04-04 Tom Tromey <tom@tromey.com>
6969
6970 * type-stack.h: New file.
6971 * type-stack.c: New file.
6972 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6973 type-stack.h.
6974 (insert_into_type_stack, insert_type, push_type, push_type_int)
6975 (insert_type_address_space, pop_type, pop_type_int)
6976 (pop_typelist, pop_type_stack, append_type_stack)
6977 (push_type_stack, get_type_stack, push_typelist)
6978 (follow_type_instance_flags, follow_types): Don't declare.
6979 * parse.c (type_stack): Remove global.
6980 (parse_exp_in_context): Update.
6981 (insert_into_type_stack, insert_type, push_type, push_type_int)
6982 (insert_type_address_space, pop_type, pop_type_int)
6983 (pop_typelist, pop_type_stack, append_type_stack)
6984 (push_type_stack, get_type_stack, push_typelist)
6985 (follow_type_instance_flags, follow_types): Remove (moved to
6986 type-stack.c).
6987 * f-exp.y (type_stack): New global.
6988 Update rules.
6989 (push_kind_type, f_parse): Update.
6990 * d-exp.y (type_stack): New global.
6991 Update rules.
6992 (d_parse): Update.
6993 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6994 Update rules.
6995 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6996 (HFILES_NO_SRCDIR): Add type-stack.h.
6997
2a612529
TT
69982019-04-04 Tom Tromey <tom@tromey.com>
6999
7000 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7001 (rust_parser::convert_ast_to_expression, rust_parse)
7002 (rust_lex_test_completion, rust_lex_tests): Update.
7003 * parser-defs.h (struct expr_completion_state): New.
7004 (struct parser_state) <parser_state>: Add completion parameter.
7005 <mark_struct_expression, mark_completion_tag>: New methods.
7006 <parse_completion, m_completion_state>: New members.
7007 (prefixify_expression, null_post_parser): Update.
7008 (mark_struct_expression, mark_completion_tag): Don't declare.
7009 * parse.c (parse_completion, expout_last_struct)
7010 (expout_tag_completion_type, expout_completion_name): Remove
7011 globals.
7012 (parser_state::mark_struct_expression)
7013 (parser_state::mark_completion_tag): Now methods.
7014 (prefixify_expression): Add last_struct parameter.
7015 (prefixify_subexp): Likewise.
7016 (parse_exp_1): Update.
7017 (parse_exp_in_context): Add cstate parameter. Update.
7018 (parse_expression_for_completion): Create an
7019 expr_completion_state.
7020 (null_post_parser): Add "completion" parameter.
7021 * p-exp.y: Update rules.
7022 (yylex): Update.
7023 * language.h (struct language_defn) <la_post_parser>: Add
7024 "completing" parameter.
7025 * go-exp.y: Update rules.
7026 (lex_one_token): Update.
7027 * expression.h (parse_completion): Don't declare.
7028 * d-exp.y: Update rules.
7029 (lex_one_token): Update rules.
7030 * c-exp.y: Update rules.
7031 (lex_one_token): Update.
7032 * ada-lang.c (resolve): Add "parse_completion" parameter.
7033 (resolve_subexp): Likewise.
7034 (ada_resolve_function): Likewise.
7035
43476f0b
TT
70362019-04-04 Tom Tromey <tom@tromey.com>
7037
7038 * parser-defs.h (struct parser_state) <start_arglist,
7039 end_arglist>: New methods.
7040 <arglist_len, m_funcall_chain>: New members.
7041 (arglist_len, start_arglist, end_arglist): Don't declare.
7042 * parse.c (arglist_len, funcall_chain): Remove global.
7043 (start_arglist, end_arglist): Remove functions.
7044 (parse_exp_in_context): Update.
7045 * p-exp.y: Update rules.
7046 * m2-exp.y: Update rules.
7047 * go-exp.y: Update rules.
7048 * f-exp.y: Update rules.
7049 * d-exp.y: Update rules.
7050 * c-exp.y: Update rules.
7051
5776fca3
TT
70522019-04-04 Tom Tromey <tom@tromey.com>
7053
7054 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7055 lex_operator, push_back>: New methods.
7056 Update all rules.
7057 (rust_parser::lex_hex, lex_escape): Rename and update.
7058 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7059 (rust_parser::lex_operator): Rename and update.
7060 (rust_parser::lex_number, rustyylex, rustyyerror)
7061 (rust_lex_test_init, rust_lex_test_sequence)
7062 (rust_lex_test_push_back, rust_lex_tests): Update.
7063 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7064 parameter.
7065 <lexptr, prev_lexptr>: New members.
7066 (lexptr, prev_lexptr): Don't declare.
7067 * parse.c (lexptr, prev_lexptr): Remove globals.
7068 (parse_exp_in_context): Update.
7069 * p-exp.y (yylex, yyerror): Update.
7070 * m2-exp.y (parse_number, yylex, yyerror): Update.
7071 * go-exp.y (lex_one_token, yyerror): Update.
7072 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7073 * d-exp.y (lex_one_token, yyerror): Update.
7074 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7075 (lex_one_token, yyerror): Update.
7076 * ada-lex.l (YY_INPUT): Update.
7077 (rewind_to_char): Update.
7078 * ada-exp.y (yyerror): Update.
7079
8621b685
TT
70802019-04-04 Tom Tromey <tom@tromey.com>
7081
7082 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7083 * parser-defs.h (struct parser_state) <parser_state>: Add new
7084 parameter.
7085 <comma_terminates>: New member.
7086 (comma_terminates): Don't declare global.
7087 * parse.c (comma_terminates): Remove global.
7088 (parse_exp_in_context): Update.
7089 * p-exp.y (yylex): Update.
7090 * m2-exp.y (yylex): Update.
7091 * go-exp.y (lex_one_token): Update.
7092 * f-exp.y (yylex): Update.
7093 * d-exp.y (lex_one_token): Update.
7094 * c-exp.y (lex_one_token): Update.
7095 * ada-lex.l: Update.
7096
28aaf3fd
TT
70972019-04-04 Tom Tromey <tom@tromey.com>
7098
7099 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7100 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7101 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7102 * parser-defs.h (paren_depth): Don't declare.
7103 * parse.c (paren_depth): Remove global.
7104 (parse_exp_in_context): Update.
7105 * p-exp.y (paren_depth): New global.
7106 (pascal_parse): Initialize it.
7107 * m2-exp.y (paren_depth): New global.
7108 (m2_parse): Initialize it.
7109 * go-exp.y (paren_depth): New global.
7110 (go_parse): Initialize it.
7111 * f-exp.y (paren_depth): New global.
7112 (f_parse): Initialize it.
7113 * d-exp.y (paren_depth): New global.
7114 (d_parse): Initialize it.
7115 * c-exp.y (paren_depth): New global.
7116 (c_parse): Initialize it.
7117 * ada-lex.l (paren_depth): New global.
7118 (lexer_init): Initialize it.
7119
1e58a4a4
TT
71202019-04-04 Tom Tromey <tom@tromey.com>
7121
7122 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7123 (rust_parser::convert_ast_to_type)
7124 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7125 * parser-defs.h (struct parser_state) <parser_state>: Add
7126 parameters. Initialize new members.
7127 <expression_context_block, expression_context_pc>: New members.
7128 * parse.c (expression_context_block, expression_context_pc):
7129 Remove globals.
7130 (parse_exp_in_context): Update.
7131 * p-exp.y: Update all rules.
7132 (yylex): Update.
7133 * m2-exp.y: Update all rules.
7134 (yylex): Update.
7135 * go-exp.y (yylex): Update.
7136 * f-exp.y (yylex): Update.
7137 * d-exp.y: Update all rules.
7138 (yylex): Update.
7139 * c-exp.y: Update all rules.
7140 (lex_one_token, classify_name, yylex, c_parse): Update.
7141 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7142
37eedb39
TT
71432019-04-04 Tom Tromey <tom@tromey.com>
7144
7145 * gdbarch.h, gdbarch.c: Rebuild.
7146 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7147 * stap-probe.h:
7148 (struct stap_parse_info): Replace "parser_state" with
7149 "expr_builder".
7150 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7151 (parser_state): New class.
7152 * parse.c (expr_builder): Rename.
7153 (expr_builder::release): Rename.
7154 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7155 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7156 (write_exp_elt_longcst, write_exp_elt_floatcst)
7157 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7158 (write_exp_string_vector, write_exp_bitstring)
7159 (write_exp_msymbol, mark_struct_expression)
7160 (write_dollar_variable)
7161 (insert_type_address_space, increase_expout_size): Replace
7162 "parser_state" with "expr_builder".
7163 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7164 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7165 "parser_state" with "expr_builder".
7166
73923d7e
TT
71672019-04-04 Tom Tromey <tom@tromey.com>
7168
7169 * rust-exp.y: Replace "parse_language" with method call.
7170 * p-exp.y:
7171 (yylex): Replace "parse_language" with method call.
7172 * m2-exp.y:
7173 (yylex): Replace "parse_language" with method call.
7174 * go-exp.y (classify_name): Replace "parse_language" with method
7175 call.
7176 * f-exp.y (yylex): Replace "parse_language" with method call.
7177 * d-exp.y (lex_one_token): Replace "parse_language" with method
7178 call.
7179 * c-exp.y:
7180 (lex_one_token, classify_name, yylex): Replace "parse_language"
7181 with method call.
7182 * ada-exp.y (find_primitive_type, type_char)
7183 (type_system_address): Replace "parse_language" with method call.
7184
fa9f5be6
TT
71852019-04-04 Tom Tromey <tom@tromey.com>
7186
7187 * rust-exp.y: Replace "parse_gdbarch" with method call.
7188 * parse.c (write_dollar_variable, insert_type_address_space):
7189 Replace "parse_gdbarch" with method call.
7190 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7191 call.
7192 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7193 call.
7194 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7195 "parse_gdbarch" with method call.
7196 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7197 with method call.
7198 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7199 "parse_gdbarch" with method call.
7200 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7201 "parse_gdbarch" with method call.
7202 * c-exp.y (parse_type, parse_number, classify_name): Replace
7203 "parse_gdbarch" with method call.
7204 * ada-lex.l: Replace "parse_gdbarch" with method call.
7205 * ada-exp.y (parse_type, find_primitive_type, type_char)
7206 (type_system_address): Replace "parse_gdbarch" with method call.
7207
1201a264
TT
72082019-04-04 Tom Tromey <tom@tromey.com>
7209
7210 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7211 * stap-probe.c (stap_parse_argument): Update.
7212 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7213 initial_size parameter.
7214 * rust-exp.y (rust_lex_tests): Update.
7215 * parse.c (parser_state): Update.
7216 (parse_exp_in_context): Update.
7217 * parser-defs.h (struct parser_state) <parser_state>: Remove
7218 "initial_size" parameter.
7219
e3980ce2
TT
72202019-04-04 Tom Tromey <tom@tromey.com>
7221
7222 * parser-defs.h (increase_expout_size): Don't declare.
7223 * parse.c (increase_expout_size): Now static.
7224
e9f8e3f1
TS
72252019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7226
7227 * gnu-nat.c (gnu_nat_target::wait): Fix
7228 target_waitstatus_to_string call.
7229
d7df6549
AB
72302019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7231
7232 * eval.c (evaluate_subexp_standard): Handle internal functions
7233 during Fortran function call handling.
7234
8bdc1658
AB
72352019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 * NEWS: Mention new internal functions.
7238 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7239 (read_base_type): Use dwarf2_init_complex_target_type.
7240 * value.c (creal_internal_fn): New function.
7241 (cimag_internal_fn): New function.
7242 (_initialize_values): Register new internal functions.
7243
c29705b7
PW
72442019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7245
7246 * infrun.c (stop_all_threads): If debug_infrun, always
7247 trace the wait status after wait_one, using
7248 target_waitstatus_to_string and target_pid_to_str.
7249 (handle_inferior_event): Replace various trace of
7250 wait status kind by a single trace.
7251 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7252 wait status kind image by target_waitstatus_to_string.
7253 * target/waitstatus.c (target_waitstatus_to_string): Fix
7254 obsolete comment.
7255
05caa1d2
TT
72562019-04-01 Tom Tromey <tromey@adacore.com>
7257
7258 PR symtab/23331:
7259 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7260
9d1447e0
SDJ
72612019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7262 Pedro Alves <palves@redhat.com>
7263
7264 * top.c (quit_force): Call 'finalize_values'.
7265 * value.c (finalize_values): New function.
7266 * value.h (finalize_values): Declare.
7267
7734102d
EZ
72682019-03-30 Eli Zaretskii <eliz@gnu.org>
7269
7270 * NEWS: Announce $_gdb_major and $_gdb_minor.
7271
7272 * top.c (init_gdb_version_vars): New function.
7273 (gdb_init): Call init_gdb_version_vars.
7274
188e1fa9
TT
72752019-03-29 Tom Tromey <tromey@adacore.com>
7276
7277 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7278 help text. Remove dead code.
7279
2880242d
KS
72802019-03-29 Keith Seitz <keiths@redhat.com>
7281
7282 From Siddhesh Poyarekar:
7283 * f-lang.h (f77_get_upperbound): Return LONGEST.
7284 (f77_get_lowerbound): Likewise.
7285 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7286 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7287 print them.
7288 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7289 plongest to format print it.
7290 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7291 (f77_get_upperbound): Likewise.
7292 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7293 LOWER_BOUND to LONGEST.
7294 (f77_create_arrayprint_offset_tbl): Likewise.
7295
cc1defb1
KS
72962019-03-29 Keith Seitz <keiths@redhat.com>
7297
7298 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7299 %s/pulongest for TYPE_LENGTH instead of %d in format
7300 strings.
7301 * ada-typerint.c (ada_print_type): Likewise.
7302 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7303 * compile/compile-c-support.c (generate_register_struct): Likewise.
7304 * gdbtypes.c (recursive_dump_type): Likewise.
7305 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7306 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7307 instead of %d in format strings.
7308 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7309 to std::min to ULONGEST.
7310 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7311 instead of %d in format strings.
7312 * tracepoint.c (info_scope_command): Likewise.
7313 * typeprint.c (print_offset_data::update)
7314 (print_offset_data::finish): Likewise.
7315 * xtensa-tdep.c (xtensa_store_return_value)
7316 (xtensa_push_dummy_call): Likewise.
7317
e432ccf1
JT
73182019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7319
7320 * windows-nat.c (display_selector): Fixed format specifications
7321 for 64-bit Cygwin.
7322
65d2b333
PW
73232019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7324
7325 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7326
f489207e
SL
73272019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7328
7329 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7330 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7331 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7332 (nios2_linux_init_abi): Install it.
7333
bffa1015
AH
73342019-03-28 Alan Hayward <alan.hayward@arm.com>
7335
7336 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7337
fc96163a
AH
73382019-03-28 Alan Hayward <alan.hayward@arm.com>
7339
7340 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7341
20dc7e9b
PW
73422019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7343 Tom Tromey <tromey@adacore.com>
7344
7345 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7346
7f5331a8
JB
73472019-03-26 Joel Brobecker <brobecker@adacore.com>
7348
7349 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7350 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7351 method to compute the bounds of range types. Also print "[evaluated]"
7352 if the bounds' values come from a dynamic evaluation.
7353
18c77628
AB
73542019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7357 whitespace when pretty printing is on.
7358
53c973f2
AH
73592019-03-26 Alan Hayward <alan.hayward@arm.com>
7360
e79be6e5 7361 * ppc-linux-nat.c: Add include.
53c973f2 7362
d851aa71
AH
73632019-03-26 Alan Hayward <alan.hayward@arm.com>
7364
e79be6e5 7365 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7366
2fe7bab7
AH
73672019-03-26 Alan Hayward <alan.hayward@arm.com>
7368
e79be6e5 7369 * arm-linux-nat.c: Add include.
2fe7bab7 7370
068ef30e
SM
73712019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7372
7373 * source-cache.c (source_cache::get_source_lines): Re-read
7374 fullname after calling open_source_file.
7375
81a24d04
JB
73762019-03-25 John Baldwin <jhb@FreeBSD.org>
7377
7378 * NEWS: Mention TLS support for FreeBSD.
7379
79e7ae11
TT
73802019-03-25 Tom Tromey <tromey@adacore.com>
7381
7382 * minsyms.c (BUNCH_SIZE): Update comment.
7383 (~minimal_symbol_reader): Remove old comment.
7384 (compact_minimal_symbols): Update comment.
7385 (minimal_symbol_reader::install): Remove old comment. Update
7386 other comments.
7387
d45963c2
AH
73882019-03-25 Alan Hayward <alan.hayward@arm.com>
7389
7390 * s390-linux-nat.c: Add include.
7391
0f83012e
AH
73922019-03-25 Alan Hayward <alan.hayward@arm.com>
7393
7394 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7395 Call linux_get_hwcap.
7396 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7397 Likewise.
7398 (aarch64_linux_get_hwcap): Remove function.
7399 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7400 declaration.
7401 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7402 linux_get_hwcap.
7403 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7404 * linux-tdep.c (linux_get_hwcap): Add function.
7405 (linux_get_hwcap2): Likewise.
7406 * linux-tdep.h (linux_get_hwcap): Add declaration.
7407 (linux_get_hwcap2): Likewise.
7408 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7409 (ppc_linux_get_hwcap2): Likewise.
7410 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7411 linux_get_hwcap.
7412 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7413 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7414 (ppc_linux_nat_target::read_description): Likewise.
7415 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7416 * s390-linux-nat.c: Likewise.
7417 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7418
6640a367
TT
74192019-03-24 Tom Tromey <tom@tromey.com>
7420
7421 * ada-lang.c (standard_lookup): Simplify initialization.
7422 (ada_lookup_symbol_nonlocal): Simplify return.
7423 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7424 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7425 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7426 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7427 initialization.
7428 * solib.c (solib_global_lookup): Simplify.
7429 * symtab.c (null_block_symbol): Remove.
7430 (symbol_cache_lookup): Simplify returns.
7431 (lookup_language_this): Simplify returns.
7432 (lookup_symbol_aux): Simplify return.
7433 (lookup_local_symbol): Simplify returns.
7434 (lookup_global_symbol_from_objfile): Simplify return.
7435 (lookup_symbol_in_objfile_symtabs)
7436 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7437 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7438 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7439 * cp-namespace.c (cp_lookup_bare_symbol)
7440 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7441 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7442 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7443 (cp_lookup_symbol_via_imports): Simplify initialization.
7444 (find_symbol_in_baseclass): Likewise.
7445 * symtab.h (null_block_symbol): Remove.
7446 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7447 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7448 (d_lookup_symbol_module): Likewise.
7449 (find_symbol_in_baseclass): Simplify initialization.
7450
a930ebcd
TT
74512019-03-24 Tom Tromey <tom@tromey.com>
7452
7453 * expression.h: Don't include symtab.h.
7454 (struct block): Forward declare.
7455
582942f4
TT
74562019-03-24 Tom Tromey <tom@tromey.com>
7457
7458 * c-exp.y (typebase): Remove casts.
7459 * gdbtypes.c (lookup_unsigned_typename, )
7460 (lookup_signed_typename): Remove cast.
7461 * eval.c (parse_to_comma_and_eval): Remove cast.
7462 * parse.c (write_dollar_variable): Remove cast.
7463 * block.h (struct block) <superblock>: Now const.
7464 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7465 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7466 (map_block): Make "block" const.
7467 * symfile.h (struct quick_symbol_functions)
7468 <map_matching_symbols>: Constify block argument to "callback".
7469 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7470 const.
7471 (find_pc_sect_compunit_symtab): Make "b" const.
7472 (find_symbol_at_address): Likewise.
7473 (search_symbols): Likewise.
7474 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7475 (dw2_debug_names_lookup_symbol): Likewise.
7476 (dw2_map_matching_symbols): Update.
7477 * p-valprint.c (pascal_val_print): Remove "block".
7478 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7479 (aux_add_nonlocal_symbols): Make "block" const.
7480 (resolve_subexp): Remove cast.
7481 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7482 const.
7483 (iterate_over_file_blocks): Likewise.
7484 * f-exp.y (%union) <bval>: Remove.
7485 * coffread.c (patch_opaque_types): Make "b" const.
7486 * spu-tdep.c (spu_catch_start): Make "block" const.
7487 * c-valprint.c (print_unpacked_pointer): Remove "block".
7488 * symmisc.c (dump_symtab_1): Make "b" const.
7489 (block_depth): Make "block" const.
7490 * d-exp.y (%union) <bval>: Remove.
7491 * cp-support.h (cp_lookup_rtti_type): Update.
7492 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7493 * psymtab.c (psym_lookup_symbol): Make "block" const.
7494 (maintenance_check_psymtabs): Make "b" const.
7495 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7496 (enumerate_locals, enumerate_args): Update.
7497 * python/py-symtab.c (stpy_global_block): Make "block" const.
7498 (stpy_static_block): Likewise.
7499 * inline-frame.c (block_starting_point_at): Make "new_block"
7500 const.
7501 * block.c (find_block_in_blockvector): Make return type const.
7502 (blockvector_for_pc_sect): Make "b" const.
7503 (find_block_in_blockvector): Make "b" const.
7504
7ad417dd
TT
75052019-03-23 Tom Tromey <tom@tromey.com>
7506
7507 * varobj.c (varobj_create): Update.
7508 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7509 * printcmd.c (display_command, do_one_display): Don't reset
7510 innermost_block.
7511 * parser-defs.h (enum innermost_block_tracker_type): Move to
7512 expression.h.
7513 (innermost_block): Update comment.
7514 * parse.c (parse_exp_1): Add tracker_types parameter.
7515 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7516 tracker_types parameter. Reset innermost_block.
7517 (parse_exp_in_context): Remove.
7518 (parse_expression_for_completion): Update.
7519 * objfiles.c (~objfile): Don't reset expression_context_block or
7520 innermost_block.
7521 * expression.h (enum innermost_block_tracker_type): Move from
7522 parser-defs.h.
7523 (parse_exp_1): Add tracker_types parameter.
7524 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7525 reset innermost_block.
7526
b366c208
TT
75272019-03-23 Tom Tromey <tom@tromey.com>
7528
7529 * objfiles.h: Include bcache.h.
7530
9bb9b2f9
TT
75312019-03-23 Tom Tromey <tom@tromey.com>
7532
7533 * linespec.c (get_current_search_block): Use
7534 scoped_restore_current_language.
7535 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7536
59c28372
AH
75372019-03-22 Alan Hayward <alan.hayward@arm.com>
7538 Jiong Wang <jiong.wang@arm.com>
7539
7540 * aarch64-linux-tdep.c
7541 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7542 section.
7543 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7544
17e116a7
AH
75452019-03-22 Alan Hayward <alan.hayward@arm.com>
7546 Jiong Wang <jiong.wang@arm.com>
7547
7548 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7549 instructions.
7550 (aarch64_analyze_prologue_test): Add PACIASP test.
7551 (aarch64_prologue_prev_register): Unmask PC value.
7552
11e1b75f
AH
75532019-03-22 Alan Hayward <alan.hayward@arm.com>
7554 Jiong Wang <jiong.wang@arm.com>
7555
7556 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7557 (aarch64_dwarf2_prev_register): Unmask PC value.
7558 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7559 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7560 DW_CFA_AARCH64_negate_ra_state.
7561 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7562
34dcc7cf
AH
75632019-03-22 Alan Hayward <alan.hayward@arm.com>
7564 Jiong Wang <jiong.wang@arm.com>
7565
7566 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7567 registers.
7568 (aarch64_pseudo_register_name): Likewise.
7569 (aarch64_pseudo_register_type): Likewise.
7570 (aarch64_pseudo_register_reggroup_p): Likewise.
7571 (aarch64_gdbarch_init): Add pauth registers.
7572 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7573 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7574 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7575 (struct gdbarch_tdep): Add regnum for ra_state.
7576
1ef53e6b
AH
75772019-03-22 Alan Hayward <alan.hayward@arm.com>
7578 Jiong Wang <jiong.wang@arm.com>
7579
7580 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7581
76bed0fd
AH
75822019-03-22 Alan Hayward <alan.hayward@arm.com>
7583 Jiong Wang <jiong.wang@arm.com>
7584
7585 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7586 function.
7587 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7588 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7589 (aarch64_gdbarch_init): Add puth registers.
7590 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7591 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7592 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7593
ee4fbcfa
AH
75942019-03-22 Alan Hayward <alan.hayward@arm.com>
7595 Jiong Wang <jiong.wang@arm.com>
7596
7597 * aarch64-linux-nat.c
7598 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7599 * aarch64-linux-tdep.c
7600 (aarch64_linux_core_read_description): Likewise.
7601 (aarch64_linux_get_hwcap): New function.
7602 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7603 (aarch64_linux_get_hwcap): New declaration.
7604
6dc0ebde
AH
76052019-03-22 Alan Hayward <alan.hayward@arm.com>
7606 Jiong Wang <jiong.wang@arm.com>
7607
7608 * aarch64-linux-nat.c
7609 (aarch64_linux_nat_target::read_description): Add pauth param.
7610 * aarch64-linux-tdep.c
7611 (aarch64_linux_core_read_description): Likewise.
7612 * aarch64-tdep.c (struct target_desc): Add in pauth.
7613 (aarch64_read_description): Add pauth param.
7614 (aarch64_gdbarch_init): Likewise.
7615 * aarch64-tdep.h (aarch64_read_description): Likewise.
7616 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7617 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7618 * features/Makefile: Add new files.
7619 * features/aarch64-pauth.c: New file.
7620 * features/aarch64-pauth.xml: New file.
7621
595915c1
TT
76222019-03-20 Tom Tromey <tromey@adacore.com>
7623
7624 * infrun.c (handle_inferior_event): Rename from
7625 handle_inferior_event_1. Create a scoped_value_mark.
7626 (handle_inferior_event): Remove.
7627
4c7d57e7
TT
76282019-03-19 Tom Tromey <tromey@adacore.com>
7629
7630 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7631 * infrun.h (print_stop_event): Add "displays" parameter.
7632 * infrun.c (print_stop_event): Add "displays" parameter.
7633
cb246234
PA
76342019-03-19 Pedro Alves <palves@redhat.com>
7635
7636 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7637 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7638 to -1. Fix TABs vs spaces.
7639 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7640 * tui/tui-out.h (tui_ui_out) Add intro comments.
7641 <m_line, m_start_of_line>: In-class initialize, and add describing
7642 comment.
7643
3a0e45b2
AH
76442019-03-18 Alan Hayward <alan.hayward@arm.com>
7645
7646 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7647 variable names.
7648 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7649
5371b850
PA
76502019-03-18 Pedro Alves <palves@redhat.com>
7651 Eli Zaretskii <eliz@gnu.org>
7652
7653 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7654 m_line and m_start_of_line.
7655
b17c4cd0
EZ
76562019-03-18 Eli Zaretskii <eliz@gnu.org>
7657
7658 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7659 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7660 it returns a newline. This fixes a regression in TU mode, whereby
7661 the next line is output on the same screen line as the user input.
7662
4bd56d18
TT
76632019-03-18 Tom Tromey <tromey@adacore.com>
7664
7665 * minsyms.c (minimal_symbol_reader::install): Remove call to
7666 obstack_blank.
7667
55c10aca
PA
76682019-03-18 Pedro Alves <palves@redhat.com>
7669
7670 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7671 New globals.
7672 (apply_style): New, factored out from ...
7673 (apply_ansi_escape): ... this. Handle reverse video mode.
7674 (tui_set_reverse_mode): New function.
7675 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7676 * tui/tui-winsource.c (tui_show_source_line): Use
7677 tui_set_reverse_mode instead of setting A_STANDOUT.
7678 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7679 New setter methods.
7680
647bb750
HD
76812019-03-18 Hannes Domani <ssbssa@yahoo.de>
7682
7683 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7684 Handle tabs.
7685
bff8c71f
TT
76862019-03-18 Tom Tromey <tromey@adacore.com>
7687
7688 * ada-lang.c (empty_array): Add "high" parameter.
7689 (ada_evaluate_subexp): Update.
7690
58785d98
ST
76912019-03-17 Sergei Trofimovich <siarheit@google.com>
7692
7693 * unittests/string_view-selftests.c: Define
7694 _initialize_string_view_selftests unconditionally.
7695
d4cbef22
ВМ
76962019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7697
7698 PR gdb/24350
7699 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7700
fce4c071
ВМ
77012019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7702
7703 PR gdb/24351
7704 * windows-nat.c (display_selector): Fix format specifiers.
7705
f7f0a123
EZ
77062019-03-17 Eli Zaretskii <eliz@gnu.org>
7707
7708 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7709 tui_refill_source_window instead of tui_refresh_win, to update the
7710 current execution line. This fixes redisplay of the current line
7711 when stepping through the code with "next" or "step".
7712
ab42892f
EZ
77132019-03-16 Eli Zaretskii <eliz@gnu.org>
7714
7715 * source-cache.c (source_cache::get_source_lines): Call
7716 find_source_lines to initialize s->nlines. This fixes vertical
7717 scrolling of TUI source window when the DOWN arrow is pressed.
7718
8d8c087f
PW
77192019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7720
7721 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7722 linux-thread-db.c (_initialize_thread_db): Likewise.
7723
798e1c30
EZ
77242019-03-16 Eli Zaretskii <eliz@gnu.org>
7725
7726 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7727 wclrtoeol in tui_show_source_line". This reverts changes made in
7728 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7729
eefba3da
TT
77302019-03-15 Tom Tromey <tom@tromey.com>
7731
7732 * symtab.h (struct minimal_symbol): Derive from
7733 general_symbol_info.
7734 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7735 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7736 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7737 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7738 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7739 (MSYMBOL_SEARCH_NAME): Update.
7740 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7741 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7742 * minsyms.c (minimal_symbol_reader::record_full): Update.
7743
0de2420c
TT
77442019-03-15 Tom Tromey <tom@tromey.com>
7745
7746 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7747
042d75e4
TT
77482019-03-15 Tom Tromey <tom@tromey.com>
7749
7750 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7751 unique_xmalloc_ptr.
7752 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7753 Update.
7754 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7755 (build_minimal_symbol_hash_tables)
7756 (minimal_symbol_reader::install): Update.
7757
db92718b
TT
77582019-03-15 Tom Tromey <tom@tromey.com>
7759
7760 * symtab.c (create_demangled_names_hash): Update.
7761 (symbol_set_names): Update.
7762 * objfiles.h (struct objfile_per_bfd_storage)
7763 <demangled_names_hash>: Now an htab_up.
7764 * objfiles.c (objfile_per_bfd_storage): Simplify.
7765
d6797f46
TT
77662019-03-15 Tom Tromey <tom@tromey.com>
7767
7768 * objfiles.h (struct objfile_per_bfd_storage): Declare
7769 destructor.
7770 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7771 New.
7772 (get_objfile_bfd_data): Use new. Don't initialize
7773 language_of_main.
7774 (free_objfile_per_bfd_storage): Remove.
7775 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7776
741d7538
TT
77772019-03-15 Tom Tromey <tom@tromey.com>
7778
7779 * symfile.c (reread_symbols): Update.
7780 * objfiles.c (objfile::objfile): Update.
7781 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7782 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7783 comment.
7784 (minimal_symbol_reader::install): Update.
7785 (terminate_minimal_symbol_table): Remove.
7786 * jit.c (jit_object_close_impl): Update.
7787
788c80d1
TT
77882019-03-15 Tom Tromey <tom@tromey.com>
7789
7790 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7791 initializations.
7792
1b7a07cb
TT
77932019-03-15 Tom Tromey <tom@tromey.com>
7794
7795 * objfiles.h (struct objfile_per_bfd_storage)
7796 <demangled_hash_languages>: Now a bitset.
7797 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7798 (lookup_minimal_symbol): Update.
7799
3db066bc
TT
78002019-03-15 Tom Tromey <tom@tromey.com>
7801
7802 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7803 Don't return the symbol.
7804 * coffread.c (record_minimal_symbol): Use record_full.
7805
3fff2c37
EZ
78062019-03-14 Eli Zaretskii <eliz@gnu.org>
7807
7808 The MS-Windows port of ncurses fails to switch to a color pair if
7809 one or both of the colors are the implicit default colors. This
7810 change records the default colors when TUI is initialized, and
7811 then specifies them explicitly when a color pair uses the default
7812 colors. This allows color styling in TUI mode on MS-Windows.
7813
7814 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7815 ncurses_norm_attr.
7816 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7817 colors in ncurses_norm_attr.
7818 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7819 "none", replace it with the default color recorded in
7820 ncurses_norm_attr.
7821
3b336828
TT
78222019-03-14 Tom Tromey <tromey@adacore.com>
7823
7824 * source-cache.h (class source_cache) <get_source_lines>: Return
7825 std::string.
7826 * source-cache.c (source_cache::extract_lines): Handle case where
7827 first_pos==npos. Return std::string.
7828 (source_cache::get_source_lines): Update.
7829
d085f989
TT
78302019-03-14 Tom Tromey <tromey@adacore.com>
7831
7832 * NEWS: Add item for "style sources" commands.
7833 * source-cache.c (source_cache::get_source_lines): Check
7834 source_styling.
7835 * cli/cli-style.c (source_styling): New global.
7836 (_initialize_cli_style): Add "style sources" commands.
7837 (show_style_sources): New function.
7838 * cli/cli-style.h (source_styling): Declare.
7839
6f11e682
TT
78402019-03-14 Pedro Alves <palves@redhat.com>
7841 Tom Tromey <tromey@adacore.com>
7842
7843 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7844 * tui/tui-winsource.c (tui_refill_source_window): New function,
7845 from...
7846 (tui_horizontal_source_scroll): ... here. Move some logic.
7847 * cli/cli-style.c (set_style_enabled): Notify new observable.
7848 * tui/tui-hooks.c (tui_redisplay_source): New function.
7849 (tui_attach_detach_observers): Attach or detach
7850 tui_redisplay_source.
7851 * observable.h (source_styling_changed): New observable.
7852 * observable.c: Define source_styling_changed observable.
7853
a068643d
TT
78542019-03-13 Tom Tromey <tromey@adacore.com>
7855
7856 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7857 (i386_gnu_nat_target::store_registers): Update.
7858 * target-debug.h (target_debug_print_std_string): New macro.
7859 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7860 * windows-tdep.c (display_one_tib): Update.
7861 * tui/tui-stack.c (tui_make_status_line): Update.
7862 * top.c (print_inferior_quit_action): Update.
7863 * thread.c (thr_try_catch_cmd): Update.
7864 (add_thread_with_info): Update.
7865 (thread_target_id_str): Update.
7866 (thr_try_catch_cmd): Update.
7867 (thread_command): Update.
7868 (thread_find_command): Update.
7869 * record-btrace.c (record_btrace_target::info_record)
7870 (record_btrace_resume_thread, record_btrace_target::resume)
7871 (record_btrace_cancel_resume, record_btrace_step_thread)
7872 (record_btrace_target::wait, record_btrace_target::wait)
7873 (record_btrace_target::wait, record_btrace_target::stop): Update.
7874 * progspace.c (print_program_space): Update.
7875 * process-stratum-target.c
7876 (process_stratum_target::thread_address_space): Update.
7877 * linux-fork.c (linux_fork_mourn_inferior)
7878 (detach_checkpoint_command, info_checkpoints_command)
7879 (linux_fork_context): Update.
7880 (linux_fork_detach): Update.
7881 (class scoped_switch_fork_info): Update.
7882 (delete_checkpoint_command): Update.
7883 * infrun.c (follow_fork_inferior): Update.
7884 (follow_fork_inferior): Update.
7885 (proceed_after_vfork_done): Update.
7886 (handle_vfork_child_exec_or_exit): Update.
7887 (follow_exec): Update.
7888 (displaced_step_prepare_throw): Update.
7889 (displaced_step_restore): Update.
7890 (start_step_over): Update.
7891 (resume_1): Update.
7892 (clear_proceed_status_thread): Update.
7893 (proceed): Update.
7894 (print_target_wait_results): Update.
7895 (do_target_wait): Update.
7896 (context_switch): Update.
7897 (stop_all_threads): Update.
7898 (restart_threads): Update.
7899 (finish_step_over): Update.
7900 (handle_signal_stop): Update.
7901 (switch_back_to_stepped_thread): Update.
7902 (keep_going_pass_signal): Update.
7903 (print_exited_reason): Update.
7904 (normal_stop): Update.
7905 * inferior.c (inferior_pid_to_str): Change return type.
7906 (print_selected_inferior): Update.
7907 (add_inferior): Update.
7908 (detach_inferior): Update.
7909 * dummy-frame.c (fprint_dummy_frames): Update.
7910 * dcache.c (dcache_info_1): Update.
7911 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7912 (btrace_fetch, btrace_clear): Update.
7913 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7914 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7915 type.
7916 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7917 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7918 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7919 * gdbarch.c, gdbarch.h: Rebuild.
7920 * gdbarch.sh (core_pid_to_str): Change return type.
7921 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7922 return type.
7923 (windows_nat_target::pid_to_str): Change return type.
7924 (windows_delete_thread): Update.
7925 (windows_nat_target::attach): Update.
7926 (windows_nat_target::files_info): Update.
7927 * target-delegates.c: Rebuild.
7928 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7929 return type.
7930 (sol_thread_target::pid_to_str): Change return type.
7931 * remote.c (class remote_target) <pid_to_str>: Change return
7932 type.
7933 (remote_target::pid_to_str): Change return type.
7934 (extended_remote_target::attach, remote_target::remote_stop_ns)
7935 (remote_target::remote_notif_remove_queued_reply)
7936 (remote_target::push_stop_reply, remote_target::disable_btrace):
7937 Update.
7938 (extended_remote_target::attach): Update.
7939 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7940 type.
7941 (gdbsim_target::pid_to_str): Change return type.
7942 * ravenscar-thread.c (struct ravenscar_thread_target)
7943 <pid_to_str>: Change return type.
7944 (ravenscar_thread_target::pid_to_str): Change return type.
7945 * procfs.c (class procfs_target) <pid_to_str>: Change return
7946 type.
7947 (procfs_target::pid_to_str): Change return type.
7948 (procfs_target::attach): Update.
7949 (procfs_target::detach): Update.
7950 (procfs_target::fetch_registers): Update.
7951 (procfs_target::store_registers): Update.
7952 (procfs_target::wait): Update.
7953 (procfs_target::files_info): Update.
7954 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7955 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7956 return type.
7957 (nto_procfs_target::pid_to_str): Change return type.
7958 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7959 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7960 return type.
7961 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7962 (exit_lwp): Update.
7963 (attach_proc_task_lwp_callback, get_detach_signal)
7964 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7965 (linux_nat_target::resume, wait_lwp, stop_callback)
7966 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7967 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7968 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7969 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7970 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7971 type.
7972 (inf_ptrace_target::attach): Update.
7973 (inf_ptrace_target::files_info): Update.
7974 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7975 type.
7976 (go32_nat_target::pid_to_str): Change return type.
7977 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7978 (gnu_nat_target::wait): Update.
7979 (gnu_nat_target::wait): Update.
7980 (gnu_nat_target::resume): Update.
7981 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7982 (fbsd_nat_target::wait): Update.
7983 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7984 type.
7985 (darwin_nat_target::attach): Update.
7986 * corelow.c (class core_target) <pid_to_str>: Change return type.
7987 (core_target::pid_to_str): Change return type.
7988 * target.c (normal_pid_to_str): Change return type.
7989 (default_pid_to_str): Likewise.
7990 (target_pid_to_str): Change return type.
7991 (target_translate_tls_address): Update.
7992 (target_announce_detach): Update.
7993 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7994 return type.
7995 (bsd_uthread_target::pid_to_str): Change return type.
7996 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7997 type.
7998 (bsd_kvm_target::pid_to_str): Change return type.
7999 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8000 return type.
8001 (aix_thread_target::pid_to_str): Change return type.
8002 * target.h (struct target_ops) <pid_to_str>: Change return type.
8003 (target_pid_to_str, normal_pid_to_str): Likewise.
8004 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8005 type.
8006 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8007 type.
8008 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8009 return type.
8010 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8011 type.
8012 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8013 type.
8014 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8015 return type.
8016
b4be1b06
SM
80172019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8018
8019 * NEWS: Mention that the new default MI version is 3. Mention
8020 changes to the output of commands and events that deal with
8021 multi-location breakpoints.
8022 * breakpoint.c: Include "mi/mi-out.h".
8023 (print_one_breakpoint): Change output syntax if using MI version
8024 >= 3.
8025 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8026 New.
8027 (mi_multi_location_breakpoint_output_fixed): New.
8028 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8029 (mi_cmd_fix_multi_location_breakpoint_output): New.
8030 (mi_multi_location_breakpoint_output_fixed): New.
8031 * mi/mi-cmds.c (mi_cmds): Register command
8032 -fix-multi-location-breakpoint-output.
8033 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8034 interpreter "mi".
8035
8e5e5494
SM
80362019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8037
8038 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8039 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8040 instantiate mi_ui_out based on interpreter name.
8041 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8042 * mi/mi-main.c (mi_load_progress): Likewise.
8043
197df35e
JB
80442019-03-12 John Baldwin <jhb@FreeBSD.org>
8045
8046 * NEWS: Combine separate "New targets" sections for 8.3.
8047
8399425f
JB
80482019-03-12 John Baldwin <jhb@FreeBSD.org>
8049
8050 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8051 (ppcfbsd_init_abi): Install gdbarch
8052 "fetch_tls_load_module_address" and "get_thread_local_address"
8053 methods.
8054
b0f87ed0
JB
80552019-03-12 John Baldwin <jhb@FreeBSD.org>
8056
8057 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8058 (riscv_fbsd_init_abi): Install gdbarch
8059 "fetch_tls_load_module_address" and "get_thread_local_address"
8060 methods.
8061
ce25aa57
JB
80622019-03-12 John Baldwin <jhb@FreeBSD.org>
8063
8064 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8065 (i386fbsd_init_abi): Install gdbarch
8066 "fetch_tls_load_module_address" and "get_thread_local_address"
8067 methods.
8068
f5424cfa
JB
80692019-03-12 John Baldwin <jhb@FreeBSD.org>
8070
8071 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8072 (amd64fbsd_init_abi): Install gdbarch
8073 "fetch_tls_load_module_address" and "get_thread_local_address"
8074 methods.
8075
945f3901
JB
80762019-03-12 John Baldwin <jhb@FreeBSD.org>
8077
8078 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8079 (struct fbsd_pspace_data): New type.
8080 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8081 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8082 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8083 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8084 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8085
ef0bd204
JB
80862019-03-12 John Baldwin <jhb@FreeBSD.org>
8087
8088 * gdbtypes.c (lookup_struct_elt): New function.
8089 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8090 * gdbtypes.h (struct struct_elt): New type.
8091 (lookup_struct_elt): New prototype.
8092
36c53a02
JB
80932019-03-12 John Baldwin <jhb@FreeBSD.org>
8094
8095 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8096 remove disabled code block.
8097
6e056c81
JB
80982019-03-12 John Baldwin <jhb@FreeBSD.org>
8099
8100 * gdbarch.sh (get_thread_local_address): New method.
8101 * gdbarch.h, gdbarch.c: Regenerate.
8102 * target.c (target_translate_tls_address): Use
8103 gdbarch_get_thread_local_address if present instead of
8104 target::get_thread_local_address.
8105
cd250a18
JB
81062019-03-12 John Baldwin <jhb@FreeBSD.org>
8107
8108 * target.h (target::get_thread_local_address): Update comment.
8109
df22c1e5
JB
81102019-03-12 John Baldwin <jhb@FreeBSD.org>
8111
8112 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8113 objfile->separate_debug_objfile_backlink if not NULL.
8114
dd6876c9
JB
81152019-03-12 John Baldwin <jhb@FreeBSD.org>
8116
8117 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8118 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8119 (amd64bsd_store_inferior_registers): Likewise.
8120 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8121 Enable segment base registers.
8122 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8123 PT_GETFSBASE and PT_GETGSBASE.
8124 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8125 PT_SETGSBASE.
8126 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8127 segment base registers.
8128 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8129
1163a4b7
JB
81302019-03-12 John Baldwin <jhb@FreeBSD.org>
8131
8132 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8133 Update calls to i386_target_description to add 'segments'
8134 parameter.
8135 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8136 add segment base registers.
8137 * arch/i386.c (i386_create_target_description): Add 'segments'
8138 parameter to enable segment base registers.
8139 * arch/i386.h (i386_create_target_description): Likewise.
8140 * features/i386/32bit-segments.xml: New file.
8141 * features/i386/32bit-segments.c: Generate.
8142 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8143 call to i386_target_description to add 'segments' parameter.
8144 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8145 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8146 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8147 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8148 if feature is present.
8149 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8150 Add 'segments' parameter to call to i386_target_description.
8151 (i386_target_description): Add 'segments' parameter to enable
8152 segment base registers.
8153 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8154 to call to i386_target_description.
8155 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8156 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8157 Define I386_NUM_REGS.
8158 (i386_target_description): Add 'segments' parameter to enable
8159 segment base registers.
8160
3a350822
EZ
81612019-03-12 Eli Zaretskii <eliz@gnu.org>
8162
8163 PR/24325
8164 * source-cache.c: #undef open and close, to avoid unresolved
8165 externals during linking.
8166
ffdd69cf
TT
81672019-03-12 Tom Tromey <tromey@adacore.com>
8168
8169 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8170 const. Add initializers.
8171 (_initialize_remote): Don't initialize ptid globals.
8172
ec148c57
PA
81732019-03-12 Pedro Alves <palves@redhat.com>
8174
8175 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8176
32764270
PA
81772019-03-12 Pedro Alves <palves@redhat.com>
8178
8179 * cp-name-parser.y (main): Remove unused 'len' variable.
8180
17547186
TT
81812019-03-12 Tom Tromey <tromey@adacore.com>
8182
8183 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8184 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8185
d3a70e03
TT
81862019-03-12 Tom Tromey <tromey@adacore.com>
8187
8188 * linux-nat.c (iterate_over_lwps): Update.
8189 (stop_callback): Remove parameter.
8190 (stop_wait_callback, detach_callback, resume_set_callback)
8191 (select_singlestep_lwp_callback, set_ignore_sigint)
8192 (status_callback, resumed_callback, resume_clear_callback)
8193 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8194 data parameter.
8195 (linux_nat_target::detach, linux_nat_target::resume)
8196 (linux_stop_and_wait_all_lwps, select_event_lwp)
8197 (linux_nat_filter_event, linux_nat_wait_1)
8198 (linux_nat_target::kill, linux_nat_target::stop)
8199 (linux_nat_target::stop): Update.
8200 (linux_nat_resume_callback): Change type.
8201 (resume_stopped_resumed_lwps, count_events_callback)
8202 (select_event_lwp_callback): Likewise.
8203 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8204 * arm-linux-nat.c (struct update_registers_data): Remove.
8205 (update_registers_callback): Change type.
8206 (arm_linux_insert_hw_breakpoint1): Update.
8207 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8208 parameter.
8209 (x86_linux_dr_set_addr): Update.
8210 (x86_linux_dr_set_control): Update.
8211 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8212 (iterate_over_lwps): Use gdb::function_view.
8213 * nat/aarch64-linux-hw-point.c (struct
8214 aarch64_dr_update_callback_param): Remove.
8215 (debug_reg_change_callback): Change type.
8216 (aarch64_notify_debug_reg_change): Update.
8217 * s390-linux-nat.c (s390_refresh_per_info): Update.
8218
82cb27ff
TT
82192019-03-11 Tom Tromey <tromey@adacore.com>
8220
8221 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8222 redundant assignment to "this_cu".
8223
568c0683
SM
82242019-03-08 Simon Marchi <simon.marchi@efficios.com>
8225
8226 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8227
f09ce22d
SM
82282019-03-08 Simon Marchi <simon.marchi@efficios.com>
8229
8230 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8231 from...
8232 (rank_one_type): ... this.
8233
595f96a9
SM
82342019-03-08 Simon Marchi <simon.marchi@efficios.com>
8235
8236 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8237 from...
8238 (rank_one_type): ... this.
8239
2598a94b
SM
82402019-03-08 Simon Marchi <simon.marchi@efficios.com>
8241
8242 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8243 from...
8244 (rank_one_type): ... this.
8245
7f17b20d
SM
82462019-03-08 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8249 from...
8250 (rank_one_type): ... this.
8251
2c509035
SM
82522019-03-08 Simon Marchi <simon.marchi@efficios.com>
8253
8254 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8255 from...
8256 (rank_one_type): ... this.
8257
0dd322dc
SM
82582019-03-08 Simon Marchi <simon.marchi@efficios.com>
8259
8260 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8261 from...
8262 (rank_one_type): ... this.
8263
41ea4728
SM
82642019-03-08 Simon Marchi <simon.marchi@efficios.com>
8265
8266 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8267 from...
8268 (rank_one_type): ... this.
8269
793cd1d2
SM
82702019-03-08 Simon Marchi <simon.marchi@efficios.com>
8271
8272 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8273 from...
8274 (rank_one_type): ... this.
8275
34910087
SM
82762019-03-08 Simon Marchi <simon.marchi@efficios.com>
8277
8278 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8279 from...
8280 (rank_one_type): ... this.
8281
f1f832d6
SM
82822019-03-08 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8285 from...
8286 (rank_one_type): ... this.
8287
b9f4512f
SM
82882019-03-08 Simon Marchi <simon.marchi@efficios.com>
8289
8290 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8291 from...
8292 (rank_one_type): ... this.
8293
9293fc63
SM
82942019-03-08 Simon Marchi <simon.marchi@efficios.com>
8295
8296 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8297 from...
8298 (rank_one_type): ... this.
8299
e3abbe7e
PW
83002019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8301
8302 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8303 inferior-events' shows the example events.
8304
e4adb939
EZ
83052019-03-08 Eli Zaretskii <eliz@gnu.org>
8306
8307 Support styling on native MS-Windows console
8308
8309 PR/24315
8310 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8311 on MS-Windows if $TERM is not defined.
8312
8313 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8314
8315 * posix-hdep.c (gdb_console_fputs):
8316 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8317 functions.
8318 * ui-file.h (gdb_console_fputs): Add prototype.
8319
8320 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8321 back to fputs only if the former returns zero.
8322
25629dfd
TT
83232019-03-07 Tom Tromey <tom@tromey.com>
8324
8325 * symmisc.c (print_symbol_bcache_statistics): Update.
8326 (print_objfile_statistics): Update.
8327 * symfile.c (allocate_symtab): Update.
8328 * stabsread.c: Don't include bcache.h.
8329 * psymtab.h (struct psymbol_bcache): Don't declare.
8330 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8331 (psymbol_bcache_init, psymbol_bcache_free)
8332 (psymbol_bcache_get_bcache): Don't declare.
8333 * psymtab.c (struct psymbol_bcache): Remove.
8334 (psymtab_storage::psymtab_storage): Update.
8335 (psymtab_storage::~psymtab_storage): Update.
8336 (psymbol_bcache_init, psymbol_bcache_free)
8337 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8338 (add_psymbol_to_bcache): Update.
8339 (allocate_psymtab): Update.
8340 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8341 macro_cache>: No longer pointers.
8342 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8343 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8344 * macrotab.c (macro_bcache): Update.
8345 * macroexp.c: Don't include bcache.h.
8346 * gdbtypes.c (check_types_worklist): Update.
8347 (types_deeply_equal): Remove TRY/CATCH. Update.
8348 * elfread.c (elf_symtab_read): Update.
8349 * dwarf2read.c: Don't include bcache.h.
8350 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8351 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8352 (print_bcache_statistics, bcache_memory_used): Don't declare.
8353 (struct bcache): Move from bcache.c. Add constructor, destructor,
8354 methods. Rename all data members.
8355 * bcache.c (struct bcache): Move to bcache.h.
8356 (bcache::expand_hash_table): Rename from expand_hash_table.
8357 (bcache): Remove.
8358 (bcache::insert): Rename from bcache_full.
8359 (bcache::compare): Rename from bcache_compare.
8360 (bcache_xmalloc): Remove.
8361 (bcache::~bcache): Rename from bcache_xfree.
8362 (bcache::print_statistics): Rename from print_bcache_statistics.
8363 (bcache::memory_used): Rename from bcache_memory_used.
8364
fe726667
PA
83652019-03-07 Pedro Alves <palves@redhat.com>
8366
8367 * infrun.c (normal_stop): Also check for
8368 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8369
7584bb30
AB
83702019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8371
8372 * f-lang.c (value_from_host_double): Moved to...
8373 * value.c (value_from_host_double): ...here.
8374 * value.h (value_from_host_double): Declare.
8375 * guile/scm-math.c (vlscm_convert_typed_number): Use
8376 value_from_host_double.
8377 (vlscm_convert_number): Likewise.
8378 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8379 * python/py-value.c (convert_value_from_python): Likewise.
8380
a7b1986e
TT
83812019-03-06 Tom Tromey <tom@tromey.com>
8382
8383 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8384
0ccf4211
TT
83852019-03-06 Tom Tromey <tom@tromey.com>
8386
8387 * utils.h (free_current_contents): Don't declare.
8388 * utils.c (free_current_contents): Remove.
8389
fe7b42e5
TT
83902019-03-06 Tom Tromey <tom@tromey.com>
8391
8392 * top.c (quit_force): Update.
8393 * main.c (captured_command_loop): Update.
8394 * common/new-op.c (operator new): Update.
8395 * common/common-exceptions.c (struct catcher)
8396 <save_cleanup_chain>: Remove member.
8397 (exceptions_state_mc_init): Update.
8398 (exception_try_scope_entry): Return nullptr.
8399 (exception_try_scope_exit, exception_rethrow)
8400 (throw_exception_sjlj, throw_exception_cxx): Update.
8401 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8402 (all_cleanups, do_cleanups, discard_cleanups)
8403 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8404 (restore_cleanups, restore_final_cleanups): Don't declare.
8405 (do_final_cleanups): Remove parameter.
8406 * common/cleanups.c (cleanup_chain, make_cleanup)
8407 (make_cleanup_dtor, all_cleanups, do_cleanups)
8408 (discard_my_cleanups, discard_cleanups)
8409 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8410 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8411 (null_cleanup): Remove.
8412 (do_final_cleanups): Remove parameter.
8413
c6321f19
TT
84142019-03-06 Tom Tromey <tom@tromey.com>
8415
8416 * remote.c (remote_target::remote_parse_stop_reply): Use
8417 unique_xmalloc_ptr.
8418
61b30099
TT
84192019-03-06 Tom Tromey <tom@tromey.com>
8420
8421 * stabsread.c (struct stabs_field_info): Rename from field_info.
8422 <list, fnlist>: Add initializers.
8423 <obstack>: New member.
8424 (read_member_functions, read_struct_fields, read_baseclasses):
8425 Allocate on obstack. Don't use cleanups.
8426 (read_one_struct_field, read_member_functions, read_struct_fields)
8427 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8428 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8429 (read_struct_type): Update.
8430
6cceac94
TT
84312019-03-06 Tom Tromey <tom@tromey.com>
8432
8433 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8434 * common/filestuff.h (make_cleanup_close): Don't declare.
8435 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8436 Remove.
8437
72412762
TT
84382019-03-06 Tom Tromey <tom@tromey.com>
8439
8440 * solib-aix.c: Use make_scope_exit.
8441
2b6ff1c0
TT
84422019-03-06 Tom Tromey <tom@tromey.com>
8443
8444 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8445 Use make_scope_exit.
8446
d01c5877
TT
84472019-03-06 Tom Tromey <tom@tromey.com>
8448
8449 * solib-svr4.c (disable_probes_interface): Remove parameter.
8450 (svr4_handle_solib_event): Use make_scope_exit.
8451
32603266
TT
84522019-03-06 Tom Tromey <tom@tromey.com>
8453
8454 * remote.c (struct stop_reply_deleter): Remove.
8455 (stop_reply_up): Update.
8456 (struct stop_reply): Derive from notif_event. Don't typedef.
8457 <regcache>: Now a std::vector.
8458 (stop_reply_xfree): Remove.
8459 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8460 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8461 (remote_target::discard_pending_stop_replies): Use delete.
8462 (remote_target::remote_parse_stop_reply): Update.
8463 (remote_target::process_stop_reply): Update.
8464 * remote-notif.h (struct notif_event): Add virtual destructor.
8465 Remove "dtr" member.
8466 (struct notif_client) <alloc_event>: Return a unique_ptr.
8467 (notif_event_xfree): Don't declare.
8468 (notif_event_up): New typedef.
8469 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8470 (notif_event_xfree, do_notif_event_xfree): Remove.
8471 (remote_notif_state_xfree): Update.
8472
9799571e
TT
84732019-03-06 Tom Tromey <tom@tromey.com>
8474
8475 * infrun.c (displaced_step_clear_cleanup): Now a
8476 forward_scope_exit type.
8477 (displaced_step_prepare_throw): Update.
8478 (displaced_step_fixup): Update.
8479
09e3c4ca
TT
84802019-03-06 Tom Tromey <tom@tromey.com>
8481
8482 * inferior.h (class inferior): Update comment.
8483 * gdbthread.h (class thread_info): Update comment.
8484
e2a03548
TT
84852019-03-06 Joel Brobecker <brobecker@adacore.com>
8486 Tom Tromey <tom@tromey.com>
8487
8488 * stabsread.h (struct stab_section_list): Remove.
8489 (coffstab_build_psymtabs): Update.
8490 * dbxread.c (symbuf_sections): Now a std::vector.
8491 (sect_idx): New global.
8492 (fill_symbuf): Update.
8493 (coffstab_build_psymtabs): Change type of stabsects parameter.
8494 Update.
8495 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8496 std::vector.
8497 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8498 (coff_locate_sections): Update.
8499 (coff_symfile_read): Remove cleanups. Update.
8500 (init_stringtab): Add storage parameter.
8501 (free_stringtab, free_stringtab_cleanup): Remove.
8502 (init_lineno): Add storage parameter.
8503 (free_linetab, free_linetab_cleanup): Remove.
8504
b7e60d85
PA
85052019-03-06 Pedro Alves <palves@redhat.com>
8506
8507 * linux-fork.c (fork_info::clobber_regs): Delete.
8508 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8509 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8510 comment. Adjust.
8511 (scoped_switch_fork_info::scoped_switch_fork_info)
8512 (checkpoint_command, linux_fork_context): Adjust
8513 fork_save_infrun_state calls.
8514
e52c971f
PA
85152019-03-06 Pedro Alves <palves@redhat.com>
8516
8517 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8518 (inf_has_multiple_threads): Return 'bool' and rewrite using
8519 inferior_info::threads().
8520
06974e6c
PA
85212019-03-06 Pedro Alves <palves@redhat.com>
8522
8523 * linux-fork.c: Include <list>.
8524 (fork_list): Now a std::list instance.
8525 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8526 (forks_exist_p, find_last_fork): Adjust.
8527 (new_fork): Delete.
8528 (one_fork_p): New.
8529 (add_fork): Adjust.
8530 (free_fork): Delete, folded into fork_info::~fork_info().
8531 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8532 Adjust.
8533 (init_fork_list): Delete.
8534 (linux_fork_killall, linux_fork_mourn_inferior)
8535 (linux_fork_detach, info_checkpoints_command): Adjust.
8536 (_initialize_linux_fork): No longer call init_fork_list.
8537
72f31aea
PA
85382019-03-06 Pedro Alves <palves@redhat.com>
8539
8540 * linux-fork.c (new_fork): New, split out of ...
8541 (add_fork): ... this. Return void. Move "first fork" special
8542 case from here, to ...
8543 (checkpoint_command): ... here.
8544 * linux-linux.h (add_fork): Return void.
8545
efbecbc1
AB
85462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8549
0841c79a
AB
85502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8551 Chris January <chris.january@arm.com>
8552 David Lecomber <david.lecomber@arm.com>
8553
8554 * f-exp.y: New token, UNOP_INTRINSIC.
8555 (exp): New pattern using UNOP_INTRINSIC token.
8556 (f77_keywords): Add 'abs' keyword.
8557 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8558 (value_from_host_double): New function.
8559 (evaluate_subexp_f): Support UNOP_ABS.
8560
4a270568
AB
85612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8562
8563 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8564 types.
8565
067630bd
AB
85662019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8569 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8570 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8571
3be47f7a
AB
85722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8573
8574 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8575
4d00f5d8
AB
85762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8577 Chris January <chris.january@arm.com>
8578
8579 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8580 * f-exp.y: Define 'KIND' token.
8581 (exp): New pattern for KIND expressions.
8582 (ptype): Handle types with a kind extension.
8583 (direct_abs_decl): Extend to spot kind extensions.
8584 (f77_keywords): Add 'kind' to the list.
8585 (push_kind_type): New function.
8586 (convert_to_kind_type): New function.
8587 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8588 * parse.c (operator_length_standard): Likewise.
8589 * parser-defs.h (enum type_pieces): Add tp_kind.
8590 * std-operator.def: Add UNOP_KIND.
8591
e454224f
AB
85922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8593
8594 * f-exp.y (f_parse): Set yydebug.
8595
9dad4a58
AB
85962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8597
8598 * f-lang.c (evaluate_subexp_f): New function.
8599 (exp_descriptor_f): New global.
8600 (f_language_defn): Use exp_descriptor_f instead of
8601 exp_descriptor_standard.
8602
c8f91604
AB
86032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * f-exp.y (struct token): Add comments.
8606 (dot_ops): Remove uppercase versions and the end marker.
8607 (f77_keywords): Likewise.
8608 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8609 entries in the dot_ops array are case insensitive, and use
8610 strncasecmp to compare strings. Also some whitespace cleanup in
8611 this area. Similar for the f77_keywords array, except entries in
8612 this list might be case sensitive.
8613
dd9f2c76
AB
86142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * f-exp.y (struct f77_boolean_val): Add comments.
8617 (boolean_values): Remove uppercase versions, and end marker.
8618 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8619 and use strncasecmp to achieve case insensitivity. Additionally,
8620 perform whitespace cleanup around this code.
8621
67a3048c
TT
86222019-03-06 Tom Tromey <tromey@adacore.com>
8623
8624 * remote-sim.c (gdbsim_target_open): Use result of
8625 gdb_argv::release.
8626
aa3cfbda
RB
86272019-03-06 Richard Bunt <richard.bunt@arm.com>
8628 Dirk Schubert <dirk.schubert@arm.com>
8629 Chris January <chris.january@arm.com>
8630
8631 * eval.c (evaluate_subexp_standard): Call Fortran argument
8632 wrapping logic.
8633 * f-lang.c (struct value): A value which can be passed into a
8634 Fortran function call.
8635 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8636 where appropriate.
8637 (struct type): Value ready for a Fortran function call.
8638 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8639 is needed.
8640 * f-lang.h (fortran_argument_convert): Declaration.
8641 (fortran_preserve_arg_pointer): Declaration.
8642 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8643
ea38e5df
TT
86442019-03-05 Tom Tromey <tromey@adacore.com>
8645
8646 * python/py-prettyprint.c (print_string_repr): Remove #if.
8647 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8648
06b5b831
TT
86492019-03-05 Tom Tromey <tromey@adacore.com>
8650
8651 * target.c (the_dummy_target): Move later. Change type to
8652 "dummy_target".
8653 (initialize_targets): Don't initialize the_dummy_target.
8654
edbd9e45
TT
86552019-03-05 Tom Tromey <tromey@adacore.com>
8656
8657 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8658 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8659
c119e040
TT
86602019-03-05 Tom Tromey <tromey@adacore.com>
8661
8662 * windows-nat.c (windows_nat_target::attach)
8663 (windows_nat_target::detach): Don't call gdb_flush.
8664 * valprint.c (generic_val_print, val_print, val_print_string):
8665 Don't call gdb_flush.
8666 * utils.c (defaulted_query): Don't call gdb_flush.
8667 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8668 * target.c (target_announce_detach): Don't call gdb_flush.
8669 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8670 * remote.c (extended_remote_target::attach): Don't call
8671 gdb_flush.
8672 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8673 * printcmd.c (do_examine): Don't call gdb_flush.
8674 (info_display_command): Don't call gdb_flush.
8675 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8676 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8677 * memattr.c (info_mem_command): Don't call gdb_flush.
8678 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8679 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8680 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8681 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8682 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8683 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8684 (gnu_nat_target::detach): Don't call gdb_flush.
8685 * f-valprint.c (f_val_print): Don't call gdb_flush.
8686 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8687 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8688 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8689 gdb_flush.
8690 * c-valprint.c (c_val_print): Don't call gdb_flush.
8691 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8692
895dafa6
TT
86932019-03-05 Tom Tromey <tromey@adacore.com>
8694
8695 * varobj.c (update_dynamic_varobj_children): Update.
8696 (install_default_visualizer): Use reset, not release.
8697 * value.c (set_internalvar): Update.
8698 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8699 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8700 ATTRIBUTE_UNUSED_RESULT.
8701
88a774b9
TT
87022019-03-05 Tom Tromey <tromey@adacore.com>
8703
8704 * remote.c (class scoped_remote_fd) <release>: Add
8705 ATTRIBUTE_UNUSED_RESULT.
8706
4e4a8b93
TT
87072019-03-05 Tom Tromey <tromey@adacore.com>
8708
8709 * macroexp.c (struct macro_buffer) <release>: Add
8710 ATTRIBUTE_UNUSED_RESULT.
8711
083eef1f
TT
87122019-03-05 Tom Tromey <tromey@adacore.com>
8713
8714 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8715 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8716 ATTRIBUTE_UNUSED_RESULT.
8717
3cabd438
TT
87182019-03-05 Tom Tromey <tromey@adacore.com>
8719
8720 * common/scoped_fd.h (class scoped_fd) <release>: Add
8721 ATTRIBUTE_UNUSED_RESULT.
8722
41e3300a
TT
87232019-03-05 Tom Tromey <tromey@adacore.com>
8724
8725 * parser-defs.h (struct parser_state) <release>: Add
8726 ATTRIBUTE_UNUSED_RESULT.
8727
18cb7c9f
TT
87282019-03-05 Tom Tromey <tromey@adacore.com>
8729
8730 * utils.h (class gdb_argv) <release>: Add
8731 ATTRIBUTE_UNUSED_RESULT.
8732 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8733
41fa577f
EZ
87342019-03-02 Eli Zaretskii <eliz@gnu.org>
8735
a6a4b2c6
EZ
8736 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8737 for-loop range, to avoid compiler warnings.
8738
8739 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8740 avoid compiler warnings about unused variables.
8741
742a7df5
EZ
8742 * NEWS: Mention end of support for native debugging on MS-Windows
8743 before XP.
8744
41fa577f
EZ
8745 PR gdb/24292
8746 * common/netstuff.c:
8747 * gdbserver/gdbreplay.c
8748 * gdbserver/remote-utils.c:
8749 * ser-tcp.c:
8750 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8751 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8752 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8753 'getaddrinfo' and 'freeaddrinfo' were not available before
8754 Windows XP, and mingw.org's MinGW headers by default define
8755 _WIN32_WINNT to 0x500.
8756
827f438f
GB
87572019-03-01 Gary Benson <gbenson@redhat.com>
8758
8759 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8760
92137da0
RO
87612019-02-28 Brian Vandenberg <phantall@gmail.com>
8762 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8763
8764 PR gdb/8527
8765 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8766 set_sigint_trap, clear_sigint_trap.
8767
799efbe8
PW
87682019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8769
8770 * target.c (target_detach): Clear the regcache and the
8771 frame cache.
8772
8ed25214
PA
87732019-02-27 Pedro Alves <palves@redhat.com>
8774
8775 * utils.c (set_screen_size): When we cap the height/width sizes,
8776 tweak the corresponding command variable to show "unlimited":
8777
23031e31
SJ
87782019-02-27 Saagar Jha <saagar@saagarjha.com>
8779 Pedro Alves <palves@redhat.com>
8780
8781 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8782 before calling rl_set_screen_size.
8783
6c28e44a
TT
87842019-02-27 Tom Tromey <tromey@adacore.com>
8785
8786 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8787 define.
8788 * python/py-value.c: Remove Python 2.4 workaround.
8789 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8790 workaround.
8791 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8792 Python 2.4 workaround.
8793 * python/python-internal.h: Remove Python 2.4 comment.
8794 (Py_ssize_t): Don't define.
8795 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8796 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8797 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8798 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8799 * python/python.c (do_start_initialization): Remove Python 2.4
8800 workaround.
8801 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8802 (print_children): Remove Python 2.4 workaround.
8803 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8804 workaround.
8805 (CHARBUFFERPROC_NAME): Remove.
8806 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8807 Python 2.4 workaround.
8808
2c3fc25d 88092019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8810
2c3fc25d
KB
8811 * NEWS: Note minimum Python version.
8812
6ca62222
KB
88132019-02-27 Kevin Buettner <kevinb@redhat.com>
8814
8815 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8816 code from these functions. Remove corresponding ifdefs. Use
8817 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8818 Remove gotos and target of gotos.
8819 (infpy_search_memory): Likewise.
8820
f4bc7d2c
AB
88212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8822
8823 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8824 (hppa_gdbarch_init): Don't register deleted functions with
8825 gdbarch.
8826
9734a586
AB
88272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8828
8829 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8830 (h8300_unwind_sp): Delete.
8831 (h8300_dummy_id): Delete.
8832 (h8300_gdbarch_init): Don't register deleted functions with
8833 gdbarch.
8834
68b867f3
AB
88352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8836
8837 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8838 (ft32_unwind_pc): Delete.
8839 (ft32_unwind_sp): Delete.
8840 (ft32_gdbarch_init): Don't register deleted functions with
8841 gdbarch.
8842
2fbe7ad0
AB
88432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8844
8845 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8846 (frv_unwind_pc): Delete.
8847 (frv_unwind_sp): Delete.
8848 (frv_gdbarch_init): Don't register deleted functions with
8849 gdbarch.
8850
76055cbe
AB
88512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8852
8853 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8854 (riscv_unwind_pc): Delete.
8855 (riscv_unwind_sp): Delete.
8856 (riscv_gdbarch_init): Don't register deleted functions with
8857 gdbarch.
8858
4133e5a1
AB
88592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8860
8861 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8862 (csky_unwind_pc): Delete.
8863 (csky_unwind_sp): Delete.
8864 (csky_gdbarch_init): Don't register deleted functions with
8865 gdbarch.
8866
8010f576
AB
88672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8868
8869 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8870 (cris_unwind_pc): Delete.
8871 (cris_unwind_sp): Delete.
8872 (cris_gdbarch_init): Don't register deleted functions with
8873 gdbarch.
8874
b56bf084
AB
88752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8876
8877 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8878 (bfin_unwind_pc): Delete.
8879 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8880
a19a650f
AB
88812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8884 (arm_unwind_pc): Delete.
8885 (arm_unwind_sp): Delete.
8886 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8887
f8278c3c
AB
88882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8889
8890 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8891 (arc_unwind_pc): Delete.
8892 (arc_unwind_sp): Delete.
8893 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8894
480e46cf
AB
88952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8896
8897 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8898 (alpha_unwind_pc): Delete.
8899 (alpha_gdbarch_init): Don't register deleted functions with
8900 gdbarch.
8901
7a995095
AB
89022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8903
8904 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8905 (aarch64_unwind_pc): Delete.
8906 (aarch64_unwind_sp): Delete.
8907 (aarch64_gdbarch_init): Don't register deleted functions with
8908 gdbarch.
8909
bf9a735e
AB
89102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8911
8912 * gdbtypes.c (type_align): Don't consider static members when
8913 computing structure alignment.
8914
5561fc30
AB
89152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8916
8917 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8918 return 0 for other types.
8919 * arch-utils.c (default_type_align): Always return 0.
8920 * gdbarch.h: Regenerate.
8921 * gdbarch.sh (type_align): Extend comment.
8922 * gdbtypes.c (type_align): Add additional comments, always call
8923 gdbarch_type_align before applying the default rules.
8924 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8925 generic code will then apply a suitable default.
8926 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8927 types, return 0 for other types.
8928
9335e75a
JB
89292019-02-27 Joel Brobecker <brobecker@adacore.com>
8930
8931 * NEWS: Create a new section for the next release branch.
8932 Rename the section of the current branch, now that it has
8933 been cut.
8934
3d34d8de
JB
89352019-02-27 Joel Brobecker <brobecker@adacore.com>
8936
8937 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8938 * version.in: Bump version to 8.3.50.DATE-git.
8939
143420fb
SM
89402019-02-26 Simon Marchi <simon.marchi@efficios.com>
8941
8942 * aix-thread.c (ptid_cmp): Remove unused variable.
8943 (get_signaled_thread): Likewise.
8944 (store_regs_user_thread): Likewise.
8945 (store_regs_kernel_thread): Likewise.
8946 (fetch_regs_kernel_thread): Remove shadowed variable.
8947
172fb711
AB
89482019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8949
8950 * features/riscv/32bit-cpu.xml: Add register numbers.
8951 * features/riscv/32bit-fpu.c: Regenerate.
8952 * features/riscv/32bit-fpu.xml: Add register numbers.
8953 * features/riscv/64bit-cpu.xml: Add register numbers.
8954 * features/riscv/64bit-fpu.c: Regenerate.
8955 * features/riscv/64bit-fpu.xml: Add register numbers.
8956
26c89782
KB
89572019-02-26 Kevin Buettner <kevinb@redhat.com>
8958
af54ade9 8959 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8960 * python/py-value.c (convert_buffer_and_type_to_value): New
8961 function.
8962 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8963 Add support for handling an optional second argument. Call
8964 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8965 * python/python-internal.h (Py_buffer_deleter): New struct.
8966 (Py_buffer_up): New typedef.
8967
0f58c9e8
JB
89682019-02-25 John Baldwin <jhb@FreeBSD.org>
8969
8970 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8971 instead of releasing ownership.
8972
0a0f4c01
JR
89732019-02-25 Jordan Rupprecht <rupprecht@google.com>
8974
8975 * dwarf2read.c (open_and_init_dwp_file): Call
8976 elf_numsections instead of bfd_count_sections to initialize
8977 dwp_file->num_sections.
8978
cd5a152c
TT
89792019-02-25 Tom Tromey <tromey@adacore.com>
8980
8981 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8982
8a6a8513
SDJ
89832019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8984
8985 * gcore.in: Add '--readnever' option when invoking GDB.
8986
04dcda9c
SM
89872019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8988
8989 * MAINTAINERS: Update my email address.
8990
07bc701d
SM
89912019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8992
8993 * build-id.c (build_id_to_debug_bfd_1): New function.
8994 (build_id_to_debug_bfd): Look for separate debug file in
8995 sysroot.
8996
c6f4a5d0
AB
89972019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8998
8999 * gdbarch.sh: Update the copyright year range that is placed into
9000 generated files.
9001
9600246d
KS
90022019-02-22 Keith Seitz <keiths@redhat.com>
9003
9004 PR symtab/23853
9005 * linespec.c (create_sals_line_offset): Search for the default
9006 symtab's filename instead of its fullname.
9007
7557a514
AH
90082019-02-21 Alan Hayward <alan.hayward@arm.com>
9009
9010 * NEWS: Update style defaults.
9011
ee2bcb0c
AH
90122019-02-21 Alan Hayward <alan.hayward@arm.com>
9013
9014 * main.c (captured_main_1): Disable styling in batch mode.
9015
0c95f9ed
TT
90162019-02-20 Tom Tromey <tom@tromey.com>
9017
9018 * symtab.c (symtab_symbol_info): Fix typos.
9019
c763b894
TT
90202019-02-20 Tom Tromey <tromey@adacore.com>
9021
9022 * findcmd.c (_initialize_mem_search): Use upper case for
9023 metasyntactic variables.
9024
0ef8a082
AH
90252019-02-20 Alan Hayward <alan.hayward@arm.com>
9026
9027 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9028 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9029
6caa91b6
SM
90302019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9031
9032 * top.h (source_file_name): Change to std::string.
9033 * top.c (source_file_name): Likewise.
9034 (command_line_input): Adjust.
9035 * cli/cli-script.c (script_from_file): Adjust.
9036
98814c6c
TT
90372019-02-19 Tom Tromey <tromey@adacore.com>
9038
9039 * ravenscar-thread.c
9040 (ravenscar_thread_target::update_thread_list): Don't call
9041 ada_build_task_list.
9042 * ada-lang.h (ada_build_task_list): Don't declare.
9043 * ada-tasks.c (struct ada_tasks_inferior_data)
9044 <task_list_valid_p>: Now bool.
9045 (read_known_tasks, ada_task_list_changed)
9046 (ada_tasks_invalidate_inferior_data): Update.
9047 (read_known_tasks_array): Return bool.
9048 (read_known_tasks_list): Likewise.
9049 (read_known_tasks): Return void.
9050 (ada_build_task_list): Now static.
9051
70cd633e
AB
90522019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9053
9054 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9055 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9056
040b3e95
PW
90572019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9058
9059 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9060 variant for ada_tasks_pspace_data_handle and
9061 ada_tasks_inferior_data_handle.
9062 (ada_tasks_pspace_data_cleanup): New function.
9063 (ada_tasks_inferior_data_cleanup): New function.
9064
9409233b
TT
90652019-02-17 Tom Tromey <tom@tromey.com>
9066
9067 * macrotab.h (macro_source_fullname): Return a std::string.
9068 * macrotab.c (macro_include, check_for_redefinition)
9069 (macro_undef, macro_lookup_definition, foreach_macro)
9070 (foreach_macro_in_scope): Update.
9071 (macro_source_fullname): Return a std::string.
9072 * macrocmd.c (show_pp_source_pos): Update.
9073
6506371f
TT
90742019-02-17 Tom Tromey <tom@tromey.com>
9075
9076 * macrocmd.c (show_pp_source_pos): Style the file names.
9077
0c820d67
TT
90782019-02-17 Tom Tromey <tom@tromey.com>
9079
9080 PR tui/24197:
9081 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9082
a0087920
TT
90832019-02-17 Tom Tromey <tom@tromey.com>
9084
9085 * ada-lang.c (user_select_syms): Use filtered printing.
9086 * utils.c (wrap_style): New global.
9087 (desired_style): Remove.
9088 (emit_style_escape): Add stream parameter.
9089 (set_output_style, reset_terminal_style, prompt_for_continue):
9090 Update.
9091 (flush_wrap_buffer): Only flush gdb_stdout.
9092 (wrap_here): Set wrap_style.
9093 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9094 treat escape sequences as a character. Change when wrap buffer is
9095 flushed.
9096 (fputs_styled): Do not set the output style when the default is
9097 requested.
9098 * ui-style.h (struct ui_file_style) <is_default>: New method.
9099 * source.c (print_source_lines_base): Emit escape sequences in one
9100 piece.
9101
75ba10dc
JB
91022019-02-17 Joel Brobecker <brobecker@adacore.com>
9103
9104 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9105 integers and enumeration types.
9106
a2cd4f14
JB
91072019-02-17 Joel Brobecker <brobecker@adacore.com>
9108
9109 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9110 instead of lookup_symbol_in_language
9111 (do_exact_match): New function.
9112 (ada_get_symbol_name_matcher): Return do_exact_match when
9113 doing a verbatim match.
9114
485b851b
TT
91152019-02-15 Tom Tromey <tromey@adacore.com>
9116
9117 * ravenscar-thread.c (ravenscar_thread_target::resume)
9118 (ravenscar_thread_target::wait): Special case wildcard requests.
9119
0b790b1e
TT
91202019-02-15 Tom Tromey <tromey@adacore.com>
9121
9122 * ravenscar-thread.c (base_ptid): Remove.
9123 (struct ravenscar_thread_target) <close>: New method.
9124 <m_base_ptid>: New member.
9125 <update_inferior_ptid, active_task, task_is_currently_active,
9126 runtime_initialized>: Declare methods.
9127 <ravenscar_thread_target>: Add constructor.
9128 (ravenscar_thread_target::task_is_currently_active)
9129 (ravenscar_thread_target::update_inferior_ptid)
9130 (ravenscar_runtime_initialized): Rename. Now methods.
9131 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9132 (ravenscar_thread_target::update_thread_list): Update.
9133 (ravenscar_thread_target::active_task): Now method.
9134 (ravenscar_thread_target::store_registers)
9135 (ravenscar_thread_target::prepare_to_store)
9136 (ravenscar_thread_target::prepare_to_store)
9137 (ravenscar_thread_target::mourn_inferior): Update.
9138 (ravenscar_inferior_created): Use "new" to create target.
9139 (ravenscar_thread_target::get_ada_task_ptid): Update.
9140 (_initialize_ravenscar): Don't initialize base_ptid.
9141 (ravenscar_ops): Remove global.
9142
dea57a62
TT
91432019-02-15 Tom Tromey <tromey@adacore.com>
9144
9145 * target.h (push_target): Declare new overload.
9146 * target.c (push_target): New overload, taking an rvalue reference.
9147 * remote.c (remote_target::open_1): Use push_target overload.
9148 * corelow.c (core_target_open): Use push_target overload.
9149
989f3c58
TT
91502019-02-15 Tom Tromey <tromey@adacore.com>
9151
9152 * ravenscar-thread.c (is_ravenscar_task)
9153 (ravenscar_task_is_currently_active): Return bool.
9154 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9155 (_initialize_ravenscar): Remove "(void)".
9156 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9157 Return bool.
9158
6cbcc006
TT
91592019-02-15 Tom Tromey <tromey@adacore.com>
9160
9161 * ravenscar-thread.c (ravenscar_runtime_initializer)
9162 (has_ravenscar_runtime, get_running_thread_id)
9163 (ravenscar_thread_target::resume): Fix indentation.
9164
7657f14d
TT
91652019-02-15 Tom Tromey <tromey@adacore.com>
9166
9167 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9168 from ravenscar_arch_ops.
9169 (sparc_ravenscar_ops::fetch_registers)
9170 (sparc_ravenscar_ops::store_registers): Now methods.
9171 (sparc_ravenscar_prepare_to_store): Remove.
9172 (sparc_ravenscar_ops): Redefine.
9173 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9174 methods and destructor. Remove members.
9175 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9176 (ravenscar_thread_target::store_registers)
9177 (ravenscar_thread_target::prepare_to_store): Update.
9178 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9179 Remove.
9180 (struct ppc_ravenscar_powerpc_ops): Derive from
9181 ravenscar_arch_ops.
9182 (ppc_ravenscar_powerpc_ops::fetch_registers)
9183 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9184 (ppc_ravenscar_powerpc_ops): Redefine.
9185 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9186 (ppc_ravenscar_e500_ops::fetch_registers)
9187 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9188 (ppc_ravenscar_e500_ops): Redefine.
9189 * aarch64-ravenscar-thread.c
9190 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9191 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9192 (aarch64_ravenscar_fetch_registers)
9193 (aarch64_ravenscar_store_registers): Now methods.
9194 (aarch64_ravenscar_ops): Redefine.
9195
5b6ea500
TT
91962019-02-15 Tom Tromey <tromey@adacore.com>
9197
9198 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9199 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9200 (ravenscar_thread_target::stopped_by_watchpoint)
9201 (ravenscar_thread_target::stopped_data_address)
9202 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9203
e397fd39
TT
92042019-02-15 Tom Tromey <tromey@adacore.com>
9205
9206 * ravenscar-thread.c: Fix some typos.
9207
cc12f4a8
TT
92082019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9209 Tom Tromey <tromey@adacore.com>
9210
9211 * ada-lang.c (ada_exception_sal): Change addr_string to a
9212 std::string.
9213 (create_ada_exception_catchpoint): Update.
9214
5f486660
TT
92152019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9216 Tom Tromey <tromey@adacore.com>
9217
9218 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9219 (bp_location_ops): Remove.
9220 (base_breakpoint_allocate_location): Update.
9221 (free_bp_location): Update.
9222 * ada-lang.c (class ada_catchpoint_location)
9223 <ada_catchpoint_location>: Remove ops parameter.
9224 (ada_catchpoint_location_dtor): Remove.
9225 (ada_catchpoint_location_ops): Remove.
9226 (allocate_location_exception): Update.
9227 * breakpoint.h (struct bp_location_ops): Remove.
9228 (class bp_location) <bp_location>: Remove bp_location_ops
9229 parameter.
9230 <~bp_location>: Add destructor.
9231 <ops>: Remove.
9232
b671c7fb
TS
92332019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9234 Pedro Alves <palves@redhat.com>
9235
9236 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9237 'PATH_MAX'.
9238
8071c5ce
DM
92392019-02-14 David Michael <fedora.dm0@gmail.com>
9240 Samuel Thibault <samuel.thibault@gnu.org>
9241 Thomas Schwinge <thomas@codesourcery.com>
9242
9243 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9244 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9245
b1041ae0
TS
92462019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9247
924514e1
TS
9248 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9249 (check_empty): Use "const char *".
9250
c29ee8d4
TS
9251 * gnu-nat.c (gnu_nat_target::detach): Instead of
9252 'detach_inferior (pid)' call
9253 'detach_inferior (find_inferior_pid (pid))'.
9254
6c6ef69f
TS
9255 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9256 'nat/fork-inferior.o'.
9257 * gnu-nat.c: #include "nat/fork-inferior.h".
9258
2d0a338c
TS
9259 * gnu-nat.c (gnu_nat_target::detach): Instead of
9260 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9261 * gnu-nat.h: #include "inf-child.h".
9262 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9263 'i386_gnu_nat_target::fetch_registers'.
9264 (gnu_store_registers): Rename/move to
9265 'i386_gnu_nat_target::store_registers'.
9266
cabb5f06
TS
9267 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9268 * gnu-nat.h (mach_thread_info): New function.
9269 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9270
b1041ae0
TS
9271 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9272
2988d01e
KF
92732019-02-14 Frederic Konrad <konrad@adacore.com>
9274
9275 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9276
c559d709
JB
92772019-02-14 Joel Brobecker <brobecker@adacore.com>
9278
9279 * windows-nat.c (windows_add_thread): Add new parameter
9280 "main_thread_p" with default value set to false. Update
9281 function documentation as well as all callers.
9282 (windows_delete_thread): Likewise.
9283 (fake_create_process): Update call to windows_add_thread.
9284 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9285 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9286 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9287 call to windows_delete_thread.
9288
007024cc
SM
92892019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9290
9291 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9292
f62318e9
JB
92932019-02-12 John Baldwin <jhb@FreeBSD.org>
9294
9295 * symfile.c (find_separate_debug_file): Use canonical path of
9296 sysroot with child_path instead of gdb_sysroot if it is valid.
9297
cd4b7848
JB
92982019-02-12 John Baldwin <jhb@FreeBSD.org>
9299
9300 * symfile.c (find_separate_debug_file): Use child_path to
9301 determine if an object file is under a sysroot.
9302
efac4bfe
JB
93032019-02-12 John Baldwin <jhb@FreeBSD.org>
9304
9305 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9306 unittests/child-path-selftests.c.
9307 * common/pathstuff.c (child_path): New function.
9308 * common/pathstuff.h (child_path): New prototype.
9309 * unittests/child-path-selftests.c: New file.
9310
402d2bfe
JB
93112019-02-12 John Baldwin <jhb@FreeBSD.org>
9312
9313 * symfile.c (find_separate_debug_file): Look for separate debug
9314 files in debug directories under the sysroot.
9315
1ed9f74e
PW
93162019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9317
9318 * symtab.h (struct minimal_symbol data_p): New const method.
9319 (struct minimal_symbol text_p): Likewise.
9320 * symtab.c (output_source_filename): Use file name style
9321 to print file name.
9322 (print_symbol_info): Likewise.
9323 (print_msymbol_info): Use address style to print addresses.
9324 Use function name style to print executable text symbols.
9325 (expand_symtab_containing_pc): Use data_p.
9326 (find_pc_sect_compunit_symtab): Likewise.
9327
2636d81d
PW
93282019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9329
9330 * breakpoint.c (describe_other_breakpoints): Use address style
9331 to print addresses.
9332 (say_where): Likewise.
9333
ac8c53cc
PW
93342019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9335
9336 * ada-typeprint.c (print_func_type): Print function name
9337 style to print function name.
9338 * c-typeprint.c (c_print_type_1): Likewise.
9339
ea638c43
AH
93402019-02-11 Alan Hayward <alan.hayward@arm.com>
9341
9342 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9343 for execve.
9344
ab759ca8
PW
93452019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9346
9347 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9348 type_stack.
9349
aff29d1c
JB
93502019-02-10 Joel Brobecker <brobecker@adacore.com>
9351
9352 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9353 TYPE_CODE_REF types.
9354
617126bc
JW
93552019-02-08 Jim Wilson <jimw@sifive.com>
9356
9357 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9358 (riscv_linux_fregset): New.
9359 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9360
46e3ed7f
TT
93612019-02-07 Tom Tromey <tom@tromey.com>
9362
9363 * thread.c (thread_cancel_execution_command): Update.
9364 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9365 methods.
9366 (struct thread_fsm_ops): Remove.
9367 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9368 (thread_fsm_should_stop, thread_fsm_return_value)
9369 (thread_fsm_set_finished, thread_fsm_finished_p)
9370 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9371 Don't declare.
9372 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9373 * infrun.c (clear_proceed_status_thread)
9374 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9375 (print_stop_event): Update.
9376 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9377 Add constructor.
9378 (step_command_fsm_ops): Remove.
9379 (new_step_command_fsm): Remove.
9380 (step_1): Update.
9381 (step_command_fsm::should_stop): Rename from
9382 step_command_fsm_should_stop.
9383 (step_command_fsm::clean_up): Rename from
9384 step_command_fsm_clean_up.
9385 (step_command_fsm::do_async_reply_reason): Rename from
9386 step_command_fsm_async_reply_reason.
9387 (struct until_next_fsm): Inherit from thread_fsm. Add
9388 constructor.
9389 (until_next_fsm_ops): Remove.
9390 (new_until_next_fsm): Remove.
9391 (until_next_fsm::should_stop): Rename from
9392 until_next_fsm_should_stop.
9393 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9394 (until_next_fsm::do_async_reply_reason): Rename from
9395 until_next_fsm_async_reply_reason.
9396 (struct finish_command_fsm): Inherit from thread_fsm. Add
9397 constructor. Change type of breakpoint.
9398 (finish_command_fsm_ops): Remove.
9399 (new_finish_command_fsm): Remove.
9400 (finish_command_fsm::should_stop): Rename from
9401 finish_command_fsm_should_stop.
9402 (finish_command_fsm::clean_up): Rename from
9403 finish_command_fsm_clean_up.
9404 (finish_command_fsm::return_value): Rename from
9405 finish_command_fsm_return_value.
9406 (finish_command_fsm::do_async_reply_reason): Rename from
9407 finish_command_fsm_async_reply_reason.
9408 (finish_command): Update.
9409 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9410 Add constructor.
9411 (call_thread_fsm_ops): Remove.
9412 (call_thread_fsm::call_thread_fsm): Rename from
9413 new_call_thread_fsm.
9414 (call_thread_fsm::should_stop): Rename from
9415 call_thread_fsm_should_stop.
9416 (call_thread_fsm::should_notify_stop): Rename from
9417 call_thread_fsm_should_notify_stop.
9418 (run_inferior_call, call_function_by_hand_dummy): Update.
9419 * cli/cli-interp.c (should_print_stop_to_console): Update.
9420 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9421 Add constructor. Change type of location_breakpoint,
9422 caller_breakpoint.
9423 (until_break_fsm_ops): Remove.
9424 (new_until_break_fsm): Remove.
9425 (until_break_fsm::should_stop): Rename from
9426 until_break_fsm_should_stop.
9427 (until_break_fsm::clean_up): Rename from
9428 until_break_fsm_clean_up.
9429 (until_break_fsm::do_async_reply_reason): Rename from
9430 until_break_fsm_async_reply_reason.
9431 (until_break_command): Update.
9432 * thread-fsm.c: Remove.
9433 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9434
1a5c2598
TT
94352019-02-07 Tom Tromey <tom@tromey.com>
9436
9437 * yy-remap.h: Add include guard.
9438 * xtensa-tdep.h: Add include guard.
9439 * xcoffread.h: Rename include guard.
9440 * varobj-iter.h: Add include guard.
9441 * tui/tui.h: Rename include guard.
9442 * tui/tui-winsource.h: Rename include guard.
9443 * tui/tui-wingeneral.h: Rename include guard.
9444 * tui/tui-windata.h: Rename include guard.
9445 * tui/tui-win.h: Rename include guard.
9446 * tui/tui-stack.h: Rename include guard.
9447 * tui/tui-source.h: Rename include guard.
9448 * tui/tui-regs.h: Rename include guard.
9449 * tui/tui-out.h: Rename include guard.
9450 * tui/tui-layout.h: Rename include guard.
9451 * tui/tui-io.h: Rename include guard.
9452 * tui/tui-hooks.h: Rename include guard.
9453 * tui/tui-file.h: Rename include guard.
9454 * tui/tui-disasm.h: Rename include guard.
9455 * tui/tui-data.h: Rename include guard.
9456 * tui/tui-command.h: Rename include guard.
9457 * tic6x-tdep.h: Add include guard.
9458 * target/waitstatus.h: Rename include guard.
9459 * target/wait.h: Rename include guard.
9460 * target/target.h: Rename include guard.
9461 * target/resume.h: Rename include guard.
9462 * target-float.h: Rename include guard.
9463 * stabsread.h: Add include guard.
9464 * rs6000-tdep.h: Add include guard.
9465 * riscv-fbsd-tdep.h: Add include guard.
9466 * regformats/regdef.h: Rename include guard.
9467 * record.h: Rename include guard.
9468 * python/python.h: Rename include guard.
9469 * python/python-internal.h: Rename include guard.
9470 * python/py-stopevent.h: Rename include guard.
9471 * python/py-ref.h: Rename include guard.
9472 * python/py-record.h: Rename include guard.
9473 * python/py-record-full.h: Rename include guard.
9474 * python/py-record-btrace.h: Rename include guard.
9475 * python/py-instruction.h: Rename include guard.
9476 * python/py-events.h: Rename include guard.
9477 * python/py-event.h: Rename include guard.
9478 * procfs.h: Add include guard.
9479 * proc-utils.h: Add include guard.
9480 * p-lang.h: Add include guard.
9481 * or1k-tdep.h: Rename include guard.
9482 * observable.h: Rename include guard.
9483 * nto-tdep.h: Rename include guard.
9484 * nat/x86-linux.h: Rename include guard.
9485 * nat/x86-linux-dregs.h: Rename include guard.
9486 * nat/x86-gcc-cpuid.h: Add include guard.
9487 * nat/x86-dregs.h: Rename include guard.
9488 * nat/x86-cpuid.h: Rename include guard.
9489 * nat/ppc-linux.h: Rename include guard.
9490 * nat/mips-linux-watch.h: Rename include guard.
9491 * nat/linux-waitpid.h: Rename include guard.
9492 * nat/linux-ptrace.h: Rename include guard.
9493 * nat/linux-procfs.h: Rename include guard.
9494 * nat/linux-osdata.h: Rename include guard.
9495 * nat/linux-nat.h: Rename include guard.
9496 * nat/linux-namespaces.h: Rename include guard.
9497 * nat/linux-btrace.h: Rename include guard.
9498 * nat/glibc_thread_db.h: Rename include guard.
9499 * nat/gdb_thread_db.h: Rename include guard.
9500 * nat/gdb_ptrace.h: Rename include guard.
9501 * nat/fork-inferior.h: Rename include guard.
9502 * nat/amd64-linux-siginfo.h: Rename include guard.
9503 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9504 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9505 * nat/aarch64-linux.h: Rename include guard.
9506 * nat/aarch64-linux-hw-point.h: Rename include guard.
9507 * mn10300-tdep.h: Add include guard.
9508 * mips-linux-tdep.h: Add include guard.
9509 * mi/mi-parse.h: Rename include guard.
9510 * mi/mi-out.h: Rename include guard.
9511 * mi/mi-main.h: Rename include guard.
9512 * mi/mi-interp.h: Rename include guard.
9513 * mi/mi-getopt.h: Rename include guard.
9514 * mi/mi-console.h: Rename include guard.
9515 * mi/mi-common.h: Rename include guard.
9516 * mi/mi-cmds.h: Rename include guard.
9517 * mi/mi-cmd-break.h: Rename include guard.
9518 * m2-lang.h: Add include guard.
9519 * location.h: Rename include guard.
9520 * linux-record.h: Rename include guard.
9521 * linux-nat.h: Add include guard.
9522 * linux-fork.h: Add include guard.
9523 * i386-darwin-tdep.h: Rename include guard.
9524 * hppa-linux-offsets.h: Add include guard.
9525 * guile/guile.h: Rename include guard.
9526 * guile/guile-internal.h: Rename include guard.
9527 * gnu-nat.h: Rename include guard.
9528 * gdb-stabs.h: Rename include guard.
9529 * frv-tdep.h: Add include guard.
9530 * f-lang.h: Add include guard.
9531 * event-loop.h: Add include guard.
9532 * darwin-nat.h: Rename include guard.
9533 * cp-abi.h: Rename include guard.
9534 * config/sparc/nm-sol2.h: Rename include guard.
9535 * config/nm-nto.h: Rename include guard.
9536 * config/nm-linux.h: Add include guard.
9537 * config/i386/nm-i386gnu.h: Rename include guard.
9538 * config/djgpp/nl_types.h: Rename include guard.
9539 * config/djgpp/langinfo.h: Rename include guard.
9540 * compile/gcc-cp-plugin.h: Add include guard.
9541 * compile/gcc-c-plugin.h: Add include guard.
9542 * compile/compile.h: Rename include guard.
9543 * compile/compile-object-run.h: Rename include guard.
9544 * compile/compile-object-load.h: Rename include guard.
9545 * compile/compile-internal.h: Rename include guard.
9546 * compile/compile-cplus.h: Rename include guard.
9547 * compile/compile-c.h: Rename include guard.
9548 * common/xml-utils.h: Rename include guard.
9549 * common/x86-xstate.h: Rename include guard.
9550 * common/version.h: Rename include guard.
9551 * common/vec.h: Rename include guard.
9552 * common/tdesc.h: Rename include guard.
9553 * common/selftest.h: Rename include guard.
9554 * common/scoped_restore.h: Rename include guard.
9555 * common/scoped_mmap.h: Rename include guard.
9556 * common/scoped_fd.h: Rename include guard.
9557 * common/safe-iterator.h: Rename include guard.
9558 * common/run-time-clock.h: Rename include guard.
9559 * common/refcounted-object.h: Rename include guard.
9560 * common/queue.h: Rename include guard.
9561 * common/ptid.h: Rename include guard.
9562 * common/print-utils.h: Rename include guard.
9563 * common/preprocessor.h: Rename include guard.
9564 * common/pathstuff.h: Rename include guard.
9565 * common/observable.h: Rename include guard.
9566 * common/netstuff.h: Rename include guard.
9567 * common/job-control.h: Rename include guard.
9568 * common/host-defs.h: Rename include guard.
9569 * common/gdb_wait.h: Rename include guard.
9570 * common/gdb_vecs.h: Rename include guard.
9571 * common/gdb_unlinker.h: Rename include guard.
9572 * common/gdb_unique_ptr.h: Rename include guard.
9573 * common/gdb_tilde_expand.h: Rename include guard.
9574 * common/gdb_sys_time.h: Rename include guard.
9575 * common/gdb_string_view.h: Rename include guard.
9576 * common/gdb_splay_tree.h: Rename include guard.
9577 * common/gdb_setjmp.h: Rename include guard.
9578 * common/gdb_ref_ptr.h: Rename include guard.
9579 * common/gdb_optional.h: Rename include guard.
9580 * common/gdb_locale.h: Rename include guard.
9581 * common/gdb_assert.h: Rename include guard.
9582 * common/filtered-iterator.h: Rename include guard.
9583 * common/filestuff.h: Rename include guard.
9584 * common/fileio.h: Rename include guard.
9585 * common/environ.h: Rename include guard.
9586 * common/common-utils.h: Rename include guard.
9587 * common/common-types.h: Rename include guard.
9588 * common/common-regcache.h: Rename include guard.
9589 * common/common-inferior.h: Rename include guard.
9590 * common/common-gdbthread.h: Rename include guard.
9591 * common/common-exceptions.h: Rename include guard.
9592 * common/common-defs.h: Rename include guard.
9593 * common/common-debug.h: Rename include guard.
9594 * common/cleanups.h: Rename include guard.
9595 * common/buffer.h: Rename include guard.
9596 * common/btrace-common.h: Rename include guard.
9597 * common/break-common.h: Rename include guard.
9598 * cli/cli-utils.h: Rename include guard.
9599 * cli/cli-style.h: Rename include guard.
9600 * cli/cli-setshow.h: Rename include guard.
9601 * cli/cli-script.h: Rename include guard.
9602 * cli/cli-interp.h: Rename include guard.
9603 * cli/cli-decode.h: Rename include guard.
9604 * cli/cli-cmds.h: Rename include guard.
9605 * charset-list.h: Add include guard.
9606 * buildsym-legacy.h: Rename include guard.
9607 * bfin-tdep.h: Add include guard.
9608 * ax.h: Rename include guard.
9609 * arm-linux-tdep.h: Add include guard.
9610 * arm-fbsd-tdep.h: Add include guard.
9611 * arch/xtensa.h: Rename include guard.
9612 * arch/tic6x.h: Add include guard.
9613 * arch/i386.h: Add include guard.
9614 * arch/arm.h: Rename include guard.
9615 * arch/arm-linux.h: Rename include guard.
9616 * arch/arm-get-next-pcs.h: Rename include guard.
9617 * arch/amd64.h: Add include guard.
9618 * arch/aarch64-insn.h: Rename include guard.
9619 * arch-utils.h: Rename include guard.
9620 * annotate.h: Add include guard.
9621 * amd64-darwin-tdep.h: Rename include guard.
9622 * aarch64-linux-tdep.h: Add include guard.
9623 * aarch64-fbsd-tdep.h: Add include guard.
9624 * aarch32-linux-nat.h: Add include guard.
9625
ab9268d2
PW
96262019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9627
9628 * macrotab.c (macro_define_internal): New function that
9629 factorizes macro_define_object_internal and macro_define_function
9630 code.
9631 (macro_define_object_internal): Use macro_define_internal.
9632 (macro_define_function): Likewise.
9633
bb0da2b4
PW
96342019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9635
9636 * macrocmd.c (extract_identifier): Return
9637 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9638 callers.
9639
424eb552
JB
96402019-02-06 John Baldwin <jhb@FreeBSD.org>
9641
9642 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9643
1688cb29
TT
96442019-02-05 Tom Tromey <tom@tromey.com>
9645
9646 * target.c (target_stack::unpush): Move assertion earlier.
9647
b5eba2d8
TT
96482019-01-30 Tom Tromey <tom@tromey.com>
9649
9650 PR python/23615:
9651 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9652 (gdbpy_parse_and_eval): Likewise.
9653 * python/python-internal.h (gdbpy_allow_threads): New class.
9654
7054e2ff
JB
96552019-01-28 John Baldwin <jhb@FreeBSD.org>
9656
9657 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9658 (aarch64_fbsd_fpregmap): Move earlier.
9659 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9660 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9661 instead of individual calls to trad_frame_set_reg_addr.
9662 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9663 earlier.
9664 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9665 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9666 instead of individual calls to trad_frame_set_reg_addr.
9667
36c25ffa
AH
96682019-01-28 Alan Hayward <alan.hayward@arm.com>
9669
9670 * CONTRIBUTE: Replace contribution list with wiki link.
9671
a0707f3c
TT
96722019-01-25 Tom Tromey <tom@tromey.com>
9673
9674 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9675
0747795c
TT
96762019-01-25 Tom Tromey <tom@tromey.com>
9677
9678 * xtensa-linux-nat.c: Fix common/ includes.
9679 * xml-support.h: Fix common/ includes.
9680 * xml-support.c: Fix common/ includes.
9681 * x86-linux-nat.c: Fix common/ includes.
9682 * windows-nat.c: Fix common/ includes.
9683 * varobj.h: Fix common/ includes.
9684 * varobj.c: Fix common/ includes.
9685 * value.c: Fix common/ includes.
9686 * valops.c: Fix common/ includes.
9687 * utils.c: Fix common/ includes.
9688 * unittests/xml-utils-selftests.c: Fix common/ includes.
9689 * unittests/utils-selftests.c: Fix common/ includes.
9690 * unittests/unpack-selftests.c: Fix common/ includes.
9691 * unittests/tracepoint-selftests.c: Fix common/ includes.
9692 * unittests/style-selftests.c: Fix common/ includes.
9693 * unittests/string_view-selftests.c: Fix common/ includes.
9694 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9695 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9696 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9697 * unittests/rsp-low-selftests.c: Fix common/ includes.
9698 * unittests/parse-connection-spec-selftests.c: Fix common/
9699 includes.
9700 * unittests/optional-selftests.c: Fix common/ includes.
9701 * unittests/offset-type-selftests.c: Fix common/ includes.
9702 * unittests/observable-selftests.c: Fix common/ includes.
9703 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9704 * unittests/memrange-selftests.c: Fix common/ includes.
9705 * unittests/memory-map-selftests.c: Fix common/ includes.
9706 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9707 * unittests/function-view-selftests.c: Fix common/ includes.
9708 * unittests/environ-selftests.c: Fix common/ includes.
9709 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9710 * unittests/common-utils-selftests.c: Fix common/ includes.
9711 * unittests/cli-utils-selftests.c: Fix common/ includes.
9712 * unittests/array-view-selftests.c: Fix common/ includes.
9713 * ui-file.c: Fix common/ includes.
9714 * tui/tui-io.c: Fix common/ includes.
9715 * tracepoint.h: Fix common/ includes.
9716 * tracepoint.c: Fix common/ includes.
9717 * tracefile-tfile.c: Fix common/ includes.
9718 * top.h: Fix common/ includes.
9719 * top.c: Fix common/ includes.
9720 * thread.c: Fix common/ includes.
9721 * target/waitstatus.h: Fix common/ includes.
9722 * target/waitstatus.c: Fix common/ includes.
9723 * target.h: Fix common/ includes.
9724 * target.c: Fix common/ includes.
9725 * target-memory.c: Fix common/ includes.
9726 * target-descriptions.c: Fix common/ includes.
9727 * symtab.h: Fix common/ includes.
9728 * symfile.c: Fix common/ includes.
9729 * stap-probe.c: Fix common/ includes.
9730 * spu-linux-nat.c: Fix common/ includes.
9731 * sparc-nat.c: Fix common/ includes.
9732 * source.c: Fix common/ includes.
9733 * solib.c: Fix common/ includes.
9734 * solib-target.c: Fix common/ includes.
9735 * ser-unix.c: Fix common/ includes.
9736 * ser-tcp.c: Fix common/ includes.
9737 * ser-pipe.c: Fix common/ includes.
9738 * ser-base.c: Fix common/ includes.
9739 * selftest-arch.c: Fix common/ includes.
9740 * s12z-tdep.c: Fix common/ includes.
9741 * rust-exp.y: Fix common/ includes.
9742 * rs6000-aix-tdep.c: Fix common/ includes.
9743 * riscv-tdep.c: Fix common/ includes.
9744 * remote.c: Fix common/ includes.
9745 * remote-notif.h: Fix common/ includes.
9746 * remote-fileio.h: Fix common/ includes.
9747 * remote-fileio.c: Fix common/ includes.
9748 * regcache.h: Fix common/ includes.
9749 * regcache.c: Fix common/ includes.
9750 * record-btrace.c: Fix common/ includes.
9751 * python/python.c: Fix common/ includes.
9752 * python/py-type.c: Fix common/ includes.
9753 * python/py-inferior.c: Fix common/ includes.
9754 * progspace.h: Fix common/ includes.
9755 * producer.c: Fix common/ includes.
9756 * procfs.c: Fix common/ includes.
9757 * proc-api.c: Fix common/ includes.
9758 * printcmd.c: Fix common/ includes.
9759 * ppc-linux-nat.c: Fix common/ includes.
9760 * parser-defs.h: Fix common/ includes.
9761 * osdata.c: Fix common/ includes.
9762 * obsd-nat.c: Fix common/ includes.
9763 * nat/x86-linux.c: Fix common/ includes.
9764 * nat/x86-linux-dregs.c: Fix common/ includes.
9765 * nat/x86-dregs.h: Fix common/ includes.
9766 * nat/x86-dregs.c: Fix common/ includes.
9767 * nat/ppc-linux.c: Fix common/ includes.
9768 * nat/mips-linux-watch.h: Fix common/ includes.
9769 * nat/mips-linux-watch.c: Fix common/ includes.
9770 * nat/linux-waitpid.c: Fix common/ includes.
9771 * nat/linux-ptrace.h: Fix common/ includes.
9772 * nat/linux-ptrace.c: Fix common/ includes.
9773 * nat/linux-procfs.c: Fix common/ includes.
9774 * nat/linux-personality.c: Fix common/ includes.
9775 * nat/linux-osdata.c: Fix common/ includes.
9776 * nat/linux-namespaces.c: Fix common/ includes.
9777 * nat/linux-btrace.h: Fix common/ includes.
9778 * nat/linux-btrace.c: Fix common/ includes.
9779 * nat/fork-inferior.c: Fix common/ includes.
9780 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9781 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9782 * nat/aarch64-linux.c: Fix common/ includes.
9783 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9784 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9785 * namespace.h: Fix common/ includes.
9786 * mips-linux-tdep.c: Fix common/ includes.
9787 * minsyms.c: Fix common/ includes.
9788 * mi/mi-parse.h: Fix common/ includes.
9789 * mi/mi-main.c: Fix common/ includes.
9790 * mi/mi-cmd-env.c: Fix common/ includes.
9791 * memrange.h: Fix common/ includes.
9792 * memattr.c: Fix common/ includes.
9793 * maint.h: Fix common/ includes.
9794 * maint.c: Fix common/ includes.
9795 * main.c: Fix common/ includes.
9796 * machoread.c: Fix common/ includes.
9797 * location.c: Fix common/ includes.
9798 * linux-thread-db.c: Fix common/ includes.
9799 * linux-nat.c: Fix common/ includes.
9800 * linux-fork.c: Fix common/ includes.
9801 * inline-frame.c: Fix common/ includes.
9802 * infrun.c: Fix common/ includes.
9803 * inflow.c: Fix common/ includes.
9804 * inferior.h: Fix common/ includes.
9805 * inferior.c: Fix common/ includes.
9806 * infcmd.c: Fix common/ includes.
9807 * inf-ptrace.c: Fix common/ includes.
9808 * inf-child.c: Fix common/ includes.
9809 * ia64-linux-nat.c: Fix common/ includes.
9810 * i387-tdep.c: Fix common/ includes.
9811 * i386-tdep.c: Fix common/ includes.
9812 * i386-linux-tdep.c: Fix common/ includes.
9813 * i386-linux-nat.c: Fix common/ includes.
9814 * i386-go32-tdep.c: Fix common/ includes.
9815 * i386-fbsd-tdep.c: Fix common/ includes.
9816 * i386-fbsd-nat.c: Fix common/ includes.
9817 * guile/scm-type.c: Fix common/ includes.
9818 * guile/guile.c: Fix common/ includes.
9819 * go32-nat.c: Fix common/ includes.
9820 * gnu-nat.c: Fix common/ includes.
9821 * gdbthread.h: Fix common/ includes.
9822 * gdbarch-selftests.c: Fix common/ includes.
9823 * gdb_usleep.c: Fix common/ includes.
9824 * gdb_select.h: Fix common/ includes.
9825 * gdb_bfd.c: Fix common/ includes.
9826 * gcore.c: Fix common/ includes.
9827 * fork-child.c: Fix common/ includes.
9828 * findvar.c: Fix common/ includes.
9829 * fbsd-nat.c: Fix common/ includes.
9830 * event-top.c: Fix common/ includes.
9831 * event-loop.c: Fix common/ includes.
9832 * dwarf2read.c: Fix common/ includes.
9833 * dwarf2loc.c: Fix common/ includes.
9834 * dwarf2-frame.c: Fix common/ includes.
9835 * dwarf-index-cache.c: Fix common/ includes.
9836 * dtrace-probe.c: Fix common/ includes.
9837 * disasm-selftests.c: Fix common/ includes.
9838 * defs.h: Fix common/ includes.
9839 * csky-tdep.c: Fix common/ includes.
9840 * cp-valprint.c: Fix common/ includes.
9841 * cp-support.h: Fix common/ includes.
9842 * cp-support.c: Fix common/ includes.
9843 * corelow.c: Fix common/ includes.
9844 * completer.h: Fix common/ includes.
9845 * completer.c: Fix common/ includes.
9846 * compile/compile.c: Fix common/ includes.
9847 * compile/compile-loc2c.c: Fix common/ includes.
9848 * compile/compile-cplus-types.c: Fix common/ includes.
9849 * compile/compile-cplus-symbols.c: Fix common/ includes.
9850 * command.h: Fix common/ includes.
9851 * cli/cli-dump.c: Fix common/ includes.
9852 * cli/cli-cmds.c: Fix common/ includes.
9853 * charset.c: Fix common/ includes.
9854 * build-id.c: Fix common/ includes.
9855 * btrace.h: Fix common/ includes.
9856 * btrace.c: Fix common/ includes.
9857 * breakpoint.h: Fix common/ includes.
9858 * breakpoint.c: Fix common/ includes.
9859 * ax.h:
9860 (enum agent_op): Fix common/ includes.
9861 * ax-general.c (struct aop_map): Fix common/ includes.
9862 * ax-gdb.c: Fix common/ includes.
9863 * auxv.c: Fix common/ includes.
9864 * auto-load.c: Fix common/ includes.
9865 * arm-tdep.c: Fix common/ includes.
9866 * arch/riscv.c: Fix common/ includes.
9867 * arch/ppc-linux-common.c: Fix common/ includes.
9868 * arch/i386.c: Fix common/ includes.
9869 * arch/arm.c: Fix common/ includes.
9870 * arch/arm-linux.c: Fix common/ includes.
9871 * arch/arm-get-next-pcs.c: Fix common/ includes.
9872 * arch/amd64.c: Fix common/ includes.
9873 * arch/aarch64.c: Fix common/ includes.
9874 * arch/aarch64-insn.c: Fix common/ includes.
9875 * arch-utils.c: Fix common/ includes.
9876 * amd64-windows-tdep.c: Fix common/ includes.
9877 * amd64-tdep.c: Fix common/ includes.
9878 * amd64-sol2-tdep.c: Fix common/ includes.
9879 * amd64-obsd-tdep.c: Fix common/ includes.
9880 * amd64-nbsd-tdep.c: Fix common/ includes.
9881 * amd64-linux-tdep.c: Fix common/ includes.
9882 * amd64-linux-nat.c: Fix common/ includes.
9883 * amd64-fbsd-tdep.c: Fix common/ includes.
9884 * amd64-fbsd-nat.c: Fix common/ includes.
9885 * amd64-dicos-tdep.c: Fix common/ includes.
9886 * amd64-darwin-tdep.c: Fix common/ includes.
9887 * agent.c: Fix common/ includes.
9888 * ada-lang.h: Fix common/ includes.
9889 * ada-lang.c: Fix common/ includes.
9890 * aarch64-tdep.c: Fix common/ includes.
9891
2f5c153e
TT
98922019-01-25 Tom Tromey <tom@tromey.com>
9893
9894 * common/create-version.sh: Use common/version.h.
9895
adc6a863
PA
98962019-01-24 Pedro Alves <palves@redhat.com>
9897
9898 * infrun.c (signal_stop, signal_print, signal_program)
9899 (signal_catch, signal_pass): Now arrays instead of pointers.
9900 (update_signals_program_target, do_target_resume)
9901 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9902 * linux-nat.c (linux_nat_target::pass_signals)
9903 (linux_nat_target::create_inferior, linux_nat_target::attach):
9904 Adjust.
9905 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9906 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9907 * procfs.c (procfs_target::pass_signals): Adjust.
9908 * record-full.c (record_full_target::resume): Adjust.
9909 * remote.c (remote_target::pass_signals)
9910 (remote_target::program_signals): Adjust.
9911 * target-debug.h (target_debug_print_signals): Now takes a
9912 gdb::array_view as parameter. Adjust.
9913 * target.h (target_ops) <pass_signals, program_signals>: Replace
9914 pointer and length parameters with gdb::array_view.
9915 (target_pass_signals, target_program_signals): Likewise.
9916 * target-delegates.c: Regenerate.
9917
3046d67a
PA
99182019-01-24 Pedro Alves <palves@redhat.com>
9919
9920 * common/forward-scope-exit.h
9921 (forward_scope_exit::forward_scope_exit): Pass arguments to
9922 m_bind_function directly, instead of creating a std::bind and
9923 copying that.
9924
353229bf
AH
99252019-01-24 Alan Hayward <alan.hayward@arm.com>
9926
9927 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9928 for static members.
9929 (pass_in_v_vfp_candidate): Likewise.
9930
311dc83a
TT
99312019-01-23 Tom Tromey <tom@tromey.com>
9932 Pedro Alves <palves@redhat.com>
9933
9934 * regcache.c (class regcache_invalidator): Remove.
9935 (regcache::raw_write): Use make_scope_exit.
9936
296bd123
TT
99372019-01-23 Tom Tromey <tom@tromey.com>
9938
9939 * ui-out.h (class ui_out_emit_type): Update comment.
9940
979a0d13
TT
99412019-01-23 Tom Tromey <tom@tromey.com>
9942
9943 * infrun.c (fetch_inferior_event): Update comment.
9944
d238133d
TT
99452019-01-23 Tom Tromey <tom@tromey.com>
9946 Pedro Alves <palves@redhat.com>
9947
9948 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9949 parameter.
9950 (fetch_inferior_event): Use SCOPE_EXIT.
9951
9952
9885e6bb
TT
99532019-01-23 Tom Tromey <tom@tromey.com>
9954 Pedro Alves <palves@redhat.com>
9955
9956 * infrun.c (disable_thread_events): Delete.
9957 (stop_all_threads): Use SCOPE_EXIT.
9958
286526c1
TT
99592019-01-23 Tom Tromey <tom@tromey.com>
9960 Pedro Alves <palves@redhat.com>
9961
9962 * symfile.c: Include forward-scope-exit.h.
9963 (clear_symtab_users_cleanup): Replace forward declaration with
9964 a FORWARD_SCOPE_EXIT.
9965 (syms_from_objfile_1): Use the forward_scope_exit and
9966 gdb::optional instead of cleanup_function.
9967 (reread_symbols): Use the forward_scope_exit instead of
9968 cleanup_function.
9969 (clear_symtab_users_cleanup): Remove function.
9970
1db93f14
TT
99712019-01-23 Tom Tromey <tom@tromey.com>
9972 Pedro Alves <palves@redhat.com>
9973
9974 * linux-nat.c: Include scope-exit.h.
9975 (cleanup_target_stop): Remove.
9976 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9977 SCOPE_EXIT.
9978
2cc83d1e
TT
99792019-01-23 Tom Tromey <tom@tromey.com>
9980 Pedro Alves <palves@redhat.com>
9981
9982 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9983 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9984
694c6bf5
TT
99852019-01-23 Tom Tromey <tom@tromey.com>
9986 Andrew Burgess <andrew.burgess@embecosm.com>
9987 Pedro Alves <palves@redhat.com>
9988
9989 * infrun.c (fetch_inferior_event): Use scope_exit.
9990 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9991 * top.c (execute_command): Use scope_exit.
9992 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9993 * utils.c (do_bpstat_clear_actions_cleanup)
9994 (make_bpstat_clear_actions_cleanup): Remove.
9995
4c41382a
TT
99962019-01-23 Tom Tromey <tom@tromey.com>
9997 Pedro Alves <palves@redhat.com>
9998
9999 * infrun.c: Include "common/scope-exit.h"
10000 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10001 (wait_for_inferior): Use SCOPE_EXIT.
10002 (fetch_inferior_event): Use scope_exit.
10003
89f8fb50
TT
100042019-01-23 Tom Tromey <tom@tromey.com>
10005 Pedro Alves <palves@redhat.com>
10006
10007 * breakpoint.c (create_breakpoint): Remove cleanup.
10008
5419bdae
TT
100092019-01-23 Tom Tromey <tom@tromey.com>
10010 Andrew Burgess <andrew.burgess@embecosm.com>
10011 Pedro Alves <palves@redhat.com>
10012
e587ef42
PA
100132019-01-23 Pedro Alves <palves@redhat.com>
10014
10015 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10016
77f0e74c
PA
100172019-01-23 Pedro Alves <palves@redhat.com>
10018 Andrew Burgess <andrew.burgess@embecosm.com>
10019
10020 * gdbthread.h: Include "common/forward-scope-exit.h".
10021 (scoped_finish_thread_state): Redefine custom class in terms of
10022 forward_scope_exit.
10023
5b9b3e53
PA
100242019-01-23 Pedro Alves <palves@redhat.com>
10025 Andrew Burgess <andrew.burgess@embecosm.com>
10026
10027 * common/forward-scope-exit.h: New file.
10028
54b65c9b
PA
100292019-01-23 Pedro Alves <palves@redhat.com>
10030 Andrew Burgess <andrew.burgess@embecosm.com>
10031 Tom Tromey <tom@tromey.com>
10032
10033 * common/scope-exit.h: New file.
10034
cf08fb29
PA
100352019-01-23 Pedro Alves <palves@redhat.com>
10036
10037 * common/preprocessor.h (ESC): Rename to ...
10038 (ESC_PARENS): ... this.
10039 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10040 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10041
ae73e2e2
TT
100422019-01-23 Tom Tromey <tom@tromey.com>
10043
10044 * language.h (class scoped_switch_to_sym_language_if_auto):
10045 Initialize m_lang in both cases.
10046
6594e122
AH
100472019-01-23 Alan Hayward <alan.hayward@arm.com>
10048
10049 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10050 with XCNEW.
10051
a7c9855d
TT
100522019-01-22 Tom Tromey <tom@tromey.com>
10053
10054 * corelow.c: Do not include sys/file.h.
10055
93cc1d53
TT
100562019-01-22 Tom Tromey <tom@tromey.com>
10057
10058 * tui/tui-wingeneral.h: Include gdb_curses.h.
10059
38561778
TT
100602019-01-22 Tom Tromey <tom@tromey.com>
10061
10062 * source-cache.h (class source_cache) <get_source_lines,
10063 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10064
37b3ab5b
TT
100652019-01-22 Tom Tromey <tom@tromey.com>
10066
10067 * remote-fileio.h (struct remote_target): Declare.
10068
3fabc016
TT
100692019-01-22 Tom Tromey <tom@tromey.com>
10070
10071 * python/py-arch.c: Do not include py-ref.h.
10072 * python/py-bpevent.c: Do not include py-ref.h.
10073 * python/py-cmd.c: Do not include py-ref.h.
10074 * python/py-continueevent.c: Do not include py-ref.h.
10075 * python/py-event.h: Do not include py-ref.h.
10076 * python/py-evtregistry.c: Do not include py-ref.h.
10077 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10078 * python/py-frame.c: Do not include py-ref.h.
10079 * python/py-framefilter.c: Do not include py-ref.h.
10080 * python/py-function.c: Do not include py-ref.h.
10081 * python/py-infevents.c: Do not include py-ref.h.
10082 * python/py-linetable.c: Do not include py-ref.h.
10083 * python/py-objfile.c: Do not include py-ref.h.
10084 * python/py-param.c: Do not include py-ref.h.
10085 * python/py-prettyprint.c: Do not include py-ref.h.
10086 * python/py-progspace.c: Do not include py-ref.h.
10087 * python/py-symbol.c: Do not include py-ref.h.
10088 * python/py-symtab.c: Do not include py-ref.h.
10089 * python/py-type.c: Do not include py-ref.h.
10090 * python/py-unwind.c: Do not include py-ref.h.
10091 * python/py-utils.c: Do not include py-ref.h.
10092 * python/py-value.c: Do not include py-ref.h.
10093 * python/py-varobj.c: Do not include py-ref.h.
10094 * python/py-xmethods.c: Do not include py-ref.h.
10095 * python/python.c: Do not include py-ref.h.
10096 * varobj.c: Do not include py-ref.h.
10097
6b4d7774
TT
100982019-01-22 Tom Tromey <tom@tromey.com>
10099
10100 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10101 keyword for bcache.
10102
7af7e9b5
TT
101032019-01-22 Tom Tromey <tom@tromey.com>
10104
10105 * compile/compile-cplus-types.c: Remove a comment by #include.
10106
951d1049
TT
101072019-01-22 Tom Tromey <tom@tromey.com>
10108
10109 * compile/gcc-c-plugin.h: Include compile-internal.h.
10110
d65d5705
TT
101112019-01-22 Tom Tromey <tom@tromey.com>
10112
10113 * stabsread.c (EXTERN): Do not define.
10114 (symnum, next_symbol_text_func, processing_gcc_compilation)
10115 (within_function, global_sym_chain, global_stabs)
10116 (previous_stab_code, this_object_header_files)
10117 (n_this_object_header_files)
10118 (n_allocated_this_object_header_files): Define.
10119 * stabsread.h (EXTERN): Never define. Use "extern".
10120
b6fb1ee5
PW
101212019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10122
10123 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10124 history_value.
10125
be6d4f74
TT
101262019-01-21 Tom Tromey <tom@tromey.com>
10127
10128 * ui-out.c: Fix includes.
10129 * tui/tui-source.c: Fix includes.
10130 * target.c: Fix includes.
10131 * remote.c: Fix includes.
10132 * regcache.c: Fix includes.
10133 * python/py-block.c: Fix includes.
10134 * printcmd.c: Fix includes.
10135 * or1k-tdep.c: Fix includes.
10136 * mi/mi-main.c: Fix includes.
10137 * m32r-tdep.c: Fix includes.
10138 * csky-tdep.c: Fix includes.
10139 * compile/compile-cplus-types.c: Fix includes.
10140 * cli/cli-interp.c: Fix includes.
10141
73021deb
AH
101422019-01-21 Alan Hayward <alan.hayward@arm.com>
10143
10144 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10145 for padding.
10146
7932255d
TT
101472019-01-16 Tom Tromey <tom@tromey.com>
10148
10149 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10150 earlier.
10151 (struct objfile) <msymbols_range>: Move from top level.
10152 <msymbols>: New method.
10153 (class objfile_msymbols): Remove.
10154 * symtab.c (default_collect_symbol_completion_matches_break_on):
10155 Update.
10156 * symmisc.c (dump_msymbols): Update.
10157 * stabsread.c (scan_file_globals): Update.
10158 * objc-lang.c (info_selectors_command, info_classes_command)
10159 (find_methods): Update.
10160 * minsyms.c (find_solib_trampoline_target): Update.
10161 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10162 * coffread.c (coff_symfile_read): Update.
10163 * ada-lang.c (ada_lookup_simple_minsym)
10164 (ada_collect_symbol_completion_matches): Update.
10165
604b1bfb
TT
101662019-01-16 Tom Tromey <tom@tromey.com>
10167
10168 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10169 type. Remove no-argument constructor.
10170 <iterator::operator++>: Simplify.
10171 <begin>: Update.
10172 <end>: Use minimal_symbol_count.
10173
f252c6d5
TT
101742019-01-16 Tom Tromey <tom@tromey.com>
10175
10176 * objfiles.h (struct objfile) <psymtabs>: New method.
10177 (class objfile_psymtabs): Remove.
10178 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10179 typedef.
10180 <range>: New method.
10181 (require_partial_symbols): Change return type.
10182 * psymtab.c (require_partial_symbols)
10183 (psym_expand_symtabs_matching): Update.
10184 * mdebugread.c (parse_partial_symbols): Update.
10185 * dbxread.c (dbx_end_psymtab): Update.
10186
b669c953
TT
101872019-01-15 Tom Tromey <tom@tromey.com>
10188
10189 * symtab.c (lookup_objfile_from_block)
10190 (lookup_symbol_in_objfile_symtabs)
10191 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10192 (find_line_symtab, info_sources_command)
10193 (default_collect_symbol_completion_matches_break_on)
10194 (make_source_files_completion_list): Update.
10195 * symmisc.c (print_objfile_statistics, dump_objfile)
10196 (maintenance_print_symbols, maintenance_info_symtabs)
10197 (maintenance_check_symtabs, maintenance_info_line_tables):
10198 Update.
10199 * source.c (select_source_symtab)
10200 (forget_cached_source_info_for_objfile): Update.
10201 * objfiles.h (class objfile_compunits): Remove.
10202 (struct objfile) <compunits_range>: New typedef.
10203 (compunits): New method.
10204 * objfiles.c (objfile_relocate1): Update.
10205 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10206 * maint.c (count_symtabs_and_blocks): Update.
10207 * linespec.c (iterate_over_all_matching_symtabs): Update.
10208 * cp-support.c (add_symbol_overload_list_qualified): Update.
10209 * coffread.c (coff_symtab_read): Update.
10210 * ada-lang.c (add_nonlocal_symbols)
10211 (ada_collect_symbol_completion_matches)
10212 (ada_add_global_exceptions): Update.
10213
7e955d83
TT
102142019-01-15 Tom Tromey <tom@tromey.com>
10215
10216 * progspace.h (program_space) <objfiles_safe_range>: New
10217 typedef.
10218 <objfiles_safe>: New method.
10219 * objfiles.h (class all_objfiles_safe): Remove.
10220 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10221 * jit.c (jit_inferior_exit_hook): Update.
10222
2030c079
TT
102232019-01-17 Tom Tromey <tom@tromey.com>
10224
10225 * progspace.h (program_space) <objfiles_range>: New typedef.
10226 <objfiles>: New method.
10227 <objfiles_head>: Rename from objfiles.
10228 (object_files): Update.
10229 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10230 * guile/scm-pretty-print.c
10231 (ppscm_find_pretty_printer_from_objfiles): Update.
10232 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10233 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10234 Update.
10235 * python/py-progspace.c (pspy_get_objfiles): Update.
10236 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10237 Update.
10238 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10239 (objfpy_lookup_objfile_by_build_id): Update.
10240 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10241 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10242 Update.
10243 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10244 (expand_symtab_containing_pc, lookup_objfile_from_block)
10245 (lookup_static_symbol, basic_lookup_transparent_type)
10246 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10247 (find_line_symtab, info_sources_command)
10248 (default_collect_symbol_completion_matches_break_on)
10249 (make_source_files_completion_list, find_main_name): Update.
10250 * symmisc.c (print_symbol_bcache_statistics)
10251 (print_objfile_statistics, maintenance_print_symbols)
10252 (maintenance_print_msymbols, maintenance_print_objfiles)
10253 (maintenance_info_symtabs, maintenance_check_symtabs)
10254 (maintenance_expand_symtabs, maintenance_info_line_tables):
10255 Update.
10256 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10257 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10258 (map_overlay_command, unmap_overlay_command)
10259 (simple_overlay_update, expand_symtabs_matching)
10260 (map_symbol_filenames): Update.
10261 * symfile-debug.c (set_debug_symfile): Update.
10262 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10263 Update.
10264 * source.c (select_source_symtab, forget_cached_source_info):
10265 Update.
10266 * solib.c (solib_read_symbols): Update.
10267 * solib-spu.c (append_ocl_sos): Update.
10268 * psymtab.c (maintenance_print_psymbols)
10269 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10270 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10271 * printcmd.c (info_symbol_command): Update.
10272 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10273 Update.
10274 * objfiles.h (class all_objfiles): Remove.
10275 * objfiles.c (have_partial_symbols, have_full_symbols)
10276 (have_minimal_symbols, qsort_cmp, update_section_map)
10277 (shared_objfile_contains_address_p)
10278 (default_iterate_over_objfiles_in_search_order): Update.
10279 * objc-lang.c (info_selectors_command, info_classes_command)
10280 (find_methods): Update.
10281 * minsyms.c (find_solib_trampoline_target): Update.
10282 * maint.c (maintenance_info_sections)
10283 (maintenance_translate_address, count_symtabs_and_blocks):
10284 Update.
10285 * main.c (captured_main_1): Update.
10286 * linux-thread-db.c (try_thread_db_load_from_pdir)
10287 (has_libpthread): Update.
10288 * linespec.c (iterate_over_all_matching_symtabs)
10289 (search_minsyms_for_name): Update.
10290 * jit.c (jit_find_objf_with_entry_addr): Update.
10291 * hppa-tdep.c (find_unwind_entry)
10292 (hppa_lookup_stub_minimal_symbol): Update.
10293 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10294 Update.
10295 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10296 (elf_gnu_ifunc_resolve_by_got): Update.
10297 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10298 * dwarf-index-write.c (save_gdb_index_command): Update.
10299 * cp-support.c (add_symbol_overload_list_qualified): Update.
10300 * breakpoint.c (create_overlay_event_breakpoint)
10301 (create_longjmp_master_breakpoint)
10302 (create_std_terminate_master_breakpoint)
10303 (create_exception_master_breakpoint): Update.
10304 * blockframe.c (find_pc_partial_function): Update.
10305 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10306 (ada_collect_symbol_completion_matches)
10307 (ada_add_global_exceptions): Update.
10308
776489e0
TT
103092019-01-17 Tom Tromey <tom@tromey.com>
10310
10311 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10312 declare VEC.
10313 (solib_target_parse_libraries): Change return type.
10314 (library_list_start_segment, library_list_start_section)
10315 (library_list_end_library, library_list_start_library); Update.
10316 (solib_target_free_library_list): Remove.
10317 (solib_target_parse_libraries): Remove cleanup. Change return
10318 type.
10319 (solib_target_current_sos): Update.
10320
6471e7d2
TT
103212019-01-17 Tom Tromey <tromey@bapiya>
10322
10323 * valprint.c: Replace "the the" with "the".
10324 * symtab.c: Replace "the the" with "the".
10325 * solib.c: Replace "the the" with "the".
10326 * solib-dsbt.c: Replace "the the" with "the".
10327 * linespec.c: Replace "the the" with "the".
10328 * dwarf2loc.h: Replace "the the" with "the".
10329 * amd64-windows-tdep.c: Replace "the the" with "the".
10330 * aarch64-tdep.c: Replace "the the" with "the".
10331
c24bdb02
KS
103322019-01-16 Keith Seitz <keiths@redhat.com>
10333
10334 PR gdb/23773
10335 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10336 <builder>: Rename to ..
10337 <m_builder>: ... this and make private.
10338 (dwarf2_cu::get_builder): New method. Change all users of
10339 `builder' to use this method.
10340 (dwarf2_start_symtab): Move to ...
10341 (dwarf2_cu::start_symtab): ... here. Update all callers
10342 (setup_type_unit_groups): Move to ...
10343 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10344 callers.
10345 (dwarf2_cu::reset_builder): New method.
10346 (process_full_compunit, process_full_type_unit): Use
10347 dwarf2_cu::reset_builder.
10348 (follow_die_offset): Record the ancestor CU if it is different
10349 from the followed DIE's CU.
10350 (follow_die_sig_1): Likewise.
10351
8d64371b
TT
103522019-01-15 Tom Tromey <tom@tromey.com>
10353
10354 * remote.c (class remote_state) <buf>: Now a char_vector.
10355 <buf_size>: Remove.
10356 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10357 parameter.
10358 (remote_target::getpkt_or_notif_sane_1)
10359 (remote_target::getpkt_sane)
10360 (remote_target::getpkt_or_notif_sane): Likewise.
10361 (class remote_target) <putpkt>: New overload.
10362 (remote_target::read_frame): Change type of "buf_p". Remove
10363 sizeof_p parameter.
10364 (packet_ok): New overload.
10365 (packet_check_result): New overload.
10366 Update all uses.
10367
bb277751
TT
103682019-01-14 Tom Tromey <tom@tromey.com>
10369
10370 * remote-notif.c (handle_notification, remote_notif_ack)
10371 (remote_notif_parse): Make "buf" const.
10372 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10373 const.
10374 (remote_notif_parse, remote_notif_ack, handle_notification):
10375 Likewise.
10376 * remote.c (remote_notif_stop_parse): Make "buf" const.
10377 (remote_target::remote_parse_stop_reply): Make "buf" const.
10378 (remote_notif_stop_ack): Make "buf" const.
10379
05be00a8
TT
103802019-01-14 Tom Tromey <tom@tromey.com>
10381
10382 * remote.c (remote_console_output): Make parameter const.
10383
491adeca
TT
103842019-01-14 Tom Tromey <tom@tromey.com>
10385
10386 * target-debug.h (target_debug_print_signals): Constify.
10387 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10388 * procfs.c (procfs_target::pass_signals): Update.
10389 * linux-nat.c (linux_nat_target::pass_signals): Update.
10390 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10391 * target-delegates.c: Rebuild.
10392 * remote.c (remote_target::program_signals): Update.
10393 (remote_target::pass_signals): Update.
10394 * target.c (target_pass_signals): Constify argument.
10395 (target_program_signals): Likewise.
10396 * target.h (struct target_ops) <pass_signals, program_signals>:
10397 Constify argument.
10398 (target_pass_signals, target_program_signals): Constify argument.
10399
bbd94648
TT
104002019-01-14 Tom Tromey <tom@tromey.com>
10401
10402 PR tui/28819:
10403 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10404
6f072a10
PFC
104052019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10406
10407 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10408 field.
10409 * rs6000-tdep.c: Include reggroups.h.
10410 (IS_V_ALIAS_PSEUDOREG): Define.
10411 (rs6000_register_name): Return names for the "vX" aliases.
10412 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10413 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10414 aliases. Call default_register_reggroup_p for all other
10415 pseudo-registers.
10416 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10417 New functions.
10418 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10419 Handle "vX" aliases.
10420 (v_alias_pseudo_register_collect): New function.
10421 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10422 (rs6000_gdbarch_init): Initialize "vX" aliases as
10423 pseudo-registers. Restore registration of
10424 rs6000_pseudo_register_reggroup_p with
10425 set_tdesc_pseudo_register_reggroup_p.
10426
1a782351
MF
104272019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10428
10429 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10430 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10431 set_gdbarch_num_pseudo_regs.
10432
d73cff18
PW
104332019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10434
10435 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10436 Remove arg prefixname, add do_set and do_show.
10437 Add member functions set_list and show_list.
10438 * cli/cli-style.c (class cli_style_option): Update accordingly.
10439 (style_set_list): Move to file scope.
10440 (style_show_list): Likewise.
10441 (set_style): Call help_list.
10442 (show_style): Call cmd_show_list.
10443 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10444 Update to use the new macro.
10445
60a90376
JB
104462019-10-12 Joel Brobecker <brobecker@adacore.com>
10447
10448 * ada-lang.c (_initialize_ada_language): Expand the help text
10449 for the "catch exception" command.
10450
9d7c67bf
PW
104512019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10452
10453 * symtab.c (matching_obj_sections): Initialize obj,
10454 declare it closer to its usage.
10455
7cf47dc4
TT
104562019-01-10 Tom Tromey <tom@tromey.com>
10457
10458 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10459 (basic_inf_threads_range): Remove.
10460 (inf_threads_range, inf_non_exited_threads_range)
10461 (safe_inf_threads_range): Use next_adapter.
10462
d3cb6808
KS
104632019-01-10 Keith Seitz <keiths@redhat.com>
10464
10465 PR gdb/23712
10466 PR symtab/23010
10467 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10468 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10469
63a20375
KS
104702019-01-10 Keith Seitz <keiths@redhat.com>
10471
10472 PR gdb/23712
10473 PR symtab/23010
10474 * dictionary.c (pending_to_vector): Remove.
10475 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10476 Remove _1 suffix, replacing functions of the same name. Update
10477 all callers.
10478 (dict_create_hashed, dict_create_hashed_expandable)
10479 (dict_create_linear, dict_create_linear_expandable, dict_free)
10480 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10481 Make functions static.
10482
b026f593
KS
104832019-01-10 Keith Seitz <keiths@redhat.com>
10484
10485 PR gdb/23712
10486 PR symtab/23010
10487 * dictionary.h (struct dictionary): Replace declaration with
10488 multidictionary.
10489 (dict_create_hashed, dict_create_hashed_expandable)
10490 (dict_create_linear, dict_create_linear_expandable)
10491 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10492 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10493 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10494 taking multidictionary argument.
10495 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10496 * block.h (struct block) <dict>: Change to multidictionary
10497 and rename `multidict'.
10498 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10499 symmisc.c: Update all dictionary references to multidictionary.
10500
c7748ee9
KS
105012019-01-10 Keith Seitz <keiths@redhat.com>
10502
10503 PR gdb/23712
10504 PR symtab/23010
10505 * dictionary.c: Include unordered_map.
10506 (pending_to_vector): New function.
10507 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10508 Rewrite the non-"_1" functions to take vector instead
10509 of linked list.
10510 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10511 "new" _1 versions of the same name.
10512 (multidictionary): Define.
10513 (std::hash<enum language): New definition.
10514 (collate_pending_symbols_by_language, mdict_create_hashed)
10515 (mdict_create_hashed_expandable, mdict_create_linear)
10516 (mdict_create_linear_expandable, mdict_free)
10517 (find_language_dictionary, create_new_language_dictionary)
10518 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10519 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10520 (mdict_size, mdict_empty): New functions.
10521 * dictionary.h (mdict_iterator): Define.
10522
67aa1f3c
PA
105232019-01-10 Pedro Alves <palves@redhat.com>
10524
10525 * breakpoint.c (read_uploaded_action)
10526 (create_tracepoint_from_upload): Adjust to use
10527 gdb::unique_xmalloc_ptr.
10528 * ctf.c (ctf_write_uploaded_tp):
10529 (SET_ARRAY_FIELD): Use emplace_back.
10530 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10531 * tracefile-tfile.c (tfile_write_uploaded_tp):
10532 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10533 gdb::unique_xmalloc_ptr.
10534 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10535 at_string, cond_string, cmd_strings>: Replace char pointers
10536 with gdb::unique_xmalloc_ptr.
10537
2f667667
PA
105382019-01-10 Pedro Alves <palves@redhat.com>
10539
10540 * solib-target.c (library_list_start_library): Don't xstrdup name.
10541
36cb7237
PA
105422019-01-10 Pedro Alves <palves@redhat.com>
10543
10544 * mdebugread.c (parse_partial_symbols): Use
10545 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10546
da584958
AB
105472019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10548
10549 * linux-fork.c (scoped_switch_fork_info)
10550 <~scoped_switch_fork_info>: Fix incorrect variable name.
10551
1ef8573c
AB
105522019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10553
10554 * linux-fork.c (scoped_switch_fork_info)
10555 <scoped_switch_fork_info>: Make explicit.
10556 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10557
8d7bcccb
TT
105582019-01-10 Tom Tromey <tom@tromey.com>
10559
10560 * objfiles.h (objfile::reset_psymtabs): Update.
10561 * objfiles.c (objfile::objfile): Update.
10562 * psymtab.h (psymtab_storage::obstack): Update.
10563 (psymtab_storage::m_obstack): Use gdb::optional.
10564 (class psymtab_storage): Update comment. Remove objfile
10565 parameter.
10566 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10567
b596a3c7
TT
105682019-01-10 Tom Tromey <tom@tromey.com>
10569
10570 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10571 <free_psymtabs>: Now private.
10572 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10573 (allocate_psymtab): Use new method.
10574
a9342b62
TT
105752019-01-10 Tom Tromey <tom@tromey.com>
10576
10577 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10578 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10579 * mdebugread.c (parse_partial_symbols): Use
10580 allocate_dependencies.
10581 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10582 allocate_dependencies.
10583 (process_psymtab_comp_unit_reader)
10584 (build_type_psymtab_dependencies): Likewise.
10585 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10586
5af70966
TT
105872019-01-10 Tom Tromey <tom@tromey.com>
10588
10589 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10590 PSYMBOL_SET_LANGUAGE.
10591 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10592
5923a04c
TT
105932019-01-10 Tom Tromey <tom@tromey.com>
10594
10595 * psymtab.h (psymtab_storage::obstack): New method.
10596 <m_obstack>: Rename from obstack; now private.
10597 * psymtab.c (psymtab_storage): Update.
10598 * dwarf2read.c (create_addrmap_from_index)
10599 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10600 Update.
10601
6d6a12bf
TT
106022019-01-10 Tom Tromey <tom@tromey.com>
10603
10604 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10605 * objfiles.h (objfile::reset_psymtabs): New method.
10606
d320c2b5
TT
106072019-01-10 Tom Tromey <tom@tromey.com>
10608
10609 * symmisc.c (print_symbol_bcache_statistics): Update.
10610 (print_objfile_statistics): Update.
10611 * symfile.c (reread_symbols): Update.
10612 * psymtab.h (class psymtab_storage): New.
10613 * psymtab.c (psymtab_storage): New constructor.
10614 (~psymtab_storage): New destructor.
10615 (require_partial_symbols): Update.
10616 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10617 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10618 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10619 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10620 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10621 (start_psymtab_common, end_psymtab_common)
10622 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10623 (allocate_psymtab): Update.
10624 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10625 Update.
10626 (dump_psymtab_addrmap, maintenance_print_psymbols)
10627 (maintenance_check_psymtabs): Update.
10628 (class objfile_psymtabs): Move to objfiles.h.
10629 * psympriv.h (discard_psymtab): Now inline.
10630 (psymtab_discarder::psymtab_discarder): Update.
10631 (psymtab_discarder::~psymtab_discarder): Update.
10632 (ALL_OBJFILE_PSYMTABS): Rewrite.
10633 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10634 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10635 Remove fields.
10636 <partial_symtabs>: New field.
10637 (class objfile_psymtabs): Move from psymtab.h. Update.
10638 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10639 psymbol_cache.
10640 (objfile::~objfile): Don't destroy psymbol_cache.
10641 * mdebugread.c (parse_partial_symbols): Update.
10642 * dwarf2read.c (create_addrmap_from_index)
10643 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10644 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10645 (add_partial_subprogram, dwarf2_ranges_read): Update.
10646 * dwarf-index-write.c (write_address_map)
10647 (write_one_signatured_type, recursively_write_psymbols)
10648 (class debug_names, class debug_names, write_psymtabs_to_index):
10649 Update.
10650
1d94a5a3
TT
106512019-01-10 Tom Tromey <tom@tromey.com>
10652
10653 * symtab.h (SYMBOL_SET_NAMES): Update.
10654 (symbol_set_names): Update.
10655 (MSYMBOL_SET_NAMES): Update.
10656 * symtab.c (symbol_set_names): Change argument to be an
10657 objfile_per_bfd_storage.
10658 * psymtab.c (add_psymbol_to_bcache): Update.
10659 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10660
0f14768a
TT
106612019-01-10 Tom Tromey <tom@tromey.com>
10662
10663 * symtab.c (create_demangled_names_hash): Change argument to be an
10664 objfile_per_bfd_storage.
10665 (symbol_set_names): Update.
10666
6eee24ce
TT
106672019-01-10 Tom Tromey <tom@tromey.com>
10668
10669 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10670 init_psymbol_list.
10671 * psymtab.c (init_psymbol_list): Do nothing if already called.
10672 * psympriv.h (init_psymbol_list): Add comment.
10673 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10674 init_psymbol_list.
10675 * dbxread.c (dbx_symfile_read): Unconditionally call
10676 init_psymbol_list.
10677
75aedd27
TT
106782019-01-10 Tom Tromey <tom@tromey.com>
10679
10680 * xcoffread.c (scan_xcoff_symtab): Update.
10681 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10682 "where".
10683 * mdebugread.c (parse_partial_symbols)
10684 (handle_psymbol_enumerators): Update.
10685 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10686 * dbxread.c (read_dbx_symtab): Update.
10687 * psympriv.h (psymbol_placement): New enum.
10688 (add_psymbol_to_list): Update.
10689
939652a5
TT
106902019-01-10 Tom Tromey <tom@tromey.com>
10691
10692 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10693 static_psymbols parameters.
10694 (scan_xcoff_symtab): Update.
10695 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10696 static_psymbols parameters.
10697 * psympriv.h (start_psymtab_common): Update.
10698 * mdebugread.c (parse_partial_symbols): Update.
10699 * dwarf2read.c (create_partial_symtab): Update.
10700 * dbxread.c (read_dbx_symtab): Update.
10701 (start_psymtab): Remove global_psymbols and static_psymbols
10702 parameters.
10703
baa62830
TT
107042019-01-10 Tom Tromey <tom@tromey.com>
10705
10706 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10707 * psymtab.c (allocate_psymtab): Add comment.
10708 * psympriv.h (allocate_psymtab): Add comment.
10709 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10710 initializations.
10711 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10712
0e8f53ba
TT
107132019-01-10 Tom Tromey <tom@tromey.com>
10714
10715 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10716 Don't declare.
10717 * mipsread.c: Include mdebugread.h.
10718 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10719 Declare.
10720 * elfread.c: Include mdebugread.h.
10721
b22a7c6a
TT
107222019-01-09 Tom Tromey <tom@tromey.com>
10723
10724 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10725 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10726 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10727 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10728 (psym_lookup_symbol, psym_find_last_source_symtab)
10729 (psym_forget_cached_source_info, psym_print_stats)
10730 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10731 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10732 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10733 (psym_find_compunit_symtab_by_address)
10734 (maintenance_print_psymbols, maintenance_info_psymtabs)
10735 (maintenance_check_psymtabs): Use ranged for.
10736 * psymtab.h (class objfile_psymtabs): New.
10737 (require_partial_symbols): Return objfile_psymtabs.
10738 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10739
3b9d3ac2
TT
107402019-01-09 Tom Tromey <tom@tromey.com>
10741
10742 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10743 (find_pc_mapped_section, list_overlays_command)
10744 (map_overlay_command, unmap_overlay_command)
10745 (simple_overlay_update): Use all_objfiles.
10746 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10747 * printcmd.c (info_symbol_command): Use all_objfiles.
10748 * objfiles.h (ALL_OBJSECTIONS): Remove.
10749 * maint.c (maintenance_translate_address): Use all_objfiles.
10750 * gcore.c (gcore_create_callback): Use all_objfiles.
10751 (objfile_find_memory_regions): Likewise.
10752
8b31193a
TT
107532019-01-09 Tom Tromey <tom@tromey.com>
10754
10755 * symtab.c (find_line_symtab, info_sources_command)
10756 (make_source_files_completion_list): Use objfile_compunits.
10757 * source.c (select_source_symtab): Use objfile_compunits.
10758 * objfiles.h (struct objfile): Update comment.
10759 (ALL_OBJFILES): Remove.
10760 (ALL_FILETABS): Remove.
10761 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10762 objfile_compunits.
10763
d5da8b3c
TT
107642019-01-09 Tom Tromey <tom@tromey.com>
10765
10766 * symmisc.c (print_objfile_statistics, dump_objfile)
10767 (maintenance_print_symbols): Use compunit_filetabs.
10768 * source.c (forget_cached_source_info_for_objfile): Use
10769 compunit_filetabs.
10770 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10771 (ALL_FILETABS): Use compunit_filetabs.
10772 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10773 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10774
5accd1a0
TT
107752019-01-09 Tom Tromey <tom@tromey.com>
10776
10777 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10778 (compunit_filetabs): New.
10779 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10780 compunit_filetabs.
10781 (info_sources_command, make_source_files_completion_list): Remove
10782 declaration.
10783 * symmisc.c (print_objfile_statistics, dump_objfile)
10784 (maintenance_print_symbols): Remove declaration.
10785 (maintenance_info_symtabs): Use compunit_filetabs.
10786 (maintenance_info_line_tables): Likewise.
10787 * source.c (select_source_symtab): Change local variable name.
10788 (forget_cached_source_info_for_objfile): Remove declaration.
10789 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10790 * objfiles.c (objfile_relocate1): Remove declaration.
10791 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10792 declaration.
10793 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10794 * coffread.c (coff_symtab_read): Remove declaration.
10795 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10796 compunit_filetabs.
10797
d8aeb77f
TT
107982019-01-09 Tom Tromey <tom@tromey.com>
10799
10800 * symtab.c (lookup_objfile_from_block)
10801 (find_pc_sect_compunit_symtab, search_symbols)
10802 (default_collect_symbol_completion_matches_break_on): Use
10803 objfile_compunits.
10804 * objfiles.h (ALL_COMPUNITS): Remove.
10805 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10806 * cp-support.c (add_symbol_overload_list_qualified): Use
10807 objfile_compunits.
10808 * ada-lang.c (ada_collect_symbol_completion_matches)
10809 (ada_add_global_exceptions): Use objfile_compunits.
10810
592553c4
TT
108112019-01-09 Tom Tromey <tom@tromey.com>
10812
10813 * source.c (select_source_symtab)
10814 (forget_cached_source_info_for_objfile): Remove declaration.
10815 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10816 declaration.
10817 * maint.c (count_symtabs_and_blocks): Remove declaration.
10818 * cp-support.c (add_symbol_overload_list_qualified): Remove
10819 declaration.
10820 * coffread.c (coff_symtab_read): Remove declaration.
10821 * symtab.c (lookup_symbol_in_objfile_symtabs)
10822 (basic_lookup_transparent_type_1): Use objfile_compunits.
10823 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10824 (info_sources_command, search_symbols)
10825 (default_collect_symbol_completion_matches_break_on)
10826 (make_source_files_completion_list): Remove declaration.
10827 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10828 (ada_collect_symbol_completion_matches)
10829 (ada_add_global_exceptions): Remove declaration.
10830 * linespec.c (iterate_over_all_matching_symtabs): Use
10831 objfile_compunits.
10832 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10833 (class objfile_compunits): New.
10834 (ALL_COMPUNITS): Use objfile_compunits.
10835 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10836 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10837 objfile_compunits.
10838 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10839
5325b9bf
TT
108402019-01-09 Tom Tromey <tom@tromey.com>
10841
10842 * symtab.c (search_symbols)
10843 (default_collect_symbol_completion_matches_break_on): Use
10844 objfile_msymbols.
10845 * ada-lang.c (ada_lookup_simple_minsym)
10846 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10847 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10848 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10849 objfile_msymbols.
10850 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10851 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10852 * objc-lang.c (find_methods): Use objfile_msymbols.
10853 (info_selectors_command, info_classes_command): Likewise.
10854 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10855 * objfiles.h (class objfile_msymbols): New.
10856 (ALL_OBJFILE_MSYMBOLS): Remove.
10857 (ALL_MSYMBOLS): Remove.
10858
cac85af2
TT
108592019-01-09 Tom Tromey <tom@tromey.com>
10860
10861 * common/next-iterator.h (next_adapter): Add Iterator template
10862 parameter.
10863 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10864 (class all_objfiles_safe): New.
10865 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10866 * objfiles.c (put_objfile_before): Update comment.
10867 (add_separate_debug_objfile): Likewise.
10868 (free_all_objfiles): Use all_objfiles_safe.
10869 (objfile_purge_solibs): Likewise.
10870
aed57c53
TT
108712019-01-09 Tom Tromey <tom@tromey.com>
10872
10873 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10874 (expand_symtab_containing_pc, lookup_static_symbol)
10875 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10876 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10877 all_objfiles.
10878 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10879 * breakpoint.c (create_overlay_event_breakpoint)
10880 (create_longjmp_master_breakpoint)
10881 (create_std_terminate_master_breakpoint)
10882 (create_exception_master_breakpoint): Use all_objfiles.
10883 * linux-thread-db.c (try_thread_db_load_from_pdir)
10884 (has_libpthread): Use all_objfiles.
10885 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10886 * linespec.c (iterate_over_all_matching_symtabs)
10887 (search_minsyms_for_name): Use all_objfiles.
10888 * maint.c (maintenance_info_sections): Use all_objfiles.
10889 * main.c (captured_main_1): Use all_objfiles.
10890 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10891 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10892 * guile/scm-pretty-print.c
10893 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10894 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10895 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10896 (maintenance_print_msymbols): Use all_objfiles.
10897 * source.c (select_source_symtab): Use all_objfiles.
10898 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10899 * symfile.c (remove_symbol_file_command)
10900 (expand_symtabs_matching, map_symbol_filenames): Use
10901 all_objfiles.
10902 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10903 all_objfiles.
10904 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10905 * objc-lang.c (find_methods): Use all_objfiles.
10906 * objfiles.c (have_partial_symbols, have_full_symbols)
10907 (have_minimal_symbols, qsort_cmp)
10908 (default_iterate_over_objfiles_in_search_order): Use
10909 all_objfiles.
10910 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10911 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10912 (maintenance_check_psymtabs): Use all_objfiles.
10913 (ALL_PSYMTABS): Remove.
10914 * compile/compile-object-run.c (do_module_cleanup): Use
10915 all_objfiles.
10916 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10917 * cp-support.c (add_symbol_overload_list_qualified): Use
10918 all_objfiles.
10919 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10920 Use all_objfiles.
10921 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10922 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10923 all_objfiles.
10924 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10925 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10926 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10927 Uses all_objfiles.
10928 * solib.c (solib_read_symbols): Use all_objfiles
10929
99d89cde
TT
109302019-01-09 Tom Tromey <tom@tromey.com>
10931
10932 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10933 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10934 all_objfiles.
10935 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10936 * symmisc.c (print_symbol_bcache_statistics)
10937 (print_objfile_statistics, maintenance_print_objfiles)
10938 (maintenance_info_symtabs, maintenance_check_symtabs)
10939 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10940 all_objfiles.
10941 * source.c (forget_cached_source_info): Use all_objfiles.
10942 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10943 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10944 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10945 * objfiles.c (update_section_map): Use all_objfiles.
10946 (shared_objfile_contains_address_p): Likewise.
10947 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10948 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10949
21708325
TT
109502019-01-09 Tom Tromey <tom@tromey.com>
10951
10952 * common/next-iterator.h: New file.
10953 * objfiles.h (class all_objfiles): New.
10954 (struct objfile_iterator): New.
10955
669e09f6
PW
109562019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10957
10958 * NEWS: Move the description of the changed "frame", "select-frame",
10959 and "info frame" commands to the Changed commands section.
10960
041be526
SM
109612019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10962
10963 * gdbtypes.c (check_stub_method_group): Remove handling of old
10964 mangling schemes.
10965 * linespec.c (find_methods): Likewise.
10966 * stabsread.c (read_member_functions): Likewise.
10967 * valops.c (search_struct_method): Likewise.
10968 (value_struct_elt_for_reference): Likewise.
10969 * NEWS: Mention this change.
10970
0e2a2133
AB
109712019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10972
10973 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10974 print_source_lines.
10975 * source.c (print_source_lines_base): Update line number check.
10976 (print_source_lines): New function.
10977 (source_lines_range::source_lines_range): New function.
10978 * source.h (class source_lines_range): New class.
10979 (print_source_lines): New declaration.
10980
1055a3b4
PW
109812019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10982
10983 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10984
cfeadda5
TT
109852019-01-08 Tom Tromey <tom@tromey.com>
10986 Simon Marchi <simon.marchi@ericsson.com>
10987
10988 PR gdb/24060
10989 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10990 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10991 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10992 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10993 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10994 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10995
583068ca
AB
109962019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10997
10998 * source.c (select_source_symtab): Move header comment to
10999 declaration in source.h.
11000 (forget_cached_source_info_for_objfile): Likewise.
11001 (forget_cached_source_info): Likewise.
11002 (identify_source_line): Likewise.
11003 * source.h (identify_source_line): Move declaration from symtab.h
11004 and add comment from source.c
11005 (print_source_lines): Likewise.
11006 (forget_cached_source_info_for_objfile): Likewise.
11007 (forget_cached_source_info): Likewise.
11008 (select_source_symtab): Likewise.
11009 (enum print_source_lines_flag): Move definition from symtab.h.
11010 * symtab.h (identify_source_line): Move declaration to source.h.
11011 (print_source_lines): Likewise.
11012 (forget_cached_source_info_for_objfile): Likewise.
11013 (forget_cached_source_info): Likewise.
11014 (select_source_symtab): Likewise.
11015 (enum print_source_lines_flag): Move definition to source.h.
11016 * tui/tui-hooks.c: Add 'source.h' include.
11017
ec98a4ad
AB
110182019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11019
11020 * source.c (print_source_lines_base): Handle requests to print
11021 reverse line number sequences, and guard against empty lines
11022 string.
11023
62ea19c1
AB
110242019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11025
11026 * source.c (print_source_lines_base): Fix skip of '\r' if next
11027 character is '\n'.
11028
9d30e1fd
TT
110292019-01-06 Tom Tromey <tom@tromey.com>
11030
11031 * c-exp.y (struct c_parse_state) <macro_original_text,
11032 expansion_obstack>: New member.
11033 (macro_original_text, expansion_obstack): Remove globals.
11034 (scan_macro_expansion, scanning_macro_expansion)
11035 (finished_macro_expansion): Update.
11036 (scan_macro_cleanup): Remove.
11037 (yylex, c_parse): Update.
11038
c65bac38
TT
110392019-01-06 Tom Tromey <tom@tromey.com>
11040
11041 * c-exp.y (struct c_parse_state) <strings>: New member.
11042 (operator_stoken): Update.
11043
02e12e38
TT
110442019-01-06 Tom Tromey <tom@tromey.com>
11045
11046 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11047 (union type_stack_elt) <typelist_val>: Now a pointer to
11048 std::vector.
11049 (type_stack_cleanup): Don't declare.
11050 (push_typelist): Update.
11051 * parse.c (pop_typelist): Return a std::vector.
11052 (push_typelist): Take a std::vector.
11053 (follow_types): Update. Do not free args.
11054 (type_stack_cleanup): Remove.
11055 * c-exp.y (struct c_parse_state): New.
11056 (cpstate): New global.
11057 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11058 (nonempty_typelist): Update.
11059 (func_mod): Create a new vector.
11060 (c_parse): Create a c_parse_state.
11061 (check_parameter_typelist): Do not delete params.
11062 (function_method): Update. Do not delete type_list.
11063
f097f5ad
TT
110642019-01-06 Tom Tromey <tom@tromey.com>
11065
11066 PR gdb/28155:
11067 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11068 check_typedef.
11069 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11070 (print_return_value): Likewise.
11071
d2adf9f1
TT
110722019-01-05 Tom Tromey <tom@tromey.com>
11073
11074 * contrib/cleanup_check.py: Remove.
11075 * contrib/gcc-with-excheck: Remove.
11076 * contrib/exsummary.py: Remove.
11077 * contrib/excheck.py: Remove.
11078
2eab46b1
JB
110792019-01-05 Joel Brobecker <brobecker@adacore.com>
11080
11081 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11082 NULL. Initialize tpprev to NULL instead of assigning it
11083 to NULL on the next statement.
11084 * windows-nat.c (windows_delete_thread): Remove check for
11085 main_thread_id before printing thread exit notifications.
11086 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11087 Remove thread ID check against main_thread_id.
11088 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11089 windows_delete_thread.
11090 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11091
48c5e7e2
TT
110922019-01-04 Tom Tromey <tom@tromey.com>
11093
11094 * compile/compile.c (_initialize_compile): Use upper case for
11095 metasyntactic variables.
11096 * symmisc.c (_initialize_symmisc): Use upper case for
11097 metasyntactic variables.
11098 * psymtab.c (_initialize_psymtab): Use upper case for
11099 metasyntactic variables.
11100 * demangle.c (demangle_command): Use upper case for metasyntactic
11101 variables.
11102 (_initialize_demangler): Likewise.
11103 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11104 variables.
11105
986041cd
TT
111062019-01-03 Tom Tromey <tom@tromey.com>
11107
11108 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11109
7c711119
TT
111102019-01-03 Tom Tromey <tom@tromey.com>
11111
11112 * python/py-symtab.c (salpy_str): Update.
11113 (struct salpy_sal_object) <symtab>: Now a PyObject.
11114 (salpy_dealloc): Update.
11115 (del_objfile_sal): Use gdbpy_ref.
11116
1b20edf0
TT
111172019-01-03 Tom Tromey <tom@tromey.com>
11118
11119 * python/py-type.c (convert_field): Use new_reference. Return
11120 gdbpy_ref.
11121 (make_fielditem): Return gdbpy_ref.
11122 (typy_fields): Update.
11123 (typy_getitem): Update.
11124 (field_name): Return gdbpy_ref. Use new_reference.
11125 (typy_iterator_iternext): Update.
11126
ea41325b
TT
111272019-01-03 Tom Tromey <tom@tromey.com>
11128
11129 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11130
2a3c71d6
TT
111312019-01-03 Tom Tromey <tom@tromey.com>
11132
11133 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11134 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11135 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11136 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11137 (pspy_set_type_printers): Likewise.
11138 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11139 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11140 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11141 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11142 (objfpy_set_type_printers): Likewise.
11143
5c329e6a
TT
111442019-01-03 Tom Tromey <tom@tromey.com>
11145
11146 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11147 (gdbpy_print_stack): Use gdbpy_err_fetch.
11148 * python/python-internal.h (class gdbpy_err_fetch): New class.
11149 (class gdbpy_enter) <m_error_type, m_error_value,
11150 m_error_traceback>: Remove.
11151 <m_error>: New member.
11152 (gdbpy_exception_to_string): Don't declare.
11153 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11154 * python/py-value.c (convert_value_from_python): Use
11155 gdbpy_err_fetch.
11156 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11157 gdbpy_exception_to_string.
11158 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11159 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11160 gdbpy_err_fetch.
11161
169bb27b
AB
111622019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * linux-nat.c (delete_lwp_cleanup): Delete.
11165 (struct lwp_deleter): New struct.
11166 (lwp_info_up): New typedef.
11167 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11168 lwp_info_up.
11169
a07c8880
AB
111702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * linux-fork.c (class scoped_switch_fork_info): New class.
11173 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11174
26089c49
AB
111752019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11176
11177 * valops.c (find_overload_match): Remove use of null_cleanup, and
11178 calls to do_cleanups.
11179
06d3e5b0
AB
111802019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11181
11182 * compile/compile-cplus-types.c
11183 (compile_cplus_instance::decl_name): Handle changes to
11184 cp_func_name.
11185 * cp-support.c (cp_func_name): Update header comment, update
11186 return type.
11187 * cp-support.h (cp_func_name): Update return type in declaration.
11188 * valops.c (find_overload_match): Move temp_func local to top
11189 level of function and change its type. Use temp_func to hold and
11190 delete temporary string obtained from cp_func_name.
11191
66644cd3
AB
111922019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11193
11194 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11195 gdb::char_vector, remove cleanup, and update uses of `msg`.
11196
592d8c0a
JW
111972019-01-03 Jim Wilson <jimw@sifive.com>
11198
11199 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11200
c55d06ec
TT
112012019-01-02 Tom Tromey <tom@tromey.com>
11202
11203 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11204 (tdesc_parse_xml): Remove cleanups.
11205 * target-descriptions.h (make_cleanup_free_target_description):
11206 Don't declare.
11207 (target_desc_deleter): New struct.
11208 (target_desc_up): New typedef.
11209 * target-descriptions.c (target_desc_deleter::operator()): Rename
11210 from free_target_description.
11211 (make_cleanup_free_target_description): Remove.
11212
3a6ae42d
TT
112132019-01-02 Tom Tromey <tom@tromey.com>
11214
11215 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11216 constructor, destructor.
11217 (linespec_parser): Remove typedef.
11218 (~linespec_parser): Rename from linespec_parser_delete.
11219 (linespec_lex_to_end, linespec_complete_label)
11220 (linespec_complete): Update.
11221 (decode_line_full): Remove cleanups.
11222 (decode_line_1): Update.
11223
61fd3e73
TT
112242019-01-02 Tom Tromey <tom@tromey.com>
11225
11226 * python/python-internal.h (inferior_to_inferior_object): Change
11227 return type.
11228 * python/py-exitedevent.c (create_exited_event_object): Update.
11229 * python/py-inferior.c (inferior_to_inferior_object): Return
11230 gdbpy_ref.
11231 (python_new_inferior, python_inferior_deleted)
11232 (thread_to_thread_object, delete_thread_object)
11233 (build_inferior_list, gdbpy_selected_inferior): Update.
11234 * python/py-infthread.c (create_thread_object): Update. Also fail
11235 if inferior_to_inferior_object fails.
11236
d20172fc
SM
112372019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11238
11239 * inferior.h (class inferior) <displaced_step_state>: New field.
11240 * infrun.h (struct displaced_step_state): Move here from
11241 infrun.c. Initialize fields, add constructor.
11242 <inf>: Remove field.
11243 <reset>: New method.
11244 * infrun.c (struct displaced_step_inferior_state): Move to
11245 infrun.h.
11246 (displaced_step_inferior_states): Remove.
11247 (get_displaced_stepping_state): Adust.
11248 (displaced_step_in_progress_any_inferior): Adjust.
11249 (displaced_step_in_progress_thread): Adjust.
11250 (displaced_step_in_progress): Adjust.
11251 (add_displaced_stepping_state): Remove.
11252 (get_displaced_step_closure_by_addr): Adjust.
11253 (remove_displaced_stepping_state): Remove.
11254 (infrun_inferior_exit): Call displaced_step_state.reset.
11255 (use_displaced_stepping): Don't check for NULL.
11256 (displaced_step_prepare_throw): Call
11257 get_displaced_stepping_state.
11258 (displaced_step_fixup): Don't check for NULL.
11259 (prepare_for_detach): Don't check for NULL.
11260
e3319240
PW
112612019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11262
11263 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11264 in case of call that did not complete.
11265
5d36dfb9
AU
112662019-01-02 Andrey Utkin <autkin@undo.io>
11267
11268 * symfile.c (find_separate_debug_file): Fix search of debug files for
11269 remote debuggee.
11270
8833fbf0
TT
112712019-01-02 Tom Tromey <tom@tromey.com>
11272
11273 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11274 indentation.
11275 * python/py-frame.c (frapy_older): Remove cast.
11276 (frapy_newer): Likewise.
11277 * python/py-breakpoint.c (local_setattro): Remove cast.
11278 * python/py-arch.c (archpy_name): Remove local variable.
11279 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11280
4ada3dfd
JB
112812019-01-02 Joel Brobecker <brobecker@adacore.com>
11282
11283 * unittests/basic_string_view/element_access/char/empty.cc:
11284 Fix year range in copyright header.
11285
113b7b81
AB
112862019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11287
11288 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11289 Delete.
11290 <operator==>: Update with for removed field.
11291 <hash>: Likewise.
11292 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11293 <isa_features>: ...this.
11294 <abi_features>: New field.
11295 (riscv_isa_flen): Update comment.
11296 (riscv_abi_xlen): New declaration.
11297 (riscv_abi_flen): New declaration.
11298 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11299 isa_features.
11300 (riscv_abi_xlen): New function.
11301 (riscv_isa_flen): Update to get answer from isa_features.
11302 (riscv_abi_flen): New function.
11303 (riscv_has_fp_abi): Update to get answer from abi_features.
11304 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11305 xlen and flen.
11306 (riscv_call_info) <xlen, flen>: Update comment.
11307 (riscv_call_arg_struct): Remove invalid assertions
11308 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11309 is removed.
11310 (riscv_gdbarch_init): Gather isa features and abi features
11311 separately, ensure both match on the gdbarch when reusing an old
11312 gdbarch. Relax an error check to allow 32-bit abi float to run on
11313 a target with 64-bit float hardware.
11314
b18ca514
PW
113152019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11316
11317 * source.c (search_command_helper): Stop reverse search
11318 when line 1 has been searched.
11319
ec70d8db
PW
113202019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11321
11322 * record-full.c (record_full_base_target::close): Rewrite
11323 record_full_core_buf_list free logic.
11324
5b38f9c1
PW
113252019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11326
11327 * break-catch-syscall.c (print_one_catch_syscall): xfree
11328 the last text.
11329
66d91b39
JB
113302019-01-01 Joel Brobecker <brobecker@adacore.com>
11331
11332 * top.c (print_gdb_version): Update Copyright year in version
11333 message.
11334
42a4f53d
JB
113352019-01-01 Joel Brobecker <brobecker@adacore.com>
11336
11337 Update copyright year range in all GDB files.
11338
7e955d83 113392019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11340
5bbd631d 11341 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11342
5bbd631d 11343For older changes see ChangeLog-2018.
c906108c
SS
11344\f
11345Local Variables:
11346mode: change-log
11347left-margin: 8
11348fill-column: 74
11349version-control: never
57da7796 11350coding: utf-8
c906108c 11351End:
5bbd631d 11352
This page took 4.161083 seconds and 4 git commands to generate.