]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
sim: Add PRU simulator port
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ddd44b70
DD
12019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2
3 * NEWS: Mention new simulator port for PRU.
4
f945dedf
CB
52019-09-23 Christian Biesinger <cbiesinger@google.com>
6
7 * ada-exp.y (write_object_remaining): Update.
8 * ada-lang.c (ada_decode): Return a std::string instead of a char*
9 and eliminate the static buffer.
10 (ada_decode_symbol): Update.
11 (ada_la_decode): Update.
12 (ada_sniff_from_mangled_name): Update.
13 (is_valid_name_for_wild_match): Update.
14 (ada_lookup_name_info::matches): Update and simplify.
15 (name_matches_regex): Update.
16 (ada_add_global_exceptions): Update.
17 * ada-lang.h (ada_decode): Update signature.
18 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
19 * dwarf-index-write.c (debug_names::insert): Update.
20
7ab78ccb
SM
212019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
24 formatting.
25
9252448b
SM
262019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
29 Change "nonzero" to "true" in documentation.
30
626ca2c0
CB
312019-09-20 Christian Biesinger <cbiesinger@google.com>
32
33 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
34 (_initialize_darwin_solib): Don't set
35 darwin_so_ops.lookup_lib_global_symbol.
36 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
37 set_gdbarch_iterate_over_objfiles_in_search_order.
38 (elf_lookup_lib_symbol): Rename to...
39 (svr4_iterate_over_objfiles_in_search_order): this, and update
40 to iterate semantics.
41 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
42 * solib.c (solib_global_lookup): Remove.
43 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
44 (solib_global_lookup): Remove.
45 * symtab.c (lookup_global_or_static_symbol): Remove call to
46 solib_global_lookup.
47
5a3a0d63
JB
482019-09-20 Joel Brobecker <brobecker@adacore.com>
49
50 * NEWS: Move entries about default MI version now being
51 version 3, and about the GDB/MI fix for multi-location
52 breakpoints to the "since GDB 8.3" section.
53
ffea1427
JB
542019-09-20 Joel Brobecker <brobecker@adacore.com>
55
56 GDB 8.3.1 released.
57
abf516c6
UW
582019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
59
60 * NEWS: Mention that Cell/B.E. debugging support was removed.
61 * MAINTAINERS: Remove spu target.
62
63 * config/djgpp/fnchange.lst: Remove entries for removed files.
64
65 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
66 spu-multiarch.o, and spu-tdep.o.
67 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
68 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
69 spu-multiarch.c, and spu-tdep.c.
70 * spu-linux-nat.c: Remove file.
71 * spu-multiarch.c: Remove file.
72 * spu-tdep.c: Remove file.
73 * spu-tdep.h: Remove file.
74 * solib-spu.c: Remove file.
75 * solib-spu.h: Remove file.
76
77 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
78 * configure.nat (spu-linux): Remove.
79 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
80 solib-multiarch.o from gdb_target_obs.
81 (spu*-*-*): Remove.
82
83 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
84 feature flag.
85 (ppc_linux_no_features): Update.
86 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
87 Cell/B.E. support.
88 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
89 (tdesc_powerpc_cell64l): Likewise.
90 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
91 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
92 Cell/B.E. support.
93 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
94 Do not include "features/rs6000/powerpc-cell32l.c" or
95 "features/rs6000/powerpc-cell64l.c".
96 (ppc_linux_spu_section): Remove.
97 (ppc_linux_core_read_description): Remove Cell/B.E. support.
98 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
99 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
100 (ppc_linux_spe_context_lookup): Remove.
101 (ppc_linux_spe_context_inferior_created): Remove.
102 (ppc_linux_spe_context_solib_loaded): Remove.
103 (ppc_linux_spe_context_solib_unloaded): Remove.
104 (ppc_linux_spe_context): Remove.
105 (struct ppu2spu_cache): Remove.
106 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
107 (struct ppu2spu_data): Remove.
108 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
109 ppu2spu_unwind): Remove.
110 (ppc_linux_init_abi): Remove Cell/B.E. support.
111 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
112
113 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
114 (rs6000/powerpc-cell64l-expedite): Likewise
115 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
116 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
117 rs6000/powerpc-cell64l.xml.
118 * features/rs6000/powerpc-cell32l.xml: Remove.
119 * features/rs6000/powerpc-cell64l.xml: Likewise.
120 * features/rs6000/powerpc-cell32l.c: Remove generated file.
121 * features/rs6000/powerpc-cell64l.c: Likewise.
122 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
123 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
124 * regformats/reg-spu.dat: Remove.
125
126 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
127 * corelow.c (struct spuid_list): Remove.
128 (add_to_spuid_list): Remove.
129 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
130 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
131 (remote_protocol_features): Remove associated entries.
132 (_initialize_remote): No longer initialize them.
133 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
134 * linux-nat.c (SPUFS_MAGIC): Remove.
135 (linux_proc_xfer_spu): Remove.
136 (spu_enumerate_spu_ids): Remove.
137 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
138 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
139 (linux_make_corefile_notes): No longer call it.
140
141 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
142 (cooked_write_test): Likewise.
143
78e8cb91
TT
1442019-09-20 Tom Tromey <tom@tromey.com>
145
146 * NEWS: Mention case-sensitivity of TUI commands.
147 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
148 (tui_set_win_height_command, parse_scrolling_args): Likewise.
149 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
150
f074b67e
TT
1512019-09-20 Tom Tromey <tom@tromey.com>
152
153 * tui/tui-source.c (tui_source_window::set_contents): Use
154 make_unique_xstrdup.
155 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
156 make_unique_xstrdup.
157
63c4bf19
TT
1582019-09-20 Tom Tromey <tom@tromey.com>
159
160 * tui/tui-data.c: Remove separator comments.
161 * tui/tui-layout.c: Remove separator comments.
162 * tui/tui-win.c: Remove separator comments.
163 * tui/tui-wingeneral.c: Remove separator comments.
164
43df9b2f
TT
1652019-09-20 Tom Tromey <tom@tromey.com>
166
167 * tui/tui.h (strcat_to_buf): Don't declare.
168 * tui/tui.c (strcat_to_buf): Remove.
169
7226433c
TT
1702019-09-20 Tom Tromey <tom@tromey.com>
171
172 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
173 from "fullname".
174 * tui/tui-source.c (tui_source_window::set_contents)
175 (tui_source_window::location_matches_p)
176 (tui_source_window::maybe_update): Update.
177
80df3337
TT
1782019-09-20 Tom Tromey <tom@tromey.com>
179
180 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
181 Update.
182 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
183 prefix.
184 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
185 (tui_data_window::line_from_reg_element_no)
186 (tui_data_window::first_reg_element_no_inline)
187 (tui_data_window::show_registers)
188 (tui_data_window::show_register_group)
189 (tui_data_window::display_registers_from)
190 (tui_data_window::display_registers_from_line)
191 (tui_data_window::first_data_item_displayed)
192 (tui_data_window::delete_data_content_windows)
193 (tui_data_window::erase_data_content)
194 (tui_data_window::do_scroll_vertical)
195 (tui_data_window::refresh_window)
196 (tui_data_window::check_register_values): Update.
197
9923f347
TT
1982019-09-20 Tom Tromey <tom@tromey.com>
199
200 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
201 (struct tui_locator_window) <full_name, proc_name>: Now
202 std::string.
203 * tui/tui-stack.c (tui_locator_window::make_status_line)
204 (tui_locator_window::set_locator_fullname)
205 (tui_locator_window::set_locator_info): Update.
206 * tui/tui-source.c (tui_source_window::set_contents)
207 (tui_source_window::showing_source_p): Update.
208
b76251ab
TT
2092019-09-20 Tom Tromey <tom@tromey.com>
210
211 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
212 Don't call tui_locator_win_info_ptr.
213
0891be08
TT
2142019-09-20 Tom Tromey <tom@tromey.com>
215
216 * tui/tui-win.c (tui_resize_all): Don't call refresh.
217
1b935acf
TT
2182019-09-20 Tom Tromey <tom@tromey.com>
219
220 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
221 height for locator.
222 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
223 * tui/tui-layout.c (show_source_disasm_command, show_data)
224 (show_source_or_disasm_and_command): Use 1 as height for locator.
225
9abd8a65
TT
2262019-09-20 Tom Tromey <tom@tromey.com>
227
228 * tui/tui.c (tui_enable): Update.
229 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
230 Update.
231 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
232 Update.
233 * tui/tui-data.c (win_resized): Now bool.
234 (tui_win_resized): Return bool.
235 (tui_set_win_resized_to): Accept a bool.
236
b5457826
TT
2372019-09-20 Tom Tromey <tom@tromey.com>
238
239 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
240 Change type of "refresh_values_only".
241 * tui/tui-regs.c (tui_data_window::show_register_group): Change
242 type of "refresh_values_only".
243
6b915f7d
TT
2442019-09-20 Tom Tromey <tom@tromey.com>
245
246 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
247 std::string.
248 (tui_disassemble): Add "pos" parameter.
249 (tui_disasm_window::set_contents): Simplify.
250
2ad52f6f
TT
2512019-09-20 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-winsource.h (struct tui_source_window_base)
254 <show_source_content>: Now private.
255 * tui/tui-winsource.c
256 (tui_source_window_base::show_source_content): Don't handle empty
257 content case.
258
b3b1bde6
TT
2592019-09-20 Tom Tromey <tom@tromey.com>
260
261 * tui/tui-layout.c (show_source_disasm_command)
262 (show_source_or_disasm_and_command): Don't call
263 show_source_content.
264
71a25ed2
TT
2652019-09-20 Tom Tromey <tom@tromey.com>
266
267 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
268 Declare.
269 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
270 from tui_make_status_line.
271 (tui_locator_window::rerender): Update.
272
f8532154
TT
2732019-09-20 Tom Tromey <tom@tromey.com>
274
275 * tui/tui-stack.c (tui_make_status_line): Return std::string.
276 (tui_locator_window::rerender): Update.
277
2d81b349
TT
2782019-09-20 Tom Tromey <tom@tromey.com>
279
280 * tui/tui-winsource.h (struct tui_source_window_base)
281 <~tui_source_window_base>: Don't declare.
282 <fullname>: Remove.
283 * tui/tui-winsource.c (~tui_source_window_base): Remove.
284 * tui/tui-source.h (struct tui_source_window) <fullname>: New
285 member.
286 * tui/tui-source.c (tui_source_window::set_contents): Update.
287 (tui_source_window::location_matches_p)
288 (tui_source_window::maybe_update): Update.
289
f14bec58
TT
2902019-09-20 Tom Tromey <tom@tromey.com>
291
292 * tui/tui-winsource.h (~tui_source_element): Remove.
293 (tui_source_element): Update.
294 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
295 * tui/tui-winsource.c (tui_show_source_line): Update.
296 * tui/tui-source.c (tui_source_window::set_contents): Update.
297 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
298
78d5933a
TT
2992019-09-20 Tom Tromey <tom@tromey.com>
300
301 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
302 declare.
303 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
304 tui_clear_source_windows_detail.
305 * tui/tui-winsource.h (struct tui_source_window_base)
306 <clear_detail>: Don't declare.
307 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
308 Remove.
309 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
310
d4207696
TT
3112019-09-20 Tom Tromey <tromey@adacore.com>
312
313 PR ada/24919:
314 * block.c (contained_in): Fix final return value.
315
00f93c44
AM
3162019-09-20 Alan Modra <amodra@gmail.com>
317
318 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
319 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
320 (read_indirect_string_from_dwz): Use bfd accessor.
321 * dwarf2read.h (struct dwz_file <filename>): Likewise.
322 * machoread.c (macho_symfile_read_all_oso): Likewise.
323 * solib.c (solib_bfd_open): Likewise.
324
e4153ae6
CB
3252019-09-19 Christian Biesinger <cbiesinger@google.com>
326
327 * eval.c: Move declaration of overload_resolution to...
328 * value.h: ...here.
329
c7ae7675
CB
3302019-09-19 Christian Biesinger <cbiesinger@google.com>
331
332 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
333 * arm-linux-tdep.c: Likewise.
334 * arm-nbsd-nat.c: Likewise.
335 * arm-tdep.h: Declare arm_apcs_32.
336 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
337
e86f08d2
CB
3382019-09-19 Christian Biesinger <cbiesinger@google.com>
339
340 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
341 * dwarf2read.h: Declare dwarf_always_disassemble.
342
f64e2f40
TV
3432019-09-19 Tom de Vries <tdevries@suse.de>
344
345 PR gdb/25009
346 * source-cache.c (source_cache::ensure): Catch exception thrown during
347 construction of the highlighter.
348
fd361982
AM
3492019-09-18 Alan Modra <amodra@gmail.com>
350
351 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
352 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
353 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
354 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
355 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
356 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
357 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
358 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
359 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
360 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
361 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
362 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
363 * solib-spu.c, * solib-svr4.c, * solib-target.c,
364 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
365 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
366 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
367 * mi/mi-interp.c: Update throughout for bfd section macro and
368 function changes.
369 * gcore (gcore_create_callback): Use bfd_set_section_lma.
370 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
371
11061048
TT
3722019-09-18 Tom Tromey <tom@tromey.com>
373
374 * NEWS: Add entry.
375 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
376 call rl_initialize.
377 (tui_enable): Do not call rl_initialize.
378
7a27b85f
CG
3792019-09-18 Christian Groessler <chris@groessler.org>
380
381 * alpha-linux-nat.c: Include gdbarch.h.
382
f64eea3a
SM
3832019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * ui-file.c: Include cli/cli-style.h.
386 (term_cli_styling): Remove cli_styling declaration.
387
e6f7f6d1
AM
3882019-09-18 Alan Modra <amodra@gmail.com>
389
390 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
391 to bfd_asymbol_section.
392
1d38e9d1
AM
3932019-09-18 Alan Modra <amodra@gmail.com>
394
395 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
396 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
397 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
398
90d92a63
AM
3992019-09-18 Alan Modra <amodra@gmail.com>
400
401 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
402 * spu-linux-nat.c (spu_bfd_open): Likewise.
403
a3d181d2
CB
4042019-09-18 Christian Biesinger <cbiesinger@google.com>
405
406 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
407 to bool to match definition in dwarf2read.c.
408
491144b5
CB
4092019-09-17 Christian Biesinger <cbiesinger@google.com>
410
411 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
412 (print_signatures): Likewise.
413 (trust_pad_over_xvs): Likewise.
414 * arch/aarch64-insn.c (aarch64_debug): Likewise.
415 * arch/aarch64-insn.h (aarch64_debug): Likewise.
416 * arm-linux-nat.c (arm_apcs_32): Likewise.
417 * arm-linux-tdep.c (arm_apcs_32): Likewise.
418 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
419 * arm-tdep.c (arm_debug): Likewise.
420 (arm_apcs_32): Likewise.
421 * auto-load.c (debug_auto_load): Likewise.
422 (auto_load_gdb_scripts): Likewise.
423 (global_auto_load): Likewise.
424 (auto_load_local_gdbinit): Likewise.
425 (auto_load_local_gdbinit_loaded): Likewise.
426 * auto-load.h (global_auto_load): Likewise.
427 (auto_load_local_gdbinit): Likewise.
428 (auto_load_local_gdbinit_loaded): Likewise.
429 * breakpoint.c (disconnected_dprintf): Likewise.
430 (breakpoint_proceeded): Likewise.
431 (automatic_hardware_breakpoints): Likewise.
432 (always_inserted_mode): Likewise.
433 (target_exact_watchpoints): Likewise.
434 (_initialize_breakpoint): Update.
435 * breakpoint.h (target_exact_watchpoints): Change to bool.
436 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
437 * cli/cli-cmds.c (trace_commands): Likewise.
438 * cli/cli-cmds.h (trace_commands): Likewise.
439 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
440 to bool*.
441 * cli/cli-logging.c (logging_overwrite): Change to bool.
442 (logging_redirect): Likewise.
443 (debug_redirect): Likewise.
444 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
445 (struct boolean_option_def) <get_var_address_cb_>: Change return type
446 to bool.
447 <boolean_option_def>: Update.
448 (struct flag_option_def): Change default type of Context to bool
449 from int.
450 <flag_option_def>: Change return type of var_address_cb_ to bool*.
451 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
452 (get_setshow_command_value_string): Likewise.
453 * cli/cli-style.c (cli_styling): Change to bool.
454 (source_styling): Likewise.
455 * cli/cli-style.h (source_styling): Likewise.
456 (cli_styling): Likewise.
457 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
458 to bool.
459 * command.h (var_types): Update comment.
460 (add_setshow_boolean_cmd): Change int* var argument to bool*.
461 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
462 bool.
463 (debug_compile_cplus_scopes): Likewise.
464 * compile/compile-internal.h (compile_debug): Likewise.
465 * compile/compile.c (compile_debug): Likewise.
466 (struct compile_options) <raw>: Likewise.
467 * cp-support.c (catch_demangler_crashes): Likewise.
468 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
469 (usr_cmd_cris_dwarf2_cfi): Likewise.
470 * csky-tdep.c (csky_debug): Likewise.
471 * darwin-nat.c (enable_mach_exceptions): Likewise.
472 * dcache.c (dcache_enabled_p): Likewise.
473 * defs.h (info_verbose): Likewise.
474 * demangle.c (demangle): Likewise.
475 (asm_demangle): Likewise.
476 * dwarf-index-cache.c (debug_index_cache): Likewise.
477 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
478 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
479 * dwarf2read.c (check_physname): Likewise.
480 (use_deprecated_index_sections): Likewise.
481 (dwarf_always_disassemble): Likewise.
482 * eval.c (overload_resolution): Likewise.
483 * event-top.c (set_editing_cmd_var): Likewise.
484 (exec_done_display_p): Likewise.
485 * event-top.h (set_editing_cmd_var): Likewise.
486 (exec_done_display_p): Likewise.
487 * exec.c (write_files): Likewise.
488 * fbsd-nat.c (debug_fbsd_lwp): Likewise
489 (debug_fbsd_nat): Likewise.
490 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
491 Likewise.
492 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
493 <backtrace_past_entry> Likewise.
494 * gdb-demangle.h (demangle): Likewise.
495 (asm_demangle): Likewise.
496 * gdb_bfd.c (bfd_sharing): Likewise.
497 * gdbcore.h (write_files): Likewise.
498 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
499 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
500 * gdbthread.h (print_thread_events): Likewise.
501 * gdbtypes.c (opaque_type_resolution): Likewise.
502 (strict_type_checking): Likewise.
503 * gnu-nat.c (gnu_debug_flag): Likewise.
504 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
505 * guile/scm-param.c (pascm_variable): Add boolval.
506 (add_setshow_generic): Update.
507 (pascm_param_value): Update.
508 (pascm_set_param_value_x): Update.
509 * hppa-tdep.c (hppa_debug): Change to bool..
510 * infcall.c (may_call_functions_p): Likewise.
511 (coerce_float_to_double_p): Likewise.
512 (unwind_on_signal_p): Likewise.
513 (unwind_on_terminating_exception_p): Likewise.
514 * infcmd.c (startup_with_shell): Likewise.
515 * inferior.c (print_inferior_events): Likewise.
516 * inferior.h (startup_with_shell): Likewise.
517 (print_inferior_events): Likewise.
518 * infrun.c (step_stop_if_no_debug): Likewise.
519 (detach_fork): Likewise.
520 (debug_displaced): Likewise.
521 (disable_randomization): Likewise.
522 (non_stop): Likewise.
523 (non_stop_1): Likewise.
524 (observer_mode): Likewise.
525 (observer_mode_1): Likewise.
526 (set_observer_mode): Update.
527 (sched_multi): Change to bool.
528 * infrun.h (debug_displaced): Likewise.
529 (sched_multi): Likewise.
530 (step_stop_if_no_debug): Likewise.
531 (non_stop): Likewise.
532 (disable_randomization): Likewise.
533 * linux-tdep.c (use_coredump_filter): Likewise.
534 (dump_excluded_mappings): Likewise.
535 * linux-thread-db.c (auto_load_thread_db): Likewise.
536 (check_thread_db_on_load): Likewise.
537 * main.c (captured_main_1): Update.
538 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
539 xx2_opt, boolean_opt>: Change to bool.
540 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
541 * maint.c (maintenance_profile_p): Likewise.
542 (per_command_time): Likewise.
543 (per_command_space): Likewise.
544 (per_command_symtab): Likewise.
545 * memattr.c (inaccessible_by_default): Likewise.
546 * mi/mi-main.c (mi_async): Likewise.
547 (mi_async_1): Likewise.
548 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
549 * nat/fork-inferior.h (startup_with_shell): Likewise.
550 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
551 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
552 * nios2-tdep.c (nios2_debug): Likewise.
553 * or1k-tdep.c (or1k_debug): Likewise.
554 * parse.c (parser_debug): Likewise.
555 * parser-defs.h (parser_debug): Likewise.
556 * printcmd.c (print_symbol_filename): Likewise.
557 * proc-api.c (procfs_trace): Likewise.
558 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
559 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
560 (set_parameter_value): Update.
561 (add_setshow_generic): Update.
562 * python/py-value.c (copy_py_bool_obj): Change argument from int*
563 to bool*.
564 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
565 int*.
566 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
567 * record-btrace.c (record_btrace_target::store_registers): Update.
568 * record-full.c (record_full_memory_query): Change to bool.
569 (record_full_stop_at_limit): Likewise.
570 * record-full.h (record_full_memory_query): Likewise.
571 * remote-notif.c (notif_debug): Likewise.
572 * remote-notif.h (notif_debug): Likewise.
573 * remote.c (use_range_stepping): Likewise.
574 (interrupt_on_connect): Likewise.
575 (remote_break): Likewise.
576 * ser-tcp.c (tcp_auto_retry): Likewise.
577 * ser-unix.c (serial_hwflow): Likewise.
578 * skip.c (debug_skip): Likewise.
579 * solib-aix.c (solib_aix_debug): Likewise.
580 * spu-tdep.c (spu_stop_on_load_p): Likewise.
581 (spu_auto_flush_cache_p): Likewise.
582 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
583 Likewise.
584 (struct info_print_options) <quiet>: Likewise.
585 * symfile-debug.c (debug_symfile): Likewise.
586 * symfile.c (auto_solib_add): Likewise.
587 (separate_debug_file_debug): Likewise.
588 * symfile.h (auto_solib_add): Likewise.
589 (separate_debug_file_debug): Likewise.
590 * symtab.c (basenames_may_differ): Likewise.
591 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
592 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
593 (struct info_types_options) <quiet>: Likewise.
594 * symtab.h (demangle): Likewise.
595 (basenames_may_differ): Likewise.
596 * target-dcache.c (stack_cache_enabled_1): Likewise.
597 (code_cache_enabled_1): Likewise.
598 * target.c (trust_readonly): Likewise.
599 (may_write_registers): Likewise.
600 (may_write_memory): Likewise.
601 (may_insert_breakpoints): Likewise.
602 (may_insert_tracepoints): Likewise.
603 (may_insert_fast_tracepoints): Likewise.
604 (may_stop): Likewise.
605 (auto_connect_native_target): Likewise.
606 (target_stop_and_wait): Update.
607 (target_async_permitted): Change to bool.
608 (target_async_permitted_1): Likewise.
609 (may_write_registers_1): Likewise.
610 (may_write_memory_1): Likewise.
611 (may_insert_breakpoints_1): Likewise.
612 (may_insert_tracepoints_1): Likewise.
613 (may_insert_fast_tracepoints_1): Likewise.
614 (may_stop_1): Likewise.
615 * target.h (target_async_permitted): Likewise.
616 (may_write_registers): Likewise.
617 (may_write_memory): Likewise.
618 (may_insert_breakpoints): Likewise.
619 (may_insert_tracepoints): Likewise.
620 (may_insert_fast_tracepoints): Likewise.
621 (may_stop): Likewise.
622 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
623 (make_thread_apply_all_options_def_group): Change argument from int*
624 to bool*.
625 (thread_apply_all_command): Update.
626 (print_thread_events): Change to bool.
627 * top.c (confirm): Likewise.
628 (command_editing_p): Likewise.
629 (history_expansion_p): Likewise.
630 (write_history_p): Likewise.
631 (info_verbose): Likewise.
632 * top.h (confirm): Likewise.
633 (history_expansion_p): Likewise.
634 * tracepoint.c (disconnected_tracing): Likewise.
635 (circular_trace_buffer): Likewise.
636 * typeprint.c (print_methods): Likewise.
637 (print_typedefs): Likewise.
638 * utils.c (debug_timestamp): Likewise.
639 (sevenbit_strings): Likewise.
640 (pagination_enabled): Likewise.
641 * utils.h (sevenbit_strings): Likewise.
642 (pagination_enabled): Likewise.
643 * valops.c (overload_resolution): Likewise.
644 * valprint.h (struct value_print_options) <prettyformat_arrays,
645 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
646 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
647 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
648 Likewise.
649 * windows-nat.c (new_console): Likewise.
650 (cygwin_exceptions): Likewise.
651 (new_group): Likewise.
652 (debug_exec): Likewise.
653 (debug_events): Likewise.
654 (debug_memory): Likewise.
655 (debug_exceptions): Likewise.
656 (useshell): Likewise.
657 * windows-tdep.c (maint_display_all_tib): Likewise.
658 * xml-support.c (debug_xml): Likewise.
659
f1b620e9
MG
6602019-09-17 Mike Gulick <mgulick@mathworks.com>
661
662 * source.c (prepare_path_for_appending): New function.
663 (openp): Make use of new function.
664 (find_and_open_source): Search for the compilation directory and
665 source file as a relative path beneath the directory search path.
666
67f3ed6a
AB
6672019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * source-cache.c (source_cache::get_line_charpos): Catch
670 exceptions and return false, this matches the behaviour documented
671 in the header file.
672
74332189
JB
6732019-09-17 Joel Brobecker <brobecker@adacore.com>
674
675 * ada-tasks.c (info_task): Remove quoting of the task's name.
676
f2f24aa9
CB
6772019-09-16 Christian Biesinger <cbiesinger@google.com>
678
679 * symfile.c (auto_solib_add): Replace comment with a reference
680 to the header file.
681
6a062a93
CB
6822019-09-14 Christian Biesinger <cbiesinger@google.com>
683
684 * NEWS: Mention that gdb can now be compiled with Python 3
685 on Windows.
686
ec6c8338
AB
6872019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
688
689 * maint.c (maint_print_section_data::maint_print_section_data):
690 Force use of 'float log10 (float)' by casting the argument to
691 float.
692
aa17805f
AB
6932019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * maint.c: Add 'cmath' include.
696 (struct maint_print_section_data): New structure.
697 (print_section_index): New function.
698 (print_bfd_section_info): Add header comment, small whitespace
699 cleanup, and update to call new print_section_index function.
700 (print_objfile_section_info): Likewise.
701 (maint_obj_section_from_bfd_section): New function.
702 (print_bfd_section_info_maybe_relocated): New function.
703 (maintenance_info_sections): Add header comment, always use
704 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
705
3dd9bb46
AB
7062019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
709 inner scope, add check that the objfile has psymtabs before
710 checking psymtabs_addrmap.
711 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
712
4993045d
PW
7132019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
714
715 * NEWS: Announce that Ada task names are now shown at more places,
716 and between quotes (except in info task output).
717 * gdb/ada-tasks.c (task_to_str): New function.
718 (display_current_task_id): Call task_to_str.
719 (task_command_1): Likewise.
720 (print_ada_task_info): In non-mi mode, Properly align headers and data
721 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
722
7a289707
RO
7232019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
724
725 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
726 prstatus.pr_lwp.pr_info instead of making it up.
727
f2aec7f6
CB
7282019-09-11 Christian Biesinger <cbiesinger@google.com>
729
730 * auto-load.c (auto_load_expand_dir_vars): Update.
731 * defs.h (gdb_datadir): Change to std::string.
732 (python_libdir): Likewise.
733 (relocate_gdb_directory): Change return type to std::string.
734 * guile/guile.c (gdbscm_data_directory): Update.
735 (initialize_scheme_side): Update.
736 * jit.c (jit_reader_dir): Change to std::string.
737 (jit_reader_load_command): Update.
738 * main.c (gdb_datadir): Change to std::string.
739 (python_libdir): Likewise.
740 (set_gdb_data_directory): Update.
741 (relocate_path): Change to return std::string.
742 (relocate_gdb_directory): Change to return std::string.
743 (relocate_gdbinit_path_maybe_in_datadir): Update.
744 (captured_main_1): Update.
745 * python/python.c (do_start_initialization): Update.
746 * top.c (show_gdb_datadir): Update.
747 * xml-syscall.c (xml_init_syscalls_info): Update.
748 (init_syscalls_info): Update.
749
9224a013
CB
7502019-09-11 Christian Biesinger <cbiesinger@google.com>
751
752 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
753 out of get_init_files.
754 (get_init_files): Update.
755
f48cd836
CB
7562019-09-11 Christian Biesinger <cbiesinger@google.com>
757
758 * main.c (get_init_files): Change to use std::string.
759 (captured_main_1): Update.
760 (print_gdb_help): Update.
761
9cab7ecd
AT
7622019-09-11 Ali Tamur <tamur@google.com>
763
764 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
765 implementation.
766
67547d89
CB
7672019-09-11 Christian Biesinger <cbiesinger@google.com>
768
769 * dbxread.c (read_dbx_symtab): Update.
770 * dwarf2read.c (load_partial_dies): Update.
771 * mdebugread.c (parse_partial_symbols): Update.
772 (handle_psymbol_enumerators): Update.
773 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
774 * psymtab.c (add_psymbol_to_bcache): Likewise.
775 (add_psymbol_to_list): Likewise.
776 * symtab.c (symbol_set_names): Likewise.
777 * symtab.h (symbol_set_names): Likewise.
778 * xcoffread.c (scan_xcoff_symtab): Update.
779
64b2d4a0
TT
7802019-09-11 Tom Tromey <tom@tromey.com>
781
782 * symfile-mem.c (symbol_file_add_from_memory): Use
783 bfd_set_filename.
784 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
785 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
786
3b00ef10
TT
7872019-09-10 Tom Tromey <tromey@adacore.com>
788
789 * dwarf-index-write.c (write_psymbols): Extend error message.
790 (debug_names::insert): Add Ada code.
791 (debug_names::write_psymbols): Remove Ada check.
792 (debug_names) <m_string_obstack>: New member.
793 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
794 (gdb_index_symbol_name_matcher::matches): Remove.
795 (mapped_index_base::find_name_components_bounds): Add "lang"
796 parameter.
797 (mapped_index_base::build_name_components): Also split names
798 according to Ada syntax.
799 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
800 type of "match_callback".
801 (check_match, check_find_bounds_finds)
802 (dw2_expand_symtabs_matching): Update.
803 (dw2_debug_names_iterator): Add new constructor.
804 (dw2_debug_names_map_matching_symbols): New function.
805 (dw2_debug_names_expand_symtabs_matching): Update.
806 (dwarf2_debug_names_functions): Use
807 dw2_debug_names_map_matching_symbols.
808
aa391654
TT
8092019-09-10 Tom Tromey <tromey@adacore.com>
810
811 * dwarf2read.c (dw2_get_file_names_reader): Add the
812 CU's file name to the results.
813
b054970d
TT
8142019-09-10 Tom Tromey <tromey@adacore.com>
815
816 * ada-lang.c (add_nonlocal_symbols): Combine calls to
817 map_matching_symbols. Update.
818 * dwarf2read.c (dw2_map_matching_symbols): Update.
819 * psymtab.c (match_partial_symbol): Change type; update.
820 (psym_map_matching_symbols): Likewise.
821 * symfile-debug.c (debug_qf_map_matching_symbols): Change
822 type; update.
823 * symfile.h (struct quick_symbol_functions)
824 <map_matching_symbols>: Change "name" to be a lookup_name_info.
825 Remove "match".
826
6a3dbf1b
TT
8272019-09-10 Tom Tromey <tromey@adacore.com>
828
829 * psymtab.c (map_block): Remove.
830 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
831 * symtab.c (iterate_over_symbols_terminated): New function.
832 * symtab.c (iterate_over_symbols_terminated): Declare.
833
6969f124
TT
8342019-09-10 Tom Tromey <tromey@adacore.com>
835
836 * ada-lang.c (ada_iterate_over_symbols): Return bool.
837 * language.h (struct language_defn) <la_iterate_over_symbols>:
838 Return bool.
839 * symtab.c (iterate_over_symbols): Return bool.
840 * symtab.h (iterate_over_symbols): Return bool.
841
199b4314
TT
8422019-09-10 Tom Tromey <tromey@adacore.com>
843
844 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
845 (add_nonlocal_symbols): Update.
846 * dwarf2read.c (dw2_map_matching_symbols): Change type.
847 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
848 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
849 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
850 Change type of "callback". Remove "data".
851
a084a2a6
AT
852
8532019-09-09 Ali Tamur <tamur@google.com>
854
855 * dwarf2read.c (comp_unit_head): Update comment.
856 (dwarf2_dwo_name): New function declaration.
857 (dwarf_unit_type_name): New function declaration.
858 (read_comp_unit_head): Add support for new compilation units,
859 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
860 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
861 (currently named as "signature") in their header. Also clarify error
862 messages.
863 (lookup_dwo_id): New function. Returns the dwo id of the given
864 compile unit.
865 (lookup_dwo_unit): Use the new lookup_dwo_id function.
866 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
867 functions.
868 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
869 (dwarf2_dwo_name): Get the dwo name if present.
870 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
871 purposes.
872
25a2915e
TT
8732019-09-09 Tom Tromey <tom@tromey.com>
874
875 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
876
e4df0874
PW
8772019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
878
879 * python/python.c (do_start_initialization): Make progname_copy static,
880 to avoid a leak report.
881
8634b462
TT
8822019-09-08 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
885
c7f839cb
SM
8862019-09-07 Simon Marchi <simon.marchi@efficios.com>
887
888 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
889 Change type to gdb::optional<block_enum>.
890 (dw2_symtab_iter_init): Change block_index parameter type
891 to gdb::optional<block_enum>.
892 (dw2_lookup_symbol): Change block_index parameter
893 type to block_enum.c
894 (dw2_debug_names_lookup_symbol): Likewise.
895 * psymtab.c (psym_lookup_symbol): Likewise.
896 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
897 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
898 Likewise.
899
ead0e69a
CB
9002019-09-06 Christian Biesinger <cbiesinger@google.com>
901
902 * defs.h (relocate_gdb_directory): Change int to bool in
903 signature and rename flag to relocatable.
904 * main.c (relocate_path): Likewise.
905 (relocate_gdb_directory): Likewise.
906
b16c44de
AM
9072019-09-06 Alan Modra <amodra@gmail.com>
908
909 * coffread.c (coff_symfile_read): Constify filename variable.
910 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
911 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
912 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
913 * solib.c (reload_shared_libraries_1): Likewise.
914 * symfile.c (reread_symbols): Likewise.
915 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
916 * solib-darwin.c (darwin_bfd_open): Likewise.
917 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
918
06ff036e
AB
9192019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
920
921 * psymtab.c (print_partial_symbols): Handle missing domain_enum
922 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
923
4e962e74
TT
9242019-09-03 Tom Tromey <tromey@adacore.com>
925
926 * ada-valprint.c (ada_val_print_num): Don't recurse for range
927 types.
928 (has_negatives): Unbias a range type bound.
929 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
930 * gdbtypes.c (operator==): Handle new field.
931 (create_range_type): Add "bias" parameter.
932 (create_static_range_type, resolve_dynamic_range): Update.
933 * gdbtypes.h (struct range_bounds) <bias>: New member.
934 (create_range_type): Add bias parameter.
935 * printcmd.c (print_scalar_formatted): Unbias range types.
936 * value.c (unpack_long): Unbias range types.
937 (pack_long): Bias range types.
938
d90b8f26
AH
9392019-09-02 Alan Hayward <alan.hayward@arm.com>
940
941 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
942 probe arguments.
943
fe01123e
AH
9442019-09-02 Alan Hayward <alan.hayward@arm.com>
945
946 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
947 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
948 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
949 (compile_probe_arg): Likewise.
950 * probe.h (get_argument_count): Likewise.
951 * solib-svr4.c (solib_event_probe_action): Likewise.
952 * stap-probe.c (stap_probe::get_argument_count): Likewise.
953
e661ef01
AH
9542019-09-02 Alan Hayward <alan.hayward@arm.com>
955
956 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
957 code to here...
958 (svr4_create_solib_event_breakpoints): ...from here.
959
47a536d9
SDJ
9602019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
961
962 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
963 suffix from warning message.
964
d6a00eba
TT
9652019-08-30 Tom Tromey <tom@tromey.com>
966
967 * tui/tui-winsource.h (struct tui_source_window_base)
968 <refresh_all>: Don't declare.
969 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
970 Remove.
971 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
972 tui_show_locator_content.
973 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
974 declare.
975 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
976 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
977 declare.
978
55b2657b
TT
9792019-08-30 Tom Tromey <tom@tromey.com>
980
981 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
982
12a8555a
TT
9832019-08-30 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-stack.c (_initialize_tui_stack): Move later.
986 Remove unnecessary forward declarations.
987
900ac242
TT
9882019-08-30 Tom Tromey <tom@tromey.com>
989
990 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
991 rerender.
992 (tui_update_locator_fullname, tui_show_frame_info): Don't call
993 tui_show_locator_content.
994
99ab33fb
TT
9952019-08-30 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
998 (tui_locator_window::rerender): Rewrite using body of previous
999 tui_show_locator_content.
1000
e594a5d1
TT
10012019-08-30 Tom Tromey <tom@tromey.com>
1002
1003 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1004 set_locator_fullname>: New methods.
1005 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1006 Rename from tui_set_locator_fullname.
1007 (tui_locator_window::set_locator_info): Rename from
1008 tui_set_locator_info. Return bool.
1009 (tui_update_locator_fullname, tui_show_frame_info): Update.
1010
715bb467
TT
10112019-08-30 Tom Tromey <tom@tromey.com>
1012
1013 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1014
772f3f03
TT
10152019-08-30 Tom Tromey <tom@tromey.com>
1016
1017 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1018 call touchwin.
1019
108e13ab
TT
10202019-08-30 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-wingeneral.c (box_win): Assume win_info and
1023 win_info->handle cannot be NULL.
1024
cdaa6eb4
TT
10252019-08-30 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1028 refresh_window>: Declare.
1029 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1030 resize.
1031 (tui_data_item_window::rerender): Rename from
1032 tui_display_register.
1033 (tui_data_item_window::refresh_window): New method.
1034 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1035 no-op.
1036
89df7f90
TT
10372019-08-30 Tom Tromey <tom@tromey.com>
1038
1039 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1040 regs_column_count, current_group>: Move later. Now private.
1041 <get_current_group>: New method.
1042 * tui/tui-regs.c (tui_reg_command): Update.
1043 * tui/tui-layout.c (tui_set_layout): Update.
1044
1bf2866a
TT
10452019-08-30 Tom Tromey <tom@tromey.com>
1046
1047 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1048 (tui_data_window::rerender): Don't call
1049 check_and_display_highlight_if_needed.
1050 (tui_data_window::refresh_all): Remove call to
1051 erase_data_content.
1052
0670413d
TT
10532019-08-30 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1056 (tui_data_window::display_registers_from)
1057 (tui_data_window::display_reg_element_at_line)
1058 (tui_data_window::display_registers_from_line): Remove checks of
1059 "empty".
1060
18bb55c7
TT
10612019-08-30 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1064 Don't declare.
1065 * tui/tui-regs.c (tui_data_window::show_registers): Call
1066 rerender.
1067 (tui_data_window::rerender): Rename from display_all_data.
1068 (tui_data_window::rerender): Remove old implementation.
1069
1f6d2f10
TT
10702019-08-30 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1073 text.
1074 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1075
16d01f9c
BW
10762019-08-29 Bernhard Wodok <barto@gmx.net>
1077 Sergio Durigan Junior <sergiodj@redhat.com>
1078
1079 PR win32/24284
1080 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1081
d8f27c60
AB
10822019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1085 when searching for types.
1086
1f20c35e
AB
10872019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * f-lang.c (f_language_defn): Use f_print_typedef.
1090 * f-lang.h (f_print_typedef): Declare.
1091 * f-typeprint.c (f_print_typedef): Define.
1092
550105b7
CB
10932019-08-27 Christian Biesinger <cbiesinger@google.com>
1094
1095 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1096
4acfdd20
AB
10972019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * cli/cli-utils.c (info_print_options_defs): Delete.
1100 (make_info_print_options_def_group): Delete.
1101 (extract_info_print_options): Delete.
1102 (info_print_command_completer): Delete.
1103 (info_print_args_help): Add extra parameter, and optionally
1104 include text about -n flag.
1105 * cli/cli-utils.h (struct info_print_options): Delete.
1106 (extract_info_print_options): Delete declaration.
1107 (info_print_command_completer): Delete declaration.
1108 (info_print_args_help): Add extra parameter, extend header
1109 comment.
1110 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1111 search_symbols.
1112 * stack.c (struct info_print_options): New type.
1113 (info_print_options_defs): New file scoped variable.
1114 (make_info_print_options_def_group): New static function.
1115 (info_print_command_completer): New static function.
1116 (info_locals_command): Update to use new local functions.
1117 (info_args_command): Likewise.
1118 (_initialize_stack): Add extra parameter to calls to
1119 info_print_args_help.
1120 * symtab.c (search_symbols): Add extra parameter, use this to
1121 possibly excluse non-debug symbols.
1122 (symtab_symbol_info): Add extra parameter, which is passed on to
1123 search_symbols.
1124 (struct info_print_options): New type.
1125 (info_print_options_defs): New file scoped variable.
1126 (make_info_print_options_def_group): New static function.
1127 (info_print_command_completer): New static function.
1128 (info_variables_command): Update to use local functions, and pass
1129 extra parameter through to symtab_symbol_info.
1130 (info_functions_command): Likewise.
1131 (info_types_command): Pass additional argument through to
1132 symtab_symbol_info.
1133 (rbreak_command): Pass extra argument to search_symbols.
1134 (_initialize_symtab): Add extra arguments for calls to
1135 info_print_args_help, and update help text for 'info variables',
1136 'whereis', and 'info functions' commands.
1137 * symtab.h (search_symbols): Add extra argument to declaration.
1138 * NEWS: Mention new flags.
1139
9aa55206
CB
11402019-08-26 Christian Biesinger <cbiesinger@google.com>
1141
1142 * symtab.c (lookup_static_symbol): Call the new function (and move
1143 it down to be next to lookup_global_symbol).
1144 (struct global_sym_lookup_data): Add block_enum member and rename to...
1145 (struct global_or_static_sym_lookup_data): ...this.
1146 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1147 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1148 (lookup_symbol_global_or_static_iterator_cb): ...this.
1149 (lookup_global_or_static_symbol): New function.
1150 (lookup_global_symbol): Call new function.
1151
5c31b358
TV
11522019-08-26 Tom de Vries <tdevries@suse.de>
1153
1154 PR c++/24852
1155 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1156 when pc_probe.prob == NULL.
1157
23c13d42
SM
11582019-08-25 Simon Marchi <simon.marchi@efficios.com>
1159
1160 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1161 variable symbol_linkage to symbol_linkage_.
1162
beadd3e8
SM
11632019-08-25 Simon Marchi <simon.marchi@efficios.com>
1164
1165 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1166 represent whether the symbol is static, dynamic, or we don't
1167 know.
1168
e3ec872f
YS
11692019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1170
1171 * gdb/rx-tdep.c (rx_register_names): New.
1172 (rx_register_name): Delete.
1173 (rx_psw_type): Delete.
1174 (rx_fpsw_type): Delete.
1175 (rx_register_type): Delete.
1176 (rx_gdbarch_init): Convert target-descriptions.
1177 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1178 * gdb/features/Makefile: Add rx.xml.
1179 * gdb/features/rx.xml: New.
1180 * gdb/features/rx.c: Generated.
1181 * gdb/NEWS: Mention target description support.
1182
d0509ba4
CB
11832019-08-22 Christian Biesinger <cbiesinger@google.com>
1184
1185 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1186 *slot_ptr.
1187
2d41fa11
SDJ
11882019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1189
1190 * configure.ac: Don't check for 'dlfcn.h' (moved to
1191 gdbsupport/common.m4).
1192 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1193 'gdbsupport/'.
1194 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1195 * compile/compile-c-support.c: Include
1196 'gdbsupport/gdb-dlfcn.h'.
1197 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1198 * gdb-dlfcn.c: Move to...
1199 * gdbsupport/gdb-dlfcn.c: ... here.
1200 * gdb-dlfcn.h: Move to...
1201 * gdbsupport/gdb-dlfcn.h: ... here.
1202
de8af808
SL
12032019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1204
1205 * nios2-tdep.c (struct reg_value): Improve comments. Make
1206 the offset field signed.
1207
27204489
CB
12082019-08-22 Christian Biesinger <cbiesinger@google.com>
1209
1210 * python/lib/gdb/__init__.py (_execute_file): New function.
1211 * python/python.c (python_run_simple_file): Call gdb._execute_file
1212 on Windows.
1213
43771869
AB
12142019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1217 all uses as this was never set to anything but a zero value.
1218
26c957f1
PA
12192019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1220
1221 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1222
c07aae6e
CB
12232019-08-21 Christian Biesinger <cbiesinger@google.com>
1224
1225 * tui/tui-data.h (tui_gen_win_info): Add an =default
1226 move constructor, required by some GCC versions.
1227
3960cb7a
JF
12282019-08-21 Jinke Fan <fanjinke51@yeah.net>
1229
1230 * go32-nat.c (go32_sysinfo): Add hygon_p.
1231
04c72a68
TT
12322019-08-20 Tom Tromey <tom@tromey.com>
1233
1234 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1235 line_from_reg_element_no, first_reg_element_no_inline,
1236 display_all_data, delete_data_content_windows,
1237 erase_data_content>: Now private.
1238
072272ce
TT
12392019-08-20 Tom Tromey <tom@tromey.com>
1240
1241 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1242 (tui_unhighlight_win, tui_highlight_win)
1243 (tui_win_info::make_window): Update.
1244 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1245
973961bd
TT
12462019-08-20 Tom Tromey <tom@tromey.com>
1247
1248 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1249 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1250 (MAX_PID_WIDTH): Move to tui-stack.c.
1251 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1252 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1253 (MAX_PID_WIDTH): Move from tui-data.h.
1254
ab0e1f1a
TT
12552019-08-20 Tom Tromey <tom@tromey.com>
1256
1257 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1258 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1259 (box_win): Update.
1260 (tui_gen_win_info::make_window): Rename from tui_make_window.
1261 (tui_win_info::make_window): New method.
1262 (tui_gen_win_info::make_visible): Update.
1263 * tui/tui-source.c (tui_source_window::set_contents): Update.
1264 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1265 (tui_data_window::display_registers_from): Update.
1266 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1267 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1268 Declare.
1269 <can_box>: Remove.
1270 <title>: Remove.
1271 (struct tui_win_info) <make_window>: Declare.
1272 <can_box>: Now virtual.
1273 <title>: New member.
1274 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1275 * tui/tui-command.c (tui_cmd_window::resize): Update.
1276
100c2bf3
TT
12772019-08-20 Tom Tromey <tom@tromey.com>
1278
1279 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1280 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1281 (tui_data_window::check_register_values): Update.
1282
fa4dc567
TT
12832019-08-20 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-regs.h (struct tui_data_window): Use
1286 DISABLE_COPY_AND_ASSIGN.
1287 <regs_content>: Change type, removing unique_ptr.
1288 <tui_data_window>: Add move constructor.
1289 * tui/tui-regs.c (tui_data_window::show_registers)
1290 (tui_data_window::show_register_group)
1291 (tui_data_window::display_registers_from)
1292 (tui_data_window::display_registers_from)
1293 (tui_data_window::first_data_item_displayed)
1294 (tui_data_window::delete_data_content_windows)
1295 (tui_data_window::rerender, tui_data_window::refresh_window)
1296 (tui_data_window::check_register_values): Update.
1297
ca02d7c8
TT
12982019-08-20 Tom Tromey <tom@tromey.com>
1299
1300 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1301 show_register_group>: Declare.
1302 (tui_show_register_group): Don't declare.
1303 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1304 tui_show_registers.
1305 (tui_data_window::show_register_group): Rename from
1306 tui_show_register_group.
1307 (tui_data_window::check_register_values, tui_reg_command):
1308 Update.
1309 * tui/tui-layout.c (tui_set_layout): Update.
1310
63356bfd
TT
13112019-08-20 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1314 Declare.
1315 (tui_check_register_values): Don't declare.
1316 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1317 from tui_check_register_values.
1318 * tui/tui-hooks.c (tui_register_changed): Update.
1319
42cc14a7
TT
13202019-08-20 Tom Tromey <tom@tromey.com>
1321
1322 * tui/tui-regs.c (tui_reg_layout): Move later.
1323 (tui_show_registers): Don't enable TUI mode or change layout.
1324
b9ad3686
TT
13252019-08-20 Tom Tromey <tom@tromey.com>
1326
1327 * tui/tui-regs.h (struct tui_data_item_window)
1328 <~tui_data_item_window>: Remove.
1329 <content>: Now a unique_xmalloc_ptr.
1330 * tui/tui-regs.c (tui_register_format): Return a
1331 unique_xmalloc_ptr.
1332 (tui_get_register): Update.
1333 (~tui_data_item_window): Remove.
1334 (tui_data_window::display_registers_from, tui_display_register):
1335 Update.
1336 * tui/tui-io.h (tui_expand_tabs): Update.
1337 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1338 Remove "col" parameter.
1339
8e114aab
TT
13402019-08-20 Tom Tromey <tom@tromey.com>
1341
1342 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1343 field.
1344 * tui/tui-regs.c (~tui_data_item_window): Update.
1345
1a4f81dd
TT
13462019-08-20 Tom Tromey <tom@tromey.com>
1347
1348 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1349 earlier.
1350
0f8d8876
TT
13512019-08-20 Tom Tromey <tom@tromey.com>
1352
1353 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1354
605dc2c2
TT
13552019-08-20 Tom Tromey <tom@tromey.com>
1356
1357 * tui/tui-source.h (struct tui_source_window): Update.
1358 * tui/tui-regs.c (tui_show_registers): Update.
1359 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1360 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1361 (NO_REGS_STRING): Remove defines.
1362
aedbe3bb
CM
13632019-08-20 Conrad Meyer <cem@FreeBSD.org>
1364
1365 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1366 unnecessary thread walk if remote doesn't support the packet.
1367
7ce8f214
TT
13682019-08-19 Tom Tromey <tromey@adacore.com>
1369
1370 * python/py-value.c (value_has_field): Fix indentation.
1371
f21c2bd7
TT
13722019-08-19 Tom Tromey <tromey@adacore.com>
1373
1374 * printcmd.c (do_one_display, info_display_command): Update.
1375 * block.h (contained_in): Return bool. Add allow_nested
1376 parameter.
1377 * block.c (contained_in): Return bool. Add allow_nested
1378 parameter.
1379
d806ea2d
TT
13802019-08-19 Tom Tromey <tom@tromey.com>
1381
1382 * configure: Rebuild.
1383 * configure.ac: Disallow the combination of -static-libstdc++ and
1384 source highlight.
1385 * source-cache.c (get_language_name): Handle rust.
1386 (source_cache::get_source_lines): Ignore highlighting exceptions.
1387
398fdd60
TT
13882019-08-16 Tom Tromey <tom@tromey.com>
1389
1390 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1391 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1392 (struct tui_source_window_base) <make_visible, refresh_window,
1393 resize>: Remove methods.
1394 <execution_info>: Remove field.
1395 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1396 (tui_show_source_line, tui_source_window_base)
1397 (~tui_source_window_base): Update.
1398 (tui_source_window_base::resize)
1399 (tui_source_window_base::make_visible)
1400 (tui_source_window_base::refresh_window): Remove.
1401 (tui_source_window_base::update_exec_info): Update.
1402 * tui/tui-source.c (tui_source_window::set_contents): Update.
1403 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1404
e699d331
TT
14052019-08-16 Tom Tromey <tom@tromey.com>
1406
1407 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1408 deprecated_query_hook.
1409
bb01dbfc
TT
14102019-08-16 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1413 (tui_update_source_windows_with_line): Update.
1414 * tui/tui-source.h (struct tui_source_window)
1415 <show_symtab_source>: Declare.
1416 (tui_show_symtab_source): Don't declare.
1417 * tui/tui-source.c (tui_show_symtab_source): Rename from
1418 tui_show_symtab_source.
1419
81c82c4b
TT
14202019-08-16 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui-winsource.h (struct tui_source_window_base)
1423 <set_contents>: Declare.
1424 * tui/tui-winsource.c
1425 (tui_source_window_base::update_source_window_as_is): Update.
1426 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1427 Declare.
1428 (tui_set_source_content): Don't declare.
1429 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1430 tui_set_source_content.
1431 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1432 Declare.
1433 (tui_set_disassem_content): Don't declare.
1434 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1435 tui_set_disassem_content.
1436
2ddaf614
TT
14372019-08-16 Tom Tromey <tom@tromey.com>
1438
1439 * tui/tui-winsource.h (struct tui_source_window_base)
1440 <update_breakpoint_info>: Declare.
1441 (tui_update_breakpoint_info): Don't declare.
1442 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1443 (tui_update_all_breakpoint_info): Update.
1444 (tui_source_window_base::update_breakpoint_info): Rename from
1445 tui_update_breakpoint_info.
1446 (tui_source_window_base::update_exec_info): Update.
1447
017f9828
TT
14482019-08-16 Tom Tromey <tom@tromey.com>
1449
1450 * tui/tui-winsource.h (struct tui_source_window_base)
1451 <update_source_window>: Declare.
1452 (tui_update_source_window): Don't declare.
1453 * tui/tui-winsource.c
1454 (tui_source_window_base::update_source_window): Rename from
1455 tui_update_source_window.
1456 (tui_source_window_base::rerender): Update.
1457 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1458 * tui/tui-disasm.c (tui_show_disassem)
1459 (tui_show_disassem_and_update_source)
1460 (tui_disasm_window::maybe_update): Update.
1461
ed8358e9
TT
14622019-08-16 Tom Tromey <tom@tromey.com>
1463
1464 * tui/tui-winsource.h (struct tui_source_window_base)
1465 <update_source_window_as_is>: Declare.
1466 (tui_update_source_window_as_is): Don't declare.
1467 * tui/tui-winsource.c (tui_update_source_window): Update
1468 (tui_source_window_base::update_source_window_as_is): Rename from
1469 tui_update_source_window_as_is.
1470 (tui_source_window_base::refill): Update.
1471 * tui/tui-source.c (tui_show_symtab_source): Update.
1472 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1473 Update.
1474
20149b6b
TT
14752019-08-16 Tom Tromey <tom@tromey.com>
1476
1477 * tui/tui-winsource.h (tui_update_source_window)
1478 (tui_update_source_window_as_is): Remove "noerror" parameter.
1479 * tui/tui-winsource.c (tui_update_source_window)
1480 (tui_update_source_window_as_is): Remove "noerror" parameter.
1481 (tui_update_source_windows_with_addr)
1482 (tui_update_source_windows_with_line)
1483 (tui_source_window_base::rerender)
1484 (tui_source_window_base::refill): Update.
1485 * tui/tui-source.h (tui_set_source_content)
1486 (tui_show_symtab_source): Remove "noerror" parameter.
1487 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1488 parameter.
1489 (tui_show_symtab_source): Likewise.
1490 (tui_source_window::maybe_update): Update.
1491 * tui/tui-disasm.c (tui_show_disassem)
1492 (tui_show_disassem_and_update_source)
1493 (tui_disasm_window::do_scroll_vertical)
1494 (tui_disasm_window::maybe_update): Update.
1495
2d83e710
TT
14962019-08-16 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui.c (tui_is_window_visible): Update.
1499 * tui/tui-wingeneral.c (tui_make_window)
1500 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1501 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1502 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1503 (tui_set_win_height_command, parse_scrolling_args): Update.
1504 * tui/tui-source.c (tui_source_window::style_changed): Update.
1505 * tui/tui-regs.c (tui_show_registers)
1506 (tui_data_window::first_data_item_displayed)
1507 (tui_data_window::delete_data_content_windows)
1508 (tui_check_register_values, tui_reg_command): Update.
1509 * tui/tui-disasm.c (tui_show_disassem): Update.
1510 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1511 method.
1512 <is_visible>: Remove field.
1513 * tui/tui-data.c (tui_next_win, tui_prev_win)
1514 (tui_delete_invisible_windows): Update.
1515
d4ab829a
TT
15162019-08-16 Tom Tromey <tom@tromey.com>
1517
1518 * tui/tui-winsource.h (struct tui_source_window_base)
1519 <m_has_locator>: Remove.
1520 * tui/tui-layout.c (show_source_disasm_command, show_data)
1521 (show_source_or_disasm_and_command): Update.
1522
aa7ca1bb
AH
15232019-08-16 Alan Hayward <alan.hayward@arm.com>
1524
1525 * NEWS (Other MI changes): New subsection.
1526 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1527 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1528 * arch-utils.c (default_get_pc_address_flags): New function.
1529 * arch-utils.h (default_get_pc_address_flags): New declaration.
1530 * gdbarch.sh: Add get_pc_address_flags.
1531 * gdbarch.c: Regenerate.
1532 * gdbarch.h: Likewise.
1533 * stack.c (print_pc): New function.
1534 (print_frame_info) (print_frame): Call print_pc.
1535
6eac171f
TV
15362019-08-16 Tom de Vries <tdevries@suse.de>
1537
1538 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1539 print_objfile_section_info.
1540
3df505f6
TT
15412019-08-15 Tom Tromey <tom@tromey.com>
1542
1543 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1544 calling update_cmdwin_start_line.
1545 * tui/tui-winsource.h (struct tui_source_window_base)
1546 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1547 <rerender>: Declare.
1548 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1549 Call rerender.
1550 (tui_source_window_base::set_new_height): Remove.
1551 (tui_source_window_base::rerender): Rename from
1552 do_make_visible_with_new_height.
1553 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1554 resize method.
1555 (tui_win_info::make_invisible_and_set_new_height)
1556 (tui_win_info::make_visible_with_new_height): Remove.
1557 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1558 Declare.
1559 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1560 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1561 do_make_visible_with_new_height>: Don't declare.
1562 <rerender>: Declare.
1563 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1564 set_new_height.
1565 (tui_data_window::do_make_visible_with_new_height): Remove.
1566 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1567 call tui_show_locator_content.
1568 (tui_gen_win_info::resize): Call rerender.
1569 (show_source_or_disasm_and_command): Don't call
1570 tui_show_locator_content.
1571 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1572 method.
1573 (struct tui_win_info) <rerender>: Declare.
1574 <set_new_height, make_invisible_and_set_new_height,
1575 make_visible_with_new_height>: Don't declare.
1576 * tui/tui-data.c (tui_win_list::rerender): New method.
1577 * tui/tui-command.h (struct tui_cmd_window)
1578 <do_make_visible_with_new_height>: Don't declare.
1579 * tui/tui-command.c
1580 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1581
272560b5
TT
15822019-08-15 Tom Tromey <tromey@adacore.com>
1583
1584 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1585 * ada-lang.c (ada_enum_name): Likewise.
1586
08235187
CB
15872019-08-15 Christian Biesinger <cbiesinger@google.com>
1588
1589 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1590 leading underscore.
1591 (GdbOutputErrorFile): Likewise.
1592 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1593 accordingly.
1594 (execute_unwinders): Rename to have a leading underscore.
1595 (auto_load_packages): Likewise.
1596 (global scope): Adjust call to auto_load_packages accordingly.
1597 (GdbSetPythonDirectory): Likewise.
1598 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1599 instead of execute_unwinders.
1600
db502012
TT
16012019-08-15 Tom Tromey <tom@tromey.com>
1602
1603 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1604 (show_data): Don't change window visibility.
1605 (tui_gen_win_info::resize): Remove special case for command
1606 window. Use wresize, when available.
1607 (show_source_or_disasm_and_command): Don't change window
1608 visibility.
1609 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1610 <make_visible>: New method.
1611 * tui/tui-command.c (tui_cmd_window::resize): New method.
1612
3891b65e
TT
16132019-08-15 Tom Tromey <tom@tromey.com>
1614
1615 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1616 (struct tui_source_windows): New.
1617 * tui/tui-winsource.c (tui_display_main): Update.
1618 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1619 (new_height_ok, parse_scrolling_args): Update.
1620 * tui/tui-layout.c (show_layout, show_data): Update.
1621 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1622 (tui_add_to_source_windows): Don't declare.
1623 * tui/tui-data.c (source_windows, tui_source_windows)
1624 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1625
ee556432
TT
16262019-08-15 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1629 Rename from reset.
1630 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1631 * tui/tui-layout.c (show_source_disasm_command, show_data):
1632 Update.
1633 (tui_gen_win_info::resize): Rename.
1634 (show_source_or_disasm_and_command): Update.
1635 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1636 reset.
1637
46f438e3
TT
16382019-08-15 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1641 * tui/tui-interp.c (tui_interp::init): Don't call
1642 tui_initialize_static_data.
1643 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1644
f4ce562c
TT
16452019-08-15 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1648 examine tui_win_list.
1649
c398c3d0
TT
16502019-08-15 Tom Tromey <tom@tromey.com>
1651
1652 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1653 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1654 tui_clear_source_content.
1655 (tui_clear_source_content): Remove.
1656 (tui_source_window_base::do_erase_source_content): Hoist call to
1657 content.clear().
1658 * tui/tui-stack.c (tui_show_frame_info): Don't call
1659 tui_clear_source_content.
1660
e25d2004
TT
16612019-08-15 Tom Tromey <tom@tromey.com>
1662
1663 * tui/tui-winsource.h (struct tui_source_window_base)
1664 <do_erase_source_content>: New method.
1665 <erase_source_content>: New method.
1666 (tui_erase_source_content): Don't declare.
1667 * tui/tui-winsource.c (tui_clear_source_content): Update.
1668 (tui_source_window_base::do_erase_source_content): Rename from
1669 tui_erase_source_content.
1670 (tui_source_window_base::show_source_content): Update.
1671 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1672 * tui/tui-source.h (struct tui_source_window)
1673 <erase_source_content>: New method.
1674 * tui/tui-disasm.h (struct tui_disasm_window)
1675 <erase_source_content>: New method.
1676
002f15c2
TT
16772019-08-15 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1680 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1681 constructor.
1682 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1683 * tui/tui-source.c (tui_set_source_content): Update.
1684 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1685
c9033fe8
TT
16862019-08-15 Tom Tromey <tom@tromey.com>
1687
1688 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1689 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1690 tui-source.c.
1691 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1692 Declare.
1693 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1694 method.
1695 (tui_source_window::maybe_update): Update.
1696
088f37dd
TT
16972019-08-15 Tom Tromey <tom@tromey.com>
1698
1699 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1700 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1701 tui-disasm.c.
1702 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1703 Declare.
1704 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1705 method.
1706 (tui_disasm_window::maybe_update): Update.
1707
a54700c6
TT
17082019-08-15 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-winsource.h (struct tui_source_window_base)
1711 <maybe_update>: Declare.
1712 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1713 method.
1714 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1715 Declare.
1716 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1717 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1718 Declare.
1719 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1720
e2a678a5
TT
17212019-08-15 Tom Tromey <tom@tromey.com>
1722
1723 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1724
f2dda477
TT
17252019-08-15 Tom Tromey <tom@tromey.com>
1726
1727 * tui/tui-wingeneral.c: Include tui-stack.h.
1728 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1729 (struct tui_locator_window): Move from tui-data.h.
1730 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1731 (tui_initialize_static_data): Move from tui-data.c.
1732 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1733 (struct tui_locator_window): Move to tui-stack.c.
1734 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1735 (tui_initialize_static_data): Move to tui-stack.c.
1736
ed4a1084
TT
17372019-08-15 Tom Tromey <tom@tromey.com>
1738
1739 * tui/tui-layout.c (show_source_disasm_command)
1740 (show_source_or_disasm_and_command): Use make_visible method, not
1741 tui_make_window.
1742 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1743 Remove.
1744
65962b20
TT
17452019-08-15 Tom Tromey <tom@tromey.com>
1746
1747 * tui/tui-wingeneral.h (tui_make_window): Update.
1748 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1749 parameter.
1750 (tui_gen_win_info::make_visible): Update.
1751 * tui/tui-regs.c (tui_data_window::display_registers_from):
1752 Update.
1753 * tui/tui-layout.c (show_source_disasm_command)
1754 (show_source_or_disasm_and_command): Update.
1755 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1756 (enum tui_box): Remove.
1757 (struct tui_win_info) <can_box>: New method.
1758 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1759 method.
1760
2208ee91
TV
17612019-08-15 Tom de Vries <tdevries@suse.de>
1762
1763 * linux-nat-trad.c: Include gdbarch.h.
1764
75faf5c4
AH
17652019-08-14 Alan Hayward <alan.hayward@arm.com>
1766
1767 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1768 register sizes.
1769
b1c896b3
TT
17702019-08-14 Tom Tromey <tromey@adacore.com>
1771
1772 * darwin-nat.c: Include gdbarch.h.
1773 * darwin-nat-info.c: Include gdbarch.h.
1774
6405cd73
TT
17752019-08-13 Tom Tromey <tom@tromey.com>
1776
1777 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1778 Remove.
1779 * tui/tui-data.c (tui_initialize_static_data): Update.
1780
5216580d
TT
17812019-08-13 Tom Tromey <tom@tromey.com>
1782
1783 * tui/tui-winsource.h (struct tui_exec_info_window)
1784 <~tui_exec_info_window, maybe_allocate_content, get_content,
1785 m_content>: Remove.
1786 (struct tui_source_window_base) <set_exec_info_content,
1787 show_exec_info_content>: Don't declare.
1788 * tui/tui-winsource.c
1789 (tui_exec_info_window::maybe_allocate_content): Remove.
1790 (tui_source_window_base::update_exec_info): Rename from
1791 set_exec_info_content.
1792 (tui_source_window_base::show_exec_info_content)
1793 (tui_source_window_base::update_exec_info): Remove.
1794
93858ad3
TT
17952019-08-13 Tom Tromey <tom@tromey.com>
1796
1797 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1798 declare.
1799 * tui/tui-winsource.c (tui_update_source_window_as_is)
1800 (tui_update_source_windows_with_addr, tui_erase_source_content):
1801 Update.
1802 (tui_clear_exec_info_content): Remove.
1803
e321e7ce
TT
18042019-08-13 Tom Tromey <tom@tromey.com>
1805
1806 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1807 declare.
1808 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1809 call tui_erase_exec_info_content.
1810 (tui_clear_exec_info_content): Rename from
1811 tui_erase_exec_info_content.
1812 (tui_clear_exec_info_content): Delete.
1813
8270ac62
TT
18142019-08-13 Tom Tromey <tom@tromey.com>
1815
1816 * tui/tui-winsource.h (struct tui_source_window_base)
1817 <show_exec_info_content>: Declare.
1818 (tui_show_exec_info_content): Don't declare.
1819 * tui/tui-winsource.c
1820 (tui_source_window_base::show_exec_info_content): Rename from
1821 tui_show_exec_info_content.
1822 (tui_source_window_base::update_exec_info): Update.
1823
7b56485d
TT
18242019-08-13 Tom Tromey <tom@tromey.com>
1825
1826 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1827 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1828 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1829 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1830 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1831 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1832 ... here.
1833
7ba913dc
TT
18342019-08-13 Tom Tromey <tom@tromey.com>
1835
1836 * tui/tui-winsource.h (struct tui_source_window_base)
1837 <update_exec_info>: Declare.
1838 (tui_update_exec_info): Don't declare.
1839 * tui/tui-winsource.c (tui_update_source_window_as_is)
1840 (tui_source_window_base::refresh_all)
1841 (tui_update_all_breakpoint_info): Update.
1842 (tui_source_window_base::update_exec_info): Rename from
1843 tui_update_exec_info.
1844 * tui/tui-stack.c (tui_show_frame_info): Update.
1845
37a4a131
TT
18462019-08-13 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-winsource.h (struct tui_source_window_base)
1849 <set_exec_info_content>: Declare.
1850 (tui_set_exec_info_content): Don't declare.
1851 * tui/tui-winsource.c
1852 (tui_source_window_base::set_exec_info_content): Rename from
1853 tui_set_exec_info_content.
1854 (tui_update_exec_info): Update.
1855
0bd27e07
TT
18562019-08-13 Tom Tromey <tom@tromey.com>
1857
1858 * tui/tui-winsource.h (struct tui_source_window_base)
1859 <show_source_content>: Declare.
1860 (tui_show_source_content): Don't declare.
1861 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1862 (tui_source_window_base::show_source_content): Rename from
1863 tui_show_source_content.
1864 (tui_source_window_base::refresh_all): Update.
1865 * tui/tui-layout.c (show_source_disasm_command)
1866 (show_source_or_disasm_and_command): Update.
1867
b4ef5aeb
TT
18682019-08-13 Tom Tromey <tom@tromey.com>
1869
1870 * tui/tui-winsource.c (tui_erase_source_content)
1871 (tui_show_source_content, tui_source_window_base::refresh_all):
1872 Update.
1873 * tui/tui-wingeneral.h
1874 (tui_check_and_display_highlight_if_needed): Don't declare.
1875 * tui/tui-wingeneral.c
1876 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1877 check_and_display_highlight_if_needed.
1878 * tui/tui-win.c (tui_rehighlight_all)
1879 (tui_win_info::make_visible_with_new_height): Update.
1880 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1881 (tui_data_window::erase_data_content)
1882 (tui_data_window::display_all_data): Update.
1883 * tui/tui-data.h (struct tui_win_info)
1884 <check_and_display_highlight_if_needed>: Declare.
1885
fede5273
TT
18862019-08-13 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-win.c (tui_resize_all): Call
1889 tui_delete_invisible_windows.
1890 * tui/tui-layout.c (show_layout): Call
1891 tui_delete_invisible_windows.
1892 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1893 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1894
22c3f490
TT
18952019-08-13 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1898 tui_add_win_to_layout.
1899
16cb7910
TT
19002019-08-13 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1903 * tui/tui-layout.c (tui_default_win_height): Now static.
1904
cc0c3ffb
TT
19052019-08-13 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1908 single switch.
1909 (show_source_disasm_command, show_source_or_disasm_and_command):
1910 Don't check current layout.
1911
3f3ffe54
TT
19122019-08-13 Tom Tromey <tom@tromey.com>
1913
1914 * tui/tui-wingeneral.c (make_all_visible): Remove.
1915 (tui_make_all_invisible): Simplify.
1916 * tui/tui-layout.c (tui_make_all_invisible): Move from
1917 tui-wingeneral.c; simplify.
1918 (show_layout): Hoist call to tui_make_all_invisible.
1919 (show_data): Don't call tui_make_all_invisible.
1920
69258091
TT
19212019-08-13 Tom Tromey <tom@tromey.com>
1922
1923 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1924 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1925
62cf57fe
TT
19262019-08-13 Tom Tromey <tom@tromey.com>
1927
1928 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1929 tui-data.c.
1930 (show_source_disasm_command, show_data)
1931 (show_source_or_disasm_and_command): Don't use
1932 tui_set_current_layout_to.
1933 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1934 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1935 tui-layout.c.
1936 (tui_set_current_layout_to): Remove.
1937
2afade5d
TT
19382019-08-13 Tom Tromey <tom@tromey.com>
1939
1940 * tui/tui-layout.c (tui_set_layout): Update.
1941 * tui/tui-data.h (struct tui_layout_def): Remove.
1942 (tui_layout_def): Don't declare.
1943 * tui/tui-data.c (layout_def): Remove.
1944 (tui_layout_def): Remove.
1945
a3504e96
TT
19462019-08-13 Tom Tromey <tom@tromey.com>
1947
1948 * tui/tui-winsource.h (struct tui_source_window_base)
1949 <clear_detail>: No longer "override".
1950 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1951 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1952 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1953 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1954 Remove.
1955 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1956
29c92911
TT
19572019-08-13 Tom Tromey <tromey@adacore.com>
1958
1959 * tracepoint.c: Don't include readline.h or history.h.
1960
86c6b807
TT
19612019-08-12 Tom Tromey <tom@tromey.com>
1962
1963 * configure: Rebuild.
1964 * configure.ac: Check for readline 7.
1965 * NEWS: Mention readline 7 requirement.
1966 * README: Update.
1967
5db2718c
TT
19682019-08-12 Tom Tromey <tom@tromey.com>
1969
1970 * mingw-hdep.c (gdb_select): Remove readline hack.
1971
dac36daf
PFC
19722019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1973
1974 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1975 when the function fails.
1976
1022c627
AA
19772019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1978
1979 * s390-tdep.c (s390_type_align): New function.
1980 (s390_gdbarch_init): Set it as type_align gdbarch method.
1981
eba4caf2
TV
19822019-08-09 Tom de Vries <tdevries@suse.de>
1983
1984 PR gdb/24591
1985 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1986 pc_low with relocation offset.
1987
123cd851
TT
19882019-08-07 Tom Tromey <tromey@adacore.com>
1989
1990 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1991 (print_frame_args): Update.
1992 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1993 Update.
1994 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1995 * frame.h (struct frame_arg): Add initializers.
1996 <error>: Now a unique_xmalloc_ptr.
1997
3d31bc39
AH
19982019-08-07 Alan Hayward <alan.hayward@arm.com>
1999
2000 * NEWS: Expand the Pointer Authentication entry.
2001 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2002 (aarch64_frame_unmask_lr): ... to this.
2003 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2004 Call aarch64_frame_unmask_lr.
2005 * frame.c (struct frame_info): Add "masked" variable.
2006 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2007 (fprint_frame): Check for masked pc.
2008 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2009 declarations.
2010 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2011 * stack.c (print_frame): Check for masked pc.
2012
0cf9feb9
TT
20132019-08-06 Tom Tromey <tom@tromey.com>
2014
2015 * stabsread.c (patch_block_stabs, read_one_struct_field)
2016 (read_enum_type): Use obstack_strndup.
2017 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2018 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2019 * dwarf2read.c (guess_full_die_structure_name)
2020 (anonymous_struct_prefix): Use obstack_strndup.
2021 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2022 * c-exp.y (yylex): Use obstack_strndup.
2023 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2024 (write_var_or_type): Use obstack_strndup.
2025
efba19b0
TT
20262019-08-06 Tom Tromey <tom@tromey.com>
2027
2028 * symfile.c (reread_symbols): Use obstack_strdup.
2029 * stabsread.c (read_type): Use obstack_strdup.
2030 * gdb_obstack.h (obstack_strdup): New overload.
2031 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2032 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2033 (dwarf2_canonicalize_name): Use obstack_strdup.
2034 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2035 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2036 Use obstack_strdup.
2037
f25102f7
TT
20382019-08-06 Tom Tromey <tom@tromey.com>
2039
2040 * gdb_obstack.h (obstack_strdup): Define.
2041 * gdb_obstack.c (obstack_strdup): Don't define.
2042
021887d8
TT
20432019-08-06 Tom Tromey <tom@tromey.com>
2044
2045 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2046 obstack_strdup.
2047 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2048 obstack_strdup.
2049 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2050 * stabsread.c (common_block_start): Use obstack_strdup.
2051 * objfiles.c (set_objfile_main_name, objfile): Use
2052 obstack_strdup.
2053 * namespace.c (add_using_directive): Use obstack_strdup.
2054 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2055 * jit.c (finalize_symtab): Use obstack_strdup.
2056 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2057 (guess_partial_die_structure_name, partial_die_info::fixup)
2058 (dwarf2_name): Use obstack_strdup.
2059 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2060 obstack_strdup.
2061 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2062 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2063 obstack_strdup.
2064 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2065
d2834edc
PW
20662019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2067
2068 * unittests/help-doc-selftests.c: New file.
2069 * Makefile.in: Add the new file.
2070
590042fc
PW
20712019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2072
2073 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2074 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2075 the full first line, except when FOR_VALUE_PREFIX. In this case,
2076 the trailing '.' is not output, and the first character is uppercased.
2077 (print_help_for_command): Update call to print_doc_line.
2078 (print_doc_of_command): Likewise.
2079 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2080 * cli/cli-option.c (append_indented_doc): Do not append newline.
2081 (build_help_option): Append newline after first appended_indented_doc
2082 only if a second call is done.
2083 (build_help): Append 2 new lines before each option, except the first
2084 one.
2085 * compile/compile.c (_initialize_compile): Add new lines after
2086 %OPTIONS%, when not at the end of the help.
2087 Change help doc or code
2088 producing the help doc to respect the invariants.
2089 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2090 Also removed the new line after 'Options:', as all other commands
2091 do not put an empty line between 'Options:' and the first option.
2092 * printcmd.c (_initialize_printcmd): Likewise.
2093 * stack.c (_initialize_stack): Likewise.
2094 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2095 incorrectly telling COMMAND is optional.
2096 * ada-lang.c (_initialize_ada_language): Change help doc or code
2097 producing the help doc to respect the invariants.
2098 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2099 * breakpoint.c (_initialize_breakpoint): Likewise.
2100 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2101 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2102 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2103 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2104 _initialize_cli_style): Likewise.
2105 * corelow.c (core_target_info): Likewise.
2106 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2107 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2108 * filesystem.c (_initialize_filesystem): Likewise.
2109 * frame.c (_initialize_frame): Likewise.
2110 * gnu-nat.c (add_task_commands): Likewise.
2111 * infcall.c (_initialize_infcall): Likewise.
2112 * infcmd.c (_initialize_infcmd): Likewise.
2113 * interps.c (_initialize_interpreter): Likewise.
2114 * language.c (_initialize_language): Likewise.
2115 * linux-fork.c (_initialize_linux_fork): Likewise.
2116 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2117 * maint.c (_initialize_maint_cmds): Likewise.
2118 * memattr.c (_initialize_mem): Likewise.
2119 * printcmd.c (_initialize_printcmd): Likewise.
2120 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2121 _RegEx): Likewise.
2122 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2123 * record-btrace.c (_initialize_record_btrace): Likewise.
2124 * record-full.c (_initialize_record_full): Likewise.
2125 * record.c (_initialize_record): Likewise.
2126 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2127 * regcache.c (_initialize_regcache): Likewise.
2128 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2129 _initialize_remote): Likewise.
2130 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2131 * serial.c (_initialize_serial): Likewise.
2132 * skip.c (_initialize_step_skip): Likewise.
2133 * source.c (_initialize_source): Likewise.
2134 * stack.c (_initialize_stack): Likewise.
2135 * symfile.c (_initialize_symfile): Likewise.
2136 * symtab.c (_initialize_symtab): Likewise.
2137 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2138 * top.c (init_main): Likewise.
2139 * tracefile-tfile.c (tfile_target_info): Likewise.
2140 * tracepoint.c (_initialize_tracepoint): Likewise.
2141 * tui/tui-win.c (_initialize_tui_win): Likewise.
2142 * utils.c (add_internal_problem_command): Likewise.
2143 * valprint.c (value_print_option_defs): Likewise.
2144
404f2902
FCE
21452019-08-06 Frank Ch. Eigler <fche@redhat.com>
2146
2147 PR build/24886
2148 * configure.ac: Drop enable-libmcheck support.
2149 * configure, config.in: Rebuild.
2150 * libmcheck.m4: Remove.
2151 * acinclude.m4: Don't include it.
2152 * Makefile.in: Don't distribute it.
2153 * top.c (print_gdb_configuration): Don't mention it.
2154
046bebe1
TT
21552019-08-06 Tom Tromey <tom@tromey.com>
2156
2157 * utils.c (set_output_style): Sometimes pass stream to
2158 emit_style_escape.
2159 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2160 * record-btrace.c (btrace_insn_history): Update.
2161 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2162 method.
2163 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2164 Update initializers.
2165 <m_uiout>: New field.
2166 <m_di>: Move lower.
2167 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2168 Remove "uiout" parameter.
2169 (dump_insns): Update.
2170 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2171 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2172
ddbcedf5
CB
21732019-08-06 Christian Biesinger <cbiesinger@google.com>
2174
2175 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2176 (error_in_psymtab_expansion): Likewise.
2177 (lookup_symbol_via_quick_fns): Likewise.
2178 (basic_lookup_transparent_type_quick): Likewise.
2179 (basic_lookup_transparent_type_1): Likewise.
2180
b08b16c8
TT
21812019-08-06 Tom Tromey <tromey@adacore.com>
2182
2183 * source.c (last_source_error): Now bool.
2184 (print_source_lines_base): Make "noprint" bool. Only open
2185 source file when last_source_visited changes.
2186
cb44333d
TT
21872019-08-06 Tom Tromey <tromey@adacore.com>
2188
2189 * annotate.c (annotate_source_line): Use g_source_cache.
2190 * source-cache.c (source_cache::get_plain_source_lines): Change
2191 parameters. Populate m_offset_cache.
2192 (source_cache::ensure): New method.
2193 (source_cache::get_line_charpos): New method.
2194 (extract_lines): Move lower. Change parameters.
2195 (source_cache::get_source_lines): Move lower.
2196 * source-cache.h (class source_cache): Update comment.
2197 <get_line_charpos>: New method.
2198 <get_source_lines>: Update comment.
2199 <clear>: Clear m_offset_cache.
2200 <get_plain_source_lines>: Change parameters.
2201 <ensure>: New method
2202 <m_offset_cache>: New member.
2203 * source.c (forget_cached_source_info_for_objfile): Update.
2204 (info_source_command): Use g_source_cache.
2205 (find_source_lines, open_source_file_with_line_charpos): Remove.
2206 (print_source_lines_base, search_command_helper): Use g_source_cache.
2207 * source.h (open_source_file_with_line_charpos): Don't declare.
2208 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2209 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2210 Use g_source_cache.
2211
872dceaa
TT
22122019-08-06 Tom Tromey <tromey@adacore.com>
2213
2214 * source-cache.c (source_cache::get_plain_source_lines):
2215 Remove "first_line" and "last_line" parameters.
2216 (source_cache::get_source_lines): Cache plain text.
2217 * source-cache.h (class source_cache)
2218 <get_plain_source_lines>: Update.
2219
269249d9
TT
22202019-08-06 Tom Tromey <tromey@adacore.com>
2221
2222 * source-cache.c (extract_lines): No longer a method.
2223 Changed type of parameter. Include final newline.
2224 (selftests::extract_lines_test): New function.
2225 (_initialize_source_cache): Likewise.
2226 * source-cache.h (class source_cache)
2227 <extract_lines>: Don't declare.
2228
c0e8dcd8
TT
22292019-08-06 Tom Tromey <tromey@adacore.com>
2230
2231 * breakpoint.c (init_breakpoint_sal): Update.
2232 (breakpoint): Update.
2233 * breakpoint.h (struct breakpoint) <filter>: Now a
2234 unique_xmalloc_ptr.
2235
0b27c27d
CB
22362019-08-05 Christian Biesinger <cbiesinger@google.com>
2237
2238 * NEWS: Mention dictionary access on blocks.
2239 * python/py-block.c (blpy_getitem): New function.
2240 (block_object_as_mapping): New struct.
2241 (block_object_type): Use new struct for tp_as_mapping field.
2242
4ee94178
CB
22432019-08-05 Christian Biesinger <cbiesinger@google.com>
2244
2245 * objfiles.h (objfile): Add a comment describing partial symbols.
2246
8abfcabc
TT
22472019-08-05 Tom Tromey <tromey@adacore.com>
2248
2249 * compile/compile.c (_initialize_compile): Use _(), not N_().
2250 * thread.c (_initialize_thread): Use _(), not N_().
2251 * stack.c (_initialize_stack): Use _(), not N_().
2252 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2253
2b79f376
SM
22542019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2255
2256 * dwarf2read.c (struct dw2_symtab_iterator):
2257 <want_specific_block>: Remove.
2258 <block_index>: Change type to gdb::optional.
2259 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2260 change type of BLOCK_INDEX parameter to gdb::optional.
2261 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2262 (dw2_lookup_symbol): Don't pass argument for
2263 WANT_SPECIFIC_BLOCK.
2264 (dw2_expand_symtabs_for_function): Don't pass argument for
2265 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2266 (class dw2_debug_names_iterator)
2267 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2268 parameter, change BLOCK_INDEX type to gdb::optional.
2269 <m_want_specific_block>: Remove.
2270 <m_block_index>: Change type to gdb::optional.
2271 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2272 gdb::optional. Re-write in function of gdb::optional.
2273 (dw2_debug_names_lookup_symbol): Don't pass argument for
2274 WANT_SPECIFIC_BLOCK.
2275 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2276 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2277 BLOCK_INDEX.
2278
ae60f04e
PW
22792019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2280
2281 * NEWS: Mention changes to "info sources" command.
2282
28cd9371
PW
22832019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2284
2285 * symtab.c (filename_partial_match_opts): New struct type.
2286 (struct output_source_filename_data): New members
2287 regexp, c_regexp, partial_match.
2288 (output_source_filename): Use new members to decide to print file.
2289 (info_sources_option_defs): New variable.
2290 (make_info_sources_options_def_group, print_info_sources_header,
2291 info_sources_command_completer):
2292 New functions.
2293 (info_sources_command): Read new optional arguments.
2294 (_initialize_symtab): Update info sources help.
2295
ca683e3a
AO
22962019-08-02 Alexandre Oliva <oliva@adacore.com>
2297
2298 * ada-lang.c (exception_support_info_v0): Renamed from...
2299 (default_exception_support_info): ... this. Create new
2300 definition for v1.
2301 (ada_has_this_exception_support): Look up catch_handlers_sym.
2302 (ada_exception_support_info_sniffer): Try v0 after default.
2303
f1264162
TT
23042019-08-01 Tom Tromey <tromey@adacore.com>
2305
2306 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2307 gdbarch.h.
2308
0a7b2485
CB
23092019-08-01 Christian Biesinger <cbiesinger@google.com>
2310
2311 * s12z-tdep.c: Fix include path for s12z-opc.h.
2312
c6bdbeb7
AH
23132019-08-01 Alan Hayward <alan.hayward@arm.com>
2314
2315 * NEWS: Require GNU make 3.82.
2316
a2bd7b82
TT
23172019-07-16 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2320 declare.
2321
aa3b6533
TT
23222019-07-30 Tom Tromey <tromey@adacore.com>
2323
2324 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2325
a1530dc7
KB
23262019-07-30 Kevin Buettner <kevinb@redhat.com>
2327
2328 * printcmd.c (print_address_symbolic): Print negative offsets.
2329 (build_address_symbolic): Force signed arithmetic when computing
2330 offset.
2331
2906593f
CB
23322019-07-30 Christian Biesinger <cbiesinger@google.com>
2333
2334 PR/24474: Add a function to lookup static variables.
2335 * NEWS: Mention this new function.
2336 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2337 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2338 * python/python.c (python_GdbMethods): Add new function.
2339
c620ed88
CB
23402019-07-29 Christian Biesinger <cbiesinger@google.com>
2341
2342 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2343 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2344 (objfpy_lookup_static_symbol): New function.
2345 (objfile_object_methods): Add new functions.
2346
bc4268a5
PW
23472019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2348
2349 * NEWS: Mention 'set|show print frame-info'. Mention new
2350 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2351 backtrace argument. Mention that python frame filtering code
2352 is now consistent with what 'backtrace' command prints.
2353
4b5e8d19
PW
23542019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2355
2356 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2357 comments.
2358 (print_frame_info_auto, print_frame_info_source_line,
2359 print_frame_info_location, print_frame_info_source_and_location,
2360 print_frame_info_location_and_address, print_frame_info_short_location):
2361 New declarations.
2362 (struct frame_print_options): New member print_frame_info.
2363 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2364 * stack.h (get_user_print_what_frame_info): New declaration.
2365 (frame_show_address): New declaration.
2366 * stack.c (print_frame_arguments_choices): New value 'presence'.
2367 (print_frame_info_auto, print_frame_info_source_line,
2368 print_frame_info_location, print_frame_info_source_and_location,
2369 print_frame_info_location_and_address, print_frame_info_short_location,
2370 print_frame_info_choices, print_frame_info_print_what): New definitions.
2371 (print_frame_args): Only print dots for args if print frame-arguments
2372 is 'presence'.
2373 (frame_print_option_defs): New element for "frame-info".
2374 (get_user_print_what_frame_info): New function.
2375 (frame_show_address): Make non static. Move comment to stack.h.
2376 (print_frame_info_to_print_what): New function.
2377 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2378 to decide what to print.
2379 (backtrace_command_1): Handle the new print_frame_arguments_presence
2380 value.
2381 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2382 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2383 (py_print_frame): In non-mi mode, use LOCATION as default for
2384 print_what, similarly to frame information printed directly by
2385 backtrace command. Handle frame-info user option in non MI mode.
2386
6bdfee81
KB
23872019-07-27 Kevin Buettner <kevinb@redhat.com>
2388
2389 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2390 Add case for debugging 32-bit target on 64-bit host. Revise
2391 comment.
2392
98a617f8
KB
23932019-07-27 Kevin Buettner <kevinb@redhat.com>
2394
2395 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2396 instead of find_function_entry_range_from_pc.
2397
567238c9
KB
23982019-07-27 Kevin Buettner <kevinb@redhat.com>
2399
2400 * stack.c (find_frame_funname): Remove code which preferred
2401 minsym over symtab sym in "certain pathological cases".
2402
2dc80cf8
KB
2403 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2404 parameter. Change type of "do_demangle" to bool.
2405 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2406 Pass suitable "prefer_sym_over_minsym" flag to
2407 build_address_symbolic(). Don't output "+" for negative offsets.
2408 * printcmd.c (print_address_symbolic): Update invocation of
2409 build_address_symbolic to include a "prefer_sym_over_minsym"
2410 flag.
2411 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2412 Restrict cases in which use of minimal symbol is preferred to that
2413 of a found symbol. Update comments.
2414
1aff7173
KB
2415 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2416 for entry pc when entry pc is out of range for that FDE.
2417
89b085ac
BC
24182019-07-26 Brian Callahan <bcallah@openbsd.org>
2419
2420 PR gdb/24839:
2421 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2422 type.
2423
f32feb4a
CB
24242019-07-25 Christian Biesinger <cbiesinger@google.com>
2425
2426 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2427 this function's Python signature.
2428
2429
24302019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2431
2432 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2433 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2434 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2435 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2436 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2437
2438
c54e4253
YS
24392019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2440
2441 * h8300-tdep.c (h8300_register_name_common): New.
2442 h8300_register_name): Use h8300_register_name_common.
2443 (h8300s_register_name): Likewise.
2444 (h8300sx_register_name): Likewise.
2445 (h8300h_register_nam): New.
2446 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2447
2448
40eadf04
SP
24492019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2450
2451 * arm-tdep.c (arm_skip_cmse_entry): New function.
2452 (arm_is_sgstubs_section): New function.
2453 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2454
bfa2a36d
TT
24552019-07-22 Tom Tromey <tom@tromey.com>
2456
2457 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2458 Don't self-assign.
2459
a8e9d247
AB
24602019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2463 type_print.
2464
eb86c5e2
AB
24652019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2468 so that GDB doesn't match any msymbols when searching in the
2469 TYPES_DOMAIN.
2470 (print_symbol_info): Print using typedef_print or type_print based
2471 on the type of the symbol. Add updated FIXME comment moved from...
2472 (_initialize_symtab): ... move and update FIXME comment to above.
2473
a8eab7c6
AB
24742019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * NEWS: Mention adding -q option to "info types".
2477 * symtab.c (struct info_types_options): New struct.
2478 (info_types_options_defs): New variable.
2479 (make_info_types_options_def_group): New function.
2480 (info_types_command): Use gdb::option framework to parse options.
2481 (info_types_command_completer): New function.
2482 (_initialize_symtab): Extend the help text on "info types" and
2483 register command completer.
2484
b4603c34
CB
24852019-07-21 Christian Biesinger <cbiesinger@google.com>
2486
2487 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2488 (lookup_symbol_in_objfile): Change int to block_enum and add a
2489 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2490
c8cdc1e0
CB
24912019-07-20 Christian Biesinger <cbiesinger@google.com>
2492
2493 * MAINTAINERS (Write After Approval): Add self.
2494
01e175fe
AB
24952019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2498 instruction to the dummy code region.
2499
56f79b63
TT
25002019-07-19 Tom Tromey <tromey@adacore.com>
2501
2502 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2503 (ARGSUSED, PARAMS, __func__): Remove rules.
2504
4c5aa8e0
AH
25052019-07-19 Alan Hayward <alan.hayward@arm.com>
2506
2507 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2508 * features/arm/arm-with-iwmmxt.c: Remove.
2509 * features/arm/arm-with-iwmmxt.xml: Remove.
2510 * features/arm/arm-with-m-fpa-layout.c: Remove.
2511 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2512 * features/arm/arm-with-m-vfp-d16.c: Remove.
2513 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2514 * features/arm/arm-with-m.c: Remove.
2515 * features/arm/arm-with-m.xml: Remove.
2516 * features/arm/arm-with-neon.c: Remove.
2517 * features/arm/arm-with-neon.xml: Remove.
2518 * features/arm/arm-with-vfpv2.c: Remove.
2519 * features/arm/arm-with-vfpv2.xml: Remove.
2520 * features/arm/arm-with-vfpv3.c: Remove.
2521 * features/arm/arm-with-vfpv3.xml: Remove.
2522
f42b2617
AH
25232019-07-19 Alan Hayward <alan.hayward@arm.com>
2524
2525 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2526
f29ec966
AH
25272019-07-19 Alan Hayward <alan.hayward@arm.com>
2528
2529 * arch/aarch32.c (aarch32_create_target_description): Create
2530 target descriptions using features.
2531 * arch/arm.c (arm_create_target_description)
2532 (arm_create_mprofile_target_description): Likewise.
2533 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2534
d105cce5
AH
25352019-07-19 Alan Hayward <alan.hayward@arm.com>
2536
2537 * Makefile.in: Add new files.
2538 * aarch32-tdep.c: New file.
2539 * aarch32-tdep.h: New file.
2540 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2541 Call aarch32_read_description.
2542 * arch/aarch32.c: New file.
2543 * arch/aarch32.h: New file.
2544 * arch/arm.c (arm_create_target_description)
2545 (arm_create_mprofile_target_description): New function.
2546 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2547 (arm_create_target_description)
2548 (arm_create_mprofile_target_description): New declaration.
2549 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2550 read_description functions.
2551 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2552 Likewise.
2553 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2554 * arm-tdep.c (tdesc_arm_list): New variable.
2555 (arm_register_g_packet_guesses): Call create description functions.
2556 (arm_read_description) (arm_read_mprofile_description): New
2557 function.
2558 * arm-tdep.h (arm_read_description)
2559 (arm_read_mprofile_description): Add declaration.
2560 * configure.tgt: Add new files.
2561
afe09f0b
GL
25622019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2563
2564 * top.c (new_ui_command): Open specified terminal just once.
2565
cd215b2e
TT
25662019-07-18 Tom Tromey <tromey@adacore.com>
2567
2568 * symtab.c (main_name): Constify return type.
2569 * symfile.c (set_initial_language): Update.
2570 * symtab.h (main_name): Constify return type.
2571
d8f68fcb
TT
25722019-07-17 Tom Tromey <tom@tromey.com>
2573
2574 * tui/tui-winsource.c (tui_update_source_window)
2575 (tui_update_source_window_as_is)
2576 (tui_update_source_windows_with_line): Remove return.
2577 * tui/tui-disasm.c (tui_show_disassem)
2578 (tui_show_disassem_and_update_source): Remove return.
2579 * tui/tui.c (tui_reset): Remove return.
2580 * tui/tui-wingeneral.c
2581 (tui_check_and_display_highlight_if_needed): Remove return.
2582
ca5af91e
TT
25832019-07-17 Tom Tromey <tom@tromey.com>
2584
2585 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2586
5104fe36
TT
25872019-07-17 Tom Tromey <tom@tromey.com>
2588
2589 * tui/tui-winsource.h (struct tui_exec_info_window)
2590 (struct tui_source_window_base): Move from tui-data.h.
2591 * tui/tui-winsource.c: Move many method definitions from
2592 elsewhere. Remove "structuring" comments.
2593 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2594 (tui_source_window_base::refresh_window): Move to
2595 tui-winsource.c.
2596 * tui/tui-win.c (tui_source_window_base::refresh_all)
2597 (tui_source_window_base::update_tab_width)
2598 (tui_source_window_base::set_new_height)
2599 (tui_source_window_base::do_make_visible_with_new_height): Move to
2600 tui-winsource.c.
2601 * tui/tui-source.h: Update.
2602 * tui/tui-source.c (tui_source_window_base::reset): Move to
2603 tui-winsource.c.
2604 * tui/tui-disasm.h: Update.
2605 * tui/tui-data.h (struct tui_exec_info_window): Move to
2606 tui-winsource.h.
2607 (struct tui_source_window_base): Likewise.
2608 * tui/tui-data.c (tui_source_window_base::clear_detail)
2609 (tui_source_window_base, ~tui_source_window_base): Move to
2610 tui-winsource.c.
2611
daa15dde
TT
26122019-07-17 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-win.c (tui_resize_all)
2615 (tui_source_window_base::update_tab_width)
2616 (tui_adjust_win_heights): Update.
2617 (tui_win_info::make_invisible_and_set_new_height): Rename from
2618 make_invisible_and_set_new_height.
2619 * tui/tui-data.h (struct tui_win_info)
2620 <make_invisible_and_set_new_height>: New method.
2621
bfad4537
TT
26222019-07-17 Tom Tromey <tom@tromey.com>
2623
2624 * tui/tui.c: Update.
2625 * tui/tui-source.h (struct tui_source_window): Move from
2626 tui-data.h.
2627 * tui/tui-layout.c: Update.
2628 * tui/tui-disasm.c: Update.
2629 * tui/tui-data.h (struct tui_source_window): Move to
2630 tui-source.h.
2631
88f7e873
TT
26322019-07-17 Tom Tromey <tom@tromey.com>
2633
2634 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2635 tui-data.h.
2636 * tui/tui-data.h (struct tui_disasm_window): Move to
2637 tui-disasm.h.
2638
96bd6233
TT
26392019-07-17 Tom Tromey <tom@tromey.com>
2640
2641 * tui/tui-regs.h (struct tui_data_item_window): Move from
2642 tui-data.h.
2643 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2644 * tui/tui-data.h (struct tui_data_item_window): Move to
2645 tui-regs.h.
2646 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2647
ce38393b
TT
26482019-07-17 Tom Tromey <tom@tromey.com>
2649
2650 * tui/tui.c: Update.
2651 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2652 (tui_cmd_window::max_height): Move to tui-command.c.
2653 * tui/tui-layout.c: Update.
2654 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2655 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2656 tui-command.c.
2657 * tui/tui-command.h (struct tui_cmd_window): Move from
2658 tui-data.h.
2659 * tui/tui-command.c: Remove "structuring" comments.
2660 (tui_cmd_window::clear_detail)
2661 (tui_cmd_window::do_make_visible_with_new_height)
2662 (tui_cmd_window::max_height): Move from elsewhere.
2663
2d8b51cb
TT
26642019-07-17 Tom Tromey <tom@tromey.com>
2665
2666 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2667 Now static.
2668 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2669 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2670
18ab23af
TT
26712019-07-17 Tom Tromey <tom@tromey.com>
2672
2673 * tui/tui.c: Update.
2674 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2675 tui-regs.c.
2676 * tui/tui-windata.h: Remove file.
2677 * tui/tui-windata.c: Remove file.
2678 * tui/tui-win.c (tui_data_window::set_new_height)
2679 (tui_data_window::do_make_visible_with_new_height): Move to
2680 tui-regs.c.
2681 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2682 * tui/tui-regs.c: Remove "structuring" comments.
2683 (tui_data_window::first_data_item_displayed)
2684 (tui_data_window::delete_data_content_windows)
2685 (tui_data_window::erase_data_content)
2686 (tui_data_window::display_all_data)
2687 (tui_data_window::refresh_all)
2688 (tui_data_window::do_scroll_vertical)
2689 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2690 (tui_data_window::do_make_visible_with_new_height)
2691 (tui_data_window::refresh_window): Move from elsewhere.
2692 (_initialize_tui_regs): Move to end of file.
2693 * tui/tui-layout.c: Update.
2694 * tui/tui-hooks.c: Update.
2695 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2696 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2697 tui-regs.c.
2698 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2699
88b7e7cc
TT
27002019-07-17 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2703 seen.
2704
0fcd3711
TT
27052019-07-17 Tom Tromey <tom@tromey.com>
2706
2707 * tui/tui-win.c (tui_source_window_base::set_new_height)
2708 (tui_source_window_base::do_make_visible_with_new_height): Use
2709 m_has_locator field directly.
2710 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2711 method.
2712 (struct tui_source_window_base) <has_locator>: Likewise.
2713
4a38112d
TT
27142019-07-17 Tom Tromey <tom@tromey.com>
2715
2716 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2717 Don't declare.
2718 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2719 Remove.
2720 * tui/tui-win.c (tui_source_window_base::set_new_height)
2721 (tui_source_window_base::set_new_height)
2722 (make_invisible_and_set_new_height)
2723 (tui_source_window_base::do_make_visible_with_new_height)
2724 (tui_source_window_base::do_make_visible_with_new_height):
2725 Update.
2726 * tui/tui-layout.c (show_source_disasm_command, show_data)
2727 (show_source_or_disasm_and_command): Update.
2728 * tui/tui-layout.c (show_layout): Update.
2729
09129226
TT
27302019-07-17 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-layout.c (make_data_window): Remove.
2733 (show_data): Unify creation and re-initialization cases.
2734
4a8a5e84
TT
27352019-07-17 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-layout.c (make_source_window, make_disasm_window):
2738 Remove.
2739 (show_data): Unify creation and re-initialization cases.
2740
76d2be8e
TT
27412019-07-17 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-layout.c (make_command_window): Remove.
2744 (show_source_disasm_command, show_source_or_disasm_and_command):
2745 Unify creation and re-initialization cases.
2746
890b8bde
TT
27472019-07-17 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2750 creation and re-initialization cases.
2751
2cdfa113
TT
27522019-07-17 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui-regs.c (tui_get_register): Return void.
2755
8e3cfd09
TT
27562019-07-17 Tom Tromey <tom@tromey.com>
2757
2758 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2759 Simplify.
2760
f4e04977
TT
27612019-07-17 Tom Tromey <tom@tromey.com>
2762
2763 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2764 resetting.
2765
0379b883
TT
27662019-07-17 Tom Tromey <tom@tromey.com>
2767
2768 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2769 * tui/tui-regs.c (tui_reg_layout): New function.
2770 (tui_show_registers, tui_reg_command): Use it.
2771 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2772 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2773 parameters.
2774 (tui_layout_command): Remove.
2775
b7fbad91
TT
27762019-07-17 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-layout.h (tui/tui-layout): Return void.
2779 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2780
4e1e56b9
TT
27812019-07-17 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-layout.c (show_source_disasm_command, show_data):
2784 Update.
2785 (reset_locator): Remove.
2786 (show_source_or_disasm_and_command): Update.
2787
1e0c09ba
TT
27882019-07-17 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-source.c (tui_source_window_base::reset): Remove
2791 win_type parameter.
2792 * tui/tui-layout.c (make_command_window, make_source_window)
2793 (make_disasm_window, make_data_window)
2794 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2795 (reset_locator, show_source_or_disasm_and_command): Update.
2796 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2797 win_type parameter.
2798 (struct tui_source_window_base) <reset>: Likewise.
2799
1bf605de
TT
28002019-07-17 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-layout.c (show_source_disasm_command): Use
2803 reset_locator.
2804 (reset_locator): New function.
2805 (init_and_make_win): Remove.
2806 (show_source_or_disasm_and_command): Use reset_locator.
2807
098f9ed4
TT
28082019-07-17 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2811 condition.
2812 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2813 Remove condition.
2814 * tui/tui-source.c (tui_source_window_base::reset): New method.
2815 * tui/tui-layout.c (make_command_window): Don't call
2816 init_and_make_win.
2817 (make_source_window, make_disasm_window): Don't call
2818 make_source_or_disasm_window.
2819 (make_data_window): Don't call init_and_make_win. Change calling
2820 convention.
2821 (show_source_disasm_command, show_data): Simplify.
2822 (make_source_or_disasm_window): Remove.
2823 (show_source_or_disasm_and_command): Simplify.
2824 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2825 (struct tui_source_window_base) <reset>: Likewise.
2826 <execution_info>: Remove initializer.
2827 * tui/tui-data.c (tui_source_window_base): Initialize
2828 execution_info.
2829
80110957
TT
28302019-07-17 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2833 variable.
2834
cf82af05
TT
28352019-07-17 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui.c (tui_rl_other_window): Update.
2838 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2839 superclass method first. Always iterate over regs_content.
2840 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2841 method.
2842 * tui/tui-win.c (tui_set_focus_command): Update.
2843
01aeb396
TT
28442019-07-17 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-win.c (tui_set_focus_command): Rename from
2847 tui_set_focus. Call tui_enable.
2848 (tui_set_focus_command): Remove.
2849
fd6c75ee
TT
28502019-07-17 Tom Tromey <tom@tromey.com>
2851
2852 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2853 refresh_window.
2854 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2855 touchwin.
2856 (tui_data_window::refresh_window): Call refresh_window on data
2857 items. Always call superclass refresh_window.
2858 (tui_win_info::refresh): Remove.
2859 (tui_source_window_base::refresh_window): Update.
2860 (tui_refresh_all): Update.
2861 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2862 refresh_window.
2863 (show_source_or_disasm_and_command): Likewise.
2864 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2865 (struct tui_source_window_base) <refresh>: Likewise.
2866
f6cc34a9
TT
28672019-07-17 Tom Tromey <tom@tromey.com>
2868
2869 * tui/tui-winsource.c (tui_clear_source_content)
2870 (tui_show_source_content): Update.
2871 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2872 whether content is empty.
2873 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2874 Remove.
2875
f31ec9af
TT
28762019-07-17 Tom Tromey <tom@tromey.com>
2877
2878 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2879 window's contents.
2880 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2881 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2882
d1b6f1e5
TT
28832019-07-17 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2886 (struct tui_data_item_window): Update.
2887
d9743a13
TT
28882019-07-17 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2891 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2892 defines.
2893
caf0bc4e
TT
28942019-07-17 Tom Tromey <tom@tromey.com>
2895
2896 * tui/tui-winsource.h (tui_erase_source_content)
2897 (tui_clear_source_content): Remove "display_prompt" parameter.
2898 * tui/tui-winsource.c (tui_update_source_window_as_is)
2899 (tui_update_source_windows_with_addr): Update.
2900 (tui_clear_source_content): Remove "display_prompt" parameter.
2901 (tui_erase_source_content): Likewise. Simplify.
2902 (tui_show_source_content): Update.
2903 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2904 * tui/tui-stack.c (tui_show_frame_info): Update.
2905 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2906 Remove defines.
2907
9d391078
TT
29082019-07-17 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2911 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2912 parameter.
2913 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2914 parameter.
2915
a38da35d
TT
29162019-07-17 Tom Tromey <tom@tromey.com>
2917
2918 * tui/tui-winsource.c (tui_clear_source_content)
2919 (tui_show_source_content, tui_show_exec_info_content)
2920 (tui_clear_exec_info_content): Update.
2921 * tui/tui-stack.c (tui_show_locator_content): Update.
2922 (tui_show_frame_info): Update.
2923 * tui/tui-source.h (tui_source_window): Don't declare.
2924 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2925 from tui_source_is_displayed.
2926 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2927 Remove field.
2928 (struct tui_source_window_base) <content_in_use>: New field. Now
2929 bool.
2930 (struct tui_source_window) <showing_source_p>: New method.
2931 (TUI_SRC_WIN): Change cast.
2932 * tui/tui-data.c (tui_initialize_static_data): Update.
2933
c2cd8994
TT
29342019-07-17 Tom Tromey <tom@tromey.com>
2935
2936 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2937 location_matches_p.
2938 * tui/tui-source.c (tui_source_window::location_matches_p): New
2939 method.
2940 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2941 method.
2942 * tui/tui-data.h (struct tui_source_window_base)
2943 <location_matches_p>: New method.
2944 (struct tui_source_window, struct tui_disasm_window)
2945 <location_matches_p>: Likewise.
2946
4dde7b34
TT
29472019-07-17 Tom Tromey <tom@tromey.com>
2948
2949 * tui/tui-win.c (tui_set_win_height_command): Rename from
2950 tui_set_win_height.
2951 (tui_set_win_height_command): Remove.
2952
b73dd877
TT
29532019-07-17 Tom Tromey <tom@tromey.com>
2954
2955 * tui/tui-source.c (tui_source_window): New constructor. Add
2956 observer.
2957 (~tui_source_window): New destructor.
2958 (tui_source_window::style_changed): New method.
2959 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2960 (tui_attach_detach_observers): Update.
2961 * tui/tui-data.h (struct tui_source_window): Make constructor not
2962 inline. Add destructor.
2963 (struct tui_source_window) <style_changed>: New method.
2964 <m_observable>: New member.
2965
ae2b5380
TT
29662019-07-17 Tom Tromey <tom@tromey.com>
2967
2968 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2969 * tui/tui-win.c (tui_resize_all): Fix typo.
2970
1ce3e844
TT
29712019-07-17 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2974 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2975 (tui_refresh_all): Remove "list" parameter. Use foreach.
2976 * tui/tui-win.c (window_name_completer): Use foreach.
2977 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2978 (update_tab_width): Likewise.
2979 * tui/tui-layout.c (show_layout): Update.
2980 * tui/tui-data.h (class tui_window_iterator): New.
2981 (struct all_tui_windows): New.
2982 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2983
fe3eaf1c
TT
29842019-07-17 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2987 parameter. Don't reference globals.
2988 (tui_reg_command): Update.
2989
368c1354
TT
29902019-07-17 Tom Tromey <tom@tromey.com>
2991
2992 * tui/tui-regs.c (tui_show_registers): Simplify.
2993
e80cd204
TT
29942019-07-17 Tom Tromey <tom@tromey.com>
2995
2996 * tui/tui-regs.c (tui_show_registers): Update.
2997 (tui_show_register_group): Add win_info parameter.
2998
aca2dd16
TT
29992019-07-17 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3002 Rename from tui_display_reg_element_at_line.
3003 (tui_data_window::display_registers_from_line): Update.
3004 * tui/tui-data.h (struct tui_data_window)
3005 <display_reg_element_at_line>: New method.
3006
517e9505
TT
30072019-07-17 Tom Tromey <tom@tromey.com>
3008
3009 * tui/tui-regs.h (tui_display_registers_from)
3010 (tui_display_registers_from_line): Don't declare.
3011 * tui/tui-windata.c (tui_data_window::display_all_data)
3012 (tui_data_window::refresh_all)
3013 (tui_data_window::do_scroll_vertical): Update.
3014 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3015 from tui_display_registers_from.
3016 (tui_display_reg_element_at_line): Update.
3017 (tui_data_window::display_registers_from_line): Rename from
3018 tui_display_registers_from_line.
3019 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3020 display_registers_from_line>: New methods.
3021
f76d8b19
TT
30222019-07-17 Tom Tromey <tom@tromey.com>
3023
3024 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3025 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3026 from tui_erase_data_content.
3027 (tui_data_window::display_all_data)
3028 (tui_data_window::refresh_all)
3029 (tui_data_window::do_scroll_vertical): Update.
3030 * tui/tui-regs.c (tui_show_registers): Update.
3031 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3032 New method.
3033
b4094625
TT
30342019-07-17 Tom Tromey <tom@tromey.com>
3035
3036 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3037 declare.
3038 * tui/tui-windata.c
3039 (tui_data_window::delete_data_content_windows): Rename from
3040 tui_delete_data_content_windows.
3041 (tui_data_window::display_all_data)
3042 (tui_data_window::do_scroll_vertical): Update.
3043 * tui/tui-data.h (struct tui_data_window)
3044 <delete_data_content_windows>: New method.
3045
c223a729
TT
30462019-07-17 Tom Tromey <tom@tromey.com>
3047
3048 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3049 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3050
50daf268
TT
30512019-07-17 Tom Tromey <tom@tromey.com>
3052
3053 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3054 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3055 from tui_display_all_data.
3056 * tui/tui-win.c
3057 (tui_data_window::do_make_visible_with_new_height): Update.
3058 * tui/tui-regs.c (tui_show_registers): Update.
3059 * tui/tui-layout.c (tui_set_layout): Update.
3060 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3061 method.
3062
df5f8cab
TT
30632019-07-17 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3066 * tui/tui-windata.c (tui_display_data_from): Remove.
3067 (tui_data_window::refresh_all): Update.
3068
80cb6c27
TT
30692019-07-17 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3072 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3073 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3074 tui_display_registers_from_line.
3075 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3076 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3077 "force_display" parameter.
3078
baff0c28
TT
30792019-07-17 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3082 declare.
3083 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3084 Rename from tui_first_reg_element_no_inline.
3085 (tui_display_reg_element_at_line)
3086 (tui_display_registers_from_line): Update.
3087 * tui/tui-data.h (struct tui_data_window)
3088 <first_reg_element_no_inline>: New method.
3089
3b23c5f2
TT
30902019-07-17 Tom Tromey <tom@tromey.com>
3091
3092 * tui/tui-windata.c (tui_display_data_from)
3093 (tui_data_window::do_scroll_vertical): Update.
3094 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3095 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3096 Rename from tui_line_from_reg_element_no.
3097 (tui_display_registers_from_line): Update.
3098 * tui/tui-data.h (struct tui_data_window)
3099 <line_from_reg_element_no>: New method.
3100
0b5ec218
TT
31012019-07-17 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3104 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3105 tui_last_regs_line_no.
3106 (tui_display_reg_element_at_line)
3107 (tui_display_registers_from_line): Update.
3108 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3109 method.
3110
0807ab7b
TT
31112019-07-17 Tom Tromey <tom@tromey.com>
3112
3113 PR tui/24722:
3114 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3115 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3116 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3117 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3118 (tui_update_breakpoint_info): Likewise.
3119 * tui/tui-hooks.c (tui_event_create_breakpoint)
3120 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3121 Update.
3122
9ad7fdef
TT
31232019-07-17 Tom Tromey <tom@tromey.com>
3124
3125 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3126
5813316f
TT
31272019-07-17 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-winsource.c (tui_update_source_window_as_is)
3130 (tui_update_source_windows_with_addr): Update.
3131 * tui/tui-source.h (tui_set_source_content)
3132 (tui_show_symtab_source): Add "win_info" parameter.
3133 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3134 parameter.
3135 (tui_show_symtab_source): Likewise.
3136
00e264e7
TT
31372019-07-17 Tom Tromey <tom@tromey.com>
3138
3139 * tui/tui-wingeneral.c
3140 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3141
06210ce4
TT
31422019-07-17 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3145 (struct tui_cmd_window) <can_scroll>: New method.
3146 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3147 method.
3148
381befee
TT
31492019-07-17 Tom Tromey <tromey@adacore.com>
3150
3151 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3152 do_field_signed>: Rename. Change type of "value".
3153 * ui-out.c (ui_out::field_signed): Rename from field_int.
3154 Change type of "value".
3155 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3156 type of "value".
3157 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3158 do_field_int. Change type of "value".
3159 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3160 do_field_int. Change type of "value".
3161 * tracepoint.c (trace_status_mi, tfind_1)
3162 (print_one_static_tracepoint_marker): Update.
3163 * thread.c (print_thread_info_1, print_selected_thread_frame):
3164 Update.
3165 * stack.c (print_frame, print_frame_info): Update.
3166 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3167 Update.
3168 * source.c (print_source_lines_base): Update.
3169 * skip.c (info_skip_command): Update.
3170 * record-btrace.c (btrace_ui_out_decode_error)
3171 (btrace_call_history_src_line): Update.
3172 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3173 Update.
3174 * progspace.c (print_program_space): Update.
3175 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3176 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3177 do_field_int. Change type of "value".
3178 * mi/mi-out.c (mi_ui_out::do_table_begin)
3179 (mi_ui_out::do_table_header): Update.
3180 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3181 type of "value".
3182 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3183 (mi_cmd_data_list_changed_registers, output_register)
3184 (mi_cmd_data_read_memory, mi_load_progress)
3185 (mi_cmd_trace_frame_collected): Update.
3186 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3187 Update.
3188 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3189 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3190 (mi_cmd_var_list_children, varobj_update_one): Update.
3191 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3192 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3193 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3194 * inferior.c (print_inferior): Update.
3195 * gdb_bfd.c (print_one_bfd): Update.
3196 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3197 Update.
3198 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3199 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3200 do_field_int. Change type of "value".
3201 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3202 do_field_int. Change type of "value".
3203 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3204 (print_one_breakpoint_location, print_it_catch_fork)
3205 (print_one_catch_fork, print_it_catch_vfork)
3206 (print_one_catch_vfork, print_it_catch_solib)
3207 (print_it_catch_exec, print_it_ranged_breakpoint)
3208 (print_mention_watchpoint, print_mention_masked_watchpoint)
3209 (bkpt_print_it, update_static_tracepoint): Update.
3210 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3211 * break-catch-syscall.c (print_it_catch_syscall): Update.
3212 * ada-tasks.c (print_ada_task_info): Update.
3213 * ada-lang.c (print_it_exception, print_mention_exception):
3214 Update.
3215
6b78c3f8
AB
32162019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 PR breakpoints/24541
3219 * gdbarch.c: Regenerate.
3220 * gdbarch.h: Regenerate.
3221 * gdbarch.sh: Adjust return type and parameter types for
3222 'stap_adjust_register'.
3223 (i386_stap_adjust_register): Adjust signature and return new
3224 register name.
3225 * stap-probe.c (stap_parse_register_operand): Adjust use of
3226 'gdbarch_stap_adjust_register'.
3227
d72a9b85
TT
32282019-07-17 Tom Tromey <tromey@adacore.com>
3229
3230 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3231 declare VEC.
3232 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3233 std::vector.
3234 (struct s390_process_info): Add initializers.
3235 (s390_add_process): Use new.
3236 (s390_linux_nat_target::low_forget_process): Use delete.
3237 (s390_linux_nat_target::low_new_fork)
3238 (s390_linux_nat_target::stopped_by_watchpoint)
3239 (s390_linux_nat_target::low_prepare_to_resume)
3240 (s390_linux_nat_target::insert_watchpoint)
3241 (s390_linux_nat_target::insert_hw_breakpoint)
3242 (s390_linux_nat_target::remove_watchpoint)
3243 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3244
206e6c58
JB
32452019-07-16 John Baldwin <jhb@FreeBSD.org>
3246
3247 * aarch64-fbsd-nat.c: Include regcache.h.
3248 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3249 argument.
3250 (aarch64_fbsd_nat_target::fetch_registers)
3251 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3252 variable.
3253 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3254
cbde90f2
JB
32552019-07-16 John Baldwin <jhb@FreeBSD.org>
3256
3257 * fbsd-nat.c: Include gdbarch.h.
3258
07128006
TT
32592019-07-15 Tom Tromey <tromey@adacore.com>
3260
3261 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3262
1f77b012
TT
32632019-07-15 Tom Tromey <tromey@adacore.com>
3264
3265 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3266 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3267 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3268 * cli-out.c (cli_ui_out::do_field_int): New method.
3269 * ui-out.c (ui_out::field_unsigned): New method.
3270 * symfile.c (generic_load): Use field_unsigned.
3271 (print_transfer_performance): Likewise.
3272 * record-btrace.c (ui_out_field_uint): Remove.
3273 (btrace_call_history_insn_range, btrace_call_history): Use
3274 field_unsigned.
3275 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3276 field_unsigned.
3277 * ui-out.h (class ui_out) <field_unsigned>: New method.
3278 <do_field_unsigned>: Likewise.
3279
33eca680
TT
32802019-07-15 Tom Tromey <tromey@adacore.com>
3281
3282 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3283 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3284 * target.c (flash_erase_command): Use field_string.
3285 * infrun.c (print_signal_received_reason): Use field_string.
3286 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3287 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3288 field_string.
3289 * ada-tasks.c (print_ada_task_info): Use field_string.
3290
ca8d69be
TT
32912019-07-15 Tom Tromey <tromey@adacore.com>
3292
3293 * target.c (flash_erase_command): Use field_core_addr.
3294 * symfile.c (generic_load): Use field_core_addr.
3295 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3296 Use field_core_addr.
3297 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3298 field_core_addr.
3299
0d4e84ed
AB
33002019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3303 value if its desired type is smaller than a CORE_ADDR and signed.
3304
9a49df9d
AB
33052019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3308 of changes to field names, and use new is_reference field to
3309 decide if a property is a reference or not.
3310 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3311 field.
3312 (struct dwarf2_property_baton): Update header comment, rename
3313 'referenced_type' to 'property_type' and update comments.
3314 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3315 default property type, store in property baton, update to take
3316 accound of renamed field.
3317 (read_func_scope): Update call to attr_to_dynamic_prop.
3318 (read_array_type): Likewise.
3319 (dwarf2_per_cu_addr_sized_int_type): New function.
3320 (read_subrange_index_type): Move type finding code to
3321 dwarf2_per_cu_addr_sized_int_type.
3322 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3323 (dwarf2_per_cu_addr_type): New function.
3324 (set_die_type): Update calls to attr_to_dynamic_prop.
3325
b86352cf
AB
33262019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * dwarf2read.c (read_subrange_index_type): New function.
3329 (read_subrange_type): Move code into new function and call it.
3330 * gdbtypes.c (create_range_type): Add some asserts.
3331
603490bf
AB
33322019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3335 update return statements.
3336 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3337 declaration, and update comment to match.
3338 * gdbtypes.c (resolve_dynamic_array): Update call to
3339 dwarf2_evaluate_property to match new return type.
3340
592f9d27
AB
33412019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3342
3343 * valarith.c (value_subscripted_rvalue): Change lowerbound
3344 parameter type from int to LONGEST.
3345 * value.h (value_subscripted_rvalue): Likewise in declaration.
3346
60cfcb20
AB
33472019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3348
3349 * cli/cli-utils.c (info_print_command_completer): New function.
3350 * cli/cli-utils.h: Add 'completer.h' include, and forward
3351 declaration for 'struct cmd_list_element'.
3352 (info_print_command_completer): Declare.
3353 * stack.c (_initialize_stack): Add completer for 'info locals' and
3354 'info args'.
3355 * symtab.c (_initialize_symtab): Add completer for 'info
3356 variables' and 'info functions'.
3357 * NEWS: Mention completion for additional info commands.
3358
b16507e0
AB
33592019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3360
3361 * cli/cli-utils.c (extract_info_print_args): Delete.
3362 (extract_arg_maybe_quoted): Delete.
3363 (info_print_options_defs): New variable.
3364 (make_info_print_options_def_group): New function.
3365 (extract_info_print_options): Define new function.
3366 * cli/cli-utils.h (extract_info_print_args): Delete.
3367 (struct info_print_options): New structure.
3368 (extract_info_print_options): Declare new function.
3369 * stack.c (info_locals_command): Update to use new
3370 extract_info_print_options, also add a header comment.
3371 (info_args_command): Likewise.
3372 * symtab.c (info_variables_command): Likewise.
3373 (info_functions_command): Likewise.
3374
021d8588
AB
33752019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3376
3377 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3378 to extract string arguments.
3379 * common/common-utils.c (extract_string_maybe_quoted): New function.
3380 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3381
b777eb6d
TT
33822019-07-11 Tom Tromey <tromey@adacore.com>
3383
3384 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3385 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3386 * top.h (gdbinit): Don't declare.
3387 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3388 into...
3389 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3390 * top.c (gdb_init): Don't call init_cli_cmds.
3391 (gdbinit): Remove.
3392 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3393
72ee03ff
TT
33942019-07-11 Tom Tromey <tromey@adacore.com>
3395
3396 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3397 after it has been moved.
3398
00db9531
SM
33992019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3400
3401 * valops.c (value_must_coerce_to_target): Change return type to
3402 bool.
3403 * value.h (value_must_coerce_to_target): Likewise.
3404
f2478a7e
SM
34052019-07-10 Simon Marchi <simon.marchi@efficios.com>
3406
3407 * breakpoint.c (is_hardware_watchpoint): Remove
3408 forward-declaration.
3409 (is_masked_watchpoint): Change return type to bool.
3410 (is_tracepoint): Likewise.
3411 (is_breakpoint): Likewise.
3412 (is_hardware_watchpoint): Likewise.
3413 (is_watchpoint): Likewise.
3414 (is_no_memory_software_watchpoint): Likewise.
3415 (is_catchpoint): Likewise.
3416 (breakpoint_1): Make FILTER parameter's return type bool.
3417 is_masked_watchpoint): Change return type to bool.
3418 (save_breakpoints): Make FILTER parameter's return type bool.
3419 * breakpoint.h (is_breakpoint): Change return type to bool.
3420 (is_watchpoint): Likewise.
3421 (is_catchpoint): Likewise.
3422 (is_tracepoint): Likewise.
3423
0d12e84c
TT
34242019-07-10 Tom Tromey <tom@tromey.com>
3425
3426 * defs.h: Don't include gdbarch.h.
3427 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3428 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3429 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3430 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3431 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3432 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3433 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3434 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3435 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3436 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3437 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3438 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3439 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3440 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3441 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3442 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3443 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3444 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3445 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3446 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3447 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3448 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3449 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3450 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3451 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3452 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3453 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3454
f06f1252
TT
34552019-07-10 Tom Tromey <tromey@adacore.com>
3456
3457 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3458 * breakpoint.c (init_ada_exception_breakpoint): Register as
3459 bp_catchpoint.
3460 (print_one_breakpoint_location, print_one_breakpoint): Use
3461 is_ada_exception_catchpoint.
3462 * ada-lang.c (class ada_catchpoint_location): Pass
3463 bp_loc_software_breakpoint to bp_location constructor.
3464 (is_ada_exception_catchpoint): New function.
3465
7a5d944b
TT
34662019-07-10 Tom Tromey <tromey@adacore.com>
3467
3468 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3469 VEC.
3470 (struct arm_exidx_entry): New method operator<.
3471 (struct arm_exidx_data) <section_maps>: Change type.
3472 (arm_exidx_data_free): Remove.
3473 (arm_exidx_data_key): Change type. Move lower.
3474 (arm_exidx_new_objfile): Update.
3475 (arm_compare_exidx_entries): Remove.
3476 (arm_find_exidx_entry, _initialize_arm_tdep)
3477
48c66e1d
TT
34782019-07-10 Tom Tromey <tromey@adacore.com>
3479
3480 * solib-spu.c (ocl_program_data_key): Change type.
3481 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3482 Update.
3483
a269fbf1
TT
34842019-07-10 Tom Tromey <tromey@adacore.com>
3485
3486 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3487 (struct solib_aix_inferior_data) <library_list>: Change type.
3488 (solib_aix_inferior_data_handle): Change type.
3489 (get_solib_aix_inferior_data): Update.
3490 (solib_aix_free_library_list): Remove.
3491 (library_list_start_library): Update.
3492 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3493 return type.
3494 (solib_aix_get_library_list)
3495 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3496 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3497
c294730c
TT
34982019-07-10 Tom Tromey <tromey@adacore.com>
3499
3500 * solib-dsbt.c (struct dsbt_info): Add initializers.
3501 (solib_dsbt_pspace_data): Change type.
3502 (dsbt_pspace_data_cleanup): Remove.
3503 (get_dsbt_info, _initialize_dsbt_solib): Update.
3504
9d52077d
TT
35052019-07-10 Tom Tromey <tromey@adacore.com>
3506
3507 * spu-tdep.c (spu_overlay_data): Change type.
3508 (spu_get_overlay_table, spu_overlay_new_objfile)
3509 (_initialize_spu_tdep): Update.
3510
22a20dca
TT
35112019-07-10 Tom Tromey <tromey@adacore.com>
3512
3513 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3514 destructor.
3515 (dbx_objfile_data_key): Change type and declare later.
3516 (DBX_SYMFILE_INFO): Rewrite.
3517 * dbxread.c (dbx_objfile_data_key): Change type.
3518 (dbx_symfile_init): Update.
3519 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3520 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3521 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3522
cb60f420
TT
35232019-07-10 Tom Tromey <tromey@adacore.com>
3524
3525 * jit.c (jit_program_space_key): Change type. Move lower.
3526 (get_jit_program_space_data): Update.
3527 (jit_program_space_data_cleanup): Remove.
3528 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3529 Update.
3530 (struct jit_program_space_data): Add initializers.
3531
51df2ae3
TT
35322019-07-10 Tom Tromey <tromey@adacore.com>
3533
3534 * solib-darwin.c (struct darwin_info): Add initializers.
3535 (solib_darwin_pspace_data): Change type.
3536 (darwin_pspace_data_cleanup): Remove.
3537 (get_darwin_info, _initialize_darwin_solib): Update.
3538
18101a35
TT
35392019-07-10 Tom Tromey <tromey@adacore.com>
3540
3541 * remote-sim.c (struct sim_inferior_data): Add initializers,
3542 constructor, and destructor.
3543 (sim_inferior_data_key): Change type. Move lower.
3544 (check_for_duplicate_sim_descriptor): Update.
3545 (get_sim_inferior_data): Use new. Update.
3546 (~sim_inferior_data_cleanup): Rename from
3547 sim_inferior_data_cleanup. Simplify.
3548 (gdbsim_close_inferior, simulator_command)
3549 (sim_command_completer, _initialize_remote_sim): Update.
3550 (next_pid, INITIAL_PID): Move earlier.
3551
05b08ac1
TT
35522019-07-10 Tom Tromey <tromey@adacore.com>
3553
3554 * python/python-internal.h (create_thread_object): Return
3555 gdbpy_ref.
3556 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3557 * python/py-inferior.c (struct threadlist_entry): Add
3558 constructor.
3559 <thread_obj>: Now a gdbpy_ref.
3560 (thread_to_thread_object): Update.
3561 (add_thread_object): Use new.
3562 (delete_thread_object): Use delete.
3563 (infpy_threads): Update.
3564 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3565 GIL.
3566
32372d80
TT
35672019-07-10 Tom Tromey <tromey@adacore.com>
3568
3569 * valops.c (value_cast): Specialize error message for Ada.
3570
5c458ae8
SM
35712019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3572
3573 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3574
4c462cb0
SM
35752019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3578 bpstat_should_step): Return bool, adjust comments.
3579 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3580 bpstat_should_step): Likewise.
3581
89abbcc2
AH
35822019-07-10 Alan Hayward <alan.hayward@arm.com>
3583
3584 * features/Makefile: Use feature target descriptions for Arm.
3585 * features/arm/arm-core.c: Generate new file.
3586 * features/arm/arm-fpa.c: Likewise.
3587 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3588 * features/arm/arm-m-profile.c: Likewise.
3589 * features/arm/arm-vfpv2.c: Likewise.
3590 * features/arm/arm-vfpv3.c: Likewise.
3591 * features/arm/xscale-iwmmxt.c: Likewise.
3592 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3593
166a82be
AH
35942019-07-10 Alan Hayward <alan.hayward@arm.com>
3595
3596 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3597 ptrace earlier.
3598
9fb4c7e9
AH
35992019-07-10 Alan Hayward <alan.hayward@arm.com>
3600
3601 * features/aarch64-pauth.c: Regenerate.
3602
e2d0f980
SM
36032019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3606 bool.
3607 (bpstat_what): Use false instead of 0.
3608
a38118e5
PA
36092019-07-09 Pedro Alves <palves@redhat.com>
3610
3611 * break-catch-throw.c (is_exception_catchpoint): New.
3612 * breakpoint.c (print_one_breakpoint_location): New parameter
3613 'raw_loc'. Handle it. Use
3614 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3615 looking at the breakpoint's type.
3616 (print_one_breakpoint): If handling "maint info breakpoints", also
3617 print locations of exception catchpoints.
3618 * breakpoint.h (is_exception_catchpoint): Declare.
3619
cb1e4e32
PA
36202019-07-09 Pedro Alves <palves@redhat.com>
3621
3622 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3623 "addr" field.
3624 (allocate_location_exception_catchpoint): New.
3625 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3626 (initialize_throw_catchpoint_ops): Install
3627 allocate_location_exception_catchpoint as allocate_location
3628 method.
3629 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3630 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3631 bp_loc_other.
3632 (breakpoint_address_is_meaningful): Delete.
3633 (bl_address_is_meaningful): New.
3634 (breakpoint_locations_match): Adjust comment.
3635 (bp_location_from_bp_type): New, factored out of...
3636 (bp_location::bp_location(breakpoint *)): ... this.
3637 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3638 factored out of...
3639 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3640 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3641 breakpoint_address_is_meaningful.
3642 (bp_locations_compare): Adjust comment.
3643 (update_global_location_list): Use bl_address_is_meaningful
3644 instead of breakpoint_address_is_meaningful.
3645 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3646 explicit.
3647 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3648 * python/py-breakpoint.c (bppy_get_location): No longer check
3649 whether location is null.
3650
b58a68fe
PA
36512019-07-09 Pedro Alves <palves@redhat.com>
3652
3653 PR c++/15468
3654 * breakpoint.c (print_one_breakpoint_location): Remove
3655 single-location assert.
3656
268a13a5
TT
36572019-07-09 Tom Tromey <tom@tromey.com>
3658
3659 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3660 * configure: Rebuild.
3661 * configure.ac: Change common to gdbsupport.
3662 * gdbsupport: Rename from common.
3663 * acinclude.m4: Change common to gdbsupport.
3664 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3665 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3666 gdbsupport.
3667 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3668 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3669 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3670 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3671 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3672 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3673 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3674 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3675 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3676 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3677 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3678 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3679 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3680 coff-pe-read.c, command.h, compile/compile-c-support.c,
3681 compile/compile-c.h, compile/compile-cplus-symbols.c,
3682 compile/compile-cplus-types.c, compile/compile-cplus.h,
3683 compile/compile-loc2c.c, compile/compile.c, completer.c,
3684 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3685 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3686 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3687 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3688 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3689 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3690 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3691 features/aarch64-core.c, features/aarch64-fpu.c,
3692 features/aarch64-pauth.c, features/aarch64-sve.c,
3693 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3694 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3695 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3696 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3697 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3698 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3699 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3700 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3701 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3702 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3703 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3704 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3705 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3706 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3707 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3708 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3709 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3710 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3711 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3712 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3713 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3714 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3715 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3716 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3717 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3718 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3719 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3720 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3721 minsyms.c, mips-linux-tdep.c, namespace.h,
3722 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3723 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3724 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3725 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3726 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3727 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3728 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3729 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3730 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3731 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3732 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3733 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3734 procfs.c, producer.c, progspace.h, psymtab.h,
3735 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3736 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3737 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3738 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3739 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3740 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3741 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3742 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3743 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3744 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3745 target-memory.c, target.c, target.h, target/waitstatus.c,
3746 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3747 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3748 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3749 unittests/array-view-selftests.c,
3750 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3751 unittests/common-utils-selftests.c,
3752 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3753 unittests/format_pieces-selftests.c,
3754 unittests/function-view-selftests.c,
3755 unittests/lookup_name_info-selftests.c,
3756 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3757 unittests/mkdir-recursive-selftests.c,
3758 unittests/observable-selftests.c,
3759 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3760 unittests/parse-connection-spec-selftests.c,
3761 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3762 unittests/scoped_fd-selftests.c,
3763 unittests/scoped_mmap-selftests.c,
3764 unittests/scoped_restore-selftests.c,
3765 unittests/string_view-selftests.c, unittests/style-selftests.c,
3766 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3767 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3768 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3769 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3770 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3771 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3772
5b0e2db4
AB
37732019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3776 bool value.
3777 (decode_digits_ordinary): Set explicit_line field in sal.
3778 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3779 symtab_and_line that was set on an explicit line number in
3780 assembler code. Do always update the recorded symtab and line if
3781 we do skip the prologue.
3782
0ba852ab
AB
37832019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * breakpoint.c (set_breakpoint_location_function): Remove
3786 explicit_loc parameter.
3787 (momentary_breakpoint_from_master): Update call to
3788 set_breakpoint_location_function.
3789 (add_location_to_breakpoint): Likewise.
3790
b3a7d171
AB
37912019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3792
3793 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3794 required features based on default bfd type when no specific bfd
3795 is present.
3796
1f6f6e21
PW
37972019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3798
3799 * NEWS: Mention that GDB printf and eval commands can now print
3800 C-style and Ada-style convenience var strings without
3801 calling the inferior.
3802 * printcmd.c (printf_c_string): Locally print GDB internal var
3803 instead of transiting via the inferior.
3804 (printf_wide_c_string): Likewise.
3805
38062019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3807
3808 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3809
0598af48
TT
38102019-07-04 Tom Tromey <tom@tromey.com>
3811
3812 PR tui/24724:
3813 * tui/tui-winsource.c (tui_clear_source_content): Update.
3814 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3815 (tui_update_breakpoint_info): Update.
3816 (tui_set_exec_info_content): Update.
3817 * tui/tui-source.c (tui_set_source_content_nil): Update.
3818 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3819 has_break.
3820 * tui/tui-data.h (enum tui_bp_flag): New.
3821 (tui_bp_flags): New enum flags type.
3822 (struct tui_source_element) <break_mode>: Change type. Rename
3823 from has_break.
3824 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3825 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3826 constants.
3827 * tui/tui-winsource.h: Fix comment.
3828
350fab54
AH
38292019-07-04 Alan Hayward <alan.hayward@arm.com>
3830
3831 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3832 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3833 (store_fpregs_to_thread)
3834 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3835 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3836 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3837 (IWMMXT_REGS_SIZE): Add define.
3838 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3839 (fetch_vfp_regs, store_vfp_regs)
3840 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3841 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3842
f0452268
AH
38432019-07-04 Alan Hayward <alan.hayward@arm.com>
3844
3845 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3846 defines.
3847 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3848 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3849 (ARM_INT_REGISTER_SIZE): ...to this.
3850 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3851 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3852 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3853 (arm_linux_collect_gregset, supply_nwfpe_register)
3854 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3855 defines.
3856 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3857 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3858 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3859 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3860 (arm_return_in_memory, arm_store_return_value)
3861 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3862 (arm_record_ld_st_multiple): Likewise.
3863 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3864 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3865
e935475c
AH
38662019-07-04 Alan Hayward <alan.hayward@arm.com>
3867
3868 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3869 AARCH64_DISPLACED_MODIFIED_INSNS.
3870 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3871 (aarch64_displaced_step_copy_insn): Likewise.
3872 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3873 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3874 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3875 ARM_DISPLACED_MODIFIED_INSNS.
3876 * arm-tdep.c (arm_gdbarch_init): Likewise.
3877 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3878 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3879 (struct arm_displaced_step_closure): Use
3880 ARM_DISPLACED_MODIFIED_INSNS.
3881
df0bb381
AH
38822019-07-04 Alan Hayward <alan.hayward@arm.com>
3883
3884 * features/Makefile: Remove unused xml files.
3885 * features/aarch64.xml: Remove.
3886 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3887 * features/i386/amd64-avx-avx512.xml: Remove.
3888 * features/i386/amd64-avx-linux.xml: Remove.
3889 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3890 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3891 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3892 * features/i386/amd64-avx-mpx.xml: Remove.
3893 * features/i386/amd64-avx.xml: Remove.
3894 * features/i386/amd64-linux.xml: Remove.
3895 * features/i386/amd64-mpx-linux.xml: Remove.
3896 * features/i386/amd64-mpx.xml: Remove.
3897 * features/i386/amd64.xml: Remove.
3898 * features/i386/i386-avx-avx512-linux.xml: Remove.
3899 * features/i386/i386-avx-avx512.xml: Remove.
3900 * features/i386/i386-avx-linux.xml: Remove.
3901 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3902 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3903 * features/i386/i386-avx-mpx-linux.xml: Remove.
3904 * features/i386/i386-avx-mpx.xml: Remove.
3905 * features/i386/i386-avx.xml: Remove.
3906 * features/i386/i386-linux.xml: Remove.
3907 * features/i386/i386-mmx-linux.xml: Remove.
3908 * features/i386/i386-mmx.xml: Remove.
3909 * features/i386/i386-mpx-linux.xml: Remove.
3910 * features/i386/i386-mpx.xml: Remove.
3911 * features/i386/i386.xml: Remove.
3912 * features/i386/x32-avx-avx512-linux.xml: Remove.
3913 * features/i386/x32-avx-linux.xml: Remove.
3914 * features/i386/x32-linux.xml: Remove.
3915
edd6266a
AH
39162019-07-04 Alan Hayward <alan.hayward@arm.com>
3917
3918 * regformats/aarch64.dat: Remove.
3919 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3920 * regformats/i386/amd64-avx-linux.dat: Remove.
3921 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3922 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3923 * regformats/i386/amd64-linux.dat: Remove.
3924 * regformats/i386/amd64-mpx-linux.dat: Remove.
3925 * regformats/i386/amd64.dat: Remove.
3926 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3927 * regformats/i386/i386-avx-linux.dat: Remove.
3928 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3929 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3930 * regformats/i386/i386-linux.dat: Remove.
3931 * regformats/i386/i386-mmx-linux.dat: Remove.
3932 * regformats/i386/i386-mpx-linux.dat: Remove.
3933 * regformats/i386/i386.dat: Remove.
3934 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3935 * regformats/i386/x32-avx-linux.dat: Remove.
3936 * regformats/i386/x32-linux.dat: Remove.
3937
2b40fda7
AH
39382019-07-04 Alan Hayward <alan.hayward@arm.com>
3939
3940 * aarch64-tdep.c: Remove xml self tests.
3941 * amd64-linux-tdep.c: Likewise.
3942 * amd64-tdep.c: Likewise.
3943 * i386-linux-tdep.c: Likewise.
3944 * i386-tdep.c: Likewise.
3945
5f4ba3e7
PA
39462019-07-03 Pedro Alves <palves@redhat.com>
3947
3948 PR cli/24732
3949 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3950 (pipe_cmd_option_defs): New.
3951 (make_pipe_cmd_options_def_group): New.
3952 (pipe_command): Use gdb::option::process_options.
3953 (pipe_command_completer): New function.
3954 (_initialize_cli_cmds): Install completer for "pipe" command.
3955
3d9be6f5
PA
39562019-07-03 Pedro Alves <palves@redhat.com>
3957
3958 * cli/cli-option.c (union option_value) <string>: New field.
3959 (struct option_def_and_value): Add ctor, move ctor, dtor and
3960 use DISABLE_COPY_AND_ASSIGN.
3961 (option_def_and_value::clear_value): New.
3962 (parse_option, save_option_value_in_ctx, get_val_type_str)
3963 (add_setshow_cmds_for_options): Handle var_string.
3964 * cli-option.h (union option_def::var_address) <string>: New
3965 field.
3966 (struct string_option_def): New.
3967 * maint-test-options.c (struct test_options_opts): Add default
3968 ctor and use DISABLE_COPY_AND_ASSIGN.
3969 <string_opt>: New field.
3970 (test_options_opts::~test_options_opts): New.
3971 (test_options_opts::dump): Also dump "-string".
3972 (test_options_option_defs): Install "string.
3973
41fc454c
PA
39742019-07-03 Pedro Alves <palves@redhat.com>
3975
3976 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3977 option_value with a null enumeration.
3978 (complete_options): Save the option values in the context.
3979 (save_option_value_in_ctx): New, factored out from ...
3980 (process_options): ... here.
3981 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3982 of the function.
3983 * maint-test-options.c (test_options_opts::dump): New, factored
3984 out from ...
3985 (maintenance_test_options_command_mode): ... here.
3986 (maintenance_test_options_command_completion_result): Delete.
3987 (maintenance_test_options_command_completion_text): Update
3988 comment.
3989 (maintenance_show_test_options_completion_result): Change
3990 prototype. Just print
3991 maintenance_test_options_command_completion_text.
3992 (save_completion_result): New.
3993 (maintenance_test_options_completer_mode): Pass options context to
3994 complete_options, and then save a dump.
3995 (_initialize_maint_test_options): Use add_cmd to install "maint
3996 show test-options-completion-result".
3997
fdbc9870
PA
39982019-07-03 Pedro Alves <palves@redhat.com>
3999
4000 * NEWS (New commands): Mention "with" and "maint with".
4001 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4002 (with_command, with_command_completer): New.
4003 (pipe_command): Adjust to new repeat_previous
4004 interface.
4005 (_initialize_cli_cmds): Install the "with" command and its "w"
4006 alias.
4007 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4008 declarations.
4009 * cli/cli-setshow.c (parse_cli_var_uinteger)
4010 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4011 argument strings for all var_types.
4012 (get_setshow_command_value_string): New, factored out from ...
4013 (do_show_command): ... this.
4014 * cli/cli-setshow.h: Include <string>.
4015 (get_setshow_command_value_string): Declare.
4016 * command.h (repeat_previous): Now returns const char *. Adjust
4017 comment.
4018 * maint.c: Include "cli/cli-cmds.h".
4019 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4020 (_initialize_maint_cmds): Register the "maintenance with" command.
4021 * top.c (repeat_previous): Move bits from pipe_command here:
4022 Return the saved command line, if any; error out if there's no
4023 command to relaunch.
4024
c6ac8931
PA
40252019-07-03 Pedro Alves <palves@redhat.com>
4026
4027 * NEWS (New commands): Mention "maint set/show test-settings"
4028 instead of "maint test-settings".
4029 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4030 (maintenance_test_settings_set_list): Rename to ...
4031 (maintenance_set_test_settings_list): ... this.
4032 (maintenance_test_settings_show_list): Rename to ...
4033 (maintenance_show_test_settings_list): ... this.
4034 (maintenance_test_settings_cmd): Delete.
4035 (maintenance_test_settings_set_cmd): ...
4036 (maintenance_set_test_settings_cmd): ... this.
4037 (maintenance_test_settings_show_cmd): ...
4038 (maintenance_show_test_settings_cmd): ... this.
4039 (maintenance_test_settings_show_value_cmd):
4040 (maintenance_show_test_settings_value_cmd): ... this.
4041 (_initialize_maint_test_settings): No longer install the "maint
4042 test-settings" prefix command. Rename "maint test-settings set"
4043 to "maint set test-settings", and "maint test-settings show" to
4044 "maint show test-settings". Adjust all subcommands.
4045
d1fcf2fd
PA
40462019-07-03 Pedro Alves <palves@redhat.com>
4047
4048 * maint-test-settings.c: Fix file's intro comment. Replace all
4049 references to "test-options" with references to "test-settings",
4050 in comments.
4051
970f9d09
PA
40522019-07-03 Pedro Alves <palves@redhat.com>
4053
4054 * maint-test-settings.c (maintenance_test_settings_xxx)
4055 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4056 New.
4057 (maintenance_test_settings_enums): Use them.
4058 (maintenance_test_settings_enum): Default to
4059 maintenance_test_settings_xxx.
4060 (_initialize_maint_test_settings): Initialize
4061 MAINTENANCE_TEST_SETTINGS_FILENAME.
4062
f3869b1a
SM
40632019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4064
4065 * breakpoint.h (remove_breakpoints_inf): Change return type to
4066 void, move function documentation here.
4067 * breakpoint.c (remove_breakpoints_inf): Change return type to
4068 void, move function documentation to header.
4069
54d66006
PA
40702019-07-02 Pedro Alves <palves@redhat.com>
4071
4072 * NEWS (Completion improvements): Mention "info threads".
4073 * thread.c (struct info_threads_opts, info_threads_option_defs)
4074 (make_info_threads_options_def_group): New.
4075 (info_threads_command): Use gdb::option::process_options.
4076 (info_threads_command_completer): New.
4077 (_initialize_thread): Use gdb::option::build_help to build the
4078 help text for "info threads".
4079
854f6088
SM
40802019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4081
4082 * defs.h (generic_load): Move from here...
4083 * symfile.h (generic_load): ... to here. Rename name parameter
4084 to args.
4085 * symfile.c (generic_load): Add comment.
4086
54ee4252
TT
40872019-07-01 Tom Tromey <tromey@adacore.com>
4088
4089 * dwarf2read.c
4090 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4091 declaration of without_params. Fix formatting.
4092
65392b3e
TT
40932019-07-01 Tom Tromey <tromey@adacore.com>
4094
4095 * ada-exp.y (find_primitive_type): Update.
4096 * ada-lang.h (ada_lookup_symbol): Update.
4097 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4098 parameter.
4099 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4100
7d7571f0
SDJ
41012019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4102
4103 PR breakpoints/24541
4104 * gdbarch.c: Regenerate.
4105 * gdbarch.h: Regenerate.
4106 * gdbarch.sh: Add 'stap_adjust_register'.
4107 * i386-tdep.c: Include '<unordered_set>'.
4108 (i386_stap_adjust_register): New function.
4109 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4110 * stap-probe.c (stap_parse_register_operand): Call
4111 'gdbarch_stap_adjust_register'.
4112
5af5392a
SDJ
41132019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4114
4115 PR python/24742
4116 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4117 * python/python.c (do_start_initialization): Use 'xmalloc'
4118 instead of 'PyMem_Malloc'.
4119
10d06d82
TT
41202019-06-28 Tom Tromey <tromey@adacore.com>
4121
4122 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4123 for Ada.
4124
1b7f24cd
TT
41252019-06-27 Tom Tromey <tromey@adacore.com>
4126
4127 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4128 objfile_key.
4129 (arm_find_mapping_symbol, arm_record_special_symbol)
4130 (_initialize_arm_tdep): Update.
4131 (arm_objfile_data_free): Remove.
4132
3d507ff2
TT
41332019-06-27 Tom Tromey <tromey@adacore.com>
4134
4135 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4136 to cp_print_static_field.
4137
762c164d
TT
41382019-06-26 Tom Tromey <tromey@adacore.com>
4139
4140 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4141 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4142 declare.
4143
aa2f9bcf
AH
41442019-06-26 Alan Hayward <alan.hayward@arm.com>
4145
4146 * features/aarch64-core.c (create_feature_aarch64_core):
4147 Regenerate.
4148 * features/aarch64-core.xml: Add cpsr flags.
4149
3426ae57
AH
41502019-06-26 Alan Hayward <alan.hayward@arm.com>
4151
4152 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4153 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4154
4838e44c
SM
41552019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4156
4157 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4158 field.
4159 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4160 use.
4161 (arm_record_special_symbol): Don't insert new symbol in sorted
4162 position, push it at the end.
4163
54cc7474
SM
41642019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4167 (arm_mapping_symbol_s): Remove.
4168 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4169 (arm_mapping_symbol_vec): New typedef.
4170 (struct arm_per_objfile): Add constructor.
4171 <section_maps>: Change type to
4172 std::unique_ptr<arm_mapping_symbol_vec[]>.
4173 (arm_compare_mapping_symbols): Remove.
4174 (arm_find_mapping_symbol): Adjust to section_maps type change.
4175 (arm_objfile_data_free): Call delete on arm_per_objfile.
4176 (arm_record_special_symbol): Adjust to section_maps type change.
4177 Allocate arm_per_objfile with new.
4178
b65b566c
PW
41792019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4180
4181 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4182 with the command prefix.
4183
c2fc64f5
TT
41842019-06-25 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4187 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4188
fb54fa76
TT
41892019-06-25 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4192 type.
4193 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4194 protected.
4195
f7952c57
TT
41962019-06-25 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-winsource.c
4199 (tui_source_window_base::set_is_exec_point_at): Add check against
4200 LOA_ADDRESS.
4201
17568d78
TT
42022019-06-25 Tom Tromey <tom@tromey.com>
4203
4204 * tui/tui-source.c (tui_set_source_content): Don't check before
4205 xfree.
4206 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4207
53e7cdba
TT
42082019-06-25 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-winsource.h (tui_update_source_window_as_is)
4211 (tui_alloc_source_buffer, tui_line_is_displayed)
4212 (tui_addr_is_displayed): Change type of win_info.
4213 * tui/tui-winsource.c (tui_update_source_window_as_is)
4214 (tui_clear_source_content, tui_show_source_line)
4215 (tui_show_source_content, tui_source_window_base::refill)
4216 (tui_source_window_base::set_is_exec_point_at)
4217 (tui_source_window_base::set_is_exec_point_at)
4218 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4219 (tui_alloc_source_buffer, tui_line_is_displayed)
4220 (tui_addr_is_displayed): Change type of win_info. Update.
4221 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4222 (tui_source_window_base::do_make_visible_with_new_height):
4223 Update.
4224 * tui/tui-source.c (tui_set_source_content)
4225 (tui_set_source_content_nil)
4226 (tui_source_window::do_scroll_vertical): Update.
4227 * tui/tui-layout.c (show_layout): Update.
4228 * tui/tui-disasm.c (tui_set_disassem_content)
4229 (tui_disasm_window::do_scroll_vertical): Update.
4230 * tui/tui-data.h (tui_win_content): Remove.
4231 (struct tui_gen_win_info) <content, content_size>: Remove.
4232 (struct tui_source_element): Add initializers and destructor.
4233 (union tui_which_element, struct tui_win_element): Remove.
4234 (struct tui_source_window_base) <content>: New field.
4235 (struct tui_data_window): Remove destructor.
4236 (tui_alloc_content, tui_free_win_content)
4237 (tui_free_all_source_wins_content): Don't declare.
4238 * tui/tui-data.c (tui_initialize_static_data): Update.
4239 (init_content_element, tui_alloc_content): Remove.
4240 (~tui_gen_win_info): Update.
4241 (~tui_data_window, tui_free_all_source_wins_content)
4242 (tui_free_win_content, free_content, free_content_elements):
4243 Remove.
4244
7908abbf
TT
42452019-06-25 Tom Tromey <tom@tromey.com>
4246
4247 * tui/tui-winsource.h (tui_clear_source_content)
4248 (tui_erase_source_content, tui_show_source_content): Change type
4249 of win_info.
4250 * tui/tui-winsource.c (tui_clear_source_content)
4251 (tui_erase_source_content, tui_show_source_content): Change type
4252 of win_info.
4253 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4254 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4255 win_info.
4256 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4257 win_info.
4258 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4259
02c28df0
TT
42602019-06-25 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-winsource.c (tui_clear_source_content)
4263 (tui_source_window_base::set_is_exec_point_at): Update.
4264 * tui/tui-source.c (tui_set_source_content_nil): Update.
4265 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4266 a bool.
4267 * tui/tui-data.c (init_content_element): Update.
4268
6658b1bf
TT
42692019-06-25 Tom Tromey <tom@tromey.com>
4270
4271 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4272 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4273 * tui/tui-layout.c (init_and_make_win): Update.
4274 * tui/tui.h (enum tui_win_type): Update.
4275 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4276 tui_win_is_auxillary.
4277 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4278 tui_win_is_auxillary.
4279
21e1c91e
TT
42802019-06-25 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4283 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4284 (tui_delete_data_content_windows, tui_display_all_data)
4285 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4286 Update.
4287 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4288 * tui/tui-regs.c (tui_last_regs_line_no)
4289 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4290 (tui_show_registers): Update.
4291 (tui_show_register_group): Return void. Update.
4292 (tui_display_registers_from, tui_display_reg_element_at_line)
4293 (tui_display_registers_from_line, tui_check_register_values):
4294 Update.
4295 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4296 member.
4297 (struct tui_data_window) <regs_content>: Now a std::vector.
4298 <regs_content_count>: Remove.
4299 (tui_add_content_elements, tui_free_data_content): Don't declare.
4300 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4301 (init_content_element): Remove DATA_WIN case. Add assert.
4302 (tui_add_content_elements): Remove.
4303 (tui_data_window): Update.
4304 (tui_free_data_content): Remove.
4305 (free_content_elements): Remove DATA_WIN case.
4306
115ac53b
TT
43072019-06-25 Tom Tromey <tom@tromey.com>
4308
4309 * tui/tui-data.c (tui_data_item_window): Update.
4310 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4311 * tui/tui-windata.c (tui_display_all_data)
4312 (tui_display_data_from_line): Update.
4313 (tui_check_data_values): Remove.
4314 * tui/tui-regs.c (tui_show_register_group)
4315 (tui_display_reg_element_at_line): Update.
4316 * tui/tui-hooks.c (tui_register_changed)
4317 (tui_refresh_frame_and_register_information): Call
4318 tui_check_register_values.
4319 * tui/tui-data.h (struct tui_data_window) <data_content,
4320 data_content_count, data_type>: Remove.
4321 (enum tui_data_type): Remove.
4322
4323 * tui/tui-data.c (tui_data_window::clear_detail)
4324 (~tui_data_window): Update.
4325
eaf9738b
TT
43262019-06-25 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4329 declare.
4330 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4331 Rename from tui_first_data_item_displayed. Update.
4332 (tui_data_window::refresh_all)
4333 (tui_data_window::do_scroll_vertical): Update.
4334 * tui/tui-data.h (struct tui_data_window)
4335 <first_data_item_displayed>: Declare new method.
4336
31ca4723
TT
43372019-06-25 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4340 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4341 contents...
4342 (tui_initialize_static_data): ...here.
4343
41bcff7f
TT
43442019-06-25 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4347 (tui_display_registers_from, tui_check_register_values): Update.
4348 (tui_display_register): Remove win_info parameter; update.
4349 (tui_get_register): Change type of parameters.
4350 * tui/tui-data.h (struct tui_data_element): Remove.
4351 (union tui_which_element) <data>: Remove.
4352 <data_window>: Change type.
4353 (struct tui_data_item_window): New.
4354 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4355 case. Add assert.
4356 (~tui_data_item_window): New destructor.
4357 (free_content_elements): Remove DATA_ITEM_WIN case.
4358
d2802c33
TT
43592019-06-25 Tom Tromey <tom@tromey.com>
4360
4361 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4362 Remove.
4363
dd835f8b
TT
43642019-06-25 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-data.h (struct tui_command_element): Remove.
4367 (union tui_which_element) <command>: Remove.
4368 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4369 assert.
4370 (free_content_elements): Remove CMD_WIN case.
4371
bd7db367
TT
43722019-06-25 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-layout.c (tui_set_layout): Update.
4375 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4376 * tui/tui-data.c (layout_def): Update.
4377
3add462f
TT
43782019-06-25 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4381 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4382 (tui_source_window_base::set_new_height): Update.
4383 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4384 Update.
4385 (tui_set_locator_fullname, tui_set_locator_info)
4386 (tui_show_frame_info): Update.
4387 * tui/tui-source.c (tui_set_source_content)
4388 (tui_source_is_displayed): Update.
4389 * tui/tui-layout.c (show_source_disasm_command, show_data)
4390 (show_source_or_disasm_and_command): Update.
4391 * tui/tui-disasm.c (tui_set_disassem_content)
4392 (tui_get_begin_asm_address): Update.
4393 * tui/tui-data.h (struct tui_locator_element): Remove.
4394 (union tui_which_element) <locator>: Remove.
4395 (struct tui_locator_window): New.
4396 (tui_locator_win_info_ptr): Change return type.
4397 * tui/tui-data.c (_locator): Change type.
4398 (tui_locator_win_info_ptr): Change return type.
4399 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4400 (tui_alloc_content): Add assert.
4401
489e9d8b
TT
44022019-06-25 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-winsource.c
4405 (tui_exec_info_window::maybe_allocate_content): New method.
4406 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4407 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4408 (make_source_or_disasm_window): Add cast.
4409 * tui/tui-data.h (union tui_which_element) <simple_string>:
4410 Remove.
4411 (struct tui_source_info): New.
4412 (struct tui_source_window_base) <execution_info>: Change type.
4413 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4414 case, and add assert.
4415 (tui_alloc_content): Add assert.
4416
c3fabb7d
TT
44172019-06-25 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4420 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4421 * tui/tui-data.c (tui_alloc_win_info): Remove.
4422
bbc228ee
TT
44232019-06-25 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4426 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4427 can_highlight.
4428
5fcee43a
TT
44292019-06-25 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4432 make_visible_with_new_height method.
4433 (tui_win_info::make_visible_with_new_height): New method.
4434 (tui_source_window_base::do_make_visible_with_new_height)
4435 (tui_data_window::do_make_visible_with_new_height)
4436 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4437 (make_visible_with_new_height): Remove.
4438 (tui_resize_all, tui_adjust_win_heights): Use
4439 make_visible_with_new_height method.
4440 * tui/tui-data.h (struct tui_win_info)
4441 <do_make_visible_with_new_height, make_visible_with_new_height>:
4442 New methods.
4443 (struct tui_source_window_base, struct tui_data_window)
4444 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4445 methods.
4446
d83f1fe6
TT
44472019-06-25 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4450 method.
4451 (update_tab_width): Call update_tab_width method.
4452 * tui/tui-data.h (struct tui_win_info)
4453 (struct tui_source_window_base) <update_tab_width>: New methods.
4454
17374de4
TT
44552019-06-25 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4458 parameter.
4459 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4460 parameter.
4461 (tui_gen_win_info::make_visible): Update.
4462 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4463 parameter.
4464 * tui/tui-data.h (enum tui_box): New enum.
4465 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4466
f936bca2
TT
44672019-06-25 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4470 init_and_make_win for EXEC_INFO_WIN.
4471 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4472 longer inline.
4473 (struct tui_win_info) <~tui_win_info>: Inline.
4474 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4475 Don't declare.
4476 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4477 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4478 Remove.
4479 (tui_initialize_static_data): Update.
4480 (~tui_gen_win_info): Handle more cleanup here.
4481 (~tui_source_window_base): Delete "execution_info".
4482 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4483
d6ba6a11
TT
44842019-06-25 Tom Tromey <tom@tromey.com>
4485
4486 * tui/tui-layout.c (make_command_window): Don't set
4487 can_highlight.
4488 (show_source_disasm_command): Call the reset method.
4489 (show_data): Don't set can_highlight. Call the reset method.
4490 (tui_gen_win_info::reset): Rename from init_gen_win_info
4491 (init_and_make_win): Simplify. Return tui_gen_win_info.
4492 (show_source_or_disasm_and_command): Call the reset method.
4493 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4494 (struct tui_cmd_window): Set can_highlight.
4495
48a3bd16
TT
44962019-06-25 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4499 from make_visible.
4500 (tui_make_visible, tui_make_invisible): Rewrite.
4501 (tui_win_info::make_visible): Remove.
4502 (tui_source_window_base::make_visible): Update.
4503 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4504 method. Moved from...
4505 (struct tui_win_info) <make_visible>: ...here.
4506
c3bd716f
TT
45072019-06-25 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-winsource.c
4510 (tui_source_window_base::do_scroll_horizontal): Remove direction
4511 parameter.
4512 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4513 direction parameter.
4514 * tui/tui-win.c (tui_win_info::forward_scroll)
4515 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4516 (tui_win_info::right_scroll): Update.
4517 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4518 direction parameter.
4519 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4520 direction parameter.
4521 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4522 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4523 Remove direction parameter.
4524 (struct tui_source_window_base, struct tui_source_window)
4525 (struct tui_disasm_window, struct tui_data_window)
4526 (struct tui_cmd_window): Update.
4527
21c32dca
TT
45282019-06-25 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-winsource.h (tui_set_exec_info_content)
4531 (tui_show_exec_info_content, tui_erase_exec_info_content)
4532 (tui_clear_exec_info_content, tui_update_exec_info): Change
4533 argument to tui_source_window_base.
4534 * tui/tui-winsource.c (tui_set_exec_info_content)
4535 (tui_show_exec_info_content, tui_erase_exec_info_content)
4536 (tui_clear_exec_info_content, tui_update_exec_info): Change
4537 argument to tui_source_window_base.
4538
73fbdc65
TT
45392019-06-25 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4542 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4543
33325343
TT
45442019-06-25 Tom Tromey <tom@tromey.com>
4545
4546 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4547 check.
4548
29d2c474
TT
45492019-06-25 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4552 type to void.
4553 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4554 type to void.
4555 * tui/tui-source.c (tui_set_source_content): Update.
4556 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4557
152f3f4b
TT
45582019-06-25 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-win.c (window_name_completer, tui_set_focus)
4561 (tui_all_windows_info): Use name method.
4562 * tui/tui-data.h (struct tui_gen_win_info)
4563 (struct tui_source_window, struct tui_disasm_window)
4564 (struct tui_data_window, struct tui_cmd_window) <name>: New
4565 method.
4566 (tui_win_name): Don't declare.
4567 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4568 (tui_win_name): Remove.
4569
be4da588
TT
45702019-06-25 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-winsource.h (tui_update_source_window)
4573 (tui_update_source_window_as_is): Change parameter type.
4574 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4575 to be a tui_source_window_base.
4576 (tui_update_source_window_as_is): Likewise.
4577 * tui/tui-win.c (make_visible_with_new_height): Update.
4578
5b81daba
TT
45792019-06-25 Tom Tromey <tom@tromey.com>
4580
4581 * tui/tui-winsource.c (tui_erase_source_content)
4582 (tui_show_source_content, tui_show_exec_info_content)
4583 (tui_erase_exec_info_content): Use refresh_window method.
4584 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4585 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4586 from tui_refresh_win.
4587 (tui_data_window::refresh_window): New method.
4588 (tui_win_info::refresh, tui_source_window_base::refresh)
4589 (tui_refresh_all): Use refresh_window method.
4590 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4591 method.
4592 * tui/tui-regs.c (tui_display_register): Call refresh_window
4593 method.
4594 * tui/tui-layout.c (show_source_disasm_command)
4595 (show_source_or_disasm_and_command): Call refresh_window method.
4596 * tui/tui-data.h (struct tui_gen_win_info)
4597 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4598 New method.
4599
cb2ce893
TT
46002019-06-25 Tom Tromey <tom@tromey.com>
4601
4602 * tui/tui.c (tui_rl_other_window, tui_enable)
4603 (tui_is_window_visible, tui_get_command_dimension): Update.
4604 * tui/tui-winsource.c (tui_update_source_window_as_is)
4605 (tui_clear_source_content, tui_erase_source_content)
4606 (tui_show_source_line, tui_source_window_base::refill)
4607 (tui_source_window_base::do_scroll_horizontal)
4608 (tui_source_window_base::set_is_exec_point_at)
4609 (tui_update_breakpoint_info, tui_set_exec_info_content)
4610 (tui_alloc_source_buffer, tui_line_is_displayed)
4611 (tui_addr_is_displayed): Update.
4612 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4613 (tui_check_and_display_highlight_if_needed)
4614 (tui_win_info::make_visible, tui_win_info::refresh)
4615 (tui_refresh_all): Update.
4616 * tui/tui-windata.c (tui_first_data_item_displayed)
4617 (tui_delete_data_content_windows, tui_erase_data_content)
4618 (tui_display_all_data, tui_data_window::refresh_all)
4619 (tui_check_data_values): Update.
4620 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4621 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4622 (tui_win_info::backward_scroll, tui_refresh_all_win)
4623 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4624 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4625 (tui_source_window_base::set_new_height)
4626 (tui_data_window::set_new_height)
4627 (make_invisible_and_set_new_height)
4628 (make_visible_with_new_height, new_height_ok)
4629 (parse_scrolling_args): Update.
4630 * tui/tui-stack.c (tui_show_frame_info): Update.
4631 * tui/tui-source.c (tui_set_source_content)
4632 (tui_set_source_content_nil, tui_source_is_displayed)
4633 (tui_source_window::do_scroll_vertical): Update.
4634 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4635 (tui_display_registers_from, tui_display_reg_element_at_line)
4636 (tui_check_register_values, tui_reg_command): Update.
4637 * tui/tui-layout.c (tui_default_win_height)
4638 (show_source_disasm_command, show_data, init_and_make_win)
4639 (show_source_or_disasm_and_command): Update.
4640 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4641 (tui_redisplay_readline, tui_mld_flush)
4642 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4643 (tui_getc): Update.
4644 * tui/tui-disasm.c (tui_set_disassem_content)
4645 (tui_disasm_window::do_scroll_vertical): Update.
4646 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4647 Now virtual.
4648 (struct tui_win_info): Derive from tui_gen_win_info.
4649 <~tui_win_info>: Mark as override.
4650 <generic>: Remove member.
4651 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4652 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4653 (~tui_data_window, ~tui_win_info)
4654 (tui_free_all_source_wins_content): Update.
4655 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4656
ab313b35
TT
46572019-06-25 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-layout.c (init_and_make_win): Use new.
4660 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4661 destructor, initializers.
4662 (tui_alloc_generic_win_info): Don't declare.
4663 * tui/tui-data.c (_locator): Add argument to constructor.
4664 (source_win, disasm_win): New globals.
4665 (exec_info): Remove.
4666 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4667 Update.
4668 (tui_alloc_generic_win_info): Remove.
4669 (init_content_element): Use new.
4670 (tui_win_info::tui_win_info): Update.
4671 (free_content_elements) <case DATA_WIN>: Use delete.
4672
dc2c33e4
TT
46732019-06-25 Tom Tromey <tom@tromey.com>
4674
4675 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4676 * tui/tui-windata.c (tui_first_data_item_displayed)
4677 (tui_delete_data_content_windows): Update.
4678 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4679 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4680 (tui_display_registers_from, tui_check_register_values): Update.
4681 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4682 pointer.
4683 * tui/tui-data.c (init_content_element): Update. Allocate the new
4684 window.
4685 (tui_free_data_content): Update.
4686 (free_content_elements) <case DATA_WIN>: Free the window.
4687
214a5cbe
TT
46882019-06-25 Tom Tromey <tom@tromey.com>
4689
4690 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4691 Update.
4692 * tui/tui-layout.c (make_command_window)
4693 (show_source_disasm_command, show_data, init_and_make_win)
4694 (show_source_or_disasm_and_command): Update.
4695 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4696 method.
4697 <can_highight, is_highlighted>: Now bool.
4698 (tui_set_win_highlight): Don't declare.
4699 * tui/tui-data.c (tui_set_win_highlight): Remove.
4700
8e2daf15
TT
47012019-06-25 Tom Tromey <tom@tromey.com>
4702
4703 * tui/tui-wingeneral.c (make_visible): Remove check of window
4704 type.
4705
8903bd8a
TT
47062019-06-25 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-win.c (tui_win_info::max_height)
4709 (tui_cmd_window::max_height): New methods.
4710 (new_height_ok): Call max_height.
4711 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4712 <max_height>: New method.
4713
3f02ce1e
TT
47142019-06-25 Tom Tromey <tom@tromey.com>
4715
4716 * tui/tui-win.c (tui_source_window_base::set_new_height)
4717 (tui_data_window::set_new_height): New methods.
4718 (make_invisible_and_set_new_height): Call set_new_height method.
4719 * tui/tui-data.h (struct tui_win_info)
4720 (struct tui_source_window_base, struct tui_data_window)
4721 <set_new_height>: New method.
4722
1825f487
TT
47232019-06-25 Tom Tromey <tom@tromey.com>
4724
4725 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4726 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4727 tui_refresh_data_win.
4728 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4729 method.
4730 (tui_refresh_all_win): Call the refresh_all method.
4731 (tui_set_focus): Likewise.
4732 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4733 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4734 Likewise.
4735
ad54d15b
TT
47362019-06-25 Tom Tromey <tom@tromey.com>
4737
4738 * tui/tui-winsource.h (tui_refill_source_window)
4739 (tui_set_is_exec_point_at): Don't declare.
4740 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4741 (tui_source_window_base::refill): Rename from
4742 tui_refill_source_window.
4743 (tui_source_window_base::do_scroll_horizontal): Update.
4744 (tui_source_window_base::set_is_exec_point_at): Rename from
4745 tui_set_is_exec_point_at.
4746 (tui_update_all_breakpoint_info): Update.
4747 * tui/tui-stack.c (tui_show_frame_info): Update.
4748 * tui/tui-layout.c (show_data): Add cast.
4749 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4750 * tui/tui-data.h (struct tui_source_window_base) <refill,
4751 set_is_exec_point_at>: New methods.
4752 (tui_source_windows, tui_add_to_source_windows): Update types.
4753 (tui_add_to_source_windows): Remove redundant declaration.
4754 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4755 (tui_source_windows): Change return type.
4756 (tui_clear_source_windows_detail): Update.
4757 (tui_add_to_source_windows): Change type of parameter.
4758 (tui_free_all_source_wins_content): Update.
4759
2042b506
TT
47602019-06-25 Tom Tromey <tom@tromey.com>
4761
4762 * tui/tui-wingeneral.c (tui_win_info::refresh)
4763 (tui_source_window_base::refresh): New methods.
4764 (tui_refresh_all): Call the refresh method.
4765 * tui/tui-data.h (struct tui_win_info)
4766 (struct tui_source_window_base) <refresh>: New method.
4767
56122977
TT
47682019-06-25 Tom Tromey <tom@tromey.com>
4769
4770 * tui/tui.h (tui_is_window_visible): Return bool.
4771 * tui/tui.c (tui_is_window_visible): Return bool.
4772 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4773 (tui_make_visible, tui_make_invisible)
4774 (tui_win_info::make_visible)
4775 (tui_source_window_base::make_visible, make_all_visible)
4776 (tui_make_all_visible, tui_make_all_invisible): Update.
4777 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4778 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4779 bool.
4780 (struct tui_win_info, struct tui_source_window_base)
4781 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4782 * tui/tui-data.c (tui_init_generic_part): Update.
4783
cda37efb
TT
47842019-06-25 Tom Tromey <tom@tromey.com>
4785
4786 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4787 (tui_source_window_base::make_visible): New methods.
4788 (make_all_visible): Make method call.
4789 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4790 (struct tui_source_window_base, struct tui_cmd_window): Override
4791 make_visible.
4792 (tui_win_is_source_type): Don't declare.
4793 * tui/tui-data.c (tui_win_is_source_type): Remove.
4794
6a0ee02c
TT
47952019-06-25 Tom Tromey <tom@tromey.com>
4796
4797 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4798 NULL check.
4799
63901aec
TT
48002019-06-25 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4803 Inline constructor. Add initializers for members.
4804 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4805 constructors; now inline in class.
4806
ceb13a13
TT
48072019-06-25 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-regs.c (tui_show_registers): Update.
4810 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4811 bool.
4812 * tui/tui-data.c (tui_data_window::clear_detail)
4813 (tui_data_window): Update.
4814
238eb706
TT
48152019-06-25 Tom Tromey <tom@tromey.com>
4816
4817 * tui/tui-windata.c (tui_display_all_data)
4818 (tui_display_data_from_line, tui_display_data_from)
4819 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4820 Update.
4821 * tui/tui-regs.c (tui_last_regs_line_no)
4822 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4823 (tui_show_registers, tui_show_register_group)
4824 (tui_display_registers_from, tui_display_reg_element_at_line)
4825 (tui_display_registers_from_line, tui_check_register_values)
4826 (tui_reg_next, tui_reg_prev): Update.
4827 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4828 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4829 tui_data_window.
4830 (struct tui_win_info) <detail>: Remove. Add new fields from
4831 tui_data_info.
4832 (TUI_DATA_WIN): Add cast.
4833 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4834 (~tui_data_window): Simplify.
4835
81491aa0
TT
48362019-06-25 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-layout.c (show_source_disasm_command)
4839 (show_source_or_disasm_and_command): Update.
4840 * tui/tui-io.c (update_cmdwin_start_line)
4841 (tui_redisplay_readline): Update.
4842 * tui/tui-data.h (struct tui_command_info): Remove.
4843 (struct tui_win_info) <detail>: Remove command_info member.
4844 (struct tui_data_window) <start_line>: New member, from
4845 tui_command_info.
4846 (TUI_CMD_WIN): Add casts.
4847
e6e41501
TT
48482019-06-25 Tom Tromey <tom@tromey.com>
4849
4850 * tui/tui-winsource.c (tui_update_source_window)
4851 (tui_refill_source_window)
4852 (tui_source_window_base::do_scroll_horizontal)
4853 (tui_update_breakpoint_info, tui_set_exec_info_content)
4854 (tui_show_exec_info_content, tui_erase_exec_info_content)
4855 (tui_clear_exec_info_content): Update.
4856 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4857 Update.
4858 * tui/tui-win.c (make_invisible_and_set_new_height)
4859 (make_visible_with_new_height): Update.
4860 * tui/tui-source.c (tui_set_source_content)
4861 (tui_show_symtab_source): Update.
4862 * tui/tui-layout.c (extract_display_start_addr)
4863 (show_source_disasm_command, show_data)
4864 (make_source_or_disasm_window)
4865 (show_source_or_disasm_and_command): Update.
4866 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4867 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4868 "gdbarch".
4869 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4870 to tui_source_window_base.
4871 (struct tui_win_info) <detail>: Remove source_info member.
4872 (struct tui_source_window_base) <has_locator>: Inline.
4873 Move contents from tui_source_info; rename has_locator member to
4874 m_has_locator.
4875 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4876 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4877 header file.
4878 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4879 Simplify.
4880 (tui_free_all_source_wins_content): Cast to
4881 tui_source_window_base.
4882
44f0e208
TT
48832019-06-25 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-win.c (make_invisible_and_set_new_height)
4886 (make_visible_with_new_height): Call has_locator method.
4887 * tui/tui-layout.c (show_source_disasm_command, show_data)
4888 (show_source_or_disasm_and_command): Update for bool change.
4889 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4890 (tui_win_info) <has_locator>: New method.
4891 (struct tui_source_window_base) <has_locator>: New method.
4892 (tui_win_has_locator): Don't declare.
4893 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4894 from tui_win_has_locator.
4895 (tui_source_window_base): Use false, not FALSE.
4896
7778b912
TT
48972019-06-25 Tom Tromey <tom@tromey.com>
4898
4899 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4900 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4901 clear_detail method directly.
4902 (tui_clear_win_detail): Remove.
4903
f83d391c
TT
49042019-06-25 Tom Tromey <tom@tromey.com>
4905
4906 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4907 "this", not TUI_DISASM_WIN.
4908
13446e05
TT
49092019-06-25 Tom Tromey <tom@tromey.com>
4910
4911 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4912 declare.
4913 * tui/tui-winsource.c
4914 (tui_source_window_base::do_scroll_horizontal): Rename from
4915 tui_horizontal_source_scroll.
4916 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4917 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4918 from tui_vertical_data_scroll.
4919 * tui/tui-win.h (tui_scroll): Don't declare.
4920 * tui/tui-win.c (tui_win_info::forward_scroll)
4921 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4922 (tui_win_info::right_scroll): Rename and update.
4923 (tui_scroll_forward_command, tui_scroll_backward_command)
4924 (tui_scroll_left_command, tui_scroll_right_command): Update.
4925 (tui_scroll): Remove.
4926 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4927 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4928 from tui_vertical_source_scroll.
4929 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4930 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4931 from tui_vertical_disassem_scroll.
4932 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4933 do_scroll_horizontal>: New methods.
4934 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4935 Likewise.
4936 (struct tui_source_window_base): Add do_scroll_horizontal.
4937 (struct tui_source_window, struct tui_disasm_window): Add
4938 do_scroll_vertical.
4939 (struct tui_data_window, struct tui_cmd_window): Add
4940 do_scroll_horizontal and do_scroll_vertical.
4941 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4942
5cf82909
TT
49432019-06-25 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-data.h (struct tui_source_window_base): New struct.
4946 (struct tui_source_window): Derive from tui_source_window_base.
4947 (struct tui_disasm_window): New struct.
4948 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4949 from tui_source_window::clear_detail.
4950 (tui_source_window_base): Rename from tui_source_window.
4951 (~tui_source_window_base): Rename from ~tui_source_window.
4952 (tui_alloc_win_info): Create a tui_disasm_window.
4953
ee1d42d6
TT
49542019-06-25 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui-data.h (struct tui_source_window)
4957 (struct tui_data_window): Declare destructors.
4958 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4959 destructors.
4960 (tui_win_info): Simplify.
4961
b4eb2452
TT
49622019-06-25 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-winsource.c (tui_display_main)
4965 (tui_update_source_windows_with_addr)
4966 (tui_update_all_breakpoint_info): Update.
4967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4968 (new_height_ok, parse_scrolling_args): Update.
4969 * tui/tui-stack.c (tui_show_frame_info): Update.
4970 * tui/tui-data.h (struct tui_list): Remove.
4971 (tui_source_windows): Return a reference to a std::vector.
4972 * tui/tui-data.c (source_windows): Now a std::vector.
4973 (tui_source_windows): Change return type.
4974 (tui_clear_source_windows): Rewrite.
4975 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4976 (tui_free_all_source_wins_content): Rewrite.
4977
8761a91b
TT
49782019-06-25 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4981 (struct tui_data_window, struct tui_cmd_window): Declare
4982 clear_detail method.
4983 * tui/tui-data.c (tui_source_window::clear_detail)
4984 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4985 methods.
4986 (tui_clear_win_detail): Simplify.
4987
0ed69eda
TT
49882019-06-25 Tom Tromey <tom@tromey.com>
4989
4990 * tui/tui-layout.c (make_source_window, make_disasm_window)
4991 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4992 Return the new window.
4993 (show_source_disasm_command, show_data)
4994 (show_source_or_disasm_and_command): Update.
4995
82432e10
TT
49962019-06-25 Tom Tromey <tom@tromey.com>
4997
4998 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4999 parameter. Return the new window.
5000 (show_source_disasm_command): Update and remove NULL check.
5001 (show_source_or_disasm_and_command): Update.
5002
ec328aa5
TT
50032019-06-25 Tom Tromey <tom@tromey.com>
5004
5005 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5006
33b906ab
TT
50072019-06-25 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-data.h (struct tui_win_info): Make constructor
5010 protected. Make destructor virtual. Add initializers.
5011 (tui_source_window, tui_data_window, tui_cmd_window): New
5012 classes.
5013 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5014 constructor. Add "type" parameter.
5015 (tui_source_window, tui_data_window, tui_cmd_window): New
5016 constructors.
5017 (tui_alloc_win_info): Instantiate the appropriate subclass.
5018
e7e11af4
TT
50192019-06-25 Tom Tromey <tom@tromey.com>
5020
5021 * tui/tui-win.c (tui_resize_all): Use delete.
5022 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5023 destructor.
5024 (tui_free_window): Don't declare.
5025 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5026 Update.
5027
6792b55e
TT
50282019-06-25 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-data.h (struct tui_win_info): Add constructor.
5031 * tui/tui-data.c (tui_alloc_win_info): Use new.
5032 (tui_free_window): Use delete.
5033
f95675e1
TT
50342019-06-22 Tom Tromey <tom@tromey.com>
5035
5036 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5037 declare.
5038 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5039
5bff081c
TT
50402019-06-22 Tom Tromey <tom@tromey.com>
5041
5042 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5043 declare.
5044 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5045
47e3f474
TV
50462019-06-22 Tom de Vries <tdevries@suse.de>
5047
5048 * dwarf2read.c (create_addrmap_from_aranges)
5049 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5050 instead of '%zu'.
5051
fd5866f6
SM
50522019-06-21 Simon Marchi <simon.marchi@efficios.com>
5053
5054 * dwarf2read.h (dwarf2_section_info_def): Remove.
5055 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5056 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5057 std::vector<dwarf2_section_info>.
5058 (struct dwo_file) <~dwo_file>: Remove.
5059 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5060 types field.
5061 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5062 (dwarf2_read_debug_names): Likewise.
5063 (create_debug_types_hash_table): Change parameter type to
5064 array_view, adjust code accordingly.
5065 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5066 (partial_die_info::fixup): Likewise.
5067 (determine_prefix): Likewise.
5068 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5069
fb1eb2f9
SM
50702019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5071
5072 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5073 gdb_bfd_ref_ptr.
5074 <~dwo_file>: Remove call to gdb_bfd_unref.
5075 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5076 gdb_bfd_ref_ptr::get.
5077
51ac9db5
SM
50782019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5079
5080 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5081 type to htab_up.
5082 * dwarf2read.c (struct dwo_file): Initialize fields.
5083 <~dwo_file>: New.
5084 (free_dwo_file): Remove, move content to ~dwo_file.
5085 (struct dwo_file_deleter): Remove.
5086 (dwo_file_up>: Remove custom deleter.
5087 (free_dwo_files): Remove.
5088 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5089 dwo_files.
5090 (process_skeletonless_type_units): Call unique_ptr::get.
5091 (allocate_dwo_file_hash_table): Add deleter to created hash
5092 table. Change return type to htab_up.
5093 (lookup_dwo_file_slot): Don't memset dwo_file, call
5094 unique_ptr::get.
5095 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5096 (create_dwo_unit_in_dwp_v2): Likewise.
5097 (open_and_init_dwo_file): Likewise.
5098 (free_dwo_file_from_slot): Remove.
5099
dc4ccb6f
SM
51002019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * dwarf2read.h (struct dwarf2_section_info) <readin,
5103 is_virtual>: Change type to bool.
5104 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5105 true instead of 1.
5106
e6a1c5cb
TT
51072019-06-19 Tom Tromey <tom@tromey.com>
5108
5109 * tui/tui-data.h (tui_init_content_element): Don't declare.
5110
6f6ffbeb
TT
51112019-06-19 Tom Tromey <tom@tromey.com>
5112
5113 * tui/tui-data.h (tui_init_win_info): Don't declare.
5114
f23f598e
TV
51152019-06-19 Tom de Vries <tdevries@suse.de>
5116
5117 * dwarf2read.h (abstract_to_concrete): Change type to
5118 std::unordered_map<sect_offset, std::vector<sect_offset>,
5119 gdb::hash_enum<sect_offset>>.
5120
680e1bee
TT
51212019-06-19 Tom Tromey <tromey@adacore.com>
5122
5123 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5124 EVAL_AVOID_SIDE_EFFECTS specially.
5125
dcf37923
TT
51262019-06-19 Tom Tromey <tromey@adacore.com>
5127
5128 * source-cache.c (highlighter): New global.
5129 (source_cache::get_source_lines): Create a highlighter on demand.
5130
494986d5
AB
51312019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5132
5133 * defs.h (deprecated_interactive_hook): Delete declaration.
5134 * interps.c (clear_interpreter_hooks): Remove use of
5135 deprecated_interactive_hook.
5136 * top.c (deprecated_interactive_hook): Delete definition.
5137 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5138
3360b6e7
TV
51392019-06-18 Tom de Vries <tdevries@suse.de>
5140
5141 PR gdb/24515
5142 * dwarf2read.h (abstract_to_concrete): Change type from
5143 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5144 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5145 * dwarf2read.c (read_variable): Update.
5146 (dwarf2_fetch_die_loc_sect_off): Update.
5147
310b3441
TV
51482019-06-17 Tom de Vries <tdevries@suse.de>
5149
5150 PR gdb/24617
5151 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5152 accessing parent[parent_len - 1].
5153
ba9777be
PP
51542019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5155
5156 PR gdb/24364
5157 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5158 call dtrace_process_dof with NULL dof.
5159
2b9f6e89
TV
51602019-06-16 Tom de Vries <tdevries@suse.de>
5161
5162 PR gdb/24445
5163 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5164
431b3ead
TT
51652019-06-16 Tom Tromey <tom@tromey.com>
5166
5167 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5168 (make_all_visible): Use address of member.
5169
d04b44a1
TT
51702019-06-16 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5173 (tui_free_window, free_content, free_content_elements): Remove
5174 unnecessary cast.
5175 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5176 cast.
5177 * tui/tui-regs.c (tui_show_register_group)
5178 (tui_display_registers_from, tui_display_reg_element_at_line):
5179 Remove unnecessary cast.
5180
bf5142e7
AB
51812019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5182
5183 * linux-nat.c (normal_mask): Delete.
5184 (_initialize_linux_nat): Don't initialise normal_mask.
5185
c4973306
SM
51862019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5187
5188 PR gdb/24445
5189 * dwarf-index-write.h (write_psymtabs_to_index): Add
5190 dwz_basename parameter.
5191 * dwarf-index-write.c (write_gdbindex): Move file writing to
5192 write_gdbindex_1. Change return type void.
5193 (assert_file_size): Move up, remove filename parameter.
5194 (write_gdbindex_1): New function.
5195 (write_debug_names): Change return type to void, call
5196 assert_file_size.
5197 (struct index_wip_file): New struct.
5198 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5199 file logic to index_wip_file. Write index for dwz file if
5200 needed.
5201 (save_gdb_index_command): Pass basename of dwz file, if present.
5202 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5203 build-id of dwz file, if present.
5204 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5205 (dwarf2_get_dwz_file): Likewise.
5206 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5207 (dwarf2_get_dwz_file): Likewise.
5208
395f9c91
TT
52092019-06-16 Tom Tromey <tom@tromey.com>
5210
5211 * coffread.c (process_coff_symbol): Use xstrdup.
5212 * value.c (create_internalvar): Use xstrdup.
5213
cafb3438
TT
52142019-06-16 Tom Tromey <tom@tromey.com>
5215
5216 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5217 * breakpoint.c (stopin_command, stopat_command)
5218 (until_break_command, decode_location_default): Remove unnecessary
5219 cast.
5220 * utils.c (subset_compare): Remove unnecessary cast.
5221 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5222 cast.
5223 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5224 cast.
5225 * infcmd.c (path_command): Remove unnecessary cast.
5226 * coffread.c (decode_type): Remove unnecessary cast.
5227 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5228 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5229 * tui/tui-stack.c (tui_show_locator_content)
5230 (tui_show_frame_info): Remove unnecessary cast.
5231 * tui/tui-win.c (tui_scroll_forward_command)
5232 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5233 (parse_scrolling_args): Remove unnecessary cast.
5234 * tui/tui-data.c (init_win_info, tui_del_window)
5235 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5236 (free_content_elements): Remove unnecessary cast.
5237 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5238 unnecessary cast.
5239 * tui/tui-source.c (tui_set_source_content)
5240 (tui_vertical_source_scroll): Remove unnecessary cast.
5241 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5242 cast.
5243 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5244 * tui/tui-regs.c (tui_display_registers_from)
5245 (tui_display_register): Remove unnecessary cast.
5246 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5247 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5248 (make_visible): Remove unnecessary cast.
5249 * tui/tui-winsource.c (tui_erase_source_content)
5250 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5251 unnecessary cast.
5252 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5253 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5254 * stabsread.c (read_type, read_array_type, read_range_type):
5255 Remove unnecessary cast.
5256 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5257 (parse_symbol, parse_type, upgrade_type, parse_external)
5258 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5259 unnecessary cast.
5260 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5261
730ead81
TT
52622019-06-16 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-data.c (tui_alloc_generic_win_info)
5265 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5266 checks.
5267
584a927c
AB
52682019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5269 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * f-typeprint.c (f_print_type): Don't return early for not
5272 associated or not allocated types.
5273 (f_type_print_varspec_suffix): Add print_rank parameter and print
5274 ranks of array types in case they dangling.
5275 (f_type_print_base): Add print_rank parameter.
5276
30056ea0
AB
52772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * NEWS: Mention new MI commands.
5280 * break-catch-throw.c (enum exception_event_kind): Move to
5281 breakpoint.h.
5282 (print_mention_exception_catchpoint): Output text as a single
5283 message.
5284 (catch_exception_command_1): Rename to...
5285 (catch_exception_event): ...this, make non-static, update header
5286 command, and change some parameter types.
5287 (catch_catch_command): Update for changes to
5288 catch_exception_command_1.
5289 (catch_throw_command): Likewise.
5290 (catch_rethrow_command): Likewise.
5291 * breakpoint.c (enum exception_event_kind): Delete.
5292 * breakpoint.h (enum exception_event_kind): Moved here from
5293 break-catch-throw.c.
5294 (catch_exception_event): Declare.
5295 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5296 (mi_cmd_catch_throw): New function.
5297 (mi_cmd_catch_rethrow): New function.
5298 (mi_cmd_catch_catch): New function.
5299 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5300 'catch-catch' entries.
5301 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5302 (mi_cmd_catch_rethrow): Declare.
5303 (mi_cmd_catch_catch): Declare.
5304
ec8e2b6d
AB
53052019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * annotate.c (annotate_source_line): Change return type to void,
5308 update implementation to match.
5309 * annotate.h (annotate_source_line): Change return type to void,
5310 update header comment.
5311 * stack.c (print_frame_info): Don't change what frame information
5312 is printed based on whether annotations are on or not.
5313
0d3abd8c
AB
53142019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5315
5316 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5317 (annotate_source): Make static.
5318 (annotate_source_line): Moved from source.c and renamed from
5319 identify_source_line. Update the return type.
5320 * annotate.h (annotate_source): Delete declaration.
5321 (annotate_source_line): Declaration moved from source.h, and
5322 renamed from identify_source_line. Return type updated.
5323 * source.c (identify_source_line): Moved to annotate.c and renamed
5324 to annotate_source_line.
5325 (info_line_command): Remove check of annotation_level.
5326 * source.h (identify_source_line): Move declaration to annotate.h
5327 and rename to annotate_source_line.
5328 * stack.c: Add 'annotate.h' include.
5329 (print_frame_info): Remove check of annotation_level before
5330 calling annotate_source_line.
5331
00df30ae
AB
53322019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5333
5334 * source-cache.c (source_cache::get_plain_source_lines): Use
5335 open_source_file_with_line_charpos instead of just
5336 open_source_file, remove call to find_source_lines.
5337 (source_cache::get_source_lines): Likewise.
5338 * source.c (find_source_lines): Make static.
5339 (get_filename_and_charpos): Renamed into...
5340 (open_source_file_with_line_charpos): ..this along with changes to
5341 return a scoped_fd, and some other minor clean ups.
5342 (identify_source_line): Use open_source_file_with_line_charpos.
5343 (search_command_helper): Use open_source_file_with_line_charpos
5344 instead of just open_source_file, remove call to
5345 find_source_lines.
5346 * source.h (open_source_file_with_line_charpos): Declare new
5347 function.
5348 (find_source_lines): Delete declaration.
5349
afda45a2
AB
53502019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5351
5352 * source.c (get_filename_and_charpos): Remove fullname
5353 parameter.
5354 (identify_source_line): Update call to get_filename_and_charpos.
5355
0735b091
TT
53562019-06-14 Tom Tromey <tromey@adacore.com>
5357
5358 PR gdb/24502:
5359 * ui-style.h (skip_ansi_escape): Update comment.
5360 * ui-file.h (class no_terminal_escape_file): New class.
5361 * ui-file.c (no_terminal_escape_file::write)
5362 (no_terminal_escape_file::puts): New methods.
5363 * cli/cli-logging.c (handle_redirections): Use
5364 no_terminal_escape_file.
5365
52ce35e2
TT
53662019-06-14 Tom Tromey <tromey@adacore.com>
5367
5368 * NEWS: Move convenience variable news above Python news.
5369
73cc7272
TT
53702019-06-14 Tom Tromey <tom@tromey.com>
5371
5372 * gnulib: Move directory to top-level.
5373 * configure.ac: Don't configure gnulib.
5374 * configure: Rebuild.
5375 * common/common-defs.h: Use new path to gnulib.
5376 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5377 (GNULIB_H): Remove.
5378 (INCGNU): Look in new gnulib location.
5379 (HFILES_NO_SRCDIR): Remove gnulib files.
5380 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5381 (generated_files): Remove GNULIB_H.
5382 ($(LIBGNU), all-lib): Remove targets.
5383 (distclean): Don't mention GNULIB_BUILDDIR.
5384 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5385
f5686554
TT
53862019-06-14 Tom Tromey <tromey@adacore.com>
5387
5388 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5389 Warn if symbol file does not provide any symbols.
5390
a0c1ffed
TT
53912019-06-14 Tom Tromey <tromey@adacore.com>
5392
5393 * source.c (find_and_open_source): Respect basenames_may_differ.
5394
7c39e397
AB
53952019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * annotate.c (annotate_breakpoints_invalid): Make use of
5398 scoped_restore_terminal_state.
5399 (annotate_frames_invalid): Likewise.
5400
f411722c
TT
54012019-06-14 Tom Tromey <tromey@adacore.com>
5402
5403 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5404 allow assignment to an internalvar.
5405
4268ec18
TT
54062019-06-14 Tom Tromey <tromey@adacore.com>
5407
5408 * ada-lex.l: Allow "_" in attribute names.
5409
abdb711e
TT
54102019-06-14 Tom Tromey <tromey@adacore.com>
5411
5412 PR gdb/24653:
5413 * regcache.c (registers_changed): Don't call alloca.
5414 * top.c (execute_command): Don't call alloca.
5415
4c048731
PA
54162019-06-13 Pedro Alves <palves@redhat.com>
5417
5418 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5419 'expression'. When parsing an expression, error out if there's
5420 junk after "unlimited".
5421 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5422 (do_set_command): Adjust calls to is_unlimited_literal.
5423
66eb1ed3
PA
54242019-06-13 Pedro Alves <palves@redhat.com>
5425
5426 * compile/compile.c (make_compile_options_def_group): Add braces
5427 around array_view initializer.
5428 * thread.c (make_thread_apply_all_options_def_group)
5429 (make_thread_apply_all_options_def_group): Likewise.
5430
3345721a
PA
54312019-06-13 Pedro Alves <palves@redhat.com>
5432
5433 * NEWS (New commands): Mention "maint test-options
5434 require-delimiter", "maint test-options unknown-is-error", "maint
5435 test-options unknown-is-operand" and "maint show
5436 test-options-completion-result".
5437 (New command options, command completion): New section.
5438 (Completion improvements): New section.
5439 Mention that you can abbreviate "unlimited".
5440
6206060d
PA
54412019-06-13 Pedro Alves <palves@redhat.com>
5442
5443 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5444 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5445 * unittests/cli-utils-selftests.c (test_parse_flags)
5446 (test_parse_flags_qcs): Delete.
5447 (test_cli_utils): Don't call deleted functions.
5448
6665660a
PA
54492019-06-13 Pedro Alves <palves@redhat.com>
5450
5451 * thread.c: Include "cli/cli-option.h".
5452 (tp_array_compar_ascending): Global.
5453 (tp_array_compar): Delete function.
5454 (tp_array_compar_ascending, tp_array_compar_descending): New
5455 functions.
5456 (ascending_option_def, qcs_flag_option_def)
5457 (thr_qcs_flags_option_defs)
5458 (make_thread_apply_all_options_def_group)
5459 (make_thread_apply_options_def_group): New.
5460 (thread_apply_all_command): Use gdb::option::process_options.
5461 (thread_apply_command_completer)
5462 (thread_apply_all_command_completer): New.
5463 (thread_apply_command): Use gdb::option::process_options.
5464 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5465 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5466 to generate help text of "thread apply". Adjust "taas"'s help.
5467 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5468 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5469
f7e13587
PA
54702019-06-13 Pedro Alves <palves@redhat.com>
5471
5472 * thread.c (thread_apply_command): Check for invalid TID with
5473 isdigit instead of !isalpha.
5474
5d707134
PA
54752019-06-13 Pedro Alves <palves@redhat.com>
5476
5477 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5478 (validate_flags_qcs): New.
5479 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5480 (validate_flags_qcs): Declare.
5481 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5482 (make_frame_apply_options_def_group): New.
5483 (frame_apply_command_count): Process options with
5484 gdb::option::process_options.
5485 (frame_apply_completer): New.
5486 (frame_apply_level_completer, frame_apply_all_completer)
5487 (frame_apply_completer): New.
5488 (_initialize_stack): Update help of "frame apply", "frame apply
5489 level", "frame apply all" and "faas" to mention supported options
5490 and install command completers.
5491 * stack.h (frame_apply_all_completer): Declare.
5492 * thread.c: Include "stack.h".
5493 (tfaas_command): Add "--".
5494 (_initialize_thread): Update help "tfaas" to mention supported
5495 options and install command completer.
5496
272d4594
PA
54972019-06-13 Pedro Alves <palves@redhat.com>
5498
5499 * completer.c (complete_nested_command_line): New.
5500 (gdb_completion_word_break_characters_throw): Add assertion.
5501 * completer.h (complete_nested_command_line): Declare.
5502
90a1ef87
PA
55032019-06-13 Pedro Alves <palves@redhat.com>
5504
5505 * stack.c (parse_backtrace_qualifiers): New.
5506 (backtrace_command): Use it.
5507 (backtrace_command_completer): Complete on qualifiers.
5508
d4c16835
PA
55092019-06-13 Pedro Alves <palves@redhat.com>
5510
5511 * frame.c: Include "cli/cli-option.h.
5512 (user_set_backtrace_options): New.
5513 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5514 Delete.
5515 (get_prev_frame): Adjust.
5516 (boolean_option_def, uinteger_option_def)
5517 (set_backtrace_option_defs): New.
5518 (_initialize_frame): Adjust and use
5519 gdb::option::add_setshow_cmds_for_options to install "set
5520 backtrace past-main" and "set backtrace past-entry".
5521 * frame.h: Include "cli/cli-option.h".
5522 (struct frame_print_options): Forward declare.
5523 (print_frame_arguments_all, print_frame_arguments_scalars)
5524 (print_frame_arguments_none): Declare.
5525 (print_entry_values): Delete declaration.
5526 (struct frame_print_options, user_frame_print_options): New.
5527 (struct set_backtrace_options): New.
5528 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5529 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5530 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5531 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5532 (list_args_or_locals): Add frame_print_options parameter.
5533 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5534 * python/py-framefilter.c (enumerate_args): Pass down
5535 USER_FRAME_PRINT_OPTIONS.
5536 * stack.c: Include "cli/cli-option.h".
5537 (print_frame_arguments_all, print_frame_arguments_scalars)
5538 (print_frame_arguments_none): Declare.
5539 (print_raw_frame_arguments, print_entry_values): Delete.
5540 (user_frame_print_options): New.
5541 (boolean_option_def, enum_option_def, frame_print_option_defs):
5542 New.
5543 (struct backtrace_cmd_options): New.
5544 (bt_flag_option_def): New.
5545 (backtrace_command_option_defs): New.
5546 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5547 (print_frame_arg, read_frame_arg, print_frame_args)
5548 (print_frame_info, print_frame): Add frame_print_options parameter
5549 and use it.
5550 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5551 (backtrace_command_1): Add frame_print_options and
5552 backtrace_cmd_options parameters and use them.
5553 (make_backtrace_options_def_group): New.
5554 (backtrace_command): Process command options with
5555 gdb::option::process_options.
5556 (backtrace_command_completer): New.
5557 (_initialize_stack): Extend "backtrace"'s help to mention
5558 supported options. Install completer for "backtrace".
5559 Install some settings commands with add_setshow_cmds_for_options.
5560
2daf894e
PA
55612019-06-13 Pedro Alves <palves@redhat.com>
5562
5563 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5564 and that "set/show print raw frame-arguments" are now deprecated.
5565
5566 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5567 command.
5568 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5569 * stack.c (_initialize_stack): Install "set/show print
5570 raw-frame-arguments", and deprecate "set/show print raw
5571 frame-arguments".
5572 * valprint.c (_initialize_valprint): Deprecate "set/show print
5573 raw".
5574
e6ed716c
PA
55752019-06-13 Pedro Alves <palves@redhat.com>
5576
5577 * compile/compile.c (struct compile_options): New.
5578 (compile_flag_option_def, compile_command_option_defs)
5579 (make_compile_options_def_group): New.
5580 (compile_file_command): Handle options with
5581 gdb::option::process_options.
5582 (compile_file_command_completer): New function.
5583 (compile_code_command): Handle options with
5584 gdb::option::process_options.
5585 (compile_code_command_completer): New function.
5586 (_initialize_compiler): Install completers for "compile code" and
5587 "compile file". Mention available options in "compile code" and
5588 "compile code"'s help.
5589 * completer.c (advance_to_completion_word): New, factored out from
5590 ...
5591 (advance_to_expression_complete_word_point): ... this.
5592 (advance_to_filename_complete_word_point): New.
5593 * completer.h (advance_to_filename_complete_word_point): New
5594 declaration.
5595
7d8062de
PA
55962019-06-13 Pedro Alves <palves@redhat.com>
5597
5598 * compile/compile.c: Include "cli/cli-option.h".
5599 (compile_print_value): Scope data pointer is now a
5600 value_print_options pointer; adjust.
5601 (compile_print_command): Process options. Scope data pointer is
5602 now a value_print_options pointer; adjust.
5603 (_initialize_compile): Update "compile print"'s help to include
5604 supported options. Install a completer for "compile print".
5605 * cp-valprint.c (show_vtblprint, show_objectprint)
5606 (show_static_field_print): Delete.
5607 (_initialize_cp_valprint): Don't install "set print
5608 static-members", "set print vtbl", "set print object" here.
5609 * printcmd.c: Include "cli/cli-option.h" and
5610 "common/gdb_optional.h".
5611 (print_command_parse_format): Rework to fill in a
5612 value_print_options instead of a format_data.
5613 (print_value): Change parameter type from format_data pointer to
5614 value_print_options reference. Adjust.
5615 (print_command_1): Process options. Adjust to pass down a
5616 value_print_options.
5617 (print_command_completer): New.
5618 (_initialize_printcmd): Install print_command_completer as
5619 handle_brkchars completer for the "print" command. Update
5620 "print"'s help to include supported options.
5621 * valprint.c: Include "cli/cli-option.h".
5622 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5623 here from cp-valprint.c.
5624 (boolean_option_def, uinteger_option_def)
5625 (value_print_option_defs, make_value_print_options_def_group):
5626 New. Use gdb::option::add_setshow_cmds_for_options to install
5627 "set print elements", "set print null-stop", "set print repeats",
5628 "set print pretty", "set print union", "set print array", "set
5629 print address", "set print symbol", "set print array-indexes".
5630 * valprint.h: Include <string> and "cli/cli-option.h".
5631 (make_value_print_options_def_group): Declare.
5632 (print_value): Change parameter type from format_data pointer to
5633 value_print_options reference.
5634 (print_command_completer): Declare.
5635
9d0faba9
PA
56362019-06-13 Pedro Alves <palves@redhat.com>
5637
5638 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5639 (COMMON_SFILES): Add maint-test-settings.c.
5640 * cli/cli-decode.c (boolean_enums): New global, factored out from
5641 ...
5642 (add_setshow_boolean_cmd): ... here.
5643 * cli/cli-decode.h (boolean_enums): Declare.
5644 * cli/cli-option.c: New file.
5645 * cli/cli-option.h: New file.
5646 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5647 factored out from ...
5648 (parse_cli_boolean_value(const char *)): ... this.
5649 (is_unlimited_literal): Change parameter type to pointer to
5650 pointer. Adjust and advance ARG pointer.
5651 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5652 (parse_cli_var_enum): New, factored out from ...
5653 (do_set_command): ... this. Adjust.
5654 * cli/cli-setshow.h (parse_cli_boolean_value)
5655 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5656 (parse_cli_var_enum): Declare.
5657 * cli/cli-utils.c: Include "cli/cli-option.h".
5658 (get_ulongest): New.
5659 * cli/cli-utils.h (get_ulongest): Declare.
5660 (check_for_argument): New overloads.
5661 * maint-test-options.c: New file.
5662
2c722807
PA
56632019-06-13 Pedro Alves <palves@redhat.com>
5664
5665 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5666 parse a range if "-" is at the end of the string.
5667
dee7b4c8
PA
56682019-06-13 Pedro Alves <palves@redhat.com>
5669
5670 * cli/cli-setshow.c (parse_auto_binary_operation)
5671 (parse_cli_boolean_value): Don't allow "o".
5672
dca0f6c0
PA
56732019-06-13 Pedro Alves <palves@redhat.com>
5674
5675 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5676 * NEWS: Mention maint test-settings KIND.
5677 * maint-test-settings.c: New file.
5678
597bf39d
PA
56792019-06-13 Pedro Alves <palves@redhat.com>
5680
5681 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5682 completer.
5683 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5684 "set" completers.
5685
48c410fb
PA
56862019-06-13 Pedro Alves <palves@redhat.com>
5687
5688 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5689 after item.
5690
93bcb043
PA
56912019-06-13 Pedro Alves <palves@redhat.com>
5692
5693 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5694
cbba3ecd
PA
56952019-06-13 Pedro Alves <palves@redhat.com>
5696
5697 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5698 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5699 call.
5700 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5701 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5702 calls.
5703 (check_for_argument): Skip spaces after argument.
5704
b9a3f842
PA
57052019-06-13 Pedro Alves <palves@redhat.com>
5706
5707 * thread.c (thread_apply_command): Adjust TID parsing.
5708 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5709 detected before end of string.
5710 (tid_is_in_list): Error out if LIST is invalid.
5711
3844e605
PA
57122019-06-13 Pedro Alves <palves@redhat.com>
5713
5714 * completer.c (complete_line_internal_1): Rewind completion word
5715 point.
5716 (completion_tracker::advance_custom_word_point_by): Change
5717 parameter type to int.
5718 * completer.h (completion_tracker::advance_custom_word_point_by):
5719 Likewise.
5720
00b56dbe
PA
57212019-06-13 Pedro Alves <palves@redhat.com>
5722
5723 * completer.c (advance_to_completion_word): Handle delimiters.
5724
d106773e
PA
57252019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5726
5727 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5728
08f10e02
TT
57292019-06-11 Tom Tromey <tom@tromey.com>
5730
5731 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5732 (xmalloc_failed): Move to alloc.c.
5733 * alloc.c: New file.
5734 * Makefile.in (COMMON_SFILES): Add alloc.c.
5735
1c7fe951
TT
57362019-06-11 Tom Tromey <tom@tromey.com>
5737
5738 * nat/linux-waitpid.c: Don't include server.h.
5739 (linux_debug): Remove.
5740 (my_waitpid): Update.
5741
89549d7f
TT
57422019-06-11 Tom Tromey <tromey@adacore.com>
5743
5744 * infcall.c (_initialize_infcall): Remove trailing newline from
5745 help.
5746 * user-regs.c (_initialize_user_regs): Remove trailing newline
5747 from help.
5748 * typeprint.c (_initialize_typeprint): Remove trailing newline
5749 from help.
5750 * reverse.c (_initialize_reverse): Remove trailing newlines from
5751 help.
5752 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5753 from help.
5754 * language.c (add_set_language_command): Remove trailing newline
5755 from help.
5756 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5757 help.
5758 * disasm.c (_initialize_disasm): Remove trailing newline from
5759 help.
5760 * top.c (init_main): Remove trailing newline from help.
5761 * interps.c (_initialize_interpreter): Remove trailing newline
5762 from help.
5763 * btrace.c (_initialize_btrace): Remove trailing newlines from
5764 help.
5765 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5766 from help.
5767 * python/python.c (_initialize_python): Remove trailing newline
5768 from help.
5769 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5770 help.
5771 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5772 from help. Reformat some text.
5773 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5774 from help.
5775 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5776 newline from help.
5777
86108c13
TT
57782019-06-11 Tom Tromey <tromey@adacore.com>
5779
5780 * darwin-nat.c (darwin_decode_exception_message)
5781 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5782
a7067863
AB
57832019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5784
5785 * valops.c (value_slice): Check for not allocated or not
5786 associated values.
5787
9ab08412
TV
57882019-06-10 Tom de Vries <tdevries@suse.de>
5789
5790 PR gdb/24618
5791 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5792 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5793 invalid.
5794
f19e22e9
TV
57952019-06-10 Tom de Vries <tdevries@suse.de>
5796
5797 PR gdb/24611
5798 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5799 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5800
e99f9db0
TV
58012019-06-10 Tom de Vries <tdevries@suse.de>
5802
5803 PR symtab/24545
5804 * symtab.c (struct demangled_name_entry): Add language field.
5805 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5806 static minimal symbol". Set and use language field.
5807
9bf7038b
TT
58082019-06-10 Tom Tromey <tromey@adacore.com>
5809
5810 * ada-lang.c (_initialize_ada_language): Update help text.
5811
422186a9
TT
58122019-06-10 Tom Tromey <tromey@adacore.com>
5813
5814 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5815 with a newline.
5816 * guile/guile.c (handle_boot_error): Don't end warning with a
5817 newline.
5818 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5819 warning with a newline.
5820 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5821 newline.
5822 (s12z_frame_cache): Likewise.
5823 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5824 a newline.
5825 * solib-svr4.c (disable_probes_interface): Don't end warning with
5826 a newline.
5827 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5828 newline.
5829 * python/python.c (do_finish_initialization): Don't end warning
5830 with a newline.
5831
25ce02ee
TT
58322019-06-10 Tom Tromey <tom@tromey.com>
5833
5834 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5835 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5836 gdbpy_enter.
5837
caa429d8
TT
58382019-06-10 Tom Tromey <tromey@adacore.com>
5839
5840 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5841 data.
5842 (elf_new_init): Don't call stabsread_new_init.
5843 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5844 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5845 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5846
81873cc8
TV
58472019-06-10 Tom de Vries <tdevries@suse.de>
5848
5849 PR symtab/16264
5850 PR symtab/24517
5851 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5852
4fa0265e
РИ
58532019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5854
5855 * source.c (find_and_open_source): Also rewrite relative file
5856 names.
5857
1a3da2cd
AB
58582019-04-26 Amos Bird <amosbird@gmail.com>
5859
5860 * annotate.c (annotate_thread_exited): Add "thread-exited"
5861 annotation.
5862
3847a7bf
TT
58632019-06-06 Tom Tromey <tromey@adacore.com>
5864
5865 * maint.h (class scoped_command_stats): Use
5866 DISABLE_COPY_AND_ASSIGN.
5867 <print_time>: New method.
5868 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5869 print_time.
5870 (scoped_command_stats::print_time): New method.
5871
312617a3
AB
58722019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5875 instructions of lengths 6 or 8 bytes.
5876
b02f78f9
PA
58772019-06-04 Pedro Alves <palves@redhat.com>
5878
5879 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5880
5881 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5882 * breakpoint.c (condition_completer): Likewise.
5883 * cli/cli-dump.c (scan_expression): Likewise.
5884 * common/filestuff.c (mkdir_recursive): Likewise.
5885 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5886 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5887 (gdb_abspath): Likewise.
5888 * compile/compile-cplus-types.c
5889 (compile_cplus_instance::decl_name): Likewise.
5890 * completer.c (complete_explicit_location):
5891 (signal_completer, reg_or_group_completer_1): Likewise.
5892 * cp-support.c (cp_remove_params_if_any): Likewise.
5893 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5894 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5895 * infcmd.c (strip_bg_char): Likewise.
5896 * linespec.c (copy_token_string): Likewise.
5897 * mi/mi-main.c (output_cores): Likewise.
5898 * psymtab.c (psymtab_search_name):
5899 * symfile.c (test_set_ext_lang_command): Likewise.
5900 * target.c (target_fileio_read_stralloc): Likewise.
5901 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5902 * value.c (complete_internalvar): Likewise.
5903
e1f2e1a2
CB
59042019-06-04 Christian Biesinger <cbiesinger@google.com>
5905
5906 Add objfile property to gdb.Type.
d3238f7d
PA
5907 * NEWS: Mention Python API addition.
5908 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5909
e664d728
PW
59102019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5911
5912 * NEWS: Mention the new set|show style [title|highlight].
5913 Mention changes to "show style", "help" and "apropos".
5914
66d8c862
PW
59152019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5916
5917 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5918 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5919 instead of print_help_for_command.
5920 (print_doc_of_command): New function.
5921 (help_list): Add 'apropos -v word' suggestion.
5922 (print_help_for_command): Style the command name using title style.
5923 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5924 (_initialize_cli_cmds): Describe -v in apropos_command help.
5925
9303eb2f
PW
59262019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5927
5928 * cli/cli-style.h (cli_style_option): Add name in constructor,
5929 add m_name class member, add constructor with intensity,
5930 add name class function.
5931 (cli_style_option::add_setshow_commands): Remove name argument.
5932 (highlight_style, title_style): New styles.
5933 * cli/cli-style.c (do_show): New function that shows a style
5934 characteristic styling the style name with itself.
5935 (set_style_name): New function.
5936 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5937 Update all callers according to the changes in cli/cli-style.h.
5938 * utils.h (fputs_highlighted): New function.
5939 * utils.c (fputs_highlighted): Likewise.
5940
e2c52041
PW
59412019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5942
5943 * NEWS: Mention new pipe command and new convenience variables.
5944
947d3946
PW
59452019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5946
5947 * cli/cli-cmds.c (pipe_command): New function.
5948 (_initialize_cli_cmds): Call add_com for pipe_command.
5949 Define | as an alias for pipe.
5950 (exit_status_set_internal_vars): New function.
5951 (shell_escape): Call exit_status_set_internal_vars.
5952 cli/cli-decode.c (find_command_name_length): Recognize | as
5953 a single character command.
5954
b8fd0918
PW
59552019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5956
5957 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5958 top.c (execute_command_to_ui_file): New function, mostly a copy
5959 of execute_command_to_string.
5960 (execute_command_to_string): Implement by calling
5961 execute_command_to_ui_file.
5962
68bb5386
PW
59632019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5964
5965 * top.h (saved_command_line): Remove declaration.
5966 * top.c (previous_saved_command_line, previous_repeat_arguments):
5967 New variables.
5968 (saved_command_line): Make static, define together with other
5969 'repeat variables'.
5970 (dont_repeat): Clear repeat_arguments.
5971 (repeat_previous, get_saved_command_line, save_command_line):
5972 New functions.
5973 (gdb_init): Initialize saved_command_line
5974 and previous_saved_command_line.
5975 * main.c (captured_main_1): Remove saved_command_line initialization.
5976 * event-top.c (handle_line_of_input): Update to use
5977 the new 'repeat' related functions instead of direct access to
5978 saved_command_line.
5979 * command.h (repeat_previous, get_saved_command_line,
5980 save_command_line): New declarations.
5981 (dont_repeat): Add comment.
5982
bfcdb852
TT
59832019-05-30 Tom Tromey <tromey@adacore.com>
5984
5985 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5986 Fix comment.
5987 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5988
0ef209f2
JV
59892019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5990
5991 PR cli/24587
5992 * completer.c (complete): Initialize variable word.
5993
955b06fa
SDJ
59942019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5995
5996 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5997 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5998 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5999 'body' is NULL to the outter 'if', protecting the '!is_define'
6000 situation as well.
6001
fa9c3fa0
TT
60022019-05-29 Tom Tromey <tromey@adacore.com>
6003
6004 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6005 (dwarf_unknown): New function.
6006 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6007 (dwarf_type_encoding_name): Use dwarf_unknown.
6008
4330d61d
TT
60092019-05-29 Tom Tromey <tromey@adacore.com>
6010
6011 PR c++/20020:
6012 * cp-valprint.c (cp_print_value_fields): Call
6013 cp_print_static_field inside "try".
6014
33a6bc35
TT
60152019-05-29 Tom Tromey <tromey@adacore.com>
6016
6017 * inflow.c (struct terminal_info): Add default operator=.
6018 * configure: Rebuild.
6019 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6020 -Wdeprecated-copy-dtor, -Wredundant-move.
6021
000439d5
TT
60222019-05-29 Tom Tromey <tromey@adacore.com>
6023
6024 * NEWS: Add entry.
6025 * infcmd.c (print_return_value_1): Handle finish_print
6026 option.
6027 (show_print_finish): New function.
6028 (_initialize_infcmd): Add "set/show print finish" commands.
6029 * valprint.c (user_print_options): Initialize new member.
6030 * valprint.h (struct value_print_options) <finish_print>: New
6031 member.
6032
c0e70c62
TT
60332019-05-28 Tom Tromey <tromey@adacore.com>
6034
6035 * ada-lang.c (ada_remove_Xbn_suffix)
6036 (find_old_style_renaming_symbol)
6037 (parse_old_style_renaming): Remove.
6038 (ada_find_renaming_symbol): Don't call
6039 find_old_style_renaming_symbol.
6040 (ada_is_renaming_symbol): Rename from
6041 ada_find_renaming_symbol. Remove "block" parameter. Return
6042 bool. Now static.
6043 (ada_read_var_value): Update and simplify.
6044 * ada-exp.y (write_var_or_type): Remove old code.
6045
766f8836
AH
60462019-05-28 Alan Hayward <alan.hayward@arm.com>
6047
6048 * event-top.c: Remove include comment.
6049 * inflow.c (class scoped_ignore_sigttou): Move from here...
6050 * inflow.h (class scoped_ignore_sigttou): ...to here.
6051 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6052 * top.c: Remove include comment.
6053
eb41253a
TT
60542019-05-27 Tom Tromey <tom@tromey.com>
6055
6056 * NEWS: Fix typo.
6057
4ca51187
TT
60582019-05-22 Tom Tromey <tromey@adacore.com>
6059
6060 * target.c (target_follow_exec): Constify parameter.
6061 * target-delegates.c: Rebuild.
6062 * remote.c (remote_target::follow_exec): Constify parameter.
6063 * infrun.c (follow_exec): Constify parameter.
6064 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6065 (target_follow_exec): Likewise.
6066
8fca4da0
AH
60672019-05-22 Alan Hayward <alan.hayward@arm.com>
6068
6069 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6070 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6071
b7060614
AH
60722019-05-22 Alan Hayward <alan.hayward@arm.com>
6073
6074 * NEWS: Add debugredirect and testsuite sections.
6075
0a5954bd
SC
60762019-05-22 Simon Cook <simon.cook@embecosm.com>
6077
6078 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6079 target descriptions using exclusively floating point register name
6080 aliases.
6081
dc42e902
AB
60822019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6083
6084 PR gdb/18644:
6085 * f-lang.c (build_fortran_types): Handle the case where
6086 gdbarch_floatformat_for_type returns a nullptr.
6087
fb7806c7
TV
60882019-05-21 Tom de Vries <tdevries@suse.de>
6089
6090 PR cli/24587
6091 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6092
34d11c68
AB
60932019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6094
6095 PR gdb/18644:
6096 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6097 16-byte floats.
6098 * i386-tdep.c (i386_floatformat_for_type): Use
6099 floatformats_ia64_quad for the 16-byte floating point component
6100 within a fortran 32-byte complex number.
6101
122cf0f2
AB
61022019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6103
6104 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6105 delete default constructor.
6106 (find_partial_die): Update to return const struct.
6107 (partial_die_parent_scope): Move variable declaration into scope
6108 of its use and change its type to auto.
6109 (guess_partial_die_structure_name): Likewise.
6110 (partial_die_info::fixup): Likewise.
6111
33d0e35a
TT
61122019-05-17 Tom Tromey <tromey@adacore.com>
6113
6114 * source.c (find_and_open_source): Remove cast.
6115
a45575b0
TT
61162019-05-17 Tom Tromey <tromey@adacore.com>
6117
6118 * annotate.c (annotate_source): Make "filename" const.
6119 * annotate.h (annotate_source): Use const.
6120
81f47ac2
AH
61212019-05-17 Alan Hayward <alan.hayward@arm.com>
6122
6123 * disasm.c (set_disassembler_options): Send errors to stderr.
6124
ca1285d1
AH
61252019-05-17 Alan Hayward <alan.hayward@arm.com>
6126
6127 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6128 (cli_interp_base::set_logging): Check debug_redirect.
6129 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6130 * cli/cli-logging.c (debug_redirect): Add static variable.
6131 (pop_output_files): Add default param.
6132 (handle_redirections): Print debug setting.
6133 (show_logging_command): Likewise.
6134 (_initialize_cli_logging): Add debugredirect command.
6135 * interps.c (current_interp_set_logging): Add debug_redirect
6136 parameter.
6137 * interps.h (set_logging): Add debug_redirect parameter.
6138 (current_interp_set_logging): Likewise.
6139 * mi/mi-common.h: Likewise.
6140 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6141
61422019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6143 Tom Tromey <tromey@adacore.com>
6144
6145 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6146 directly.
6147 * cli/cli-interp.h (make_logging_output): Remove declaration.
6148 * cli/cli-logging.c (make_logging_output): Remove function.
6149 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6150 directly.
6151 * ui-file.c (tee_file::tee_file): Remove bools.
6152 (tee_file::~tee_file): Remove deletes.
6153 * ui-file.h (tee_file): Remove bools.
6154
26648588
JV
61552019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6156
6157 * mi/mi-cmds.h (mi_cmd_complete): New function.
6158 * mi/mi-main.c (mi_cmd_complete): Likewise.
6159 * mi/mi-cmds.c: Define new MI command -complete.
6160 * NEWS: Mention new -complete command.
6161
6e035501
JV
61622019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6163
6164 * completer.h (complete): New function.
6165 * completer.c (complete): Likewise.
6166 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6167 function defined in completer.h.
6168
7d0e2ece
JV
61692019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6170
e79be6e5 6171 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6172
fb816e8b
TV
61732019-05-17 Tom de Vries <tdevries@suse.de>
6174
6175 PR gdb/24094
6176 * dwarf2read.c (struct cu_partial_die_info): New struct.
6177 (find_partial_die): Return cu_partial_die_info.
6178 (partial_die_parent_scope, guess_partial_die_structure_name)
6179 (partial_die_info::fixup): Handle new return type of find_partial_die.
6180
677052f2
SDJ
61812019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6182
a1726c38 6183 PR breakpoints/24541
677052f2
SDJ
6184 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6185 "std::string", simplifying the algorithm.
6186
f3da9116
SDJ
61872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6188
6189 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6190 (stap_static_probe_ops::get_probes): Likewise.
6191
f1bb75ab
SDJ
61922019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6193
6194 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6195 '-')" and "else if".
6196 (stap_parse_single_operand): Join checks for
6197 "gdbarch_stap_parse_special_token_p" and
6198 "gdbarch_stap_parse_special_token" in the same "if" statement.
6199 Invert check when verifying for operation on register
6200 displacement.
6201
3ca58cde
SDJ
62022019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6203
6204 * stap-probe.c (stap_get_opcode): Update comment.
6205 (stap_get_expected_argument_type): Likewise.
6206 (handle_stap_probe): Likewise.
6207
af2d9bee
SDJ
62082019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6209
6210 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6211 return type to 'bool'. Adjust comment. Use 'bool' when
6212 appropriate.
6213 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6214 * stap-probe.c (stap_parse_argument_1): Likewise.
6215 (stap_is_operator): Likewise.
6216 (stap_is_generic_prefix): Likewise.
6217 (stap_is_register_prefix): Likewise.
6218 (stap_is_register_indirection_prefix): Likewise.
6219 (stap_is_integer_prefix): Likewise.
6220 (stap_generic_check_suffix): Likewise.
6221 (stap_check_integer_suffix): Likewise.
6222 (stap_check_register_suffix): Likewise.
6223 (stap_check_register_indirection_suffix): Likewise.
6224 (stap_parse_register_operand): Likewise.
6225 (stap_parse_single_operand): Likewise.
6226 (stap_parse_argument_1): Likewise.
6227 (stap_probe::get_argument_count): Likewise.
6228 (stap_is_operator): Likewise.
6229
61c9c421
TT
62302019-05-16 Tom Tromey <tromey@adacore.com>
6231
6232 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6233 keyword to foreach.
6234
9ddc1af1
SM
62352019-05-15 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * linux-thread-db.c (try_thread_db_load_1): Change return type
6238 to bool.
6239 (try_thread_db_load): Likewise.
6240 (try_thread_db_load_from_pdir_1): Likewise.
6241 (try_thread_db_load_from_pdir): Likewise.
6242 (try_thread_db_load_from_sdir): Likewise.
6243 (try_thread_db_load_from_dir): Likewise.
6244 (thread_db_load_search): Likewise.
6245 (has_libpthread): Likewise.
6246 (thread_db_load): Likewise.
6247
7bede828
SDJ
62482019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6249
6250 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6251 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6252 NULL, and complain/return if that's the case.
6253
c5358db4
JD
62542019-05-15 John Darrington <john@darrington.wattle.id.au>
6255
6256 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6257 (advance, posn, abstract_read_memory): New functions.
6258 [struct mem_read_abstraction]: New struct.
6259 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6260
c408a94f
TT
62612019-05-14 Tom Tromey <tromey@adacore.com>
6262
6263 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6264 value is not lval_memory.
6265
e7bd7fba
TT
62662019-05-14 Tom Tromey <tromey@adacore.com>
6267
6268 * solib.c (info_sharedlibrary_command): Style the file name.
6269
a6d0f249
AH
62702019-05-14 Alan Hayward <alan.hayward@arm.com>
6271
6272 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6273 (aarch64_vnv_type): Likewise.
6274 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6275 * common/tdesc.c: Likewise.
6276 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6277 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6278 * features/aarch64-fpu.xml: Add ieee half view.
6279 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6280 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6281 * gdbtypes.h (struct builtin_type): Likewise.
6282 (struct objfile_type): Likewise.
6283
66b8bb74
SM
62842019-05-12 Paul Naert <paul.naert@polymtl.ca>
6285
6286 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6287 typo.
6288 * location.h (string_to_event_location): Likewise.
6289
21c219fd
JB
62902019-05-11 Joel Brobecker <brobecker@adacore.com>
6291
6292 GDB 8.3 released.
6293
13674803
SM
62942019-05-10 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6297 New variable declaration.
6298 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6299 New variable.
6300 (print_one_breakpoint): Use ui_out::test_flags and new global
6301 variable to compute use_fixed_output.
6302 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6303 Remove.
6304 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6305 (mi_multi_location_breakpoint_output_fixed): Remove.
6306 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6307 new variable.
6308 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6309 fix_multi_location_breakpoint_output flag if version >= 3.
6310 * ui-out.h (enum ui_out_flag)
6311 <fix_multi_location_breakpoint_output>: New enumerator.
6312
a9eac7f9
SM
63132019-05-10 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6316
71bed2db
TT
63172019-05-10 Tom Tromey <tromey@adacore.com>
6318
6319 * ada-lang.c (catch_ada_completer): New function.
6320 (_initialize_ada_language): Use it.
6321
24c54127
TT
63222019-05-10 Tom Tromey <tromey@adacore.com>
6323
6324 * thread.c (print_thread_info): Make "requested_threads" const.
6325 * gdbthread.h (print_thread_info): Make "requested_threads"
6326 const.
6327 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6328 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6329
7a102139
TT
63302019-05-08 Tom Tromey <tom@tromey.com>
6331
6332 * gdbtypes.c (objfile_type_data): Change type.
6333 (objfile_type, _initialize_gdbtypes): Update.
6334
924d79e2
TT
63352019-05-08 Tom Tromey <tom@tromey.com>
6336
6337 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6338 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6339 (_initialize_dwarf2_frame): Update.
6340
4c58e337
TT
63412019-05-08 Tom Tromey <tom@tromey.com>
6342
6343 * objc-lang.c (objc_objfile_data): Change type.
6344 (find_methods): Update.
6345 (_initialize_objc_lang): Remove.
6346
d772d2ab
TT
63472019-05-08 Tom Tromey <tom@tromey.com>
6348
6349 * stabsread.c (rs6000_builtin_type_data): Change type.
6350 (rs6000_builtin_type, _initialize_stabsread): Update.
6351
d11d83f4
TT
63522019-05-08 Tom Tromey <tom@tromey.com>
6353
6354 * mips-tdep.c (mips_pdr_data): Remove.
6355 (_initialize_mips_tdep): Update.
6356
9a73f0ad
TT
63572019-05-08 Tom Tromey <tom@tromey.com>
6358
6359 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6360 (hppa_init_objfile_priv_data, read_unwind_info)
6361 (find_unwind_entry, _initialize_hppa_tdep): Update.
6362
8127a2fa
TT
63632019-05-08 Tom Tromey <tom@tromey.com>
6364
6365 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6366 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6367 on obstack.
6368 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6369
91d3055d
TT
63702019-05-08 Tom Tromey <tom@tromey.com>
6371
6372 * mdebugread.c (basic_type_data): Change type.
6373 (basic_type, _initialize_mdebugread): Update.
6374
31930bd3
TT
63752019-05-08 Tom Tromey <tom@tromey.com>
6376
6377 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6378
bdb3ed9e
TT
63792019-05-08 Tom Tromey <tom@tromey.com>
6380
6381 * nto-tdep.c (nto_inferior_data_reg): Change type.
6382 (nto_inferior_data): Update.
6383 (nto_inferior_data_cleanup, nto_new_inferior_data)
6384 (_initialize_nto_tdep): Remove.
6385 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6386
f37b313d
TT
63872019-05-08 Tom Tromey <tom@tromey.com>
6388
6389 * ada-lang.c (struct ada_inferior_data): Add initializers.
6390 (ada_inferior_data): Change type.
6391 (ada_inferior_data_cleanup): Remove.
6392 (get_ada_inferior_data, ada_inferior_exit)
6393 (struct ada_pspace_data): Add initializers, destructor.
6394 (ada_pspace_data_handle): Change type.
6395 (get_ada_pspace_data): Update.
6396 (ada_pspace_data_cleanup): Remove.
6397
24699405
TT
63982019-05-08 Tom Tromey <tom@tromey.com>
6399
6400 * coffread.c (struct coff_symfile_info): Add initializers.
6401 (coff_objfile_data_key): Move lower. Change type.
6402 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6403 Update.
6404 (coff_free_info): Remove.
6405
d4e05d2f
TT
64062019-05-08 Tom Tromey <tom@tromey.com>
6407
6408 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6409 (fbsd_pspace_data_handle): Move lower. Change type.
6410 (get_fbsd_pspace_data): Update.
6411 (fbsd_pspace_data_cleanup): Remove.
6412 (_initialize_fbsd_tdep): Update.
6413
14ef6690
TT
64142019-05-08 Tom Tromey <tom@tromey.com>
6415
6416 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6417 (get_ada_tasks_pspace_data): Update.
6418 (ada_tasks_pspace_data_cleanup): Remove.
6419 (_initialize_tasks): Update.
6420 (ada_tasks_inferior_data_handle): Change type.
6421 (get_ada_tasks_inferior_data): Update.
6422 (ada_tasks_inferior_data_cleanup): Remove.
6423 (struct ada_tasks_pspace_data): Add initializers.
6424
814cf43a
TT
64252019-05-08 Tom Tromey <tom@tromey.com>
6426
6427 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6428 * symfile-debug.c (debug_sym_get_probes): Change type.
6429 * stap-probe.c (handle_stap_probe):
6430 (stap_static_probe_ops::get_probes): Change type.
6431 * probe.h (class static_probe_ops) <get_probes>: Change type.
6432 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6433 (parse_probes_in_pspace): Update.
6434 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6435 Update.
6436 (any_static_probe_ops::get_probes): Change type.
6437 * elfread.c (elfread_data): New typedef.
6438 (probe_key): Change type.
6439 (elf_get_probes): Likewise. Update.
6440 (probe_key_free): Remove.
6441 (_initialize_elfread): Update.
6442 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6443 Change type.
6444 (dtrace_process_dof_probe, dtrace_process_dof)
6445 (dtrace_static_probe_ops::get_probe): Change type.
6446
02dc647e
TT
64472019-05-08 Tom Tromey <tom@tromey.com>
6448
6449 * xcoffread.c (struct xcoff_symfile_info): Rename from
6450 coff_symfile_info. Add initializers.
6451 (xcoff_objfile_data_key): Move lower. Change type.
6452 (XCOFF_DATA): Rewrite.
6453 (xcoff_free_info): Remove.
6454 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6455 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6456 (xcoff_initial_scan): Update.
6457
09232438
TT
64582019-05-08 Tom Tromey <tom@tromey.com>
6459
6460 * solib-svr4.c (struct svr4_info): Add initializers and
6461 destructor.
6462 <probes_table>: Now an htab_up.
6463 (solib_svr4_pspace_data): Change type.
6464 (free_probes_table): Simplify.
6465 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6466 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6467 (probes_table_remove_objfile_probes, register_solib_event_probe)
6468 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6469 (_initialize_svr4_solib): Update.
6470
7b4a314f
TT
64712019-05-08 Tom Tromey <tom@tromey.com>
6472
6473 * remote.c (remote_pspace_data): Change type.
6474 (remote_pspace_data_cleanup): Remove.
6475 (get_remote_exec_file, set_pspace_remote_exec_file)
6476 (_initialize_remote): Update.
6477
51d3063a
TT
64782019-05-08 Tom Tromey <tom@tromey.com>
6479
6480 * breakpoint.c (breakpoint_objfile_key): Change type.
6481 (get_breakpoint_objfile_data): Update.
6482 (free_breakpoint_objfile_data): Remove.
6483 (_initialize_breakpoint): Update.
6484
89fb8848
TT
64852019-05-08 Tom Tromey <tom@tromey.com>
6486
6487 * linux-tdep.c (struct linux_info): Add initializers.
6488 (linux_inferior_data): Move. Change type.
6489 (invalidate_linux_cache_inf): Update.
6490 (linux_inferior_data_cleanup): Remove.
6491 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6492
e9b89e2d
TT
64932019-05-08 Tom Tromey <tom@tromey.com>
6494
6495 * auxv.c (auxv_inferior_data): Move. Change type.
6496 (auxv_inferior_data_cleanup): Remove.
6497 (invalidate_auxv_cache_inf): Rewrite.
6498 (get_auxv_inferior_data, _initialize_auxv): Update.
6499
8c42777c
TT
65002019-05-08 Tom Tromey <tom@tromey.com>
6501
6502 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6503 (symfile_debug_objfile_data_key): Change type.
6504 (symfile_debug_installed, debug_qf_has_symbols)
6505 (debug_qf_find_last_source_symtab)
6506 (debug_qf_forget_cached_source_info)
6507 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6508 (debug_qf_print_stats, debug_qf_dump)
6509 (debug_qf_expand_symtabs_for_function)
6510 (debug_qf_expand_all_symtabs)
6511 (debug_qf_expand_symtabs_with_fullname)
6512 (debug_qf_map_matching_symbols)
6513 (debug_qf_expand_symtabs_matching)
6514 (debug_qf_find_pc_sect_compunit_symtab)
6515 (debug_qf_map_symbol_filenames)
6516 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6517 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6518 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6519 (debug_sym_read_linetable, debug_sym_relocate): Update.
6520 (symfile_debug_free_objfile): Remove.
6521 (install_symfile_debug_logging, _initialize_symfile_debug):
6522 Update.
6523
5bfd760d
TT
65242019-05-08 Tom Tromey <tom@tromey.com>
6525
6526 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6527 allocate_on_obstack.
6528 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6529 (get_dwarf2_per_objfile): Update.
6530 (set_dwarf2_per_objfile): Remove.
6531 (dwarf2_has_info, dwarf2_get_section_info): Update.
6532 (dwarf2_free_objfile): Remove.
6533 (_initialize_dwarf2_read): Update.
6534
e85e19b4
TT
65352019-05-08 Tom Tromey <tom@tromey.com>
6536
6537 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6538 initializers.
6539 <unsupported_script_warning_printed,
6540 script_not_found_warning_printed>: Now bool.
6541 (auto_load_pspace_data): Change type.
6542 (~auto_load_pspace_info): Rename from
6543 auto_load_pspace_data_cleanup.
6544 (get_auto_load_pspace_data, init_loaded_scripts_info)
6545 (clear_section_scripts, maybe_print_unsupported_script_warning)
6546 (maybe_print_script_not_found_warning, _initialize_auto_load):
6547 Update.
6548
f6aa7436
TT
65492019-05-08 Tom Tromey <tom@tromey.com>
6550
6551 * objfiles.c (objfile_pspace_info): Add destructor and
6552 initializers.
6553 (objfiles_pspace_data): Change type.
6554 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6555 (get_objfile_pspace_data): Update.
6556 (objfiles_bfd_data): Change type.
6557 (get_objfile_bfd_data): Update.
6558 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6559
6ae614f6
TT
65602019-05-08 Tom Tromey <tom@tromey.com>
6561
6562 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6563 Change type.
6564 (get_catch_syscall_inferior_data): Update.
6565 (catch_syscall_inferior_data_cleanup): Remove.
6566 (_initialize_break_catch_syscall): Update.
6567
6509b8eb
TT
65682019-05-08 Tom Tromey <tom@tromey.com>
6569
6570 * inflow.c (struct terminal_info): Add destructor and
6571 initializers.
6572 (inflow_inferior_data): Change type.
6573 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6574 (get_inflow_inferior_data, inflow_inferior_exit)
6575 (swap_terminal_info, _initialize_inflow): Update.
6576
35632941
TT
65772019-05-08 Tom Tromey <tom@tromey.com>
6578
6579 * target-dcache.c (target_dcache_cleanup): Remove.
6580 (target_dcache_aspace_key): Change type.
6581 (target_dcache_init_p, target_dcache_invalidate)
6582 (target_dcache_get, target_dcache_get_or_init)
6583 (_initialize_target_dcache): Update.
6584 * dcache.h (struct dcache_deleter): New.
6585
3017b94d
TT
65862019-05-08 Tom Tromey <tom@tromey.com>
6587
6588 * symtab.c (struct symbol_cache): Add destructor and
6589 initializers.
6590 (symbol_cache_key): Move. Change type.
6591 (make_symbol_cache, free_symbol_cache): Remove.
6592 (get_symbol_cache): Update.
6593 (symbol_cache_cleanup): Remove.
6594 (ALL_PSPACES, symbol_cache_flush)
6595 (maintenance_print_symbol_cache)
6596 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6597 Update.
6598
a32ad8c5
TT
65992019-05-08 Tom Tromey <tom@tromey.com>
6600
6601 * symtab.c (struct main_info): Add destructor and initializers.
6602 (main_progspace_key): Move. Change type.
6603 (get_main_info): Update.
6604 (main_info_cleanup): Remove.
6605 (_initialize_symtab): Update.
6606
5f6e90a0
TT
66072019-05-08 Tom Tromey <tom@tromey.com>
6608
6609 * registry.h (DECLARE_REGISTRY): Define the _key class.
6610
1bd0c6e4
AB
66112019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6612
6613 * NEWS: Merge two 'New commands' sections.
6614
2228ef77
XR
66152019-05-08 Joel Brobecker <brobecker@adacore.com>
6616
6617 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6618 parameter and use Ada language definition instead.
6619 (ada_val_print_ptr): Remove unused language parameter.
6620 (ada_val_print_num): Remove language parameter and use Ada language
6621 definition instead.
6622 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6623 parameter.
6624 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6625 parameter and use Ada language definition instead.
6626 (ada_val_print_1): Update all ada_val_print_xxx calls.
6627 Remove language parameter.
6628 (ada_val_print): Update ada_val_print_1 call.
6629
60fcc1c3
TT
66302019-05-08 Tom Tromey <tromey@adacore.com>
6631
6632 * remote.c (remote_hw_watchpoint_limit)
6633 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6634 Now static.
6635
ed2b7c17
TT
66362019-05-08 Tom Tromey <tromey@adacore.com>
6637
6638 * maint.c (_initialize_maint_cmds): Move initialization code to
6639 remote.c.
6640 (watchdog, show_watchdog): Move to remote.c.
6641 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6642 "watchdog" static.
6643 (_initialize_remote): Move initialization code from maint.c.
6644 * defs.h (watchdog): Don't declare.
6645
b0be6c91
TT
66462019-05-08 Tom Tromey <tromey@adacore.com>
6647
6648 * tui/tui-interp.c: Include main.h.
6649 * interps.c: Include main.h.
6650 * main.h (interpreter_p): Declare.
6651 * defs.h (interpreter_p): Don't declare.
6652
587ee17b
TT
66532019-05-08 Tom Tromey <tromey@adacore.com>
6654
6655 * dwarf2loc.c: Include dwarf2read.h.
6656 * defs.h (read_unsigned_leb128): Don't declare.
6657 * dwarf2read.h (read_unsigned_leb128): Declare.
6658
ca1df239
TT
66592019-05-08 Tom Tromey <tromey@adacore.com>
6660
6661 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6662 method.
6663
99f20f08
TT
66642019-05-08 Tom Tromey <tromey@adacore.com>
6665
6666 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6667 when no wrap column is set.
6668
80e55b13
TT
66692019-05-08 Tom Tromey <tromey@adacore.com>
6670
6671 * c-lang.c (c_get_string): Handle non-C-style arrays.
6672
9d3421af
TT
66732019-05-08 Tom Tromey <tromey@adacore.com>
6674
6675 * typeprint.c (print_offset_data::update): Print the bit offset,
6676 not the number of bits remaining.
6677
844333e2
TT
66782019-05-08 Tom Tromey <tromey@adacore.com>
6679
6680 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6681 padding at end of comment.
6682
988915ee
TT
66832019-05-08 Tom Tromey <tromey@adacore.com>
6684
6685 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6686 Compare main types.
6687
26bfd823
TT
66882019-05-06 Tom Tromey <tom@tromey.com>
6689
6690 * common/scoped_mmap.c: Include common-defs.h.
6691 * common/scoped_mmap.h: Don't include config.h.
6692
89055eaa
TT
66932019-05-04 Tom Tromey <tom@tromey.com>
6694
6695 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6696 (struct aarch64_call_info): Add initializers.
6697 <si>: Now a std::vector.
6698 (pass_on_stack, aarch64_push_dummy_call): Update.
6699
5da01df5
TT
67002019-05-04 Simon Marchi <simon.marchi@efficios.com>
6701 Tom Tromey <tom@tromey.com>
6702
6703 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6704 (ppc_threads): Now a std::vector. Now static.
6705 (hwdebug_find_thread_points_by_tid)
6706 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6707 Update.
6708
fbdf05a1
TT
67092019-05-04 Tom Tromey <tom@tromey.com>
6710
6711 * arc-tdep.c (arc_tdesc_init): Return bool.
6712
06d16ec9
TT
67132019-05-04 Tom Tromey <tom@tromey.com>
6714
6715 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6716 Use gdb_assert_not_reached.
6717
9c056022
TT
67182019-05-04 Tom Tromey <tom@tromey.com>
6719
6720 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6721 "false".
6722
fa9c2a59
TT
67232019-05-04 Tom Tromey <tom@tromey.com>
6724
6725 * arc-tdep.c (arc_tdesc_init): Use bool.
6726
e2eb806a
TT
67272019-05-04 Tom Tromey <tom@tromey.com>
6728
6729 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6730
6fe87677
TT
67312019-05-04 Tom Tromey <tom@tromey.com>
6732
6733 * cli/cli-cmds.c (valid_command_p): Return bool.
6734
7f008c9e
TT
67352019-05-04 Tom Tromey <tom@tromey.com>
6736
6737 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6738 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6739
b6484282
RT
67402019-05-04 Raul Tambre <raul@tambre.ee>
6741
6742 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6743 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6744 operator for comparison.
6745
af97b416
TT
67462019-05-04 Tom Tromey <tom@tromey.com>
6747
6748 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6749 (lookup_partial_symbol, print_partial_symbols)
6750 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6751 (psymbol_compare): Update.
6752 (add_psymbol_to_bcache): Clear the entire psymbol.
6753 (maintenance_check_psymtabs): Update.
6754 * psympriv.h (struct partial_symbol): Don't derive from
6755 general_symbol_info.
6756 <obj_section, unrelocated_address, address,
6757 set_unrelocated_address>: Update.
6758 <ginfo>: New member.
6759 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6760 (debug_names::write_psymbols): Update.
6761
9d6d4be8
TV
67622019-05-04 Tom de Vries <tdevries@suse.de>
6763
6764 * contrib/cc-with-tweaks.sh: Support -n arg.
6765
66452beb
PW
67662019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6767
6768 * corelow.c (core_target::detach): Ensure frame cache and
6769 register caches are cleared.
6770 inferior.c (exit_inferior_1): Likewise.
6771
bde09ab7
TT
67722019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6773 Tom Tromey <tom@tromey.com>
6774
6775 * dictionary.c (collate_pending_symbols_by_language): Remove
6776 "struct" from foreach.
6777 * symtab.c (lookup_global_symbol_from_objfile)
6778 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6779 foreach.
6780 * ser-tcp.c (net_open): Remove "struct" from foreach.
6781 * objfiles.c (objfile_relocate, objfile_rebase)
6782 (objfile_has_symbols): Remove "struct" from foreach.
6783 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6784 from foreach.
6785 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6786 foreach.
6787 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6788 "struct" from foreach.
6789 * ada-lang.c (create_excep_cond_exprs)
6790 (ada_exception_catchpoint_cond_string): Remove "struct" from
6791 foreach.
6792
222a8d25
TT
67932019-05-03 Tom Tromey <tromey@adacore.com>
6794
6795 * ada-exp.y (convert_char_literal): Check suffix of each
6796 enumerator.
6797
fcd60b84
DP
67982019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6799
6800 PR ada/21406:
6801 * ada-exp.y (yywrap): Don't define.
6802 * ada-lex.l (%option): Add noyywrap
6803 (yywrap): Remove.
6804
5f2459c2
EZ
68052019-05-03 Eli Zaretskii <eliz@gnu.org>
6806
353ea2d1
EZ
6807 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6808 _WIN32_WINNT to the XP level, unless already defined to a higher
6809 level.
6810
6811 * unittests/parse-connection-spec-selftests.c:
6812 * ser-tcp.c:
6813 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6814 override.
6815
5f2459c2
EZ
6816 * symfile.c (find_separate_debug_file): Remove colon from the
6817 drive spec of DOS/Windows file names of the target, so that the
6818 file name produced from DEBUGDIR and the target's directory will
6819 be valid on DOS/Windows systems.
6820
80062eb9
AB
68212019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6822
6823 * rust-lang.c (val_print_struct): Handle printing structures
6824 containing strings.
6825
b8c05e85
TT
68262019-05-02 Tom Tromey <tromey@adacore.com>
6827
6828 * valarith.c (_initialize_valarith): Remove.
6829
4504bbde
TT
68302019-05-01 Tom Tromey <tromey@adacore.com>
6831
6832 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6833 bitfields.
6834
d48e62f4
TT
68352019-05-01 Tom Tromey <tromey@adacore.com>
6836
6837 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6838 for big-endian copies.
6839
15f18d14
AT
68402019-04-30 Ali Tamur <tamur@google.com>
6841 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6842 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6843 (read_3_bytes): New function.
6844
ab4ee614
JB
68452019-04-30 Joel Brobecker <brobecker@adacore.com>
6846
6847 * windows-nat.c (main_thread_id): Delete.
6848 (handle_output_debug_string): Replace main_thread_id by
6849 current_event.dwThreadId.
6850 (fake_create_process): Likewise.
6851 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6852 Do not set main_thread_id.
6853 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6854 current_event.dwThreadId.
6855 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6856
8ed5b76e
JB
68572019-04-30 Joel Brobecker <brobecker@adacore.com>
6858
6859 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6860 Use current_event.dwThreadId instead of main_thread_id.
6861
2ff0a947
TT
68622019-04-30 Tom Tromey <tromey@adacore.com>
6863
6864 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6865 (create_excep_cond_exprs): Iterate over program spaces.
6866 (ada_exception_catchpoint_cond_string): Examine all minimal
6867 symbols for exception types.
6868
a776957c
TT
68692019-04-30 Tom Tromey <tromey@adacore.com>
6870
6871 PR c++/24470:
6872 * dwarf2read.c (process_structure_scope): Handle case where type
6873 has template parameters but no symbol was created.
6874
bc68014d
AB
68752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6876 Chris January <chris.january@arm.com>
6877
6878 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6879 qualifier.
6880 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6881
f1fdc960
AB
68822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6883
6884 * f-typeprint.c (f_print_type): Update rules for printing
6885 whitespace.
6886 (f_type_print_varspec_suffix): Likewise.
6887
bf7a4de1
AB
68882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6889 Chris January <chris.january@arm.com>
6890
6891 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6892 function arguments.
6893
bbe75b9d
AB
68942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6895
6896 * f-lang.c (build_fortran_types): Change name of void type to
6897 lower case.
6898 * f-typeprint.c (f_type_print_base): Print the name of the void
6899 type, rather than a fixed string.
6900 * f-valprint.c (f_decorations): Use lower case void string.
6901
1db455a7
AB
69022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6903 Chris January <chris.january@arm.com>
6904
6905 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6906 types for Fortran.
6907
b6d03bb2
AB
69082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6909 Chris January <chris.january@arm.com>
6910 David Lecomber <david.lecomber@arm.com>
6911
6912 * f-exp.y (BINOP_INTRINSIC): New token.
6913 (exp): New parser rule handling BINOP_INTRINSIC.
6914 (f77_keywords): Add new builtin procedures.
6915 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6916 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6917 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6918 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6919 (print_unop_subexp_f): New function.
6920 (print_binop_subexp_f): New function.
6921 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6922 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6923 (dump_subexp_body_f): Likewise.
6924 (operator_check_f): Likewise.
6925 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6926 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6927
83228e93
AB
69282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6929
6930 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6931 UNOP_KIND.
6932 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6933 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6934 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6935 (operator_length_f): New fuction.
6936 (print_subexp_f): New function.
6937 (op_name_f): New function.
6938 (dump_subexp_body_f): New function.
6939 (operator_check_f): New function.
6940 (exp_descriptor_f): Replace standard expression handling functions
6941 with new functions.
6942 * gdb/fortran-operator.def: New file.
6943 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6944 * gdb/std-operator.def: Remove UNOP_KIND.
6945
6fdcd7cc
AB
69462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 * std-operator.def: Remove unbalanced, stray double quote
6949 character.
6950
2e62ab40
AB
69512019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6952 Chris January <chris.january@arm.com>
6953 Daniel Everett <daniel.everett@arm.com>
6954 Nick Forrington <nick.forrington@arm.com>
6955 Richard Bunt <richard.bunt@arm.com>
6956
6957 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6958 of depth when printing anonymous structs or unions.
6959 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6960 Don't print either the top-level value, or the children if the
6961 max-depth is exceeded.
6962 (ppscm_print_children): When printing the key of a map, allow one
6963 extra level of depth.
6964 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6965 print either the top-level value, or the children if the max-depth
6966 is exceeded.
6967 (print_children): When printing the key of a map, allow one extra
6968 level of depth.
6969 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6970 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6971 (user_print_options): Initialise max_depth field.
6972 (val_print_scalar_or_string_type_p): New function.
6973 (val_print): Check to see if the max depth has been reached.
6974 (val_print_check_max_depth): Define new function.
6975 (show_print_max_depth): New function.
6976 (_initialize_valprint): Add 'print max-depth' option.
6977 * valprint.h (struct value_print_options) <max_depth>: New field.
6978 (val_print_check_max_depth): Declare new function.
6979 * NEWS: Document new feature.
6980
4be290b2
AB
69812019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6982
6983 * ada-lang.c (ada_language_defn): Initialise new field.
6984 * c-lang.c (c_is_string_type_p): New function.
6985 (c_language_defn): Initialise new field.
6986 (cplus_language_defn): Initialise new field.
6987 (asm_language_defn): Initialise new field.
6988 (minimal_language_defn): Initialise new field.
6989 * c-lang.h (c_is_string_type_p): Declare new function.
6990 * d-lang.c (d_language_defn): Initialise new field.
6991 * f-lang.c (f_is_string_type_p): New function.
6992 (f_language_defn): Initialise new field.
6993 * go-lang.c (go_is_string_type_p): New function.
6994 (go_language_defn): Initialise new field.
6995 * language.c (default_is_string_type_p): New function.
6996 (unknown_language_defn): Initialise new field.
6997 (auto_language_defn): Initialise new field.
6998 * language.h (struct language_defn) <la_is_string_type_p>: New
6999 member variable.
7000 (default_is_string_type_p): Declare new function.
7001 * m2-lang.c (m2_language_defn): Initialise new field.
7002 * objc-lang.c (objc_language_defn): Initialise new field.
7003 * opencl-lang.c (opencl_language_defn): Initialise new field.
7004 * p-lang.c (pascal_is_string_type_p): New function.
7005 (pascal_language_defn): Initialise new field.
7006 * rust-lang.c (rust_is_string_type_p): New function.
7007 (rust_language_defn): Initialise new field.
7008
721b08c6
AB
70092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7010
7011 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7012 New field.
7013 * ada-lang.c (ada_language_defn): Initialise new field.
7014 * c-lang.c (c_language_defn): Likewise.
7015 (cplus_language_defn): Likewise.
7016 (asm_language_defn): Likewise.
7017 (minimal_language_defn): Likewise.
7018 * d-lang.c (d_language_defn): Likewise.
7019 * f-lang.c (f_language_defn): Likewise.
7020 * go-lang.c (go_language_defn): Likewise.
7021 * language.c (unknown_language_defn): Likewise.
7022 (auto_language_defn): Likewise.
7023 * m2-lang.c (m2_language_defn): Likewise.
7024 * objc-lang.c (objc_language_defn): Likewise.
7025 * opencl-lang.c (opencl_language_defn): Likewise.
7026 * p-lang.c (pascal_language_defn): Likewise.
7027 * rust-lang.c (rust_language_defn): Likewise.
7028
fc913e53
AB
70292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7030
7031 * ada-lang.c (ada_is_character_type): Change return type to bool.
7032 (ada_is_string_type): Likewise.
7033 * ada-lang.h (ada_is_character_type): Update declaration
7034 (ada_is_string_type): Likewise.
7035
fa731fa0
PW
70362019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7037
7038 Support style in 'frame|thread apply'
7039
7040 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7041 * record.c (record_start, record_stop): Update callers of
7042 execute_command_to_string with false.
7043 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7044 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7045 methods.
7046 (class string_file): New constructor with term_out parameter.
7047 Override methods term_out and can_emit_style_escape. New member
7048 term_out.
7049 (class stdio_file): Override can_emit_style_escape.
7050 (class tee_file): Override term_out and can_emit_style_escape.
7051 * utils.h (can_emit_style_escape): Remove.
7052 * utils.c (can_emit_style_escape): Likewise.
7053 Update all callers of can_emit_style_escape (SOMESTREAM) to
7054 SOMESTREAM->can_emit_style_escape.
7055 * source-cache.c (source_cache::get_source_lines): Likewise.
7056 * stack.c (frame_apply_command_count): Call execute_command_to_string
7057 passing the term_out characteristic of the current gdb_stdout.
7058 * thread.c (thr_try_catch_cmd): Likewise.
7059 * top.c (execute_command_to_string): pass term_out parameter
7060 to construct the string_file for the command output.
7061 * ui-file.c (term_cli_styling): New function (most code moved
7062 from utils.c can_emit_style_escape).
7063 (string_file::string_file, string_file::can_emit_style_escape,
7064 stdio_file::can_emit_style_escape, tee_file::term_out,
7065 tee_file::can_emit_style_escape): New functions.
7066
136afab8
PW
70672019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7068
7069 * NEWS: Mention the new set|show may-call-functions.
7070 * infcall.c (may_call_functions_p): New variable.
7071 (show_may_call_functions_p): New function.
7072 (call_function_by_hand_dummy): Throws an error if not
7073 may-call-functions.
7074 (_initialize_infcall): Call add_setshow_boolean_cmd for
7075 may-call-functions.
7076
725cbb63
KS
70772019-04-25 Keith Seitz <keiths@redhat.com>
7078
7079 PR c++/24367
7080 * cp-support.c (inspect_type): Don't attempt substitutions
7081 of symbol with the same name.
7082
3d1cbb78
TT
70832019-04-25 Tom Tromey <tromey@adacore.com>
7084
7085 PR gdb/24475:
7086 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7087 static.
7088
94aeb44b
TT
70892019-04-25 Tom Tromey <tromey@adacore.com>
7090
7091 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7092 rvalue reference.
7093 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7094 (gdb_xml_parser::parse): Use std::move.
7095 * python/python-internal.h (gdbpy_convert_exception): Take a const
7096 reference.
7097 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7098 std::move.
7099 * python/py-utils.c (gdbpy_convert_exception): Take a const
7100 reference.
7101 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7102 Use std::move.
7103 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7104 Use std::move.
7105 * mi/mi-main.c (mi_print_exception): Take a const reference.
7106 * main.c (handle_command_errors): Take a const reference.
7107 * linespec.c (parse_linespec): Use std::move.
7108 * infcall.c (run_inferior_call): Use std::move.
7109 (call_function_by_hand_dummy): Use std::move.
7110 * exec.c (try_open_exec_file): Use std::move.
7111 * exceptions.h (exception_print, exception_fprintf)
7112 (exception_print_same): Update.
7113 * exceptions.c (print_exception, exception_print)
7114 (exception_fprintf, exception_print_same): Change parameters to
7115 const reference.
7116 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7117 * common/new-op.c: Use std::move.
7118 * common/common-exceptions.h (struct gdb_exception): Add move
7119 constructor.
7120 (struct gdb_exception_error, struct gdb_exception_quit, struct
7121 gdb_quit_bad_alloc): Change constructor to move constructor.
7122 (throw_exception): Change parameter to rvalue reference.
7123 * common/common-exceptions.c (throw_exception): Take rvalue
7124 reference.
7125 * cli/cli-interp.c (safe_execute_command): Use std::move.
7126 * breakpoint.c (insert_bp_location, location_to_sals): Use
7127 std::move.
7128
680d7fd5
TT
71292019-04-25 Tom Tromey <tromey@adacore.com>
7130
7131 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7132 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7133 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7134 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7135 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7136 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7137 guile/scm-value.c: Use unpack.
7138 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7139 gdbscm_gdb_exception.
7140 (gdbscm_throw_gdb_exception): Likewise.
7141 (struct gdbscm_gdb_exception): New.
7142 (unpack): New function.
7143 (gdbscm_wrap): Use unpack.
7144
c6fdd8b2
TT
71452019-04-25 Tom Tromey <tromey@adacore.com>
7146
7147 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7148 (gdb_rl_callback_handler): Use std::move.
7149 * common/common-exceptions.h (struct gdb_exception): Add move
7150 assignment operator.
7151 (throw_exception_sjlj): Change "exception" to const reference.
7152 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7153 (throw_exception_sjlj): Change "exception" to const reference.
7154
cc06b668
TT
71552019-04-25 Tom Tromey <tromey@adacore.com>
7156
7157 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7158 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7159 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7160 Update.
7161 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7162 Update.
7163 * mi/mi-interp.c (mi_interp::exec): Update.
7164 * linespec.c (parse_linespec): Update.
7165 * infcall.c (run_inferior_call): Update.
7166 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7167 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7168 (gdbscm_lookup_global_symbol): Update.
7169 * guile/scm-param.c (gdbscm_parameter_value): Update.
7170 * guile/scm-frame.c (gdbscm_frame_read_register)
7171 (gdbscm_frame_read_var): Update.
7172 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7173 * exec.c (try_open_exec_file): Update.
7174 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7175 (gdb_rl_callback_handler): Update.
7176 * common/common-exceptions.h (exception_none): Don't declare.
7177 * common/common-exceptions.c (exception_none): Don't define.
7178 (struct catcher) <exception>: Update.
7179 * cli/cli-interp.c (safe_execute_command): Update.
7180 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7181
cf532bd1
AT
71822019-04-25 Ali Tamur <tamur@google.com>
7183
7184 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7185 (read_attribute_value): Likewise.
7186 (dwarf2_read_addr_index): Update comment.
7187 (read_str_index): Add DW_FORM_strx.
7188 (dwarf2_string_attr): Likewise.
7189 (dwarf2_const_value_attr): Likewise.
7190 (dump_die_shallow): Likewise.
7191 (dwarf2_fetch_constant_bytes): Likewise.
7192 (skip_form_bytes): Likewise.
7193 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7194
82433e3e
SDJ
71952019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7196
7197 PR corefiles/11608
7198 PR corefiles/18187
7199 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7200 OFFSET. Verify if current mapping contains an ELF header.
7201 (linux_find_memory_regions_full): Adjust call to
7202 dump_mapping_p.
7203
723adb65
SL
72042019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7205 Kang Li <kanglictf@gmail.com>
7206
7207 PR gdb/21600
7208
7209 * dwarf2-frame.c (read_initial_length): Be consistent about using
7210 unsigned representation of length.
7211 (decode_frame_entry_1): Likewise. Check for wraparound of
7212 end pointer as well as buffer overflow.
7213
596179f7
SDJ
72142019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7215
7216 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7217 "vq".
7218
a59240a4
TT
72192019-04-24 Tom Tromey <tromey@adacore.com>
7220
7221 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7222
f872fdbb
AB
72232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7224
7225 * s12z-tdep.c (s12z_unwind_pc): Delete.
7226 (s12z_unwind_sp): Delete.
7227 (s12z_gdbarch_init): Don't register deleted functions with
7228 gdbarch.
7229
b614e6f3
AB
72302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7231
7232 * rl78-tdep.c (rl78_unwind_sp): Delete.
7233 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7234
14faed38
AB
72352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7238 (xstormy16_unwind_pc): Delete.
7239 (xstormy16_dummy_id): Delete.
7240 (xstormy16_gdbarch_init): Don't register deleted functions with
7241 gdbarch.
7242
541aad8a
AB
72432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7244
7245 * vax-tdep.c (vax_unwind_pc): Delete.
7246 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7247
29222070
AB
72482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * v850-tdep.c (v850_unwind_sp): Delete.
7251 (v850_unwind_pc): Delete.
7252 (v850_dummy_id): Delete.
7253 (v850_gdbarch_init): Don't register deleted functions with
7254 gdbarch.
7255
0f534d76
AB
72562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7257
7258 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7259 (tilegx_unwind_pc): Delete.
7260 (tilegx_unwind_dummy_id): Delete.
7261 (tilegx_gdbarch_init): Don't register deleted functions with
7262 gdbarch.
7263
1ba7b7f9
AB
72642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7265
7266 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7267 (tic6x_dummy_id): Delete.
7268 (tic6x_gdbarch_init): Don't register deleted functions with
7269 gdbarch.
7270
d31f262c
AB
72712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * sparc-tdep.c (sparc_unwind_pc): Delete.
7274 (sparc32_gdbarch_init): Don't register deleted function with
7275 gdbarch.
7276
6d14d64d
AB
72772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7278
7279 * sh-tdep.c (sh_unwind_sp): Delete.
7280 (sh_unwind_pc): Delete.
7281 (sh_dummy_id): Delete.
7282 (sh_gdbarch_init): Don't register deleted functions with
7283 gdbarch.
7284
a40dde9d
AB
72852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7286
7287 * score-tdep.c (score_unwind_sp): Delete.
7288 (score_unwind_pc): Delete.
7289 (score_dummy_id): Delete.
7290 (score_gdbarch_init): Don't register deleted functions with
7291 gdbarch.
7292
47c47d69
AB
72932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 * rx-tdep.c (rx_unwind_pc): Delete.
7296 (rx_unwind_sp): Delete.
7297 (rx_dummy_id): Delete.
7298 (rx_gdbarch_init): Don't register deleted functions with
7299 gdbarch. Update comment.
7300
833a4480
AB
73012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7304 (rs6000_dummy_id): Delete.
7305 (rs6000_gdbarch_init): Don't register deleted functions with
7306 gdbarch.
7307
3f2cef49
AB
73082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7309
7310 * or1k-tdep.c (or1k_dummy_id): Delete.
7311 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7312
96acf884
AB
73132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7314
7315 * nios2-tdep.c (nios2_dummy_id): Delete.
7316 (nios2_unwind_sp): Delete.
7317 (nios2_gdbarch_init): Don't register deleted functions with
7318 gdbarch.
7319
ca0ab0aa
AB
73202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7321
7322 * nds32-tdep.c (nds32_dummy_id): Delete.
7323 (nds32_unwind_pc): Delete.
7324 (nds32_unwind_sp): Delete.
7325 (nds32_gdbarch_init): Don't register deleted functions with
7326 gdbarch.
7327
c8259044
AB
73282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7329
7330 * msp430-tdep.c (msp430_unwind_pc): Delete.
7331 (msp430_unwind_sp): Delete.
7332 (msp430_dummy_id): Delete.
7333 (msp430_gdbarch_init): Don't register deleted functions with
7334 gdbarch.
7335
27f113c8
AB
73362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 * moxie-tdep.c (moxie_unwind_sp): Delete.
7339 (moxie_unwind_pc): Delete.
7340 (moxie_dummy_id): Delete.
7341 (moxie_gdbarch_init): Don't register deleted functions with
7342 gdbarch.
7343
aee6c3cd
AB
73442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7347 (mn10300_unwind_pc): Delete.
7348 (mn10300_unwind_sp): Delete.
7349 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7350 mn10300_unwind_sp.
7351 (mn10300_frame_unwind_init): Don't register deleted functions with
7352 gdbarch.
7353
8e2b5aea
AB
73542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * mep-tdep.c (mep_unwind_pc): Delete.
7357 (mep_unwind_sp): Delete.
7358 (mep_dummy_id): Delete.
7359 (mep_gdbarch_init): Don't register deleted functions with
7360 gdbarch.
7361
43cf3ede
AB
73622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7363
7364 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7365 (m68hc11_unwind_sp): Delete.
7366 (m68hc11_gdbarch_init): Don't register deleted functions with
7367 gdbarch.
7368
5e79b7bb
AB
73692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7370
7371 * m32r-tdep.c (m32r_unwind_sp): Delete.
7372 (m32r_unwind_pc): Delete.
7373 (m32r_dummy_id): Delete.
7374 (m32r_gdbarch_init): Don't register deleted functions with
7375 gdbarch.
7376
89b268d8
AB
73772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7378
7379 * m32c-tdep.c (m32c_unwind_pc): Delete.
7380 (m32c_unwind_sp): Delete.
7381 (m32c_dummy_id): Delete.
7382 (m32c_gdbarch_init): Don't register deleted functions with
7383 gdbarch.
7384
946c28d2
AB
73852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7386
7387 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7388 (lm32_unwind_pc): Delete.
7389 (lm32_dummy_id): Delete.
7390 (lm32_gdbarch_init): Don't register deleted functions with
7391 gdbarch.
7392
bf12844a
AB
73932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7394
7395 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7396 (iq2000_unwind_pc): Delete.
7397 (iq2000_dummy_id): Delete.
7398 (iq2000_gdbarch_init): Don't register deleted functions with
7399 gdbarch.
7400
ecbc06d2
AB
74012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * nds32-tdep.c (nds32_type_align): Delete.
7404 (nds32_push_dummy_call): Use type_align instead.
7405
030197b4
AB
74062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7407
7408 * arm-tdep.c (arm_type_align): Only handle vector override case.
7409 (arm_push_dummy_call): Use type_align.
7410 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7411
b907456c
AB
74122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7413
7414 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7415 case.
7416 (pass_on_stack): Use type_align.
7417 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7418 function.
7419
9e97ba43
TT
74202019-04-23 Tom Tromey <tromey@adacore.com>
7421
7422 * dwarf2read.c (line_header::file_name_at): Remove unused
7423 overload.
7424
6892f601
TV
74252019-04-23 Tom de Vries <tdevries@suse.de>
7426
7427 PR gdb/24438
7428 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7429 invocation.
7430
336d760d
AT
7431
74322019-03-27 Ali Tamur <tamur@google.com>
7433
7434 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7435 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7436 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7437 (dwarf_expr_context::get_addr_index): Likewise
7438 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7439 (symbol_needs_eval_context::get_addr_index): Likewise
7440 (disassemble_dwarf_expression): Add DW_OP_addrx
7441 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7442 (read_cutu_die_from_dwo): Update comment
7443 (skip_one_die): Add DW_FORM_addrx
7444 (read_attribute_value): Likewise
7445 (var_decode_location): Add DW_OP_addrx
7446 (dwarf2_const_value_attr): Add DW_FORM_addrx
7447 (dump_die_shallow): Likewise
7448 (dwarf2_fetch_constant_bytes): Likewise
7449 (decode_locdesc): Add DW_OP_addrx
7450 (skip_form_bytes): Add DW_FORM_addrx
7451
ad9d13f8
AT
74522019-04-22 Ali Tamur <tamur@google.com>
7453
7454 * MAINTAINERS (Write After Approval): Add self.
7455
d70cc3ba
SM
74562019-04-22 Simon Marchi <simon.marchi@efficios.com>
7457
7458 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7459 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7460 (open_symbol_file_object): Likewise.
7461 (svr4_default_sos): Add info parameter.
7462 (svr4_read_so_list): Likewise.
7463 (svr4_current_sos_direct): Adjust functions calls to pass down
7464 info.
7465 (svr4_current_sos_1): Add info parameter.
7466 (svr4_current_sos): Call get_svr4_info, pass info down to
7467 svr4_current_sos_1.
7468 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7469 get_svr4_info.
7470 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7471 get_svr4_info.
7472 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7473 to get_svr4_info.
7474 (probes_table_remove_objfile_probes): Likewise.
7475 (register_solib_event_probe): Add info parameter.
7476 (solist_update_incremental): Pass info parameter down to
7477 svr4_read_so_list.
7478 (disable_probes_interface): Add info parameter.
7479 (svr4_handle_solib_event): Pass current_program_space to
7480 get_svr4_info. Adjust disable_probes_interface cleanup.
7481 (svr4_create_probe_breakpoints): Add info parameter, pass it
7482 down to register_solib_event_probe.
7483 (svr4_create_solib_event_breakpoints): Add info parameter,
7484 pass it down to svr4_create_probe_breakpoints.
7485 (enable_break): Pass info down to
7486 svr4_create_solib_event_breakpoints.
7487 (svr4_solib_create_inferior_hook): Pass current_program_space to
7488 get_svr4_info.
7489 (svr4_clear_solib): Likewise.
7490
7905fc35
PA
74912019-04-22 Pedro Alves <palves@redhat.com>
7492
7493 * solib-svr4.c (svr4_free_objfile_observer): New.
7494 (probe_and_action::objfile): New field.
7495 (probes_table_htab_remove_objfile_probes)
7496 (probes_table_remove_objfile_probes): New functions.
7497 (register_solib_event_probe): Add 'objfile' parameter. Store it
7498 in the new probe_and_action. Don't store the probe in 'lookup'.
7499 (svr4_create_probe_breakpoints): Pass objfile to
7500 register_solib_event_probe.
7501 (_initialize_svr4_solib): Register a free_objfile observer.
7502
fb881986
TT
75032019-04-19 Tom Tromey <tom@tromey.com>
7504
7505 * common/queue.h: Remove.
7506
8732db6c
TT
75072019-04-19 Tom Tromey <tom@tromey.com>
7508
7509 * event-loop.c: Don't include "common/queue.h".
7510
97dfbadd
TT
75112019-04-19 Tom Tromey <tom@tromey.com>
7512
7513 * remote.c (remote_target): Use delete.
7514 * remote-notif.h: Include <list>, not "common/queue.h".
7515 (notif_client_p): Remove typedef.
7516 (remote_notif_state): Add constructor, destructor, initializer.
7517 <notif_queue>: Now a std::list.
7518 (remote_notif_state_xfree): Don't declare.
7519 * remote-notif.c (remote_notif_process, handle_notification)
7520 (remote_notif_state_allocate): Update.
7521 (~remote_notif_state): Rename from remote_notif_state_xfree.
7522
cf250e36
TT
75232019-04-19 Tom Tromey <tom@tromey.com>
7524
7525 * symfile.c (reread_symbols): Update.
7526 * objfiles.c (objfile_register_static_link)
7527 (objfile_lookup_static_link): Update
7528 (~objfile) Don't delete static_links.
7529 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7530
61f4b350
TT
75312019-04-19 Tom Tromey <tom@tromey.com>
7532
7533 * type-stack.h (struct type_stack) <insert>: Constify string.
7534 * type-stack.c (type_stack::insert): Constify string.
7535 * gdbtypes.h (lookup_template_type): Update.
7536 (address_space_name_to_int): Update.
7537 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7538 const.
7539 (lookup_template_type): Make name const.
7540 * c-exp.y: Update rules.
7541 (lex_one_token, classify_name, classify_inner_name)
7542 (c_print_token): Update.
7543 * p-exp.y: Update rules.
7544 (yylex): Update.
7545 * f-exp.y: Update rules.
7546 (yylex): Update.
7547 * d-exp.y: Update rules.
7548 (lex_one_token, classify_name, classify_inner_name): Update.
7549 * parse.c (write_dollar_variable, copy_name): Return std::string.
7550 * parser-defs.h (copy_name): Change return type.
7551 * m2-exp.y: Update rules.
7552 (yylex): Update.
7553 * go-exp.y (lex_one_token): Update.
7554 Update rules.
7555 (classify_unsafe_function, classify_packaged_name)
7556 (classify_name, yylex): Update.
7557
189b8c2e
ST
75582019-04-19 Sergei Trofimovich <siarheit@google.com>
7559
7560 * configure.ac: add --enable-source-highlight switch.
7561 * configure: Regenerate.
7562 * top.c (print_gdb_version): plumb --enable-source-highlight
7563 status to "show configuration".
7564
8ecb59f8
TT
75652019-04-19 Tom Tromey <tromey@adacore.com>
7566
7567 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7568 Check ADA_TYPE_P.
7569 (empty_record, ada_template_to_fixed_record_type_1)
7570 (template_to_static_fixed_type)
7571 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7572 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7573 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7574 macros.
7575
62160ec9
TT
75762019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7577
7578 PR symtab/24423:
7579 * source.c (print_source_lines_base): Advance "iter" when a
7580 control character is seen.
7581
f2ae8bc8
PW
75822019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7583
7584 * inferior.h (struct infcall_suspend_state_deleter):
7585 Catch exception in destructor to avoid crash.
7586
d563b953
PW
75872019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7588
7589 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7590 close to the add_com "shell".
7591
dc34c897
TT
75922019-04-18 Tom Tromey <tromey@adacore.com>
7593
7594 * process-stratum-target.h (class process_stratum_target)
7595 <stratum>: Add "final".
7596
a12e5744
TT
75972019-04-17 Tom Tromey <tromey@adacore.com>
7598
7599 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7600 against nullptr before use.
7601
a7e559cc
AH
76022019-04-17 Alan Hayward <alan.hayward@arm.com>
7603
7604 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7605
c01660c6
AB
76062019-04-17 Jim Wilson <jimw@sifive.com>
7607 Andrew Burgess <andrew.burgess@embecosm.com>
7608
7609 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7610 code read might fail, assume 4-byte breakpoint in that case.
7611
4aa866af
LS
76122019-04-15 Leszek Swirski <leszeks@google.com>
7613
7614 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7615 rather than a hand-rolled POD check when checking for forced MEMORY
7616 classification.
7617
48574d91
AH
76182019-04-15 Alan Hayward <alan.hayward@arm.com>
7619
7620 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7621 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7622 function.
7623 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7624 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7625 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7626 declaration.
7627
4da037ef
AH
76282019-04-15 Alan Hayward <alan.hayward@arm.com>
7629
7630 * aarch64-linux-nat.c
7631 (aarch64_linux_nat_target::thread_architecture): Add override.
7632 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7633 each VQ.
7634
ccb8d7e8
AH
76352019-04-15 Alan Hayward <alan.hayward@arm.com>
7636
7637 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7638
35add35e
AB
76392019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7640
7641 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7642 target types of size 96-bits, add some additional comments, and
7643 check that the builtin type we found was the correct size.
7644
51196bbc
EZ
76452019-04-12 Eli Zaretskii <eliz@gnu.org>
7646
7647 * utils.c (prompt_for_continue): Don't restore the styling at the
7648 end, as applied_style has the wrong value. This fixes styling in
7649 long lists of file names that are interrupted by the "Continue?"
7650 prompt.
7651
62253a61
AB
76522019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7655 * c-lang.c (c_language_defn): Likewise.
7656 (cplus_language_defn): Likewise.
7657 (asm_language_defn): Likewise.
7658 (minimal_language_defn): Likewise.
7659 * d-lang.c (d_language_defn): Likewise.
7660 * f-lang.c (f_language_defn): Likewise.
7661 * go-lang.c (go_language_defn): Likewise.
7662 * language.c (unknown_language_defn): Likewise.
7663 (auto_language_defn): Likewise.
7664 * language.h (struct language_defn): Remove la_magic field.
7665 (LANG_MAGIC): Delete.
7666 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7667 * objc-lang.c (objc_language_defn): Likewise.
7668 * opencl-lang.c (opencl_language_defn): Likewise.
7669 * p-lang.c (pascal_language_defn): Likewise.
7670 * rust-lang.c (rust_language_defn): Likewise.
7671
a9158a86
AB
76722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * riscv-tdep.c (riscv_type_align): New function.
7675 (riscv_type_alignment): Delete.
7676 (riscv_arg_location): Use 'type_align'.
7677 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7678
41077b66
AB
76792019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7680
7681 * gdbtypes.c (type_align): A struct with no non-static fields also
7682 has alignment of 1.
7683
9f0272f8
AB
76842019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7687 component to 0.
7688 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7689 member.
7690 (riscv_struct_info::analyse): New implementation using new
7691 analyse_inner member function.
7692 (riscv_struct_info::field_offset): New member function.
7693 (riscv_struct_info::m_offsets): New member variable.
7694 (riscv_struct_info::analyse_inner): New private member function,
7695 takes the old implementation of riscv_struct_info::analyse but
7696 extended to track field offsets.
7697 (riscv_call_arg_struct): Update the struct folding special cases
7698 to handle cases where empty C++ structs, which are non-zero
7699 length, are found.
7700 (riscv_arg_location): Initialise the length of each location, a
7701 non-zero length now indicates the location is in use.
7702 (riscv_push_dummy_call): Allow for the first location having a
7703 non-zero offset when setting up arguments.
7704 (riscv_return_value): Likewise, but for return values.
7705
02cf60c7
TT
77062019-04-11 Tom Tromey <tromey@adacore.com>
7707
7708 * utils.c (internal_vproblem): Make "msg" const.
7709
68811f8f
AH
77102019-04-11 Alan Hayward <alan.hayward@arm.com>
7711
7712 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7713 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7714 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7715 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7716
3f52fdbc
KB
77172019-04-10 Kevin Buettner <kevinb@redhat.com>
7718
7719 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7720 function.
7721 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7722 of amd64_collect_native_gregset.
7723 (amd64_linux_nat_target::store_registers): Likewise.
7724
e9ad22ee
TT
77252019-04-10 Tom Tromey <tom@tromey.com>
7726
7727 * symtab.c (lookup_global_symbol_from_objfile)
7728 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7729 * objfiles.h (class separate_debug_iterator): New.
7730 (class separate_debug_range): New.
7731 (struct objfile) <separate_debug_objfiles>: New method.
7732 (objfile_separate_debug_iterate): Don't declare.
7733 * objfiles.c (separate_debug_iterator::operator++): Rename from
7734 objfile_separate_debug_iterate.
7735 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7736 iterator.
7737 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7738 iterator.
7739
ee371134
TT
77402019-04-10 Tom Tromey <tom@tromey.com>
7741
7742 * symfile.c (reread_symbols): Remove old comment.
7743 * objfiles.c (free_all_objfiles): Fix a typo.
7744
bf227d61
TT
77452019-04-10 Tom Tromey <tom@tromey.com>
7746
7747 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7748 * minsyms.c (lookup_minimal_symbol): Use foreach.
7749 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7750 (lookup_minimal_symbol_solib_trampoline): Likewise.
7751 * symfile.c (reread_symbols): Use foreach.
7752
8dc433a0
TT
77532019-04-09 Ivan Begert <ivanbegert@gmail.com>
7754 Tom Tromey <tromey@adacore.com>
7755
7756 PR rust/24414:
7757 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7758 (rust_lex_int_test): Change "value" to be LONGEST.
7759 (rust_lex_tests): Add test for long integer literal.
7760
9ab8741a
TT
77612019-04-09 Tom Tromey <tromey@adacore.com>
7762
7763 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7764 to bool.
7765 (extended_remote_target::attach): Update.
7766 (remote_target::remote_notice_new_inferior): Update.
7767 (remote_target::add_current_inferior_and_thread): Update.
7768 * inferior.c (exit_inferior_1): Use "false".
7769 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7770
e242fd12
SM
77712019-04-09 Simon Marchi <simon.marchi@efficios.com>
7772
9ca1957f 7773 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7774 the "start" command.
7775
2b0c8b01
KB
77762019-04-08 Kevin Buettner <kevinb@redhat.com>
7777
7778 * python/py-inferior.c (infpy_thread_from_thread_handle):
7779 Adjust comments to reflect renaming of thread_from_thread_handle
7780 to thread_from_handle. Adjust keywords. Fix type error message.
7781 (inferior_object_methods): Add thread_from_handle. Retain
7782 thread_from_thread_handle, but mark it as deprecated.
7783
50a82723
KB
77842019-04-08 Kevin Buettner <kevinb@redhat.com>
7785
7786 * gdbthread.h (find_thread_by_handle): Revise declaration.
7787 * thread.c (find_thread_by_handle): Likewise. Adjust
7788 implementation too.
7789 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7790 support for buffer objects as handles.
7791
cf63b016
KB
77922019-04-08 Kevin Buettner <kevinb@redhat.com>
7793
7794 * python/py-infthread.c (thpy_thread_handle): New function.
7795 (thread_object_methods): Register thpy_thread_handle.
7796
3d6c6204
KB
77972019-04-08 Kevin Buettner <kevinb@redhat.com>
7798
7799 * gdbthread.h (thread_to_thread_handle): Declare.
7800 * thread.c (gdbtypes.h): Include.
7801 (thread_to_thread_handle): New function.
7802
7803 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7804 (target_thread_info_to_thread_handle): Declare.
7805 * target.c (target_thread_info_to_thread_handle): New function.
7806 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7807 * target-delegates.c: Regenerate.
7808
7809 * linux-thread-db.c (class thread_db_target): Add method
7810 thread_info_to_thread_handle.
7811 (thread_db_target::thread_info_to_thread_handle): Define.
7812 * remote.c (class remote_target): Add new method
7813 thread_info_to_thread_handle.
7814 (remote_target::thread_info_to_thread_handle): Define.
7815
56be6ea8
PA
78162019-04-08 Pedro Alves <palves@redhat.com>
7817
7818 * common/common-exceptions.c (throw_exception): Don't create
7819 named object to throw; throw directly.
7820 (throw_it): Likewise. Don't initialize gdb_exception::message
7821 here, with new; pass FMT and AP to the ctor instead.
7822 * common/common-exceptions.h: Include <string>.
7823 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7824 const char *, va_list)): New ctor. Use std::make_shared.
7825 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7826 errors)): Delete.
7827 (gdb_exception_error::gdb_exception_error(enum errors, const char
7828 *, va_list)): New.
7829 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7830 Add assertion.
7831 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7832 errors)): Delete.
7833 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7834 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7835 Add assertion.
7836
eedc3f4f
TT
78372019-04-08 Tom Tromey <tom@tromey.com>
7838
7839 * valops.c (value_rtti_indirect_type): Replace throw_exception
7840 with throw.
7841 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7842 with throw.
7843 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7844 throw.
7845 * target.c (target_translate_tls_address): Replace throw_exception
7846 with throw.
7847 * stack.c (frame_apply_command_count): Replace throw_exception
7848 with throw.
7849 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7850 throw.
7851 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7852 with throw.
7853 * rs6000-tdep.c (rs6000_frame_cache)
7854 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7855 * remote.c: Replace throw_exception with throw.
7856 * record-full.c (record_full_message, record_full_wait_1)
7857 (record_full_restore): Replace throw_exception with throw.
7858 * record-btrace.c:
7859 (get_thread_current_frame_id, record_btrace_start_replaying)
7860 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7861 (cmd_record_btrace_start): Replace throw_exception with throw.
7862 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7863 throw.
7864 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7865 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7866 * linespec.c:
7867 (find_linespec_symbols): Replace throw_exception with throw.
7868 * infrun.c (displaced_step_prepare, resume): Replace
7869 throw_exception with throw.
7870 * infcmd.c (post_create_inferior): Replace throw_exception with
7871 throw.
7872 * inf-loop.c (inferior_event_handler): Replace throw_exception
7873 with throw.
7874 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7875 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7876 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7877 (get_prev_frame_always, get_frame_pc_if_available)
7878 (get_frame_address_in_block_if_available, get_frame_language):
7879 Replace throw_exception with throw.
7880 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7881 throw_exception with throw.
7882 * eval.c (fetch_subexp_value, evaluate_var_value)
7883 (evaluate_funcall, evaluate_subexp_standard): Replace
7884 throw_exception with throw.
7885 * dwarf2loc.c (call_site_find_chain)
7886 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7887 Replace throw_exception with throw.
7888 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7889 with throw.
7890 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7891 throw.
7892 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7893 * completer.c (complete_line_internal): Replace throw_exception
7894 with throw.
7895 * compile/compile-object-run.c (compile_object_run): Replace
7896 throw_exception with throw.
7897 * cli/cli-script.c (process_next_line): Replace throw_exception
7898 with throw.
7899 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7900 (btrace_enable, btrace_maint_update_pt_packets): Replace
7901 throw_exception with throw.
7902 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7903 throw_exception with throw.
7904 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7905 throw_exception with throw.
7906 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7907 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7908 * aarch64-tdep.c (aarch64_make_prologue_cache)
7909 (aarch64_make_stub_cache): Replace throw_exception with throw.
7910
26003a20
TT
79112019-04-08 Tom Tromey <tom@tromey.com>
7912
7913 * common/common-exceptions.c (throw_exception): Rename from
7914 throw_exception_cxx. Remove old copy. Make argument const.
7915 (throw_it): Create and throw exception objects directly.
7916 * common/common-exceptions.h (throw_exception): Make argument
7917 const.
7918 (struct gdb_exception_error): Add constructor.
7919 (struct gdb_exception_quit): Add constructor.
7920
d272eb37
TT
79212019-04-08 Tom Tromey <tom@tromey.com>
7922
7923 * common/common-exceptions.h (exception_rethrow): Don't declare.
7924 (TRY_SJLJ): Update comment.
7925 (TRY, CATCH, END_CATCH): Remove.
7926 * common/common-exceptions.c (exception_rethrow): Remove.
7927
230d2906
TT
79282019-04-08 Tom Tromey <tom@tromey.com>
7929
7930 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7931 Remove.
7932 (gdb_exception_error): Rename from
7933 gdb_exception_RETURN_MASK_ERROR.
7934 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7935 (gdb_quit_bad_alloc): Update.
7936 * aarch64-tdep.c: Update.
7937 * ada-lang.c: Update.
7938 * ada-typeprint.c: Update.
7939 * ada-valprint.c: Update.
7940 * amd64-tdep.c: Update.
7941 * arch-utils.c: Update.
7942 * break-catch-throw.c: Update.
7943 * breakpoint.c: Update.
7944 * btrace.c: Update.
7945 * c-varobj.c: Update.
7946 * cli/cli-cmds.c: Update.
7947 * cli/cli-interp.c: Update.
7948 * cli/cli-script.c: Update.
7949 * common/common-exceptions.c: Update.
7950 * common/new-op.c: Update.
7951 * common/selftest.c: Update.
7952 * compile/compile-c-symbols.c: Update.
7953 * compile/compile-cplus-symbols.c: Update.
7954 * compile/compile-object-load.c: Update.
7955 * compile/compile-object-run.c: Update.
7956 * completer.c: Update.
7957 * corelow.c: Update.
7958 * cp-abi.c: Update.
7959 * cp-support.c: Update.
7960 * cp-valprint.c: Update.
7961 * darwin-nat.c: Update.
7962 * disasm-selftests.c: Update.
7963 * dtrace-probe.c: Update.
7964 * dwarf-index-cache.c: Update.
7965 * dwarf-index-write.c: Update.
7966 * dwarf2-frame-tailcall.c: Update.
7967 * dwarf2-frame.c: Update.
7968 * dwarf2loc.c: Update.
7969 * dwarf2read.c: Update.
7970 * eval.c: Update.
7971 * event-loop.c: Update.
7972 * event-top.c: Update.
7973 * exec.c: Update.
7974 * f-valprint.c: Update.
7975 * fbsd-tdep.c: Update.
7976 * frame-unwind.c: Update.
7977 * frame.c: Update.
7978 * gdbtypes.c: Update.
7979 * gnu-v3-abi.c: Update.
7980 * guile/guile-internal.h: Update.
7981 * guile/scm-block.c: Update.
7982 * guile/scm-breakpoint.c: Update.
7983 * guile/scm-cmd.c: Update.
7984 * guile/scm-disasm.c: Update.
7985 * guile/scm-frame.c: Update.
7986 * guile/scm-lazy-string.c: Update.
7987 * guile/scm-math.c: Update.
7988 * guile/scm-param.c: Update.
7989 * guile/scm-ports.c: Update.
7990 * guile/scm-pretty-print.c: Update.
7991 * guile/scm-symbol.c: Update.
7992 * guile/scm-symtab.c: Update.
7993 * guile/scm-type.c: Update.
7994 * guile/scm-value.c: Update.
7995 * i386-linux-tdep.c: Update.
7996 * i386-tdep.c: Update.
7997 * inf-loop.c: Update.
7998 * infcall.c: Update.
7999 * infcmd.c: Update.
8000 * infrun.c: Update.
8001 * jit.c: Update.
8002 * language.c: Update.
8003 * linespec.c: Update.
8004 * linux-fork.c: Update.
8005 * linux-nat.c: Update.
8006 * linux-tdep.c: Update.
8007 * linux-thread-db.c: Update.
8008 * main.c: Update.
8009 * mi/mi-cmd-break.c: Update.
8010 * mi/mi-cmd-stack.c: Update.
8011 * mi/mi-interp.c: Update.
8012 * mi/mi-main.c: Update.
8013 * objc-lang.c: Update.
8014 * p-valprint.c: Update.
8015 * parse.c: Update.
8016 * ppc-linux-tdep.c: Update.
8017 * printcmd.c: Update.
8018 * python/py-arch.c: Update.
8019 * python/py-breakpoint.c: Update.
8020 * python/py-cmd.c: Update.
8021 * python/py-finishbreakpoint.c: Update.
8022 * python/py-frame.c: Update.
8023 * python/py-framefilter.c: Update.
8024 * python/py-gdb-readline.c: Update.
8025 * python/py-inferior.c: Update.
8026 * python/py-infthread.c: Update.
8027 * python/py-lazy-string.c: Update.
8028 * python/py-linetable.c: Update.
8029 * python/py-objfile.c: Update.
8030 * python/py-param.c: Update.
8031 * python/py-prettyprint.c: Update.
8032 * python/py-progspace.c: Update.
8033 * python/py-record-btrace.c: Update.
8034 * python/py-record.c: Update.
8035 * python/py-symbol.c: Update.
8036 * python/py-type.c: Update.
8037 * python/py-unwind.c: Update.
8038 * python/py-utils.c: Update.
8039 * python/py-value.c: Update.
8040 * python/python.c: Update.
8041 * record-btrace.c: Update.
8042 * record-full.c: Update.
8043 * remote-fileio.c: Update.
8044 * remote.c: Update.
8045 * riscv-tdep.c: Update.
8046 * rs6000-aix-tdep.c: Update.
8047 * rs6000-tdep.c: Update.
8048 * rust-exp.y: Update.
8049 * rust-lang.c: Update.
8050 * s390-tdep.c: Update.
8051 * selftest-arch.c: Update.
8052 * solib-dsbt.c: Update.
8053 * solib-frv.c: Update.
8054 * solib-spu.c: Update.
8055 * solib-svr4.c: Update.
8056 * solib.c: Update.
8057 * sparc64-linux-tdep.c: Update.
8058 * stack.c: Update.
8059 * symfile-mem.c: Update.
8060 * symmisc.c: Update.
8061 * target.c: Update.
8062 * thread.c: Update.
8063 * top.c: Update.
8064 * tracefile-tfile.c: Update.
8065 * tui/tui.c: Update.
8066 * typeprint.c: Update.
8067 * unittests/cli-utils-selftests.c: Update.
8068 * unittests/parse-connection-spec-selftests.c: Update.
8069 * valops.c: Update.
8070 * valprint.c: Update.
8071 * value.c: Update.
8072 * varobj.c: Update.
8073 * windows-nat.c: Update.
8074 * x86-linux-nat.c: Update.
8075 * xml-support.c: Update.
8076
a70b8144
TT
80772019-04-08 Tom Tromey <tom@tromey.com>
8078
8079 * xml-support.c: Use C++ exception handling.
8080 * x86-linux-nat.c: Use C++ exception handling.
8081 * windows-nat.c: Use C++ exception handling.
8082 * varobj.c: Use C++ exception handling.
8083 * value.c: Use C++ exception handling.
8084 * valprint.c: Use C++ exception handling.
8085 * valops.c: Use C++ exception handling.
8086 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8087 handling.
8088 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8089 * typeprint.c: Use C++ exception handling.
8090 * tui/tui.c: Use C++ exception handling.
8091 * tracefile-tfile.c: Use C++ exception handling.
8092 * top.c: Use C++ exception handling.
8093 * thread.c: Use C++ exception handling.
8094 * target.c: Use C++ exception handling.
8095 * symmisc.c: Use C++ exception handling.
8096 * symfile-mem.c: Use C++ exception handling.
8097 * stack.c: Use C++ exception handling.
8098 * sparc64-linux-tdep.c: Use C++ exception handling.
8099 * solib.c: Use C++ exception handling.
8100 * solib-svr4.c: Use C++ exception handling.
8101 * solib-spu.c: Use C++ exception handling.
8102 * solib-frv.c: Use C++ exception handling.
8103 * solib-dsbt.c: Use C++ exception handling.
8104 * selftest-arch.c: Use C++ exception handling.
8105 * s390-tdep.c: Use C++ exception handling.
8106 * rust-lang.c: Use C++ exception handling.
8107 * rust-exp.y: Use C++ exception handling.
8108 * rs6000-tdep.c: Use C++ exception handling.
8109 * rs6000-aix-tdep.c: Use C++ exception handling.
8110 * riscv-tdep.c: Use C++ exception handling.
8111 * remote.c: Use C++ exception handling.
8112 * remote-fileio.c: Use C++ exception handling.
8113 * record-full.c: Use C++ exception handling.
8114 * record-btrace.c: Use C++ exception handling.
8115 * python/python.c: Use C++ exception handling.
8116 * python/py-value.c: Use C++ exception handling.
8117 * python/py-utils.c: Use C++ exception handling.
8118 * python/py-unwind.c: Use C++ exception handling.
8119 * python/py-type.c: Use C++ exception handling.
8120 * python/py-symbol.c: Use C++ exception handling.
8121 * python/py-record.c: Use C++ exception handling.
8122 * python/py-record-btrace.c: Use C++ exception handling.
8123 * python/py-progspace.c: Use C++ exception handling.
8124 * python/py-prettyprint.c: Use C++ exception handling.
8125 * python/py-param.c: Use C++ exception handling.
8126 * python/py-objfile.c: Use C++ exception handling.
8127 * python/py-linetable.c: Use C++ exception handling.
8128 * python/py-lazy-string.c: Use C++ exception handling.
8129 * python/py-infthread.c: Use C++ exception handling.
8130 * python/py-inferior.c: Use C++ exception handling.
8131 * python/py-gdb-readline.c: Use C++ exception handling.
8132 * python/py-framefilter.c: Use C++ exception handling.
8133 * python/py-frame.c: Use C++ exception handling.
8134 * python/py-finishbreakpoint.c: Use C++ exception handling.
8135 * python/py-cmd.c: Use C++ exception handling.
8136 * python/py-breakpoint.c: Use C++ exception handling.
8137 * python/py-arch.c: Use C++ exception handling.
8138 * printcmd.c: Use C++ exception handling.
8139 * ppc-linux-tdep.c: Use C++ exception handling.
8140 * parse.c: Use C++ exception handling.
8141 * p-valprint.c: Use C++ exception handling.
8142 * objc-lang.c: Use C++ exception handling.
8143 * mi/mi-main.c: Use C++ exception handling.
8144 * mi/mi-interp.c: Use C++ exception handling.
8145 * mi/mi-cmd-stack.c: Use C++ exception handling.
8146 * mi/mi-cmd-break.c: Use C++ exception handling.
8147 * main.c: Use C++ exception handling.
8148 * linux-thread-db.c: Use C++ exception handling.
8149 * linux-tdep.c: Use C++ exception handling.
8150 * linux-nat.c: Use C++ exception handling.
8151 * linux-fork.c: Use C++ exception handling.
8152 * linespec.c: Use C++ exception handling.
8153 * language.c: Use C++ exception handling.
8154 * jit.c: Use C++ exception handling.
8155 * infrun.c: Use C++ exception handling.
8156 * infcmd.c: Use C++ exception handling.
8157 * infcall.c: Use C++ exception handling.
8158 * inf-loop.c: Use C++ exception handling.
8159 * i386-tdep.c: Use C++ exception handling.
8160 * i386-linux-tdep.c: Use C++ exception handling.
8161 * guile/scm-value.c: Use C++ exception handling.
8162 * guile/scm-type.c: Use C++ exception handling.
8163 * guile/scm-symtab.c: Use C++ exception handling.
8164 * guile/scm-symbol.c: Use C++ exception handling.
8165 * guile/scm-pretty-print.c: Use C++ exception handling.
8166 * guile/scm-ports.c: Use C++ exception handling.
8167 * guile/scm-param.c: Use C++ exception handling.
8168 * guile/scm-math.c: Use C++ exception handling.
8169 * guile/scm-lazy-string.c: Use C++ exception handling.
8170 * guile/scm-frame.c: Use C++ exception handling.
8171 * guile/scm-disasm.c: Use C++ exception handling.
8172 * guile/scm-cmd.c: Use C++ exception handling.
8173 * guile/scm-breakpoint.c: Use C++ exception handling.
8174 * guile/scm-block.c: Use C++ exception handling.
8175 * guile/guile-internal.h: Use C++ exception handling.
8176 * gnu-v3-abi.c: Use C++ exception handling.
8177 * gdbtypes.c: Use C++ exception handling.
8178 * frame.c: Use C++ exception handling.
8179 * frame-unwind.c: Use C++ exception handling.
8180 * fbsd-tdep.c: Use C++ exception handling.
8181 * f-valprint.c: Use C++ exception handling.
8182 * exec.c: Use C++ exception handling.
8183 * event-top.c: Use C++ exception handling.
8184 * event-loop.c: Use C++ exception handling.
8185 * eval.c: Use C++ exception handling.
8186 * dwarf2read.c: Use C++ exception handling.
8187 * dwarf2loc.c: Use C++ exception handling.
8188 * dwarf2-frame.c: Use C++ exception handling.
8189 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8190 * dwarf-index-write.c: Use C++ exception handling.
8191 * dwarf-index-cache.c: Use C++ exception handling.
8192 * dtrace-probe.c: Use C++ exception handling.
8193 * disasm-selftests.c: Use C++ exception handling.
8194 * darwin-nat.c: Use C++ exception handling.
8195 * cp-valprint.c: Use C++ exception handling.
8196 * cp-support.c: Use C++ exception handling.
8197 * cp-abi.c: Use C++ exception handling.
8198 * corelow.c: Use C++ exception handling.
8199 * completer.c: Use C++ exception handling.
8200 * compile/compile-object-run.c: Use C++ exception handling.
8201 * compile/compile-object-load.c: Use C++ exception handling.
8202 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8203 * compile/compile-c-symbols.c: Use C++ exception handling.
8204 * common/selftest.c: Use C++ exception handling.
8205 * common/new-op.c: Use C++ exception handling.
8206 * cli/cli-script.c: Use C++ exception handling.
8207 * cli/cli-interp.c: Use C++ exception handling.
8208 * cli/cli-cmds.c: Use C++ exception handling.
8209 * c-varobj.c: Use C++ exception handling.
8210 * btrace.c: Use C++ exception handling.
8211 * breakpoint.c: Use C++ exception handling.
8212 * break-catch-throw.c: Use C++ exception handling.
8213 * arch-utils.c: Use C++ exception handling.
8214 * amd64-tdep.c: Use C++ exception handling.
8215 * ada-valprint.c: Use C++ exception handling.
8216 * ada-typeprint.c: Use C++ exception handling.
8217 * ada-lang.c: Use C++ exception handling.
8218 * aarch64-tdep.c: Use C++ exception handling.
8219
3d6e9d23
TT
82202019-04-08 Tom Tromey <tom@tromey.com>
8221
8222 * xml-support.c (gdb_xml_parser::parse): Update.
8223 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8224 * value.c (show_convenience): Update.
8225 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8226 (test_parse_flags_qcs): Update.
8227 * thread.c (thr_try_catch_cmd): Update.
8228 * target.c (target_translate_tls_address): Update.
8229 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8230 (info_frame_command_core, frame_apply_command_count): Update.
8231 * rust-exp.y (rust_lex_exception_test): Update.
8232 * riscv-tdep.c (riscv_print_one_register_info): Update.
8233 * remote.c (remote_target::enable_btrace): Update.
8234 * record-btrace.c (record_btrace_enable_warn): Update.
8235 * python/py-utils.c (gdbpy_convert_exception): Update.
8236 * printcmd.c (do_one_display, print_variable_and_value): Update.
8237 * mi/mi-main.c (mi_print_exception): Update.
8238 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8239 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8240 * linux-nat.c (linux_nat_target::attach): Update.
8241 * linux-fork.c (class scoped_switch_fork_info): Update.
8242 * infrun.c (displaced_step_prepare): Update.
8243 * infcall.c (call_function_by_hand_dummy): Update.
8244 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8245 * gnu-v3-abi.c (print_one_vtable): Update.
8246 * frame.c (get_prev_frame_always): Update.
8247 * f-valprint.c (info_common_command_for_block): Update.
8248 * exec.c (try_open_exec_file): Update.
8249 * exceptions.c (print_exception, exception_print)
8250 (exception_fprintf, exception_print_same): Update.
8251 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8252 * dwarf-index-cache.c (index_cache::store)
8253 (index_cache::lookup_gdb_index): Update.
8254 * darwin-nat.c (maybe_cache_shell): Update.
8255 * cp-valprint.c (cp_print_value_fields): Update.
8256 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8257 (gcc_cplus_symbol_address): Update.
8258 * compile/compile-c-symbols.c (gcc_convert_symbol)
8259 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8260 * common/selftest.c: Update.
8261 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8262 a std::string.
8263 (exception_try_scope_entry, exception_try_scope_exit): Don't
8264 declare.
8265 (struct exception_try_scope): Remove.
8266 (TRY): Don't use exception_try_scope.
8267 (struct gdb_exception): Add constructor, operator=.
8268 <what>: New method.
8269 (struct gdb_exception_RETURN_MASK_ALL)
8270 (struct gdb_exception_RETURN_MASK_ERROR)
8271 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8272 (struct gdb_quit_bad_alloc): Update.
8273 * common/common-exceptions.c (exception_none): Change
8274 initializer.
8275 (struct catcher) <state, exception>: Initialize inline.
8276 <prev>: Remove member.
8277 (current_catcher): Remove.
8278 (catchers): New global.
8279 (exceptions_state_mc_init): Simplify.
8280 (catcher_pop): Remove.
8281 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8282 (try_scope_depth, exception_try_scope_entry)
8283 (exception_try_scope_exit): Remove.
8284 (throw_exception_sjlj): Update.
8285 (exception_messages, exception_messages_size): Remove.
8286 (throw_it): Simplify.
8287 (gdb_exception_sliced_copy): Remove.
8288 (throw_exception_cxx): Update.
8289 * cli/cli-script.c (script_from_file): Update.
8290 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8291 Update.
8292 * ada-valprint.c (ada_val_print): Update.
8293 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8294 (create_excep_cond_exprs): Update.
8295
c5c10118
TT
82962019-04-08 Tom Tromey <tom@tromey.com>
8297
8298 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8299 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8300 (TRY, CATCH, END_CATCH): Remove some definitions.
8301 * common/common-exceptions.c: Don't use GDB_XCPT.
8302 (catcher_list_size): Remove.
8303 (throw_exception, throw_it): Simplify.
8304
4de283e4
TT
83052019-04-05 Tom Tromey <tom@tromey.com>
8306
8307 Revert the header-sorting patch.
8308 * ft32-tdep.c: Revert.
8309 * frv-tdep.c: Revert.
8310 * frv-linux-tdep.c: Revert.
8311 * frame.c: Revert.
8312 * frame-unwind.c: Revert.
8313 * frame-base.c: Revert.
8314 * fork-child.c: Revert.
8315 * findvar.c: Revert.
8316 * findcmd.c: Revert.
8317 * filesystem.c: Revert.
8318 * filename-seen-cache.h: Revert.
8319 * filename-seen-cache.c: Revert.
8320 * fbsd-tdep.c: Revert.
8321 * fbsd-nat.h: Revert.
8322 * fbsd-nat.c: Revert.
8323 * f-valprint.c: Revert.
8324 * f-typeprint.c: Revert.
8325 * f-lang.c: Revert.
8326 * extension.h: Revert.
8327 * extension.c: Revert.
8328 * extension-priv.h: Revert.
8329 * expprint.c: Revert.
8330 * exec.h: Revert.
8331 * exec.c: Revert.
8332 * exceptions.c: Revert.
8333 * event-top.c: Revert.
8334 * event-loop.c: Revert.
8335 * eval.c: Revert.
8336 * elfread.c: Revert.
8337 * dwarf2read.h: Revert.
8338 * dwarf2read.c: Revert.
8339 * dwarf2loc.c: Revert.
8340 * dwarf2expr.h: Revert.
8341 * dwarf2expr.c: Revert.
8342 * dwarf2-frame.c: Revert.
8343 * dwarf2-frame-tailcall.c: Revert.
8344 * dwarf-index-write.h: Revert.
8345 * dwarf-index-write.c: Revert.
8346 * dwarf-index-common.c: Revert.
8347 * dwarf-index-cache.h: Revert.
8348 * dwarf-index-cache.c: Revert.
8349 * dummy-frame.c: Revert.
8350 * dtrace-probe.c: Revert.
8351 * disasm.h: Revert.
8352 * disasm.c: Revert.
8353 * disasm-selftests.c: Revert.
8354 * dictionary.c: Revert.
8355 * dicos-tdep.c: Revert.
8356 * demangle.c: Revert.
8357 * dcache.h: Revert.
8358 * dcache.c: Revert.
8359 * darwin-nat.h: Revert.
8360 * darwin-nat.c: Revert.
8361 * darwin-nat-info.c: Revert.
8362 * d-valprint.c: Revert.
8363 * d-namespace.c: Revert.
8364 * d-lang.c: Revert.
8365 * ctf.c: Revert.
8366 * csky-tdep.c: Revert.
8367 * csky-linux-tdep.c: Revert.
8368 * cris-tdep.c: Revert.
8369 * cris-linux-tdep.c: Revert.
8370 * cp-valprint.c: Revert.
8371 * cp-support.c: Revert.
8372 * cp-namespace.c: Revert.
8373 * cp-abi.c: Revert.
8374 * corelow.c: Revert.
8375 * corefile.c: Revert.
8376 * continuations.c: Revert.
8377 * completer.h: Revert.
8378 * completer.c: Revert.
8379 * complaints.c: Revert.
8380 * coffread.c: Revert.
8381 * coff-pe-read.c: Revert.
8382 * cli-out.h: Revert.
8383 * cli-out.c: Revert.
8384 * charset.c: Revert.
8385 * c-varobj.c: Revert.
8386 * c-valprint.c: Revert.
8387 * c-typeprint.c: Revert.
8388 * c-lang.c: Revert.
8389 * buildsym.c: Revert.
8390 * buildsym-legacy.c: Revert.
8391 * build-id.h: Revert.
8392 * build-id.c: Revert.
8393 * btrace.c: Revert.
8394 * bsd-uthread.c: Revert.
8395 * breakpoint.h: Revert.
8396 * breakpoint.c: Revert.
8397 * break-catch-throw.c: Revert.
8398 * break-catch-syscall.c: Revert.
8399 * break-catch-sig.c: Revert.
8400 * blockframe.c: Revert.
8401 * block.c: Revert.
8402 * bfin-tdep.c: Revert.
8403 * bfin-linux-tdep.c: Revert.
8404 * bfd-target.c: Revert.
8405 * bcache.c: Revert.
8406 * ax-general.c: Revert.
8407 * ax-gdb.h: Revert.
8408 * ax-gdb.c: Revert.
8409 * avr-tdep.c: Revert.
8410 * auxv.c: Revert.
8411 * auto-load.c: Revert.
8412 * arm-wince-tdep.c: Revert.
8413 * arm-tdep.c: Revert.
8414 * arm-symbian-tdep.c: Revert.
8415 * arm-pikeos-tdep.c: Revert.
8416 * arm-obsd-tdep.c: Revert.
8417 * arm-nbsd-tdep.c: Revert.
8418 * arm-nbsd-nat.c: Revert.
8419 * arm-linux-tdep.c: Revert.
8420 * arm-linux-nat.c: Revert.
8421 * arm-fbsd-tdep.c: Revert.
8422 * arm-fbsd-nat.c: Revert.
8423 * arm-bsd-tdep.c: Revert.
8424 * arch-utils.c: Revert.
8425 * arc-tdep.c: Revert.
8426 * arc-newlib-tdep.c: Revert.
8427 * annotate.h: Revert.
8428 * annotate.c: Revert.
8429 * amd64-windows-tdep.c: Revert.
8430 * amd64-windows-nat.c: Revert.
8431 * amd64-tdep.c: Revert.
8432 * amd64-sol2-tdep.c: Revert.
8433 * amd64-obsd-tdep.c: Revert.
8434 * amd64-obsd-nat.c: Revert.
8435 * amd64-nbsd-tdep.c: Revert.
8436 * amd64-nbsd-nat.c: Revert.
8437 * amd64-nat.c: Revert.
8438 * amd64-linux-tdep.c: Revert.
8439 * amd64-linux-nat.c: Revert.
8440 * amd64-fbsd-tdep.c: Revert.
8441 * amd64-fbsd-nat.c: Revert.
8442 * amd64-dicos-tdep.c: Revert.
8443 * amd64-darwin-tdep.c: Revert.
8444 * amd64-bsd-nat.c: Revert.
8445 * alpha-tdep.c: Revert.
8446 * alpha-obsd-tdep.c: Revert.
8447 * alpha-nbsd-tdep.c: Revert.
8448 * alpha-mdebug-tdep.c: Revert.
8449 * alpha-linux-tdep.c: Revert.
8450 * alpha-linux-nat.c: Revert.
8451 * alpha-bsd-tdep.c: Revert.
8452 * alpha-bsd-nat.c: Revert.
8453 * aix-thread.c: Revert.
8454 * agent.c: Revert.
8455 * addrmap.c: Revert.
8456 * ada-varobj.c: Revert.
8457 * ada-valprint.c: Revert.
8458 * ada-typeprint.c: Revert.
8459 * ada-tasks.c: Revert.
8460 * ada-lang.c: Revert.
8461 * aarch64-tdep.c: Revert.
8462 * aarch64-ravenscar-thread.c: Revert.
8463 * aarch64-newlib-tdep.c: Revert.
8464 * aarch64-linux-tdep.c: Revert.
8465 * aarch64-linux-nat.c: Revert.
8466 * aarch64-fbsd-tdep.c: Revert.
8467 * aarch64-fbsd-nat.c: Revert.
8468 * aarch32-linux-nat.c: Revert.
8469
d55e5aa6
TT
84702019-04-05 Tom Tromey <tom@tromey.com>
8471
8472 * ft32-tdep.c: Sort headers.
8473 * frv-tdep.c: Sort headers.
8474 * frv-linux-tdep.c: Sort headers.
8475 * frame.c: Sort headers.
8476 * frame-unwind.c: Sort headers.
8477 * frame-base.c: Sort headers.
8478 * fork-child.c: Sort headers.
8479 * findvar.c: Sort headers.
8480 * findcmd.c: Sort headers.
8481 * filesystem.c: Sort headers.
8482 * filename-seen-cache.h: Sort headers.
8483 * filename-seen-cache.c: Sort headers.
8484 * fbsd-tdep.c: Sort headers.
8485 * fbsd-nat.h: Sort headers.
8486 * fbsd-nat.c: Sort headers.
8487 * f-valprint.c: Sort headers.
8488 * f-typeprint.c: Sort headers.
8489 * f-lang.c: Sort headers.
8490 * extension.h: Sort headers.
8491 * extension.c: Sort headers.
8492 * extension-priv.h: Sort headers.
8493 * expprint.c: Sort headers.
8494 * exec.h: Sort headers.
8495 * exec.c: Sort headers.
8496 * exceptions.c: Sort headers.
8497 * event-top.c: Sort headers.
8498 * event-loop.c: Sort headers.
8499 * eval.c: Sort headers.
8500 * elfread.c: Sort headers.
8501 * dwarf2read.h: Sort headers.
8502 * dwarf2read.c: Sort headers.
8503 * dwarf2loc.c: Sort headers.
8504 * dwarf2expr.h: Sort headers.
8505 * dwarf2expr.c: Sort headers.
8506 * dwarf2-frame.c: Sort headers.
8507 * dwarf2-frame-tailcall.c: Sort headers.
8508 * dwarf-index-write.h: Sort headers.
8509 * dwarf-index-write.c: Sort headers.
8510 * dwarf-index-common.c: Sort headers.
8511 * dwarf-index-cache.h: Sort headers.
8512 * dwarf-index-cache.c: Sort headers.
8513 * dummy-frame.c: Sort headers.
8514 * dtrace-probe.c: Sort headers.
8515 * disasm.h: Sort headers.
8516 * disasm.c: Sort headers.
8517 * disasm-selftests.c: Sort headers.
8518 * dictionary.c: Sort headers.
8519 * dicos-tdep.c: Sort headers.
8520 * demangle.c: Sort headers.
8521 * dcache.h: Sort headers.
8522 * dcache.c: Sort headers.
8523 * darwin-nat.h: Sort headers.
8524 * darwin-nat.c: Sort headers.
8525 * darwin-nat-info.c: Sort headers.
8526 * d-valprint.c: Sort headers.
8527 * d-namespace.c: Sort headers.
8528 * d-lang.c: Sort headers.
8529 * ctf.c: Sort headers.
8530 * csky-tdep.c: Sort headers.
8531 * csky-linux-tdep.c: Sort headers.
8532 * cris-tdep.c: Sort headers.
8533 * cris-linux-tdep.c: Sort headers.
8534 * cp-valprint.c: Sort headers.
8535 * cp-support.c: Sort headers.
8536 * cp-namespace.c: Sort headers.
8537 * cp-abi.c: Sort headers.
8538 * corelow.c: Sort headers.
8539 * corefile.c: Sort headers.
8540 * continuations.c: Sort headers.
8541 * completer.h: Sort headers.
8542 * completer.c: Sort headers.
8543 * complaints.c: Sort headers.
8544 * coffread.c: Sort headers.
8545 * coff-pe-read.c: Sort headers.
8546 * cli-out.h: Sort headers.
8547 * cli-out.c: Sort headers.
8548 * charset.c: Sort headers.
8549 * c-varobj.c: Sort headers.
8550 * c-valprint.c: Sort headers.
8551 * c-typeprint.c: Sort headers.
8552 * c-lang.c: Sort headers.
8553 * buildsym.c: Sort headers.
8554 * buildsym-legacy.c: Sort headers.
8555 * build-id.h: Sort headers.
8556 * build-id.c: Sort headers.
8557 * btrace.c: Sort headers.
8558 * bsd-uthread.c: Sort headers.
8559 * breakpoint.h: Sort headers.
8560 * breakpoint.c: Sort headers.
8561 * break-catch-throw.c: Sort headers.
8562 * break-catch-syscall.c: Sort headers.
8563 * break-catch-sig.c: Sort headers.
8564 * blockframe.c: Sort headers.
8565 * block.c: Sort headers.
8566 * bfin-tdep.c: Sort headers.
8567 * bfin-linux-tdep.c: Sort headers.
8568 * bfd-target.c: Sort headers.
8569 * bcache.c: Sort headers.
8570 * ax-general.c: Sort headers.
8571 * ax-gdb.h: Sort headers.
8572 * ax-gdb.c: Sort headers.
8573 * avr-tdep.c: Sort headers.
8574 * auxv.c: Sort headers.
8575 * auto-load.c: Sort headers.
8576 * arm-wince-tdep.c: Sort headers.
8577 * arm-tdep.c: Sort headers.
8578 * arm-symbian-tdep.c: Sort headers.
8579 * arm-pikeos-tdep.c: Sort headers.
8580 * arm-obsd-tdep.c: Sort headers.
8581 * arm-nbsd-tdep.c: Sort headers.
8582 * arm-nbsd-nat.c: Sort headers.
8583 * arm-linux-tdep.c: Sort headers.
8584 * arm-linux-nat.c: Sort headers.
8585 * arm-fbsd-tdep.c: Sort headers.
8586 * arm-fbsd-nat.c: Sort headers.
8587 * arm-bsd-tdep.c: Sort headers.
8588 * arch-utils.c: Sort headers.
8589 * arc-tdep.c: Sort headers.
8590 * arc-newlib-tdep.c: Sort headers.
8591 * annotate.h: Sort headers.
8592 * annotate.c: Sort headers.
8593 * amd64-windows-tdep.c: Sort headers.
8594 * amd64-windows-nat.c: Sort headers.
8595 * amd64-tdep.c: Sort headers.
8596 * amd64-sol2-tdep.c: Sort headers.
8597 * amd64-obsd-tdep.c: Sort headers.
8598 * amd64-obsd-nat.c: Sort headers.
8599 * amd64-nbsd-tdep.c: Sort headers.
8600 * amd64-nbsd-nat.c: Sort headers.
8601 * amd64-nat.c: Sort headers.
8602 * amd64-linux-tdep.c: Sort headers.
8603 * amd64-linux-nat.c: Sort headers.
8604 * amd64-fbsd-tdep.c: Sort headers.
8605 * amd64-fbsd-nat.c: Sort headers.
8606 * amd64-dicos-tdep.c: Sort headers.
8607 * amd64-darwin-tdep.c: Sort headers.
8608 * amd64-bsd-nat.c: Sort headers.
8609 * alpha-tdep.c: Sort headers.
8610 * alpha-obsd-tdep.c: Sort headers.
8611 * alpha-nbsd-tdep.c: Sort headers.
8612 * alpha-mdebug-tdep.c: Sort headers.
8613 * alpha-linux-tdep.c: Sort headers.
8614 * alpha-linux-nat.c: Sort headers.
8615 * alpha-bsd-tdep.c: Sort headers.
8616 * alpha-bsd-nat.c: Sort headers.
8617 * aix-thread.c: Sort headers.
8618 * agent.c: Sort headers.
8619 * addrmap.c: Sort headers.
8620 * ada-varobj.c: Sort headers.
8621 * ada-valprint.c: Sort headers.
8622 * ada-typeprint.c: Sort headers.
8623 * ada-tasks.c: Sort headers.
8624 * ada-lang.c: Sort headers.
8625 * aarch64-tdep.c: Sort headers.
8626 * aarch64-ravenscar-thread.c: Sort headers.
8627 * aarch64-newlib-tdep.c: Sort headers.
8628 * aarch64-linux-tdep.c: Sort headers.
8629 * aarch64-linux-nat.c: Sort headers.
8630 * aarch64-fbsd-tdep.c: Sort headers.
8631 * aarch64-fbsd-nat.c: Sort headers.
8632 * aarch32-linux-nat.c: Sort headers.
8633
699bd4cf
TT
86342019-04-04 Tom Tromey <tom@tromey.com>
8635
8636 * varobj.c (varobj_create): Update.
8637 * rust-exp.y (struct rust_parser) <update_innermost_block,
8638 lookup_symbol>: New methods.
8639 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8640 Rename.
8641 (rust_parser::rust_lookup_type)
8642 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8643 * printcmd.c (display_command, do_one_display): Update.
8644 * parser-defs.h (struct parser_state) <parser_state>: Add
8645 "tracker" parameter.
8646 (block_tracker): New member.
8647 (class innermost_block_tracker) <innermost_block_tracker>: Add
8648 "types" parameter.
8649 <reset>: Remove method.
8650 (innermost_block): Don't declare.
8651 (null_post_parser): Update.
8652 * parse.c (innermost_block): Remove global.
8653 (write_dollar_variable): Update.
8654 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8655 Remove "tracker_types" parameter.
8656 (parse_expression): Add "tracker" parameter.
8657 (parse_expression_for_completion): Update.
8658 (null_post_parser): Add "tracker" parameter.
8659 * p-exp.y: Update rules.
8660 * m2-exp.y: Update rules.
8661 * language.h (struct language_defn) <la_post_parser>: Add
8662 "tracker" parameter.
8663 * go-exp.y: Update rules.
8664 * f-exp.y: Update rules.
8665 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8666 parameter.
8667 * d-exp.y: Update rules.
8668 * c-exp.y: Update rules.
8669 * breakpoint.c (set_breakpoint_condition): Create an
8670 innermost_block_tracker.
8671 (watch_command_1): Likewise.
8672 * ada-lang.c (resolve): Add "tracker" parameter.
8673 (resolve_subexp): Likewise.
8674 * ada-exp.y (write_var_from_sym): Update.
8675
dac43e32
TT
86762019-04-04 Tom Tromey <tom@tromey.com>
8677
8678 * type-stack.h: New file.
8679 * type-stack.c: New file.
8680 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8681 type-stack.h.
8682 (insert_into_type_stack, insert_type, push_type, push_type_int)
8683 (insert_type_address_space, pop_type, pop_type_int)
8684 (pop_typelist, pop_type_stack, append_type_stack)
8685 (push_type_stack, get_type_stack, push_typelist)
8686 (follow_type_instance_flags, follow_types): Don't declare.
8687 * parse.c (type_stack): Remove global.
8688 (parse_exp_in_context): Update.
8689 (insert_into_type_stack, insert_type, push_type, push_type_int)
8690 (insert_type_address_space, pop_type, pop_type_int)
8691 (pop_typelist, pop_type_stack, append_type_stack)
8692 (push_type_stack, get_type_stack, push_typelist)
8693 (follow_type_instance_flags, follow_types): Remove (moved to
8694 type-stack.c).
8695 * f-exp.y (type_stack): New global.
8696 Update rules.
8697 (push_kind_type, f_parse): Update.
8698 * d-exp.y (type_stack): New global.
8699 Update rules.
8700 (d_parse): Update.
8701 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8702 Update rules.
8703 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8704 (HFILES_NO_SRCDIR): Add type-stack.h.
8705
2a612529
TT
87062019-04-04 Tom Tromey <tom@tromey.com>
8707
8708 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8709 (rust_parser::convert_ast_to_expression, rust_parse)
8710 (rust_lex_test_completion, rust_lex_tests): Update.
8711 * parser-defs.h (struct expr_completion_state): New.
8712 (struct parser_state) <parser_state>: Add completion parameter.
8713 <mark_struct_expression, mark_completion_tag>: New methods.
8714 <parse_completion, m_completion_state>: New members.
8715 (prefixify_expression, null_post_parser): Update.
8716 (mark_struct_expression, mark_completion_tag): Don't declare.
8717 * parse.c (parse_completion, expout_last_struct)
8718 (expout_tag_completion_type, expout_completion_name): Remove
8719 globals.
8720 (parser_state::mark_struct_expression)
8721 (parser_state::mark_completion_tag): Now methods.
8722 (prefixify_expression): Add last_struct parameter.
8723 (prefixify_subexp): Likewise.
8724 (parse_exp_1): Update.
8725 (parse_exp_in_context): Add cstate parameter. Update.
8726 (parse_expression_for_completion): Create an
8727 expr_completion_state.
8728 (null_post_parser): Add "completion" parameter.
8729 * p-exp.y: Update rules.
8730 (yylex): Update.
8731 * language.h (struct language_defn) <la_post_parser>: Add
8732 "completing" parameter.
8733 * go-exp.y: Update rules.
8734 (lex_one_token): Update.
8735 * expression.h (parse_completion): Don't declare.
8736 * d-exp.y: Update rules.
8737 (lex_one_token): Update rules.
8738 * c-exp.y: Update rules.
8739 (lex_one_token): Update.
8740 * ada-lang.c (resolve): Add "parse_completion" parameter.
8741 (resolve_subexp): Likewise.
8742 (ada_resolve_function): Likewise.
8743
43476f0b
TT
87442019-04-04 Tom Tromey <tom@tromey.com>
8745
8746 * parser-defs.h (struct parser_state) <start_arglist,
8747 end_arglist>: New methods.
8748 <arglist_len, m_funcall_chain>: New members.
8749 (arglist_len, start_arglist, end_arglist): Don't declare.
8750 * parse.c (arglist_len, funcall_chain): Remove global.
8751 (start_arglist, end_arglist): Remove functions.
8752 (parse_exp_in_context): Update.
8753 * p-exp.y: Update rules.
8754 * m2-exp.y: Update rules.
8755 * go-exp.y: Update rules.
8756 * f-exp.y: Update rules.
8757 * d-exp.y: Update rules.
8758 * c-exp.y: Update rules.
8759
5776fca3
TT
87602019-04-04 Tom Tromey <tom@tromey.com>
8761
8762 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8763 lex_operator, push_back>: New methods.
8764 Update all rules.
8765 (rust_parser::lex_hex, lex_escape): Rename and update.
8766 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8767 (rust_parser::lex_operator): Rename and update.
8768 (rust_parser::lex_number, rustyylex, rustyyerror)
8769 (rust_lex_test_init, rust_lex_test_sequence)
8770 (rust_lex_test_push_back, rust_lex_tests): Update.
8771 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8772 parameter.
8773 <lexptr, prev_lexptr>: New members.
8774 (lexptr, prev_lexptr): Don't declare.
8775 * parse.c (lexptr, prev_lexptr): Remove globals.
8776 (parse_exp_in_context): Update.
8777 * p-exp.y (yylex, yyerror): Update.
8778 * m2-exp.y (parse_number, yylex, yyerror): Update.
8779 * go-exp.y (lex_one_token, yyerror): Update.
8780 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8781 * d-exp.y (lex_one_token, yyerror): Update.
8782 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8783 (lex_one_token, yyerror): Update.
8784 * ada-lex.l (YY_INPUT): Update.
8785 (rewind_to_char): Update.
8786 * ada-exp.y (yyerror): Update.
8787
8621b685
TT
87882019-04-04 Tom Tromey <tom@tromey.com>
8789
8790 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8791 * parser-defs.h (struct parser_state) <parser_state>: Add new
8792 parameter.
8793 <comma_terminates>: New member.
8794 (comma_terminates): Don't declare global.
8795 * parse.c (comma_terminates): Remove global.
8796 (parse_exp_in_context): Update.
8797 * p-exp.y (yylex): Update.
8798 * m2-exp.y (yylex): Update.
8799 * go-exp.y (lex_one_token): Update.
8800 * f-exp.y (yylex): Update.
8801 * d-exp.y (lex_one_token): Update.
8802 * c-exp.y (lex_one_token): Update.
8803 * ada-lex.l: Update.
8804
28aaf3fd
TT
88052019-04-04 Tom Tromey <tom@tromey.com>
8806
8807 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8808 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8809 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8810 * parser-defs.h (paren_depth): Don't declare.
8811 * parse.c (paren_depth): Remove global.
8812 (parse_exp_in_context): Update.
8813 * p-exp.y (paren_depth): New global.
8814 (pascal_parse): Initialize it.
8815 * m2-exp.y (paren_depth): New global.
8816 (m2_parse): Initialize it.
8817 * go-exp.y (paren_depth): New global.
8818 (go_parse): Initialize it.
8819 * f-exp.y (paren_depth): New global.
8820 (f_parse): Initialize it.
8821 * d-exp.y (paren_depth): New global.
8822 (d_parse): Initialize it.
8823 * c-exp.y (paren_depth): New global.
8824 (c_parse): Initialize it.
8825 * ada-lex.l (paren_depth): New global.
8826 (lexer_init): Initialize it.
8827
1e58a4a4
TT
88282019-04-04 Tom Tromey <tom@tromey.com>
8829
8830 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8831 (rust_parser::convert_ast_to_type)
8832 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8833 * parser-defs.h (struct parser_state) <parser_state>: Add
8834 parameters. Initialize new members.
8835 <expression_context_block, expression_context_pc>: New members.
8836 * parse.c (expression_context_block, expression_context_pc):
8837 Remove globals.
8838 (parse_exp_in_context): Update.
8839 * p-exp.y: Update all rules.
8840 (yylex): Update.
8841 * m2-exp.y: Update all rules.
8842 (yylex): Update.
8843 * go-exp.y (yylex): Update.
8844 * f-exp.y (yylex): Update.
8845 * d-exp.y: Update all rules.
8846 (yylex): Update.
8847 * c-exp.y: Update all rules.
8848 (lex_one_token, classify_name, yylex, c_parse): Update.
8849 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8850
37eedb39
TT
88512019-04-04 Tom Tromey <tom@tromey.com>
8852
8853 * gdbarch.h, gdbarch.c: Rebuild.
8854 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8855 * stap-probe.h:
8856 (struct stap_parse_info): Replace "parser_state" with
8857 "expr_builder".
8858 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8859 (parser_state): New class.
8860 * parse.c (expr_builder): Rename.
8861 (expr_builder::release): Rename.
8862 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8863 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8864 (write_exp_elt_longcst, write_exp_elt_floatcst)
8865 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8866 (write_exp_string_vector, write_exp_bitstring)
8867 (write_exp_msymbol, mark_struct_expression)
8868 (write_dollar_variable)
8869 (insert_type_address_space, increase_expout_size): Replace
8870 "parser_state" with "expr_builder".
8871 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8872 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8873 "parser_state" with "expr_builder".
8874
73923d7e
TT
88752019-04-04 Tom Tromey <tom@tromey.com>
8876
8877 * rust-exp.y: Replace "parse_language" with method call.
8878 * p-exp.y:
8879 (yylex): Replace "parse_language" with method call.
8880 * m2-exp.y:
8881 (yylex): Replace "parse_language" with method call.
8882 * go-exp.y (classify_name): Replace "parse_language" with method
8883 call.
8884 * f-exp.y (yylex): Replace "parse_language" with method call.
8885 * d-exp.y (lex_one_token): Replace "parse_language" with method
8886 call.
8887 * c-exp.y:
8888 (lex_one_token, classify_name, yylex): Replace "parse_language"
8889 with method call.
8890 * ada-exp.y (find_primitive_type, type_char)
8891 (type_system_address): Replace "parse_language" with method call.
8892
fa9f5be6
TT
88932019-04-04 Tom Tromey <tom@tromey.com>
8894
8895 * rust-exp.y: Replace "parse_gdbarch" with method call.
8896 * parse.c (write_dollar_variable, insert_type_address_space):
8897 Replace "parse_gdbarch" with method call.
8898 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8899 call.
8900 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8901 call.
8902 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8903 "parse_gdbarch" with method call.
8904 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8905 with method call.
8906 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8907 "parse_gdbarch" with method call.
8908 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8909 "parse_gdbarch" with method call.
8910 * c-exp.y (parse_type, parse_number, classify_name): Replace
8911 "parse_gdbarch" with method call.
8912 * ada-lex.l: Replace "parse_gdbarch" with method call.
8913 * ada-exp.y (parse_type, find_primitive_type, type_char)
8914 (type_system_address): Replace "parse_gdbarch" with method call.
8915
1201a264
TT
89162019-04-04 Tom Tromey <tom@tromey.com>
8917
8918 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8919 * stap-probe.c (stap_parse_argument): Update.
8920 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8921 initial_size parameter.
8922 * rust-exp.y (rust_lex_tests): Update.
8923 * parse.c (parser_state): Update.
8924 (parse_exp_in_context): Update.
8925 * parser-defs.h (struct parser_state) <parser_state>: Remove
8926 "initial_size" parameter.
8927
e3980ce2
TT
89282019-04-04 Tom Tromey <tom@tromey.com>
8929
8930 * parser-defs.h (increase_expout_size): Don't declare.
8931 * parse.c (increase_expout_size): Now static.
8932
e9f8e3f1
TS
89332019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8934
8935 * gnu-nat.c (gnu_nat_target::wait): Fix
8936 target_waitstatus_to_string call.
8937
d7df6549
AB
89382019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8939
8940 * eval.c (evaluate_subexp_standard): Handle internal functions
8941 during Fortran function call handling.
8942
8bdc1658
AB
89432019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8944
8945 * NEWS: Mention new internal functions.
8946 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8947 (read_base_type): Use dwarf2_init_complex_target_type.
8948 * value.c (creal_internal_fn): New function.
8949 (cimag_internal_fn): New function.
8950 (_initialize_values): Register new internal functions.
8951
c29705b7
PW
89522019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8953
8954 * infrun.c (stop_all_threads): If debug_infrun, always
8955 trace the wait status after wait_one, using
8956 target_waitstatus_to_string and target_pid_to_str.
8957 (handle_inferior_event): Replace various trace of
8958 wait status kind by a single trace.
8959 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8960 wait status kind image by target_waitstatus_to_string.
8961 * target/waitstatus.c (target_waitstatus_to_string): Fix
8962 obsolete comment.
8963
05caa1d2
TT
89642019-04-01 Tom Tromey <tromey@adacore.com>
8965
8966 PR symtab/23331:
8967 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8968
9d1447e0
SDJ
89692019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8970 Pedro Alves <palves@redhat.com>
8971
8972 * top.c (quit_force): Call 'finalize_values'.
8973 * value.c (finalize_values): New function.
8974 * value.h (finalize_values): Declare.
8975
7734102d
EZ
89762019-03-30 Eli Zaretskii <eliz@gnu.org>
8977
8978 * NEWS: Announce $_gdb_major and $_gdb_minor.
8979
8980 * top.c (init_gdb_version_vars): New function.
8981 (gdb_init): Call init_gdb_version_vars.
8982
188e1fa9
TT
89832019-03-29 Tom Tromey <tromey@adacore.com>
8984
8985 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8986 help text. Remove dead code.
8987
2880242d
KS
89882019-03-29 Keith Seitz <keiths@redhat.com>
8989
8990 From Siddhesh Poyarekar:
8991 * f-lang.h (f77_get_upperbound): Return LONGEST.
8992 (f77_get_lowerbound): Likewise.
8993 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8994 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8995 print them.
8996 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8997 plongest to format print it.
8998 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8999 (f77_get_upperbound): Likewise.
9000 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9001 LOWER_BOUND to LONGEST.
9002 (f77_create_arrayprint_offset_tbl): Likewise.
9003
cc1defb1
KS
90042019-03-29 Keith Seitz <keiths@redhat.com>
9005
9006 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9007 %s/pulongest for TYPE_LENGTH instead of %d in format
9008 strings.
9009 * ada-typerint.c (ada_print_type): Likewise.
9010 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9011 * compile/compile-c-support.c (generate_register_struct): Likewise.
9012 * gdbtypes.c (recursive_dump_type): Likewise.
9013 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9014 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9015 instead of %d in format strings.
9016 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9017 to std::min to ULONGEST.
9018 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9019 instead of %d in format strings.
9020 * tracepoint.c (info_scope_command): Likewise.
9021 * typeprint.c (print_offset_data::update)
9022 (print_offset_data::finish): Likewise.
9023 * xtensa-tdep.c (xtensa_store_return_value)
9024 (xtensa_push_dummy_call): Likewise.
9025
e432ccf1
JT
90262019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9027
9028 * windows-nat.c (display_selector): Fixed format specifications
9029 for 64-bit Cygwin.
9030
65d2b333
PW
90312019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9032
9033 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9034
f489207e
SL
90352019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9036
9037 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9038 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9039 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9040 (nios2_linux_init_abi): Install it.
9041
bffa1015
AH
90422019-03-28 Alan Hayward <alan.hayward@arm.com>
9043
9044 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9045
fc96163a
AH
90462019-03-28 Alan Hayward <alan.hayward@arm.com>
9047
9048 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9049
20dc7e9b
PW
90502019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9051 Tom Tromey <tromey@adacore.com>
9052
9053 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9054
7f5331a8
JB
90552019-03-26 Joel Brobecker <brobecker@adacore.com>
9056
9057 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9058 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9059 method to compute the bounds of range types. Also print "[evaluated]"
9060 if the bounds' values come from a dynamic evaluation.
9061
18c77628
AB
90622019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9063
9064 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9065 whitespace when pretty printing is on.
9066
53c973f2
AH
90672019-03-26 Alan Hayward <alan.hayward@arm.com>
9068
e79be6e5 9069 * ppc-linux-nat.c: Add include.
53c973f2 9070
d851aa71
AH
90712019-03-26 Alan Hayward <alan.hayward@arm.com>
9072
e79be6e5 9073 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9074
2fe7bab7
AH
90752019-03-26 Alan Hayward <alan.hayward@arm.com>
9076
e79be6e5 9077 * arm-linux-nat.c: Add include.
2fe7bab7 9078
068ef30e
SM
90792019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9080
9081 * source-cache.c (source_cache::get_source_lines): Re-read
9082 fullname after calling open_source_file.
9083
81a24d04
JB
90842019-03-25 John Baldwin <jhb@FreeBSD.org>
9085
9086 * NEWS: Mention TLS support for FreeBSD.
9087
79e7ae11
TT
90882019-03-25 Tom Tromey <tromey@adacore.com>
9089
9090 * minsyms.c (BUNCH_SIZE): Update comment.
9091 (~minimal_symbol_reader): Remove old comment.
9092 (compact_minimal_symbols): Update comment.
9093 (minimal_symbol_reader::install): Remove old comment. Update
9094 other comments.
9095
d45963c2
AH
90962019-03-25 Alan Hayward <alan.hayward@arm.com>
9097
9098 * s390-linux-nat.c: Add include.
9099
0f83012e
AH
91002019-03-25 Alan Hayward <alan.hayward@arm.com>
9101
9102 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9103 Call linux_get_hwcap.
9104 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9105 Likewise.
9106 (aarch64_linux_get_hwcap): Remove function.
9107 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9108 declaration.
9109 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9110 linux_get_hwcap.
9111 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9112 * linux-tdep.c (linux_get_hwcap): Add function.
9113 (linux_get_hwcap2): Likewise.
9114 * linux-tdep.h (linux_get_hwcap): Add declaration.
9115 (linux_get_hwcap2): Likewise.
9116 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9117 (ppc_linux_get_hwcap2): Likewise.
9118 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9119 linux_get_hwcap.
9120 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9121 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9122 (ppc_linux_nat_target::read_description): Likewise.
9123 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9124 * s390-linux-nat.c: Likewise.
9125 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9126
6640a367
TT
91272019-03-24 Tom Tromey <tom@tromey.com>
9128
9129 * ada-lang.c (standard_lookup): Simplify initialization.
9130 (ada_lookup_symbol_nonlocal): Simplify return.
9131 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9132 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9133 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9134 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9135 initialization.
9136 * solib.c (solib_global_lookup): Simplify.
9137 * symtab.c (null_block_symbol): Remove.
9138 (symbol_cache_lookup): Simplify returns.
9139 (lookup_language_this): Simplify returns.
9140 (lookup_symbol_aux): Simplify return.
9141 (lookup_local_symbol): Simplify returns.
9142 (lookup_global_symbol_from_objfile): Simplify return.
9143 (lookup_symbol_in_objfile_symtabs)
9144 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9145 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9146 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9147 * cp-namespace.c (cp_lookup_bare_symbol)
9148 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9149 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9150 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9151 (cp_lookup_symbol_via_imports): Simplify initialization.
9152 (find_symbol_in_baseclass): Likewise.
9153 * symtab.h (null_block_symbol): Remove.
9154 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9155 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9156 (d_lookup_symbol_module): Likewise.
9157 (find_symbol_in_baseclass): Simplify initialization.
9158
a930ebcd
TT
91592019-03-24 Tom Tromey <tom@tromey.com>
9160
9161 * expression.h: Don't include symtab.h.
9162 (struct block): Forward declare.
9163
582942f4
TT
91642019-03-24 Tom Tromey <tom@tromey.com>
9165
9166 * c-exp.y (typebase): Remove casts.
9167 * gdbtypes.c (lookup_unsigned_typename, )
9168 (lookup_signed_typename): Remove cast.
9169 * eval.c (parse_to_comma_and_eval): Remove cast.
9170 * parse.c (write_dollar_variable): Remove cast.
9171 * block.h (struct block) <superblock>: Now const.
9172 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9173 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9174 (map_block): Make "block" const.
9175 * symfile.h (struct quick_symbol_functions)
9176 <map_matching_symbols>: Constify block argument to "callback".
9177 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9178 const.
9179 (find_pc_sect_compunit_symtab): Make "b" const.
9180 (find_symbol_at_address): Likewise.
9181 (search_symbols): Likewise.
9182 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9183 (dw2_debug_names_lookup_symbol): Likewise.
9184 (dw2_map_matching_symbols): Update.
9185 * p-valprint.c (pascal_val_print): Remove "block".
9186 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9187 (aux_add_nonlocal_symbols): Make "block" const.
9188 (resolve_subexp): Remove cast.
9189 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9190 const.
9191 (iterate_over_file_blocks): Likewise.
9192 * f-exp.y (%union) <bval>: Remove.
9193 * coffread.c (patch_opaque_types): Make "b" const.
9194 * spu-tdep.c (spu_catch_start): Make "block" const.
9195 * c-valprint.c (print_unpacked_pointer): Remove "block".
9196 * symmisc.c (dump_symtab_1): Make "b" const.
9197 (block_depth): Make "block" const.
9198 * d-exp.y (%union) <bval>: Remove.
9199 * cp-support.h (cp_lookup_rtti_type): Update.
9200 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9201 * psymtab.c (psym_lookup_symbol): Make "block" const.
9202 (maintenance_check_psymtabs): Make "b" const.
9203 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9204 (enumerate_locals, enumerate_args): Update.
9205 * python/py-symtab.c (stpy_global_block): Make "block" const.
9206 (stpy_static_block): Likewise.
9207 * inline-frame.c (block_starting_point_at): Make "new_block"
9208 const.
9209 * block.c (find_block_in_blockvector): Make return type const.
9210 (blockvector_for_pc_sect): Make "b" const.
9211 (find_block_in_blockvector): Make "b" const.
9212
7ad417dd
TT
92132019-03-23 Tom Tromey <tom@tromey.com>
9214
9215 * varobj.c (varobj_create): Update.
9216 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9217 * printcmd.c (display_command, do_one_display): Don't reset
9218 innermost_block.
9219 * parser-defs.h (enum innermost_block_tracker_type): Move to
9220 expression.h.
9221 (innermost_block): Update comment.
9222 * parse.c (parse_exp_1): Add tracker_types parameter.
9223 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9224 tracker_types parameter. Reset innermost_block.
9225 (parse_exp_in_context): Remove.
9226 (parse_expression_for_completion): Update.
9227 * objfiles.c (~objfile): Don't reset expression_context_block or
9228 innermost_block.
9229 * expression.h (enum innermost_block_tracker_type): Move from
9230 parser-defs.h.
9231 (parse_exp_1): Add tracker_types parameter.
9232 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9233 reset innermost_block.
9234
b366c208
TT
92352019-03-23 Tom Tromey <tom@tromey.com>
9236
9237 * objfiles.h: Include bcache.h.
9238
9bb9b2f9
TT
92392019-03-23 Tom Tromey <tom@tromey.com>
9240
9241 * linespec.c (get_current_search_block): Use
9242 scoped_restore_current_language.
9243 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9244
59c28372
AH
92452019-03-22 Alan Hayward <alan.hayward@arm.com>
9246 Jiong Wang <jiong.wang@arm.com>
9247
9248 * aarch64-linux-tdep.c
9249 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9250 section.
9251 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9252
17e116a7
AH
92532019-03-22 Alan Hayward <alan.hayward@arm.com>
9254 Jiong Wang <jiong.wang@arm.com>
9255
9256 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9257 instructions.
9258 (aarch64_analyze_prologue_test): Add PACIASP test.
9259 (aarch64_prologue_prev_register): Unmask PC value.
9260
11e1b75f
AH
92612019-03-22 Alan Hayward <alan.hayward@arm.com>
9262 Jiong Wang <jiong.wang@arm.com>
9263
9264 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9265 (aarch64_dwarf2_prev_register): Unmask PC value.
9266 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9267 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9268 DW_CFA_AARCH64_negate_ra_state.
9269 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9270
34dcc7cf
AH
92712019-03-22 Alan Hayward <alan.hayward@arm.com>
9272 Jiong Wang <jiong.wang@arm.com>
9273
9274 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9275 registers.
9276 (aarch64_pseudo_register_name): Likewise.
9277 (aarch64_pseudo_register_type): Likewise.
9278 (aarch64_pseudo_register_reggroup_p): Likewise.
9279 (aarch64_gdbarch_init): Add pauth registers.
9280 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9281 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9282 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9283 (struct gdbarch_tdep): Add regnum for ra_state.
9284
1ef53e6b
AH
92852019-03-22 Alan Hayward <alan.hayward@arm.com>
9286 Jiong Wang <jiong.wang@arm.com>
9287
9288 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9289
76bed0fd
AH
92902019-03-22 Alan Hayward <alan.hayward@arm.com>
9291 Jiong Wang <jiong.wang@arm.com>
9292
9293 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9294 function.
9295 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9296 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9297 (aarch64_gdbarch_init): Add puth registers.
9298 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9299 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9300 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9301
ee4fbcfa
AH
93022019-03-22 Alan Hayward <alan.hayward@arm.com>
9303 Jiong Wang <jiong.wang@arm.com>
9304
9305 * aarch64-linux-nat.c
9306 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9307 * aarch64-linux-tdep.c
9308 (aarch64_linux_core_read_description): Likewise.
9309 (aarch64_linux_get_hwcap): New function.
9310 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9311 (aarch64_linux_get_hwcap): New declaration.
9312
6dc0ebde
AH
93132019-03-22 Alan Hayward <alan.hayward@arm.com>
9314 Jiong Wang <jiong.wang@arm.com>
9315
9316 * aarch64-linux-nat.c
9317 (aarch64_linux_nat_target::read_description): Add pauth param.
9318 * aarch64-linux-tdep.c
9319 (aarch64_linux_core_read_description): Likewise.
9320 * aarch64-tdep.c (struct target_desc): Add in pauth.
9321 (aarch64_read_description): Add pauth param.
9322 (aarch64_gdbarch_init): Likewise.
9323 * aarch64-tdep.h (aarch64_read_description): Likewise.
9324 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9325 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9326 * features/Makefile: Add new files.
9327 * features/aarch64-pauth.c: New file.
9328 * features/aarch64-pauth.xml: New file.
9329
595915c1
TT
93302019-03-20 Tom Tromey <tromey@adacore.com>
9331
9332 * infrun.c (handle_inferior_event): Rename from
9333 handle_inferior_event_1. Create a scoped_value_mark.
9334 (handle_inferior_event): Remove.
9335
4c7d57e7
TT
93362019-03-19 Tom Tromey <tromey@adacore.com>
9337
9338 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9339 * infrun.h (print_stop_event): Add "displays" parameter.
9340 * infrun.c (print_stop_event): Add "displays" parameter.
9341
cb246234
PA
93422019-03-19 Pedro Alves <palves@redhat.com>
9343
9344 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9345 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9346 to -1. Fix TABs vs spaces.
9347 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9348 * tui/tui-out.h (tui_ui_out) Add intro comments.
9349 <m_line, m_start_of_line>: In-class initialize, and add describing
9350 comment.
9351
3a0e45b2
AH
93522019-03-18 Alan Hayward <alan.hayward@arm.com>
9353
9354 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9355 variable names.
9356 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9357
5371b850
PA
93582019-03-18 Pedro Alves <palves@redhat.com>
9359 Eli Zaretskii <eliz@gnu.org>
9360
9361 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9362 m_line and m_start_of_line.
9363
b17c4cd0
EZ
93642019-03-18 Eli Zaretskii <eliz@gnu.org>
9365
9366 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9367 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9368 it returns a newline. This fixes a regression in TU mode, whereby
9369 the next line is output on the same screen line as the user input.
9370
4bd56d18
TT
93712019-03-18 Tom Tromey <tromey@adacore.com>
9372
9373 * minsyms.c (minimal_symbol_reader::install): Remove call to
9374 obstack_blank.
9375
55c10aca
PA
93762019-03-18 Pedro Alves <palves@redhat.com>
9377
9378 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9379 New globals.
9380 (apply_style): New, factored out from ...
9381 (apply_ansi_escape): ... this. Handle reverse video mode.
9382 (tui_set_reverse_mode): New function.
9383 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9384 * tui/tui-winsource.c (tui_show_source_line): Use
9385 tui_set_reverse_mode instead of setting A_STANDOUT.
9386 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9387 New setter methods.
9388
647bb750
HD
93892019-03-18 Hannes Domani <ssbssa@yahoo.de>
9390
9391 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9392 Handle tabs.
9393
bff8c71f
TT
93942019-03-18 Tom Tromey <tromey@adacore.com>
9395
9396 * ada-lang.c (empty_array): Add "high" parameter.
9397 (ada_evaluate_subexp): Update.
9398
58785d98
ST
93992019-03-17 Sergei Trofimovich <siarheit@google.com>
9400
9401 * unittests/string_view-selftests.c: Define
9402 _initialize_string_view_selftests unconditionally.
9403
d4cbef22
ВМ
94042019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9405
9406 PR gdb/24350
9407 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9408
fce4c071
ВМ
94092019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9410
9411 PR gdb/24351
9412 * windows-nat.c (display_selector): Fix format specifiers.
9413
f7f0a123
EZ
94142019-03-17 Eli Zaretskii <eliz@gnu.org>
9415
9416 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9417 tui_refill_source_window instead of tui_refresh_win, to update the
9418 current execution line. This fixes redisplay of the current line
9419 when stepping through the code with "next" or "step".
9420
ab42892f
EZ
94212019-03-16 Eli Zaretskii <eliz@gnu.org>
9422
9423 * source-cache.c (source_cache::get_source_lines): Call
9424 find_source_lines to initialize s->nlines. This fixes vertical
9425 scrolling of TUI source window when the DOWN arrow is pressed.
9426
8d8c087f
PW
94272019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9428
9429 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9430 linux-thread-db.c (_initialize_thread_db): Likewise.
9431
798e1c30
EZ
94322019-03-16 Eli Zaretskii <eliz@gnu.org>
9433
9434 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9435 wclrtoeol in tui_show_source_line". This reverts changes made in
9436 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9437
eefba3da
TT
94382019-03-15 Tom Tromey <tom@tromey.com>
9439
9440 * symtab.h (struct minimal_symbol): Derive from
9441 general_symbol_info.
9442 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9443 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9444 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9445 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9446 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9447 (MSYMBOL_SEARCH_NAME): Update.
9448 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9449 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9450 * minsyms.c (minimal_symbol_reader::record_full): Update.
9451
0de2420c
TT
94522019-03-15 Tom Tromey <tom@tromey.com>
9453
9454 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9455
042d75e4
TT
94562019-03-15 Tom Tromey <tom@tromey.com>
9457
9458 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9459 unique_xmalloc_ptr.
9460 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9461 Update.
9462 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9463 (build_minimal_symbol_hash_tables)
9464 (minimal_symbol_reader::install): Update.
9465
db92718b
TT
94662019-03-15 Tom Tromey <tom@tromey.com>
9467
9468 * symtab.c (create_demangled_names_hash): Update.
9469 (symbol_set_names): Update.
9470 * objfiles.h (struct objfile_per_bfd_storage)
9471 <demangled_names_hash>: Now an htab_up.
9472 * objfiles.c (objfile_per_bfd_storage): Simplify.
9473
d6797f46
TT
94742019-03-15 Tom Tromey <tom@tromey.com>
9475
9476 * objfiles.h (struct objfile_per_bfd_storage): Declare
9477 destructor.
9478 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9479 New.
9480 (get_objfile_bfd_data): Use new. Don't initialize
9481 language_of_main.
9482 (free_objfile_per_bfd_storage): Remove.
9483 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9484
741d7538
TT
94852019-03-15 Tom Tromey <tom@tromey.com>
9486
9487 * symfile.c (reread_symbols): Update.
9488 * objfiles.c (objfile::objfile): Update.
9489 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9490 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9491 comment.
9492 (minimal_symbol_reader::install): Update.
9493 (terminate_minimal_symbol_table): Remove.
9494 * jit.c (jit_object_close_impl): Update.
9495
788c80d1
TT
94962019-03-15 Tom Tromey <tom@tromey.com>
9497
9498 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9499 initializations.
9500
1b7a07cb
TT
95012019-03-15 Tom Tromey <tom@tromey.com>
9502
9503 * objfiles.h (struct objfile_per_bfd_storage)
9504 <demangled_hash_languages>: Now a bitset.
9505 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9506 (lookup_minimal_symbol): Update.
9507
3db066bc
TT
95082019-03-15 Tom Tromey <tom@tromey.com>
9509
9510 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9511 Don't return the symbol.
9512 * coffread.c (record_minimal_symbol): Use record_full.
9513
3fff2c37
EZ
95142019-03-14 Eli Zaretskii <eliz@gnu.org>
9515
9516 The MS-Windows port of ncurses fails to switch to a color pair if
9517 one or both of the colors are the implicit default colors. This
9518 change records the default colors when TUI is initialized, and
9519 then specifies them explicitly when a color pair uses the default
9520 colors. This allows color styling in TUI mode on MS-Windows.
9521
9522 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9523 ncurses_norm_attr.
9524 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9525 colors in ncurses_norm_attr.
9526 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9527 "none", replace it with the default color recorded in
9528 ncurses_norm_attr.
9529
3b336828
TT
95302019-03-14 Tom Tromey <tromey@adacore.com>
9531
9532 * source-cache.h (class source_cache) <get_source_lines>: Return
9533 std::string.
9534 * source-cache.c (source_cache::extract_lines): Handle case where
9535 first_pos==npos. Return std::string.
9536 (source_cache::get_source_lines): Update.
9537
d085f989
TT
95382019-03-14 Tom Tromey <tromey@adacore.com>
9539
9540 * NEWS: Add item for "style sources" commands.
9541 * source-cache.c (source_cache::get_source_lines): Check
9542 source_styling.
9543 * cli/cli-style.c (source_styling): New global.
9544 (_initialize_cli_style): Add "style sources" commands.
9545 (show_style_sources): New function.
9546 * cli/cli-style.h (source_styling): Declare.
9547
6f11e682
TT
95482019-03-14 Pedro Alves <palves@redhat.com>
9549 Tom Tromey <tromey@adacore.com>
9550
9551 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9552 * tui/tui-winsource.c (tui_refill_source_window): New function,
9553 from...
9554 (tui_horizontal_source_scroll): ... here. Move some logic.
9555 * cli/cli-style.c (set_style_enabled): Notify new observable.
9556 * tui/tui-hooks.c (tui_redisplay_source): New function.
9557 (tui_attach_detach_observers): Attach or detach
9558 tui_redisplay_source.
9559 * observable.h (source_styling_changed): New observable.
9560 * observable.c: Define source_styling_changed observable.
9561
a068643d
TT
95622019-03-13 Tom Tromey <tromey@adacore.com>
9563
9564 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9565 (i386_gnu_nat_target::store_registers): Update.
9566 * target-debug.h (target_debug_print_std_string): New macro.
9567 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9568 * windows-tdep.c (display_one_tib): Update.
9569 * tui/tui-stack.c (tui_make_status_line): Update.
9570 * top.c (print_inferior_quit_action): Update.
9571 * thread.c (thr_try_catch_cmd): Update.
9572 (add_thread_with_info): Update.
9573 (thread_target_id_str): Update.
9574 (thr_try_catch_cmd): Update.
9575 (thread_command): Update.
9576 (thread_find_command): Update.
9577 * record-btrace.c (record_btrace_target::info_record)
9578 (record_btrace_resume_thread, record_btrace_target::resume)
9579 (record_btrace_cancel_resume, record_btrace_step_thread)
9580 (record_btrace_target::wait, record_btrace_target::wait)
9581 (record_btrace_target::wait, record_btrace_target::stop): Update.
9582 * progspace.c (print_program_space): Update.
9583 * process-stratum-target.c
9584 (process_stratum_target::thread_address_space): Update.
9585 * linux-fork.c (linux_fork_mourn_inferior)
9586 (detach_checkpoint_command, info_checkpoints_command)
9587 (linux_fork_context): Update.
9588 (linux_fork_detach): Update.
9589 (class scoped_switch_fork_info): Update.
9590 (delete_checkpoint_command): Update.
9591 * infrun.c (follow_fork_inferior): Update.
9592 (follow_fork_inferior): Update.
9593 (proceed_after_vfork_done): Update.
9594 (handle_vfork_child_exec_or_exit): Update.
9595 (follow_exec): Update.
9596 (displaced_step_prepare_throw): Update.
9597 (displaced_step_restore): Update.
9598 (start_step_over): Update.
9599 (resume_1): Update.
9600 (clear_proceed_status_thread): Update.
9601 (proceed): Update.
9602 (print_target_wait_results): Update.
9603 (do_target_wait): Update.
9604 (context_switch): Update.
9605 (stop_all_threads): Update.
9606 (restart_threads): Update.
9607 (finish_step_over): Update.
9608 (handle_signal_stop): Update.
9609 (switch_back_to_stepped_thread): Update.
9610 (keep_going_pass_signal): Update.
9611 (print_exited_reason): Update.
9612 (normal_stop): Update.
9613 * inferior.c (inferior_pid_to_str): Change return type.
9614 (print_selected_inferior): Update.
9615 (add_inferior): Update.
9616 (detach_inferior): Update.
9617 * dummy-frame.c (fprint_dummy_frames): Update.
9618 * dcache.c (dcache_info_1): Update.
9619 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9620 (btrace_fetch, btrace_clear): Update.
9621 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9622 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9623 type.
9624 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9625 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9626 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9627 * gdbarch.c, gdbarch.h: Rebuild.
9628 * gdbarch.sh (core_pid_to_str): Change return type.
9629 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9630 return type.
9631 (windows_nat_target::pid_to_str): Change return type.
9632 (windows_delete_thread): Update.
9633 (windows_nat_target::attach): Update.
9634 (windows_nat_target::files_info): Update.
9635 * target-delegates.c: Rebuild.
9636 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9637 return type.
9638 (sol_thread_target::pid_to_str): Change return type.
9639 * remote.c (class remote_target) <pid_to_str>: Change return
9640 type.
9641 (remote_target::pid_to_str): Change return type.
9642 (extended_remote_target::attach, remote_target::remote_stop_ns)
9643 (remote_target::remote_notif_remove_queued_reply)
9644 (remote_target::push_stop_reply, remote_target::disable_btrace):
9645 Update.
9646 (extended_remote_target::attach): Update.
9647 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9648 type.
9649 (gdbsim_target::pid_to_str): Change return type.
9650 * ravenscar-thread.c (struct ravenscar_thread_target)
9651 <pid_to_str>: Change return type.
9652 (ravenscar_thread_target::pid_to_str): Change return type.
9653 * procfs.c (class procfs_target) <pid_to_str>: Change return
9654 type.
9655 (procfs_target::pid_to_str): Change return type.
9656 (procfs_target::attach): Update.
9657 (procfs_target::detach): Update.
9658 (procfs_target::fetch_registers): Update.
9659 (procfs_target::store_registers): Update.
9660 (procfs_target::wait): Update.
9661 (procfs_target::files_info): Update.
9662 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9663 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9664 return type.
9665 (nto_procfs_target::pid_to_str): Change return type.
9666 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9667 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9668 return type.
9669 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9670 (exit_lwp): Update.
9671 (attach_proc_task_lwp_callback, get_detach_signal)
9672 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9673 (linux_nat_target::resume, wait_lwp, stop_callback)
9674 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9675 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9676 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9677 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9678 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9679 type.
9680 (inf_ptrace_target::attach): Update.
9681 (inf_ptrace_target::files_info): Update.
9682 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9683 type.
9684 (go32_nat_target::pid_to_str): Change return type.
9685 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9686 (gnu_nat_target::wait): Update.
9687 (gnu_nat_target::wait): Update.
9688 (gnu_nat_target::resume): Update.
9689 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9690 (fbsd_nat_target::wait): Update.
9691 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9692 type.
9693 (darwin_nat_target::attach): Update.
9694 * corelow.c (class core_target) <pid_to_str>: Change return type.
9695 (core_target::pid_to_str): Change return type.
9696 * target.c (normal_pid_to_str): Change return type.
9697 (default_pid_to_str): Likewise.
9698 (target_pid_to_str): Change return type.
9699 (target_translate_tls_address): Update.
9700 (target_announce_detach): Update.
9701 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9702 return type.
9703 (bsd_uthread_target::pid_to_str): Change return type.
9704 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9705 type.
9706 (bsd_kvm_target::pid_to_str): Change return type.
9707 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9708 return type.
9709 (aix_thread_target::pid_to_str): Change return type.
9710 * target.h (struct target_ops) <pid_to_str>: Change return type.
9711 (target_pid_to_str, normal_pid_to_str): Likewise.
9712 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9713 type.
9714 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9715 type.
9716 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9717 return type.
9718 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9719 type.
9720 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9721 type.
9722 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9723 return type.
9724
b4be1b06
SM
97252019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9726
9727 * NEWS: Mention that the new default MI version is 3. Mention
9728 changes to the output of commands and events that deal with
9729 multi-location breakpoints.
9730 * breakpoint.c: Include "mi/mi-out.h".
9731 (print_one_breakpoint): Change output syntax if using MI version
9732 >= 3.
9733 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9734 New.
9735 (mi_multi_location_breakpoint_output_fixed): New.
9736 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9737 (mi_cmd_fix_multi_location_breakpoint_output): New.
9738 (mi_multi_location_breakpoint_output_fixed): New.
9739 * mi/mi-cmds.c (mi_cmds): Register command
9740 -fix-multi-location-breakpoint-output.
9741 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9742 interpreter "mi".
9743
8e5e5494
SM
97442019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9745
9746 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9747 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9748 instantiate mi_ui_out based on interpreter name.
9749 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9750 * mi/mi-main.c (mi_load_progress): Likewise.
9751
197df35e
JB
97522019-03-12 John Baldwin <jhb@FreeBSD.org>
9753
9754 * NEWS: Combine separate "New targets" sections for 8.3.
9755
8399425f
JB
97562019-03-12 John Baldwin <jhb@FreeBSD.org>
9757
9758 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9759 (ppcfbsd_init_abi): Install gdbarch
9760 "fetch_tls_load_module_address" and "get_thread_local_address"
9761 methods.
9762
b0f87ed0
JB
97632019-03-12 John Baldwin <jhb@FreeBSD.org>
9764
9765 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9766 (riscv_fbsd_init_abi): Install gdbarch
9767 "fetch_tls_load_module_address" and "get_thread_local_address"
9768 methods.
9769
ce25aa57
JB
97702019-03-12 John Baldwin <jhb@FreeBSD.org>
9771
9772 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9773 (i386fbsd_init_abi): Install gdbarch
9774 "fetch_tls_load_module_address" and "get_thread_local_address"
9775 methods.
9776
f5424cfa
JB
97772019-03-12 John Baldwin <jhb@FreeBSD.org>
9778
9779 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9780 (amd64fbsd_init_abi): Install gdbarch
9781 "fetch_tls_load_module_address" and "get_thread_local_address"
9782 methods.
9783
945f3901
JB
97842019-03-12 John Baldwin <jhb@FreeBSD.org>
9785
9786 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9787 (struct fbsd_pspace_data): New type.
9788 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9789 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9790 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9791 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9792 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9793
ef0bd204
JB
97942019-03-12 John Baldwin <jhb@FreeBSD.org>
9795
9796 * gdbtypes.c (lookup_struct_elt): New function.
9797 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9798 * gdbtypes.h (struct struct_elt): New type.
9799 (lookup_struct_elt): New prototype.
9800
36c53a02
JB
98012019-03-12 John Baldwin <jhb@FreeBSD.org>
9802
9803 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9804 remove disabled code block.
9805
6e056c81
JB
98062019-03-12 John Baldwin <jhb@FreeBSD.org>
9807
9808 * gdbarch.sh (get_thread_local_address): New method.
9809 * gdbarch.h, gdbarch.c: Regenerate.
9810 * target.c (target_translate_tls_address): Use
9811 gdbarch_get_thread_local_address if present instead of
9812 target::get_thread_local_address.
9813
cd250a18
JB
98142019-03-12 John Baldwin <jhb@FreeBSD.org>
9815
9816 * target.h (target::get_thread_local_address): Update comment.
9817
df22c1e5
JB
98182019-03-12 John Baldwin <jhb@FreeBSD.org>
9819
9820 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9821 objfile->separate_debug_objfile_backlink if not NULL.
9822
dd6876c9
JB
98232019-03-12 John Baldwin <jhb@FreeBSD.org>
9824
9825 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9826 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9827 (amd64bsd_store_inferior_registers): Likewise.
9828 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9829 Enable segment base registers.
9830 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9831 PT_GETFSBASE and PT_GETGSBASE.
9832 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9833 PT_SETGSBASE.
9834 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9835 segment base registers.
9836 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9837
1163a4b7
JB
98382019-03-12 John Baldwin <jhb@FreeBSD.org>
9839
9840 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9841 Update calls to i386_target_description to add 'segments'
9842 parameter.
9843 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9844 add segment base registers.
9845 * arch/i386.c (i386_create_target_description): Add 'segments'
9846 parameter to enable segment base registers.
9847 * arch/i386.h (i386_create_target_description): Likewise.
9848 * features/i386/32bit-segments.xml: New file.
9849 * features/i386/32bit-segments.c: Generate.
9850 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9851 call to i386_target_description to add 'segments' parameter.
9852 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9853 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9854 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9855 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9856 if feature is present.
9857 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9858 Add 'segments' parameter to call to i386_target_description.
9859 (i386_target_description): Add 'segments' parameter to enable
9860 segment base registers.
9861 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9862 to call to i386_target_description.
9863 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9864 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9865 Define I386_NUM_REGS.
9866 (i386_target_description): Add 'segments' parameter to enable
9867 segment base registers.
9868
3a350822
EZ
98692019-03-12 Eli Zaretskii <eliz@gnu.org>
9870
9871 PR/24325
9872 * source-cache.c: #undef open and close, to avoid unresolved
9873 externals during linking.
9874
ffdd69cf
TT
98752019-03-12 Tom Tromey <tromey@adacore.com>
9876
9877 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9878 const. Add initializers.
9879 (_initialize_remote): Don't initialize ptid globals.
9880
ec148c57
PA
98812019-03-12 Pedro Alves <palves@redhat.com>
9882
9883 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9884
32764270
PA
98852019-03-12 Pedro Alves <palves@redhat.com>
9886
9887 * cp-name-parser.y (main): Remove unused 'len' variable.
9888
17547186
TT
98892019-03-12 Tom Tromey <tromey@adacore.com>
9890
9891 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9892 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9893
d3a70e03
TT
98942019-03-12 Tom Tromey <tromey@adacore.com>
9895
9896 * linux-nat.c (iterate_over_lwps): Update.
9897 (stop_callback): Remove parameter.
9898 (stop_wait_callback, detach_callback, resume_set_callback)
9899 (select_singlestep_lwp_callback, set_ignore_sigint)
9900 (status_callback, resumed_callback, resume_clear_callback)
9901 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9902 data parameter.
9903 (linux_nat_target::detach, linux_nat_target::resume)
9904 (linux_stop_and_wait_all_lwps, select_event_lwp)
9905 (linux_nat_filter_event, linux_nat_wait_1)
9906 (linux_nat_target::kill, linux_nat_target::stop)
9907 (linux_nat_target::stop): Update.
9908 (linux_nat_resume_callback): Change type.
9909 (resume_stopped_resumed_lwps, count_events_callback)
9910 (select_event_lwp_callback): Likewise.
9911 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9912 * arm-linux-nat.c (struct update_registers_data): Remove.
9913 (update_registers_callback): Change type.
9914 (arm_linux_insert_hw_breakpoint1): Update.
9915 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9916 parameter.
9917 (x86_linux_dr_set_addr): Update.
9918 (x86_linux_dr_set_control): Update.
9919 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9920 (iterate_over_lwps): Use gdb::function_view.
9921 * nat/aarch64-linux-hw-point.c (struct
9922 aarch64_dr_update_callback_param): Remove.
9923 (debug_reg_change_callback): Change type.
9924 (aarch64_notify_debug_reg_change): Update.
9925 * s390-linux-nat.c (s390_refresh_per_info): Update.
9926
82cb27ff
TT
99272019-03-11 Tom Tromey <tromey@adacore.com>
9928
9929 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9930 redundant assignment to "this_cu".
9931
568c0683
SM
99322019-03-08 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9935
f09ce22d
SM
99362019-03-08 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9939 from...
9940 (rank_one_type): ... this.
9941
595f96a9
SM
99422019-03-08 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9945 from...
9946 (rank_one_type): ... this.
9947
2598a94b
SM
99482019-03-08 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9951 from...
9952 (rank_one_type): ... this.
9953
7f17b20d
SM
99542019-03-08 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9957 from...
9958 (rank_one_type): ... this.
9959
2c509035
SM
99602019-03-08 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9963 from...
9964 (rank_one_type): ... this.
9965
0dd322dc
SM
99662019-03-08 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9969 from...
9970 (rank_one_type): ... this.
9971
41ea4728
SM
99722019-03-08 Simon Marchi <simon.marchi@efficios.com>
9973
9974 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9975 from...
9976 (rank_one_type): ... this.
9977
793cd1d2
SM
99782019-03-08 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9981 from...
9982 (rank_one_type): ... this.
9983
34910087
SM
99842019-03-08 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9987 from...
9988 (rank_one_type): ... this.
9989
f1f832d6
SM
99902019-03-08 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9993 from...
9994 (rank_one_type): ... this.
9995
b9f4512f
SM
99962019-03-08 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9999 from...
10000 (rank_one_type): ... this.
10001
9293fc63
SM
100022019-03-08 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10005 from...
10006 (rank_one_type): ... this.
10007
e3abbe7e
PW
100082019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10009
10010 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10011 inferior-events' shows the example events.
10012
e4adb939
EZ
100132019-03-08 Eli Zaretskii <eliz@gnu.org>
10014
10015 Support styling on native MS-Windows console
10016
10017 PR/24315
10018 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10019 on MS-Windows if $TERM is not defined.
10020
10021 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10022
10023 * posix-hdep.c (gdb_console_fputs):
10024 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10025 functions.
10026 * ui-file.h (gdb_console_fputs): Add prototype.
10027
10028 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10029 back to fputs only if the former returns zero.
10030
25629dfd
TT
100312019-03-07 Tom Tromey <tom@tromey.com>
10032
10033 * symmisc.c (print_symbol_bcache_statistics): Update.
10034 (print_objfile_statistics): Update.
10035 * symfile.c (allocate_symtab): Update.
10036 * stabsread.c: Don't include bcache.h.
10037 * psymtab.h (struct psymbol_bcache): Don't declare.
10038 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10039 (psymbol_bcache_init, psymbol_bcache_free)
10040 (psymbol_bcache_get_bcache): Don't declare.
10041 * psymtab.c (struct psymbol_bcache): Remove.
10042 (psymtab_storage::psymtab_storage): Update.
10043 (psymtab_storage::~psymtab_storage): Update.
10044 (psymbol_bcache_init, psymbol_bcache_free)
10045 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10046 (add_psymbol_to_bcache): Update.
10047 (allocate_psymtab): Update.
10048 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10049 macro_cache>: No longer pointers.
10050 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10051 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10052 * macrotab.c (macro_bcache): Update.
10053 * macroexp.c: Don't include bcache.h.
10054 * gdbtypes.c (check_types_worklist): Update.
10055 (types_deeply_equal): Remove TRY/CATCH. Update.
10056 * elfread.c (elf_symtab_read): Update.
10057 * dwarf2read.c: Don't include bcache.h.
10058 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10059 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10060 (print_bcache_statistics, bcache_memory_used): Don't declare.
10061 (struct bcache): Move from bcache.c. Add constructor, destructor,
10062 methods. Rename all data members.
10063 * bcache.c (struct bcache): Move to bcache.h.
10064 (bcache::expand_hash_table): Rename from expand_hash_table.
10065 (bcache): Remove.
10066 (bcache::insert): Rename from bcache_full.
10067 (bcache::compare): Rename from bcache_compare.
10068 (bcache_xmalloc): Remove.
10069 (bcache::~bcache): Rename from bcache_xfree.
10070 (bcache::print_statistics): Rename from print_bcache_statistics.
10071 (bcache::memory_used): Rename from bcache_memory_used.
10072
fe726667
PA
100732019-03-07 Pedro Alves <palves@redhat.com>
10074
10075 * infrun.c (normal_stop): Also check for
10076 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10077
7584bb30
AB
100782019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10079
10080 * f-lang.c (value_from_host_double): Moved to...
10081 * value.c (value_from_host_double): ...here.
10082 * value.h (value_from_host_double): Declare.
10083 * guile/scm-math.c (vlscm_convert_typed_number): Use
10084 value_from_host_double.
10085 (vlscm_convert_number): Likewise.
10086 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10087 * python/py-value.c (convert_value_from_python): Likewise.
10088
a7b1986e
TT
100892019-03-06 Tom Tromey <tom@tromey.com>
10090
10091 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10092
0ccf4211
TT
100932019-03-06 Tom Tromey <tom@tromey.com>
10094
10095 * utils.h (free_current_contents): Don't declare.
10096 * utils.c (free_current_contents): Remove.
10097
fe7b42e5
TT
100982019-03-06 Tom Tromey <tom@tromey.com>
10099
10100 * top.c (quit_force): Update.
10101 * main.c (captured_command_loop): Update.
10102 * common/new-op.c (operator new): Update.
10103 * common/common-exceptions.c (struct catcher)
10104 <save_cleanup_chain>: Remove member.
10105 (exceptions_state_mc_init): Update.
10106 (exception_try_scope_entry): Return nullptr.
10107 (exception_try_scope_exit, exception_rethrow)
10108 (throw_exception_sjlj, throw_exception_cxx): Update.
10109 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10110 (all_cleanups, do_cleanups, discard_cleanups)
10111 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10112 (restore_cleanups, restore_final_cleanups): Don't declare.
10113 (do_final_cleanups): Remove parameter.
10114 * common/cleanups.c (cleanup_chain, make_cleanup)
10115 (make_cleanup_dtor, all_cleanups, do_cleanups)
10116 (discard_my_cleanups, discard_cleanups)
10117 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10118 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10119 (null_cleanup): Remove.
10120 (do_final_cleanups): Remove parameter.
10121
c6321f19
TT
101222019-03-06 Tom Tromey <tom@tromey.com>
10123
10124 * remote.c (remote_target::remote_parse_stop_reply): Use
10125 unique_xmalloc_ptr.
10126
61b30099
TT
101272019-03-06 Tom Tromey <tom@tromey.com>
10128
10129 * stabsread.c (struct stabs_field_info): Rename from field_info.
10130 <list, fnlist>: Add initializers.
10131 <obstack>: New member.
10132 (read_member_functions, read_struct_fields, read_baseclasses):
10133 Allocate on obstack. Don't use cleanups.
10134 (read_one_struct_field, read_member_functions, read_struct_fields)
10135 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10136 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10137 (read_struct_type): Update.
10138
6cceac94
TT
101392019-03-06 Tom Tromey <tom@tromey.com>
10140
10141 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10142 * common/filestuff.h (make_cleanup_close): Don't declare.
10143 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10144 Remove.
10145
72412762
TT
101462019-03-06 Tom Tromey <tom@tromey.com>
10147
10148 * solib-aix.c: Use make_scope_exit.
10149
2b6ff1c0
TT
101502019-03-06 Tom Tromey <tom@tromey.com>
10151
10152 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10153 Use make_scope_exit.
10154
d01c5877
TT
101552019-03-06 Tom Tromey <tom@tromey.com>
10156
10157 * solib-svr4.c (disable_probes_interface): Remove parameter.
10158 (svr4_handle_solib_event): Use make_scope_exit.
10159
32603266
TT
101602019-03-06 Tom Tromey <tom@tromey.com>
10161
10162 * remote.c (struct stop_reply_deleter): Remove.
10163 (stop_reply_up): Update.
10164 (struct stop_reply): Derive from notif_event. Don't typedef.
10165 <regcache>: Now a std::vector.
10166 (stop_reply_xfree): Remove.
10167 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10168 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10169 (remote_target::discard_pending_stop_replies): Use delete.
10170 (remote_target::remote_parse_stop_reply): Update.
10171 (remote_target::process_stop_reply): Update.
10172 * remote-notif.h (struct notif_event): Add virtual destructor.
10173 Remove "dtr" member.
10174 (struct notif_client) <alloc_event>: Return a unique_ptr.
10175 (notif_event_xfree): Don't declare.
10176 (notif_event_up): New typedef.
10177 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10178 (notif_event_xfree, do_notif_event_xfree): Remove.
10179 (remote_notif_state_xfree): Update.
10180
9799571e
TT
101812019-03-06 Tom Tromey <tom@tromey.com>
10182
10183 * infrun.c (displaced_step_clear_cleanup): Now a
10184 forward_scope_exit type.
10185 (displaced_step_prepare_throw): Update.
10186 (displaced_step_fixup): Update.
10187
09e3c4ca
TT
101882019-03-06 Tom Tromey <tom@tromey.com>
10189
10190 * inferior.h (class inferior): Update comment.
10191 * gdbthread.h (class thread_info): Update comment.
10192
e2a03548
TT
101932019-03-06 Joel Brobecker <brobecker@adacore.com>
10194 Tom Tromey <tom@tromey.com>
10195
10196 * stabsread.h (struct stab_section_list): Remove.
10197 (coffstab_build_psymtabs): Update.
10198 * dbxread.c (symbuf_sections): Now a std::vector.
10199 (sect_idx): New global.
10200 (fill_symbuf): Update.
10201 (coffstab_build_psymtabs): Change type of stabsects parameter.
10202 Update.
10203 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10204 std::vector.
10205 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10206 (coff_locate_sections): Update.
10207 (coff_symfile_read): Remove cleanups. Update.
10208 (init_stringtab): Add storage parameter.
10209 (free_stringtab, free_stringtab_cleanup): Remove.
10210 (init_lineno): Add storage parameter.
10211 (free_linetab, free_linetab_cleanup): Remove.
10212
b7e60d85
PA
102132019-03-06 Pedro Alves <palves@redhat.com>
10214
10215 * linux-fork.c (fork_info::clobber_regs): Delete.
10216 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10217 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10218 comment. Adjust.
10219 (scoped_switch_fork_info::scoped_switch_fork_info)
10220 (checkpoint_command, linux_fork_context): Adjust
10221 fork_save_infrun_state calls.
10222
e52c971f
PA
102232019-03-06 Pedro Alves <palves@redhat.com>
10224
10225 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10226 (inf_has_multiple_threads): Return 'bool' and rewrite using
10227 inferior_info::threads().
10228
06974e6c
PA
102292019-03-06 Pedro Alves <palves@redhat.com>
10230
10231 * linux-fork.c: Include <list>.
10232 (fork_list): Now a std::list instance.
10233 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10234 (forks_exist_p, find_last_fork): Adjust.
10235 (new_fork): Delete.
10236 (one_fork_p): New.
10237 (add_fork): Adjust.
10238 (free_fork): Delete, folded into fork_info::~fork_info().
10239 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10240 Adjust.
10241 (init_fork_list): Delete.
10242 (linux_fork_killall, linux_fork_mourn_inferior)
10243 (linux_fork_detach, info_checkpoints_command): Adjust.
10244 (_initialize_linux_fork): No longer call init_fork_list.
10245
72f31aea
PA
102462019-03-06 Pedro Alves <palves@redhat.com>
10247
10248 * linux-fork.c (new_fork): New, split out of ...
10249 (add_fork): ... this. Return void. Move "first fork" special
10250 case from here, to ...
10251 (checkpoint_command): ... here.
10252 * linux-linux.h (add_fork): Return void.
10253
efbecbc1
AB
102542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10257
0841c79a
AB
102582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10259 Chris January <chris.january@arm.com>
10260 David Lecomber <david.lecomber@arm.com>
10261
10262 * f-exp.y: New token, UNOP_INTRINSIC.
10263 (exp): New pattern using UNOP_INTRINSIC token.
10264 (f77_keywords): Add 'abs' keyword.
10265 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10266 (value_from_host_double): New function.
10267 (evaluate_subexp_f): Support UNOP_ABS.
10268
4a270568
AB
102692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10270
10271 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10272 types.
10273
067630bd
AB
102742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10275
10276 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10277 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10278 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10279
3be47f7a
AB
102802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10281
10282 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10283
4d00f5d8
AB
102842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10285 Chris January <chris.january@arm.com>
10286
10287 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10288 * f-exp.y: Define 'KIND' token.
10289 (exp): New pattern for KIND expressions.
10290 (ptype): Handle types with a kind extension.
10291 (direct_abs_decl): Extend to spot kind extensions.
10292 (f77_keywords): Add 'kind' to the list.
10293 (push_kind_type): New function.
10294 (convert_to_kind_type): New function.
10295 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10296 * parse.c (operator_length_standard): Likewise.
10297 * parser-defs.h (enum type_pieces): Add tp_kind.
10298 * std-operator.def: Add UNOP_KIND.
10299
e454224f
AB
103002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10301
10302 * f-exp.y (f_parse): Set yydebug.
10303
9dad4a58
AB
103042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10305
10306 * f-lang.c (evaluate_subexp_f): New function.
10307 (exp_descriptor_f): New global.
10308 (f_language_defn): Use exp_descriptor_f instead of
10309 exp_descriptor_standard.
10310
c8f91604
AB
103112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10312
10313 * f-exp.y (struct token): Add comments.
10314 (dot_ops): Remove uppercase versions and the end marker.
10315 (f77_keywords): Likewise.
10316 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10317 entries in the dot_ops array are case insensitive, and use
10318 strncasecmp to compare strings. Also some whitespace cleanup in
10319 this area. Similar for the f77_keywords array, except entries in
10320 this list might be case sensitive.
10321
dd9f2c76
AB
103222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * f-exp.y (struct f77_boolean_val): Add comments.
10325 (boolean_values): Remove uppercase versions, and end marker.
10326 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10327 and use strncasecmp to achieve case insensitivity. Additionally,
10328 perform whitespace cleanup around this code.
10329
67a3048c
TT
103302019-03-06 Tom Tromey <tromey@adacore.com>
10331
10332 * remote-sim.c (gdbsim_target_open): Use result of
10333 gdb_argv::release.
10334
aa3cfbda
RB
103352019-03-06 Richard Bunt <richard.bunt@arm.com>
10336 Dirk Schubert <dirk.schubert@arm.com>
10337 Chris January <chris.january@arm.com>
10338
10339 * eval.c (evaluate_subexp_standard): Call Fortran argument
10340 wrapping logic.
10341 * f-lang.c (struct value): A value which can be passed into a
10342 Fortran function call.
10343 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10344 where appropriate.
10345 (struct type): Value ready for a Fortran function call.
10346 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10347 is needed.
10348 * f-lang.h (fortran_argument_convert): Declaration.
10349 (fortran_preserve_arg_pointer): Declaration.
10350 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10351
ea38e5df
TT
103522019-03-05 Tom Tromey <tromey@adacore.com>
10353
10354 * python/py-prettyprint.c (print_string_repr): Remove #if.
10355 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10356
06b5b831
TT
103572019-03-05 Tom Tromey <tromey@adacore.com>
10358
10359 * target.c (the_dummy_target): Move later. Change type to
10360 "dummy_target".
10361 (initialize_targets): Don't initialize the_dummy_target.
10362
edbd9e45
TT
103632019-03-05 Tom Tromey <tromey@adacore.com>
10364
10365 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10366 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10367
c119e040
TT
103682019-03-05 Tom Tromey <tromey@adacore.com>
10369
10370 * windows-nat.c (windows_nat_target::attach)
10371 (windows_nat_target::detach): Don't call gdb_flush.
10372 * valprint.c (generic_val_print, val_print, val_print_string):
10373 Don't call gdb_flush.
10374 * utils.c (defaulted_query): Don't call gdb_flush.
10375 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10376 * target.c (target_announce_detach): Don't call gdb_flush.
10377 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10378 * remote.c (extended_remote_target::attach): Don't call
10379 gdb_flush.
10380 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10381 * printcmd.c (do_examine): Don't call gdb_flush.
10382 (info_display_command): Don't call gdb_flush.
10383 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10384 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10385 * memattr.c (info_mem_command): Don't call gdb_flush.
10386 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10387 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10388 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10389 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10390 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10391 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10392 (gnu_nat_target::detach): Don't call gdb_flush.
10393 * f-valprint.c (f_val_print): Don't call gdb_flush.
10394 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10395 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10396 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10397 gdb_flush.
10398 * c-valprint.c (c_val_print): Don't call gdb_flush.
10399 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10400
895dafa6
TT
104012019-03-05 Tom Tromey <tromey@adacore.com>
10402
10403 * varobj.c (update_dynamic_varobj_children): Update.
10404 (install_default_visualizer): Use reset, not release.
10405 * value.c (set_internalvar): Update.
10406 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10407 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10408 ATTRIBUTE_UNUSED_RESULT.
10409
88a774b9
TT
104102019-03-05 Tom Tromey <tromey@adacore.com>
10411
10412 * remote.c (class scoped_remote_fd) <release>: Add
10413 ATTRIBUTE_UNUSED_RESULT.
10414
4e4a8b93
TT
104152019-03-05 Tom Tromey <tromey@adacore.com>
10416
10417 * macroexp.c (struct macro_buffer) <release>: Add
10418 ATTRIBUTE_UNUSED_RESULT.
10419
083eef1f
TT
104202019-03-05 Tom Tromey <tromey@adacore.com>
10421
10422 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10423 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10424 ATTRIBUTE_UNUSED_RESULT.
10425
3cabd438
TT
104262019-03-05 Tom Tromey <tromey@adacore.com>
10427
10428 * common/scoped_fd.h (class scoped_fd) <release>: Add
10429 ATTRIBUTE_UNUSED_RESULT.
10430
41e3300a
TT
104312019-03-05 Tom Tromey <tromey@adacore.com>
10432
10433 * parser-defs.h (struct parser_state) <release>: Add
10434 ATTRIBUTE_UNUSED_RESULT.
10435
18cb7c9f
TT
104362019-03-05 Tom Tromey <tromey@adacore.com>
10437
10438 * utils.h (class gdb_argv) <release>: Add
10439 ATTRIBUTE_UNUSED_RESULT.
10440 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10441
41fa577f
EZ
104422019-03-02 Eli Zaretskii <eliz@gnu.org>
10443
a6a4b2c6
EZ
10444 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10445 for-loop range, to avoid compiler warnings.
10446
10447 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10448 avoid compiler warnings about unused variables.
10449
742a7df5
EZ
10450 * NEWS: Mention end of support for native debugging on MS-Windows
10451 before XP.
10452
41fa577f
EZ
10453 PR gdb/24292
10454 * common/netstuff.c:
10455 * gdbserver/gdbreplay.c
10456 * gdbserver/remote-utils.c:
10457 * ser-tcp.c:
10458 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10459 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10460 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10461 'getaddrinfo' and 'freeaddrinfo' were not available before
10462 Windows XP, and mingw.org's MinGW headers by default define
10463 _WIN32_WINNT to 0x500.
10464
827f438f
GB
104652019-03-01 Gary Benson <gbenson@redhat.com>
10466
10467 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10468
92137da0
RO
104692019-02-28 Brian Vandenberg <phantall@gmail.com>
10470 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10471
10472 PR gdb/8527
10473 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10474 set_sigint_trap, clear_sigint_trap.
10475
799efbe8
PW
104762019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10477
10478 * target.c (target_detach): Clear the regcache and the
10479 frame cache.
10480
8ed25214
PA
104812019-02-27 Pedro Alves <palves@redhat.com>
10482
10483 * utils.c (set_screen_size): When we cap the height/width sizes,
10484 tweak the corresponding command variable to show "unlimited":
10485
23031e31
SJ
104862019-02-27 Saagar Jha <saagar@saagarjha.com>
10487 Pedro Alves <palves@redhat.com>
10488
10489 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10490 before calling rl_set_screen_size.
10491
6c28e44a
TT
104922019-02-27 Tom Tromey <tromey@adacore.com>
10493
10494 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10495 define.
10496 * python/py-value.c: Remove Python 2.4 workaround.
10497 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10498 workaround.
10499 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10500 Python 2.4 workaround.
10501 * python/python-internal.h: Remove Python 2.4 comment.
10502 (Py_ssize_t): Don't define.
10503 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10504 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10505 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10506 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10507 * python/python.c (do_start_initialization): Remove Python 2.4
10508 workaround.
10509 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10510 (print_children): Remove Python 2.4 workaround.
10511 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10512 workaround.
10513 (CHARBUFFERPROC_NAME): Remove.
10514 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10515 Python 2.4 workaround.
10516
2c3fc25d 105172019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10518
2c3fc25d
KB
10519 * NEWS: Note minimum Python version.
10520
6ca62222
KB
105212019-02-27 Kevin Buettner <kevinb@redhat.com>
10522
10523 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10524 code from these functions. Remove corresponding ifdefs. Use
10525 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10526 Remove gotos and target of gotos.
10527 (infpy_search_memory): Likewise.
10528
f4bc7d2c
AB
105292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10530
10531 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10532 (hppa_gdbarch_init): Don't register deleted functions with
10533 gdbarch.
10534
9734a586
AB
105352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10536
10537 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10538 (h8300_unwind_sp): Delete.
10539 (h8300_dummy_id): Delete.
10540 (h8300_gdbarch_init): Don't register deleted functions with
10541 gdbarch.
10542
68b867f3
AB
105432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10544
10545 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10546 (ft32_unwind_pc): Delete.
10547 (ft32_unwind_sp): Delete.
10548 (ft32_gdbarch_init): Don't register deleted functions with
10549 gdbarch.
10550
2fbe7ad0
AB
105512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10552
10553 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10554 (frv_unwind_pc): Delete.
10555 (frv_unwind_sp): Delete.
10556 (frv_gdbarch_init): Don't register deleted functions with
10557 gdbarch.
10558
76055cbe
AB
105592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10560
10561 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10562 (riscv_unwind_pc): Delete.
10563 (riscv_unwind_sp): Delete.
10564 (riscv_gdbarch_init): Don't register deleted functions with
10565 gdbarch.
10566
4133e5a1
AB
105672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10568
10569 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10570 (csky_unwind_pc): Delete.
10571 (csky_unwind_sp): Delete.
10572 (csky_gdbarch_init): Don't register deleted functions with
10573 gdbarch.
10574
8010f576
AB
105752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10576
10577 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10578 (cris_unwind_pc): Delete.
10579 (cris_unwind_sp): Delete.
10580 (cris_gdbarch_init): Don't register deleted functions with
10581 gdbarch.
10582
b56bf084
AB
105832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10584
10585 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10586 (bfin_unwind_pc): Delete.
10587 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10588
a19a650f
AB
105892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10590
10591 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10592 (arm_unwind_pc): Delete.
10593 (arm_unwind_sp): Delete.
10594 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10595
f8278c3c
AB
105962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10597
10598 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10599 (arc_unwind_pc): Delete.
10600 (arc_unwind_sp): Delete.
10601 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10602
480e46cf
AB
106032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10604
10605 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10606 (alpha_unwind_pc): Delete.
10607 (alpha_gdbarch_init): Don't register deleted functions with
10608 gdbarch.
10609
7a995095
AB
106102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10611
10612 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10613 (aarch64_unwind_pc): Delete.
10614 (aarch64_unwind_sp): Delete.
10615 (aarch64_gdbarch_init): Don't register deleted functions with
10616 gdbarch.
10617
bf9a735e
AB
106182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10619
10620 * gdbtypes.c (type_align): Don't consider static members when
10621 computing structure alignment.
10622
5561fc30
AB
106232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10624
10625 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10626 return 0 for other types.
10627 * arch-utils.c (default_type_align): Always return 0.
10628 * gdbarch.h: Regenerate.
10629 * gdbarch.sh (type_align): Extend comment.
10630 * gdbtypes.c (type_align): Add additional comments, always call
10631 gdbarch_type_align before applying the default rules.
10632 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10633 generic code will then apply a suitable default.
10634 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10635 types, return 0 for other types.
10636
9335e75a
JB
106372019-02-27 Joel Brobecker <brobecker@adacore.com>
10638
10639 * NEWS: Create a new section for the next release branch.
10640 Rename the section of the current branch, now that it has
10641 been cut.
10642
3d34d8de
JB
106432019-02-27 Joel Brobecker <brobecker@adacore.com>
10644
10645 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10646 * version.in: Bump version to 8.3.50.DATE-git.
10647
143420fb
SM
106482019-02-26 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * aix-thread.c (ptid_cmp): Remove unused variable.
10651 (get_signaled_thread): Likewise.
10652 (store_regs_user_thread): Likewise.
10653 (store_regs_kernel_thread): Likewise.
10654 (fetch_regs_kernel_thread): Remove shadowed variable.
10655
172fb711
AB
106562019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10657
10658 * features/riscv/32bit-cpu.xml: Add register numbers.
10659 * features/riscv/32bit-fpu.c: Regenerate.
10660 * features/riscv/32bit-fpu.xml: Add register numbers.
10661 * features/riscv/64bit-cpu.xml: Add register numbers.
10662 * features/riscv/64bit-fpu.c: Regenerate.
10663 * features/riscv/64bit-fpu.xml: Add register numbers.
10664
26c89782
KB
106652019-02-26 Kevin Buettner <kevinb@redhat.com>
10666
af54ade9 10667 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10668 * python/py-value.c (convert_buffer_and_type_to_value): New
10669 function.
10670 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10671 Add support for handling an optional second argument. Call
10672 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10673 * python/python-internal.h (Py_buffer_deleter): New struct.
10674 (Py_buffer_up): New typedef.
10675
0f58c9e8
JB
106762019-02-25 John Baldwin <jhb@FreeBSD.org>
10677
10678 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10679 instead of releasing ownership.
10680
0a0f4c01
JR
106812019-02-25 Jordan Rupprecht <rupprecht@google.com>
10682
10683 * dwarf2read.c (open_and_init_dwp_file): Call
10684 elf_numsections instead of bfd_count_sections to initialize
10685 dwp_file->num_sections.
10686
cd5a152c
TT
106872019-02-25 Tom Tromey <tromey@adacore.com>
10688
10689 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10690
8a6a8513
SDJ
106912019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10692
10693 * gcore.in: Add '--readnever' option when invoking GDB.
10694
04dcda9c
SM
106952019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10696
10697 * MAINTAINERS: Update my email address.
10698
07bc701d
SM
106992019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10700
10701 * build-id.c (build_id_to_debug_bfd_1): New function.
10702 (build_id_to_debug_bfd): Look for separate debug file in
10703 sysroot.
10704
c6f4a5d0
AB
107052019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10706
10707 * gdbarch.sh: Update the copyright year range that is placed into
10708 generated files.
10709
9600246d
KS
107102019-02-22 Keith Seitz <keiths@redhat.com>
10711
10712 PR symtab/23853
10713 * linespec.c (create_sals_line_offset): Search for the default
10714 symtab's filename instead of its fullname.
10715
7557a514
AH
107162019-02-21 Alan Hayward <alan.hayward@arm.com>
10717
10718 * NEWS: Update style defaults.
10719
ee2bcb0c
AH
107202019-02-21 Alan Hayward <alan.hayward@arm.com>
10721
10722 * main.c (captured_main_1): Disable styling in batch mode.
10723
0c95f9ed
TT
107242019-02-20 Tom Tromey <tom@tromey.com>
10725
10726 * symtab.c (symtab_symbol_info): Fix typos.
10727
c763b894
TT
107282019-02-20 Tom Tromey <tromey@adacore.com>
10729
10730 * findcmd.c (_initialize_mem_search): Use upper case for
10731 metasyntactic variables.
10732
0ef8a082
AH
107332019-02-20 Alan Hayward <alan.hayward@arm.com>
10734
10735 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10736 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10737
6caa91b6
SM
107382019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10739
10740 * top.h (source_file_name): Change to std::string.
10741 * top.c (source_file_name): Likewise.
10742 (command_line_input): Adjust.
10743 * cli/cli-script.c (script_from_file): Adjust.
10744
98814c6c
TT
107452019-02-19 Tom Tromey <tromey@adacore.com>
10746
10747 * ravenscar-thread.c
10748 (ravenscar_thread_target::update_thread_list): Don't call
10749 ada_build_task_list.
10750 * ada-lang.h (ada_build_task_list): Don't declare.
10751 * ada-tasks.c (struct ada_tasks_inferior_data)
10752 <task_list_valid_p>: Now bool.
10753 (read_known_tasks, ada_task_list_changed)
10754 (ada_tasks_invalidate_inferior_data): Update.
10755 (read_known_tasks_array): Return bool.
10756 (read_known_tasks_list): Likewise.
10757 (read_known_tasks): Return void.
10758 (ada_build_task_list): Now static.
10759
70cd633e
AB
107602019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10761
10762 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10763 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10764
040b3e95
PW
107652019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10766
10767 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10768 variant for ada_tasks_pspace_data_handle and
10769 ada_tasks_inferior_data_handle.
10770 (ada_tasks_pspace_data_cleanup): New function.
10771 (ada_tasks_inferior_data_cleanup): New function.
10772
9409233b
TT
107732019-02-17 Tom Tromey <tom@tromey.com>
10774
10775 * macrotab.h (macro_source_fullname): Return a std::string.
10776 * macrotab.c (macro_include, check_for_redefinition)
10777 (macro_undef, macro_lookup_definition, foreach_macro)
10778 (foreach_macro_in_scope): Update.
10779 (macro_source_fullname): Return a std::string.
10780 * macrocmd.c (show_pp_source_pos): Update.
10781
6506371f
TT
107822019-02-17 Tom Tromey <tom@tromey.com>
10783
10784 * macrocmd.c (show_pp_source_pos): Style the file names.
10785
0c820d67
TT
107862019-02-17 Tom Tromey <tom@tromey.com>
10787
10788 PR tui/24197:
10789 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10790
a0087920
TT
107912019-02-17 Tom Tromey <tom@tromey.com>
10792
10793 * ada-lang.c (user_select_syms): Use filtered printing.
10794 * utils.c (wrap_style): New global.
10795 (desired_style): Remove.
10796 (emit_style_escape): Add stream parameter.
10797 (set_output_style, reset_terminal_style, prompt_for_continue):
10798 Update.
10799 (flush_wrap_buffer): Only flush gdb_stdout.
10800 (wrap_here): Set wrap_style.
10801 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10802 treat escape sequences as a character. Change when wrap buffer is
10803 flushed.
10804 (fputs_styled): Do not set the output style when the default is
10805 requested.
10806 * ui-style.h (struct ui_file_style) <is_default>: New method.
10807 * source.c (print_source_lines_base): Emit escape sequences in one
10808 piece.
10809
75ba10dc
JB
108102019-02-17 Joel Brobecker <brobecker@adacore.com>
10811
10812 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10813 integers and enumeration types.
10814
a2cd4f14
JB
108152019-02-17 Joel Brobecker <brobecker@adacore.com>
10816
10817 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10818 instead of lookup_symbol_in_language
10819 (do_exact_match): New function.
10820 (ada_get_symbol_name_matcher): Return do_exact_match when
10821 doing a verbatim match.
10822
485b851b
TT
108232019-02-15 Tom Tromey <tromey@adacore.com>
10824
10825 * ravenscar-thread.c (ravenscar_thread_target::resume)
10826 (ravenscar_thread_target::wait): Special case wildcard requests.
10827
0b790b1e
TT
108282019-02-15 Tom Tromey <tromey@adacore.com>
10829
10830 * ravenscar-thread.c (base_ptid): Remove.
10831 (struct ravenscar_thread_target) <close>: New method.
10832 <m_base_ptid>: New member.
10833 <update_inferior_ptid, active_task, task_is_currently_active,
10834 runtime_initialized>: Declare methods.
10835 <ravenscar_thread_target>: Add constructor.
10836 (ravenscar_thread_target::task_is_currently_active)
10837 (ravenscar_thread_target::update_inferior_ptid)
10838 (ravenscar_runtime_initialized): Rename. Now methods.
10839 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10840 (ravenscar_thread_target::update_thread_list): Update.
10841 (ravenscar_thread_target::active_task): Now method.
10842 (ravenscar_thread_target::store_registers)
10843 (ravenscar_thread_target::prepare_to_store)
10844 (ravenscar_thread_target::prepare_to_store)
10845 (ravenscar_thread_target::mourn_inferior): Update.
10846 (ravenscar_inferior_created): Use "new" to create target.
10847 (ravenscar_thread_target::get_ada_task_ptid): Update.
10848 (_initialize_ravenscar): Don't initialize base_ptid.
10849 (ravenscar_ops): Remove global.
10850
dea57a62
TT
108512019-02-15 Tom Tromey <tromey@adacore.com>
10852
10853 * target.h (push_target): Declare new overload.
10854 * target.c (push_target): New overload, taking an rvalue reference.
10855 * remote.c (remote_target::open_1): Use push_target overload.
10856 * corelow.c (core_target_open): Use push_target overload.
10857
989f3c58
TT
108582019-02-15 Tom Tromey <tromey@adacore.com>
10859
10860 * ravenscar-thread.c (is_ravenscar_task)
10861 (ravenscar_task_is_currently_active): Return bool.
10862 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10863 (_initialize_ravenscar): Remove "(void)".
10864 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10865 Return bool.
10866
6cbcc006
TT
108672019-02-15 Tom Tromey <tromey@adacore.com>
10868
10869 * ravenscar-thread.c (ravenscar_runtime_initializer)
10870 (has_ravenscar_runtime, get_running_thread_id)
10871 (ravenscar_thread_target::resume): Fix indentation.
10872
7657f14d
TT
108732019-02-15 Tom Tromey <tromey@adacore.com>
10874
10875 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10876 from ravenscar_arch_ops.
10877 (sparc_ravenscar_ops::fetch_registers)
10878 (sparc_ravenscar_ops::store_registers): Now methods.
10879 (sparc_ravenscar_prepare_to_store): Remove.
10880 (sparc_ravenscar_ops): Redefine.
10881 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10882 methods and destructor. Remove members.
10883 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10884 (ravenscar_thread_target::store_registers)
10885 (ravenscar_thread_target::prepare_to_store): Update.
10886 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10887 Remove.
10888 (struct ppc_ravenscar_powerpc_ops): Derive from
10889 ravenscar_arch_ops.
10890 (ppc_ravenscar_powerpc_ops::fetch_registers)
10891 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10892 (ppc_ravenscar_powerpc_ops): Redefine.
10893 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10894 (ppc_ravenscar_e500_ops::fetch_registers)
10895 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10896 (ppc_ravenscar_e500_ops): Redefine.
10897 * aarch64-ravenscar-thread.c
10898 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10899 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10900 (aarch64_ravenscar_fetch_registers)
10901 (aarch64_ravenscar_store_registers): Now methods.
10902 (aarch64_ravenscar_ops): Redefine.
10903
5b6ea500
TT
109042019-02-15 Tom Tromey <tromey@adacore.com>
10905
10906 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10907 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10908 (ravenscar_thread_target::stopped_by_watchpoint)
10909 (ravenscar_thread_target::stopped_data_address)
10910 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10911
e397fd39
TT
109122019-02-15 Tom Tromey <tromey@adacore.com>
10913
10914 * ravenscar-thread.c: Fix some typos.
10915
cc12f4a8
TT
109162019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10917 Tom Tromey <tromey@adacore.com>
10918
10919 * ada-lang.c (ada_exception_sal): Change addr_string to a
10920 std::string.
10921 (create_ada_exception_catchpoint): Update.
10922
5f486660
TT
109232019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10924 Tom Tromey <tromey@adacore.com>
10925
10926 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10927 (bp_location_ops): Remove.
10928 (base_breakpoint_allocate_location): Update.
10929 (free_bp_location): Update.
10930 * ada-lang.c (class ada_catchpoint_location)
10931 <ada_catchpoint_location>: Remove ops parameter.
10932 (ada_catchpoint_location_dtor): Remove.
10933 (ada_catchpoint_location_ops): Remove.
10934 (allocate_location_exception): Update.
10935 * breakpoint.h (struct bp_location_ops): Remove.
10936 (class bp_location) <bp_location>: Remove bp_location_ops
10937 parameter.
10938 <~bp_location>: Add destructor.
10939 <ops>: Remove.
10940
b671c7fb
TS
109412019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10942 Pedro Alves <palves@redhat.com>
10943
10944 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10945 'PATH_MAX'.
10946
8071c5ce
DM
109472019-02-14 David Michael <fedora.dm0@gmail.com>
10948 Samuel Thibault <samuel.thibault@gnu.org>
10949 Thomas Schwinge <thomas@codesourcery.com>
10950
10951 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10952 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10953
b1041ae0
TS
109542019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10955
924514e1
TS
10956 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10957 (check_empty): Use "const char *".
10958
c29ee8d4
TS
10959 * gnu-nat.c (gnu_nat_target::detach): Instead of
10960 'detach_inferior (pid)' call
10961 'detach_inferior (find_inferior_pid (pid))'.
10962
6c6ef69f
TS
10963 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10964 'nat/fork-inferior.o'.
10965 * gnu-nat.c: #include "nat/fork-inferior.h".
10966
2d0a338c
TS
10967 * gnu-nat.c (gnu_nat_target::detach): Instead of
10968 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10969 * gnu-nat.h: #include "inf-child.h".
10970 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10971 'i386_gnu_nat_target::fetch_registers'.
10972 (gnu_store_registers): Rename/move to
10973 'i386_gnu_nat_target::store_registers'.
10974
cabb5f06
TS
10975 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10976 * gnu-nat.h (mach_thread_info): New function.
10977 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10978
b1041ae0
TS
10979 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10980
2988d01e
KF
109812019-02-14 Frederic Konrad <konrad@adacore.com>
10982
10983 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10984
c559d709
JB
109852019-02-14 Joel Brobecker <brobecker@adacore.com>
10986
10987 * windows-nat.c (windows_add_thread): Add new parameter
10988 "main_thread_p" with default value set to false. Update
10989 function documentation as well as all callers.
10990 (windows_delete_thread): Likewise.
10991 (fake_create_process): Update call to windows_add_thread.
10992 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10993 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10994 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10995 call to windows_delete_thread.
10996
007024cc
SM
109972019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10998
10999 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11000
f62318e9
JB
110012019-02-12 John Baldwin <jhb@FreeBSD.org>
11002
11003 * symfile.c (find_separate_debug_file): Use canonical path of
11004 sysroot with child_path instead of gdb_sysroot if it is valid.
11005
cd4b7848
JB
110062019-02-12 John Baldwin <jhb@FreeBSD.org>
11007
11008 * symfile.c (find_separate_debug_file): Use child_path to
11009 determine if an object file is under a sysroot.
11010
efac4bfe
JB
110112019-02-12 John Baldwin <jhb@FreeBSD.org>
11012
11013 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11014 unittests/child-path-selftests.c.
11015 * common/pathstuff.c (child_path): New function.
11016 * common/pathstuff.h (child_path): New prototype.
11017 * unittests/child-path-selftests.c: New file.
11018
402d2bfe
JB
110192019-02-12 John Baldwin <jhb@FreeBSD.org>
11020
11021 * symfile.c (find_separate_debug_file): Look for separate debug
11022 files in debug directories under the sysroot.
11023
1ed9f74e
PW
110242019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11025
11026 * symtab.h (struct minimal_symbol data_p): New const method.
11027 (struct minimal_symbol text_p): Likewise.
11028 * symtab.c (output_source_filename): Use file name style
11029 to print file name.
11030 (print_symbol_info): Likewise.
11031 (print_msymbol_info): Use address style to print addresses.
11032 Use function name style to print executable text symbols.
11033 (expand_symtab_containing_pc): Use data_p.
11034 (find_pc_sect_compunit_symtab): Likewise.
11035
2636d81d
PW
110362019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11037
11038 * breakpoint.c (describe_other_breakpoints): Use address style
11039 to print addresses.
11040 (say_where): Likewise.
11041
ac8c53cc
PW
110422019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11043
11044 * ada-typeprint.c (print_func_type): Print function name
11045 style to print function name.
11046 * c-typeprint.c (c_print_type_1): Likewise.
11047
ea638c43
AH
110482019-02-11 Alan Hayward <alan.hayward@arm.com>
11049
11050 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11051 for execve.
11052
ab759ca8
PW
110532019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11054
11055 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11056 type_stack.
11057
aff29d1c
JB
110582019-02-10 Joel Brobecker <brobecker@adacore.com>
11059
11060 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11061 TYPE_CODE_REF types.
11062
617126bc
JW
110632019-02-08 Jim Wilson <jimw@sifive.com>
11064
11065 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11066 (riscv_linux_fregset): New.
11067 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11068
46e3ed7f
TT
110692019-02-07 Tom Tromey <tom@tromey.com>
11070
11071 * thread.c (thread_cancel_execution_command): Update.
11072 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11073 methods.
11074 (struct thread_fsm_ops): Remove.
11075 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11076 (thread_fsm_should_stop, thread_fsm_return_value)
11077 (thread_fsm_set_finished, thread_fsm_finished_p)
11078 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11079 Don't declare.
11080 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11081 * infrun.c (clear_proceed_status_thread)
11082 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11083 (print_stop_event): Update.
11084 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11085 Add constructor.
11086 (step_command_fsm_ops): Remove.
11087 (new_step_command_fsm): Remove.
11088 (step_1): Update.
11089 (step_command_fsm::should_stop): Rename from
11090 step_command_fsm_should_stop.
11091 (step_command_fsm::clean_up): Rename from
11092 step_command_fsm_clean_up.
11093 (step_command_fsm::do_async_reply_reason): Rename from
11094 step_command_fsm_async_reply_reason.
11095 (struct until_next_fsm): Inherit from thread_fsm. Add
11096 constructor.
11097 (until_next_fsm_ops): Remove.
11098 (new_until_next_fsm): Remove.
11099 (until_next_fsm::should_stop): Rename from
11100 until_next_fsm_should_stop.
11101 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11102 (until_next_fsm::do_async_reply_reason): Rename from
11103 until_next_fsm_async_reply_reason.
11104 (struct finish_command_fsm): Inherit from thread_fsm. Add
11105 constructor. Change type of breakpoint.
11106 (finish_command_fsm_ops): Remove.
11107 (new_finish_command_fsm): Remove.
11108 (finish_command_fsm::should_stop): Rename from
11109 finish_command_fsm_should_stop.
11110 (finish_command_fsm::clean_up): Rename from
11111 finish_command_fsm_clean_up.
11112 (finish_command_fsm::return_value): Rename from
11113 finish_command_fsm_return_value.
11114 (finish_command_fsm::do_async_reply_reason): Rename from
11115 finish_command_fsm_async_reply_reason.
11116 (finish_command): Update.
11117 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11118 Add constructor.
11119 (call_thread_fsm_ops): Remove.
11120 (call_thread_fsm::call_thread_fsm): Rename from
11121 new_call_thread_fsm.
11122 (call_thread_fsm::should_stop): Rename from
11123 call_thread_fsm_should_stop.
11124 (call_thread_fsm::should_notify_stop): Rename from
11125 call_thread_fsm_should_notify_stop.
11126 (run_inferior_call, call_function_by_hand_dummy): Update.
11127 * cli/cli-interp.c (should_print_stop_to_console): Update.
11128 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11129 Add constructor. Change type of location_breakpoint,
11130 caller_breakpoint.
11131 (until_break_fsm_ops): Remove.
11132 (new_until_break_fsm): Remove.
11133 (until_break_fsm::should_stop): Rename from
11134 until_break_fsm_should_stop.
11135 (until_break_fsm::clean_up): Rename from
11136 until_break_fsm_clean_up.
11137 (until_break_fsm::do_async_reply_reason): Rename from
11138 until_break_fsm_async_reply_reason.
11139 (until_break_command): Update.
11140 * thread-fsm.c: Remove.
11141 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11142
1a5c2598
TT
111432019-02-07 Tom Tromey <tom@tromey.com>
11144
11145 * yy-remap.h: Add include guard.
11146 * xtensa-tdep.h: Add include guard.
11147 * xcoffread.h: Rename include guard.
11148 * varobj-iter.h: Add include guard.
11149 * tui/tui.h: Rename include guard.
11150 * tui/tui-winsource.h: Rename include guard.
11151 * tui/tui-wingeneral.h: Rename include guard.
11152 * tui/tui-windata.h: Rename include guard.
11153 * tui/tui-win.h: Rename include guard.
11154 * tui/tui-stack.h: Rename include guard.
11155 * tui/tui-source.h: Rename include guard.
11156 * tui/tui-regs.h: Rename include guard.
11157 * tui/tui-out.h: Rename include guard.
11158 * tui/tui-layout.h: Rename include guard.
11159 * tui/tui-io.h: Rename include guard.
11160 * tui/tui-hooks.h: Rename include guard.
11161 * tui/tui-file.h: Rename include guard.
11162 * tui/tui-disasm.h: Rename include guard.
11163 * tui/tui-data.h: Rename include guard.
11164 * tui/tui-command.h: Rename include guard.
11165 * tic6x-tdep.h: Add include guard.
11166 * target/waitstatus.h: Rename include guard.
11167 * target/wait.h: Rename include guard.
11168 * target/target.h: Rename include guard.
11169 * target/resume.h: Rename include guard.
11170 * target-float.h: Rename include guard.
11171 * stabsread.h: Add include guard.
11172 * rs6000-tdep.h: Add include guard.
11173 * riscv-fbsd-tdep.h: Add include guard.
11174 * regformats/regdef.h: Rename include guard.
11175 * record.h: Rename include guard.
11176 * python/python.h: Rename include guard.
11177 * python/python-internal.h: Rename include guard.
11178 * python/py-stopevent.h: Rename include guard.
11179 * python/py-ref.h: Rename include guard.
11180 * python/py-record.h: Rename include guard.
11181 * python/py-record-full.h: Rename include guard.
11182 * python/py-record-btrace.h: Rename include guard.
11183 * python/py-instruction.h: Rename include guard.
11184 * python/py-events.h: Rename include guard.
11185 * python/py-event.h: Rename include guard.
11186 * procfs.h: Add include guard.
11187 * proc-utils.h: Add include guard.
11188 * p-lang.h: Add include guard.
11189 * or1k-tdep.h: Rename include guard.
11190 * observable.h: Rename include guard.
11191 * nto-tdep.h: Rename include guard.
11192 * nat/x86-linux.h: Rename include guard.
11193 * nat/x86-linux-dregs.h: Rename include guard.
11194 * nat/x86-gcc-cpuid.h: Add include guard.
11195 * nat/x86-dregs.h: Rename include guard.
11196 * nat/x86-cpuid.h: Rename include guard.
11197 * nat/ppc-linux.h: Rename include guard.
11198 * nat/mips-linux-watch.h: Rename include guard.
11199 * nat/linux-waitpid.h: Rename include guard.
11200 * nat/linux-ptrace.h: Rename include guard.
11201 * nat/linux-procfs.h: Rename include guard.
11202 * nat/linux-osdata.h: Rename include guard.
11203 * nat/linux-nat.h: Rename include guard.
11204 * nat/linux-namespaces.h: Rename include guard.
11205 * nat/linux-btrace.h: Rename include guard.
11206 * nat/glibc_thread_db.h: Rename include guard.
11207 * nat/gdb_thread_db.h: Rename include guard.
11208 * nat/gdb_ptrace.h: Rename include guard.
11209 * nat/fork-inferior.h: Rename include guard.
11210 * nat/amd64-linux-siginfo.h: Rename include guard.
11211 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11212 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11213 * nat/aarch64-linux.h: Rename include guard.
11214 * nat/aarch64-linux-hw-point.h: Rename include guard.
11215 * mn10300-tdep.h: Add include guard.
11216 * mips-linux-tdep.h: Add include guard.
11217 * mi/mi-parse.h: Rename include guard.
11218 * mi/mi-out.h: Rename include guard.
11219 * mi/mi-main.h: Rename include guard.
11220 * mi/mi-interp.h: Rename include guard.
11221 * mi/mi-getopt.h: Rename include guard.
11222 * mi/mi-console.h: Rename include guard.
11223 * mi/mi-common.h: Rename include guard.
11224 * mi/mi-cmds.h: Rename include guard.
11225 * mi/mi-cmd-break.h: Rename include guard.
11226 * m2-lang.h: Add include guard.
11227 * location.h: Rename include guard.
11228 * linux-record.h: Rename include guard.
11229 * linux-nat.h: Add include guard.
11230 * linux-fork.h: Add include guard.
11231 * i386-darwin-tdep.h: Rename include guard.
11232 * hppa-linux-offsets.h: Add include guard.
11233 * guile/guile.h: Rename include guard.
11234 * guile/guile-internal.h: Rename include guard.
11235 * gnu-nat.h: Rename include guard.
11236 * gdb-stabs.h: Rename include guard.
11237 * frv-tdep.h: Add include guard.
11238 * f-lang.h: Add include guard.
11239 * event-loop.h: Add include guard.
11240 * darwin-nat.h: Rename include guard.
11241 * cp-abi.h: Rename include guard.
11242 * config/sparc/nm-sol2.h: Rename include guard.
11243 * config/nm-nto.h: Rename include guard.
11244 * config/nm-linux.h: Add include guard.
11245 * config/i386/nm-i386gnu.h: Rename include guard.
11246 * config/djgpp/nl_types.h: Rename include guard.
11247 * config/djgpp/langinfo.h: Rename include guard.
11248 * compile/gcc-cp-plugin.h: Add include guard.
11249 * compile/gcc-c-plugin.h: Add include guard.
11250 * compile/compile.h: Rename include guard.
11251 * compile/compile-object-run.h: Rename include guard.
11252 * compile/compile-object-load.h: Rename include guard.
11253 * compile/compile-internal.h: Rename include guard.
11254 * compile/compile-cplus.h: Rename include guard.
11255 * compile/compile-c.h: Rename include guard.
11256 * common/xml-utils.h: Rename include guard.
11257 * common/x86-xstate.h: Rename include guard.
11258 * common/version.h: Rename include guard.
11259 * common/vec.h: Rename include guard.
11260 * common/tdesc.h: Rename include guard.
11261 * common/selftest.h: Rename include guard.
11262 * common/scoped_restore.h: Rename include guard.
11263 * common/scoped_mmap.h: Rename include guard.
11264 * common/scoped_fd.h: Rename include guard.
11265 * common/safe-iterator.h: Rename include guard.
11266 * common/run-time-clock.h: Rename include guard.
11267 * common/refcounted-object.h: Rename include guard.
11268 * common/queue.h: Rename include guard.
11269 * common/ptid.h: Rename include guard.
11270 * common/print-utils.h: Rename include guard.
11271 * common/preprocessor.h: Rename include guard.
11272 * common/pathstuff.h: Rename include guard.
11273 * common/observable.h: Rename include guard.
11274 * common/netstuff.h: Rename include guard.
11275 * common/job-control.h: Rename include guard.
11276 * common/host-defs.h: Rename include guard.
11277 * common/gdb_wait.h: Rename include guard.
11278 * common/gdb_vecs.h: Rename include guard.
11279 * common/gdb_unlinker.h: Rename include guard.
11280 * common/gdb_unique_ptr.h: Rename include guard.
11281 * common/gdb_tilde_expand.h: Rename include guard.
11282 * common/gdb_sys_time.h: Rename include guard.
11283 * common/gdb_string_view.h: Rename include guard.
11284 * common/gdb_splay_tree.h: Rename include guard.
11285 * common/gdb_setjmp.h: Rename include guard.
11286 * common/gdb_ref_ptr.h: Rename include guard.
11287 * common/gdb_optional.h: Rename include guard.
11288 * common/gdb_locale.h: Rename include guard.
11289 * common/gdb_assert.h: Rename include guard.
11290 * common/filtered-iterator.h: Rename include guard.
11291 * common/filestuff.h: Rename include guard.
11292 * common/fileio.h: Rename include guard.
11293 * common/environ.h: Rename include guard.
11294 * common/common-utils.h: Rename include guard.
11295 * common/common-types.h: Rename include guard.
11296 * common/common-regcache.h: Rename include guard.
11297 * common/common-inferior.h: Rename include guard.
11298 * common/common-gdbthread.h: Rename include guard.
11299 * common/common-exceptions.h: Rename include guard.
11300 * common/common-defs.h: Rename include guard.
11301 * common/common-debug.h: Rename include guard.
11302 * common/cleanups.h: Rename include guard.
11303 * common/buffer.h: Rename include guard.
11304 * common/btrace-common.h: Rename include guard.
11305 * common/break-common.h: Rename include guard.
11306 * cli/cli-utils.h: Rename include guard.
11307 * cli/cli-style.h: Rename include guard.
11308 * cli/cli-setshow.h: Rename include guard.
11309 * cli/cli-script.h: Rename include guard.
11310 * cli/cli-interp.h: Rename include guard.
11311 * cli/cli-decode.h: Rename include guard.
11312 * cli/cli-cmds.h: Rename include guard.
11313 * charset-list.h: Add include guard.
11314 * buildsym-legacy.h: Rename include guard.
11315 * bfin-tdep.h: Add include guard.
11316 * ax.h: Rename include guard.
11317 * arm-linux-tdep.h: Add include guard.
11318 * arm-fbsd-tdep.h: Add include guard.
11319 * arch/xtensa.h: Rename include guard.
11320 * arch/tic6x.h: Add include guard.
11321 * arch/i386.h: Add include guard.
11322 * arch/arm.h: Rename include guard.
11323 * arch/arm-linux.h: Rename include guard.
11324 * arch/arm-get-next-pcs.h: Rename include guard.
11325 * arch/amd64.h: Add include guard.
11326 * arch/aarch64-insn.h: Rename include guard.
11327 * arch-utils.h: Rename include guard.
11328 * annotate.h: Add include guard.
11329 * amd64-darwin-tdep.h: Rename include guard.
11330 * aarch64-linux-tdep.h: Add include guard.
11331 * aarch64-fbsd-tdep.h: Add include guard.
11332 * aarch32-linux-nat.h: Add include guard.
11333
ab9268d2
PW
113342019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11335
11336 * macrotab.c (macro_define_internal): New function that
11337 factorizes macro_define_object_internal and macro_define_function
11338 code.
11339 (macro_define_object_internal): Use macro_define_internal.
11340 (macro_define_function): Likewise.
11341
bb0da2b4
PW
113422019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11343
11344 * macrocmd.c (extract_identifier): Return
11345 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11346 callers.
11347
424eb552
JB
113482019-02-06 John Baldwin <jhb@FreeBSD.org>
11349
11350 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11351
1688cb29
TT
113522019-02-05 Tom Tromey <tom@tromey.com>
11353
11354 * target.c (target_stack::unpush): Move assertion earlier.
11355
b5eba2d8
TT
113562019-01-30 Tom Tromey <tom@tromey.com>
11357
11358 PR python/23615:
11359 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11360 (gdbpy_parse_and_eval): Likewise.
11361 * python/python-internal.h (gdbpy_allow_threads): New class.
11362
7054e2ff
JB
113632019-01-28 John Baldwin <jhb@FreeBSD.org>
11364
11365 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11366 (aarch64_fbsd_fpregmap): Move earlier.
11367 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11368 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11369 instead of individual calls to trad_frame_set_reg_addr.
11370 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11371 earlier.
11372 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11373 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11374 instead of individual calls to trad_frame_set_reg_addr.
11375
36c25ffa
AH
113762019-01-28 Alan Hayward <alan.hayward@arm.com>
11377
11378 * CONTRIBUTE: Replace contribution list with wiki link.
11379
a0707f3c
TT
113802019-01-25 Tom Tromey <tom@tromey.com>
11381
11382 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11383
0747795c
TT
113842019-01-25 Tom Tromey <tom@tromey.com>
11385
11386 * xtensa-linux-nat.c: Fix common/ includes.
11387 * xml-support.h: Fix common/ includes.
11388 * xml-support.c: Fix common/ includes.
11389 * x86-linux-nat.c: Fix common/ includes.
11390 * windows-nat.c: Fix common/ includes.
11391 * varobj.h: Fix common/ includes.
11392 * varobj.c: Fix common/ includes.
11393 * value.c: Fix common/ includes.
11394 * valops.c: Fix common/ includes.
11395 * utils.c: Fix common/ includes.
11396 * unittests/xml-utils-selftests.c: Fix common/ includes.
11397 * unittests/utils-selftests.c: Fix common/ includes.
11398 * unittests/unpack-selftests.c: Fix common/ includes.
11399 * unittests/tracepoint-selftests.c: Fix common/ includes.
11400 * unittests/style-selftests.c: Fix common/ includes.
11401 * unittests/string_view-selftests.c: Fix common/ includes.
11402 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11403 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11404 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11405 * unittests/rsp-low-selftests.c: Fix common/ includes.
11406 * unittests/parse-connection-spec-selftests.c: Fix common/
11407 includes.
11408 * unittests/optional-selftests.c: Fix common/ includes.
11409 * unittests/offset-type-selftests.c: Fix common/ includes.
11410 * unittests/observable-selftests.c: Fix common/ includes.
11411 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11412 * unittests/memrange-selftests.c: Fix common/ includes.
11413 * unittests/memory-map-selftests.c: Fix common/ includes.
11414 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11415 * unittests/function-view-selftests.c: Fix common/ includes.
11416 * unittests/environ-selftests.c: Fix common/ includes.
11417 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11418 * unittests/common-utils-selftests.c: Fix common/ includes.
11419 * unittests/cli-utils-selftests.c: Fix common/ includes.
11420 * unittests/array-view-selftests.c: Fix common/ includes.
11421 * ui-file.c: Fix common/ includes.
11422 * tui/tui-io.c: Fix common/ includes.
11423 * tracepoint.h: Fix common/ includes.
11424 * tracepoint.c: Fix common/ includes.
11425 * tracefile-tfile.c: Fix common/ includes.
11426 * top.h: Fix common/ includes.
11427 * top.c: Fix common/ includes.
11428 * thread.c: Fix common/ includes.
11429 * target/waitstatus.h: Fix common/ includes.
11430 * target/waitstatus.c: Fix common/ includes.
11431 * target.h: Fix common/ includes.
11432 * target.c: Fix common/ includes.
11433 * target-memory.c: Fix common/ includes.
11434 * target-descriptions.c: Fix common/ includes.
11435 * symtab.h: Fix common/ includes.
11436 * symfile.c: Fix common/ includes.
11437 * stap-probe.c: Fix common/ includes.
11438 * spu-linux-nat.c: Fix common/ includes.
11439 * sparc-nat.c: Fix common/ includes.
11440 * source.c: Fix common/ includes.
11441 * solib.c: Fix common/ includes.
11442 * solib-target.c: Fix common/ includes.
11443 * ser-unix.c: Fix common/ includes.
11444 * ser-tcp.c: Fix common/ includes.
11445 * ser-pipe.c: Fix common/ includes.
11446 * ser-base.c: Fix common/ includes.
11447 * selftest-arch.c: Fix common/ includes.
11448 * s12z-tdep.c: Fix common/ includes.
11449 * rust-exp.y: Fix common/ includes.
11450 * rs6000-aix-tdep.c: Fix common/ includes.
11451 * riscv-tdep.c: Fix common/ includes.
11452 * remote.c: Fix common/ includes.
11453 * remote-notif.h: Fix common/ includes.
11454 * remote-fileio.h: Fix common/ includes.
11455 * remote-fileio.c: Fix common/ includes.
11456 * regcache.h: Fix common/ includes.
11457 * regcache.c: Fix common/ includes.
11458 * record-btrace.c: Fix common/ includes.
11459 * python/python.c: Fix common/ includes.
11460 * python/py-type.c: Fix common/ includes.
11461 * python/py-inferior.c: Fix common/ includes.
11462 * progspace.h: Fix common/ includes.
11463 * producer.c: Fix common/ includes.
11464 * procfs.c: Fix common/ includes.
11465 * proc-api.c: Fix common/ includes.
11466 * printcmd.c: Fix common/ includes.
11467 * ppc-linux-nat.c: Fix common/ includes.
11468 * parser-defs.h: Fix common/ includes.
11469 * osdata.c: Fix common/ includes.
11470 * obsd-nat.c: Fix common/ includes.
11471 * nat/x86-linux.c: Fix common/ includes.
11472 * nat/x86-linux-dregs.c: Fix common/ includes.
11473 * nat/x86-dregs.h: Fix common/ includes.
11474 * nat/x86-dregs.c: Fix common/ includes.
11475 * nat/ppc-linux.c: Fix common/ includes.
11476 * nat/mips-linux-watch.h: Fix common/ includes.
11477 * nat/mips-linux-watch.c: Fix common/ includes.
11478 * nat/linux-waitpid.c: Fix common/ includes.
11479 * nat/linux-ptrace.h: Fix common/ includes.
11480 * nat/linux-ptrace.c: Fix common/ includes.
11481 * nat/linux-procfs.c: Fix common/ includes.
11482 * nat/linux-personality.c: Fix common/ includes.
11483 * nat/linux-osdata.c: Fix common/ includes.
11484 * nat/linux-namespaces.c: Fix common/ includes.
11485 * nat/linux-btrace.h: Fix common/ includes.
11486 * nat/linux-btrace.c: Fix common/ includes.
11487 * nat/fork-inferior.c: Fix common/ includes.
11488 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11489 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11490 * nat/aarch64-linux.c: Fix common/ includes.
11491 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11492 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11493 * namespace.h: Fix common/ includes.
11494 * mips-linux-tdep.c: Fix common/ includes.
11495 * minsyms.c: Fix common/ includes.
11496 * mi/mi-parse.h: Fix common/ includes.
11497 * mi/mi-main.c: Fix common/ includes.
11498 * mi/mi-cmd-env.c: Fix common/ includes.
11499 * memrange.h: Fix common/ includes.
11500 * memattr.c: Fix common/ includes.
11501 * maint.h: Fix common/ includes.
11502 * maint.c: Fix common/ includes.
11503 * main.c: Fix common/ includes.
11504 * machoread.c: Fix common/ includes.
11505 * location.c: Fix common/ includes.
11506 * linux-thread-db.c: Fix common/ includes.
11507 * linux-nat.c: Fix common/ includes.
11508 * linux-fork.c: Fix common/ includes.
11509 * inline-frame.c: Fix common/ includes.
11510 * infrun.c: Fix common/ includes.
11511 * inflow.c: Fix common/ includes.
11512 * inferior.h: Fix common/ includes.
11513 * inferior.c: Fix common/ includes.
11514 * infcmd.c: Fix common/ includes.
11515 * inf-ptrace.c: Fix common/ includes.
11516 * inf-child.c: Fix common/ includes.
11517 * ia64-linux-nat.c: Fix common/ includes.
11518 * i387-tdep.c: Fix common/ includes.
11519 * i386-tdep.c: Fix common/ includes.
11520 * i386-linux-tdep.c: Fix common/ includes.
11521 * i386-linux-nat.c: Fix common/ includes.
11522 * i386-go32-tdep.c: Fix common/ includes.
11523 * i386-fbsd-tdep.c: Fix common/ includes.
11524 * i386-fbsd-nat.c: Fix common/ includes.
11525 * guile/scm-type.c: Fix common/ includes.
11526 * guile/guile.c: Fix common/ includes.
11527 * go32-nat.c: Fix common/ includes.
11528 * gnu-nat.c: Fix common/ includes.
11529 * gdbthread.h: Fix common/ includes.
11530 * gdbarch-selftests.c: Fix common/ includes.
11531 * gdb_usleep.c: Fix common/ includes.
11532 * gdb_select.h: Fix common/ includes.
11533 * gdb_bfd.c: Fix common/ includes.
11534 * gcore.c: Fix common/ includes.
11535 * fork-child.c: Fix common/ includes.
11536 * findvar.c: Fix common/ includes.
11537 * fbsd-nat.c: Fix common/ includes.
11538 * event-top.c: Fix common/ includes.
11539 * event-loop.c: Fix common/ includes.
11540 * dwarf2read.c: Fix common/ includes.
11541 * dwarf2loc.c: Fix common/ includes.
11542 * dwarf2-frame.c: Fix common/ includes.
11543 * dwarf-index-cache.c: Fix common/ includes.
11544 * dtrace-probe.c: Fix common/ includes.
11545 * disasm-selftests.c: Fix common/ includes.
11546 * defs.h: Fix common/ includes.
11547 * csky-tdep.c: Fix common/ includes.
11548 * cp-valprint.c: Fix common/ includes.
11549 * cp-support.h: Fix common/ includes.
11550 * cp-support.c: Fix common/ includes.
11551 * corelow.c: Fix common/ includes.
11552 * completer.h: Fix common/ includes.
11553 * completer.c: Fix common/ includes.
11554 * compile/compile.c: Fix common/ includes.
11555 * compile/compile-loc2c.c: Fix common/ includes.
11556 * compile/compile-cplus-types.c: Fix common/ includes.
11557 * compile/compile-cplus-symbols.c: Fix common/ includes.
11558 * command.h: Fix common/ includes.
11559 * cli/cli-dump.c: Fix common/ includes.
11560 * cli/cli-cmds.c: Fix common/ includes.
11561 * charset.c: Fix common/ includes.
11562 * build-id.c: Fix common/ includes.
11563 * btrace.h: Fix common/ includes.
11564 * btrace.c: Fix common/ includes.
11565 * breakpoint.h: Fix common/ includes.
11566 * breakpoint.c: Fix common/ includes.
11567 * ax.h:
11568 (enum agent_op): Fix common/ includes.
11569 * ax-general.c (struct aop_map): Fix common/ includes.
11570 * ax-gdb.c: Fix common/ includes.
11571 * auxv.c: Fix common/ includes.
11572 * auto-load.c: Fix common/ includes.
11573 * arm-tdep.c: Fix common/ includes.
11574 * arch/riscv.c: Fix common/ includes.
11575 * arch/ppc-linux-common.c: Fix common/ includes.
11576 * arch/i386.c: Fix common/ includes.
11577 * arch/arm.c: Fix common/ includes.
11578 * arch/arm-linux.c: Fix common/ includes.
11579 * arch/arm-get-next-pcs.c: Fix common/ includes.
11580 * arch/amd64.c: Fix common/ includes.
11581 * arch/aarch64.c: Fix common/ includes.
11582 * arch/aarch64-insn.c: Fix common/ includes.
11583 * arch-utils.c: Fix common/ includes.
11584 * amd64-windows-tdep.c: Fix common/ includes.
11585 * amd64-tdep.c: Fix common/ includes.
11586 * amd64-sol2-tdep.c: Fix common/ includes.
11587 * amd64-obsd-tdep.c: Fix common/ includes.
11588 * amd64-nbsd-tdep.c: Fix common/ includes.
11589 * amd64-linux-tdep.c: Fix common/ includes.
11590 * amd64-linux-nat.c: Fix common/ includes.
11591 * amd64-fbsd-tdep.c: Fix common/ includes.
11592 * amd64-fbsd-nat.c: Fix common/ includes.
11593 * amd64-dicos-tdep.c: Fix common/ includes.
11594 * amd64-darwin-tdep.c: Fix common/ includes.
11595 * agent.c: Fix common/ includes.
11596 * ada-lang.h: Fix common/ includes.
11597 * ada-lang.c: Fix common/ includes.
11598 * aarch64-tdep.c: Fix common/ includes.
11599
2f5c153e
TT
116002019-01-25 Tom Tromey <tom@tromey.com>
11601
11602 * common/create-version.sh: Use common/version.h.
11603
adc6a863
PA
116042019-01-24 Pedro Alves <palves@redhat.com>
11605
11606 * infrun.c (signal_stop, signal_print, signal_program)
11607 (signal_catch, signal_pass): Now arrays instead of pointers.
11608 (update_signals_program_target, do_target_resume)
11609 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11610 * linux-nat.c (linux_nat_target::pass_signals)
11611 (linux_nat_target::create_inferior, linux_nat_target::attach):
11612 Adjust.
11613 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11614 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11615 * procfs.c (procfs_target::pass_signals): Adjust.
11616 * record-full.c (record_full_target::resume): Adjust.
11617 * remote.c (remote_target::pass_signals)
11618 (remote_target::program_signals): Adjust.
11619 * target-debug.h (target_debug_print_signals): Now takes a
11620 gdb::array_view as parameter. Adjust.
11621 * target.h (target_ops) <pass_signals, program_signals>: Replace
11622 pointer and length parameters with gdb::array_view.
11623 (target_pass_signals, target_program_signals): Likewise.
11624 * target-delegates.c: Regenerate.
11625
3046d67a
PA
116262019-01-24 Pedro Alves <palves@redhat.com>
11627
11628 * common/forward-scope-exit.h
11629 (forward_scope_exit::forward_scope_exit): Pass arguments to
11630 m_bind_function directly, instead of creating a std::bind and
11631 copying that.
11632
353229bf
AH
116332019-01-24 Alan Hayward <alan.hayward@arm.com>
11634
11635 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11636 for static members.
11637 (pass_in_v_vfp_candidate): Likewise.
11638
311dc83a
TT
116392019-01-23 Tom Tromey <tom@tromey.com>
11640 Pedro Alves <palves@redhat.com>
11641
11642 * regcache.c (class regcache_invalidator): Remove.
11643 (regcache::raw_write): Use make_scope_exit.
11644
296bd123
TT
116452019-01-23 Tom Tromey <tom@tromey.com>
11646
11647 * ui-out.h (class ui_out_emit_type): Update comment.
11648
979a0d13
TT
116492019-01-23 Tom Tromey <tom@tromey.com>
11650
11651 * infrun.c (fetch_inferior_event): Update comment.
11652
d238133d
TT
116532019-01-23 Tom Tromey <tom@tromey.com>
11654 Pedro Alves <palves@redhat.com>
11655
11656 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11657 parameter.
11658 (fetch_inferior_event): Use SCOPE_EXIT.
11659
11660
9885e6bb
TT
116612019-01-23 Tom Tromey <tom@tromey.com>
11662 Pedro Alves <palves@redhat.com>
11663
11664 * infrun.c (disable_thread_events): Delete.
11665 (stop_all_threads): Use SCOPE_EXIT.
11666
286526c1
TT
116672019-01-23 Tom Tromey <tom@tromey.com>
11668 Pedro Alves <palves@redhat.com>
11669
11670 * symfile.c: Include forward-scope-exit.h.
11671 (clear_symtab_users_cleanup): Replace forward declaration with
11672 a FORWARD_SCOPE_EXIT.
11673 (syms_from_objfile_1): Use the forward_scope_exit and
11674 gdb::optional instead of cleanup_function.
11675 (reread_symbols): Use the forward_scope_exit instead of
11676 cleanup_function.
11677 (clear_symtab_users_cleanup): Remove function.
11678
1db93f14
TT
116792019-01-23 Tom Tromey <tom@tromey.com>
11680 Pedro Alves <palves@redhat.com>
11681
11682 * linux-nat.c: Include scope-exit.h.
11683 (cleanup_target_stop): Remove.
11684 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11685 SCOPE_EXIT.
11686
2cc83d1e
TT
116872019-01-23 Tom Tromey <tom@tromey.com>
11688 Pedro Alves <palves@redhat.com>
11689
11690 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11691 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11692
694c6bf5
TT
116932019-01-23 Tom Tromey <tom@tromey.com>
11694 Andrew Burgess <andrew.burgess@embecosm.com>
11695 Pedro Alves <palves@redhat.com>
11696
11697 * infrun.c (fetch_inferior_event): Use scope_exit.
11698 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11699 * top.c (execute_command): Use scope_exit.
11700 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11701 * utils.c (do_bpstat_clear_actions_cleanup)
11702 (make_bpstat_clear_actions_cleanup): Remove.
11703
4c41382a
TT
117042019-01-23 Tom Tromey <tom@tromey.com>
11705 Pedro Alves <palves@redhat.com>
11706
11707 * infrun.c: Include "common/scope-exit.h"
11708 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11709 (wait_for_inferior): Use SCOPE_EXIT.
11710 (fetch_inferior_event): Use scope_exit.
11711
89f8fb50
TT
117122019-01-23 Tom Tromey <tom@tromey.com>
11713 Pedro Alves <palves@redhat.com>
11714
11715 * breakpoint.c (create_breakpoint): Remove cleanup.
11716
5419bdae
TT
117172019-01-23 Tom Tromey <tom@tromey.com>
11718 Andrew Burgess <andrew.burgess@embecosm.com>
11719 Pedro Alves <palves@redhat.com>
11720
e587ef42
PA
117212019-01-23 Pedro Alves <palves@redhat.com>
11722
11723 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11724
77f0e74c
PA
117252019-01-23 Pedro Alves <palves@redhat.com>
11726 Andrew Burgess <andrew.burgess@embecosm.com>
11727
11728 * gdbthread.h: Include "common/forward-scope-exit.h".
11729 (scoped_finish_thread_state): Redefine custom class in terms of
11730 forward_scope_exit.
11731
5b9b3e53
PA
117322019-01-23 Pedro Alves <palves@redhat.com>
11733 Andrew Burgess <andrew.burgess@embecosm.com>
11734
11735 * common/forward-scope-exit.h: New file.
11736
54b65c9b
PA
117372019-01-23 Pedro Alves <palves@redhat.com>
11738 Andrew Burgess <andrew.burgess@embecosm.com>
11739 Tom Tromey <tom@tromey.com>
11740
11741 * common/scope-exit.h: New file.
11742
cf08fb29
PA
117432019-01-23 Pedro Alves <palves@redhat.com>
11744
11745 * common/preprocessor.h (ESC): Rename to ...
11746 (ESC_PARENS): ... this.
11747 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11748 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11749
ae73e2e2
TT
117502019-01-23 Tom Tromey <tom@tromey.com>
11751
11752 * language.h (class scoped_switch_to_sym_language_if_auto):
11753 Initialize m_lang in both cases.
11754
6594e122
AH
117552019-01-23 Alan Hayward <alan.hayward@arm.com>
11756
11757 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11758 with XCNEW.
11759
a7c9855d
TT
117602019-01-22 Tom Tromey <tom@tromey.com>
11761
11762 * corelow.c: Do not include sys/file.h.
11763
93cc1d53
TT
117642019-01-22 Tom Tromey <tom@tromey.com>
11765
11766 * tui/tui-wingeneral.h: Include gdb_curses.h.
11767
38561778
TT
117682019-01-22 Tom Tromey <tom@tromey.com>
11769
11770 * source-cache.h (class source_cache) <get_source_lines,
11771 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11772
37b3ab5b
TT
117732019-01-22 Tom Tromey <tom@tromey.com>
11774
11775 * remote-fileio.h (struct remote_target): Declare.
11776
3fabc016
TT
117772019-01-22 Tom Tromey <tom@tromey.com>
11778
11779 * python/py-arch.c: Do not include py-ref.h.
11780 * python/py-bpevent.c: Do not include py-ref.h.
11781 * python/py-cmd.c: Do not include py-ref.h.
11782 * python/py-continueevent.c: Do not include py-ref.h.
11783 * python/py-event.h: Do not include py-ref.h.
11784 * python/py-evtregistry.c: Do not include py-ref.h.
11785 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11786 * python/py-frame.c: Do not include py-ref.h.
11787 * python/py-framefilter.c: Do not include py-ref.h.
11788 * python/py-function.c: Do not include py-ref.h.
11789 * python/py-infevents.c: Do not include py-ref.h.
11790 * python/py-linetable.c: Do not include py-ref.h.
11791 * python/py-objfile.c: Do not include py-ref.h.
11792 * python/py-param.c: Do not include py-ref.h.
11793 * python/py-prettyprint.c: Do not include py-ref.h.
11794 * python/py-progspace.c: Do not include py-ref.h.
11795 * python/py-symbol.c: Do not include py-ref.h.
11796 * python/py-symtab.c: Do not include py-ref.h.
11797 * python/py-type.c: Do not include py-ref.h.
11798 * python/py-unwind.c: Do not include py-ref.h.
11799 * python/py-utils.c: Do not include py-ref.h.
11800 * python/py-value.c: Do not include py-ref.h.
11801 * python/py-varobj.c: Do not include py-ref.h.
11802 * python/py-xmethods.c: Do not include py-ref.h.
11803 * python/python.c: Do not include py-ref.h.
11804 * varobj.c: Do not include py-ref.h.
11805
6b4d7774
TT
118062019-01-22 Tom Tromey <tom@tromey.com>
11807
11808 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11809 keyword for bcache.
11810
7af7e9b5
TT
118112019-01-22 Tom Tromey <tom@tromey.com>
11812
11813 * compile/compile-cplus-types.c: Remove a comment by #include.
11814
951d1049
TT
118152019-01-22 Tom Tromey <tom@tromey.com>
11816
11817 * compile/gcc-c-plugin.h: Include compile-internal.h.
11818
d65d5705
TT
118192019-01-22 Tom Tromey <tom@tromey.com>
11820
11821 * stabsread.c (EXTERN): Do not define.
11822 (symnum, next_symbol_text_func, processing_gcc_compilation)
11823 (within_function, global_sym_chain, global_stabs)
11824 (previous_stab_code, this_object_header_files)
11825 (n_this_object_header_files)
11826 (n_allocated_this_object_header_files): Define.
11827 * stabsread.h (EXTERN): Never define. Use "extern".
11828
b6fb1ee5
PW
118292019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11830
11831 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11832 history_value.
11833
be6d4f74
TT
118342019-01-21 Tom Tromey <tom@tromey.com>
11835
11836 * ui-out.c: Fix includes.
11837 * tui/tui-source.c: Fix includes.
11838 * target.c: Fix includes.
11839 * remote.c: Fix includes.
11840 * regcache.c: Fix includes.
11841 * python/py-block.c: Fix includes.
11842 * printcmd.c: Fix includes.
11843 * or1k-tdep.c: Fix includes.
11844 * mi/mi-main.c: Fix includes.
11845 * m32r-tdep.c: Fix includes.
11846 * csky-tdep.c: Fix includes.
11847 * compile/compile-cplus-types.c: Fix includes.
11848 * cli/cli-interp.c: Fix includes.
11849
73021deb
AH
118502019-01-21 Alan Hayward <alan.hayward@arm.com>
11851
11852 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11853 for padding.
11854
7932255d
TT
118552019-01-16 Tom Tromey <tom@tromey.com>
11856
11857 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11858 earlier.
11859 (struct objfile) <msymbols_range>: Move from top level.
11860 <msymbols>: New method.
11861 (class objfile_msymbols): Remove.
11862 * symtab.c (default_collect_symbol_completion_matches_break_on):
11863 Update.
11864 * symmisc.c (dump_msymbols): Update.
11865 * stabsread.c (scan_file_globals): Update.
11866 * objc-lang.c (info_selectors_command, info_classes_command)
11867 (find_methods): Update.
11868 * minsyms.c (find_solib_trampoline_target): Update.
11869 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11870 * coffread.c (coff_symfile_read): Update.
11871 * ada-lang.c (ada_lookup_simple_minsym)
11872 (ada_collect_symbol_completion_matches): Update.
11873
604b1bfb
TT
118742019-01-16 Tom Tromey <tom@tromey.com>
11875
11876 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11877 type. Remove no-argument constructor.
11878 <iterator::operator++>: Simplify.
11879 <begin>: Update.
11880 <end>: Use minimal_symbol_count.
11881
f252c6d5
TT
118822019-01-16 Tom Tromey <tom@tromey.com>
11883
11884 * objfiles.h (struct objfile) <psymtabs>: New method.
11885 (class objfile_psymtabs): Remove.
11886 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11887 typedef.
11888 <range>: New method.
11889 (require_partial_symbols): Change return type.
11890 * psymtab.c (require_partial_symbols)
11891 (psym_expand_symtabs_matching): Update.
11892 * mdebugread.c (parse_partial_symbols): Update.
11893 * dbxread.c (dbx_end_psymtab): Update.
11894
b669c953
TT
118952019-01-15 Tom Tromey <tom@tromey.com>
11896
11897 * symtab.c (lookup_objfile_from_block)
11898 (lookup_symbol_in_objfile_symtabs)
11899 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11900 (find_line_symtab, info_sources_command)
11901 (default_collect_symbol_completion_matches_break_on)
11902 (make_source_files_completion_list): Update.
11903 * symmisc.c (print_objfile_statistics, dump_objfile)
11904 (maintenance_print_symbols, maintenance_info_symtabs)
11905 (maintenance_check_symtabs, maintenance_info_line_tables):
11906 Update.
11907 * source.c (select_source_symtab)
11908 (forget_cached_source_info_for_objfile): Update.
11909 * objfiles.h (class objfile_compunits): Remove.
11910 (struct objfile) <compunits_range>: New typedef.
11911 (compunits): New method.
11912 * objfiles.c (objfile_relocate1): Update.
11913 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11914 * maint.c (count_symtabs_and_blocks): Update.
11915 * linespec.c (iterate_over_all_matching_symtabs): Update.
11916 * cp-support.c (add_symbol_overload_list_qualified): Update.
11917 * coffread.c (coff_symtab_read): Update.
11918 * ada-lang.c (add_nonlocal_symbols)
11919 (ada_collect_symbol_completion_matches)
11920 (ada_add_global_exceptions): Update.
11921
7e955d83
TT
119222019-01-15 Tom Tromey <tom@tromey.com>
11923
11924 * progspace.h (program_space) <objfiles_safe_range>: New
11925 typedef.
11926 <objfiles_safe>: New method.
11927 * objfiles.h (class all_objfiles_safe): Remove.
11928 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11929 * jit.c (jit_inferior_exit_hook): Update.
11930
2030c079
TT
119312019-01-17 Tom Tromey <tom@tromey.com>
11932
11933 * progspace.h (program_space) <objfiles_range>: New typedef.
11934 <objfiles>: New method.
11935 <objfiles_head>: Rename from objfiles.
11936 (object_files): Update.
11937 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11938 * guile/scm-pretty-print.c
11939 (ppscm_find_pretty_printer_from_objfiles): Update.
11940 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11941 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11942 Update.
11943 * python/py-progspace.c (pspy_get_objfiles): Update.
11944 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11945 Update.
11946 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11947 (objfpy_lookup_objfile_by_build_id): Update.
11948 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11949 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11950 Update.
11951 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11952 (expand_symtab_containing_pc, lookup_objfile_from_block)
11953 (lookup_static_symbol, basic_lookup_transparent_type)
11954 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11955 (find_line_symtab, info_sources_command)
11956 (default_collect_symbol_completion_matches_break_on)
11957 (make_source_files_completion_list, find_main_name): Update.
11958 * symmisc.c (print_symbol_bcache_statistics)
11959 (print_objfile_statistics, maintenance_print_symbols)
11960 (maintenance_print_msymbols, maintenance_print_objfiles)
11961 (maintenance_info_symtabs, maintenance_check_symtabs)
11962 (maintenance_expand_symtabs, maintenance_info_line_tables):
11963 Update.
11964 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11965 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11966 (map_overlay_command, unmap_overlay_command)
11967 (simple_overlay_update, expand_symtabs_matching)
11968 (map_symbol_filenames): Update.
11969 * symfile-debug.c (set_debug_symfile): Update.
11970 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11971 Update.
11972 * source.c (select_source_symtab, forget_cached_source_info):
11973 Update.
11974 * solib.c (solib_read_symbols): Update.
11975 * solib-spu.c (append_ocl_sos): Update.
11976 * psymtab.c (maintenance_print_psymbols)
11977 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11978 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11979 * printcmd.c (info_symbol_command): Update.
11980 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11981 Update.
11982 * objfiles.h (class all_objfiles): Remove.
11983 * objfiles.c (have_partial_symbols, have_full_symbols)
11984 (have_minimal_symbols, qsort_cmp, update_section_map)
11985 (shared_objfile_contains_address_p)
11986 (default_iterate_over_objfiles_in_search_order): Update.
11987 * objc-lang.c (info_selectors_command, info_classes_command)
11988 (find_methods): Update.
11989 * minsyms.c (find_solib_trampoline_target): Update.
11990 * maint.c (maintenance_info_sections)
11991 (maintenance_translate_address, count_symtabs_and_blocks):
11992 Update.
11993 * main.c (captured_main_1): Update.
11994 * linux-thread-db.c (try_thread_db_load_from_pdir)
11995 (has_libpthread): Update.
11996 * linespec.c (iterate_over_all_matching_symtabs)
11997 (search_minsyms_for_name): Update.
11998 * jit.c (jit_find_objf_with_entry_addr): Update.
11999 * hppa-tdep.c (find_unwind_entry)
12000 (hppa_lookup_stub_minimal_symbol): Update.
12001 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12002 Update.
12003 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12004 (elf_gnu_ifunc_resolve_by_got): Update.
12005 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12006 * dwarf-index-write.c (save_gdb_index_command): Update.
12007 * cp-support.c (add_symbol_overload_list_qualified): Update.
12008 * breakpoint.c (create_overlay_event_breakpoint)
12009 (create_longjmp_master_breakpoint)
12010 (create_std_terminate_master_breakpoint)
12011 (create_exception_master_breakpoint): Update.
12012 * blockframe.c (find_pc_partial_function): Update.
12013 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12014 (ada_collect_symbol_completion_matches)
12015 (ada_add_global_exceptions): Update.
12016
776489e0
TT
120172019-01-17 Tom Tromey <tom@tromey.com>
12018
12019 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12020 declare VEC.
12021 (solib_target_parse_libraries): Change return type.
12022 (library_list_start_segment, library_list_start_section)
12023 (library_list_end_library, library_list_start_library); Update.
12024 (solib_target_free_library_list): Remove.
12025 (solib_target_parse_libraries): Remove cleanup. Change return
12026 type.
12027 (solib_target_current_sos): Update.
12028
6471e7d2
TT
120292019-01-17 Tom Tromey <tromey@bapiya>
12030
12031 * valprint.c: Replace "the the" with "the".
12032 * symtab.c: Replace "the the" with "the".
12033 * solib.c: Replace "the the" with "the".
12034 * solib-dsbt.c: Replace "the the" with "the".
12035 * linespec.c: Replace "the the" with "the".
12036 * dwarf2loc.h: Replace "the the" with "the".
12037 * amd64-windows-tdep.c: Replace "the the" with "the".
12038 * aarch64-tdep.c: Replace "the the" with "the".
12039
c24bdb02
KS
120402019-01-16 Keith Seitz <keiths@redhat.com>
12041
12042 PR gdb/23773
12043 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12044 <builder>: Rename to ..
12045 <m_builder>: ... this and make private.
12046 (dwarf2_cu::get_builder): New method. Change all users of
12047 `builder' to use this method.
12048 (dwarf2_start_symtab): Move to ...
12049 (dwarf2_cu::start_symtab): ... here. Update all callers
12050 (setup_type_unit_groups): Move to ...
12051 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12052 callers.
12053 (dwarf2_cu::reset_builder): New method.
12054 (process_full_compunit, process_full_type_unit): Use
12055 dwarf2_cu::reset_builder.
12056 (follow_die_offset): Record the ancestor CU if it is different
12057 from the followed DIE's CU.
12058 (follow_die_sig_1): Likewise.
12059
8d64371b
TT
120602019-01-15 Tom Tromey <tom@tromey.com>
12061
12062 * remote.c (class remote_state) <buf>: Now a char_vector.
12063 <buf_size>: Remove.
12064 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12065 parameter.
12066 (remote_target::getpkt_or_notif_sane_1)
12067 (remote_target::getpkt_sane)
12068 (remote_target::getpkt_or_notif_sane): Likewise.
12069 (class remote_target) <putpkt>: New overload.
12070 (remote_target::read_frame): Change type of "buf_p". Remove
12071 sizeof_p parameter.
12072 (packet_ok): New overload.
12073 (packet_check_result): New overload.
12074 Update all uses.
12075
bb277751
TT
120762019-01-14 Tom Tromey <tom@tromey.com>
12077
12078 * remote-notif.c (handle_notification, remote_notif_ack)
12079 (remote_notif_parse): Make "buf" const.
12080 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12081 const.
12082 (remote_notif_parse, remote_notif_ack, handle_notification):
12083 Likewise.
12084 * remote.c (remote_notif_stop_parse): Make "buf" const.
12085 (remote_target::remote_parse_stop_reply): Make "buf" const.
12086 (remote_notif_stop_ack): Make "buf" const.
12087
05be00a8
TT
120882019-01-14 Tom Tromey <tom@tromey.com>
12089
12090 * remote.c (remote_console_output): Make parameter const.
12091
491adeca
TT
120922019-01-14 Tom Tromey <tom@tromey.com>
12093
12094 * target-debug.h (target_debug_print_signals): Constify.
12095 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12096 * procfs.c (procfs_target::pass_signals): Update.
12097 * linux-nat.c (linux_nat_target::pass_signals): Update.
12098 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12099 * target-delegates.c: Rebuild.
12100 * remote.c (remote_target::program_signals): Update.
12101 (remote_target::pass_signals): Update.
12102 * target.c (target_pass_signals): Constify argument.
12103 (target_program_signals): Likewise.
12104 * target.h (struct target_ops) <pass_signals, program_signals>:
12105 Constify argument.
12106 (target_pass_signals, target_program_signals): Constify argument.
12107
bbd94648
TT
121082019-01-14 Tom Tromey <tom@tromey.com>
12109
12110 PR tui/28819:
12111 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12112
6f072a10
PFC
121132019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12114
12115 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12116 field.
12117 * rs6000-tdep.c: Include reggroups.h.
12118 (IS_V_ALIAS_PSEUDOREG): Define.
12119 (rs6000_register_name): Return names for the "vX" aliases.
12120 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12121 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12122 aliases. Call default_register_reggroup_p for all other
12123 pseudo-registers.
12124 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12125 New functions.
12126 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12127 Handle "vX" aliases.
12128 (v_alias_pseudo_register_collect): New function.
12129 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12130 (rs6000_gdbarch_init): Initialize "vX" aliases as
12131 pseudo-registers. Restore registration of
12132 rs6000_pseudo_register_reggroup_p with
12133 set_tdesc_pseudo_register_reggroup_p.
12134
1a782351
MF
121352019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12136
12137 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12138 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12139 set_gdbarch_num_pseudo_regs.
12140
d73cff18
PW
121412019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12142
12143 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12144 Remove arg prefixname, add do_set and do_show.
12145 Add member functions set_list and show_list.
12146 * cli/cli-style.c (class cli_style_option): Update accordingly.
12147 (style_set_list): Move to file scope.
12148 (style_show_list): Likewise.
12149 (set_style): Call help_list.
12150 (show_style): Call cmd_show_list.
12151 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12152 Update to use the new macro.
12153
60a90376
JB
121542019-10-12 Joel Brobecker <brobecker@adacore.com>
12155
12156 * ada-lang.c (_initialize_ada_language): Expand the help text
12157 for the "catch exception" command.
12158
9d7c67bf
PW
121592019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12160
12161 * symtab.c (matching_obj_sections): Initialize obj,
12162 declare it closer to its usage.
12163
7cf47dc4
TT
121642019-01-10 Tom Tromey <tom@tromey.com>
12165
12166 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12167 (basic_inf_threads_range): Remove.
12168 (inf_threads_range, inf_non_exited_threads_range)
12169 (safe_inf_threads_range): Use next_adapter.
12170
d3cb6808
KS
121712019-01-10 Keith Seitz <keiths@redhat.com>
12172
12173 PR gdb/23712
12174 PR symtab/23010
12175 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12176 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12177
63a20375
KS
121782019-01-10 Keith Seitz <keiths@redhat.com>
12179
12180 PR gdb/23712
12181 PR symtab/23010
12182 * dictionary.c (pending_to_vector): Remove.
12183 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12184 Remove _1 suffix, replacing functions of the same name. Update
12185 all callers.
12186 (dict_create_hashed, dict_create_hashed_expandable)
12187 (dict_create_linear, dict_create_linear_expandable, dict_free)
12188 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12189 Make functions static.
12190
b026f593
KS
121912019-01-10 Keith Seitz <keiths@redhat.com>
12192
12193 PR gdb/23712
12194 PR symtab/23010
12195 * dictionary.h (struct dictionary): Replace declaration with
12196 multidictionary.
12197 (dict_create_hashed, dict_create_hashed_expandable)
12198 (dict_create_linear, dict_create_linear_expandable)
12199 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12200 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12201 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12202 taking multidictionary argument.
12203 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12204 * block.h (struct block) <dict>: Change to multidictionary
12205 and rename `multidict'.
12206 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12207 symmisc.c: Update all dictionary references to multidictionary.
12208
c7748ee9
KS
122092019-01-10 Keith Seitz <keiths@redhat.com>
12210
12211 PR gdb/23712
12212 PR symtab/23010
12213 * dictionary.c: Include unordered_map.
12214 (pending_to_vector): New function.
12215 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12216 Rewrite the non-"_1" functions to take vector instead
12217 of linked list.
12218 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12219 "new" _1 versions of the same name.
12220 (multidictionary): Define.
12221 (std::hash<enum language): New definition.
12222 (collate_pending_symbols_by_language, mdict_create_hashed)
12223 (mdict_create_hashed_expandable, mdict_create_linear)
12224 (mdict_create_linear_expandable, mdict_free)
12225 (find_language_dictionary, create_new_language_dictionary)
12226 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12227 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12228 (mdict_size, mdict_empty): New functions.
12229 * dictionary.h (mdict_iterator): Define.
12230
67aa1f3c
PA
122312019-01-10 Pedro Alves <palves@redhat.com>
12232
12233 * breakpoint.c (read_uploaded_action)
12234 (create_tracepoint_from_upload): Adjust to use
12235 gdb::unique_xmalloc_ptr.
12236 * ctf.c (ctf_write_uploaded_tp):
12237 (SET_ARRAY_FIELD): Use emplace_back.
12238 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12239 * tracefile-tfile.c (tfile_write_uploaded_tp):
12240 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12241 gdb::unique_xmalloc_ptr.
12242 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12243 at_string, cond_string, cmd_strings>: Replace char pointers
12244 with gdb::unique_xmalloc_ptr.
12245
2f667667
PA
122462019-01-10 Pedro Alves <palves@redhat.com>
12247
12248 * solib-target.c (library_list_start_library): Don't xstrdup name.
12249
36cb7237
PA
122502019-01-10 Pedro Alves <palves@redhat.com>
12251
12252 * mdebugread.c (parse_partial_symbols): Use
12253 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12254
da584958
AB
122552019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12256
12257 * linux-fork.c (scoped_switch_fork_info)
12258 <~scoped_switch_fork_info>: Fix incorrect variable name.
12259
1ef8573c
AB
122602019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12261
12262 * linux-fork.c (scoped_switch_fork_info)
12263 <scoped_switch_fork_info>: Make explicit.
12264 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12265
8d7bcccb
TT
122662019-01-10 Tom Tromey <tom@tromey.com>
12267
12268 * objfiles.h (objfile::reset_psymtabs): Update.
12269 * objfiles.c (objfile::objfile): Update.
12270 * psymtab.h (psymtab_storage::obstack): Update.
12271 (psymtab_storage::m_obstack): Use gdb::optional.
12272 (class psymtab_storage): Update comment. Remove objfile
12273 parameter.
12274 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12275
b596a3c7
TT
122762019-01-10 Tom Tromey <tom@tromey.com>
12277
12278 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12279 <free_psymtabs>: Now private.
12280 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12281 (allocate_psymtab): Use new method.
12282
a9342b62
TT
122832019-01-10 Tom Tromey <tom@tromey.com>
12284
12285 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12286 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12287 * mdebugread.c (parse_partial_symbols): Use
12288 allocate_dependencies.
12289 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12290 allocate_dependencies.
12291 (process_psymtab_comp_unit_reader)
12292 (build_type_psymtab_dependencies): Likewise.
12293 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12294
5af70966
TT
122952019-01-10 Tom Tromey <tom@tromey.com>
12296
12297 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12298 PSYMBOL_SET_LANGUAGE.
12299 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12300
5923a04c
TT
123012019-01-10 Tom Tromey <tom@tromey.com>
12302
12303 * psymtab.h (psymtab_storage::obstack): New method.
12304 <m_obstack>: Rename from obstack; now private.
12305 * psymtab.c (psymtab_storage): Update.
12306 * dwarf2read.c (create_addrmap_from_index)
12307 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12308 Update.
12309
6d6a12bf
TT
123102019-01-10 Tom Tromey <tom@tromey.com>
12311
12312 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12313 * objfiles.h (objfile::reset_psymtabs): New method.
12314
d320c2b5
TT
123152019-01-10 Tom Tromey <tom@tromey.com>
12316
12317 * symmisc.c (print_symbol_bcache_statistics): Update.
12318 (print_objfile_statistics): Update.
12319 * symfile.c (reread_symbols): Update.
12320 * psymtab.h (class psymtab_storage): New.
12321 * psymtab.c (psymtab_storage): New constructor.
12322 (~psymtab_storage): New destructor.
12323 (require_partial_symbols): Update.
12324 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12325 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12326 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12327 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12328 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12329 (start_psymtab_common, end_psymtab_common)
12330 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12331 (allocate_psymtab): Update.
12332 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12333 Update.
12334 (dump_psymtab_addrmap, maintenance_print_psymbols)
12335 (maintenance_check_psymtabs): Update.
12336 (class objfile_psymtabs): Move to objfiles.h.
12337 * psympriv.h (discard_psymtab): Now inline.
12338 (psymtab_discarder::psymtab_discarder): Update.
12339 (psymtab_discarder::~psymtab_discarder): Update.
12340 (ALL_OBJFILE_PSYMTABS): Rewrite.
12341 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12342 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12343 Remove fields.
12344 <partial_symtabs>: New field.
12345 (class objfile_psymtabs): Move from psymtab.h. Update.
12346 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12347 psymbol_cache.
12348 (objfile::~objfile): Don't destroy psymbol_cache.
12349 * mdebugread.c (parse_partial_symbols): Update.
12350 * dwarf2read.c (create_addrmap_from_index)
12351 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12352 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12353 (add_partial_subprogram, dwarf2_ranges_read): Update.
12354 * dwarf-index-write.c (write_address_map)
12355 (write_one_signatured_type, recursively_write_psymbols)
12356 (class debug_names, class debug_names, write_psymtabs_to_index):
12357 Update.
12358
1d94a5a3
TT
123592019-01-10 Tom Tromey <tom@tromey.com>
12360
12361 * symtab.h (SYMBOL_SET_NAMES): Update.
12362 (symbol_set_names): Update.
12363 (MSYMBOL_SET_NAMES): Update.
12364 * symtab.c (symbol_set_names): Change argument to be an
12365 objfile_per_bfd_storage.
12366 * psymtab.c (add_psymbol_to_bcache): Update.
12367 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12368
0f14768a
TT
123692019-01-10 Tom Tromey <tom@tromey.com>
12370
12371 * symtab.c (create_demangled_names_hash): Change argument to be an
12372 objfile_per_bfd_storage.
12373 (symbol_set_names): Update.
12374
6eee24ce
TT
123752019-01-10 Tom Tromey <tom@tromey.com>
12376
12377 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12378 init_psymbol_list.
12379 * psymtab.c (init_psymbol_list): Do nothing if already called.
12380 * psympriv.h (init_psymbol_list): Add comment.
12381 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12382 init_psymbol_list.
12383 * dbxread.c (dbx_symfile_read): Unconditionally call
12384 init_psymbol_list.
12385
75aedd27
TT
123862019-01-10 Tom Tromey <tom@tromey.com>
12387
12388 * xcoffread.c (scan_xcoff_symtab): Update.
12389 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12390 "where".
12391 * mdebugread.c (parse_partial_symbols)
12392 (handle_psymbol_enumerators): Update.
12393 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12394 * dbxread.c (read_dbx_symtab): Update.
12395 * psympriv.h (psymbol_placement): New enum.
12396 (add_psymbol_to_list): Update.
12397
939652a5
TT
123982019-01-10 Tom Tromey <tom@tromey.com>
12399
12400 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12401 static_psymbols parameters.
12402 (scan_xcoff_symtab): Update.
12403 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12404 static_psymbols parameters.
12405 * psympriv.h (start_psymtab_common): Update.
12406 * mdebugread.c (parse_partial_symbols): Update.
12407 * dwarf2read.c (create_partial_symtab): Update.
12408 * dbxread.c (read_dbx_symtab): Update.
12409 (start_psymtab): Remove global_psymbols and static_psymbols
12410 parameters.
12411
baa62830
TT
124122019-01-10 Tom Tromey <tom@tromey.com>
12413
12414 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12415 * psymtab.c (allocate_psymtab): Add comment.
12416 * psympriv.h (allocate_psymtab): Add comment.
12417 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12418 initializations.
12419 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12420
0e8f53ba
TT
124212019-01-10 Tom Tromey <tom@tromey.com>
12422
12423 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12424 Don't declare.
12425 * mipsread.c: Include mdebugread.h.
12426 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12427 Declare.
12428 * elfread.c: Include mdebugread.h.
12429
b22a7c6a
TT
124302019-01-09 Tom Tromey <tom@tromey.com>
12431
12432 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12433 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12434 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12435 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12436 (psym_lookup_symbol, psym_find_last_source_symtab)
12437 (psym_forget_cached_source_info, psym_print_stats)
12438 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12439 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12440 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12441 (psym_find_compunit_symtab_by_address)
12442 (maintenance_print_psymbols, maintenance_info_psymtabs)
12443 (maintenance_check_psymtabs): Use ranged for.
12444 * psymtab.h (class objfile_psymtabs): New.
12445 (require_partial_symbols): Return objfile_psymtabs.
12446 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12447
3b9d3ac2
TT
124482019-01-09 Tom Tromey <tom@tromey.com>
12449
12450 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12451 (find_pc_mapped_section, list_overlays_command)
12452 (map_overlay_command, unmap_overlay_command)
12453 (simple_overlay_update): Use all_objfiles.
12454 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12455 * printcmd.c (info_symbol_command): Use all_objfiles.
12456 * objfiles.h (ALL_OBJSECTIONS): Remove.
12457 * maint.c (maintenance_translate_address): Use all_objfiles.
12458 * gcore.c (gcore_create_callback): Use all_objfiles.
12459 (objfile_find_memory_regions): Likewise.
12460
8b31193a
TT
124612019-01-09 Tom Tromey <tom@tromey.com>
12462
12463 * symtab.c (find_line_symtab, info_sources_command)
12464 (make_source_files_completion_list): Use objfile_compunits.
12465 * source.c (select_source_symtab): Use objfile_compunits.
12466 * objfiles.h (struct objfile): Update comment.
12467 (ALL_OBJFILES): Remove.
12468 (ALL_FILETABS): Remove.
12469 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12470 objfile_compunits.
12471
d5da8b3c
TT
124722019-01-09 Tom Tromey <tom@tromey.com>
12473
12474 * symmisc.c (print_objfile_statistics, dump_objfile)
12475 (maintenance_print_symbols): Use compunit_filetabs.
12476 * source.c (forget_cached_source_info_for_objfile): Use
12477 compunit_filetabs.
12478 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12479 (ALL_FILETABS): Use compunit_filetabs.
12480 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12481 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12482
5accd1a0
TT
124832019-01-09 Tom Tromey <tom@tromey.com>
12484
12485 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12486 (compunit_filetabs): New.
12487 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12488 compunit_filetabs.
12489 (info_sources_command, make_source_files_completion_list): Remove
12490 declaration.
12491 * symmisc.c (print_objfile_statistics, dump_objfile)
12492 (maintenance_print_symbols): Remove declaration.
12493 (maintenance_info_symtabs): Use compunit_filetabs.
12494 (maintenance_info_line_tables): Likewise.
12495 * source.c (select_source_symtab): Change local variable name.
12496 (forget_cached_source_info_for_objfile): Remove declaration.
12497 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12498 * objfiles.c (objfile_relocate1): Remove declaration.
12499 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12500 declaration.
12501 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12502 * coffread.c (coff_symtab_read): Remove declaration.
12503 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12504 compunit_filetabs.
12505
d8aeb77f
TT
125062019-01-09 Tom Tromey <tom@tromey.com>
12507
12508 * symtab.c (lookup_objfile_from_block)
12509 (find_pc_sect_compunit_symtab, search_symbols)
12510 (default_collect_symbol_completion_matches_break_on): Use
12511 objfile_compunits.
12512 * objfiles.h (ALL_COMPUNITS): Remove.
12513 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12514 * cp-support.c (add_symbol_overload_list_qualified): Use
12515 objfile_compunits.
12516 * ada-lang.c (ada_collect_symbol_completion_matches)
12517 (ada_add_global_exceptions): Use objfile_compunits.
12518
592553c4
TT
125192019-01-09 Tom Tromey <tom@tromey.com>
12520
12521 * source.c (select_source_symtab)
12522 (forget_cached_source_info_for_objfile): Remove declaration.
12523 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12524 declaration.
12525 * maint.c (count_symtabs_and_blocks): Remove declaration.
12526 * cp-support.c (add_symbol_overload_list_qualified): Remove
12527 declaration.
12528 * coffread.c (coff_symtab_read): Remove declaration.
12529 * symtab.c (lookup_symbol_in_objfile_symtabs)
12530 (basic_lookup_transparent_type_1): Use objfile_compunits.
12531 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12532 (info_sources_command, search_symbols)
12533 (default_collect_symbol_completion_matches_break_on)
12534 (make_source_files_completion_list): Remove declaration.
12535 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12536 (ada_collect_symbol_completion_matches)
12537 (ada_add_global_exceptions): Remove declaration.
12538 * linespec.c (iterate_over_all_matching_symtabs): Use
12539 objfile_compunits.
12540 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12541 (class objfile_compunits): New.
12542 (ALL_COMPUNITS): Use objfile_compunits.
12543 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12544 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12545 objfile_compunits.
12546 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12547
5325b9bf
TT
125482019-01-09 Tom Tromey <tom@tromey.com>
12549
12550 * symtab.c (search_symbols)
12551 (default_collect_symbol_completion_matches_break_on): Use
12552 objfile_msymbols.
12553 * ada-lang.c (ada_lookup_simple_minsym)
12554 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12555 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12556 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12557 objfile_msymbols.
12558 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12559 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12560 * objc-lang.c (find_methods): Use objfile_msymbols.
12561 (info_selectors_command, info_classes_command): Likewise.
12562 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12563 * objfiles.h (class objfile_msymbols): New.
12564 (ALL_OBJFILE_MSYMBOLS): Remove.
12565 (ALL_MSYMBOLS): Remove.
12566
cac85af2
TT
125672019-01-09 Tom Tromey <tom@tromey.com>
12568
12569 * common/next-iterator.h (next_adapter): Add Iterator template
12570 parameter.
12571 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12572 (class all_objfiles_safe): New.
12573 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12574 * objfiles.c (put_objfile_before): Update comment.
12575 (add_separate_debug_objfile): Likewise.
12576 (free_all_objfiles): Use all_objfiles_safe.
12577 (objfile_purge_solibs): Likewise.
12578
aed57c53
TT
125792019-01-09 Tom Tromey <tom@tromey.com>
12580
12581 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12582 (expand_symtab_containing_pc, lookup_static_symbol)
12583 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12584 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12585 all_objfiles.
12586 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12587 * breakpoint.c (create_overlay_event_breakpoint)
12588 (create_longjmp_master_breakpoint)
12589 (create_std_terminate_master_breakpoint)
12590 (create_exception_master_breakpoint): Use all_objfiles.
12591 * linux-thread-db.c (try_thread_db_load_from_pdir)
12592 (has_libpthread): Use all_objfiles.
12593 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12594 * linespec.c (iterate_over_all_matching_symtabs)
12595 (search_minsyms_for_name): Use all_objfiles.
12596 * maint.c (maintenance_info_sections): Use all_objfiles.
12597 * main.c (captured_main_1): Use all_objfiles.
12598 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12599 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12600 * guile/scm-pretty-print.c
12601 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12602 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12603 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12604 (maintenance_print_msymbols): Use all_objfiles.
12605 * source.c (select_source_symtab): Use all_objfiles.
12606 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12607 * symfile.c (remove_symbol_file_command)
12608 (expand_symtabs_matching, map_symbol_filenames): Use
12609 all_objfiles.
12610 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12611 all_objfiles.
12612 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12613 * objc-lang.c (find_methods): Use all_objfiles.
12614 * objfiles.c (have_partial_symbols, have_full_symbols)
12615 (have_minimal_symbols, qsort_cmp)
12616 (default_iterate_over_objfiles_in_search_order): Use
12617 all_objfiles.
12618 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12619 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12620 (maintenance_check_psymtabs): Use all_objfiles.
12621 (ALL_PSYMTABS): Remove.
12622 * compile/compile-object-run.c (do_module_cleanup): Use
12623 all_objfiles.
12624 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12625 * cp-support.c (add_symbol_overload_list_qualified): Use
12626 all_objfiles.
12627 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12628 Use all_objfiles.
12629 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12630 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12631 all_objfiles.
12632 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12633 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12634 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12635 Uses all_objfiles.
12636 * solib.c (solib_read_symbols): Use all_objfiles
12637
99d89cde
TT
126382019-01-09 Tom Tromey <tom@tromey.com>
12639
12640 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12641 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12642 all_objfiles.
12643 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12644 * symmisc.c (print_symbol_bcache_statistics)
12645 (print_objfile_statistics, maintenance_print_objfiles)
12646 (maintenance_info_symtabs, maintenance_check_symtabs)
12647 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12648 all_objfiles.
12649 * source.c (forget_cached_source_info): Use all_objfiles.
12650 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12651 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12652 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12653 * objfiles.c (update_section_map): Use all_objfiles.
12654 (shared_objfile_contains_address_p): Likewise.
12655 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12656 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12657
21708325
TT
126582019-01-09 Tom Tromey <tom@tromey.com>
12659
12660 * common/next-iterator.h: New file.
12661 * objfiles.h (class all_objfiles): New.
12662 (struct objfile_iterator): New.
12663
669e09f6
PW
126642019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12665
12666 * NEWS: Move the description of the changed "frame", "select-frame",
12667 and "info frame" commands to the Changed commands section.
12668
041be526
SM
126692019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12670
12671 * gdbtypes.c (check_stub_method_group): Remove handling of old
12672 mangling schemes.
12673 * linespec.c (find_methods): Likewise.
12674 * stabsread.c (read_member_functions): Likewise.
12675 * valops.c (search_struct_method): Likewise.
12676 (value_struct_elt_for_reference): Likewise.
12677 * NEWS: Mention this change.
12678
0e2a2133
AB
126792019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12680
12681 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12682 print_source_lines.
12683 * source.c (print_source_lines_base): Update line number check.
12684 (print_source_lines): New function.
12685 (source_lines_range::source_lines_range): New function.
12686 * source.h (class source_lines_range): New class.
12687 (print_source_lines): New declaration.
12688
1055a3b4
PW
126892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12690
12691 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12692
cfeadda5
TT
126932019-01-08 Tom Tromey <tom@tromey.com>
12694 Simon Marchi <simon.marchi@ericsson.com>
12695
12696 PR gdb/24060
12697 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12698 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12699 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12700 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12701 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12702 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12703
583068ca
AB
127042019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12705
12706 * source.c (select_source_symtab): Move header comment to
12707 declaration in source.h.
12708 (forget_cached_source_info_for_objfile): Likewise.
12709 (forget_cached_source_info): Likewise.
12710 (identify_source_line): Likewise.
12711 * source.h (identify_source_line): Move declaration from symtab.h
12712 and add comment from source.c
12713 (print_source_lines): Likewise.
12714 (forget_cached_source_info_for_objfile): Likewise.
12715 (forget_cached_source_info): Likewise.
12716 (select_source_symtab): Likewise.
12717 (enum print_source_lines_flag): Move definition from symtab.h.
12718 * symtab.h (identify_source_line): Move declaration to source.h.
12719 (print_source_lines): Likewise.
12720 (forget_cached_source_info_for_objfile): Likewise.
12721 (forget_cached_source_info): Likewise.
12722 (select_source_symtab): Likewise.
12723 (enum print_source_lines_flag): Move definition to source.h.
12724 * tui/tui-hooks.c: Add 'source.h' include.
12725
ec98a4ad
AB
127262019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12727
12728 * source.c (print_source_lines_base): Handle requests to print
12729 reverse line number sequences, and guard against empty lines
12730 string.
12731
62ea19c1
AB
127322019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12733
12734 * source.c (print_source_lines_base): Fix skip of '\r' if next
12735 character is '\n'.
12736
9d30e1fd
TT
127372019-01-06 Tom Tromey <tom@tromey.com>
12738
12739 * c-exp.y (struct c_parse_state) <macro_original_text,
12740 expansion_obstack>: New member.
12741 (macro_original_text, expansion_obstack): Remove globals.
12742 (scan_macro_expansion, scanning_macro_expansion)
12743 (finished_macro_expansion): Update.
12744 (scan_macro_cleanup): Remove.
12745 (yylex, c_parse): Update.
12746
c65bac38
TT
127472019-01-06 Tom Tromey <tom@tromey.com>
12748
12749 * c-exp.y (struct c_parse_state) <strings>: New member.
12750 (operator_stoken): Update.
12751
02e12e38
TT
127522019-01-06 Tom Tromey <tom@tromey.com>
12753
12754 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12755 (union type_stack_elt) <typelist_val>: Now a pointer to
12756 std::vector.
12757 (type_stack_cleanup): Don't declare.
12758 (push_typelist): Update.
12759 * parse.c (pop_typelist): Return a std::vector.
12760 (push_typelist): Take a std::vector.
12761 (follow_types): Update. Do not free args.
12762 (type_stack_cleanup): Remove.
12763 * c-exp.y (struct c_parse_state): New.
12764 (cpstate): New global.
12765 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12766 (nonempty_typelist): Update.
12767 (func_mod): Create a new vector.
12768 (c_parse): Create a c_parse_state.
12769 (check_parameter_typelist): Do not delete params.
12770 (function_method): Update. Do not delete type_list.
12771
f097f5ad
TT
127722019-01-06 Tom Tromey <tom@tromey.com>
12773
12774 PR gdb/28155:
12775 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12776 check_typedef.
12777 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12778 (print_return_value): Likewise.
12779
d2adf9f1
TT
127802019-01-05 Tom Tromey <tom@tromey.com>
12781
12782 * contrib/cleanup_check.py: Remove.
12783 * contrib/gcc-with-excheck: Remove.
12784 * contrib/exsummary.py: Remove.
12785 * contrib/excheck.py: Remove.
12786
2eab46b1
JB
127872019-01-05 Joel Brobecker <brobecker@adacore.com>
12788
12789 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12790 NULL. Initialize tpprev to NULL instead of assigning it
12791 to NULL on the next statement.
12792 * windows-nat.c (windows_delete_thread): Remove check for
12793 main_thread_id before printing thread exit notifications.
12794 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12795 Remove thread ID check against main_thread_id.
12796 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12797 windows_delete_thread.
12798 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12799
48c5e7e2
TT
128002019-01-04 Tom Tromey <tom@tromey.com>
12801
12802 * compile/compile.c (_initialize_compile): Use upper case for
12803 metasyntactic variables.
12804 * symmisc.c (_initialize_symmisc): Use upper case for
12805 metasyntactic variables.
12806 * psymtab.c (_initialize_psymtab): Use upper case for
12807 metasyntactic variables.
12808 * demangle.c (demangle_command): Use upper case for metasyntactic
12809 variables.
12810 (_initialize_demangler): Likewise.
12811 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12812 variables.
12813
986041cd
TT
128142019-01-03 Tom Tromey <tom@tromey.com>
12815
12816 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12817
7c711119
TT
128182019-01-03 Tom Tromey <tom@tromey.com>
12819
12820 * python/py-symtab.c (salpy_str): Update.
12821 (struct salpy_sal_object) <symtab>: Now a PyObject.
12822 (salpy_dealloc): Update.
12823 (del_objfile_sal): Use gdbpy_ref.
12824
1b20edf0
TT
128252019-01-03 Tom Tromey <tom@tromey.com>
12826
12827 * python/py-type.c (convert_field): Use new_reference. Return
12828 gdbpy_ref.
12829 (make_fielditem): Return gdbpy_ref.
12830 (typy_fields): Update.
12831 (typy_getitem): Update.
12832 (field_name): Return gdbpy_ref. Use new_reference.
12833 (typy_iterator_iternext): Update.
12834
ea41325b
TT
128352019-01-03 Tom Tromey <tom@tromey.com>
12836
12837 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12838
2a3c71d6
TT
128392019-01-03 Tom Tromey <tom@tromey.com>
12840
12841 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12842 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12843 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12844 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12845 (pspy_set_type_printers): Likewise.
12846 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12847 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12848 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12849 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12850 (objfpy_set_type_printers): Likewise.
12851
5c329e6a
TT
128522019-01-03 Tom Tromey <tom@tromey.com>
12853
12854 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12855 (gdbpy_print_stack): Use gdbpy_err_fetch.
12856 * python/python-internal.h (class gdbpy_err_fetch): New class.
12857 (class gdbpy_enter) <m_error_type, m_error_value,
12858 m_error_traceback>: Remove.
12859 <m_error>: New member.
12860 (gdbpy_exception_to_string): Don't declare.
12861 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12862 * python/py-value.c (convert_value_from_python): Use
12863 gdbpy_err_fetch.
12864 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12865 gdbpy_exception_to_string.
12866 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12867 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12868 gdbpy_err_fetch.
12869
169bb27b
AB
128702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12871
12872 * linux-nat.c (delete_lwp_cleanup): Delete.
12873 (struct lwp_deleter): New struct.
12874 (lwp_info_up): New typedef.
12875 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12876 lwp_info_up.
12877
a07c8880
AB
128782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12879
12880 * linux-fork.c (class scoped_switch_fork_info): New class.
12881 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12882
26089c49
AB
128832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12884
12885 * valops.c (find_overload_match): Remove use of null_cleanup, and
12886 calls to do_cleanups.
12887
06d3e5b0
AB
128882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12889
12890 * compile/compile-cplus-types.c
12891 (compile_cplus_instance::decl_name): Handle changes to
12892 cp_func_name.
12893 * cp-support.c (cp_func_name): Update header comment, update
12894 return type.
12895 * cp-support.h (cp_func_name): Update return type in declaration.
12896 * valops.c (find_overload_match): Move temp_func local to top
12897 level of function and change its type. Use temp_func to hold and
12898 delete temporary string obtained from cp_func_name.
12899
66644cd3
AB
129002019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12901
12902 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12903 gdb::char_vector, remove cleanup, and update uses of `msg`.
12904
592d8c0a
JW
129052019-01-03 Jim Wilson <jimw@sifive.com>
12906
12907 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12908
c55d06ec
TT
129092019-01-02 Tom Tromey <tom@tromey.com>
12910
12911 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12912 (tdesc_parse_xml): Remove cleanups.
12913 * target-descriptions.h (make_cleanup_free_target_description):
12914 Don't declare.
12915 (target_desc_deleter): New struct.
12916 (target_desc_up): New typedef.
12917 * target-descriptions.c (target_desc_deleter::operator()): Rename
12918 from free_target_description.
12919 (make_cleanup_free_target_description): Remove.
12920
3a6ae42d
TT
129212019-01-02 Tom Tromey <tom@tromey.com>
12922
12923 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12924 constructor, destructor.
12925 (linespec_parser): Remove typedef.
12926 (~linespec_parser): Rename from linespec_parser_delete.
12927 (linespec_lex_to_end, linespec_complete_label)
12928 (linespec_complete): Update.
12929 (decode_line_full): Remove cleanups.
12930 (decode_line_1): Update.
12931
61fd3e73
TT
129322019-01-02 Tom Tromey <tom@tromey.com>
12933
12934 * python/python-internal.h (inferior_to_inferior_object): Change
12935 return type.
12936 * python/py-exitedevent.c (create_exited_event_object): Update.
12937 * python/py-inferior.c (inferior_to_inferior_object): Return
12938 gdbpy_ref.
12939 (python_new_inferior, python_inferior_deleted)
12940 (thread_to_thread_object, delete_thread_object)
12941 (build_inferior_list, gdbpy_selected_inferior): Update.
12942 * python/py-infthread.c (create_thread_object): Update. Also fail
12943 if inferior_to_inferior_object fails.
12944
d20172fc
SM
129452019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12946
12947 * inferior.h (class inferior) <displaced_step_state>: New field.
12948 * infrun.h (struct displaced_step_state): Move here from
12949 infrun.c. Initialize fields, add constructor.
12950 <inf>: Remove field.
12951 <reset>: New method.
12952 * infrun.c (struct displaced_step_inferior_state): Move to
12953 infrun.h.
12954 (displaced_step_inferior_states): Remove.
12955 (get_displaced_stepping_state): Adust.
12956 (displaced_step_in_progress_any_inferior): Adjust.
12957 (displaced_step_in_progress_thread): Adjust.
12958 (displaced_step_in_progress): Adjust.
12959 (add_displaced_stepping_state): Remove.
12960 (get_displaced_step_closure_by_addr): Adjust.
12961 (remove_displaced_stepping_state): Remove.
12962 (infrun_inferior_exit): Call displaced_step_state.reset.
12963 (use_displaced_stepping): Don't check for NULL.
12964 (displaced_step_prepare_throw): Call
12965 get_displaced_stepping_state.
12966 (displaced_step_fixup): Don't check for NULL.
12967 (prepare_for_detach): Don't check for NULL.
12968
e3319240
PW
129692019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12970
12971 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12972 in case of call that did not complete.
12973
5d36dfb9
AU
129742019-01-02 Andrey Utkin <autkin@undo.io>
12975
12976 * symfile.c (find_separate_debug_file): Fix search of debug files for
12977 remote debuggee.
12978
8833fbf0
TT
129792019-01-02 Tom Tromey <tom@tromey.com>
12980
12981 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12982 indentation.
12983 * python/py-frame.c (frapy_older): Remove cast.
12984 (frapy_newer): Likewise.
12985 * python/py-breakpoint.c (local_setattro): Remove cast.
12986 * python/py-arch.c (archpy_name): Remove local variable.
12987 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12988
4ada3dfd
JB
129892019-01-02 Joel Brobecker <brobecker@adacore.com>
12990
12991 * unittests/basic_string_view/element_access/char/empty.cc:
12992 Fix year range in copyright header.
12993
113b7b81
AB
129942019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12995
12996 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12997 Delete.
12998 <operator==>: Update with for removed field.
12999 <hash>: Likewise.
13000 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13001 <isa_features>: ...this.
13002 <abi_features>: New field.
13003 (riscv_isa_flen): Update comment.
13004 (riscv_abi_xlen): New declaration.
13005 (riscv_abi_flen): New declaration.
13006 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13007 isa_features.
13008 (riscv_abi_xlen): New function.
13009 (riscv_isa_flen): Update to get answer from isa_features.
13010 (riscv_abi_flen): New function.
13011 (riscv_has_fp_abi): Update to get answer from abi_features.
13012 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13013 xlen and flen.
13014 (riscv_call_info) <xlen, flen>: Update comment.
13015 (riscv_call_arg_struct): Remove invalid assertions
13016 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13017 is removed.
13018 (riscv_gdbarch_init): Gather isa features and abi features
13019 separately, ensure both match on the gdbarch when reusing an old
13020 gdbarch. Relax an error check to allow 32-bit abi float to run on
13021 a target with 64-bit float hardware.
13022
b18ca514
PW
130232019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13024
13025 * source.c (search_command_helper): Stop reverse search
13026 when line 1 has been searched.
13027
ec70d8db
PW
130282019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13029
13030 * record-full.c (record_full_base_target::close): Rewrite
13031 record_full_core_buf_list free logic.
13032
5b38f9c1
PW
130332019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13034
13035 * break-catch-syscall.c (print_one_catch_syscall): xfree
13036 the last text.
13037
66d91b39
JB
130382019-01-01 Joel Brobecker <brobecker@adacore.com>
13039
13040 * top.c (print_gdb_version): Update Copyright year in version
13041 message.
13042
42a4f53d
JB
130432019-01-01 Joel Brobecker <brobecker@adacore.com>
13044
13045 Update copyright year range in all GDB files.
13046
7e955d83 130472019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13048
5bbd631d 13049 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13050
5bbd631d 13051For older changes see ChangeLog-2018.
c906108c
SS
13052\f
13053Local Variables:
13054mode: change-log
13055left-margin: 8
13056fill-column: 74
13057version-control: never
57da7796 13058coding: utf-8
c906108c 13059End:
5bbd631d 13060