Remove strcat_to_buf
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
43df9b2f
TT
12019-09-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui.h (strcat_to_buf): Don't declare.
4 * tui/tui.c (strcat_to_buf): Remove.
5
7226433c
TT
62019-09-20 Tom Tromey <tom@tromey.com>
7
8 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
9 from "fullname".
10 * tui/tui-source.c (tui_source_window::set_contents)
11 (tui_source_window::location_matches_p)
12 (tui_source_window::maybe_update): Update.
13
80df3337
TT
142019-09-20 Tom Tromey <tom@tromey.com>
15
16 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
17 Update.
18 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
19 prefix.
20 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
21 (tui_data_window::line_from_reg_element_no)
22 (tui_data_window::first_reg_element_no_inline)
23 (tui_data_window::show_registers)
24 (tui_data_window::show_register_group)
25 (tui_data_window::display_registers_from)
26 (tui_data_window::display_registers_from_line)
27 (tui_data_window::first_data_item_displayed)
28 (tui_data_window::delete_data_content_windows)
29 (tui_data_window::erase_data_content)
30 (tui_data_window::do_scroll_vertical)
31 (tui_data_window::refresh_window)
32 (tui_data_window::check_register_values): Update.
33
9923f347
TT
342019-09-20 Tom Tromey <tom@tromey.com>
35
36 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
37 (struct tui_locator_window) <full_name, proc_name>: Now
38 std::string.
39 * tui/tui-stack.c (tui_locator_window::make_status_line)
40 (tui_locator_window::set_locator_fullname)
41 (tui_locator_window::set_locator_info): Update.
42 * tui/tui-source.c (tui_source_window::set_contents)
43 (tui_source_window::showing_source_p): Update.
44
b76251ab
TT
452019-09-20 Tom Tromey <tom@tromey.com>
46
47 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
48 Don't call tui_locator_win_info_ptr.
49
0891be08
TT
502019-09-20 Tom Tromey <tom@tromey.com>
51
52 * tui/tui-win.c (tui_resize_all): Don't call refresh.
53
1b935acf
TT
542019-09-20 Tom Tromey <tom@tromey.com>
55
56 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
57 height for locator.
58 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
59 * tui/tui-layout.c (show_source_disasm_command, show_data)
60 (show_source_or_disasm_and_command): Use 1 as height for locator.
61
9abd8a65
TT
622019-09-20 Tom Tromey <tom@tromey.com>
63
64 * tui/tui.c (tui_enable): Update.
65 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
66 Update.
67 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
68 Update.
69 * tui/tui-data.c (win_resized): Now bool.
70 (tui_win_resized): Return bool.
71 (tui_set_win_resized_to): Accept a bool.
72
b5457826
TT
732019-09-20 Tom Tromey <tom@tromey.com>
74
75 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
76 Change type of "refresh_values_only".
77 * tui/tui-regs.c (tui_data_window::show_register_group): Change
78 type of "refresh_values_only".
79
6b915f7d
TT
802019-09-20 Tom Tromey <tom@tromey.com>
81
82 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
83 std::string.
84 (tui_disassemble): Add "pos" parameter.
85 (tui_disasm_window::set_contents): Simplify.
86
2ad52f6f
TT
872019-09-20 Tom Tromey <tom@tromey.com>
88
89 * tui/tui-winsource.h (struct tui_source_window_base)
90 <show_source_content>: Now private.
91 * tui/tui-winsource.c
92 (tui_source_window_base::show_source_content): Don't handle empty
93 content case.
94
b3b1bde6
TT
952019-09-20 Tom Tromey <tom@tromey.com>
96
97 * tui/tui-layout.c (show_source_disasm_command)
98 (show_source_or_disasm_and_command): Don't call
99 show_source_content.
100
71a25ed2
TT
1012019-09-20 Tom Tromey <tom@tromey.com>
102
103 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
104 Declare.
105 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
106 from tui_make_status_line.
107 (tui_locator_window::rerender): Update.
108
f8532154
TT
1092019-09-20 Tom Tromey <tom@tromey.com>
110
111 * tui/tui-stack.c (tui_make_status_line): Return std::string.
112 (tui_locator_window::rerender): Update.
113
2d81b349
TT
1142019-09-20 Tom Tromey <tom@tromey.com>
115
116 * tui/tui-winsource.h (struct tui_source_window_base)
117 <~tui_source_window_base>: Don't declare.
118 <fullname>: Remove.
119 * tui/tui-winsource.c (~tui_source_window_base): Remove.
120 * tui/tui-source.h (struct tui_source_window) <fullname>: New
121 member.
122 * tui/tui-source.c (tui_source_window::set_contents): Update.
123 (tui_source_window::location_matches_p)
124 (tui_source_window::maybe_update): Update.
125
f14bec58
TT
1262019-09-20 Tom Tromey <tom@tromey.com>
127
128 * tui/tui-winsource.h (~tui_source_element): Remove.
129 (tui_source_element): Update.
130 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
131 * tui/tui-winsource.c (tui_show_source_line): Update.
132 * tui/tui-source.c (tui_source_window::set_contents): Update.
133 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
134
78d5933a
TT
1352019-09-20 Tom Tromey <tom@tromey.com>
136
137 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
138 declare.
139 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
140 tui_clear_source_windows_detail.
141 * tui/tui-winsource.h (struct tui_source_window_base)
142 <clear_detail>: Don't declare.
143 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
144 Remove.
145 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
146
d4207696
TT
1472019-09-20 Tom Tromey <tromey@adacore.com>
148
149 PR ada/24919:
150 * block.c (contained_in): Fix final return value.
151
00f93c44
AM
1522019-09-20 Alan Modra <amodra@gmail.com>
153
154 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
155 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
156 (read_indirect_string_from_dwz): Use bfd accessor.
157 * dwarf2read.h (struct dwz_file <filename>): Likewise.
158 * machoread.c (macho_symfile_read_all_oso): Likewise.
159 * solib.c (solib_bfd_open): Likewise.
160
e4153ae6
CB
1612019-09-19 Christian Biesinger <cbiesinger@google.com>
162
163 * eval.c: Move declaration of overload_resolution to...
164 * value.h: ...here.
165
c7ae7675
CB
1662019-09-19 Christian Biesinger <cbiesinger@google.com>
167
168 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
169 * arm-linux-tdep.c: Likewise.
170 * arm-nbsd-nat.c: Likewise.
171 * arm-tdep.h: Declare arm_apcs_32.
172 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
173
e86f08d2
CB
1742019-09-19 Christian Biesinger <cbiesinger@google.com>
175
176 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
177 * dwarf2read.h: Declare dwarf_always_disassemble.
178
f64e2f40
TV
1792019-09-19 Tom de Vries <tdevries@suse.de>
180
181 PR gdb/25009
182 * source-cache.c (source_cache::ensure): Catch exception thrown during
183 construction of the highlighter.
184
fd361982
AM
1852019-09-18 Alan Modra <amodra@gmail.com>
186
187 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
188 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
189 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
190 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
191 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
192 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
193 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
194 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
195 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
196 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
197 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
198 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
199 * solib-spu.c, * solib-svr4.c, * solib-target.c,
200 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
201 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
202 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
203 * mi/mi-interp.c: Update throughout for bfd section macro and
204 function changes.
205 * gcore (gcore_create_callback): Use bfd_set_section_lma.
206 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
207
11061048
TT
2082019-09-18 Tom Tromey <tom@tromey.com>
209
210 * NEWS: Add entry.
211 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
212 call rl_initialize.
213 (tui_enable): Do not call rl_initialize.
214
7a27b85f
CG
2152019-09-18 Christian Groessler <chris@groessler.org>
216
217 * alpha-linux-nat.c: Include gdbarch.h.
218
f64eea3a
SM
2192019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * ui-file.c: Include cli/cli-style.h.
222 (term_cli_styling): Remove cli_styling declaration.
223
e6f7f6d1
AM
2242019-09-18 Alan Modra <amodra@gmail.com>
225
226 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
227 to bfd_asymbol_section.
228
1d38e9d1
AM
2292019-09-18 Alan Modra <amodra@gmail.com>
230
231 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
232 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
233 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
234
90d92a63
AM
2352019-09-18 Alan Modra <amodra@gmail.com>
236
237 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
238 * spu-linux-nat.c (spu_bfd_open): Likewise.
239
a3d181d2
CB
2402019-09-18 Christian Biesinger <cbiesinger@google.com>
241
242 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
243 to bool to match definition in dwarf2read.c.
244
491144b5
CB
2452019-09-17 Christian Biesinger <cbiesinger@google.com>
246
247 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
248 (print_signatures): Likewise.
249 (trust_pad_over_xvs): Likewise.
250 * arch/aarch64-insn.c (aarch64_debug): Likewise.
251 * arch/aarch64-insn.h (aarch64_debug): Likewise.
252 * arm-linux-nat.c (arm_apcs_32): Likewise.
253 * arm-linux-tdep.c (arm_apcs_32): Likewise.
254 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
255 * arm-tdep.c (arm_debug): Likewise.
256 (arm_apcs_32): Likewise.
257 * auto-load.c (debug_auto_load): Likewise.
258 (auto_load_gdb_scripts): Likewise.
259 (global_auto_load): Likewise.
260 (auto_load_local_gdbinit): Likewise.
261 (auto_load_local_gdbinit_loaded): Likewise.
262 * auto-load.h (global_auto_load): Likewise.
263 (auto_load_local_gdbinit): Likewise.
264 (auto_load_local_gdbinit_loaded): Likewise.
265 * breakpoint.c (disconnected_dprintf): Likewise.
266 (breakpoint_proceeded): Likewise.
267 (automatic_hardware_breakpoints): Likewise.
268 (always_inserted_mode): Likewise.
269 (target_exact_watchpoints): Likewise.
270 (_initialize_breakpoint): Update.
271 * breakpoint.h (target_exact_watchpoints): Change to bool.
272 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
273 * cli/cli-cmds.c (trace_commands): Likewise.
274 * cli/cli-cmds.h (trace_commands): Likewise.
275 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
276 to bool*.
277 * cli/cli-logging.c (logging_overwrite): Change to bool.
278 (logging_redirect): Likewise.
279 (debug_redirect): Likewise.
280 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
281 (struct boolean_option_def) <get_var_address_cb_>: Change return type
282 to bool.
283 <boolean_option_def>: Update.
284 (struct flag_option_def): Change default type of Context to bool
285 from int.
286 <flag_option_def>: Change return type of var_address_cb_ to bool*.
287 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
288 (get_setshow_command_value_string): Likewise.
289 * cli/cli-style.c (cli_styling): Change to bool.
290 (source_styling): Likewise.
291 * cli/cli-style.h (source_styling): Likewise.
292 (cli_styling): Likewise.
293 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
294 to bool.
295 * command.h (var_types): Update comment.
296 (add_setshow_boolean_cmd): Change int* var argument to bool*.
297 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
298 bool.
299 (debug_compile_cplus_scopes): Likewise.
300 * compile/compile-internal.h (compile_debug): Likewise.
301 * compile/compile.c (compile_debug): Likewise.
302 (struct compile_options) <raw>: Likewise.
303 * cp-support.c (catch_demangler_crashes): Likewise.
304 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
305 (usr_cmd_cris_dwarf2_cfi): Likewise.
306 * csky-tdep.c (csky_debug): Likewise.
307 * darwin-nat.c (enable_mach_exceptions): Likewise.
308 * dcache.c (dcache_enabled_p): Likewise.
309 * defs.h (info_verbose): Likewise.
310 * demangle.c (demangle): Likewise.
311 (asm_demangle): Likewise.
312 * dwarf-index-cache.c (debug_index_cache): Likewise.
313 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
314 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
315 * dwarf2read.c (check_physname): Likewise.
316 (use_deprecated_index_sections): Likewise.
317 (dwarf_always_disassemble): Likewise.
318 * eval.c (overload_resolution): Likewise.
319 * event-top.c (set_editing_cmd_var): Likewise.
320 (exec_done_display_p): Likewise.
321 * event-top.h (set_editing_cmd_var): Likewise.
322 (exec_done_display_p): Likewise.
323 * exec.c (write_files): Likewise.
324 * fbsd-nat.c (debug_fbsd_lwp): Likewise
325 (debug_fbsd_nat): Likewise.
326 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
327 Likewise.
328 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
329 <backtrace_past_entry> Likewise.
330 * gdb-demangle.h (demangle): Likewise.
331 (asm_demangle): Likewise.
332 * gdb_bfd.c (bfd_sharing): Likewise.
333 * gdbcore.h (write_files): Likewise.
334 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
335 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
336 * gdbthread.h (print_thread_events): Likewise.
337 * gdbtypes.c (opaque_type_resolution): Likewise.
338 (strict_type_checking): Likewise.
339 * gnu-nat.c (gnu_debug_flag): Likewise.
340 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
341 * guile/scm-param.c (pascm_variable): Add boolval.
342 (add_setshow_generic): Update.
343 (pascm_param_value): Update.
344 (pascm_set_param_value_x): Update.
345 * hppa-tdep.c (hppa_debug): Change to bool..
346 * infcall.c (may_call_functions_p): Likewise.
347 (coerce_float_to_double_p): Likewise.
348 (unwind_on_signal_p): Likewise.
349 (unwind_on_terminating_exception_p): Likewise.
350 * infcmd.c (startup_with_shell): Likewise.
351 * inferior.c (print_inferior_events): Likewise.
352 * inferior.h (startup_with_shell): Likewise.
353 (print_inferior_events): Likewise.
354 * infrun.c (step_stop_if_no_debug): Likewise.
355 (detach_fork): Likewise.
356 (debug_displaced): Likewise.
357 (disable_randomization): Likewise.
358 (non_stop): Likewise.
359 (non_stop_1): Likewise.
360 (observer_mode): Likewise.
361 (observer_mode_1): Likewise.
362 (set_observer_mode): Update.
363 (sched_multi): Change to bool.
364 * infrun.h (debug_displaced): Likewise.
365 (sched_multi): Likewise.
366 (step_stop_if_no_debug): Likewise.
367 (non_stop): Likewise.
368 (disable_randomization): Likewise.
369 * linux-tdep.c (use_coredump_filter): Likewise.
370 (dump_excluded_mappings): Likewise.
371 * linux-thread-db.c (auto_load_thread_db): Likewise.
372 (check_thread_db_on_load): Likewise.
373 * main.c (captured_main_1): Update.
374 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
375 xx2_opt, boolean_opt>: Change to bool.
376 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
377 * maint.c (maintenance_profile_p): Likewise.
378 (per_command_time): Likewise.
379 (per_command_space): Likewise.
380 (per_command_symtab): Likewise.
381 * memattr.c (inaccessible_by_default): Likewise.
382 * mi/mi-main.c (mi_async): Likewise.
383 (mi_async_1): Likewise.
384 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
385 * nat/fork-inferior.h (startup_with_shell): Likewise.
386 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
387 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
388 * nios2-tdep.c (nios2_debug): Likewise.
389 * or1k-tdep.c (or1k_debug): Likewise.
390 * parse.c (parser_debug): Likewise.
391 * parser-defs.h (parser_debug): Likewise.
392 * printcmd.c (print_symbol_filename): Likewise.
393 * proc-api.c (procfs_trace): Likewise.
394 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
395 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
396 (set_parameter_value): Update.
397 (add_setshow_generic): Update.
398 * python/py-value.c (copy_py_bool_obj): Change argument from int*
399 to bool*.
400 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
401 int*.
402 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
403 * record-btrace.c (record_btrace_target::store_registers): Update.
404 * record-full.c (record_full_memory_query): Change to bool.
405 (record_full_stop_at_limit): Likewise.
406 * record-full.h (record_full_memory_query): Likewise.
407 * remote-notif.c (notif_debug): Likewise.
408 * remote-notif.h (notif_debug): Likewise.
409 * remote.c (use_range_stepping): Likewise.
410 (interrupt_on_connect): Likewise.
411 (remote_break): Likewise.
412 * ser-tcp.c (tcp_auto_retry): Likewise.
413 * ser-unix.c (serial_hwflow): Likewise.
414 * skip.c (debug_skip): Likewise.
415 * solib-aix.c (solib_aix_debug): Likewise.
416 * spu-tdep.c (spu_stop_on_load_p): Likewise.
417 (spu_auto_flush_cache_p): Likewise.
418 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
419 Likewise.
420 (struct info_print_options) <quiet>: Likewise.
421 * symfile-debug.c (debug_symfile): Likewise.
422 * symfile.c (auto_solib_add): Likewise.
423 (separate_debug_file_debug): Likewise.
424 * symfile.h (auto_solib_add): Likewise.
425 (separate_debug_file_debug): Likewise.
426 * symtab.c (basenames_may_differ): Likewise.
427 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
428 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
429 (struct info_types_options) <quiet>: Likewise.
430 * symtab.h (demangle): Likewise.
431 (basenames_may_differ): Likewise.
432 * target-dcache.c (stack_cache_enabled_1): Likewise.
433 (code_cache_enabled_1): Likewise.
434 * target.c (trust_readonly): Likewise.
435 (may_write_registers): Likewise.
436 (may_write_memory): Likewise.
437 (may_insert_breakpoints): Likewise.
438 (may_insert_tracepoints): Likewise.
439 (may_insert_fast_tracepoints): Likewise.
440 (may_stop): Likewise.
441 (auto_connect_native_target): Likewise.
442 (target_stop_and_wait): Update.
443 (target_async_permitted): Change to bool.
444 (target_async_permitted_1): Likewise.
445 (may_write_registers_1): Likewise.
446 (may_write_memory_1): Likewise.
447 (may_insert_breakpoints_1): Likewise.
448 (may_insert_tracepoints_1): Likewise.
449 (may_insert_fast_tracepoints_1): Likewise.
450 (may_stop_1): Likewise.
451 * target.h (target_async_permitted): Likewise.
452 (may_write_registers): Likewise.
453 (may_write_memory): Likewise.
454 (may_insert_breakpoints): Likewise.
455 (may_insert_tracepoints): Likewise.
456 (may_insert_fast_tracepoints): Likewise.
457 (may_stop): Likewise.
458 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
459 (make_thread_apply_all_options_def_group): Change argument from int*
460 to bool*.
461 (thread_apply_all_command): Update.
462 (print_thread_events): Change to bool.
463 * top.c (confirm): Likewise.
464 (command_editing_p): Likewise.
465 (history_expansion_p): Likewise.
466 (write_history_p): Likewise.
467 (info_verbose): Likewise.
468 * top.h (confirm): Likewise.
469 (history_expansion_p): Likewise.
470 * tracepoint.c (disconnected_tracing): Likewise.
471 (circular_trace_buffer): Likewise.
472 * typeprint.c (print_methods): Likewise.
473 (print_typedefs): Likewise.
474 * utils.c (debug_timestamp): Likewise.
475 (sevenbit_strings): Likewise.
476 (pagination_enabled): Likewise.
477 * utils.h (sevenbit_strings): Likewise.
478 (pagination_enabled): Likewise.
479 * valops.c (overload_resolution): Likewise.
480 * valprint.h (struct value_print_options) <prettyformat_arrays,
481 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
482 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
483 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
484 Likewise.
485 * windows-nat.c (new_console): Likewise.
486 (cygwin_exceptions): Likewise.
487 (new_group): Likewise.
488 (debug_exec): Likewise.
489 (debug_events): Likewise.
490 (debug_memory): Likewise.
491 (debug_exceptions): Likewise.
492 (useshell): Likewise.
493 * windows-tdep.c (maint_display_all_tib): Likewise.
494 * xml-support.c (debug_xml): Likewise.
495
f1b620e9
MG
4962019-09-17 Mike Gulick <mgulick@mathworks.com>
497
498 * source.c (prepare_path_for_appending): New function.
499 (openp): Make use of new function.
500 (find_and_open_source): Search for the compilation directory and
501 source file as a relative path beneath the directory search path.
502
67f3ed6a
AB
5032019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * source-cache.c (source_cache::get_line_charpos): Catch
506 exceptions and return false, this matches the behaviour documented
507 in the header file.
508
74332189
JB
5092019-09-17 Joel Brobecker <brobecker@adacore.com>
510
511 * ada-tasks.c (info_task): Remove quoting of the task's name.
512
f2f24aa9
CB
5132019-09-16 Christian Biesinger <cbiesinger@google.com>
514
515 * symfile.c (auto_solib_add): Replace comment with a reference
516 to the header file.
517
6a062a93
CB
5182019-09-14 Christian Biesinger <cbiesinger@google.com>
519
520 * NEWS: Mention that gdb can now be compiled with Python 3
521 on Windows.
522
ec6c8338
AB
5232019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * maint.c (maint_print_section_data::maint_print_section_data):
526 Force use of 'float log10 (float)' by casting the argument to
527 float.
528
aa17805f
AB
5292019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
530
531 * maint.c: Add 'cmath' include.
532 (struct maint_print_section_data): New structure.
533 (print_section_index): New function.
534 (print_bfd_section_info): Add header comment, small whitespace
535 cleanup, and update to call new print_section_index function.
536 (print_objfile_section_info): Likewise.
537 (maint_obj_section_from_bfd_section): New function.
538 (print_bfd_section_info_maybe_relocated): New function.
539 (maintenance_info_sections): Add header comment, always use
540 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
541
3dd9bb46
AB
5422019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
545 inner scope, add check that the objfile has psymtabs before
546 checking psymtabs_addrmap.
547 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
548
4993045d
PW
5492019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
550
551 * NEWS: Announce that Ada task names are now shown at more places,
552 and between quotes (except in info task output).
553 * gdb/ada-tasks.c (task_to_str): New function.
554 (display_current_task_id): Call task_to_str.
555 (task_command_1): Likewise.
556 (print_ada_task_info): In non-mi mode, Properly align headers and data
557 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
558
7a289707
RO
5592019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560
561 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
562 prstatus.pr_lwp.pr_info instead of making it up.
563
f2aec7f6
CB
5642019-09-11 Christian Biesinger <cbiesinger@google.com>
565
566 * auto-load.c (auto_load_expand_dir_vars): Update.
567 * defs.h (gdb_datadir): Change to std::string.
568 (python_libdir): Likewise.
569 (relocate_gdb_directory): Change return type to std::string.
570 * guile/guile.c (gdbscm_data_directory): Update.
571 (initialize_scheme_side): Update.
572 * jit.c (jit_reader_dir): Change to std::string.
573 (jit_reader_load_command): Update.
574 * main.c (gdb_datadir): Change to std::string.
575 (python_libdir): Likewise.
576 (set_gdb_data_directory): Update.
577 (relocate_path): Change to return std::string.
578 (relocate_gdb_directory): Change to return std::string.
579 (relocate_gdbinit_path_maybe_in_datadir): Update.
580 (captured_main_1): Update.
581 * python/python.c (do_start_initialization): Update.
582 * top.c (show_gdb_datadir): Update.
583 * xml-syscall.c (xml_init_syscalls_info): Update.
584 (init_syscalls_info): Update.
585
9224a013
CB
5862019-09-11 Christian Biesinger <cbiesinger@google.com>
587
588 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
589 out of get_init_files.
590 (get_init_files): Update.
591
f48cd836
CB
5922019-09-11 Christian Biesinger <cbiesinger@google.com>
593
594 * main.c (get_init_files): Change to use std::string.
595 (captured_main_1): Update.
596 (print_gdb_help): Update.
597
9cab7ecd
AT
5982019-09-11 Ali Tamur <tamur@google.com>
599
600 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
601 implementation.
602
67547d89
CB
6032019-09-11 Christian Biesinger <cbiesinger@google.com>
604
605 * dbxread.c (read_dbx_symtab): Update.
606 * dwarf2read.c (load_partial_dies): Update.
607 * mdebugread.c (parse_partial_symbols): Update.
608 (handle_psymbol_enumerators): Update.
609 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
610 * psymtab.c (add_psymbol_to_bcache): Likewise.
611 (add_psymbol_to_list): Likewise.
612 * symtab.c (symbol_set_names): Likewise.
613 * symtab.h (symbol_set_names): Likewise.
614 * xcoffread.c (scan_xcoff_symtab): Update.
615
64b2d4a0
TT
6162019-09-11 Tom Tromey <tom@tromey.com>
617
618 * symfile-mem.c (symbol_file_add_from_memory): Use
619 bfd_set_filename.
620 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
621 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
622
3b00ef10
TT
6232019-09-10 Tom Tromey <tromey@adacore.com>
624
625 * dwarf-index-write.c (write_psymbols): Extend error message.
626 (debug_names::insert): Add Ada code.
627 (debug_names::write_psymbols): Remove Ada check.
628 (debug_names) <m_string_obstack>: New member.
629 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
630 (gdb_index_symbol_name_matcher::matches): Remove.
631 (mapped_index_base::find_name_components_bounds): Add "lang"
632 parameter.
633 (mapped_index_base::build_name_components): Also split names
634 according to Ada syntax.
635 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
636 type of "match_callback".
637 (check_match, check_find_bounds_finds)
638 (dw2_expand_symtabs_matching): Update.
639 (dw2_debug_names_iterator): Add new constructor.
640 (dw2_debug_names_map_matching_symbols): New function.
641 (dw2_debug_names_expand_symtabs_matching): Update.
642 (dwarf2_debug_names_functions): Use
643 dw2_debug_names_map_matching_symbols.
644
aa391654
TT
6452019-09-10 Tom Tromey <tromey@adacore.com>
646
647 * dwarf2read.c (dw2_get_file_names_reader): Add the
648 CU's file name to the results.
649
b054970d
TT
6502019-09-10 Tom Tromey <tromey@adacore.com>
651
652 * ada-lang.c (add_nonlocal_symbols): Combine calls to
653 map_matching_symbols. Update.
654 * dwarf2read.c (dw2_map_matching_symbols): Update.
655 * psymtab.c (match_partial_symbol): Change type; update.
656 (psym_map_matching_symbols): Likewise.
657 * symfile-debug.c (debug_qf_map_matching_symbols): Change
658 type; update.
659 * symfile.h (struct quick_symbol_functions)
660 <map_matching_symbols>: Change "name" to be a lookup_name_info.
661 Remove "match".
662
6a3dbf1b
TT
6632019-09-10 Tom Tromey <tromey@adacore.com>
664
665 * psymtab.c (map_block): Remove.
666 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
667 * symtab.c (iterate_over_symbols_terminated): New function.
668 * symtab.c (iterate_over_symbols_terminated): Declare.
669
6969f124
TT
6702019-09-10 Tom Tromey <tromey@adacore.com>
671
672 * ada-lang.c (ada_iterate_over_symbols): Return bool.
673 * language.h (struct language_defn) <la_iterate_over_symbols>:
674 Return bool.
675 * symtab.c (iterate_over_symbols): Return bool.
676 * symtab.h (iterate_over_symbols): Return bool.
677
199b4314
TT
6782019-09-10 Tom Tromey <tromey@adacore.com>
679
680 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
681 (add_nonlocal_symbols): Update.
682 * dwarf2read.c (dw2_map_matching_symbols): Change type.
683 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
684 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
685 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
686 Change type of "callback". Remove "data".
687
a084a2a6
AT
688
6892019-09-09 Ali Tamur <tamur@google.com>
690
691 * dwarf2read.c (comp_unit_head): Update comment.
692 (dwarf2_dwo_name): New function declaration.
693 (dwarf_unit_type_name): New function declaration.
694 (read_comp_unit_head): Add support for new compilation units,
695 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
696 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
697 (currently named as "signature") in their header. Also clarify error
698 messages.
699 (lookup_dwo_id): New function. Returns the dwo id of the given
700 compile unit.
701 (lookup_dwo_unit): Use the new lookup_dwo_id function.
702 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
703 functions.
704 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
705 (dwarf2_dwo_name): Get the dwo name if present.
706 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
707 purposes.
708
25a2915e
TT
7092019-09-09 Tom Tromey <tom@tromey.com>
710
711 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
712
e4df0874
PW
7132019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
714
715 * python/python.c (do_start_initialization): Make progname_copy static,
716 to avoid a leak report.
717
8634b462
TT
7182019-09-08 Tom Tromey <tom@tromey.com>
719
720 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
721
c7f839cb
SM
7222019-09-07 Simon Marchi <simon.marchi@efficios.com>
723
724 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
725 Change type to gdb::optional<block_enum>.
726 (dw2_symtab_iter_init): Change block_index parameter type
727 to gdb::optional<block_enum>.
728 (dw2_lookup_symbol): Change block_index parameter
729 type to block_enum.c
730 (dw2_debug_names_lookup_symbol): Likewise.
731 * psymtab.c (psym_lookup_symbol): Likewise.
732 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
733 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
734 Likewise.
735
ead0e69a
CB
7362019-09-06 Christian Biesinger <cbiesinger@google.com>
737
738 * defs.h (relocate_gdb_directory): Change int to bool in
739 signature and rename flag to relocatable.
740 * main.c (relocate_path): Likewise.
741 (relocate_gdb_directory): Likewise.
742
b16c44de
AM
7432019-09-06 Alan Modra <amodra@gmail.com>
744
745 * coffread.c (coff_symfile_read): Constify filename variable.
746 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
747 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
748 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
749 * solib.c (reload_shared_libraries_1): Likewise.
750 * symfile.c (reread_symbols): Likewise.
751 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
752 * solib-darwin.c (darwin_bfd_open): Likewise.
753 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
754
06ff036e
AB
7552019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * psymtab.c (print_partial_symbols): Handle missing domain_enum
758 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
759
4e962e74
TT
7602019-09-03 Tom Tromey <tromey@adacore.com>
761
762 * ada-valprint.c (ada_val_print_num): Don't recurse for range
763 types.
764 (has_negatives): Unbias a range type bound.
765 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
766 * gdbtypes.c (operator==): Handle new field.
767 (create_range_type): Add "bias" parameter.
768 (create_static_range_type, resolve_dynamic_range): Update.
769 * gdbtypes.h (struct range_bounds) <bias>: New member.
770 (create_range_type): Add bias parameter.
771 * printcmd.c (print_scalar_formatted): Unbias range types.
772 * value.c (unpack_long): Unbias range types.
773 (pack_long): Bias range types.
774
d90b8f26
AH
7752019-09-02 Alan Hayward <alan.hayward@arm.com>
776
777 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
778 probe arguments.
779
fe01123e
AH
7802019-09-02 Alan Hayward <alan.hayward@arm.com>
781
782 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
783 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
784 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
785 (compile_probe_arg): Likewise.
786 * probe.h (get_argument_count): Likewise.
787 * solib-svr4.c (solib_event_probe_action): Likewise.
788 * stap-probe.c (stap_probe::get_argument_count): Likewise.
789
e661ef01
AH
7902019-09-02 Alan Hayward <alan.hayward@arm.com>
791
792 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
793 code to here...
794 (svr4_create_solib_event_breakpoints): ...from here.
795
47a536d9
SDJ
7962019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
797
798 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
799 suffix from warning message.
800
d6a00eba
TT
8012019-08-30 Tom Tromey <tom@tromey.com>
802
803 * tui/tui-winsource.h (struct tui_source_window_base)
804 <refresh_all>: Don't declare.
805 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
806 Remove.
807 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
808 tui_show_locator_content.
809 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
810 declare.
811 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
812 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
813 declare.
814
55b2657b
TT
8152019-08-30 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
818
12a8555a
TT
8192019-08-30 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-stack.c (_initialize_tui_stack): Move later.
822 Remove unnecessary forward declarations.
823
900ac242
TT
8242019-08-30 Tom Tromey <tom@tromey.com>
825
826 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
827 rerender.
828 (tui_update_locator_fullname, tui_show_frame_info): Don't call
829 tui_show_locator_content.
830
99ab33fb
TT
8312019-08-30 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
834 (tui_locator_window::rerender): Rewrite using body of previous
835 tui_show_locator_content.
836
e594a5d1
TT
8372019-08-30 Tom Tromey <tom@tromey.com>
838
839 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
840 set_locator_fullname>: New methods.
841 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
842 Rename from tui_set_locator_fullname.
843 (tui_locator_window::set_locator_info): Rename from
844 tui_set_locator_info. Return bool.
845 (tui_update_locator_fullname, tui_show_frame_info): Update.
846
715bb467
TT
8472019-08-30 Tom Tromey <tom@tromey.com>
848
849 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
850
772f3f03
TT
8512019-08-30 Tom Tromey <tom@tromey.com>
852
853 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
854 call touchwin.
855
108e13ab
TT
8562019-08-30 Tom Tromey <tom@tromey.com>
857
858 * tui/tui-wingeneral.c (box_win): Assume win_info and
859 win_info->handle cannot be NULL.
860
cdaa6eb4
TT
8612019-08-30 Tom Tromey <tom@tromey.com>
862
863 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
864 refresh_window>: Declare.
865 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
866 resize.
867 (tui_data_item_window::rerender): Rename from
868 tui_display_register.
869 (tui_data_item_window::refresh_window): New method.
870 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
871 no-op.
872
89df7f90
TT
8732019-08-30 Tom Tromey <tom@tromey.com>
874
875 * tui/tui-regs.h (struct tui_data_window) <regs_content,
876 regs_column_count, current_group>: Move later. Now private.
877 <get_current_group>: New method.
878 * tui/tui-regs.c (tui_reg_command): Update.
879 * tui/tui-layout.c (tui_set_layout): Update.
880
1bf2866a
TT
8812019-08-30 Tom Tromey <tom@tromey.com>
882
883 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
884 (tui_data_window::rerender): Don't call
885 check_and_display_highlight_if_needed.
886 (tui_data_window::refresh_all): Remove call to
887 erase_data_content.
888
0670413d
TT
8892019-08-30 Tom Tromey <tom@tromey.com>
890
891 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
892 (tui_data_window::display_registers_from)
893 (tui_data_window::display_reg_element_at_line)
894 (tui_data_window::display_registers_from_line): Remove checks of
895 "empty".
896
18bb55c7
TT
8972019-08-30 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
900 Don't declare.
901 * tui/tui-regs.c (tui_data_window::show_registers): Call
902 rerender.
903 (tui_data_window::rerender): Rename from display_all_data.
904 (tui_data_window::rerender): Remove old implementation.
905
1f6d2f10
TT
9062019-08-30 Tom Tromey <tom@tromey.com>
907
908 * tui/tui-regs.c (tui_data_window::display_all_data): Change
909 text.
910 * tui/tui-data.h (NO_DATA_STRING): Remove define.
911
16d01f9c
BW
9122019-08-29 Bernhard Wodok <barto@gmx.net>
913 Sergio Durigan Junior <sergiodj@redhat.com>
914
915 PR win32/24284
916 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
917
d8f27c60
AB
9182019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
921 when searching for types.
922
1f20c35e
AB
9232019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * f-lang.c (f_language_defn): Use f_print_typedef.
926 * f-lang.h (f_print_typedef): Declare.
927 * f-typeprint.c (f_print_typedef): Define.
928
550105b7
CB
9292019-08-27 Christian Biesinger <cbiesinger@google.com>
930
931 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
932
4acfdd20
AB
9332019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * cli/cli-utils.c (info_print_options_defs): Delete.
936 (make_info_print_options_def_group): Delete.
937 (extract_info_print_options): Delete.
938 (info_print_command_completer): Delete.
939 (info_print_args_help): Add extra parameter, and optionally
940 include text about -n flag.
941 * cli/cli-utils.h (struct info_print_options): Delete.
942 (extract_info_print_options): Delete declaration.
943 (info_print_command_completer): Delete declaration.
944 (info_print_args_help): Add extra parameter, extend header
945 comment.
946 * python/python.c (gdbpy_rbreak): Pass additional parameter to
947 search_symbols.
948 * stack.c (struct info_print_options): New type.
949 (info_print_options_defs): New file scoped variable.
950 (make_info_print_options_def_group): New static function.
951 (info_print_command_completer): New static function.
952 (info_locals_command): Update to use new local functions.
953 (info_args_command): Likewise.
954 (_initialize_stack): Add extra parameter to calls to
955 info_print_args_help.
956 * symtab.c (search_symbols): Add extra parameter, use this to
957 possibly excluse non-debug symbols.
958 (symtab_symbol_info): Add extra parameter, which is passed on to
959 search_symbols.
960 (struct info_print_options): New type.
961 (info_print_options_defs): New file scoped variable.
962 (make_info_print_options_def_group): New static function.
963 (info_print_command_completer): New static function.
964 (info_variables_command): Update to use local functions, and pass
965 extra parameter through to symtab_symbol_info.
966 (info_functions_command): Likewise.
967 (info_types_command): Pass additional argument through to
968 symtab_symbol_info.
969 (rbreak_command): Pass extra argument to search_symbols.
970 (_initialize_symtab): Add extra arguments for calls to
971 info_print_args_help, and update help text for 'info variables',
972 'whereis', and 'info functions' commands.
973 * symtab.h (search_symbols): Add extra argument to declaration.
974 * NEWS: Mention new flags.
975
9aa55206
CB
9762019-08-26 Christian Biesinger <cbiesinger@google.com>
977
978 * symtab.c (lookup_static_symbol): Call the new function (and move
979 it down to be next to lookup_global_symbol).
980 (struct global_sym_lookup_data): Add block_enum member and rename to...
981 (struct global_or_static_sym_lookup_data): ...this.
982 (lookup_symbol_global_iterator_cb): Pass block_index instead of
983 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
984 (lookup_symbol_global_or_static_iterator_cb): ...this.
985 (lookup_global_or_static_symbol): New function.
986 (lookup_global_symbol): Call new function.
987
5c31b358
TV
9882019-08-26 Tom de Vries <tdevries@suse.de>
989
990 PR c++/24852
991 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
992 when pc_probe.prob == NULL.
993
23c13d42
SM
9942019-08-25 Simon Marchi <simon.marchi@efficios.com>
995
996 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
997 variable symbol_linkage to symbol_linkage_.
998
beadd3e8
SM
9992019-08-25 Simon Marchi <simon.marchi@efficios.com>
1000
1001 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1002 represent whether the symbol is static, dynamic, or we don't
1003 know.
1004
e3ec872f
YS
10052019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1006
1007 * gdb/rx-tdep.c (rx_register_names): New.
1008 (rx_register_name): Delete.
1009 (rx_psw_type): Delete.
1010 (rx_fpsw_type): Delete.
1011 (rx_register_type): Delete.
1012 (rx_gdbarch_init): Convert target-descriptions.
1013 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1014 * gdb/features/Makefile: Add rx.xml.
1015 * gdb/features/rx.xml: New.
1016 * gdb/features/rx.c: Generated.
1017 * gdb/NEWS: Mention target description support.
1018
d0509ba4
CB
10192019-08-22 Christian Biesinger <cbiesinger@google.com>
1020
1021 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1022 *slot_ptr.
1023
2d41fa11
SDJ
10242019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1025
1026 * configure.ac: Don't check for 'dlfcn.h' (moved to
1027 gdbsupport/common.m4).
1028 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1029 'gdbsupport/'.
1030 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1031 * compile/compile-c-support.c: Include
1032 'gdbsupport/gdb-dlfcn.h'.
1033 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1034 * gdb-dlfcn.c: Move to...
1035 * gdbsupport/gdb-dlfcn.c: ... here.
1036 * gdb-dlfcn.h: Move to...
1037 * gdbsupport/gdb-dlfcn.h: ... here.
1038
de8af808
SL
10392019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1040
1041 * nios2-tdep.c (struct reg_value): Improve comments. Make
1042 the offset field signed.
1043
27204489
CB
10442019-08-22 Christian Biesinger <cbiesinger@google.com>
1045
1046 * python/lib/gdb/__init__.py (_execute_file): New function.
1047 * python/python.c (python_run_simple_file): Call gdb._execute_file
1048 on Windows.
1049
43771869
AB
10502019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1053 all uses as this was never set to anything but a zero value.
1054
26c957f1
PA
10552019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1056
1057 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1058
c07aae6e
CB
10592019-08-21 Christian Biesinger <cbiesinger@google.com>
1060
1061 * tui/tui-data.h (tui_gen_win_info): Add an =default
1062 move constructor, required by some GCC versions.
1063
3960cb7a
JF
10642019-08-21 Jinke Fan <fanjinke51@yeah.net>
1065
1066 * go32-nat.c (go32_sysinfo): Add hygon_p.
1067
04c72a68
TT
10682019-08-20 Tom Tromey <tom@tromey.com>
1069
1070 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1071 line_from_reg_element_no, first_reg_element_no_inline,
1072 display_all_data, delete_data_content_windows,
1073 erase_data_content>: Now private.
1074
072272ce
TT
10752019-08-20 Tom Tromey <tom@tromey.com>
1076
1077 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1078 (tui_unhighlight_win, tui_highlight_win)
1079 (tui_win_info::make_window): Update.
1080 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1081
973961bd
TT
10822019-08-20 Tom Tromey <tom@tromey.com>
1083
1084 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1085 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1086 (MAX_PID_WIDTH): Move to tui-stack.c.
1087 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1088 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1089 (MAX_PID_WIDTH): Move from tui-data.h.
1090
ab0e1f1a
TT
10912019-08-20 Tom Tromey <tom@tromey.com>
1092
1093 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1094 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1095 (box_win): Update.
1096 (tui_gen_win_info::make_window): Rename from tui_make_window.
1097 (tui_win_info::make_window): New method.
1098 (tui_gen_win_info::make_visible): Update.
1099 * tui/tui-source.c (tui_source_window::set_contents): Update.
1100 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1101 (tui_data_window::display_registers_from): Update.
1102 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1103 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1104 Declare.
1105 <can_box>: Remove.
1106 <title>: Remove.
1107 (struct tui_win_info) <make_window>: Declare.
1108 <can_box>: Now virtual.
1109 <title>: New member.
1110 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1111 * tui/tui-command.c (tui_cmd_window::resize): Update.
1112
100c2bf3
TT
11132019-08-20 Tom Tromey <tom@tromey.com>
1114
1115 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1116 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1117 (tui_data_window::check_register_values): Update.
1118
fa4dc567
TT
11192019-08-20 Tom Tromey <tom@tromey.com>
1120
1121 * tui/tui-regs.h (struct tui_data_window): Use
1122 DISABLE_COPY_AND_ASSIGN.
1123 <regs_content>: Change type, removing unique_ptr.
1124 <tui_data_window>: Add move constructor.
1125 * tui/tui-regs.c (tui_data_window::show_registers)
1126 (tui_data_window::show_register_group)
1127 (tui_data_window::display_registers_from)
1128 (tui_data_window::display_registers_from)
1129 (tui_data_window::first_data_item_displayed)
1130 (tui_data_window::delete_data_content_windows)
1131 (tui_data_window::rerender, tui_data_window::refresh_window)
1132 (tui_data_window::check_register_values): Update.
1133
ca02d7c8
TT
11342019-08-20 Tom Tromey <tom@tromey.com>
1135
1136 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1137 show_register_group>: Declare.
1138 (tui_show_register_group): Don't declare.
1139 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1140 tui_show_registers.
1141 (tui_data_window::show_register_group): Rename from
1142 tui_show_register_group.
1143 (tui_data_window::check_register_values, tui_reg_command):
1144 Update.
1145 * tui/tui-layout.c (tui_set_layout): Update.
1146
63356bfd
TT
11472019-08-20 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1150 Declare.
1151 (tui_check_register_values): Don't declare.
1152 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1153 from tui_check_register_values.
1154 * tui/tui-hooks.c (tui_register_changed): Update.
1155
42cc14a7
TT
11562019-08-20 Tom Tromey <tom@tromey.com>
1157
1158 * tui/tui-regs.c (tui_reg_layout): Move later.
1159 (tui_show_registers): Don't enable TUI mode or change layout.
1160
b9ad3686
TT
11612019-08-20 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui-regs.h (struct tui_data_item_window)
1164 <~tui_data_item_window>: Remove.
1165 <content>: Now a unique_xmalloc_ptr.
1166 * tui/tui-regs.c (tui_register_format): Return a
1167 unique_xmalloc_ptr.
1168 (tui_get_register): Update.
1169 (~tui_data_item_window): Remove.
1170 (tui_data_window::display_registers_from, tui_display_register):
1171 Update.
1172 * tui/tui-io.h (tui_expand_tabs): Update.
1173 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1174 Remove "col" parameter.
1175
8e114aab
TT
11762019-08-20 Tom Tromey <tom@tromey.com>
1177
1178 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1179 field.
1180 * tui/tui-regs.c (~tui_data_item_window): Update.
1181
1a4f81dd
TT
11822019-08-20 Tom Tromey <tom@tromey.com>
1183
1184 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1185 earlier.
1186
0f8d8876
TT
11872019-08-20 Tom Tromey <tom@tromey.com>
1188
1189 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1190
605dc2c2
TT
11912019-08-20 Tom Tromey <tom@tromey.com>
1192
1193 * tui/tui-source.h (struct tui_source_window): Update.
1194 * tui/tui-regs.c (tui_show_registers): Update.
1195 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1196 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1197 (NO_REGS_STRING): Remove defines.
1198
aedbe3bb
CM
11992019-08-20 Conrad Meyer <cem@FreeBSD.org>
1200
1201 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1202 unnecessary thread walk if remote doesn't support the packet.
1203
7ce8f214
TT
12042019-08-19 Tom Tromey <tromey@adacore.com>
1205
1206 * python/py-value.c (value_has_field): Fix indentation.
1207
f21c2bd7
TT
12082019-08-19 Tom Tromey <tromey@adacore.com>
1209
1210 * printcmd.c (do_one_display, info_display_command): Update.
1211 * block.h (contained_in): Return bool. Add allow_nested
1212 parameter.
1213 * block.c (contained_in): Return bool. Add allow_nested
1214 parameter.
1215
d806ea2d
TT
12162019-08-19 Tom Tromey <tom@tromey.com>
1217
1218 * configure: Rebuild.
1219 * configure.ac: Disallow the combination of -static-libstdc++ and
1220 source highlight.
1221 * source-cache.c (get_language_name): Handle rust.
1222 (source_cache::get_source_lines): Ignore highlighting exceptions.
1223
398fdd60
TT
12242019-08-16 Tom Tromey <tom@tromey.com>
1225
1226 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1227 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1228 (struct tui_source_window_base) <make_visible, refresh_window,
1229 resize>: Remove methods.
1230 <execution_info>: Remove field.
1231 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1232 (tui_show_source_line, tui_source_window_base)
1233 (~tui_source_window_base): Update.
1234 (tui_source_window_base::resize)
1235 (tui_source_window_base::make_visible)
1236 (tui_source_window_base::refresh_window): Remove.
1237 (tui_source_window_base::update_exec_info): Update.
1238 * tui/tui-source.c (tui_source_window::set_contents): Update.
1239 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1240
e699d331
TT
12412019-08-16 Tom Tromey <tom@tromey.com>
1242
1243 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1244 deprecated_query_hook.
1245
bb01dbfc
TT
12462019-08-16 Tom Tromey <tom@tromey.com>
1247
1248 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1249 (tui_update_source_windows_with_line): Update.
1250 * tui/tui-source.h (struct tui_source_window)
1251 <show_symtab_source>: Declare.
1252 (tui_show_symtab_source): Don't declare.
1253 * tui/tui-source.c (tui_show_symtab_source): Rename from
1254 tui_show_symtab_source.
1255
81c82c4b
TT
12562019-08-16 Tom Tromey <tom@tromey.com>
1257
1258 * tui/tui-winsource.h (struct tui_source_window_base)
1259 <set_contents>: Declare.
1260 * tui/tui-winsource.c
1261 (tui_source_window_base::update_source_window_as_is): Update.
1262 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1263 Declare.
1264 (tui_set_source_content): Don't declare.
1265 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1266 tui_set_source_content.
1267 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1268 Declare.
1269 (tui_set_disassem_content): Don't declare.
1270 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1271 tui_set_disassem_content.
1272
2ddaf614
TT
12732019-08-16 Tom Tromey <tom@tromey.com>
1274
1275 * tui/tui-winsource.h (struct tui_source_window_base)
1276 <update_breakpoint_info>: Declare.
1277 (tui_update_breakpoint_info): Don't declare.
1278 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1279 (tui_update_all_breakpoint_info): Update.
1280 (tui_source_window_base::update_breakpoint_info): Rename from
1281 tui_update_breakpoint_info.
1282 (tui_source_window_base::update_exec_info): Update.
1283
017f9828
TT
12842019-08-16 Tom Tromey <tom@tromey.com>
1285
1286 * tui/tui-winsource.h (struct tui_source_window_base)
1287 <update_source_window>: Declare.
1288 (tui_update_source_window): Don't declare.
1289 * tui/tui-winsource.c
1290 (tui_source_window_base::update_source_window): Rename from
1291 tui_update_source_window.
1292 (tui_source_window_base::rerender): Update.
1293 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1294 * tui/tui-disasm.c (tui_show_disassem)
1295 (tui_show_disassem_and_update_source)
1296 (tui_disasm_window::maybe_update): Update.
1297
ed8358e9
TT
12982019-08-16 Tom Tromey <tom@tromey.com>
1299
1300 * tui/tui-winsource.h (struct tui_source_window_base)
1301 <update_source_window_as_is>: Declare.
1302 (tui_update_source_window_as_is): Don't declare.
1303 * tui/tui-winsource.c (tui_update_source_window): Update
1304 (tui_source_window_base::update_source_window_as_is): Rename from
1305 tui_update_source_window_as_is.
1306 (tui_source_window_base::refill): Update.
1307 * tui/tui-source.c (tui_show_symtab_source): Update.
1308 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1309 Update.
1310
20149b6b
TT
13112019-08-16 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui-winsource.h (tui_update_source_window)
1314 (tui_update_source_window_as_is): Remove "noerror" parameter.
1315 * tui/tui-winsource.c (tui_update_source_window)
1316 (tui_update_source_window_as_is): Remove "noerror" parameter.
1317 (tui_update_source_windows_with_addr)
1318 (tui_update_source_windows_with_line)
1319 (tui_source_window_base::rerender)
1320 (tui_source_window_base::refill): Update.
1321 * tui/tui-source.h (tui_set_source_content)
1322 (tui_show_symtab_source): Remove "noerror" parameter.
1323 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1324 parameter.
1325 (tui_show_symtab_source): Likewise.
1326 (tui_source_window::maybe_update): Update.
1327 * tui/tui-disasm.c (tui_show_disassem)
1328 (tui_show_disassem_and_update_source)
1329 (tui_disasm_window::do_scroll_vertical)
1330 (tui_disasm_window::maybe_update): Update.
1331
2d83e710
TT
13322019-08-16 Tom Tromey <tom@tromey.com>
1333
1334 * tui/tui.c (tui_is_window_visible): Update.
1335 * tui/tui-wingeneral.c (tui_make_window)
1336 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1337 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1338 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1339 (tui_set_win_height_command, parse_scrolling_args): Update.
1340 * tui/tui-source.c (tui_source_window::style_changed): Update.
1341 * tui/tui-regs.c (tui_show_registers)
1342 (tui_data_window::first_data_item_displayed)
1343 (tui_data_window::delete_data_content_windows)
1344 (tui_check_register_values, tui_reg_command): Update.
1345 * tui/tui-disasm.c (tui_show_disassem): Update.
1346 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1347 method.
1348 <is_visible>: Remove field.
1349 * tui/tui-data.c (tui_next_win, tui_prev_win)
1350 (tui_delete_invisible_windows): Update.
1351
d4ab829a
TT
13522019-08-16 Tom Tromey <tom@tromey.com>
1353
1354 * tui/tui-winsource.h (struct tui_source_window_base)
1355 <m_has_locator>: Remove.
1356 * tui/tui-layout.c (show_source_disasm_command, show_data)
1357 (show_source_or_disasm_and_command): Update.
1358
aa7ca1bb
AH
13592019-08-16 Alan Hayward <alan.hayward@arm.com>
1360
1361 * NEWS (Other MI changes): New subsection.
1362 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1363 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1364 * arch-utils.c (default_get_pc_address_flags): New function.
1365 * arch-utils.h (default_get_pc_address_flags): New declaration.
1366 * gdbarch.sh: Add get_pc_address_flags.
1367 * gdbarch.c: Regenerate.
1368 * gdbarch.h: Likewise.
1369 * stack.c (print_pc): New function.
1370 (print_frame_info) (print_frame): Call print_pc.
1371
6eac171f
TV
13722019-08-16 Tom de Vries <tdevries@suse.de>
1373
1374 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1375 print_objfile_section_info.
1376
3df505f6
TT
13772019-08-15 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1380 calling update_cmdwin_start_line.
1381 * tui/tui-winsource.h (struct tui_source_window_base)
1382 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1383 <rerender>: Declare.
1384 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1385 Call rerender.
1386 (tui_source_window_base::set_new_height): Remove.
1387 (tui_source_window_base::rerender): Rename from
1388 do_make_visible_with_new_height.
1389 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1390 resize method.
1391 (tui_win_info::make_invisible_and_set_new_height)
1392 (tui_win_info::make_visible_with_new_height): Remove.
1393 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1394 Declare.
1395 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1396 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1397 do_make_visible_with_new_height>: Don't declare.
1398 <rerender>: Declare.
1399 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1400 set_new_height.
1401 (tui_data_window::do_make_visible_with_new_height): Remove.
1402 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1403 call tui_show_locator_content.
1404 (tui_gen_win_info::resize): Call rerender.
1405 (show_source_or_disasm_and_command): Don't call
1406 tui_show_locator_content.
1407 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1408 method.
1409 (struct tui_win_info) <rerender>: Declare.
1410 <set_new_height, make_invisible_and_set_new_height,
1411 make_visible_with_new_height>: Don't declare.
1412 * tui/tui-data.c (tui_win_list::rerender): New method.
1413 * tui/tui-command.h (struct tui_cmd_window)
1414 <do_make_visible_with_new_height>: Don't declare.
1415 * tui/tui-command.c
1416 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1417
272560b5
TT
14182019-08-15 Tom Tromey <tromey@adacore.com>
1419
1420 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1421 * ada-lang.c (ada_enum_name): Likewise.
1422
08235187
CB
14232019-08-15 Christian Biesinger <cbiesinger@google.com>
1424
1425 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1426 leading underscore.
1427 (GdbOutputErrorFile): Likewise.
1428 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1429 accordingly.
1430 (execute_unwinders): Rename to have a leading underscore.
1431 (auto_load_packages): Likewise.
1432 (global scope): Adjust call to auto_load_packages accordingly.
1433 (GdbSetPythonDirectory): Likewise.
1434 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1435 instead of execute_unwinders.
1436
db502012
TT
14372019-08-15 Tom Tromey <tom@tromey.com>
1438
1439 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1440 (show_data): Don't change window visibility.
1441 (tui_gen_win_info::resize): Remove special case for command
1442 window. Use wresize, when available.
1443 (show_source_or_disasm_and_command): Don't change window
1444 visibility.
1445 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1446 <make_visible>: New method.
1447 * tui/tui-command.c (tui_cmd_window::resize): New method.
1448
3891b65e
TT
14492019-08-15 Tom Tromey <tom@tromey.com>
1450
1451 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1452 (struct tui_source_windows): New.
1453 * tui/tui-winsource.c (tui_display_main): Update.
1454 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1455 (new_height_ok, parse_scrolling_args): Update.
1456 * tui/tui-layout.c (show_layout, show_data): Update.
1457 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1458 (tui_add_to_source_windows): Don't declare.
1459 * tui/tui-data.c (source_windows, tui_source_windows)
1460 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1461
ee556432
TT
14622019-08-15 Tom Tromey <tom@tromey.com>
1463
1464 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1465 Rename from reset.
1466 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1467 * tui/tui-layout.c (show_source_disasm_command, show_data):
1468 Update.
1469 (tui_gen_win_info::resize): Rename.
1470 (show_source_or_disasm_and_command): Update.
1471 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1472 reset.
1473
46f438e3
TT
14742019-08-15 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1477 * tui/tui-interp.c (tui_interp::init): Don't call
1478 tui_initialize_static_data.
1479 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1480
f4ce562c
TT
14812019-08-15 Tom Tromey <tom@tromey.com>
1482
1483 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1484 examine tui_win_list.
1485
c398c3d0
TT
14862019-08-15 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1489 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1490 tui_clear_source_content.
1491 (tui_clear_source_content): Remove.
1492 (tui_source_window_base::do_erase_source_content): Hoist call to
1493 content.clear().
1494 * tui/tui-stack.c (tui_show_frame_info): Don't call
1495 tui_clear_source_content.
1496
e25d2004
TT
14972019-08-15 Tom Tromey <tom@tromey.com>
1498
1499 * tui/tui-winsource.h (struct tui_source_window_base)
1500 <do_erase_source_content>: New method.
1501 <erase_source_content>: New method.
1502 (tui_erase_source_content): Don't declare.
1503 * tui/tui-winsource.c (tui_clear_source_content): Update.
1504 (tui_source_window_base::do_erase_source_content): Rename from
1505 tui_erase_source_content.
1506 (tui_source_window_base::show_source_content): Update.
1507 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1508 * tui/tui-source.h (struct tui_source_window)
1509 <erase_source_content>: New method.
1510 * tui/tui-disasm.h (struct tui_disasm_window)
1511 <erase_source_content>: New method.
1512
002f15c2
TT
15132019-08-15 Tom Tromey <tom@tromey.com>
1514
1515 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1516 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1517 constructor.
1518 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1519 * tui/tui-source.c (tui_set_source_content): Update.
1520 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1521
c9033fe8
TT
15222019-08-15 Tom Tromey <tom@tromey.com>
1523
1524 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1525 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1526 tui-source.c.
1527 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1528 Declare.
1529 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1530 method.
1531 (tui_source_window::maybe_update): Update.
1532
088f37dd
TT
15332019-08-15 Tom Tromey <tom@tromey.com>
1534
1535 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1536 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1537 tui-disasm.c.
1538 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1539 Declare.
1540 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1541 method.
1542 (tui_disasm_window::maybe_update): Update.
1543
a54700c6
TT
15442019-08-15 Tom Tromey <tom@tromey.com>
1545
1546 * tui/tui-winsource.h (struct tui_source_window_base)
1547 <maybe_update>: Declare.
1548 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1549 method.
1550 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1551 Declare.
1552 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1553 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1554 Declare.
1555 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1556
e2a678a5
TT
15572019-08-15 Tom Tromey <tom@tromey.com>
1558
1559 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1560
f2dda477
TT
15612019-08-15 Tom Tromey <tom@tromey.com>
1562
1563 * tui/tui-wingeneral.c: Include tui-stack.h.
1564 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1565 (struct tui_locator_window): Move from tui-data.h.
1566 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1567 (tui_initialize_static_data): Move from tui-data.c.
1568 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1569 (struct tui_locator_window): Move to tui-stack.c.
1570 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1571 (tui_initialize_static_data): Move to tui-stack.c.
1572
ed4a1084
TT
15732019-08-15 Tom Tromey <tom@tromey.com>
1574
1575 * tui/tui-layout.c (show_source_disasm_command)
1576 (show_source_or_disasm_and_command): Use make_visible method, not
1577 tui_make_window.
1578 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1579 Remove.
1580
65962b20
TT
15812019-08-15 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-wingeneral.h (tui_make_window): Update.
1584 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1585 parameter.
1586 (tui_gen_win_info::make_visible): Update.
1587 * tui/tui-regs.c (tui_data_window::display_registers_from):
1588 Update.
1589 * tui/tui-layout.c (show_source_disasm_command)
1590 (show_source_or_disasm_and_command): Update.
1591 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1592 (enum tui_box): Remove.
1593 (struct tui_win_info) <can_box>: New method.
1594 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1595 method.
1596
2208ee91
TV
15972019-08-15 Tom de Vries <tdevries@suse.de>
1598
1599 * linux-nat-trad.c: Include gdbarch.h.
1600
75faf5c4
AH
16012019-08-14 Alan Hayward <alan.hayward@arm.com>
1602
1603 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1604 register sizes.
1605
b1c896b3
TT
16062019-08-14 Tom Tromey <tromey@adacore.com>
1607
1608 * darwin-nat.c: Include gdbarch.h.
1609 * darwin-nat-info.c: Include gdbarch.h.
1610
6405cd73
TT
16112019-08-13 Tom Tromey <tom@tromey.com>
1612
1613 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1614 Remove.
1615 * tui/tui-data.c (tui_initialize_static_data): Update.
1616
5216580d
TT
16172019-08-13 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-winsource.h (struct tui_exec_info_window)
1620 <~tui_exec_info_window, maybe_allocate_content, get_content,
1621 m_content>: Remove.
1622 (struct tui_source_window_base) <set_exec_info_content,
1623 show_exec_info_content>: Don't declare.
1624 * tui/tui-winsource.c
1625 (tui_exec_info_window::maybe_allocate_content): Remove.
1626 (tui_source_window_base::update_exec_info): Rename from
1627 set_exec_info_content.
1628 (tui_source_window_base::show_exec_info_content)
1629 (tui_source_window_base::update_exec_info): Remove.
1630
93858ad3
TT
16312019-08-13 Tom Tromey <tom@tromey.com>
1632
1633 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1634 declare.
1635 * tui/tui-winsource.c (tui_update_source_window_as_is)
1636 (tui_update_source_windows_with_addr, tui_erase_source_content):
1637 Update.
1638 (tui_clear_exec_info_content): Remove.
1639
e321e7ce
TT
16402019-08-13 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1643 declare.
1644 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1645 call tui_erase_exec_info_content.
1646 (tui_clear_exec_info_content): Rename from
1647 tui_erase_exec_info_content.
1648 (tui_clear_exec_info_content): Delete.
1649
8270ac62
TT
16502019-08-13 Tom Tromey <tom@tromey.com>
1651
1652 * tui/tui-winsource.h (struct tui_source_window_base)
1653 <show_exec_info_content>: Declare.
1654 (tui_show_exec_info_content): Don't declare.
1655 * tui/tui-winsource.c
1656 (tui_source_window_base::show_exec_info_content): Rename from
1657 tui_show_exec_info_content.
1658 (tui_source_window_base::update_exec_info): Update.
1659
7b56485d
TT
16602019-08-13 Tom Tromey <tom@tromey.com>
1661
1662 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1663 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1664 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1665 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1666 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1667 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1668 ... here.
1669
7ba913dc
TT
16702019-08-13 Tom Tromey <tom@tromey.com>
1671
1672 * tui/tui-winsource.h (struct tui_source_window_base)
1673 <update_exec_info>: Declare.
1674 (tui_update_exec_info): Don't declare.
1675 * tui/tui-winsource.c (tui_update_source_window_as_is)
1676 (tui_source_window_base::refresh_all)
1677 (tui_update_all_breakpoint_info): Update.
1678 (tui_source_window_base::update_exec_info): Rename from
1679 tui_update_exec_info.
1680 * tui/tui-stack.c (tui_show_frame_info): Update.
1681
37a4a131
TT
16822019-08-13 Tom Tromey <tom@tromey.com>
1683
1684 * tui/tui-winsource.h (struct tui_source_window_base)
1685 <set_exec_info_content>: Declare.
1686 (tui_set_exec_info_content): Don't declare.
1687 * tui/tui-winsource.c
1688 (tui_source_window_base::set_exec_info_content): Rename from
1689 tui_set_exec_info_content.
1690 (tui_update_exec_info): Update.
1691
0bd27e07
TT
16922019-08-13 Tom Tromey <tom@tromey.com>
1693
1694 * tui/tui-winsource.h (struct tui_source_window_base)
1695 <show_source_content>: Declare.
1696 (tui_show_source_content): Don't declare.
1697 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1698 (tui_source_window_base::show_source_content): Rename from
1699 tui_show_source_content.
1700 (tui_source_window_base::refresh_all): Update.
1701 * tui/tui-layout.c (show_source_disasm_command)
1702 (show_source_or_disasm_and_command): Update.
1703
b4ef5aeb
TT
17042019-08-13 Tom Tromey <tom@tromey.com>
1705
1706 * tui/tui-winsource.c (tui_erase_source_content)
1707 (tui_show_source_content, tui_source_window_base::refresh_all):
1708 Update.
1709 * tui/tui-wingeneral.h
1710 (tui_check_and_display_highlight_if_needed): Don't declare.
1711 * tui/tui-wingeneral.c
1712 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1713 check_and_display_highlight_if_needed.
1714 * tui/tui-win.c (tui_rehighlight_all)
1715 (tui_win_info::make_visible_with_new_height): Update.
1716 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1717 (tui_data_window::erase_data_content)
1718 (tui_data_window::display_all_data): Update.
1719 * tui/tui-data.h (struct tui_win_info)
1720 <check_and_display_highlight_if_needed>: Declare.
1721
fede5273
TT
17222019-08-13 Tom Tromey <tom@tromey.com>
1723
1724 * tui/tui-win.c (tui_resize_all): Call
1725 tui_delete_invisible_windows.
1726 * tui/tui-layout.c (show_layout): Call
1727 tui_delete_invisible_windows.
1728 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1729 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1730
22c3f490
TT
17312019-08-13 Tom Tromey <tom@tromey.com>
1732
1733 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1734 tui_add_win_to_layout.
1735
16cb7910
TT
17362019-08-13 Tom Tromey <tom@tromey.com>
1737
1738 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1739 * tui/tui-layout.c (tui_default_win_height): Now static.
1740
cc0c3ffb
TT
17412019-08-13 Tom Tromey <tom@tromey.com>
1742
1743 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1744 single switch.
1745 (show_source_disasm_command, show_source_or_disasm_and_command):
1746 Don't check current layout.
1747
3f3ffe54
TT
17482019-08-13 Tom Tromey <tom@tromey.com>
1749
1750 * tui/tui-wingeneral.c (make_all_visible): Remove.
1751 (tui_make_all_invisible): Simplify.
1752 * tui/tui-layout.c (tui_make_all_invisible): Move from
1753 tui-wingeneral.c; simplify.
1754 (show_layout): Hoist call to tui_make_all_invisible.
1755 (show_data): Don't call tui_make_all_invisible.
1756
69258091
TT
17572019-08-13 Tom Tromey <tom@tromey.com>
1758
1759 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1760 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1761
62cf57fe
TT
17622019-08-13 Tom Tromey <tom@tromey.com>
1763
1764 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1765 tui-data.c.
1766 (show_source_disasm_command, show_data)
1767 (show_source_or_disasm_and_command): Don't use
1768 tui_set_current_layout_to.
1769 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1770 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1771 tui-layout.c.
1772 (tui_set_current_layout_to): Remove.
1773
2afade5d
TT
17742019-08-13 Tom Tromey <tom@tromey.com>
1775
1776 * tui/tui-layout.c (tui_set_layout): Update.
1777 * tui/tui-data.h (struct tui_layout_def): Remove.
1778 (tui_layout_def): Don't declare.
1779 * tui/tui-data.c (layout_def): Remove.
1780 (tui_layout_def): Remove.
1781
a3504e96
TT
17822019-08-13 Tom Tromey <tom@tromey.com>
1783
1784 * tui/tui-winsource.h (struct tui_source_window_base)
1785 <clear_detail>: No longer "override".
1786 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1787 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1788 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1789 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1790 Remove.
1791 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1792
29c92911
TT
17932019-08-13 Tom Tromey <tromey@adacore.com>
1794
1795 * tracepoint.c: Don't include readline.h or history.h.
1796
86c6b807
TT
17972019-08-12 Tom Tromey <tom@tromey.com>
1798
1799 * configure: Rebuild.
1800 * configure.ac: Check for readline 7.
1801 * NEWS: Mention readline 7 requirement.
1802 * README: Update.
1803
5db2718c
TT
18042019-08-12 Tom Tromey <tom@tromey.com>
1805
1806 * mingw-hdep.c (gdb_select): Remove readline hack.
1807
dac36daf
PFC
18082019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1809
1810 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1811 when the function fails.
1812
1022c627
AA
18132019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1814
1815 * s390-tdep.c (s390_type_align): New function.
1816 (s390_gdbarch_init): Set it as type_align gdbarch method.
1817
eba4caf2
TV
18182019-08-09 Tom de Vries <tdevries@suse.de>
1819
1820 PR gdb/24591
1821 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1822 pc_low with relocation offset.
1823
123cd851
TT
18242019-08-07 Tom Tromey <tromey@adacore.com>
1825
1826 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1827 (print_frame_args): Update.
1828 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1829 Update.
1830 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1831 * frame.h (struct frame_arg): Add initializers.
1832 <error>: Now a unique_xmalloc_ptr.
1833
3d31bc39
AH
18342019-08-07 Alan Hayward <alan.hayward@arm.com>
1835
1836 * NEWS: Expand the Pointer Authentication entry.
1837 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1838 (aarch64_frame_unmask_lr): ... to this.
1839 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1840 Call aarch64_frame_unmask_lr.
1841 * frame.c (struct frame_info): Add "masked" variable.
1842 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1843 (fprint_frame): Check for masked pc.
1844 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1845 declarations.
1846 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1847 * stack.c (print_frame): Check for masked pc.
1848
0cf9feb9
TT
18492019-08-06 Tom Tromey <tom@tromey.com>
1850
1851 * stabsread.c (patch_block_stabs, read_one_struct_field)
1852 (read_enum_type): Use obstack_strndup.
1853 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1854 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1855 * dwarf2read.c (guess_full_die_structure_name)
1856 (anonymous_struct_prefix): Use obstack_strndup.
1857 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1858 * c-exp.y (yylex): Use obstack_strndup.
1859 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1860 (write_var_or_type): Use obstack_strndup.
1861
efba19b0
TT
18622019-08-06 Tom Tromey <tom@tromey.com>
1863
1864 * symfile.c (reread_symbols): Use obstack_strdup.
1865 * stabsread.c (read_type): Use obstack_strdup.
1866 * gdb_obstack.h (obstack_strdup): New overload.
1867 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1868 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1869 (dwarf2_canonicalize_name): Use obstack_strdup.
1870 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1871 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1872 Use obstack_strdup.
1873
f25102f7
TT
18742019-08-06 Tom Tromey <tom@tromey.com>
1875
1876 * gdb_obstack.h (obstack_strdup): Define.
1877 * gdb_obstack.c (obstack_strdup): Don't define.
1878
021887d8
TT
18792019-08-06 Tom Tromey <tom@tromey.com>
1880
1881 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1882 obstack_strdup.
1883 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1884 obstack_strdup.
1885 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1886 * stabsread.c (common_block_start): Use obstack_strdup.
1887 * objfiles.c (set_objfile_main_name, objfile): Use
1888 obstack_strdup.
1889 * namespace.c (add_using_directive): Use obstack_strdup.
1890 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1891 * jit.c (finalize_symtab): Use obstack_strdup.
1892 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1893 (guess_partial_die_structure_name, partial_die_info::fixup)
1894 (dwarf2_name): Use obstack_strdup.
1895 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1896 obstack_strdup.
1897 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1898 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1899 obstack_strdup.
1900 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1901
d2834edc
PW
19022019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1903
1904 * unittests/help-doc-selftests.c: New file.
1905 * Makefile.in: Add the new file.
1906
590042fc
PW
19072019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1908
1909 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1910 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1911 the full first line, except when FOR_VALUE_PREFIX. In this case,
1912 the trailing '.' is not output, and the first character is uppercased.
1913 (print_help_for_command): Update call to print_doc_line.
1914 (print_doc_of_command): Likewise.
1915 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1916 * cli/cli-option.c (append_indented_doc): Do not append newline.
1917 (build_help_option): Append newline after first appended_indented_doc
1918 only if a second call is done.
1919 (build_help): Append 2 new lines before each option, except the first
1920 one.
1921 * compile/compile.c (_initialize_compile): Add new lines after
1922 %OPTIONS%, when not at the end of the help.
1923 Change help doc or code
1924 producing the help doc to respect the invariants.
1925 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1926 Also removed the new line after 'Options:', as all other commands
1927 do not put an empty line between 'Options:' and the first option.
1928 * printcmd.c (_initialize_printcmd): Likewise.
1929 * stack.c (_initialize_stack): Likewise.
1930 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1931 incorrectly telling COMMAND is optional.
1932 * ada-lang.c (_initialize_ada_language): Change help doc or code
1933 producing the help doc to respect the invariants.
1934 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1935 * breakpoint.c (_initialize_breakpoint): Likewise.
1936 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1937 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1938 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1939 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1940 _initialize_cli_style): Likewise.
1941 * corelow.c (core_target_info): Likewise.
1942 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1943 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1944 * filesystem.c (_initialize_filesystem): Likewise.
1945 * frame.c (_initialize_frame): Likewise.
1946 * gnu-nat.c (add_task_commands): Likewise.
1947 * infcall.c (_initialize_infcall): Likewise.
1948 * infcmd.c (_initialize_infcmd): Likewise.
1949 * interps.c (_initialize_interpreter): Likewise.
1950 * language.c (_initialize_language): Likewise.
1951 * linux-fork.c (_initialize_linux_fork): Likewise.
1952 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1953 * maint.c (_initialize_maint_cmds): Likewise.
1954 * memattr.c (_initialize_mem): Likewise.
1955 * printcmd.c (_initialize_printcmd): Likewise.
1956 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1957 _RegEx): Likewise.
1958 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1959 * record-btrace.c (_initialize_record_btrace): Likewise.
1960 * record-full.c (_initialize_record_full): Likewise.
1961 * record.c (_initialize_record): Likewise.
1962 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1963 * regcache.c (_initialize_regcache): Likewise.
1964 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1965 _initialize_remote): Likewise.
1966 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1967 * serial.c (_initialize_serial): Likewise.
1968 * skip.c (_initialize_step_skip): Likewise.
1969 * source.c (_initialize_source): Likewise.
1970 * stack.c (_initialize_stack): Likewise.
1971 * symfile.c (_initialize_symfile): Likewise.
1972 * symtab.c (_initialize_symtab): Likewise.
1973 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1974 * top.c (init_main): Likewise.
1975 * tracefile-tfile.c (tfile_target_info): Likewise.
1976 * tracepoint.c (_initialize_tracepoint): Likewise.
1977 * tui/tui-win.c (_initialize_tui_win): Likewise.
1978 * utils.c (add_internal_problem_command): Likewise.
1979 * valprint.c (value_print_option_defs): Likewise.
1980
404f2902
FCE
19812019-08-06 Frank Ch. Eigler <fche@redhat.com>
1982
1983 PR build/24886
1984 * configure.ac: Drop enable-libmcheck support.
1985 * configure, config.in: Rebuild.
1986 * libmcheck.m4: Remove.
1987 * acinclude.m4: Don't include it.
1988 * Makefile.in: Don't distribute it.
1989 * top.c (print_gdb_configuration): Don't mention it.
1990
046bebe1
TT
19912019-08-06 Tom Tromey <tom@tromey.com>
1992
1993 * utils.c (set_output_style): Sometimes pass stream to
1994 emit_style_escape.
1995 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1996 * record-btrace.c (btrace_insn_history): Update.
1997 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1998 method.
1999 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2000 Update initializers.
2001 <m_uiout>: New field.
2002 <m_di>: Move lower.
2003 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2004 Remove "uiout" parameter.
2005 (dump_insns): Update.
2006 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2007 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2008
ddbcedf5
CB
20092019-08-06 Christian Biesinger <cbiesinger@google.com>
2010
2011 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2012 (error_in_psymtab_expansion): Likewise.
2013 (lookup_symbol_via_quick_fns): Likewise.
2014 (basic_lookup_transparent_type_quick): Likewise.
2015 (basic_lookup_transparent_type_1): Likewise.
2016
b08b16c8
TT
20172019-08-06 Tom Tromey <tromey@adacore.com>
2018
2019 * source.c (last_source_error): Now bool.
2020 (print_source_lines_base): Make "noprint" bool. Only open
2021 source file when last_source_visited changes.
2022
cb44333d
TT
20232019-08-06 Tom Tromey <tromey@adacore.com>
2024
2025 * annotate.c (annotate_source_line): Use g_source_cache.
2026 * source-cache.c (source_cache::get_plain_source_lines): Change
2027 parameters. Populate m_offset_cache.
2028 (source_cache::ensure): New method.
2029 (source_cache::get_line_charpos): New method.
2030 (extract_lines): Move lower. Change parameters.
2031 (source_cache::get_source_lines): Move lower.
2032 * source-cache.h (class source_cache): Update comment.
2033 <get_line_charpos>: New method.
2034 <get_source_lines>: Update comment.
2035 <clear>: Clear m_offset_cache.
2036 <get_plain_source_lines>: Change parameters.
2037 <ensure>: New method
2038 <m_offset_cache>: New member.
2039 * source.c (forget_cached_source_info_for_objfile): Update.
2040 (info_source_command): Use g_source_cache.
2041 (find_source_lines, open_source_file_with_line_charpos): Remove.
2042 (print_source_lines_base, search_command_helper): Use g_source_cache.
2043 * source.h (open_source_file_with_line_charpos): Don't declare.
2044 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2045 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2046 Use g_source_cache.
2047
872dceaa
TT
20482019-08-06 Tom Tromey <tromey@adacore.com>
2049
2050 * source-cache.c (source_cache::get_plain_source_lines):
2051 Remove "first_line" and "last_line" parameters.
2052 (source_cache::get_source_lines): Cache plain text.
2053 * source-cache.h (class source_cache)
2054 <get_plain_source_lines>: Update.
2055
269249d9
TT
20562019-08-06 Tom Tromey <tromey@adacore.com>
2057
2058 * source-cache.c (extract_lines): No longer a method.
2059 Changed type of parameter. Include final newline.
2060 (selftests::extract_lines_test): New function.
2061 (_initialize_source_cache): Likewise.
2062 * source-cache.h (class source_cache)
2063 <extract_lines>: Don't declare.
2064
c0e8dcd8
TT
20652019-08-06 Tom Tromey <tromey@adacore.com>
2066
2067 * breakpoint.c (init_breakpoint_sal): Update.
2068 (breakpoint): Update.
2069 * breakpoint.h (struct breakpoint) <filter>: Now a
2070 unique_xmalloc_ptr.
2071
0b27c27d
CB
20722019-08-05 Christian Biesinger <cbiesinger@google.com>
2073
2074 * NEWS: Mention dictionary access on blocks.
2075 * python/py-block.c (blpy_getitem): New function.
2076 (block_object_as_mapping): New struct.
2077 (block_object_type): Use new struct for tp_as_mapping field.
2078
4ee94178
CB
20792019-08-05 Christian Biesinger <cbiesinger@google.com>
2080
2081 * objfiles.h (objfile): Add a comment describing partial symbols.
2082
8abfcabc
TT
20832019-08-05 Tom Tromey <tromey@adacore.com>
2084
2085 * compile/compile.c (_initialize_compile): Use _(), not N_().
2086 * thread.c (_initialize_thread): Use _(), not N_().
2087 * stack.c (_initialize_stack): Use _(), not N_().
2088 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2089
2b79f376
SM
20902019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2091
2092 * dwarf2read.c (struct dw2_symtab_iterator):
2093 <want_specific_block>: Remove.
2094 <block_index>: Change type to gdb::optional.
2095 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2096 change type of BLOCK_INDEX parameter to gdb::optional.
2097 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2098 (dw2_lookup_symbol): Don't pass argument for
2099 WANT_SPECIFIC_BLOCK.
2100 (dw2_expand_symtabs_for_function): Don't pass argument for
2101 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2102 (class dw2_debug_names_iterator)
2103 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2104 parameter, change BLOCK_INDEX type to gdb::optional.
2105 <m_want_specific_block>: Remove.
2106 <m_block_index>: Change type to gdb::optional.
2107 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2108 gdb::optional. Re-write in function of gdb::optional.
2109 (dw2_debug_names_lookup_symbol): Don't pass argument for
2110 WANT_SPECIFIC_BLOCK.
2111 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2112 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2113 BLOCK_INDEX.
2114
ae60f04e
PW
21152019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2116
2117 * NEWS: Mention changes to "info sources" command.
2118
28cd9371
PW
21192019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2120
2121 * symtab.c (filename_partial_match_opts): New struct type.
2122 (struct output_source_filename_data): New members
2123 regexp, c_regexp, partial_match.
2124 (output_source_filename): Use new members to decide to print file.
2125 (info_sources_option_defs): New variable.
2126 (make_info_sources_options_def_group, print_info_sources_header,
2127 info_sources_command_completer):
2128 New functions.
2129 (info_sources_command): Read new optional arguments.
2130 (_initialize_symtab): Update info sources help.
2131
ca683e3a
AO
21322019-08-02 Alexandre Oliva <oliva@adacore.com>
2133
2134 * ada-lang.c (exception_support_info_v0): Renamed from...
2135 (default_exception_support_info): ... this. Create new
2136 definition for v1.
2137 (ada_has_this_exception_support): Look up catch_handlers_sym.
2138 (ada_exception_support_info_sniffer): Try v0 after default.
2139
f1264162
TT
21402019-08-01 Tom Tromey <tromey@adacore.com>
2141
2142 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2143 gdbarch.h.
2144
0a7b2485
CB
21452019-08-01 Christian Biesinger <cbiesinger@google.com>
2146
2147 * s12z-tdep.c: Fix include path for s12z-opc.h.
2148
c6bdbeb7
AH
21492019-08-01 Alan Hayward <alan.hayward@arm.com>
2150
2151 * NEWS: Require GNU make 3.82.
2152
a2bd7b82
TT
21532019-07-16 Tom Tromey <tom@tromey.com>
2154
2155 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2156 declare.
2157
aa3b6533
TT
21582019-07-30 Tom Tromey <tromey@adacore.com>
2159
2160 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2161
a1530dc7
KB
21622019-07-30 Kevin Buettner <kevinb@redhat.com>
2163
2164 * printcmd.c (print_address_symbolic): Print negative offsets.
2165 (build_address_symbolic): Force signed arithmetic when computing
2166 offset.
2167
2906593f
CB
21682019-07-30 Christian Biesinger <cbiesinger@google.com>
2169
2170 PR/24474: Add a function to lookup static variables.
2171 * NEWS: Mention this new function.
2172 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2173 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2174 * python/python.c (python_GdbMethods): Add new function.
2175
c620ed88
CB
21762019-07-29 Christian Biesinger <cbiesinger@google.com>
2177
2178 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2179 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2180 (objfpy_lookup_static_symbol): New function.
2181 (objfile_object_methods): Add new functions.
2182
bc4268a5
PW
21832019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2184
2185 * NEWS: Mention 'set|show print frame-info'. Mention new
2186 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2187 backtrace argument. Mention that python frame filtering code
2188 is now consistent with what 'backtrace' command prints.
2189
4b5e8d19
PW
21902019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2191
2192 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2193 comments.
2194 (print_frame_info_auto, print_frame_info_source_line,
2195 print_frame_info_location, print_frame_info_source_and_location,
2196 print_frame_info_location_and_address, print_frame_info_short_location):
2197 New declarations.
2198 (struct frame_print_options): New member print_frame_info.
2199 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2200 * stack.h (get_user_print_what_frame_info): New declaration.
2201 (frame_show_address): New declaration.
2202 * stack.c (print_frame_arguments_choices): New value 'presence'.
2203 (print_frame_info_auto, print_frame_info_source_line,
2204 print_frame_info_location, print_frame_info_source_and_location,
2205 print_frame_info_location_and_address, print_frame_info_short_location,
2206 print_frame_info_choices, print_frame_info_print_what): New definitions.
2207 (print_frame_args): Only print dots for args if print frame-arguments
2208 is 'presence'.
2209 (frame_print_option_defs): New element for "frame-info".
2210 (get_user_print_what_frame_info): New function.
2211 (frame_show_address): Make non static. Move comment to stack.h.
2212 (print_frame_info_to_print_what): New function.
2213 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2214 to decide what to print.
2215 (backtrace_command_1): Handle the new print_frame_arguments_presence
2216 value.
2217 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2218 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2219 (py_print_frame): In non-mi mode, use LOCATION as default for
2220 print_what, similarly to frame information printed directly by
2221 backtrace command. Handle frame-info user option in non MI mode.
2222
6bdfee81
KB
22232019-07-27 Kevin Buettner <kevinb@redhat.com>
2224
2225 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2226 Add case for debugging 32-bit target on 64-bit host. Revise
2227 comment.
2228
98a617f8
KB
22292019-07-27 Kevin Buettner <kevinb@redhat.com>
2230
2231 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2232 instead of find_function_entry_range_from_pc.
2233
567238c9
KB
22342019-07-27 Kevin Buettner <kevinb@redhat.com>
2235
2236 * stack.c (find_frame_funname): Remove code which preferred
2237 minsym over symtab sym in "certain pathological cases".
2238
2dc80cf8
KB
2239 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2240 parameter. Change type of "do_demangle" to bool.
2241 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2242 Pass suitable "prefer_sym_over_minsym" flag to
2243 build_address_symbolic(). Don't output "+" for negative offsets.
2244 * printcmd.c (print_address_symbolic): Update invocation of
2245 build_address_symbolic to include a "prefer_sym_over_minsym"
2246 flag.
2247 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2248 Restrict cases in which use of minimal symbol is preferred to that
2249 of a found symbol. Update comments.
2250
1aff7173
KB
2251 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2252 for entry pc when entry pc is out of range for that FDE.
2253
89b085ac
BC
22542019-07-26 Brian Callahan <bcallah@openbsd.org>
2255
2256 PR gdb/24839:
2257 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2258 type.
2259
f32feb4a
CB
22602019-07-25 Christian Biesinger <cbiesinger@google.com>
2261
2262 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2263 this function's Python signature.
2264
2265
22662019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2267
2268 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2269 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2270 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2271 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2272 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2273
2274
c54e4253
YS
22752019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2276
2277 * h8300-tdep.c (h8300_register_name_common): New.
2278 h8300_register_name): Use h8300_register_name_common.
2279 (h8300s_register_name): Likewise.
2280 (h8300sx_register_name): Likewise.
2281 (h8300h_register_nam): New.
2282 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2283
2284
40eadf04
SP
22852019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2286
2287 * arm-tdep.c (arm_skip_cmse_entry): New function.
2288 (arm_is_sgstubs_section): New function.
2289 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2290
bfa2a36d
TT
22912019-07-22 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2294 Don't self-assign.
2295
a8e9d247
AB
22962019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2297
2298 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2299 type_print.
2300
eb86c5e2
AB
23012019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2304 so that GDB doesn't match any msymbols when searching in the
2305 TYPES_DOMAIN.
2306 (print_symbol_info): Print using typedef_print or type_print based
2307 on the type of the symbol. Add updated FIXME comment moved from...
2308 (_initialize_symtab): ... move and update FIXME comment to above.
2309
a8eab7c6
AB
23102019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * NEWS: Mention adding -q option to "info types".
2313 * symtab.c (struct info_types_options): New struct.
2314 (info_types_options_defs): New variable.
2315 (make_info_types_options_def_group): New function.
2316 (info_types_command): Use gdb::option framework to parse options.
2317 (info_types_command_completer): New function.
2318 (_initialize_symtab): Extend the help text on "info types" and
2319 register command completer.
2320
b4603c34
CB
23212019-07-21 Christian Biesinger <cbiesinger@google.com>
2322
2323 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2324 (lookup_symbol_in_objfile): Change int to block_enum and add a
2325 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2326
c8cdc1e0
CB
23272019-07-20 Christian Biesinger <cbiesinger@google.com>
2328
2329 * MAINTAINERS (Write After Approval): Add self.
2330
01e175fe
AB
23312019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2334 instruction to the dummy code region.
2335
56f79b63
TT
23362019-07-19 Tom Tromey <tromey@adacore.com>
2337
2338 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2339 (ARGSUSED, PARAMS, __func__): Remove rules.
2340
4c5aa8e0
AH
23412019-07-19 Alan Hayward <alan.hayward@arm.com>
2342
2343 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2344 * features/arm/arm-with-iwmmxt.c: Remove.
2345 * features/arm/arm-with-iwmmxt.xml: Remove.
2346 * features/arm/arm-with-m-fpa-layout.c: Remove.
2347 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2348 * features/arm/arm-with-m-vfp-d16.c: Remove.
2349 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2350 * features/arm/arm-with-m.c: Remove.
2351 * features/arm/arm-with-m.xml: Remove.
2352 * features/arm/arm-with-neon.c: Remove.
2353 * features/arm/arm-with-neon.xml: Remove.
2354 * features/arm/arm-with-vfpv2.c: Remove.
2355 * features/arm/arm-with-vfpv2.xml: Remove.
2356 * features/arm/arm-with-vfpv3.c: Remove.
2357 * features/arm/arm-with-vfpv3.xml: Remove.
2358
f42b2617
AH
23592019-07-19 Alan Hayward <alan.hayward@arm.com>
2360
2361 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2362
f29ec966
AH
23632019-07-19 Alan Hayward <alan.hayward@arm.com>
2364
2365 * arch/aarch32.c (aarch32_create_target_description): Create
2366 target descriptions using features.
2367 * arch/arm.c (arm_create_target_description)
2368 (arm_create_mprofile_target_description): Likewise.
2369 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2370
d105cce5
AH
23712019-07-19 Alan Hayward <alan.hayward@arm.com>
2372
2373 * Makefile.in: Add new files.
2374 * aarch32-tdep.c: New file.
2375 * aarch32-tdep.h: New file.
2376 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2377 Call aarch32_read_description.
2378 * arch/aarch32.c: New file.
2379 * arch/aarch32.h: New file.
2380 * arch/arm.c (arm_create_target_description)
2381 (arm_create_mprofile_target_description): New function.
2382 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2383 (arm_create_target_description)
2384 (arm_create_mprofile_target_description): New declaration.
2385 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2386 read_description functions.
2387 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2388 Likewise.
2389 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2390 * arm-tdep.c (tdesc_arm_list): New variable.
2391 (arm_register_g_packet_guesses): Call create description functions.
2392 (arm_read_description) (arm_read_mprofile_description): New
2393 function.
2394 * arm-tdep.h (arm_read_description)
2395 (arm_read_mprofile_description): Add declaration.
2396 * configure.tgt: Add new files.
2397
afe09f0b
GL
23982019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2399
2400 * top.c (new_ui_command): Open specified terminal just once.
2401
cd215b2e
TT
24022019-07-18 Tom Tromey <tromey@adacore.com>
2403
2404 * symtab.c (main_name): Constify return type.
2405 * symfile.c (set_initial_language): Update.
2406 * symtab.h (main_name): Constify return type.
2407
d8f68fcb
TT
24082019-07-17 Tom Tromey <tom@tromey.com>
2409
2410 * tui/tui-winsource.c (tui_update_source_window)
2411 (tui_update_source_window_as_is)
2412 (tui_update_source_windows_with_line): Remove return.
2413 * tui/tui-disasm.c (tui_show_disassem)
2414 (tui_show_disassem_and_update_source): Remove return.
2415 * tui/tui.c (tui_reset): Remove return.
2416 * tui/tui-wingeneral.c
2417 (tui_check_and_display_highlight_if_needed): Remove return.
2418
ca5af91e
TT
24192019-07-17 Tom Tromey <tom@tromey.com>
2420
2421 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2422
5104fe36
TT
24232019-07-17 Tom Tromey <tom@tromey.com>
2424
2425 * tui/tui-winsource.h (struct tui_exec_info_window)
2426 (struct tui_source_window_base): Move from tui-data.h.
2427 * tui/tui-winsource.c: Move many method definitions from
2428 elsewhere. Remove "structuring" comments.
2429 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2430 (tui_source_window_base::refresh_window): Move to
2431 tui-winsource.c.
2432 * tui/tui-win.c (tui_source_window_base::refresh_all)
2433 (tui_source_window_base::update_tab_width)
2434 (tui_source_window_base::set_new_height)
2435 (tui_source_window_base::do_make_visible_with_new_height): Move to
2436 tui-winsource.c.
2437 * tui/tui-source.h: Update.
2438 * tui/tui-source.c (tui_source_window_base::reset): Move to
2439 tui-winsource.c.
2440 * tui/tui-disasm.h: Update.
2441 * tui/tui-data.h (struct tui_exec_info_window): Move to
2442 tui-winsource.h.
2443 (struct tui_source_window_base): Likewise.
2444 * tui/tui-data.c (tui_source_window_base::clear_detail)
2445 (tui_source_window_base, ~tui_source_window_base): Move to
2446 tui-winsource.c.
2447
daa15dde
TT
24482019-07-17 Tom Tromey <tom@tromey.com>
2449
2450 * tui/tui-win.c (tui_resize_all)
2451 (tui_source_window_base::update_tab_width)
2452 (tui_adjust_win_heights): Update.
2453 (tui_win_info::make_invisible_and_set_new_height): Rename from
2454 make_invisible_and_set_new_height.
2455 * tui/tui-data.h (struct tui_win_info)
2456 <make_invisible_and_set_new_height>: New method.
2457
bfad4537
TT
24582019-07-17 Tom Tromey <tom@tromey.com>
2459
2460 * tui/tui.c: Update.
2461 * tui/tui-source.h (struct tui_source_window): Move from
2462 tui-data.h.
2463 * tui/tui-layout.c: Update.
2464 * tui/tui-disasm.c: Update.
2465 * tui/tui-data.h (struct tui_source_window): Move to
2466 tui-source.h.
2467
88f7e873
TT
24682019-07-17 Tom Tromey <tom@tromey.com>
2469
2470 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2471 tui-data.h.
2472 * tui/tui-data.h (struct tui_disasm_window): Move to
2473 tui-disasm.h.
2474
96bd6233
TT
24752019-07-17 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-regs.h (struct tui_data_item_window): Move from
2478 tui-data.h.
2479 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2480 * tui/tui-data.h (struct tui_data_item_window): Move to
2481 tui-regs.h.
2482 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2483
ce38393b
TT
24842019-07-17 Tom Tromey <tom@tromey.com>
2485
2486 * tui/tui.c: Update.
2487 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2488 (tui_cmd_window::max_height): Move to tui-command.c.
2489 * tui/tui-layout.c: Update.
2490 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2491 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2492 tui-command.c.
2493 * tui/tui-command.h (struct tui_cmd_window): Move from
2494 tui-data.h.
2495 * tui/tui-command.c: Remove "structuring" comments.
2496 (tui_cmd_window::clear_detail)
2497 (tui_cmd_window::do_make_visible_with_new_height)
2498 (tui_cmd_window::max_height): Move from elsewhere.
2499
2d8b51cb
TT
25002019-07-17 Tom Tromey <tom@tromey.com>
2501
2502 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2503 Now static.
2504 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2505 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2506
18ab23af
TT
25072019-07-17 Tom Tromey <tom@tromey.com>
2508
2509 * tui/tui.c: Update.
2510 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2511 tui-regs.c.
2512 * tui/tui-windata.h: Remove file.
2513 * tui/tui-windata.c: Remove file.
2514 * tui/tui-win.c (tui_data_window::set_new_height)
2515 (tui_data_window::do_make_visible_with_new_height): Move to
2516 tui-regs.c.
2517 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2518 * tui/tui-regs.c: Remove "structuring" comments.
2519 (tui_data_window::first_data_item_displayed)
2520 (tui_data_window::delete_data_content_windows)
2521 (tui_data_window::erase_data_content)
2522 (tui_data_window::display_all_data)
2523 (tui_data_window::refresh_all)
2524 (tui_data_window::do_scroll_vertical)
2525 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2526 (tui_data_window::do_make_visible_with_new_height)
2527 (tui_data_window::refresh_window): Move from elsewhere.
2528 (_initialize_tui_regs): Move to end of file.
2529 * tui/tui-layout.c: Update.
2530 * tui/tui-hooks.c: Update.
2531 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2532 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2533 tui-regs.c.
2534 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2535
88b7e7cc
TT
25362019-07-17 Tom Tromey <tom@tromey.com>
2537
2538 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2539 seen.
2540
0fcd3711
TT
25412019-07-17 Tom Tromey <tom@tromey.com>
2542
2543 * tui/tui-win.c (tui_source_window_base::set_new_height)
2544 (tui_source_window_base::do_make_visible_with_new_height): Use
2545 m_has_locator field directly.
2546 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2547 method.
2548 (struct tui_source_window_base) <has_locator>: Likewise.
2549
4a38112d
TT
25502019-07-17 Tom Tromey <tom@tromey.com>
2551
2552 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2553 Don't declare.
2554 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2555 Remove.
2556 * tui/tui-win.c (tui_source_window_base::set_new_height)
2557 (tui_source_window_base::set_new_height)
2558 (make_invisible_and_set_new_height)
2559 (tui_source_window_base::do_make_visible_with_new_height)
2560 (tui_source_window_base::do_make_visible_with_new_height):
2561 Update.
2562 * tui/tui-layout.c (show_source_disasm_command, show_data)
2563 (show_source_or_disasm_and_command): Update.
2564 * tui/tui-layout.c (show_layout): Update.
2565
09129226
TT
25662019-07-17 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-layout.c (make_data_window): Remove.
2569 (show_data): Unify creation and re-initialization cases.
2570
4a8a5e84
TT
25712019-07-17 Tom Tromey <tom@tromey.com>
2572
2573 * tui/tui-layout.c (make_source_window, make_disasm_window):
2574 Remove.
2575 (show_data): Unify creation and re-initialization cases.
2576
76d2be8e
TT
25772019-07-17 Tom Tromey <tom@tromey.com>
2578
2579 * tui/tui-layout.c (make_command_window): Remove.
2580 (show_source_disasm_command, show_source_or_disasm_and_command):
2581 Unify creation and re-initialization cases.
2582
890b8bde
TT
25832019-07-17 Tom Tromey <tom@tromey.com>
2584
2585 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2586 creation and re-initialization cases.
2587
2cdfa113
TT
25882019-07-17 Tom Tromey <tom@tromey.com>
2589
2590 * tui/tui-regs.c (tui_get_register): Return void.
2591
8e3cfd09
TT
25922019-07-17 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2595 Simplify.
2596
f4e04977
TT
25972019-07-17 Tom Tromey <tom@tromey.com>
2598
2599 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2600 resetting.
2601
0379b883
TT
26022019-07-17 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2605 * tui/tui-regs.c (tui_reg_layout): New function.
2606 (tui_show_registers, tui_reg_command): Use it.
2607 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2608 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2609 parameters.
2610 (tui_layout_command): Remove.
2611
b7fbad91
TT
26122019-07-17 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-layout.h (tui/tui-layout): Return void.
2615 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2616
4e1e56b9
TT
26172019-07-17 Tom Tromey <tom@tromey.com>
2618
2619 * tui/tui-layout.c (show_source_disasm_command, show_data):
2620 Update.
2621 (reset_locator): Remove.
2622 (show_source_or_disasm_and_command): Update.
2623
1e0c09ba
TT
26242019-07-17 Tom Tromey <tom@tromey.com>
2625
2626 * tui/tui-source.c (tui_source_window_base::reset): Remove
2627 win_type parameter.
2628 * tui/tui-layout.c (make_command_window, make_source_window)
2629 (make_disasm_window, make_data_window)
2630 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2631 (reset_locator, show_source_or_disasm_and_command): Update.
2632 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2633 win_type parameter.
2634 (struct tui_source_window_base) <reset>: Likewise.
2635
1bf605de
TT
26362019-07-17 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-layout.c (show_source_disasm_command): Use
2639 reset_locator.
2640 (reset_locator): New function.
2641 (init_and_make_win): Remove.
2642 (show_source_or_disasm_and_command): Use reset_locator.
2643
098f9ed4
TT
26442019-07-17 Tom Tromey <tom@tromey.com>
2645
2646 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2647 condition.
2648 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2649 Remove condition.
2650 * tui/tui-source.c (tui_source_window_base::reset): New method.
2651 * tui/tui-layout.c (make_command_window): Don't call
2652 init_and_make_win.
2653 (make_source_window, make_disasm_window): Don't call
2654 make_source_or_disasm_window.
2655 (make_data_window): Don't call init_and_make_win. Change calling
2656 convention.
2657 (show_source_disasm_command, show_data): Simplify.
2658 (make_source_or_disasm_window): Remove.
2659 (show_source_or_disasm_and_command): Simplify.
2660 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2661 (struct tui_source_window_base) <reset>: Likewise.
2662 <execution_info>: Remove initializer.
2663 * tui/tui-data.c (tui_source_window_base): Initialize
2664 execution_info.
2665
80110957
TT
26662019-07-17 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2669 variable.
2670
cf82af05
TT
26712019-07-17 Tom Tromey <tom@tromey.com>
2672
2673 * tui/tui.c (tui_rl_other_window): Update.
2674 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2675 superclass method first. Always iterate over regs_content.
2676 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2677 method.
2678 * tui/tui-win.c (tui_set_focus_command): Update.
2679
01aeb396
TT
26802019-07-17 Tom Tromey <tom@tromey.com>
2681
2682 * tui/tui-win.c (tui_set_focus_command): Rename from
2683 tui_set_focus. Call tui_enable.
2684 (tui_set_focus_command): Remove.
2685
fd6c75ee
TT
26862019-07-17 Tom Tromey <tom@tromey.com>
2687
2688 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2689 refresh_window.
2690 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2691 touchwin.
2692 (tui_data_window::refresh_window): Call refresh_window on data
2693 items. Always call superclass refresh_window.
2694 (tui_win_info::refresh): Remove.
2695 (tui_source_window_base::refresh_window): Update.
2696 (tui_refresh_all): Update.
2697 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2698 refresh_window.
2699 (show_source_or_disasm_and_command): Likewise.
2700 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2701 (struct tui_source_window_base) <refresh>: Likewise.
2702
f6cc34a9
TT
27032019-07-17 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-winsource.c (tui_clear_source_content)
2706 (tui_show_source_content): Update.
2707 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2708 whether content is empty.
2709 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2710 Remove.
2711
f31ec9af
TT
27122019-07-17 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2715 window's contents.
2716 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2717 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2718
d1b6f1e5
TT
27192019-07-17 Tom Tromey <tom@tromey.com>
2720
2721 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2722 (struct tui_data_item_window): Update.
2723
d9743a13
TT
27242019-07-17 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2727 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2728 defines.
2729
caf0bc4e
TT
27302019-07-17 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-winsource.h (tui_erase_source_content)
2733 (tui_clear_source_content): Remove "display_prompt" parameter.
2734 * tui/tui-winsource.c (tui_update_source_window_as_is)
2735 (tui_update_source_windows_with_addr): Update.
2736 (tui_clear_source_content): Remove "display_prompt" parameter.
2737 (tui_erase_source_content): Likewise. Simplify.
2738 (tui_show_source_content): Update.
2739 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2740 * tui/tui-stack.c (tui_show_frame_info): Update.
2741 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2742 Remove defines.
2743
9d391078
TT
27442019-07-17 Tom Tromey <tom@tromey.com>
2745
2746 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2747 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2748 parameter.
2749 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2750 parameter.
2751
a38da35d
TT
27522019-07-17 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui-winsource.c (tui_clear_source_content)
2755 (tui_show_source_content, tui_show_exec_info_content)
2756 (tui_clear_exec_info_content): Update.
2757 * tui/tui-stack.c (tui_show_locator_content): Update.
2758 (tui_show_frame_info): Update.
2759 * tui/tui-source.h (tui_source_window): Don't declare.
2760 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2761 from tui_source_is_displayed.
2762 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2763 Remove field.
2764 (struct tui_source_window_base) <content_in_use>: New field. Now
2765 bool.
2766 (struct tui_source_window) <showing_source_p>: New method.
2767 (TUI_SRC_WIN): Change cast.
2768 * tui/tui-data.c (tui_initialize_static_data): Update.
2769
c2cd8994
TT
27702019-07-17 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2773 location_matches_p.
2774 * tui/tui-source.c (tui_source_window::location_matches_p): New
2775 method.
2776 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2777 method.
2778 * tui/tui-data.h (struct tui_source_window_base)
2779 <location_matches_p>: New method.
2780 (struct tui_source_window, struct tui_disasm_window)
2781 <location_matches_p>: Likewise.
2782
4dde7b34
TT
27832019-07-17 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-win.c (tui_set_win_height_command): Rename from
2786 tui_set_win_height.
2787 (tui_set_win_height_command): Remove.
2788
b73dd877
TT
27892019-07-17 Tom Tromey <tom@tromey.com>
2790
2791 * tui/tui-source.c (tui_source_window): New constructor. Add
2792 observer.
2793 (~tui_source_window): New destructor.
2794 (tui_source_window::style_changed): New method.
2795 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2796 (tui_attach_detach_observers): Update.
2797 * tui/tui-data.h (struct tui_source_window): Make constructor not
2798 inline. Add destructor.
2799 (struct tui_source_window) <style_changed>: New method.
2800 <m_observable>: New member.
2801
ae2b5380
TT
28022019-07-17 Tom Tromey <tom@tromey.com>
2803
2804 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2805 * tui/tui-win.c (tui_resize_all): Fix typo.
2806
1ce3e844
TT
28072019-07-17 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2810 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2811 (tui_refresh_all): Remove "list" parameter. Use foreach.
2812 * tui/tui-win.c (window_name_completer): Use foreach.
2813 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2814 (update_tab_width): Likewise.
2815 * tui/tui-layout.c (show_layout): Update.
2816 * tui/tui-data.h (class tui_window_iterator): New.
2817 (struct all_tui_windows): New.
2818 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2819
fe3eaf1c
TT
28202019-07-17 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2823 parameter. Don't reference globals.
2824 (tui_reg_command): Update.
2825
368c1354
TT
28262019-07-17 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui-regs.c (tui_show_registers): Simplify.
2829
e80cd204
TT
28302019-07-17 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-regs.c (tui_show_registers): Update.
2833 (tui_show_register_group): Add win_info parameter.
2834
aca2dd16
TT
28352019-07-17 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2838 Rename from tui_display_reg_element_at_line.
2839 (tui_data_window::display_registers_from_line): Update.
2840 * tui/tui-data.h (struct tui_data_window)
2841 <display_reg_element_at_line>: New method.
2842
517e9505
TT
28432019-07-17 Tom Tromey <tom@tromey.com>
2844
2845 * tui/tui-regs.h (tui_display_registers_from)
2846 (tui_display_registers_from_line): Don't declare.
2847 * tui/tui-windata.c (tui_data_window::display_all_data)
2848 (tui_data_window::refresh_all)
2849 (tui_data_window::do_scroll_vertical): Update.
2850 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2851 from tui_display_registers_from.
2852 (tui_display_reg_element_at_line): Update.
2853 (tui_data_window::display_registers_from_line): Rename from
2854 tui_display_registers_from_line.
2855 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2856 display_registers_from_line>: New methods.
2857
f76d8b19
TT
28582019-07-17 Tom Tromey <tom@tromey.com>
2859
2860 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2861 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2862 from tui_erase_data_content.
2863 (tui_data_window::display_all_data)
2864 (tui_data_window::refresh_all)
2865 (tui_data_window::do_scroll_vertical): Update.
2866 * tui/tui-regs.c (tui_show_registers): Update.
2867 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2868 New method.
2869
b4094625
TT
28702019-07-17 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2873 declare.
2874 * tui/tui-windata.c
2875 (tui_data_window::delete_data_content_windows): Rename from
2876 tui_delete_data_content_windows.
2877 (tui_data_window::display_all_data)
2878 (tui_data_window::do_scroll_vertical): Update.
2879 * tui/tui-data.h (struct tui_data_window)
2880 <delete_data_content_windows>: New method.
2881
c223a729
TT
28822019-07-17 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2885 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2886
50daf268
TT
28872019-07-17 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2890 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2891 from tui_display_all_data.
2892 * tui/tui-win.c
2893 (tui_data_window::do_make_visible_with_new_height): Update.
2894 * tui/tui-regs.c (tui_show_registers): Update.
2895 * tui/tui-layout.c (tui_set_layout): Update.
2896 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2897 method.
2898
df5f8cab
TT
28992019-07-17 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2902 * tui/tui-windata.c (tui_display_data_from): Remove.
2903 (tui_data_window::refresh_all): Update.
2904
80cb6c27
TT
29052019-07-17 Tom Tromey <tom@tromey.com>
2906
2907 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2908 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2909 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2910 tui_display_registers_from_line.
2911 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2912 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2913 "force_display" parameter.
2914
baff0c28
TT
29152019-07-17 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2918 declare.
2919 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2920 Rename from tui_first_reg_element_no_inline.
2921 (tui_display_reg_element_at_line)
2922 (tui_display_registers_from_line): Update.
2923 * tui/tui-data.h (struct tui_data_window)
2924 <first_reg_element_no_inline>: New method.
2925
3b23c5f2
TT
29262019-07-17 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui-windata.c (tui_display_data_from)
2929 (tui_data_window::do_scroll_vertical): Update.
2930 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2931 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2932 Rename from tui_line_from_reg_element_no.
2933 (tui_display_registers_from_line): Update.
2934 * tui/tui-data.h (struct tui_data_window)
2935 <line_from_reg_element_no>: New method.
2936
0b5ec218
TT
29372019-07-17 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2940 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2941 tui_last_regs_line_no.
2942 (tui_display_reg_element_at_line)
2943 (tui_display_registers_from_line): Update.
2944 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2945 method.
2946
0807ab7b
TT
29472019-07-17 Tom Tromey <tom@tromey.com>
2948
2949 PR tui/24722:
2950 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2951 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2952 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2953 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2954 (tui_update_breakpoint_info): Likewise.
2955 * tui/tui-hooks.c (tui_event_create_breakpoint)
2956 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2957 Update.
2958
9ad7fdef
TT
29592019-07-17 Tom Tromey <tom@tromey.com>
2960
2961 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2962
5813316f
TT
29632019-07-17 Tom Tromey <tom@tromey.com>
2964
2965 * tui/tui-winsource.c (tui_update_source_window_as_is)
2966 (tui_update_source_windows_with_addr): Update.
2967 * tui/tui-source.h (tui_set_source_content)
2968 (tui_show_symtab_source): Add "win_info" parameter.
2969 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2970 parameter.
2971 (tui_show_symtab_source): Likewise.
2972
00e264e7
TT
29732019-07-17 Tom Tromey <tom@tromey.com>
2974
2975 * tui/tui-wingeneral.c
2976 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2977
06210ce4
TT
29782019-07-17 Tom Tromey <tom@tromey.com>
2979
2980 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2981 (struct tui_cmd_window) <can_scroll>: New method.
2982 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2983 method.
2984
381befee
TT
29852019-07-17 Tom Tromey <tromey@adacore.com>
2986
2987 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2988 do_field_signed>: Rename. Change type of "value".
2989 * ui-out.c (ui_out::field_signed): Rename from field_int.
2990 Change type of "value".
2991 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2992 type of "value".
2993 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2994 do_field_int. Change type of "value".
2995 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2996 do_field_int. Change type of "value".
2997 * tracepoint.c (trace_status_mi, tfind_1)
2998 (print_one_static_tracepoint_marker): Update.
2999 * thread.c (print_thread_info_1, print_selected_thread_frame):
3000 Update.
3001 * stack.c (print_frame, print_frame_info): Update.
3002 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3003 Update.
3004 * source.c (print_source_lines_base): Update.
3005 * skip.c (info_skip_command): Update.
3006 * record-btrace.c (btrace_ui_out_decode_error)
3007 (btrace_call_history_src_line): Update.
3008 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3009 Update.
3010 * progspace.c (print_program_space): Update.
3011 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3012 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3013 do_field_int. Change type of "value".
3014 * mi/mi-out.c (mi_ui_out::do_table_begin)
3015 (mi_ui_out::do_table_header): Update.
3016 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3017 type of "value".
3018 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3019 (mi_cmd_data_list_changed_registers, output_register)
3020 (mi_cmd_data_read_memory, mi_load_progress)
3021 (mi_cmd_trace_frame_collected): Update.
3022 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3023 Update.
3024 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3025 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3026 (mi_cmd_var_list_children, varobj_update_one): Update.
3027 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3028 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3029 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3030 * inferior.c (print_inferior): Update.
3031 * gdb_bfd.c (print_one_bfd): Update.
3032 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3033 Update.
3034 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3035 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3036 do_field_int. Change type of "value".
3037 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3038 do_field_int. Change type of "value".
3039 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3040 (print_one_breakpoint_location, print_it_catch_fork)
3041 (print_one_catch_fork, print_it_catch_vfork)
3042 (print_one_catch_vfork, print_it_catch_solib)
3043 (print_it_catch_exec, print_it_ranged_breakpoint)
3044 (print_mention_watchpoint, print_mention_masked_watchpoint)
3045 (bkpt_print_it, update_static_tracepoint): Update.
3046 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3047 * break-catch-syscall.c (print_it_catch_syscall): Update.
3048 * ada-tasks.c (print_ada_task_info): Update.
3049 * ada-lang.c (print_it_exception, print_mention_exception):
3050 Update.
3051
6b78c3f8
AB
30522019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3053
3054 PR breakpoints/24541
3055 * gdbarch.c: Regenerate.
3056 * gdbarch.h: Regenerate.
3057 * gdbarch.sh: Adjust return type and parameter types for
3058 'stap_adjust_register'.
3059 (i386_stap_adjust_register): Adjust signature and return new
3060 register name.
3061 * stap-probe.c (stap_parse_register_operand): Adjust use of
3062 'gdbarch_stap_adjust_register'.
3063
d72a9b85
TT
30642019-07-17 Tom Tromey <tromey@adacore.com>
3065
3066 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3067 declare VEC.
3068 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3069 std::vector.
3070 (struct s390_process_info): Add initializers.
3071 (s390_add_process): Use new.
3072 (s390_linux_nat_target::low_forget_process): Use delete.
3073 (s390_linux_nat_target::low_new_fork)
3074 (s390_linux_nat_target::stopped_by_watchpoint)
3075 (s390_linux_nat_target::low_prepare_to_resume)
3076 (s390_linux_nat_target::insert_watchpoint)
3077 (s390_linux_nat_target::insert_hw_breakpoint)
3078 (s390_linux_nat_target::remove_watchpoint)
3079 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3080
206e6c58
JB
30812019-07-16 John Baldwin <jhb@FreeBSD.org>
3082
3083 * aarch64-fbsd-nat.c: Include regcache.h.
3084 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3085 argument.
3086 (aarch64_fbsd_nat_target::fetch_registers)
3087 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3088 variable.
3089 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3090
cbde90f2
JB
30912019-07-16 John Baldwin <jhb@FreeBSD.org>
3092
3093 * fbsd-nat.c: Include gdbarch.h.
3094
07128006
TT
30952019-07-15 Tom Tromey <tromey@adacore.com>
3096
3097 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3098
1f77b012
TT
30992019-07-15 Tom Tromey <tromey@adacore.com>
3100
3101 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3102 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3103 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3104 * cli-out.c (cli_ui_out::do_field_int): New method.
3105 * ui-out.c (ui_out::field_unsigned): New method.
3106 * symfile.c (generic_load): Use field_unsigned.
3107 (print_transfer_performance): Likewise.
3108 * record-btrace.c (ui_out_field_uint): Remove.
3109 (btrace_call_history_insn_range, btrace_call_history): Use
3110 field_unsigned.
3111 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3112 field_unsigned.
3113 * ui-out.h (class ui_out) <field_unsigned>: New method.
3114 <do_field_unsigned>: Likewise.
3115
33eca680
TT
31162019-07-15 Tom Tromey <tromey@adacore.com>
3117
3118 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3119 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3120 * target.c (flash_erase_command): Use field_string.
3121 * infrun.c (print_signal_received_reason): Use field_string.
3122 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3123 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3124 field_string.
3125 * ada-tasks.c (print_ada_task_info): Use field_string.
3126
ca8d69be
TT
31272019-07-15 Tom Tromey <tromey@adacore.com>
3128
3129 * target.c (flash_erase_command): Use field_core_addr.
3130 * symfile.c (generic_load): Use field_core_addr.
3131 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3132 Use field_core_addr.
3133 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3134 field_core_addr.
3135
0d4e84ed
AB
31362019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3139 value if its desired type is smaller than a CORE_ADDR and signed.
3140
9a49df9d
AB
31412019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3144 of changes to field names, and use new is_reference field to
3145 decide if a property is a reference or not.
3146 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3147 field.
3148 (struct dwarf2_property_baton): Update header comment, rename
3149 'referenced_type' to 'property_type' and update comments.
3150 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3151 default property type, store in property baton, update to take
3152 accound of renamed field.
3153 (read_func_scope): Update call to attr_to_dynamic_prop.
3154 (read_array_type): Likewise.
3155 (dwarf2_per_cu_addr_sized_int_type): New function.
3156 (read_subrange_index_type): Move type finding code to
3157 dwarf2_per_cu_addr_sized_int_type.
3158 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3159 (dwarf2_per_cu_addr_type): New function.
3160 (set_die_type): Update calls to attr_to_dynamic_prop.
3161
b86352cf
AB
31622019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * dwarf2read.c (read_subrange_index_type): New function.
3165 (read_subrange_type): Move code into new function and call it.
3166 * gdbtypes.c (create_range_type): Add some asserts.
3167
603490bf
AB
31682019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3169
3170 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3171 update return statements.
3172 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3173 declaration, and update comment to match.
3174 * gdbtypes.c (resolve_dynamic_array): Update call to
3175 dwarf2_evaluate_property to match new return type.
3176
592f9d27
AB
31772019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3178
3179 * valarith.c (value_subscripted_rvalue): Change lowerbound
3180 parameter type from int to LONGEST.
3181 * value.h (value_subscripted_rvalue): Likewise in declaration.
3182
60cfcb20
AB
31832019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * cli/cli-utils.c (info_print_command_completer): New function.
3186 * cli/cli-utils.h: Add 'completer.h' include, and forward
3187 declaration for 'struct cmd_list_element'.
3188 (info_print_command_completer): Declare.
3189 * stack.c (_initialize_stack): Add completer for 'info locals' and
3190 'info args'.
3191 * symtab.c (_initialize_symtab): Add completer for 'info
3192 variables' and 'info functions'.
3193 * NEWS: Mention completion for additional info commands.
3194
b16507e0
AB
31952019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * cli/cli-utils.c (extract_info_print_args): Delete.
3198 (extract_arg_maybe_quoted): Delete.
3199 (info_print_options_defs): New variable.
3200 (make_info_print_options_def_group): New function.
3201 (extract_info_print_options): Define new function.
3202 * cli/cli-utils.h (extract_info_print_args): Delete.
3203 (struct info_print_options): New structure.
3204 (extract_info_print_options): Declare new function.
3205 * stack.c (info_locals_command): Update to use new
3206 extract_info_print_options, also add a header comment.
3207 (info_args_command): Likewise.
3208 * symtab.c (info_variables_command): Likewise.
3209 (info_functions_command): Likewise.
3210
021d8588
AB
32112019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3214 to extract string arguments.
3215 * common/common-utils.c (extract_string_maybe_quoted): New function.
3216 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3217
b777eb6d
TT
32182019-07-11 Tom Tromey <tromey@adacore.com>
3219
3220 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3221 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3222 * top.h (gdbinit): Don't declare.
3223 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3224 into...
3225 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3226 * top.c (gdb_init): Don't call init_cli_cmds.
3227 (gdbinit): Remove.
3228 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3229
72ee03ff
TT
32302019-07-11 Tom Tromey <tromey@adacore.com>
3231
3232 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3233 after it has been moved.
3234
00db9531
SM
32352019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3236
3237 * valops.c (value_must_coerce_to_target): Change return type to
3238 bool.
3239 * value.h (value_must_coerce_to_target): Likewise.
3240
f2478a7e
SM
32412019-07-10 Simon Marchi <simon.marchi@efficios.com>
3242
3243 * breakpoint.c (is_hardware_watchpoint): Remove
3244 forward-declaration.
3245 (is_masked_watchpoint): Change return type to bool.
3246 (is_tracepoint): Likewise.
3247 (is_breakpoint): Likewise.
3248 (is_hardware_watchpoint): Likewise.
3249 (is_watchpoint): Likewise.
3250 (is_no_memory_software_watchpoint): Likewise.
3251 (is_catchpoint): Likewise.
3252 (breakpoint_1): Make FILTER parameter's return type bool.
3253 is_masked_watchpoint): Change return type to bool.
3254 (save_breakpoints): Make FILTER parameter's return type bool.
3255 * breakpoint.h (is_breakpoint): Change return type to bool.
3256 (is_watchpoint): Likewise.
3257 (is_catchpoint): Likewise.
3258 (is_tracepoint): Likewise.
3259
0d12e84c
TT
32602019-07-10 Tom Tromey <tom@tromey.com>
3261
3262 * defs.h: Don't include gdbarch.h.
3263 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3264 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3265 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3266 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3267 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3268 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3269 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3270 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3271 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3272 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3273 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3274 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3275 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3276 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3277 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3278 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3279 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3280 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3281 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3282 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3283 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3284 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3285 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3286 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3287 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3288 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3289 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3290
f06f1252
TT
32912019-07-10 Tom Tromey <tromey@adacore.com>
3292
3293 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3294 * breakpoint.c (init_ada_exception_breakpoint): Register as
3295 bp_catchpoint.
3296 (print_one_breakpoint_location, print_one_breakpoint): Use
3297 is_ada_exception_catchpoint.
3298 * ada-lang.c (class ada_catchpoint_location): Pass
3299 bp_loc_software_breakpoint to bp_location constructor.
3300 (is_ada_exception_catchpoint): New function.
3301
7a5d944b
TT
33022019-07-10 Tom Tromey <tromey@adacore.com>
3303
3304 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3305 VEC.
3306 (struct arm_exidx_entry): New method operator<.
3307 (struct arm_exidx_data) <section_maps>: Change type.
3308 (arm_exidx_data_free): Remove.
3309 (arm_exidx_data_key): Change type. Move lower.
3310 (arm_exidx_new_objfile): Update.
3311 (arm_compare_exidx_entries): Remove.
3312 (arm_find_exidx_entry, _initialize_arm_tdep)
3313
48c66e1d
TT
33142019-07-10 Tom Tromey <tromey@adacore.com>
3315
3316 * solib-spu.c (ocl_program_data_key): Change type.
3317 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3318 Update.
3319
a269fbf1
TT
33202019-07-10 Tom Tromey <tromey@adacore.com>
3321
3322 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3323 (struct solib_aix_inferior_data) <library_list>: Change type.
3324 (solib_aix_inferior_data_handle): Change type.
3325 (get_solib_aix_inferior_data): Update.
3326 (solib_aix_free_library_list): Remove.
3327 (library_list_start_library): Update.
3328 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3329 return type.
3330 (solib_aix_get_library_list)
3331 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3332 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3333
c294730c
TT
33342019-07-10 Tom Tromey <tromey@adacore.com>
3335
3336 * solib-dsbt.c (struct dsbt_info): Add initializers.
3337 (solib_dsbt_pspace_data): Change type.
3338 (dsbt_pspace_data_cleanup): Remove.
3339 (get_dsbt_info, _initialize_dsbt_solib): Update.
3340
9d52077d
TT
33412019-07-10 Tom Tromey <tromey@adacore.com>
3342
3343 * spu-tdep.c (spu_overlay_data): Change type.
3344 (spu_get_overlay_table, spu_overlay_new_objfile)
3345 (_initialize_spu_tdep): Update.
3346
22a20dca
TT
33472019-07-10 Tom Tromey <tromey@adacore.com>
3348
3349 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3350 destructor.
3351 (dbx_objfile_data_key): Change type and declare later.
3352 (DBX_SYMFILE_INFO): Rewrite.
3353 * dbxread.c (dbx_objfile_data_key): Change type.
3354 (dbx_symfile_init): Update.
3355 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3356 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3357 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3358
cb60f420
TT
33592019-07-10 Tom Tromey <tromey@adacore.com>
3360
3361 * jit.c (jit_program_space_key): Change type. Move lower.
3362 (get_jit_program_space_data): Update.
3363 (jit_program_space_data_cleanup): Remove.
3364 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3365 Update.
3366 (struct jit_program_space_data): Add initializers.
3367
51df2ae3
TT
33682019-07-10 Tom Tromey <tromey@adacore.com>
3369
3370 * solib-darwin.c (struct darwin_info): Add initializers.
3371 (solib_darwin_pspace_data): Change type.
3372 (darwin_pspace_data_cleanup): Remove.
3373 (get_darwin_info, _initialize_darwin_solib): Update.
3374
18101a35
TT
33752019-07-10 Tom Tromey <tromey@adacore.com>
3376
3377 * remote-sim.c (struct sim_inferior_data): Add initializers,
3378 constructor, and destructor.
3379 (sim_inferior_data_key): Change type. Move lower.
3380 (check_for_duplicate_sim_descriptor): Update.
3381 (get_sim_inferior_data): Use new. Update.
3382 (~sim_inferior_data_cleanup): Rename from
3383 sim_inferior_data_cleanup. Simplify.
3384 (gdbsim_close_inferior, simulator_command)
3385 (sim_command_completer, _initialize_remote_sim): Update.
3386 (next_pid, INITIAL_PID): Move earlier.
3387
05b08ac1
TT
33882019-07-10 Tom Tromey <tromey@adacore.com>
3389
3390 * python/python-internal.h (create_thread_object): Return
3391 gdbpy_ref.
3392 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3393 * python/py-inferior.c (struct threadlist_entry): Add
3394 constructor.
3395 <thread_obj>: Now a gdbpy_ref.
3396 (thread_to_thread_object): Update.
3397 (add_thread_object): Use new.
3398 (delete_thread_object): Use delete.
3399 (infpy_threads): Update.
3400 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3401 GIL.
3402
32372d80
TT
34032019-07-10 Tom Tromey <tromey@adacore.com>
3404
3405 * valops.c (value_cast): Specialize error message for Ada.
3406
5c458ae8
SM
34072019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3408
3409 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3410
4c462cb0
SM
34112019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3412
3413 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3414 bpstat_should_step): Return bool, adjust comments.
3415 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3416 bpstat_should_step): Likewise.
3417
89abbcc2
AH
34182019-07-10 Alan Hayward <alan.hayward@arm.com>
3419
3420 * features/Makefile: Use feature target descriptions for Arm.
3421 * features/arm/arm-core.c: Generate new file.
3422 * features/arm/arm-fpa.c: Likewise.
3423 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3424 * features/arm/arm-m-profile.c: Likewise.
3425 * features/arm/arm-vfpv2.c: Likewise.
3426 * features/arm/arm-vfpv3.c: Likewise.
3427 * features/arm/xscale-iwmmxt.c: Likewise.
3428 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3429
166a82be
AH
34302019-07-10 Alan Hayward <alan.hayward@arm.com>
3431
3432 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3433 ptrace earlier.
3434
9fb4c7e9
AH
34352019-07-10 Alan Hayward <alan.hayward@arm.com>
3436
3437 * features/aarch64-pauth.c: Regenerate.
3438
e2d0f980
SM
34392019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3440
3441 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3442 bool.
3443 (bpstat_what): Use false instead of 0.
3444
a38118e5
PA
34452019-07-09 Pedro Alves <palves@redhat.com>
3446
3447 * break-catch-throw.c (is_exception_catchpoint): New.
3448 * breakpoint.c (print_one_breakpoint_location): New parameter
3449 'raw_loc'. Handle it. Use
3450 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3451 looking at the breakpoint's type.
3452 (print_one_breakpoint): If handling "maint info breakpoints", also
3453 print locations of exception catchpoints.
3454 * breakpoint.h (is_exception_catchpoint): Declare.
3455
cb1e4e32
PA
34562019-07-09 Pedro Alves <palves@redhat.com>
3457
3458 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3459 "addr" field.
3460 (allocate_location_exception_catchpoint): New.
3461 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3462 (initialize_throw_catchpoint_ops): Install
3463 allocate_location_exception_catchpoint as allocate_location
3464 method.
3465 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3466 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3467 bp_loc_other.
3468 (breakpoint_address_is_meaningful): Delete.
3469 (bl_address_is_meaningful): New.
3470 (breakpoint_locations_match): Adjust comment.
3471 (bp_location_from_bp_type): New, factored out of...
3472 (bp_location::bp_location(breakpoint *)): ... this.
3473 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3474 factored out of...
3475 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3476 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3477 breakpoint_address_is_meaningful.
3478 (bp_locations_compare): Adjust comment.
3479 (update_global_location_list): Use bl_address_is_meaningful
3480 instead of breakpoint_address_is_meaningful.
3481 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3482 explicit.
3483 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3484 * python/py-breakpoint.c (bppy_get_location): No longer check
3485 whether location is null.
3486
b58a68fe
PA
34872019-07-09 Pedro Alves <palves@redhat.com>
3488
3489 PR c++/15468
3490 * breakpoint.c (print_one_breakpoint_location): Remove
3491 single-location assert.
3492
268a13a5
TT
34932019-07-09 Tom Tromey <tom@tromey.com>
3494
3495 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3496 * configure: Rebuild.
3497 * configure.ac: Change common to gdbsupport.
3498 * gdbsupport: Rename from common.
3499 * acinclude.m4: Change common to gdbsupport.
3500 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3501 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3502 gdbsupport.
3503 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3504 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3505 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3506 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3507 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3508 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3509 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3510 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3511 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3512 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3513 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3514 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3515 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3516 coff-pe-read.c, command.h, compile/compile-c-support.c,
3517 compile/compile-c.h, compile/compile-cplus-symbols.c,
3518 compile/compile-cplus-types.c, compile/compile-cplus.h,
3519 compile/compile-loc2c.c, compile/compile.c, completer.c,
3520 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3521 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3522 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3523 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3524 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3525 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3526 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3527 features/aarch64-core.c, features/aarch64-fpu.c,
3528 features/aarch64-pauth.c, features/aarch64-sve.c,
3529 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3530 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3531 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3532 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3533 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3534 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3535 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3536 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3537 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3538 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3539 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3540 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3541 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3542 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3543 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3544 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3545 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3546 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3547 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3548 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3549 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3550 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3551 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3552 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3553 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3554 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3555 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3556 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3557 minsyms.c, mips-linux-tdep.c, namespace.h,
3558 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3559 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3560 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3561 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3562 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3563 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3564 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3565 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3566 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3567 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3568 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3569 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3570 procfs.c, producer.c, progspace.h, psymtab.h,
3571 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3572 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3573 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3574 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3575 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3576 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3577 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3578 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3579 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3580 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3581 target-memory.c, target.c, target.h, target/waitstatus.c,
3582 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3583 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3584 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3585 unittests/array-view-selftests.c,
3586 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3587 unittests/common-utils-selftests.c,
3588 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3589 unittests/format_pieces-selftests.c,
3590 unittests/function-view-selftests.c,
3591 unittests/lookup_name_info-selftests.c,
3592 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3593 unittests/mkdir-recursive-selftests.c,
3594 unittests/observable-selftests.c,
3595 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3596 unittests/parse-connection-spec-selftests.c,
3597 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3598 unittests/scoped_fd-selftests.c,
3599 unittests/scoped_mmap-selftests.c,
3600 unittests/scoped_restore-selftests.c,
3601 unittests/string_view-selftests.c, unittests/style-selftests.c,
3602 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3603 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3604 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3605 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3606 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3607 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3608
5b0e2db4
AB
36092019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3610
3611 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3612 bool value.
3613 (decode_digits_ordinary): Set explicit_line field in sal.
3614 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3615 symtab_and_line that was set on an explicit line number in
3616 assembler code. Do always update the recorded symtab and line if
3617 we do skip the prologue.
3618
0ba852ab
AB
36192019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * breakpoint.c (set_breakpoint_location_function): Remove
3622 explicit_loc parameter.
3623 (momentary_breakpoint_from_master): Update call to
3624 set_breakpoint_location_function.
3625 (add_location_to_breakpoint): Likewise.
3626
b3a7d171
AB
36272019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3630 required features based on default bfd type when no specific bfd
3631 is present.
3632
1f6f6e21
PW
36332019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3634
3635 * NEWS: Mention that GDB printf and eval commands can now print
3636 C-style and Ada-style convenience var strings without
3637 calling the inferior.
3638 * printcmd.c (printf_c_string): Locally print GDB internal var
3639 instead of transiting via the inferior.
3640 (printf_wide_c_string): Likewise.
3641
36422019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3643
3644 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3645
0598af48
TT
36462019-07-04 Tom Tromey <tom@tromey.com>
3647
3648 PR tui/24724:
3649 * tui/tui-winsource.c (tui_clear_source_content): Update.
3650 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3651 (tui_update_breakpoint_info): Update.
3652 (tui_set_exec_info_content): Update.
3653 * tui/tui-source.c (tui_set_source_content_nil): Update.
3654 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3655 has_break.
3656 * tui/tui-data.h (enum tui_bp_flag): New.
3657 (tui_bp_flags): New enum flags type.
3658 (struct tui_source_element) <break_mode>: Change type. Rename
3659 from has_break.
3660 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3661 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3662 constants.
3663 * tui/tui-winsource.h: Fix comment.
3664
350fab54
AH
36652019-07-04 Alan Hayward <alan.hayward@arm.com>
3666
3667 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3668 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3669 (store_fpregs_to_thread)
3670 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3671 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3672 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3673 (IWMMXT_REGS_SIZE): Add define.
3674 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3675 (fetch_vfp_regs, store_vfp_regs)
3676 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3677 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3678
f0452268
AH
36792019-07-04 Alan Hayward <alan.hayward@arm.com>
3680
3681 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3682 defines.
3683 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3684 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3685 (ARM_INT_REGISTER_SIZE): ...to this.
3686 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3687 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3688 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3689 (arm_linux_collect_gregset, supply_nwfpe_register)
3690 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3691 defines.
3692 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3693 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3694 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3695 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3696 (arm_return_in_memory, arm_store_return_value)
3697 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3698 (arm_record_ld_st_multiple): Likewise.
3699 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3700 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3701
e935475c
AH
37022019-07-04 Alan Hayward <alan.hayward@arm.com>
3703
3704 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3705 AARCH64_DISPLACED_MODIFIED_INSNS.
3706 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3707 (aarch64_displaced_step_copy_insn): Likewise.
3708 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3709 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3710 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3711 ARM_DISPLACED_MODIFIED_INSNS.
3712 * arm-tdep.c (arm_gdbarch_init): Likewise.
3713 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3714 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3715 (struct arm_displaced_step_closure): Use
3716 ARM_DISPLACED_MODIFIED_INSNS.
3717
df0bb381
AH
37182019-07-04 Alan Hayward <alan.hayward@arm.com>
3719
3720 * features/Makefile: Remove unused xml files.
3721 * features/aarch64.xml: Remove.
3722 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3723 * features/i386/amd64-avx-avx512.xml: Remove.
3724 * features/i386/amd64-avx-linux.xml: Remove.
3725 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3726 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3727 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3728 * features/i386/amd64-avx-mpx.xml: Remove.
3729 * features/i386/amd64-avx.xml: Remove.
3730 * features/i386/amd64-linux.xml: Remove.
3731 * features/i386/amd64-mpx-linux.xml: Remove.
3732 * features/i386/amd64-mpx.xml: Remove.
3733 * features/i386/amd64.xml: Remove.
3734 * features/i386/i386-avx-avx512-linux.xml: Remove.
3735 * features/i386/i386-avx-avx512.xml: Remove.
3736 * features/i386/i386-avx-linux.xml: Remove.
3737 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3738 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3739 * features/i386/i386-avx-mpx-linux.xml: Remove.
3740 * features/i386/i386-avx-mpx.xml: Remove.
3741 * features/i386/i386-avx.xml: Remove.
3742 * features/i386/i386-linux.xml: Remove.
3743 * features/i386/i386-mmx-linux.xml: Remove.
3744 * features/i386/i386-mmx.xml: Remove.
3745 * features/i386/i386-mpx-linux.xml: Remove.
3746 * features/i386/i386-mpx.xml: Remove.
3747 * features/i386/i386.xml: Remove.
3748 * features/i386/x32-avx-avx512-linux.xml: Remove.
3749 * features/i386/x32-avx-linux.xml: Remove.
3750 * features/i386/x32-linux.xml: Remove.
3751
edd6266a
AH
37522019-07-04 Alan Hayward <alan.hayward@arm.com>
3753
3754 * regformats/aarch64.dat: Remove.
3755 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3756 * regformats/i386/amd64-avx-linux.dat: Remove.
3757 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3758 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3759 * regformats/i386/amd64-linux.dat: Remove.
3760 * regformats/i386/amd64-mpx-linux.dat: Remove.
3761 * regformats/i386/amd64.dat: Remove.
3762 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3763 * regformats/i386/i386-avx-linux.dat: Remove.
3764 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3765 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3766 * regformats/i386/i386-linux.dat: Remove.
3767 * regformats/i386/i386-mmx-linux.dat: Remove.
3768 * regformats/i386/i386-mpx-linux.dat: Remove.
3769 * regformats/i386/i386.dat: Remove.
3770 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3771 * regformats/i386/x32-avx-linux.dat: Remove.
3772 * regformats/i386/x32-linux.dat: Remove.
3773
2b40fda7
AH
37742019-07-04 Alan Hayward <alan.hayward@arm.com>
3775
3776 * aarch64-tdep.c: Remove xml self tests.
3777 * amd64-linux-tdep.c: Likewise.
3778 * amd64-tdep.c: Likewise.
3779 * i386-linux-tdep.c: Likewise.
3780 * i386-tdep.c: Likewise.
3781
5f4ba3e7
PA
37822019-07-03 Pedro Alves <palves@redhat.com>
3783
3784 PR cli/24732
3785 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3786 (pipe_cmd_option_defs): New.
3787 (make_pipe_cmd_options_def_group): New.
3788 (pipe_command): Use gdb::option::process_options.
3789 (pipe_command_completer): New function.
3790 (_initialize_cli_cmds): Install completer for "pipe" command.
3791
3d9be6f5
PA
37922019-07-03 Pedro Alves <palves@redhat.com>
3793
3794 * cli/cli-option.c (union option_value) <string>: New field.
3795 (struct option_def_and_value): Add ctor, move ctor, dtor and
3796 use DISABLE_COPY_AND_ASSIGN.
3797 (option_def_and_value::clear_value): New.
3798 (parse_option, save_option_value_in_ctx, get_val_type_str)
3799 (add_setshow_cmds_for_options): Handle var_string.
3800 * cli-option.h (union option_def::var_address) <string>: New
3801 field.
3802 (struct string_option_def): New.
3803 * maint-test-options.c (struct test_options_opts): Add default
3804 ctor and use DISABLE_COPY_AND_ASSIGN.
3805 <string_opt>: New field.
3806 (test_options_opts::~test_options_opts): New.
3807 (test_options_opts::dump): Also dump "-string".
3808 (test_options_option_defs): Install "string.
3809
41fc454c
PA
38102019-07-03 Pedro Alves <palves@redhat.com>
3811
3812 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3813 option_value with a null enumeration.
3814 (complete_options): Save the option values in the context.
3815 (save_option_value_in_ctx): New, factored out from ...
3816 (process_options): ... here.
3817 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3818 of the function.
3819 * maint-test-options.c (test_options_opts::dump): New, factored
3820 out from ...
3821 (maintenance_test_options_command_mode): ... here.
3822 (maintenance_test_options_command_completion_result): Delete.
3823 (maintenance_test_options_command_completion_text): Update
3824 comment.
3825 (maintenance_show_test_options_completion_result): Change
3826 prototype. Just print
3827 maintenance_test_options_command_completion_text.
3828 (save_completion_result): New.
3829 (maintenance_test_options_completer_mode): Pass options context to
3830 complete_options, and then save a dump.
3831 (_initialize_maint_test_options): Use add_cmd to install "maint
3832 show test-options-completion-result".
3833
fdbc9870
PA
38342019-07-03 Pedro Alves <palves@redhat.com>
3835
3836 * NEWS (New commands): Mention "with" and "maint with".
3837 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3838 (with_command, with_command_completer): New.
3839 (pipe_command): Adjust to new repeat_previous
3840 interface.
3841 (_initialize_cli_cmds): Install the "with" command and its "w"
3842 alias.
3843 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3844 declarations.
3845 * cli/cli-setshow.c (parse_cli_var_uinteger)
3846 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3847 argument strings for all var_types.
3848 (get_setshow_command_value_string): New, factored out from ...
3849 (do_show_command): ... this.
3850 * cli/cli-setshow.h: Include <string>.
3851 (get_setshow_command_value_string): Declare.
3852 * command.h (repeat_previous): Now returns const char *. Adjust
3853 comment.
3854 * maint.c: Include "cli/cli-cmds.h".
3855 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3856 (_initialize_maint_cmds): Register the "maintenance with" command.
3857 * top.c (repeat_previous): Move bits from pipe_command here:
3858 Return the saved command line, if any; error out if there's no
3859 command to relaunch.
3860
c6ac8931
PA
38612019-07-03 Pedro Alves <palves@redhat.com>
3862
3863 * NEWS (New commands): Mention "maint set/show test-settings"
3864 instead of "maint test-settings".
3865 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3866 (maintenance_test_settings_set_list): Rename to ...
3867 (maintenance_set_test_settings_list): ... this.
3868 (maintenance_test_settings_show_list): Rename to ...
3869 (maintenance_show_test_settings_list): ... this.
3870 (maintenance_test_settings_cmd): Delete.
3871 (maintenance_test_settings_set_cmd): ...
3872 (maintenance_set_test_settings_cmd): ... this.
3873 (maintenance_test_settings_show_cmd): ...
3874 (maintenance_show_test_settings_cmd): ... this.
3875 (maintenance_test_settings_show_value_cmd):
3876 (maintenance_show_test_settings_value_cmd): ... this.
3877 (_initialize_maint_test_settings): No longer install the "maint
3878 test-settings" prefix command. Rename "maint test-settings set"
3879 to "maint set test-settings", and "maint test-settings show" to
3880 "maint show test-settings". Adjust all subcommands.
3881
d1fcf2fd
PA
38822019-07-03 Pedro Alves <palves@redhat.com>
3883
3884 * maint-test-settings.c: Fix file's intro comment. Replace all
3885 references to "test-options" with references to "test-settings",
3886 in comments.
3887
970f9d09
PA
38882019-07-03 Pedro Alves <palves@redhat.com>
3889
3890 * maint-test-settings.c (maintenance_test_settings_xxx)
3891 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3892 New.
3893 (maintenance_test_settings_enums): Use them.
3894 (maintenance_test_settings_enum): Default to
3895 maintenance_test_settings_xxx.
3896 (_initialize_maint_test_settings): Initialize
3897 MAINTENANCE_TEST_SETTINGS_FILENAME.
3898
f3869b1a
SM
38992019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3900
3901 * breakpoint.h (remove_breakpoints_inf): Change return type to
3902 void, move function documentation here.
3903 * breakpoint.c (remove_breakpoints_inf): Change return type to
3904 void, move function documentation to header.
3905
54d66006
PA
39062019-07-02 Pedro Alves <palves@redhat.com>
3907
3908 * NEWS (Completion improvements): Mention "info threads".
3909 * thread.c (struct info_threads_opts, info_threads_option_defs)
3910 (make_info_threads_options_def_group): New.
3911 (info_threads_command): Use gdb::option::process_options.
3912 (info_threads_command_completer): New.
3913 (_initialize_thread): Use gdb::option::build_help to build the
3914 help text for "info threads".
3915
854f6088
SM
39162019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3917
3918 * defs.h (generic_load): Move from here...
3919 * symfile.h (generic_load): ... to here. Rename name parameter
3920 to args.
3921 * symfile.c (generic_load): Add comment.
3922
54ee4252
TT
39232019-07-01 Tom Tromey <tromey@adacore.com>
3924
3925 * dwarf2read.c
3926 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3927 declaration of without_params. Fix formatting.
3928
65392b3e
TT
39292019-07-01 Tom Tromey <tromey@adacore.com>
3930
3931 * ada-exp.y (find_primitive_type): Update.
3932 * ada-lang.h (ada_lookup_symbol): Update.
3933 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3934 parameter.
3935 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3936
7d7571f0
SDJ
39372019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3938
3939 PR breakpoints/24541
3940 * gdbarch.c: Regenerate.
3941 * gdbarch.h: Regenerate.
3942 * gdbarch.sh: Add 'stap_adjust_register'.
3943 * i386-tdep.c: Include '<unordered_set>'.
3944 (i386_stap_adjust_register): New function.
3945 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3946 * stap-probe.c (stap_parse_register_operand): Call
3947 'gdbarch_stap_adjust_register'.
3948
5af5392a
SDJ
39492019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3950
3951 PR python/24742
3952 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3953 * python/python.c (do_start_initialization): Use 'xmalloc'
3954 instead of 'PyMem_Malloc'.
3955
10d06d82
TT
39562019-06-28 Tom Tromey <tromey@adacore.com>
3957
3958 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3959 for Ada.
3960
1b7f24cd
TT
39612019-06-27 Tom Tromey <tromey@adacore.com>
3962
3963 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3964 objfile_key.
3965 (arm_find_mapping_symbol, arm_record_special_symbol)
3966 (_initialize_arm_tdep): Update.
3967 (arm_objfile_data_free): Remove.
3968
3d507ff2
TT
39692019-06-27 Tom Tromey <tromey@adacore.com>
3970
3971 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3972 to cp_print_static_field.
3973
762c164d
TT
39742019-06-26 Tom Tromey <tromey@adacore.com>
3975
3976 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3977 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3978 declare.
3979
aa2f9bcf
AH
39802019-06-26 Alan Hayward <alan.hayward@arm.com>
3981
3982 * features/aarch64-core.c (create_feature_aarch64_core):
3983 Regenerate.
3984 * features/aarch64-core.xml: Add cpsr flags.
3985
3426ae57
AH
39862019-06-26 Alan Hayward <alan.hayward@arm.com>
3987
3988 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3989 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3990
4838e44c
SM
39912019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3994 field.
3995 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3996 use.
3997 (arm_record_special_symbol): Don't insert new symbol in sorted
3998 position, push it at the end.
3999
54cc7474
SM
40002019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4001
4002 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4003 (arm_mapping_symbol_s): Remove.
4004 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4005 (arm_mapping_symbol_vec): New typedef.
4006 (struct arm_per_objfile): Add constructor.
4007 <section_maps>: Change type to
4008 std::unique_ptr<arm_mapping_symbol_vec[]>.
4009 (arm_compare_mapping_symbols): Remove.
4010 (arm_find_mapping_symbol): Adjust to section_maps type change.
4011 (arm_objfile_data_free): Call delete on arm_per_objfile.
4012 (arm_record_special_symbol): Adjust to section_maps type change.
4013 Allocate arm_per_objfile with new.
4014
b65b566c
PW
40152019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4016
4017 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4018 with the command prefix.
4019
c2fc64f5
TT
40202019-06-25 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4023 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4024
fb54fa76
TT
40252019-06-25 Tom Tromey <tom@tromey.com>
4026
4027 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4028 type.
4029 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4030 protected.
4031
f7952c57
TT
40322019-06-25 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-winsource.c
4035 (tui_source_window_base::set_is_exec_point_at): Add check against
4036 LOA_ADDRESS.
4037
17568d78
TT
40382019-06-25 Tom Tromey <tom@tromey.com>
4039
4040 * tui/tui-source.c (tui_set_source_content): Don't check before
4041 xfree.
4042 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4043
53e7cdba
TT
40442019-06-25 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-winsource.h (tui_update_source_window_as_is)
4047 (tui_alloc_source_buffer, tui_line_is_displayed)
4048 (tui_addr_is_displayed): Change type of win_info.
4049 * tui/tui-winsource.c (tui_update_source_window_as_is)
4050 (tui_clear_source_content, tui_show_source_line)
4051 (tui_show_source_content, tui_source_window_base::refill)
4052 (tui_source_window_base::set_is_exec_point_at)
4053 (tui_source_window_base::set_is_exec_point_at)
4054 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4055 (tui_alloc_source_buffer, tui_line_is_displayed)
4056 (tui_addr_is_displayed): Change type of win_info. Update.
4057 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4058 (tui_source_window_base::do_make_visible_with_new_height):
4059 Update.
4060 * tui/tui-source.c (tui_set_source_content)
4061 (tui_set_source_content_nil)
4062 (tui_source_window::do_scroll_vertical): Update.
4063 * tui/tui-layout.c (show_layout): Update.
4064 * tui/tui-disasm.c (tui_set_disassem_content)
4065 (tui_disasm_window::do_scroll_vertical): Update.
4066 * tui/tui-data.h (tui_win_content): Remove.
4067 (struct tui_gen_win_info) <content, content_size>: Remove.
4068 (struct tui_source_element): Add initializers and destructor.
4069 (union tui_which_element, struct tui_win_element): Remove.
4070 (struct tui_source_window_base) <content>: New field.
4071 (struct tui_data_window): Remove destructor.
4072 (tui_alloc_content, tui_free_win_content)
4073 (tui_free_all_source_wins_content): Don't declare.
4074 * tui/tui-data.c (tui_initialize_static_data): Update.
4075 (init_content_element, tui_alloc_content): Remove.
4076 (~tui_gen_win_info): Update.
4077 (~tui_data_window, tui_free_all_source_wins_content)
4078 (tui_free_win_content, free_content, free_content_elements):
4079 Remove.
4080
7908abbf
TT
40812019-06-25 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-winsource.h (tui_clear_source_content)
4084 (tui_erase_source_content, tui_show_source_content): Change type
4085 of win_info.
4086 * tui/tui-winsource.c (tui_clear_source_content)
4087 (tui_erase_source_content, tui_show_source_content): Change type
4088 of win_info.
4089 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4090 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4091 win_info.
4092 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4093 win_info.
4094 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4095
02c28df0
TT
40962019-06-25 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-winsource.c (tui_clear_source_content)
4099 (tui_source_window_base::set_is_exec_point_at): Update.
4100 * tui/tui-source.c (tui_set_source_content_nil): Update.
4101 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4102 a bool.
4103 * tui/tui-data.c (init_content_element): Update.
4104
6658b1bf
TT
41052019-06-25 Tom Tromey <tom@tromey.com>
4106
4107 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4108 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4109 * tui/tui-layout.c (init_and_make_win): Update.
4110 * tui/tui.h (enum tui_win_type): Update.
4111 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4112 tui_win_is_auxillary.
4113 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4114 tui_win_is_auxillary.
4115
21e1c91e
TT
41162019-06-25 Tom Tromey <tom@tromey.com>
4117
4118 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4119 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4120 (tui_delete_data_content_windows, tui_display_all_data)
4121 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4122 Update.
4123 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4124 * tui/tui-regs.c (tui_last_regs_line_no)
4125 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4126 (tui_show_registers): Update.
4127 (tui_show_register_group): Return void. Update.
4128 (tui_display_registers_from, tui_display_reg_element_at_line)
4129 (tui_display_registers_from_line, tui_check_register_values):
4130 Update.
4131 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4132 member.
4133 (struct tui_data_window) <regs_content>: Now a std::vector.
4134 <regs_content_count>: Remove.
4135 (tui_add_content_elements, tui_free_data_content): Don't declare.
4136 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4137 (init_content_element): Remove DATA_WIN case. Add assert.
4138 (tui_add_content_elements): Remove.
4139 (tui_data_window): Update.
4140 (tui_free_data_content): Remove.
4141 (free_content_elements): Remove DATA_WIN case.
4142
115ac53b
TT
41432019-06-25 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-data.c (tui_data_item_window): Update.
4146 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4147 * tui/tui-windata.c (tui_display_all_data)
4148 (tui_display_data_from_line): Update.
4149 (tui_check_data_values): Remove.
4150 * tui/tui-regs.c (tui_show_register_group)
4151 (tui_display_reg_element_at_line): Update.
4152 * tui/tui-hooks.c (tui_register_changed)
4153 (tui_refresh_frame_and_register_information): Call
4154 tui_check_register_values.
4155 * tui/tui-data.h (struct tui_data_window) <data_content,
4156 data_content_count, data_type>: Remove.
4157 (enum tui_data_type): Remove.
4158
4159 * tui/tui-data.c (tui_data_window::clear_detail)
4160 (~tui_data_window): Update.
4161
eaf9738b
TT
41622019-06-25 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4165 declare.
4166 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4167 Rename from tui_first_data_item_displayed. Update.
4168 (tui_data_window::refresh_all)
4169 (tui_data_window::do_scroll_vertical): Update.
4170 * tui/tui-data.h (struct tui_data_window)
4171 <first_data_item_displayed>: Declare new method.
4172
31ca4723
TT
41732019-06-25 Tom Tromey <tom@tromey.com>
4174
4175 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4176 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4177 contents...
4178 (tui_initialize_static_data): ...here.
4179
41bcff7f
TT
41802019-06-25 Tom Tromey <tom@tromey.com>
4181
4182 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4183 (tui_display_registers_from, tui_check_register_values): Update.
4184 (tui_display_register): Remove win_info parameter; update.
4185 (tui_get_register): Change type of parameters.
4186 * tui/tui-data.h (struct tui_data_element): Remove.
4187 (union tui_which_element) <data>: Remove.
4188 <data_window>: Change type.
4189 (struct tui_data_item_window): New.
4190 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4191 case. Add assert.
4192 (~tui_data_item_window): New destructor.
4193 (free_content_elements): Remove DATA_ITEM_WIN case.
4194
d2802c33
TT
41952019-06-25 Tom Tromey <tom@tromey.com>
4196
4197 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4198 Remove.
4199
dd835f8b
TT
42002019-06-25 Tom Tromey <tom@tromey.com>
4201
4202 * tui/tui-data.h (struct tui_command_element): Remove.
4203 (union tui_which_element) <command>: Remove.
4204 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4205 assert.
4206 (free_content_elements): Remove CMD_WIN case.
4207
bd7db367
TT
42082019-06-25 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-layout.c (tui_set_layout): Update.
4211 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4212 * tui/tui-data.c (layout_def): Update.
4213
3add462f
TT
42142019-06-25 Tom Tromey <tom@tromey.com>
4215
4216 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4217 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4218 (tui_source_window_base::set_new_height): Update.
4219 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4220 Update.
4221 (tui_set_locator_fullname, tui_set_locator_info)
4222 (tui_show_frame_info): Update.
4223 * tui/tui-source.c (tui_set_source_content)
4224 (tui_source_is_displayed): Update.
4225 * tui/tui-layout.c (show_source_disasm_command, show_data)
4226 (show_source_or_disasm_and_command): Update.
4227 * tui/tui-disasm.c (tui_set_disassem_content)
4228 (tui_get_begin_asm_address): Update.
4229 * tui/tui-data.h (struct tui_locator_element): Remove.
4230 (union tui_which_element) <locator>: Remove.
4231 (struct tui_locator_window): New.
4232 (tui_locator_win_info_ptr): Change return type.
4233 * tui/tui-data.c (_locator): Change type.
4234 (tui_locator_win_info_ptr): Change return type.
4235 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4236 (tui_alloc_content): Add assert.
4237
489e9d8b
TT
42382019-06-25 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-winsource.c
4241 (tui_exec_info_window::maybe_allocate_content): New method.
4242 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4243 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4244 (make_source_or_disasm_window): Add cast.
4245 * tui/tui-data.h (union tui_which_element) <simple_string>:
4246 Remove.
4247 (struct tui_source_info): New.
4248 (struct tui_source_window_base) <execution_info>: Change type.
4249 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4250 case, and add assert.
4251 (tui_alloc_content): Add assert.
4252
c3fabb7d
TT
42532019-06-25 Tom Tromey <tom@tromey.com>
4254
4255 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4256 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4257 * tui/tui-data.c (tui_alloc_win_info): Remove.
4258
bbc228ee
TT
42592019-06-25 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4262 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4263 can_highlight.
4264
5fcee43a
TT
42652019-06-25 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4268 make_visible_with_new_height method.
4269 (tui_win_info::make_visible_with_new_height): New method.
4270 (tui_source_window_base::do_make_visible_with_new_height)
4271 (tui_data_window::do_make_visible_with_new_height)
4272 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4273 (make_visible_with_new_height): Remove.
4274 (tui_resize_all, tui_adjust_win_heights): Use
4275 make_visible_with_new_height method.
4276 * tui/tui-data.h (struct tui_win_info)
4277 <do_make_visible_with_new_height, make_visible_with_new_height>:
4278 New methods.
4279 (struct tui_source_window_base, struct tui_data_window)
4280 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4281 methods.
4282
d83f1fe6
TT
42832019-06-25 Tom Tromey <tom@tromey.com>
4284
4285 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4286 method.
4287 (update_tab_width): Call update_tab_width method.
4288 * tui/tui-data.h (struct tui_win_info)
4289 (struct tui_source_window_base) <update_tab_width>: New methods.
4290
17374de4
TT
42912019-06-25 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4294 parameter.
4295 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4296 parameter.
4297 (tui_gen_win_info::make_visible): Update.
4298 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4299 parameter.
4300 * tui/tui-data.h (enum tui_box): New enum.
4301 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4302
f936bca2
TT
43032019-06-25 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4306 init_and_make_win for EXEC_INFO_WIN.
4307 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4308 longer inline.
4309 (struct tui_win_info) <~tui_win_info>: Inline.
4310 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4311 Don't declare.
4312 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4313 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4314 Remove.
4315 (tui_initialize_static_data): Update.
4316 (~tui_gen_win_info): Handle more cleanup here.
4317 (~tui_source_window_base): Delete "execution_info".
4318 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4319
d6ba6a11
TT
43202019-06-25 Tom Tromey <tom@tromey.com>
4321
4322 * tui/tui-layout.c (make_command_window): Don't set
4323 can_highlight.
4324 (show_source_disasm_command): Call the reset method.
4325 (show_data): Don't set can_highlight. Call the reset method.
4326 (tui_gen_win_info::reset): Rename from init_gen_win_info
4327 (init_and_make_win): Simplify. Return tui_gen_win_info.
4328 (show_source_or_disasm_and_command): Call the reset method.
4329 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4330 (struct tui_cmd_window): Set can_highlight.
4331
48a3bd16
TT
43322019-06-25 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4335 from make_visible.
4336 (tui_make_visible, tui_make_invisible): Rewrite.
4337 (tui_win_info::make_visible): Remove.
4338 (tui_source_window_base::make_visible): Update.
4339 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4340 method. Moved from...
4341 (struct tui_win_info) <make_visible>: ...here.
4342
c3bd716f
TT
43432019-06-25 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-winsource.c
4346 (tui_source_window_base::do_scroll_horizontal): Remove direction
4347 parameter.
4348 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4349 direction parameter.
4350 * tui/tui-win.c (tui_win_info::forward_scroll)
4351 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4352 (tui_win_info::right_scroll): Update.
4353 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4354 direction parameter.
4355 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4356 direction parameter.
4357 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4358 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4359 Remove direction parameter.
4360 (struct tui_source_window_base, struct tui_source_window)
4361 (struct tui_disasm_window, struct tui_data_window)
4362 (struct tui_cmd_window): Update.
4363
21c32dca
TT
43642019-06-25 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-winsource.h (tui_set_exec_info_content)
4367 (tui_show_exec_info_content, tui_erase_exec_info_content)
4368 (tui_clear_exec_info_content, tui_update_exec_info): Change
4369 argument to tui_source_window_base.
4370 * tui/tui-winsource.c (tui_set_exec_info_content)
4371 (tui_show_exec_info_content, tui_erase_exec_info_content)
4372 (tui_clear_exec_info_content, tui_update_exec_info): Change
4373 argument to tui_source_window_base.
4374
73fbdc65
TT
43752019-06-25 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4378 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4379
33325343
TT
43802019-06-25 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4383 check.
4384
29d2c474
TT
43852019-06-25 Tom Tromey <tom@tromey.com>
4386
4387 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4388 type to void.
4389 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4390 type to void.
4391 * tui/tui-source.c (tui_set_source_content): Update.
4392 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4393
152f3f4b
TT
43942019-06-25 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui-win.c (window_name_completer, tui_set_focus)
4397 (tui_all_windows_info): Use name method.
4398 * tui/tui-data.h (struct tui_gen_win_info)
4399 (struct tui_source_window, struct tui_disasm_window)
4400 (struct tui_data_window, struct tui_cmd_window) <name>: New
4401 method.
4402 (tui_win_name): Don't declare.
4403 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4404 (tui_win_name): Remove.
4405
be4da588
TT
44062019-06-25 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-winsource.h (tui_update_source_window)
4409 (tui_update_source_window_as_is): Change parameter type.
4410 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4411 to be a tui_source_window_base.
4412 (tui_update_source_window_as_is): Likewise.
4413 * tui/tui-win.c (make_visible_with_new_height): Update.
4414
5b81daba
TT
44152019-06-25 Tom Tromey <tom@tromey.com>
4416
4417 * tui/tui-winsource.c (tui_erase_source_content)
4418 (tui_show_source_content, tui_show_exec_info_content)
4419 (tui_erase_exec_info_content): Use refresh_window method.
4420 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4421 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4422 from tui_refresh_win.
4423 (tui_data_window::refresh_window): New method.
4424 (tui_win_info::refresh, tui_source_window_base::refresh)
4425 (tui_refresh_all): Use refresh_window method.
4426 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4427 method.
4428 * tui/tui-regs.c (tui_display_register): Call refresh_window
4429 method.
4430 * tui/tui-layout.c (show_source_disasm_command)
4431 (show_source_or_disasm_and_command): Call refresh_window method.
4432 * tui/tui-data.h (struct tui_gen_win_info)
4433 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4434 New method.
4435
cb2ce893
TT
44362019-06-25 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui.c (tui_rl_other_window, tui_enable)
4439 (tui_is_window_visible, tui_get_command_dimension): Update.
4440 * tui/tui-winsource.c (tui_update_source_window_as_is)
4441 (tui_clear_source_content, tui_erase_source_content)
4442 (tui_show_source_line, tui_source_window_base::refill)
4443 (tui_source_window_base::do_scroll_horizontal)
4444 (tui_source_window_base::set_is_exec_point_at)
4445 (tui_update_breakpoint_info, tui_set_exec_info_content)
4446 (tui_alloc_source_buffer, tui_line_is_displayed)
4447 (tui_addr_is_displayed): Update.
4448 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4449 (tui_check_and_display_highlight_if_needed)
4450 (tui_win_info::make_visible, tui_win_info::refresh)
4451 (tui_refresh_all): Update.
4452 * tui/tui-windata.c (tui_first_data_item_displayed)
4453 (tui_delete_data_content_windows, tui_erase_data_content)
4454 (tui_display_all_data, tui_data_window::refresh_all)
4455 (tui_check_data_values): Update.
4456 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4457 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4458 (tui_win_info::backward_scroll, tui_refresh_all_win)
4459 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4460 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4461 (tui_source_window_base::set_new_height)
4462 (tui_data_window::set_new_height)
4463 (make_invisible_and_set_new_height)
4464 (make_visible_with_new_height, new_height_ok)
4465 (parse_scrolling_args): Update.
4466 * tui/tui-stack.c (tui_show_frame_info): Update.
4467 * tui/tui-source.c (tui_set_source_content)
4468 (tui_set_source_content_nil, tui_source_is_displayed)
4469 (tui_source_window::do_scroll_vertical): Update.
4470 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4471 (tui_display_registers_from, tui_display_reg_element_at_line)
4472 (tui_check_register_values, tui_reg_command): Update.
4473 * tui/tui-layout.c (tui_default_win_height)
4474 (show_source_disasm_command, show_data, init_and_make_win)
4475 (show_source_or_disasm_and_command): Update.
4476 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4477 (tui_redisplay_readline, tui_mld_flush)
4478 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4479 (tui_getc): Update.
4480 * tui/tui-disasm.c (tui_set_disassem_content)
4481 (tui_disasm_window::do_scroll_vertical): Update.
4482 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4483 Now virtual.
4484 (struct tui_win_info): Derive from tui_gen_win_info.
4485 <~tui_win_info>: Mark as override.
4486 <generic>: Remove member.
4487 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4488 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4489 (~tui_data_window, ~tui_win_info)
4490 (tui_free_all_source_wins_content): Update.
4491 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4492
ab313b35
TT
44932019-06-25 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-layout.c (init_and_make_win): Use new.
4496 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4497 destructor, initializers.
4498 (tui_alloc_generic_win_info): Don't declare.
4499 * tui/tui-data.c (_locator): Add argument to constructor.
4500 (source_win, disasm_win): New globals.
4501 (exec_info): Remove.
4502 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4503 Update.
4504 (tui_alloc_generic_win_info): Remove.
4505 (init_content_element): Use new.
4506 (tui_win_info::tui_win_info): Update.
4507 (free_content_elements) <case DATA_WIN>: Use delete.
4508
dc2c33e4
TT
45092019-06-25 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4512 * tui/tui-windata.c (tui_first_data_item_displayed)
4513 (tui_delete_data_content_windows): Update.
4514 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4515 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4516 (tui_display_registers_from, tui_check_register_values): Update.
4517 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4518 pointer.
4519 * tui/tui-data.c (init_content_element): Update. Allocate the new
4520 window.
4521 (tui_free_data_content): Update.
4522 (free_content_elements) <case DATA_WIN>: Free the window.
4523
214a5cbe
TT
45242019-06-25 Tom Tromey <tom@tromey.com>
4525
4526 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4527 Update.
4528 * tui/tui-layout.c (make_command_window)
4529 (show_source_disasm_command, show_data, init_and_make_win)
4530 (show_source_or_disasm_and_command): Update.
4531 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4532 method.
4533 <can_highight, is_highlighted>: Now bool.
4534 (tui_set_win_highlight): Don't declare.
4535 * tui/tui-data.c (tui_set_win_highlight): Remove.
4536
8e2daf15
TT
45372019-06-25 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-wingeneral.c (make_visible): Remove check of window
4540 type.
4541
8903bd8a
TT
45422019-06-25 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-win.c (tui_win_info::max_height)
4545 (tui_cmd_window::max_height): New methods.
4546 (new_height_ok): Call max_height.
4547 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4548 <max_height>: New method.
4549
3f02ce1e
TT
45502019-06-25 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui-win.c (tui_source_window_base::set_new_height)
4553 (tui_data_window::set_new_height): New methods.
4554 (make_invisible_and_set_new_height): Call set_new_height method.
4555 * tui/tui-data.h (struct tui_win_info)
4556 (struct tui_source_window_base, struct tui_data_window)
4557 <set_new_height>: New method.
4558
1825f487
TT
45592019-06-25 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4562 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4563 tui_refresh_data_win.
4564 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4565 method.
4566 (tui_refresh_all_win): Call the refresh_all method.
4567 (tui_set_focus): Likewise.
4568 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4569 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4570 Likewise.
4571
ad54d15b
TT
45722019-06-25 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-winsource.h (tui_refill_source_window)
4575 (tui_set_is_exec_point_at): Don't declare.
4576 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4577 (tui_source_window_base::refill): Rename from
4578 tui_refill_source_window.
4579 (tui_source_window_base::do_scroll_horizontal): Update.
4580 (tui_source_window_base::set_is_exec_point_at): Rename from
4581 tui_set_is_exec_point_at.
4582 (tui_update_all_breakpoint_info): Update.
4583 * tui/tui-stack.c (tui_show_frame_info): Update.
4584 * tui/tui-layout.c (show_data): Add cast.
4585 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4586 * tui/tui-data.h (struct tui_source_window_base) <refill,
4587 set_is_exec_point_at>: New methods.
4588 (tui_source_windows, tui_add_to_source_windows): Update types.
4589 (tui_add_to_source_windows): Remove redundant declaration.
4590 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4591 (tui_source_windows): Change return type.
4592 (tui_clear_source_windows_detail): Update.
4593 (tui_add_to_source_windows): Change type of parameter.
4594 (tui_free_all_source_wins_content): Update.
4595
2042b506
TT
45962019-06-25 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-wingeneral.c (tui_win_info::refresh)
4599 (tui_source_window_base::refresh): New methods.
4600 (tui_refresh_all): Call the refresh method.
4601 * tui/tui-data.h (struct tui_win_info)
4602 (struct tui_source_window_base) <refresh>: New method.
4603
56122977
TT
46042019-06-25 Tom Tromey <tom@tromey.com>
4605
4606 * tui/tui.h (tui_is_window_visible): Return bool.
4607 * tui/tui.c (tui_is_window_visible): Return bool.
4608 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4609 (tui_make_visible, tui_make_invisible)
4610 (tui_win_info::make_visible)
4611 (tui_source_window_base::make_visible, make_all_visible)
4612 (tui_make_all_visible, tui_make_all_invisible): Update.
4613 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4614 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4615 bool.
4616 (struct tui_win_info, struct tui_source_window_base)
4617 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4618 * tui/tui-data.c (tui_init_generic_part): Update.
4619
cda37efb
TT
46202019-06-25 Tom Tromey <tom@tromey.com>
4621
4622 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4623 (tui_source_window_base::make_visible): New methods.
4624 (make_all_visible): Make method call.
4625 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4626 (struct tui_source_window_base, struct tui_cmd_window): Override
4627 make_visible.
4628 (tui_win_is_source_type): Don't declare.
4629 * tui/tui-data.c (tui_win_is_source_type): Remove.
4630
6a0ee02c
TT
46312019-06-25 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4634 NULL check.
4635
63901aec
TT
46362019-06-25 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4639 Inline constructor. Add initializers for members.
4640 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4641 constructors; now inline in class.
4642
ceb13a13
TT
46432019-06-25 Tom Tromey <tom@tromey.com>
4644
4645 * tui/tui-regs.c (tui_show_registers): Update.
4646 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4647 bool.
4648 * tui/tui-data.c (tui_data_window::clear_detail)
4649 (tui_data_window): Update.
4650
238eb706
TT
46512019-06-25 Tom Tromey <tom@tromey.com>
4652
4653 * tui/tui-windata.c (tui_display_all_data)
4654 (tui_display_data_from_line, tui_display_data_from)
4655 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4656 Update.
4657 * tui/tui-regs.c (tui_last_regs_line_no)
4658 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4659 (tui_show_registers, tui_show_register_group)
4660 (tui_display_registers_from, tui_display_reg_element_at_line)
4661 (tui_display_registers_from_line, tui_check_register_values)
4662 (tui_reg_next, tui_reg_prev): Update.
4663 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4664 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4665 tui_data_window.
4666 (struct tui_win_info) <detail>: Remove. Add new fields from
4667 tui_data_info.
4668 (TUI_DATA_WIN): Add cast.
4669 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4670 (~tui_data_window): Simplify.
4671
81491aa0
TT
46722019-06-25 Tom Tromey <tom@tromey.com>
4673
4674 * tui/tui-layout.c (show_source_disasm_command)
4675 (show_source_or_disasm_and_command): Update.
4676 * tui/tui-io.c (update_cmdwin_start_line)
4677 (tui_redisplay_readline): Update.
4678 * tui/tui-data.h (struct tui_command_info): Remove.
4679 (struct tui_win_info) <detail>: Remove command_info member.
4680 (struct tui_data_window) <start_line>: New member, from
4681 tui_command_info.
4682 (TUI_CMD_WIN): Add casts.
4683
e6e41501
TT
46842019-06-25 Tom Tromey <tom@tromey.com>
4685
4686 * tui/tui-winsource.c (tui_update_source_window)
4687 (tui_refill_source_window)
4688 (tui_source_window_base::do_scroll_horizontal)
4689 (tui_update_breakpoint_info, tui_set_exec_info_content)
4690 (tui_show_exec_info_content, tui_erase_exec_info_content)
4691 (tui_clear_exec_info_content): Update.
4692 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4693 Update.
4694 * tui/tui-win.c (make_invisible_and_set_new_height)
4695 (make_visible_with_new_height): Update.
4696 * tui/tui-source.c (tui_set_source_content)
4697 (tui_show_symtab_source): Update.
4698 * tui/tui-layout.c (extract_display_start_addr)
4699 (show_source_disasm_command, show_data)
4700 (make_source_or_disasm_window)
4701 (show_source_or_disasm_and_command): Update.
4702 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4703 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4704 "gdbarch".
4705 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4706 to tui_source_window_base.
4707 (struct tui_win_info) <detail>: Remove source_info member.
4708 (struct tui_source_window_base) <has_locator>: Inline.
4709 Move contents from tui_source_info; rename has_locator member to
4710 m_has_locator.
4711 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4712 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4713 header file.
4714 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4715 Simplify.
4716 (tui_free_all_source_wins_content): Cast to
4717 tui_source_window_base.
4718
44f0e208
TT
47192019-06-25 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-win.c (make_invisible_and_set_new_height)
4722 (make_visible_with_new_height): Call has_locator method.
4723 * tui/tui-layout.c (show_source_disasm_command, show_data)
4724 (show_source_or_disasm_and_command): Update for bool change.
4725 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4726 (tui_win_info) <has_locator>: New method.
4727 (struct tui_source_window_base) <has_locator>: New method.
4728 (tui_win_has_locator): Don't declare.
4729 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4730 from tui_win_has_locator.
4731 (tui_source_window_base): Use false, not FALSE.
4732
7778b912
TT
47332019-06-25 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4736 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4737 clear_detail method directly.
4738 (tui_clear_win_detail): Remove.
4739
f83d391c
TT
47402019-06-25 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4743 "this", not TUI_DISASM_WIN.
4744
13446e05
TT
47452019-06-25 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4748 declare.
4749 * tui/tui-winsource.c
4750 (tui_source_window_base::do_scroll_horizontal): Rename from
4751 tui_horizontal_source_scroll.
4752 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4753 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4754 from tui_vertical_data_scroll.
4755 * tui/tui-win.h (tui_scroll): Don't declare.
4756 * tui/tui-win.c (tui_win_info::forward_scroll)
4757 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4758 (tui_win_info::right_scroll): Rename and update.
4759 (tui_scroll_forward_command, tui_scroll_backward_command)
4760 (tui_scroll_left_command, tui_scroll_right_command): Update.
4761 (tui_scroll): Remove.
4762 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4763 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4764 from tui_vertical_source_scroll.
4765 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4766 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4767 from tui_vertical_disassem_scroll.
4768 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4769 do_scroll_horizontal>: New methods.
4770 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4771 Likewise.
4772 (struct tui_source_window_base): Add do_scroll_horizontal.
4773 (struct tui_source_window, struct tui_disasm_window): Add
4774 do_scroll_vertical.
4775 (struct tui_data_window, struct tui_cmd_window): Add
4776 do_scroll_horizontal and do_scroll_vertical.
4777 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4778
5cf82909
TT
47792019-06-25 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-data.h (struct tui_source_window_base): New struct.
4782 (struct tui_source_window): Derive from tui_source_window_base.
4783 (struct tui_disasm_window): New struct.
4784 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4785 from tui_source_window::clear_detail.
4786 (tui_source_window_base): Rename from tui_source_window.
4787 (~tui_source_window_base): Rename from ~tui_source_window.
4788 (tui_alloc_win_info): Create a tui_disasm_window.
4789
ee1d42d6
TT
47902019-06-25 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-data.h (struct tui_source_window)
4793 (struct tui_data_window): Declare destructors.
4794 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4795 destructors.
4796 (tui_win_info): Simplify.
4797
b4eb2452
TT
47982019-06-25 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-winsource.c (tui_display_main)
4801 (tui_update_source_windows_with_addr)
4802 (tui_update_all_breakpoint_info): Update.
4803 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4804 (new_height_ok, parse_scrolling_args): Update.
4805 * tui/tui-stack.c (tui_show_frame_info): Update.
4806 * tui/tui-data.h (struct tui_list): Remove.
4807 (tui_source_windows): Return a reference to a std::vector.
4808 * tui/tui-data.c (source_windows): Now a std::vector.
4809 (tui_source_windows): Change return type.
4810 (tui_clear_source_windows): Rewrite.
4811 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4812 (tui_free_all_source_wins_content): Rewrite.
4813
8761a91b
TT
48142019-06-25 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4817 (struct tui_data_window, struct tui_cmd_window): Declare
4818 clear_detail method.
4819 * tui/tui-data.c (tui_source_window::clear_detail)
4820 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4821 methods.
4822 (tui_clear_win_detail): Simplify.
4823
0ed69eda
TT
48242019-06-25 Tom Tromey <tom@tromey.com>
4825
4826 * tui/tui-layout.c (make_source_window, make_disasm_window)
4827 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4828 Return the new window.
4829 (show_source_disasm_command, show_data)
4830 (show_source_or_disasm_and_command): Update.
4831
82432e10
TT
48322019-06-25 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4835 parameter. Return the new window.
4836 (show_source_disasm_command): Update and remove NULL check.
4837 (show_source_or_disasm_and_command): Update.
4838
ec328aa5
TT
48392019-06-25 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4842
33b906ab
TT
48432019-06-25 Tom Tromey <tom@tromey.com>
4844
4845 * tui/tui-data.h (struct tui_win_info): Make constructor
4846 protected. Make destructor virtual. Add initializers.
4847 (tui_source_window, tui_data_window, tui_cmd_window): New
4848 classes.
4849 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4850 constructor. Add "type" parameter.
4851 (tui_source_window, tui_data_window, tui_cmd_window): New
4852 constructors.
4853 (tui_alloc_win_info): Instantiate the appropriate subclass.
4854
e7e11af4
TT
48552019-06-25 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-win.c (tui_resize_all): Use delete.
4858 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4859 destructor.
4860 (tui_free_window): Don't declare.
4861 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4862 Update.
4863
6792b55e
TT
48642019-06-25 Tom Tromey <tom@tromey.com>
4865
4866 * tui/tui-data.h (struct tui_win_info): Add constructor.
4867 * tui/tui-data.c (tui_alloc_win_info): Use new.
4868 (tui_free_window): Use delete.
4869
f95675e1
TT
48702019-06-22 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4873 declare.
4874 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4875
5bff081c
TT
48762019-06-22 Tom Tromey <tom@tromey.com>
4877
4878 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4879 declare.
4880 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4881
47e3f474
TV
48822019-06-22 Tom de Vries <tdevries@suse.de>
4883
4884 * dwarf2read.c (create_addrmap_from_aranges)
4885 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4886 instead of '%zu'.
4887
fd5866f6
SM
48882019-06-21 Simon Marchi <simon.marchi@efficios.com>
4889
4890 * dwarf2read.h (dwarf2_section_info_def): Remove.
4891 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4892 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4893 std::vector<dwarf2_section_info>.
4894 (struct dwo_file) <~dwo_file>: Remove.
4895 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4896 types field.
4897 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4898 (dwarf2_read_debug_names): Likewise.
4899 (create_debug_types_hash_table): Change parameter type to
4900 array_view, adjust code accordingly.
4901 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4902 (partial_die_info::fixup): Likewise.
4903 (determine_prefix): Likewise.
4904 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4905
fb1eb2f9
SM
49062019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4907
4908 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4909 gdb_bfd_ref_ptr.
4910 <~dwo_file>: Remove call to gdb_bfd_unref.
4911 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4912 gdb_bfd_ref_ptr::get.
4913
51ac9db5
SM
49142019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4915
4916 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4917 type to htab_up.
4918 * dwarf2read.c (struct dwo_file): Initialize fields.
4919 <~dwo_file>: New.
4920 (free_dwo_file): Remove, move content to ~dwo_file.
4921 (struct dwo_file_deleter): Remove.
4922 (dwo_file_up>: Remove custom deleter.
4923 (free_dwo_files): Remove.
4924 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4925 dwo_files.
4926 (process_skeletonless_type_units): Call unique_ptr::get.
4927 (allocate_dwo_file_hash_table): Add deleter to created hash
4928 table. Change return type to htab_up.
4929 (lookup_dwo_file_slot): Don't memset dwo_file, call
4930 unique_ptr::get.
4931 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4932 (create_dwo_unit_in_dwp_v2): Likewise.
4933 (open_and_init_dwo_file): Likewise.
4934 (free_dwo_file_from_slot): Remove.
4935
dc4ccb6f
SM
49362019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4937
4938 * dwarf2read.h (struct dwarf2_section_info) <readin,
4939 is_virtual>: Change type to bool.
4940 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4941 true instead of 1.
4942
e6a1c5cb
TT
49432019-06-19 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-data.h (tui_init_content_element): Don't declare.
4946
6f6ffbeb
TT
49472019-06-19 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-data.h (tui_init_win_info): Don't declare.
4950
f23f598e
TV
49512019-06-19 Tom de Vries <tdevries@suse.de>
4952
4953 * dwarf2read.h (abstract_to_concrete): Change type to
4954 std::unordered_map<sect_offset, std::vector<sect_offset>,
4955 gdb::hash_enum<sect_offset>>.
4956
680e1bee
TT
49572019-06-19 Tom Tromey <tromey@adacore.com>
4958
4959 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4960 EVAL_AVOID_SIDE_EFFECTS specially.
4961
dcf37923
TT
49622019-06-19 Tom Tromey <tromey@adacore.com>
4963
4964 * source-cache.c (highlighter): New global.
4965 (source_cache::get_source_lines): Create a highlighter on demand.
4966
494986d5
AB
49672019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * defs.h (deprecated_interactive_hook): Delete declaration.
4970 * interps.c (clear_interpreter_hooks): Remove use of
4971 deprecated_interactive_hook.
4972 * top.c (deprecated_interactive_hook): Delete definition.
4973 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4974
3360b6e7
TV
49752019-06-18 Tom de Vries <tdevries@suse.de>
4976
4977 PR gdb/24515
4978 * dwarf2read.h (abstract_to_concrete): Change type from
4979 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4980 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4981 * dwarf2read.c (read_variable): Update.
4982 (dwarf2_fetch_die_loc_sect_off): Update.
4983
310b3441
TV
49842019-06-17 Tom de Vries <tdevries@suse.de>
4985
4986 PR gdb/24617
4987 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4988 accessing parent[parent_len - 1].
4989
ba9777be
PP
49902019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4991
4992 PR gdb/24364
4993 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4994 call dtrace_process_dof with NULL dof.
4995
2b9f6e89
TV
49962019-06-16 Tom de Vries <tdevries@suse.de>
4997
4998 PR gdb/24445
4999 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5000
431b3ead
TT
50012019-06-16 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5004 (make_all_visible): Use address of member.
5005
d04b44a1
TT
50062019-06-16 Tom Tromey <tom@tromey.com>
5007
5008 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5009 (tui_free_window, free_content, free_content_elements): Remove
5010 unnecessary cast.
5011 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5012 cast.
5013 * tui/tui-regs.c (tui_show_register_group)
5014 (tui_display_registers_from, tui_display_reg_element_at_line):
5015 Remove unnecessary cast.
5016
bf5142e7
AB
50172019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * linux-nat.c (normal_mask): Delete.
5020 (_initialize_linux_nat): Don't initialise normal_mask.
5021
c4973306
SM
50222019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 PR gdb/24445
5025 * dwarf-index-write.h (write_psymtabs_to_index): Add
5026 dwz_basename parameter.
5027 * dwarf-index-write.c (write_gdbindex): Move file writing to
5028 write_gdbindex_1. Change return type void.
5029 (assert_file_size): Move up, remove filename parameter.
5030 (write_gdbindex_1): New function.
5031 (write_debug_names): Change return type to void, call
5032 assert_file_size.
5033 (struct index_wip_file): New struct.
5034 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5035 file logic to index_wip_file. Write index for dwz file if
5036 needed.
5037 (save_gdb_index_command): Pass basename of dwz file, if present.
5038 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5039 build-id of dwz file, if present.
5040 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5041 (dwarf2_get_dwz_file): Likewise.
5042 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5043 (dwarf2_get_dwz_file): Likewise.
5044
395f9c91
TT
50452019-06-16 Tom Tromey <tom@tromey.com>
5046
5047 * coffread.c (process_coff_symbol): Use xstrdup.
5048 * value.c (create_internalvar): Use xstrdup.
5049
cafb3438
TT
50502019-06-16 Tom Tromey <tom@tromey.com>
5051
5052 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5053 * breakpoint.c (stopin_command, stopat_command)
5054 (until_break_command, decode_location_default): Remove unnecessary
5055 cast.
5056 * utils.c (subset_compare): Remove unnecessary cast.
5057 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5058 cast.
5059 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5060 cast.
5061 * infcmd.c (path_command): Remove unnecessary cast.
5062 * coffread.c (decode_type): Remove unnecessary cast.
5063 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5064 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5065 * tui/tui-stack.c (tui_show_locator_content)
5066 (tui_show_frame_info): Remove unnecessary cast.
5067 * tui/tui-win.c (tui_scroll_forward_command)
5068 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5069 (parse_scrolling_args): Remove unnecessary cast.
5070 * tui/tui-data.c (init_win_info, tui_del_window)
5071 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5072 (free_content_elements): Remove unnecessary cast.
5073 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5074 unnecessary cast.
5075 * tui/tui-source.c (tui_set_source_content)
5076 (tui_vertical_source_scroll): Remove unnecessary cast.
5077 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5078 cast.
5079 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5080 * tui/tui-regs.c (tui_display_registers_from)
5081 (tui_display_register): Remove unnecessary cast.
5082 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5083 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5084 (make_visible): Remove unnecessary cast.
5085 * tui/tui-winsource.c (tui_erase_source_content)
5086 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5087 unnecessary cast.
5088 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5089 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5090 * stabsread.c (read_type, read_array_type, read_range_type):
5091 Remove unnecessary cast.
5092 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5093 (parse_symbol, parse_type, upgrade_type, parse_external)
5094 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5095 unnecessary cast.
5096 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5097
730ead81
TT
50982019-06-16 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-data.c (tui_alloc_generic_win_info)
5101 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5102 checks.
5103
584a927c
AB
51042019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5105 Andrew Burgess <andrew.burgess@embecosm.com>
5106
5107 * f-typeprint.c (f_print_type): Don't return early for not
5108 associated or not allocated types.
5109 (f_type_print_varspec_suffix): Add print_rank parameter and print
5110 ranks of array types in case they dangling.
5111 (f_type_print_base): Add print_rank parameter.
5112
30056ea0
AB
51132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * NEWS: Mention new MI commands.
5116 * break-catch-throw.c (enum exception_event_kind): Move to
5117 breakpoint.h.
5118 (print_mention_exception_catchpoint): Output text as a single
5119 message.
5120 (catch_exception_command_1): Rename to...
5121 (catch_exception_event): ...this, make non-static, update header
5122 command, and change some parameter types.
5123 (catch_catch_command): Update for changes to
5124 catch_exception_command_1.
5125 (catch_throw_command): Likewise.
5126 (catch_rethrow_command): Likewise.
5127 * breakpoint.c (enum exception_event_kind): Delete.
5128 * breakpoint.h (enum exception_event_kind): Moved here from
5129 break-catch-throw.c.
5130 (catch_exception_event): Declare.
5131 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5132 (mi_cmd_catch_throw): New function.
5133 (mi_cmd_catch_rethrow): New function.
5134 (mi_cmd_catch_catch): New function.
5135 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5136 'catch-catch' entries.
5137 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5138 (mi_cmd_catch_rethrow): Declare.
5139 (mi_cmd_catch_catch): Declare.
5140
ec8e2b6d
AB
51412019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5142
5143 * annotate.c (annotate_source_line): Change return type to void,
5144 update implementation to match.
5145 * annotate.h (annotate_source_line): Change return type to void,
5146 update header comment.
5147 * stack.c (print_frame_info): Don't change what frame information
5148 is printed based on whether annotations are on or not.
5149
0d3abd8c
AB
51502019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5153 (annotate_source): Make static.
5154 (annotate_source_line): Moved from source.c and renamed from
5155 identify_source_line. Update the return type.
5156 * annotate.h (annotate_source): Delete declaration.
5157 (annotate_source_line): Declaration moved from source.h, and
5158 renamed from identify_source_line. Return type updated.
5159 * source.c (identify_source_line): Moved to annotate.c and renamed
5160 to annotate_source_line.
5161 (info_line_command): Remove check of annotation_level.
5162 * source.h (identify_source_line): Move declaration to annotate.h
5163 and rename to annotate_source_line.
5164 * stack.c: Add 'annotate.h' include.
5165 (print_frame_info): Remove check of annotation_level before
5166 calling annotate_source_line.
5167
00df30ae
AB
51682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 * source-cache.c (source_cache::get_plain_source_lines): Use
5171 open_source_file_with_line_charpos instead of just
5172 open_source_file, remove call to find_source_lines.
5173 (source_cache::get_source_lines): Likewise.
5174 * source.c (find_source_lines): Make static.
5175 (get_filename_and_charpos): Renamed into...
5176 (open_source_file_with_line_charpos): ..this along with changes to
5177 return a scoped_fd, and some other minor clean ups.
5178 (identify_source_line): Use open_source_file_with_line_charpos.
5179 (search_command_helper): Use open_source_file_with_line_charpos
5180 instead of just open_source_file, remove call to
5181 find_source_lines.
5182 * source.h (open_source_file_with_line_charpos): Declare new
5183 function.
5184 (find_source_lines): Delete declaration.
5185
afda45a2
AB
51862019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5187
5188 * source.c (get_filename_and_charpos): Remove fullname
5189 parameter.
5190 (identify_source_line): Update call to get_filename_and_charpos.
5191
0735b091
TT
51922019-06-14 Tom Tromey <tromey@adacore.com>
5193
5194 PR gdb/24502:
5195 * ui-style.h (skip_ansi_escape): Update comment.
5196 * ui-file.h (class no_terminal_escape_file): New class.
5197 * ui-file.c (no_terminal_escape_file::write)
5198 (no_terminal_escape_file::puts): New methods.
5199 * cli/cli-logging.c (handle_redirections): Use
5200 no_terminal_escape_file.
5201
52ce35e2
TT
52022019-06-14 Tom Tromey <tromey@adacore.com>
5203
5204 * NEWS: Move convenience variable news above Python news.
5205
73cc7272
TT
52062019-06-14 Tom Tromey <tom@tromey.com>
5207
5208 * gnulib: Move directory to top-level.
5209 * configure.ac: Don't configure gnulib.
5210 * configure: Rebuild.
5211 * common/common-defs.h: Use new path to gnulib.
5212 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5213 (GNULIB_H): Remove.
5214 (INCGNU): Look in new gnulib location.
5215 (HFILES_NO_SRCDIR): Remove gnulib files.
5216 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5217 (generated_files): Remove GNULIB_H.
5218 ($(LIBGNU), all-lib): Remove targets.
5219 (distclean): Don't mention GNULIB_BUILDDIR.
5220 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5221
f5686554
TT
52222019-06-14 Tom Tromey <tromey@adacore.com>
5223
5224 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5225 Warn if symbol file does not provide any symbols.
5226
a0c1ffed
TT
52272019-06-14 Tom Tromey <tromey@adacore.com>
5228
5229 * source.c (find_and_open_source): Respect basenames_may_differ.
5230
7c39e397
AB
52312019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * annotate.c (annotate_breakpoints_invalid): Make use of
5234 scoped_restore_terminal_state.
5235 (annotate_frames_invalid): Likewise.
5236
f411722c
TT
52372019-06-14 Tom Tromey <tromey@adacore.com>
5238
5239 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5240 allow assignment to an internalvar.
5241
4268ec18
TT
52422019-06-14 Tom Tromey <tromey@adacore.com>
5243
5244 * ada-lex.l: Allow "_" in attribute names.
5245
abdb711e
TT
52462019-06-14 Tom Tromey <tromey@adacore.com>
5247
5248 PR gdb/24653:
5249 * regcache.c (registers_changed): Don't call alloca.
5250 * top.c (execute_command): Don't call alloca.
5251
4c048731
PA
52522019-06-13 Pedro Alves <palves@redhat.com>
5253
5254 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5255 'expression'. When parsing an expression, error out if there's
5256 junk after "unlimited".
5257 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5258 (do_set_command): Adjust calls to is_unlimited_literal.
5259
66eb1ed3
PA
52602019-06-13 Pedro Alves <palves@redhat.com>
5261
5262 * compile/compile.c (make_compile_options_def_group): Add braces
5263 around array_view initializer.
5264 * thread.c (make_thread_apply_all_options_def_group)
5265 (make_thread_apply_all_options_def_group): Likewise.
5266
3345721a
PA
52672019-06-13 Pedro Alves <palves@redhat.com>
5268
5269 * NEWS (New commands): Mention "maint test-options
5270 require-delimiter", "maint test-options unknown-is-error", "maint
5271 test-options unknown-is-operand" and "maint show
5272 test-options-completion-result".
5273 (New command options, command completion): New section.
5274 (Completion improvements): New section.
5275 Mention that you can abbreviate "unlimited".
5276
6206060d
PA
52772019-06-13 Pedro Alves <palves@redhat.com>
5278
5279 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5280 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5281 * unittests/cli-utils-selftests.c (test_parse_flags)
5282 (test_parse_flags_qcs): Delete.
5283 (test_cli_utils): Don't call deleted functions.
5284
6665660a
PA
52852019-06-13 Pedro Alves <palves@redhat.com>
5286
5287 * thread.c: Include "cli/cli-option.h".
5288 (tp_array_compar_ascending): Global.
5289 (tp_array_compar): Delete function.
5290 (tp_array_compar_ascending, tp_array_compar_descending): New
5291 functions.
5292 (ascending_option_def, qcs_flag_option_def)
5293 (thr_qcs_flags_option_defs)
5294 (make_thread_apply_all_options_def_group)
5295 (make_thread_apply_options_def_group): New.
5296 (thread_apply_all_command): Use gdb::option::process_options.
5297 (thread_apply_command_completer)
5298 (thread_apply_all_command_completer): New.
5299 (thread_apply_command): Use gdb::option::process_options.
5300 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5301 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5302 to generate help text of "thread apply". Adjust "taas"'s help.
5303 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5304 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5305
f7e13587
PA
53062019-06-13 Pedro Alves <palves@redhat.com>
5307
5308 * thread.c (thread_apply_command): Check for invalid TID with
5309 isdigit instead of !isalpha.
5310
5d707134
PA
53112019-06-13 Pedro Alves <palves@redhat.com>
5312
5313 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5314 (validate_flags_qcs): New.
5315 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5316 (validate_flags_qcs): Declare.
5317 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5318 (make_frame_apply_options_def_group): New.
5319 (frame_apply_command_count): Process options with
5320 gdb::option::process_options.
5321 (frame_apply_completer): New.
5322 (frame_apply_level_completer, frame_apply_all_completer)
5323 (frame_apply_completer): New.
5324 (_initialize_stack): Update help of "frame apply", "frame apply
5325 level", "frame apply all" and "faas" to mention supported options
5326 and install command completers.
5327 * stack.h (frame_apply_all_completer): Declare.
5328 * thread.c: Include "stack.h".
5329 (tfaas_command): Add "--".
5330 (_initialize_thread): Update help "tfaas" to mention supported
5331 options and install command completer.
5332
272d4594
PA
53332019-06-13 Pedro Alves <palves@redhat.com>
5334
5335 * completer.c (complete_nested_command_line): New.
5336 (gdb_completion_word_break_characters_throw): Add assertion.
5337 * completer.h (complete_nested_command_line): Declare.
5338
90a1ef87
PA
53392019-06-13 Pedro Alves <palves@redhat.com>
5340
5341 * stack.c (parse_backtrace_qualifiers): New.
5342 (backtrace_command): Use it.
5343 (backtrace_command_completer): Complete on qualifiers.
5344
d4c16835
PA
53452019-06-13 Pedro Alves <palves@redhat.com>
5346
5347 * frame.c: Include "cli/cli-option.h.
5348 (user_set_backtrace_options): New.
5349 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5350 Delete.
5351 (get_prev_frame): Adjust.
5352 (boolean_option_def, uinteger_option_def)
5353 (set_backtrace_option_defs): New.
5354 (_initialize_frame): Adjust and use
5355 gdb::option::add_setshow_cmds_for_options to install "set
5356 backtrace past-main" and "set backtrace past-entry".
5357 * frame.h: Include "cli/cli-option.h".
5358 (struct frame_print_options): Forward declare.
5359 (print_frame_arguments_all, print_frame_arguments_scalars)
5360 (print_frame_arguments_none): Declare.
5361 (print_entry_values): Delete declaration.
5362 (struct frame_print_options, user_frame_print_options): New.
5363 (struct set_backtrace_options): New.
5364 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5365 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5366 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5367 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5368 (list_args_or_locals): Add frame_print_options parameter.
5369 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5370 * python/py-framefilter.c (enumerate_args): Pass down
5371 USER_FRAME_PRINT_OPTIONS.
5372 * stack.c: Include "cli/cli-option.h".
5373 (print_frame_arguments_all, print_frame_arguments_scalars)
5374 (print_frame_arguments_none): Declare.
5375 (print_raw_frame_arguments, print_entry_values): Delete.
5376 (user_frame_print_options): New.
5377 (boolean_option_def, enum_option_def, frame_print_option_defs):
5378 New.
5379 (struct backtrace_cmd_options): New.
5380 (bt_flag_option_def): New.
5381 (backtrace_command_option_defs): New.
5382 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5383 (print_frame_arg, read_frame_arg, print_frame_args)
5384 (print_frame_info, print_frame): Add frame_print_options parameter
5385 and use it.
5386 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5387 (backtrace_command_1): Add frame_print_options and
5388 backtrace_cmd_options parameters and use them.
5389 (make_backtrace_options_def_group): New.
5390 (backtrace_command): Process command options with
5391 gdb::option::process_options.
5392 (backtrace_command_completer): New.
5393 (_initialize_stack): Extend "backtrace"'s help to mention
5394 supported options. Install completer for "backtrace".
5395 Install some settings commands with add_setshow_cmds_for_options.
5396
2daf894e
PA
53972019-06-13 Pedro Alves <palves@redhat.com>
5398
5399 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5400 and that "set/show print raw frame-arguments" are now deprecated.
5401
5402 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5403 command.
5404 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5405 * stack.c (_initialize_stack): Install "set/show print
5406 raw-frame-arguments", and deprecate "set/show print raw
5407 frame-arguments".
5408 * valprint.c (_initialize_valprint): Deprecate "set/show print
5409 raw".
5410
e6ed716c
PA
54112019-06-13 Pedro Alves <palves@redhat.com>
5412
5413 * compile/compile.c (struct compile_options): New.
5414 (compile_flag_option_def, compile_command_option_defs)
5415 (make_compile_options_def_group): New.
5416 (compile_file_command): Handle options with
5417 gdb::option::process_options.
5418 (compile_file_command_completer): New function.
5419 (compile_code_command): Handle options with
5420 gdb::option::process_options.
5421 (compile_code_command_completer): New function.
5422 (_initialize_compiler): Install completers for "compile code" and
5423 "compile file". Mention available options in "compile code" and
5424 "compile code"'s help.
5425 * completer.c (advance_to_completion_word): New, factored out from
5426 ...
5427 (advance_to_expression_complete_word_point): ... this.
5428 (advance_to_filename_complete_word_point): New.
5429 * completer.h (advance_to_filename_complete_word_point): New
5430 declaration.
5431
7d8062de
PA
54322019-06-13 Pedro Alves <palves@redhat.com>
5433
5434 * compile/compile.c: Include "cli/cli-option.h".
5435 (compile_print_value): Scope data pointer is now a
5436 value_print_options pointer; adjust.
5437 (compile_print_command): Process options. Scope data pointer is
5438 now a value_print_options pointer; adjust.
5439 (_initialize_compile): Update "compile print"'s help to include
5440 supported options. Install a completer for "compile print".
5441 * cp-valprint.c (show_vtblprint, show_objectprint)
5442 (show_static_field_print): Delete.
5443 (_initialize_cp_valprint): Don't install "set print
5444 static-members", "set print vtbl", "set print object" here.
5445 * printcmd.c: Include "cli/cli-option.h" and
5446 "common/gdb_optional.h".
5447 (print_command_parse_format): Rework to fill in a
5448 value_print_options instead of a format_data.
5449 (print_value): Change parameter type from format_data pointer to
5450 value_print_options reference. Adjust.
5451 (print_command_1): Process options. Adjust to pass down a
5452 value_print_options.
5453 (print_command_completer): New.
5454 (_initialize_printcmd): Install print_command_completer as
5455 handle_brkchars completer for the "print" command. Update
5456 "print"'s help to include supported options.
5457 * valprint.c: Include "cli/cli-option.h".
5458 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5459 here from cp-valprint.c.
5460 (boolean_option_def, uinteger_option_def)
5461 (value_print_option_defs, make_value_print_options_def_group):
5462 New. Use gdb::option::add_setshow_cmds_for_options to install
5463 "set print elements", "set print null-stop", "set print repeats",
5464 "set print pretty", "set print union", "set print array", "set
5465 print address", "set print symbol", "set print array-indexes".
5466 * valprint.h: Include <string> and "cli/cli-option.h".
5467 (make_value_print_options_def_group): Declare.
5468 (print_value): Change parameter type from format_data pointer to
5469 value_print_options reference.
5470 (print_command_completer): Declare.
5471
9d0faba9
PA
54722019-06-13 Pedro Alves <palves@redhat.com>
5473
5474 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5475 (COMMON_SFILES): Add maint-test-settings.c.
5476 * cli/cli-decode.c (boolean_enums): New global, factored out from
5477 ...
5478 (add_setshow_boolean_cmd): ... here.
5479 * cli/cli-decode.h (boolean_enums): Declare.
5480 * cli/cli-option.c: New file.
5481 * cli/cli-option.h: New file.
5482 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5483 factored out from ...
5484 (parse_cli_boolean_value(const char *)): ... this.
5485 (is_unlimited_literal): Change parameter type to pointer to
5486 pointer. Adjust and advance ARG pointer.
5487 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5488 (parse_cli_var_enum): New, factored out from ...
5489 (do_set_command): ... this. Adjust.
5490 * cli/cli-setshow.h (parse_cli_boolean_value)
5491 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5492 (parse_cli_var_enum): Declare.
5493 * cli/cli-utils.c: Include "cli/cli-option.h".
5494 (get_ulongest): New.
5495 * cli/cli-utils.h (get_ulongest): Declare.
5496 (check_for_argument): New overloads.
5497 * maint-test-options.c: New file.
5498
2c722807
PA
54992019-06-13 Pedro Alves <palves@redhat.com>
5500
5501 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5502 parse a range if "-" is at the end of the string.
5503
dee7b4c8
PA
55042019-06-13 Pedro Alves <palves@redhat.com>
5505
5506 * cli/cli-setshow.c (parse_auto_binary_operation)
5507 (parse_cli_boolean_value): Don't allow "o".
5508
dca0f6c0
PA
55092019-06-13 Pedro Alves <palves@redhat.com>
5510
5511 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5512 * NEWS: Mention maint test-settings KIND.
5513 * maint-test-settings.c: New file.
5514
597bf39d
PA
55152019-06-13 Pedro Alves <palves@redhat.com>
5516
5517 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5518 completer.
5519 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5520 "set" completers.
5521
48c410fb
PA
55222019-06-13 Pedro Alves <palves@redhat.com>
5523
5524 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5525 after item.
5526
93bcb043
PA
55272019-06-13 Pedro Alves <palves@redhat.com>
5528
5529 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5530
cbba3ecd
PA
55312019-06-13 Pedro Alves <palves@redhat.com>
5532
5533 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5534 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5535 call.
5536 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5537 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5538 calls.
5539 (check_for_argument): Skip spaces after argument.
5540
b9a3f842
PA
55412019-06-13 Pedro Alves <palves@redhat.com>
5542
5543 * thread.c (thread_apply_command): Adjust TID parsing.
5544 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5545 detected before end of string.
5546 (tid_is_in_list): Error out if LIST is invalid.
5547
3844e605
PA
55482019-06-13 Pedro Alves <palves@redhat.com>
5549
5550 * completer.c (complete_line_internal_1): Rewind completion word
5551 point.
5552 (completion_tracker::advance_custom_word_point_by): Change
5553 parameter type to int.
5554 * completer.h (completion_tracker::advance_custom_word_point_by):
5555 Likewise.
5556
00b56dbe
PA
55572019-06-13 Pedro Alves <palves@redhat.com>
5558
5559 * completer.c (advance_to_completion_word): Handle delimiters.
5560
d106773e
PA
55612019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5562
5563 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5564
08f10e02
TT
55652019-06-11 Tom Tromey <tom@tromey.com>
5566
5567 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5568 (xmalloc_failed): Move to alloc.c.
5569 * alloc.c: New file.
5570 * Makefile.in (COMMON_SFILES): Add alloc.c.
5571
1c7fe951
TT
55722019-06-11 Tom Tromey <tom@tromey.com>
5573
5574 * nat/linux-waitpid.c: Don't include server.h.
5575 (linux_debug): Remove.
5576 (my_waitpid): Update.
5577
89549d7f
TT
55782019-06-11 Tom Tromey <tromey@adacore.com>
5579
5580 * infcall.c (_initialize_infcall): Remove trailing newline from
5581 help.
5582 * user-regs.c (_initialize_user_regs): Remove trailing newline
5583 from help.
5584 * typeprint.c (_initialize_typeprint): Remove trailing newline
5585 from help.
5586 * reverse.c (_initialize_reverse): Remove trailing newlines from
5587 help.
5588 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5589 from help.
5590 * language.c (add_set_language_command): Remove trailing newline
5591 from help.
5592 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5593 help.
5594 * disasm.c (_initialize_disasm): Remove trailing newline from
5595 help.
5596 * top.c (init_main): Remove trailing newline from help.
5597 * interps.c (_initialize_interpreter): Remove trailing newline
5598 from help.
5599 * btrace.c (_initialize_btrace): Remove trailing newlines from
5600 help.
5601 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5602 from help.
5603 * python/python.c (_initialize_python): Remove trailing newline
5604 from help.
5605 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5606 help.
5607 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5608 from help. Reformat some text.
5609 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5610 from help.
5611 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5612 newline from help.
5613
86108c13
TT
56142019-06-11 Tom Tromey <tromey@adacore.com>
5615
5616 * darwin-nat.c (darwin_decode_exception_message)
5617 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5618
a7067863
AB
56192019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5620
5621 * valops.c (value_slice): Check for not allocated or not
5622 associated values.
5623
9ab08412
TV
56242019-06-10 Tom de Vries <tdevries@suse.de>
5625
5626 PR gdb/24618
5627 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5628 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5629 invalid.
5630
f19e22e9
TV
56312019-06-10 Tom de Vries <tdevries@suse.de>
5632
5633 PR gdb/24611
5634 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5635 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5636
e99f9db0
TV
56372019-06-10 Tom de Vries <tdevries@suse.de>
5638
5639 PR symtab/24545
5640 * symtab.c (struct demangled_name_entry): Add language field.
5641 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5642 static minimal symbol". Set and use language field.
5643
9bf7038b
TT
56442019-06-10 Tom Tromey <tromey@adacore.com>
5645
5646 * ada-lang.c (_initialize_ada_language): Update help text.
5647
422186a9
TT
56482019-06-10 Tom Tromey <tromey@adacore.com>
5649
5650 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5651 with a newline.
5652 * guile/guile.c (handle_boot_error): Don't end warning with a
5653 newline.
5654 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5655 warning with a newline.
5656 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5657 newline.
5658 (s12z_frame_cache): Likewise.
5659 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5660 a newline.
5661 * solib-svr4.c (disable_probes_interface): Don't end warning with
5662 a newline.
5663 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5664 newline.
5665 * python/python.c (do_finish_initialization): Don't end warning
5666 with a newline.
5667
25ce02ee
TT
56682019-06-10 Tom Tromey <tom@tromey.com>
5669
5670 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5671 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5672 gdbpy_enter.
5673
caa429d8
TT
56742019-06-10 Tom Tromey <tromey@adacore.com>
5675
5676 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5677 data.
5678 (elf_new_init): Don't call stabsread_new_init.
5679 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5680 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5681 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5682
81873cc8
TV
56832019-06-10 Tom de Vries <tdevries@suse.de>
5684
5685 PR symtab/16264
5686 PR symtab/24517
5687 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5688
4fa0265e
РИ
56892019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5690
5691 * source.c (find_and_open_source): Also rewrite relative file
5692 names.
5693
1a3da2cd
AB
56942019-04-26 Amos Bird <amosbird@gmail.com>
5695
5696 * annotate.c (annotate_thread_exited): Add "thread-exited"
5697 annotation.
5698
3847a7bf
TT
56992019-06-06 Tom Tromey <tromey@adacore.com>
5700
5701 * maint.h (class scoped_command_stats): Use
5702 DISABLE_COPY_AND_ASSIGN.
5703 <print_time>: New method.
5704 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5705 print_time.
5706 (scoped_command_stats::print_time): New method.
5707
312617a3
AB
57082019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5711 instructions of lengths 6 or 8 bytes.
5712
b02f78f9
PA
57132019-06-04 Pedro Alves <palves@redhat.com>
5714
5715 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5716
5717 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5718 * breakpoint.c (condition_completer): Likewise.
5719 * cli/cli-dump.c (scan_expression): Likewise.
5720 * common/filestuff.c (mkdir_recursive): Likewise.
5721 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5722 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5723 (gdb_abspath): Likewise.
5724 * compile/compile-cplus-types.c
5725 (compile_cplus_instance::decl_name): Likewise.
5726 * completer.c (complete_explicit_location):
5727 (signal_completer, reg_or_group_completer_1): Likewise.
5728 * cp-support.c (cp_remove_params_if_any): Likewise.
5729 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5730 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5731 * infcmd.c (strip_bg_char): Likewise.
5732 * linespec.c (copy_token_string): Likewise.
5733 * mi/mi-main.c (output_cores): Likewise.
5734 * psymtab.c (psymtab_search_name):
5735 * symfile.c (test_set_ext_lang_command): Likewise.
5736 * target.c (target_fileio_read_stralloc): Likewise.
5737 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5738 * value.c (complete_internalvar): Likewise.
5739
e1f2e1a2
CB
57402019-06-04 Christian Biesinger <cbiesinger@google.com>
5741
5742 Add objfile property to gdb.Type.
d3238f7d
PA
5743 * NEWS: Mention Python API addition.
5744 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5745
e664d728
PW
57462019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5747
5748 * NEWS: Mention the new set|show style [title|highlight].
5749 Mention changes to "show style", "help" and "apropos".
5750
66d8c862
PW
57512019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5752
5753 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5754 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5755 instead of print_help_for_command.
5756 (print_doc_of_command): New function.
5757 (help_list): Add 'apropos -v word' suggestion.
5758 (print_help_for_command): Style the command name using title style.
5759 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5760 (_initialize_cli_cmds): Describe -v in apropos_command help.
5761
9303eb2f
PW
57622019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5763
5764 * cli/cli-style.h (cli_style_option): Add name in constructor,
5765 add m_name class member, add constructor with intensity,
5766 add name class function.
5767 (cli_style_option::add_setshow_commands): Remove name argument.
5768 (highlight_style, title_style): New styles.
5769 * cli/cli-style.c (do_show): New function that shows a style
5770 characteristic styling the style name with itself.
5771 (set_style_name): New function.
5772 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5773 Update all callers according to the changes in cli/cli-style.h.
5774 * utils.h (fputs_highlighted): New function.
5775 * utils.c (fputs_highlighted): Likewise.
5776
e2c52041
PW
57772019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5778
5779 * NEWS: Mention new pipe command and new convenience variables.
5780
947d3946
PW
57812019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5782
5783 * cli/cli-cmds.c (pipe_command): New function.
5784 (_initialize_cli_cmds): Call add_com for pipe_command.
5785 Define | as an alias for pipe.
5786 (exit_status_set_internal_vars): New function.
5787 (shell_escape): Call exit_status_set_internal_vars.
5788 cli/cli-decode.c (find_command_name_length): Recognize | as
5789 a single character command.
5790
b8fd0918
PW
57912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5792
5793 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5794 top.c (execute_command_to_ui_file): New function, mostly a copy
5795 of execute_command_to_string.
5796 (execute_command_to_string): Implement by calling
5797 execute_command_to_ui_file.
5798
68bb5386
PW
57992019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5800
5801 * top.h (saved_command_line): Remove declaration.
5802 * top.c (previous_saved_command_line, previous_repeat_arguments):
5803 New variables.
5804 (saved_command_line): Make static, define together with other
5805 'repeat variables'.
5806 (dont_repeat): Clear repeat_arguments.
5807 (repeat_previous, get_saved_command_line, save_command_line):
5808 New functions.
5809 (gdb_init): Initialize saved_command_line
5810 and previous_saved_command_line.
5811 * main.c (captured_main_1): Remove saved_command_line initialization.
5812 * event-top.c (handle_line_of_input): Update to use
5813 the new 'repeat' related functions instead of direct access to
5814 saved_command_line.
5815 * command.h (repeat_previous, get_saved_command_line,
5816 save_command_line): New declarations.
5817 (dont_repeat): Add comment.
5818
bfcdb852
TT
58192019-05-30 Tom Tromey <tromey@adacore.com>
5820
5821 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5822 Fix comment.
5823 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5824
0ef209f2
JV
58252019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5826
5827 PR cli/24587
5828 * completer.c (complete): Initialize variable word.
5829
955b06fa
SDJ
58302019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5831
5832 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5833 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5834 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5835 'body' is NULL to the outter 'if', protecting the '!is_define'
5836 situation as well.
5837
fa9c3fa0
TT
58382019-05-29 Tom Tromey <tromey@adacore.com>
5839
5840 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5841 (dwarf_unknown): New function.
5842 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5843 (dwarf_type_encoding_name): Use dwarf_unknown.
5844
4330d61d
TT
58452019-05-29 Tom Tromey <tromey@adacore.com>
5846
5847 PR c++/20020:
5848 * cp-valprint.c (cp_print_value_fields): Call
5849 cp_print_static_field inside "try".
5850
33a6bc35
TT
58512019-05-29 Tom Tromey <tromey@adacore.com>
5852
5853 * inflow.c (struct terminal_info): Add default operator=.
5854 * configure: Rebuild.
5855 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5856 -Wdeprecated-copy-dtor, -Wredundant-move.
5857
000439d5
TT
58582019-05-29 Tom Tromey <tromey@adacore.com>
5859
5860 * NEWS: Add entry.
5861 * infcmd.c (print_return_value_1): Handle finish_print
5862 option.
5863 (show_print_finish): New function.
5864 (_initialize_infcmd): Add "set/show print finish" commands.
5865 * valprint.c (user_print_options): Initialize new member.
5866 * valprint.h (struct value_print_options) <finish_print>: New
5867 member.
5868
c0e70c62
TT
58692019-05-28 Tom Tromey <tromey@adacore.com>
5870
5871 * ada-lang.c (ada_remove_Xbn_suffix)
5872 (find_old_style_renaming_symbol)
5873 (parse_old_style_renaming): Remove.
5874 (ada_find_renaming_symbol): Don't call
5875 find_old_style_renaming_symbol.
5876 (ada_is_renaming_symbol): Rename from
5877 ada_find_renaming_symbol. Remove "block" parameter. Return
5878 bool. Now static.
5879 (ada_read_var_value): Update and simplify.
5880 * ada-exp.y (write_var_or_type): Remove old code.
5881
766f8836
AH
58822019-05-28 Alan Hayward <alan.hayward@arm.com>
5883
5884 * event-top.c: Remove include comment.
5885 * inflow.c (class scoped_ignore_sigttou): Move from here...
5886 * inflow.h (class scoped_ignore_sigttou): ...to here.
5887 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5888 * top.c: Remove include comment.
5889
eb41253a
TT
58902019-05-27 Tom Tromey <tom@tromey.com>
5891
5892 * NEWS: Fix typo.
5893
4ca51187
TT
58942019-05-22 Tom Tromey <tromey@adacore.com>
5895
5896 * target.c (target_follow_exec): Constify parameter.
5897 * target-delegates.c: Rebuild.
5898 * remote.c (remote_target::follow_exec): Constify parameter.
5899 * infrun.c (follow_exec): Constify parameter.
5900 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5901 (target_follow_exec): Likewise.
5902
8fca4da0
AH
59032019-05-22 Alan Hayward <alan.hayward@arm.com>
5904
5905 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5906 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5907
b7060614
AH
59082019-05-22 Alan Hayward <alan.hayward@arm.com>
5909
5910 * NEWS: Add debugredirect and testsuite sections.
5911
0a5954bd
SC
59122019-05-22 Simon Cook <simon.cook@embecosm.com>
5913
5914 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5915 target descriptions using exclusively floating point register name
5916 aliases.
5917
dc42e902
AB
59182019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 PR gdb/18644:
5921 * f-lang.c (build_fortran_types): Handle the case where
5922 gdbarch_floatformat_for_type returns a nullptr.
5923
fb7806c7
TV
59242019-05-21 Tom de Vries <tdevries@suse.de>
5925
5926 PR cli/24587
5927 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5928
34d11c68
AB
59292019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5930
5931 PR gdb/18644:
5932 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5933 16-byte floats.
5934 * i386-tdep.c (i386_floatformat_for_type): Use
5935 floatformats_ia64_quad for the 16-byte floating point component
5936 within a fortran 32-byte complex number.
5937
122cf0f2
AB
59382019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5939
5940 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5941 delete default constructor.
5942 (find_partial_die): Update to return const struct.
5943 (partial_die_parent_scope): Move variable declaration into scope
5944 of its use and change its type to auto.
5945 (guess_partial_die_structure_name): Likewise.
5946 (partial_die_info::fixup): Likewise.
5947
33d0e35a
TT
59482019-05-17 Tom Tromey <tromey@adacore.com>
5949
5950 * source.c (find_and_open_source): Remove cast.
5951
a45575b0
TT
59522019-05-17 Tom Tromey <tromey@adacore.com>
5953
5954 * annotate.c (annotate_source): Make "filename" const.
5955 * annotate.h (annotate_source): Use const.
5956
81f47ac2
AH
59572019-05-17 Alan Hayward <alan.hayward@arm.com>
5958
5959 * disasm.c (set_disassembler_options): Send errors to stderr.
5960
ca1285d1
AH
59612019-05-17 Alan Hayward <alan.hayward@arm.com>
5962
5963 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5964 (cli_interp_base::set_logging): Check debug_redirect.
5965 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5966 * cli/cli-logging.c (debug_redirect): Add static variable.
5967 (pop_output_files): Add default param.
5968 (handle_redirections): Print debug setting.
5969 (show_logging_command): Likewise.
5970 (_initialize_cli_logging): Add debugredirect command.
5971 * interps.c (current_interp_set_logging): Add debug_redirect
5972 parameter.
5973 * interps.h (set_logging): Add debug_redirect parameter.
5974 (current_interp_set_logging): Likewise.
5975 * mi/mi-common.h: Likewise.
5976 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5977
59782019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5979 Tom Tromey <tromey@adacore.com>
5980
5981 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5982 directly.
5983 * cli/cli-interp.h (make_logging_output): Remove declaration.
5984 * cli/cli-logging.c (make_logging_output): Remove function.
5985 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5986 directly.
5987 * ui-file.c (tee_file::tee_file): Remove bools.
5988 (tee_file::~tee_file): Remove deletes.
5989 * ui-file.h (tee_file): Remove bools.
5990
26648588
JV
59912019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5992
5993 * mi/mi-cmds.h (mi_cmd_complete): New function.
5994 * mi/mi-main.c (mi_cmd_complete): Likewise.
5995 * mi/mi-cmds.c: Define new MI command -complete.
5996 * NEWS: Mention new -complete command.
5997
6e035501
JV
59982019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5999
6000 * completer.h (complete): New function.
6001 * completer.c (complete): Likewise.
6002 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6003 function defined in completer.h.
6004
7d0e2ece
JV
60052019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6006
e79be6e5 6007 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6008
fb816e8b
TV
60092019-05-17 Tom de Vries <tdevries@suse.de>
6010
6011 PR gdb/24094
6012 * dwarf2read.c (struct cu_partial_die_info): New struct.
6013 (find_partial_die): Return cu_partial_die_info.
6014 (partial_die_parent_scope, guess_partial_die_structure_name)
6015 (partial_die_info::fixup): Handle new return type of find_partial_die.
6016
677052f2
SDJ
60172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6018
a1726c38 6019 PR breakpoints/24541
677052f2
SDJ
6020 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6021 "std::string", simplifying the algorithm.
6022
f3da9116
SDJ
60232019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6024
6025 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6026 (stap_static_probe_ops::get_probes): Likewise.
6027
f1bb75ab
SDJ
60282019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6029
6030 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6031 '-')" and "else if".
6032 (stap_parse_single_operand): Join checks for
6033 "gdbarch_stap_parse_special_token_p" and
6034 "gdbarch_stap_parse_special_token" in the same "if" statement.
6035 Invert check when verifying for operation on register
6036 displacement.
6037
3ca58cde
SDJ
60382019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6039
6040 * stap-probe.c (stap_get_opcode): Update comment.
6041 (stap_get_expected_argument_type): Likewise.
6042 (handle_stap_probe): Likewise.
6043
af2d9bee
SDJ
60442019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6045
6046 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6047 return type to 'bool'. Adjust comment. Use 'bool' when
6048 appropriate.
6049 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6050 * stap-probe.c (stap_parse_argument_1): Likewise.
6051 (stap_is_operator): Likewise.
6052 (stap_is_generic_prefix): Likewise.
6053 (stap_is_register_prefix): Likewise.
6054 (stap_is_register_indirection_prefix): Likewise.
6055 (stap_is_integer_prefix): Likewise.
6056 (stap_generic_check_suffix): Likewise.
6057 (stap_check_integer_suffix): Likewise.
6058 (stap_check_register_suffix): Likewise.
6059 (stap_check_register_indirection_suffix): Likewise.
6060 (stap_parse_register_operand): Likewise.
6061 (stap_parse_single_operand): Likewise.
6062 (stap_parse_argument_1): Likewise.
6063 (stap_probe::get_argument_count): Likewise.
6064 (stap_is_operator): Likewise.
6065
61c9c421
TT
60662019-05-16 Tom Tromey <tromey@adacore.com>
6067
6068 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6069 keyword to foreach.
6070
9ddc1af1
SM
60712019-05-15 Simon Marchi <simon.marchi@efficios.com>
6072
6073 * linux-thread-db.c (try_thread_db_load_1): Change return type
6074 to bool.
6075 (try_thread_db_load): Likewise.
6076 (try_thread_db_load_from_pdir_1): Likewise.
6077 (try_thread_db_load_from_pdir): Likewise.
6078 (try_thread_db_load_from_sdir): Likewise.
6079 (try_thread_db_load_from_dir): Likewise.
6080 (thread_db_load_search): Likewise.
6081 (has_libpthread): Likewise.
6082 (thread_db_load): Likewise.
6083
7bede828
SDJ
60842019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6085
6086 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6087 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6088 NULL, and complain/return if that's the case.
6089
c5358db4
JD
60902019-05-15 John Darrington <john@darrington.wattle.id.au>
6091
6092 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6093 (advance, posn, abstract_read_memory): New functions.
6094 [struct mem_read_abstraction]: New struct.
6095 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6096
c408a94f
TT
60972019-05-14 Tom Tromey <tromey@adacore.com>
6098
6099 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6100 value is not lval_memory.
6101
e7bd7fba
TT
61022019-05-14 Tom Tromey <tromey@adacore.com>
6103
6104 * solib.c (info_sharedlibrary_command): Style the file name.
6105
a6d0f249
AH
61062019-05-14 Alan Hayward <alan.hayward@arm.com>
6107
6108 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6109 (aarch64_vnv_type): Likewise.
6110 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6111 * common/tdesc.c: Likewise.
6112 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6113 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6114 * features/aarch64-fpu.xml: Add ieee half view.
6115 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6116 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6117 * gdbtypes.h (struct builtin_type): Likewise.
6118 (struct objfile_type): Likewise.
6119
66b8bb74
SM
61202019-05-12 Paul Naert <paul.naert@polymtl.ca>
6121
6122 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6123 typo.
6124 * location.h (string_to_event_location): Likewise.
6125
21c219fd
JB
61262019-05-11 Joel Brobecker <brobecker@adacore.com>
6127
6128 GDB 8.3 released.
6129
13674803
SM
61302019-05-10 Simon Marchi <simon.marchi@efficios.com>
6131
6132 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6133 New variable declaration.
6134 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6135 New variable.
6136 (print_one_breakpoint): Use ui_out::test_flags and new global
6137 variable to compute use_fixed_output.
6138 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6139 Remove.
6140 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6141 (mi_multi_location_breakpoint_output_fixed): Remove.
6142 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6143 new variable.
6144 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6145 fix_multi_location_breakpoint_output flag if version >= 3.
6146 * ui-out.h (enum ui_out_flag)
6147 <fix_multi_location_breakpoint_output>: New enumerator.
6148
a9eac7f9
SM
61492019-05-10 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6152
71bed2db
TT
61532019-05-10 Tom Tromey <tromey@adacore.com>
6154
6155 * ada-lang.c (catch_ada_completer): New function.
6156 (_initialize_ada_language): Use it.
6157
24c54127
TT
61582019-05-10 Tom Tromey <tromey@adacore.com>
6159
6160 * thread.c (print_thread_info): Make "requested_threads" const.
6161 * gdbthread.h (print_thread_info): Make "requested_threads"
6162 const.
6163 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6164 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6165
7a102139
TT
61662019-05-08 Tom Tromey <tom@tromey.com>
6167
6168 * gdbtypes.c (objfile_type_data): Change type.
6169 (objfile_type, _initialize_gdbtypes): Update.
6170
924d79e2
TT
61712019-05-08 Tom Tromey <tom@tromey.com>
6172
6173 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6174 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6175 (_initialize_dwarf2_frame): Update.
6176
4c58e337
TT
61772019-05-08 Tom Tromey <tom@tromey.com>
6178
6179 * objc-lang.c (objc_objfile_data): Change type.
6180 (find_methods): Update.
6181 (_initialize_objc_lang): Remove.
6182
d772d2ab
TT
61832019-05-08 Tom Tromey <tom@tromey.com>
6184
6185 * stabsread.c (rs6000_builtin_type_data): Change type.
6186 (rs6000_builtin_type, _initialize_stabsread): Update.
6187
d11d83f4
TT
61882019-05-08 Tom Tromey <tom@tromey.com>
6189
6190 * mips-tdep.c (mips_pdr_data): Remove.
6191 (_initialize_mips_tdep): Update.
6192
9a73f0ad
TT
61932019-05-08 Tom Tromey <tom@tromey.com>
6194
6195 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6196 (hppa_init_objfile_priv_data, read_unwind_info)
6197 (find_unwind_entry, _initialize_hppa_tdep): Update.
6198
8127a2fa
TT
61992019-05-08 Tom Tromey <tom@tromey.com>
6200
6201 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6202 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6203 on obstack.
6204 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6205
91d3055d
TT
62062019-05-08 Tom Tromey <tom@tromey.com>
6207
6208 * mdebugread.c (basic_type_data): Change type.
6209 (basic_type, _initialize_mdebugread): Update.
6210
31930bd3
TT
62112019-05-08 Tom Tromey <tom@tromey.com>
6212
6213 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6214
bdb3ed9e
TT
62152019-05-08 Tom Tromey <tom@tromey.com>
6216
6217 * nto-tdep.c (nto_inferior_data_reg): Change type.
6218 (nto_inferior_data): Update.
6219 (nto_inferior_data_cleanup, nto_new_inferior_data)
6220 (_initialize_nto_tdep): Remove.
6221 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6222
f37b313d
TT
62232019-05-08 Tom Tromey <tom@tromey.com>
6224
6225 * ada-lang.c (struct ada_inferior_data): Add initializers.
6226 (ada_inferior_data): Change type.
6227 (ada_inferior_data_cleanup): Remove.
6228 (get_ada_inferior_data, ada_inferior_exit)
6229 (struct ada_pspace_data): Add initializers, destructor.
6230 (ada_pspace_data_handle): Change type.
6231 (get_ada_pspace_data): Update.
6232 (ada_pspace_data_cleanup): Remove.
6233
24699405
TT
62342019-05-08 Tom Tromey <tom@tromey.com>
6235
6236 * coffread.c (struct coff_symfile_info): Add initializers.
6237 (coff_objfile_data_key): Move lower. Change type.
6238 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6239 Update.
6240 (coff_free_info): Remove.
6241
d4e05d2f
TT
62422019-05-08 Tom Tromey <tom@tromey.com>
6243
6244 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6245 (fbsd_pspace_data_handle): Move lower. Change type.
6246 (get_fbsd_pspace_data): Update.
6247 (fbsd_pspace_data_cleanup): Remove.
6248 (_initialize_fbsd_tdep): Update.
6249
14ef6690
TT
62502019-05-08 Tom Tromey <tom@tromey.com>
6251
6252 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6253 (get_ada_tasks_pspace_data): Update.
6254 (ada_tasks_pspace_data_cleanup): Remove.
6255 (_initialize_tasks): Update.
6256 (ada_tasks_inferior_data_handle): Change type.
6257 (get_ada_tasks_inferior_data): Update.
6258 (ada_tasks_inferior_data_cleanup): Remove.
6259 (struct ada_tasks_pspace_data): Add initializers.
6260
814cf43a
TT
62612019-05-08 Tom Tromey <tom@tromey.com>
6262
6263 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6264 * symfile-debug.c (debug_sym_get_probes): Change type.
6265 * stap-probe.c (handle_stap_probe):
6266 (stap_static_probe_ops::get_probes): Change type.
6267 * probe.h (class static_probe_ops) <get_probes>: Change type.
6268 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6269 (parse_probes_in_pspace): Update.
6270 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6271 Update.
6272 (any_static_probe_ops::get_probes): Change type.
6273 * elfread.c (elfread_data): New typedef.
6274 (probe_key): Change type.
6275 (elf_get_probes): Likewise. Update.
6276 (probe_key_free): Remove.
6277 (_initialize_elfread): Update.
6278 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6279 Change type.
6280 (dtrace_process_dof_probe, dtrace_process_dof)
6281 (dtrace_static_probe_ops::get_probe): Change type.
6282
02dc647e
TT
62832019-05-08 Tom Tromey <tom@tromey.com>
6284
6285 * xcoffread.c (struct xcoff_symfile_info): Rename from
6286 coff_symfile_info. Add initializers.
6287 (xcoff_objfile_data_key): Move lower. Change type.
6288 (XCOFF_DATA): Rewrite.
6289 (xcoff_free_info): Remove.
6290 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6291 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6292 (xcoff_initial_scan): Update.
6293
09232438
TT
62942019-05-08 Tom Tromey <tom@tromey.com>
6295
6296 * solib-svr4.c (struct svr4_info): Add initializers and
6297 destructor.
6298 <probes_table>: Now an htab_up.
6299 (solib_svr4_pspace_data): Change type.
6300 (free_probes_table): Simplify.
6301 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6302 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6303 (probes_table_remove_objfile_probes, register_solib_event_probe)
6304 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6305 (_initialize_svr4_solib): Update.
6306
7b4a314f
TT
63072019-05-08 Tom Tromey <tom@tromey.com>
6308
6309 * remote.c (remote_pspace_data): Change type.
6310 (remote_pspace_data_cleanup): Remove.
6311 (get_remote_exec_file, set_pspace_remote_exec_file)
6312 (_initialize_remote): Update.
6313
51d3063a
TT
63142019-05-08 Tom Tromey <tom@tromey.com>
6315
6316 * breakpoint.c (breakpoint_objfile_key): Change type.
6317 (get_breakpoint_objfile_data): Update.
6318 (free_breakpoint_objfile_data): Remove.
6319 (_initialize_breakpoint): Update.
6320
89fb8848
TT
63212019-05-08 Tom Tromey <tom@tromey.com>
6322
6323 * linux-tdep.c (struct linux_info): Add initializers.
6324 (linux_inferior_data): Move. Change type.
6325 (invalidate_linux_cache_inf): Update.
6326 (linux_inferior_data_cleanup): Remove.
6327 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6328
e9b89e2d
TT
63292019-05-08 Tom Tromey <tom@tromey.com>
6330
6331 * auxv.c (auxv_inferior_data): Move. Change type.
6332 (auxv_inferior_data_cleanup): Remove.
6333 (invalidate_auxv_cache_inf): Rewrite.
6334 (get_auxv_inferior_data, _initialize_auxv): Update.
6335
8c42777c
TT
63362019-05-08 Tom Tromey <tom@tromey.com>
6337
6338 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6339 (symfile_debug_objfile_data_key): Change type.
6340 (symfile_debug_installed, debug_qf_has_symbols)
6341 (debug_qf_find_last_source_symtab)
6342 (debug_qf_forget_cached_source_info)
6343 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6344 (debug_qf_print_stats, debug_qf_dump)
6345 (debug_qf_expand_symtabs_for_function)
6346 (debug_qf_expand_all_symtabs)
6347 (debug_qf_expand_symtabs_with_fullname)
6348 (debug_qf_map_matching_symbols)
6349 (debug_qf_expand_symtabs_matching)
6350 (debug_qf_find_pc_sect_compunit_symtab)
6351 (debug_qf_map_symbol_filenames)
6352 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6353 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6354 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6355 (debug_sym_read_linetable, debug_sym_relocate): Update.
6356 (symfile_debug_free_objfile): Remove.
6357 (install_symfile_debug_logging, _initialize_symfile_debug):
6358 Update.
6359
5bfd760d
TT
63602019-05-08 Tom Tromey <tom@tromey.com>
6361
6362 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6363 allocate_on_obstack.
6364 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6365 (get_dwarf2_per_objfile): Update.
6366 (set_dwarf2_per_objfile): Remove.
6367 (dwarf2_has_info, dwarf2_get_section_info): Update.
6368 (dwarf2_free_objfile): Remove.
6369 (_initialize_dwarf2_read): Update.
6370
e85e19b4
TT
63712019-05-08 Tom Tromey <tom@tromey.com>
6372
6373 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6374 initializers.
6375 <unsupported_script_warning_printed,
6376 script_not_found_warning_printed>: Now bool.
6377 (auto_load_pspace_data): Change type.
6378 (~auto_load_pspace_info): Rename from
6379 auto_load_pspace_data_cleanup.
6380 (get_auto_load_pspace_data, init_loaded_scripts_info)
6381 (clear_section_scripts, maybe_print_unsupported_script_warning)
6382 (maybe_print_script_not_found_warning, _initialize_auto_load):
6383 Update.
6384
f6aa7436
TT
63852019-05-08 Tom Tromey <tom@tromey.com>
6386
6387 * objfiles.c (objfile_pspace_info): Add destructor and
6388 initializers.
6389 (objfiles_pspace_data): Change type.
6390 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6391 (get_objfile_pspace_data): Update.
6392 (objfiles_bfd_data): Change type.
6393 (get_objfile_bfd_data): Update.
6394 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6395
6ae614f6
TT
63962019-05-08 Tom Tromey <tom@tromey.com>
6397
6398 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6399 Change type.
6400 (get_catch_syscall_inferior_data): Update.
6401 (catch_syscall_inferior_data_cleanup): Remove.
6402 (_initialize_break_catch_syscall): Update.
6403
6509b8eb
TT
64042019-05-08 Tom Tromey <tom@tromey.com>
6405
6406 * inflow.c (struct terminal_info): Add destructor and
6407 initializers.
6408 (inflow_inferior_data): Change type.
6409 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6410 (get_inflow_inferior_data, inflow_inferior_exit)
6411 (swap_terminal_info, _initialize_inflow): Update.
6412
35632941
TT
64132019-05-08 Tom Tromey <tom@tromey.com>
6414
6415 * target-dcache.c (target_dcache_cleanup): Remove.
6416 (target_dcache_aspace_key): Change type.
6417 (target_dcache_init_p, target_dcache_invalidate)
6418 (target_dcache_get, target_dcache_get_or_init)
6419 (_initialize_target_dcache): Update.
6420 * dcache.h (struct dcache_deleter): New.
6421
3017b94d
TT
64222019-05-08 Tom Tromey <tom@tromey.com>
6423
6424 * symtab.c (struct symbol_cache): Add destructor and
6425 initializers.
6426 (symbol_cache_key): Move. Change type.
6427 (make_symbol_cache, free_symbol_cache): Remove.
6428 (get_symbol_cache): Update.
6429 (symbol_cache_cleanup): Remove.
6430 (ALL_PSPACES, symbol_cache_flush)
6431 (maintenance_print_symbol_cache)
6432 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6433 Update.
6434
a32ad8c5
TT
64352019-05-08 Tom Tromey <tom@tromey.com>
6436
6437 * symtab.c (struct main_info): Add destructor and initializers.
6438 (main_progspace_key): Move. Change type.
6439 (get_main_info): Update.
6440 (main_info_cleanup): Remove.
6441 (_initialize_symtab): Update.
6442
5f6e90a0
TT
64432019-05-08 Tom Tromey <tom@tromey.com>
6444
6445 * registry.h (DECLARE_REGISTRY): Define the _key class.
6446
1bd0c6e4
AB
64472019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6448
6449 * NEWS: Merge two 'New commands' sections.
6450
2228ef77
XR
64512019-05-08 Joel Brobecker <brobecker@adacore.com>
6452
6453 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6454 parameter and use Ada language definition instead.
6455 (ada_val_print_ptr): Remove unused language parameter.
6456 (ada_val_print_num): Remove language parameter and use Ada language
6457 definition instead.
6458 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6459 parameter.
6460 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6461 parameter and use Ada language definition instead.
6462 (ada_val_print_1): Update all ada_val_print_xxx calls.
6463 Remove language parameter.
6464 (ada_val_print): Update ada_val_print_1 call.
6465
60fcc1c3
TT
64662019-05-08 Tom Tromey <tromey@adacore.com>
6467
6468 * remote.c (remote_hw_watchpoint_limit)
6469 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6470 Now static.
6471
ed2b7c17
TT
64722019-05-08 Tom Tromey <tromey@adacore.com>
6473
6474 * maint.c (_initialize_maint_cmds): Move initialization code to
6475 remote.c.
6476 (watchdog, show_watchdog): Move to remote.c.
6477 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6478 "watchdog" static.
6479 (_initialize_remote): Move initialization code from maint.c.
6480 * defs.h (watchdog): Don't declare.
6481
b0be6c91
TT
64822019-05-08 Tom Tromey <tromey@adacore.com>
6483
6484 * tui/tui-interp.c: Include main.h.
6485 * interps.c: Include main.h.
6486 * main.h (interpreter_p): Declare.
6487 * defs.h (interpreter_p): Don't declare.
6488
587ee17b
TT
64892019-05-08 Tom Tromey <tromey@adacore.com>
6490
6491 * dwarf2loc.c: Include dwarf2read.h.
6492 * defs.h (read_unsigned_leb128): Don't declare.
6493 * dwarf2read.h (read_unsigned_leb128): Declare.
6494
ca1df239
TT
64952019-05-08 Tom Tromey <tromey@adacore.com>
6496
6497 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6498 method.
6499
99f20f08
TT
65002019-05-08 Tom Tromey <tromey@adacore.com>
6501
6502 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6503 when no wrap column is set.
6504
80e55b13
TT
65052019-05-08 Tom Tromey <tromey@adacore.com>
6506
6507 * c-lang.c (c_get_string): Handle non-C-style arrays.
6508
9d3421af
TT
65092019-05-08 Tom Tromey <tromey@adacore.com>
6510
6511 * typeprint.c (print_offset_data::update): Print the bit offset,
6512 not the number of bits remaining.
6513
844333e2
TT
65142019-05-08 Tom Tromey <tromey@adacore.com>
6515
6516 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6517 padding at end of comment.
6518
988915ee
TT
65192019-05-08 Tom Tromey <tromey@adacore.com>
6520
6521 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6522 Compare main types.
6523
26bfd823
TT
65242019-05-06 Tom Tromey <tom@tromey.com>
6525
6526 * common/scoped_mmap.c: Include common-defs.h.
6527 * common/scoped_mmap.h: Don't include config.h.
6528
89055eaa
TT
65292019-05-04 Tom Tromey <tom@tromey.com>
6530
6531 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6532 (struct aarch64_call_info): Add initializers.
6533 <si>: Now a std::vector.
6534 (pass_on_stack, aarch64_push_dummy_call): Update.
6535
5da01df5
TT
65362019-05-04 Simon Marchi <simon.marchi@efficios.com>
6537 Tom Tromey <tom@tromey.com>
6538
6539 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6540 (ppc_threads): Now a std::vector. Now static.
6541 (hwdebug_find_thread_points_by_tid)
6542 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6543 Update.
6544
fbdf05a1
TT
65452019-05-04 Tom Tromey <tom@tromey.com>
6546
6547 * arc-tdep.c (arc_tdesc_init): Return bool.
6548
06d16ec9
TT
65492019-05-04 Tom Tromey <tom@tromey.com>
6550
6551 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6552 Use gdb_assert_not_reached.
6553
9c056022
TT
65542019-05-04 Tom Tromey <tom@tromey.com>
6555
6556 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6557 "false".
6558
fa9c2a59
TT
65592019-05-04 Tom Tromey <tom@tromey.com>
6560
6561 * arc-tdep.c (arc_tdesc_init): Use bool.
6562
e2eb806a
TT
65632019-05-04 Tom Tromey <tom@tromey.com>
6564
6565 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6566
6fe87677
TT
65672019-05-04 Tom Tromey <tom@tromey.com>
6568
6569 * cli/cli-cmds.c (valid_command_p): Return bool.
6570
7f008c9e
TT
65712019-05-04 Tom Tromey <tom@tromey.com>
6572
6573 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6574 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6575
b6484282
RT
65762019-05-04 Raul Tambre <raul@tambre.ee>
6577
6578 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6579 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6580 operator for comparison.
6581
af97b416
TT
65822019-05-04 Tom Tromey <tom@tromey.com>
6583
6584 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6585 (lookup_partial_symbol, print_partial_symbols)
6586 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6587 (psymbol_compare): Update.
6588 (add_psymbol_to_bcache): Clear the entire psymbol.
6589 (maintenance_check_psymtabs): Update.
6590 * psympriv.h (struct partial_symbol): Don't derive from
6591 general_symbol_info.
6592 <obj_section, unrelocated_address, address,
6593 set_unrelocated_address>: Update.
6594 <ginfo>: New member.
6595 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6596 (debug_names::write_psymbols): Update.
6597
9d6d4be8
TV
65982019-05-04 Tom de Vries <tdevries@suse.de>
6599
6600 * contrib/cc-with-tweaks.sh: Support -n arg.
6601
66452beb
PW
66022019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6603
6604 * corelow.c (core_target::detach): Ensure frame cache and
6605 register caches are cleared.
6606 inferior.c (exit_inferior_1): Likewise.
6607
bde09ab7
TT
66082019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6609 Tom Tromey <tom@tromey.com>
6610
6611 * dictionary.c (collate_pending_symbols_by_language): Remove
6612 "struct" from foreach.
6613 * symtab.c (lookup_global_symbol_from_objfile)
6614 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6615 foreach.
6616 * ser-tcp.c (net_open): Remove "struct" from foreach.
6617 * objfiles.c (objfile_relocate, objfile_rebase)
6618 (objfile_has_symbols): Remove "struct" from foreach.
6619 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6620 from foreach.
6621 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6622 foreach.
6623 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6624 "struct" from foreach.
6625 * ada-lang.c (create_excep_cond_exprs)
6626 (ada_exception_catchpoint_cond_string): Remove "struct" from
6627 foreach.
6628
222a8d25
TT
66292019-05-03 Tom Tromey <tromey@adacore.com>
6630
6631 * ada-exp.y (convert_char_literal): Check suffix of each
6632 enumerator.
6633
fcd60b84
DP
66342019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6635
6636 PR ada/21406:
6637 * ada-exp.y (yywrap): Don't define.
6638 * ada-lex.l (%option): Add noyywrap
6639 (yywrap): Remove.
6640
5f2459c2
EZ
66412019-05-03 Eli Zaretskii <eliz@gnu.org>
6642
353ea2d1
EZ
6643 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6644 _WIN32_WINNT to the XP level, unless already defined to a higher
6645 level.
6646
6647 * unittests/parse-connection-spec-selftests.c:
6648 * ser-tcp.c:
6649 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6650 override.
6651
5f2459c2
EZ
6652 * symfile.c (find_separate_debug_file): Remove colon from the
6653 drive spec of DOS/Windows file names of the target, so that the
6654 file name produced from DEBUGDIR and the target's directory will
6655 be valid on DOS/Windows systems.
6656
80062eb9
AB
66572019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6658
6659 * rust-lang.c (val_print_struct): Handle printing structures
6660 containing strings.
6661
b8c05e85
TT
66622019-05-02 Tom Tromey <tromey@adacore.com>
6663
6664 * valarith.c (_initialize_valarith): Remove.
6665
4504bbde
TT
66662019-05-01 Tom Tromey <tromey@adacore.com>
6667
6668 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6669 bitfields.
6670
d48e62f4
TT
66712019-05-01 Tom Tromey <tromey@adacore.com>
6672
6673 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6674 for big-endian copies.
6675
15f18d14
AT
66762019-04-30 Ali Tamur <tamur@google.com>
6677 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6678 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6679 (read_3_bytes): New function.
6680
ab4ee614
JB
66812019-04-30 Joel Brobecker <brobecker@adacore.com>
6682
6683 * windows-nat.c (main_thread_id): Delete.
6684 (handle_output_debug_string): Replace main_thread_id by
6685 current_event.dwThreadId.
6686 (fake_create_process): Likewise.
6687 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6688 Do not set main_thread_id.
6689 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6690 current_event.dwThreadId.
6691 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6692
8ed5b76e
JB
66932019-04-30 Joel Brobecker <brobecker@adacore.com>
6694
6695 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6696 Use current_event.dwThreadId instead of main_thread_id.
6697
2ff0a947
TT
66982019-04-30 Tom Tromey <tromey@adacore.com>
6699
6700 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6701 (create_excep_cond_exprs): Iterate over program spaces.
6702 (ada_exception_catchpoint_cond_string): Examine all minimal
6703 symbols for exception types.
6704
a776957c
TT
67052019-04-30 Tom Tromey <tromey@adacore.com>
6706
6707 PR c++/24470:
6708 * dwarf2read.c (process_structure_scope): Handle case where type
6709 has template parameters but no symbol was created.
6710
bc68014d
AB
67112019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6712 Chris January <chris.january@arm.com>
6713
6714 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6715 qualifier.
6716 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6717
f1fdc960
AB
67182019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6719
6720 * f-typeprint.c (f_print_type): Update rules for printing
6721 whitespace.
6722 (f_type_print_varspec_suffix): Likewise.
6723
bf7a4de1
AB
67242019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6725 Chris January <chris.january@arm.com>
6726
6727 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6728 function arguments.
6729
bbe75b9d
AB
67302019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6731
6732 * f-lang.c (build_fortran_types): Change name of void type to
6733 lower case.
6734 * f-typeprint.c (f_type_print_base): Print the name of the void
6735 type, rather than a fixed string.
6736 * f-valprint.c (f_decorations): Use lower case void string.
6737
1db455a7
AB
67382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6739 Chris January <chris.january@arm.com>
6740
6741 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6742 types for Fortran.
6743
b6d03bb2
AB
67442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6745 Chris January <chris.january@arm.com>
6746 David Lecomber <david.lecomber@arm.com>
6747
6748 * f-exp.y (BINOP_INTRINSIC): New token.
6749 (exp): New parser rule handling BINOP_INTRINSIC.
6750 (f77_keywords): Add new builtin procedures.
6751 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6752 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6753 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6754 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6755 (print_unop_subexp_f): New function.
6756 (print_binop_subexp_f): New function.
6757 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6758 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6759 (dump_subexp_body_f): Likewise.
6760 (operator_check_f): Likewise.
6761 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6762 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6763
83228e93
AB
67642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6767 UNOP_KIND.
6768 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6769 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6770 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6771 (operator_length_f): New fuction.
6772 (print_subexp_f): New function.
6773 (op_name_f): New function.
6774 (dump_subexp_body_f): New function.
6775 (operator_check_f): New function.
6776 (exp_descriptor_f): Replace standard expression handling functions
6777 with new functions.
6778 * gdb/fortran-operator.def: New file.
6779 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6780 * gdb/std-operator.def: Remove UNOP_KIND.
6781
6fdcd7cc
AB
67822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 * std-operator.def: Remove unbalanced, stray double quote
6785 character.
6786
2e62ab40
AB
67872019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6788 Chris January <chris.january@arm.com>
6789 Daniel Everett <daniel.everett@arm.com>
6790 Nick Forrington <nick.forrington@arm.com>
6791 Richard Bunt <richard.bunt@arm.com>
6792
6793 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6794 of depth when printing anonymous structs or unions.
6795 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6796 Don't print either the top-level value, or the children if the
6797 max-depth is exceeded.
6798 (ppscm_print_children): When printing the key of a map, allow one
6799 extra level of depth.
6800 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6801 print either the top-level value, or the children if the max-depth
6802 is exceeded.
6803 (print_children): When printing the key of a map, allow one extra
6804 level of depth.
6805 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6806 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6807 (user_print_options): Initialise max_depth field.
6808 (val_print_scalar_or_string_type_p): New function.
6809 (val_print): Check to see if the max depth has been reached.
6810 (val_print_check_max_depth): Define new function.
6811 (show_print_max_depth): New function.
6812 (_initialize_valprint): Add 'print max-depth' option.
6813 * valprint.h (struct value_print_options) <max_depth>: New field.
6814 (val_print_check_max_depth): Declare new function.
6815 * NEWS: Document new feature.
6816
4be290b2
AB
68172019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6818
6819 * ada-lang.c (ada_language_defn): Initialise new field.
6820 * c-lang.c (c_is_string_type_p): New function.
6821 (c_language_defn): Initialise new field.
6822 (cplus_language_defn): Initialise new field.
6823 (asm_language_defn): Initialise new field.
6824 (minimal_language_defn): Initialise new field.
6825 * c-lang.h (c_is_string_type_p): Declare new function.
6826 * d-lang.c (d_language_defn): Initialise new field.
6827 * f-lang.c (f_is_string_type_p): New function.
6828 (f_language_defn): Initialise new field.
6829 * go-lang.c (go_is_string_type_p): New function.
6830 (go_language_defn): Initialise new field.
6831 * language.c (default_is_string_type_p): New function.
6832 (unknown_language_defn): Initialise new field.
6833 (auto_language_defn): Initialise new field.
6834 * language.h (struct language_defn) <la_is_string_type_p>: New
6835 member variable.
6836 (default_is_string_type_p): Declare new function.
6837 * m2-lang.c (m2_language_defn): Initialise new field.
6838 * objc-lang.c (objc_language_defn): Initialise new field.
6839 * opencl-lang.c (opencl_language_defn): Initialise new field.
6840 * p-lang.c (pascal_is_string_type_p): New function.
6841 (pascal_language_defn): Initialise new field.
6842 * rust-lang.c (rust_is_string_type_p): New function.
6843 (rust_language_defn): Initialise new field.
6844
721b08c6
AB
68452019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6848 New field.
6849 * ada-lang.c (ada_language_defn): Initialise new field.
6850 * c-lang.c (c_language_defn): Likewise.
6851 (cplus_language_defn): Likewise.
6852 (asm_language_defn): Likewise.
6853 (minimal_language_defn): Likewise.
6854 * d-lang.c (d_language_defn): Likewise.
6855 * f-lang.c (f_language_defn): Likewise.
6856 * go-lang.c (go_language_defn): Likewise.
6857 * language.c (unknown_language_defn): Likewise.
6858 (auto_language_defn): Likewise.
6859 * m2-lang.c (m2_language_defn): Likewise.
6860 * objc-lang.c (objc_language_defn): Likewise.
6861 * opencl-lang.c (opencl_language_defn): Likewise.
6862 * p-lang.c (pascal_language_defn): Likewise.
6863 * rust-lang.c (rust_language_defn): Likewise.
6864
fc913e53
AB
68652019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6866
6867 * ada-lang.c (ada_is_character_type): Change return type to bool.
6868 (ada_is_string_type): Likewise.
6869 * ada-lang.h (ada_is_character_type): Update declaration
6870 (ada_is_string_type): Likewise.
6871
fa731fa0
PW
68722019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6873
6874 Support style in 'frame|thread apply'
6875
6876 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6877 * record.c (record_start, record_stop): Update callers of
6878 execute_command_to_string with false.
6879 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6880 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6881 methods.
6882 (class string_file): New constructor with term_out parameter.
6883 Override methods term_out and can_emit_style_escape. New member
6884 term_out.
6885 (class stdio_file): Override can_emit_style_escape.
6886 (class tee_file): Override term_out and can_emit_style_escape.
6887 * utils.h (can_emit_style_escape): Remove.
6888 * utils.c (can_emit_style_escape): Likewise.
6889 Update all callers of can_emit_style_escape (SOMESTREAM) to
6890 SOMESTREAM->can_emit_style_escape.
6891 * source-cache.c (source_cache::get_source_lines): Likewise.
6892 * stack.c (frame_apply_command_count): Call execute_command_to_string
6893 passing the term_out characteristic of the current gdb_stdout.
6894 * thread.c (thr_try_catch_cmd): Likewise.
6895 * top.c (execute_command_to_string): pass term_out parameter
6896 to construct the string_file for the command output.
6897 * ui-file.c (term_cli_styling): New function (most code moved
6898 from utils.c can_emit_style_escape).
6899 (string_file::string_file, string_file::can_emit_style_escape,
6900 stdio_file::can_emit_style_escape, tee_file::term_out,
6901 tee_file::can_emit_style_escape): New functions.
6902
136afab8
PW
69032019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6904
6905 * NEWS: Mention the new set|show may-call-functions.
6906 * infcall.c (may_call_functions_p): New variable.
6907 (show_may_call_functions_p): New function.
6908 (call_function_by_hand_dummy): Throws an error if not
6909 may-call-functions.
6910 (_initialize_infcall): Call add_setshow_boolean_cmd for
6911 may-call-functions.
6912
725cbb63
KS
69132019-04-25 Keith Seitz <keiths@redhat.com>
6914
6915 PR c++/24367
6916 * cp-support.c (inspect_type): Don't attempt substitutions
6917 of symbol with the same name.
6918
3d1cbb78
TT
69192019-04-25 Tom Tromey <tromey@adacore.com>
6920
6921 PR gdb/24475:
6922 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6923 static.
6924
94aeb44b
TT
69252019-04-25 Tom Tromey <tromey@adacore.com>
6926
6927 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6928 rvalue reference.
6929 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6930 (gdb_xml_parser::parse): Use std::move.
6931 * python/python-internal.h (gdbpy_convert_exception): Take a const
6932 reference.
6933 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6934 std::move.
6935 * python/py-utils.c (gdbpy_convert_exception): Take a const
6936 reference.
6937 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6938 Use std::move.
6939 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6940 Use std::move.
6941 * mi/mi-main.c (mi_print_exception): Take a const reference.
6942 * main.c (handle_command_errors): Take a const reference.
6943 * linespec.c (parse_linespec): Use std::move.
6944 * infcall.c (run_inferior_call): Use std::move.
6945 (call_function_by_hand_dummy): Use std::move.
6946 * exec.c (try_open_exec_file): Use std::move.
6947 * exceptions.h (exception_print, exception_fprintf)
6948 (exception_print_same): Update.
6949 * exceptions.c (print_exception, exception_print)
6950 (exception_fprintf, exception_print_same): Change parameters to
6951 const reference.
6952 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6953 * common/new-op.c: Use std::move.
6954 * common/common-exceptions.h (struct gdb_exception): Add move
6955 constructor.
6956 (struct gdb_exception_error, struct gdb_exception_quit, struct
6957 gdb_quit_bad_alloc): Change constructor to move constructor.
6958 (throw_exception): Change parameter to rvalue reference.
6959 * common/common-exceptions.c (throw_exception): Take rvalue
6960 reference.
6961 * cli/cli-interp.c (safe_execute_command): Use std::move.
6962 * breakpoint.c (insert_bp_location, location_to_sals): Use
6963 std::move.
6964
680d7fd5
TT
69652019-04-25 Tom Tromey <tromey@adacore.com>
6966
6967 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6968 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6969 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6970 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6971 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6972 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6973 guile/scm-value.c: Use unpack.
6974 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6975 gdbscm_gdb_exception.
6976 (gdbscm_throw_gdb_exception): Likewise.
6977 (struct gdbscm_gdb_exception): New.
6978 (unpack): New function.
6979 (gdbscm_wrap): Use unpack.
6980
c6fdd8b2
TT
69812019-04-25 Tom Tromey <tromey@adacore.com>
6982
6983 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6984 (gdb_rl_callback_handler): Use std::move.
6985 * common/common-exceptions.h (struct gdb_exception): Add move
6986 assignment operator.
6987 (throw_exception_sjlj): Change "exception" to const reference.
6988 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6989 (throw_exception_sjlj): Change "exception" to const reference.
6990
cc06b668
TT
69912019-04-25 Tom Tromey <tromey@adacore.com>
6992
6993 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6994 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6995 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6996 Update.
6997 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6998 Update.
6999 * mi/mi-interp.c (mi_interp::exec): Update.
7000 * linespec.c (parse_linespec): Update.
7001 * infcall.c (run_inferior_call): Update.
7002 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7003 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7004 (gdbscm_lookup_global_symbol): Update.
7005 * guile/scm-param.c (gdbscm_parameter_value): Update.
7006 * guile/scm-frame.c (gdbscm_frame_read_register)
7007 (gdbscm_frame_read_var): Update.
7008 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7009 * exec.c (try_open_exec_file): Update.
7010 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7011 (gdb_rl_callback_handler): Update.
7012 * common/common-exceptions.h (exception_none): Don't declare.
7013 * common/common-exceptions.c (exception_none): Don't define.
7014 (struct catcher) <exception>: Update.
7015 * cli/cli-interp.c (safe_execute_command): Update.
7016 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7017
cf532bd1
AT
70182019-04-25 Ali Tamur <tamur@google.com>
7019
7020 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7021 (read_attribute_value): Likewise.
7022 (dwarf2_read_addr_index): Update comment.
7023 (read_str_index): Add DW_FORM_strx.
7024 (dwarf2_string_attr): Likewise.
7025 (dwarf2_const_value_attr): Likewise.
7026 (dump_die_shallow): Likewise.
7027 (dwarf2_fetch_constant_bytes): Likewise.
7028 (skip_form_bytes): Likewise.
7029 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7030
82433e3e
SDJ
70312019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7032
7033 PR corefiles/11608
7034 PR corefiles/18187
7035 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7036 OFFSET. Verify if current mapping contains an ELF header.
7037 (linux_find_memory_regions_full): Adjust call to
7038 dump_mapping_p.
7039
723adb65
SL
70402019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7041 Kang Li <kanglictf@gmail.com>
7042
7043 PR gdb/21600
7044
7045 * dwarf2-frame.c (read_initial_length): Be consistent about using
7046 unsigned representation of length.
7047 (decode_frame_entry_1): Likewise. Check for wraparound of
7048 end pointer as well as buffer overflow.
7049
596179f7
SDJ
70502019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7051
7052 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7053 "vq".
7054
a59240a4
TT
70552019-04-24 Tom Tromey <tromey@adacore.com>
7056
7057 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7058
f872fdbb
AB
70592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7060
7061 * s12z-tdep.c (s12z_unwind_pc): Delete.
7062 (s12z_unwind_sp): Delete.
7063 (s12z_gdbarch_init): Don't register deleted functions with
7064 gdbarch.
7065
b614e6f3
AB
70662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7067
7068 * rl78-tdep.c (rl78_unwind_sp): Delete.
7069 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7070
14faed38
AB
70712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7074 (xstormy16_unwind_pc): Delete.
7075 (xstormy16_dummy_id): Delete.
7076 (xstormy16_gdbarch_init): Don't register deleted functions with
7077 gdbarch.
7078
541aad8a
AB
70792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7080
7081 * vax-tdep.c (vax_unwind_pc): Delete.
7082 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7083
29222070
AB
70842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7085
7086 * v850-tdep.c (v850_unwind_sp): Delete.
7087 (v850_unwind_pc): Delete.
7088 (v850_dummy_id): Delete.
7089 (v850_gdbarch_init): Don't register deleted functions with
7090 gdbarch.
7091
0f534d76
AB
70922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7093
7094 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7095 (tilegx_unwind_pc): Delete.
7096 (tilegx_unwind_dummy_id): Delete.
7097 (tilegx_gdbarch_init): Don't register deleted functions with
7098 gdbarch.
7099
1ba7b7f9
AB
71002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7101
7102 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7103 (tic6x_dummy_id): Delete.
7104 (tic6x_gdbarch_init): Don't register deleted functions with
7105 gdbarch.
7106
d31f262c
AB
71072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7108
7109 * sparc-tdep.c (sparc_unwind_pc): Delete.
7110 (sparc32_gdbarch_init): Don't register deleted function with
7111 gdbarch.
7112
6d14d64d
AB
71132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7114
7115 * sh-tdep.c (sh_unwind_sp): Delete.
7116 (sh_unwind_pc): Delete.
7117 (sh_dummy_id): Delete.
7118 (sh_gdbarch_init): Don't register deleted functions with
7119 gdbarch.
7120
a40dde9d
AB
71212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7122
7123 * score-tdep.c (score_unwind_sp): Delete.
7124 (score_unwind_pc): Delete.
7125 (score_dummy_id): Delete.
7126 (score_gdbarch_init): Don't register deleted functions with
7127 gdbarch.
7128
47c47d69
AB
71292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7130
7131 * rx-tdep.c (rx_unwind_pc): Delete.
7132 (rx_unwind_sp): Delete.
7133 (rx_dummy_id): Delete.
7134 (rx_gdbarch_init): Don't register deleted functions with
7135 gdbarch. Update comment.
7136
833a4480
AB
71372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7138
7139 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7140 (rs6000_dummy_id): Delete.
7141 (rs6000_gdbarch_init): Don't register deleted functions with
7142 gdbarch.
7143
3f2cef49
AB
71442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7145
7146 * or1k-tdep.c (or1k_dummy_id): Delete.
7147 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7148
96acf884
AB
71492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7150
7151 * nios2-tdep.c (nios2_dummy_id): Delete.
7152 (nios2_unwind_sp): Delete.
7153 (nios2_gdbarch_init): Don't register deleted functions with
7154 gdbarch.
7155
ca0ab0aa
AB
71562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7157
7158 * nds32-tdep.c (nds32_dummy_id): Delete.
7159 (nds32_unwind_pc): Delete.
7160 (nds32_unwind_sp): Delete.
7161 (nds32_gdbarch_init): Don't register deleted functions with
7162 gdbarch.
7163
c8259044
AB
71642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7165
7166 * msp430-tdep.c (msp430_unwind_pc): Delete.
7167 (msp430_unwind_sp): Delete.
7168 (msp430_dummy_id): Delete.
7169 (msp430_gdbarch_init): Don't register deleted functions with
7170 gdbarch.
7171
27f113c8
AB
71722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * moxie-tdep.c (moxie_unwind_sp): Delete.
7175 (moxie_unwind_pc): Delete.
7176 (moxie_dummy_id): Delete.
7177 (moxie_gdbarch_init): Don't register deleted functions with
7178 gdbarch.
7179
aee6c3cd
AB
71802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7181
7182 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7183 (mn10300_unwind_pc): Delete.
7184 (mn10300_unwind_sp): Delete.
7185 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7186 mn10300_unwind_sp.
7187 (mn10300_frame_unwind_init): Don't register deleted functions with
7188 gdbarch.
7189
8e2b5aea
AB
71902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * mep-tdep.c (mep_unwind_pc): Delete.
7193 (mep_unwind_sp): Delete.
7194 (mep_dummy_id): Delete.
7195 (mep_gdbarch_init): Don't register deleted functions with
7196 gdbarch.
7197
43cf3ede
AB
71982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7199
7200 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7201 (m68hc11_unwind_sp): Delete.
7202 (m68hc11_gdbarch_init): Don't register deleted functions with
7203 gdbarch.
7204
5e79b7bb
AB
72052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * m32r-tdep.c (m32r_unwind_sp): Delete.
7208 (m32r_unwind_pc): Delete.
7209 (m32r_dummy_id): Delete.
7210 (m32r_gdbarch_init): Don't register deleted functions with
7211 gdbarch.
7212
89b268d8
AB
72132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * m32c-tdep.c (m32c_unwind_pc): Delete.
7216 (m32c_unwind_sp): Delete.
7217 (m32c_dummy_id): Delete.
7218 (m32c_gdbarch_init): Don't register deleted functions with
7219 gdbarch.
7220
946c28d2
AB
72212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7224 (lm32_unwind_pc): Delete.
7225 (lm32_dummy_id): Delete.
7226 (lm32_gdbarch_init): Don't register deleted functions with
7227 gdbarch.
7228
bf12844a
AB
72292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7230
7231 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7232 (iq2000_unwind_pc): Delete.
7233 (iq2000_dummy_id): Delete.
7234 (iq2000_gdbarch_init): Don't register deleted functions with
7235 gdbarch.
7236
ecbc06d2
AB
72372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7238
7239 * nds32-tdep.c (nds32_type_align): Delete.
7240 (nds32_push_dummy_call): Use type_align instead.
7241
030197b4
AB
72422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7243
7244 * arm-tdep.c (arm_type_align): Only handle vector override case.
7245 (arm_push_dummy_call): Use type_align.
7246 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7247
b907456c
AB
72482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7251 case.
7252 (pass_on_stack): Use type_align.
7253 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7254 function.
7255
9e97ba43
TT
72562019-04-23 Tom Tromey <tromey@adacore.com>
7257
7258 * dwarf2read.c (line_header::file_name_at): Remove unused
7259 overload.
7260
6892f601
TV
72612019-04-23 Tom de Vries <tdevries@suse.de>
7262
7263 PR gdb/24438
7264 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7265 invocation.
7266
336d760d
AT
7267
72682019-03-27 Ali Tamur <tamur@google.com>
7269
7270 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7271 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7272 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7273 (dwarf_expr_context::get_addr_index): Likewise
7274 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7275 (symbol_needs_eval_context::get_addr_index): Likewise
7276 (disassemble_dwarf_expression): Add DW_OP_addrx
7277 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7278 (read_cutu_die_from_dwo): Update comment
7279 (skip_one_die): Add DW_FORM_addrx
7280 (read_attribute_value): Likewise
7281 (var_decode_location): Add DW_OP_addrx
7282 (dwarf2_const_value_attr): Add DW_FORM_addrx
7283 (dump_die_shallow): Likewise
7284 (dwarf2_fetch_constant_bytes): Likewise
7285 (decode_locdesc): Add DW_OP_addrx
7286 (skip_form_bytes): Add DW_FORM_addrx
7287
ad9d13f8
AT
72882019-04-22 Ali Tamur <tamur@google.com>
7289
7290 * MAINTAINERS (Write After Approval): Add self.
7291
d70cc3ba
SM
72922019-04-22 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7295 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7296 (open_symbol_file_object): Likewise.
7297 (svr4_default_sos): Add info parameter.
7298 (svr4_read_so_list): Likewise.
7299 (svr4_current_sos_direct): Adjust functions calls to pass down
7300 info.
7301 (svr4_current_sos_1): Add info parameter.
7302 (svr4_current_sos): Call get_svr4_info, pass info down to
7303 svr4_current_sos_1.
7304 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7305 get_svr4_info.
7306 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7307 get_svr4_info.
7308 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7309 to get_svr4_info.
7310 (probes_table_remove_objfile_probes): Likewise.
7311 (register_solib_event_probe): Add info parameter.
7312 (solist_update_incremental): Pass info parameter down to
7313 svr4_read_so_list.
7314 (disable_probes_interface): Add info parameter.
7315 (svr4_handle_solib_event): Pass current_program_space to
7316 get_svr4_info. Adjust disable_probes_interface cleanup.
7317 (svr4_create_probe_breakpoints): Add info parameter, pass it
7318 down to register_solib_event_probe.
7319 (svr4_create_solib_event_breakpoints): Add info parameter,
7320 pass it down to svr4_create_probe_breakpoints.
7321 (enable_break): Pass info down to
7322 svr4_create_solib_event_breakpoints.
7323 (svr4_solib_create_inferior_hook): Pass current_program_space to
7324 get_svr4_info.
7325 (svr4_clear_solib): Likewise.
7326
7905fc35
PA
73272019-04-22 Pedro Alves <palves@redhat.com>
7328
7329 * solib-svr4.c (svr4_free_objfile_observer): New.
7330 (probe_and_action::objfile): New field.
7331 (probes_table_htab_remove_objfile_probes)
7332 (probes_table_remove_objfile_probes): New functions.
7333 (register_solib_event_probe): Add 'objfile' parameter. Store it
7334 in the new probe_and_action. Don't store the probe in 'lookup'.
7335 (svr4_create_probe_breakpoints): Pass objfile to
7336 register_solib_event_probe.
7337 (_initialize_svr4_solib): Register a free_objfile observer.
7338
fb881986
TT
73392019-04-19 Tom Tromey <tom@tromey.com>
7340
7341 * common/queue.h: Remove.
7342
8732db6c
TT
73432019-04-19 Tom Tromey <tom@tromey.com>
7344
7345 * event-loop.c: Don't include "common/queue.h".
7346
97dfbadd
TT
73472019-04-19 Tom Tromey <tom@tromey.com>
7348
7349 * remote.c (remote_target): Use delete.
7350 * remote-notif.h: Include <list>, not "common/queue.h".
7351 (notif_client_p): Remove typedef.
7352 (remote_notif_state): Add constructor, destructor, initializer.
7353 <notif_queue>: Now a std::list.
7354 (remote_notif_state_xfree): Don't declare.
7355 * remote-notif.c (remote_notif_process, handle_notification)
7356 (remote_notif_state_allocate): Update.
7357 (~remote_notif_state): Rename from remote_notif_state_xfree.
7358
cf250e36
TT
73592019-04-19 Tom Tromey <tom@tromey.com>
7360
7361 * symfile.c (reread_symbols): Update.
7362 * objfiles.c (objfile_register_static_link)
7363 (objfile_lookup_static_link): Update
7364 (~objfile) Don't delete static_links.
7365 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7366
61f4b350
TT
73672019-04-19 Tom Tromey <tom@tromey.com>
7368
7369 * type-stack.h (struct type_stack) <insert>: Constify string.
7370 * type-stack.c (type_stack::insert): Constify string.
7371 * gdbtypes.h (lookup_template_type): Update.
7372 (address_space_name_to_int): Update.
7373 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7374 const.
7375 (lookup_template_type): Make name const.
7376 * c-exp.y: Update rules.
7377 (lex_one_token, classify_name, classify_inner_name)
7378 (c_print_token): Update.
7379 * p-exp.y: Update rules.
7380 (yylex): Update.
7381 * f-exp.y: Update rules.
7382 (yylex): Update.
7383 * d-exp.y: Update rules.
7384 (lex_one_token, classify_name, classify_inner_name): Update.
7385 * parse.c (write_dollar_variable, copy_name): Return std::string.
7386 * parser-defs.h (copy_name): Change return type.
7387 * m2-exp.y: Update rules.
7388 (yylex): Update.
7389 * go-exp.y (lex_one_token): Update.
7390 Update rules.
7391 (classify_unsafe_function, classify_packaged_name)
7392 (classify_name, yylex): Update.
7393
189b8c2e
ST
73942019-04-19 Sergei Trofimovich <siarheit@google.com>
7395
7396 * configure.ac: add --enable-source-highlight switch.
7397 * configure: Regenerate.
7398 * top.c (print_gdb_version): plumb --enable-source-highlight
7399 status to "show configuration".
7400
8ecb59f8
TT
74012019-04-19 Tom Tromey <tromey@adacore.com>
7402
7403 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7404 Check ADA_TYPE_P.
7405 (empty_record, ada_template_to_fixed_record_type_1)
7406 (template_to_static_fixed_type)
7407 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7408 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7409 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7410 macros.
7411
62160ec9
TT
74122019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7413
7414 PR symtab/24423:
7415 * source.c (print_source_lines_base): Advance "iter" when a
7416 control character is seen.
7417
f2ae8bc8
PW
74182019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7419
7420 * inferior.h (struct infcall_suspend_state_deleter):
7421 Catch exception in destructor to avoid crash.
7422
d563b953
PW
74232019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7424
7425 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7426 close to the add_com "shell".
7427
dc34c897
TT
74282019-04-18 Tom Tromey <tromey@adacore.com>
7429
7430 * process-stratum-target.h (class process_stratum_target)
7431 <stratum>: Add "final".
7432
a12e5744
TT
74332019-04-17 Tom Tromey <tromey@adacore.com>
7434
7435 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7436 against nullptr before use.
7437
a7e559cc
AH
74382019-04-17 Alan Hayward <alan.hayward@arm.com>
7439
7440 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7441
c01660c6
AB
74422019-04-17 Jim Wilson <jimw@sifive.com>
7443 Andrew Burgess <andrew.burgess@embecosm.com>
7444
7445 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7446 code read might fail, assume 4-byte breakpoint in that case.
7447
4aa866af
LS
74482019-04-15 Leszek Swirski <leszeks@google.com>
7449
7450 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7451 rather than a hand-rolled POD check when checking for forced MEMORY
7452 classification.
7453
48574d91
AH
74542019-04-15 Alan Hayward <alan.hayward@arm.com>
7455
7456 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7457 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7458 function.
7459 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7460 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7461 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7462 declaration.
7463
4da037ef
AH
74642019-04-15 Alan Hayward <alan.hayward@arm.com>
7465
7466 * aarch64-linux-nat.c
7467 (aarch64_linux_nat_target::thread_architecture): Add override.
7468 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7469 each VQ.
7470
ccb8d7e8
AH
74712019-04-15 Alan Hayward <alan.hayward@arm.com>
7472
7473 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7474
35add35e
AB
74752019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7478 target types of size 96-bits, add some additional comments, and
7479 check that the builtin type we found was the correct size.
7480
51196bbc
EZ
74812019-04-12 Eli Zaretskii <eliz@gnu.org>
7482
7483 * utils.c (prompt_for_continue): Don't restore the styling at the
7484 end, as applied_style has the wrong value. This fixes styling in
7485 long lists of file names that are interrupted by the "Continue?"
7486 prompt.
7487
62253a61
AB
74882019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7489
7490 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7491 * c-lang.c (c_language_defn): Likewise.
7492 (cplus_language_defn): Likewise.
7493 (asm_language_defn): Likewise.
7494 (minimal_language_defn): Likewise.
7495 * d-lang.c (d_language_defn): Likewise.
7496 * f-lang.c (f_language_defn): Likewise.
7497 * go-lang.c (go_language_defn): Likewise.
7498 * language.c (unknown_language_defn): Likewise.
7499 (auto_language_defn): Likewise.
7500 * language.h (struct language_defn): Remove la_magic field.
7501 (LANG_MAGIC): Delete.
7502 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7503 * objc-lang.c (objc_language_defn): Likewise.
7504 * opencl-lang.c (opencl_language_defn): Likewise.
7505 * p-lang.c (pascal_language_defn): Likewise.
7506 * rust-lang.c (rust_language_defn): Likewise.
7507
a9158a86
AB
75082019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7509
7510 * riscv-tdep.c (riscv_type_align): New function.
7511 (riscv_type_alignment): Delete.
7512 (riscv_arg_location): Use 'type_align'.
7513 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7514
41077b66
AB
75152019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7516
7517 * gdbtypes.c (type_align): A struct with no non-static fields also
7518 has alignment of 1.
7519
9f0272f8
AB
75202019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7521
7522 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7523 component to 0.
7524 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7525 member.
7526 (riscv_struct_info::analyse): New implementation using new
7527 analyse_inner member function.
7528 (riscv_struct_info::field_offset): New member function.
7529 (riscv_struct_info::m_offsets): New member variable.
7530 (riscv_struct_info::analyse_inner): New private member function,
7531 takes the old implementation of riscv_struct_info::analyse but
7532 extended to track field offsets.
7533 (riscv_call_arg_struct): Update the struct folding special cases
7534 to handle cases where empty C++ structs, which are non-zero
7535 length, are found.
7536 (riscv_arg_location): Initialise the length of each location, a
7537 non-zero length now indicates the location is in use.
7538 (riscv_push_dummy_call): Allow for the first location having a
7539 non-zero offset when setting up arguments.
7540 (riscv_return_value): Likewise, but for return values.
7541
02cf60c7
TT
75422019-04-11 Tom Tromey <tromey@adacore.com>
7543
7544 * utils.c (internal_vproblem): Make "msg" const.
7545
68811f8f
AH
75462019-04-11 Alan Hayward <alan.hayward@arm.com>
7547
7548 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7549 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7550 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7551 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7552
3f52fdbc
KB
75532019-04-10 Kevin Buettner <kevinb@redhat.com>
7554
7555 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7556 function.
7557 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7558 of amd64_collect_native_gregset.
7559 (amd64_linux_nat_target::store_registers): Likewise.
7560
e9ad22ee
TT
75612019-04-10 Tom Tromey <tom@tromey.com>
7562
7563 * symtab.c (lookup_global_symbol_from_objfile)
7564 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7565 * objfiles.h (class separate_debug_iterator): New.
7566 (class separate_debug_range): New.
7567 (struct objfile) <separate_debug_objfiles>: New method.
7568 (objfile_separate_debug_iterate): Don't declare.
7569 * objfiles.c (separate_debug_iterator::operator++): Rename from
7570 objfile_separate_debug_iterate.
7571 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7572 iterator.
7573 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7574 iterator.
7575
ee371134
TT
75762019-04-10 Tom Tromey <tom@tromey.com>
7577
7578 * symfile.c (reread_symbols): Remove old comment.
7579 * objfiles.c (free_all_objfiles): Fix a typo.
7580
bf227d61
TT
75812019-04-10 Tom Tromey <tom@tromey.com>
7582
7583 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7584 * minsyms.c (lookup_minimal_symbol): Use foreach.
7585 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7586 (lookup_minimal_symbol_solib_trampoline): Likewise.
7587 * symfile.c (reread_symbols): Use foreach.
7588
8dc433a0
TT
75892019-04-09 Ivan Begert <ivanbegert@gmail.com>
7590 Tom Tromey <tromey@adacore.com>
7591
7592 PR rust/24414:
7593 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7594 (rust_lex_int_test): Change "value" to be LONGEST.
7595 (rust_lex_tests): Add test for long integer literal.
7596
9ab8741a
TT
75972019-04-09 Tom Tromey <tromey@adacore.com>
7598
7599 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7600 to bool.
7601 (extended_remote_target::attach): Update.
7602 (remote_target::remote_notice_new_inferior): Update.
7603 (remote_target::add_current_inferior_and_thread): Update.
7604 * inferior.c (exit_inferior_1): Use "false".
7605 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7606
e242fd12
SM
76072019-04-09 Simon Marchi <simon.marchi@efficios.com>
7608
9ca1957f 7609 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7610 the "start" command.
7611
2b0c8b01
KB
76122019-04-08 Kevin Buettner <kevinb@redhat.com>
7613
7614 * python/py-inferior.c (infpy_thread_from_thread_handle):
7615 Adjust comments to reflect renaming of thread_from_thread_handle
7616 to thread_from_handle. Adjust keywords. Fix type error message.
7617 (inferior_object_methods): Add thread_from_handle. Retain
7618 thread_from_thread_handle, but mark it as deprecated.
7619
50a82723
KB
76202019-04-08 Kevin Buettner <kevinb@redhat.com>
7621
7622 * gdbthread.h (find_thread_by_handle): Revise declaration.
7623 * thread.c (find_thread_by_handle): Likewise. Adjust
7624 implementation too.
7625 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7626 support for buffer objects as handles.
7627
cf63b016
KB
76282019-04-08 Kevin Buettner <kevinb@redhat.com>
7629
7630 * python/py-infthread.c (thpy_thread_handle): New function.
7631 (thread_object_methods): Register thpy_thread_handle.
7632
3d6c6204
KB
76332019-04-08 Kevin Buettner <kevinb@redhat.com>
7634
7635 * gdbthread.h (thread_to_thread_handle): Declare.
7636 * thread.c (gdbtypes.h): Include.
7637 (thread_to_thread_handle): New function.
7638
7639 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7640 (target_thread_info_to_thread_handle): Declare.
7641 * target.c (target_thread_info_to_thread_handle): New function.
7642 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7643 * target-delegates.c: Regenerate.
7644
7645 * linux-thread-db.c (class thread_db_target): Add method
7646 thread_info_to_thread_handle.
7647 (thread_db_target::thread_info_to_thread_handle): Define.
7648 * remote.c (class remote_target): Add new method
7649 thread_info_to_thread_handle.
7650 (remote_target::thread_info_to_thread_handle): Define.
7651
56be6ea8
PA
76522019-04-08 Pedro Alves <palves@redhat.com>
7653
7654 * common/common-exceptions.c (throw_exception): Don't create
7655 named object to throw; throw directly.
7656 (throw_it): Likewise. Don't initialize gdb_exception::message
7657 here, with new; pass FMT and AP to the ctor instead.
7658 * common/common-exceptions.h: Include <string>.
7659 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7660 const char *, va_list)): New ctor. Use std::make_shared.
7661 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7662 errors)): Delete.
7663 (gdb_exception_error::gdb_exception_error(enum errors, const char
7664 *, va_list)): New.
7665 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7666 Add assertion.
7667 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7668 errors)): Delete.
7669 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7670 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7671 Add assertion.
7672
eedc3f4f
TT
76732019-04-08 Tom Tromey <tom@tromey.com>
7674
7675 * valops.c (value_rtti_indirect_type): Replace throw_exception
7676 with throw.
7677 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7678 with throw.
7679 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7680 throw.
7681 * target.c (target_translate_tls_address): Replace throw_exception
7682 with throw.
7683 * stack.c (frame_apply_command_count): Replace throw_exception
7684 with throw.
7685 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7686 throw.
7687 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7688 with throw.
7689 * rs6000-tdep.c (rs6000_frame_cache)
7690 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7691 * remote.c: Replace throw_exception with throw.
7692 * record-full.c (record_full_message, record_full_wait_1)
7693 (record_full_restore): Replace throw_exception with throw.
7694 * record-btrace.c:
7695 (get_thread_current_frame_id, record_btrace_start_replaying)
7696 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7697 (cmd_record_btrace_start): Replace throw_exception with throw.
7698 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7699 throw.
7700 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7701 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7702 * linespec.c:
7703 (find_linespec_symbols): Replace throw_exception with throw.
7704 * infrun.c (displaced_step_prepare, resume): Replace
7705 throw_exception with throw.
7706 * infcmd.c (post_create_inferior): Replace throw_exception with
7707 throw.
7708 * inf-loop.c (inferior_event_handler): Replace throw_exception
7709 with throw.
7710 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7711 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7712 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7713 (get_prev_frame_always, get_frame_pc_if_available)
7714 (get_frame_address_in_block_if_available, get_frame_language):
7715 Replace throw_exception with throw.
7716 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7717 throw_exception with throw.
7718 * eval.c (fetch_subexp_value, evaluate_var_value)
7719 (evaluate_funcall, evaluate_subexp_standard): Replace
7720 throw_exception with throw.
7721 * dwarf2loc.c (call_site_find_chain)
7722 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7723 Replace throw_exception with throw.
7724 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7725 with throw.
7726 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7727 throw.
7728 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7729 * completer.c (complete_line_internal): Replace throw_exception
7730 with throw.
7731 * compile/compile-object-run.c (compile_object_run): Replace
7732 throw_exception with throw.
7733 * cli/cli-script.c (process_next_line): Replace throw_exception
7734 with throw.
7735 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7736 (btrace_enable, btrace_maint_update_pt_packets): Replace
7737 throw_exception with throw.
7738 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7739 throw_exception with throw.
7740 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7741 throw_exception with throw.
7742 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7743 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7744 * aarch64-tdep.c (aarch64_make_prologue_cache)
7745 (aarch64_make_stub_cache): Replace throw_exception with throw.
7746
26003a20
TT
77472019-04-08 Tom Tromey <tom@tromey.com>
7748
7749 * common/common-exceptions.c (throw_exception): Rename from
7750 throw_exception_cxx. Remove old copy. Make argument const.
7751 (throw_it): Create and throw exception objects directly.
7752 * common/common-exceptions.h (throw_exception): Make argument
7753 const.
7754 (struct gdb_exception_error): Add constructor.
7755 (struct gdb_exception_quit): Add constructor.
7756
d272eb37
TT
77572019-04-08 Tom Tromey <tom@tromey.com>
7758
7759 * common/common-exceptions.h (exception_rethrow): Don't declare.
7760 (TRY_SJLJ): Update comment.
7761 (TRY, CATCH, END_CATCH): Remove.
7762 * common/common-exceptions.c (exception_rethrow): Remove.
7763
230d2906
TT
77642019-04-08 Tom Tromey <tom@tromey.com>
7765
7766 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7767 Remove.
7768 (gdb_exception_error): Rename from
7769 gdb_exception_RETURN_MASK_ERROR.
7770 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7771 (gdb_quit_bad_alloc): Update.
7772 * aarch64-tdep.c: Update.
7773 * ada-lang.c: Update.
7774 * ada-typeprint.c: Update.
7775 * ada-valprint.c: Update.
7776 * amd64-tdep.c: Update.
7777 * arch-utils.c: Update.
7778 * break-catch-throw.c: Update.
7779 * breakpoint.c: Update.
7780 * btrace.c: Update.
7781 * c-varobj.c: Update.
7782 * cli/cli-cmds.c: Update.
7783 * cli/cli-interp.c: Update.
7784 * cli/cli-script.c: Update.
7785 * common/common-exceptions.c: Update.
7786 * common/new-op.c: Update.
7787 * common/selftest.c: Update.
7788 * compile/compile-c-symbols.c: Update.
7789 * compile/compile-cplus-symbols.c: Update.
7790 * compile/compile-object-load.c: Update.
7791 * compile/compile-object-run.c: Update.
7792 * completer.c: Update.
7793 * corelow.c: Update.
7794 * cp-abi.c: Update.
7795 * cp-support.c: Update.
7796 * cp-valprint.c: Update.
7797 * darwin-nat.c: Update.
7798 * disasm-selftests.c: Update.
7799 * dtrace-probe.c: Update.
7800 * dwarf-index-cache.c: Update.
7801 * dwarf-index-write.c: Update.
7802 * dwarf2-frame-tailcall.c: Update.
7803 * dwarf2-frame.c: Update.
7804 * dwarf2loc.c: Update.
7805 * dwarf2read.c: Update.
7806 * eval.c: Update.
7807 * event-loop.c: Update.
7808 * event-top.c: Update.
7809 * exec.c: Update.
7810 * f-valprint.c: Update.
7811 * fbsd-tdep.c: Update.
7812 * frame-unwind.c: Update.
7813 * frame.c: Update.
7814 * gdbtypes.c: Update.
7815 * gnu-v3-abi.c: Update.
7816 * guile/guile-internal.h: Update.
7817 * guile/scm-block.c: Update.
7818 * guile/scm-breakpoint.c: Update.
7819 * guile/scm-cmd.c: Update.
7820 * guile/scm-disasm.c: Update.
7821 * guile/scm-frame.c: Update.
7822 * guile/scm-lazy-string.c: Update.
7823 * guile/scm-math.c: Update.
7824 * guile/scm-param.c: Update.
7825 * guile/scm-ports.c: Update.
7826 * guile/scm-pretty-print.c: Update.
7827 * guile/scm-symbol.c: Update.
7828 * guile/scm-symtab.c: Update.
7829 * guile/scm-type.c: Update.
7830 * guile/scm-value.c: Update.
7831 * i386-linux-tdep.c: Update.
7832 * i386-tdep.c: Update.
7833 * inf-loop.c: Update.
7834 * infcall.c: Update.
7835 * infcmd.c: Update.
7836 * infrun.c: Update.
7837 * jit.c: Update.
7838 * language.c: Update.
7839 * linespec.c: Update.
7840 * linux-fork.c: Update.
7841 * linux-nat.c: Update.
7842 * linux-tdep.c: Update.
7843 * linux-thread-db.c: Update.
7844 * main.c: Update.
7845 * mi/mi-cmd-break.c: Update.
7846 * mi/mi-cmd-stack.c: Update.
7847 * mi/mi-interp.c: Update.
7848 * mi/mi-main.c: Update.
7849 * objc-lang.c: Update.
7850 * p-valprint.c: Update.
7851 * parse.c: Update.
7852 * ppc-linux-tdep.c: Update.
7853 * printcmd.c: Update.
7854 * python/py-arch.c: Update.
7855 * python/py-breakpoint.c: Update.
7856 * python/py-cmd.c: Update.
7857 * python/py-finishbreakpoint.c: Update.
7858 * python/py-frame.c: Update.
7859 * python/py-framefilter.c: Update.
7860 * python/py-gdb-readline.c: Update.
7861 * python/py-inferior.c: Update.
7862 * python/py-infthread.c: Update.
7863 * python/py-lazy-string.c: Update.
7864 * python/py-linetable.c: Update.
7865 * python/py-objfile.c: Update.
7866 * python/py-param.c: Update.
7867 * python/py-prettyprint.c: Update.
7868 * python/py-progspace.c: Update.
7869 * python/py-record-btrace.c: Update.
7870 * python/py-record.c: Update.
7871 * python/py-symbol.c: Update.
7872 * python/py-type.c: Update.
7873 * python/py-unwind.c: Update.
7874 * python/py-utils.c: Update.
7875 * python/py-value.c: Update.
7876 * python/python.c: Update.
7877 * record-btrace.c: Update.
7878 * record-full.c: Update.
7879 * remote-fileio.c: Update.
7880 * remote.c: Update.
7881 * riscv-tdep.c: Update.
7882 * rs6000-aix-tdep.c: Update.
7883 * rs6000-tdep.c: Update.
7884 * rust-exp.y: Update.
7885 * rust-lang.c: Update.
7886 * s390-tdep.c: Update.
7887 * selftest-arch.c: Update.
7888 * solib-dsbt.c: Update.
7889 * solib-frv.c: Update.
7890 * solib-spu.c: Update.
7891 * solib-svr4.c: Update.
7892 * solib.c: Update.
7893 * sparc64-linux-tdep.c: Update.
7894 * stack.c: Update.
7895 * symfile-mem.c: Update.
7896 * symmisc.c: Update.
7897 * target.c: Update.
7898 * thread.c: Update.
7899 * top.c: Update.
7900 * tracefile-tfile.c: Update.
7901 * tui/tui.c: Update.
7902 * typeprint.c: Update.
7903 * unittests/cli-utils-selftests.c: Update.
7904 * unittests/parse-connection-spec-selftests.c: Update.
7905 * valops.c: Update.
7906 * valprint.c: Update.
7907 * value.c: Update.
7908 * varobj.c: Update.
7909 * windows-nat.c: Update.
7910 * x86-linux-nat.c: Update.
7911 * xml-support.c: Update.
7912
a70b8144
TT
79132019-04-08 Tom Tromey <tom@tromey.com>
7914
7915 * xml-support.c: Use C++ exception handling.
7916 * x86-linux-nat.c: Use C++ exception handling.
7917 * windows-nat.c: Use C++ exception handling.
7918 * varobj.c: Use C++ exception handling.
7919 * value.c: Use C++ exception handling.
7920 * valprint.c: Use C++ exception handling.
7921 * valops.c: Use C++ exception handling.
7922 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7923 handling.
7924 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7925 * typeprint.c: Use C++ exception handling.
7926 * tui/tui.c: Use C++ exception handling.
7927 * tracefile-tfile.c: Use C++ exception handling.
7928 * top.c: Use C++ exception handling.
7929 * thread.c: Use C++ exception handling.
7930 * target.c: Use C++ exception handling.
7931 * symmisc.c: Use C++ exception handling.
7932 * symfile-mem.c: Use C++ exception handling.
7933 * stack.c: Use C++ exception handling.
7934 * sparc64-linux-tdep.c: Use C++ exception handling.
7935 * solib.c: Use C++ exception handling.
7936 * solib-svr4.c: Use C++ exception handling.
7937 * solib-spu.c: Use C++ exception handling.
7938 * solib-frv.c: Use C++ exception handling.
7939 * solib-dsbt.c: Use C++ exception handling.
7940 * selftest-arch.c: Use C++ exception handling.
7941 * s390-tdep.c: Use C++ exception handling.
7942 * rust-lang.c: Use C++ exception handling.
7943 * rust-exp.y: Use C++ exception handling.
7944 * rs6000-tdep.c: Use C++ exception handling.
7945 * rs6000-aix-tdep.c: Use C++ exception handling.
7946 * riscv-tdep.c: Use C++ exception handling.
7947 * remote.c: Use C++ exception handling.
7948 * remote-fileio.c: Use C++ exception handling.
7949 * record-full.c: Use C++ exception handling.
7950 * record-btrace.c: Use C++ exception handling.
7951 * python/python.c: Use C++ exception handling.
7952 * python/py-value.c: Use C++ exception handling.
7953 * python/py-utils.c: Use C++ exception handling.
7954 * python/py-unwind.c: Use C++ exception handling.
7955 * python/py-type.c: Use C++ exception handling.
7956 * python/py-symbol.c: Use C++ exception handling.
7957 * python/py-record.c: Use C++ exception handling.
7958 * python/py-record-btrace.c: Use C++ exception handling.
7959 * python/py-progspace.c: Use C++ exception handling.
7960 * python/py-prettyprint.c: Use C++ exception handling.
7961 * python/py-param.c: Use C++ exception handling.
7962 * python/py-objfile.c: Use C++ exception handling.
7963 * python/py-linetable.c: Use C++ exception handling.
7964 * python/py-lazy-string.c: Use C++ exception handling.
7965 * python/py-infthread.c: Use C++ exception handling.
7966 * python/py-inferior.c: Use C++ exception handling.
7967 * python/py-gdb-readline.c: Use C++ exception handling.
7968 * python/py-framefilter.c: Use C++ exception handling.
7969 * python/py-frame.c: Use C++ exception handling.
7970 * python/py-finishbreakpoint.c: Use C++ exception handling.
7971 * python/py-cmd.c: Use C++ exception handling.
7972 * python/py-breakpoint.c: Use C++ exception handling.
7973 * python/py-arch.c: Use C++ exception handling.
7974 * printcmd.c: Use C++ exception handling.
7975 * ppc-linux-tdep.c: Use C++ exception handling.
7976 * parse.c: Use C++ exception handling.
7977 * p-valprint.c: Use C++ exception handling.
7978 * objc-lang.c: Use C++ exception handling.
7979 * mi/mi-main.c: Use C++ exception handling.
7980 * mi/mi-interp.c: Use C++ exception handling.
7981 * mi/mi-cmd-stack.c: Use C++ exception handling.
7982 * mi/mi-cmd-break.c: Use C++ exception handling.
7983 * main.c: Use C++ exception handling.
7984 * linux-thread-db.c: Use C++ exception handling.
7985 * linux-tdep.c: Use C++ exception handling.
7986 * linux-nat.c: Use C++ exception handling.
7987 * linux-fork.c: Use C++ exception handling.
7988 * linespec.c: Use C++ exception handling.
7989 * language.c: Use C++ exception handling.
7990 * jit.c: Use C++ exception handling.
7991 * infrun.c: Use C++ exception handling.
7992 * infcmd.c: Use C++ exception handling.
7993 * infcall.c: Use C++ exception handling.
7994 * inf-loop.c: Use C++ exception handling.
7995 * i386-tdep.c: Use C++ exception handling.
7996 * i386-linux-tdep.c: Use C++ exception handling.
7997 * guile/scm-value.c: Use C++ exception handling.
7998 * guile/scm-type.c: Use C++ exception handling.
7999 * guile/scm-symtab.c: Use C++ exception handling.
8000 * guile/scm-symbol.c: Use C++ exception handling.
8001 * guile/scm-pretty-print.c: Use C++ exception handling.
8002 * guile/scm-ports.c: Use C++ exception handling.
8003 * guile/scm-param.c: Use C++ exception handling.
8004 * guile/scm-math.c: Use C++ exception handling.
8005 * guile/scm-lazy-string.c: Use C++ exception handling.
8006 * guile/scm-frame.c: Use C++ exception handling.
8007 * guile/scm-disasm.c: Use C++ exception handling.
8008 * guile/scm-cmd.c: Use C++ exception handling.
8009 * guile/scm-breakpoint.c: Use C++ exception handling.
8010 * guile/scm-block.c: Use C++ exception handling.
8011 * guile/guile-internal.h: Use C++ exception handling.
8012 * gnu-v3-abi.c: Use C++ exception handling.
8013 * gdbtypes.c: Use C++ exception handling.
8014 * frame.c: Use C++ exception handling.
8015 * frame-unwind.c: Use C++ exception handling.
8016 * fbsd-tdep.c: Use C++ exception handling.
8017 * f-valprint.c: Use C++ exception handling.
8018 * exec.c: Use C++ exception handling.
8019 * event-top.c: Use C++ exception handling.
8020 * event-loop.c: Use C++ exception handling.
8021 * eval.c: Use C++ exception handling.
8022 * dwarf2read.c: Use C++ exception handling.
8023 * dwarf2loc.c: Use C++ exception handling.
8024 * dwarf2-frame.c: Use C++ exception handling.
8025 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8026 * dwarf-index-write.c: Use C++ exception handling.
8027 * dwarf-index-cache.c: Use C++ exception handling.
8028 * dtrace-probe.c: Use C++ exception handling.
8029 * disasm-selftests.c: Use C++ exception handling.
8030 * darwin-nat.c: Use C++ exception handling.
8031 * cp-valprint.c: Use C++ exception handling.
8032 * cp-support.c: Use C++ exception handling.
8033 * cp-abi.c: Use C++ exception handling.
8034 * corelow.c: Use C++ exception handling.
8035 * completer.c: Use C++ exception handling.
8036 * compile/compile-object-run.c: Use C++ exception handling.
8037 * compile/compile-object-load.c: Use C++ exception handling.
8038 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8039 * compile/compile-c-symbols.c: Use C++ exception handling.
8040 * common/selftest.c: Use C++ exception handling.
8041 * common/new-op.c: Use C++ exception handling.
8042 * cli/cli-script.c: Use C++ exception handling.
8043 * cli/cli-interp.c: Use C++ exception handling.
8044 * cli/cli-cmds.c: Use C++ exception handling.
8045 * c-varobj.c: Use C++ exception handling.
8046 * btrace.c: Use C++ exception handling.
8047 * breakpoint.c: Use C++ exception handling.
8048 * break-catch-throw.c: Use C++ exception handling.
8049 * arch-utils.c: Use C++ exception handling.
8050 * amd64-tdep.c: Use C++ exception handling.
8051 * ada-valprint.c: Use C++ exception handling.
8052 * ada-typeprint.c: Use C++ exception handling.
8053 * ada-lang.c: Use C++ exception handling.
8054 * aarch64-tdep.c: Use C++ exception handling.
8055
3d6e9d23
TT
80562019-04-08 Tom Tromey <tom@tromey.com>
8057
8058 * xml-support.c (gdb_xml_parser::parse): Update.
8059 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8060 * value.c (show_convenience): Update.
8061 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8062 (test_parse_flags_qcs): Update.
8063 * thread.c (thr_try_catch_cmd): Update.
8064 * target.c (target_translate_tls_address): Update.
8065 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8066 (info_frame_command_core, frame_apply_command_count): Update.
8067 * rust-exp.y (rust_lex_exception_test): Update.
8068 * riscv-tdep.c (riscv_print_one_register_info): Update.
8069 * remote.c (remote_target::enable_btrace): Update.
8070 * record-btrace.c (record_btrace_enable_warn): Update.
8071 * python/py-utils.c (gdbpy_convert_exception): Update.
8072 * printcmd.c (do_one_display, print_variable_and_value): Update.
8073 * mi/mi-main.c (mi_print_exception): Update.
8074 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8075 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8076 * linux-nat.c (linux_nat_target::attach): Update.
8077 * linux-fork.c (class scoped_switch_fork_info): Update.
8078 * infrun.c (displaced_step_prepare): Update.
8079 * infcall.c (call_function_by_hand_dummy): Update.
8080 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8081 * gnu-v3-abi.c (print_one_vtable): Update.
8082 * frame.c (get_prev_frame_always): Update.
8083 * f-valprint.c (info_common_command_for_block): Update.
8084 * exec.c (try_open_exec_file): Update.
8085 * exceptions.c (print_exception, exception_print)
8086 (exception_fprintf, exception_print_same): Update.
8087 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8088 * dwarf-index-cache.c (index_cache::store)
8089 (index_cache::lookup_gdb_index): Update.
8090 * darwin-nat.c (maybe_cache_shell): Update.
8091 * cp-valprint.c (cp_print_value_fields): Update.
8092 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8093 (gcc_cplus_symbol_address): Update.
8094 * compile/compile-c-symbols.c (gcc_convert_symbol)
8095 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8096 * common/selftest.c: Update.
8097 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8098 a std::string.
8099 (exception_try_scope_entry, exception_try_scope_exit): Don't
8100 declare.
8101 (struct exception_try_scope): Remove.
8102 (TRY): Don't use exception_try_scope.
8103 (struct gdb_exception): Add constructor, operator=.
8104 <what>: New method.
8105 (struct gdb_exception_RETURN_MASK_ALL)
8106 (struct gdb_exception_RETURN_MASK_ERROR)
8107 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8108 (struct gdb_quit_bad_alloc): Update.
8109 * common/common-exceptions.c (exception_none): Change
8110 initializer.
8111 (struct catcher) <state, exception>: Initialize inline.
8112 <prev>: Remove member.
8113 (current_catcher): Remove.
8114 (catchers): New global.
8115 (exceptions_state_mc_init): Simplify.
8116 (catcher_pop): Remove.
8117 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8118 (try_scope_depth, exception_try_scope_entry)
8119 (exception_try_scope_exit): Remove.
8120 (throw_exception_sjlj): Update.
8121 (exception_messages, exception_messages_size): Remove.
8122 (throw_it): Simplify.
8123 (gdb_exception_sliced_copy): Remove.
8124 (throw_exception_cxx): Update.
8125 * cli/cli-script.c (script_from_file): Update.
8126 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8127 Update.
8128 * ada-valprint.c (ada_val_print): Update.
8129 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8130 (create_excep_cond_exprs): Update.
8131
c5c10118
TT
81322019-04-08 Tom Tromey <tom@tromey.com>
8133
8134 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8135 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8136 (TRY, CATCH, END_CATCH): Remove some definitions.
8137 * common/common-exceptions.c: Don't use GDB_XCPT.
8138 (catcher_list_size): Remove.
8139 (throw_exception, throw_it): Simplify.
8140
4de283e4
TT
81412019-04-05 Tom Tromey <tom@tromey.com>
8142
8143 Revert the header-sorting patch.
8144 * ft32-tdep.c: Revert.
8145 * frv-tdep.c: Revert.
8146 * frv-linux-tdep.c: Revert.
8147 * frame.c: Revert.
8148 * frame-unwind.c: Revert.
8149 * frame-base.c: Revert.
8150 * fork-child.c: Revert.
8151 * findvar.c: Revert.
8152 * findcmd.c: Revert.
8153 * filesystem.c: Revert.
8154 * filename-seen-cache.h: Revert.
8155 * filename-seen-cache.c: Revert.
8156 * fbsd-tdep.c: Revert.
8157 * fbsd-nat.h: Revert.
8158 * fbsd-nat.c: Revert.
8159 * f-valprint.c: Revert.
8160 * f-typeprint.c: Revert.
8161 * f-lang.c: Revert.
8162 * extension.h: Revert.
8163 * extension.c: Revert.
8164 * extension-priv.h: Revert.
8165 * expprint.c: Revert.
8166 * exec.h: Revert.
8167 * exec.c: Revert.
8168 * exceptions.c: Revert.
8169 * event-top.c: Revert.
8170 * event-loop.c: Revert.
8171 * eval.c: Revert.
8172 * elfread.c: Revert.
8173 * dwarf2read.h: Revert.
8174 * dwarf2read.c: Revert.
8175 * dwarf2loc.c: Revert.
8176 * dwarf2expr.h: Revert.
8177 * dwarf2expr.c: Revert.
8178 * dwarf2-frame.c: Revert.
8179 * dwarf2-frame-tailcall.c: Revert.
8180 * dwarf-index-write.h: Revert.
8181 * dwarf-index-write.c: Revert.
8182 * dwarf-index-common.c: Revert.
8183 * dwarf-index-cache.h: Revert.
8184 * dwarf-index-cache.c: Revert.
8185 * dummy-frame.c: Revert.
8186 * dtrace-probe.c: Revert.
8187 * disasm.h: Revert.
8188 * disasm.c: Revert.
8189 * disasm-selftests.c: Revert.
8190 * dictionary.c: Revert.
8191 * dicos-tdep.c: Revert.
8192 * demangle.c: Revert.
8193 * dcache.h: Revert.
8194 * dcache.c: Revert.
8195 * darwin-nat.h: Revert.
8196 * darwin-nat.c: Revert.
8197 * darwin-nat-info.c: Revert.
8198 * d-valprint.c: Revert.
8199 * d-namespace.c: Revert.
8200 * d-lang.c: Revert.
8201 * ctf.c: Revert.
8202 * csky-tdep.c: Revert.
8203 * csky-linux-tdep.c: Revert.
8204 * cris-tdep.c: Revert.
8205 * cris-linux-tdep.c: Revert.
8206 * cp-valprint.c: Revert.
8207 * cp-support.c: Revert.
8208 * cp-namespace.c: Revert.
8209 * cp-abi.c: Revert.
8210 * corelow.c: Revert.
8211 * corefile.c: Revert.
8212 * continuations.c: Revert.
8213 * completer.h: Revert.
8214 * completer.c: Revert.
8215 * complaints.c: Revert.
8216 * coffread.c: Revert.
8217 * coff-pe-read.c: Revert.
8218 * cli-out.h: Revert.
8219 * cli-out.c: Revert.
8220 * charset.c: Revert.
8221 * c-varobj.c: Revert.
8222 * c-valprint.c: Revert.
8223 * c-typeprint.c: Revert.
8224 * c-lang.c: Revert.
8225 * buildsym.c: Revert.
8226 * buildsym-legacy.c: Revert.
8227 * build-id.h: Revert.
8228 * build-id.c: Revert.
8229 * btrace.c: Revert.
8230 * bsd-uthread.c: Revert.
8231 * breakpoint.h: Revert.
8232 * breakpoint.c: Revert.
8233 * break-catch-throw.c: Revert.
8234 * break-catch-syscall.c: Revert.
8235 * break-catch-sig.c: Revert.
8236 * blockframe.c: Revert.
8237 * block.c: Revert.
8238 * bfin-tdep.c: Revert.
8239 * bfin-linux-tdep.c: Revert.
8240 * bfd-target.c: Revert.
8241 * bcache.c: Revert.
8242 * ax-general.c: Revert.
8243 * ax-gdb.h: Revert.
8244 * ax-gdb.c: Revert.
8245 * avr-tdep.c: Revert.
8246 * auxv.c: Revert.
8247 * auto-load.c: Revert.
8248 * arm-wince-tdep.c: Revert.
8249 * arm-tdep.c: Revert.
8250 * arm-symbian-tdep.c: Revert.
8251 * arm-pikeos-tdep.c: Revert.
8252 * arm-obsd-tdep.c: Revert.
8253 * arm-nbsd-tdep.c: Revert.
8254 * arm-nbsd-nat.c: Revert.
8255 * arm-linux-tdep.c: Revert.
8256 * arm-linux-nat.c: Revert.
8257 * arm-fbsd-tdep.c: Revert.
8258 * arm-fbsd-nat.c: Revert.
8259 * arm-bsd-tdep.c: Revert.
8260 * arch-utils.c: Revert.
8261 * arc-tdep.c: Revert.
8262 * arc-newlib-tdep.c: Revert.
8263 * annotate.h: Revert.
8264 * annotate.c: Revert.
8265 * amd64-windows-tdep.c: Revert.
8266 * amd64-windows-nat.c: Revert.
8267 * amd64-tdep.c: Revert.
8268 * amd64-sol2-tdep.c: Revert.
8269 * amd64-obsd-tdep.c: Revert.
8270 * amd64-obsd-nat.c: Revert.
8271 * amd64-nbsd-tdep.c: Revert.
8272 * amd64-nbsd-nat.c: Revert.
8273 * amd64-nat.c: Revert.
8274 * amd64-linux-tdep.c: Revert.
8275 * amd64-linux-nat.c: Revert.
8276 * amd64-fbsd-tdep.c: Revert.
8277 * amd64-fbsd-nat.c: Revert.
8278 * amd64-dicos-tdep.c: Revert.
8279 * amd64-darwin-tdep.c: Revert.
8280 * amd64-bsd-nat.c: Revert.
8281 * alpha-tdep.c: Revert.
8282 * alpha-obsd-tdep.c: Revert.
8283 * alpha-nbsd-tdep.c: Revert.
8284 * alpha-mdebug-tdep.c: Revert.
8285 * alpha-linux-tdep.c: Revert.
8286 * alpha-linux-nat.c: Revert.
8287 * alpha-bsd-tdep.c: Revert.
8288 * alpha-bsd-nat.c: Revert.
8289 * aix-thread.c: Revert.
8290 * agent.c: Revert.
8291 * addrmap.c: Revert.
8292 * ada-varobj.c: Revert.
8293 * ada-valprint.c: Revert.
8294 * ada-typeprint.c: Revert.
8295 * ada-tasks.c: Revert.
8296 * ada-lang.c: Revert.
8297 * aarch64-tdep.c: Revert.
8298 * aarch64-ravenscar-thread.c: Revert.
8299 * aarch64-newlib-tdep.c: Revert.
8300 * aarch64-linux-tdep.c: Revert.
8301 * aarch64-linux-nat.c: Revert.
8302 * aarch64-fbsd-tdep.c: Revert.
8303 * aarch64-fbsd-nat.c: Revert.
8304 * aarch32-linux-nat.c: Revert.
8305
d55e5aa6
TT
83062019-04-05 Tom Tromey <tom@tromey.com>
8307
8308 * ft32-tdep.c: Sort headers.
8309 * frv-tdep.c: Sort headers.
8310 * frv-linux-tdep.c: Sort headers.
8311 * frame.c: Sort headers.
8312 * frame-unwind.c: Sort headers.
8313 * frame-base.c: Sort headers.
8314 * fork-child.c: Sort headers.
8315 * findvar.c: Sort headers.
8316 * findcmd.c: Sort headers.
8317 * filesystem.c: Sort headers.
8318 * filename-seen-cache.h: Sort headers.
8319 * filename-seen-cache.c: Sort headers.
8320 * fbsd-tdep.c: Sort headers.
8321 * fbsd-nat.h: Sort headers.
8322 * fbsd-nat.c: Sort headers.
8323 * f-valprint.c: Sort headers.
8324 * f-typeprint.c: Sort headers.
8325 * f-lang.c: Sort headers.
8326 * extension.h: Sort headers.
8327 * extension.c: Sort headers.
8328 * extension-priv.h: Sort headers.
8329 * expprint.c: Sort headers.
8330 * exec.h: Sort headers.
8331 * exec.c: Sort headers.
8332 * exceptions.c: Sort headers.
8333 * event-top.c: Sort headers.
8334 * event-loop.c: Sort headers.
8335 * eval.c: Sort headers.
8336 * elfread.c: Sort headers.
8337 * dwarf2read.h: Sort headers.
8338 * dwarf2read.c: Sort headers.
8339 * dwarf2loc.c: Sort headers.
8340 * dwarf2expr.h: Sort headers.
8341 * dwarf2expr.c: Sort headers.
8342 * dwarf2-frame.c: Sort headers.
8343 * dwarf2-frame-tailcall.c: Sort headers.
8344 * dwarf-index-write.h: Sort headers.
8345 * dwarf-index-write.c: Sort headers.
8346 * dwarf-index-common.c: Sort headers.
8347 * dwarf-index-cache.h: Sort headers.
8348 * dwarf-index-cache.c: Sort headers.
8349 * dummy-frame.c: Sort headers.
8350 * dtrace-probe.c: Sort headers.
8351 * disasm.h: Sort headers.
8352 * disasm.c: Sort headers.
8353 * disasm-selftests.c: Sort headers.
8354 * dictionary.c: Sort headers.
8355 * dicos-tdep.c: Sort headers.
8356 * demangle.c: Sort headers.
8357 * dcache.h: Sort headers.
8358 * dcache.c: Sort headers.
8359 * darwin-nat.h: Sort headers.
8360 * darwin-nat.c: Sort headers.
8361 * darwin-nat-info.c: Sort headers.
8362 * d-valprint.c: Sort headers.
8363 * d-namespace.c: Sort headers.
8364 * d-lang.c: Sort headers.
8365 * ctf.c: Sort headers.
8366 * csky-tdep.c: Sort headers.
8367 * csky-linux-tdep.c: Sort headers.
8368 * cris-tdep.c: Sort headers.
8369 * cris-linux-tdep.c: Sort headers.
8370 * cp-valprint.c: Sort headers.
8371 * cp-support.c: Sort headers.
8372 * cp-namespace.c: Sort headers.
8373 * cp-abi.c: Sort headers.
8374 * corelow.c: Sort headers.
8375 * corefile.c: Sort headers.
8376 * continuations.c: Sort headers.
8377 * completer.h: Sort headers.
8378 * completer.c: Sort headers.
8379 * complaints.c: Sort headers.
8380 * coffread.c: Sort headers.
8381 * coff-pe-read.c: Sort headers.
8382 * cli-out.h: Sort headers.
8383 * cli-out.c: Sort headers.
8384 * charset.c: Sort headers.
8385 * c-varobj.c: Sort headers.
8386 * c-valprint.c: Sort headers.
8387 * c-typeprint.c: Sort headers.
8388 * c-lang.c: Sort headers.
8389 * buildsym.c: Sort headers.
8390 * buildsym-legacy.c: Sort headers.
8391 * build-id.h: Sort headers.
8392 * build-id.c: Sort headers.
8393 * btrace.c: Sort headers.
8394 * bsd-uthread.c: Sort headers.
8395 * breakpoint.h: Sort headers.
8396 * breakpoint.c: Sort headers.
8397 * break-catch-throw.c: Sort headers.
8398 * break-catch-syscall.c: Sort headers.
8399 * break-catch-sig.c: Sort headers.
8400 * blockframe.c: Sort headers.
8401 * block.c: Sort headers.
8402 * bfin-tdep.c: Sort headers.
8403 * bfin-linux-tdep.c: Sort headers.
8404 * bfd-target.c: Sort headers.
8405 * bcache.c: Sort headers.
8406 * ax-general.c: Sort headers.
8407 * ax-gdb.h: Sort headers.
8408 * ax-gdb.c: Sort headers.
8409 * avr-tdep.c: Sort headers.
8410 * auxv.c: Sort headers.
8411 * auto-load.c: Sort headers.
8412 * arm-wince-tdep.c: Sort headers.
8413 * arm-tdep.c: Sort headers.
8414 * arm-symbian-tdep.c: Sort headers.
8415 * arm-pikeos-tdep.c: Sort headers.
8416 * arm-obsd-tdep.c: Sort headers.
8417 * arm-nbsd-tdep.c: Sort headers.
8418 * arm-nbsd-nat.c: Sort headers.
8419 * arm-linux-tdep.c: Sort headers.
8420 * arm-linux-nat.c: Sort headers.
8421 * arm-fbsd-tdep.c: Sort headers.
8422 * arm-fbsd-nat.c: Sort headers.
8423 * arm-bsd-tdep.c: Sort headers.
8424 * arch-utils.c: Sort headers.
8425 * arc-tdep.c: Sort headers.
8426 * arc-newlib-tdep.c: Sort headers.
8427 * annotate.h: Sort headers.
8428 * annotate.c: Sort headers.
8429 * amd64-windows-tdep.c: Sort headers.
8430 * amd64-windows-nat.c: Sort headers.
8431 * amd64-tdep.c: Sort headers.
8432 * amd64-sol2-tdep.c: Sort headers.
8433 * amd64-obsd-tdep.c: Sort headers.
8434 * amd64-obsd-nat.c: Sort headers.
8435 * amd64-nbsd-tdep.c: Sort headers.
8436 * amd64-nbsd-nat.c: Sort headers.
8437 * amd64-nat.c: Sort headers.
8438 * amd64-linux-tdep.c: Sort headers.
8439 * amd64-linux-nat.c: Sort headers.
8440 * amd64-fbsd-tdep.c: Sort headers.
8441 * amd64-fbsd-nat.c: Sort headers.
8442 * amd64-dicos-tdep.c: Sort headers.
8443 * amd64-darwin-tdep.c: Sort headers.
8444 * amd64-bsd-nat.c: Sort headers.
8445 * alpha-tdep.c: Sort headers.
8446 * alpha-obsd-tdep.c: Sort headers.
8447 * alpha-nbsd-tdep.c: Sort headers.
8448 * alpha-mdebug-tdep.c: Sort headers.
8449 * alpha-linux-tdep.c: Sort headers.
8450 * alpha-linux-nat.c: Sort headers.
8451 * alpha-bsd-tdep.c: Sort headers.
8452 * alpha-bsd-nat.c: Sort headers.
8453 * aix-thread.c: Sort headers.
8454 * agent.c: Sort headers.
8455 * addrmap.c: Sort headers.
8456 * ada-varobj.c: Sort headers.
8457 * ada-valprint.c: Sort headers.
8458 * ada-typeprint.c: Sort headers.
8459 * ada-tasks.c: Sort headers.
8460 * ada-lang.c: Sort headers.
8461 * aarch64-tdep.c: Sort headers.
8462 * aarch64-ravenscar-thread.c: Sort headers.
8463 * aarch64-newlib-tdep.c: Sort headers.
8464 * aarch64-linux-tdep.c: Sort headers.
8465 * aarch64-linux-nat.c: Sort headers.
8466 * aarch64-fbsd-tdep.c: Sort headers.
8467 * aarch64-fbsd-nat.c: Sort headers.
8468 * aarch32-linux-nat.c: Sort headers.
8469
699bd4cf
TT
84702019-04-04 Tom Tromey <tom@tromey.com>
8471
8472 * varobj.c (varobj_create): Update.
8473 * rust-exp.y (struct rust_parser) <update_innermost_block,
8474 lookup_symbol>: New methods.
8475 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8476 Rename.
8477 (rust_parser::rust_lookup_type)
8478 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8479 * printcmd.c (display_command, do_one_display): Update.
8480 * parser-defs.h (struct parser_state) <parser_state>: Add
8481 "tracker" parameter.
8482 (block_tracker): New member.
8483 (class innermost_block_tracker) <innermost_block_tracker>: Add
8484 "types" parameter.
8485 <reset>: Remove method.
8486 (innermost_block): Don't declare.
8487 (null_post_parser): Update.
8488 * parse.c (innermost_block): Remove global.
8489 (write_dollar_variable): Update.
8490 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8491 Remove "tracker_types" parameter.
8492 (parse_expression): Add "tracker" parameter.
8493 (parse_expression_for_completion): Update.
8494 (null_post_parser): Add "tracker" parameter.
8495 * p-exp.y: Update rules.
8496 * m2-exp.y: Update rules.
8497 * language.h (struct language_defn) <la_post_parser>: Add
8498 "tracker" parameter.
8499 * go-exp.y: Update rules.
8500 * f-exp.y: Update rules.
8501 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8502 parameter.
8503 * d-exp.y: Update rules.
8504 * c-exp.y: Update rules.
8505 * breakpoint.c (set_breakpoint_condition): Create an
8506 innermost_block_tracker.
8507 (watch_command_1): Likewise.
8508 * ada-lang.c (resolve): Add "tracker" parameter.
8509 (resolve_subexp): Likewise.
8510 * ada-exp.y (write_var_from_sym): Update.
8511
dac43e32
TT
85122019-04-04 Tom Tromey <tom@tromey.com>
8513
8514 * type-stack.h: New file.
8515 * type-stack.c: New file.
8516 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8517 type-stack.h.
8518 (insert_into_type_stack, insert_type, push_type, push_type_int)
8519 (insert_type_address_space, pop_type, pop_type_int)
8520 (pop_typelist, pop_type_stack, append_type_stack)
8521 (push_type_stack, get_type_stack, push_typelist)
8522 (follow_type_instance_flags, follow_types): Don't declare.
8523 * parse.c (type_stack): Remove global.
8524 (parse_exp_in_context): Update.
8525 (insert_into_type_stack, insert_type, push_type, push_type_int)
8526 (insert_type_address_space, pop_type, pop_type_int)
8527 (pop_typelist, pop_type_stack, append_type_stack)
8528 (push_type_stack, get_type_stack, push_typelist)
8529 (follow_type_instance_flags, follow_types): Remove (moved to
8530 type-stack.c).
8531 * f-exp.y (type_stack): New global.
8532 Update rules.
8533 (push_kind_type, f_parse): Update.
8534 * d-exp.y (type_stack): New global.
8535 Update rules.
8536 (d_parse): Update.
8537 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8538 Update rules.
8539 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8540 (HFILES_NO_SRCDIR): Add type-stack.h.
8541
2a612529
TT
85422019-04-04 Tom Tromey <tom@tromey.com>
8543
8544 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8545 (rust_parser::convert_ast_to_expression, rust_parse)
8546 (rust_lex_test_completion, rust_lex_tests): Update.
8547 * parser-defs.h (struct expr_completion_state): New.
8548 (struct parser_state) <parser_state>: Add completion parameter.
8549 <mark_struct_expression, mark_completion_tag>: New methods.
8550 <parse_completion, m_completion_state>: New members.
8551 (prefixify_expression, null_post_parser): Update.
8552 (mark_struct_expression, mark_completion_tag): Don't declare.
8553 * parse.c (parse_completion, expout_last_struct)
8554 (expout_tag_completion_type, expout_completion_name): Remove
8555 globals.
8556 (parser_state::mark_struct_expression)
8557 (parser_state::mark_completion_tag): Now methods.
8558 (prefixify_expression): Add last_struct parameter.
8559 (prefixify_subexp): Likewise.
8560 (parse_exp_1): Update.
8561 (parse_exp_in_context): Add cstate parameter. Update.
8562 (parse_expression_for_completion): Create an
8563 expr_completion_state.
8564 (null_post_parser): Add "completion" parameter.
8565 * p-exp.y: Update rules.
8566 (yylex): Update.
8567 * language.h (struct language_defn) <la_post_parser>: Add
8568 "completing" parameter.
8569 * go-exp.y: Update rules.
8570 (lex_one_token): Update.
8571 * expression.h (parse_completion): Don't declare.
8572 * d-exp.y: Update rules.
8573 (lex_one_token): Update rules.
8574 * c-exp.y: Update rules.
8575 (lex_one_token): Update.
8576 * ada-lang.c (resolve): Add "parse_completion" parameter.
8577 (resolve_subexp): Likewise.
8578 (ada_resolve_function): Likewise.
8579
43476f0b
TT
85802019-04-04 Tom Tromey <tom@tromey.com>
8581
8582 * parser-defs.h (struct parser_state) <start_arglist,
8583 end_arglist>: New methods.
8584 <arglist_len, m_funcall_chain>: New members.
8585 (arglist_len, start_arglist, end_arglist): Don't declare.
8586 * parse.c (arglist_len, funcall_chain): Remove global.
8587 (start_arglist, end_arglist): Remove functions.
8588 (parse_exp_in_context): Update.
8589 * p-exp.y: Update rules.
8590 * m2-exp.y: Update rules.
8591 * go-exp.y: Update rules.
8592 * f-exp.y: Update rules.
8593 * d-exp.y: Update rules.
8594 * c-exp.y: Update rules.
8595
5776fca3
TT
85962019-04-04 Tom Tromey <tom@tromey.com>
8597
8598 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8599 lex_operator, push_back>: New methods.
8600 Update all rules.
8601 (rust_parser::lex_hex, lex_escape): Rename and update.
8602 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8603 (rust_parser::lex_operator): Rename and update.
8604 (rust_parser::lex_number, rustyylex, rustyyerror)
8605 (rust_lex_test_init, rust_lex_test_sequence)
8606 (rust_lex_test_push_back, rust_lex_tests): Update.
8607 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8608 parameter.
8609 <lexptr, prev_lexptr>: New members.
8610 (lexptr, prev_lexptr): Don't declare.
8611 * parse.c (lexptr, prev_lexptr): Remove globals.
8612 (parse_exp_in_context): Update.
8613 * p-exp.y (yylex, yyerror): Update.
8614 * m2-exp.y (parse_number, yylex, yyerror): Update.
8615 * go-exp.y (lex_one_token, yyerror): Update.
8616 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8617 * d-exp.y (lex_one_token, yyerror): Update.
8618 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8619 (lex_one_token, yyerror): Update.
8620 * ada-lex.l (YY_INPUT): Update.
8621 (rewind_to_char): Update.
8622 * ada-exp.y (yyerror): Update.
8623
8621b685
TT
86242019-04-04 Tom Tromey <tom@tromey.com>
8625
8626 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8627 * parser-defs.h (struct parser_state) <parser_state>: Add new
8628 parameter.
8629 <comma_terminates>: New member.
8630 (comma_terminates): Don't declare global.
8631 * parse.c (comma_terminates): Remove global.
8632 (parse_exp_in_context): Update.
8633 * p-exp.y (yylex): Update.
8634 * m2-exp.y (yylex): Update.
8635 * go-exp.y (lex_one_token): Update.
8636 * f-exp.y (yylex): Update.
8637 * d-exp.y (lex_one_token): Update.
8638 * c-exp.y (lex_one_token): Update.
8639 * ada-lex.l: Update.
8640
28aaf3fd
TT
86412019-04-04 Tom Tromey <tom@tromey.com>
8642
8643 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8644 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8645 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8646 * parser-defs.h (paren_depth): Don't declare.
8647 * parse.c (paren_depth): Remove global.
8648 (parse_exp_in_context): Update.
8649 * p-exp.y (paren_depth): New global.
8650 (pascal_parse): Initialize it.
8651 * m2-exp.y (paren_depth): New global.
8652 (m2_parse): Initialize it.
8653 * go-exp.y (paren_depth): New global.
8654 (go_parse): Initialize it.
8655 * f-exp.y (paren_depth): New global.
8656 (f_parse): Initialize it.
8657 * d-exp.y (paren_depth): New global.
8658 (d_parse): Initialize it.
8659 * c-exp.y (paren_depth): New global.
8660 (c_parse): Initialize it.
8661 * ada-lex.l (paren_depth): New global.
8662 (lexer_init): Initialize it.
8663
1e58a4a4
TT
86642019-04-04 Tom Tromey <tom@tromey.com>
8665
8666 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8667 (rust_parser::convert_ast_to_type)
8668 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8669 * parser-defs.h (struct parser_state) <parser_state>: Add
8670 parameters. Initialize new members.
8671 <expression_context_block, expression_context_pc>: New members.
8672 * parse.c (expression_context_block, expression_context_pc):
8673 Remove globals.
8674 (parse_exp_in_context): Update.
8675 * p-exp.y: Update all rules.
8676 (yylex): Update.
8677 * m2-exp.y: Update all rules.
8678 (yylex): Update.
8679 * go-exp.y (yylex): Update.
8680 * f-exp.y (yylex): Update.
8681 * d-exp.y: Update all rules.
8682 (yylex): Update.
8683 * c-exp.y: Update all rules.
8684 (lex_one_token, classify_name, yylex, c_parse): Update.
8685 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8686
37eedb39
TT
86872019-04-04 Tom Tromey <tom@tromey.com>
8688
8689 * gdbarch.h, gdbarch.c: Rebuild.
8690 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8691 * stap-probe.h:
8692 (struct stap_parse_info): Replace "parser_state" with
8693 "expr_builder".
8694 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8695 (parser_state): New class.
8696 * parse.c (expr_builder): Rename.
8697 (expr_builder::release): Rename.
8698 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8699 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8700 (write_exp_elt_longcst, write_exp_elt_floatcst)
8701 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8702 (write_exp_string_vector, write_exp_bitstring)
8703 (write_exp_msymbol, mark_struct_expression)
8704 (write_dollar_variable)
8705 (insert_type_address_space, increase_expout_size): Replace
8706 "parser_state" with "expr_builder".
8707 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8708 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8709 "parser_state" with "expr_builder".
8710
73923d7e
TT
87112019-04-04 Tom Tromey <tom@tromey.com>
8712
8713 * rust-exp.y: Replace "parse_language" with method call.
8714 * p-exp.y:
8715 (yylex): Replace "parse_language" with method call.
8716 * m2-exp.y:
8717 (yylex): Replace "parse_language" with method call.
8718 * go-exp.y (classify_name): Replace "parse_language" with method
8719 call.
8720 * f-exp.y (yylex): Replace "parse_language" with method call.
8721 * d-exp.y (lex_one_token): Replace "parse_language" with method
8722 call.
8723 * c-exp.y:
8724 (lex_one_token, classify_name, yylex): Replace "parse_language"
8725 with method call.
8726 * ada-exp.y (find_primitive_type, type_char)
8727 (type_system_address): Replace "parse_language" with method call.
8728
fa9f5be6
TT
87292019-04-04 Tom Tromey <tom@tromey.com>
8730
8731 * rust-exp.y: Replace "parse_gdbarch" with method call.
8732 * parse.c (write_dollar_variable, insert_type_address_space):
8733 Replace "parse_gdbarch" with method call.
8734 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8735 call.
8736 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8737 call.
8738 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8739 "parse_gdbarch" with method call.
8740 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8741 with method call.
8742 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8743 "parse_gdbarch" with method call.
8744 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8745 "parse_gdbarch" with method call.
8746 * c-exp.y (parse_type, parse_number, classify_name): Replace
8747 "parse_gdbarch" with method call.
8748 * ada-lex.l: Replace "parse_gdbarch" with method call.
8749 * ada-exp.y (parse_type, find_primitive_type, type_char)
8750 (type_system_address): Replace "parse_gdbarch" with method call.
8751
1201a264
TT
87522019-04-04 Tom Tromey <tom@tromey.com>
8753
8754 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8755 * stap-probe.c (stap_parse_argument): Update.
8756 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8757 initial_size parameter.
8758 * rust-exp.y (rust_lex_tests): Update.
8759 * parse.c (parser_state): Update.
8760 (parse_exp_in_context): Update.
8761 * parser-defs.h (struct parser_state) <parser_state>: Remove
8762 "initial_size" parameter.
8763
e3980ce2
TT
87642019-04-04 Tom Tromey <tom@tromey.com>
8765
8766 * parser-defs.h (increase_expout_size): Don't declare.
8767 * parse.c (increase_expout_size): Now static.
8768
e9f8e3f1
TS
87692019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8770
8771 * gnu-nat.c (gnu_nat_target::wait): Fix
8772 target_waitstatus_to_string call.
8773
d7df6549
AB
87742019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * eval.c (evaluate_subexp_standard): Handle internal functions
8777 during Fortran function call handling.
8778
8bdc1658
AB
87792019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * NEWS: Mention new internal functions.
8782 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8783 (read_base_type): Use dwarf2_init_complex_target_type.
8784 * value.c (creal_internal_fn): New function.
8785 (cimag_internal_fn): New function.
8786 (_initialize_values): Register new internal functions.
8787
c29705b7
PW
87882019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8789
8790 * infrun.c (stop_all_threads): If debug_infrun, always
8791 trace the wait status after wait_one, using
8792 target_waitstatus_to_string and target_pid_to_str.
8793 (handle_inferior_event): Replace various trace of
8794 wait status kind by a single trace.
8795 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8796 wait status kind image by target_waitstatus_to_string.
8797 * target/waitstatus.c (target_waitstatus_to_string): Fix
8798 obsolete comment.
8799
05caa1d2
TT
88002019-04-01 Tom Tromey <tromey@adacore.com>
8801
8802 PR symtab/23331:
8803 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8804
9d1447e0
SDJ
88052019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8806 Pedro Alves <palves@redhat.com>
8807
8808 * top.c (quit_force): Call 'finalize_values'.
8809 * value.c (finalize_values): New function.
8810 * value.h (finalize_values): Declare.
8811
7734102d
EZ
88122019-03-30 Eli Zaretskii <eliz@gnu.org>
8813
8814 * NEWS: Announce $_gdb_major and $_gdb_minor.
8815
8816 * top.c (init_gdb_version_vars): New function.
8817 (gdb_init): Call init_gdb_version_vars.
8818
188e1fa9
TT
88192019-03-29 Tom Tromey <tromey@adacore.com>
8820
8821 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8822 help text. Remove dead code.
8823
2880242d
KS
88242019-03-29 Keith Seitz <keiths@redhat.com>
8825
8826 From Siddhesh Poyarekar:
8827 * f-lang.h (f77_get_upperbound): Return LONGEST.
8828 (f77_get_lowerbound): Likewise.
8829 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8830 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8831 print them.
8832 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8833 plongest to format print it.
8834 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8835 (f77_get_upperbound): Likewise.
8836 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8837 LOWER_BOUND to LONGEST.
8838 (f77_create_arrayprint_offset_tbl): Likewise.
8839
cc1defb1
KS
88402019-03-29 Keith Seitz <keiths@redhat.com>
8841
8842 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8843 %s/pulongest for TYPE_LENGTH instead of %d in format
8844 strings.
8845 * ada-typerint.c (ada_print_type): Likewise.
8846 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8847 * compile/compile-c-support.c (generate_register_struct): Likewise.
8848 * gdbtypes.c (recursive_dump_type): Likewise.
8849 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8850 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8851 instead of %d in format strings.
8852 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8853 to std::min to ULONGEST.
8854 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8855 instead of %d in format strings.
8856 * tracepoint.c (info_scope_command): Likewise.
8857 * typeprint.c (print_offset_data::update)
8858 (print_offset_data::finish): Likewise.
8859 * xtensa-tdep.c (xtensa_store_return_value)
8860 (xtensa_push_dummy_call): Likewise.
8861
e432ccf1
JT
88622019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8863
8864 * windows-nat.c (display_selector): Fixed format specifications
8865 for 64-bit Cygwin.
8866
65d2b333
PW
88672019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8868
8869 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8870
f489207e
SL
88712019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8872
8873 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8874 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8875 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8876 (nios2_linux_init_abi): Install it.
8877
bffa1015
AH
88782019-03-28 Alan Hayward <alan.hayward@arm.com>
8879
8880 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8881
fc96163a
AH
88822019-03-28 Alan Hayward <alan.hayward@arm.com>
8883
8884 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8885
20dc7e9b
PW
88862019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8887 Tom Tromey <tromey@adacore.com>
8888
8889 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8890
7f5331a8
JB
88912019-03-26 Joel Brobecker <brobecker@adacore.com>
8892
8893 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8894 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8895 method to compute the bounds of range types. Also print "[evaluated]"
8896 if the bounds' values come from a dynamic evaluation.
8897
18c77628
AB
88982019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8899
8900 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8901 whitespace when pretty printing is on.
8902
53c973f2
AH
89032019-03-26 Alan Hayward <alan.hayward@arm.com>
8904
e79be6e5 8905 * ppc-linux-nat.c: Add include.
53c973f2 8906
d851aa71
AH
89072019-03-26 Alan Hayward <alan.hayward@arm.com>
8908
e79be6e5 8909 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8910
2fe7bab7
AH
89112019-03-26 Alan Hayward <alan.hayward@arm.com>
8912
e79be6e5 8913 * arm-linux-nat.c: Add include.
2fe7bab7 8914
068ef30e
SM
89152019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8916
8917 * source-cache.c (source_cache::get_source_lines): Re-read
8918 fullname after calling open_source_file.
8919
81a24d04
JB
89202019-03-25 John Baldwin <jhb@FreeBSD.org>
8921
8922 * NEWS: Mention TLS support for FreeBSD.
8923
79e7ae11
TT
89242019-03-25 Tom Tromey <tromey@adacore.com>
8925
8926 * minsyms.c (BUNCH_SIZE): Update comment.
8927 (~minimal_symbol_reader): Remove old comment.
8928 (compact_minimal_symbols): Update comment.
8929 (minimal_symbol_reader::install): Remove old comment. Update
8930 other comments.
8931
d45963c2
AH
89322019-03-25 Alan Hayward <alan.hayward@arm.com>
8933
8934 * s390-linux-nat.c: Add include.
8935
0f83012e
AH
89362019-03-25 Alan Hayward <alan.hayward@arm.com>
8937
8938 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8939 Call linux_get_hwcap.
8940 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8941 Likewise.
8942 (aarch64_linux_get_hwcap): Remove function.
8943 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8944 declaration.
8945 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8946 linux_get_hwcap.
8947 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8948 * linux-tdep.c (linux_get_hwcap): Add function.
8949 (linux_get_hwcap2): Likewise.
8950 * linux-tdep.h (linux_get_hwcap): Add declaration.
8951 (linux_get_hwcap2): Likewise.
8952 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8953 (ppc_linux_get_hwcap2): Likewise.
8954 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8955 linux_get_hwcap.
8956 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8957 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8958 (ppc_linux_nat_target::read_description): Likewise.
8959 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8960 * s390-linux-nat.c: Likewise.
8961 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8962
6640a367
TT
89632019-03-24 Tom Tromey <tom@tromey.com>
8964
8965 * ada-lang.c (standard_lookup): Simplify initialization.
8966 (ada_lookup_symbol_nonlocal): Simplify return.
8967 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8968 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8969 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8970 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8971 initialization.
8972 * solib.c (solib_global_lookup): Simplify.
8973 * symtab.c (null_block_symbol): Remove.
8974 (symbol_cache_lookup): Simplify returns.
8975 (lookup_language_this): Simplify returns.
8976 (lookup_symbol_aux): Simplify return.
8977 (lookup_local_symbol): Simplify returns.
8978 (lookup_global_symbol_from_objfile): Simplify return.
8979 (lookup_symbol_in_objfile_symtabs)
8980 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8981 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8982 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8983 * cp-namespace.c (cp_lookup_bare_symbol)
8984 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8985 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8986 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8987 (cp_lookup_symbol_via_imports): Simplify initialization.
8988 (find_symbol_in_baseclass): Likewise.
8989 * symtab.h (null_block_symbol): Remove.
8990 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8991 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8992 (d_lookup_symbol_module): Likewise.
8993 (find_symbol_in_baseclass): Simplify initialization.
8994
a930ebcd
TT
89952019-03-24 Tom Tromey <tom@tromey.com>
8996
8997 * expression.h: Don't include symtab.h.
8998 (struct block): Forward declare.
8999
582942f4
TT
90002019-03-24 Tom Tromey <tom@tromey.com>
9001
9002 * c-exp.y (typebase): Remove casts.
9003 * gdbtypes.c (lookup_unsigned_typename, )
9004 (lookup_signed_typename): Remove cast.
9005 * eval.c (parse_to_comma_and_eval): Remove cast.
9006 * parse.c (write_dollar_variable): Remove cast.
9007 * block.h (struct block) <superblock>: Now const.
9008 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9009 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9010 (map_block): Make "block" const.
9011 * symfile.h (struct quick_symbol_functions)
9012 <map_matching_symbols>: Constify block argument to "callback".
9013 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9014 const.
9015 (find_pc_sect_compunit_symtab): Make "b" const.
9016 (find_symbol_at_address): Likewise.
9017 (search_symbols): Likewise.
9018 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9019 (dw2_debug_names_lookup_symbol): Likewise.
9020 (dw2_map_matching_symbols): Update.
9021 * p-valprint.c (pascal_val_print): Remove "block".
9022 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9023 (aux_add_nonlocal_symbols): Make "block" const.
9024 (resolve_subexp): Remove cast.
9025 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9026 const.
9027 (iterate_over_file_blocks): Likewise.
9028 * f-exp.y (%union) <bval>: Remove.
9029 * coffread.c (patch_opaque_types): Make "b" const.
9030 * spu-tdep.c (spu_catch_start): Make "block" const.
9031 * c-valprint.c (print_unpacked_pointer): Remove "block".
9032 * symmisc.c (dump_symtab_1): Make "b" const.
9033 (block_depth): Make "block" const.
9034 * d-exp.y (%union) <bval>: Remove.
9035 * cp-support.h (cp_lookup_rtti_type): Update.
9036 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9037 * psymtab.c (psym_lookup_symbol): Make "block" const.
9038 (maintenance_check_psymtabs): Make "b" const.
9039 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9040 (enumerate_locals, enumerate_args): Update.
9041 * python/py-symtab.c (stpy_global_block): Make "block" const.
9042 (stpy_static_block): Likewise.
9043 * inline-frame.c (block_starting_point_at): Make "new_block"
9044 const.
9045 * block.c (find_block_in_blockvector): Make return type const.
9046 (blockvector_for_pc_sect): Make "b" const.
9047 (find_block_in_blockvector): Make "b" const.
9048
7ad417dd
TT
90492019-03-23 Tom Tromey <tom@tromey.com>
9050
9051 * varobj.c (varobj_create): Update.
9052 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9053 * printcmd.c (display_command, do_one_display): Don't reset
9054 innermost_block.
9055 * parser-defs.h (enum innermost_block_tracker_type): Move to
9056 expression.h.
9057 (innermost_block): Update comment.
9058 * parse.c (parse_exp_1): Add tracker_types parameter.
9059 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9060 tracker_types parameter. Reset innermost_block.
9061 (parse_exp_in_context): Remove.
9062 (parse_expression_for_completion): Update.
9063 * objfiles.c (~objfile): Don't reset expression_context_block or
9064 innermost_block.
9065 * expression.h (enum innermost_block_tracker_type): Move from
9066 parser-defs.h.
9067 (parse_exp_1): Add tracker_types parameter.
9068 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9069 reset innermost_block.
9070
b366c208
TT
90712019-03-23 Tom Tromey <tom@tromey.com>
9072
9073 * objfiles.h: Include bcache.h.
9074
9bb9b2f9
TT
90752019-03-23 Tom Tromey <tom@tromey.com>
9076
9077 * linespec.c (get_current_search_block): Use
9078 scoped_restore_current_language.
9079 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9080
59c28372
AH
90812019-03-22 Alan Hayward <alan.hayward@arm.com>
9082 Jiong Wang <jiong.wang@arm.com>
9083
9084 * aarch64-linux-tdep.c
9085 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9086 section.
9087 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9088
17e116a7
AH
90892019-03-22 Alan Hayward <alan.hayward@arm.com>
9090 Jiong Wang <jiong.wang@arm.com>
9091
9092 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9093 instructions.
9094 (aarch64_analyze_prologue_test): Add PACIASP test.
9095 (aarch64_prologue_prev_register): Unmask PC value.
9096
11e1b75f
AH
90972019-03-22 Alan Hayward <alan.hayward@arm.com>
9098 Jiong Wang <jiong.wang@arm.com>
9099
9100 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9101 (aarch64_dwarf2_prev_register): Unmask PC value.
9102 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9103 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9104 DW_CFA_AARCH64_negate_ra_state.
9105 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9106
34dcc7cf
AH
91072019-03-22 Alan Hayward <alan.hayward@arm.com>
9108 Jiong Wang <jiong.wang@arm.com>
9109
9110 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9111 registers.
9112 (aarch64_pseudo_register_name): Likewise.
9113 (aarch64_pseudo_register_type): Likewise.
9114 (aarch64_pseudo_register_reggroup_p): Likewise.
9115 (aarch64_gdbarch_init): Add pauth registers.
9116 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9117 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9118 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9119 (struct gdbarch_tdep): Add regnum for ra_state.
9120
1ef53e6b
AH
91212019-03-22 Alan Hayward <alan.hayward@arm.com>
9122 Jiong Wang <jiong.wang@arm.com>
9123
9124 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9125
76bed0fd
AH
91262019-03-22 Alan Hayward <alan.hayward@arm.com>
9127 Jiong Wang <jiong.wang@arm.com>
9128
9129 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9130 function.
9131 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9132 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9133 (aarch64_gdbarch_init): Add puth registers.
9134 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9135 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9136 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9137
ee4fbcfa
AH
91382019-03-22 Alan Hayward <alan.hayward@arm.com>
9139 Jiong Wang <jiong.wang@arm.com>
9140
9141 * aarch64-linux-nat.c
9142 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9143 * aarch64-linux-tdep.c
9144 (aarch64_linux_core_read_description): Likewise.
9145 (aarch64_linux_get_hwcap): New function.
9146 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9147 (aarch64_linux_get_hwcap): New declaration.
9148
6dc0ebde
AH
91492019-03-22 Alan Hayward <alan.hayward@arm.com>
9150 Jiong Wang <jiong.wang@arm.com>
9151
9152 * aarch64-linux-nat.c
9153 (aarch64_linux_nat_target::read_description): Add pauth param.
9154 * aarch64-linux-tdep.c
9155 (aarch64_linux_core_read_description): Likewise.
9156 * aarch64-tdep.c (struct target_desc): Add in pauth.
9157 (aarch64_read_description): Add pauth param.
9158 (aarch64_gdbarch_init): Likewise.
9159 * aarch64-tdep.h (aarch64_read_description): Likewise.
9160 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9161 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9162 * features/Makefile: Add new files.
9163 * features/aarch64-pauth.c: New file.
9164 * features/aarch64-pauth.xml: New file.
9165
595915c1
TT
91662019-03-20 Tom Tromey <tromey@adacore.com>
9167
9168 * infrun.c (handle_inferior_event): Rename from
9169 handle_inferior_event_1. Create a scoped_value_mark.
9170 (handle_inferior_event): Remove.
9171
4c7d57e7
TT
91722019-03-19 Tom Tromey <tromey@adacore.com>
9173
9174 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9175 * infrun.h (print_stop_event): Add "displays" parameter.
9176 * infrun.c (print_stop_event): Add "displays" parameter.
9177
cb246234
PA
91782019-03-19 Pedro Alves <palves@redhat.com>
9179
9180 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9181 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9182 to -1. Fix TABs vs spaces.
9183 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9184 * tui/tui-out.h (tui_ui_out) Add intro comments.
9185 <m_line, m_start_of_line>: In-class initialize, and add describing
9186 comment.
9187
3a0e45b2
AH
91882019-03-18 Alan Hayward <alan.hayward@arm.com>
9189
9190 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9191 variable names.
9192 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9193
5371b850
PA
91942019-03-18 Pedro Alves <palves@redhat.com>
9195 Eli Zaretskii <eliz@gnu.org>
9196
9197 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9198 m_line and m_start_of_line.
9199
b17c4cd0
EZ
92002019-03-18 Eli Zaretskii <eliz@gnu.org>
9201
9202 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9203 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9204 it returns a newline. This fixes a regression in TU mode, whereby
9205 the next line is output on the same screen line as the user input.
9206
4bd56d18
TT
92072019-03-18 Tom Tromey <tromey@adacore.com>
9208
9209 * minsyms.c (minimal_symbol_reader::install): Remove call to
9210 obstack_blank.
9211
55c10aca
PA
92122019-03-18 Pedro Alves <palves@redhat.com>
9213
9214 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9215 New globals.
9216 (apply_style): New, factored out from ...
9217 (apply_ansi_escape): ... this. Handle reverse video mode.
9218 (tui_set_reverse_mode): New function.
9219 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9220 * tui/tui-winsource.c (tui_show_source_line): Use
9221 tui_set_reverse_mode instead of setting A_STANDOUT.
9222 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9223 New setter methods.
9224
647bb750
HD
92252019-03-18 Hannes Domani <ssbssa@yahoo.de>
9226
9227 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9228 Handle tabs.
9229
bff8c71f
TT
92302019-03-18 Tom Tromey <tromey@adacore.com>
9231
9232 * ada-lang.c (empty_array): Add "high" parameter.
9233 (ada_evaluate_subexp): Update.
9234
58785d98
ST
92352019-03-17 Sergei Trofimovich <siarheit@google.com>
9236
9237 * unittests/string_view-selftests.c: Define
9238 _initialize_string_view_selftests unconditionally.
9239
d4cbef22
ВМ
92402019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9241
9242 PR gdb/24350
9243 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9244
fce4c071
ВМ
92452019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9246
9247 PR gdb/24351
9248 * windows-nat.c (display_selector): Fix format specifiers.
9249
f7f0a123
EZ
92502019-03-17 Eli Zaretskii <eliz@gnu.org>
9251
9252 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9253 tui_refill_source_window instead of tui_refresh_win, to update the
9254 current execution line. This fixes redisplay of the current line
9255 when stepping through the code with "next" or "step".
9256
ab42892f
EZ
92572019-03-16 Eli Zaretskii <eliz@gnu.org>
9258
9259 * source-cache.c (source_cache::get_source_lines): Call
9260 find_source_lines to initialize s->nlines. This fixes vertical
9261 scrolling of TUI source window when the DOWN arrow is pressed.
9262
8d8c087f
PW
92632019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9264
9265 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9266 linux-thread-db.c (_initialize_thread_db): Likewise.
9267
798e1c30
EZ
92682019-03-16 Eli Zaretskii <eliz@gnu.org>
9269
9270 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9271 wclrtoeol in tui_show_source_line". This reverts changes made in
9272 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9273
eefba3da
TT
92742019-03-15 Tom Tromey <tom@tromey.com>
9275
9276 * symtab.h (struct minimal_symbol): Derive from
9277 general_symbol_info.
9278 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9279 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9280 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9281 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9282 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9283 (MSYMBOL_SEARCH_NAME): Update.
9284 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9285 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9286 * minsyms.c (minimal_symbol_reader::record_full): Update.
9287
0de2420c
TT
92882019-03-15 Tom Tromey <tom@tromey.com>
9289
9290 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9291
042d75e4
TT
92922019-03-15 Tom Tromey <tom@tromey.com>
9293
9294 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9295 unique_xmalloc_ptr.
9296 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9297 Update.
9298 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9299 (build_minimal_symbol_hash_tables)
9300 (minimal_symbol_reader::install): Update.
9301
db92718b
TT
93022019-03-15 Tom Tromey <tom@tromey.com>
9303
9304 * symtab.c (create_demangled_names_hash): Update.
9305 (symbol_set_names): Update.
9306 * objfiles.h (struct objfile_per_bfd_storage)
9307 <demangled_names_hash>: Now an htab_up.
9308 * objfiles.c (objfile_per_bfd_storage): Simplify.
9309
d6797f46
TT
93102019-03-15 Tom Tromey <tom@tromey.com>
9311
9312 * objfiles.h (struct objfile_per_bfd_storage): Declare
9313 destructor.
9314 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9315 New.
9316 (get_objfile_bfd_data): Use new. Don't initialize
9317 language_of_main.
9318 (free_objfile_per_bfd_storage): Remove.
9319 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9320
741d7538
TT
93212019-03-15 Tom Tromey <tom@tromey.com>
9322
9323 * symfile.c (reread_symbols): Update.
9324 * objfiles.c (objfile::objfile): Update.
9325 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9326 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9327 comment.
9328 (minimal_symbol_reader::install): Update.
9329 (terminate_minimal_symbol_table): Remove.
9330 * jit.c (jit_object_close_impl): Update.
9331
788c80d1
TT
93322019-03-15 Tom Tromey <tom@tromey.com>
9333
9334 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9335 initializations.
9336
1b7a07cb
TT
93372019-03-15 Tom Tromey <tom@tromey.com>
9338
9339 * objfiles.h (struct objfile_per_bfd_storage)
9340 <demangled_hash_languages>: Now a bitset.
9341 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9342 (lookup_minimal_symbol): Update.
9343
3db066bc
TT
93442019-03-15 Tom Tromey <tom@tromey.com>
9345
9346 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9347 Don't return the symbol.
9348 * coffread.c (record_minimal_symbol): Use record_full.
9349
3fff2c37
EZ
93502019-03-14 Eli Zaretskii <eliz@gnu.org>
9351
9352 The MS-Windows port of ncurses fails to switch to a color pair if
9353 one or both of the colors are the implicit default colors. This
9354 change records the default colors when TUI is initialized, and
9355 then specifies them explicitly when a color pair uses the default
9356 colors. This allows color styling in TUI mode on MS-Windows.
9357
9358 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9359 ncurses_norm_attr.
9360 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9361 colors in ncurses_norm_attr.
9362 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9363 "none", replace it with the default color recorded in
9364 ncurses_norm_attr.
9365
3b336828
TT
93662019-03-14 Tom Tromey <tromey@adacore.com>
9367
9368 * source-cache.h (class source_cache) <get_source_lines>: Return
9369 std::string.
9370 * source-cache.c (source_cache::extract_lines): Handle case where
9371 first_pos==npos. Return std::string.
9372 (source_cache::get_source_lines): Update.
9373
d085f989
TT
93742019-03-14 Tom Tromey <tromey@adacore.com>
9375
9376 * NEWS: Add item for "style sources" commands.
9377 * source-cache.c (source_cache::get_source_lines): Check
9378 source_styling.
9379 * cli/cli-style.c (source_styling): New global.
9380 (_initialize_cli_style): Add "style sources" commands.
9381 (show_style_sources): New function.
9382 * cli/cli-style.h (source_styling): Declare.
9383
6f11e682
TT
93842019-03-14 Pedro Alves <palves@redhat.com>
9385 Tom Tromey <tromey@adacore.com>
9386
9387 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9388 * tui/tui-winsource.c (tui_refill_source_window): New function,
9389 from...
9390 (tui_horizontal_source_scroll): ... here. Move some logic.
9391 * cli/cli-style.c (set_style_enabled): Notify new observable.
9392 * tui/tui-hooks.c (tui_redisplay_source): New function.
9393 (tui_attach_detach_observers): Attach or detach
9394 tui_redisplay_source.
9395 * observable.h (source_styling_changed): New observable.
9396 * observable.c: Define source_styling_changed observable.
9397
a068643d
TT
93982019-03-13 Tom Tromey <tromey@adacore.com>
9399
9400 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9401 (i386_gnu_nat_target::store_registers): Update.
9402 * target-debug.h (target_debug_print_std_string): New macro.
9403 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9404 * windows-tdep.c (display_one_tib): Update.
9405 * tui/tui-stack.c (tui_make_status_line): Update.
9406 * top.c (print_inferior_quit_action): Update.
9407 * thread.c (thr_try_catch_cmd): Update.
9408 (add_thread_with_info): Update.
9409 (thread_target_id_str): Update.
9410 (thr_try_catch_cmd): Update.
9411 (thread_command): Update.
9412 (thread_find_command): Update.
9413 * record-btrace.c (record_btrace_target::info_record)
9414 (record_btrace_resume_thread, record_btrace_target::resume)
9415 (record_btrace_cancel_resume, record_btrace_step_thread)
9416 (record_btrace_target::wait, record_btrace_target::wait)
9417 (record_btrace_target::wait, record_btrace_target::stop): Update.
9418 * progspace.c (print_program_space): Update.
9419 * process-stratum-target.c
9420 (process_stratum_target::thread_address_space): Update.
9421 * linux-fork.c (linux_fork_mourn_inferior)
9422 (detach_checkpoint_command, info_checkpoints_command)
9423 (linux_fork_context): Update.
9424 (linux_fork_detach): Update.
9425 (class scoped_switch_fork_info): Update.
9426 (delete_checkpoint_command): Update.
9427 * infrun.c (follow_fork_inferior): Update.
9428 (follow_fork_inferior): Update.
9429 (proceed_after_vfork_done): Update.
9430 (handle_vfork_child_exec_or_exit): Update.
9431 (follow_exec): Update.
9432 (displaced_step_prepare_throw): Update.
9433 (displaced_step_restore): Update.
9434 (start_step_over): Update.
9435 (resume_1): Update.
9436 (clear_proceed_status_thread): Update.
9437 (proceed): Update.
9438 (print_target_wait_results): Update.
9439 (do_target_wait): Update.
9440 (context_switch): Update.
9441 (stop_all_threads): Update.
9442 (restart_threads): Update.
9443 (finish_step_over): Update.
9444 (handle_signal_stop): Update.
9445 (switch_back_to_stepped_thread): Update.
9446 (keep_going_pass_signal): Update.
9447 (print_exited_reason): Update.
9448 (normal_stop): Update.
9449 * inferior.c (inferior_pid_to_str): Change return type.
9450 (print_selected_inferior): Update.
9451 (add_inferior): Update.
9452 (detach_inferior): Update.
9453 * dummy-frame.c (fprint_dummy_frames): Update.
9454 * dcache.c (dcache_info_1): Update.
9455 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9456 (btrace_fetch, btrace_clear): Update.
9457 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9458 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9459 type.
9460 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9461 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9462 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9463 * gdbarch.c, gdbarch.h: Rebuild.
9464 * gdbarch.sh (core_pid_to_str): Change return type.
9465 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9466 return type.
9467 (windows_nat_target::pid_to_str): Change return type.
9468 (windows_delete_thread): Update.
9469 (windows_nat_target::attach): Update.
9470 (windows_nat_target::files_info): Update.
9471 * target-delegates.c: Rebuild.
9472 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9473 return type.
9474 (sol_thread_target::pid_to_str): Change return type.
9475 * remote.c (class remote_target) <pid_to_str>: Change return
9476 type.
9477 (remote_target::pid_to_str): Change return type.
9478 (extended_remote_target::attach, remote_target::remote_stop_ns)
9479 (remote_target::remote_notif_remove_queued_reply)
9480 (remote_target::push_stop_reply, remote_target::disable_btrace):
9481 Update.
9482 (extended_remote_target::attach): Update.
9483 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9484 type.
9485 (gdbsim_target::pid_to_str): Change return type.
9486 * ravenscar-thread.c (struct ravenscar_thread_target)
9487 <pid_to_str>: Change return type.
9488 (ravenscar_thread_target::pid_to_str): Change return type.
9489 * procfs.c (class procfs_target) <pid_to_str>: Change return
9490 type.
9491 (procfs_target::pid_to_str): Change return type.
9492 (procfs_target::attach): Update.
9493 (procfs_target::detach): Update.
9494 (procfs_target::fetch_registers): Update.
9495 (procfs_target::store_registers): Update.
9496 (procfs_target::wait): Update.
9497 (procfs_target::files_info): Update.
9498 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9499 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9500 return type.
9501 (nto_procfs_target::pid_to_str): Change return type.
9502 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9503 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9504 return type.
9505 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9506 (exit_lwp): Update.
9507 (attach_proc_task_lwp_callback, get_detach_signal)
9508 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9509 (linux_nat_target::resume, wait_lwp, stop_callback)
9510 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9511 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9512 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9513 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9514 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9515 type.
9516 (inf_ptrace_target::attach): Update.
9517 (inf_ptrace_target::files_info): Update.
9518 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9519 type.
9520 (go32_nat_target::pid_to_str): Change return type.
9521 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9522 (gnu_nat_target::wait): Update.
9523 (gnu_nat_target::wait): Update.
9524 (gnu_nat_target::resume): Update.
9525 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9526 (fbsd_nat_target::wait): Update.
9527 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9528 type.
9529 (darwin_nat_target::attach): Update.
9530 * corelow.c (class core_target) <pid_to_str>: Change return type.
9531 (core_target::pid_to_str): Change return type.
9532 * target.c (normal_pid_to_str): Change return type.
9533 (default_pid_to_str): Likewise.
9534 (target_pid_to_str): Change return type.
9535 (target_translate_tls_address): Update.
9536 (target_announce_detach): Update.
9537 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9538 return type.
9539 (bsd_uthread_target::pid_to_str): Change return type.
9540 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9541 type.
9542 (bsd_kvm_target::pid_to_str): Change return type.
9543 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9544 return type.
9545 (aix_thread_target::pid_to_str): Change return type.
9546 * target.h (struct target_ops) <pid_to_str>: Change return type.
9547 (target_pid_to_str, normal_pid_to_str): Likewise.
9548 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9549 type.
9550 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9551 type.
9552 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9553 return type.
9554 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9555 type.
9556 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9557 type.
9558 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9559 return type.
9560
b4be1b06
SM
95612019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9562
9563 * NEWS: Mention that the new default MI version is 3. Mention
9564 changes to the output of commands and events that deal with
9565 multi-location breakpoints.
9566 * breakpoint.c: Include "mi/mi-out.h".
9567 (print_one_breakpoint): Change output syntax if using MI version
9568 >= 3.
9569 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9570 New.
9571 (mi_multi_location_breakpoint_output_fixed): New.
9572 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9573 (mi_cmd_fix_multi_location_breakpoint_output): New.
9574 (mi_multi_location_breakpoint_output_fixed): New.
9575 * mi/mi-cmds.c (mi_cmds): Register command
9576 -fix-multi-location-breakpoint-output.
9577 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9578 interpreter "mi".
9579
8e5e5494
SM
95802019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9581
9582 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9583 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9584 instantiate mi_ui_out based on interpreter name.
9585 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9586 * mi/mi-main.c (mi_load_progress): Likewise.
9587
197df35e
JB
95882019-03-12 John Baldwin <jhb@FreeBSD.org>
9589
9590 * NEWS: Combine separate "New targets" sections for 8.3.
9591
8399425f
JB
95922019-03-12 John Baldwin <jhb@FreeBSD.org>
9593
9594 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9595 (ppcfbsd_init_abi): Install gdbarch
9596 "fetch_tls_load_module_address" and "get_thread_local_address"
9597 methods.
9598
b0f87ed0
JB
95992019-03-12 John Baldwin <jhb@FreeBSD.org>
9600
9601 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9602 (riscv_fbsd_init_abi): Install gdbarch
9603 "fetch_tls_load_module_address" and "get_thread_local_address"
9604 methods.
9605
ce25aa57
JB
96062019-03-12 John Baldwin <jhb@FreeBSD.org>
9607
9608 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9609 (i386fbsd_init_abi): Install gdbarch
9610 "fetch_tls_load_module_address" and "get_thread_local_address"
9611 methods.
9612
f5424cfa
JB
96132019-03-12 John Baldwin <jhb@FreeBSD.org>
9614
9615 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9616 (amd64fbsd_init_abi): Install gdbarch
9617 "fetch_tls_load_module_address" and "get_thread_local_address"
9618 methods.
9619
945f3901
JB
96202019-03-12 John Baldwin <jhb@FreeBSD.org>
9621
9622 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9623 (struct fbsd_pspace_data): New type.
9624 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9625 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9626 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9627 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9628 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9629
ef0bd204
JB
96302019-03-12 John Baldwin <jhb@FreeBSD.org>
9631
9632 * gdbtypes.c (lookup_struct_elt): New function.
9633 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9634 * gdbtypes.h (struct struct_elt): New type.
9635 (lookup_struct_elt): New prototype.
9636
36c53a02
JB
96372019-03-12 John Baldwin <jhb@FreeBSD.org>
9638
9639 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9640 remove disabled code block.
9641
6e056c81
JB
96422019-03-12 John Baldwin <jhb@FreeBSD.org>
9643
9644 * gdbarch.sh (get_thread_local_address): New method.
9645 * gdbarch.h, gdbarch.c: Regenerate.
9646 * target.c (target_translate_tls_address): Use
9647 gdbarch_get_thread_local_address if present instead of
9648 target::get_thread_local_address.
9649
cd250a18
JB
96502019-03-12 John Baldwin <jhb@FreeBSD.org>
9651
9652 * target.h (target::get_thread_local_address): Update comment.
9653
df22c1e5
JB
96542019-03-12 John Baldwin <jhb@FreeBSD.org>
9655
9656 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9657 objfile->separate_debug_objfile_backlink if not NULL.
9658
dd6876c9
JB
96592019-03-12 John Baldwin <jhb@FreeBSD.org>
9660
9661 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9662 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9663 (amd64bsd_store_inferior_registers): Likewise.
9664 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9665 Enable segment base registers.
9666 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9667 PT_GETFSBASE and PT_GETGSBASE.
9668 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9669 PT_SETGSBASE.
9670 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9671 segment base registers.
9672 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9673
1163a4b7
JB
96742019-03-12 John Baldwin <jhb@FreeBSD.org>
9675
9676 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9677 Update calls to i386_target_description to add 'segments'
9678 parameter.
9679 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9680 add segment base registers.
9681 * arch/i386.c (i386_create_target_description): Add 'segments'
9682 parameter to enable segment base registers.
9683 * arch/i386.h (i386_create_target_description): Likewise.
9684 * features/i386/32bit-segments.xml: New file.
9685 * features/i386/32bit-segments.c: Generate.
9686 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9687 call to i386_target_description to add 'segments' parameter.
9688 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9689 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9690 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9691 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9692 if feature is present.
9693 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9694 Add 'segments' parameter to call to i386_target_description.
9695 (i386_target_description): Add 'segments' parameter to enable
9696 segment base registers.
9697 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9698 to call to i386_target_description.
9699 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9700 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9701 Define I386_NUM_REGS.
9702 (i386_target_description): Add 'segments' parameter to enable
9703 segment base registers.
9704
3a350822
EZ
97052019-03-12 Eli Zaretskii <eliz@gnu.org>
9706
9707 PR/24325
9708 * source-cache.c: #undef open and close, to avoid unresolved
9709 externals during linking.
9710
ffdd69cf
TT
97112019-03-12 Tom Tromey <tromey@adacore.com>
9712
9713 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9714 const. Add initializers.
9715 (_initialize_remote): Don't initialize ptid globals.
9716
ec148c57
PA
97172019-03-12 Pedro Alves <palves@redhat.com>
9718
9719 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9720
32764270
PA
97212019-03-12 Pedro Alves <palves@redhat.com>
9722
9723 * cp-name-parser.y (main): Remove unused 'len' variable.
9724
17547186
TT
97252019-03-12 Tom Tromey <tromey@adacore.com>
9726
9727 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9728 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9729
d3a70e03
TT
97302019-03-12 Tom Tromey <tromey@adacore.com>
9731
9732 * linux-nat.c (iterate_over_lwps): Update.
9733 (stop_callback): Remove parameter.
9734 (stop_wait_callback, detach_callback, resume_set_callback)
9735 (select_singlestep_lwp_callback, set_ignore_sigint)
9736 (status_callback, resumed_callback, resume_clear_callback)
9737 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9738 data parameter.
9739 (linux_nat_target::detach, linux_nat_target::resume)
9740 (linux_stop_and_wait_all_lwps, select_event_lwp)
9741 (linux_nat_filter_event, linux_nat_wait_1)
9742 (linux_nat_target::kill, linux_nat_target::stop)
9743 (linux_nat_target::stop): Update.
9744 (linux_nat_resume_callback): Change type.
9745 (resume_stopped_resumed_lwps, count_events_callback)
9746 (select_event_lwp_callback): Likewise.
9747 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9748 * arm-linux-nat.c (struct update_registers_data): Remove.
9749 (update_registers_callback): Change type.
9750 (arm_linux_insert_hw_breakpoint1): Update.
9751 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9752 parameter.
9753 (x86_linux_dr_set_addr): Update.
9754 (x86_linux_dr_set_control): Update.
9755 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9756 (iterate_over_lwps): Use gdb::function_view.
9757 * nat/aarch64-linux-hw-point.c (struct
9758 aarch64_dr_update_callback_param): Remove.
9759 (debug_reg_change_callback): Change type.
9760 (aarch64_notify_debug_reg_change): Update.
9761 * s390-linux-nat.c (s390_refresh_per_info): Update.
9762
82cb27ff
TT
97632019-03-11 Tom Tromey <tromey@adacore.com>
9764
9765 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9766 redundant assignment to "this_cu".
9767
568c0683
SM
97682019-03-08 Simon Marchi <simon.marchi@efficios.com>
9769
9770 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9771
f09ce22d
SM
97722019-03-08 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9775 from...
9776 (rank_one_type): ... this.
9777
595f96a9
SM
97782019-03-08 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9781 from...
9782 (rank_one_type): ... this.
9783
2598a94b
SM
97842019-03-08 Simon Marchi <simon.marchi@efficios.com>
9785
9786 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9787 from...
9788 (rank_one_type): ... this.
9789
7f17b20d
SM
97902019-03-08 Simon Marchi <simon.marchi@efficios.com>
9791
9792 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9793 from...
9794 (rank_one_type): ... this.
9795
2c509035
SM
97962019-03-08 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9799 from...
9800 (rank_one_type): ... this.
9801
0dd322dc
SM
98022019-03-08 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9805 from...
9806 (rank_one_type): ... this.
9807
41ea4728
SM
98082019-03-08 Simon Marchi <simon.marchi@efficios.com>
9809
9810 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9811 from...
9812 (rank_one_type): ... this.
9813
793cd1d2
SM
98142019-03-08 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9817 from...
9818 (rank_one_type): ... this.
9819
34910087
SM
98202019-03-08 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9823 from...
9824 (rank_one_type): ... this.
9825
f1f832d6
SM
98262019-03-08 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9829 from...
9830 (rank_one_type): ... this.
9831
b9f4512f
SM
98322019-03-08 Simon Marchi <simon.marchi@efficios.com>
9833
9834 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9835 from...
9836 (rank_one_type): ... this.
9837
9293fc63
SM
98382019-03-08 Simon Marchi <simon.marchi@efficios.com>
9839
9840 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9841 from...
9842 (rank_one_type): ... this.
9843
e3abbe7e
PW
98442019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9845
9846 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9847 inferior-events' shows the example events.
9848
e4adb939
EZ
98492019-03-08 Eli Zaretskii <eliz@gnu.org>
9850
9851 Support styling on native MS-Windows console
9852
9853 PR/24315
9854 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9855 on MS-Windows if $TERM is not defined.
9856
9857 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9858
9859 * posix-hdep.c (gdb_console_fputs):
9860 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9861 functions.
9862 * ui-file.h (gdb_console_fputs): Add prototype.
9863
9864 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9865 back to fputs only if the former returns zero.
9866
25629dfd
TT
98672019-03-07 Tom Tromey <tom@tromey.com>
9868
9869 * symmisc.c (print_symbol_bcache_statistics): Update.
9870 (print_objfile_statistics): Update.
9871 * symfile.c (allocate_symtab): Update.
9872 * stabsread.c: Don't include bcache.h.
9873 * psymtab.h (struct psymbol_bcache): Don't declare.
9874 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9875 (psymbol_bcache_init, psymbol_bcache_free)
9876 (psymbol_bcache_get_bcache): Don't declare.
9877 * psymtab.c (struct psymbol_bcache): Remove.
9878 (psymtab_storage::psymtab_storage): Update.
9879 (psymtab_storage::~psymtab_storage): Update.
9880 (psymbol_bcache_init, psymbol_bcache_free)
9881 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9882 (add_psymbol_to_bcache): Update.
9883 (allocate_psymtab): Update.
9884 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9885 macro_cache>: No longer pointers.
9886 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9887 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9888 * macrotab.c (macro_bcache): Update.
9889 * macroexp.c: Don't include bcache.h.
9890 * gdbtypes.c (check_types_worklist): Update.
9891 (types_deeply_equal): Remove TRY/CATCH. Update.
9892 * elfread.c (elf_symtab_read): Update.
9893 * dwarf2read.c: Don't include bcache.h.
9894 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9895 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9896 (print_bcache_statistics, bcache_memory_used): Don't declare.
9897 (struct bcache): Move from bcache.c. Add constructor, destructor,
9898 methods. Rename all data members.
9899 * bcache.c (struct bcache): Move to bcache.h.
9900 (bcache::expand_hash_table): Rename from expand_hash_table.
9901 (bcache): Remove.
9902 (bcache::insert): Rename from bcache_full.
9903 (bcache::compare): Rename from bcache_compare.
9904 (bcache_xmalloc): Remove.
9905 (bcache::~bcache): Rename from bcache_xfree.
9906 (bcache::print_statistics): Rename from print_bcache_statistics.
9907 (bcache::memory_used): Rename from bcache_memory_used.
9908
fe726667
PA
99092019-03-07 Pedro Alves <palves@redhat.com>
9910
9911 * infrun.c (normal_stop): Also check for
9912 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9913
7584bb30
AB
99142019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9915
9916 * f-lang.c (value_from_host_double): Moved to...
9917 * value.c (value_from_host_double): ...here.
9918 * value.h (value_from_host_double): Declare.
9919 * guile/scm-math.c (vlscm_convert_typed_number): Use
9920 value_from_host_double.
9921 (vlscm_convert_number): Likewise.
9922 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9923 * python/py-value.c (convert_value_from_python): Likewise.
9924
a7b1986e
TT
99252019-03-06 Tom Tromey <tom@tromey.com>
9926
9927 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9928
0ccf4211
TT
99292019-03-06 Tom Tromey <tom@tromey.com>
9930
9931 * utils.h (free_current_contents): Don't declare.
9932 * utils.c (free_current_contents): Remove.
9933
fe7b42e5
TT
99342019-03-06 Tom Tromey <tom@tromey.com>
9935
9936 * top.c (quit_force): Update.
9937 * main.c (captured_command_loop): Update.
9938 * common/new-op.c (operator new): Update.
9939 * common/common-exceptions.c (struct catcher)
9940 <save_cleanup_chain>: Remove member.
9941 (exceptions_state_mc_init): Update.
9942 (exception_try_scope_entry): Return nullptr.
9943 (exception_try_scope_exit, exception_rethrow)
9944 (throw_exception_sjlj, throw_exception_cxx): Update.
9945 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9946 (all_cleanups, do_cleanups, discard_cleanups)
9947 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9948 (restore_cleanups, restore_final_cleanups): Don't declare.
9949 (do_final_cleanups): Remove parameter.
9950 * common/cleanups.c (cleanup_chain, make_cleanup)
9951 (make_cleanup_dtor, all_cleanups, do_cleanups)
9952 (discard_my_cleanups, discard_cleanups)
9953 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9954 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9955 (null_cleanup): Remove.
9956 (do_final_cleanups): Remove parameter.
9957
c6321f19
TT
99582019-03-06 Tom Tromey <tom@tromey.com>
9959
9960 * remote.c (remote_target::remote_parse_stop_reply): Use
9961 unique_xmalloc_ptr.
9962
61b30099
TT
99632019-03-06 Tom Tromey <tom@tromey.com>
9964
9965 * stabsread.c (struct stabs_field_info): Rename from field_info.
9966 <list, fnlist>: Add initializers.
9967 <obstack>: New member.
9968 (read_member_functions, read_struct_fields, read_baseclasses):
9969 Allocate on obstack. Don't use cleanups.
9970 (read_one_struct_field, read_member_functions, read_struct_fields)
9971 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9972 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9973 (read_struct_type): Update.
9974
6cceac94
TT
99752019-03-06 Tom Tromey <tom@tromey.com>
9976
9977 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9978 * common/filestuff.h (make_cleanup_close): Don't declare.
9979 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9980 Remove.
9981
72412762
TT
99822019-03-06 Tom Tromey <tom@tromey.com>
9983
9984 * solib-aix.c: Use make_scope_exit.
9985
2b6ff1c0
TT
99862019-03-06 Tom Tromey <tom@tromey.com>
9987
9988 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9989 Use make_scope_exit.
9990
d01c5877
TT
99912019-03-06 Tom Tromey <tom@tromey.com>
9992
9993 * solib-svr4.c (disable_probes_interface): Remove parameter.
9994 (svr4_handle_solib_event): Use make_scope_exit.
9995
32603266
TT
99962019-03-06 Tom Tromey <tom@tromey.com>
9997
9998 * remote.c (struct stop_reply_deleter): Remove.
9999 (stop_reply_up): Update.
10000 (struct stop_reply): Derive from notif_event. Don't typedef.
10001 <regcache>: Now a std::vector.
10002 (stop_reply_xfree): Remove.
10003 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10004 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10005 (remote_target::discard_pending_stop_replies): Use delete.
10006 (remote_target::remote_parse_stop_reply): Update.
10007 (remote_target::process_stop_reply): Update.
10008 * remote-notif.h (struct notif_event): Add virtual destructor.
10009 Remove "dtr" member.
10010 (struct notif_client) <alloc_event>: Return a unique_ptr.
10011 (notif_event_xfree): Don't declare.
10012 (notif_event_up): New typedef.
10013 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10014 (notif_event_xfree, do_notif_event_xfree): Remove.
10015 (remote_notif_state_xfree): Update.
10016
9799571e
TT
100172019-03-06 Tom Tromey <tom@tromey.com>
10018
10019 * infrun.c (displaced_step_clear_cleanup): Now a
10020 forward_scope_exit type.
10021 (displaced_step_prepare_throw): Update.
10022 (displaced_step_fixup): Update.
10023
09e3c4ca
TT
100242019-03-06 Tom Tromey <tom@tromey.com>
10025
10026 * inferior.h (class inferior): Update comment.
10027 * gdbthread.h (class thread_info): Update comment.
10028
e2a03548
TT
100292019-03-06 Joel Brobecker <brobecker@adacore.com>
10030 Tom Tromey <tom@tromey.com>
10031
10032 * stabsread.h (struct stab_section_list): Remove.
10033 (coffstab_build_psymtabs): Update.
10034 * dbxread.c (symbuf_sections): Now a std::vector.
10035 (sect_idx): New global.
10036 (fill_symbuf): Update.
10037 (coffstab_build_psymtabs): Change type of stabsects parameter.
10038 Update.
10039 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10040 std::vector.
10041 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10042 (coff_locate_sections): Update.
10043 (coff_symfile_read): Remove cleanups. Update.
10044 (init_stringtab): Add storage parameter.
10045 (free_stringtab, free_stringtab_cleanup): Remove.
10046 (init_lineno): Add storage parameter.
10047 (free_linetab, free_linetab_cleanup): Remove.
10048
b7e60d85
PA
100492019-03-06 Pedro Alves <palves@redhat.com>
10050
10051 * linux-fork.c (fork_info::clobber_regs): Delete.
10052 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10053 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10054 comment. Adjust.
10055 (scoped_switch_fork_info::scoped_switch_fork_info)
10056 (checkpoint_command, linux_fork_context): Adjust
10057 fork_save_infrun_state calls.
10058
e52c971f
PA
100592019-03-06 Pedro Alves <palves@redhat.com>
10060
10061 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10062 (inf_has_multiple_threads): Return 'bool' and rewrite using
10063 inferior_info::threads().
10064
06974e6c
PA
100652019-03-06 Pedro Alves <palves@redhat.com>
10066
10067 * linux-fork.c: Include <list>.
10068 (fork_list): Now a std::list instance.
10069 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10070 (forks_exist_p, find_last_fork): Adjust.
10071 (new_fork): Delete.
10072 (one_fork_p): New.
10073 (add_fork): Adjust.
10074 (free_fork): Delete, folded into fork_info::~fork_info().
10075 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10076 Adjust.
10077 (init_fork_list): Delete.
10078 (linux_fork_killall, linux_fork_mourn_inferior)
10079 (linux_fork_detach, info_checkpoints_command): Adjust.
10080 (_initialize_linux_fork): No longer call init_fork_list.
10081
72f31aea
PA
100822019-03-06 Pedro Alves <palves@redhat.com>
10083
10084 * linux-fork.c (new_fork): New, split out of ...
10085 (add_fork): ... this. Return void. Move "first fork" special
10086 case from here, to ...
10087 (checkpoint_command): ... here.
10088 * linux-linux.h (add_fork): Return void.
10089
efbecbc1
AB
100902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10091
10092 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10093
0841c79a
AB
100942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10095 Chris January <chris.january@arm.com>
10096 David Lecomber <david.lecomber@arm.com>
10097
10098 * f-exp.y: New token, UNOP_INTRINSIC.
10099 (exp): New pattern using UNOP_INTRINSIC token.
10100 (f77_keywords): Add 'abs' keyword.
10101 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10102 (value_from_host_double): New function.
10103 (evaluate_subexp_f): Support UNOP_ABS.
10104
4a270568
AB
101052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10106
10107 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10108 types.
10109
067630bd
AB
101102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10111
10112 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10113 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10114 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10115
3be47f7a
AB
101162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10117
10118 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10119
4d00f5d8
AB
101202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10121 Chris January <chris.january@arm.com>
10122
10123 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10124 * f-exp.y: Define 'KIND' token.
10125 (exp): New pattern for KIND expressions.
10126 (ptype): Handle types with a kind extension.
10127 (direct_abs_decl): Extend to spot kind extensions.
10128 (f77_keywords): Add 'kind' to the list.
10129 (push_kind_type): New function.
10130 (convert_to_kind_type): New function.
10131 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10132 * parse.c (operator_length_standard): Likewise.
10133 * parser-defs.h (enum type_pieces): Add tp_kind.
10134 * std-operator.def: Add UNOP_KIND.
10135
e454224f
AB
101362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10137
10138 * f-exp.y (f_parse): Set yydebug.
10139
9dad4a58
AB
101402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10141
10142 * f-lang.c (evaluate_subexp_f): New function.
10143 (exp_descriptor_f): New global.
10144 (f_language_defn): Use exp_descriptor_f instead of
10145 exp_descriptor_standard.
10146
c8f91604
AB
101472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10148
10149 * f-exp.y (struct token): Add comments.
10150 (dot_ops): Remove uppercase versions and the end marker.
10151 (f77_keywords): Likewise.
10152 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10153 entries in the dot_ops array are case insensitive, and use
10154 strncasecmp to compare strings. Also some whitespace cleanup in
10155 this area. Similar for the f77_keywords array, except entries in
10156 this list might be case sensitive.
10157
dd9f2c76
AB
101582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10159
10160 * f-exp.y (struct f77_boolean_val): Add comments.
10161 (boolean_values): Remove uppercase versions, and end marker.
10162 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10163 and use strncasecmp to achieve case insensitivity. Additionally,
10164 perform whitespace cleanup around this code.
10165
67a3048c
TT
101662019-03-06 Tom Tromey <tromey@adacore.com>
10167
10168 * remote-sim.c (gdbsim_target_open): Use result of
10169 gdb_argv::release.
10170
aa3cfbda
RB
101712019-03-06 Richard Bunt <richard.bunt@arm.com>
10172 Dirk Schubert <dirk.schubert@arm.com>
10173 Chris January <chris.january@arm.com>
10174
10175 * eval.c (evaluate_subexp_standard): Call Fortran argument
10176 wrapping logic.
10177 * f-lang.c (struct value): A value which can be passed into a
10178 Fortran function call.
10179 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10180 where appropriate.
10181 (struct type): Value ready for a Fortran function call.
10182 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10183 is needed.
10184 * f-lang.h (fortran_argument_convert): Declaration.
10185 (fortran_preserve_arg_pointer): Declaration.
10186 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10187
ea38e5df
TT
101882019-03-05 Tom Tromey <tromey@adacore.com>
10189
10190 * python/py-prettyprint.c (print_string_repr): Remove #if.
10191 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10192
06b5b831
TT
101932019-03-05 Tom Tromey <tromey@adacore.com>
10194
10195 * target.c (the_dummy_target): Move later. Change type to
10196 "dummy_target".
10197 (initialize_targets): Don't initialize the_dummy_target.
10198
edbd9e45
TT
101992019-03-05 Tom Tromey <tromey@adacore.com>
10200
10201 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10202 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10203
c119e040
TT
102042019-03-05 Tom Tromey <tromey@adacore.com>
10205
10206 * windows-nat.c (windows_nat_target::attach)
10207 (windows_nat_target::detach): Don't call gdb_flush.
10208 * valprint.c (generic_val_print, val_print, val_print_string):
10209 Don't call gdb_flush.
10210 * utils.c (defaulted_query): Don't call gdb_flush.
10211 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10212 * target.c (target_announce_detach): Don't call gdb_flush.
10213 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10214 * remote.c (extended_remote_target::attach): Don't call
10215 gdb_flush.
10216 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10217 * printcmd.c (do_examine): Don't call gdb_flush.
10218 (info_display_command): Don't call gdb_flush.
10219 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10220 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10221 * memattr.c (info_mem_command): Don't call gdb_flush.
10222 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10223 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10224 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10225 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10226 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10227 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10228 (gnu_nat_target::detach): Don't call gdb_flush.
10229 * f-valprint.c (f_val_print): Don't call gdb_flush.
10230 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10231 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10232 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10233 gdb_flush.
10234 * c-valprint.c (c_val_print): Don't call gdb_flush.
10235 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10236
895dafa6
TT
102372019-03-05 Tom Tromey <tromey@adacore.com>
10238
10239 * varobj.c (update_dynamic_varobj_children): Update.
10240 (install_default_visualizer): Use reset, not release.
10241 * value.c (set_internalvar): Update.
10242 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10243 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10244 ATTRIBUTE_UNUSED_RESULT.
10245
88a774b9
TT
102462019-03-05 Tom Tromey <tromey@adacore.com>
10247
10248 * remote.c (class scoped_remote_fd) <release>: Add
10249 ATTRIBUTE_UNUSED_RESULT.
10250
4e4a8b93
TT
102512019-03-05 Tom Tromey <tromey@adacore.com>
10252
10253 * macroexp.c (struct macro_buffer) <release>: Add
10254 ATTRIBUTE_UNUSED_RESULT.
10255
083eef1f
TT
102562019-03-05 Tom Tromey <tromey@adacore.com>
10257
10258 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10259 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10260 ATTRIBUTE_UNUSED_RESULT.
10261
3cabd438
TT
102622019-03-05 Tom Tromey <tromey@adacore.com>
10263
10264 * common/scoped_fd.h (class scoped_fd) <release>: Add
10265 ATTRIBUTE_UNUSED_RESULT.
10266
41e3300a
TT
102672019-03-05 Tom Tromey <tromey@adacore.com>
10268
10269 * parser-defs.h (struct parser_state) <release>: Add
10270 ATTRIBUTE_UNUSED_RESULT.
10271
18cb7c9f
TT
102722019-03-05 Tom Tromey <tromey@adacore.com>
10273
10274 * utils.h (class gdb_argv) <release>: Add
10275 ATTRIBUTE_UNUSED_RESULT.
10276 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10277
41fa577f
EZ
102782019-03-02 Eli Zaretskii <eliz@gnu.org>
10279
a6a4b2c6
EZ
10280 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10281 for-loop range, to avoid compiler warnings.
10282
10283 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10284 avoid compiler warnings about unused variables.
10285
742a7df5
EZ
10286 * NEWS: Mention end of support for native debugging on MS-Windows
10287 before XP.
10288
41fa577f
EZ
10289 PR gdb/24292
10290 * common/netstuff.c:
10291 * gdbserver/gdbreplay.c
10292 * gdbserver/remote-utils.c:
10293 * ser-tcp.c:
10294 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10295 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10296 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10297 'getaddrinfo' and 'freeaddrinfo' were not available before
10298 Windows XP, and mingw.org's MinGW headers by default define
10299 _WIN32_WINNT to 0x500.
10300
827f438f
GB
103012019-03-01 Gary Benson <gbenson@redhat.com>
10302
10303 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10304
92137da0
RO
103052019-02-28 Brian Vandenberg <phantall@gmail.com>
10306 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10307
10308 PR gdb/8527
10309 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10310 set_sigint_trap, clear_sigint_trap.
10311
799efbe8
PW
103122019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10313
10314 * target.c (target_detach): Clear the regcache and the
10315 frame cache.
10316
8ed25214
PA
103172019-02-27 Pedro Alves <palves@redhat.com>
10318
10319 * utils.c (set_screen_size): When we cap the height/width sizes,
10320 tweak the corresponding command variable to show "unlimited":
10321
23031e31
SJ
103222019-02-27 Saagar Jha <saagar@saagarjha.com>
10323 Pedro Alves <palves@redhat.com>
10324
10325 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10326 before calling rl_set_screen_size.
10327
6c28e44a
TT
103282019-02-27 Tom Tromey <tromey@adacore.com>
10329
10330 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10331 define.
10332 * python/py-value.c: Remove Python 2.4 workaround.
10333 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10334 workaround.
10335 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10336 Python 2.4 workaround.
10337 * python/python-internal.h: Remove Python 2.4 comment.
10338 (Py_ssize_t): Don't define.
10339 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10340 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10341 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10342 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10343 * python/python.c (do_start_initialization): Remove Python 2.4
10344 workaround.
10345 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10346 (print_children): Remove Python 2.4 workaround.
10347 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10348 workaround.
10349 (CHARBUFFERPROC_NAME): Remove.
10350 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10351 Python 2.4 workaround.
10352
2c3fc25d 103532019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10354
2c3fc25d
KB
10355 * NEWS: Note minimum Python version.
10356
6ca62222
KB
103572019-02-27 Kevin Buettner <kevinb@redhat.com>
10358
10359 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10360 code from these functions. Remove corresponding ifdefs. Use
10361 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10362 Remove gotos and target of gotos.
10363 (infpy_search_memory): Likewise.
10364
f4bc7d2c
AB
103652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10366
10367 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10368 (hppa_gdbarch_init): Don't register deleted functions with
10369 gdbarch.
10370
9734a586
AB
103712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10372
10373 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10374 (h8300_unwind_sp): Delete.
10375 (h8300_dummy_id): Delete.
10376 (h8300_gdbarch_init): Don't register deleted functions with
10377 gdbarch.
10378
68b867f3
AB
103792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10380
10381 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10382 (ft32_unwind_pc): Delete.
10383 (ft32_unwind_sp): Delete.
10384 (ft32_gdbarch_init): Don't register deleted functions with
10385 gdbarch.
10386
2fbe7ad0
AB
103872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10388
10389 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10390 (frv_unwind_pc): Delete.
10391 (frv_unwind_sp): Delete.
10392 (frv_gdbarch_init): Don't register deleted functions with
10393 gdbarch.
10394
76055cbe
AB
103952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10396
10397 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10398 (riscv_unwind_pc): Delete.
10399 (riscv_unwind_sp): Delete.
10400 (riscv_gdbarch_init): Don't register deleted functions with
10401 gdbarch.
10402
4133e5a1
AB
104032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10404
10405 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10406 (csky_unwind_pc): Delete.
10407 (csky_unwind_sp): Delete.
10408 (csky_gdbarch_init): Don't register deleted functions with
10409 gdbarch.
10410
8010f576
AB
104112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10414 (cris_unwind_pc): Delete.
10415 (cris_unwind_sp): Delete.
10416 (cris_gdbarch_init): Don't register deleted functions with
10417 gdbarch.
10418
b56bf084
AB
104192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10420
10421 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10422 (bfin_unwind_pc): Delete.
10423 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10424
a19a650f
AB
104252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10426
10427 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10428 (arm_unwind_pc): Delete.
10429 (arm_unwind_sp): Delete.
10430 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10431
f8278c3c
AB
104322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10433
10434 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10435 (arc_unwind_pc): Delete.
10436 (arc_unwind_sp): Delete.
10437 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10438
480e46cf
AB
104392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10440
10441 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10442 (alpha_unwind_pc): Delete.
10443 (alpha_gdbarch_init): Don't register deleted functions with
10444 gdbarch.
10445
7a995095
AB
104462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10449 (aarch64_unwind_pc): Delete.
10450 (aarch64_unwind_sp): Delete.
10451 (aarch64_gdbarch_init): Don't register deleted functions with
10452 gdbarch.
10453
bf9a735e
AB
104542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * gdbtypes.c (type_align): Don't consider static members when
10457 computing structure alignment.
10458
5561fc30
AB
104592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10460
10461 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10462 return 0 for other types.
10463 * arch-utils.c (default_type_align): Always return 0.
10464 * gdbarch.h: Regenerate.
10465 * gdbarch.sh (type_align): Extend comment.
10466 * gdbtypes.c (type_align): Add additional comments, always call
10467 gdbarch_type_align before applying the default rules.
10468 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10469 generic code will then apply a suitable default.
10470 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10471 types, return 0 for other types.
10472
9335e75a
JB
104732019-02-27 Joel Brobecker <brobecker@adacore.com>
10474
10475 * NEWS: Create a new section for the next release branch.
10476 Rename the section of the current branch, now that it has
10477 been cut.
10478
3d34d8de
JB
104792019-02-27 Joel Brobecker <brobecker@adacore.com>
10480
10481 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10482 * version.in: Bump version to 8.3.50.DATE-git.
10483
143420fb
SM
104842019-02-26 Simon Marchi <simon.marchi@efficios.com>
10485
10486 * aix-thread.c (ptid_cmp): Remove unused variable.
10487 (get_signaled_thread): Likewise.
10488 (store_regs_user_thread): Likewise.
10489 (store_regs_kernel_thread): Likewise.
10490 (fetch_regs_kernel_thread): Remove shadowed variable.
10491
172fb711
AB
104922019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * features/riscv/32bit-cpu.xml: Add register numbers.
10495 * features/riscv/32bit-fpu.c: Regenerate.
10496 * features/riscv/32bit-fpu.xml: Add register numbers.
10497 * features/riscv/64bit-cpu.xml: Add register numbers.
10498 * features/riscv/64bit-fpu.c: Regenerate.
10499 * features/riscv/64bit-fpu.xml: Add register numbers.
10500
26c89782
KB
105012019-02-26 Kevin Buettner <kevinb@redhat.com>
10502
af54ade9 10503 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10504 * python/py-value.c (convert_buffer_and_type_to_value): New
10505 function.
10506 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10507 Add support for handling an optional second argument. Call
10508 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10509 * python/python-internal.h (Py_buffer_deleter): New struct.
10510 (Py_buffer_up): New typedef.
10511
0f58c9e8
JB
105122019-02-25 John Baldwin <jhb@FreeBSD.org>
10513
10514 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10515 instead of releasing ownership.
10516
0a0f4c01
JR
105172019-02-25 Jordan Rupprecht <rupprecht@google.com>
10518
10519 * dwarf2read.c (open_and_init_dwp_file): Call
10520 elf_numsections instead of bfd_count_sections to initialize
10521 dwp_file->num_sections.
10522
cd5a152c
TT
105232019-02-25 Tom Tromey <tromey@adacore.com>
10524
10525 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10526
8a6a8513
SDJ
105272019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10528
10529 * gcore.in: Add '--readnever' option when invoking GDB.
10530
04dcda9c
SM
105312019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10532
10533 * MAINTAINERS: Update my email address.
10534
07bc701d
SM
105352019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10536
10537 * build-id.c (build_id_to_debug_bfd_1): New function.
10538 (build_id_to_debug_bfd): Look for separate debug file in
10539 sysroot.
10540
c6f4a5d0
AB
105412019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10542
10543 * gdbarch.sh: Update the copyright year range that is placed into
10544 generated files.
10545
9600246d
KS
105462019-02-22 Keith Seitz <keiths@redhat.com>
10547
10548 PR symtab/23853
10549 * linespec.c (create_sals_line_offset): Search for the default
10550 symtab's filename instead of its fullname.
10551
7557a514
AH
105522019-02-21 Alan Hayward <alan.hayward@arm.com>
10553
10554 * NEWS: Update style defaults.
10555
ee2bcb0c
AH
105562019-02-21 Alan Hayward <alan.hayward@arm.com>
10557
10558 * main.c (captured_main_1): Disable styling in batch mode.
10559
0c95f9ed
TT
105602019-02-20 Tom Tromey <tom@tromey.com>
10561
10562 * symtab.c (symtab_symbol_info): Fix typos.
10563
c763b894
TT
105642019-02-20 Tom Tromey <tromey@adacore.com>
10565
10566 * findcmd.c (_initialize_mem_search): Use upper case for
10567 metasyntactic variables.
10568
0ef8a082
AH
105692019-02-20 Alan Hayward <alan.hayward@arm.com>
10570
10571 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10572 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10573
6caa91b6
SM
105742019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10575
10576 * top.h (source_file_name): Change to std::string.
10577 * top.c (source_file_name): Likewise.
10578 (command_line_input): Adjust.
10579 * cli/cli-script.c (script_from_file): Adjust.
10580
98814c6c
TT
105812019-02-19 Tom Tromey <tromey@adacore.com>
10582
10583 * ravenscar-thread.c
10584 (ravenscar_thread_target::update_thread_list): Don't call
10585 ada_build_task_list.
10586 * ada-lang.h (ada_build_task_list): Don't declare.
10587 * ada-tasks.c (struct ada_tasks_inferior_data)
10588 <task_list_valid_p>: Now bool.
10589 (read_known_tasks, ada_task_list_changed)
10590 (ada_tasks_invalidate_inferior_data): Update.
10591 (read_known_tasks_array): Return bool.
10592 (read_known_tasks_list): Likewise.
10593 (read_known_tasks): Return void.
10594 (ada_build_task_list): Now static.
10595
70cd633e
AB
105962019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10597
10598 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10599 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10600
040b3e95
PW
106012019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10602
10603 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10604 variant for ada_tasks_pspace_data_handle and
10605 ada_tasks_inferior_data_handle.
10606 (ada_tasks_pspace_data_cleanup): New function.
10607 (ada_tasks_inferior_data_cleanup): New function.
10608
9409233b
TT
106092019-02-17 Tom Tromey <tom@tromey.com>
10610
10611 * macrotab.h (macro_source_fullname): Return a std::string.
10612 * macrotab.c (macro_include, check_for_redefinition)
10613 (macro_undef, macro_lookup_definition, foreach_macro)
10614 (foreach_macro_in_scope): Update.
10615 (macro_source_fullname): Return a std::string.
10616 * macrocmd.c (show_pp_source_pos): Update.
10617
6506371f
TT
106182019-02-17 Tom Tromey <tom@tromey.com>
10619
10620 * macrocmd.c (show_pp_source_pos): Style the file names.
10621
0c820d67
TT
106222019-02-17 Tom Tromey <tom@tromey.com>
10623
10624 PR tui/24197:
10625 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10626
a0087920
TT
106272019-02-17 Tom Tromey <tom@tromey.com>
10628
10629 * ada-lang.c (user_select_syms): Use filtered printing.
10630 * utils.c (wrap_style): New global.
10631 (desired_style): Remove.
10632 (emit_style_escape): Add stream parameter.
10633 (set_output_style, reset_terminal_style, prompt_for_continue):
10634 Update.
10635 (flush_wrap_buffer): Only flush gdb_stdout.
10636 (wrap_here): Set wrap_style.
10637 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10638 treat escape sequences as a character. Change when wrap buffer is
10639 flushed.
10640 (fputs_styled): Do not set the output style when the default is
10641 requested.
10642 * ui-style.h (struct ui_file_style) <is_default>: New method.
10643 * source.c (print_source_lines_base): Emit escape sequences in one
10644 piece.
10645
75ba10dc
JB
106462019-02-17 Joel Brobecker <brobecker@adacore.com>
10647
10648 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10649 integers and enumeration types.
10650
a2cd4f14
JB
106512019-02-17 Joel Brobecker <brobecker@adacore.com>
10652
10653 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10654 instead of lookup_symbol_in_language
10655 (do_exact_match): New function.
10656 (ada_get_symbol_name_matcher): Return do_exact_match when
10657 doing a verbatim match.
10658
485b851b
TT
106592019-02-15 Tom Tromey <tromey@adacore.com>
10660
10661 * ravenscar-thread.c (ravenscar_thread_target::resume)
10662 (ravenscar_thread_target::wait): Special case wildcard requests.
10663
0b790b1e
TT
106642019-02-15 Tom Tromey <tromey@adacore.com>
10665
10666 * ravenscar-thread.c (base_ptid): Remove.
10667 (struct ravenscar_thread_target) <close>: New method.
10668 <m_base_ptid>: New member.
10669 <update_inferior_ptid, active_task, task_is_currently_active,
10670 runtime_initialized>: Declare methods.
10671 <ravenscar_thread_target>: Add constructor.
10672 (ravenscar_thread_target::task_is_currently_active)
10673 (ravenscar_thread_target::update_inferior_ptid)
10674 (ravenscar_runtime_initialized): Rename. Now methods.
10675 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10676 (ravenscar_thread_target::update_thread_list): Update.
10677 (ravenscar_thread_target::active_task): Now method.
10678 (ravenscar_thread_target::store_registers)
10679 (ravenscar_thread_target::prepare_to_store)
10680 (ravenscar_thread_target::prepare_to_store)
10681 (ravenscar_thread_target::mourn_inferior): Update.
10682 (ravenscar_inferior_created): Use "new" to create target.
10683 (ravenscar_thread_target::get_ada_task_ptid): Update.
10684 (_initialize_ravenscar): Don't initialize base_ptid.
10685 (ravenscar_ops): Remove global.
10686
dea57a62
TT
106872019-02-15 Tom Tromey <tromey@adacore.com>
10688
10689 * target.h (push_target): Declare new overload.
10690 * target.c (push_target): New overload, taking an rvalue reference.
10691 * remote.c (remote_target::open_1): Use push_target overload.
10692 * corelow.c (core_target_open): Use push_target overload.
10693
989f3c58
TT
106942019-02-15 Tom Tromey <tromey@adacore.com>
10695
10696 * ravenscar-thread.c (is_ravenscar_task)
10697 (ravenscar_task_is_currently_active): Return bool.
10698 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10699 (_initialize_ravenscar): Remove "(void)".
10700 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10701 Return bool.
10702
6cbcc006
TT
107032019-02-15 Tom Tromey <tromey@adacore.com>
10704
10705 * ravenscar-thread.c (ravenscar_runtime_initializer)
10706 (has_ravenscar_runtime, get_running_thread_id)
10707 (ravenscar_thread_target::resume): Fix indentation.
10708
7657f14d
TT
107092019-02-15 Tom Tromey <tromey@adacore.com>
10710
10711 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10712 from ravenscar_arch_ops.
10713 (sparc_ravenscar_ops::fetch_registers)
10714 (sparc_ravenscar_ops::store_registers): Now methods.
10715 (sparc_ravenscar_prepare_to_store): Remove.
10716 (sparc_ravenscar_ops): Redefine.
10717 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10718 methods and destructor. Remove members.
10719 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10720 (ravenscar_thread_target::store_registers)
10721 (ravenscar_thread_target::prepare_to_store): Update.
10722 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10723 Remove.
10724 (struct ppc_ravenscar_powerpc_ops): Derive from
10725 ravenscar_arch_ops.
10726 (ppc_ravenscar_powerpc_ops::fetch_registers)
10727 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10728 (ppc_ravenscar_powerpc_ops): Redefine.
10729 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10730 (ppc_ravenscar_e500_ops::fetch_registers)
10731 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10732 (ppc_ravenscar_e500_ops): Redefine.
10733 * aarch64-ravenscar-thread.c
10734 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10735 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10736 (aarch64_ravenscar_fetch_registers)
10737 (aarch64_ravenscar_store_registers): Now methods.
10738 (aarch64_ravenscar_ops): Redefine.
10739
5b6ea500
TT
107402019-02-15 Tom Tromey <tromey@adacore.com>
10741
10742 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10743 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10744 (ravenscar_thread_target::stopped_by_watchpoint)
10745 (ravenscar_thread_target::stopped_data_address)
10746 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10747
e397fd39
TT
107482019-02-15 Tom Tromey <tromey@adacore.com>
10749
10750 * ravenscar-thread.c: Fix some typos.
10751
cc12f4a8
TT
107522019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10753 Tom Tromey <tromey@adacore.com>
10754
10755 * ada-lang.c (ada_exception_sal): Change addr_string to a
10756 std::string.
10757 (create_ada_exception_catchpoint): Update.
10758
5f486660
TT
107592019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10760 Tom Tromey <tromey@adacore.com>
10761
10762 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10763 (bp_location_ops): Remove.
10764 (base_breakpoint_allocate_location): Update.
10765 (free_bp_location): Update.
10766 * ada-lang.c (class ada_catchpoint_location)
10767 <ada_catchpoint_location>: Remove ops parameter.
10768 (ada_catchpoint_location_dtor): Remove.
10769 (ada_catchpoint_location_ops): Remove.
10770 (allocate_location_exception): Update.
10771 * breakpoint.h (struct bp_location_ops): Remove.
10772 (class bp_location) <bp_location>: Remove bp_location_ops
10773 parameter.
10774 <~bp_location>: Add destructor.
10775 <ops>: Remove.
10776
b671c7fb
TS
107772019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10778 Pedro Alves <palves@redhat.com>
10779
10780 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10781 'PATH_MAX'.
10782
8071c5ce
DM
107832019-02-14 David Michael <fedora.dm0@gmail.com>
10784 Samuel Thibault <samuel.thibault@gnu.org>
10785 Thomas Schwinge <thomas@codesourcery.com>
10786
10787 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10788 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10789
b1041ae0
TS
107902019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10791
924514e1
TS
10792 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10793 (check_empty): Use "const char *".
10794
c29ee8d4
TS
10795 * gnu-nat.c (gnu_nat_target::detach): Instead of
10796 'detach_inferior (pid)' call
10797 'detach_inferior (find_inferior_pid (pid))'.
10798
6c6ef69f
TS
10799 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10800 'nat/fork-inferior.o'.
10801 * gnu-nat.c: #include "nat/fork-inferior.h".
10802
2d0a338c
TS
10803 * gnu-nat.c (gnu_nat_target::detach): Instead of
10804 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10805 * gnu-nat.h: #include "inf-child.h".
10806 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10807 'i386_gnu_nat_target::fetch_registers'.
10808 (gnu_store_registers): Rename/move to
10809 'i386_gnu_nat_target::store_registers'.
10810
cabb5f06
TS
10811 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10812 * gnu-nat.h (mach_thread_info): New function.
10813 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10814
b1041ae0
TS
10815 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10816
2988d01e
KF
108172019-02-14 Frederic Konrad <konrad@adacore.com>
10818
10819 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10820
c559d709
JB
108212019-02-14 Joel Brobecker <brobecker@adacore.com>
10822
10823 * windows-nat.c (windows_add_thread): Add new parameter
10824 "main_thread_p" with default value set to false. Update
10825 function documentation as well as all callers.
10826 (windows_delete_thread): Likewise.
10827 (fake_create_process): Update call to windows_add_thread.
10828 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10829 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10830 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10831 call to windows_delete_thread.
10832
007024cc
SM
108332019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10834
10835 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10836
f62318e9
JB
108372019-02-12 John Baldwin <jhb@FreeBSD.org>
10838
10839 * symfile.c (find_separate_debug_file): Use canonical path of
10840 sysroot with child_path instead of gdb_sysroot if it is valid.
10841
cd4b7848
JB
108422019-02-12 John Baldwin <jhb@FreeBSD.org>
10843
10844 * symfile.c (find_separate_debug_file): Use child_path to
10845 determine if an object file is under a sysroot.
10846
efac4bfe
JB
108472019-02-12 John Baldwin <jhb@FreeBSD.org>
10848
10849 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10850 unittests/child-path-selftests.c.
10851 * common/pathstuff.c (child_path): New function.
10852 * common/pathstuff.h (child_path): New prototype.
10853 * unittests/child-path-selftests.c: New file.
10854
402d2bfe
JB
108552019-02-12 John Baldwin <jhb@FreeBSD.org>
10856
10857 * symfile.c (find_separate_debug_file): Look for separate debug
10858 files in debug directories under the sysroot.
10859
1ed9f74e
PW
108602019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10861
10862 * symtab.h (struct minimal_symbol data_p): New const method.
10863 (struct minimal_symbol text_p): Likewise.
10864 * symtab.c (output_source_filename): Use file name style
10865 to print file name.
10866 (print_symbol_info): Likewise.
10867 (print_msymbol_info): Use address style to print addresses.
10868 Use function name style to print executable text symbols.
10869 (expand_symtab_containing_pc): Use data_p.
10870 (find_pc_sect_compunit_symtab): Likewise.
10871
2636d81d
PW
108722019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10873
10874 * breakpoint.c (describe_other_breakpoints): Use address style
10875 to print addresses.
10876 (say_where): Likewise.
10877
ac8c53cc
PW
108782019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10879
10880 * ada-typeprint.c (print_func_type): Print function name
10881 style to print function name.
10882 * c-typeprint.c (c_print_type_1): Likewise.
10883
ea638c43
AH
108842019-02-11 Alan Hayward <alan.hayward@arm.com>
10885
10886 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10887 for execve.
10888
ab759ca8
PW
108892019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10890
10891 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10892 type_stack.
10893
aff29d1c
JB
108942019-02-10 Joel Brobecker <brobecker@adacore.com>
10895
10896 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10897 TYPE_CODE_REF types.
10898
617126bc
JW
108992019-02-08 Jim Wilson <jimw@sifive.com>
10900
10901 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10902 (riscv_linux_fregset): New.
10903 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10904
46e3ed7f
TT
109052019-02-07 Tom Tromey <tom@tromey.com>
10906
10907 * thread.c (thread_cancel_execution_command): Update.
10908 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10909 methods.
10910 (struct thread_fsm_ops): Remove.
10911 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10912 (thread_fsm_should_stop, thread_fsm_return_value)
10913 (thread_fsm_set_finished, thread_fsm_finished_p)
10914 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10915 Don't declare.
10916 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10917 * infrun.c (clear_proceed_status_thread)
10918 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10919 (print_stop_event): Update.
10920 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10921 Add constructor.
10922 (step_command_fsm_ops): Remove.
10923 (new_step_command_fsm): Remove.
10924 (step_1): Update.
10925 (step_command_fsm::should_stop): Rename from
10926 step_command_fsm_should_stop.
10927 (step_command_fsm::clean_up): Rename from
10928 step_command_fsm_clean_up.
10929 (step_command_fsm::do_async_reply_reason): Rename from
10930 step_command_fsm_async_reply_reason.
10931 (struct until_next_fsm): Inherit from thread_fsm. Add
10932 constructor.
10933 (until_next_fsm_ops): Remove.
10934 (new_until_next_fsm): Remove.
10935 (until_next_fsm::should_stop): Rename from
10936 until_next_fsm_should_stop.
10937 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10938 (until_next_fsm::do_async_reply_reason): Rename from
10939 until_next_fsm_async_reply_reason.
10940 (struct finish_command_fsm): Inherit from thread_fsm. Add
10941 constructor. Change type of breakpoint.
10942 (finish_command_fsm_ops): Remove.
10943 (new_finish_command_fsm): Remove.
10944 (finish_command_fsm::should_stop): Rename from
10945 finish_command_fsm_should_stop.
10946 (finish_command_fsm::clean_up): Rename from
10947 finish_command_fsm_clean_up.
10948 (finish_command_fsm::return_value): Rename from
10949 finish_command_fsm_return_value.
10950 (finish_command_fsm::do_async_reply_reason): Rename from
10951 finish_command_fsm_async_reply_reason.
10952 (finish_command): Update.
10953 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10954 Add constructor.
10955 (call_thread_fsm_ops): Remove.
10956 (call_thread_fsm::call_thread_fsm): Rename from
10957 new_call_thread_fsm.
10958 (call_thread_fsm::should_stop): Rename from
10959 call_thread_fsm_should_stop.
10960 (call_thread_fsm::should_notify_stop): Rename from
10961 call_thread_fsm_should_notify_stop.
10962 (run_inferior_call, call_function_by_hand_dummy): Update.
10963 * cli/cli-interp.c (should_print_stop_to_console): Update.
10964 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10965 Add constructor. Change type of location_breakpoint,
10966 caller_breakpoint.
10967 (until_break_fsm_ops): Remove.
10968 (new_until_break_fsm): Remove.
10969 (until_break_fsm::should_stop): Rename from
10970 until_break_fsm_should_stop.
10971 (until_break_fsm::clean_up): Rename from
10972 until_break_fsm_clean_up.
10973 (until_break_fsm::do_async_reply_reason): Rename from
10974 until_break_fsm_async_reply_reason.
10975 (until_break_command): Update.
10976 * thread-fsm.c: Remove.
10977 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10978
1a5c2598
TT
109792019-02-07 Tom Tromey <tom@tromey.com>
10980
10981 * yy-remap.h: Add include guard.
10982 * xtensa-tdep.h: Add include guard.
10983 * xcoffread.h: Rename include guard.
10984 * varobj-iter.h: Add include guard.
10985 * tui/tui.h: Rename include guard.
10986 * tui/tui-winsource.h: Rename include guard.
10987 * tui/tui-wingeneral.h: Rename include guard.
10988 * tui/tui-windata.h: Rename include guard.
10989 * tui/tui-win.h: Rename include guard.
10990 * tui/tui-stack.h: Rename include guard.
10991 * tui/tui-source.h: Rename include guard.
10992 * tui/tui-regs.h: Rename include guard.
10993 * tui/tui-out.h: Rename include guard.
10994 * tui/tui-layout.h: Rename include guard.
10995 * tui/tui-io.h: Rename include guard.
10996 * tui/tui-hooks.h: Rename include guard.
10997 * tui/tui-file.h: Rename include guard.
10998 * tui/tui-disasm.h: Rename include guard.
10999 * tui/tui-data.h: Rename include guard.
11000 * tui/tui-command.h: Rename include guard.
11001 * tic6x-tdep.h: Add include guard.
11002 * target/waitstatus.h: Rename include guard.
11003 * target/wait.h: Rename include guard.
11004 * target/target.h: Rename include guard.
11005 * target/resume.h: Rename include guard.
11006 * target-float.h: Rename include guard.
11007 * stabsread.h: Add include guard.
11008 * rs6000-tdep.h: Add include guard.
11009 * riscv-fbsd-tdep.h: Add include guard.
11010 * regformats/regdef.h: Rename include guard.
11011 * record.h: Rename include guard.
11012 * python/python.h: Rename include guard.
11013 * python/python-internal.h: Rename include guard.
11014 * python/py-stopevent.h: Rename include guard.
11015 * python/py-ref.h: Rename include guard.
11016 * python/py-record.h: Rename include guard.
11017 * python/py-record-full.h: Rename include guard.
11018 * python/py-record-btrace.h: Rename include guard.
11019 * python/py-instruction.h: Rename include guard.
11020 * python/py-events.h: Rename include guard.
11021 * python/py-event.h: Rename include guard.
11022 * procfs.h: Add include guard.
11023 * proc-utils.h: Add include guard.
11024 * p-lang.h: Add include guard.
11025 * or1k-tdep.h: Rename include guard.
11026 * observable.h: Rename include guard.
11027 * nto-tdep.h: Rename include guard.
11028 * nat/x86-linux.h: Rename include guard.
11029 * nat/x86-linux-dregs.h: Rename include guard.
11030 * nat/x86-gcc-cpuid.h: Add include guard.
11031 * nat/x86-dregs.h: Rename include guard.
11032 * nat/x86-cpuid.h: Rename include guard.
11033 * nat/ppc-linux.h: Rename include guard.
11034 * nat/mips-linux-watch.h: Rename include guard.
11035 * nat/linux-waitpid.h: Rename include guard.
11036 * nat/linux-ptrace.h: Rename include guard.
11037 * nat/linux-procfs.h: Rename include guard.
11038 * nat/linux-osdata.h: Rename include guard.
11039 * nat/linux-nat.h: Rename include guard.
11040 * nat/linux-namespaces.h: Rename include guard.
11041 * nat/linux-btrace.h: Rename include guard.
11042 * nat/glibc_thread_db.h: Rename include guard.
11043 * nat/gdb_thread_db.h: Rename include guard.
11044 * nat/gdb_ptrace.h: Rename include guard.
11045 * nat/fork-inferior.h: Rename include guard.
11046 * nat/amd64-linux-siginfo.h: Rename include guard.
11047 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11048 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11049 * nat/aarch64-linux.h: Rename include guard.
11050 * nat/aarch64-linux-hw-point.h: Rename include guard.
11051 * mn10300-tdep.h: Add include guard.
11052 * mips-linux-tdep.h: Add include guard.
11053 * mi/mi-parse.h: Rename include guard.
11054 * mi/mi-out.h: Rename include guard.
11055 * mi/mi-main.h: Rename include guard.
11056 * mi/mi-interp.h: Rename include guard.
11057 * mi/mi-getopt.h: Rename include guard.
11058 * mi/mi-console.h: Rename include guard.
11059 * mi/mi-common.h: Rename include guard.
11060 * mi/mi-cmds.h: Rename include guard.
11061 * mi/mi-cmd-break.h: Rename include guard.
11062 * m2-lang.h: Add include guard.
11063 * location.h: Rename include guard.
11064 * linux-record.h: Rename include guard.
11065 * linux-nat.h: Add include guard.
11066 * linux-fork.h: Add include guard.
11067 * i386-darwin-tdep.h: Rename include guard.
11068 * hppa-linux-offsets.h: Add include guard.
11069 * guile/guile.h: Rename include guard.
11070 * guile/guile-internal.h: Rename include guard.
11071 * gnu-nat.h: Rename include guard.
11072 * gdb-stabs.h: Rename include guard.
11073 * frv-tdep.h: Add include guard.
11074 * f-lang.h: Add include guard.
11075 * event-loop.h: Add include guard.
11076 * darwin-nat.h: Rename include guard.
11077 * cp-abi.h: Rename include guard.
11078 * config/sparc/nm-sol2.h: Rename include guard.
11079 * config/nm-nto.h: Rename include guard.
11080 * config/nm-linux.h: Add include guard.
11081 * config/i386/nm-i386gnu.h: Rename include guard.
11082 * config/djgpp/nl_types.h: Rename include guard.
11083 * config/djgpp/langinfo.h: Rename include guard.
11084 * compile/gcc-cp-plugin.h: Add include guard.
11085 * compile/gcc-c-plugin.h: Add include guard.
11086 * compile/compile.h: Rename include guard.
11087 * compile/compile-object-run.h: Rename include guard.
11088 * compile/compile-object-load.h: Rename include guard.
11089 * compile/compile-internal.h: Rename include guard.
11090 * compile/compile-cplus.h: Rename include guard.
11091 * compile/compile-c.h: Rename include guard.
11092 * common/xml-utils.h: Rename include guard.
11093 * common/x86-xstate.h: Rename include guard.
11094 * common/version.h: Rename include guard.
11095 * common/vec.h: Rename include guard.
11096 * common/tdesc.h: Rename include guard.
11097 * common/selftest.h: Rename include guard.
11098 * common/scoped_restore.h: Rename include guard.
11099 * common/scoped_mmap.h: Rename include guard.
11100 * common/scoped_fd.h: Rename include guard.
11101 * common/safe-iterator.h: Rename include guard.
11102 * common/run-time-clock.h: Rename include guard.
11103 * common/refcounted-object.h: Rename include guard.
11104 * common/queue.h: Rename include guard.
11105 * common/ptid.h: Rename include guard.
11106 * common/print-utils.h: Rename include guard.
11107 * common/preprocessor.h: Rename include guard.
11108 * common/pathstuff.h: Rename include guard.
11109 * common/observable.h: Rename include guard.
11110 * common/netstuff.h: Rename include guard.
11111 * common/job-control.h: Rename include guard.
11112 * common/host-defs.h: Rename include guard.
11113 * common/gdb_wait.h: Rename include guard.
11114 * common/gdb_vecs.h: Rename include guard.
11115 * common/gdb_unlinker.h: Rename include guard.
11116 * common/gdb_unique_ptr.h: Rename include guard.
11117 * common/gdb_tilde_expand.h: Rename include guard.
11118 * common/gdb_sys_time.h: Rename include guard.
11119 * common/gdb_string_view.h: Rename include guard.
11120 * common/gdb_splay_tree.h: Rename include guard.
11121 * common/gdb_setjmp.h: Rename include guard.
11122 * common/gdb_ref_ptr.h: Rename include guard.
11123 * common/gdb_optional.h: Rename include guard.
11124 * common/gdb_locale.h: Rename include guard.
11125 * common/gdb_assert.h: Rename include guard.
11126 * common/filtered-iterator.h: Rename include guard.
11127 * common/filestuff.h: Rename include guard.
11128 * common/fileio.h: Rename include guard.
11129 * common/environ.h: Rename include guard.
11130 * common/common-utils.h: Rename include guard.
11131 * common/common-types.h: Rename include guard.
11132 * common/common-regcache.h: Rename include guard.
11133 * common/common-inferior.h: Rename include guard.
11134 * common/common-gdbthread.h: Rename include guard.
11135 * common/common-exceptions.h: Rename include guard.
11136 * common/common-defs.h: Rename include guard.
11137 * common/common-debug.h: Rename include guard.
11138 * common/cleanups.h: Rename include guard.
11139 * common/buffer.h: Rename include guard.
11140 * common/btrace-common.h: Rename include guard.
11141 * common/break-common.h: Rename include guard.
11142 * cli/cli-utils.h: Rename include guard.
11143 * cli/cli-style.h: Rename include guard.
11144 * cli/cli-setshow.h: Rename include guard.
11145 * cli/cli-script.h: Rename include guard.
11146 * cli/cli-interp.h: Rename include guard.
11147 * cli/cli-decode.h: Rename include guard.
11148 * cli/cli-cmds.h: Rename include guard.
11149 * charset-list.h: Add include guard.
11150 * buildsym-legacy.h: Rename include guard.
11151 * bfin-tdep.h: Add include guard.
11152 * ax.h: Rename include guard.
11153 * arm-linux-tdep.h: Add include guard.
11154 * arm-fbsd-tdep.h: Add include guard.
11155 * arch/xtensa.h: Rename include guard.
11156 * arch/tic6x.h: Add include guard.
11157 * arch/i386.h: Add include guard.
11158 * arch/arm.h: Rename include guard.
11159 * arch/arm-linux.h: Rename include guard.
11160 * arch/arm-get-next-pcs.h: Rename include guard.
11161 * arch/amd64.h: Add include guard.
11162 * arch/aarch64-insn.h: Rename include guard.
11163 * arch-utils.h: Rename include guard.
11164 * annotate.h: Add include guard.
11165 * amd64-darwin-tdep.h: Rename include guard.
11166 * aarch64-linux-tdep.h: Add include guard.
11167 * aarch64-fbsd-tdep.h: Add include guard.
11168 * aarch32-linux-nat.h: Add include guard.
11169
ab9268d2
PW
111702019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11171
11172 * macrotab.c (macro_define_internal): New function that
11173 factorizes macro_define_object_internal and macro_define_function
11174 code.
11175 (macro_define_object_internal): Use macro_define_internal.
11176 (macro_define_function): Likewise.
11177
bb0da2b4
PW
111782019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11179
11180 * macrocmd.c (extract_identifier): Return
11181 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11182 callers.
11183
424eb552
JB
111842019-02-06 John Baldwin <jhb@FreeBSD.org>
11185
11186 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11187
1688cb29
TT
111882019-02-05 Tom Tromey <tom@tromey.com>
11189
11190 * target.c (target_stack::unpush): Move assertion earlier.
11191
b5eba2d8
TT
111922019-01-30 Tom Tromey <tom@tromey.com>
11193
11194 PR python/23615:
11195 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11196 (gdbpy_parse_and_eval): Likewise.
11197 * python/python-internal.h (gdbpy_allow_threads): New class.
11198
7054e2ff
JB
111992019-01-28 John Baldwin <jhb@FreeBSD.org>
11200
11201 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11202 (aarch64_fbsd_fpregmap): Move earlier.
11203 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11204 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11205 instead of individual calls to trad_frame_set_reg_addr.
11206 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11207 earlier.
11208 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11209 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11210 instead of individual calls to trad_frame_set_reg_addr.
11211
36c25ffa
AH
112122019-01-28 Alan Hayward <alan.hayward@arm.com>
11213
11214 * CONTRIBUTE: Replace contribution list with wiki link.
11215
a0707f3c
TT
112162019-01-25 Tom Tromey <tom@tromey.com>
11217
11218 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11219
0747795c
TT
112202019-01-25 Tom Tromey <tom@tromey.com>
11221
11222 * xtensa-linux-nat.c: Fix common/ includes.
11223 * xml-support.h: Fix common/ includes.
11224 * xml-support.c: Fix common/ includes.
11225 * x86-linux-nat.c: Fix common/ includes.
11226 * windows-nat.c: Fix common/ includes.
11227 * varobj.h: Fix common/ includes.
11228 * varobj.c: Fix common/ includes.
11229 * value.c: Fix common/ includes.
11230 * valops.c: Fix common/ includes.
11231 * utils.c: Fix common/ includes.
11232 * unittests/xml-utils-selftests.c: Fix common/ includes.
11233 * unittests/utils-selftests.c: Fix common/ includes.
11234 * unittests/unpack-selftests.c: Fix common/ includes.
11235 * unittests/tracepoint-selftests.c: Fix common/ includes.
11236 * unittests/style-selftests.c: Fix common/ includes.
11237 * unittests/string_view-selftests.c: Fix common/ includes.
11238 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11239 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11240 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11241 * unittests/rsp-low-selftests.c: Fix common/ includes.
11242 * unittests/parse-connection-spec-selftests.c: Fix common/
11243 includes.
11244 * unittests/optional-selftests.c: Fix common/ includes.
11245 * unittests/offset-type-selftests.c: Fix common/ includes.
11246 * unittests/observable-selftests.c: Fix common/ includes.
11247 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11248 * unittests/memrange-selftests.c: Fix common/ includes.
11249 * unittests/memory-map-selftests.c: Fix common/ includes.
11250 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11251 * unittests/function-view-selftests.c: Fix common/ includes.
11252 * unittests/environ-selftests.c: Fix common/ includes.
11253 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11254 * unittests/common-utils-selftests.c: Fix common/ includes.
11255 * unittests/cli-utils-selftests.c: Fix common/ includes.
11256 * unittests/array-view-selftests.c: Fix common/ includes.
11257 * ui-file.c: Fix common/ includes.
11258 * tui/tui-io.c: Fix common/ includes.
11259 * tracepoint.h: Fix common/ includes.
11260 * tracepoint.c: Fix common/ includes.
11261 * tracefile-tfile.c: Fix common/ includes.
11262 * top.h: Fix common/ includes.
11263 * top.c: Fix common/ includes.
11264 * thread.c: Fix common/ includes.
11265 * target/waitstatus.h: Fix common/ includes.
11266 * target/waitstatus.c: Fix common/ includes.
11267 * target.h: Fix common/ includes.
11268 * target.c: Fix common/ includes.
11269 * target-memory.c: Fix common/ includes.
11270 * target-descriptions.c: Fix common/ includes.
11271 * symtab.h: Fix common/ includes.
11272 * symfile.c: Fix common/ includes.
11273 * stap-probe.c: Fix common/ includes.
11274 * spu-linux-nat.c: Fix common/ includes.
11275 * sparc-nat.c: Fix common/ includes.
11276 * source.c: Fix common/ includes.
11277 * solib.c: Fix common/ includes.
11278 * solib-target.c: Fix common/ includes.
11279 * ser-unix.c: Fix common/ includes.
11280 * ser-tcp.c: Fix common/ includes.
11281 * ser-pipe.c: Fix common/ includes.
11282 * ser-base.c: Fix common/ includes.
11283 * selftest-arch.c: Fix common/ includes.
11284 * s12z-tdep.c: Fix common/ includes.
11285 * rust-exp.y: Fix common/ includes.
11286 * rs6000-aix-tdep.c: Fix common/ includes.
11287 * riscv-tdep.c: Fix common/ includes.
11288 * remote.c: Fix common/ includes.
11289 * remote-notif.h: Fix common/ includes.
11290 * remote-fileio.h: Fix common/ includes.
11291 * remote-fileio.c: Fix common/ includes.
11292 * regcache.h: Fix common/ includes.
11293 * regcache.c: Fix common/ includes.
11294 * record-btrace.c: Fix common/ includes.
11295 * python/python.c: Fix common/ includes.
11296 * python/py-type.c: Fix common/ includes.
11297 * python/py-inferior.c: Fix common/ includes.
11298 * progspace.h: Fix common/ includes.
11299 * producer.c: Fix common/ includes.
11300 * procfs.c: Fix common/ includes.
11301 * proc-api.c: Fix common/ includes.
11302 * printcmd.c: Fix common/ includes.
11303 * ppc-linux-nat.c: Fix common/ includes.
11304 * parser-defs.h: Fix common/ includes.
11305 * osdata.c: Fix common/ includes.
11306 * obsd-nat.c: Fix common/ includes.
11307 * nat/x86-linux.c: Fix common/ includes.
11308 * nat/x86-linux-dregs.c: Fix common/ includes.
11309 * nat/x86-dregs.h: Fix common/ includes.
11310 * nat/x86-dregs.c: Fix common/ includes.
11311 * nat/ppc-linux.c: Fix common/ includes.
11312 * nat/mips-linux-watch.h: Fix common/ includes.
11313 * nat/mips-linux-watch.c: Fix common/ includes.
11314 * nat/linux-waitpid.c: Fix common/ includes.
11315 * nat/linux-ptrace.h: Fix common/ includes.
11316 * nat/linux-ptrace.c: Fix common/ includes.
11317 * nat/linux-procfs.c: Fix common/ includes.
11318 * nat/linux-personality.c: Fix common/ includes.
11319 * nat/linux-osdata.c: Fix common/ includes.
11320 * nat/linux-namespaces.c: Fix common/ includes.
11321 * nat/linux-btrace.h: Fix common/ includes.
11322 * nat/linux-btrace.c: Fix common/ includes.
11323 * nat/fork-inferior.c: Fix common/ includes.
11324 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11325 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11326 * nat/aarch64-linux.c: Fix common/ includes.
11327 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11328 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11329 * namespace.h: Fix common/ includes.
11330 * mips-linux-tdep.c: Fix common/ includes.
11331 * minsyms.c: Fix common/ includes.
11332 * mi/mi-parse.h: Fix common/ includes.
11333 * mi/mi-main.c: Fix common/ includes.
11334 * mi/mi-cmd-env.c: Fix common/ includes.
11335 * memrange.h: Fix common/ includes.
11336 * memattr.c: Fix common/ includes.
11337 * maint.h: Fix common/ includes.
11338 * maint.c: Fix common/ includes.
11339 * main.c: Fix common/ includes.
11340 * machoread.c: Fix common/ includes.
11341 * location.c: Fix common/ includes.
11342 * linux-thread-db.c: Fix common/ includes.
11343 * linux-nat.c: Fix common/ includes.
11344 * linux-fork.c: Fix common/ includes.
11345 * inline-frame.c: Fix common/ includes.
11346 * infrun.c: Fix common/ includes.
11347 * inflow.c: Fix common/ includes.
11348 * inferior.h: Fix common/ includes.
11349 * inferior.c: Fix common/ includes.
11350 * infcmd.c: Fix common/ includes.
11351 * inf-ptrace.c: Fix common/ includes.
11352 * inf-child.c: Fix common/ includes.
11353 * ia64-linux-nat.c: Fix common/ includes.
11354 * i387-tdep.c: Fix common/ includes.
11355 * i386-tdep.c: Fix common/ includes.
11356 * i386-linux-tdep.c: Fix common/ includes.
11357 * i386-linux-nat.c: Fix common/ includes.
11358 * i386-go32-tdep.c: Fix common/ includes.
11359 * i386-fbsd-tdep.c: Fix common/ includes.
11360 * i386-fbsd-nat.c: Fix common/ includes.
11361 * guile/scm-type.c: Fix common/ includes.
11362 * guile/guile.c: Fix common/ includes.
11363 * go32-nat.c: Fix common/ includes.
11364 * gnu-nat.c: Fix common/ includes.
11365 * gdbthread.h: Fix common/ includes.
11366 * gdbarch-selftests.c: Fix common/ includes.
11367 * gdb_usleep.c: Fix common/ includes.
11368 * gdb_select.h: Fix common/ includes.
11369 * gdb_bfd.c: Fix common/ includes.
11370 * gcore.c: Fix common/ includes.
11371 * fork-child.c: Fix common/ includes.
11372 * findvar.c: Fix common/ includes.
11373 * fbsd-nat.c: Fix common/ includes.
11374 * event-top.c: Fix common/ includes.
11375 * event-loop.c: Fix common/ includes.
11376 * dwarf2read.c: Fix common/ includes.
11377 * dwarf2loc.c: Fix common/ includes.
11378 * dwarf2-frame.c: Fix common/ includes.
11379 * dwarf-index-cache.c: Fix common/ includes.
11380 * dtrace-probe.c: Fix common/ includes.
11381 * disasm-selftests.c: Fix common/ includes.
11382 * defs.h: Fix common/ includes.
11383 * csky-tdep.c: Fix common/ includes.
11384 * cp-valprint.c: Fix common/ includes.
11385 * cp-support.h: Fix common/ includes.
11386 * cp-support.c: Fix common/ includes.
11387 * corelow.c: Fix common/ includes.
11388 * completer.h: Fix common/ includes.
11389 * completer.c: Fix common/ includes.
11390 * compile/compile.c: Fix common/ includes.
11391 * compile/compile-loc2c.c: Fix common/ includes.
11392 * compile/compile-cplus-types.c: Fix common/ includes.
11393 * compile/compile-cplus-symbols.c: Fix common/ includes.
11394 * command.h: Fix common/ includes.
11395 * cli/cli-dump.c: Fix common/ includes.
11396 * cli/cli-cmds.c: Fix common/ includes.
11397 * charset.c: Fix common/ includes.
11398 * build-id.c: Fix common/ includes.
11399 * btrace.h: Fix common/ includes.
11400 * btrace.c: Fix common/ includes.
11401 * breakpoint.h: Fix common/ includes.
11402 * breakpoint.c: Fix common/ includes.
11403 * ax.h:
11404 (enum agent_op): Fix common/ includes.
11405 * ax-general.c (struct aop_map): Fix common/ includes.
11406 * ax-gdb.c: Fix common/ includes.
11407 * auxv.c: Fix common/ includes.
11408 * auto-load.c: Fix common/ includes.
11409 * arm-tdep.c: Fix common/ includes.
11410 * arch/riscv.c: Fix common/ includes.
11411 * arch/ppc-linux-common.c: Fix common/ includes.
11412 * arch/i386.c: Fix common/ includes.
11413 * arch/arm.c: Fix common/ includes.
11414 * arch/arm-linux.c: Fix common/ includes.
11415 * arch/arm-get-next-pcs.c: Fix common/ includes.
11416 * arch/amd64.c: Fix common/ includes.
11417 * arch/aarch64.c: Fix common/ includes.
11418 * arch/aarch64-insn.c: Fix common/ includes.
11419 * arch-utils.c: Fix common/ includes.
11420 * amd64-windows-tdep.c: Fix common/ includes.
11421 * amd64-tdep.c: Fix common/ includes.
11422 * amd64-sol2-tdep.c: Fix common/ includes.
11423 * amd64-obsd-tdep.c: Fix common/ includes.
11424 * amd64-nbsd-tdep.c: Fix common/ includes.
11425 * amd64-linux-tdep.c: Fix common/ includes.
11426 * amd64-linux-nat.c: Fix common/ includes.
11427 * amd64-fbsd-tdep.c: Fix common/ includes.
11428 * amd64-fbsd-nat.c: Fix common/ includes.
11429 * amd64-dicos-tdep.c: Fix common/ includes.
11430 * amd64-darwin-tdep.c: Fix common/ includes.
11431 * agent.c: Fix common/ includes.
11432 * ada-lang.h: Fix common/ includes.
11433 * ada-lang.c: Fix common/ includes.
11434 * aarch64-tdep.c: Fix common/ includes.
11435
2f5c153e
TT
114362019-01-25 Tom Tromey <tom@tromey.com>
11437
11438 * common/create-version.sh: Use common/version.h.
11439
adc6a863
PA
114402019-01-24 Pedro Alves <palves@redhat.com>
11441
11442 * infrun.c (signal_stop, signal_print, signal_program)
11443 (signal_catch, signal_pass): Now arrays instead of pointers.
11444 (update_signals_program_target, do_target_resume)
11445 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11446 * linux-nat.c (linux_nat_target::pass_signals)
11447 (linux_nat_target::create_inferior, linux_nat_target::attach):
11448 Adjust.
11449 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11450 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11451 * procfs.c (procfs_target::pass_signals): Adjust.
11452 * record-full.c (record_full_target::resume): Adjust.
11453 * remote.c (remote_target::pass_signals)
11454 (remote_target::program_signals): Adjust.
11455 * target-debug.h (target_debug_print_signals): Now takes a
11456 gdb::array_view as parameter. Adjust.
11457 * target.h (target_ops) <pass_signals, program_signals>: Replace
11458 pointer and length parameters with gdb::array_view.
11459 (target_pass_signals, target_program_signals): Likewise.
11460 * target-delegates.c: Regenerate.
11461
3046d67a
PA
114622019-01-24 Pedro Alves <palves@redhat.com>
11463
11464 * common/forward-scope-exit.h
11465 (forward_scope_exit::forward_scope_exit): Pass arguments to
11466 m_bind_function directly, instead of creating a std::bind and
11467 copying that.
11468
353229bf
AH
114692019-01-24 Alan Hayward <alan.hayward@arm.com>
11470
11471 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11472 for static members.
11473 (pass_in_v_vfp_candidate): Likewise.
11474
311dc83a
TT
114752019-01-23 Tom Tromey <tom@tromey.com>
11476 Pedro Alves <palves@redhat.com>
11477
11478 * regcache.c (class regcache_invalidator): Remove.
11479 (regcache::raw_write): Use make_scope_exit.
11480
296bd123
TT
114812019-01-23 Tom Tromey <tom@tromey.com>
11482
11483 * ui-out.h (class ui_out_emit_type): Update comment.
11484
979a0d13
TT
114852019-01-23 Tom Tromey <tom@tromey.com>
11486
11487 * infrun.c (fetch_inferior_event): Update comment.
11488
d238133d
TT
114892019-01-23 Tom Tromey <tom@tromey.com>
11490 Pedro Alves <palves@redhat.com>
11491
11492 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11493 parameter.
11494 (fetch_inferior_event): Use SCOPE_EXIT.
11495
11496
9885e6bb
TT
114972019-01-23 Tom Tromey <tom@tromey.com>
11498 Pedro Alves <palves@redhat.com>
11499
11500 * infrun.c (disable_thread_events): Delete.
11501 (stop_all_threads): Use SCOPE_EXIT.
11502
286526c1
TT
115032019-01-23 Tom Tromey <tom@tromey.com>
11504 Pedro Alves <palves@redhat.com>
11505
11506 * symfile.c: Include forward-scope-exit.h.
11507 (clear_symtab_users_cleanup): Replace forward declaration with
11508 a FORWARD_SCOPE_EXIT.
11509 (syms_from_objfile_1): Use the forward_scope_exit and
11510 gdb::optional instead of cleanup_function.
11511 (reread_symbols): Use the forward_scope_exit instead of
11512 cleanup_function.
11513 (clear_symtab_users_cleanup): Remove function.
11514
1db93f14
TT
115152019-01-23 Tom Tromey <tom@tromey.com>
11516 Pedro Alves <palves@redhat.com>
11517
11518 * linux-nat.c: Include scope-exit.h.
11519 (cleanup_target_stop): Remove.
11520 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11521 SCOPE_EXIT.
11522
2cc83d1e
TT
115232019-01-23 Tom Tromey <tom@tromey.com>
11524 Pedro Alves <palves@redhat.com>
11525
11526 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11527 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11528
694c6bf5
TT
115292019-01-23 Tom Tromey <tom@tromey.com>
11530 Andrew Burgess <andrew.burgess@embecosm.com>
11531 Pedro Alves <palves@redhat.com>
11532
11533 * infrun.c (fetch_inferior_event): Use scope_exit.
11534 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11535 * top.c (execute_command): Use scope_exit.
11536 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11537 * utils.c (do_bpstat_clear_actions_cleanup)
11538 (make_bpstat_clear_actions_cleanup): Remove.
11539
4c41382a
TT
115402019-01-23 Tom Tromey <tom@tromey.com>
11541 Pedro Alves <palves@redhat.com>
11542
11543 * infrun.c: Include "common/scope-exit.h"
11544 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11545 (wait_for_inferior): Use SCOPE_EXIT.
11546 (fetch_inferior_event): Use scope_exit.
11547
89f8fb50
TT
115482019-01-23 Tom Tromey <tom@tromey.com>
11549 Pedro Alves <palves@redhat.com>
11550
11551 * breakpoint.c (create_breakpoint): Remove cleanup.
11552
5419bdae
TT
115532019-01-23 Tom Tromey <tom@tromey.com>
11554 Andrew Burgess <andrew.burgess@embecosm.com>
11555 Pedro Alves <palves@redhat.com>
11556
e587ef42
PA
115572019-01-23 Pedro Alves <palves@redhat.com>
11558
11559 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11560
77f0e74c
PA
115612019-01-23 Pedro Alves <palves@redhat.com>
11562 Andrew Burgess <andrew.burgess@embecosm.com>
11563
11564 * gdbthread.h: Include "common/forward-scope-exit.h".
11565 (scoped_finish_thread_state): Redefine custom class in terms of
11566 forward_scope_exit.
11567
5b9b3e53
PA
115682019-01-23 Pedro Alves <palves@redhat.com>
11569 Andrew Burgess <andrew.burgess@embecosm.com>
11570
11571 * common/forward-scope-exit.h: New file.
11572
54b65c9b
PA
115732019-01-23 Pedro Alves <palves@redhat.com>
11574 Andrew Burgess <andrew.burgess@embecosm.com>
11575 Tom Tromey <tom@tromey.com>
11576
11577 * common/scope-exit.h: New file.
11578
cf08fb29
PA
115792019-01-23 Pedro Alves <palves@redhat.com>
11580
11581 * common/preprocessor.h (ESC): Rename to ...
11582 (ESC_PARENS): ... this.
11583 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11584 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11585
ae73e2e2
TT
115862019-01-23 Tom Tromey <tom@tromey.com>
11587
11588 * language.h (class scoped_switch_to_sym_language_if_auto):
11589 Initialize m_lang in both cases.
11590
6594e122
AH
115912019-01-23 Alan Hayward <alan.hayward@arm.com>
11592
11593 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11594 with XCNEW.
11595
a7c9855d
TT
115962019-01-22 Tom Tromey <tom@tromey.com>
11597
11598 * corelow.c: Do not include sys/file.h.
11599
93cc1d53
TT
116002019-01-22 Tom Tromey <tom@tromey.com>
11601
11602 * tui/tui-wingeneral.h: Include gdb_curses.h.
11603
38561778
TT
116042019-01-22 Tom Tromey <tom@tromey.com>
11605
11606 * source-cache.h (class source_cache) <get_source_lines,
11607 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11608
37b3ab5b
TT
116092019-01-22 Tom Tromey <tom@tromey.com>
11610
11611 * remote-fileio.h (struct remote_target): Declare.
11612
3fabc016
TT
116132019-01-22 Tom Tromey <tom@tromey.com>
11614
11615 * python/py-arch.c: Do not include py-ref.h.
11616 * python/py-bpevent.c: Do not include py-ref.h.
11617 * python/py-cmd.c: Do not include py-ref.h.
11618 * python/py-continueevent.c: Do not include py-ref.h.
11619 * python/py-event.h: Do not include py-ref.h.
11620 * python/py-evtregistry.c: Do not include py-ref.h.
11621 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11622 * python/py-frame.c: Do not include py-ref.h.
11623 * python/py-framefilter.c: Do not include py-ref.h.
11624 * python/py-function.c: Do not include py-ref.h.
11625 * python/py-infevents.c: Do not include py-ref.h.
11626 * python/py-linetable.c: Do not include py-ref.h.
11627 * python/py-objfile.c: Do not include py-ref.h.
11628 * python/py-param.c: Do not include py-ref.h.
11629 * python/py-prettyprint.c: Do not include py-ref.h.
11630 * python/py-progspace.c: Do not include py-ref.h.
11631 * python/py-symbol.c: Do not include py-ref.h.
11632 * python/py-symtab.c: Do not include py-ref.h.
11633 * python/py-type.c: Do not include py-ref.h.
11634 * python/py-unwind.c: Do not include py-ref.h.
11635 * python/py-utils.c: Do not include py-ref.h.
11636 * python/py-value.c: Do not include py-ref.h.
11637 * python/py-varobj.c: Do not include py-ref.h.
11638 * python/py-xmethods.c: Do not include py-ref.h.
11639 * python/python.c: Do not include py-ref.h.
11640 * varobj.c: Do not include py-ref.h.
11641
6b4d7774
TT
116422019-01-22 Tom Tromey <tom@tromey.com>
11643
11644 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11645 keyword for bcache.
11646
7af7e9b5
TT
116472019-01-22 Tom Tromey <tom@tromey.com>
11648
11649 * compile/compile-cplus-types.c: Remove a comment by #include.
11650
951d1049
TT
116512019-01-22 Tom Tromey <tom@tromey.com>
11652
11653 * compile/gcc-c-plugin.h: Include compile-internal.h.
11654
d65d5705
TT
116552019-01-22 Tom Tromey <tom@tromey.com>
11656
11657 * stabsread.c (EXTERN): Do not define.
11658 (symnum, next_symbol_text_func, processing_gcc_compilation)
11659 (within_function, global_sym_chain, global_stabs)
11660 (previous_stab_code, this_object_header_files)
11661 (n_this_object_header_files)
11662 (n_allocated_this_object_header_files): Define.
11663 * stabsread.h (EXTERN): Never define. Use "extern".
11664
b6fb1ee5
PW
116652019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11666
11667 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11668 history_value.
11669
be6d4f74
TT
116702019-01-21 Tom Tromey <tom@tromey.com>
11671
11672 * ui-out.c: Fix includes.
11673 * tui/tui-source.c: Fix includes.
11674 * target.c: Fix includes.
11675 * remote.c: Fix includes.
11676 * regcache.c: Fix includes.
11677 * python/py-block.c: Fix includes.
11678 * printcmd.c: Fix includes.
11679 * or1k-tdep.c: Fix includes.
11680 * mi/mi-main.c: Fix includes.
11681 * m32r-tdep.c: Fix includes.
11682 * csky-tdep.c: Fix includes.
11683 * compile/compile-cplus-types.c: Fix includes.
11684 * cli/cli-interp.c: Fix includes.
11685
73021deb
AH
116862019-01-21 Alan Hayward <alan.hayward@arm.com>
11687
11688 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11689 for padding.
11690
7932255d
TT
116912019-01-16 Tom Tromey <tom@tromey.com>
11692
11693 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11694 earlier.
11695 (struct objfile) <msymbols_range>: Move from top level.
11696 <msymbols>: New method.
11697 (class objfile_msymbols): Remove.
11698 * symtab.c (default_collect_symbol_completion_matches_break_on):
11699 Update.
11700 * symmisc.c (dump_msymbols): Update.
11701 * stabsread.c (scan_file_globals): Update.
11702 * objc-lang.c (info_selectors_command, info_classes_command)
11703 (find_methods): Update.
11704 * minsyms.c (find_solib_trampoline_target): Update.
11705 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11706 * coffread.c (coff_symfile_read): Update.
11707 * ada-lang.c (ada_lookup_simple_minsym)
11708 (ada_collect_symbol_completion_matches): Update.
11709
604b1bfb
TT
117102019-01-16 Tom Tromey <tom@tromey.com>
11711
11712 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11713 type. Remove no-argument constructor.
11714 <iterator::operator++>: Simplify.
11715 <begin>: Update.
11716 <end>: Use minimal_symbol_count.
11717
f252c6d5
TT
117182019-01-16 Tom Tromey <tom@tromey.com>
11719
11720 * objfiles.h (struct objfile) <psymtabs>: New method.
11721 (class objfile_psymtabs): Remove.
11722 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11723 typedef.
11724 <range>: New method.
11725 (require_partial_symbols): Change return type.
11726 * psymtab.c (require_partial_symbols)
11727 (psym_expand_symtabs_matching): Update.
11728 * mdebugread.c (parse_partial_symbols): Update.
11729 * dbxread.c (dbx_end_psymtab): Update.
11730
b669c953
TT
117312019-01-15 Tom Tromey <tom@tromey.com>
11732
11733 * symtab.c (lookup_objfile_from_block)
11734 (lookup_symbol_in_objfile_symtabs)
11735 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11736 (find_line_symtab, info_sources_command)
11737 (default_collect_symbol_completion_matches_break_on)
11738 (make_source_files_completion_list): Update.
11739 * symmisc.c (print_objfile_statistics, dump_objfile)
11740 (maintenance_print_symbols, maintenance_info_symtabs)
11741 (maintenance_check_symtabs, maintenance_info_line_tables):
11742 Update.
11743 * source.c (select_source_symtab)
11744 (forget_cached_source_info_for_objfile): Update.
11745 * objfiles.h (class objfile_compunits): Remove.
11746 (struct objfile) <compunits_range>: New typedef.
11747 (compunits): New method.
11748 * objfiles.c (objfile_relocate1): Update.
11749 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11750 * maint.c (count_symtabs_and_blocks): Update.
11751 * linespec.c (iterate_over_all_matching_symtabs): Update.
11752 * cp-support.c (add_symbol_overload_list_qualified): Update.
11753 * coffread.c (coff_symtab_read): Update.
11754 * ada-lang.c (add_nonlocal_symbols)
11755 (ada_collect_symbol_completion_matches)
11756 (ada_add_global_exceptions): Update.
11757
7e955d83
TT
117582019-01-15 Tom Tromey <tom@tromey.com>
11759
11760 * progspace.h (program_space) <objfiles_safe_range>: New
11761 typedef.
11762 <objfiles_safe>: New method.
11763 * objfiles.h (class all_objfiles_safe): Remove.
11764 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11765 * jit.c (jit_inferior_exit_hook): Update.
11766
2030c079
TT
117672019-01-17 Tom Tromey <tom@tromey.com>
11768
11769 * progspace.h (program_space) <objfiles_range>: New typedef.
11770 <objfiles>: New method.
11771 <objfiles_head>: Rename from objfiles.
11772 (object_files): Update.
11773 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11774 * guile/scm-pretty-print.c
11775 (ppscm_find_pretty_printer_from_objfiles): Update.
11776 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11777 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11778 Update.
11779 * python/py-progspace.c (pspy_get_objfiles): Update.
11780 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11781 Update.
11782 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11783 (objfpy_lookup_objfile_by_build_id): Update.
11784 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11785 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11786 Update.
11787 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11788 (expand_symtab_containing_pc, lookup_objfile_from_block)
11789 (lookup_static_symbol, basic_lookup_transparent_type)
11790 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11791 (find_line_symtab, info_sources_command)
11792 (default_collect_symbol_completion_matches_break_on)
11793 (make_source_files_completion_list, find_main_name): Update.
11794 * symmisc.c (print_symbol_bcache_statistics)
11795 (print_objfile_statistics, maintenance_print_symbols)
11796 (maintenance_print_msymbols, maintenance_print_objfiles)
11797 (maintenance_info_symtabs, maintenance_check_symtabs)
11798 (maintenance_expand_symtabs, maintenance_info_line_tables):
11799 Update.
11800 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11801 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11802 (map_overlay_command, unmap_overlay_command)
11803 (simple_overlay_update, expand_symtabs_matching)
11804 (map_symbol_filenames): Update.
11805 * symfile-debug.c (set_debug_symfile): Update.
11806 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11807 Update.
11808 * source.c (select_source_symtab, forget_cached_source_info):
11809 Update.
11810 * solib.c (solib_read_symbols): Update.
11811 * solib-spu.c (append_ocl_sos): Update.
11812 * psymtab.c (maintenance_print_psymbols)
11813 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11814 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11815 * printcmd.c (info_symbol_command): Update.
11816 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11817 Update.
11818 * objfiles.h (class all_objfiles): Remove.
11819 * objfiles.c (have_partial_symbols, have_full_symbols)
11820 (have_minimal_symbols, qsort_cmp, update_section_map)
11821 (shared_objfile_contains_address_p)
11822 (default_iterate_over_objfiles_in_search_order): Update.
11823 * objc-lang.c (info_selectors_command, info_classes_command)
11824 (find_methods): Update.
11825 * minsyms.c (find_solib_trampoline_target): Update.
11826 * maint.c (maintenance_info_sections)
11827 (maintenance_translate_address, count_symtabs_and_blocks):
11828 Update.
11829 * main.c (captured_main_1): Update.
11830 * linux-thread-db.c (try_thread_db_load_from_pdir)
11831 (has_libpthread): Update.
11832 * linespec.c (iterate_over_all_matching_symtabs)
11833 (search_minsyms_for_name): Update.
11834 * jit.c (jit_find_objf_with_entry_addr): Update.
11835 * hppa-tdep.c (find_unwind_entry)
11836 (hppa_lookup_stub_minimal_symbol): Update.
11837 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11838 Update.
11839 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11840 (elf_gnu_ifunc_resolve_by_got): Update.
11841 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11842 * dwarf-index-write.c (save_gdb_index_command): Update.
11843 * cp-support.c (add_symbol_overload_list_qualified): Update.
11844 * breakpoint.c (create_overlay_event_breakpoint)
11845 (create_longjmp_master_breakpoint)
11846 (create_std_terminate_master_breakpoint)
11847 (create_exception_master_breakpoint): Update.
11848 * blockframe.c (find_pc_partial_function): Update.
11849 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11850 (ada_collect_symbol_completion_matches)
11851 (ada_add_global_exceptions): Update.
11852
776489e0
TT
118532019-01-17 Tom Tromey <tom@tromey.com>
11854
11855 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11856 declare VEC.
11857 (solib_target_parse_libraries): Change return type.
11858 (library_list_start_segment, library_list_start_section)
11859 (library_list_end_library, library_list_start_library); Update.
11860 (solib_target_free_library_list): Remove.
11861 (solib_target_parse_libraries): Remove cleanup. Change return
11862 type.
11863 (solib_target_current_sos): Update.
11864
6471e7d2
TT
118652019-01-17 Tom Tromey <tromey@bapiya>
11866
11867 * valprint.c: Replace "the the" with "the".
11868 * symtab.c: Replace "the the" with "the".
11869 * solib.c: Replace "the the" with "the".
11870 * solib-dsbt.c: Replace "the the" with "the".
11871 * linespec.c: Replace "the the" with "the".
11872 * dwarf2loc.h: Replace "the the" with "the".
11873 * amd64-windows-tdep.c: Replace "the the" with "the".
11874 * aarch64-tdep.c: Replace "the the" with "the".
11875
c24bdb02
KS
118762019-01-16 Keith Seitz <keiths@redhat.com>
11877
11878 PR gdb/23773
11879 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11880 <builder>: Rename to ..
11881 <m_builder>: ... this and make private.
11882 (dwarf2_cu::get_builder): New method. Change all users of
11883 `builder' to use this method.
11884 (dwarf2_start_symtab): Move to ...
11885 (dwarf2_cu::start_symtab): ... here. Update all callers
11886 (setup_type_unit_groups): Move to ...
11887 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11888 callers.
11889 (dwarf2_cu::reset_builder): New method.
11890 (process_full_compunit, process_full_type_unit): Use
11891 dwarf2_cu::reset_builder.
11892 (follow_die_offset): Record the ancestor CU if it is different
11893 from the followed DIE's CU.
11894 (follow_die_sig_1): Likewise.
11895
8d64371b
TT
118962019-01-15 Tom Tromey <tom@tromey.com>
11897
11898 * remote.c (class remote_state) <buf>: Now a char_vector.
11899 <buf_size>: Remove.
11900 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11901 parameter.
11902 (remote_target::getpkt_or_notif_sane_1)
11903 (remote_target::getpkt_sane)
11904 (remote_target::getpkt_or_notif_sane): Likewise.
11905 (class remote_target) <putpkt>: New overload.
11906 (remote_target::read_frame): Change type of "buf_p". Remove
11907 sizeof_p parameter.
11908 (packet_ok): New overload.
11909 (packet_check_result): New overload.
11910 Update all uses.
11911
bb277751
TT
119122019-01-14 Tom Tromey <tom@tromey.com>
11913
11914 * remote-notif.c (handle_notification, remote_notif_ack)
11915 (remote_notif_parse): Make "buf" const.
11916 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11917 const.
11918 (remote_notif_parse, remote_notif_ack, handle_notification):
11919 Likewise.
11920 * remote.c (remote_notif_stop_parse): Make "buf" const.
11921 (remote_target::remote_parse_stop_reply): Make "buf" const.
11922 (remote_notif_stop_ack): Make "buf" const.
11923
05be00a8
TT
119242019-01-14 Tom Tromey <tom@tromey.com>
11925
11926 * remote.c (remote_console_output): Make parameter const.
11927
491adeca
TT
119282019-01-14 Tom Tromey <tom@tromey.com>
11929
11930 * target-debug.h (target_debug_print_signals): Constify.
11931 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11932 * procfs.c (procfs_target::pass_signals): Update.
11933 * linux-nat.c (linux_nat_target::pass_signals): Update.
11934 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11935 * target-delegates.c: Rebuild.
11936 * remote.c (remote_target::program_signals): Update.
11937 (remote_target::pass_signals): Update.
11938 * target.c (target_pass_signals): Constify argument.
11939 (target_program_signals): Likewise.
11940 * target.h (struct target_ops) <pass_signals, program_signals>:
11941 Constify argument.
11942 (target_pass_signals, target_program_signals): Constify argument.
11943
bbd94648
TT
119442019-01-14 Tom Tromey <tom@tromey.com>
11945
11946 PR tui/28819:
11947 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11948
6f072a10
PFC
119492019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11950
11951 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11952 field.
11953 * rs6000-tdep.c: Include reggroups.h.
11954 (IS_V_ALIAS_PSEUDOREG): Define.
11955 (rs6000_register_name): Return names for the "vX" aliases.
11956 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11957 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11958 aliases. Call default_register_reggroup_p for all other
11959 pseudo-registers.
11960 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11961 New functions.
11962 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11963 Handle "vX" aliases.
11964 (v_alias_pseudo_register_collect): New function.
11965 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11966 (rs6000_gdbarch_init): Initialize "vX" aliases as
11967 pseudo-registers. Restore registration of
11968 rs6000_pseudo_register_reggroup_p with
11969 set_tdesc_pseudo_register_reggroup_p.
11970
1a782351
MF
119712019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11972
11973 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11974 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11975 set_gdbarch_num_pseudo_regs.
11976
d73cff18
PW
119772019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11978
11979 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11980 Remove arg prefixname, add do_set and do_show.
11981 Add member functions set_list and show_list.
11982 * cli/cli-style.c (class cli_style_option): Update accordingly.
11983 (style_set_list): Move to file scope.
11984 (style_show_list): Likewise.
11985 (set_style): Call help_list.
11986 (show_style): Call cmd_show_list.
11987 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11988 Update to use the new macro.
11989
60a90376
JB
119902019-10-12 Joel Brobecker <brobecker@adacore.com>
11991
11992 * ada-lang.c (_initialize_ada_language): Expand the help text
11993 for the "catch exception" command.
11994
9d7c67bf
PW
119952019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11996
11997 * symtab.c (matching_obj_sections): Initialize obj,
11998 declare it closer to its usage.
11999
7cf47dc4
TT
120002019-01-10 Tom Tromey <tom@tromey.com>
12001
12002 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12003 (basic_inf_threads_range): Remove.
12004 (inf_threads_range, inf_non_exited_threads_range)
12005 (safe_inf_threads_range): Use next_adapter.
12006
d3cb6808
KS
120072019-01-10 Keith Seitz <keiths@redhat.com>
12008
12009 PR gdb/23712
12010 PR symtab/23010
12011 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12012 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12013
63a20375
KS
120142019-01-10 Keith Seitz <keiths@redhat.com>
12015
12016 PR gdb/23712
12017 PR symtab/23010
12018 * dictionary.c (pending_to_vector): Remove.
12019 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12020 Remove _1 suffix, replacing functions of the same name. Update
12021 all callers.
12022 (dict_create_hashed, dict_create_hashed_expandable)
12023 (dict_create_linear, dict_create_linear_expandable, dict_free)
12024 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12025 Make functions static.
12026
b026f593
KS
120272019-01-10 Keith Seitz <keiths@redhat.com>
12028
12029 PR gdb/23712
12030 PR symtab/23010
12031 * dictionary.h (struct dictionary): Replace declaration with
12032 multidictionary.
12033 (dict_create_hashed, dict_create_hashed_expandable)
12034 (dict_create_linear, dict_create_linear_expandable)
12035 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12036 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12037 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12038 taking multidictionary argument.
12039 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12040 * block.h (struct block) <dict>: Change to multidictionary
12041 and rename `multidict'.
12042 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12043 symmisc.c: Update all dictionary references to multidictionary.
12044
c7748ee9
KS
120452019-01-10 Keith Seitz <keiths@redhat.com>
12046
12047 PR gdb/23712
12048 PR symtab/23010
12049 * dictionary.c: Include unordered_map.
12050 (pending_to_vector): New function.
12051 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12052 Rewrite the non-"_1" functions to take vector instead
12053 of linked list.
12054 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12055 "new" _1 versions of the same name.
12056 (multidictionary): Define.
12057 (std::hash<enum language): New definition.
12058 (collate_pending_symbols_by_language, mdict_create_hashed)
12059 (mdict_create_hashed_expandable, mdict_create_linear)
12060 (mdict_create_linear_expandable, mdict_free)
12061 (find_language_dictionary, create_new_language_dictionary)
12062 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12063 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12064 (mdict_size, mdict_empty): New functions.
12065 * dictionary.h (mdict_iterator): Define.
12066
67aa1f3c
PA
120672019-01-10 Pedro Alves <palves@redhat.com>
12068
12069 * breakpoint.c (read_uploaded_action)
12070 (create_tracepoint_from_upload): Adjust to use
12071 gdb::unique_xmalloc_ptr.
12072 * ctf.c (ctf_write_uploaded_tp):
12073 (SET_ARRAY_FIELD): Use emplace_back.
12074 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12075 * tracefile-tfile.c (tfile_write_uploaded_tp):
12076 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12077 gdb::unique_xmalloc_ptr.
12078 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12079 at_string, cond_string, cmd_strings>: Replace char pointers
12080 with gdb::unique_xmalloc_ptr.
12081
2f667667
PA
120822019-01-10 Pedro Alves <palves@redhat.com>
12083
12084 * solib-target.c (library_list_start_library): Don't xstrdup name.
12085
36cb7237
PA
120862019-01-10 Pedro Alves <palves@redhat.com>
12087
12088 * mdebugread.c (parse_partial_symbols): Use
12089 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12090
da584958
AB
120912019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12092
12093 * linux-fork.c (scoped_switch_fork_info)
12094 <~scoped_switch_fork_info>: Fix incorrect variable name.
12095
1ef8573c
AB
120962019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12097
12098 * linux-fork.c (scoped_switch_fork_info)
12099 <scoped_switch_fork_info>: Make explicit.
12100 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12101
8d7bcccb
TT
121022019-01-10 Tom Tromey <tom@tromey.com>
12103
12104 * objfiles.h (objfile::reset_psymtabs): Update.
12105 * objfiles.c (objfile::objfile): Update.
12106 * psymtab.h (psymtab_storage::obstack): Update.
12107 (psymtab_storage::m_obstack): Use gdb::optional.
12108 (class psymtab_storage): Update comment. Remove objfile
12109 parameter.
12110 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12111
b596a3c7
TT
121122019-01-10 Tom Tromey <tom@tromey.com>
12113
12114 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12115 <free_psymtabs>: Now private.
12116 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12117 (allocate_psymtab): Use new method.
12118
a9342b62
TT
121192019-01-10 Tom Tromey <tom@tromey.com>
12120
12121 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12122 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12123 * mdebugread.c (parse_partial_symbols): Use
12124 allocate_dependencies.
12125 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12126 allocate_dependencies.
12127 (process_psymtab_comp_unit_reader)
12128 (build_type_psymtab_dependencies): Likewise.
12129 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12130
5af70966
TT
121312019-01-10 Tom Tromey <tom@tromey.com>
12132
12133 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12134 PSYMBOL_SET_LANGUAGE.
12135 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12136
5923a04c
TT
121372019-01-10 Tom Tromey <tom@tromey.com>
12138
12139 * psymtab.h (psymtab_storage::obstack): New method.
12140 <m_obstack>: Rename from obstack; now private.
12141 * psymtab.c (psymtab_storage): Update.
12142 * dwarf2read.c (create_addrmap_from_index)
12143 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12144 Update.
12145
6d6a12bf
TT
121462019-01-10 Tom Tromey <tom@tromey.com>
12147
12148 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12149 * objfiles.h (objfile::reset_psymtabs): New method.
12150
d320c2b5
TT
121512019-01-10 Tom Tromey <tom@tromey.com>
12152
12153 * symmisc.c (print_symbol_bcache_statistics): Update.
12154 (print_objfile_statistics): Update.
12155 * symfile.c (reread_symbols): Update.
12156 * psymtab.h (class psymtab_storage): New.
12157 * psymtab.c (psymtab_storage): New constructor.
12158 (~psymtab_storage): New destructor.
12159 (require_partial_symbols): Update.
12160 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12161 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12162 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12163 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12164 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12165 (start_psymtab_common, end_psymtab_common)
12166 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12167 (allocate_psymtab): Update.
12168 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12169 Update.
12170 (dump_psymtab_addrmap, maintenance_print_psymbols)
12171 (maintenance_check_psymtabs): Update.
12172 (class objfile_psymtabs): Move to objfiles.h.
12173 * psympriv.h (discard_psymtab): Now inline.
12174 (psymtab_discarder::psymtab_discarder): Update.
12175 (psymtab_discarder::~psymtab_discarder): Update.
12176 (ALL_OBJFILE_PSYMTABS): Rewrite.
12177 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12178 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12179 Remove fields.
12180 <partial_symtabs>: New field.
12181 (class objfile_psymtabs): Move from psymtab.h. Update.
12182 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12183 psymbol_cache.
12184 (objfile::~objfile): Don't destroy psymbol_cache.
12185 * mdebugread.c (parse_partial_symbols): Update.
12186 * dwarf2read.c (create_addrmap_from_index)
12187 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12188 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12189 (add_partial_subprogram, dwarf2_ranges_read): Update.
12190 * dwarf-index-write.c (write_address_map)
12191 (write_one_signatured_type, recursively_write_psymbols)
12192 (class debug_names, class debug_names, write_psymtabs_to_index):
12193 Update.
12194
1d94a5a3
TT
121952019-01-10 Tom Tromey <tom@tromey.com>
12196
12197 * symtab.h (SYMBOL_SET_NAMES): Update.
12198 (symbol_set_names): Update.
12199 (MSYMBOL_SET_NAMES): Update.
12200 * symtab.c (symbol_set_names): Change argument to be an
12201 objfile_per_bfd_storage.
12202 * psymtab.c (add_psymbol_to_bcache): Update.
12203 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12204
0f14768a
TT
122052019-01-10 Tom Tromey <tom@tromey.com>
12206
12207 * symtab.c (create_demangled_names_hash): Change argument to be an
12208 objfile_per_bfd_storage.
12209 (symbol_set_names): Update.
12210
6eee24ce
TT
122112019-01-10 Tom Tromey <tom@tromey.com>
12212
12213 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12214 init_psymbol_list.
12215 * psymtab.c (init_psymbol_list): Do nothing if already called.
12216 * psympriv.h (init_psymbol_list): Add comment.
12217 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12218 init_psymbol_list.
12219 * dbxread.c (dbx_symfile_read): Unconditionally call
12220 init_psymbol_list.
12221
75aedd27
TT
122222019-01-10 Tom Tromey <tom@tromey.com>
12223
12224 * xcoffread.c (scan_xcoff_symtab): Update.
12225 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12226 "where".
12227 * mdebugread.c (parse_partial_symbols)
12228 (handle_psymbol_enumerators): Update.
12229 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12230 * dbxread.c (read_dbx_symtab): Update.
12231 * psympriv.h (psymbol_placement): New enum.
12232 (add_psymbol_to_list): Update.
12233
939652a5
TT
122342019-01-10 Tom Tromey <tom@tromey.com>
12235
12236 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12237 static_psymbols parameters.
12238 (scan_xcoff_symtab): Update.
12239 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12240 static_psymbols parameters.
12241 * psympriv.h (start_psymtab_common): Update.
12242 * mdebugread.c (parse_partial_symbols): Update.
12243 * dwarf2read.c (create_partial_symtab): Update.
12244 * dbxread.c (read_dbx_symtab): Update.
12245 (start_psymtab): Remove global_psymbols and static_psymbols
12246 parameters.
12247
baa62830
TT
122482019-01-10 Tom Tromey <tom@tromey.com>
12249
12250 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12251 * psymtab.c (allocate_psymtab): Add comment.
12252 * psympriv.h (allocate_psymtab): Add comment.
12253 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12254 initializations.
12255 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12256
0e8f53ba
TT
122572019-01-10 Tom Tromey <tom@tromey.com>
12258
12259 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12260 Don't declare.
12261 * mipsread.c: Include mdebugread.h.
12262 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12263 Declare.
12264 * elfread.c: Include mdebugread.h.
12265
b22a7c6a
TT
122662019-01-09 Tom Tromey <tom@tromey.com>
12267
12268 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12269 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12270 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12271 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12272 (psym_lookup_symbol, psym_find_last_source_symtab)
12273 (psym_forget_cached_source_info, psym_print_stats)
12274 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12275 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12276 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12277 (psym_find_compunit_symtab_by_address)
12278 (maintenance_print_psymbols, maintenance_info_psymtabs)
12279 (maintenance_check_psymtabs): Use ranged for.
12280 * psymtab.h (class objfile_psymtabs): New.
12281 (require_partial_symbols): Return objfile_psymtabs.
12282 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12283
3b9d3ac2
TT
122842019-01-09 Tom Tromey <tom@tromey.com>
12285
12286 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12287 (find_pc_mapped_section, list_overlays_command)
12288 (map_overlay_command, unmap_overlay_command)
12289 (simple_overlay_update): Use all_objfiles.
12290 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12291 * printcmd.c (info_symbol_command): Use all_objfiles.
12292 * objfiles.h (ALL_OBJSECTIONS): Remove.
12293 * maint.c (maintenance_translate_address): Use all_objfiles.
12294 * gcore.c (gcore_create_callback): Use all_objfiles.
12295 (objfile_find_memory_regions): Likewise.
12296
8b31193a
TT
122972019-01-09 Tom Tromey <tom@tromey.com>
12298
12299 * symtab.c (find_line_symtab, info_sources_command)
12300 (make_source_files_completion_list): Use objfile_compunits.
12301 * source.c (select_source_symtab): Use objfile_compunits.
12302 * objfiles.h (struct objfile): Update comment.
12303 (ALL_OBJFILES): Remove.
12304 (ALL_FILETABS): Remove.
12305 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12306 objfile_compunits.
12307
d5da8b3c
TT
123082019-01-09 Tom Tromey <tom@tromey.com>
12309
12310 * symmisc.c (print_objfile_statistics, dump_objfile)
12311 (maintenance_print_symbols): Use compunit_filetabs.
12312 * source.c (forget_cached_source_info_for_objfile): Use
12313 compunit_filetabs.
12314 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12315 (ALL_FILETABS): Use compunit_filetabs.
12316 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12317 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12318
5accd1a0
TT
123192019-01-09 Tom Tromey <tom@tromey.com>
12320
12321 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12322 (compunit_filetabs): New.
12323 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12324 compunit_filetabs.
12325 (info_sources_command, make_source_files_completion_list): Remove
12326 declaration.
12327 * symmisc.c (print_objfile_statistics, dump_objfile)
12328 (maintenance_print_symbols): Remove declaration.
12329 (maintenance_info_symtabs): Use compunit_filetabs.
12330 (maintenance_info_line_tables): Likewise.
12331 * source.c (select_source_symtab): Change local variable name.
12332 (forget_cached_source_info_for_objfile): Remove declaration.
12333 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12334 * objfiles.c (objfile_relocate1): Remove declaration.
12335 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12336 declaration.
12337 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12338 * coffread.c (coff_symtab_read): Remove declaration.
12339 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12340 compunit_filetabs.
12341
d8aeb77f
TT
123422019-01-09 Tom Tromey <tom@tromey.com>
12343
12344 * symtab.c (lookup_objfile_from_block)
12345 (find_pc_sect_compunit_symtab, search_symbols)
12346 (default_collect_symbol_completion_matches_break_on): Use
12347 objfile_compunits.
12348 * objfiles.h (ALL_COMPUNITS): Remove.
12349 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12350 * cp-support.c (add_symbol_overload_list_qualified): Use
12351 objfile_compunits.
12352 * ada-lang.c (ada_collect_symbol_completion_matches)
12353 (ada_add_global_exceptions): Use objfile_compunits.
12354
592553c4
TT
123552019-01-09 Tom Tromey <tom@tromey.com>
12356
12357 * source.c (select_source_symtab)
12358 (forget_cached_source_info_for_objfile): Remove declaration.
12359 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12360 declaration.
12361 * maint.c (count_symtabs_and_blocks): Remove declaration.
12362 * cp-support.c (add_symbol_overload_list_qualified): Remove
12363 declaration.
12364 * coffread.c (coff_symtab_read): Remove declaration.
12365 * symtab.c (lookup_symbol_in_objfile_symtabs)
12366 (basic_lookup_transparent_type_1): Use objfile_compunits.
12367 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12368 (info_sources_command, search_symbols)
12369 (default_collect_symbol_completion_matches_break_on)
12370 (make_source_files_completion_list): Remove declaration.
12371 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12372 (ada_collect_symbol_completion_matches)
12373 (ada_add_global_exceptions): Remove declaration.
12374 * linespec.c (iterate_over_all_matching_symtabs): Use
12375 objfile_compunits.
12376 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12377 (class objfile_compunits): New.
12378 (ALL_COMPUNITS): Use objfile_compunits.
12379 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12380 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12381 objfile_compunits.
12382 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12383
5325b9bf
TT
123842019-01-09 Tom Tromey <tom@tromey.com>
12385
12386 * symtab.c (search_symbols)
12387 (default_collect_symbol_completion_matches_break_on): Use
12388 objfile_msymbols.
12389 * ada-lang.c (ada_lookup_simple_minsym)
12390 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12391 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12392 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12393 objfile_msymbols.
12394 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12395 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12396 * objc-lang.c (find_methods): Use objfile_msymbols.
12397 (info_selectors_command, info_classes_command): Likewise.
12398 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12399 * objfiles.h (class objfile_msymbols): New.
12400 (ALL_OBJFILE_MSYMBOLS): Remove.
12401 (ALL_MSYMBOLS): Remove.
12402
cac85af2
TT
124032019-01-09 Tom Tromey <tom@tromey.com>
12404
12405 * common/next-iterator.h (next_adapter): Add Iterator template
12406 parameter.
12407 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12408 (class all_objfiles_safe): New.
12409 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12410 * objfiles.c (put_objfile_before): Update comment.
12411 (add_separate_debug_objfile): Likewise.
12412 (free_all_objfiles): Use all_objfiles_safe.
12413 (objfile_purge_solibs): Likewise.
12414
aed57c53
TT
124152019-01-09 Tom Tromey <tom@tromey.com>
12416
12417 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12418 (expand_symtab_containing_pc, lookup_static_symbol)
12419 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12420 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12421 all_objfiles.
12422 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12423 * breakpoint.c (create_overlay_event_breakpoint)
12424 (create_longjmp_master_breakpoint)
12425 (create_std_terminate_master_breakpoint)
12426 (create_exception_master_breakpoint): Use all_objfiles.
12427 * linux-thread-db.c (try_thread_db_load_from_pdir)
12428 (has_libpthread): Use all_objfiles.
12429 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12430 * linespec.c (iterate_over_all_matching_symtabs)
12431 (search_minsyms_for_name): Use all_objfiles.
12432 * maint.c (maintenance_info_sections): Use all_objfiles.
12433 * main.c (captured_main_1): Use all_objfiles.
12434 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12435 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12436 * guile/scm-pretty-print.c
12437 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12438 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12439 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12440 (maintenance_print_msymbols): Use all_objfiles.
12441 * source.c (select_source_symtab): Use all_objfiles.
12442 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12443 * symfile.c (remove_symbol_file_command)
12444 (expand_symtabs_matching, map_symbol_filenames): Use
12445 all_objfiles.
12446 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12447 all_objfiles.
12448 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12449 * objc-lang.c (find_methods): Use all_objfiles.
12450 * objfiles.c (have_partial_symbols, have_full_symbols)
12451 (have_minimal_symbols, qsort_cmp)
12452 (default_iterate_over_objfiles_in_search_order): Use
12453 all_objfiles.
12454 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12455 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12456 (maintenance_check_psymtabs): Use all_objfiles.
12457 (ALL_PSYMTABS): Remove.
12458 * compile/compile-object-run.c (do_module_cleanup): Use
12459 all_objfiles.
12460 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12461 * cp-support.c (add_symbol_overload_list_qualified): Use
12462 all_objfiles.
12463 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12464 Use all_objfiles.
12465 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12466 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12467 all_objfiles.
12468 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12469 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12470 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12471 Uses all_objfiles.
12472 * solib.c (solib_read_symbols): Use all_objfiles
12473
99d89cde
TT
124742019-01-09 Tom Tromey <tom@tromey.com>
12475
12476 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12477 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12478 all_objfiles.
12479 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12480 * symmisc.c (print_symbol_bcache_statistics)
12481 (print_objfile_statistics, maintenance_print_objfiles)
12482 (maintenance_info_symtabs, maintenance_check_symtabs)
12483 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12484 all_objfiles.
12485 * source.c (forget_cached_source_info): Use all_objfiles.
12486 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12487 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12488 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12489 * objfiles.c (update_section_map): Use all_objfiles.
12490 (shared_objfile_contains_address_p): Likewise.
12491 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12492 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12493
21708325
TT
124942019-01-09 Tom Tromey <tom@tromey.com>
12495
12496 * common/next-iterator.h: New file.
12497 * objfiles.h (class all_objfiles): New.
12498 (struct objfile_iterator): New.
12499
669e09f6
PW
125002019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12501
12502 * NEWS: Move the description of the changed "frame", "select-frame",
12503 and "info frame" commands to the Changed commands section.
12504
041be526
SM
125052019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12506
12507 * gdbtypes.c (check_stub_method_group): Remove handling of old
12508 mangling schemes.
12509 * linespec.c (find_methods): Likewise.
12510 * stabsread.c (read_member_functions): Likewise.
12511 * valops.c (search_struct_method): Likewise.
12512 (value_struct_elt_for_reference): Likewise.
12513 * NEWS: Mention this change.
12514
0e2a2133
AB
125152019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12516
12517 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12518 print_source_lines.
12519 * source.c (print_source_lines_base): Update line number check.
12520 (print_source_lines): New function.
12521 (source_lines_range::source_lines_range): New function.
12522 * source.h (class source_lines_range): New class.
12523 (print_source_lines): New declaration.
12524
1055a3b4
PW
125252019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12526
12527 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12528
cfeadda5
TT
125292019-01-08 Tom Tromey <tom@tromey.com>
12530 Simon Marchi <simon.marchi@ericsson.com>
12531
12532 PR gdb/24060
12533 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12534 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12535 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12536 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12537 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12538 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12539
583068ca
AB
125402019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12541
12542 * source.c (select_source_symtab): Move header comment to
12543 declaration in source.h.
12544 (forget_cached_source_info_for_objfile): Likewise.
12545 (forget_cached_source_info): Likewise.
12546 (identify_source_line): Likewise.
12547 * source.h (identify_source_line): Move declaration from symtab.h
12548 and add comment from source.c
12549 (print_source_lines): Likewise.
12550 (forget_cached_source_info_for_objfile): Likewise.
12551 (forget_cached_source_info): Likewise.
12552 (select_source_symtab): Likewise.
12553 (enum print_source_lines_flag): Move definition from symtab.h.
12554 * symtab.h (identify_source_line): Move declaration to source.h.
12555 (print_source_lines): Likewise.
12556 (forget_cached_source_info_for_objfile): Likewise.
12557 (forget_cached_source_info): Likewise.
12558 (select_source_symtab): Likewise.
12559 (enum print_source_lines_flag): Move definition to source.h.
12560 * tui/tui-hooks.c: Add 'source.h' include.
12561
ec98a4ad
AB
125622019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12563
12564 * source.c (print_source_lines_base): Handle requests to print
12565 reverse line number sequences, and guard against empty lines
12566 string.
12567
62ea19c1
AB
125682019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12569
12570 * source.c (print_source_lines_base): Fix skip of '\r' if next
12571 character is '\n'.
12572
9d30e1fd
TT
125732019-01-06 Tom Tromey <tom@tromey.com>
12574
12575 * c-exp.y (struct c_parse_state) <macro_original_text,
12576 expansion_obstack>: New member.
12577 (macro_original_text, expansion_obstack): Remove globals.
12578 (scan_macro_expansion, scanning_macro_expansion)
12579 (finished_macro_expansion): Update.
12580 (scan_macro_cleanup): Remove.
12581 (yylex, c_parse): Update.
12582
c65bac38
TT
125832019-01-06 Tom Tromey <tom@tromey.com>
12584
12585 * c-exp.y (struct c_parse_state) <strings>: New member.
12586 (operator_stoken): Update.
12587
02e12e38
TT
125882019-01-06 Tom Tromey <tom@tromey.com>
12589
12590 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12591 (union type_stack_elt) <typelist_val>: Now a pointer to
12592 std::vector.
12593 (type_stack_cleanup): Don't declare.
12594 (push_typelist): Update.
12595 * parse.c (pop_typelist): Return a std::vector.
12596 (push_typelist): Take a std::vector.
12597 (follow_types): Update. Do not free args.
12598 (type_stack_cleanup): Remove.
12599 * c-exp.y (struct c_parse_state): New.
12600 (cpstate): New global.
12601 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12602 (nonempty_typelist): Update.
12603 (func_mod): Create a new vector.
12604 (c_parse): Create a c_parse_state.
12605 (check_parameter_typelist): Do not delete params.
12606 (function_method): Update. Do not delete type_list.
12607
f097f5ad
TT
126082019-01-06 Tom Tromey <tom@tromey.com>
12609
12610 PR gdb/28155:
12611 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12612 check_typedef.
12613 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12614 (print_return_value): Likewise.
12615
d2adf9f1
TT
126162019-01-05 Tom Tromey <tom@tromey.com>
12617
12618 * contrib/cleanup_check.py: Remove.
12619 * contrib/gcc-with-excheck: Remove.
12620 * contrib/exsummary.py: Remove.
12621 * contrib/excheck.py: Remove.
12622
2eab46b1
JB
126232019-01-05 Joel Brobecker <brobecker@adacore.com>
12624
12625 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12626 NULL. Initialize tpprev to NULL instead of assigning it
12627 to NULL on the next statement.
12628 * windows-nat.c (windows_delete_thread): Remove check for
12629 main_thread_id before printing thread exit notifications.
12630 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12631 Remove thread ID check against main_thread_id.
12632 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12633 windows_delete_thread.
12634 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12635
48c5e7e2
TT
126362019-01-04 Tom Tromey <tom@tromey.com>
12637
12638 * compile/compile.c (_initialize_compile): Use upper case for
12639 metasyntactic variables.
12640 * symmisc.c (_initialize_symmisc): Use upper case for
12641 metasyntactic variables.
12642 * psymtab.c (_initialize_psymtab): Use upper case for
12643 metasyntactic variables.
12644 * demangle.c (demangle_command): Use upper case for metasyntactic
12645 variables.
12646 (_initialize_demangler): Likewise.
12647 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12648 variables.
12649
986041cd
TT
126502019-01-03 Tom Tromey <tom@tromey.com>
12651
12652 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12653
7c711119
TT
126542019-01-03 Tom Tromey <tom@tromey.com>
12655
12656 * python/py-symtab.c (salpy_str): Update.
12657 (struct salpy_sal_object) <symtab>: Now a PyObject.
12658 (salpy_dealloc): Update.
12659 (del_objfile_sal): Use gdbpy_ref.
12660
1b20edf0
TT
126612019-01-03 Tom Tromey <tom@tromey.com>
12662
12663 * python/py-type.c (convert_field): Use new_reference. Return
12664 gdbpy_ref.
12665 (make_fielditem): Return gdbpy_ref.
12666 (typy_fields): Update.
12667 (typy_getitem): Update.
12668 (field_name): Return gdbpy_ref. Use new_reference.
12669 (typy_iterator_iternext): Update.
12670
ea41325b
TT
126712019-01-03 Tom Tromey <tom@tromey.com>
12672
12673 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12674
2a3c71d6
TT
126752019-01-03 Tom Tromey <tom@tromey.com>
12676
12677 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12678 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12679 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12680 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12681 (pspy_set_type_printers): Likewise.
12682 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12683 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12684 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12685 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12686 (objfpy_set_type_printers): Likewise.
12687
5c329e6a
TT
126882019-01-03 Tom Tromey <tom@tromey.com>
12689
12690 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12691 (gdbpy_print_stack): Use gdbpy_err_fetch.
12692 * python/python-internal.h (class gdbpy_err_fetch): New class.
12693 (class gdbpy_enter) <m_error_type, m_error_value,
12694 m_error_traceback>: Remove.
12695 <m_error>: New member.
12696 (gdbpy_exception_to_string): Don't declare.
12697 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12698 * python/py-value.c (convert_value_from_python): Use
12699 gdbpy_err_fetch.
12700 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12701 gdbpy_exception_to_string.
12702 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12703 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12704 gdbpy_err_fetch.
12705
169bb27b
AB
127062019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12707
12708 * linux-nat.c (delete_lwp_cleanup): Delete.
12709 (struct lwp_deleter): New struct.
12710 (lwp_info_up): New typedef.
12711 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12712 lwp_info_up.
12713
a07c8880
AB
127142019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12715
12716 * linux-fork.c (class scoped_switch_fork_info): New class.
12717 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12718
26089c49
AB
127192019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12720
12721 * valops.c (find_overload_match): Remove use of null_cleanup, and
12722 calls to do_cleanups.
12723
06d3e5b0
AB
127242019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12725
12726 * compile/compile-cplus-types.c
12727 (compile_cplus_instance::decl_name): Handle changes to
12728 cp_func_name.
12729 * cp-support.c (cp_func_name): Update header comment, update
12730 return type.
12731 * cp-support.h (cp_func_name): Update return type in declaration.
12732 * valops.c (find_overload_match): Move temp_func local to top
12733 level of function and change its type. Use temp_func to hold and
12734 delete temporary string obtained from cp_func_name.
12735
66644cd3
AB
127362019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12737
12738 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12739 gdb::char_vector, remove cleanup, and update uses of `msg`.
12740
592d8c0a
JW
127412019-01-03 Jim Wilson <jimw@sifive.com>
12742
12743 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12744
c55d06ec
TT
127452019-01-02 Tom Tromey <tom@tromey.com>
12746
12747 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12748 (tdesc_parse_xml): Remove cleanups.
12749 * target-descriptions.h (make_cleanup_free_target_description):
12750 Don't declare.
12751 (target_desc_deleter): New struct.
12752 (target_desc_up): New typedef.
12753 * target-descriptions.c (target_desc_deleter::operator()): Rename
12754 from free_target_description.
12755 (make_cleanup_free_target_description): Remove.
12756
3a6ae42d
TT
127572019-01-02 Tom Tromey <tom@tromey.com>
12758
12759 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12760 constructor, destructor.
12761 (linespec_parser): Remove typedef.
12762 (~linespec_parser): Rename from linespec_parser_delete.
12763 (linespec_lex_to_end, linespec_complete_label)
12764 (linespec_complete): Update.
12765 (decode_line_full): Remove cleanups.
12766 (decode_line_1): Update.
12767
61fd3e73
TT
127682019-01-02 Tom Tromey <tom@tromey.com>
12769
12770 * python/python-internal.h (inferior_to_inferior_object): Change
12771 return type.
12772 * python/py-exitedevent.c (create_exited_event_object): Update.
12773 * python/py-inferior.c (inferior_to_inferior_object): Return
12774 gdbpy_ref.
12775 (python_new_inferior, python_inferior_deleted)
12776 (thread_to_thread_object, delete_thread_object)
12777 (build_inferior_list, gdbpy_selected_inferior): Update.
12778 * python/py-infthread.c (create_thread_object): Update. Also fail
12779 if inferior_to_inferior_object fails.
12780
d20172fc
SM
127812019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12782
12783 * inferior.h (class inferior) <displaced_step_state>: New field.
12784 * infrun.h (struct displaced_step_state): Move here from
12785 infrun.c. Initialize fields, add constructor.
12786 <inf>: Remove field.
12787 <reset>: New method.
12788 * infrun.c (struct displaced_step_inferior_state): Move to
12789 infrun.h.
12790 (displaced_step_inferior_states): Remove.
12791 (get_displaced_stepping_state): Adust.
12792 (displaced_step_in_progress_any_inferior): Adjust.
12793 (displaced_step_in_progress_thread): Adjust.
12794 (displaced_step_in_progress): Adjust.
12795 (add_displaced_stepping_state): Remove.
12796 (get_displaced_step_closure_by_addr): Adjust.
12797 (remove_displaced_stepping_state): Remove.
12798 (infrun_inferior_exit): Call displaced_step_state.reset.
12799 (use_displaced_stepping): Don't check for NULL.
12800 (displaced_step_prepare_throw): Call
12801 get_displaced_stepping_state.
12802 (displaced_step_fixup): Don't check for NULL.
12803 (prepare_for_detach): Don't check for NULL.
12804
e3319240
PW
128052019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12806
12807 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12808 in case of call that did not complete.
12809
5d36dfb9
AU
128102019-01-02 Andrey Utkin <autkin@undo.io>
12811
12812 * symfile.c (find_separate_debug_file): Fix search of debug files for
12813 remote debuggee.
12814
8833fbf0
TT
128152019-01-02 Tom Tromey <tom@tromey.com>
12816
12817 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12818 indentation.
12819 * python/py-frame.c (frapy_older): Remove cast.
12820 (frapy_newer): Likewise.
12821 * python/py-breakpoint.c (local_setattro): Remove cast.
12822 * python/py-arch.c (archpy_name): Remove local variable.
12823 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12824
4ada3dfd
JB
128252019-01-02 Joel Brobecker <brobecker@adacore.com>
12826
12827 * unittests/basic_string_view/element_access/char/empty.cc:
12828 Fix year range in copyright header.
12829
113b7b81
AB
128302019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12831
12832 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12833 Delete.
12834 <operator==>: Update with for removed field.
12835 <hash>: Likewise.
12836 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12837 <isa_features>: ...this.
12838 <abi_features>: New field.
12839 (riscv_isa_flen): Update comment.
12840 (riscv_abi_xlen): New declaration.
12841 (riscv_abi_flen): New declaration.
12842 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12843 isa_features.
12844 (riscv_abi_xlen): New function.
12845 (riscv_isa_flen): Update to get answer from isa_features.
12846 (riscv_abi_flen): New function.
12847 (riscv_has_fp_abi): Update to get answer from abi_features.
12848 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12849 xlen and flen.
12850 (riscv_call_info) <xlen, flen>: Update comment.
12851 (riscv_call_arg_struct): Remove invalid assertions
12852 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12853 is removed.
12854 (riscv_gdbarch_init): Gather isa features and abi features
12855 separately, ensure both match on the gdbarch when reusing an old
12856 gdbarch. Relax an error check to allow 32-bit abi float to run on
12857 a target with 64-bit float hardware.
12858
b18ca514
PW
128592019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12860
12861 * source.c (search_command_helper): Stop reverse search
12862 when line 1 has been searched.
12863
ec70d8db
PW
128642019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12865
12866 * record-full.c (record_full_base_target::close): Rewrite
12867 record_full_core_buf_list free logic.
12868
5b38f9c1
PW
128692019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12870
12871 * break-catch-syscall.c (print_one_catch_syscall): xfree
12872 the last text.
12873
66d91b39
JB
128742019-01-01 Joel Brobecker <brobecker@adacore.com>
12875
12876 * top.c (print_gdb_version): Update Copyright year in version
12877 message.
12878
42a4f53d
JB
128792019-01-01 Joel Brobecker <brobecker@adacore.com>
12880
12881 Update copyright year range in all GDB files.
12882
7e955d83 128832019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12884
5bbd631d 12885 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12886
5bbd631d 12887For older changes see ChangeLog-2018.
c906108c
SS
12888\f
12889Local Variables:
12890mode: change-log
12891left-margin: 8
12892fill-column: 74
12893version-control: never
57da7796 12894coding: utf-8
c906108c 12895End:
5bbd631d 12896
This page took 2.969728 seconds and 4 git commands to generate.