ld-plugin/pr24406-1.c: Correct buffer size to read
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7ab78ccb
SM
12019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4 formatting.
5
9252448b
SM
62019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
9 Change "nonzero" to "true" in documentation.
10
626ca2c0
CB
112019-09-20 Christian Biesinger <cbiesinger@google.com>
12
13 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
14 (_initialize_darwin_solib): Don't set
15 darwin_so_ops.lookup_lib_global_symbol.
16 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
17 set_gdbarch_iterate_over_objfiles_in_search_order.
18 (elf_lookup_lib_symbol): Rename to...
19 (svr4_iterate_over_objfiles_in_search_order): this, and update
20 to iterate semantics.
21 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
22 * solib.c (solib_global_lookup): Remove.
23 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
24 (solib_global_lookup): Remove.
25 * symtab.c (lookup_global_or_static_symbol): Remove call to
26 solib_global_lookup.
27
5a3a0d63
JB
282019-09-20 Joel Brobecker <brobecker@adacore.com>
29
30 * NEWS: Move entries about default MI version now being
31 version 3, and about the GDB/MI fix for multi-location
32 breakpoints to the "since GDB 8.3" section.
33
ffea1427
JB
342019-09-20 Joel Brobecker <brobecker@adacore.com>
35
36 GDB 8.3.1 released.
37
abf516c6
UW
382019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
39
40 * NEWS: Mention that Cell/B.E. debugging support was removed.
41 * MAINTAINERS: Remove spu target.
42
43 * config/djgpp/fnchange.lst: Remove entries for removed files.
44
45 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
46 spu-multiarch.o, and spu-tdep.o.
47 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
48 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
49 spu-multiarch.c, and spu-tdep.c.
50 * spu-linux-nat.c: Remove file.
51 * spu-multiarch.c: Remove file.
52 * spu-tdep.c: Remove file.
53 * spu-tdep.h: Remove file.
54 * solib-spu.c: Remove file.
55 * solib-spu.h: Remove file.
56
57 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
58 * configure.nat (spu-linux): Remove.
59 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
60 solib-multiarch.o from gdb_target_obs.
61 (spu*-*-*): Remove.
62
63 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
64 feature flag.
65 (ppc_linux_no_features): Update.
66 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
67 Cell/B.E. support.
68 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
69 (tdesc_powerpc_cell64l): Likewise.
70 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
71 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
72 Cell/B.E. support.
73 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
74 Do not include "features/rs6000/powerpc-cell32l.c" or
75 "features/rs6000/powerpc-cell64l.c".
76 (ppc_linux_spu_section): Remove.
77 (ppc_linux_core_read_description): Remove Cell/B.E. support.
78 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
79 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
80 (ppc_linux_spe_context_lookup): Remove.
81 (ppc_linux_spe_context_inferior_created): Remove.
82 (ppc_linux_spe_context_solib_loaded): Remove.
83 (ppc_linux_spe_context_solib_unloaded): Remove.
84 (ppc_linux_spe_context): Remove.
85 (struct ppu2spu_cache): Remove.
86 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
87 (struct ppu2spu_data): Remove.
88 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
89 ppu2spu_unwind): Remove.
90 (ppc_linux_init_abi): Remove Cell/B.E. support.
91 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
92
93 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
94 (rs6000/powerpc-cell64l-expedite): Likewise
95 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
96 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
97 rs6000/powerpc-cell64l.xml.
98 * features/rs6000/powerpc-cell32l.xml: Remove.
99 * features/rs6000/powerpc-cell64l.xml: Likewise.
100 * features/rs6000/powerpc-cell32l.c: Remove generated file.
101 * features/rs6000/powerpc-cell64l.c: Likewise.
102 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
103 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
104 * regformats/reg-spu.dat: Remove.
105
106 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
107 * corelow.c (struct spuid_list): Remove.
108 (add_to_spuid_list): Remove.
109 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
110 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
111 (remote_protocol_features): Remove associated entries.
112 (_initialize_remote): No longer initialize them.
113 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
114 * linux-nat.c (SPUFS_MAGIC): Remove.
115 (linux_proc_xfer_spu): Remove.
116 (spu_enumerate_spu_ids): Remove.
117 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
118 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
119 (linux_make_corefile_notes): No longer call it.
120
121 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
122 (cooked_write_test): Likewise.
123
78e8cb91
TT
1242019-09-20 Tom Tromey <tom@tromey.com>
125
126 * NEWS: Mention case-sensitivity of TUI commands.
127 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
128 (tui_set_win_height_command, parse_scrolling_args): Likewise.
129 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
130
f074b67e
TT
1312019-09-20 Tom Tromey <tom@tromey.com>
132
133 * tui/tui-source.c (tui_source_window::set_contents): Use
134 make_unique_xstrdup.
135 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
136 make_unique_xstrdup.
137
63c4bf19
TT
1382019-09-20 Tom Tromey <tom@tromey.com>
139
140 * tui/tui-data.c: Remove separator comments.
141 * tui/tui-layout.c: Remove separator comments.
142 * tui/tui-win.c: Remove separator comments.
143 * tui/tui-wingeneral.c: Remove separator comments.
144
43df9b2f
TT
1452019-09-20 Tom Tromey <tom@tromey.com>
146
147 * tui/tui.h (strcat_to_buf): Don't declare.
148 * tui/tui.c (strcat_to_buf): Remove.
149
7226433c
TT
1502019-09-20 Tom Tromey <tom@tromey.com>
151
152 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
153 from "fullname".
154 * tui/tui-source.c (tui_source_window::set_contents)
155 (tui_source_window::location_matches_p)
156 (tui_source_window::maybe_update): Update.
157
80df3337
TT
1582019-09-20 Tom Tromey <tom@tromey.com>
159
160 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
161 Update.
162 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
163 prefix.
164 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
165 (tui_data_window::line_from_reg_element_no)
166 (tui_data_window::first_reg_element_no_inline)
167 (tui_data_window::show_registers)
168 (tui_data_window::show_register_group)
169 (tui_data_window::display_registers_from)
170 (tui_data_window::display_registers_from_line)
171 (tui_data_window::first_data_item_displayed)
172 (tui_data_window::delete_data_content_windows)
173 (tui_data_window::erase_data_content)
174 (tui_data_window::do_scroll_vertical)
175 (tui_data_window::refresh_window)
176 (tui_data_window::check_register_values): Update.
177
9923f347
TT
1782019-09-20 Tom Tromey <tom@tromey.com>
179
180 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
181 (struct tui_locator_window) <full_name, proc_name>: Now
182 std::string.
183 * tui/tui-stack.c (tui_locator_window::make_status_line)
184 (tui_locator_window::set_locator_fullname)
185 (tui_locator_window::set_locator_info): Update.
186 * tui/tui-source.c (tui_source_window::set_contents)
187 (tui_source_window::showing_source_p): Update.
188
b76251ab
TT
1892019-09-20 Tom Tromey <tom@tromey.com>
190
191 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
192 Don't call tui_locator_win_info_ptr.
193
0891be08
TT
1942019-09-20 Tom Tromey <tom@tromey.com>
195
196 * tui/tui-win.c (tui_resize_all): Don't call refresh.
197
1b935acf
TT
1982019-09-20 Tom Tromey <tom@tromey.com>
199
200 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
201 height for locator.
202 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
203 * tui/tui-layout.c (show_source_disasm_command, show_data)
204 (show_source_or_disasm_and_command): Use 1 as height for locator.
205
9abd8a65
TT
2062019-09-20 Tom Tromey <tom@tromey.com>
207
208 * tui/tui.c (tui_enable): Update.
209 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
210 Update.
211 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
212 Update.
213 * tui/tui-data.c (win_resized): Now bool.
214 (tui_win_resized): Return bool.
215 (tui_set_win_resized_to): Accept a bool.
216
b5457826
TT
2172019-09-20 Tom Tromey <tom@tromey.com>
218
219 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
220 Change type of "refresh_values_only".
221 * tui/tui-regs.c (tui_data_window::show_register_group): Change
222 type of "refresh_values_only".
223
6b915f7d
TT
2242019-09-20 Tom Tromey <tom@tromey.com>
225
226 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
227 std::string.
228 (tui_disassemble): Add "pos" parameter.
229 (tui_disasm_window::set_contents): Simplify.
230
2ad52f6f
TT
2312019-09-20 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-winsource.h (struct tui_source_window_base)
234 <show_source_content>: Now private.
235 * tui/tui-winsource.c
236 (tui_source_window_base::show_source_content): Don't handle empty
237 content case.
238
b3b1bde6
TT
2392019-09-20 Tom Tromey <tom@tromey.com>
240
241 * tui/tui-layout.c (show_source_disasm_command)
242 (show_source_or_disasm_and_command): Don't call
243 show_source_content.
244
71a25ed2
TT
2452019-09-20 Tom Tromey <tom@tromey.com>
246
247 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
248 Declare.
249 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
250 from tui_make_status_line.
251 (tui_locator_window::rerender): Update.
252
f8532154
TT
2532019-09-20 Tom Tromey <tom@tromey.com>
254
255 * tui/tui-stack.c (tui_make_status_line): Return std::string.
256 (tui_locator_window::rerender): Update.
257
2d81b349
TT
2582019-09-20 Tom Tromey <tom@tromey.com>
259
260 * tui/tui-winsource.h (struct tui_source_window_base)
261 <~tui_source_window_base>: Don't declare.
262 <fullname>: Remove.
263 * tui/tui-winsource.c (~tui_source_window_base): Remove.
264 * tui/tui-source.h (struct tui_source_window) <fullname>: New
265 member.
266 * tui/tui-source.c (tui_source_window::set_contents): Update.
267 (tui_source_window::location_matches_p)
268 (tui_source_window::maybe_update): Update.
269
f14bec58
TT
2702019-09-20 Tom Tromey <tom@tromey.com>
271
272 * tui/tui-winsource.h (~tui_source_element): Remove.
273 (tui_source_element): Update.
274 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
275 * tui/tui-winsource.c (tui_show_source_line): Update.
276 * tui/tui-source.c (tui_source_window::set_contents): Update.
277 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
278
78d5933a
TT
2792019-09-20 Tom Tromey <tom@tromey.com>
280
281 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
282 declare.
283 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
284 tui_clear_source_windows_detail.
285 * tui/tui-winsource.h (struct tui_source_window_base)
286 <clear_detail>: Don't declare.
287 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
288 Remove.
289 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
290
d4207696
TT
2912019-09-20 Tom Tromey <tromey@adacore.com>
292
293 PR ada/24919:
294 * block.c (contained_in): Fix final return value.
295
00f93c44
AM
2962019-09-20 Alan Modra <amodra@gmail.com>
297
298 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
299 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
300 (read_indirect_string_from_dwz): Use bfd accessor.
301 * dwarf2read.h (struct dwz_file <filename>): Likewise.
302 * machoread.c (macho_symfile_read_all_oso): Likewise.
303 * solib.c (solib_bfd_open): Likewise.
304
e4153ae6
CB
3052019-09-19 Christian Biesinger <cbiesinger@google.com>
306
307 * eval.c: Move declaration of overload_resolution to...
308 * value.h: ...here.
309
c7ae7675
CB
3102019-09-19 Christian Biesinger <cbiesinger@google.com>
311
312 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
313 * arm-linux-tdep.c: Likewise.
314 * arm-nbsd-nat.c: Likewise.
315 * arm-tdep.h: Declare arm_apcs_32.
316 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
317
e86f08d2
CB
3182019-09-19 Christian Biesinger <cbiesinger@google.com>
319
320 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
321 * dwarf2read.h: Declare dwarf_always_disassemble.
322
f64e2f40
TV
3232019-09-19 Tom de Vries <tdevries@suse.de>
324
325 PR gdb/25009
326 * source-cache.c (source_cache::ensure): Catch exception thrown during
327 construction of the highlighter.
328
fd361982
AM
3292019-09-18 Alan Modra <amodra@gmail.com>
330
331 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
332 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
333 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
334 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
335 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
336 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
337 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
338 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
339 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
340 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
341 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
342 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
343 * solib-spu.c, * solib-svr4.c, * solib-target.c,
344 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
345 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
346 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
347 * mi/mi-interp.c: Update throughout for bfd section macro and
348 function changes.
349 * gcore (gcore_create_callback): Use bfd_set_section_lma.
350 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
351
11061048
TT
3522019-09-18 Tom Tromey <tom@tromey.com>
353
354 * NEWS: Add entry.
355 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
356 call rl_initialize.
357 (tui_enable): Do not call rl_initialize.
358
7a27b85f
CG
3592019-09-18 Christian Groessler <chris@groessler.org>
360
361 * alpha-linux-nat.c: Include gdbarch.h.
362
f64eea3a
SM
3632019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * ui-file.c: Include cli/cli-style.h.
366 (term_cli_styling): Remove cli_styling declaration.
367
e6f7f6d1
AM
3682019-09-18 Alan Modra <amodra@gmail.com>
369
370 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
371 to bfd_asymbol_section.
372
1d38e9d1
AM
3732019-09-18 Alan Modra <amodra@gmail.com>
374
375 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
376 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
377 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
378
90d92a63
AM
3792019-09-18 Alan Modra <amodra@gmail.com>
380
381 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
382 * spu-linux-nat.c (spu_bfd_open): Likewise.
383
a3d181d2
CB
3842019-09-18 Christian Biesinger <cbiesinger@google.com>
385
386 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
387 to bool to match definition in dwarf2read.c.
388
491144b5
CB
3892019-09-17 Christian Biesinger <cbiesinger@google.com>
390
391 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
392 (print_signatures): Likewise.
393 (trust_pad_over_xvs): Likewise.
394 * arch/aarch64-insn.c (aarch64_debug): Likewise.
395 * arch/aarch64-insn.h (aarch64_debug): Likewise.
396 * arm-linux-nat.c (arm_apcs_32): Likewise.
397 * arm-linux-tdep.c (arm_apcs_32): Likewise.
398 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
399 * arm-tdep.c (arm_debug): Likewise.
400 (arm_apcs_32): Likewise.
401 * auto-load.c (debug_auto_load): Likewise.
402 (auto_load_gdb_scripts): Likewise.
403 (global_auto_load): Likewise.
404 (auto_load_local_gdbinit): Likewise.
405 (auto_load_local_gdbinit_loaded): Likewise.
406 * auto-load.h (global_auto_load): Likewise.
407 (auto_load_local_gdbinit): Likewise.
408 (auto_load_local_gdbinit_loaded): Likewise.
409 * breakpoint.c (disconnected_dprintf): Likewise.
410 (breakpoint_proceeded): Likewise.
411 (automatic_hardware_breakpoints): Likewise.
412 (always_inserted_mode): Likewise.
413 (target_exact_watchpoints): Likewise.
414 (_initialize_breakpoint): Update.
415 * breakpoint.h (target_exact_watchpoints): Change to bool.
416 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
417 * cli/cli-cmds.c (trace_commands): Likewise.
418 * cli/cli-cmds.h (trace_commands): Likewise.
419 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
420 to bool*.
421 * cli/cli-logging.c (logging_overwrite): Change to bool.
422 (logging_redirect): Likewise.
423 (debug_redirect): Likewise.
424 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
425 (struct boolean_option_def) <get_var_address_cb_>: Change return type
426 to bool.
427 <boolean_option_def>: Update.
428 (struct flag_option_def): Change default type of Context to bool
429 from int.
430 <flag_option_def>: Change return type of var_address_cb_ to bool*.
431 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
432 (get_setshow_command_value_string): Likewise.
433 * cli/cli-style.c (cli_styling): Change to bool.
434 (source_styling): Likewise.
435 * cli/cli-style.h (source_styling): Likewise.
436 (cli_styling): Likewise.
437 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
438 to bool.
439 * command.h (var_types): Update comment.
440 (add_setshow_boolean_cmd): Change int* var argument to bool*.
441 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
442 bool.
443 (debug_compile_cplus_scopes): Likewise.
444 * compile/compile-internal.h (compile_debug): Likewise.
445 * compile/compile.c (compile_debug): Likewise.
446 (struct compile_options) <raw>: Likewise.
447 * cp-support.c (catch_demangler_crashes): Likewise.
448 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
449 (usr_cmd_cris_dwarf2_cfi): Likewise.
450 * csky-tdep.c (csky_debug): Likewise.
451 * darwin-nat.c (enable_mach_exceptions): Likewise.
452 * dcache.c (dcache_enabled_p): Likewise.
453 * defs.h (info_verbose): Likewise.
454 * demangle.c (demangle): Likewise.
455 (asm_demangle): Likewise.
456 * dwarf-index-cache.c (debug_index_cache): Likewise.
457 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
458 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
459 * dwarf2read.c (check_physname): Likewise.
460 (use_deprecated_index_sections): Likewise.
461 (dwarf_always_disassemble): Likewise.
462 * eval.c (overload_resolution): Likewise.
463 * event-top.c (set_editing_cmd_var): Likewise.
464 (exec_done_display_p): Likewise.
465 * event-top.h (set_editing_cmd_var): Likewise.
466 (exec_done_display_p): Likewise.
467 * exec.c (write_files): Likewise.
468 * fbsd-nat.c (debug_fbsd_lwp): Likewise
469 (debug_fbsd_nat): Likewise.
470 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
471 Likewise.
472 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
473 <backtrace_past_entry> Likewise.
474 * gdb-demangle.h (demangle): Likewise.
475 (asm_demangle): Likewise.
476 * gdb_bfd.c (bfd_sharing): Likewise.
477 * gdbcore.h (write_files): Likewise.
478 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
479 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
480 * gdbthread.h (print_thread_events): Likewise.
481 * gdbtypes.c (opaque_type_resolution): Likewise.
482 (strict_type_checking): Likewise.
483 * gnu-nat.c (gnu_debug_flag): Likewise.
484 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
485 * guile/scm-param.c (pascm_variable): Add boolval.
486 (add_setshow_generic): Update.
487 (pascm_param_value): Update.
488 (pascm_set_param_value_x): Update.
489 * hppa-tdep.c (hppa_debug): Change to bool..
490 * infcall.c (may_call_functions_p): Likewise.
491 (coerce_float_to_double_p): Likewise.
492 (unwind_on_signal_p): Likewise.
493 (unwind_on_terminating_exception_p): Likewise.
494 * infcmd.c (startup_with_shell): Likewise.
495 * inferior.c (print_inferior_events): Likewise.
496 * inferior.h (startup_with_shell): Likewise.
497 (print_inferior_events): Likewise.
498 * infrun.c (step_stop_if_no_debug): Likewise.
499 (detach_fork): Likewise.
500 (debug_displaced): Likewise.
501 (disable_randomization): Likewise.
502 (non_stop): Likewise.
503 (non_stop_1): Likewise.
504 (observer_mode): Likewise.
505 (observer_mode_1): Likewise.
506 (set_observer_mode): Update.
507 (sched_multi): Change to bool.
508 * infrun.h (debug_displaced): Likewise.
509 (sched_multi): Likewise.
510 (step_stop_if_no_debug): Likewise.
511 (non_stop): Likewise.
512 (disable_randomization): Likewise.
513 * linux-tdep.c (use_coredump_filter): Likewise.
514 (dump_excluded_mappings): Likewise.
515 * linux-thread-db.c (auto_load_thread_db): Likewise.
516 (check_thread_db_on_load): Likewise.
517 * main.c (captured_main_1): Update.
518 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
519 xx2_opt, boolean_opt>: Change to bool.
520 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
521 * maint.c (maintenance_profile_p): Likewise.
522 (per_command_time): Likewise.
523 (per_command_space): Likewise.
524 (per_command_symtab): Likewise.
525 * memattr.c (inaccessible_by_default): Likewise.
526 * mi/mi-main.c (mi_async): Likewise.
527 (mi_async_1): Likewise.
528 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
529 * nat/fork-inferior.h (startup_with_shell): Likewise.
530 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
531 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
532 * nios2-tdep.c (nios2_debug): Likewise.
533 * or1k-tdep.c (or1k_debug): Likewise.
534 * parse.c (parser_debug): Likewise.
535 * parser-defs.h (parser_debug): Likewise.
536 * printcmd.c (print_symbol_filename): Likewise.
537 * proc-api.c (procfs_trace): Likewise.
538 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
539 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
540 (set_parameter_value): Update.
541 (add_setshow_generic): Update.
542 * python/py-value.c (copy_py_bool_obj): Change argument from int*
543 to bool*.
544 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
545 int*.
546 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
547 * record-btrace.c (record_btrace_target::store_registers): Update.
548 * record-full.c (record_full_memory_query): Change to bool.
549 (record_full_stop_at_limit): Likewise.
550 * record-full.h (record_full_memory_query): Likewise.
551 * remote-notif.c (notif_debug): Likewise.
552 * remote-notif.h (notif_debug): Likewise.
553 * remote.c (use_range_stepping): Likewise.
554 (interrupt_on_connect): Likewise.
555 (remote_break): Likewise.
556 * ser-tcp.c (tcp_auto_retry): Likewise.
557 * ser-unix.c (serial_hwflow): Likewise.
558 * skip.c (debug_skip): Likewise.
559 * solib-aix.c (solib_aix_debug): Likewise.
560 * spu-tdep.c (spu_stop_on_load_p): Likewise.
561 (spu_auto_flush_cache_p): Likewise.
562 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
563 Likewise.
564 (struct info_print_options) <quiet>: Likewise.
565 * symfile-debug.c (debug_symfile): Likewise.
566 * symfile.c (auto_solib_add): Likewise.
567 (separate_debug_file_debug): Likewise.
568 * symfile.h (auto_solib_add): Likewise.
569 (separate_debug_file_debug): Likewise.
570 * symtab.c (basenames_may_differ): Likewise.
571 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
572 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
573 (struct info_types_options) <quiet>: Likewise.
574 * symtab.h (demangle): Likewise.
575 (basenames_may_differ): Likewise.
576 * target-dcache.c (stack_cache_enabled_1): Likewise.
577 (code_cache_enabled_1): Likewise.
578 * target.c (trust_readonly): Likewise.
579 (may_write_registers): Likewise.
580 (may_write_memory): Likewise.
581 (may_insert_breakpoints): Likewise.
582 (may_insert_tracepoints): Likewise.
583 (may_insert_fast_tracepoints): Likewise.
584 (may_stop): Likewise.
585 (auto_connect_native_target): Likewise.
586 (target_stop_and_wait): Update.
587 (target_async_permitted): Change to bool.
588 (target_async_permitted_1): Likewise.
589 (may_write_registers_1): Likewise.
590 (may_write_memory_1): Likewise.
591 (may_insert_breakpoints_1): Likewise.
592 (may_insert_tracepoints_1): Likewise.
593 (may_insert_fast_tracepoints_1): Likewise.
594 (may_stop_1): Likewise.
595 * target.h (target_async_permitted): Likewise.
596 (may_write_registers): Likewise.
597 (may_write_memory): Likewise.
598 (may_insert_breakpoints): Likewise.
599 (may_insert_tracepoints): Likewise.
600 (may_insert_fast_tracepoints): Likewise.
601 (may_stop): Likewise.
602 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
603 (make_thread_apply_all_options_def_group): Change argument from int*
604 to bool*.
605 (thread_apply_all_command): Update.
606 (print_thread_events): Change to bool.
607 * top.c (confirm): Likewise.
608 (command_editing_p): Likewise.
609 (history_expansion_p): Likewise.
610 (write_history_p): Likewise.
611 (info_verbose): Likewise.
612 * top.h (confirm): Likewise.
613 (history_expansion_p): Likewise.
614 * tracepoint.c (disconnected_tracing): Likewise.
615 (circular_trace_buffer): Likewise.
616 * typeprint.c (print_methods): Likewise.
617 (print_typedefs): Likewise.
618 * utils.c (debug_timestamp): Likewise.
619 (sevenbit_strings): Likewise.
620 (pagination_enabled): Likewise.
621 * utils.h (sevenbit_strings): Likewise.
622 (pagination_enabled): Likewise.
623 * valops.c (overload_resolution): Likewise.
624 * valprint.h (struct value_print_options) <prettyformat_arrays,
625 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
626 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
627 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
628 Likewise.
629 * windows-nat.c (new_console): Likewise.
630 (cygwin_exceptions): Likewise.
631 (new_group): Likewise.
632 (debug_exec): Likewise.
633 (debug_events): Likewise.
634 (debug_memory): Likewise.
635 (debug_exceptions): Likewise.
636 (useshell): Likewise.
637 * windows-tdep.c (maint_display_all_tib): Likewise.
638 * xml-support.c (debug_xml): Likewise.
639
f1b620e9
MG
6402019-09-17 Mike Gulick <mgulick@mathworks.com>
641
642 * source.c (prepare_path_for_appending): New function.
643 (openp): Make use of new function.
644 (find_and_open_source): Search for the compilation directory and
645 source file as a relative path beneath the directory search path.
646
67f3ed6a
AB
6472019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * source-cache.c (source_cache::get_line_charpos): Catch
650 exceptions and return false, this matches the behaviour documented
651 in the header file.
652
74332189
JB
6532019-09-17 Joel Brobecker <brobecker@adacore.com>
654
655 * ada-tasks.c (info_task): Remove quoting of the task's name.
656
f2f24aa9
CB
6572019-09-16 Christian Biesinger <cbiesinger@google.com>
658
659 * symfile.c (auto_solib_add): Replace comment with a reference
660 to the header file.
661
6a062a93
CB
6622019-09-14 Christian Biesinger <cbiesinger@google.com>
663
664 * NEWS: Mention that gdb can now be compiled with Python 3
665 on Windows.
666
ec6c8338
AB
6672019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * maint.c (maint_print_section_data::maint_print_section_data):
670 Force use of 'float log10 (float)' by casting the argument to
671 float.
672
aa17805f
AB
6732019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * maint.c: Add 'cmath' include.
676 (struct maint_print_section_data): New structure.
677 (print_section_index): New function.
678 (print_bfd_section_info): Add header comment, small whitespace
679 cleanup, and update to call new print_section_index function.
680 (print_objfile_section_info): Likewise.
681 (maint_obj_section_from_bfd_section): New function.
682 (print_bfd_section_info_maybe_relocated): New function.
683 (maintenance_info_sections): Add header comment, always use
684 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
685
3dd9bb46
AB
6862019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
689 inner scope, add check that the objfile has psymtabs before
690 checking psymtabs_addrmap.
691 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
692
4993045d
PW
6932019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
694
695 * NEWS: Announce that Ada task names are now shown at more places,
696 and between quotes (except in info task output).
697 * gdb/ada-tasks.c (task_to_str): New function.
698 (display_current_task_id): Call task_to_str.
699 (task_command_1): Likewise.
700 (print_ada_task_info): In non-mi mode, Properly align headers and data
701 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
702
7a289707
RO
7032019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
704
705 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
706 prstatus.pr_lwp.pr_info instead of making it up.
707
f2aec7f6
CB
7082019-09-11 Christian Biesinger <cbiesinger@google.com>
709
710 * auto-load.c (auto_load_expand_dir_vars): Update.
711 * defs.h (gdb_datadir): Change to std::string.
712 (python_libdir): Likewise.
713 (relocate_gdb_directory): Change return type to std::string.
714 * guile/guile.c (gdbscm_data_directory): Update.
715 (initialize_scheme_side): Update.
716 * jit.c (jit_reader_dir): Change to std::string.
717 (jit_reader_load_command): Update.
718 * main.c (gdb_datadir): Change to std::string.
719 (python_libdir): Likewise.
720 (set_gdb_data_directory): Update.
721 (relocate_path): Change to return std::string.
722 (relocate_gdb_directory): Change to return std::string.
723 (relocate_gdbinit_path_maybe_in_datadir): Update.
724 (captured_main_1): Update.
725 * python/python.c (do_start_initialization): Update.
726 * top.c (show_gdb_datadir): Update.
727 * xml-syscall.c (xml_init_syscalls_info): Update.
728 (init_syscalls_info): Update.
729
9224a013
CB
7302019-09-11 Christian Biesinger <cbiesinger@google.com>
731
732 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
733 out of get_init_files.
734 (get_init_files): Update.
735
f48cd836
CB
7362019-09-11 Christian Biesinger <cbiesinger@google.com>
737
738 * main.c (get_init_files): Change to use std::string.
739 (captured_main_1): Update.
740 (print_gdb_help): Update.
741
9cab7ecd
AT
7422019-09-11 Ali Tamur <tamur@google.com>
743
744 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
745 implementation.
746
67547d89
CB
7472019-09-11 Christian Biesinger <cbiesinger@google.com>
748
749 * dbxread.c (read_dbx_symtab): Update.
750 * dwarf2read.c (load_partial_dies): Update.
751 * mdebugread.c (parse_partial_symbols): Update.
752 (handle_psymbol_enumerators): Update.
753 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
754 * psymtab.c (add_psymbol_to_bcache): Likewise.
755 (add_psymbol_to_list): Likewise.
756 * symtab.c (symbol_set_names): Likewise.
757 * symtab.h (symbol_set_names): Likewise.
758 * xcoffread.c (scan_xcoff_symtab): Update.
759
64b2d4a0
TT
7602019-09-11 Tom Tromey <tom@tromey.com>
761
762 * symfile-mem.c (symbol_file_add_from_memory): Use
763 bfd_set_filename.
764 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
765 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
766
3b00ef10
TT
7672019-09-10 Tom Tromey <tromey@adacore.com>
768
769 * dwarf-index-write.c (write_psymbols): Extend error message.
770 (debug_names::insert): Add Ada code.
771 (debug_names::write_psymbols): Remove Ada check.
772 (debug_names) <m_string_obstack>: New member.
773 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
774 (gdb_index_symbol_name_matcher::matches): Remove.
775 (mapped_index_base::find_name_components_bounds): Add "lang"
776 parameter.
777 (mapped_index_base::build_name_components): Also split names
778 according to Ada syntax.
779 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
780 type of "match_callback".
781 (check_match, check_find_bounds_finds)
782 (dw2_expand_symtabs_matching): Update.
783 (dw2_debug_names_iterator): Add new constructor.
784 (dw2_debug_names_map_matching_symbols): New function.
785 (dw2_debug_names_expand_symtabs_matching): Update.
786 (dwarf2_debug_names_functions): Use
787 dw2_debug_names_map_matching_symbols.
788
aa391654
TT
7892019-09-10 Tom Tromey <tromey@adacore.com>
790
791 * dwarf2read.c (dw2_get_file_names_reader): Add the
792 CU's file name to the results.
793
b054970d
TT
7942019-09-10 Tom Tromey <tromey@adacore.com>
795
796 * ada-lang.c (add_nonlocal_symbols): Combine calls to
797 map_matching_symbols. Update.
798 * dwarf2read.c (dw2_map_matching_symbols): Update.
799 * psymtab.c (match_partial_symbol): Change type; update.
800 (psym_map_matching_symbols): Likewise.
801 * symfile-debug.c (debug_qf_map_matching_symbols): Change
802 type; update.
803 * symfile.h (struct quick_symbol_functions)
804 <map_matching_symbols>: Change "name" to be a lookup_name_info.
805 Remove "match".
806
6a3dbf1b
TT
8072019-09-10 Tom Tromey <tromey@adacore.com>
808
809 * psymtab.c (map_block): Remove.
810 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
811 * symtab.c (iterate_over_symbols_terminated): New function.
812 * symtab.c (iterate_over_symbols_terminated): Declare.
813
6969f124
TT
8142019-09-10 Tom Tromey <tromey@adacore.com>
815
816 * ada-lang.c (ada_iterate_over_symbols): Return bool.
817 * language.h (struct language_defn) <la_iterate_over_symbols>:
818 Return bool.
819 * symtab.c (iterate_over_symbols): Return bool.
820 * symtab.h (iterate_over_symbols): Return bool.
821
199b4314
TT
8222019-09-10 Tom Tromey <tromey@adacore.com>
823
824 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
825 (add_nonlocal_symbols): Update.
826 * dwarf2read.c (dw2_map_matching_symbols): Change type.
827 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
828 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
829 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
830 Change type of "callback". Remove "data".
831
a084a2a6
AT
832
8332019-09-09 Ali Tamur <tamur@google.com>
834
835 * dwarf2read.c (comp_unit_head): Update comment.
836 (dwarf2_dwo_name): New function declaration.
837 (dwarf_unit_type_name): New function declaration.
838 (read_comp_unit_head): Add support for new compilation units,
839 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
840 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
841 (currently named as "signature") in their header. Also clarify error
842 messages.
843 (lookup_dwo_id): New function. Returns the dwo id of the given
844 compile unit.
845 (lookup_dwo_unit): Use the new lookup_dwo_id function.
846 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
847 functions.
848 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
849 (dwarf2_dwo_name): Get the dwo name if present.
850 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
851 purposes.
852
25a2915e
TT
8532019-09-09 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
856
e4df0874
PW
8572019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
858
859 * python/python.c (do_start_initialization): Make progname_copy static,
860 to avoid a leak report.
861
8634b462
TT
8622019-09-08 Tom Tromey <tom@tromey.com>
863
864 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
865
c7f839cb
SM
8662019-09-07 Simon Marchi <simon.marchi@efficios.com>
867
868 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
869 Change type to gdb::optional<block_enum>.
870 (dw2_symtab_iter_init): Change block_index parameter type
871 to gdb::optional<block_enum>.
872 (dw2_lookup_symbol): Change block_index parameter
873 type to block_enum.c
874 (dw2_debug_names_lookup_symbol): Likewise.
875 * psymtab.c (psym_lookup_symbol): Likewise.
876 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
877 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
878 Likewise.
879
ead0e69a
CB
8802019-09-06 Christian Biesinger <cbiesinger@google.com>
881
882 * defs.h (relocate_gdb_directory): Change int to bool in
883 signature and rename flag to relocatable.
884 * main.c (relocate_path): Likewise.
885 (relocate_gdb_directory): Likewise.
886
b16c44de
AM
8872019-09-06 Alan Modra <amodra@gmail.com>
888
889 * coffread.c (coff_symfile_read): Constify filename variable.
890 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
891 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
892 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
893 * solib.c (reload_shared_libraries_1): Likewise.
894 * symfile.c (reread_symbols): Likewise.
895 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
896 * solib-darwin.c (darwin_bfd_open): Likewise.
897 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
898
06ff036e
AB
8992019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * psymtab.c (print_partial_symbols): Handle missing domain_enum
902 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
903
4e962e74
TT
9042019-09-03 Tom Tromey <tromey@adacore.com>
905
906 * ada-valprint.c (ada_val_print_num): Don't recurse for range
907 types.
908 (has_negatives): Unbias a range type bound.
909 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
910 * gdbtypes.c (operator==): Handle new field.
911 (create_range_type): Add "bias" parameter.
912 (create_static_range_type, resolve_dynamic_range): Update.
913 * gdbtypes.h (struct range_bounds) <bias>: New member.
914 (create_range_type): Add bias parameter.
915 * printcmd.c (print_scalar_formatted): Unbias range types.
916 * value.c (unpack_long): Unbias range types.
917 (pack_long): Bias range types.
918
d90b8f26
AH
9192019-09-02 Alan Hayward <alan.hayward@arm.com>
920
921 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
922 probe arguments.
923
fe01123e
AH
9242019-09-02 Alan Hayward <alan.hayward@arm.com>
925
926 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
927 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
928 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
929 (compile_probe_arg): Likewise.
930 * probe.h (get_argument_count): Likewise.
931 * solib-svr4.c (solib_event_probe_action): Likewise.
932 * stap-probe.c (stap_probe::get_argument_count): Likewise.
933
e661ef01
AH
9342019-09-02 Alan Hayward <alan.hayward@arm.com>
935
936 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
937 code to here...
938 (svr4_create_solib_event_breakpoints): ...from here.
939
47a536d9
SDJ
9402019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
941
942 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
943 suffix from warning message.
944
d6a00eba
TT
9452019-08-30 Tom Tromey <tom@tromey.com>
946
947 * tui/tui-winsource.h (struct tui_source_window_base)
948 <refresh_all>: Don't declare.
949 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
950 Remove.
951 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
952 tui_show_locator_content.
953 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
954 declare.
955 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
956 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
957 declare.
958
55b2657b
TT
9592019-08-30 Tom Tromey <tom@tromey.com>
960
961 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
962
12a8555a
TT
9632019-08-30 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-stack.c (_initialize_tui_stack): Move later.
966 Remove unnecessary forward declarations.
967
900ac242
TT
9682019-08-30 Tom Tromey <tom@tromey.com>
969
970 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
971 rerender.
972 (tui_update_locator_fullname, tui_show_frame_info): Don't call
973 tui_show_locator_content.
974
99ab33fb
TT
9752019-08-30 Tom Tromey <tom@tromey.com>
976
977 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
978 (tui_locator_window::rerender): Rewrite using body of previous
979 tui_show_locator_content.
980
e594a5d1
TT
9812019-08-30 Tom Tromey <tom@tromey.com>
982
983 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
984 set_locator_fullname>: New methods.
985 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
986 Rename from tui_set_locator_fullname.
987 (tui_locator_window::set_locator_info): Rename from
988 tui_set_locator_info. Return bool.
989 (tui_update_locator_fullname, tui_show_frame_info): Update.
990
715bb467
TT
9912019-08-30 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
994
772f3f03
TT
9952019-08-30 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
998 call touchwin.
999
108e13ab
TT
10002019-08-30 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-wingeneral.c (box_win): Assume win_info and
1003 win_info->handle cannot be NULL.
1004
cdaa6eb4
TT
10052019-08-30 Tom Tromey <tom@tromey.com>
1006
1007 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1008 refresh_window>: Declare.
1009 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1010 resize.
1011 (tui_data_item_window::rerender): Rename from
1012 tui_display_register.
1013 (tui_data_item_window::refresh_window): New method.
1014 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1015 no-op.
1016
89df7f90
TT
10172019-08-30 Tom Tromey <tom@tromey.com>
1018
1019 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1020 regs_column_count, current_group>: Move later. Now private.
1021 <get_current_group>: New method.
1022 * tui/tui-regs.c (tui_reg_command): Update.
1023 * tui/tui-layout.c (tui_set_layout): Update.
1024
1bf2866a
TT
10252019-08-30 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1028 (tui_data_window::rerender): Don't call
1029 check_and_display_highlight_if_needed.
1030 (tui_data_window::refresh_all): Remove call to
1031 erase_data_content.
1032
0670413d
TT
10332019-08-30 Tom Tromey <tom@tromey.com>
1034
1035 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1036 (tui_data_window::display_registers_from)
1037 (tui_data_window::display_reg_element_at_line)
1038 (tui_data_window::display_registers_from_line): Remove checks of
1039 "empty".
1040
18bb55c7
TT
10412019-08-30 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1044 Don't declare.
1045 * tui/tui-regs.c (tui_data_window::show_registers): Call
1046 rerender.
1047 (tui_data_window::rerender): Rename from display_all_data.
1048 (tui_data_window::rerender): Remove old implementation.
1049
1f6d2f10
TT
10502019-08-30 Tom Tromey <tom@tromey.com>
1051
1052 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1053 text.
1054 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1055
16d01f9c
BW
10562019-08-29 Bernhard Wodok <barto@gmx.net>
1057 Sergio Durigan Junior <sergiodj@redhat.com>
1058
1059 PR win32/24284
1060 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1061
d8f27c60
AB
10622019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1063
1064 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1065 when searching for types.
1066
1f20c35e
AB
10672019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * f-lang.c (f_language_defn): Use f_print_typedef.
1070 * f-lang.h (f_print_typedef): Declare.
1071 * f-typeprint.c (f_print_typedef): Define.
1072
550105b7
CB
10732019-08-27 Christian Biesinger <cbiesinger@google.com>
1074
1075 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1076
4acfdd20
AB
10772019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * cli/cli-utils.c (info_print_options_defs): Delete.
1080 (make_info_print_options_def_group): Delete.
1081 (extract_info_print_options): Delete.
1082 (info_print_command_completer): Delete.
1083 (info_print_args_help): Add extra parameter, and optionally
1084 include text about -n flag.
1085 * cli/cli-utils.h (struct info_print_options): Delete.
1086 (extract_info_print_options): Delete declaration.
1087 (info_print_command_completer): Delete declaration.
1088 (info_print_args_help): Add extra parameter, extend header
1089 comment.
1090 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1091 search_symbols.
1092 * stack.c (struct info_print_options): New type.
1093 (info_print_options_defs): New file scoped variable.
1094 (make_info_print_options_def_group): New static function.
1095 (info_print_command_completer): New static function.
1096 (info_locals_command): Update to use new local functions.
1097 (info_args_command): Likewise.
1098 (_initialize_stack): Add extra parameter to calls to
1099 info_print_args_help.
1100 * symtab.c (search_symbols): Add extra parameter, use this to
1101 possibly excluse non-debug symbols.
1102 (symtab_symbol_info): Add extra parameter, which is passed on to
1103 search_symbols.
1104 (struct info_print_options): New type.
1105 (info_print_options_defs): New file scoped variable.
1106 (make_info_print_options_def_group): New static function.
1107 (info_print_command_completer): New static function.
1108 (info_variables_command): Update to use local functions, and pass
1109 extra parameter through to symtab_symbol_info.
1110 (info_functions_command): Likewise.
1111 (info_types_command): Pass additional argument through to
1112 symtab_symbol_info.
1113 (rbreak_command): Pass extra argument to search_symbols.
1114 (_initialize_symtab): Add extra arguments for calls to
1115 info_print_args_help, and update help text for 'info variables',
1116 'whereis', and 'info functions' commands.
1117 * symtab.h (search_symbols): Add extra argument to declaration.
1118 * NEWS: Mention new flags.
1119
9aa55206
CB
11202019-08-26 Christian Biesinger <cbiesinger@google.com>
1121
1122 * symtab.c (lookup_static_symbol): Call the new function (and move
1123 it down to be next to lookup_global_symbol).
1124 (struct global_sym_lookup_data): Add block_enum member and rename to...
1125 (struct global_or_static_sym_lookup_data): ...this.
1126 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1127 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1128 (lookup_symbol_global_or_static_iterator_cb): ...this.
1129 (lookup_global_or_static_symbol): New function.
1130 (lookup_global_symbol): Call new function.
1131
5c31b358
TV
11322019-08-26 Tom de Vries <tdevries@suse.de>
1133
1134 PR c++/24852
1135 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1136 when pc_probe.prob == NULL.
1137
23c13d42
SM
11382019-08-25 Simon Marchi <simon.marchi@efficios.com>
1139
1140 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1141 variable symbol_linkage to symbol_linkage_.
1142
beadd3e8
SM
11432019-08-25 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1146 represent whether the symbol is static, dynamic, or we don't
1147 know.
1148
e3ec872f
YS
11492019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1150
1151 * gdb/rx-tdep.c (rx_register_names): New.
1152 (rx_register_name): Delete.
1153 (rx_psw_type): Delete.
1154 (rx_fpsw_type): Delete.
1155 (rx_register_type): Delete.
1156 (rx_gdbarch_init): Convert target-descriptions.
1157 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1158 * gdb/features/Makefile: Add rx.xml.
1159 * gdb/features/rx.xml: New.
1160 * gdb/features/rx.c: Generated.
1161 * gdb/NEWS: Mention target description support.
1162
d0509ba4
CB
11632019-08-22 Christian Biesinger <cbiesinger@google.com>
1164
1165 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1166 *slot_ptr.
1167
2d41fa11
SDJ
11682019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1169
1170 * configure.ac: Don't check for 'dlfcn.h' (moved to
1171 gdbsupport/common.m4).
1172 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1173 'gdbsupport/'.
1174 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1175 * compile/compile-c-support.c: Include
1176 'gdbsupport/gdb-dlfcn.h'.
1177 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1178 * gdb-dlfcn.c: Move to...
1179 * gdbsupport/gdb-dlfcn.c: ... here.
1180 * gdb-dlfcn.h: Move to...
1181 * gdbsupport/gdb-dlfcn.h: ... here.
1182
de8af808
SL
11832019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1184
1185 * nios2-tdep.c (struct reg_value): Improve comments. Make
1186 the offset field signed.
1187
27204489
CB
11882019-08-22 Christian Biesinger <cbiesinger@google.com>
1189
1190 * python/lib/gdb/__init__.py (_execute_file): New function.
1191 * python/python.c (python_run_simple_file): Call gdb._execute_file
1192 on Windows.
1193
43771869
AB
11942019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1197 all uses as this was never set to anything but a zero value.
1198
26c957f1
PA
11992019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1200
1201 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1202
c07aae6e
CB
12032019-08-21 Christian Biesinger <cbiesinger@google.com>
1204
1205 * tui/tui-data.h (tui_gen_win_info): Add an =default
1206 move constructor, required by some GCC versions.
1207
3960cb7a
JF
12082019-08-21 Jinke Fan <fanjinke51@yeah.net>
1209
1210 * go32-nat.c (go32_sysinfo): Add hygon_p.
1211
04c72a68
TT
12122019-08-20 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1215 line_from_reg_element_no, first_reg_element_no_inline,
1216 display_all_data, delete_data_content_windows,
1217 erase_data_content>: Now private.
1218
072272ce
TT
12192019-08-20 Tom Tromey <tom@tromey.com>
1220
1221 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1222 (tui_unhighlight_win, tui_highlight_win)
1223 (tui_win_info::make_window): Update.
1224 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1225
973961bd
TT
12262019-08-20 Tom Tromey <tom@tromey.com>
1227
1228 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1229 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1230 (MAX_PID_WIDTH): Move to tui-stack.c.
1231 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1232 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1233 (MAX_PID_WIDTH): Move from tui-data.h.
1234
ab0e1f1a
TT
12352019-08-20 Tom Tromey <tom@tromey.com>
1236
1237 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1238 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1239 (box_win): Update.
1240 (tui_gen_win_info::make_window): Rename from tui_make_window.
1241 (tui_win_info::make_window): New method.
1242 (tui_gen_win_info::make_visible): Update.
1243 * tui/tui-source.c (tui_source_window::set_contents): Update.
1244 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1245 (tui_data_window::display_registers_from): Update.
1246 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1247 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1248 Declare.
1249 <can_box>: Remove.
1250 <title>: Remove.
1251 (struct tui_win_info) <make_window>: Declare.
1252 <can_box>: Now virtual.
1253 <title>: New member.
1254 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1255 * tui/tui-command.c (tui_cmd_window::resize): Update.
1256
100c2bf3
TT
12572019-08-20 Tom Tromey <tom@tromey.com>
1258
1259 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1260 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1261 (tui_data_window::check_register_values): Update.
1262
fa4dc567
TT
12632019-08-20 Tom Tromey <tom@tromey.com>
1264
1265 * tui/tui-regs.h (struct tui_data_window): Use
1266 DISABLE_COPY_AND_ASSIGN.
1267 <regs_content>: Change type, removing unique_ptr.
1268 <tui_data_window>: Add move constructor.
1269 * tui/tui-regs.c (tui_data_window::show_registers)
1270 (tui_data_window::show_register_group)
1271 (tui_data_window::display_registers_from)
1272 (tui_data_window::display_registers_from)
1273 (tui_data_window::first_data_item_displayed)
1274 (tui_data_window::delete_data_content_windows)
1275 (tui_data_window::rerender, tui_data_window::refresh_window)
1276 (tui_data_window::check_register_values): Update.
1277
ca02d7c8
TT
12782019-08-20 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1281 show_register_group>: Declare.
1282 (tui_show_register_group): Don't declare.
1283 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1284 tui_show_registers.
1285 (tui_data_window::show_register_group): Rename from
1286 tui_show_register_group.
1287 (tui_data_window::check_register_values, tui_reg_command):
1288 Update.
1289 * tui/tui-layout.c (tui_set_layout): Update.
1290
63356bfd
TT
12912019-08-20 Tom Tromey <tom@tromey.com>
1292
1293 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1294 Declare.
1295 (tui_check_register_values): Don't declare.
1296 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1297 from tui_check_register_values.
1298 * tui/tui-hooks.c (tui_register_changed): Update.
1299
42cc14a7
TT
13002019-08-20 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui-regs.c (tui_reg_layout): Move later.
1303 (tui_show_registers): Don't enable TUI mode or change layout.
1304
b9ad3686
TT
13052019-08-20 Tom Tromey <tom@tromey.com>
1306
1307 * tui/tui-regs.h (struct tui_data_item_window)
1308 <~tui_data_item_window>: Remove.
1309 <content>: Now a unique_xmalloc_ptr.
1310 * tui/tui-regs.c (tui_register_format): Return a
1311 unique_xmalloc_ptr.
1312 (tui_get_register): Update.
1313 (~tui_data_item_window): Remove.
1314 (tui_data_window::display_registers_from, tui_display_register):
1315 Update.
1316 * tui/tui-io.h (tui_expand_tabs): Update.
1317 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1318 Remove "col" parameter.
1319
8e114aab
TT
13202019-08-20 Tom Tromey <tom@tromey.com>
1321
1322 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1323 field.
1324 * tui/tui-regs.c (~tui_data_item_window): Update.
1325
1a4f81dd
TT
13262019-08-20 Tom Tromey <tom@tromey.com>
1327
1328 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1329 earlier.
1330
0f8d8876
TT
13312019-08-20 Tom Tromey <tom@tromey.com>
1332
1333 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1334
605dc2c2
TT
13352019-08-20 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-source.h (struct tui_source_window): Update.
1338 * tui/tui-regs.c (tui_show_registers): Update.
1339 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1340 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1341 (NO_REGS_STRING): Remove defines.
1342
aedbe3bb
CM
13432019-08-20 Conrad Meyer <cem@FreeBSD.org>
1344
1345 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1346 unnecessary thread walk if remote doesn't support the packet.
1347
7ce8f214
TT
13482019-08-19 Tom Tromey <tromey@adacore.com>
1349
1350 * python/py-value.c (value_has_field): Fix indentation.
1351
f21c2bd7
TT
13522019-08-19 Tom Tromey <tromey@adacore.com>
1353
1354 * printcmd.c (do_one_display, info_display_command): Update.
1355 * block.h (contained_in): Return bool. Add allow_nested
1356 parameter.
1357 * block.c (contained_in): Return bool. Add allow_nested
1358 parameter.
1359
d806ea2d
TT
13602019-08-19 Tom Tromey <tom@tromey.com>
1361
1362 * configure: Rebuild.
1363 * configure.ac: Disallow the combination of -static-libstdc++ and
1364 source highlight.
1365 * source-cache.c (get_language_name): Handle rust.
1366 (source_cache::get_source_lines): Ignore highlighting exceptions.
1367
398fdd60
TT
13682019-08-16 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1371 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1372 (struct tui_source_window_base) <make_visible, refresh_window,
1373 resize>: Remove methods.
1374 <execution_info>: Remove field.
1375 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1376 (tui_show_source_line, tui_source_window_base)
1377 (~tui_source_window_base): Update.
1378 (tui_source_window_base::resize)
1379 (tui_source_window_base::make_visible)
1380 (tui_source_window_base::refresh_window): Remove.
1381 (tui_source_window_base::update_exec_info): Update.
1382 * tui/tui-source.c (tui_source_window::set_contents): Update.
1383 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1384
e699d331
TT
13852019-08-16 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1388 deprecated_query_hook.
1389
bb01dbfc
TT
13902019-08-16 Tom Tromey <tom@tromey.com>
1391
1392 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1393 (tui_update_source_windows_with_line): Update.
1394 * tui/tui-source.h (struct tui_source_window)
1395 <show_symtab_source>: Declare.
1396 (tui_show_symtab_source): Don't declare.
1397 * tui/tui-source.c (tui_show_symtab_source): Rename from
1398 tui_show_symtab_source.
1399
81c82c4b
TT
14002019-08-16 Tom Tromey <tom@tromey.com>
1401
1402 * tui/tui-winsource.h (struct tui_source_window_base)
1403 <set_contents>: Declare.
1404 * tui/tui-winsource.c
1405 (tui_source_window_base::update_source_window_as_is): Update.
1406 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1407 Declare.
1408 (tui_set_source_content): Don't declare.
1409 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1410 tui_set_source_content.
1411 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1412 Declare.
1413 (tui_set_disassem_content): Don't declare.
1414 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1415 tui_set_disassem_content.
1416
2ddaf614
TT
14172019-08-16 Tom Tromey <tom@tromey.com>
1418
1419 * tui/tui-winsource.h (struct tui_source_window_base)
1420 <update_breakpoint_info>: Declare.
1421 (tui_update_breakpoint_info): Don't declare.
1422 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1423 (tui_update_all_breakpoint_info): Update.
1424 (tui_source_window_base::update_breakpoint_info): Rename from
1425 tui_update_breakpoint_info.
1426 (tui_source_window_base::update_exec_info): Update.
1427
017f9828
TT
14282019-08-16 Tom Tromey <tom@tromey.com>
1429
1430 * tui/tui-winsource.h (struct tui_source_window_base)
1431 <update_source_window>: Declare.
1432 (tui_update_source_window): Don't declare.
1433 * tui/tui-winsource.c
1434 (tui_source_window_base::update_source_window): Rename from
1435 tui_update_source_window.
1436 (tui_source_window_base::rerender): Update.
1437 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1438 * tui/tui-disasm.c (tui_show_disassem)
1439 (tui_show_disassem_and_update_source)
1440 (tui_disasm_window::maybe_update): Update.
1441
ed8358e9
TT
14422019-08-16 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-winsource.h (struct tui_source_window_base)
1445 <update_source_window_as_is>: Declare.
1446 (tui_update_source_window_as_is): Don't declare.
1447 * tui/tui-winsource.c (tui_update_source_window): Update
1448 (tui_source_window_base::update_source_window_as_is): Rename from
1449 tui_update_source_window_as_is.
1450 (tui_source_window_base::refill): Update.
1451 * tui/tui-source.c (tui_show_symtab_source): Update.
1452 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1453 Update.
1454
20149b6b
TT
14552019-08-16 Tom Tromey <tom@tromey.com>
1456
1457 * tui/tui-winsource.h (tui_update_source_window)
1458 (tui_update_source_window_as_is): Remove "noerror" parameter.
1459 * tui/tui-winsource.c (tui_update_source_window)
1460 (tui_update_source_window_as_is): Remove "noerror" parameter.
1461 (tui_update_source_windows_with_addr)
1462 (tui_update_source_windows_with_line)
1463 (tui_source_window_base::rerender)
1464 (tui_source_window_base::refill): Update.
1465 * tui/tui-source.h (tui_set_source_content)
1466 (tui_show_symtab_source): Remove "noerror" parameter.
1467 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1468 parameter.
1469 (tui_show_symtab_source): Likewise.
1470 (tui_source_window::maybe_update): Update.
1471 * tui/tui-disasm.c (tui_show_disassem)
1472 (tui_show_disassem_and_update_source)
1473 (tui_disasm_window::do_scroll_vertical)
1474 (tui_disasm_window::maybe_update): Update.
1475
2d83e710
TT
14762019-08-16 Tom Tromey <tom@tromey.com>
1477
1478 * tui/tui.c (tui_is_window_visible): Update.
1479 * tui/tui-wingeneral.c (tui_make_window)
1480 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1481 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1482 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1483 (tui_set_win_height_command, parse_scrolling_args): Update.
1484 * tui/tui-source.c (tui_source_window::style_changed): Update.
1485 * tui/tui-regs.c (tui_show_registers)
1486 (tui_data_window::first_data_item_displayed)
1487 (tui_data_window::delete_data_content_windows)
1488 (tui_check_register_values, tui_reg_command): Update.
1489 * tui/tui-disasm.c (tui_show_disassem): Update.
1490 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1491 method.
1492 <is_visible>: Remove field.
1493 * tui/tui-data.c (tui_next_win, tui_prev_win)
1494 (tui_delete_invisible_windows): Update.
1495
d4ab829a
TT
14962019-08-16 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-winsource.h (struct tui_source_window_base)
1499 <m_has_locator>: Remove.
1500 * tui/tui-layout.c (show_source_disasm_command, show_data)
1501 (show_source_or_disasm_and_command): Update.
1502
aa7ca1bb
AH
15032019-08-16 Alan Hayward <alan.hayward@arm.com>
1504
1505 * NEWS (Other MI changes): New subsection.
1506 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1507 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1508 * arch-utils.c (default_get_pc_address_flags): New function.
1509 * arch-utils.h (default_get_pc_address_flags): New declaration.
1510 * gdbarch.sh: Add get_pc_address_flags.
1511 * gdbarch.c: Regenerate.
1512 * gdbarch.h: Likewise.
1513 * stack.c (print_pc): New function.
1514 (print_frame_info) (print_frame): Call print_pc.
1515
6eac171f
TV
15162019-08-16 Tom de Vries <tdevries@suse.de>
1517
1518 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1519 print_objfile_section_info.
1520
3df505f6
TT
15212019-08-15 Tom Tromey <tom@tromey.com>
1522
1523 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1524 calling update_cmdwin_start_line.
1525 * tui/tui-winsource.h (struct tui_source_window_base)
1526 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1527 <rerender>: Declare.
1528 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1529 Call rerender.
1530 (tui_source_window_base::set_new_height): Remove.
1531 (tui_source_window_base::rerender): Rename from
1532 do_make_visible_with_new_height.
1533 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1534 resize method.
1535 (tui_win_info::make_invisible_and_set_new_height)
1536 (tui_win_info::make_visible_with_new_height): Remove.
1537 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1538 Declare.
1539 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1540 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1541 do_make_visible_with_new_height>: Don't declare.
1542 <rerender>: Declare.
1543 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1544 set_new_height.
1545 (tui_data_window::do_make_visible_with_new_height): Remove.
1546 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1547 call tui_show_locator_content.
1548 (tui_gen_win_info::resize): Call rerender.
1549 (show_source_or_disasm_and_command): Don't call
1550 tui_show_locator_content.
1551 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1552 method.
1553 (struct tui_win_info) <rerender>: Declare.
1554 <set_new_height, make_invisible_and_set_new_height,
1555 make_visible_with_new_height>: Don't declare.
1556 * tui/tui-data.c (tui_win_list::rerender): New method.
1557 * tui/tui-command.h (struct tui_cmd_window)
1558 <do_make_visible_with_new_height>: Don't declare.
1559 * tui/tui-command.c
1560 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1561
272560b5
TT
15622019-08-15 Tom Tromey <tromey@adacore.com>
1563
1564 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1565 * ada-lang.c (ada_enum_name): Likewise.
1566
08235187
CB
15672019-08-15 Christian Biesinger <cbiesinger@google.com>
1568
1569 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1570 leading underscore.
1571 (GdbOutputErrorFile): Likewise.
1572 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1573 accordingly.
1574 (execute_unwinders): Rename to have a leading underscore.
1575 (auto_load_packages): Likewise.
1576 (global scope): Adjust call to auto_load_packages accordingly.
1577 (GdbSetPythonDirectory): Likewise.
1578 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1579 instead of execute_unwinders.
1580
db502012
TT
15812019-08-15 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1584 (show_data): Don't change window visibility.
1585 (tui_gen_win_info::resize): Remove special case for command
1586 window. Use wresize, when available.
1587 (show_source_or_disasm_and_command): Don't change window
1588 visibility.
1589 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1590 <make_visible>: New method.
1591 * tui/tui-command.c (tui_cmd_window::resize): New method.
1592
3891b65e
TT
15932019-08-15 Tom Tromey <tom@tromey.com>
1594
1595 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1596 (struct tui_source_windows): New.
1597 * tui/tui-winsource.c (tui_display_main): Update.
1598 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1599 (new_height_ok, parse_scrolling_args): Update.
1600 * tui/tui-layout.c (show_layout, show_data): Update.
1601 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1602 (tui_add_to_source_windows): Don't declare.
1603 * tui/tui-data.c (source_windows, tui_source_windows)
1604 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1605
ee556432
TT
16062019-08-15 Tom Tromey <tom@tromey.com>
1607
1608 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1609 Rename from reset.
1610 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1611 * tui/tui-layout.c (show_source_disasm_command, show_data):
1612 Update.
1613 (tui_gen_win_info::resize): Rename.
1614 (show_source_or_disasm_and_command): Update.
1615 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1616 reset.
1617
46f438e3
TT
16182019-08-15 Tom Tromey <tom@tromey.com>
1619
1620 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1621 * tui/tui-interp.c (tui_interp::init): Don't call
1622 tui_initialize_static_data.
1623 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1624
f4ce562c
TT
16252019-08-15 Tom Tromey <tom@tromey.com>
1626
1627 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1628 examine tui_win_list.
1629
c398c3d0
TT
16302019-08-15 Tom Tromey <tom@tromey.com>
1631
1632 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1633 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1634 tui_clear_source_content.
1635 (tui_clear_source_content): Remove.
1636 (tui_source_window_base::do_erase_source_content): Hoist call to
1637 content.clear().
1638 * tui/tui-stack.c (tui_show_frame_info): Don't call
1639 tui_clear_source_content.
1640
e25d2004
TT
16412019-08-15 Tom Tromey <tom@tromey.com>
1642
1643 * tui/tui-winsource.h (struct tui_source_window_base)
1644 <do_erase_source_content>: New method.
1645 <erase_source_content>: New method.
1646 (tui_erase_source_content): Don't declare.
1647 * tui/tui-winsource.c (tui_clear_source_content): Update.
1648 (tui_source_window_base::do_erase_source_content): Rename from
1649 tui_erase_source_content.
1650 (tui_source_window_base::show_source_content): Update.
1651 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1652 * tui/tui-source.h (struct tui_source_window)
1653 <erase_source_content>: New method.
1654 * tui/tui-disasm.h (struct tui_disasm_window)
1655 <erase_source_content>: New method.
1656
002f15c2
TT
16572019-08-15 Tom Tromey <tom@tromey.com>
1658
1659 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1660 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1661 constructor.
1662 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1663 * tui/tui-source.c (tui_set_source_content): Update.
1664 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1665
c9033fe8
TT
16662019-08-15 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1669 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1670 tui-source.c.
1671 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1672 Declare.
1673 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1674 method.
1675 (tui_source_window::maybe_update): Update.
1676
088f37dd
TT
16772019-08-15 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1680 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1681 tui-disasm.c.
1682 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1683 Declare.
1684 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1685 method.
1686 (tui_disasm_window::maybe_update): Update.
1687
a54700c6
TT
16882019-08-15 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-winsource.h (struct tui_source_window_base)
1691 <maybe_update>: Declare.
1692 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1693 method.
1694 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1695 Declare.
1696 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1697 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1698 Declare.
1699 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1700
e2a678a5
TT
17012019-08-15 Tom Tromey <tom@tromey.com>
1702
1703 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1704
f2dda477
TT
17052019-08-15 Tom Tromey <tom@tromey.com>
1706
1707 * tui/tui-wingeneral.c: Include tui-stack.h.
1708 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1709 (struct tui_locator_window): Move from tui-data.h.
1710 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1711 (tui_initialize_static_data): Move from tui-data.c.
1712 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1713 (struct tui_locator_window): Move to tui-stack.c.
1714 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1715 (tui_initialize_static_data): Move to tui-stack.c.
1716
ed4a1084
TT
17172019-08-15 Tom Tromey <tom@tromey.com>
1718
1719 * tui/tui-layout.c (show_source_disasm_command)
1720 (show_source_or_disasm_and_command): Use make_visible method, not
1721 tui_make_window.
1722 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1723 Remove.
1724
65962b20
TT
17252019-08-15 Tom Tromey <tom@tromey.com>
1726
1727 * tui/tui-wingeneral.h (tui_make_window): Update.
1728 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1729 parameter.
1730 (tui_gen_win_info::make_visible): Update.
1731 * tui/tui-regs.c (tui_data_window::display_registers_from):
1732 Update.
1733 * tui/tui-layout.c (show_source_disasm_command)
1734 (show_source_or_disasm_and_command): Update.
1735 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1736 (enum tui_box): Remove.
1737 (struct tui_win_info) <can_box>: New method.
1738 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1739 method.
1740
2208ee91
TV
17412019-08-15 Tom de Vries <tdevries@suse.de>
1742
1743 * linux-nat-trad.c: Include gdbarch.h.
1744
75faf5c4
AH
17452019-08-14 Alan Hayward <alan.hayward@arm.com>
1746
1747 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1748 register sizes.
1749
b1c896b3
TT
17502019-08-14 Tom Tromey <tromey@adacore.com>
1751
1752 * darwin-nat.c: Include gdbarch.h.
1753 * darwin-nat-info.c: Include gdbarch.h.
1754
6405cd73
TT
17552019-08-13 Tom Tromey <tom@tromey.com>
1756
1757 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1758 Remove.
1759 * tui/tui-data.c (tui_initialize_static_data): Update.
1760
5216580d
TT
17612019-08-13 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-winsource.h (struct tui_exec_info_window)
1764 <~tui_exec_info_window, maybe_allocate_content, get_content,
1765 m_content>: Remove.
1766 (struct tui_source_window_base) <set_exec_info_content,
1767 show_exec_info_content>: Don't declare.
1768 * tui/tui-winsource.c
1769 (tui_exec_info_window::maybe_allocate_content): Remove.
1770 (tui_source_window_base::update_exec_info): Rename from
1771 set_exec_info_content.
1772 (tui_source_window_base::show_exec_info_content)
1773 (tui_source_window_base::update_exec_info): Remove.
1774
93858ad3
TT
17752019-08-13 Tom Tromey <tom@tromey.com>
1776
1777 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1778 declare.
1779 * tui/tui-winsource.c (tui_update_source_window_as_is)
1780 (tui_update_source_windows_with_addr, tui_erase_source_content):
1781 Update.
1782 (tui_clear_exec_info_content): Remove.
1783
e321e7ce
TT
17842019-08-13 Tom Tromey <tom@tromey.com>
1785
1786 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1787 declare.
1788 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1789 call tui_erase_exec_info_content.
1790 (tui_clear_exec_info_content): Rename from
1791 tui_erase_exec_info_content.
1792 (tui_clear_exec_info_content): Delete.
1793
8270ac62
TT
17942019-08-13 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-winsource.h (struct tui_source_window_base)
1797 <show_exec_info_content>: Declare.
1798 (tui_show_exec_info_content): Don't declare.
1799 * tui/tui-winsource.c
1800 (tui_source_window_base::show_exec_info_content): Rename from
1801 tui_show_exec_info_content.
1802 (tui_source_window_base::update_exec_info): Update.
1803
7b56485d
TT
18042019-08-13 Tom Tromey <tom@tromey.com>
1805
1806 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1807 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1808 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1809 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1810 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1811 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1812 ... here.
1813
7ba913dc
TT
18142019-08-13 Tom Tromey <tom@tromey.com>
1815
1816 * tui/tui-winsource.h (struct tui_source_window_base)
1817 <update_exec_info>: Declare.
1818 (tui_update_exec_info): Don't declare.
1819 * tui/tui-winsource.c (tui_update_source_window_as_is)
1820 (tui_source_window_base::refresh_all)
1821 (tui_update_all_breakpoint_info): Update.
1822 (tui_source_window_base::update_exec_info): Rename from
1823 tui_update_exec_info.
1824 * tui/tui-stack.c (tui_show_frame_info): Update.
1825
37a4a131
TT
18262019-08-13 Tom Tromey <tom@tromey.com>
1827
1828 * tui/tui-winsource.h (struct tui_source_window_base)
1829 <set_exec_info_content>: Declare.
1830 (tui_set_exec_info_content): Don't declare.
1831 * tui/tui-winsource.c
1832 (tui_source_window_base::set_exec_info_content): Rename from
1833 tui_set_exec_info_content.
1834 (tui_update_exec_info): Update.
1835
0bd27e07
TT
18362019-08-13 Tom Tromey <tom@tromey.com>
1837
1838 * tui/tui-winsource.h (struct tui_source_window_base)
1839 <show_source_content>: Declare.
1840 (tui_show_source_content): Don't declare.
1841 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1842 (tui_source_window_base::show_source_content): Rename from
1843 tui_show_source_content.
1844 (tui_source_window_base::refresh_all): Update.
1845 * tui/tui-layout.c (show_source_disasm_command)
1846 (show_source_or_disasm_and_command): Update.
1847
b4ef5aeb
TT
18482019-08-13 Tom Tromey <tom@tromey.com>
1849
1850 * tui/tui-winsource.c (tui_erase_source_content)
1851 (tui_show_source_content, tui_source_window_base::refresh_all):
1852 Update.
1853 * tui/tui-wingeneral.h
1854 (tui_check_and_display_highlight_if_needed): Don't declare.
1855 * tui/tui-wingeneral.c
1856 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1857 check_and_display_highlight_if_needed.
1858 * tui/tui-win.c (tui_rehighlight_all)
1859 (tui_win_info::make_visible_with_new_height): Update.
1860 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1861 (tui_data_window::erase_data_content)
1862 (tui_data_window::display_all_data): Update.
1863 * tui/tui-data.h (struct tui_win_info)
1864 <check_and_display_highlight_if_needed>: Declare.
1865
fede5273
TT
18662019-08-13 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-win.c (tui_resize_all): Call
1869 tui_delete_invisible_windows.
1870 * tui/tui-layout.c (show_layout): Call
1871 tui_delete_invisible_windows.
1872 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1873 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1874
22c3f490
TT
18752019-08-13 Tom Tromey <tom@tromey.com>
1876
1877 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1878 tui_add_win_to_layout.
1879
16cb7910
TT
18802019-08-13 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1883 * tui/tui-layout.c (tui_default_win_height): Now static.
1884
cc0c3ffb
TT
18852019-08-13 Tom Tromey <tom@tromey.com>
1886
1887 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1888 single switch.
1889 (show_source_disasm_command, show_source_or_disasm_and_command):
1890 Don't check current layout.
1891
3f3ffe54
TT
18922019-08-13 Tom Tromey <tom@tromey.com>
1893
1894 * tui/tui-wingeneral.c (make_all_visible): Remove.
1895 (tui_make_all_invisible): Simplify.
1896 * tui/tui-layout.c (tui_make_all_invisible): Move from
1897 tui-wingeneral.c; simplify.
1898 (show_layout): Hoist call to tui_make_all_invisible.
1899 (show_data): Don't call tui_make_all_invisible.
1900
69258091
TT
19012019-08-13 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1904 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1905
62cf57fe
TT
19062019-08-13 Tom Tromey <tom@tromey.com>
1907
1908 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1909 tui-data.c.
1910 (show_source_disasm_command, show_data)
1911 (show_source_or_disasm_and_command): Don't use
1912 tui_set_current_layout_to.
1913 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1914 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1915 tui-layout.c.
1916 (tui_set_current_layout_to): Remove.
1917
2afade5d
TT
19182019-08-13 Tom Tromey <tom@tromey.com>
1919
1920 * tui/tui-layout.c (tui_set_layout): Update.
1921 * tui/tui-data.h (struct tui_layout_def): Remove.
1922 (tui_layout_def): Don't declare.
1923 * tui/tui-data.c (layout_def): Remove.
1924 (tui_layout_def): Remove.
1925
a3504e96
TT
19262019-08-13 Tom Tromey <tom@tromey.com>
1927
1928 * tui/tui-winsource.h (struct tui_source_window_base)
1929 <clear_detail>: No longer "override".
1930 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1931 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1932 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1933 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1934 Remove.
1935 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1936
29c92911
TT
19372019-08-13 Tom Tromey <tromey@adacore.com>
1938
1939 * tracepoint.c: Don't include readline.h or history.h.
1940
86c6b807
TT
19412019-08-12 Tom Tromey <tom@tromey.com>
1942
1943 * configure: Rebuild.
1944 * configure.ac: Check for readline 7.
1945 * NEWS: Mention readline 7 requirement.
1946 * README: Update.
1947
5db2718c
TT
19482019-08-12 Tom Tromey <tom@tromey.com>
1949
1950 * mingw-hdep.c (gdb_select): Remove readline hack.
1951
dac36daf
PFC
19522019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1953
1954 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1955 when the function fails.
1956
1022c627
AA
19572019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1958
1959 * s390-tdep.c (s390_type_align): New function.
1960 (s390_gdbarch_init): Set it as type_align gdbarch method.
1961
eba4caf2
TV
19622019-08-09 Tom de Vries <tdevries@suse.de>
1963
1964 PR gdb/24591
1965 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1966 pc_low with relocation offset.
1967
123cd851
TT
19682019-08-07 Tom Tromey <tromey@adacore.com>
1969
1970 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1971 (print_frame_args): Update.
1972 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1973 Update.
1974 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1975 * frame.h (struct frame_arg): Add initializers.
1976 <error>: Now a unique_xmalloc_ptr.
1977
3d31bc39
AH
19782019-08-07 Alan Hayward <alan.hayward@arm.com>
1979
1980 * NEWS: Expand the Pointer Authentication entry.
1981 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1982 (aarch64_frame_unmask_lr): ... to this.
1983 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1984 Call aarch64_frame_unmask_lr.
1985 * frame.c (struct frame_info): Add "masked" variable.
1986 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1987 (fprint_frame): Check for masked pc.
1988 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1989 declarations.
1990 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1991 * stack.c (print_frame): Check for masked pc.
1992
0cf9feb9
TT
19932019-08-06 Tom Tromey <tom@tromey.com>
1994
1995 * stabsread.c (patch_block_stabs, read_one_struct_field)
1996 (read_enum_type): Use obstack_strndup.
1997 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1998 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1999 * dwarf2read.c (guess_full_die_structure_name)
2000 (anonymous_struct_prefix): Use obstack_strndup.
2001 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2002 * c-exp.y (yylex): Use obstack_strndup.
2003 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2004 (write_var_or_type): Use obstack_strndup.
2005
efba19b0
TT
20062019-08-06 Tom Tromey <tom@tromey.com>
2007
2008 * symfile.c (reread_symbols): Use obstack_strdup.
2009 * stabsread.c (read_type): Use obstack_strdup.
2010 * gdb_obstack.h (obstack_strdup): New overload.
2011 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2012 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2013 (dwarf2_canonicalize_name): Use obstack_strdup.
2014 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2015 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2016 Use obstack_strdup.
2017
f25102f7
TT
20182019-08-06 Tom Tromey <tom@tromey.com>
2019
2020 * gdb_obstack.h (obstack_strdup): Define.
2021 * gdb_obstack.c (obstack_strdup): Don't define.
2022
021887d8
TT
20232019-08-06 Tom Tromey <tom@tromey.com>
2024
2025 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2026 obstack_strdup.
2027 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2028 obstack_strdup.
2029 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2030 * stabsread.c (common_block_start): Use obstack_strdup.
2031 * objfiles.c (set_objfile_main_name, objfile): Use
2032 obstack_strdup.
2033 * namespace.c (add_using_directive): Use obstack_strdup.
2034 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2035 * jit.c (finalize_symtab): Use obstack_strdup.
2036 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2037 (guess_partial_die_structure_name, partial_die_info::fixup)
2038 (dwarf2_name): Use obstack_strdup.
2039 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2040 obstack_strdup.
2041 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2042 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2043 obstack_strdup.
2044 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2045
d2834edc
PW
20462019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2047
2048 * unittests/help-doc-selftests.c: New file.
2049 * Makefile.in: Add the new file.
2050
590042fc
PW
20512019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2052
2053 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2054 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2055 the full first line, except when FOR_VALUE_PREFIX. In this case,
2056 the trailing '.' is not output, and the first character is uppercased.
2057 (print_help_for_command): Update call to print_doc_line.
2058 (print_doc_of_command): Likewise.
2059 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2060 * cli/cli-option.c (append_indented_doc): Do not append newline.
2061 (build_help_option): Append newline after first appended_indented_doc
2062 only if a second call is done.
2063 (build_help): Append 2 new lines before each option, except the first
2064 one.
2065 * compile/compile.c (_initialize_compile): Add new lines after
2066 %OPTIONS%, when not at the end of the help.
2067 Change help doc or code
2068 producing the help doc to respect the invariants.
2069 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2070 Also removed the new line after 'Options:', as all other commands
2071 do not put an empty line between 'Options:' and the first option.
2072 * printcmd.c (_initialize_printcmd): Likewise.
2073 * stack.c (_initialize_stack): Likewise.
2074 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2075 incorrectly telling COMMAND is optional.
2076 * ada-lang.c (_initialize_ada_language): Change help doc or code
2077 producing the help doc to respect the invariants.
2078 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2079 * breakpoint.c (_initialize_breakpoint): Likewise.
2080 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2081 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2082 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2083 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2084 _initialize_cli_style): Likewise.
2085 * corelow.c (core_target_info): Likewise.
2086 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2087 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2088 * filesystem.c (_initialize_filesystem): Likewise.
2089 * frame.c (_initialize_frame): Likewise.
2090 * gnu-nat.c (add_task_commands): Likewise.
2091 * infcall.c (_initialize_infcall): Likewise.
2092 * infcmd.c (_initialize_infcmd): Likewise.
2093 * interps.c (_initialize_interpreter): Likewise.
2094 * language.c (_initialize_language): Likewise.
2095 * linux-fork.c (_initialize_linux_fork): Likewise.
2096 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2097 * maint.c (_initialize_maint_cmds): Likewise.
2098 * memattr.c (_initialize_mem): Likewise.
2099 * printcmd.c (_initialize_printcmd): Likewise.
2100 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2101 _RegEx): Likewise.
2102 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2103 * record-btrace.c (_initialize_record_btrace): Likewise.
2104 * record-full.c (_initialize_record_full): Likewise.
2105 * record.c (_initialize_record): Likewise.
2106 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2107 * regcache.c (_initialize_regcache): Likewise.
2108 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2109 _initialize_remote): Likewise.
2110 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2111 * serial.c (_initialize_serial): Likewise.
2112 * skip.c (_initialize_step_skip): Likewise.
2113 * source.c (_initialize_source): Likewise.
2114 * stack.c (_initialize_stack): Likewise.
2115 * symfile.c (_initialize_symfile): Likewise.
2116 * symtab.c (_initialize_symtab): Likewise.
2117 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2118 * top.c (init_main): Likewise.
2119 * tracefile-tfile.c (tfile_target_info): Likewise.
2120 * tracepoint.c (_initialize_tracepoint): Likewise.
2121 * tui/tui-win.c (_initialize_tui_win): Likewise.
2122 * utils.c (add_internal_problem_command): Likewise.
2123 * valprint.c (value_print_option_defs): Likewise.
2124
404f2902
FCE
21252019-08-06 Frank Ch. Eigler <fche@redhat.com>
2126
2127 PR build/24886
2128 * configure.ac: Drop enable-libmcheck support.
2129 * configure, config.in: Rebuild.
2130 * libmcheck.m4: Remove.
2131 * acinclude.m4: Don't include it.
2132 * Makefile.in: Don't distribute it.
2133 * top.c (print_gdb_configuration): Don't mention it.
2134
046bebe1
TT
21352019-08-06 Tom Tromey <tom@tromey.com>
2136
2137 * utils.c (set_output_style): Sometimes pass stream to
2138 emit_style_escape.
2139 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2140 * record-btrace.c (btrace_insn_history): Update.
2141 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2142 method.
2143 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2144 Update initializers.
2145 <m_uiout>: New field.
2146 <m_di>: Move lower.
2147 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2148 Remove "uiout" parameter.
2149 (dump_insns): Update.
2150 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2151 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2152
ddbcedf5
CB
21532019-08-06 Christian Biesinger <cbiesinger@google.com>
2154
2155 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2156 (error_in_psymtab_expansion): Likewise.
2157 (lookup_symbol_via_quick_fns): Likewise.
2158 (basic_lookup_transparent_type_quick): Likewise.
2159 (basic_lookup_transparent_type_1): Likewise.
2160
b08b16c8
TT
21612019-08-06 Tom Tromey <tromey@adacore.com>
2162
2163 * source.c (last_source_error): Now bool.
2164 (print_source_lines_base): Make "noprint" bool. Only open
2165 source file when last_source_visited changes.
2166
cb44333d
TT
21672019-08-06 Tom Tromey <tromey@adacore.com>
2168
2169 * annotate.c (annotate_source_line): Use g_source_cache.
2170 * source-cache.c (source_cache::get_plain_source_lines): Change
2171 parameters. Populate m_offset_cache.
2172 (source_cache::ensure): New method.
2173 (source_cache::get_line_charpos): New method.
2174 (extract_lines): Move lower. Change parameters.
2175 (source_cache::get_source_lines): Move lower.
2176 * source-cache.h (class source_cache): Update comment.
2177 <get_line_charpos>: New method.
2178 <get_source_lines>: Update comment.
2179 <clear>: Clear m_offset_cache.
2180 <get_plain_source_lines>: Change parameters.
2181 <ensure>: New method
2182 <m_offset_cache>: New member.
2183 * source.c (forget_cached_source_info_for_objfile): Update.
2184 (info_source_command): Use g_source_cache.
2185 (find_source_lines, open_source_file_with_line_charpos): Remove.
2186 (print_source_lines_base, search_command_helper): Use g_source_cache.
2187 * source.h (open_source_file_with_line_charpos): Don't declare.
2188 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2189 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2190 Use g_source_cache.
2191
872dceaa
TT
21922019-08-06 Tom Tromey <tromey@adacore.com>
2193
2194 * source-cache.c (source_cache::get_plain_source_lines):
2195 Remove "first_line" and "last_line" parameters.
2196 (source_cache::get_source_lines): Cache plain text.
2197 * source-cache.h (class source_cache)
2198 <get_plain_source_lines>: Update.
2199
269249d9
TT
22002019-08-06 Tom Tromey <tromey@adacore.com>
2201
2202 * source-cache.c (extract_lines): No longer a method.
2203 Changed type of parameter. Include final newline.
2204 (selftests::extract_lines_test): New function.
2205 (_initialize_source_cache): Likewise.
2206 * source-cache.h (class source_cache)
2207 <extract_lines>: Don't declare.
2208
c0e8dcd8
TT
22092019-08-06 Tom Tromey <tromey@adacore.com>
2210
2211 * breakpoint.c (init_breakpoint_sal): Update.
2212 (breakpoint): Update.
2213 * breakpoint.h (struct breakpoint) <filter>: Now a
2214 unique_xmalloc_ptr.
2215
0b27c27d
CB
22162019-08-05 Christian Biesinger <cbiesinger@google.com>
2217
2218 * NEWS: Mention dictionary access on blocks.
2219 * python/py-block.c (blpy_getitem): New function.
2220 (block_object_as_mapping): New struct.
2221 (block_object_type): Use new struct for tp_as_mapping field.
2222
4ee94178
CB
22232019-08-05 Christian Biesinger <cbiesinger@google.com>
2224
2225 * objfiles.h (objfile): Add a comment describing partial symbols.
2226
8abfcabc
TT
22272019-08-05 Tom Tromey <tromey@adacore.com>
2228
2229 * compile/compile.c (_initialize_compile): Use _(), not N_().
2230 * thread.c (_initialize_thread): Use _(), not N_().
2231 * stack.c (_initialize_stack): Use _(), not N_().
2232 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2233
2b79f376
SM
22342019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2235
2236 * dwarf2read.c (struct dw2_symtab_iterator):
2237 <want_specific_block>: Remove.
2238 <block_index>: Change type to gdb::optional.
2239 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2240 change type of BLOCK_INDEX parameter to gdb::optional.
2241 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2242 (dw2_lookup_symbol): Don't pass argument for
2243 WANT_SPECIFIC_BLOCK.
2244 (dw2_expand_symtabs_for_function): Don't pass argument for
2245 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2246 (class dw2_debug_names_iterator)
2247 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2248 parameter, change BLOCK_INDEX type to gdb::optional.
2249 <m_want_specific_block>: Remove.
2250 <m_block_index>: Change type to gdb::optional.
2251 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2252 gdb::optional. Re-write in function of gdb::optional.
2253 (dw2_debug_names_lookup_symbol): Don't pass argument for
2254 WANT_SPECIFIC_BLOCK.
2255 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2256 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2257 BLOCK_INDEX.
2258
ae60f04e
PW
22592019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2260
2261 * NEWS: Mention changes to "info sources" command.
2262
28cd9371
PW
22632019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2264
2265 * symtab.c (filename_partial_match_opts): New struct type.
2266 (struct output_source_filename_data): New members
2267 regexp, c_regexp, partial_match.
2268 (output_source_filename): Use new members to decide to print file.
2269 (info_sources_option_defs): New variable.
2270 (make_info_sources_options_def_group, print_info_sources_header,
2271 info_sources_command_completer):
2272 New functions.
2273 (info_sources_command): Read new optional arguments.
2274 (_initialize_symtab): Update info sources help.
2275
ca683e3a
AO
22762019-08-02 Alexandre Oliva <oliva@adacore.com>
2277
2278 * ada-lang.c (exception_support_info_v0): Renamed from...
2279 (default_exception_support_info): ... this. Create new
2280 definition for v1.
2281 (ada_has_this_exception_support): Look up catch_handlers_sym.
2282 (ada_exception_support_info_sniffer): Try v0 after default.
2283
f1264162
TT
22842019-08-01 Tom Tromey <tromey@adacore.com>
2285
2286 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2287 gdbarch.h.
2288
0a7b2485
CB
22892019-08-01 Christian Biesinger <cbiesinger@google.com>
2290
2291 * s12z-tdep.c: Fix include path for s12z-opc.h.
2292
c6bdbeb7
AH
22932019-08-01 Alan Hayward <alan.hayward@arm.com>
2294
2295 * NEWS: Require GNU make 3.82.
2296
a2bd7b82
TT
22972019-07-16 Tom Tromey <tom@tromey.com>
2298
2299 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2300 declare.
2301
aa3b6533
TT
23022019-07-30 Tom Tromey <tromey@adacore.com>
2303
2304 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2305
a1530dc7
KB
23062019-07-30 Kevin Buettner <kevinb@redhat.com>
2307
2308 * printcmd.c (print_address_symbolic): Print negative offsets.
2309 (build_address_symbolic): Force signed arithmetic when computing
2310 offset.
2311
2906593f
CB
23122019-07-30 Christian Biesinger <cbiesinger@google.com>
2313
2314 PR/24474: Add a function to lookup static variables.
2315 * NEWS: Mention this new function.
2316 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2317 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2318 * python/python.c (python_GdbMethods): Add new function.
2319
c620ed88
CB
23202019-07-29 Christian Biesinger <cbiesinger@google.com>
2321
2322 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2323 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2324 (objfpy_lookup_static_symbol): New function.
2325 (objfile_object_methods): Add new functions.
2326
bc4268a5
PW
23272019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2328
2329 * NEWS: Mention 'set|show print frame-info'. Mention new
2330 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2331 backtrace argument. Mention that python frame filtering code
2332 is now consistent with what 'backtrace' command prints.
2333
4b5e8d19
PW
23342019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2335
2336 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2337 comments.
2338 (print_frame_info_auto, print_frame_info_source_line,
2339 print_frame_info_location, print_frame_info_source_and_location,
2340 print_frame_info_location_and_address, print_frame_info_short_location):
2341 New declarations.
2342 (struct frame_print_options): New member print_frame_info.
2343 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2344 * stack.h (get_user_print_what_frame_info): New declaration.
2345 (frame_show_address): New declaration.
2346 * stack.c (print_frame_arguments_choices): New value 'presence'.
2347 (print_frame_info_auto, print_frame_info_source_line,
2348 print_frame_info_location, print_frame_info_source_and_location,
2349 print_frame_info_location_and_address, print_frame_info_short_location,
2350 print_frame_info_choices, print_frame_info_print_what): New definitions.
2351 (print_frame_args): Only print dots for args if print frame-arguments
2352 is 'presence'.
2353 (frame_print_option_defs): New element for "frame-info".
2354 (get_user_print_what_frame_info): New function.
2355 (frame_show_address): Make non static. Move comment to stack.h.
2356 (print_frame_info_to_print_what): New function.
2357 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2358 to decide what to print.
2359 (backtrace_command_1): Handle the new print_frame_arguments_presence
2360 value.
2361 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2362 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2363 (py_print_frame): In non-mi mode, use LOCATION as default for
2364 print_what, similarly to frame information printed directly by
2365 backtrace command. Handle frame-info user option in non MI mode.
2366
6bdfee81
KB
23672019-07-27 Kevin Buettner <kevinb@redhat.com>
2368
2369 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2370 Add case for debugging 32-bit target on 64-bit host. Revise
2371 comment.
2372
98a617f8
KB
23732019-07-27 Kevin Buettner <kevinb@redhat.com>
2374
2375 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2376 instead of find_function_entry_range_from_pc.
2377
567238c9
KB
23782019-07-27 Kevin Buettner <kevinb@redhat.com>
2379
2380 * stack.c (find_frame_funname): Remove code which preferred
2381 minsym over symtab sym in "certain pathological cases".
2382
2dc80cf8
KB
2383 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2384 parameter. Change type of "do_demangle" to bool.
2385 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2386 Pass suitable "prefer_sym_over_minsym" flag to
2387 build_address_symbolic(). Don't output "+" for negative offsets.
2388 * printcmd.c (print_address_symbolic): Update invocation of
2389 build_address_symbolic to include a "prefer_sym_over_minsym"
2390 flag.
2391 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2392 Restrict cases in which use of minimal symbol is preferred to that
2393 of a found symbol. Update comments.
2394
1aff7173
KB
2395 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2396 for entry pc when entry pc is out of range for that FDE.
2397
89b085ac
BC
23982019-07-26 Brian Callahan <bcallah@openbsd.org>
2399
2400 PR gdb/24839:
2401 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2402 type.
2403
f32feb4a
CB
24042019-07-25 Christian Biesinger <cbiesinger@google.com>
2405
2406 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2407 this function's Python signature.
2408
2409
24102019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
2411
2412 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2413 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2414 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2415 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2416 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2417
2418
c54e4253
YS
24192019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2420
2421 * h8300-tdep.c (h8300_register_name_common): New.
2422 h8300_register_name): Use h8300_register_name_common.
2423 (h8300s_register_name): Likewise.
2424 (h8300sx_register_name): Likewise.
2425 (h8300h_register_nam): New.
2426 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2427
2428
40eadf04
SP
24292019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2430
2431 * arm-tdep.c (arm_skip_cmse_entry): New function.
2432 (arm_is_sgstubs_section): New function.
2433 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2434
bfa2a36d
TT
24352019-07-22 Tom Tromey <tom@tromey.com>
2436
2437 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2438 Don't self-assign.
2439
a8e9d247
AB
24402019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2441
2442 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2443 type_print.
2444
eb86c5e2
AB
24452019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2446
2447 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2448 so that GDB doesn't match any msymbols when searching in the
2449 TYPES_DOMAIN.
2450 (print_symbol_info): Print using typedef_print or type_print based
2451 on the type of the symbol. Add updated FIXME comment moved from...
2452 (_initialize_symtab): ... move and update FIXME comment to above.
2453
a8eab7c6
AB
24542019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * NEWS: Mention adding -q option to "info types".
2457 * symtab.c (struct info_types_options): New struct.
2458 (info_types_options_defs): New variable.
2459 (make_info_types_options_def_group): New function.
2460 (info_types_command): Use gdb::option framework to parse options.
2461 (info_types_command_completer): New function.
2462 (_initialize_symtab): Extend the help text on "info types" and
2463 register command completer.
2464
b4603c34
CB
24652019-07-21 Christian Biesinger <cbiesinger@google.com>
2466
2467 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2468 (lookup_symbol_in_objfile): Change int to block_enum and add a
2469 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2470
c8cdc1e0
CB
24712019-07-20 Christian Biesinger <cbiesinger@google.com>
2472
2473 * MAINTAINERS (Write After Approval): Add self.
2474
01e175fe
AB
24752019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2478 instruction to the dummy code region.
2479
56f79b63
TT
24802019-07-19 Tom Tromey <tromey@adacore.com>
2481
2482 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2483 (ARGSUSED, PARAMS, __func__): Remove rules.
2484
4c5aa8e0
AH
24852019-07-19 Alan Hayward <alan.hayward@arm.com>
2486
2487 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2488 * features/arm/arm-with-iwmmxt.c: Remove.
2489 * features/arm/arm-with-iwmmxt.xml: Remove.
2490 * features/arm/arm-with-m-fpa-layout.c: Remove.
2491 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2492 * features/arm/arm-with-m-vfp-d16.c: Remove.
2493 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2494 * features/arm/arm-with-m.c: Remove.
2495 * features/arm/arm-with-m.xml: Remove.
2496 * features/arm/arm-with-neon.c: Remove.
2497 * features/arm/arm-with-neon.xml: Remove.
2498 * features/arm/arm-with-vfpv2.c: Remove.
2499 * features/arm/arm-with-vfpv2.xml: Remove.
2500 * features/arm/arm-with-vfpv3.c: Remove.
2501 * features/arm/arm-with-vfpv3.xml: Remove.
2502
f42b2617
AH
25032019-07-19 Alan Hayward <alan.hayward@arm.com>
2504
2505 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2506
f29ec966
AH
25072019-07-19 Alan Hayward <alan.hayward@arm.com>
2508
2509 * arch/aarch32.c (aarch32_create_target_description): Create
2510 target descriptions using features.
2511 * arch/arm.c (arm_create_target_description)
2512 (arm_create_mprofile_target_description): Likewise.
2513 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2514
d105cce5
AH
25152019-07-19 Alan Hayward <alan.hayward@arm.com>
2516
2517 * Makefile.in: Add new files.
2518 * aarch32-tdep.c: New file.
2519 * aarch32-tdep.h: New file.
2520 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2521 Call aarch32_read_description.
2522 * arch/aarch32.c: New file.
2523 * arch/aarch32.h: New file.
2524 * arch/arm.c (arm_create_target_description)
2525 (arm_create_mprofile_target_description): New function.
2526 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2527 (arm_create_target_description)
2528 (arm_create_mprofile_target_description): New declaration.
2529 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2530 read_description functions.
2531 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2532 Likewise.
2533 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2534 * arm-tdep.c (tdesc_arm_list): New variable.
2535 (arm_register_g_packet_guesses): Call create description functions.
2536 (arm_read_description) (arm_read_mprofile_description): New
2537 function.
2538 * arm-tdep.h (arm_read_description)
2539 (arm_read_mprofile_description): Add declaration.
2540 * configure.tgt: Add new files.
2541
afe09f0b
GL
25422019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2543
2544 * top.c (new_ui_command): Open specified terminal just once.
2545
cd215b2e
TT
25462019-07-18 Tom Tromey <tromey@adacore.com>
2547
2548 * symtab.c (main_name): Constify return type.
2549 * symfile.c (set_initial_language): Update.
2550 * symtab.h (main_name): Constify return type.
2551
d8f68fcb
TT
25522019-07-17 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-winsource.c (tui_update_source_window)
2555 (tui_update_source_window_as_is)
2556 (tui_update_source_windows_with_line): Remove return.
2557 * tui/tui-disasm.c (tui_show_disassem)
2558 (tui_show_disassem_and_update_source): Remove return.
2559 * tui/tui.c (tui_reset): Remove return.
2560 * tui/tui-wingeneral.c
2561 (tui_check_and_display_highlight_if_needed): Remove return.
2562
ca5af91e
TT
25632019-07-17 Tom Tromey <tom@tromey.com>
2564
2565 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2566
5104fe36
TT
25672019-07-17 Tom Tromey <tom@tromey.com>
2568
2569 * tui/tui-winsource.h (struct tui_exec_info_window)
2570 (struct tui_source_window_base): Move from tui-data.h.
2571 * tui/tui-winsource.c: Move many method definitions from
2572 elsewhere. Remove "structuring" comments.
2573 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2574 (tui_source_window_base::refresh_window): Move to
2575 tui-winsource.c.
2576 * tui/tui-win.c (tui_source_window_base::refresh_all)
2577 (tui_source_window_base::update_tab_width)
2578 (tui_source_window_base::set_new_height)
2579 (tui_source_window_base::do_make_visible_with_new_height): Move to
2580 tui-winsource.c.
2581 * tui/tui-source.h: Update.
2582 * tui/tui-source.c (tui_source_window_base::reset): Move to
2583 tui-winsource.c.
2584 * tui/tui-disasm.h: Update.
2585 * tui/tui-data.h (struct tui_exec_info_window): Move to
2586 tui-winsource.h.
2587 (struct tui_source_window_base): Likewise.
2588 * tui/tui-data.c (tui_source_window_base::clear_detail)
2589 (tui_source_window_base, ~tui_source_window_base): Move to
2590 tui-winsource.c.
2591
daa15dde
TT
25922019-07-17 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-win.c (tui_resize_all)
2595 (tui_source_window_base::update_tab_width)
2596 (tui_adjust_win_heights): Update.
2597 (tui_win_info::make_invisible_and_set_new_height): Rename from
2598 make_invisible_and_set_new_height.
2599 * tui/tui-data.h (struct tui_win_info)
2600 <make_invisible_and_set_new_height>: New method.
2601
bfad4537
TT
26022019-07-17 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui.c: Update.
2605 * tui/tui-source.h (struct tui_source_window): Move from
2606 tui-data.h.
2607 * tui/tui-layout.c: Update.
2608 * tui/tui-disasm.c: Update.
2609 * tui/tui-data.h (struct tui_source_window): Move to
2610 tui-source.h.
2611
88f7e873
TT
26122019-07-17 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2615 tui-data.h.
2616 * tui/tui-data.h (struct tui_disasm_window): Move to
2617 tui-disasm.h.
2618
96bd6233
TT
26192019-07-17 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-regs.h (struct tui_data_item_window): Move from
2622 tui-data.h.
2623 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2624 * tui/tui-data.h (struct tui_data_item_window): Move to
2625 tui-regs.h.
2626 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2627
ce38393b
TT
26282019-07-17 Tom Tromey <tom@tromey.com>
2629
2630 * tui/tui.c: Update.
2631 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2632 (tui_cmd_window::max_height): Move to tui-command.c.
2633 * tui/tui-layout.c: Update.
2634 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2635 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2636 tui-command.c.
2637 * tui/tui-command.h (struct tui_cmd_window): Move from
2638 tui-data.h.
2639 * tui/tui-command.c: Remove "structuring" comments.
2640 (tui_cmd_window::clear_detail)
2641 (tui_cmd_window::do_make_visible_with_new_height)
2642 (tui_cmd_window::max_height): Move from elsewhere.
2643
2d8b51cb
TT
26442019-07-17 Tom Tromey <tom@tromey.com>
2645
2646 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2647 Now static.
2648 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2649 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2650
18ab23af
TT
26512019-07-17 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui.c: Update.
2654 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2655 tui-regs.c.
2656 * tui/tui-windata.h: Remove file.
2657 * tui/tui-windata.c: Remove file.
2658 * tui/tui-win.c (tui_data_window::set_new_height)
2659 (tui_data_window::do_make_visible_with_new_height): Move to
2660 tui-regs.c.
2661 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2662 * tui/tui-regs.c: Remove "structuring" comments.
2663 (tui_data_window::first_data_item_displayed)
2664 (tui_data_window::delete_data_content_windows)
2665 (tui_data_window::erase_data_content)
2666 (tui_data_window::display_all_data)
2667 (tui_data_window::refresh_all)
2668 (tui_data_window::do_scroll_vertical)
2669 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2670 (tui_data_window::do_make_visible_with_new_height)
2671 (tui_data_window::refresh_window): Move from elsewhere.
2672 (_initialize_tui_regs): Move to end of file.
2673 * tui/tui-layout.c: Update.
2674 * tui/tui-hooks.c: Update.
2675 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2676 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2677 tui-regs.c.
2678 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2679
88b7e7cc
TT
26802019-07-17 Tom Tromey <tom@tromey.com>
2681
2682 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2683 seen.
2684
0fcd3711
TT
26852019-07-17 Tom Tromey <tom@tromey.com>
2686
2687 * tui/tui-win.c (tui_source_window_base::set_new_height)
2688 (tui_source_window_base::do_make_visible_with_new_height): Use
2689 m_has_locator field directly.
2690 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2691 method.
2692 (struct tui_source_window_base) <has_locator>: Likewise.
2693
4a38112d
TT
26942019-07-17 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2697 Don't declare.
2698 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2699 Remove.
2700 * tui/tui-win.c (tui_source_window_base::set_new_height)
2701 (tui_source_window_base::set_new_height)
2702 (make_invisible_and_set_new_height)
2703 (tui_source_window_base::do_make_visible_with_new_height)
2704 (tui_source_window_base::do_make_visible_with_new_height):
2705 Update.
2706 * tui/tui-layout.c (show_source_disasm_command, show_data)
2707 (show_source_or_disasm_and_command): Update.
2708 * tui/tui-layout.c (show_layout): Update.
2709
09129226
TT
27102019-07-17 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-layout.c (make_data_window): Remove.
2713 (show_data): Unify creation and re-initialization cases.
2714
4a8a5e84
TT
27152019-07-17 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-layout.c (make_source_window, make_disasm_window):
2718 Remove.
2719 (show_data): Unify creation and re-initialization cases.
2720
76d2be8e
TT
27212019-07-17 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-layout.c (make_command_window): Remove.
2724 (show_source_disasm_command, show_source_or_disasm_and_command):
2725 Unify creation and re-initialization cases.
2726
890b8bde
TT
27272019-07-17 Tom Tromey <tom@tromey.com>
2728
2729 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2730 creation and re-initialization cases.
2731
2cdfa113
TT
27322019-07-17 Tom Tromey <tom@tromey.com>
2733
2734 * tui/tui-regs.c (tui_get_register): Return void.
2735
8e3cfd09
TT
27362019-07-17 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2739 Simplify.
2740
f4e04977
TT
27412019-07-17 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2744 resetting.
2745
0379b883
TT
27462019-07-17 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2749 * tui/tui-regs.c (tui_reg_layout): New function.
2750 (tui_show_registers, tui_reg_command): Use it.
2751 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2752 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2753 parameters.
2754 (tui_layout_command): Remove.
2755
b7fbad91
TT
27562019-07-17 Tom Tromey <tom@tromey.com>
2757
2758 * tui/tui-layout.h (tui/tui-layout): Return void.
2759 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2760
4e1e56b9
TT
27612019-07-17 Tom Tromey <tom@tromey.com>
2762
2763 * tui/tui-layout.c (show_source_disasm_command, show_data):
2764 Update.
2765 (reset_locator): Remove.
2766 (show_source_or_disasm_and_command): Update.
2767
1e0c09ba
TT
27682019-07-17 Tom Tromey <tom@tromey.com>
2769
2770 * tui/tui-source.c (tui_source_window_base::reset): Remove
2771 win_type parameter.
2772 * tui/tui-layout.c (make_command_window, make_source_window)
2773 (make_disasm_window, make_data_window)
2774 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2775 (reset_locator, show_source_or_disasm_and_command): Update.
2776 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2777 win_type parameter.
2778 (struct tui_source_window_base) <reset>: Likewise.
2779
1bf605de
TT
27802019-07-17 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-layout.c (show_source_disasm_command): Use
2783 reset_locator.
2784 (reset_locator): New function.
2785 (init_and_make_win): Remove.
2786 (show_source_or_disasm_and_command): Use reset_locator.
2787
098f9ed4
TT
27882019-07-17 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2791 condition.
2792 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2793 Remove condition.
2794 * tui/tui-source.c (tui_source_window_base::reset): New method.
2795 * tui/tui-layout.c (make_command_window): Don't call
2796 init_and_make_win.
2797 (make_source_window, make_disasm_window): Don't call
2798 make_source_or_disasm_window.
2799 (make_data_window): Don't call init_and_make_win. Change calling
2800 convention.
2801 (show_source_disasm_command, show_data): Simplify.
2802 (make_source_or_disasm_window): Remove.
2803 (show_source_or_disasm_and_command): Simplify.
2804 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2805 (struct tui_source_window_base) <reset>: Likewise.
2806 <execution_info>: Remove initializer.
2807 * tui/tui-data.c (tui_source_window_base): Initialize
2808 execution_info.
2809
80110957
TT
28102019-07-17 Tom Tromey <tom@tromey.com>
2811
2812 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2813 variable.
2814
cf82af05
TT
28152019-07-17 Tom Tromey <tom@tromey.com>
2816
2817 * tui/tui.c (tui_rl_other_window): Update.
2818 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2819 superclass method first. Always iterate over regs_content.
2820 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2821 method.
2822 * tui/tui-win.c (tui_set_focus_command): Update.
2823
01aeb396
TT
28242019-07-17 Tom Tromey <tom@tromey.com>
2825
2826 * tui/tui-win.c (tui_set_focus_command): Rename from
2827 tui_set_focus. Call tui_enable.
2828 (tui_set_focus_command): Remove.
2829
fd6c75ee
TT
28302019-07-17 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2833 refresh_window.
2834 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2835 touchwin.
2836 (tui_data_window::refresh_window): Call refresh_window on data
2837 items. Always call superclass refresh_window.
2838 (tui_win_info::refresh): Remove.
2839 (tui_source_window_base::refresh_window): Update.
2840 (tui_refresh_all): Update.
2841 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2842 refresh_window.
2843 (show_source_or_disasm_and_command): Likewise.
2844 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2845 (struct tui_source_window_base) <refresh>: Likewise.
2846
f6cc34a9
TT
28472019-07-17 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-winsource.c (tui_clear_source_content)
2850 (tui_show_source_content): Update.
2851 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2852 whether content is empty.
2853 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2854 Remove.
2855
f31ec9af
TT
28562019-07-17 Tom Tromey <tom@tromey.com>
2857
2858 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2859 window's contents.
2860 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2861 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2862
d1b6f1e5
TT
28632019-07-17 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2866 (struct tui_data_item_window): Update.
2867
d9743a13
TT
28682019-07-17 Tom Tromey <tom@tromey.com>
2869
2870 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2871 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2872 defines.
2873
caf0bc4e
TT
28742019-07-17 Tom Tromey <tom@tromey.com>
2875
2876 * tui/tui-winsource.h (tui_erase_source_content)
2877 (tui_clear_source_content): Remove "display_prompt" parameter.
2878 * tui/tui-winsource.c (tui_update_source_window_as_is)
2879 (tui_update_source_windows_with_addr): Update.
2880 (tui_clear_source_content): Remove "display_prompt" parameter.
2881 (tui_erase_source_content): Likewise. Simplify.
2882 (tui_show_source_content): Update.
2883 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2884 * tui/tui-stack.c (tui_show_frame_info): Update.
2885 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2886 Remove defines.
2887
9d391078
TT
28882019-07-17 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2891 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2892 parameter.
2893 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2894 parameter.
2895
a38da35d
TT
28962019-07-17 Tom Tromey <tom@tromey.com>
2897
2898 * tui/tui-winsource.c (tui_clear_source_content)
2899 (tui_show_source_content, tui_show_exec_info_content)
2900 (tui_clear_exec_info_content): Update.
2901 * tui/tui-stack.c (tui_show_locator_content): Update.
2902 (tui_show_frame_info): Update.
2903 * tui/tui-source.h (tui_source_window): Don't declare.
2904 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2905 from tui_source_is_displayed.
2906 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2907 Remove field.
2908 (struct tui_source_window_base) <content_in_use>: New field. Now
2909 bool.
2910 (struct tui_source_window) <showing_source_p>: New method.
2911 (TUI_SRC_WIN): Change cast.
2912 * tui/tui-data.c (tui_initialize_static_data): Update.
2913
c2cd8994
TT
29142019-07-17 Tom Tromey <tom@tromey.com>
2915
2916 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2917 location_matches_p.
2918 * tui/tui-source.c (tui_source_window::location_matches_p): New
2919 method.
2920 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2921 method.
2922 * tui/tui-data.h (struct tui_source_window_base)
2923 <location_matches_p>: New method.
2924 (struct tui_source_window, struct tui_disasm_window)
2925 <location_matches_p>: Likewise.
2926
4dde7b34
TT
29272019-07-17 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-win.c (tui_set_win_height_command): Rename from
2930 tui_set_win_height.
2931 (tui_set_win_height_command): Remove.
2932
b73dd877
TT
29332019-07-17 Tom Tromey <tom@tromey.com>
2934
2935 * tui/tui-source.c (tui_source_window): New constructor. Add
2936 observer.
2937 (~tui_source_window): New destructor.
2938 (tui_source_window::style_changed): New method.
2939 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2940 (tui_attach_detach_observers): Update.
2941 * tui/tui-data.h (struct tui_source_window): Make constructor not
2942 inline. Add destructor.
2943 (struct tui_source_window) <style_changed>: New method.
2944 <m_observable>: New member.
2945
ae2b5380
TT
29462019-07-17 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2949 * tui/tui-win.c (tui_resize_all): Fix typo.
2950
1ce3e844
TT
29512019-07-17 Tom Tromey <tom@tromey.com>
2952
2953 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2954 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2955 (tui_refresh_all): Remove "list" parameter. Use foreach.
2956 * tui/tui-win.c (window_name_completer): Use foreach.
2957 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2958 (update_tab_width): Likewise.
2959 * tui/tui-layout.c (show_layout): Update.
2960 * tui/tui-data.h (class tui_window_iterator): New.
2961 (struct all_tui_windows): New.
2962 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2963
fe3eaf1c
TT
29642019-07-17 Tom Tromey <tom@tromey.com>
2965
2966 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2967 parameter. Don't reference globals.
2968 (tui_reg_command): Update.
2969
368c1354
TT
29702019-07-17 Tom Tromey <tom@tromey.com>
2971
2972 * tui/tui-regs.c (tui_show_registers): Simplify.
2973
e80cd204
TT
29742019-07-17 Tom Tromey <tom@tromey.com>
2975
2976 * tui/tui-regs.c (tui_show_registers): Update.
2977 (tui_show_register_group): Add win_info parameter.
2978
aca2dd16
TT
29792019-07-17 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2982 Rename from tui_display_reg_element_at_line.
2983 (tui_data_window::display_registers_from_line): Update.
2984 * tui/tui-data.h (struct tui_data_window)
2985 <display_reg_element_at_line>: New method.
2986
517e9505
TT
29872019-07-17 Tom Tromey <tom@tromey.com>
2988
2989 * tui/tui-regs.h (tui_display_registers_from)
2990 (tui_display_registers_from_line): Don't declare.
2991 * tui/tui-windata.c (tui_data_window::display_all_data)
2992 (tui_data_window::refresh_all)
2993 (tui_data_window::do_scroll_vertical): Update.
2994 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2995 from tui_display_registers_from.
2996 (tui_display_reg_element_at_line): Update.
2997 (tui_data_window::display_registers_from_line): Rename from
2998 tui_display_registers_from_line.
2999 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3000 display_registers_from_line>: New methods.
3001
f76d8b19
TT
30022019-07-17 Tom Tromey <tom@tromey.com>
3003
3004 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3005 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3006 from tui_erase_data_content.
3007 (tui_data_window::display_all_data)
3008 (tui_data_window::refresh_all)
3009 (tui_data_window::do_scroll_vertical): Update.
3010 * tui/tui-regs.c (tui_show_registers): Update.
3011 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3012 New method.
3013
b4094625
TT
30142019-07-17 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3017 declare.
3018 * tui/tui-windata.c
3019 (tui_data_window::delete_data_content_windows): Rename from
3020 tui_delete_data_content_windows.
3021 (tui_data_window::display_all_data)
3022 (tui_data_window::do_scroll_vertical): Update.
3023 * tui/tui-data.h (struct tui_data_window)
3024 <delete_data_content_windows>: New method.
3025
c223a729
TT
30262019-07-17 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3029 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3030
50daf268
TT
30312019-07-17 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3034 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3035 from tui_display_all_data.
3036 * tui/tui-win.c
3037 (tui_data_window::do_make_visible_with_new_height): Update.
3038 * tui/tui-regs.c (tui_show_registers): Update.
3039 * tui/tui-layout.c (tui_set_layout): Update.
3040 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3041 method.
3042
df5f8cab
TT
30432019-07-17 Tom Tromey <tom@tromey.com>
3044
3045 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3046 * tui/tui-windata.c (tui_display_data_from): Remove.
3047 (tui_data_window::refresh_all): Update.
3048
80cb6c27
TT
30492019-07-17 Tom Tromey <tom@tromey.com>
3050
3051 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3052 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3053 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3054 tui_display_registers_from_line.
3055 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3056 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3057 "force_display" parameter.
3058
baff0c28
TT
30592019-07-17 Tom Tromey <tom@tromey.com>
3060
3061 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3062 declare.
3063 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3064 Rename from tui_first_reg_element_no_inline.
3065 (tui_display_reg_element_at_line)
3066 (tui_display_registers_from_line): Update.
3067 * tui/tui-data.h (struct tui_data_window)
3068 <first_reg_element_no_inline>: New method.
3069
3b23c5f2
TT
30702019-07-17 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-windata.c (tui_display_data_from)
3073 (tui_data_window::do_scroll_vertical): Update.
3074 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3075 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3076 Rename from tui_line_from_reg_element_no.
3077 (tui_display_registers_from_line): Update.
3078 * tui/tui-data.h (struct tui_data_window)
3079 <line_from_reg_element_no>: New method.
3080
0b5ec218
TT
30812019-07-17 Tom Tromey <tom@tromey.com>
3082
3083 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3084 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3085 tui_last_regs_line_no.
3086 (tui_display_reg_element_at_line)
3087 (tui_display_registers_from_line): Update.
3088 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3089 method.
3090
0807ab7b
TT
30912019-07-17 Tom Tromey <tom@tromey.com>
3092
3093 PR tui/24722:
3094 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3095 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3096 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3097 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3098 (tui_update_breakpoint_info): Likewise.
3099 * tui/tui-hooks.c (tui_event_create_breakpoint)
3100 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3101 Update.
3102
9ad7fdef
TT
31032019-07-17 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3106
5813316f
TT
31072019-07-17 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-winsource.c (tui_update_source_window_as_is)
3110 (tui_update_source_windows_with_addr): Update.
3111 * tui/tui-source.h (tui_set_source_content)
3112 (tui_show_symtab_source): Add "win_info" parameter.
3113 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3114 parameter.
3115 (tui_show_symtab_source): Likewise.
3116
00e264e7
TT
31172019-07-17 Tom Tromey <tom@tromey.com>
3118
3119 * tui/tui-wingeneral.c
3120 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3121
06210ce4
TT
31222019-07-17 Tom Tromey <tom@tromey.com>
3123
3124 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3125 (struct tui_cmd_window) <can_scroll>: New method.
3126 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3127 method.
3128
381befee
TT
31292019-07-17 Tom Tromey <tromey@adacore.com>
3130
3131 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3132 do_field_signed>: Rename. Change type of "value".
3133 * ui-out.c (ui_out::field_signed): Rename from field_int.
3134 Change type of "value".
3135 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3136 type of "value".
3137 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3138 do_field_int. Change type of "value".
3139 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3140 do_field_int. Change type of "value".
3141 * tracepoint.c (trace_status_mi, tfind_1)
3142 (print_one_static_tracepoint_marker): Update.
3143 * thread.c (print_thread_info_1, print_selected_thread_frame):
3144 Update.
3145 * stack.c (print_frame, print_frame_info): Update.
3146 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3147 Update.
3148 * source.c (print_source_lines_base): Update.
3149 * skip.c (info_skip_command): Update.
3150 * record-btrace.c (btrace_ui_out_decode_error)
3151 (btrace_call_history_src_line): Update.
3152 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3153 Update.
3154 * progspace.c (print_program_space): Update.
3155 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3156 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3157 do_field_int. Change type of "value".
3158 * mi/mi-out.c (mi_ui_out::do_table_begin)
3159 (mi_ui_out::do_table_header): Update.
3160 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3161 type of "value".
3162 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3163 (mi_cmd_data_list_changed_registers, output_register)
3164 (mi_cmd_data_read_memory, mi_load_progress)
3165 (mi_cmd_trace_frame_collected): Update.
3166 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3167 Update.
3168 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3169 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3170 (mi_cmd_var_list_children, varobj_update_one): Update.
3171 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3172 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3174 * inferior.c (print_inferior): Update.
3175 * gdb_bfd.c (print_one_bfd): Update.
3176 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3177 Update.
3178 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3179 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3180 do_field_int. Change type of "value".
3181 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3182 do_field_int. Change type of "value".
3183 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3184 (print_one_breakpoint_location, print_it_catch_fork)
3185 (print_one_catch_fork, print_it_catch_vfork)
3186 (print_one_catch_vfork, print_it_catch_solib)
3187 (print_it_catch_exec, print_it_ranged_breakpoint)
3188 (print_mention_watchpoint, print_mention_masked_watchpoint)
3189 (bkpt_print_it, update_static_tracepoint): Update.
3190 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3191 * break-catch-syscall.c (print_it_catch_syscall): Update.
3192 * ada-tasks.c (print_ada_task_info): Update.
3193 * ada-lang.c (print_it_exception, print_mention_exception):
3194 Update.
3195
6b78c3f8
AB
31962019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 PR breakpoints/24541
3199 * gdbarch.c: Regenerate.
3200 * gdbarch.h: Regenerate.
3201 * gdbarch.sh: Adjust return type and parameter types for
3202 'stap_adjust_register'.
3203 (i386_stap_adjust_register): Adjust signature and return new
3204 register name.
3205 * stap-probe.c (stap_parse_register_operand): Adjust use of
3206 'gdbarch_stap_adjust_register'.
3207
d72a9b85
TT
32082019-07-17 Tom Tromey <tromey@adacore.com>
3209
3210 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3211 declare VEC.
3212 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3213 std::vector.
3214 (struct s390_process_info): Add initializers.
3215 (s390_add_process): Use new.
3216 (s390_linux_nat_target::low_forget_process): Use delete.
3217 (s390_linux_nat_target::low_new_fork)
3218 (s390_linux_nat_target::stopped_by_watchpoint)
3219 (s390_linux_nat_target::low_prepare_to_resume)
3220 (s390_linux_nat_target::insert_watchpoint)
3221 (s390_linux_nat_target::insert_hw_breakpoint)
3222 (s390_linux_nat_target::remove_watchpoint)
3223 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3224
206e6c58
JB
32252019-07-16 John Baldwin <jhb@FreeBSD.org>
3226
3227 * aarch64-fbsd-nat.c: Include regcache.h.
3228 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3229 argument.
3230 (aarch64_fbsd_nat_target::fetch_registers)
3231 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3232 variable.
3233 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3234
cbde90f2
JB
32352019-07-16 John Baldwin <jhb@FreeBSD.org>
3236
3237 * fbsd-nat.c: Include gdbarch.h.
3238
07128006
TT
32392019-07-15 Tom Tromey <tromey@adacore.com>
3240
3241 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3242
1f77b012
TT
32432019-07-15 Tom Tromey <tromey@adacore.com>
3244
3245 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3246 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3247 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3248 * cli-out.c (cli_ui_out::do_field_int): New method.
3249 * ui-out.c (ui_out::field_unsigned): New method.
3250 * symfile.c (generic_load): Use field_unsigned.
3251 (print_transfer_performance): Likewise.
3252 * record-btrace.c (ui_out_field_uint): Remove.
3253 (btrace_call_history_insn_range, btrace_call_history): Use
3254 field_unsigned.
3255 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3256 field_unsigned.
3257 * ui-out.h (class ui_out) <field_unsigned>: New method.
3258 <do_field_unsigned>: Likewise.
3259
33eca680
TT
32602019-07-15 Tom Tromey <tromey@adacore.com>
3261
3262 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3263 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3264 * target.c (flash_erase_command): Use field_string.
3265 * infrun.c (print_signal_received_reason): Use field_string.
3266 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3267 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3268 field_string.
3269 * ada-tasks.c (print_ada_task_info): Use field_string.
3270
ca8d69be
TT
32712019-07-15 Tom Tromey <tromey@adacore.com>
3272
3273 * target.c (flash_erase_command): Use field_core_addr.
3274 * symfile.c (generic_load): Use field_core_addr.
3275 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3276 Use field_core_addr.
3277 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3278 field_core_addr.
3279
0d4e84ed
AB
32802019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3283 value if its desired type is smaller than a CORE_ADDR and signed.
3284
9a49df9d
AB
32852019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3286
3287 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3288 of changes to field names, and use new is_reference field to
3289 decide if a property is a reference or not.
3290 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3291 field.
3292 (struct dwarf2_property_baton): Update header comment, rename
3293 'referenced_type' to 'property_type' and update comments.
3294 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3295 default property type, store in property baton, update to take
3296 accound of renamed field.
3297 (read_func_scope): Update call to attr_to_dynamic_prop.
3298 (read_array_type): Likewise.
3299 (dwarf2_per_cu_addr_sized_int_type): New function.
3300 (read_subrange_index_type): Move type finding code to
3301 dwarf2_per_cu_addr_sized_int_type.
3302 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3303 (dwarf2_per_cu_addr_type): New function.
3304 (set_die_type): Update calls to attr_to_dynamic_prop.
3305
b86352cf
AB
33062019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3307
3308 * dwarf2read.c (read_subrange_index_type): New function.
3309 (read_subrange_type): Move code into new function and call it.
3310 * gdbtypes.c (create_range_type): Add some asserts.
3311
603490bf
AB
33122019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3315 update return statements.
3316 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3317 declaration, and update comment to match.
3318 * gdbtypes.c (resolve_dynamic_array): Update call to
3319 dwarf2_evaluate_property to match new return type.
3320
592f9d27
AB
33212019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3322
3323 * valarith.c (value_subscripted_rvalue): Change lowerbound
3324 parameter type from int to LONGEST.
3325 * value.h (value_subscripted_rvalue): Likewise in declaration.
3326
60cfcb20
AB
33272019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * cli/cli-utils.c (info_print_command_completer): New function.
3330 * cli/cli-utils.h: Add 'completer.h' include, and forward
3331 declaration for 'struct cmd_list_element'.
3332 (info_print_command_completer): Declare.
3333 * stack.c (_initialize_stack): Add completer for 'info locals' and
3334 'info args'.
3335 * symtab.c (_initialize_symtab): Add completer for 'info
3336 variables' and 'info functions'.
3337 * NEWS: Mention completion for additional info commands.
3338
b16507e0
AB
33392019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3340
3341 * cli/cli-utils.c (extract_info_print_args): Delete.
3342 (extract_arg_maybe_quoted): Delete.
3343 (info_print_options_defs): New variable.
3344 (make_info_print_options_def_group): New function.
3345 (extract_info_print_options): Define new function.
3346 * cli/cli-utils.h (extract_info_print_args): Delete.
3347 (struct info_print_options): New structure.
3348 (extract_info_print_options): Declare new function.
3349 * stack.c (info_locals_command): Update to use new
3350 extract_info_print_options, also add a header comment.
3351 (info_args_command): Likewise.
3352 * symtab.c (info_variables_command): Likewise.
3353 (info_functions_command): Likewise.
3354
021d8588
AB
33552019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3358 to extract string arguments.
3359 * common/common-utils.c (extract_string_maybe_quoted): New function.
3360 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3361
b777eb6d
TT
33622019-07-11 Tom Tromey <tromey@adacore.com>
3363
3364 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3365 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3366 * top.h (gdbinit): Don't declare.
3367 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3368 into...
3369 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3370 * top.c (gdb_init): Don't call init_cli_cmds.
3371 (gdbinit): Remove.
3372 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3373
72ee03ff
TT
33742019-07-11 Tom Tromey <tromey@adacore.com>
3375
3376 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3377 after it has been moved.
3378
00db9531
SM
33792019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3380
3381 * valops.c (value_must_coerce_to_target): Change return type to
3382 bool.
3383 * value.h (value_must_coerce_to_target): Likewise.
3384
f2478a7e
SM
33852019-07-10 Simon Marchi <simon.marchi@efficios.com>
3386
3387 * breakpoint.c (is_hardware_watchpoint): Remove
3388 forward-declaration.
3389 (is_masked_watchpoint): Change return type to bool.
3390 (is_tracepoint): Likewise.
3391 (is_breakpoint): Likewise.
3392 (is_hardware_watchpoint): Likewise.
3393 (is_watchpoint): Likewise.
3394 (is_no_memory_software_watchpoint): Likewise.
3395 (is_catchpoint): Likewise.
3396 (breakpoint_1): Make FILTER parameter's return type bool.
3397 is_masked_watchpoint): Change return type to bool.
3398 (save_breakpoints): Make FILTER parameter's return type bool.
3399 * breakpoint.h (is_breakpoint): Change return type to bool.
3400 (is_watchpoint): Likewise.
3401 (is_catchpoint): Likewise.
3402 (is_tracepoint): Likewise.
3403
0d12e84c
TT
34042019-07-10 Tom Tromey <tom@tromey.com>
3405
3406 * defs.h: Don't include gdbarch.h.
3407 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3408 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3409 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3410 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3411 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3412 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3413 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3414 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3415 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3416 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3417 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3418 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3419 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3420 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3421 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3422 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3423 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3424 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3425 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3426 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3427 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3428 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3429 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3430 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3431 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3432 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3433 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3434
f06f1252
TT
34352019-07-10 Tom Tromey <tromey@adacore.com>
3436
3437 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3438 * breakpoint.c (init_ada_exception_breakpoint): Register as
3439 bp_catchpoint.
3440 (print_one_breakpoint_location, print_one_breakpoint): Use
3441 is_ada_exception_catchpoint.
3442 * ada-lang.c (class ada_catchpoint_location): Pass
3443 bp_loc_software_breakpoint to bp_location constructor.
3444 (is_ada_exception_catchpoint): New function.
3445
7a5d944b
TT
34462019-07-10 Tom Tromey <tromey@adacore.com>
3447
3448 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3449 VEC.
3450 (struct arm_exidx_entry): New method operator<.
3451 (struct arm_exidx_data) <section_maps>: Change type.
3452 (arm_exidx_data_free): Remove.
3453 (arm_exidx_data_key): Change type. Move lower.
3454 (arm_exidx_new_objfile): Update.
3455 (arm_compare_exidx_entries): Remove.
3456 (arm_find_exidx_entry, _initialize_arm_tdep)
3457
48c66e1d
TT
34582019-07-10 Tom Tromey <tromey@adacore.com>
3459
3460 * solib-spu.c (ocl_program_data_key): Change type.
3461 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3462 Update.
3463
a269fbf1
TT
34642019-07-10 Tom Tromey <tromey@adacore.com>
3465
3466 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3467 (struct solib_aix_inferior_data) <library_list>: Change type.
3468 (solib_aix_inferior_data_handle): Change type.
3469 (get_solib_aix_inferior_data): Update.
3470 (solib_aix_free_library_list): Remove.
3471 (library_list_start_library): Update.
3472 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3473 return type.
3474 (solib_aix_get_library_list)
3475 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3476 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3477
c294730c
TT
34782019-07-10 Tom Tromey <tromey@adacore.com>
3479
3480 * solib-dsbt.c (struct dsbt_info): Add initializers.
3481 (solib_dsbt_pspace_data): Change type.
3482 (dsbt_pspace_data_cleanup): Remove.
3483 (get_dsbt_info, _initialize_dsbt_solib): Update.
3484
9d52077d
TT
34852019-07-10 Tom Tromey <tromey@adacore.com>
3486
3487 * spu-tdep.c (spu_overlay_data): Change type.
3488 (spu_get_overlay_table, spu_overlay_new_objfile)
3489 (_initialize_spu_tdep): Update.
3490
22a20dca
TT
34912019-07-10 Tom Tromey <tromey@adacore.com>
3492
3493 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3494 destructor.
3495 (dbx_objfile_data_key): Change type and declare later.
3496 (DBX_SYMFILE_INFO): Rewrite.
3497 * dbxread.c (dbx_objfile_data_key): Change type.
3498 (dbx_symfile_init): Update.
3499 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3500 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3501 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3502
cb60f420
TT
35032019-07-10 Tom Tromey <tromey@adacore.com>
3504
3505 * jit.c (jit_program_space_key): Change type. Move lower.
3506 (get_jit_program_space_data): Update.
3507 (jit_program_space_data_cleanup): Remove.
3508 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3509 Update.
3510 (struct jit_program_space_data): Add initializers.
3511
51df2ae3
TT
35122019-07-10 Tom Tromey <tromey@adacore.com>
3513
3514 * solib-darwin.c (struct darwin_info): Add initializers.
3515 (solib_darwin_pspace_data): Change type.
3516 (darwin_pspace_data_cleanup): Remove.
3517 (get_darwin_info, _initialize_darwin_solib): Update.
3518
18101a35
TT
35192019-07-10 Tom Tromey <tromey@adacore.com>
3520
3521 * remote-sim.c (struct sim_inferior_data): Add initializers,
3522 constructor, and destructor.
3523 (sim_inferior_data_key): Change type. Move lower.
3524 (check_for_duplicate_sim_descriptor): Update.
3525 (get_sim_inferior_data): Use new. Update.
3526 (~sim_inferior_data_cleanup): Rename from
3527 sim_inferior_data_cleanup. Simplify.
3528 (gdbsim_close_inferior, simulator_command)
3529 (sim_command_completer, _initialize_remote_sim): Update.
3530 (next_pid, INITIAL_PID): Move earlier.
3531
05b08ac1
TT
35322019-07-10 Tom Tromey <tromey@adacore.com>
3533
3534 * python/python-internal.h (create_thread_object): Return
3535 gdbpy_ref.
3536 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3537 * python/py-inferior.c (struct threadlist_entry): Add
3538 constructor.
3539 <thread_obj>: Now a gdbpy_ref.
3540 (thread_to_thread_object): Update.
3541 (add_thread_object): Use new.
3542 (delete_thread_object): Use delete.
3543 (infpy_threads): Update.
3544 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3545 GIL.
3546
32372d80
TT
35472019-07-10 Tom Tromey <tromey@adacore.com>
3548
3549 * valops.c (value_cast): Specialize error message for Ada.
3550
5c458ae8
SM
35512019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3552
3553 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3554
4c462cb0
SM
35552019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3558 bpstat_should_step): Return bool, adjust comments.
3559 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3560 bpstat_should_step): Likewise.
3561
89abbcc2
AH
35622019-07-10 Alan Hayward <alan.hayward@arm.com>
3563
3564 * features/Makefile: Use feature target descriptions for Arm.
3565 * features/arm/arm-core.c: Generate new file.
3566 * features/arm/arm-fpa.c: Likewise.
3567 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3568 * features/arm/arm-m-profile.c: Likewise.
3569 * features/arm/arm-vfpv2.c: Likewise.
3570 * features/arm/arm-vfpv3.c: Likewise.
3571 * features/arm/xscale-iwmmxt.c: Likewise.
3572 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3573
166a82be
AH
35742019-07-10 Alan Hayward <alan.hayward@arm.com>
3575
3576 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3577 ptrace earlier.
3578
9fb4c7e9
AH
35792019-07-10 Alan Hayward <alan.hayward@arm.com>
3580
3581 * features/aarch64-pauth.c: Regenerate.
3582
e2d0f980
SM
35832019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3586 bool.
3587 (bpstat_what): Use false instead of 0.
3588
a38118e5
PA
35892019-07-09 Pedro Alves <palves@redhat.com>
3590
3591 * break-catch-throw.c (is_exception_catchpoint): New.
3592 * breakpoint.c (print_one_breakpoint_location): New parameter
3593 'raw_loc'. Handle it. Use
3594 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3595 looking at the breakpoint's type.
3596 (print_one_breakpoint): If handling "maint info breakpoints", also
3597 print locations of exception catchpoints.
3598 * breakpoint.h (is_exception_catchpoint): Declare.
3599
cb1e4e32
PA
36002019-07-09 Pedro Alves <palves@redhat.com>
3601
3602 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3603 "addr" field.
3604 (allocate_location_exception_catchpoint): New.
3605 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3606 (initialize_throw_catchpoint_ops): Install
3607 allocate_location_exception_catchpoint as allocate_location
3608 method.
3609 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3610 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3611 bp_loc_other.
3612 (breakpoint_address_is_meaningful): Delete.
3613 (bl_address_is_meaningful): New.
3614 (breakpoint_locations_match): Adjust comment.
3615 (bp_location_from_bp_type): New, factored out of...
3616 (bp_location::bp_location(breakpoint *)): ... this.
3617 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3618 factored out of...
3619 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3620 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3621 breakpoint_address_is_meaningful.
3622 (bp_locations_compare): Adjust comment.
3623 (update_global_location_list): Use bl_address_is_meaningful
3624 instead of breakpoint_address_is_meaningful.
3625 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3626 explicit.
3627 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3628 * python/py-breakpoint.c (bppy_get_location): No longer check
3629 whether location is null.
3630
b58a68fe
PA
36312019-07-09 Pedro Alves <palves@redhat.com>
3632
3633 PR c++/15468
3634 * breakpoint.c (print_one_breakpoint_location): Remove
3635 single-location assert.
3636
268a13a5
TT
36372019-07-09 Tom Tromey <tom@tromey.com>
3638
3639 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3640 * configure: Rebuild.
3641 * configure.ac: Change common to gdbsupport.
3642 * gdbsupport: Rename from common.
3643 * acinclude.m4: Change common to gdbsupport.
3644 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3645 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3646 gdbsupport.
3647 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3648 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3649 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3650 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3651 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3652 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3653 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3654 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3655 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3656 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3657 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3658 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3659 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3660 coff-pe-read.c, command.h, compile/compile-c-support.c,
3661 compile/compile-c.h, compile/compile-cplus-symbols.c,
3662 compile/compile-cplus-types.c, compile/compile-cplus.h,
3663 compile/compile-loc2c.c, compile/compile.c, completer.c,
3664 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3665 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3666 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3667 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3668 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3669 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3670 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3671 features/aarch64-core.c, features/aarch64-fpu.c,
3672 features/aarch64-pauth.c, features/aarch64-sve.c,
3673 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3674 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3675 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3676 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3677 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3678 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3679 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3680 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3681 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3682 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3683 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3684 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3685 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3686 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3687 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3688 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3689 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3690 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3691 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3692 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3693 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3694 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3695 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3696 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3697 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3698 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3699 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3700 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3701 minsyms.c, mips-linux-tdep.c, namespace.h,
3702 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3703 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3704 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3705 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3706 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3707 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3708 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3709 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3710 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3711 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3712 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3713 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3714 procfs.c, producer.c, progspace.h, psymtab.h,
3715 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3716 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3717 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3718 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3719 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3720 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3721 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3722 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3723 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3724 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3725 target-memory.c, target.c, target.h, target/waitstatus.c,
3726 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3727 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3728 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3729 unittests/array-view-selftests.c,
3730 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3731 unittests/common-utils-selftests.c,
3732 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3733 unittests/format_pieces-selftests.c,
3734 unittests/function-view-selftests.c,
3735 unittests/lookup_name_info-selftests.c,
3736 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3737 unittests/mkdir-recursive-selftests.c,
3738 unittests/observable-selftests.c,
3739 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3740 unittests/parse-connection-spec-selftests.c,
3741 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3742 unittests/scoped_fd-selftests.c,
3743 unittests/scoped_mmap-selftests.c,
3744 unittests/scoped_restore-selftests.c,
3745 unittests/string_view-selftests.c, unittests/style-selftests.c,
3746 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3747 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3748 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3749 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3750 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3751 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3752
5b0e2db4
AB
37532019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3756 bool value.
3757 (decode_digits_ordinary): Set explicit_line field in sal.
3758 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3759 symtab_and_line that was set on an explicit line number in
3760 assembler code. Do always update the recorded symtab and line if
3761 we do skip the prologue.
3762
0ba852ab
AB
37632019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3764
3765 * breakpoint.c (set_breakpoint_location_function): Remove
3766 explicit_loc parameter.
3767 (momentary_breakpoint_from_master): Update call to
3768 set_breakpoint_location_function.
3769 (add_location_to_breakpoint): Likewise.
3770
b3a7d171
AB
37712019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3774 required features based on default bfd type when no specific bfd
3775 is present.
3776
1f6f6e21
PW
37772019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3778
3779 * NEWS: Mention that GDB printf and eval commands can now print
3780 C-style and Ada-style convenience var strings without
3781 calling the inferior.
3782 * printcmd.c (printf_c_string): Locally print GDB internal var
3783 instead of transiting via the inferior.
3784 (printf_wide_c_string): Likewise.
3785
37862019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3787
3788 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3789
0598af48
TT
37902019-07-04 Tom Tromey <tom@tromey.com>
3791
3792 PR tui/24724:
3793 * tui/tui-winsource.c (tui_clear_source_content): Update.
3794 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3795 (tui_update_breakpoint_info): Update.
3796 (tui_set_exec_info_content): Update.
3797 * tui/tui-source.c (tui_set_source_content_nil): Update.
3798 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3799 has_break.
3800 * tui/tui-data.h (enum tui_bp_flag): New.
3801 (tui_bp_flags): New enum flags type.
3802 (struct tui_source_element) <break_mode>: Change type. Rename
3803 from has_break.
3804 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3805 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3806 constants.
3807 * tui/tui-winsource.h: Fix comment.
3808
350fab54
AH
38092019-07-04 Alan Hayward <alan.hayward@arm.com>
3810
3811 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3812 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3813 (store_fpregs_to_thread)
3814 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3815 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3816 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3817 (IWMMXT_REGS_SIZE): Add define.
3818 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3819 (fetch_vfp_regs, store_vfp_regs)
3820 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3821 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3822
f0452268
AH
38232019-07-04 Alan Hayward <alan.hayward@arm.com>
3824
3825 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3826 defines.
3827 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3828 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3829 (ARM_INT_REGISTER_SIZE): ...to this.
3830 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3831 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3832 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3833 (arm_linux_collect_gregset, supply_nwfpe_register)
3834 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3835 defines.
3836 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3837 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3838 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3839 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3840 (arm_return_in_memory, arm_store_return_value)
3841 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3842 (arm_record_ld_st_multiple): Likewise.
3843 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3844 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3845
e935475c
AH
38462019-07-04 Alan Hayward <alan.hayward@arm.com>
3847
3848 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3849 AARCH64_DISPLACED_MODIFIED_INSNS.
3850 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3851 (aarch64_displaced_step_copy_insn): Likewise.
3852 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3853 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3854 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3855 ARM_DISPLACED_MODIFIED_INSNS.
3856 * arm-tdep.c (arm_gdbarch_init): Likewise.
3857 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3858 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3859 (struct arm_displaced_step_closure): Use
3860 ARM_DISPLACED_MODIFIED_INSNS.
3861
df0bb381
AH
38622019-07-04 Alan Hayward <alan.hayward@arm.com>
3863
3864 * features/Makefile: Remove unused xml files.
3865 * features/aarch64.xml: Remove.
3866 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3867 * features/i386/amd64-avx-avx512.xml: Remove.
3868 * features/i386/amd64-avx-linux.xml: Remove.
3869 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3870 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3871 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3872 * features/i386/amd64-avx-mpx.xml: Remove.
3873 * features/i386/amd64-avx.xml: Remove.
3874 * features/i386/amd64-linux.xml: Remove.
3875 * features/i386/amd64-mpx-linux.xml: Remove.
3876 * features/i386/amd64-mpx.xml: Remove.
3877 * features/i386/amd64.xml: Remove.
3878 * features/i386/i386-avx-avx512-linux.xml: Remove.
3879 * features/i386/i386-avx-avx512.xml: Remove.
3880 * features/i386/i386-avx-linux.xml: Remove.
3881 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3882 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3883 * features/i386/i386-avx-mpx-linux.xml: Remove.
3884 * features/i386/i386-avx-mpx.xml: Remove.
3885 * features/i386/i386-avx.xml: Remove.
3886 * features/i386/i386-linux.xml: Remove.
3887 * features/i386/i386-mmx-linux.xml: Remove.
3888 * features/i386/i386-mmx.xml: Remove.
3889 * features/i386/i386-mpx-linux.xml: Remove.
3890 * features/i386/i386-mpx.xml: Remove.
3891 * features/i386/i386.xml: Remove.
3892 * features/i386/x32-avx-avx512-linux.xml: Remove.
3893 * features/i386/x32-avx-linux.xml: Remove.
3894 * features/i386/x32-linux.xml: Remove.
3895
edd6266a
AH
38962019-07-04 Alan Hayward <alan.hayward@arm.com>
3897
3898 * regformats/aarch64.dat: Remove.
3899 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3900 * regformats/i386/amd64-avx-linux.dat: Remove.
3901 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3902 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3903 * regformats/i386/amd64-linux.dat: Remove.
3904 * regformats/i386/amd64-mpx-linux.dat: Remove.
3905 * regformats/i386/amd64.dat: Remove.
3906 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3907 * regformats/i386/i386-avx-linux.dat: Remove.
3908 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3909 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3910 * regformats/i386/i386-linux.dat: Remove.
3911 * regformats/i386/i386-mmx-linux.dat: Remove.
3912 * regformats/i386/i386-mpx-linux.dat: Remove.
3913 * regformats/i386/i386.dat: Remove.
3914 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3915 * regformats/i386/x32-avx-linux.dat: Remove.
3916 * regformats/i386/x32-linux.dat: Remove.
3917
2b40fda7
AH
39182019-07-04 Alan Hayward <alan.hayward@arm.com>
3919
3920 * aarch64-tdep.c: Remove xml self tests.
3921 * amd64-linux-tdep.c: Likewise.
3922 * amd64-tdep.c: Likewise.
3923 * i386-linux-tdep.c: Likewise.
3924 * i386-tdep.c: Likewise.
3925
5f4ba3e7
PA
39262019-07-03 Pedro Alves <palves@redhat.com>
3927
3928 PR cli/24732
3929 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3930 (pipe_cmd_option_defs): New.
3931 (make_pipe_cmd_options_def_group): New.
3932 (pipe_command): Use gdb::option::process_options.
3933 (pipe_command_completer): New function.
3934 (_initialize_cli_cmds): Install completer for "pipe" command.
3935
3d9be6f5
PA
39362019-07-03 Pedro Alves <palves@redhat.com>
3937
3938 * cli/cli-option.c (union option_value) <string>: New field.
3939 (struct option_def_and_value): Add ctor, move ctor, dtor and
3940 use DISABLE_COPY_AND_ASSIGN.
3941 (option_def_and_value::clear_value): New.
3942 (parse_option, save_option_value_in_ctx, get_val_type_str)
3943 (add_setshow_cmds_for_options): Handle var_string.
3944 * cli-option.h (union option_def::var_address) <string>: New
3945 field.
3946 (struct string_option_def): New.
3947 * maint-test-options.c (struct test_options_opts): Add default
3948 ctor and use DISABLE_COPY_AND_ASSIGN.
3949 <string_opt>: New field.
3950 (test_options_opts::~test_options_opts): New.
3951 (test_options_opts::dump): Also dump "-string".
3952 (test_options_option_defs): Install "string.
3953
41fc454c
PA
39542019-07-03 Pedro Alves <palves@redhat.com>
3955
3956 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3957 option_value with a null enumeration.
3958 (complete_options): Save the option values in the context.
3959 (save_option_value_in_ctx): New, factored out from ...
3960 (process_options): ... here.
3961 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3962 of the function.
3963 * maint-test-options.c (test_options_opts::dump): New, factored
3964 out from ...
3965 (maintenance_test_options_command_mode): ... here.
3966 (maintenance_test_options_command_completion_result): Delete.
3967 (maintenance_test_options_command_completion_text): Update
3968 comment.
3969 (maintenance_show_test_options_completion_result): Change
3970 prototype. Just print
3971 maintenance_test_options_command_completion_text.
3972 (save_completion_result): New.
3973 (maintenance_test_options_completer_mode): Pass options context to
3974 complete_options, and then save a dump.
3975 (_initialize_maint_test_options): Use add_cmd to install "maint
3976 show test-options-completion-result".
3977
fdbc9870
PA
39782019-07-03 Pedro Alves <palves@redhat.com>
3979
3980 * NEWS (New commands): Mention "with" and "maint with".
3981 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3982 (with_command, with_command_completer): New.
3983 (pipe_command): Adjust to new repeat_previous
3984 interface.
3985 (_initialize_cli_cmds): Install the "with" command and its "w"
3986 alias.
3987 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3988 declarations.
3989 * cli/cli-setshow.c (parse_cli_var_uinteger)
3990 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3991 argument strings for all var_types.
3992 (get_setshow_command_value_string): New, factored out from ...
3993 (do_show_command): ... this.
3994 * cli/cli-setshow.h: Include <string>.
3995 (get_setshow_command_value_string): Declare.
3996 * command.h (repeat_previous): Now returns const char *. Adjust
3997 comment.
3998 * maint.c: Include "cli/cli-cmds.h".
3999 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4000 (_initialize_maint_cmds): Register the "maintenance with" command.
4001 * top.c (repeat_previous): Move bits from pipe_command here:
4002 Return the saved command line, if any; error out if there's no
4003 command to relaunch.
4004
c6ac8931
PA
40052019-07-03 Pedro Alves <palves@redhat.com>
4006
4007 * NEWS (New commands): Mention "maint set/show test-settings"
4008 instead of "maint test-settings".
4009 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4010 (maintenance_test_settings_set_list): Rename to ...
4011 (maintenance_set_test_settings_list): ... this.
4012 (maintenance_test_settings_show_list): Rename to ...
4013 (maintenance_show_test_settings_list): ... this.
4014 (maintenance_test_settings_cmd): Delete.
4015 (maintenance_test_settings_set_cmd): ...
4016 (maintenance_set_test_settings_cmd): ... this.
4017 (maintenance_test_settings_show_cmd): ...
4018 (maintenance_show_test_settings_cmd): ... this.
4019 (maintenance_test_settings_show_value_cmd):
4020 (maintenance_show_test_settings_value_cmd): ... this.
4021 (_initialize_maint_test_settings): No longer install the "maint
4022 test-settings" prefix command. Rename "maint test-settings set"
4023 to "maint set test-settings", and "maint test-settings show" to
4024 "maint show test-settings". Adjust all subcommands.
4025
d1fcf2fd
PA
40262019-07-03 Pedro Alves <palves@redhat.com>
4027
4028 * maint-test-settings.c: Fix file's intro comment. Replace all
4029 references to "test-options" with references to "test-settings",
4030 in comments.
4031
970f9d09
PA
40322019-07-03 Pedro Alves <palves@redhat.com>
4033
4034 * maint-test-settings.c (maintenance_test_settings_xxx)
4035 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4036 New.
4037 (maintenance_test_settings_enums): Use them.
4038 (maintenance_test_settings_enum): Default to
4039 maintenance_test_settings_xxx.
4040 (_initialize_maint_test_settings): Initialize
4041 MAINTENANCE_TEST_SETTINGS_FILENAME.
4042
f3869b1a
SM
40432019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4044
4045 * breakpoint.h (remove_breakpoints_inf): Change return type to
4046 void, move function documentation here.
4047 * breakpoint.c (remove_breakpoints_inf): Change return type to
4048 void, move function documentation to header.
4049
54d66006
PA
40502019-07-02 Pedro Alves <palves@redhat.com>
4051
4052 * NEWS (Completion improvements): Mention "info threads".
4053 * thread.c (struct info_threads_opts, info_threads_option_defs)
4054 (make_info_threads_options_def_group): New.
4055 (info_threads_command): Use gdb::option::process_options.
4056 (info_threads_command_completer): New.
4057 (_initialize_thread): Use gdb::option::build_help to build the
4058 help text for "info threads".
4059
854f6088
SM
40602019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4061
4062 * defs.h (generic_load): Move from here...
4063 * symfile.h (generic_load): ... to here. Rename name parameter
4064 to args.
4065 * symfile.c (generic_load): Add comment.
4066
54ee4252
TT
40672019-07-01 Tom Tromey <tromey@adacore.com>
4068
4069 * dwarf2read.c
4070 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4071 declaration of without_params. Fix formatting.
4072
65392b3e
TT
40732019-07-01 Tom Tromey <tromey@adacore.com>
4074
4075 * ada-exp.y (find_primitive_type): Update.
4076 * ada-lang.h (ada_lookup_symbol): Update.
4077 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4078 parameter.
4079 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4080
7d7571f0
SDJ
40812019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4082
4083 PR breakpoints/24541
4084 * gdbarch.c: Regenerate.
4085 * gdbarch.h: Regenerate.
4086 * gdbarch.sh: Add 'stap_adjust_register'.
4087 * i386-tdep.c: Include '<unordered_set>'.
4088 (i386_stap_adjust_register): New function.
4089 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4090 * stap-probe.c (stap_parse_register_operand): Call
4091 'gdbarch_stap_adjust_register'.
4092
5af5392a
SDJ
40932019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4094
4095 PR python/24742
4096 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4097 * python/python.c (do_start_initialization): Use 'xmalloc'
4098 instead of 'PyMem_Malloc'.
4099
10d06d82
TT
41002019-06-28 Tom Tromey <tromey@adacore.com>
4101
4102 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4103 for Ada.
4104
1b7f24cd
TT
41052019-06-27 Tom Tromey <tromey@adacore.com>
4106
4107 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4108 objfile_key.
4109 (arm_find_mapping_symbol, arm_record_special_symbol)
4110 (_initialize_arm_tdep): Update.
4111 (arm_objfile_data_free): Remove.
4112
3d507ff2
TT
41132019-06-27 Tom Tromey <tromey@adacore.com>
4114
4115 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4116 to cp_print_static_field.
4117
762c164d
TT
41182019-06-26 Tom Tromey <tromey@adacore.com>
4119
4120 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4121 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4122 declare.
4123
aa2f9bcf
AH
41242019-06-26 Alan Hayward <alan.hayward@arm.com>
4125
4126 * features/aarch64-core.c (create_feature_aarch64_core):
4127 Regenerate.
4128 * features/aarch64-core.xml: Add cpsr flags.
4129
3426ae57
AH
41302019-06-26 Alan Hayward <alan.hayward@arm.com>
4131
4132 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4133 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4134
4838e44c
SM
41352019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4136
4137 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4138 field.
4139 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4140 use.
4141 (arm_record_special_symbol): Don't insert new symbol in sorted
4142 position, push it at the end.
4143
54cc7474
SM
41442019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4145
4146 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4147 (arm_mapping_symbol_s): Remove.
4148 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4149 (arm_mapping_symbol_vec): New typedef.
4150 (struct arm_per_objfile): Add constructor.
4151 <section_maps>: Change type to
4152 std::unique_ptr<arm_mapping_symbol_vec[]>.
4153 (arm_compare_mapping_symbols): Remove.
4154 (arm_find_mapping_symbol): Adjust to section_maps type change.
4155 (arm_objfile_data_free): Call delete on arm_per_objfile.
4156 (arm_record_special_symbol): Adjust to section_maps type change.
4157 Allocate arm_per_objfile with new.
4158
b65b566c
PW
41592019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4160
4161 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4162 with the command prefix.
4163
c2fc64f5
TT
41642019-06-25 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4167 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4168
fb54fa76
TT
41692019-06-25 Tom Tromey <tom@tromey.com>
4170
4171 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4172 type.
4173 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4174 protected.
4175
f7952c57
TT
41762019-06-25 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-winsource.c
4179 (tui_source_window_base::set_is_exec_point_at): Add check against
4180 LOA_ADDRESS.
4181
17568d78
TT
41822019-06-25 Tom Tromey <tom@tromey.com>
4183
4184 * tui/tui-source.c (tui_set_source_content): Don't check before
4185 xfree.
4186 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4187
53e7cdba
TT
41882019-06-25 Tom Tromey <tom@tromey.com>
4189
4190 * tui/tui-winsource.h (tui_update_source_window_as_is)
4191 (tui_alloc_source_buffer, tui_line_is_displayed)
4192 (tui_addr_is_displayed): Change type of win_info.
4193 * tui/tui-winsource.c (tui_update_source_window_as_is)
4194 (tui_clear_source_content, tui_show_source_line)
4195 (tui_show_source_content, tui_source_window_base::refill)
4196 (tui_source_window_base::set_is_exec_point_at)
4197 (tui_source_window_base::set_is_exec_point_at)
4198 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4199 (tui_alloc_source_buffer, tui_line_is_displayed)
4200 (tui_addr_is_displayed): Change type of win_info. Update.
4201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4202 (tui_source_window_base::do_make_visible_with_new_height):
4203 Update.
4204 * tui/tui-source.c (tui_set_source_content)
4205 (tui_set_source_content_nil)
4206 (tui_source_window::do_scroll_vertical): Update.
4207 * tui/tui-layout.c (show_layout): Update.
4208 * tui/tui-disasm.c (tui_set_disassem_content)
4209 (tui_disasm_window::do_scroll_vertical): Update.
4210 * tui/tui-data.h (tui_win_content): Remove.
4211 (struct tui_gen_win_info) <content, content_size>: Remove.
4212 (struct tui_source_element): Add initializers and destructor.
4213 (union tui_which_element, struct tui_win_element): Remove.
4214 (struct tui_source_window_base) <content>: New field.
4215 (struct tui_data_window): Remove destructor.
4216 (tui_alloc_content, tui_free_win_content)
4217 (tui_free_all_source_wins_content): Don't declare.
4218 * tui/tui-data.c (tui_initialize_static_data): Update.
4219 (init_content_element, tui_alloc_content): Remove.
4220 (~tui_gen_win_info): Update.
4221 (~tui_data_window, tui_free_all_source_wins_content)
4222 (tui_free_win_content, free_content, free_content_elements):
4223 Remove.
4224
7908abbf
TT
42252019-06-25 Tom Tromey <tom@tromey.com>
4226
4227 * tui/tui-winsource.h (tui_clear_source_content)
4228 (tui_erase_source_content, tui_show_source_content): Change type
4229 of win_info.
4230 * tui/tui-winsource.c (tui_clear_source_content)
4231 (tui_erase_source_content, tui_show_source_content): Change type
4232 of win_info.
4233 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4234 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4235 win_info.
4236 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4237 win_info.
4238 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4239
02c28df0
TT
42402019-06-25 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-winsource.c (tui_clear_source_content)
4243 (tui_source_window_base::set_is_exec_point_at): Update.
4244 * tui/tui-source.c (tui_set_source_content_nil): Update.
4245 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4246 a bool.
4247 * tui/tui-data.c (init_content_element): Update.
4248
6658b1bf
TT
42492019-06-25 Tom Tromey <tom@tromey.com>
4250
4251 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4252 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4253 * tui/tui-layout.c (init_and_make_win): Update.
4254 * tui/tui.h (enum tui_win_type): Update.
4255 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4256 tui_win_is_auxillary.
4257 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4258 tui_win_is_auxillary.
4259
21e1c91e
TT
42602019-06-25 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4263 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4264 (tui_delete_data_content_windows, tui_display_all_data)
4265 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4266 Update.
4267 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4268 * tui/tui-regs.c (tui_last_regs_line_no)
4269 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4270 (tui_show_registers): Update.
4271 (tui_show_register_group): Return void. Update.
4272 (tui_display_registers_from, tui_display_reg_element_at_line)
4273 (tui_display_registers_from_line, tui_check_register_values):
4274 Update.
4275 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4276 member.
4277 (struct tui_data_window) <regs_content>: Now a std::vector.
4278 <regs_content_count>: Remove.
4279 (tui_add_content_elements, tui_free_data_content): Don't declare.
4280 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4281 (init_content_element): Remove DATA_WIN case. Add assert.
4282 (tui_add_content_elements): Remove.
4283 (tui_data_window): Update.
4284 (tui_free_data_content): Remove.
4285 (free_content_elements): Remove DATA_WIN case.
4286
115ac53b
TT
42872019-06-25 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-data.c (tui_data_item_window): Update.
4290 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4291 * tui/tui-windata.c (tui_display_all_data)
4292 (tui_display_data_from_line): Update.
4293 (tui_check_data_values): Remove.
4294 * tui/tui-regs.c (tui_show_register_group)
4295 (tui_display_reg_element_at_line): Update.
4296 * tui/tui-hooks.c (tui_register_changed)
4297 (tui_refresh_frame_and_register_information): Call
4298 tui_check_register_values.
4299 * tui/tui-data.h (struct tui_data_window) <data_content,
4300 data_content_count, data_type>: Remove.
4301 (enum tui_data_type): Remove.
4302
4303 * tui/tui-data.c (tui_data_window::clear_detail)
4304 (~tui_data_window): Update.
4305
eaf9738b
TT
43062019-06-25 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4309 declare.
4310 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4311 Rename from tui_first_data_item_displayed. Update.
4312 (tui_data_window::refresh_all)
4313 (tui_data_window::do_scroll_vertical): Update.
4314 * tui/tui-data.h (struct tui_data_window)
4315 <first_data_item_displayed>: Declare new method.
4316
31ca4723
TT
43172019-06-25 Tom Tromey <tom@tromey.com>
4318
4319 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4320 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4321 contents...
4322 (tui_initialize_static_data): ...here.
4323
41bcff7f
TT
43242019-06-25 Tom Tromey <tom@tromey.com>
4325
4326 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4327 (tui_display_registers_from, tui_check_register_values): Update.
4328 (tui_display_register): Remove win_info parameter; update.
4329 (tui_get_register): Change type of parameters.
4330 * tui/tui-data.h (struct tui_data_element): Remove.
4331 (union tui_which_element) <data>: Remove.
4332 <data_window>: Change type.
4333 (struct tui_data_item_window): New.
4334 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4335 case. Add assert.
4336 (~tui_data_item_window): New destructor.
4337 (free_content_elements): Remove DATA_ITEM_WIN case.
4338
d2802c33
TT
43392019-06-25 Tom Tromey <tom@tromey.com>
4340
4341 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4342 Remove.
4343
dd835f8b
TT
43442019-06-25 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-data.h (struct tui_command_element): Remove.
4347 (union tui_which_element) <command>: Remove.
4348 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4349 assert.
4350 (free_content_elements): Remove CMD_WIN case.
4351
bd7db367
TT
43522019-06-25 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-layout.c (tui_set_layout): Update.
4355 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4356 * tui/tui-data.c (layout_def): Update.
4357
3add462f
TT
43582019-06-25 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4361 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4362 (tui_source_window_base::set_new_height): Update.
4363 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4364 Update.
4365 (tui_set_locator_fullname, tui_set_locator_info)
4366 (tui_show_frame_info): Update.
4367 * tui/tui-source.c (tui_set_source_content)
4368 (tui_source_is_displayed): Update.
4369 * tui/tui-layout.c (show_source_disasm_command, show_data)
4370 (show_source_or_disasm_and_command): Update.
4371 * tui/tui-disasm.c (tui_set_disassem_content)
4372 (tui_get_begin_asm_address): Update.
4373 * tui/tui-data.h (struct tui_locator_element): Remove.
4374 (union tui_which_element) <locator>: Remove.
4375 (struct tui_locator_window): New.
4376 (tui_locator_win_info_ptr): Change return type.
4377 * tui/tui-data.c (_locator): Change type.
4378 (tui_locator_win_info_ptr): Change return type.
4379 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4380 (tui_alloc_content): Add assert.
4381
489e9d8b
TT
43822019-06-25 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-winsource.c
4385 (tui_exec_info_window::maybe_allocate_content): New method.
4386 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4387 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4388 (make_source_or_disasm_window): Add cast.
4389 * tui/tui-data.h (union tui_which_element) <simple_string>:
4390 Remove.
4391 (struct tui_source_info): New.
4392 (struct tui_source_window_base) <execution_info>: Change type.
4393 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4394 case, and add assert.
4395 (tui_alloc_content): Add assert.
4396
c3fabb7d
TT
43972019-06-25 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4400 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4401 * tui/tui-data.c (tui_alloc_win_info): Remove.
4402
bbc228ee
TT
44032019-06-25 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4406 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4407 can_highlight.
4408
5fcee43a
TT
44092019-06-25 Tom Tromey <tom@tromey.com>
4410
4411 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4412 make_visible_with_new_height method.
4413 (tui_win_info::make_visible_with_new_height): New method.
4414 (tui_source_window_base::do_make_visible_with_new_height)
4415 (tui_data_window::do_make_visible_with_new_height)
4416 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4417 (make_visible_with_new_height): Remove.
4418 (tui_resize_all, tui_adjust_win_heights): Use
4419 make_visible_with_new_height method.
4420 * tui/tui-data.h (struct tui_win_info)
4421 <do_make_visible_with_new_height, make_visible_with_new_height>:
4422 New methods.
4423 (struct tui_source_window_base, struct tui_data_window)
4424 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4425 methods.
4426
d83f1fe6
TT
44272019-06-25 Tom Tromey <tom@tromey.com>
4428
4429 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4430 method.
4431 (update_tab_width): Call update_tab_width method.
4432 * tui/tui-data.h (struct tui_win_info)
4433 (struct tui_source_window_base) <update_tab_width>: New methods.
4434
17374de4
TT
44352019-06-25 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4438 parameter.
4439 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4440 parameter.
4441 (tui_gen_win_info::make_visible): Update.
4442 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4443 parameter.
4444 * tui/tui-data.h (enum tui_box): New enum.
4445 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4446
f936bca2
TT
44472019-06-25 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4450 init_and_make_win for EXEC_INFO_WIN.
4451 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4452 longer inline.
4453 (struct tui_win_info) <~tui_win_info>: Inline.
4454 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4455 Don't declare.
4456 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4457 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4458 Remove.
4459 (tui_initialize_static_data): Update.
4460 (~tui_gen_win_info): Handle more cleanup here.
4461 (~tui_source_window_base): Delete "execution_info".
4462 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4463
d6ba6a11
TT
44642019-06-25 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-layout.c (make_command_window): Don't set
4467 can_highlight.
4468 (show_source_disasm_command): Call the reset method.
4469 (show_data): Don't set can_highlight. Call the reset method.
4470 (tui_gen_win_info::reset): Rename from init_gen_win_info
4471 (init_and_make_win): Simplify. Return tui_gen_win_info.
4472 (show_source_or_disasm_and_command): Call the reset method.
4473 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4474 (struct tui_cmd_window): Set can_highlight.
4475
48a3bd16
TT
44762019-06-25 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4479 from make_visible.
4480 (tui_make_visible, tui_make_invisible): Rewrite.
4481 (tui_win_info::make_visible): Remove.
4482 (tui_source_window_base::make_visible): Update.
4483 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4484 method. Moved from...
4485 (struct tui_win_info) <make_visible>: ...here.
4486
c3bd716f
TT
44872019-06-25 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-winsource.c
4490 (tui_source_window_base::do_scroll_horizontal): Remove direction
4491 parameter.
4492 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4493 direction parameter.
4494 * tui/tui-win.c (tui_win_info::forward_scroll)
4495 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4496 (tui_win_info::right_scroll): Update.
4497 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4498 direction parameter.
4499 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4500 direction parameter.
4501 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4502 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4503 Remove direction parameter.
4504 (struct tui_source_window_base, struct tui_source_window)
4505 (struct tui_disasm_window, struct tui_data_window)
4506 (struct tui_cmd_window): Update.
4507
21c32dca
TT
45082019-06-25 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-winsource.h (tui_set_exec_info_content)
4511 (tui_show_exec_info_content, tui_erase_exec_info_content)
4512 (tui_clear_exec_info_content, tui_update_exec_info): Change
4513 argument to tui_source_window_base.
4514 * tui/tui-winsource.c (tui_set_exec_info_content)
4515 (tui_show_exec_info_content, tui_erase_exec_info_content)
4516 (tui_clear_exec_info_content, tui_update_exec_info): Change
4517 argument to tui_source_window_base.
4518
73fbdc65
TT
45192019-06-25 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4522 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4523
33325343
TT
45242019-06-25 Tom Tromey <tom@tromey.com>
4525
4526 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4527 check.
4528
29d2c474
TT
45292019-06-25 Tom Tromey <tom@tromey.com>
4530
4531 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4532 type to void.
4533 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4534 type to void.
4535 * tui/tui-source.c (tui_set_source_content): Update.
4536 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4537
152f3f4b
TT
45382019-06-25 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-win.c (window_name_completer, tui_set_focus)
4541 (tui_all_windows_info): Use name method.
4542 * tui/tui-data.h (struct tui_gen_win_info)
4543 (struct tui_source_window, struct tui_disasm_window)
4544 (struct tui_data_window, struct tui_cmd_window) <name>: New
4545 method.
4546 (tui_win_name): Don't declare.
4547 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4548 (tui_win_name): Remove.
4549
be4da588
TT
45502019-06-25 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui-winsource.h (tui_update_source_window)
4553 (tui_update_source_window_as_is): Change parameter type.
4554 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4555 to be a tui_source_window_base.
4556 (tui_update_source_window_as_is): Likewise.
4557 * tui/tui-win.c (make_visible_with_new_height): Update.
4558
5b81daba
TT
45592019-06-25 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-winsource.c (tui_erase_source_content)
4562 (tui_show_source_content, tui_show_exec_info_content)
4563 (tui_erase_exec_info_content): Use refresh_window method.
4564 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4565 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4566 from tui_refresh_win.
4567 (tui_data_window::refresh_window): New method.
4568 (tui_win_info::refresh, tui_source_window_base::refresh)
4569 (tui_refresh_all): Use refresh_window method.
4570 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4571 method.
4572 * tui/tui-regs.c (tui_display_register): Call refresh_window
4573 method.
4574 * tui/tui-layout.c (show_source_disasm_command)
4575 (show_source_or_disasm_and_command): Call refresh_window method.
4576 * tui/tui-data.h (struct tui_gen_win_info)
4577 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4578 New method.
4579
cb2ce893
TT
45802019-06-25 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui.c (tui_rl_other_window, tui_enable)
4583 (tui_is_window_visible, tui_get_command_dimension): Update.
4584 * tui/tui-winsource.c (tui_update_source_window_as_is)
4585 (tui_clear_source_content, tui_erase_source_content)
4586 (tui_show_source_line, tui_source_window_base::refill)
4587 (tui_source_window_base::do_scroll_horizontal)
4588 (tui_source_window_base::set_is_exec_point_at)
4589 (tui_update_breakpoint_info, tui_set_exec_info_content)
4590 (tui_alloc_source_buffer, tui_line_is_displayed)
4591 (tui_addr_is_displayed): Update.
4592 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4593 (tui_check_and_display_highlight_if_needed)
4594 (tui_win_info::make_visible, tui_win_info::refresh)
4595 (tui_refresh_all): Update.
4596 * tui/tui-windata.c (tui_first_data_item_displayed)
4597 (tui_delete_data_content_windows, tui_erase_data_content)
4598 (tui_display_all_data, tui_data_window::refresh_all)
4599 (tui_check_data_values): Update.
4600 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4601 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4602 (tui_win_info::backward_scroll, tui_refresh_all_win)
4603 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4604 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4605 (tui_source_window_base::set_new_height)
4606 (tui_data_window::set_new_height)
4607 (make_invisible_and_set_new_height)
4608 (make_visible_with_new_height, new_height_ok)
4609 (parse_scrolling_args): Update.
4610 * tui/tui-stack.c (tui_show_frame_info): Update.
4611 * tui/tui-source.c (tui_set_source_content)
4612 (tui_set_source_content_nil, tui_source_is_displayed)
4613 (tui_source_window::do_scroll_vertical): Update.
4614 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4615 (tui_display_registers_from, tui_display_reg_element_at_line)
4616 (tui_check_register_values, tui_reg_command): Update.
4617 * tui/tui-layout.c (tui_default_win_height)
4618 (show_source_disasm_command, show_data, init_and_make_win)
4619 (show_source_or_disasm_and_command): Update.
4620 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4621 (tui_redisplay_readline, tui_mld_flush)
4622 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4623 (tui_getc): Update.
4624 * tui/tui-disasm.c (tui_set_disassem_content)
4625 (tui_disasm_window::do_scroll_vertical): Update.
4626 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4627 Now virtual.
4628 (struct tui_win_info): Derive from tui_gen_win_info.
4629 <~tui_win_info>: Mark as override.
4630 <generic>: Remove member.
4631 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4632 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4633 (~tui_data_window, ~tui_win_info)
4634 (tui_free_all_source_wins_content): Update.
4635 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4636
ab313b35
TT
46372019-06-25 Tom Tromey <tom@tromey.com>
4638
4639 * tui/tui-layout.c (init_and_make_win): Use new.
4640 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4641 destructor, initializers.
4642 (tui_alloc_generic_win_info): Don't declare.
4643 * tui/tui-data.c (_locator): Add argument to constructor.
4644 (source_win, disasm_win): New globals.
4645 (exec_info): Remove.
4646 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4647 Update.
4648 (tui_alloc_generic_win_info): Remove.
4649 (init_content_element): Use new.
4650 (tui_win_info::tui_win_info): Update.
4651 (free_content_elements) <case DATA_WIN>: Use delete.
4652
dc2c33e4
TT
46532019-06-25 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4656 * tui/tui-windata.c (tui_first_data_item_displayed)
4657 (tui_delete_data_content_windows): Update.
4658 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4659 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4660 (tui_display_registers_from, tui_check_register_values): Update.
4661 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4662 pointer.
4663 * tui/tui-data.c (init_content_element): Update. Allocate the new
4664 window.
4665 (tui_free_data_content): Update.
4666 (free_content_elements) <case DATA_WIN>: Free the window.
4667
214a5cbe
TT
46682019-06-25 Tom Tromey <tom@tromey.com>
4669
4670 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4671 Update.
4672 * tui/tui-layout.c (make_command_window)
4673 (show_source_disasm_command, show_data, init_and_make_win)
4674 (show_source_or_disasm_and_command): Update.
4675 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4676 method.
4677 <can_highight, is_highlighted>: Now bool.
4678 (tui_set_win_highlight): Don't declare.
4679 * tui/tui-data.c (tui_set_win_highlight): Remove.
4680
8e2daf15
TT
46812019-06-25 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-wingeneral.c (make_visible): Remove check of window
4684 type.
4685
8903bd8a
TT
46862019-06-25 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-win.c (tui_win_info::max_height)
4689 (tui_cmd_window::max_height): New methods.
4690 (new_height_ok): Call max_height.
4691 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4692 <max_height>: New method.
4693
3f02ce1e
TT
46942019-06-25 Tom Tromey <tom@tromey.com>
4695
4696 * tui/tui-win.c (tui_source_window_base::set_new_height)
4697 (tui_data_window::set_new_height): New methods.
4698 (make_invisible_and_set_new_height): Call set_new_height method.
4699 * tui/tui-data.h (struct tui_win_info)
4700 (struct tui_source_window_base, struct tui_data_window)
4701 <set_new_height>: New method.
4702
1825f487
TT
47032019-06-25 Tom Tromey <tom@tromey.com>
4704
4705 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4706 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4707 tui_refresh_data_win.
4708 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4709 method.
4710 (tui_refresh_all_win): Call the refresh_all method.
4711 (tui_set_focus): Likewise.
4712 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4713 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4714 Likewise.
4715
ad54d15b
TT
47162019-06-25 Tom Tromey <tom@tromey.com>
4717
4718 * tui/tui-winsource.h (tui_refill_source_window)
4719 (tui_set_is_exec_point_at): Don't declare.
4720 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4721 (tui_source_window_base::refill): Rename from
4722 tui_refill_source_window.
4723 (tui_source_window_base::do_scroll_horizontal): Update.
4724 (tui_source_window_base::set_is_exec_point_at): Rename from
4725 tui_set_is_exec_point_at.
4726 (tui_update_all_breakpoint_info): Update.
4727 * tui/tui-stack.c (tui_show_frame_info): Update.
4728 * tui/tui-layout.c (show_data): Add cast.
4729 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4730 * tui/tui-data.h (struct tui_source_window_base) <refill,
4731 set_is_exec_point_at>: New methods.
4732 (tui_source_windows, tui_add_to_source_windows): Update types.
4733 (tui_add_to_source_windows): Remove redundant declaration.
4734 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4735 (tui_source_windows): Change return type.
4736 (tui_clear_source_windows_detail): Update.
4737 (tui_add_to_source_windows): Change type of parameter.
4738 (tui_free_all_source_wins_content): Update.
4739
2042b506
TT
47402019-06-25 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-wingeneral.c (tui_win_info::refresh)
4743 (tui_source_window_base::refresh): New methods.
4744 (tui_refresh_all): Call the refresh method.
4745 * tui/tui-data.h (struct tui_win_info)
4746 (struct tui_source_window_base) <refresh>: New method.
4747
56122977
TT
47482019-06-25 Tom Tromey <tom@tromey.com>
4749
4750 * tui/tui.h (tui_is_window_visible): Return bool.
4751 * tui/tui.c (tui_is_window_visible): Return bool.
4752 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4753 (tui_make_visible, tui_make_invisible)
4754 (tui_win_info::make_visible)
4755 (tui_source_window_base::make_visible, make_all_visible)
4756 (tui_make_all_visible, tui_make_all_invisible): Update.
4757 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4758 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4759 bool.
4760 (struct tui_win_info, struct tui_source_window_base)
4761 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4762 * tui/tui-data.c (tui_init_generic_part): Update.
4763
cda37efb
TT
47642019-06-25 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4767 (tui_source_window_base::make_visible): New methods.
4768 (make_all_visible): Make method call.
4769 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4770 (struct tui_source_window_base, struct tui_cmd_window): Override
4771 make_visible.
4772 (tui_win_is_source_type): Don't declare.
4773 * tui/tui-data.c (tui_win_is_source_type): Remove.
4774
6a0ee02c
TT
47752019-06-25 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4778 NULL check.
4779
63901aec
TT
47802019-06-25 Tom Tromey <tom@tromey.com>
4781
4782 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4783 Inline constructor. Add initializers for members.
4784 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4785 constructors; now inline in class.
4786
ceb13a13
TT
47872019-06-25 Tom Tromey <tom@tromey.com>
4788
4789 * tui/tui-regs.c (tui_show_registers): Update.
4790 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4791 bool.
4792 * tui/tui-data.c (tui_data_window::clear_detail)
4793 (tui_data_window): Update.
4794
238eb706
TT
47952019-06-25 Tom Tromey <tom@tromey.com>
4796
4797 * tui/tui-windata.c (tui_display_all_data)
4798 (tui_display_data_from_line, tui_display_data_from)
4799 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4800 Update.
4801 * tui/tui-regs.c (tui_last_regs_line_no)
4802 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4803 (tui_show_registers, tui_show_register_group)
4804 (tui_display_registers_from, tui_display_reg_element_at_line)
4805 (tui_display_registers_from_line, tui_check_register_values)
4806 (tui_reg_next, tui_reg_prev): Update.
4807 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4808 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4809 tui_data_window.
4810 (struct tui_win_info) <detail>: Remove. Add new fields from
4811 tui_data_info.
4812 (TUI_DATA_WIN): Add cast.
4813 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4814 (~tui_data_window): Simplify.
4815
81491aa0
TT
48162019-06-25 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-layout.c (show_source_disasm_command)
4819 (show_source_or_disasm_and_command): Update.
4820 * tui/tui-io.c (update_cmdwin_start_line)
4821 (tui_redisplay_readline): Update.
4822 * tui/tui-data.h (struct tui_command_info): Remove.
4823 (struct tui_win_info) <detail>: Remove command_info member.
4824 (struct tui_data_window) <start_line>: New member, from
4825 tui_command_info.
4826 (TUI_CMD_WIN): Add casts.
4827
e6e41501
TT
48282019-06-25 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-winsource.c (tui_update_source_window)
4831 (tui_refill_source_window)
4832 (tui_source_window_base::do_scroll_horizontal)
4833 (tui_update_breakpoint_info, tui_set_exec_info_content)
4834 (tui_show_exec_info_content, tui_erase_exec_info_content)
4835 (tui_clear_exec_info_content): Update.
4836 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4837 Update.
4838 * tui/tui-win.c (make_invisible_and_set_new_height)
4839 (make_visible_with_new_height): Update.
4840 * tui/tui-source.c (tui_set_source_content)
4841 (tui_show_symtab_source): Update.
4842 * tui/tui-layout.c (extract_display_start_addr)
4843 (show_source_disasm_command, show_data)
4844 (make_source_or_disasm_window)
4845 (show_source_or_disasm_and_command): Update.
4846 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4847 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4848 "gdbarch".
4849 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4850 to tui_source_window_base.
4851 (struct tui_win_info) <detail>: Remove source_info member.
4852 (struct tui_source_window_base) <has_locator>: Inline.
4853 Move contents from tui_source_info; rename has_locator member to
4854 m_has_locator.
4855 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4856 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4857 header file.
4858 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4859 Simplify.
4860 (tui_free_all_source_wins_content): Cast to
4861 tui_source_window_base.
4862
44f0e208
TT
48632019-06-25 Tom Tromey <tom@tromey.com>
4864
4865 * tui/tui-win.c (make_invisible_and_set_new_height)
4866 (make_visible_with_new_height): Call has_locator method.
4867 * tui/tui-layout.c (show_source_disasm_command, show_data)
4868 (show_source_or_disasm_and_command): Update for bool change.
4869 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4870 (tui_win_info) <has_locator>: New method.
4871 (struct tui_source_window_base) <has_locator>: New method.
4872 (tui_win_has_locator): Don't declare.
4873 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4874 from tui_win_has_locator.
4875 (tui_source_window_base): Use false, not FALSE.
4876
7778b912
TT
48772019-06-25 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4880 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4881 clear_detail method directly.
4882 (tui_clear_win_detail): Remove.
4883
f83d391c
TT
48842019-06-25 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4887 "this", not TUI_DISASM_WIN.
4888
13446e05
TT
48892019-06-25 Tom Tromey <tom@tromey.com>
4890
4891 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4892 declare.
4893 * tui/tui-winsource.c
4894 (tui_source_window_base::do_scroll_horizontal): Rename from
4895 tui_horizontal_source_scroll.
4896 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4897 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4898 from tui_vertical_data_scroll.
4899 * tui/tui-win.h (tui_scroll): Don't declare.
4900 * tui/tui-win.c (tui_win_info::forward_scroll)
4901 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4902 (tui_win_info::right_scroll): Rename and update.
4903 (tui_scroll_forward_command, tui_scroll_backward_command)
4904 (tui_scroll_left_command, tui_scroll_right_command): Update.
4905 (tui_scroll): Remove.
4906 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4907 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4908 from tui_vertical_source_scroll.
4909 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4910 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4911 from tui_vertical_disassem_scroll.
4912 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4913 do_scroll_horizontal>: New methods.
4914 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4915 Likewise.
4916 (struct tui_source_window_base): Add do_scroll_horizontal.
4917 (struct tui_source_window, struct tui_disasm_window): Add
4918 do_scroll_vertical.
4919 (struct tui_data_window, struct tui_cmd_window): Add
4920 do_scroll_horizontal and do_scroll_vertical.
4921 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4922
5cf82909
TT
49232019-06-25 Tom Tromey <tom@tromey.com>
4924
4925 * tui/tui-data.h (struct tui_source_window_base): New struct.
4926 (struct tui_source_window): Derive from tui_source_window_base.
4927 (struct tui_disasm_window): New struct.
4928 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4929 from tui_source_window::clear_detail.
4930 (tui_source_window_base): Rename from tui_source_window.
4931 (~tui_source_window_base): Rename from ~tui_source_window.
4932 (tui_alloc_win_info): Create a tui_disasm_window.
4933
ee1d42d6
TT
49342019-06-25 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-data.h (struct tui_source_window)
4937 (struct tui_data_window): Declare destructors.
4938 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4939 destructors.
4940 (tui_win_info): Simplify.
4941
b4eb2452
TT
49422019-06-25 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-winsource.c (tui_display_main)
4945 (tui_update_source_windows_with_addr)
4946 (tui_update_all_breakpoint_info): Update.
4947 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4948 (new_height_ok, parse_scrolling_args): Update.
4949 * tui/tui-stack.c (tui_show_frame_info): Update.
4950 * tui/tui-data.h (struct tui_list): Remove.
4951 (tui_source_windows): Return a reference to a std::vector.
4952 * tui/tui-data.c (source_windows): Now a std::vector.
4953 (tui_source_windows): Change return type.
4954 (tui_clear_source_windows): Rewrite.
4955 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4956 (tui_free_all_source_wins_content): Rewrite.
4957
8761a91b
TT
49582019-06-25 Tom Tromey <tom@tromey.com>
4959
4960 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4961 (struct tui_data_window, struct tui_cmd_window): Declare
4962 clear_detail method.
4963 * tui/tui-data.c (tui_source_window::clear_detail)
4964 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4965 methods.
4966 (tui_clear_win_detail): Simplify.
4967
0ed69eda
TT
49682019-06-25 Tom Tromey <tom@tromey.com>
4969
4970 * tui/tui-layout.c (make_source_window, make_disasm_window)
4971 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4972 Return the new window.
4973 (show_source_disasm_command, show_data)
4974 (show_source_or_disasm_and_command): Update.
4975
82432e10
TT
49762019-06-25 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4979 parameter. Return the new window.
4980 (show_source_disasm_command): Update and remove NULL check.
4981 (show_source_or_disasm_and_command): Update.
4982
ec328aa5
TT
49832019-06-25 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4986
33b906ab
TT
49872019-06-25 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-data.h (struct tui_win_info): Make constructor
4990 protected. Make destructor virtual. Add initializers.
4991 (tui_source_window, tui_data_window, tui_cmd_window): New
4992 classes.
4993 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4994 constructor. Add "type" parameter.
4995 (tui_source_window, tui_data_window, tui_cmd_window): New
4996 constructors.
4997 (tui_alloc_win_info): Instantiate the appropriate subclass.
4998
e7e11af4
TT
49992019-06-25 Tom Tromey <tom@tromey.com>
5000
5001 * tui/tui-win.c (tui_resize_all): Use delete.
5002 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5003 destructor.
5004 (tui_free_window): Don't declare.
5005 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5006 Update.
5007
6792b55e
TT
50082019-06-25 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-data.h (struct tui_win_info): Add constructor.
5011 * tui/tui-data.c (tui_alloc_win_info): Use new.
5012 (tui_free_window): Use delete.
5013
f95675e1
TT
50142019-06-22 Tom Tromey <tom@tromey.com>
5015
5016 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5017 declare.
5018 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5019
5bff081c
TT
50202019-06-22 Tom Tromey <tom@tromey.com>
5021
5022 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5023 declare.
5024 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5025
47e3f474
TV
50262019-06-22 Tom de Vries <tdevries@suse.de>
5027
5028 * dwarf2read.c (create_addrmap_from_aranges)
5029 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5030 instead of '%zu'.
5031
fd5866f6
SM
50322019-06-21 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * dwarf2read.h (dwarf2_section_info_def): Remove.
5035 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5036 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5037 std::vector<dwarf2_section_info>.
5038 (struct dwo_file) <~dwo_file>: Remove.
5039 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5040 types field.
5041 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5042 (dwarf2_read_debug_names): Likewise.
5043 (create_debug_types_hash_table): Change parameter type to
5044 array_view, adjust code accordingly.
5045 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5046 (partial_die_info::fixup): Likewise.
5047 (determine_prefix): Likewise.
5048 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5049
fb1eb2f9
SM
50502019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5051
5052 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5053 gdb_bfd_ref_ptr.
5054 <~dwo_file>: Remove call to gdb_bfd_unref.
5055 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5056 gdb_bfd_ref_ptr::get.
5057
51ac9db5
SM
50582019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5059
5060 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5061 type to htab_up.
5062 * dwarf2read.c (struct dwo_file): Initialize fields.
5063 <~dwo_file>: New.
5064 (free_dwo_file): Remove, move content to ~dwo_file.
5065 (struct dwo_file_deleter): Remove.
5066 (dwo_file_up>: Remove custom deleter.
5067 (free_dwo_files): Remove.
5068 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5069 dwo_files.
5070 (process_skeletonless_type_units): Call unique_ptr::get.
5071 (allocate_dwo_file_hash_table): Add deleter to created hash
5072 table. Change return type to htab_up.
5073 (lookup_dwo_file_slot): Don't memset dwo_file, call
5074 unique_ptr::get.
5075 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5076 (create_dwo_unit_in_dwp_v2): Likewise.
5077 (open_and_init_dwo_file): Likewise.
5078 (free_dwo_file_from_slot): Remove.
5079
dc4ccb6f
SM
50802019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5081
5082 * dwarf2read.h (struct dwarf2_section_info) <readin,
5083 is_virtual>: Change type to bool.
5084 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5085 true instead of 1.
5086
e6a1c5cb
TT
50872019-06-19 Tom Tromey <tom@tromey.com>
5088
5089 * tui/tui-data.h (tui_init_content_element): Don't declare.
5090
6f6ffbeb
TT
50912019-06-19 Tom Tromey <tom@tromey.com>
5092
5093 * tui/tui-data.h (tui_init_win_info): Don't declare.
5094
f23f598e
TV
50952019-06-19 Tom de Vries <tdevries@suse.de>
5096
5097 * dwarf2read.h (abstract_to_concrete): Change type to
5098 std::unordered_map<sect_offset, std::vector<sect_offset>,
5099 gdb::hash_enum<sect_offset>>.
5100
680e1bee
TT
51012019-06-19 Tom Tromey <tromey@adacore.com>
5102
5103 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5104 EVAL_AVOID_SIDE_EFFECTS specially.
5105
dcf37923
TT
51062019-06-19 Tom Tromey <tromey@adacore.com>
5107
5108 * source-cache.c (highlighter): New global.
5109 (source_cache::get_source_lines): Create a highlighter on demand.
5110
494986d5
AB
51112019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5112
5113 * defs.h (deprecated_interactive_hook): Delete declaration.
5114 * interps.c (clear_interpreter_hooks): Remove use of
5115 deprecated_interactive_hook.
5116 * top.c (deprecated_interactive_hook): Delete definition.
5117 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5118
3360b6e7
TV
51192019-06-18 Tom de Vries <tdevries@suse.de>
5120
5121 PR gdb/24515
5122 * dwarf2read.h (abstract_to_concrete): Change type from
5123 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5124 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5125 * dwarf2read.c (read_variable): Update.
5126 (dwarf2_fetch_die_loc_sect_off): Update.
5127
310b3441
TV
51282019-06-17 Tom de Vries <tdevries@suse.de>
5129
5130 PR gdb/24617
5131 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5132 accessing parent[parent_len - 1].
5133
ba9777be
PP
51342019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5135
5136 PR gdb/24364
5137 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5138 call dtrace_process_dof with NULL dof.
5139
2b9f6e89
TV
51402019-06-16 Tom de Vries <tdevries@suse.de>
5141
5142 PR gdb/24445
5143 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5144
431b3ead
TT
51452019-06-16 Tom Tromey <tom@tromey.com>
5146
5147 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5148 (make_all_visible): Use address of member.
5149
d04b44a1
TT
51502019-06-16 Tom Tromey <tom@tromey.com>
5151
5152 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5153 (tui_free_window, free_content, free_content_elements): Remove
5154 unnecessary cast.
5155 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5156 cast.
5157 * tui/tui-regs.c (tui_show_register_group)
5158 (tui_display_registers_from, tui_display_reg_element_at_line):
5159 Remove unnecessary cast.
5160
bf5142e7
AB
51612019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5162
5163 * linux-nat.c (normal_mask): Delete.
5164 (_initialize_linux_nat): Don't initialise normal_mask.
5165
c4973306
SM
51662019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5167
5168 PR gdb/24445
5169 * dwarf-index-write.h (write_psymtabs_to_index): Add
5170 dwz_basename parameter.
5171 * dwarf-index-write.c (write_gdbindex): Move file writing to
5172 write_gdbindex_1. Change return type void.
5173 (assert_file_size): Move up, remove filename parameter.
5174 (write_gdbindex_1): New function.
5175 (write_debug_names): Change return type to void, call
5176 assert_file_size.
5177 (struct index_wip_file): New struct.
5178 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5179 file logic to index_wip_file. Write index for dwz file if
5180 needed.
5181 (save_gdb_index_command): Pass basename of dwz file, if present.
5182 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5183 build-id of dwz file, if present.
5184 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5185 (dwarf2_get_dwz_file): Likewise.
5186 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5187 (dwarf2_get_dwz_file): Likewise.
5188
395f9c91
TT
51892019-06-16 Tom Tromey <tom@tromey.com>
5190
5191 * coffread.c (process_coff_symbol): Use xstrdup.
5192 * value.c (create_internalvar): Use xstrdup.
5193
cafb3438
TT
51942019-06-16 Tom Tromey <tom@tromey.com>
5195
5196 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5197 * breakpoint.c (stopin_command, stopat_command)
5198 (until_break_command, decode_location_default): Remove unnecessary
5199 cast.
5200 * utils.c (subset_compare): Remove unnecessary cast.
5201 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5202 cast.
5203 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5204 cast.
5205 * infcmd.c (path_command): Remove unnecessary cast.
5206 * coffread.c (decode_type): Remove unnecessary cast.
5207 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5208 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5209 * tui/tui-stack.c (tui_show_locator_content)
5210 (tui_show_frame_info): Remove unnecessary cast.
5211 * tui/tui-win.c (tui_scroll_forward_command)
5212 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5213 (parse_scrolling_args): Remove unnecessary cast.
5214 * tui/tui-data.c (init_win_info, tui_del_window)
5215 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5216 (free_content_elements): Remove unnecessary cast.
5217 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5218 unnecessary cast.
5219 * tui/tui-source.c (tui_set_source_content)
5220 (tui_vertical_source_scroll): Remove unnecessary cast.
5221 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5222 cast.
5223 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5224 * tui/tui-regs.c (tui_display_registers_from)
5225 (tui_display_register): Remove unnecessary cast.
5226 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5227 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5228 (make_visible): Remove unnecessary cast.
5229 * tui/tui-winsource.c (tui_erase_source_content)
5230 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5231 unnecessary cast.
5232 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5233 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5234 * stabsread.c (read_type, read_array_type, read_range_type):
5235 Remove unnecessary cast.
5236 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5237 (parse_symbol, parse_type, upgrade_type, parse_external)
5238 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5239 unnecessary cast.
5240 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5241
730ead81
TT
52422019-06-16 Tom Tromey <tom@tromey.com>
5243
5244 * tui/tui-data.c (tui_alloc_generic_win_info)
5245 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5246 checks.
5247
584a927c
AB
52482019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5249 Andrew Burgess <andrew.burgess@embecosm.com>
5250
5251 * f-typeprint.c (f_print_type): Don't return early for not
5252 associated or not allocated types.
5253 (f_type_print_varspec_suffix): Add print_rank parameter and print
5254 ranks of array types in case they dangling.
5255 (f_type_print_base): Add print_rank parameter.
5256
30056ea0
AB
52572019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5258
5259 * NEWS: Mention new MI commands.
5260 * break-catch-throw.c (enum exception_event_kind): Move to
5261 breakpoint.h.
5262 (print_mention_exception_catchpoint): Output text as a single
5263 message.
5264 (catch_exception_command_1): Rename to...
5265 (catch_exception_event): ...this, make non-static, update header
5266 command, and change some parameter types.
5267 (catch_catch_command): Update for changes to
5268 catch_exception_command_1.
5269 (catch_throw_command): Likewise.
5270 (catch_rethrow_command): Likewise.
5271 * breakpoint.c (enum exception_event_kind): Delete.
5272 * breakpoint.h (enum exception_event_kind): Moved here from
5273 break-catch-throw.c.
5274 (catch_exception_event): Declare.
5275 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5276 (mi_cmd_catch_throw): New function.
5277 (mi_cmd_catch_rethrow): New function.
5278 (mi_cmd_catch_catch): New function.
5279 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5280 'catch-catch' entries.
5281 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5282 (mi_cmd_catch_rethrow): Declare.
5283 (mi_cmd_catch_catch): Declare.
5284
ec8e2b6d
AB
52852019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * annotate.c (annotate_source_line): Change return type to void,
5288 update implementation to match.
5289 * annotate.h (annotate_source_line): Change return type to void,
5290 update header comment.
5291 * stack.c (print_frame_info): Don't change what frame information
5292 is printed based on whether annotations are on or not.
5293
0d3abd8c
AB
52942019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5295
5296 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5297 (annotate_source): Make static.
5298 (annotate_source_line): Moved from source.c and renamed from
5299 identify_source_line. Update the return type.
5300 * annotate.h (annotate_source): Delete declaration.
5301 (annotate_source_line): Declaration moved from source.h, and
5302 renamed from identify_source_line. Return type updated.
5303 * source.c (identify_source_line): Moved to annotate.c and renamed
5304 to annotate_source_line.
5305 (info_line_command): Remove check of annotation_level.
5306 * source.h (identify_source_line): Move declaration to annotate.h
5307 and rename to annotate_source_line.
5308 * stack.c: Add 'annotate.h' include.
5309 (print_frame_info): Remove check of annotation_level before
5310 calling annotate_source_line.
5311
00df30ae
AB
53122019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5313
5314 * source-cache.c (source_cache::get_plain_source_lines): Use
5315 open_source_file_with_line_charpos instead of just
5316 open_source_file, remove call to find_source_lines.
5317 (source_cache::get_source_lines): Likewise.
5318 * source.c (find_source_lines): Make static.
5319 (get_filename_and_charpos): Renamed into...
5320 (open_source_file_with_line_charpos): ..this along with changes to
5321 return a scoped_fd, and some other minor clean ups.
5322 (identify_source_line): Use open_source_file_with_line_charpos.
5323 (search_command_helper): Use open_source_file_with_line_charpos
5324 instead of just open_source_file, remove call to
5325 find_source_lines.
5326 * source.h (open_source_file_with_line_charpos): Declare new
5327 function.
5328 (find_source_lines): Delete declaration.
5329
afda45a2
AB
53302019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * source.c (get_filename_and_charpos): Remove fullname
5333 parameter.
5334 (identify_source_line): Update call to get_filename_and_charpos.
5335
0735b091
TT
53362019-06-14 Tom Tromey <tromey@adacore.com>
5337
5338 PR gdb/24502:
5339 * ui-style.h (skip_ansi_escape): Update comment.
5340 * ui-file.h (class no_terminal_escape_file): New class.
5341 * ui-file.c (no_terminal_escape_file::write)
5342 (no_terminal_escape_file::puts): New methods.
5343 * cli/cli-logging.c (handle_redirections): Use
5344 no_terminal_escape_file.
5345
52ce35e2
TT
53462019-06-14 Tom Tromey <tromey@adacore.com>
5347
5348 * NEWS: Move convenience variable news above Python news.
5349
73cc7272
TT
53502019-06-14 Tom Tromey <tom@tromey.com>
5351
5352 * gnulib: Move directory to top-level.
5353 * configure.ac: Don't configure gnulib.
5354 * configure: Rebuild.
5355 * common/common-defs.h: Use new path to gnulib.
5356 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5357 (GNULIB_H): Remove.
5358 (INCGNU): Look in new gnulib location.
5359 (HFILES_NO_SRCDIR): Remove gnulib files.
5360 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5361 (generated_files): Remove GNULIB_H.
5362 ($(LIBGNU), all-lib): Remove targets.
5363 (distclean): Don't mention GNULIB_BUILDDIR.
5364 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5365
f5686554
TT
53662019-06-14 Tom Tromey <tromey@adacore.com>
5367
5368 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5369 Warn if symbol file does not provide any symbols.
5370
a0c1ffed
TT
53712019-06-14 Tom Tromey <tromey@adacore.com>
5372
5373 * source.c (find_and_open_source): Respect basenames_may_differ.
5374
7c39e397
AB
53752019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * annotate.c (annotate_breakpoints_invalid): Make use of
5378 scoped_restore_terminal_state.
5379 (annotate_frames_invalid): Likewise.
5380
f411722c
TT
53812019-06-14 Tom Tromey <tromey@adacore.com>
5382
5383 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5384 allow assignment to an internalvar.
5385
4268ec18
TT
53862019-06-14 Tom Tromey <tromey@adacore.com>
5387
5388 * ada-lex.l: Allow "_" in attribute names.
5389
abdb711e
TT
53902019-06-14 Tom Tromey <tromey@adacore.com>
5391
5392 PR gdb/24653:
5393 * regcache.c (registers_changed): Don't call alloca.
5394 * top.c (execute_command): Don't call alloca.
5395
4c048731
PA
53962019-06-13 Pedro Alves <palves@redhat.com>
5397
5398 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5399 'expression'. When parsing an expression, error out if there's
5400 junk after "unlimited".
5401 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5402 (do_set_command): Adjust calls to is_unlimited_literal.
5403
66eb1ed3
PA
54042019-06-13 Pedro Alves <palves@redhat.com>
5405
5406 * compile/compile.c (make_compile_options_def_group): Add braces
5407 around array_view initializer.
5408 * thread.c (make_thread_apply_all_options_def_group)
5409 (make_thread_apply_all_options_def_group): Likewise.
5410
3345721a
PA
54112019-06-13 Pedro Alves <palves@redhat.com>
5412
5413 * NEWS (New commands): Mention "maint test-options
5414 require-delimiter", "maint test-options unknown-is-error", "maint
5415 test-options unknown-is-operand" and "maint show
5416 test-options-completion-result".
5417 (New command options, command completion): New section.
5418 (Completion improvements): New section.
5419 Mention that you can abbreviate "unlimited".
5420
6206060d
PA
54212019-06-13 Pedro Alves <palves@redhat.com>
5422
5423 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5424 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5425 * unittests/cli-utils-selftests.c (test_parse_flags)
5426 (test_parse_flags_qcs): Delete.
5427 (test_cli_utils): Don't call deleted functions.
5428
6665660a
PA
54292019-06-13 Pedro Alves <palves@redhat.com>
5430
5431 * thread.c: Include "cli/cli-option.h".
5432 (tp_array_compar_ascending): Global.
5433 (tp_array_compar): Delete function.
5434 (tp_array_compar_ascending, tp_array_compar_descending): New
5435 functions.
5436 (ascending_option_def, qcs_flag_option_def)
5437 (thr_qcs_flags_option_defs)
5438 (make_thread_apply_all_options_def_group)
5439 (make_thread_apply_options_def_group): New.
5440 (thread_apply_all_command): Use gdb::option::process_options.
5441 (thread_apply_command_completer)
5442 (thread_apply_all_command_completer): New.
5443 (thread_apply_command): Use gdb::option::process_options.
5444 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5445 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5446 to generate help text of "thread apply". Adjust "taas"'s help.
5447 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5448 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5449
f7e13587
PA
54502019-06-13 Pedro Alves <palves@redhat.com>
5451
5452 * thread.c (thread_apply_command): Check for invalid TID with
5453 isdigit instead of !isalpha.
5454
5d707134
PA
54552019-06-13 Pedro Alves <palves@redhat.com>
5456
5457 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5458 (validate_flags_qcs): New.
5459 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5460 (validate_flags_qcs): Declare.
5461 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5462 (make_frame_apply_options_def_group): New.
5463 (frame_apply_command_count): Process options with
5464 gdb::option::process_options.
5465 (frame_apply_completer): New.
5466 (frame_apply_level_completer, frame_apply_all_completer)
5467 (frame_apply_completer): New.
5468 (_initialize_stack): Update help of "frame apply", "frame apply
5469 level", "frame apply all" and "faas" to mention supported options
5470 and install command completers.
5471 * stack.h (frame_apply_all_completer): Declare.
5472 * thread.c: Include "stack.h".
5473 (tfaas_command): Add "--".
5474 (_initialize_thread): Update help "tfaas" to mention supported
5475 options and install command completer.
5476
272d4594
PA
54772019-06-13 Pedro Alves <palves@redhat.com>
5478
5479 * completer.c (complete_nested_command_line): New.
5480 (gdb_completion_word_break_characters_throw): Add assertion.
5481 * completer.h (complete_nested_command_line): Declare.
5482
90a1ef87
PA
54832019-06-13 Pedro Alves <palves@redhat.com>
5484
5485 * stack.c (parse_backtrace_qualifiers): New.
5486 (backtrace_command): Use it.
5487 (backtrace_command_completer): Complete on qualifiers.
5488
d4c16835
PA
54892019-06-13 Pedro Alves <palves@redhat.com>
5490
5491 * frame.c: Include "cli/cli-option.h.
5492 (user_set_backtrace_options): New.
5493 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5494 Delete.
5495 (get_prev_frame): Adjust.
5496 (boolean_option_def, uinteger_option_def)
5497 (set_backtrace_option_defs): New.
5498 (_initialize_frame): Adjust and use
5499 gdb::option::add_setshow_cmds_for_options to install "set
5500 backtrace past-main" and "set backtrace past-entry".
5501 * frame.h: Include "cli/cli-option.h".
5502 (struct frame_print_options): Forward declare.
5503 (print_frame_arguments_all, print_frame_arguments_scalars)
5504 (print_frame_arguments_none): Declare.
5505 (print_entry_values): Delete declaration.
5506 (struct frame_print_options, user_frame_print_options): New.
5507 (struct set_backtrace_options): New.
5508 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5509 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5510 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5511 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5512 (list_args_or_locals): Add frame_print_options parameter.
5513 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5514 * python/py-framefilter.c (enumerate_args): Pass down
5515 USER_FRAME_PRINT_OPTIONS.
5516 * stack.c: Include "cli/cli-option.h".
5517 (print_frame_arguments_all, print_frame_arguments_scalars)
5518 (print_frame_arguments_none): Declare.
5519 (print_raw_frame_arguments, print_entry_values): Delete.
5520 (user_frame_print_options): New.
5521 (boolean_option_def, enum_option_def, frame_print_option_defs):
5522 New.
5523 (struct backtrace_cmd_options): New.
5524 (bt_flag_option_def): New.
5525 (backtrace_command_option_defs): New.
5526 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5527 (print_frame_arg, read_frame_arg, print_frame_args)
5528 (print_frame_info, print_frame): Add frame_print_options parameter
5529 and use it.
5530 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5531 (backtrace_command_1): Add frame_print_options and
5532 backtrace_cmd_options parameters and use them.
5533 (make_backtrace_options_def_group): New.
5534 (backtrace_command): Process command options with
5535 gdb::option::process_options.
5536 (backtrace_command_completer): New.
5537 (_initialize_stack): Extend "backtrace"'s help to mention
5538 supported options. Install completer for "backtrace".
5539 Install some settings commands with add_setshow_cmds_for_options.
5540
2daf894e
PA
55412019-06-13 Pedro Alves <palves@redhat.com>
5542
5543 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5544 and that "set/show print raw frame-arguments" are now deprecated.
5545
5546 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5547 command.
5548 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5549 * stack.c (_initialize_stack): Install "set/show print
5550 raw-frame-arguments", and deprecate "set/show print raw
5551 frame-arguments".
5552 * valprint.c (_initialize_valprint): Deprecate "set/show print
5553 raw".
5554
e6ed716c
PA
55552019-06-13 Pedro Alves <palves@redhat.com>
5556
5557 * compile/compile.c (struct compile_options): New.
5558 (compile_flag_option_def, compile_command_option_defs)
5559 (make_compile_options_def_group): New.
5560 (compile_file_command): Handle options with
5561 gdb::option::process_options.
5562 (compile_file_command_completer): New function.
5563 (compile_code_command): Handle options with
5564 gdb::option::process_options.
5565 (compile_code_command_completer): New function.
5566 (_initialize_compiler): Install completers for "compile code" and
5567 "compile file". Mention available options in "compile code" and
5568 "compile code"'s help.
5569 * completer.c (advance_to_completion_word): New, factored out from
5570 ...
5571 (advance_to_expression_complete_word_point): ... this.
5572 (advance_to_filename_complete_word_point): New.
5573 * completer.h (advance_to_filename_complete_word_point): New
5574 declaration.
5575
7d8062de
PA
55762019-06-13 Pedro Alves <palves@redhat.com>
5577
5578 * compile/compile.c: Include "cli/cli-option.h".
5579 (compile_print_value): Scope data pointer is now a
5580 value_print_options pointer; adjust.
5581 (compile_print_command): Process options. Scope data pointer is
5582 now a value_print_options pointer; adjust.
5583 (_initialize_compile): Update "compile print"'s help to include
5584 supported options. Install a completer for "compile print".
5585 * cp-valprint.c (show_vtblprint, show_objectprint)
5586 (show_static_field_print): Delete.
5587 (_initialize_cp_valprint): Don't install "set print
5588 static-members", "set print vtbl", "set print object" here.
5589 * printcmd.c: Include "cli/cli-option.h" and
5590 "common/gdb_optional.h".
5591 (print_command_parse_format): Rework to fill in a
5592 value_print_options instead of a format_data.
5593 (print_value): Change parameter type from format_data pointer to
5594 value_print_options reference. Adjust.
5595 (print_command_1): Process options. Adjust to pass down a
5596 value_print_options.
5597 (print_command_completer): New.
5598 (_initialize_printcmd): Install print_command_completer as
5599 handle_brkchars completer for the "print" command. Update
5600 "print"'s help to include supported options.
5601 * valprint.c: Include "cli/cli-option.h".
5602 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5603 here from cp-valprint.c.
5604 (boolean_option_def, uinteger_option_def)
5605 (value_print_option_defs, make_value_print_options_def_group):
5606 New. Use gdb::option::add_setshow_cmds_for_options to install
5607 "set print elements", "set print null-stop", "set print repeats",
5608 "set print pretty", "set print union", "set print array", "set
5609 print address", "set print symbol", "set print array-indexes".
5610 * valprint.h: Include <string> and "cli/cli-option.h".
5611 (make_value_print_options_def_group): Declare.
5612 (print_value): Change parameter type from format_data pointer to
5613 value_print_options reference.
5614 (print_command_completer): Declare.
5615
9d0faba9
PA
56162019-06-13 Pedro Alves <palves@redhat.com>
5617
5618 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5619 (COMMON_SFILES): Add maint-test-settings.c.
5620 * cli/cli-decode.c (boolean_enums): New global, factored out from
5621 ...
5622 (add_setshow_boolean_cmd): ... here.
5623 * cli/cli-decode.h (boolean_enums): Declare.
5624 * cli/cli-option.c: New file.
5625 * cli/cli-option.h: New file.
5626 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5627 factored out from ...
5628 (parse_cli_boolean_value(const char *)): ... this.
5629 (is_unlimited_literal): Change parameter type to pointer to
5630 pointer. Adjust and advance ARG pointer.
5631 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5632 (parse_cli_var_enum): New, factored out from ...
5633 (do_set_command): ... this. Adjust.
5634 * cli/cli-setshow.h (parse_cli_boolean_value)
5635 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5636 (parse_cli_var_enum): Declare.
5637 * cli/cli-utils.c: Include "cli/cli-option.h".
5638 (get_ulongest): New.
5639 * cli/cli-utils.h (get_ulongest): Declare.
5640 (check_for_argument): New overloads.
5641 * maint-test-options.c: New file.
5642
2c722807
PA
56432019-06-13 Pedro Alves <palves@redhat.com>
5644
5645 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5646 parse a range if "-" is at the end of the string.
5647
dee7b4c8
PA
56482019-06-13 Pedro Alves <palves@redhat.com>
5649
5650 * cli/cli-setshow.c (parse_auto_binary_operation)
5651 (parse_cli_boolean_value): Don't allow "o".
5652
dca0f6c0
PA
56532019-06-13 Pedro Alves <palves@redhat.com>
5654
5655 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5656 * NEWS: Mention maint test-settings KIND.
5657 * maint-test-settings.c: New file.
5658
597bf39d
PA
56592019-06-13 Pedro Alves <palves@redhat.com>
5660
5661 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5662 completer.
5663 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5664 "set" completers.
5665
48c410fb
PA
56662019-06-13 Pedro Alves <palves@redhat.com>
5667
5668 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5669 after item.
5670
93bcb043
PA
56712019-06-13 Pedro Alves <palves@redhat.com>
5672
5673 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5674
cbba3ecd
PA
56752019-06-13 Pedro Alves <palves@redhat.com>
5676
5677 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5678 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5679 call.
5680 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5681 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5682 calls.
5683 (check_for_argument): Skip spaces after argument.
5684
b9a3f842
PA
56852019-06-13 Pedro Alves <palves@redhat.com>
5686
5687 * thread.c (thread_apply_command): Adjust TID parsing.
5688 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5689 detected before end of string.
5690 (tid_is_in_list): Error out if LIST is invalid.
5691
3844e605
PA
56922019-06-13 Pedro Alves <palves@redhat.com>
5693
5694 * completer.c (complete_line_internal_1): Rewind completion word
5695 point.
5696 (completion_tracker::advance_custom_word_point_by): Change
5697 parameter type to int.
5698 * completer.h (completion_tracker::advance_custom_word_point_by):
5699 Likewise.
5700
00b56dbe
PA
57012019-06-13 Pedro Alves <palves@redhat.com>
5702
5703 * completer.c (advance_to_completion_word): Handle delimiters.
5704
d106773e
PA
57052019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5706
5707 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5708
08f10e02
TT
57092019-06-11 Tom Tromey <tom@tromey.com>
5710
5711 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5712 (xmalloc_failed): Move to alloc.c.
5713 * alloc.c: New file.
5714 * Makefile.in (COMMON_SFILES): Add alloc.c.
5715
1c7fe951
TT
57162019-06-11 Tom Tromey <tom@tromey.com>
5717
5718 * nat/linux-waitpid.c: Don't include server.h.
5719 (linux_debug): Remove.
5720 (my_waitpid): Update.
5721
89549d7f
TT
57222019-06-11 Tom Tromey <tromey@adacore.com>
5723
5724 * infcall.c (_initialize_infcall): Remove trailing newline from
5725 help.
5726 * user-regs.c (_initialize_user_regs): Remove trailing newline
5727 from help.
5728 * typeprint.c (_initialize_typeprint): Remove trailing newline
5729 from help.
5730 * reverse.c (_initialize_reverse): Remove trailing newlines from
5731 help.
5732 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5733 from help.
5734 * language.c (add_set_language_command): Remove trailing newline
5735 from help.
5736 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5737 help.
5738 * disasm.c (_initialize_disasm): Remove trailing newline from
5739 help.
5740 * top.c (init_main): Remove trailing newline from help.
5741 * interps.c (_initialize_interpreter): Remove trailing newline
5742 from help.
5743 * btrace.c (_initialize_btrace): Remove trailing newlines from
5744 help.
5745 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5746 from help.
5747 * python/python.c (_initialize_python): Remove trailing newline
5748 from help.
5749 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5750 help.
5751 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5752 from help. Reformat some text.
5753 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5754 from help.
5755 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5756 newline from help.
5757
86108c13
TT
57582019-06-11 Tom Tromey <tromey@adacore.com>
5759
5760 * darwin-nat.c (darwin_decode_exception_message)
5761 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5762
a7067863
AB
57632019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * valops.c (value_slice): Check for not allocated or not
5766 associated values.
5767
9ab08412
TV
57682019-06-10 Tom de Vries <tdevries@suse.de>
5769
5770 PR gdb/24618
5771 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5772 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5773 invalid.
5774
f19e22e9
TV
57752019-06-10 Tom de Vries <tdevries@suse.de>
5776
5777 PR gdb/24611
5778 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5779 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5780
e99f9db0
TV
57812019-06-10 Tom de Vries <tdevries@suse.de>
5782
5783 PR symtab/24545
5784 * symtab.c (struct demangled_name_entry): Add language field.
5785 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5786 static minimal symbol". Set and use language field.
5787
9bf7038b
TT
57882019-06-10 Tom Tromey <tromey@adacore.com>
5789
5790 * ada-lang.c (_initialize_ada_language): Update help text.
5791
422186a9
TT
57922019-06-10 Tom Tromey <tromey@adacore.com>
5793
5794 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5795 with a newline.
5796 * guile/guile.c (handle_boot_error): Don't end warning with a
5797 newline.
5798 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5799 warning with a newline.
5800 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5801 newline.
5802 (s12z_frame_cache): Likewise.
5803 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5804 a newline.
5805 * solib-svr4.c (disable_probes_interface): Don't end warning with
5806 a newline.
5807 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5808 newline.
5809 * python/python.c (do_finish_initialization): Don't end warning
5810 with a newline.
5811
25ce02ee
TT
58122019-06-10 Tom Tromey <tom@tromey.com>
5813
5814 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5815 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5816 gdbpy_enter.
5817
caa429d8
TT
58182019-06-10 Tom Tromey <tromey@adacore.com>
5819
5820 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5821 data.
5822 (elf_new_init): Don't call stabsread_new_init.
5823 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5824 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5825 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5826
81873cc8
TV
58272019-06-10 Tom de Vries <tdevries@suse.de>
5828
5829 PR symtab/16264
5830 PR symtab/24517
5831 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5832
4fa0265e
РИ
58332019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5834
5835 * source.c (find_and_open_source): Also rewrite relative file
5836 names.
5837
1a3da2cd
AB
58382019-04-26 Amos Bird <amosbird@gmail.com>
5839
5840 * annotate.c (annotate_thread_exited): Add "thread-exited"
5841 annotation.
5842
3847a7bf
TT
58432019-06-06 Tom Tromey <tromey@adacore.com>
5844
5845 * maint.h (class scoped_command_stats): Use
5846 DISABLE_COPY_AND_ASSIGN.
5847 <print_time>: New method.
5848 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5849 print_time.
5850 (scoped_command_stats::print_time): New method.
5851
312617a3
AB
58522019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5855 instructions of lengths 6 or 8 bytes.
5856
b02f78f9
PA
58572019-06-04 Pedro Alves <palves@redhat.com>
5858
5859 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5860
5861 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5862 * breakpoint.c (condition_completer): Likewise.
5863 * cli/cli-dump.c (scan_expression): Likewise.
5864 * common/filestuff.c (mkdir_recursive): Likewise.
5865 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5866 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5867 (gdb_abspath): Likewise.
5868 * compile/compile-cplus-types.c
5869 (compile_cplus_instance::decl_name): Likewise.
5870 * completer.c (complete_explicit_location):
5871 (signal_completer, reg_or_group_completer_1): Likewise.
5872 * cp-support.c (cp_remove_params_if_any): Likewise.
5873 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5874 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5875 * infcmd.c (strip_bg_char): Likewise.
5876 * linespec.c (copy_token_string): Likewise.
5877 * mi/mi-main.c (output_cores): Likewise.
5878 * psymtab.c (psymtab_search_name):
5879 * symfile.c (test_set_ext_lang_command): Likewise.
5880 * target.c (target_fileio_read_stralloc): Likewise.
5881 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5882 * value.c (complete_internalvar): Likewise.
5883
e1f2e1a2
CB
58842019-06-04 Christian Biesinger <cbiesinger@google.com>
5885
5886 Add objfile property to gdb.Type.
d3238f7d
PA
5887 * NEWS: Mention Python API addition.
5888 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5889
e664d728
PW
58902019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5891
5892 * NEWS: Mention the new set|show style [title|highlight].
5893 Mention changes to "show style", "help" and "apropos".
5894
66d8c862
PW
58952019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5896
5897 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5898 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5899 instead of print_help_for_command.
5900 (print_doc_of_command): New function.
5901 (help_list): Add 'apropos -v word' suggestion.
5902 (print_help_for_command): Style the command name using title style.
5903 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5904 (_initialize_cli_cmds): Describe -v in apropos_command help.
5905
9303eb2f
PW
59062019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5907
5908 * cli/cli-style.h (cli_style_option): Add name in constructor,
5909 add m_name class member, add constructor with intensity,
5910 add name class function.
5911 (cli_style_option::add_setshow_commands): Remove name argument.
5912 (highlight_style, title_style): New styles.
5913 * cli/cli-style.c (do_show): New function that shows a style
5914 characteristic styling the style name with itself.
5915 (set_style_name): New function.
5916 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5917 Update all callers according to the changes in cli/cli-style.h.
5918 * utils.h (fputs_highlighted): New function.
5919 * utils.c (fputs_highlighted): Likewise.
5920
e2c52041
PW
59212019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5922
5923 * NEWS: Mention new pipe command and new convenience variables.
5924
947d3946
PW
59252019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5926
5927 * cli/cli-cmds.c (pipe_command): New function.
5928 (_initialize_cli_cmds): Call add_com for pipe_command.
5929 Define | as an alias for pipe.
5930 (exit_status_set_internal_vars): New function.
5931 (shell_escape): Call exit_status_set_internal_vars.
5932 cli/cli-decode.c (find_command_name_length): Recognize | as
5933 a single character command.
5934
b8fd0918
PW
59352019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5936
5937 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5938 top.c (execute_command_to_ui_file): New function, mostly a copy
5939 of execute_command_to_string.
5940 (execute_command_to_string): Implement by calling
5941 execute_command_to_ui_file.
5942
68bb5386
PW
59432019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5944
5945 * top.h (saved_command_line): Remove declaration.
5946 * top.c (previous_saved_command_line, previous_repeat_arguments):
5947 New variables.
5948 (saved_command_line): Make static, define together with other
5949 'repeat variables'.
5950 (dont_repeat): Clear repeat_arguments.
5951 (repeat_previous, get_saved_command_line, save_command_line):
5952 New functions.
5953 (gdb_init): Initialize saved_command_line
5954 and previous_saved_command_line.
5955 * main.c (captured_main_1): Remove saved_command_line initialization.
5956 * event-top.c (handle_line_of_input): Update to use
5957 the new 'repeat' related functions instead of direct access to
5958 saved_command_line.
5959 * command.h (repeat_previous, get_saved_command_line,
5960 save_command_line): New declarations.
5961 (dont_repeat): Add comment.
5962
bfcdb852
TT
59632019-05-30 Tom Tromey <tromey@adacore.com>
5964
5965 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5966 Fix comment.
5967 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5968
0ef209f2
JV
59692019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5970
5971 PR cli/24587
5972 * completer.c (complete): Initialize variable word.
5973
955b06fa
SDJ
59742019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5975
5976 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5977 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5978 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5979 'body' is NULL to the outter 'if', protecting the '!is_define'
5980 situation as well.
5981
fa9c3fa0
TT
59822019-05-29 Tom Tromey <tromey@adacore.com>
5983
5984 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5985 (dwarf_unknown): New function.
5986 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5987 (dwarf_type_encoding_name): Use dwarf_unknown.
5988
4330d61d
TT
59892019-05-29 Tom Tromey <tromey@adacore.com>
5990
5991 PR c++/20020:
5992 * cp-valprint.c (cp_print_value_fields): Call
5993 cp_print_static_field inside "try".
5994
33a6bc35
TT
59952019-05-29 Tom Tromey <tromey@adacore.com>
5996
5997 * inflow.c (struct terminal_info): Add default operator=.
5998 * configure: Rebuild.
5999 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6000 -Wdeprecated-copy-dtor, -Wredundant-move.
6001
000439d5
TT
60022019-05-29 Tom Tromey <tromey@adacore.com>
6003
6004 * NEWS: Add entry.
6005 * infcmd.c (print_return_value_1): Handle finish_print
6006 option.
6007 (show_print_finish): New function.
6008 (_initialize_infcmd): Add "set/show print finish" commands.
6009 * valprint.c (user_print_options): Initialize new member.
6010 * valprint.h (struct value_print_options) <finish_print>: New
6011 member.
6012
c0e70c62
TT
60132019-05-28 Tom Tromey <tromey@adacore.com>
6014
6015 * ada-lang.c (ada_remove_Xbn_suffix)
6016 (find_old_style_renaming_symbol)
6017 (parse_old_style_renaming): Remove.
6018 (ada_find_renaming_symbol): Don't call
6019 find_old_style_renaming_symbol.
6020 (ada_is_renaming_symbol): Rename from
6021 ada_find_renaming_symbol. Remove "block" parameter. Return
6022 bool. Now static.
6023 (ada_read_var_value): Update and simplify.
6024 * ada-exp.y (write_var_or_type): Remove old code.
6025
766f8836
AH
60262019-05-28 Alan Hayward <alan.hayward@arm.com>
6027
6028 * event-top.c: Remove include comment.
6029 * inflow.c (class scoped_ignore_sigttou): Move from here...
6030 * inflow.h (class scoped_ignore_sigttou): ...to here.
6031 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6032 * top.c: Remove include comment.
6033
eb41253a
TT
60342019-05-27 Tom Tromey <tom@tromey.com>
6035
6036 * NEWS: Fix typo.
6037
4ca51187
TT
60382019-05-22 Tom Tromey <tromey@adacore.com>
6039
6040 * target.c (target_follow_exec): Constify parameter.
6041 * target-delegates.c: Rebuild.
6042 * remote.c (remote_target::follow_exec): Constify parameter.
6043 * infrun.c (follow_exec): Constify parameter.
6044 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6045 (target_follow_exec): Likewise.
6046
8fca4da0
AH
60472019-05-22 Alan Hayward <alan.hayward@arm.com>
6048
6049 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6050 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6051
b7060614
AH
60522019-05-22 Alan Hayward <alan.hayward@arm.com>
6053
6054 * NEWS: Add debugredirect and testsuite sections.
6055
0a5954bd
SC
60562019-05-22 Simon Cook <simon.cook@embecosm.com>
6057
6058 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6059 target descriptions using exclusively floating point register name
6060 aliases.
6061
dc42e902
AB
60622019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 PR gdb/18644:
6065 * f-lang.c (build_fortran_types): Handle the case where
6066 gdbarch_floatformat_for_type returns a nullptr.
6067
fb7806c7
TV
60682019-05-21 Tom de Vries <tdevries@suse.de>
6069
6070 PR cli/24587
6071 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6072
34d11c68
AB
60732019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6074
6075 PR gdb/18644:
6076 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6077 16-byte floats.
6078 * i386-tdep.c (i386_floatformat_for_type): Use
6079 floatformats_ia64_quad for the 16-byte floating point component
6080 within a fortran 32-byte complex number.
6081
122cf0f2
AB
60822019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6083
6084 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6085 delete default constructor.
6086 (find_partial_die): Update to return const struct.
6087 (partial_die_parent_scope): Move variable declaration into scope
6088 of its use and change its type to auto.
6089 (guess_partial_die_structure_name): Likewise.
6090 (partial_die_info::fixup): Likewise.
6091
33d0e35a
TT
60922019-05-17 Tom Tromey <tromey@adacore.com>
6093
6094 * source.c (find_and_open_source): Remove cast.
6095
a45575b0
TT
60962019-05-17 Tom Tromey <tromey@adacore.com>
6097
6098 * annotate.c (annotate_source): Make "filename" const.
6099 * annotate.h (annotate_source): Use const.
6100
81f47ac2
AH
61012019-05-17 Alan Hayward <alan.hayward@arm.com>
6102
6103 * disasm.c (set_disassembler_options): Send errors to stderr.
6104
ca1285d1
AH
61052019-05-17 Alan Hayward <alan.hayward@arm.com>
6106
6107 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6108 (cli_interp_base::set_logging): Check debug_redirect.
6109 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6110 * cli/cli-logging.c (debug_redirect): Add static variable.
6111 (pop_output_files): Add default param.
6112 (handle_redirections): Print debug setting.
6113 (show_logging_command): Likewise.
6114 (_initialize_cli_logging): Add debugredirect command.
6115 * interps.c (current_interp_set_logging): Add debug_redirect
6116 parameter.
6117 * interps.h (set_logging): Add debug_redirect parameter.
6118 (current_interp_set_logging): Likewise.
6119 * mi/mi-common.h: Likewise.
6120 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6121
61222019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6123 Tom Tromey <tromey@adacore.com>
6124
6125 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6126 directly.
6127 * cli/cli-interp.h (make_logging_output): Remove declaration.
6128 * cli/cli-logging.c (make_logging_output): Remove function.
6129 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6130 directly.
6131 * ui-file.c (tee_file::tee_file): Remove bools.
6132 (tee_file::~tee_file): Remove deletes.
6133 * ui-file.h (tee_file): Remove bools.
6134
26648588
JV
61352019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6136
6137 * mi/mi-cmds.h (mi_cmd_complete): New function.
6138 * mi/mi-main.c (mi_cmd_complete): Likewise.
6139 * mi/mi-cmds.c: Define new MI command -complete.
6140 * NEWS: Mention new -complete command.
6141
6e035501
JV
61422019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6143
6144 * completer.h (complete): New function.
6145 * completer.c (complete): Likewise.
6146 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6147 function defined in completer.h.
6148
7d0e2ece
JV
61492019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6150
e79be6e5 6151 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6152
fb816e8b
TV
61532019-05-17 Tom de Vries <tdevries@suse.de>
6154
6155 PR gdb/24094
6156 * dwarf2read.c (struct cu_partial_die_info): New struct.
6157 (find_partial_die): Return cu_partial_die_info.
6158 (partial_die_parent_scope, guess_partial_die_structure_name)
6159 (partial_die_info::fixup): Handle new return type of find_partial_die.
6160
677052f2
SDJ
61612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6162
a1726c38 6163 PR breakpoints/24541
677052f2
SDJ
6164 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6165 "std::string", simplifying the algorithm.
6166
f3da9116
SDJ
61672019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6168
6169 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6170 (stap_static_probe_ops::get_probes): Likewise.
6171
f1bb75ab
SDJ
61722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6173
6174 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6175 '-')" and "else if".
6176 (stap_parse_single_operand): Join checks for
6177 "gdbarch_stap_parse_special_token_p" and
6178 "gdbarch_stap_parse_special_token" in the same "if" statement.
6179 Invert check when verifying for operation on register
6180 displacement.
6181
3ca58cde
SDJ
61822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6183
6184 * stap-probe.c (stap_get_opcode): Update comment.
6185 (stap_get_expected_argument_type): Likewise.
6186 (handle_stap_probe): Likewise.
6187
af2d9bee
SDJ
61882019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6189
6190 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6191 return type to 'bool'. Adjust comment. Use 'bool' when
6192 appropriate.
6193 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6194 * stap-probe.c (stap_parse_argument_1): Likewise.
6195 (stap_is_operator): Likewise.
6196 (stap_is_generic_prefix): Likewise.
6197 (stap_is_register_prefix): Likewise.
6198 (stap_is_register_indirection_prefix): Likewise.
6199 (stap_is_integer_prefix): Likewise.
6200 (stap_generic_check_suffix): Likewise.
6201 (stap_check_integer_suffix): Likewise.
6202 (stap_check_register_suffix): Likewise.
6203 (stap_check_register_indirection_suffix): Likewise.
6204 (stap_parse_register_operand): Likewise.
6205 (stap_parse_single_operand): Likewise.
6206 (stap_parse_argument_1): Likewise.
6207 (stap_probe::get_argument_count): Likewise.
6208 (stap_is_operator): Likewise.
6209
61c9c421
TT
62102019-05-16 Tom Tromey <tromey@adacore.com>
6211
6212 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6213 keyword to foreach.
6214
9ddc1af1
SM
62152019-05-15 Simon Marchi <simon.marchi@efficios.com>
6216
6217 * linux-thread-db.c (try_thread_db_load_1): Change return type
6218 to bool.
6219 (try_thread_db_load): Likewise.
6220 (try_thread_db_load_from_pdir_1): Likewise.
6221 (try_thread_db_load_from_pdir): Likewise.
6222 (try_thread_db_load_from_sdir): Likewise.
6223 (try_thread_db_load_from_dir): Likewise.
6224 (thread_db_load_search): Likewise.
6225 (has_libpthread): Likewise.
6226 (thread_db_load): Likewise.
6227
7bede828
SDJ
62282019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6229
6230 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6231 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6232 NULL, and complain/return if that's the case.
6233
c5358db4
JD
62342019-05-15 John Darrington <john@darrington.wattle.id.au>
6235
6236 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6237 (advance, posn, abstract_read_memory): New functions.
6238 [struct mem_read_abstraction]: New struct.
6239 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6240
c408a94f
TT
62412019-05-14 Tom Tromey <tromey@adacore.com>
6242
6243 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6244 value is not lval_memory.
6245
e7bd7fba
TT
62462019-05-14 Tom Tromey <tromey@adacore.com>
6247
6248 * solib.c (info_sharedlibrary_command): Style the file name.
6249
a6d0f249
AH
62502019-05-14 Alan Hayward <alan.hayward@arm.com>
6251
6252 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6253 (aarch64_vnv_type): Likewise.
6254 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6255 * common/tdesc.c: Likewise.
6256 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6257 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6258 * features/aarch64-fpu.xml: Add ieee half view.
6259 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6260 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6261 * gdbtypes.h (struct builtin_type): Likewise.
6262 (struct objfile_type): Likewise.
6263
66b8bb74
SM
62642019-05-12 Paul Naert <paul.naert@polymtl.ca>
6265
6266 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6267 typo.
6268 * location.h (string_to_event_location): Likewise.
6269
21c219fd
JB
62702019-05-11 Joel Brobecker <brobecker@adacore.com>
6271
6272 GDB 8.3 released.
6273
13674803
SM
62742019-05-10 Simon Marchi <simon.marchi@efficios.com>
6275
6276 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6277 New variable declaration.
6278 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6279 New variable.
6280 (print_one_breakpoint): Use ui_out::test_flags and new global
6281 variable to compute use_fixed_output.
6282 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6283 Remove.
6284 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6285 (mi_multi_location_breakpoint_output_fixed): Remove.
6286 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6287 new variable.
6288 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6289 fix_multi_location_breakpoint_output flag if version >= 3.
6290 * ui-out.h (enum ui_out_flag)
6291 <fix_multi_location_breakpoint_output>: New enumerator.
6292
a9eac7f9
SM
62932019-05-10 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6296
71bed2db
TT
62972019-05-10 Tom Tromey <tromey@adacore.com>
6298
6299 * ada-lang.c (catch_ada_completer): New function.
6300 (_initialize_ada_language): Use it.
6301
24c54127
TT
63022019-05-10 Tom Tromey <tromey@adacore.com>
6303
6304 * thread.c (print_thread_info): Make "requested_threads" const.
6305 * gdbthread.h (print_thread_info): Make "requested_threads"
6306 const.
6307 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6308 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6309
7a102139
TT
63102019-05-08 Tom Tromey <tom@tromey.com>
6311
6312 * gdbtypes.c (objfile_type_data): Change type.
6313 (objfile_type, _initialize_gdbtypes): Update.
6314
924d79e2
TT
63152019-05-08 Tom Tromey <tom@tromey.com>
6316
6317 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6318 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6319 (_initialize_dwarf2_frame): Update.
6320
4c58e337
TT
63212019-05-08 Tom Tromey <tom@tromey.com>
6322
6323 * objc-lang.c (objc_objfile_data): Change type.
6324 (find_methods): Update.
6325 (_initialize_objc_lang): Remove.
6326
d772d2ab
TT
63272019-05-08 Tom Tromey <tom@tromey.com>
6328
6329 * stabsread.c (rs6000_builtin_type_data): Change type.
6330 (rs6000_builtin_type, _initialize_stabsread): Update.
6331
d11d83f4
TT
63322019-05-08 Tom Tromey <tom@tromey.com>
6333
6334 * mips-tdep.c (mips_pdr_data): Remove.
6335 (_initialize_mips_tdep): Update.
6336
9a73f0ad
TT
63372019-05-08 Tom Tromey <tom@tromey.com>
6338
6339 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6340 (hppa_init_objfile_priv_data, read_unwind_info)
6341 (find_unwind_entry, _initialize_hppa_tdep): Update.
6342
8127a2fa
TT
63432019-05-08 Tom Tromey <tom@tromey.com>
6344
6345 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6346 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6347 on obstack.
6348 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6349
91d3055d
TT
63502019-05-08 Tom Tromey <tom@tromey.com>
6351
6352 * mdebugread.c (basic_type_data): Change type.
6353 (basic_type, _initialize_mdebugread): Update.
6354
31930bd3
TT
63552019-05-08 Tom Tromey <tom@tromey.com>
6356
6357 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6358
bdb3ed9e
TT
63592019-05-08 Tom Tromey <tom@tromey.com>
6360
6361 * nto-tdep.c (nto_inferior_data_reg): Change type.
6362 (nto_inferior_data): Update.
6363 (nto_inferior_data_cleanup, nto_new_inferior_data)
6364 (_initialize_nto_tdep): Remove.
6365 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6366
f37b313d
TT
63672019-05-08 Tom Tromey <tom@tromey.com>
6368
6369 * ada-lang.c (struct ada_inferior_data): Add initializers.
6370 (ada_inferior_data): Change type.
6371 (ada_inferior_data_cleanup): Remove.
6372 (get_ada_inferior_data, ada_inferior_exit)
6373 (struct ada_pspace_data): Add initializers, destructor.
6374 (ada_pspace_data_handle): Change type.
6375 (get_ada_pspace_data): Update.
6376 (ada_pspace_data_cleanup): Remove.
6377
24699405
TT
63782019-05-08 Tom Tromey <tom@tromey.com>
6379
6380 * coffread.c (struct coff_symfile_info): Add initializers.
6381 (coff_objfile_data_key): Move lower. Change type.
6382 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6383 Update.
6384 (coff_free_info): Remove.
6385
d4e05d2f
TT
63862019-05-08 Tom Tromey <tom@tromey.com>
6387
6388 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6389 (fbsd_pspace_data_handle): Move lower. Change type.
6390 (get_fbsd_pspace_data): Update.
6391 (fbsd_pspace_data_cleanup): Remove.
6392 (_initialize_fbsd_tdep): Update.
6393
14ef6690
TT
63942019-05-08 Tom Tromey <tom@tromey.com>
6395
6396 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6397 (get_ada_tasks_pspace_data): Update.
6398 (ada_tasks_pspace_data_cleanup): Remove.
6399 (_initialize_tasks): Update.
6400 (ada_tasks_inferior_data_handle): Change type.
6401 (get_ada_tasks_inferior_data): Update.
6402 (ada_tasks_inferior_data_cleanup): Remove.
6403 (struct ada_tasks_pspace_data): Add initializers.
6404
814cf43a
TT
64052019-05-08 Tom Tromey <tom@tromey.com>
6406
6407 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6408 * symfile-debug.c (debug_sym_get_probes): Change type.
6409 * stap-probe.c (handle_stap_probe):
6410 (stap_static_probe_ops::get_probes): Change type.
6411 * probe.h (class static_probe_ops) <get_probes>: Change type.
6412 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6413 (parse_probes_in_pspace): Update.
6414 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6415 Update.
6416 (any_static_probe_ops::get_probes): Change type.
6417 * elfread.c (elfread_data): New typedef.
6418 (probe_key): Change type.
6419 (elf_get_probes): Likewise. Update.
6420 (probe_key_free): Remove.
6421 (_initialize_elfread): Update.
6422 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6423 Change type.
6424 (dtrace_process_dof_probe, dtrace_process_dof)
6425 (dtrace_static_probe_ops::get_probe): Change type.
6426
02dc647e
TT
64272019-05-08 Tom Tromey <tom@tromey.com>
6428
6429 * xcoffread.c (struct xcoff_symfile_info): Rename from
6430 coff_symfile_info. Add initializers.
6431 (xcoff_objfile_data_key): Move lower. Change type.
6432 (XCOFF_DATA): Rewrite.
6433 (xcoff_free_info): Remove.
6434 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6435 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6436 (xcoff_initial_scan): Update.
6437
09232438
TT
64382019-05-08 Tom Tromey <tom@tromey.com>
6439
6440 * solib-svr4.c (struct svr4_info): Add initializers and
6441 destructor.
6442 <probes_table>: Now an htab_up.
6443 (solib_svr4_pspace_data): Change type.
6444 (free_probes_table): Simplify.
6445 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6446 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6447 (probes_table_remove_objfile_probes, register_solib_event_probe)
6448 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6449 (_initialize_svr4_solib): Update.
6450
7b4a314f
TT
64512019-05-08 Tom Tromey <tom@tromey.com>
6452
6453 * remote.c (remote_pspace_data): Change type.
6454 (remote_pspace_data_cleanup): Remove.
6455 (get_remote_exec_file, set_pspace_remote_exec_file)
6456 (_initialize_remote): Update.
6457
51d3063a
TT
64582019-05-08 Tom Tromey <tom@tromey.com>
6459
6460 * breakpoint.c (breakpoint_objfile_key): Change type.
6461 (get_breakpoint_objfile_data): Update.
6462 (free_breakpoint_objfile_data): Remove.
6463 (_initialize_breakpoint): Update.
6464
89fb8848
TT
64652019-05-08 Tom Tromey <tom@tromey.com>
6466
6467 * linux-tdep.c (struct linux_info): Add initializers.
6468 (linux_inferior_data): Move. Change type.
6469 (invalidate_linux_cache_inf): Update.
6470 (linux_inferior_data_cleanup): Remove.
6471 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6472
e9b89e2d
TT
64732019-05-08 Tom Tromey <tom@tromey.com>
6474
6475 * auxv.c (auxv_inferior_data): Move. Change type.
6476 (auxv_inferior_data_cleanup): Remove.
6477 (invalidate_auxv_cache_inf): Rewrite.
6478 (get_auxv_inferior_data, _initialize_auxv): Update.
6479
8c42777c
TT
64802019-05-08 Tom Tromey <tom@tromey.com>
6481
6482 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6483 (symfile_debug_objfile_data_key): Change type.
6484 (symfile_debug_installed, debug_qf_has_symbols)
6485 (debug_qf_find_last_source_symtab)
6486 (debug_qf_forget_cached_source_info)
6487 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6488 (debug_qf_print_stats, debug_qf_dump)
6489 (debug_qf_expand_symtabs_for_function)
6490 (debug_qf_expand_all_symtabs)
6491 (debug_qf_expand_symtabs_with_fullname)
6492 (debug_qf_map_matching_symbols)
6493 (debug_qf_expand_symtabs_matching)
6494 (debug_qf_find_pc_sect_compunit_symtab)
6495 (debug_qf_map_symbol_filenames)
6496 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6497 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6498 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6499 (debug_sym_read_linetable, debug_sym_relocate): Update.
6500 (symfile_debug_free_objfile): Remove.
6501 (install_symfile_debug_logging, _initialize_symfile_debug):
6502 Update.
6503
5bfd760d
TT
65042019-05-08 Tom Tromey <tom@tromey.com>
6505
6506 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6507 allocate_on_obstack.
6508 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6509 (get_dwarf2_per_objfile): Update.
6510 (set_dwarf2_per_objfile): Remove.
6511 (dwarf2_has_info, dwarf2_get_section_info): Update.
6512 (dwarf2_free_objfile): Remove.
6513 (_initialize_dwarf2_read): Update.
6514
e85e19b4
TT
65152019-05-08 Tom Tromey <tom@tromey.com>
6516
6517 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6518 initializers.
6519 <unsupported_script_warning_printed,
6520 script_not_found_warning_printed>: Now bool.
6521 (auto_load_pspace_data): Change type.
6522 (~auto_load_pspace_info): Rename from
6523 auto_load_pspace_data_cleanup.
6524 (get_auto_load_pspace_data, init_loaded_scripts_info)
6525 (clear_section_scripts, maybe_print_unsupported_script_warning)
6526 (maybe_print_script_not_found_warning, _initialize_auto_load):
6527 Update.
6528
f6aa7436
TT
65292019-05-08 Tom Tromey <tom@tromey.com>
6530
6531 * objfiles.c (objfile_pspace_info): Add destructor and
6532 initializers.
6533 (objfiles_pspace_data): Change type.
6534 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6535 (get_objfile_pspace_data): Update.
6536 (objfiles_bfd_data): Change type.
6537 (get_objfile_bfd_data): Update.
6538 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6539
6ae614f6
TT
65402019-05-08 Tom Tromey <tom@tromey.com>
6541
6542 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6543 Change type.
6544 (get_catch_syscall_inferior_data): Update.
6545 (catch_syscall_inferior_data_cleanup): Remove.
6546 (_initialize_break_catch_syscall): Update.
6547
6509b8eb
TT
65482019-05-08 Tom Tromey <tom@tromey.com>
6549
6550 * inflow.c (struct terminal_info): Add destructor and
6551 initializers.
6552 (inflow_inferior_data): Change type.
6553 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6554 (get_inflow_inferior_data, inflow_inferior_exit)
6555 (swap_terminal_info, _initialize_inflow): Update.
6556
35632941
TT
65572019-05-08 Tom Tromey <tom@tromey.com>
6558
6559 * target-dcache.c (target_dcache_cleanup): Remove.
6560 (target_dcache_aspace_key): Change type.
6561 (target_dcache_init_p, target_dcache_invalidate)
6562 (target_dcache_get, target_dcache_get_or_init)
6563 (_initialize_target_dcache): Update.
6564 * dcache.h (struct dcache_deleter): New.
6565
3017b94d
TT
65662019-05-08 Tom Tromey <tom@tromey.com>
6567
6568 * symtab.c (struct symbol_cache): Add destructor and
6569 initializers.
6570 (symbol_cache_key): Move. Change type.
6571 (make_symbol_cache, free_symbol_cache): Remove.
6572 (get_symbol_cache): Update.
6573 (symbol_cache_cleanup): Remove.
6574 (ALL_PSPACES, symbol_cache_flush)
6575 (maintenance_print_symbol_cache)
6576 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6577 Update.
6578
a32ad8c5
TT
65792019-05-08 Tom Tromey <tom@tromey.com>
6580
6581 * symtab.c (struct main_info): Add destructor and initializers.
6582 (main_progspace_key): Move. Change type.
6583 (get_main_info): Update.
6584 (main_info_cleanup): Remove.
6585 (_initialize_symtab): Update.
6586
5f6e90a0
TT
65872019-05-08 Tom Tromey <tom@tromey.com>
6588
6589 * registry.h (DECLARE_REGISTRY): Define the _key class.
6590
1bd0c6e4
AB
65912019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6592
6593 * NEWS: Merge two 'New commands' sections.
6594
2228ef77
XR
65952019-05-08 Joel Brobecker <brobecker@adacore.com>
6596
6597 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6598 parameter and use Ada language definition instead.
6599 (ada_val_print_ptr): Remove unused language parameter.
6600 (ada_val_print_num): Remove language parameter and use Ada language
6601 definition instead.
6602 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6603 parameter.
6604 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6605 parameter and use Ada language definition instead.
6606 (ada_val_print_1): Update all ada_val_print_xxx calls.
6607 Remove language parameter.
6608 (ada_val_print): Update ada_val_print_1 call.
6609
60fcc1c3
TT
66102019-05-08 Tom Tromey <tromey@adacore.com>
6611
6612 * remote.c (remote_hw_watchpoint_limit)
6613 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6614 Now static.
6615
ed2b7c17
TT
66162019-05-08 Tom Tromey <tromey@adacore.com>
6617
6618 * maint.c (_initialize_maint_cmds): Move initialization code to
6619 remote.c.
6620 (watchdog, show_watchdog): Move to remote.c.
6621 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6622 "watchdog" static.
6623 (_initialize_remote): Move initialization code from maint.c.
6624 * defs.h (watchdog): Don't declare.
6625
b0be6c91
TT
66262019-05-08 Tom Tromey <tromey@adacore.com>
6627
6628 * tui/tui-interp.c: Include main.h.
6629 * interps.c: Include main.h.
6630 * main.h (interpreter_p): Declare.
6631 * defs.h (interpreter_p): Don't declare.
6632
587ee17b
TT
66332019-05-08 Tom Tromey <tromey@adacore.com>
6634
6635 * dwarf2loc.c: Include dwarf2read.h.
6636 * defs.h (read_unsigned_leb128): Don't declare.
6637 * dwarf2read.h (read_unsigned_leb128): Declare.
6638
ca1df239
TT
66392019-05-08 Tom Tromey <tromey@adacore.com>
6640
6641 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6642 method.
6643
99f20f08
TT
66442019-05-08 Tom Tromey <tromey@adacore.com>
6645
6646 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6647 when no wrap column is set.
6648
80e55b13
TT
66492019-05-08 Tom Tromey <tromey@adacore.com>
6650
6651 * c-lang.c (c_get_string): Handle non-C-style arrays.
6652
9d3421af
TT
66532019-05-08 Tom Tromey <tromey@adacore.com>
6654
6655 * typeprint.c (print_offset_data::update): Print the bit offset,
6656 not the number of bits remaining.
6657
844333e2
TT
66582019-05-08 Tom Tromey <tromey@adacore.com>
6659
6660 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6661 padding at end of comment.
6662
988915ee
TT
66632019-05-08 Tom Tromey <tromey@adacore.com>
6664
6665 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6666 Compare main types.
6667
26bfd823
TT
66682019-05-06 Tom Tromey <tom@tromey.com>
6669
6670 * common/scoped_mmap.c: Include common-defs.h.
6671 * common/scoped_mmap.h: Don't include config.h.
6672
89055eaa
TT
66732019-05-04 Tom Tromey <tom@tromey.com>
6674
6675 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6676 (struct aarch64_call_info): Add initializers.
6677 <si>: Now a std::vector.
6678 (pass_on_stack, aarch64_push_dummy_call): Update.
6679
5da01df5
TT
66802019-05-04 Simon Marchi <simon.marchi@efficios.com>
6681 Tom Tromey <tom@tromey.com>
6682
6683 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6684 (ppc_threads): Now a std::vector. Now static.
6685 (hwdebug_find_thread_points_by_tid)
6686 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6687 Update.
6688
fbdf05a1
TT
66892019-05-04 Tom Tromey <tom@tromey.com>
6690
6691 * arc-tdep.c (arc_tdesc_init): Return bool.
6692
06d16ec9
TT
66932019-05-04 Tom Tromey <tom@tromey.com>
6694
6695 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6696 Use gdb_assert_not_reached.
6697
9c056022
TT
66982019-05-04 Tom Tromey <tom@tromey.com>
6699
6700 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6701 "false".
6702
fa9c2a59
TT
67032019-05-04 Tom Tromey <tom@tromey.com>
6704
6705 * arc-tdep.c (arc_tdesc_init): Use bool.
6706
e2eb806a
TT
67072019-05-04 Tom Tromey <tom@tromey.com>
6708
6709 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6710
6fe87677
TT
67112019-05-04 Tom Tromey <tom@tromey.com>
6712
6713 * cli/cli-cmds.c (valid_command_p): Return bool.
6714
7f008c9e
TT
67152019-05-04 Tom Tromey <tom@tromey.com>
6716
6717 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6718 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6719
b6484282
RT
67202019-05-04 Raul Tambre <raul@tambre.ee>
6721
6722 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6723 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6724 operator for comparison.
6725
af97b416
TT
67262019-05-04 Tom Tromey <tom@tromey.com>
6727
6728 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6729 (lookup_partial_symbol, print_partial_symbols)
6730 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6731 (psymbol_compare): Update.
6732 (add_psymbol_to_bcache): Clear the entire psymbol.
6733 (maintenance_check_psymtabs): Update.
6734 * psympriv.h (struct partial_symbol): Don't derive from
6735 general_symbol_info.
6736 <obj_section, unrelocated_address, address,
6737 set_unrelocated_address>: Update.
6738 <ginfo>: New member.
6739 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6740 (debug_names::write_psymbols): Update.
6741
9d6d4be8
TV
67422019-05-04 Tom de Vries <tdevries@suse.de>
6743
6744 * contrib/cc-with-tweaks.sh: Support -n arg.
6745
66452beb
PW
67462019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6747
6748 * corelow.c (core_target::detach): Ensure frame cache and
6749 register caches are cleared.
6750 inferior.c (exit_inferior_1): Likewise.
6751
bde09ab7
TT
67522019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6753 Tom Tromey <tom@tromey.com>
6754
6755 * dictionary.c (collate_pending_symbols_by_language): Remove
6756 "struct" from foreach.
6757 * symtab.c (lookup_global_symbol_from_objfile)
6758 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6759 foreach.
6760 * ser-tcp.c (net_open): Remove "struct" from foreach.
6761 * objfiles.c (objfile_relocate, objfile_rebase)
6762 (objfile_has_symbols): Remove "struct" from foreach.
6763 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6764 from foreach.
6765 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6766 foreach.
6767 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6768 "struct" from foreach.
6769 * ada-lang.c (create_excep_cond_exprs)
6770 (ada_exception_catchpoint_cond_string): Remove "struct" from
6771 foreach.
6772
222a8d25
TT
67732019-05-03 Tom Tromey <tromey@adacore.com>
6774
6775 * ada-exp.y (convert_char_literal): Check suffix of each
6776 enumerator.
6777
fcd60b84
DP
67782019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6779
6780 PR ada/21406:
6781 * ada-exp.y (yywrap): Don't define.
6782 * ada-lex.l (%option): Add noyywrap
6783 (yywrap): Remove.
6784
5f2459c2
EZ
67852019-05-03 Eli Zaretskii <eliz@gnu.org>
6786
353ea2d1
EZ
6787 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6788 _WIN32_WINNT to the XP level, unless already defined to a higher
6789 level.
6790
6791 * unittests/parse-connection-spec-selftests.c:
6792 * ser-tcp.c:
6793 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6794 override.
6795
5f2459c2
EZ
6796 * symfile.c (find_separate_debug_file): Remove colon from the
6797 drive spec of DOS/Windows file names of the target, so that the
6798 file name produced from DEBUGDIR and the target's directory will
6799 be valid on DOS/Windows systems.
6800
80062eb9
AB
68012019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6802
6803 * rust-lang.c (val_print_struct): Handle printing structures
6804 containing strings.
6805
b8c05e85
TT
68062019-05-02 Tom Tromey <tromey@adacore.com>
6807
6808 * valarith.c (_initialize_valarith): Remove.
6809
4504bbde
TT
68102019-05-01 Tom Tromey <tromey@adacore.com>
6811
6812 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6813 bitfields.
6814
d48e62f4
TT
68152019-05-01 Tom Tromey <tromey@adacore.com>
6816
6817 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6818 for big-endian copies.
6819
15f18d14
AT
68202019-04-30 Ali Tamur <tamur@google.com>
6821 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6822 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6823 (read_3_bytes): New function.
6824
ab4ee614
JB
68252019-04-30 Joel Brobecker <brobecker@adacore.com>
6826
6827 * windows-nat.c (main_thread_id): Delete.
6828 (handle_output_debug_string): Replace main_thread_id by
6829 current_event.dwThreadId.
6830 (fake_create_process): Likewise.
6831 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6832 Do not set main_thread_id.
6833 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6834 current_event.dwThreadId.
6835 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6836
8ed5b76e
JB
68372019-04-30 Joel Brobecker <brobecker@adacore.com>
6838
6839 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6840 Use current_event.dwThreadId instead of main_thread_id.
6841
2ff0a947
TT
68422019-04-30 Tom Tromey <tromey@adacore.com>
6843
6844 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6845 (create_excep_cond_exprs): Iterate over program spaces.
6846 (ada_exception_catchpoint_cond_string): Examine all minimal
6847 symbols for exception types.
6848
a776957c
TT
68492019-04-30 Tom Tromey <tromey@adacore.com>
6850
6851 PR c++/24470:
6852 * dwarf2read.c (process_structure_scope): Handle case where type
6853 has template parameters but no symbol was created.
6854
bc68014d
AB
68552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6856 Chris January <chris.january@arm.com>
6857
6858 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6859 qualifier.
6860 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6861
f1fdc960
AB
68622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * f-typeprint.c (f_print_type): Update rules for printing
6865 whitespace.
6866 (f_type_print_varspec_suffix): Likewise.
6867
bf7a4de1
AB
68682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6869 Chris January <chris.january@arm.com>
6870
6871 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6872 function arguments.
6873
bbe75b9d
AB
68742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6875
6876 * f-lang.c (build_fortran_types): Change name of void type to
6877 lower case.
6878 * f-typeprint.c (f_type_print_base): Print the name of the void
6879 type, rather than a fixed string.
6880 * f-valprint.c (f_decorations): Use lower case void string.
6881
1db455a7
AB
68822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6883 Chris January <chris.january@arm.com>
6884
6885 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6886 types for Fortran.
6887
b6d03bb2
AB
68882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6889 Chris January <chris.january@arm.com>
6890 David Lecomber <david.lecomber@arm.com>
6891
6892 * f-exp.y (BINOP_INTRINSIC): New token.
6893 (exp): New parser rule handling BINOP_INTRINSIC.
6894 (f77_keywords): Add new builtin procedures.
6895 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6896 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6897 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6898 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6899 (print_unop_subexp_f): New function.
6900 (print_binop_subexp_f): New function.
6901 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6902 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6903 (dump_subexp_body_f): Likewise.
6904 (operator_check_f): Likewise.
6905 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6906 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6907
83228e93
AB
69082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6911 UNOP_KIND.
6912 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6913 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6914 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6915 (operator_length_f): New fuction.
6916 (print_subexp_f): New function.
6917 (op_name_f): New function.
6918 (dump_subexp_body_f): New function.
6919 (operator_check_f): New function.
6920 (exp_descriptor_f): Replace standard expression handling functions
6921 with new functions.
6922 * gdb/fortran-operator.def: New file.
6923 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6924 * gdb/std-operator.def: Remove UNOP_KIND.
6925
6fdcd7cc
AB
69262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * std-operator.def: Remove unbalanced, stray double quote
6929 character.
6930
2e62ab40
AB
69312019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6932 Chris January <chris.january@arm.com>
6933 Daniel Everett <daniel.everett@arm.com>
6934 Nick Forrington <nick.forrington@arm.com>
6935 Richard Bunt <richard.bunt@arm.com>
6936
6937 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6938 of depth when printing anonymous structs or unions.
6939 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6940 Don't print either the top-level value, or the children if the
6941 max-depth is exceeded.
6942 (ppscm_print_children): When printing the key of a map, allow one
6943 extra level of depth.
6944 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6945 print either the top-level value, or the children if the max-depth
6946 is exceeded.
6947 (print_children): When printing the key of a map, allow one extra
6948 level of depth.
6949 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6950 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6951 (user_print_options): Initialise max_depth field.
6952 (val_print_scalar_or_string_type_p): New function.
6953 (val_print): Check to see if the max depth has been reached.
6954 (val_print_check_max_depth): Define new function.
6955 (show_print_max_depth): New function.
6956 (_initialize_valprint): Add 'print max-depth' option.
6957 * valprint.h (struct value_print_options) <max_depth>: New field.
6958 (val_print_check_max_depth): Declare new function.
6959 * NEWS: Document new feature.
6960
4be290b2
AB
69612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * ada-lang.c (ada_language_defn): Initialise new field.
6964 * c-lang.c (c_is_string_type_p): New function.
6965 (c_language_defn): Initialise new field.
6966 (cplus_language_defn): Initialise new field.
6967 (asm_language_defn): Initialise new field.
6968 (minimal_language_defn): Initialise new field.
6969 * c-lang.h (c_is_string_type_p): Declare new function.
6970 * d-lang.c (d_language_defn): Initialise new field.
6971 * f-lang.c (f_is_string_type_p): New function.
6972 (f_language_defn): Initialise new field.
6973 * go-lang.c (go_is_string_type_p): New function.
6974 (go_language_defn): Initialise new field.
6975 * language.c (default_is_string_type_p): New function.
6976 (unknown_language_defn): Initialise new field.
6977 (auto_language_defn): Initialise new field.
6978 * language.h (struct language_defn) <la_is_string_type_p>: New
6979 member variable.
6980 (default_is_string_type_p): Declare new function.
6981 * m2-lang.c (m2_language_defn): Initialise new field.
6982 * objc-lang.c (objc_language_defn): Initialise new field.
6983 * opencl-lang.c (opencl_language_defn): Initialise new field.
6984 * p-lang.c (pascal_is_string_type_p): New function.
6985 (pascal_language_defn): Initialise new field.
6986 * rust-lang.c (rust_is_string_type_p): New function.
6987 (rust_language_defn): Initialise new field.
6988
721b08c6
AB
69892019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6990
6991 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6992 New field.
6993 * ada-lang.c (ada_language_defn): Initialise new field.
6994 * c-lang.c (c_language_defn): Likewise.
6995 (cplus_language_defn): Likewise.
6996 (asm_language_defn): Likewise.
6997 (minimal_language_defn): Likewise.
6998 * d-lang.c (d_language_defn): Likewise.
6999 * f-lang.c (f_language_defn): Likewise.
7000 * go-lang.c (go_language_defn): Likewise.
7001 * language.c (unknown_language_defn): Likewise.
7002 (auto_language_defn): Likewise.
7003 * m2-lang.c (m2_language_defn): Likewise.
7004 * objc-lang.c (objc_language_defn): Likewise.
7005 * opencl-lang.c (opencl_language_defn): Likewise.
7006 * p-lang.c (pascal_language_defn): Likewise.
7007 * rust-lang.c (rust_language_defn): Likewise.
7008
fc913e53
AB
70092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7010
7011 * ada-lang.c (ada_is_character_type): Change return type to bool.
7012 (ada_is_string_type): Likewise.
7013 * ada-lang.h (ada_is_character_type): Update declaration
7014 (ada_is_string_type): Likewise.
7015
fa731fa0
PW
70162019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7017
7018 Support style in 'frame|thread apply'
7019
7020 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7021 * record.c (record_start, record_stop): Update callers of
7022 execute_command_to_string with false.
7023 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7024 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7025 methods.
7026 (class string_file): New constructor with term_out parameter.
7027 Override methods term_out and can_emit_style_escape. New member
7028 term_out.
7029 (class stdio_file): Override can_emit_style_escape.
7030 (class tee_file): Override term_out and can_emit_style_escape.
7031 * utils.h (can_emit_style_escape): Remove.
7032 * utils.c (can_emit_style_escape): Likewise.
7033 Update all callers of can_emit_style_escape (SOMESTREAM) to
7034 SOMESTREAM->can_emit_style_escape.
7035 * source-cache.c (source_cache::get_source_lines): Likewise.
7036 * stack.c (frame_apply_command_count): Call execute_command_to_string
7037 passing the term_out characteristic of the current gdb_stdout.
7038 * thread.c (thr_try_catch_cmd): Likewise.
7039 * top.c (execute_command_to_string): pass term_out parameter
7040 to construct the string_file for the command output.
7041 * ui-file.c (term_cli_styling): New function (most code moved
7042 from utils.c can_emit_style_escape).
7043 (string_file::string_file, string_file::can_emit_style_escape,
7044 stdio_file::can_emit_style_escape, tee_file::term_out,
7045 tee_file::can_emit_style_escape): New functions.
7046
136afab8
PW
70472019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7048
7049 * NEWS: Mention the new set|show may-call-functions.
7050 * infcall.c (may_call_functions_p): New variable.
7051 (show_may_call_functions_p): New function.
7052 (call_function_by_hand_dummy): Throws an error if not
7053 may-call-functions.
7054 (_initialize_infcall): Call add_setshow_boolean_cmd for
7055 may-call-functions.
7056
725cbb63
KS
70572019-04-25 Keith Seitz <keiths@redhat.com>
7058
7059 PR c++/24367
7060 * cp-support.c (inspect_type): Don't attempt substitutions
7061 of symbol with the same name.
7062
3d1cbb78
TT
70632019-04-25 Tom Tromey <tromey@adacore.com>
7064
7065 PR gdb/24475:
7066 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7067 static.
7068
94aeb44b
TT
70692019-04-25 Tom Tromey <tromey@adacore.com>
7070
7071 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7072 rvalue reference.
7073 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7074 (gdb_xml_parser::parse): Use std::move.
7075 * python/python-internal.h (gdbpy_convert_exception): Take a const
7076 reference.
7077 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7078 std::move.
7079 * python/py-utils.c (gdbpy_convert_exception): Take a const
7080 reference.
7081 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7082 Use std::move.
7083 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7084 Use std::move.
7085 * mi/mi-main.c (mi_print_exception): Take a const reference.
7086 * main.c (handle_command_errors): Take a const reference.
7087 * linespec.c (parse_linespec): Use std::move.
7088 * infcall.c (run_inferior_call): Use std::move.
7089 (call_function_by_hand_dummy): Use std::move.
7090 * exec.c (try_open_exec_file): Use std::move.
7091 * exceptions.h (exception_print, exception_fprintf)
7092 (exception_print_same): Update.
7093 * exceptions.c (print_exception, exception_print)
7094 (exception_fprintf, exception_print_same): Change parameters to
7095 const reference.
7096 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7097 * common/new-op.c: Use std::move.
7098 * common/common-exceptions.h (struct gdb_exception): Add move
7099 constructor.
7100 (struct gdb_exception_error, struct gdb_exception_quit, struct
7101 gdb_quit_bad_alloc): Change constructor to move constructor.
7102 (throw_exception): Change parameter to rvalue reference.
7103 * common/common-exceptions.c (throw_exception): Take rvalue
7104 reference.
7105 * cli/cli-interp.c (safe_execute_command): Use std::move.
7106 * breakpoint.c (insert_bp_location, location_to_sals): Use
7107 std::move.
7108
680d7fd5
TT
71092019-04-25 Tom Tromey <tromey@adacore.com>
7110
7111 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7112 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7113 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7114 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7115 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7116 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7117 guile/scm-value.c: Use unpack.
7118 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7119 gdbscm_gdb_exception.
7120 (gdbscm_throw_gdb_exception): Likewise.
7121 (struct gdbscm_gdb_exception): New.
7122 (unpack): New function.
7123 (gdbscm_wrap): Use unpack.
7124
c6fdd8b2
TT
71252019-04-25 Tom Tromey <tromey@adacore.com>
7126
7127 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7128 (gdb_rl_callback_handler): Use std::move.
7129 * common/common-exceptions.h (struct gdb_exception): Add move
7130 assignment operator.
7131 (throw_exception_sjlj): Change "exception" to const reference.
7132 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7133 (throw_exception_sjlj): Change "exception" to const reference.
7134
cc06b668
TT
71352019-04-25 Tom Tromey <tromey@adacore.com>
7136
7137 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7138 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7139 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7140 Update.
7141 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7142 Update.
7143 * mi/mi-interp.c (mi_interp::exec): Update.
7144 * linespec.c (parse_linespec): Update.
7145 * infcall.c (run_inferior_call): Update.
7146 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7147 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7148 (gdbscm_lookup_global_symbol): Update.
7149 * guile/scm-param.c (gdbscm_parameter_value): Update.
7150 * guile/scm-frame.c (gdbscm_frame_read_register)
7151 (gdbscm_frame_read_var): Update.
7152 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7153 * exec.c (try_open_exec_file): Update.
7154 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7155 (gdb_rl_callback_handler): Update.
7156 * common/common-exceptions.h (exception_none): Don't declare.
7157 * common/common-exceptions.c (exception_none): Don't define.
7158 (struct catcher) <exception>: Update.
7159 * cli/cli-interp.c (safe_execute_command): Update.
7160 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7161
cf532bd1
AT
71622019-04-25 Ali Tamur <tamur@google.com>
7163
7164 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7165 (read_attribute_value): Likewise.
7166 (dwarf2_read_addr_index): Update comment.
7167 (read_str_index): Add DW_FORM_strx.
7168 (dwarf2_string_attr): Likewise.
7169 (dwarf2_const_value_attr): Likewise.
7170 (dump_die_shallow): Likewise.
7171 (dwarf2_fetch_constant_bytes): Likewise.
7172 (skip_form_bytes): Likewise.
7173 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7174
82433e3e
SDJ
71752019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7176
7177 PR corefiles/11608
7178 PR corefiles/18187
7179 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7180 OFFSET. Verify if current mapping contains an ELF header.
7181 (linux_find_memory_regions_full): Adjust call to
7182 dump_mapping_p.
7183
723adb65
SL
71842019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7185 Kang Li <kanglictf@gmail.com>
7186
7187 PR gdb/21600
7188
7189 * dwarf2-frame.c (read_initial_length): Be consistent about using
7190 unsigned representation of length.
7191 (decode_frame_entry_1): Likewise. Check for wraparound of
7192 end pointer as well as buffer overflow.
7193
596179f7
SDJ
71942019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7195
7196 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7197 "vq".
7198
a59240a4
TT
71992019-04-24 Tom Tromey <tromey@adacore.com>
7200
7201 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7202
f872fdbb
AB
72032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7204
7205 * s12z-tdep.c (s12z_unwind_pc): Delete.
7206 (s12z_unwind_sp): Delete.
7207 (s12z_gdbarch_init): Don't register deleted functions with
7208 gdbarch.
7209
b614e6f3
AB
72102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7211
7212 * rl78-tdep.c (rl78_unwind_sp): Delete.
7213 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7214
14faed38
AB
72152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7218 (xstormy16_unwind_pc): Delete.
7219 (xstormy16_dummy_id): Delete.
7220 (xstormy16_gdbarch_init): Don't register deleted functions with
7221 gdbarch.
7222
541aad8a
AB
72232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7224
7225 * vax-tdep.c (vax_unwind_pc): Delete.
7226 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7227
29222070
AB
72282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7229
7230 * v850-tdep.c (v850_unwind_sp): Delete.
7231 (v850_unwind_pc): Delete.
7232 (v850_dummy_id): Delete.
7233 (v850_gdbarch_init): Don't register deleted functions with
7234 gdbarch.
7235
0f534d76
AB
72362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7237
7238 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7239 (tilegx_unwind_pc): Delete.
7240 (tilegx_unwind_dummy_id): Delete.
7241 (tilegx_gdbarch_init): Don't register deleted functions with
7242 gdbarch.
7243
1ba7b7f9
AB
72442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7245
7246 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7247 (tic6x_dummy_id): Delete.
7248 (tic6x_gdbarch_init): Don't register deleted functions with
7249 gdbarch.
7250
d31f262c
AB
72512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * sparc-tdep.c (sparc_unwind_pc): Delete.
7254 (sparc32_gdbarch_init): Don't register deleted function with
7255 gdbarch.
7256
6d14d64d
AB
72572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7258
7259 * sh-tdep.c (sh_unwind_sp): Delete.
7260 (sh_unwind_pc): Delete.
7261 (sh_dummy_id): Delete.
7262 (sh_gdbarch_init): Don't register deleted functions with
7263 gdbarch.
7264
a40dde9d
AB
72652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7266
7267 * score-tdep.c (score_unwind_sp): Delete.
7268 (score_unwind_pc): Delete.
7269 (score_dummy_id): Delete.
7270 (score_gdbarch_init): Don't register deleted functions with
7271 gdbarch.
7272
47c47d69
AB
72732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7274
7275 * rx-tdep.c (rx_unwind_pc): Delete.
7276 (rx_unwind_sp): Delete.
7277 (rx_dummy_id): Delete.
7278 (rx_gdbarch_init): Don't register deleted functions with
7279 gdbarch. Update comment.
7280
833a4480
AB
72812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7284 (rs6000_dummy_id): Delete.
7285 (rs6000_gdbarch_init): Don't register deleted functions with
7286 gdbarch.
7287
3f2cef49
AB
72882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * or1k-tdep.c (or1k_dummy_id): Delete.
7291 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7292
96acf884
AB
72932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 * nios2-tdep.c (nios2_dummy_id): Delete.
7296 (nios2_unwind_sp): Delete.
7297 (nios2_gdbarch_init): Don't register deleted functions with
7298 gdbarch.
7299
ca0ab0aa
AB
73002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7301
7302 * nds32-tdep.c (nds32_dummy_id): Delete.
7303 (nds32_unwind_pc): Delete.
7304 (nds32_unwind_sp): Delete.
7305 (nds32_gdbarch_init): Don't register deleted functions with
7306 gdbarch.
7307
c8259044
AB
73082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7309
7310 * msp430-tdep.c (msp430_unwind_pc): Delete.
7311 (msp430_unwind_sp): Delete.
7312 (msp430_dummy_id): Delete.
7313 (msp430_gdbarch_init): Don't register deleted functions with
7314 gdbarch.
7315
27f113c8
AB
73162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7317
7318 * moxie-tdep.c (moxie_unwind_sp): Delete.
7319 (moxie_unwind_pc): Delete.
7320 (moxie_dummy_id): Delete.
7321 (moxie_gdbarch_init): Don't register deleted functions with
7322 gdbarch.
7323
aee6c3cd
AB
73242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7327 (mn10300_unwind_pc): Delete.
7328 (mn10300_unwind_sp): Delete.
7329 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7330 mn10300_unwind_sp.
7331 (mn10300_frame_unwind_init): Don't register deleted functions with
7332 gdbarch.
7333
8e2b5aea
AB
73342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7335
7336 * mep-tdep.c (mep_unwind_pc): Delete.
7337 (mep_unwind_sp): Delete.
7338 (mep_dummy_id): Delete.
7339 (mep_gdbarch_init): Don't register deleted functions with
7340 gdbarch.
7341
43cf3ede
AB
73422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7343
7344 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7345 (m68hc11_unwind_sp): Delete.
7346 (m68hc11_gdbarch_init): Don't register deleted functions with
7347 gdbarch.
7348
5e79b7bb
AB
73492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7350
7351 * m32r-tdep.c (m32r_unwind_sp): Delete.
7352 (m32r_unwind_pc): Delete.
7353 (m32r_dummy_id): Delete.
7354 (m32r_gdbarch_init): Don't register deleted functions with
7355 gdbarch.
7356
89b268d8
AB
73572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7358
7359 * m32c-tdep.c (m32c_unwind_pc): Delete.
7360 (m32c_unwind_sp): Delete.
7361 (m32c_dummy_id): Delete.
7362 (m32c_gdbarch_init): Don't register deleted functions with
7363 gdbarch.
7364
946c28d2
AB
73652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7366
7367 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7368 (lm32_unwind_pc): Delete.
7369 (lm32_dummy_id): Delete.
7370 (lm32_gdbarch_init): Don't register deleted functions with
7371 gdbarch.
7372
bf12844a
AB
73732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7374
7375 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7376 (iq2000_unwind_pc): Delete.
7377 (iq2000_dummy_id): Delete.
7378 (iq2000_gdbarch_init): Don't register deleted functions with
7379 gdbarch.
7380
ecbc06d2
AB
73812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * nds32-tdep.c (nds32_type_align): Delete.
7384 (nds32_push_dummy_call): Use type_align instead.
7385
030197b4
AB
73862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * arm-tdep.c (arm_type_align): Only handle vector override case.
7389 (arm_push_dummy_call): Use type_align.
7390 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7391
b907456c
AB
73922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7393
7394 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7395 case.
7396 (pass_on_stack): Use type_align.
7397 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7398 function.
7399
9e97ba43
TT
74002019-04-23 Tom Tromey <tromey@adacore.com>
7401
7402 * dwarf2read.c (line_header::file_name_at): Remove unused
7403 overload.
7404
6892f601
TV
74052019-04-23 Tom de Vries <tdevries@suse.de>
7406
7407 PR gdb/24438
7408 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7409 invocation.
7410
336d760d
AT
7411
74122019-03-27 Ali Tamur <tamur@google.com>
7413
7414 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7415 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7416 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7417 (dwarf_expr_context::get_addr_index): Likewise
7418 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7419 (symbol_needs_eval_context::get_addr_index): Likewise
7420 (disassemble_dwarf_expression): Add DW_OP_addrx
7421 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7422 (read_cutu_die_from_dwo): Update comment
7423 (skip_one_die): Add DW_FORM_addrx
7424 (read_attribute_value): Likewise
7425 (var_decode_location): Add DW_OP_addrx
7426 (dwarf2_const_value_attr): Add DW_FORM_addrx
7427 (dump_die_shallow): Likewise
7428 (dwarf2_fetch_constant_bytes): Likewise
7429 (decode_locdesc): Add DW_OP_addrx
7430 (skip_form_bytes): Add DW_FORM_addrx
7431
ad9d13f8
AT
74322019-04-22 Ali Tamur <tamur@google.com>
7433
7434 * MAINTAINERS (Write After Approval): Add self.
7435
d70cc3ba
SM
74362019-04-22 Simon Marchi <simon.marchi@efficios.com>
7437
7438 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7439 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7440 (open_symbol_file_object): Likewise.
7441 (svr4_default_sos): Add info parameter.
7442 (svr4_read_so_list): Likewise.
7443 (svr4_current_sos_direct): Adjust functions calls to pass down
7444 info.
7445 (svr4_current_sos_1): Add info parameter.
7446 (svr4_current_sos): Call get_svr4_info, pass info down to
7447 svr4_current_sos_1.
7448 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7449 get_svr4_info.
7450 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7451 get_svr4_info.
7452 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7453 to get_svr4_info.
7454 (probes_table_remove_objfile_probes): Likewise.
7455 (register_solib_event_probe): Add info parameter.
7456 (solist_update_incremental): Pass info parameter down to
7457 svr4_read_so_list.
7458 (disable_probes_interface): Add info parameter.
7459 (svr4_handle_solib_event): Pass current_program_space to
7460 get_svr4_info. Adjust disable_probes_interface cleanup.
7461 (svr4_create_probe_breakpoints): Add info parameter, pass it
7462 down to register_solib_event_probe.
7463 (svr4_create_solib_event_breakpoints): Add info parameter,
7464 pass it down to svr4_create_probe_breakpoints.
7465 (enable_break): Pass info down to
7466 svr4_create_solib_event_breakpoints.
7467 (svr4_solib_create_inferior_hook): Pass current_program_space to
7468 get_svr4_info.
7469 (svr4_clear_solib): Likewise.
7470
7905fc35
PA
74712019-04-22 Pedro Alves <palves@redhat.com>
7472
7473 * solib-svr4.c (svr4_free_objfile_observer): New.
7474 (probe_and_action::objfile): New field.
7475 (probes_table_htab_remove_objfile_probes)
7476 (probes_table_remove_objfile_probes): New functions.
7477 (register_solib_event_probe): Add 'objfile' parameter. Store it
7478 in the new probe_and_action. Don't store the probe in 'lookup'.
7479 (svr4_create_probe_breakpoints): Pass objfile to
7480 register_solib_event_probe.
7481 (_initialize_svr4_solib): Register a free_objfile observer.
7482
fb881986
TT
74832019-04-19 Tom Tromey <tom@tromey.com>
7484
7485 * common/queue.h: Remove.
7486
8732db6c
TT
74872019-04-19 Tom Tromey <tom@tromey.com>
7488
7489 * event-loop.c: Don't include "common/queue.h".
7490
97dfbadd
TT
74912019-04-19 Tom Tromey <tom@tromey.com>
7492
7493 * remote.c (remote_target): Use delete.
7494 * remote-notif.h: Include <list>, not "common/queue.h".
7495 (notif_client_p): Remove typedef.
7496 (remote_notif_state): Add constructor, destructor, initializer.
7497 <notif_queue>: Now a std::list.
7498 (remote_notif_state_xfree): Don't declare.
7499 * remote-notif.c (remote_notif_process, handle_notification)
7500 (remote_notif_state_allocate): Update.
7501 (~remote_notif_state): Rename from remote_notif_state_xfree.
7502
cf250e36
TT
75032019-04-19 Tom Tromey <tom@tromey.com>
7504
7505 * symfile.c (reread_symbols): Update.
7506 * objfiles.c (objfile_register_static_link)
7507 (objfile_lookup_static_link): Update
7508 (~objfile) Don't delete static_links.
7509 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7510
61f4b350
TT
75112019-04-19 Tom Tromey <tom@tromey.com>
7512
7513 * type-stack.h (struct type_stack) <insert>: Constify string.
7514 * type-stack.c (type_stack::insert): Constify string.
7515 * gdbtypes.h (lookup_template_type): Update.
7516 (address_space_name_to_int): Update.
7517 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7518 const.
7519 (lookup_template_type): Make name const.
7520 * c-exp.y: Update rules.
7521 (lex_one_token, classify_name, classify_inner_name)
7522 (c_print_token): Update.
7523 * p-exp.y: Update rules.
7524 (yylex): Update.
7525 * f-exp.y: Update rules.
7526 (yylex): Update.
7527 * d-exp.y: Update rules.
7528 (lex_one_token, classify_name, classify_inner_name): Update.
7529 * parse.c (write_dollar_variable, copy_name): Return std::string.
7530 * parser-defs.h (copy_name): Change return type.
7531 * m2-exp.y: Update rules.
7532 (yylex): Update.
7533 * go-exp.y (lex_one_token): Update.
7534 Update rules.
7535 (classify_unsafe_function, classify_packaged_name)
7536 (classify_name, yylex): Update.
7537
189b8c2e
ST
75382019-04-19 Sergei Trofimovich <siarheit@google.com>
7539
7540 * configure.ac: add --enable-source-highlight switch.
7541 * configure: Regenerate.
7542 * top.c (print_gdb_version): plumb --enable-source-highlight
7543 status to "show configuration".
7544
8ecb59f8
TT
75452019-04-19 Tom Tromey <tromey@adacore.com>
7546
7547 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7548 Check ADA_TYPE_P.
7549 (empty_record, ada_template_to_fixed_record_type_1)
7550 (template_to_static_fixed_type)
7551 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7552 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7553 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7554 macros.
7555
62160ec9
TT
75562019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7557
7558 PR symtab/24423:
7559 * source.c (print_source_lines_base): Advance "iter" when a
7560 control character is seen.
7561
f2ae8bc8
PW
75622019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7563
7564 * inferior.h (struct infcall_suspend_state_deleter):
7565 Catch exception in destructor to avoid crash.
7566
d563b953
PW
75672019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7568
7569 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7570 close to the add_com "shell".
7571
dc34c897
TT
75722019-04-18 Tom Tromey <tromey@adacore.com>
7573
7574 * process-stratum-target.h (class process_stratum_target)
7575 <stratum>: Add "final".
7576
a12e5744
TT
75772019-04-17 Tom Tromey <tromey@adacore.com>
7578
7579 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7580 against nullptr before use.
7581
a7e559cc
AH
75822019-04-17 Alan Hayward <alan.hayward@arm.com>
7583
7584 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7585
c01660c6
AB
75862019-04-17 Jim Wilson <jimw@sifive.com>
7587 Andrew Burgess <andrew.burgess@embecosm.com>
7588
7589 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7590 code read might fail, assume 4-byte breakpoint in that case.
7591
4aa866af
LS
75922019-04-15 Leszek Swirski <leszeks@google.com>
7593
7594 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7595 rather than a hand-rolled POD check when checking for forced MEMORY
7596 classification.
7597
48574d91
AH
75982019-04-15 Alan Hayward <alan.hayward@arm.com>
7599
7600 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7601 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7602 function.
7603 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7604 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7605 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7606 declaration.
7607
4da037ef
AH
76082019-04-15 Alan Hayward <alan.hayward@arm.com>
7609
7610 * aarch64-linux-nat.c
7611 (aarch64_linux_nat_target::thread_architecture): Add override.
7612 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7613 each VQ.
7614
ccb8d7e8
AH
76152019-04-15 Alan Hayward <alan.hayward@arm.com>
7616
7617 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7618
35add35e
AB
76192019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7620
7621 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7622 target types of size 96-bits, add some additional comments, and
7623 check that the builtin type we found was the correct size.
7624
51196bbc
EZ
76252019-04-12 Eli Zaretskii <eliz@gnu.org>
7626
7627 * utils.c (prompt_for_continue): Don't restore the styling at the
7628 end, as applied_style has the wrong value. This fixes styling in
7629 long lists of file names that are interrupted by the "Continue?"
7630 prompt.
7631
62253a61
AB
76322019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7635 * c-lang.c (c_language_defn): Likewise.
7636 (cplus_language_defn): Likewise.
7637 (asm_language_defn): Likewise.
7638 (minimal_language_defn): Likewise.
7639 * d-lang.c (d_language_defn): Likewise.
7640 * f-lang.c (f_language_defn): Likewise.
7641 * go-lang.c (go_language_defn): Likewise.
7642 * language.c (unknown_language_defn): Likewise.
7643 (auto_language_defn): Likewise.
7644 * language.h (struct language_defn): Remove la_magic field.
7645 (LANG_MAGIC): Delete.
7646 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7647 * objc-lang.c (objc_language_defn): Likewise.
7648 * opencl-lang.c (opencl_language_defn): Likewise.
7649 * p-lang.c (pascal_language_defn): Likewise.
7650 * rust-lang.c (rust_language_defn): Likewise.
7651
a9158a86
AB
76522019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * riscv-tdep.c (riscv_type_align): New function.
7655 (riscv_type_alignment): Delete.
7656 (riscv_arg_location): Use 'type_align'.
7657 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7658
41077b66
AB
76592019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7660
7661 * gdbtypes.c (type_align): A struct with no non-static fields also
7662 has alignment of 1.
7663
9f0272f8
AB
76642019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7665
7666 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7667 component to 0.
7668 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7669 member.
7670 (riscv_struct_info::analyse): New implementation using new
7671 analyse_inner member function.
7672 (riscv_struct_info::field_offset): New member function.
7673 (riscv_struct_info::m_offsets): New member variable.
7674 (riscv_struct_info::analyse_inner): New private member function,
7675 takes the old implementation of riscv_struct_info::analyse but
7676 extended to track field offsets.
7677 (riscv_call_arg_struct): Update the struct folding special cases
7678 to handle cases where empty C++ structs, which are non-zero
7679 length, are found.
7680 (riscv_arg_location): Initialise the length of each location, a
7681 non-zero length now indicates the location is in use.
7682 (riscv_push_dummy_call): Allow for the first location having a
7683 non-zero offset when setting up arguments.
7684 (riscv_return_value): Likewise, but for return values.
7685
02cf60c7
TT
76862019-04-11 Tom Tromey <tromey@adacore.com>
7687
7688 * utils.c (internal_vproblem): Make "msg" const.
7689
68811f8f
AH
76902019-04-11 Alan Hayward <alan.hayward@arm.com>
7691
7692 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7693 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7694 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7695 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7696
3f52fdbc
KB
76972019-04-10 Kevin Buettner <kevinb@redhat.com>
7698
7699 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7700 function.
7701 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7702 of amd64_collect_native_gregset.
7703 (amd64_linux_nat_target::store_registers): Likewise.
7704
e9ad22ee
TT
77052019-04-10 Tom Tromey <tom@tromey.com>
7706
7707 * symtab.c (lookup_global_symbol_from_objfile)
7708 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7709 * objfiles.h (class separate_debug_iterator): New.
7710 (class separate_debug_range): New.
7711 (struct objfile) <separate_debug_objfiles>: New method.
7712 (objfile_separate_debug_iterate): Don't declare.
7713 * objfiles.c (separate_debug_iterator::operator++): Rename from
7714 objfile_separate_debug_iterate.
7715 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7716 iterator.
7717 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7718 iterator.
7719
ee371134
TT
77202019-04-10 Tom Tromey <tom@tromey.com>
7721
7722 * symfile.c (reread_symbols): Remove old comment.
7723 * objfiles.c (free_all_objfiles): Fix a typo.
7724
bf227d61
TT
77252019-04-10 Tom Tromey <tom@tromey.com>
7726
7727 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7728 * minsyms.c (lookup_minimal_symbol): Use foreach.
7729 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7730 (lookup_minimal_symbol_solib_trampoline): Likewise.
7731 * symfile.c (reread_symbols): Use foreach.
7732
8dc433a0
TT
77332019-04-09 Ivan Begert <ivanbegert@gmail.com>
7734 Tom Tromey <tromey@adacore.com>
7735
7736 PR rust/24414:
7737 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7738 (rust_lex_int_test): Change "value" to be LONGEST.
7739 (rust_lex_tests): Add test for long integer literal.
7740
9ab8741a
TT
77412019-04-09 Tom Tromey <tromey@adacore.com>
7742
7743 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7744 to bool.
7745 (extended_remote_target::attach): Update.
7746 (remote_target::remote_notice_new_inferior): Update.
7747 (remote_target::add_current_inferior_and_thread): Update.
7748 * inferior.c (exit_inferior_1): Use "false".
7749 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7750
e242fd12
SM
77512019-04-09 Simon Marchi <simon.marchi@efficios.com>
7752
9ca1957f 7753 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7754 the "start" command.
7755
2b0c8b01
KB
77562019-04-08 Kevin Buettner <kevinb@redhat.com>
7757
7758 * python/py-inferior.c (infpy_thread_from_thread_handle):
7759 Adjust comments to reflect renaming of thread_from_thread_handle
7760 to thread_from_handle. Adjust keywords. Fix type error message.
7761 (inferior_object_methods): Add thread_from_handle. Retain
7762 thread_from_thread_handle, but mark it as deprecated.
7763
50a82723
KB
77642019-04-08 Kevin Buettner <kevinb@redhat.com>
7765
7766 * gdbthread.h (find_thread_by_handle): Revise declaration.
7767 * thread.c (find_thread_by_handle): Likewise. Adjust
7768 implementation too.
7769 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7770 support for buffer objects as handles.
7771
cf63b016
KB
77722019-04-08 Kevin Buettner <kevinb@redhat.com>
7773
7774 * python/py-infthread.c (thpy_thread_handle): New function.
7775 (thread_object_methods): Register thpy_thread_handle.
7776
3d6c6204
KB
77772019-04-08 Kevin Buettner <kevinb@redhat.com>
7778
7779 * gdbthread.h (thread_to_thread_handle): Declare.
7780 * thread.c (gdbtypes.h): Include.
7781 (thread_to_thread_handle): New function.
7782
7783 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7784 (target_thread_info_to_thread_handle): Declare.
7785 * target.c (target_thread_info_to_thread_handle): New function.
7786 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7787 * target-delegates.c: Regenerate.
7788
7789 * linux-thread-db.c (class thread_db_target): Add method
7790 thread_info_to_thread_handle.
7791 (thread_db_target::thread_info_to_thread_handle): Define.
7792 * remote.c (class remote_target): Add new method
7793 thread_info_to_thread_handle.
7794 (remote_target::thread_info_to_thread_handle): Define.
7795
56be6ea8
PA
77962019-04-08 Pedro Alves <palves@redhat.com>
7797
7798 * common/common-exceptions.c (throw_exception): Don't create
7799 named object to throw; throw directly.
7800 (throw_it): Likewise. Don't initialize gdb_exception::message
7801 here, with new; pass FMT and AP to the ctor instead.
7802 * common/common-exceptions.h: Include <string>.
7803 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7804 const char *, va_list)): New ctor. Use std::make_shared.
7805 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7806 errors)): Delete.
7807 (gdb_exception_error::gdb_exception_error(enum errors, const char
7808 *, va_list)): New.
7809 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7810 Add assertion.
7811 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7812 errors)): Delete.
7813 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7814 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7815 Add assertion.
7816
eedc3f4f
TT
78172019-04-08 Tom Tromey <tom@tromey.com>
7818
7819 * valops.c (value_rtti_indirect_type): Replace throw_exception
7820 with throw.
7821 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7822 with throw.
7823 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7824 throw.
7825 * target.c (target_translate_tls_address): Replace throw_exception
7826 with throw.
7827 * stack.c (frame_apply_command_count): Replace throw_exception
7828 with throw.
7829 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7830 throw.
7831 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7832 with throw.
7833 * rs6000-tdep.c (rs6000_frame_cache)
7834 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7835 * remote.c: Replace throw_exception with throw.
7836 * record-full.c (record_full_message, record_full_wait_1)
7837 (record_full_restore): Replace throw_exception with throw.
7838 * record-btrace.c:
7839 (get_thread_current_frame_id, record_btrace_start_replaying)
7840 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7841 (cmd_record_btrace_start): Replace throw_exception with throw.
7842 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7843 throw.
7844 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7845 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7846 * linespec.c:
7847 (find_linespec_symbols): Replace throw_exception with throw.
7848 * infrun.c (displaced_step_prepare, resume): Replace
7849 throw_exception with throw.
7850 * infcmd.c (post_create_inferior): Replace throw_exception with
7851 throw.
7852 * inf-loop.c (inferior_event_handler): Replace throw_exception
7853 with throw.
7854 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7855 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7856 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7857 (get_prev_frame_always, get_frame_pc_if_available)
7858 (get_frame_address_in_block_if_available, get_frame_language):
7859 Replace throw_exception with throw.
7860 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7861 throw_exception with throw.
7862 * eval.c (fetch_subexp_value, evaluate_var_value)
7863 (evaluate_funcall, evaluate_subexp_standard): Replace
7864 throw_exception with throw.
7865 * dwarf2loc.c (call_site_find_chain)
7866 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7867 Replace throw_exception with throw.
7868 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7869 with throw.
7870 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7871 throw.
7872 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7873 * completer.c (complete_line_internal): Replace throw_exception
7874 with throw.
7875 * compile/compile-object-run.c (compile_object_run): Replace
7876 throw_exception with throw.
7877 * cli/cli-script.c (process_next_line): Replace throw_exception
7878 with throw.
7879 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7880 (btrace_enable, btrace_maint_update_pt_packets): Replace
7881 throw_exception with throw.
7882 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7883 throw_exception with throw.
7884 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7885 throw_exception with throw.
7886 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7887 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7888 * aarch64-tdep.c (aarch64_make_prologue_cache)
7889 (aarch64_make_stub_cache): Replace throw_exception with throw.
7890
26003a20
TT
78912019-04-08 Tom Tromey <tom@tromey.com>
7892
7893 * common/common-exceptions.c (throw_exception): Rename from
7894 throw_exception_cxx. Remove old copy. Make argument const.
7895 (throw_it): Create and throw exception objects directly.
7896 * common/common-exceptions.h (throw_exception): Make argument
7897 const.
7898 (struct gdb_exception_error): Add constructor.
7899 (struct gdb_exception_quit): Add constructor.
7900
d272eb37
TT
79012019-04-08 Tom Tromey <tom@tromey.com>
7902
7903 * common/common-exceptions.h (exception_rethrow): Don't declare.
7904 (TRY_SJLJ): Update comment.
7905 (TRY, CATCH, END_CATCH): Remove.
7906 * common/common-exceptions.c (exception_rethrow): Remove.
7907
230d2906
TT
79082019-04-08 Tom Tromey <tom@tromey.com>
7909
7910 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7911 Remove.
7912 (gdb_exception_error): Rename from
7913 gdb_exception_RETURN_MASK_ERROR.
7914 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7915 (gdb_quit_bad_alloc): Update.
7916 * aarch64-tdep.c: Update.
7917 * ada-lang.c: Update.
7918 * ada-typeprint.c: Update.
7919 * ada-valprint.c: Update.
7920 * amd64-tdep.c: Update.
7921 * arch-utils.c: Update.
7922 * break-catch-throw.c: Update.
7923 * breakpoint.c: Update.
7924 * btrace.c: Update.
7925 * c-varobj.c: Update.
7926 * cli/cli-cmds.c: Update.
7927 * cli/cli-interp.c: Update.
7928 * cli/cli-script.c: Update.
7929 * common/common-exceptions.c: Update.
7930 * common/new-op.c: Update.
7931 * common/selftest.c: Update.
7932 * compile/compile-c-symbols.c: Update.
7933 * compile/compile-cplus-symbols.c: Update.
7934 * compile/compile-object-load.c: Update.
7935 * compile/compile-object-run.c: Update.
7936 * completer.c: Update.
7937 * corelow.c: Update.
7938 * cp-abi.c: Update.
7939 * cp-support.c: Update.
7940 * cp-valprint.c: Update.
7941 * darwin-nat.c: Update.
7942 * disasm-selftests.c: Update.
7943 * dtrace-probe.c: Update.
7944 * dwarf-index-cache.c: Update.
7945 * dwarf-index-write.c: Update.
7946 * dwarf2-frame-tailcall.c: Update.
7947 * dwarf2-frame.c: Update.
7948 * dwarf2loc.c: Update.
7949 * dwarf2read.c: Update.
7950 * eval.c: Update.
7951 * event-loop.c: Update.
7952 * event-top.c: Update.
7953 * exec.c: Update.
7954 * f-valprint.c: Update.
7955 * fbsd-tdep.c: Update.
7956 * frame-unwind.c: Update.
7957 * frame.c: Update.
7958 * gdbtypes.c: Update.
7959 * gnu-v3-abi.c: Update.
7960 * guile/guile-internal.h: Update.
7961 * guile/scm-block.c: Update.
7962 * guile/scm-breakpoint.c: Update.
7963 * guile/scm-cmd.c: Update.
7964 * guile/scm-disasm.c: Update.
7965 * guile/scm-frame.c: Update.
7966 * guile/scm-lazy-string.c: Update.
7967 * guile/scm-math.c: Update.
7968 * guile/scm-param.c: Update.
7969 * guile/scm-ports.c: Update.
7970 * guile/scm-pretty-print.c: Update.
7971 * guile/scm-symbol.c: Update.
7972 * guile/scm-symtab.c: Update.
7973 * guile/scm-type.c: Update.
7974 * guile/scm-value.c: Update.
7975 * i386-linux-tdep.c: Update.
7976 * i386-tdep.c: Update.
7977 * inf-loop.c: Update.
7978 * infcall.c: Update.
7979 * infcmd.c: Update.
7980 * infrun.c: Update.
7981 * jit.c: Update.
7982 * language.c: Update.
7983 * linespec.c: Update.
7984 * linux-fork.c: Update.
7985 * linux-nat.c: Update.
7986 * linux-tdep.c: Update.
7987 * linux-thread-db.c: Update.
7988 * main.c: Update.
7989 * mi/mi-cmd-break.c: Update.
7990 * mi/mi-cmd-stack.c: Update.
7991 * mi/mi-interp.c: Update.
7992 * mi/mi-main.c: Update.
7993 * objc-lang.c: Update.
7994 * p-valprint.c: Update.
7995 * parse.c: Update.
7996 * ppc-linux-tdep.c: Update.
7997 * printcmd.c: Update.
7998 * python/py-arch.c: Update.
7999 * python/py-breakpoint.c: Update.
8000 * python/py-cmd.c: Update.
8001 * python/py-finishbreakpoint.c: Update.
8002 * python/py-frame.c: Update.
8003 * python/py-framefilter.c: Update.
8004 * python/py-gdb-readline.c: Update.
8005 * python/py-inferior.c: Update.
8006 * python/py-infthread.c: Update.
8007 * python/py-lazy-string.c: Update.
8008 * python/py-linetable.c: Update.
8009 * python/py-objfile.c: Update.
8010 * python/py-param.c: Update.
8011 * python/py-prettyprint.c: Update.
8012 * python/py-progspace.c: Update.
8013 * python/py-record-btrace.c: Update.
8014 * python/py-record.c: Update.
8015 * python/py-symbol.c: Update.
8016 * python/py-type.c: Update.
8017 * python/py-unwind.c: Update.
8018 * python/py-utils.c: Update.
8019 * python/py-value.c: Update.
8020 * python/python.c: Update.
8021 * record-btrace.c: Update.
8022 * record-full.c: Update.
8023 * remote-fileio.c: Update.
8024 * remote.c: Update.
8025 * riscv-tdep.c: Update.
8026 * rs6000-aix-tdep.c: Update.
8027 * rs6000-tdep.c: Update.
8028 * rust-exp.y: Update.
8029 * rust-lang.c: Update.
8030 * s390-tdep.c: Update.
8031 * selftest-arch.c: Update.
8032 * solib-dsbt.c: Update.
8033 * solib-frv.c: Update.
8034 * solib-spu.c: Update.
8035 * solib-svr4.c: Update.
8036 * solib.c: Update.
8037 * sparc64-linux-tdep.c: Update.
8038 * stack.c: Update.
8039 * symfile-mem.c: Update.
8040 * symmisc.c: Update.
8041 * target.c: Update.
8042 * thread.c: Update.
8043 * top.c: Update.
8044 * tracefile-tfile.c: Update.
8045 * tui/tui.c: Update.
8046 * typeprint.c: Update.
8047 * unittests/cli-utils-selftests.c: Update.
8048 * unittests/parse-connection-spec-selftests.c: Update.
8049 * valops.c: Update.
8050 * valprint.c: Update.
8051 * value.c: Update.
8052 * varobj.c: Update.
8053 * windows-nat.c: Update.
8054 * x86-linux-nat.c: Update.
8055 * xml-support.c: Update.
8056
a70b8144
TT
80572019-04-08 Tom Tromey <tom@tromey.com>
8058
8059 * xml-support.c: Use C++ exception handling.
8060 * x86-linux-nat.c: Use C++ exception handling.
8061 * windows-nat.c: Use C++ exception handling.
8062 * varobj.c: Use C++ exception handling.
8063 * value.c: Use C++ exception handling.
8064 * valprint.c: Use C++ exception handling.
8065 * valops.c: Use C++ exception handling.
8066 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8067 handling.
8068 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8069 * typeprint.c: Use C++ exception handling.
8070 * tui/tui.c: Use C++ exception handling.
8071 * tracefile-tfile.c: Use C++ exception handling.
8072 * top.c: Use C++ exception handling.
8073 * thread.c: Use C++ exception handling.
8074 * target.c: Use C++ exception handling.
8075 * symmisc.c: Use C++ exception handling.
8076 * symfile-mem.c: Use C++ exception handling.
8077 * stack.c: Use C++ exception handling.
8078 * sparc64-linux-tdep.c: Use C++ exception handling.
8079 * solib.c: Use C++ exception handling.
8080 * solib-svr4.c: Use C++ exception handling.
8081 * solib-spu.c: Use C++ exception handling.
8082 * solib-frv.c: Use C++ exception handling.
8083 * solib-dsbt.c: Use C++ exception handling.
8084 * selftest-arch.c: Use C++ exception handling.
8085 * s390-tdep.c: Use C++ exception handling.
8086 * rust-lang.c: Use C++ exception handling.
8087 * rust-exp.y: Use C++ exception handling.
8088 * rs6000-tdep.c: Use C++ exception handling.
8089 * rs6000-aix-tdep.c: Use C++ exception handling.
8090 * riscv-tdep.c: Use C++ exception handling.
8091 * remote.c: Use C++ exception handling.
8092 * remote-fileio.c: Use C++ exception handling.
8093 * record-full.c: Use C++ exception handling.
8094 * record-btrace.c: Use C++ exception handling.
8095 * python/python.c: Use C++ exception handling.
8096 * python/py-value.c: Use C++ exception handling.
8097 * python/py-utils.c: Use C++ exception handling.
8098 * python/py-unwind.c: Use C++ exception handling.
8099 * python/py-type.c: Use C++ exception handling.
8100 * python/py-symbol.c: Use C++ exception handling.
8101 * python/py-record.c: Use C++ exception handling.
8102 * python/py-record-btrace.c: Use C++ exception handling.
8103 * python/py-progspace.c: Use C++ exception handling.
8104 * python/py-prettyprint.c: Use C++ exception handling.
8105 * python/py-param.c: Use C++ exception handling.
8106 * python/py-objfile.c: Use C++ exception handling.
8107 * python/py-linetable.c: Use C++ exception handling.
8108 * python/py-lazy-string.c: Use C++ exception handling.
8109 * python/py-infthread.c: Use C++ exception handling.
8110 * python/py-inferior.c: Use C++ exception handling.
8111 * python/py-gdb-readline.c: Use C++ exception handling.
8112 * python/py-framefilter.c: Use C++ exception handling.
8113 * python/py-frame.c: Use C++ exception handling.
8114 * python/py-finishbreakpoint.c: Use C++ exception handling.
8115 * python/py-cmd.c: Use C++ exception handling.
8116 * python/py-breakpoint.c: Use C++ exception handling.
8117 * python/py-arch.c: Use C++ exception handling.
8118 * printcmd.c: Use C++ exception handling.
8119 * ppc-linux-tdep.c: Use C++ exception handling.
8120 * parse.c: Use C++ exception handling.
8121 * p-valprint.c: Use C++ exception handling.
8122 * objc-lang.c: Use C++ exception handling.
8123 * mi/mi-main.c: Use C++ exception handling.
8124 * mi/mi-interp.c: Use C++ exception handling.
8125 * mi/mi-cmd-stack.c: Use C++ exception handling.
8126 * mi/mi-cmd-break.c: Use C++ exception handling.
8127 * main.c: Use C++ exception handling.
8128 * linux-thread-db.c: Use C++ exception handling.
8129 * linux-tdep.c: Use C++ exception handling.
8130 * linux-nat.c: Use C++ exception handling.
8131 * linux-fork.c: Use C++ exception handling.
8132 * linespec.c: Use C++ exception handling.
8133 * language.c: Use C++ exception handling.
8134 * jit.c: Use C++ exception handling.
8135 * infrun.c: Use C++ exception handling.
8136 * infcmd.c: Use C++ exception handling.
8137 * infcall.c: Use C++ exception handling.
8138 * inf-loop.c: Use C++ exception handling.
8139 * i386-tdep.c: Use C++ exception handling.
8140 * i386-linux-tdep.c: Use C++ exception handling.
8141 * guile/scm-value.c: Use C++ exception handling.
8142 * guile/scm-type.c: Use C++ exception handling.
8143 * guile/scm-symtab.c: Use C++ exception handling.
8144 * guile/scm-symbol.c: Use C++ exception handling.
8145 * guile/scm-pretty-print.c: Use C++ exception handling.
8146 * guile/scm-ports.c: Use C++ exception handling.
8147 * guile/scm-param.c: Use C++ exception handling.
8148 * guile/scm-math.c: Use C++ exception handling.
8149 * guile/scm-lazy-string.c: Use C++ exception handling.
8150 * guile/scm-frame.c: Use C++ exception handling.
8151 * guile/scm-disasm.c: Use C++ exception handling.
8152 * guile/scm-cmd.c: Use C++ exception handling.
8153 * guile/scm-breakpoint.c: Use C++ exception handling.
8154 * guile/scm-block.c: Use C++ exception handling.
8155 * guile/guile-internal.h: Use C++ exception handling.
8156 * gnu-v3-abi.c: Use C++ exception handling.
8157 * gdbtypes.c: Use C++ exception handling.
8158 * frame.c: Use C++ exception handling.
8159 * frame-unwind.c: Use C++ exception handling.
8160 * fbsd-tdep.c: Use C++ exception handling.
8161 * f-valprint.c: Use C++ exception handling.
8162 * exec.c: Use C++ exception handling.
8163 * event-top.c: Use C++ exception handling.
8164 * event-loop.c: Use C++ exception handling.
8165 * eval.c: Use C++ exception handling.
8166 * dwarf2read.c: Use C++ exception handling.
8167 * dwarf2loc.c: Use C++ exception handling.
8168 * dwarf2-frame.c: Use C++ exception handling.
8169 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8170 * dwarf-index-write.c: Use C++ exception handling.
8171 * dwarf-index-cache.c: Use C++ exception handling.
8172 * dtrace-probe.c: Use C++ exception handling.
8173 * disasm-selftests.c: Use C++ exception handling.
8174 * darwin-nat.c: Use C++ exception handling.
8175 * cp-valprint.c: Use C++ exception handling.
8176 * cp-support.c: Use C++ exception handling.
8177 * cp-abi.c: Use C++ exception handling.
8178 * corelow.c: Use C++ exception handling.
8179 * completer.c: Use C++ exception handling.
8180 * compile/compile-object-run.c: Use C++ exception handling.
8181 * compile/compile-object-load.c: Use C++ exception handling.
8182 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8183 * compile/compile-c-symbols.c: Use C++ exception handling.
8184 * common/selftest.c: Use C++ exception handling.
8185 * common/new-op.c: Use C++ exception handling.
8186 * cli/cli-script.c: Use C++ exception handling.
8187 * cli/cli-interp.c: Use C++ exception handling.
8188 * cli/cli-cmds.c: Use C++ exception handling.
8189 * c-varobj.c: Use C++ exception handling.
8190 * btrace.c: Use C++ exception handling.
8191 * breakpoint.c: Use C++ exception handling.
8192 * break-catch-throw.c: Use C++ exception handling.
8193 * arch-utils.c: Use C++ exception handling.
8194 * amd64-tdep.c: Use C++ exception handling.
8195 * ada-valprint.c: Use C++ exception handling.
8196 * ada-typeprint.c: Use C++ exception handling.
8197 * ada-lang.c: Use C++ exception handling.
8198 * aarch64-tdep.c: Use C++ exception handling.
8199
3d6e9d23
TT
82002019-04-08 Tom Tromey <tom@tromey.com>
8201
8202 * xml-support.c (gdb_xml_parser::parse): Update.
8203 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8204 * value.c (show_convenience): Update.
8205 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8206 (test_parse_flags_qcs): Update.
8207 * thread.c (thr_try_catch_cmd): Update.
8208 * target.c (target_translate_tls_address): Update.
8209 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8210 (info_frame_command_core, frame_apply_command_count): Update.
8211 * rust-exp.y (rust_lex_exception_test): Update.
8212 * riscv-tdep.c (riscv_print_one_register_info): Update.
8213 * remote.c (remote_target::enable_btrace): Update.
8214 * record-btrace.c (record_btrace_enable_warn): Update.
8215 * python/py-utils.c (gdbpy_convert_exception): Update.
8216 * printcmd.c (do_one_display, print_variable_and_value): Update.
8217 * mi/mi-main.c (mi_print_exception): Update.
8218 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8219 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8220 * linux-nat.c (linux_nat_target::attach): Update.
8221 * linux-fork.c (class scoped_switch_fork_info): Update.
8222 * infrun.c (displaced_step_prepare): Update.
8223 * infcall.c (call_function_by_hand_dummy): Update.
8224 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8225 * gnu-v3-abi.c (print_one_vtable): Update.
8226 * frame.c (get_prev_frame_always): Update.
8227 * f-valprint.c (info_common_command_for_block): Update.
8228 * exec.c (try_open_exec_file): Update.
8229 * exceptions.c (print_exception, exception_print)
8230 (exception_fprintf, exception_print_same): Update.
8231 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8232 * dwarf-index-cache.c (index_cache::store)
8233 (index_cache::lookup_gdb_index): Update.
8234 * darwin-nat.c (maybe_cache_shell): Update.
8235 * cp-valprint.c (cp_print_value_fields): Update.
8236 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8237 (gcc_cplus_symbol_address): Update.
8238 * compile/compile-c-symbols.c (gcc_convert_symbol)
8239 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8240 * common/selftest.c: Update.
8241 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8242 a std::string.
8243 (exception_try_scope_entry, exception_try_scope_exit): Don't
8244 declare.
8245 (struct exception_try_scope): Remove.
8246 (TRY): Don't use exception_try_scope.
8247 (struct gdb_exception): Add constructor, operator=.
8248 <what>: New method.
8249 (struct gdb_exception_RETURN_MASK_ALL)
8250 (struct gdb_exception_RETURN_MASK_ERROR)
8251 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8252 (struct gdb_quit_bad_alloc): Update.
8253 * common/common-exceptions.c (exception_none): Change
8254 initializer.
8255 (struct catcher) <state, exception>: Initialize inline.
8256 <prev>: Remove member.
8257 (current_catcher): Remove.
8258 (catchers): New global.
8259 (exceptions_state_mc_init): Simplify.
8260 (catcher_pop): Remove.
8261 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8262 (try_scope_depth, exception_try_scope_entry)
8263 (exception_try_scope_exit): Remove.
8264 (throw_exception_sjlj): Update.
8265 (exception_messages, exception_messages_size): Remove.
8266 (throw_it): Simplify.
8267 (gdb_exception_sliced_copy): Remove.
8268 (throw_exception_cxx): Update.
8269 * cli/cli-script.c (script_from_file): Update.
8270 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8271 Update.
8272 * ada-valprint.c (ada_val_print): Update.
8273 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8274 (create_excep_cond_exprs): Update.
8275
c5c10118
TT
82762019-04-08 Tom Tromey <tom@tromey.com>
8277
8278 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8279 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8280 (TRY, CATCH, END_CATCH): Remove some definitions.
8281 * common/common-exceptions.c: Don't use GDB_XCPT.
8282 (catcher_list_size): Remove.
8283 (throw_exception, throw_it): Simplify.
8284
4de283e4
TT
82852019-04-05 Tom Tromey <tom@tromey.com>
8286
8287 Revert the header-sorting patch.
8288 * ft32-tdep.c: Revert.
8289 * frv-tdep.c: Revert.
8290 * frv-linux-tdep.c: Revert.
8291 * frame.c: Revert.
8292 * frame-unwind.c: Revert.
8293 * frame-base.c: Revert.
8294 * fork-child.c: Revert.
8295 * findvar.c: Revert.
8296 * findcmd.c: Revert.
8297 * filesystem.c: Revert.
8298 * filename-seen-cache.h: Revert.
8299 * filename-seen-cache.c: Revert.
8300 * fbsd-tdep.c: Revert.
8301 * fbsd-nat.h: Revert.
8302 * fbsd-nat.c: Revert.
8303 * f-valprint.c: Revert.
8304 * f-typeprint.c: Revert.
8305 * f-lang.c: Revert.
8306 * extension.h: Revert.
8307 * extension.c: Revert.
8308 * extension-priv.h: Revert.
8309 * expprint.c: Revert.
8310 * exec.h: Revert.
8311 * exec.c: Revert.
8312 * exceptions.c: Revert.
8313 * event-top.c: Revert.
8314 * event-loop.c: Revert.
8315 * eval.c: Revert.
8316 * elfread.c: Revert.
8317 * dwarf2read.h: Revert.
8318 * dwarf2read.c: Revert.
8319 * dwarf2loc.c: Revert.
8320 * dwarf2expr.h: Revert.
8321 * dwarf2expr.c: Revert.
8322 * dwarf2-frame.c: Revert.
8323 * dwarf2-frame-tailcall.c: Revert.
8324 * dwarf-index-write.h: Revert.
8325 * dwarf-index-write.c: Revert.
8326 * dwarf-index-common.c: Revert.
8327 * dwarf-index-cache.h: Revert.
8328 * dwarf-index-cache.c: Revert.
8329 * dummy-frame.c: Revert.
8330 * dtrace-probe.c: Revert.
8331 * disasm.h: Revert.
8332 * disasm.c: Revert.
8333 * disasm-selftests.c: Revert.
8334 * dictionary.c: Revert.
8335 * dicos-tdep.c: Revert.
8336 * demangle.c: Revert.
8337 * dcache.h: Revert.
8338 * dcache.c: Revert.
8339 * darwin-nat.h: Revert.
8340 * darwin-nat.c: Revert.
8341 * darwin-nat-info.c: Revert.
8342 * d-valprint.c: Revert.
8343 * d-namespace.c: Revert.
8344 * d-lang.c: Revert.
8345 * ctf.c: Revert.
8346 * csky-tdep.c: Revert.
8347 * csky-linux-tdep.c: Revert.
8348 * cris-tdep.c: Revert.
8349 * cris-linux-tdep.c: Revert.
8350 * cp-valprint.c: Revert.
8351 * cp-support.c: Revert.
8352 * cp-namespace.c: Revert.
8353 * cp-abi.c: Revert.
8354 * corelow.c: Revert.
8355 * corefile.c: Revert.
8356 * continuations.c: Revert.
8357 * completer.h: Revert.
8358 * completer.c: Revert.
8359 * complaints.c: Revert.
8360 * coffread.c: Revert.
8361 * coff-pe-read.c: Revert.
8362 * cli-out.h: Revert.
8363 * cli-out.c: Revert.
8364 * charset.c: Revert.
8365 * c-varobj.c: Revert.
8366 * c-valprint.c: Revert.
8367 * c-typeprint.c: Revert.
8368 * c-lang.c: Revert.
8369 * buildsym.c: Revert.
8370 * buildsym-legacy.c: Revert.
8371 * build-id.h: Revert.
8372 * build-id.c: Revert.
8373 * btrace.c: Revert.
8374 * bsd-uthread.c: Revert.
8375 * breakpoint.h: Revert.
8376 * breakpoint.c: Revert.
8377 * break-catch-throw.c: Revert.
8378 * break-catch-syscall.c: Revert.
8379 * break-catch-sig.c: Revert.
8380 * blockframe.c: Revert.
8381 * block.c: Revert.
8382 * bfin-tdep.c: Revert.
8383 * bfin-linux-tdep.c: Revert.
8384 * bfd-target.c: Revert.
8385 * bcache.c: Revert.
8386 * ax-general.c: Revert.
8387 * ax-gdb.h: Revert.
8388 * ax-gdb.c: Revert.
8389 * avr-tdep.c: Revert.
8390 * auxv.c: Revert.
8391 * auto-load.c: Revert.
8392 * arm-wince-tdep.c: Revert.
8393 * arm-tdep.c: Revert.
8394 * arm-symbian-tdep.c: Revert.
8395 * arm-pikeos-tdep.c: Revert.
8396 * arm-obsd-tdep.c: Revert.
8397 * arm-nbsd-tdep.c: Revert.
8398 * arm-nbsd-nat.c: Revert.
8399 * arm-linux-tdep.c: Revert.
8400 * arm-linux-nat.c: Revert.
8401 * arm-fbsd-tdep.c: Revert.
8402 * arm-fbsd-nat.c: Revert.
8403 * arm-bsd-tdep.c: Revert.
8404 * arch-utils.c: Revert.
8405 * arc-tdep.c: Revert.
8406 * arc-newlib-tdep.c: Revert.
8407 * annotate.h: Revert.
8408 * annotate.c: Revert.
8409 * amd64-windows-tdep.c: Revert.
8410 * amd64-windows-nat.c: Revert.
8411 * amd64-tdep.c: Revert.
8412 * amd64-sol2-tdep.c: Revert.
8413 * amd64-obsd-tdep.c: Revert.
8414 * amd64-obsd-nat.c: Revert.
8415 * amd64-nbsd-tdep.c: Revert.
8416 * amd64-nbsd-nat.c: Revert.
8417 * amd64-nat.c: Revert.
8418 * amd64-linux-tdep.c: Revert.
8419 * amd64-linux-nat.c: Revert.
8420 * amd64-fbsd-tdep.c: Revert.
8421 * amd64-fbsd-nat.c: Revert.
8422 * amd64-dicos-tdep.c: Revert.
8423 * amd64-darwin-tdep.c: Revert.
8424 * amd64-bsd-nat.c: Revert.
8425 * alpha-tdep.c: Revert.
8426 * alpha-obsd-tdep.c: Revert.
8427 * alpha-nbsd-tdep.c: Revert.
8428 * alpha-mdebug-tdep.c: Revert.
8429 * alpha-linux-tdep.c: Revert.
8430 * alpha-linux-nat.c: Revert.
8431 * alpha-bsd-tdep.c: Revert.
8432 * alpha-bsd-nat.c: Revert.
8433 * aix-thread.c: Revert.
8434 * agent.c: Revert.
8435 * addrmap.c: Revert.
8436 * ada-varobj.c: Revert.
8437 * ada-valprint.c: Revert.
8438 * ada-typeprint.c: Revert.
8439 * ada-tasks.c: Revert.
8440 * ada-lang.c: Revert.
8441 * aarch64-tdep.c: Revert.
8442 * aarch64-ravenscar-thread.c: Revert.
8443 * aarch64-newlib-tdep.c: Revert.
8444 * aarch64-linux-tdep.c: Revert.
8445 * aarch64-linux-nat.c: Revert.
8446 * aarch64-fbsd-tdep.c: Revert.
8447 * aarch64-fbsd-nat.c: Revert.
8448 * aarch32-linux-nat.c: Revert.
8449
d55e5aa6
TT
84502019-04-05 Tom Tromey <tom@tromey.com>
8451
8452 * ft32-tdep.c: Sort headers.
8453 * frv-tdep.c: Sort headers.
8454 * frv-linux-tdep.c: Sort headers.
8455 * frame.c: Sort headers.
8456 * frame-unwind.c: Sort headers.
8457 * frame-base.c: Sort headers.
8458 * fork-child.c: Sort headers.
8459 * findvar.c: Sort headers.
8460 * findcmd.c: Sort headers.
8461 * filesystem.c: Sort headers.
8462 * filename-seen-cache.h: Sort headers.
8463 * filename-seen-cache.c: Sort headers.
8464 * fbsd-tdep.c: Sort headers.
8465 * fbsd-nat.h: Sort headers.
8466 * fbsd-nat.c: Sort headers.
8467 * f-valprint.c: Sort headers.
8468 * f-typeprint.c: Sort headers.
8469 * f-lang.c: Sort headers.
8470 * extension.h: Sort headers.
8471 * extension.c: Sort headers.
8472 * extension-priv.h: Sort headers.
8473 * expprint.c: Sort headers.
8474 * exec.h: Sort headers.
8475 * exec.c: Sort headers.
8476 * exceptions.c: Sort headers.
8477 * event-top.c: Sort headers.
8478 * event-loop.c: Sort headers.
8479 * eval.c: Sort headers.
8480 * elfread.c: Sort headers.
8481 * dwarf2read.h: Sort headers.
8482 * dwarf2read.c: Sort headers.
8483 * dwarf2loc.c: Sort headers.
8484 * dwarf2expr.h: Sort headers.
8485 * dwarf2expr.c: Sort headers.
8486 * dwarf2-frame.c: Sort headers.
8487 * dwarf2-frame-tailcall.c: Sort headers.
8488 * dwarf-index-write.h: Sort headers.
8489 * dwarf-index-write.c: Sort headers.
8490 * dwarf-index-common.c: Sort headers.
8491 * dwarf-index-cache.h: Sort headers.
8492 * dwarf-index-cache.c: Sort headers.
8493 * dummy-frame.c: Sort headers.
8494 * dtrace-probe.c: Sort headers.
8495 * disasm.h: Sort headers.
8496 * disasm.c: Sort headers.
8497 * disasm-selftests.c: Sort headers.
8498 * dictionary.c: Sort headers.
8499 * dicos-tdep.c: Sort headers.
8500 * demangle.c: Sort headers.
8501 * dcache.h: Sort headers.
8502 * dcache.c: Sort headers.
8503 * darwin-nat.h: Sort headers.
8504 * darwin-nat.c: Sort headers.
8505 * darwin-nat-info.c: Sort headers.
8506 * d-valprint.c: Sort headers.
8507 * d-namespace.c: Sort headers.
8508 * d-lang.c: Sort headers.
8509 * ctf.c: Sort headers.
8510 * csky-tdep.c: Sort headers.
8511 * csky-linux-tdep.c: Sort headers.
8512 * cris-tdep.c: Sort headers.
8513 * cris-linux-tdep.c: Sort headers.
8514 * cp-valprint.c: Sort headers.
8515 * cp-support.c: Sort headers.
8516 * cp-namespace.c: Sort headers.
8517 * cp-abi.c: Sort headers.
8518 * corelow.c: Sort headers.
8519 * corefile.c: Sort headers.
8520 * continuations.c: Sort headers.
8521 * completer.h: Sort headers.
8522 * completer.c: Sort headers.
8523 * complaints.c: Sort headers.
8524 * coffread.c: Sort headers.
8525 * coff-pe-read.c: Sort headers.
8526 * cli-out.h: Sort headers.
8527 * cli-out.c: Sort headers.
8528 * charset.c: Sort headers.
8529 * c-varobj.c: Sort headers.
8530 * c-valprint.c: Sort headers.
8531 * c-typeprint.c: Sort headers.
8532 * c-lang.c: Sort headers.
8533 * buildsym.c: Sort headers.
8534 * buildsym-legacy.c: Sort headers.
8535 * build-id.h: Sort headers.
8536 * build-id.c: Sort headers.
8537 * btrace.c: Sort headers.
8538 * bsd-uthread.c: Sort headers.
8539 * breakpoint.h: Sort headers.
8540 * breakpoint.c: Sort headers.
8541 * break-catch-throw.c: Sort headers.
8542 * break-catch-syscall.c: Sort headers.
8543 * break-catch-sig.c: Sort headers.
8544 * blockframe.c: Sort headers.
8545 * block.c: Sort headers.
8546 * bfin-tdep.c: Sort headers.
8547 * bfin-linux-tdep.c: Sort headers.
8548 * bfd-target.c: Sort headers.
8549 * bcache.c: Sort headers.
8550 * ax-general.c: Sort headers.
8551 * ax-gdb.h: Sort headers.
8552 * ax-gdb.c: Sort headers.
8553 * avr-tdep.c: Sort headers.
8554 * auxv.c: Sort headers.
8555 * auto-load.c: Sort headers.
8556 * arm-wince-tdep.c: Sort headers.
8557 * arm-tdep.c: Sort headers.
8558 * arm-symbian-tdep.c: Sort headers.
8559 * arm-pikeos-tdep.c: Sort headers.
8560 * arm-obsd-tdep.c: Sort headers.
8561 * arm-nbsd-tdep.c: Sort headers.
8562 * arm-nbsd-nat.c: Sort headers.
8563 * arm-linux-tdep.c: Sort headers.
8564 * arm-linux-nat.c: Sort headers.
8565 * arm-fbsd-tdep.c: Sort headers.
8566 * arm-fbsd-nat.c: Sort headers.
8567 * arm-bsd-tdep.c: Sort headers.
8568 * arch-utils.c: Sort headers.
8569 * arc-tdep.c: Sort headers.
8570 * arc-newlib-tdep.c: Sort headers.
8571 * annotate.h: Sort headers.
8572 * annotate.c: Sort headers.
8573 * amd64-windows-tdep.c: Sort headers.
8574 * amd64-windows-nat.c: Sort headers.
8575 * amd64-tdep.c: Sort headers.
8576 * amd64-sol2-tdep.c: Sort headers.
8577 * amd64-obsd-tdep.c: Sort headers.
8578 * amd64-obsd-nat.c: Sort headers.
8579 * amd64-nbsd-tdep.c: Sort headers.
8580 * amd64-nbsd-nat.c: Sort headers.
8581 * amd64-nat.c: Sort headers.
8582 * amd64-linux-tdep.c: Sort headers.
8583 * amd64-linux-nat.c: Sort headers.
8584 * amd64-fbsd-tdep.c: Sort headers.
8585 * amd64-fbsd-nat.c: Sort headers.
8586 * amd64-dicos-tdep.c: Sort headers.
8587 * amd64-darwin-tdep.c: Sort headers.
8588 * amd64-bsd-nat.c: Sort headers.
8589 * alpha-tdep.c: Sort headers.
8590 * alpha-obsd-tdep.c: Sort headers.
8591 * alpha-nbsd-tdep.c: Sort headers.
8592 * alpha-mdebug-tdep.c: Sort headers.
8593 * alpha-linux-tdep.c: Sort headers.
8594 * alpha-linux-nat.c: Sort headers.
8595 * alpha-bsd-tdep.c: Sort headers.
8596 * alpha-bsd-nat.c: Sort headers.
8597 * aix-thread.c: Sort headers.
8598 * agent.c: Sort headers.
8599 * addrmap.c: Sort headers.
8600 * ada-varobj.c: Sort headers.
8601 * ada-valprint.c: Sort headers.
8602 * ada-typeprint.c: Sort headers.
8603 * ada-tasks.c: Sort headers.
8604 * ada-lang.c: Sort headers.
8605 * aarch64-tdep.c: Sort headers.
8606 * aarch64-ravenscar-thread.c: Sort headers.
8607 * aarch64-newlib-tdep.c: Sort headers.
8608 * aarch64-linux-tdep.c: Sort headers.
8609 * aarch64-linux-nat.c: Sort headers.
8610 * aarch64-fbsd-tdep.c: Sort headers.
8611 * aarch64-fbsd-nat.c: Sort headers.
8612 * aarch32-linux-nat.c: Sort headers.
8613
699bd4cf
TT
86142019-04-04 Tom Tromey <tom@tromey.com>
8615
8616 * varobj.c (varobj_create): Update.
8617 * rust-exp.y (struct rust_parser) <update_innermost_block,
8618 lookup_symbol>: New methods.
8619 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8620 Rename.
8621 (rust_parser::rust_lookup_type)
8622 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8623 * printcmd.c (display_command, do_one_display): Update.
8624 * parser-defs.h (struct parser_state) <parser_state>: Add
8625 "tracker" parameter.
8626 (block_tracker): New member.
8627 (class innermost_block_tracker) <innermost_block_tracker>: Add
8628 "types" parameter.
8629 <reset>: Remove method.
8630 (innermost_block): Don't declare.
8631 (null_post_parser): Update.
8632 * parse.c (innermost_block): Remove global.
8633 (write_dollar_variable): Update.
8634 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8635 Remove "tracker_types" parameter.
8636 (parse_expression): Add "tracker" parameter.
8637 (parse_expression_for_completion): Update.
8638 (null_post_parser): Add "tracker" parameter.
8639 * p-exp.y: Update rules.
8640 * m2-exp.y: Update rules.
8641 * language.h (struct language_defn) <la_post_parser>: Add
8642 "tracker" parameter.
8643 * go-exp.y: Update rules.
8644 * f-exp.y: Update rules.
8645 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8646 parameter.
8647 * d-exp.y: Update rules.
8648 * c-exp.y: Update rules.
8649 * breakpoint.c (set_breakpoint_condition): Create an
8650 innermost_block_tracker.
8651 (watch_command_1): Likewise.
8652 * ada-lang.c (resolve): Add "tracker" parameter.
8653 (resolve_subexp): Likewise.
8654 * ada-exp.y (write_var_from_sym): Update.
8655
dac43e32
TT
86562019-04-04 Tom Tromey <tom@tromey.com>
8657
8658 * type-stack.h: New file.
8659 * type-stack.c: New file.
8660 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8661 type-stack.h.
8662 (insert_into_type_stack, insert_type, push_type, push_type_int)
8663 (insert_type_address_space, pop_type, pop_type_int)
8664 (pop_typelist, pop_type_stack, append_type_stack)
8665 (push_type_stack, get_type_stack, push_typelist)
8666 (follow_type_instance_flags, follow_types): Don't declare.
8667 * parse.c (type_stack): Remove global.
8668 (parse_exp_in_context): Update.
8669 (insert_into_type_stack, insert_type, push_type, push_type_int)
8670 (insert_type_address_space, pop_type, pop_type_int)
8671 (pop_typelist, pop_type_stack, append_type_stack)
8672 (push_type_stack, get_type_stack, push_typelist)
8673 (follow_type_instance_flags, follow_types): Remove (moved to
8674 type-stack.c).
8675 * f-exp.y (type_stack): New global.
8676 Update rules.
8677 (push_kind_type, f_parse): Update.
8678 * d-exp.y (type_stack): New global.
8679 Update rules.
8680 (d_parse): Update.
8681 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8682 Update rules.
8683 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8684 (HFILES_NO_SRCDIR): Add type-stack.h.
8685
2a612529
TT
86862019-04-04 Tom Tromey <tom@tromey.com>
8687
8688 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8689 (rust_parser::convert_ast_to_expression, rust_parse)
8690 (rust_lex_test_completion, rust_lex_tests): Update.
8691 * parser-defs.h (struct expr_completion_state): New.
8692 (struct parser_state) <parser_state>: Add completion parameter.
8693 <mark_struct_expression, mark_completion_tag>: New methods.
8694 <parse_completion, m_completion_state>: New members.
8695 (prefixify_expression, null_post_parser): Update.
8696 (mark_struct_expression, mark_completion_tag): Don't declare.
8697 * parse.c (parse_completion, expout_last_struct)
8698 (expout_tag_completion_type, expout_completion_name): Remove
8699 globals.
8700 (parser_state::mark_struct_expression)
8701 (parser_state::mark_completion_tag): Now methods.
8702 (prefixify_expression): Add last_struct parameter.
8703 (prefixify_subexp): Likewise.
8704 (parse_exp_1): Update.
8705 (parse_exp_in_context): Add cstate parameter. Update.
8706 (parse_expression_for_completion): Create an
8707 expr_completion_state.
8708 (null_post_parser): Add "completion" parameter.
8709 * p-exp.y: Update rules.
8710 (yylex): Update.
8711 * language.h (struct language_defn) <la_post_parser>: Add
8712 "completing" parameter.
8713 * go-exp.y: Update rules.
8714 (lex_one_token): Update.
8715 * expression.h (parse_completion): Don't declare.
8716 * d-exp.y: Update rules.
8717 (lex_one_token): Update rules.
8718 * c-exp.y: Update rules.
8719 (lex_one_token): Update.
8720 * ada-lang.c (resolve): Add "parse_completion" parameter.
8721 (resolve_subexp): Likewise.
8722 (ada_resolve_function): Likewise.
8723
43476f0b
TT
87242019-04-04 Tom Tromey <tom@tromey.com>
8725
8726 * parser-defs.h (struct parser_state) <start_arglist,
8727 end_arglist>: New methods.
8728 <arglist_len, m_funcall_chain>: New members.
8729 (arglist_len, start_arglist, end_arglist): Don't declare.
8730 * parse.c (arglist_len, funcall_chain): Remove global.
8731 (start_arglist, end_arglist): Remove functions.
8732 (parse_exp_in_context): Update.
8733 * p-exp.y: Update rules.
8734 * m2-exp.y: Update rules.
8735 * go-exp.y: Update rules.
8736 * f-exp.y: Update rules.
8737 * d-exp.y: Update rules.
8738 * c-exp.y: Update rules.
8739
5776fca3
TT
87402019-04-04 Tom Tromey <tom@tromey.com>
8741
8742 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8743 lex_operator, push_back>: New methods.
8744 Update all rules.
8745 (rust_parser::lex_hex, lex_escape): Rename and update.
8746 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8747 (rust_parser::lex_operator): Rename and update.
8748 (rust_parser::lex_number, rustyylex, rustyyerror)
8749 (rust_lex_test_init, rust_lex_test_sequence)
8750 (rust_lex_test_push_back, rust_lex_tests): Update.
8751 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8752 parameter.
8753 <lexptr, prev_lexptr>: New members.
8754 (lexptr, prev_lexptr): Don't declare.
8755 * parse.c (lexptr, prev_lexptr): Remove globals.
8756 (parse_exp_in_context): Update.
8757 * p-exp.y (yylex, yyerror): Update.
8758 * m2-exp.y (parse_number, yylex, yyerror): Update.
8759 * go-exp.y (lex_one_token, yyerror): Update.
8760 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8761 * d-exp.y (lex_one_token, yyerror): Update.
8762 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8763 (lex_one_token, yyerror): Update.
8764 * ada-lex.l (YY_INPUT): Update.
8765 (rewind_to_char): Update.
8766 * ada-exp.y (yyerror): Update.
8767
8621b685
TT
87682019-04-04 Tom Tromey <tom@tromey.com>
8769
8770 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8771 * parser-defs.h (struct parser_state) <parser_state>: Add new
8772 parameter.
8773 <comma_terminates>: New member.
8774 (comma_terminates): Don't declare global.
8775 * parse.c (comma_terminates): Remove global.
8776 (parse_exp_in_context): Update.
8777 * p-exp.y (yylex): Update.
8778 * m2-exp.y (yylex): Update.
8779 * go-exp.y (lex_one_token): Update.
8780 * f-exp.y (yylex): Update.
8781 * d-exp.y (lex_one_token): Update.
8782 * c-exp.y (lex_one_token): Update.
8783 * ada-lex.l: Update.
8784
28aaf3fd
TT
87852019-04-04 Tom Tromey <tom@tromey.com>
8786
8787 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8788 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8789 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8790 * parser-defs.h (paren_depth): Don't declare.
8791 * parse.c (paren_depth): Remove global.
8792 (parse_exp_in_context): Update.
8793 * p-exp.y (paren_depth): New global.
8794 (pascal_parse): Initialize it.
8795 * m2-exp.y (paren_depth): New global.
8796 (m2_parse): Initialize it.
8797 * go-exp.y (paren_depth): New global.
8798 (go_parse): Initialize it.
8799 * f-exp.y (paren_depth): New global.
8800 (f_parse): Initialize it.
8801 * d-exp.y (paren_depth): New global.
8802 (d_parse): Initialize it.
8803 * c-exp.y (paren_depth): New global.
8804 (c_parse): Initialize it.
8805 * ada-lex.l (paren_depth): New global.
8806 (lexer_init): Initialize it.
8807
1e58a4a4
TT
88082019-04-04 Tom Tromey <tom@tromey.com>
8809
8810 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8811 (rust_parser::convert_ast_to_type)
8812 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8813 * parser-defs.h (struct parser_state) <parser_state>: Add
8814 parameters. Initialize new members.
8815 <expression_context_block, expression_context_pc>: New members.
8816 * parse.c (expression_context_block, expression_context_pc):
8817 Remove globals.
8818 (parse_exp_in_context): Update.
8819 * p-exp.y: Update all rules.
8820 (yylex): Update.
8821 * m2-exp.y: Update all rules.
8822 (yylex): Update.
8823 * go-exp.y (yylex): Update.
8824 * f-exp.y (yylex): Update.
8825 * d-exp.y: Update all rules.
8826 (yylex): Update.
8827 * c-exp.y: Update all rules.
8828 (lex_one_token, classify_name, yylex, c_parse): Update.
8829 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8830
37eedb39
TT
88312019-04-04 Tom Tromey <tom@tromey.com>
8832
8833 * gdbarch.h, gdbarch.c: Rebuild.
8834 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8835 * stap-probe.h:
8836 (struct stap_parse_info): Replace "parser_state" with
8837 "expr_builder".
8838 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8839 (parser_state): New class.
8840 * parse.c (expr_builder): Rename.
8841 (expr_builder::release): Rename.
8842 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8843 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8844 (write_exp_elt_longcst, write_exp_elt_floatcst)
8845 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8846 (write_exp_string_vector, write_exp_bitstring)
8847 (write_exp_msymbol, mark_struct_expression)
8848 (write_dollar_variable)
8849 (insert_type_address_space, increase_expout_size): Replace
8850 "parser_state" with "expr_builder".
8851 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8852 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8853 "parser_state" with "expr_builder".
8854
73923d7e
TT
88552019-04-04 Tom Tromey <tom@tromey.com>
8856
8857 * rust-exp.y: Replace "parse_language" with method call.
8858 * p-exp.y:
8859 (yylex): Replace "parse_language" with method call.
8860 * m2-exp.y:
8861 (yylex): Replace "parse_language" with method call.
8862 * go-exp.y (classify_name): Replace "parse_language" with method
8863 call.
8864 * f-exp.y (yylex): Replace "parse_language" with method call.
8865 * d-exp.y (lex_one_token): Replace "parse_language" with method
8866 call.
8867 * c-exp.y:
8868 (lex_one_token, classify_name, yylex): Replace "parse_language"
8869 with method call.
8870 * ada-exp.y (find_primitive_type, type_char)
8871 (type_system_address): Replace "parse_language" with method call.
8872
fa9f5be6
TT
88732019-04-04 Tom Tromey <tom@tromey.com>
8874
8875 * rust-exp.y: Replace "parse_gdbarch" with method call.
8876 * parse.c (write_dollar_variable, insert_type_address_space):
8877 Replace "parse_gdbarch" with method call.
8878 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8879 call.
8880 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8881 call.
8882 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8883 "parse_gdbarch" with method call.
8884 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8885 with method call.
8886 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8887 "parse_gdbarch" with method call.
8888 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8889 "parse_gdbarch" with method call.
8890 * c-exp.y (parse_type, parse_number, classify_name): Replace
8891 "parse_gdbarch" with method call.
8892 * ada-lex.l: Replace "parse_gdbarch" with method call.
8893 * ada-exp.y (parse_type, find_primitive_type, type_char)
8894 (type_system_address): Replace "parse_gdbarch" with method call.
8895
1201a264
TT
88962019-04-04 Tom Tromey <tom@tromey.com>
8897
8898 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8899 * stap-probe.c (stap_parse_argument): Update.
8900 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8901 initial_size parameter.
8902 * rust-exp.y (rust_lex_tests): Update.
8903 * parse.c (parser_state): Update.
8904 (parse_exp_in_context): Update.
8905 * parser-defs.h (struct parser_state) <parser_state>: Remove
8906 "initial_size" parameter.
8907
e3980ce2
TT
89082019-04-04 Tom Tromey <tom@tromey.com>
8909
8910 * parser-defs.h (increase_expout_size): Don't declare.
8911 * parse.c (increase_expout_size): Now static.
8912
e9f8e3f1
TS
89132019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8914
8915 * gnu-nat.c (gnu_nat_target::wait): Fix
8916 target_waitstatus_to_string call.
8917
d7df6549
AB
89182019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8919
8920 * eval.c (evaluate_subexp_standard): Handle internal functions
8921 during Fortran function call handling.
8922
8bdc1658
AB
89232019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8924
8925 * NEWS: Mention new internal functions.
8926 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8927 (read_base_type): Use dwarf2_init_complex_target_type.
8928 * value.c (creal_internal_fn): New function.
8929 (cimag_internal_fn): New function.
8930 (_initialize_values): Register new internal functions.
8931
c29705b7
PW
89322019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8933
8934 * infrun.c (stop_all_threads): If debug_infrun, always
8935 trace the wait status after wait_one, using
8936 target_waitstatus_to_string and target_pid_to_str.
8937 (handle_inferior_event): Replace various trace of
8938 wait status kind by a single trace.
8939 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8940 wait status kind image by target_waitstatus_to_string.
8941 * target/waitstatus.c (target_waitstatus_to_string): Fix
8942 obsolete comment.
8943
05caa1d2
TT
89442019-04-01 Tom Tromey <tromey@adacore.com>
8945
8946 PR symtab/23331:
8947 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8948
9d1447e0
SDJ
89492019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8950 Pedro Alves <palves@redhat.com>
8951
8952 * top.c (quit_force): Call 'finalize_values'.
8953 * value.c (finalize_values): New function.
8954 * value.h (finalize_values): Declare.
8955
7734102d
EZ
89562019-03-30 Eli Zaretskii <eliz@gnu.org>
8957
8958 * NEWS: Announce $_gdb_major and $_gdb_minor.
8959
8960 * top.c (init_gdb_version_vars): New function.
8961 (gdb_init): Call init_gdb_version_vars.
8962
188e1fa9
TT
89632019-03-29 Tom Tromey <tromey@adacore.com>
8964
8965 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8966 help text. Remove dead code.
8967
2880242d
KS
89682019-03-29 Keith Seitz <keiths@redhat.com>
8969
8970 From Siddhesh Poyarekar:
8971 * f-lang.h (f77_get_upperbound): Return LONGEST.
8972 (f77_get_lowerbound): Likewise.
8973 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8974 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8975 print them.
8976 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8977 plongest to format print it.
8978 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8979 (f77_get_upperbound): Likewise.
8980 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8981 LOWER_BOUND to LONGEST.
8982 (f77_create_arrayprint_offset_tbl): Likewise.
8983
cc1defb1
KS
89842019-03-29 Keith Seitz <keiths@redhat.com>
8985
8986 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8987 %s/pulongest for TYPE_LENGTH instead of %d in format
8988 strings.
8989 * ada-typerint.c (ada_print_type): Likewise.
8990 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8991 * compile/compile-c-support.c (generate_register_struct): Likewise.
8992 * gdbtypes.c (recursive_dump_type): Likewise.
8993 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8994 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8995 instead of %d in format strings.
8996 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8997 to std::min to ULONGEST.
8998 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8999 instead of %d in format strings.
9000 * tracepoint.c (info_scope_command): Likewise.
9001 * typeprint.c (print_offset_data::update)
9002 (print_offset_data::finish): Likewise.
9003 * xtensa-tdep.c (xtensa_store_return_value)
9004 (xtensa_push_dummy_call): Likewise.
9005
e432ccf1
JT
90062019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9007
9008 * windows-nat.c (display_selector): Fixed format specifications
9009 for 64-bit Cygwin.
9010
65d2b333
PW
90112019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9012
9013 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9014
f489207e
SL
90152019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9016
9017 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9018 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9019 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9020 (nios2_linux_init_abi): Install it.
9021
bffa1015
AH
90222019-03-28 Alan Hayward <alan.hayward@arm.com>
9023
9024 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9025
fc96163a
AH
90262019-03-28 Alan Hayward <alan.hayward@arm.com>
9027
9028 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9029
20dc7e9b
PW
90302019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9031 Tom Tromey <tromey@adacore.com>
9032
9033 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9034
7f5331a8
JB
90352019-03-26 Joel Brobecker <brobecker@adacore.com>
9036
9037 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9038 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9039 method to compute the bounds of range types. Also print "[evaluated]"
9040 if the bounds' values come from a dynamic evaluation.
9041
18c77628
AB
90422019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9045 whitespace when pretty printing is on.
9046
53c973f2
AH
90472019-03-26 Alan Hayward <alan.hayward@arm.com>
9048
e79be6e5 9049 * ppc-linux-nat.c: Add include.
53c973f2 9050
d851aa71
AH
90512019-03-26 Alan Hayward <alan.hayward@arm.com>
9052
e79be6e5 9053 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9054
2fe7bab7
AH
90552019-03-26 Alan Hayward <alan.hayward@arm.com>
9056
e79be6e5 9057 * arm-linux-nat.c: Add include.
2fe7bab7 9058
068ef30e
SM
90592019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9060
9061 * source-cache.c (source_cache::get_source_lines): Re-read
9062 fullname after calling open_source_file.
9063
81a24d04
JB
90642019-03-25 John Baldwin <jhb@FreeBSD.org>
9065
9066 * NEWS: Mention TLS support for FreeBSD.
9067
79e7ae11
TT
90682019-03-25 Tom Tromey <tromey@adacore.com>
9069
9070 * minsyms.c (BUNCH_SIZE): Update comment.
9071 (~minimal_symbol_reader): Remove old comment.
9072 (compact_minimal_symbols): Update comment.
9073 (minimal_symbol_reader::install): Remove old comment. Update
9074 other comments.
9075
d45963c2
AH
90762019-03-25 Alan Hayward <alan.hayward@arm.com>
9077
9078 * s390-linux-nat.c: Add include.
9079
0f83012e
AH
90802019-03-25 Alan Hayward <alan.hayward@arm.com>
9081
9082 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9083 Call linux_get_hwcap.
9084 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9085 Likewise.
9086 (aarch64_linux_get_hwcap): Remove function.
9087 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9088 declaration.
9089 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9090 linux_get_hwcap.
9091 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9092 * linux-tdep.c (linux_get_hwcap): Add function.
9093 (linux_get_hwcap2): Likewise.
9094 * linux-tdep.h (linux_get_hwcap): Add declaration.
9095 (linux_get_hwcap2): Likewise.
9096 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9097 (ppc_linux_get_hwcap2): Likewise.
9098 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9099 linux_get_hwcap.
9100 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9101 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9102 (ppc_linux_nat_target::read_description): Likewise.
9103 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9104 * s390-linux-nat.c: Likewise.
9105 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9106
6640a367
TT
91072019-03-24 Tom Tromey <tom@tromey.com>
9108
9109 * ada-lang.c (standard_lookup): Simplify initialization.
9110 (ada_lookup_symbol_nonlocal): Simplify return.
9111 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9112 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9113 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9114 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9115 initialization.
9116 * solib.c (solib_global_lookup): Simplify.
9117 * symtab.c (null_block_symbol): Remove.
9118 (symbol_cache_lookup): Simplify returns.
9119 (lookup_language_this): Simplify returns.
9120 (lookup_symbol_aux): Simplify return.
9121 (lookup_local_symbol): Simplify returns.
9122 (lookup_global_symbol_from_objfile): Simplify return.
9123 (lookup_symbol_in_objfile_symtabs)
9124 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9125 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9126 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9127 * cp-namespace.c (cp_lookup_bare_symbol)
9128 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9129 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9130 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9131 (cp_lookup_symbol_via_imports): Simplify initialization.
9132 (find_symbol_in_baseclass): Likewise.
9133 * symtab.h (null_block_symbol): Remove.
9134 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9135 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9136 (d_lookup_symbol_module): Likewise.
9137 (find_symbol_in_baseclass): Simplify initialization.
9138
a930ebcd
TT
91392019-03-24 Tom Tromey <tom@tromey.com>
9140
9141 * expression.h: Don't include symtab.h.
9142 (struct block): Forward declare.
9143
582942f4
TT
91442019-03-24 Tom Tromey <tom@tromey.com>
9145
9146 * c-exp.y (typebase): Remove casts.
9147 * gdbtypes.c (lookup_unsigned_typename, )
9148 (lookup_signed_typename): Remove cast.
9149 * eval.c (parse_to_comma_and_eval): Remove cast.
9150 * parse.c (write_dollar_variable): Remove cast.
9151 * block.h (struct block) <superblock>: Now const.
9152 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9153 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9154 (map_block): Make "block" const.
9155 * symfile.h (struct quick_symbol_functions)
9156 <map_matching_symbols>: Constify block argument to "callback".
9157 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9158 const.
9159 (find_pc_sect_compunit_symtab): Make "b" const.
9160 (find_symbol_at_address): Likewise.
9161 (search_symbols): Likewise.
9162 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9163 (dw2_debug_names_lookup_symbol): Likewise.
9164 (dw2_map_matching_symbols): Update.
9165 * p-valprint.c (pascal_val_print): Remove "block".
9166 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9167 (aux_add_nonlocal_symbols): Make "block" const.
9168 (resolve_subexp): Remove cast.
9169 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9170 const.
9171 (iterate_over_file_blocks): Likewise.
9172 * f-exp.y (%union) <bval>: Remove.
9173 * coffread.c (patch_opaque_types): Make "b" const.
9174 * spu-tdep.c (spu_catch_start): Make "block" const.
9175 * c-valprint.c (print_unpacked_pointer): Remove "block".
9176 * symmisc.c (dump_symtab_1): Make "b" const.
9177 (block_depth): Make "block" const.
9178 * d-exp.y (%union) <bval>: Remove.
9179 * cp-support.h (cp_lookup_rtti_type): Update.
9180 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9181 * psymtab.c (psym_lookup_symbol): Make "block" const.
9182 (maintenance_check_psymtabs): Make "b" const.
9183 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9184 (enumerate_locals, enumerate_args): Update.
9185 * python/py-symtab.c (stpy_global_block): Make "block" const.
9186 (stpy_static_block): Likewise.
9187 * inline-frame.c (block_starting_point_at): Make "new_block"
9188 const.
9189 * block.c (find_block_in_blockvector): Make return type const.
9190 (blockvector_for_pc_sect): Make "b" const.
9191 (find_block_in_blockvector): Make "b" const.
9192
7ad417dd
TT
91932019-03-23 Tom Tromey <tom@tromey.com>
9194
9195 * varobj.c (varobj_create): Update.
9196 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9197 * printcmd.c (display_command, do_one_display): Don't reset
9198 innermost_block.
9199 * parser-defs.h (enum innermost_block_tracker_type): Move to
9200 expression.h.
9201 (innermost_block): Update comment.
9202 * parse.c (parse_exp_1): Add tracker_types parameter.
9203 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9204 tracker_types parameter. Reset innermost_block.
9205 (parse_exp_in_context): Remove.
9206 (parse_expression_for_completion): Update.
9207 * objfiles.c (~objfile): Don't reset expression_context_block or
9208 innermost_block.
9209 * expression.h (enum innermost_block_tracker_type): Move from
9210 parser-defs.h.
9211 (parse_exp_1): Add tracker_types parameter.
9212 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9213 reset innermost_block.
9214
b366c208
TT
92152019-03-23 Tom Tromey <tom@tromey.com>
9216
9217 * objfiles.h: Include bcache.h.
9218
9bb9b2f9
TT
92192019-03-23 Tom Tromey <tom@tromey.com>
9220
9221 * linespec.c (get_current_search_block): Use
9222 scoped_restore_current_language.
9223 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9224
59c28372
AH
92252019-03-22 Alan Hayward <alan.hayward@arm.com>
9226 Jiong Wang <jiong.wang@arm.com>
9227
9228 * aarch64-linux-tdep.c
9229 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9230 section.
9231 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9232
17e116a7
AH
92332019-03-22 Alan Hayward <alan.hayward@arm.com>
9234 Jiong Wang <jiong.wang@arm.com>
9235
9236 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9237 instructions.
9238 (aarch64_analyze_prologue_test): Add PACIASP test.
9239 (aarch64_prologue_prev_register): Unmask PC value.
9240
11e1b75f
AH
92412019-03-22 Alan Hayward <alan.hayward@arm.com>
9242 Jiong Wang <jiong.wang@arm.com>
9243
9244 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9245 (aarch64_dwarf2_prev_register): Unmask PC value.
9246 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9247 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9248 DW_CFA_AARCH64_negate_ra_state.
9249 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9250
34dcc7cf
AH
92512019-03-22 Alan Hayward <alan.hayward@arm.com>
9252 Jiong Wang <jiong.wang@arm.com>
9253
9254 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9255 registers.
9256 (aarch64_pseudo_register_name): Likewise.
9257 (aarch64_pseudo_register_type): Likewise.
9258 (aarch64_pseudo_register_reggroup_p): Likewise.
9259 (aarch64_gdbarch_init): Add pauth registers.
9260 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9261 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9262 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9263 (struct gdbarch_tdep): Add regnum for ra_state.
9264
1ef53e6b
AH
92652019-03-22 Alan Hayward <alan.hayward@arm.com>
9266 Jiong Wang <jiong.wang@arm.com>
9267
9268 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9269
76bed0fd
AH
92702019-03-22 Alan Hayward <alan.hayward@arm.com>
9271 Jiong Wang <jiong.wang@arm.com>
9272
9273 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9274 function.
9275 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9276 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9277 (aarch64_gdbarch_init): Add puth registers.
9278 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9279 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9280 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9281
ee4fbcfa
AH
92822019-03-22 Alan Hayward <alan.hayward@arm.com>
9283 Jiong Wang <jiong.wang@arm.com>
9284
9285 * aarch64-linux-nat.c
9286 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9287 * aarch64-linux-tdep.c
9288 (aarch64_linux_core_read_description): Likewise.
9289 (aarch64_linux_get_hwcap): New function.
9290 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9291 (aarch64_linux_get_hwcap): New declaration.
9292
6dc0ebde
AH
92932019-03-22 Alan Hayward <alan.hayward@arm.com>
9294 Jiong Wang <jiong.wang@arm.com>
9295
9296 * aarch64-linux-nat.c
9297 (aarch64_linux_nat_target::read_description): Add pauth param.
9298 * aarch64-linux-tdep.c
9299 (aarch64_linux_core_read_description): Likewise.
9300 * aarch64-tdep.c (struct target_desc): Add in pauth.
9301 (aarch64_read_description): Add pauth param.
9302 (aarch64_gdbarch_init): Likewise.
9303 * aarch64-tdep.h (aarch64_read_description): Likewise.
9304 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9305 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9306 * features/Makefile: Add new files.
9307 * features/aarch64-pauth.c: New file.
9308 * features/aarch64-pauth.xml: New file.
9309
595915c1
TT
93102019-03-20 Tom Tromey <tromey@adacore.com>
9311
9312 * infrun.c (handle_inferior_event): Rename from
9313 handle_inferior_event_1. Create a scoped_value_mark.
9314 (handle_inferior_event): Remove.
9315
4c7d57e7
TT
93162019-03-19 Tom Tromey <tromey@adacore.com>
9317
9318 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9319 * infrun.h (print_stop_event): Add "displays" parameter.
9320 * infrun.c (print_stop_event): Add "displays" parameter.
9321
cb246234
PA
93222019-03-19 Pedro Alves <palves@redhat.com>
9323
9324 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9325 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9326 to -1. Fix TABs vs spaces.
9327 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9328 * tui/tui-out.h (tui_ui_out) Add intro comments.
9329 <m_line, m_start_of_line>: In-class initialize, and add describing
9330 comment.
9331
3a0e45b2
AH
93322019-03-18 Alan Hayward <alan.hayward@arm.com>
9333
9334 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9335 variable names.
9336 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9337
5371b850
PA
93382019-03-18 Pedro Alves <palves@redhat.com>
9339 Eli Zaretskii <eliz@gnu.org>
9340
9341 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9342 m_line and m_start_of_line.
9343
b17c4cd0
EZ
93442019-03-18 Eli Zaretskii <eliz@gnu.org>
9345
9346 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9347 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9348 it returns a newline. This fixes a regression in TU mode, whereby
9349 the next line is output on the same screen line as the user input.
9350
4bd56d18
TT
93512019-03-18 Tom Tromey <tromey@adacore.com>
9352
9353 * minsyms.c (minimal_symbol_reader::install): Remove call to
9354 obstack_blank.
9355
55c10aca
PA
93562019-03-18 Pedro Alves <palves@redhat.com>
9357
9358 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9359 New globals.
9360 (apply_style): New, factored out from ...
9361 (apply_ansi_escape): ... this. Handle reverse video mode.
9362 (tui_set_reverse_mode): New function.
9363 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9364 * tui/tui-winsource.c (tui_show_source_line): Use
9365 tui_set_reverse_mode instead of setting A_STANDOUT.
9366 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9367 New setter methods.
9368
647bb750
HD
93692019-03-18 Hannes Domani <ssbssa@yahoo.de>
9370
9371 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9372 Handle tabs.
9373
bff8c71f
TT
93742019-03-18 Tom Tromey <tromey@adacore.com>
9375
9376 * ada-lang.c (empty_array): Add "high" parameter.
9377 (ada_evaluate_subexp): Update.
9378
58785d98
ST
93792019-03-17 Sergei Trofimovich <siarheit@google.com>
9380
9381 * unittests/string_view-selftests.c: Define
9382 _initialize_string_view_selftests unconditionally.
9383
d4cbef22
ВМ
93842019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9385
9386 PR gdb/24350
9387 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9388
fce4c071
ВМ
93892019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9390
9391 PR gdb/24351
9392 * windows-nat.c (display_selector): Fix format specifiers.
9393
f7f0a123
EZ
93942019-03-17 Eli Zaretskii <eliz@gnu.org>
9395
9396 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9397 tui_refill_source_window instead of tui_refresh_win, to update the
9398 current execution line. This fixes redisplay of the current line
9399 when stepping through the code with "next" or "step".
9400
ab42892f
EZ
94012019-03-16 Eli Zaretskii <eliz@gnu.org>
9402
9403 * source-cache.c (source_cache::get_source_lines): Call
9404 find_source_lines to initialize s->nlines. This fixes vertical
9405 scrolling of TUI source window when the DOWN arrow is pressed.
9406
8d8c087f
PW
94072019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9408
9409 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9410 linux-thread-db.c (_initialize_thread_db): Likewise.
9411
798e1c30
EZ
94122019-03-16 Eli Zaretskii <eliz@gnu.org>
9413
9414 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9415 wclrtoeol in tui_show_source_line". This reverts changes made in
9416 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9417
eefba3da
TT
94182019-03-15 Tom Tromey <tom@tromey.com>
9419
9420 * symtab.h (struct minimal_symbol): Derive from
9421 general_symbol_info.
9422 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9423 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9424 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9425 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9426 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9427 (MSYMBOL_SEARCH_NAME): Update.
9428 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9429 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9430 * minsyms.c (minimal_symbol_reader::record_full): Update.
9431
0de2420c
TT
94322019-03-15 Tom Tromey <tom@tromey.com>
9433
9434 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9435
042d75e4
TT
94362019-03-15 Tom Tromey <tom@tromey.com>
9437
9438 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9439 unique_xmalloc_ptr.
9440 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9441 Update.
9442 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9443 (build_minimal_symbol_hash_tables)
9444 (minimal_symbol_reader::install): Update.
9445
db92718b
TT
94462019-03-15 Tom Tromey <tom@tromey.com>
9447
9448 * symtab.c (create_demangled_names_hash): Update.
9449 (symbol_set_names): Update.
9450 * objfiles.h (struct objfile_per_bfd_storage)
9451 <demangled_names_hash>: Now an htab_up.
9452 * objfiles.c (objfile_per_bfd_storage): Simplify.
9453
d6797f46
TT
94542019-03-15 Tom Tromey <tom@tromey.com>
9455
9456 * objfiles.h (struct objfile_per_bfd_storage): Declare
9457 destructor.
9458 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9459 New.
9460 (get_objfile_bfd_data): Use new. Don't initialize
9461 language_of_main.
9462 (free_objfile_per_bfd_storage): Remove.
9463 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9464
741d7538
TT
94652019-03-15 Tom Tromey <tom@tromey.com>
9466
9467 * symfile.c (reread_symbols): Update.
9468 * objfiles.c (objfile::objfile): Update.
9469 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9470 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9471 comment.
9472 (minimal_symbol_reader::install): Update.
9473 (terminate_minimal_symbol_table): Remove.
9474 * jit.c (jit_object_close_impl): Update.
9475
788c80d1
TT
94762019-03-15 Tom Tromey <tom@tromey.com>
9477
9478 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9479 initializations.
9480
1b7a07cb
TT
94812019-03-15 Tom Tromey <tom@tromey.com>
9482
9483 * objfiles.h (struct objfile_per_bfd_storage)
9484 <demangled_hash_languages>: Now a bitset.
9485 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9486 (lookup_minimal_symbol): Update.
9487
3db066bc
TT
94882019-03-15 Tom Tromey <tom@tromey.com>
9489
9490 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9491 Don't return the symbol.
9492 * coffread.c (record_minimal_symbol): Use record_full.
9493
3fff2c37
EZ
94942019-03-14 Eli Zaretskii <eliz@gnu.org>
9495
9496 The MS-Windows port of ncurses fails to switch to a color pair if
9497 one or both of the colors are the implicit default colors. This
9498 change records the default colors when TUI is initialized, and
9499 then specifies them explicitly when a color pair uses the default
9500 colors. This allows color styling in TUI mode on MS-Windows.
9501
9502 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9503 ncurses_norm_attr.
9504 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9505 colors in ncurses_norm_attr.
9506 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9507 "none", replace it with the default color recorded in
9508 ncurses_norm_attr.
9509
3b336828
TT
95102019-03-14 Tom Tromey <tromey@adacore.com>
9511
9512 * source-cache.h (class source_cache) <get_source_lines>: Return
9513 std::string.
9514 * source-cache.c (source_cache::extract_lines): Handle case where
9515 first_pos==npos. Return std::string.
9516 (source_cache::get_source_lines): Update.
9517
d085f989
TT
95182019-03-14 Tom Tromey <tromey@adacore.com>
9519
9520 * NEWS: Add item for "style sources" commands.
9521 * source-cache.c (source_cache::get_source_lines): Check
9522 source_styling.
9523 * cli/cli-style.c (source_styling): New global.
9524 (_initialize_cli_style): Add "style sources" commands.
9525 (show_style_sources): New function.
9526 * cli/cli-style.h (source_styling): Declare.
9527
6f11e682
TT
95282019-03-14 Pedro Alves <palves@redhat.com>
9529 Tom Tromey <tromey@adacore.com>
9530
9531 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9532 * tui/tui-winsource.c (tui_refill_source_window): New function,
9533 from...
9534 (tui_horizontal_source_scroll): ... here. Move some logic.
9535 * cli/cli-style.c (set_style_enabled): Notify new observable.
9536 * tui/tui-hooks.c (tui_redisplay_source): New function.
9537 (tui_attach_detach_observers): Attach or detach
9538 tui_redisplay_source.
9539 * observable.h (source_styling_changed): New observable.
9540 * observable.c: Define source_styling_changed observable.
9541
a068643d
TT
95422019-03-13 Tom Tromey <tromey@adacore.com>
9543
9544 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9545 (i386_gnu_nat_target::store_registers): Update.
9546 * target-debug.h (target_debug_print_std_string): New macro.
9547 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9548 * windows-tdep.c (display_one_tib): Update.
9549 * tui/tui-stack.c (tui_make_status_line): Update.
9550 * top.c (print_inferior_quit_action): Update.
9551 * thread.c (thr_try_catch_cmd): Update.
9552 (add_thread_with_info): Update.
9553 (thread_target_id_str): Update.
9554 (thr_try_catch_cmd): Update.
9555 (thread_command): Update.
9556 (thread_find_command): Update.
9557 * record-btrace.c (record_btrace_target::info_record)
9558 (record_btrace_resume_thread, record_btrace_target::resume)
9559 (record_btrace_cancel_resume, record_btrace_step_thread)
9560 (record_btrace_target::wait, record_btrace_target::wait)
9561 (record_btrace_target::wait, record_btrace_target::stop): Update.
9562 * progspace.c (print_program_space): Update.
9563 * process-stratum-target.c
9564 (process_stratum_target::thread_address_space): Update.
9565 * linux-fork.c (linux_fork_mourn_inferior)
9566 (detach_checkpoint_command, info_checkpoints_command)
9567 (linux_fork_context): Update.
9568 (linux_fork_detach): Update.
9569 (class scoped_switch_fork_info): Update.
9570 (delete_checkpoint_command): Update.
9571 * infrun.c (follow_fork_inferior): Update.
9572 (follow_fork_inferior): Update.
9573 (proceed_after_vfork_done): Update.
9574 (handle_vfork_child_exec_or_exit): Update.
9575 (follow_exec): Update.
9576 (displaced_step_prepare_throw): Update.
9577 (displaced_step_restore): Update.
9578 (start_step_over): Update.
9579 (resume_1): Update.
9580 (clear_proceed_status_thread): Update.
9581 (proceed): Update.
9582 (print_target_wait_results): Update.
9583 (do_target_wait): Update.
9584 (context_switch): Update.
9585 (stop_all_threads): Update.
9586 (restart_threads): Update.
9587 (finish_step_over): Update.
9588 (handle_signal_stop): Update.
9589 (switch_back_to_stepped_thread): Update.
9590 (keep_going_pass_signal): Update.
9591 (print_exited_reason): Update.
9592 (normal_stop): Update.
9593 * inferior.c (inferior_pid_to_str): Change return type.
9594 (print_selected_inferior): Update.
9595 (add_inferior): Update.
9596 (detach_inferior): Update.
9597 * dummy-frame.c (fprint_dummy_frames): Update.
9598 * dcache.c (dcache_info_1): Update.
9599 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9600 (btrace_fetch, btrace_clear): Update.
9601 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9602 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9603 type.
9604 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9605 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9606 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9607 * gdbarch.c, gdbarch.h: Rebuild.
9608 * gdbarch.sh (core_pid_to_str): Change return type.
9609 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9610 return type.
9611 (windows_nat_target::pid_to_str): Change return type.
9612 (windows_delete_thread): Update.
9613 (windows_nat_target::attach): Update.
9614 (windows_nat_target::files_info): Update.
9615 * target-delegates.c: Rebuild.
9616 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9617 return type.
9618 (sol_thread_target::pid_to_str): Change return type.
9619 * remote.c (class remote_target) <pid_to_str>: Change return
9620 type.
9621 (remote_target::pid_to_str): Change return type.
9622 (extended_remote_target::attach, remote_target::remote_stop_ns)
9623 (remote_target::remote_notif_remove_queued_reply)
9624 (remote_target::push_stop_reply, remote_target::disable_btrace):
9625 Update.
9626 (extended_remote_target::attach): Update.
9627 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9628 type.
9629 (gdbsim_target::pid_to_str): Change return type.
9630 * ravenscar-thread.c (struct ravenscar_thread_target)
9631 <pid_to_str>: Change return type.
9632 (ravenscar_thread_target::pid_to_str): Change return type.
9633 * procfs.c (class procfs_target) <pid_to_str>: Change return
9634 type.
9635 (procfs_target::pid_to_str): Change return type.
9636 (procfs_target::attach): Update.
9637 (procfs_target::detach): Update.
9638 (procfs_target::fetch_registers): Update.
9639 (procfs_target::store_registers): Update.
9640 (procfs_target::wait): Update.
9641 (procfs_target::files_info): Update.
9642 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9643 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9644 return type.
9645 (nto_procfs_target::pid_to_str): Change return type.
9646 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9647 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9648 return type.
9649 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9650 (exit_lwp): Update.
9651 (attach_proc_task_lwp_callback, get_detach_signal)
9652 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9653 (linux_nat_target::resume, wait_lwp, stop_callback)
9654 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9655 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9656 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9657 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9658 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9659 type.
9660 (inf_ptrace_target::attach): Update.
9661 (inf_ptrace_target::files_info): Update.
9662 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9663 type.
9664 (go32_nat_target::pid_to_str): Change return type.
9665 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9666 (gnu_nat_target::wait): Update.
9667 (gnu_nat_target::wait): Update.
9668 (gnu_nat_target::resume): Update.
9669 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9670 (fbsd_nat_target::wait): Update.
9671 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9672 type.
9673 (darwin_nat_target::attach): Update.
9674 * corelow.c (class core_target) <pid_to_str>: Change return type.
9675 (core_target::pid_to_str): Change return type.
9676 * target.c (normal_pid_to_str): Change return type.
9677 (default_pid_to_str): Likewise.
9678 (target_pid_to_str): Change return type.
9679 (target_translate_tls_address): Update.
9680 (target_announce_detach): Update.
9681 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9682 return type.
9683 (bsd_uthread_target::pid_to_str): Change return type.
9684 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9685 type.
9686 (bsd_kvm_target::pid_to_str): Change return type.
9687 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9688 return type.
9689 (aix_thread_target::pid_to_str): Change return type.
9690 * target.h (struct target_ops) <pid_to_str>: Change return type.
9691 (target_pid_to_str, normal_pid_to_str): Likewise.
9692 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9693 type.
9694 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9695 type.
9696 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9697 return type.
9698 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9699 type.
9700 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9701 type.
9702 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9703 return type.
9704
b4be1b06
SM
97052019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9706
9707 * NEWS: Mention that the new default MI version is 3. Mention
9708 changes to the output of commands and events that deal with
9709 multi-location breakpoints.
9710 * breakpoint.c: Include "mi/mi-out.h".
9711 (print_one_breakpoint): Change output syntax if using MI version
9712 >= 3.
9713 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9714 New.
9715 (mi_multi_location_breakpoint_output_fixed): New.
9716 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9717 (mi_cmd_fix_multi_location_breakpoint_output): New.
9718 (mi_multi_location_breakpoint_output_fixed): New.
9719 * mi/mi-cmds.c (mi_cmds): Register command
9720 -fix-multi-location-breakpoint-output.
9721 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9722 interpreter "mi".
9723
8e5e5494
SM
97242019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9725
9726 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9727 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9728 instantiate mi_ui_out based on interpreter name.
9729 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9730 * mi/mi-main.c (mi_load_progress): Likewise.
9731
197df35e
JB
97322019-03-12 John Baldwin <jhb@FreeBSD.org>
9733
9734 * NEWS: Combine separate "New targets" sections for 8.3.
9735
8399425f
JB
97362019-03-12 John Baldwin <jhb@FreeBSD.org>
9737
9738 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9739 (ppcfbsd_init_abi): Install gdbarch
9740 "fetch_tls_load_module_address" and "get_thread_local_address"
9741 methods.
9742
b0f87ed0
JB
97432019-03-12 John Baldwin <jhb@FreeBSD.org>
9744
9745 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9746 (riscv_fbsd_init_abi): Install gdbarch
9747 "fetch_tls_load_module_address" and "get_thread_local_address"
9748 methods.
9749
ce25aa57
JB
97502019-03-12 John Baldwin <jhb@FreeBSD.org>
9751
9752 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9753 (i386fbsd_init_abi): Install gdbarch
9754 "fetch_tls_load_module_address" and "get_thread_local_address"
9755 methods.
9756
f5424cfa
JB
97572019-03-12 John Baldwin <jhb@FreeBSD.org>
9758
9759 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9760 (amd64fbsd_init_abi): Install gdbarch
9761 "fetch_tls_load_module_address" and "get_thread_local_address"
9762 methods.
9763
945f3901
JB
97642019-03-12 John Baldwin <jhb@FreeBSD.org>
9765
9766 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9767 (struct fbsd_pspace_data): New type.
9768 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9769 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9770 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9771 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9772 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9773
ef0bd204
JB
97742019-03-12 John Baldwin <jhb@FreeBSD.org>
9775
9776 * gdbtypes.c (lookup_struct_elt): New function.
9777 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9778 * gdbtypes.h (struct struct_elt): New type.
9779 (lookup_struct_elt): New prototype.
9780
36c53a02
JB
97812019-03-12 John Baldwin <jhb@FreeBSD.org>
9782
9783 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9784 remove disabled code block.
9785
6e056c81
JB
97862019-03-12 John Baldwin <jhb@FreeBSD.org>
9787
9788 * gdbarch.sh (get_thread_local_address): New method.
9789 * gdbarch.h, gdbarch.c: Regenerate.
9790 * target.c (target_translate_tls_address): Use
9791 gdbarch_get_thread_local_address if present instead of
9792 target::get_thread_local_address.
9793
cd250a18
JB
97942019-03-12 John Baldwin <jhb@FreeBSD.org>
9795
9796 * target.h (target::get_thread_local_address): Update comment.
9797
df22c1e5
JB
97982019-03-12 John Baldwin <jhb@FreeBSD.org>
9799
9800 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9801 objfile->separate_debug_objfile_backlink if not NULL.
9802
dd6876c9
JB
98032019-03-12 John Baldwin <jhb@FreeBSD.org>
9804
9805 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9806 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9807 (amd64bsd_store_inferior_registers): Likewise.
9808 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9809 Enable segment base registers.
9810 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9811 PT_GETFSBASE and PT_GETGSBASE.
9812 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9813 PT_SETGSBASE.
9814 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9815 segment base registers.
9816 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9817
1163a4b7
JB
98182019-03-12 John Baldwin <jhb@FreeBSD.org>
9819
9820 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9821 Update calls to i386_target_description to add 'segments'
9822 parameter.
9823 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9824 add segment base registers.
9825 * arch/i386.c (i386_create_target_description): Add 'segments'
9826 parameter to enable segment base registers.
9827 * arch/i386.h (i386_create_target_description): Likewise.
9828 * features/i386/32bit-segments.xml: New file.
9829 * features/i386/32bit-segments.c: Generate.
9830 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9831 call to i386_target_description to add 'segments' parameter.
9832 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9833 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9834 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9835 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9836 if feature is present.
9837 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9838 Add 'segments' parameter to call to i386_target_description.
9839 (i386_target_description): Add 'segments' parameter to enable
9840 segment base registers.
9841 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9842 to call to i386_target_description.
9843 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9844 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9845 Define I386_NUM_REGS.
9846 (i386_target_description): Add 'segments' parameter to enable
9847 segment base registers.
9848
3a350822
EZ
98492019-03-12 Eli Zaretskii <eliz@gnu.org>
9850
9851 PR/24325
9852 * source-cache.c: #undef open and close, to avoid unresolved
9853 externals during linking.
9854
ffdd69cf
TT
98552019-03-12 Tom Tromey <tromey@adacore.com>
9856
9857 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9858 const. Add initializers.
9859 (_initialize_remote): Don't initialize ptid globals.
9860
ec148c57
PA
98612019-03-12 Pedro Alves <palves@redhat.com>
9862
9863 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9864
32764270
PA
98652019-03-12 Pedro Alves <palves@redhat.com>
9866
9867 * cp-name-parser.y (main): Remove unused 'len' variable.
9868
17547186
TT
98692019-03-12 Tom Tromey <tromey@adacore.com>
9870
9871 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9872 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9873
d3a70e03
TT
98742019-03-12 Tom Tromey <tromey@adacore.com>
9875
9876 * linux-nat.c (iterate_over_lwps): Update.
9877 (stop_callback): Remove parameter.
9878 (stop_wait_callback, detach_callback, resume_set_callback)
9879 (select_singlestep_lwp_callback, set_ignore_sigint)
9880 (status_callback, resumed_callback, resume_clear_callback)
9881 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9882 data parameter.
9883 (linux_nat_target::detach, linux_nat_target::resume)
9884 (linux_stop_and_wait_all_lwps, select_event_lwp)
9885 (linux_nat_filter_event, linux_nat_wait_1)
9886 (linux_nat_target::kill, linux_nat_target::stop)
9887 (linux_nat_target::stop): Update.
9888 (linux_nat_resume_callback): Change type.
9889 (resume_stopped_resumed_lwps, count_events_callback)
9890 (select_event_lwp_callback): Likewise.
9891 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9892 * arm-linux-nat.c (struct update_registers_data): Remove.
9893 (update_registers_callback): Change type.
9894 (arm_linux_insert_hw_breakpoint1): Update.
9895 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9896 parameter.
9897 (x86_linux_dr_set_addr): Update.
9898 (x86_linux_dr_set_control): Update.
9899 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9900 (iterate_over_lwps): Use gdb::function_view.
9901 * nat/aarch64-linux-hw-point.c (struct
9902 aarch64_dr_update_callback_param): Remove.
9903 (debug_reg_change_callback): Change type.
9904 (aarch64_notify_debug_reg_change): Update.
9905 * s390-linux-nat.c (s390_refresh_per_info): Update.
9906
82cb27ff
TT
99072019-03-11 Tom Tromey <tromey@adacore.com>
9908
9909 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9910 redundant assignment to "this_cu".
9911
568c0683
SM
99122019-03-08 Simon Marchi <simon.marchi@efficios.com>
9913
9914 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9915
f09ce22d
SM
99162019-03-08 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9919 from...
9920 (rank_one_type): ... this.
9921
595f96a9
SM
99222019-03-08 Simon Marchi <simon.marchi@efficios.com>
9923
9924 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9925 from...
9926 (rank_one_type): ... this.
9927
2598a94b
SM
99282019-03-08 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9931 from...
9932 (rank_one_type): ... this.
9933
7f17b20d
SM
99342019-03-08 Simon Marchi <simon.marchi@efficios.com>
9935
9936 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9937 from...
9938 (rank_one_type): ... this.
9939
2c509035
SM
99402019-03-08 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9943 from...
9944 (rank_one_type): ... this.
9945
0dd322dc
SM
99462019-03-08 Simon Marchi <simon.marchi@efficios.com>
9947
9948 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9949 from...
9950 (rank_one_type): ... this.
9951
41ea4728
SM
99522019-03-08 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9955 from...
9956 (rank_one_type): ... this.
9957
793cd1d2
SM
99582019-03-08 Simon Marchi <simon.marchi@efficios.com>
9959
9960 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9961 from...
9962 (rank_one_type): ... this.
9963
34910087
SM
99642019-03-08 Simon Marchi <simon.marchi@efficios.com>
9965
9966 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9967 from...
9968 (rank_one_type): ... this.
9969
f1f832d6
SM
99702019-03-08 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9973 from...
9974 (rank_one_type): ... this.
9975
b9f4512f
SM
99762019-03-08 Simon Marchi <simon.marchi@efficios.com>
9977
9978 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9979 from...
9980 (rank_one_type): ... this.
9981
9293fc63
SM
99822019-03-08 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9985 from...
9986 (rank_one_type): ... this.
9987
e3abbe7e
PW
99882019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9989
9990 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9991 inferior-events' shows the example events.
9992
e4adb939
EZ
99932019-03-08 Eli Zaretskii <eliz@gnu.org>
9994
9995 Support styling on native MS-Windows console
9996
9997 PR/24315
9998 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9999 on MS-Windows if $TERM is not defined.
10000
10001 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10002
10003 * posix-hdep.c (gdb_console_fputs):
10004 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10005 functions.
10006 * ui-file.h (gdb_console_fputs): Add prototype.
10007
10008 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10009 back to fputs only if the former returns zero.
10010
25629dfd
TT
100112019-03-07 Tom Tromey <tom@tromey.com>
10012
10013 * symmisc.c (print_symbol_bcache_statistics): Update.
10014 (print_objfile_statistics): Update.
10015 * symfile.c (allocate_symtab): Update.
10016 * stabsread.c: Don't include bcache.h.
10017 * psymtab.h (struct psymbol_bcache): Don't declare.
10018 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10019 (psymbol_bcache_init, psymbol_bcache_free)
10020 (psymbol_bcache_get_bcache): Don't declare.
10021 * psymtab.c (struct psymbol_bcache): Remove.
10022 (psymtab_storage::psymtab_storage): Update.
10023 (psymtab_storage::~psymtab_storage): Update.
10024 (psymbol_bcache_init, psymbol_bcache_free)
10025 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10026 (add_psymbol_to_bcache): Update.
10027 (allocate_psymtab): Update.
10028 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10029 macro_cache>: No longer pointers.
10030 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10031 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10032 * macrotab.c (macro_bcache): Update.
10033 * macroexp.c: Don't include bcache.h.
10034 * gdbtypes.c (check_types_worklist): Update.
10035 (types_deeply_equal): Remove TRY/CATCH. Update.
10036 * elfread.c (elf_symtab_read): Update.
10037 * dwarf2read.c: Don't include bcache.h.
10038 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10039 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10040 (print_bcache_statistics, bcache_memory_used): Don't declare.
10041 (struct bcache): Move from bcache.c. Add constructor, destructor,
10042 methods. Rename all data members.
10043 * bcache.c (struct bcache): Move to bcache.h.
10044 (bcache::expand_hash_table): Rename from expand_hash_table.
10045 (bcache): Remove.
10046 (bcache::insert): Rename from bcache_full.
10047 (bcache::compare): Rename from bcache_compare.
10048 (bcache_xmalloc): Remove.
10049 (bcache::~bcache): Rename from bcache_xfree.
10050 (bcache::print_statistics): Rename from print_bcache_statistics.
10051 (bcache::memory_used): Rename from bcache_memory_used.
10052
fe726667
PA
100532019-03-07 Pedro Alves <palves@redhat.com>
10054
10055 * infrun.c (normal_stop): Also check for
10056 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10057
7584bb30
AB
100582019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10059
10060 * f-lang.c (value_from_host_double): Moved to...
10061 * value.c (value_from_host_double): ...here.
10062 * value.h (value_from_host_double): Declare.
10063 * guile/scm-math.c (vlscm_convert_typed_number): Use
10064 value_from_host_double.
10065 (vlscm_convert_number): Likewise.
10066 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10067 * python/py-value.c (convert_value_from_python): Likewise.
10068
a7b1986e
TT
100692019-03-06 Tom Tromey <tom@tromey.com>
10070
10071 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10072
0ccf4211
TT
100732019-03-06 Tom Tromey <tom@tromey.com>
10074
10075 * utils.h (free_current_contents): Don't declare.
10076 * utils.c (free_current_contents): Remove.
10077
fe7b42e5
TT
100782019-03-06 Tom Tromey <tom@tromey.com>
10079
10080 * top.c (quit_force): Update.
10081 * main.c (captured_command_loop): Update.
10082 * common/new-op.c (operator new): Update.
10083 * common/common-exceptions.c (struct catcher)
10084 <save_cleanup_chain>: Remove member.
10085 (exceptions_state_mc_init): Update.
10086 (exception_try_scope_entry): Return nullptr.
10087 (exception_try_scope_exit, exception_rethrow)
10088 (throw_exception_sjlj, throw_exception_cxx): Update.
10089 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10090 (all_cleanups, do_cleanups, discard_cleanups)
10091 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10092 (restore_cleanups, restore_final_cleanups): Don't declare.
10093 (do_final_cleanups): Remove parameter.
10094 * common/cleanups.c (cleanup_chain, make_cleanup)
10095 (make_cleanup_dtor, all_cleanups, do_cleanups)
10096 (discard_my_cleanups, discard_cleanups)
10097 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10098 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10099 (null_cleanup): Remove.
10100 (do_final_cleanups): Remove parameter.
10101
c6321f19
TT
101022019-03-06 Tom Tromey <tom@tromey.com>
10103
10104 * remote.c (remote_target::remote_parse_stop_reply): Use
10105 unique_xmalloc_ptr.
10106
61b30099
TT
101072019-03-06 Tom Tromey <tom@tromey.com>
10108
10109 * stabsread.c (struct stabs_field_info): Rename from field_info.
10110 <list, fnlist>: Add initializers.
10111 <obstack>: New member.
10112 (read_member_functions, read_struct_fields, read_baseclasses):
10113 Allocate on obstack. Don't use cleanups.
10114 (read_one_struct_field, read_member_functions, read_struct_fields)
10115 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10116 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10117 (read_struct_type): Update.
10118
6cceac94
TT
101192019-03-06 Tom Tromey <tom@tromey.com>
10120
10121 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10122 * common/filestuff.h (make_cleanup_close): Don't declare.
10123 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10124 Remove.
10125
72412762
TT
101262019-03-06 Tom Tromey <tom@tromey.com>
10127
10128 * solib-aix.c: Use make_scope_exit.
10129
2b6ff1c0
TT
101302019-03-06 Tom Tromey <tom@tromey.com>
10131
10132 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10133 Use make_scope_exit.
10134
d01c5877
TT
101352019-03-06 Tom Tromey <tom@tromey.com>
10136
10137 * solib-svr4.c (disable_probes_interface): Remove parameter.
10138 (svr4_handle_solib_event): Use make_scope_exit.
10139
32603266
TT
101402019-03-06 Tom Tromey <tom@tromey.com>
10141
10142 * remote.c (struct stop_reply_deleter): Remove.
10143 (stop_reply_up): Update.
10144 (struct stop_reply): Derive from notif_event. Don't typedef.
10145 <regcache>: Now a std::vector.
10146 (stop_reply_xfree): Remove.
10147 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10148 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10149 (remote_target::discard_pending_stop_replies): Use delete.
10150 (remote_target::remote_parse_stop_reply): Update.
10151 (remote_target::process_stop_reply): Update.
10152 * remote-notif.h (struct notif_event): Add virtual destructor.
10153 Remove "dtr" member.
10154 (struct notif_client) <alloc_event>: Return a unique_ptr.
10155 (notif_event_xfree): Don't declare.
10156 (notif_event_up): New typedef.
10157 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10158 (notif_event_xfree, do_notif_event_xfree): Remove.
10159 (remote_notif_state_xfree): Update.
10160
9799571e
TT
101612019-03-06 Tom Tromey <tom@tromey.com>
10162
10163 * infrun.c (displaced_step_clear_cleanup): Now a
10164 forward_scope_exit type.
10165 (displaced_step_prepare_throw): Update.
10166 (displaced_step_fixup): Update.
10167
09e3c4ca
TT
101682019-03-06 Tom Tromey <tom@tromey.com>
10169
10170 * inferior.h (class inferior): Update comment.
10171 * gdbthread.h (class thread_info): Update comment.
10172
e2a03548
TT
101732019-03-06 Joel Brobecker <brobecker@adacore.com>
10174 Tom Tromey <tom@tromey.com>
10175
10176 * stabsread.h (struct stab_section_list): Remove.
10177 (coffstab_build_psymtabs): Update.
10178 * dbxread.c (symbuf_sections): Now a std::vector.
10179 (sect_idx): New global.
10180 (fill_symbuf): Update.
10181 (coffstab_build_psymtabs): Change type of stabsects parameter.
10182 Update.
10183 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10184 std::vector.
10185 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10186 (coff_locate_sections): Update.
10187 (coff_symfile_read): Remove cleanups. Update.
10188 (init_stringtab): Add storage parameter.
10189 (free_stringtab, free_stringtab_cleanup): Remove.
10190 (init_lineno): Add storage parameter.
10191 (free_linetab, free_linetab_cleanup): Remove.
10192
b7e60d85
PA
101932019-03-06 Pedro Alves <palves@redhat.com>
10194
10195 * linux-fork.c (fork_info::clobber_regs): Delete.
10196 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10197 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10198 comment. Adjust.
10199 (scoped_switch_fork_info::scoped_switch_fork_info)
10200 (checkpoint_command, linux_fork_context): Adjust
10201 fork_save_infrun_state calls.
10202
e52c971f
PA
102032019-03-06 Pedro Alves <palves@redhat.com>
10204
10205 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10206 (inf_has_multiple_threads): Return 'bool' and rewrite using
10207 inferior_info::threads().
10208
06974e6c
PA
102092019-03-06 Pedro Alves <palves@redhat.com>
10210
10211 * linux-fork.c: Include <list>.
10212 (fork_list): Now a std::list instance.
10213 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10214 (forks_exist_p, find_last_fork): Adjust.
10215 (new_fork): Delete.
10216 (one_fork_p): New.
10217 (add_fork): Adjust.
10218 (free_fork): Delete, folded into fork_info::~fork_info().
10219 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10220 Adjust.
10221 (init_fork_list): Delete.
10222 (linux_fork_killall, linux_fork_mourn_inferior)
10223 (linux_fork_detach, info_checkpoints_command): Adjust.
10224 (_initialize_linux_fork): No longer call init_fork_list.
10225
72f31aea
PA
102262019-03-06 Pedro Alves <palves@redhat.com>
10227
10228 * linux-fork.c (new_fork): New, split out of ...
10229 (add_fork): ... this. Return void. Move "first fork" special
10230 case from here, to ...
10231 (checkpoint_command): ... here.
10232 * linux-linux.h (add_fork): Return void.
10233
efbecbc1
AB
102342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10235
10236 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10237
0841c79a
AB
102382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10239 Chris January <chris.january@arm.com>
10240 David Lecomber <david.lecomber@arm.com>
10241
10242 * f-exp.y: New token, UNOP_INTRINSIC.
10243 (exp): New pattern using UNOP_INTRINSIC token.
10244 (f77_keywords): Add 'abs' keyword.
10245 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10246 (value_from_host_double): New function.
10247 (evaluate_subexp_f): Support UNOP_ABS.
10248
4a270568
AB
102492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10250
10251 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10252 types.
10253
067630bd
AB
102542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10257 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10258 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10259
3be47f7a
AB
102602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10261
10262 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10263
4d00f5d8
AB
102642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10265 Chris January <chris.january@arm.com>
10266
10267 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10268 * f-exp.y: Define 'KIND' token.
10269 (exp): New pattern for KIND expressions.
10270 (ptype): Handle types with a kind extension.
10271 (direct_abs_decl): Extend to spot kind extensions.
10272 (f77_keywords): Add 'kind' to the list.
10273 (push_kind_type): New function.
10274 (convert_to_kind_type): New function.
10275 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10276 * parse.c (operator_length_standard): Likewise.
10277 * parser-defs.h (enum type_pieces): Add tp_kind.
10278 * std-operator.def: Add UNOP_KIND.
10279
e454224f
AB
102802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10281
10282 * f-exp.y (f_parse): Set yydebug.
10283
9dad4a58
AB
102842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10285
10286 * f-lang.c (evaluate_subexp_f): New function.
10287 (exp_descriptor_f): New global.
10288 (f_language_defn): Use exp_descriptor_f instead of
10289 exp_descriptor_standard.
10290
c8f91604
AB
102912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * f-exp.y (struct token): Add comments.
10294 (dot_ops): Remove uppercase versions and the end marker.
10295 (f77_keywords): Likewise.
10296 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10297 entries in the dot_ops array are case insensitive, and use
10298 strncasecmp to compare strings. Also some whitespace cleanup in
10299 this area. Similar for the f77_keywords array, except entries in
10300 this list might be case sensitive.
10301
dd9f2c76
AB
103022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10303
10304 * f-exp.y (struct f77_boolean_val): Add comments.
10305 (boolean_values): Remove uppercase versions, and end marker.
10306 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10307 and use strncasecmp to achieve case insensitivity. Additionally,
10308 perform whitespace cleanup around this code.
10309
67a3048c
TT
103102019-03-06 Tom Tromey <tromey@adacore.com>
10311
10312 * remote-sim.c (gdbsim_target_open): Use result of
10313 gdb_argv::release.
10314
aa3cfbda
RB
103152019-03-06 Richard Bunt <richard.bunt@arm.com>
10316 Dirk Schubert <dirk.schubert@arm.com>
10317 Chris January <chris.january@arm.com>
10318
10319 * eval.c (evaluate_subexp_standard): Call Fortran argument
10320 wrapping logic.
10321 * f-lang.c (struct value): A value which can be passed into a
10322 Fortran function call.
10323 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10324 where appropriate.
10325 (struct type): Value ready for a Fortran function call.
10326 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10327 is needed.
10328 * f-lang.h (fortran_argument_convert): Declaration.
10329 (fortran_preserve_arg_pointer): Declaration.
10330 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10331
ea38e5df
TT
103322019-03-05 Tom Tromey <tromey@adacore.com>
10333
10334 * python/py-prettyprint.c (print_string_repr): Remove #if.
10335 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10336
06b5b831
TT
103372019-03-05 Tom Tromey <tromey@adacore.com>
10338
10339 * target.c (the_dummy_target): Move later. Change type to
10340 "dummy_target".
10341 (initialize_targets): Don't initialize the_dummy_target.
10342
edbd9e45
TT
103432019-03-05 Tom Tromey <tromey@adacore.com>
10344
10345 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10346 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10347
c119e040
TT
103482019-03-05 Tom Tromey <tromey@adacore.com>
10349
10350 * windows-nat.c (windows_nat_target::attach)
10351 (windows_nat_target::detach): Don't call gdb_flush.
10352 * valprint.c (generic_val_print, val_print, val_print_string):
10353 Don't call gdb_flush.
10354 * utils.c (defaulted_query): Don't call gdb_flush.
10355 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10356 * target.c (target_announce_detach): Don't call gdb_flush.
10357 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10358 * remote.c (extended_remote_target::attach): Don't call
10359 gdb_flush.
10360 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10361 * printcmd.c (do_examine): Don't call gdb_flush.
10362 (info_display_command): Don't call gdb_flush.
10363 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10364 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10365 * memattr.c (info_mem_command): Don't call gdb_flush.
10366 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10367 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10368 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10369 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10370 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10371 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10372 (gnu_nat_target::detach): Don't call gdb_flush.
10373 * f-valprint.c (f_val_print): Don't call gdb_flush.
10374 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10375 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10376 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10377 gdb_flush.
10378 * c-valprint.c (c_val_print): Don't call gdb_flush.
10379 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10380
895dafa6
TT
103812019-03-05 Tom Tromey <tromey@adacore.com>
10382
10383 * varobj.c (update_dynamic_varobj_children): Update.
10384 (install_default_visualizer): Use reset, not release.
10385 * value.c (set_internalvar): Update.
10386 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10387 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10388 ATTRIBUTE_UNUSED_RESULT.
10389
88a774b9
TT
103902019-03-05 Tom Tromey <tromey@adacore.com>
10391
10392 * remote.c (class scoped_remote_fd) <release>: Add
10393 ATTRIBUTE_UNUSED_RESULT.
10394
4e4a8b93
TT
103952019-03-05 Tom Tromey <tromey@adacore.com>
10396
10397 * macroexp.c (struct macro_buffer) <release>: Add
10398 ATTRIBUTE_UNUSED_RESULT.
10399
083eef1f
TT
104002019-03-05 Tom Tromey <tromey@adacore.com>
10401
10402 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10403 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10404 ATTRIBUTE_UNUSED_RESULT.
10405
3cabd438
TT
104062019-03-05 Tom Tromey <tromey@adacore.com>
10407
10408 * common/scoped_fd.h (class scoped_fd) <release>: Add
10409 ATTRIBUTE_UNUSED_RESULT.
10410
41e3300a
TT
104112019-03-05 Tom Tromey <tromey@adacore.com>
10412
10413 * parser-defs.h (struct parser_state) <release>: Add
10414 ATTRIBUTE_UNUSED_RESULT.
10415
18cb7c9f
TT
104162019-03-05 Tom Tromey <tromey@adacore.com>
10417
10418 * utils.h (class gdb_argv) <release>: Add
10419 ATTRIBUTE_UNUSED_RESULT.
10420 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10421
41fa577f
EZ
104222019-03-02 Eli Zaretskii <eliz@gnu.org>
10423
a6a4b2c6
EZ
10424 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10425 for-loop range, to avoid compiler warnings.
10426
10427 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10428 avoid compiler warnings about unused variables.
10429
742a7df5
EZ
10430 * NEWS: Mention end of support for native debugging on MS-Windows
10431 before XP.
10432
41fa577f
EZ
10433 PR gdb/24292
10434 * common/netstuff.c:
10435 * gdbserver/gdbreplay.c
10436 * gdbserver/remote-utils.c:
10437 * ser-tcp.c:
10438 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10439 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10440 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10441 'getaddrinfo' and 'freeaddrinfo' were not available before
10442 Windows XP, and mingw.org's MinGW headers by default define
10443 _WIN32_WINNT to 0x500.
10444
827f438f
GB
104452019-03-01 Gary Benson <gbenson@redhat.com>
10446
10447 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10448
92137da0
RO
104492019-02-28 Brian Vandenberg <phantall@gmail.com>
10450 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10451
10452 PR gdb/8527
10453 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10454 set_sigint_trap, clear_sigint_trap.
10455
799efbe8
PW
104562019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10457
10458 * target.c (target_detach): Clear the regcache and the
10459 frame cache.
10460
8ed25214
PA
104612019-02-27 Pedro Alves <palves@redhat.com>
10462
10463 * utils.c (set_screen_size): When we cap the height/width sizes,
10464 tweak the corresponding command variable to show "unlimited":
10465
23031e31
SJ
104662019-02-27 Saagar Jha <saagar@saagarjha.com>
10467 Pedro Alves <palves@redhat.com>
10468
10469 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10470 before calling rl_set_screen_size.
10471
6c28e44a
TT
104722019-02-27 Tom Tromey <tromey@adacore.com>
10473
10474 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10475 define.
10476 * python/py-value.c: Remove Python 2.4 workaround.
10477 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10478 workaround.
10479 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10480 Python 2.4 workaround.
10481 * python/python-internal.h: Remove Python 2.4 comment.
10482 (Py_ssize_t): Don't define.
10483 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10484 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10485 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10486 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10487 * python/python.c (do_start_initialization): Remove Python 2.4
10488 workaround.
10489 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10490 (print_children): Remove Python 2.4 workaround.
10491 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10492 workaround.
10493 (CHARBUFFERPROC_NAME): Remove.
10494 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10495 Python 2.4 workaround.
10496
2c3fc25d 104972019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 10498
2c3fc25d
KB
10499 * NEWS: Note minimum Python version.
10500
6ca62222
KB
105012019-02-27 Kevin Buettner <kevinb@redhat.com>
10502
10503 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10504 code from these functions. Remove corresponding ifdefs. Use
10505 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10506 Remove gotos and target of gotos.
10507 (infpy_search_memory): Likewise.
10508
f4bc7d2c
AB
105092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10510
10511 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10512 (hppa_gdbarch_init): Don't register deleted functions with
10513 gdbarch.
10514
9734a586
AB
105152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10516
10517 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10518 (h8300_unwind_sp): Delete.
10519 (h8300_dummy_id): Delete.
10520 (h8300_gdbarch_init): Don't register deleted functions with
10521 gdbarch.
10522
68b867f3
AB
105232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10524
10525 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10526 (ft32_unwind_pc): Delete.
10527 (ft32_unwind_sp): Delete.
10528 (ft32_gdbarch_init): Don't register deleted functions with
10529 gdbarch.
10530
2fbe7ad0
AB
105312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10532
10533 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10534 (frv_unwind_pc): Delete.
10535 (frv_unwind_sp): Delete.
10536 (frv_gdbarch_init): Don't register deleted functions with
10537 gdbarch.
10538
76055cbe
AB
105392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10540
10541 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10542 (riscv_unwind_pc): Delete.
10543 (riscv_unwind_sp): Delete.
10544 (riscv_gdbarch_init): Don't register deleted functions with
10545 gdbarch.
10546
4133e5a1
AB
105472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10548
10549 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10550 (csky_unwind_pc): Delete.
10551 (csky_unwind_sp): Delete.
10552 (csky_gdbarch_init): Don't register deleted functions with
10553 gdbarch.
10554
8010f576
AB
105552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10556
10557 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10558 (cris_unwind_pc): Delete.
10559 (cris_unwind_sp): Delete.
10560 (cris_gdbarch_init): Don't register deleted functions with
10561 gdbarch.
10562
b56bf084
AB
105632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10564
10565 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10566 (bfin_unwind_pc): Delete.
10567 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10568
a19a650f
AB
105692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10570
10571 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10572 (arm_unwind_pc): Delete.
10573 (arm_unwind_sp): Delete.
10574 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10575
f8278c3c
AB
105762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10577
10578 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10579 (arc_unwind_pc): Delete.
10580 (arc_unwind_sp): Delete.
10581 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10582
480e46cf
AB
105832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10584
10585 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10586 (alpha_unwind_pc): Delete.
10587 (alpha_gdbarch_init): Don't register deleted functions with
10588 gdbarch.
10589
7a995095
AB
105902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10591
10592 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10593 (aarch64_unwind_pc): Delete.
10594 (aarch64_unwind_sp): Delete.
10595 (aarch64_gdbarch_init): Don't register deleted functions with
10596 gdbarch.
10597
bf9a735e
AB
105982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10599
10600 * gdbtypes.c (type_align): Don't consider static members when
10601 computing structure alignment.
10602
5561fc30
AB
106032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10604
10605 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10606 return 0 for other types.
10607 * arch-utils.c (default_type_align): Always return 0.
10608 * gdbarch.h: Regenerate.
10609 * gdbarch.sh (type_align): Extend comment.
10610 * gdbtypes.c (type_align): Add additional comments, always call
10611 gdbarch_type_align before applying the default rules.
10612 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10613 generic code will then apply a suitable default.
10614 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10615 types, return 0 for other types.
10616
9335e75a
JB
106172019-02-27 Joel Brobecker <brobecker@adacore.com>
10618
10619 * NEWS: Create a new section for the next release branch.
10620 Rename the section of the current branch, now that it has
10621 been cut.
10622
3d34d8de
JB
106232019-02-27 Joel Brobecker <brobecker@adacore.com>
10624
10625 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10626 * version.in: Bump version to 8.3.50.DATE-git.
10627
143420fb
SM
106282019-02-26 Simon Marchi <simon.marchi@efficios.com>
10629
10630 * aix-thread.c (ptid_cmp): Remove unused variable.
10631 (get_signaled_thread): Likewise.
10632 (store_regs_user_thread): Likewise.
10633 (store_regs_kernel_thread): Likewise.
10634 (fetch_regs_kernel_thread): Remove shadowed variable.
10635
172fb711
AB
106362019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 * features/riscv/32bit-cpu.xml: Add register numbers.
10639 * features/riscv/32bit-fpu.c: Regenerate.
10640 * features/riscv/32bit-fpu.xml: Add register numbers.
10641 * features/riscv/64bit-cpu.xml: Add register numbers.
10642 * features/riscv/64bit-fpu.c: Regenerate.
10643 * features/riscv/64bit-fpu.xml: Add register numbers.
10644
26c89782
KB
106452019-02-26 Kevin Buettner <kevinb@redhat.com>
10646
af54ade9 10647 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
10648 * python/py-value.c (convert_buffer_and_type_to_value): New
10649 function.
10650 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10651 Add support for handling an optional second argument. Call
10652 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10653 * python/python-internal.h (Py_buffer_deleter): New struct.
10654 (Py_buffer_up): New typedef.
10655
0f58c9e8
JB
106562019-02-25 John Baldwin <jhb@FreeBSD.org>
10657
10658 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10659 instead of releasing ownership.
10660
0a0f4c01
JR
106612019-02-25 Jordan Rupprecht <rupprecht@google.com>
10662
10663 * dwarf2read.c (open_and_init_dwp_file): Call
10664 elf_numsections instead of bfd_count_sections to initialize
10665 dwp_file->num_sections.
10666
cd5a152c
TT
106672019-02-25 Tom Tromey <tromey@adacore.com>
10668
10669 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10670
8a6a8513
SDJ
106712019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10672
10673 * gcore.in: Add '--readnever' option when invoking GDB.
10674
04dcda9c
SM
106752019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10676
10677 * MAINTAINERS: Update my email address.
10678
07bc701d
SM
106792019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10680
10681 * build-id.c (build_id_to_debug_bfd_1): New function.
10682 (build_id_to_debug_bfd): Look for separate debug file in
10683 sysroot.
10684
c6f4a5d0
AB
106852019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10686
10687 * gdbarch.sh: Update the copyright year range that is placed into
10688 generated files.
10689
9600246d
KS
106902019-02-22 Keith Seitz <keiths@redhat.com>
10691
10692 PR symtab/23853
10693 * linespec.c (create_sals_line_offset): Search for the default
10694 symtab's filename instead of its fullname.
10695
7557a514
AH
106962019-02-21 Alan Hayward <alan.hayward@arm.com>
10697
10698 * NEWS: Update style defaults.
10699
ee2bcb0c
AH
107002019-02-21 Alan Hayward <alan.hayward@arm.com>
10701
10702 * main.c (captured_main_1): Disable styling in batch mode.
10703
0c95f9ed
TT
107042019-02-20 Tom Tromey <tom@tromey.com>
10705
10706 * symtab.c (symtab_symbol_info): Fix typos.
10707
c763b894
TT
107082019-02-20 Tom Tromey <tromey@adacore.com>
10709
10710 * findcmd.c (_initialize_mem_search): Use upper case for
10711 metasyntactic variables.
10712
0ef8a082
AH
107132019-02-20 Alan Hayward <alan.hayward@arm.com>
10714
10715 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10716 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10717
6caa91b6
SM
107182019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10719
10720 * top.h (source_file_name): Change to std::string.
10721 * top.c (source_file_name): Likewise.
10722 (command_line_input): Adjust.
10723 * cli/cli-script.c (script_from_file): Adjust.
10724
98814c6c
TT
107252019-02-19 Tom Tromey <tromey@adacore.com>
10726
10727 * ravenscar-thread.c
10728 (ravenscar_thread_target::update_thread_list): Don't call
10729 ada_build_task_list.
10730 * ada-lang.h (ada_build_task_list): Don't declare.
10731 * ada-tasks.c (struct ada_tasks_inferior_data)
10732 <task_list_valid_p>: Now bool.
10733 (read_known_tasks, ada_task_list_changed)
10734 (ada_tasks_invalidate_inferior_data): Update.
10735 (read_known_tasks_array): Return bool.
10736 (read_known_tasks_list): Likewise.
10737 (read_known_tasks): Return void.
10738 (ada_build_task_list): Now static.
10739
70cd633e
AB
107402019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10741
10742 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10743 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10744
040b3e95
PW
107452019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10746
10747 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10748 variant for ada_tasks_pspace_data_handle and
10749 ada_tasks_inferior_data_handle.
10750 (ada_tasks_pspace_data_cleanup): New function.
10751 (ada_tasks_inferior_data_cleanup): New function.
10752
9409233b
TT
107532019-02-17 Tom Tromey <tom@tromey.com>
10754
10755 * macrotab.h (macro_source_fullname): Return a std::string.
10756 * macrotab.c (macro_include, check_for_redefinition)
10757 (macro_undef, macro_lookup_definition, foreach_macro)
10758 (foreach_macro_in_scope): Update.
10759 (macro_source_fullname): Return a std::string.
10760 * macrocmd.c (show_pp_source_pos): Update.
10761
6506371f
TT
107622019-02-17 Tom Tromey <tom@tromey.com>
10763
10764 * macrocmd.c (show_pp_source_pos): Style the file names.
10765
0c820d67
TT
107662019-02-17 Tom Tromey <tom@tromey.com>
10767
10768 PR tui/24197:
10769 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10770
a0087920
TT
107712019-02-17 Tom Tromey <tom@tromey.com>
10772
10773 * ada-lang.c (user_select_syms): Use filtered printing.
10774 * utils.c (wrap_style): New global.
10775 (desired_style): Remove.
10776 (emit_style_escape): Add stream parameter.
10777 (set_output_style, reset_terminal_style, prompt_for_continue):
10778 Update.
10779 (flush_wrap_buffer): Only flush gdb_stdout.
10780 (wrap_here): Set wrap_style.
10781 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10782 treat escape sequences as a character. Change when wrap buffer is
10783 flushed.
10784 (fputs_styled): Do not set the output style when the default is
10785 requested.
10786 * ui-style.h (struct ui_file_style) <is_default>: New method.
10787 * source.c (print_source_lines_base): Emit escape sequences in one
10788 piece.
10789
75ba10dc
JB
107902019-02-17 Joel Brobecker <brobecker@adacore.com>
10791
10792 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10793 integers and enumeration types.
10794
a2cd4f14
JB
107952019-02-17 Joel Brobecker <brobecker@adacore.com>
10796
10797 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10798 instead of lookup_symbol_in_language
10799 (do_exact_match): New function.
10800 (ada_get_symbol_name_matcher): Return do_exact_match when
10801 doing a verbatim match.
10802
485b851b
TT
108032019-02-15 Tom Tromey <tromey@adacore.com>
10804
10805 * ravenscar-thread.c (ravenscar_thread_target::resume)
10806 (ravenscar_thread_target::wait): Special case wildcard requests.
10807
0b790b1e
TT
108082019-02-15 Tom Tromey <tromey@adacore.com>
10809
10810 * ravenscar-thread.c (base_ptid): Remove.
10811 (struct ravenscar_thread_target) <close>: New method.
10812 <m_base_ptid>: New member.
10813 <update_inferior_ptid, active_task, task_is_currently_active,
10814 runtime_initialized>: Declare methods.
10815 <ravenscar_thread_target>: Add constructor.
10816 (ravenscar_thread_target::task_is_currently_active)
10817 (ravenscar_thread_target::update_inferior_ptid)
10818 (ravenscar_runtime_initialized): Rename. Now methods.
10819 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10820 (ravenscar_thread_target::update_thread_list): Update.
10821 (ravenscar_thread_target::active_task): Now method.
10822 (ravenscar_thread_target::store_registers)
10823 (ravenscar_thread_target::prepare_to_store)
10824 (ravenscar_thread_target::prepare_to_store)
10825 (ravenscar_thread_target::mourn_inferior): Update.
10826 (ravenscar_inferior_created): Use "new" to create target.
10827 (ravenscar_thread_target::get_ada_task_ptid): Update.
10828 (_initialize_ravenscar): Don't initialize base_ptid.
10829 (ravenscar_ops): Remove global.
10830
dea57a62
TT
108312019-02-15 Tom Tromey <tromey@adacore.com>
10832
10833 * target.h (push_target): Declare new overload.
10834 * target.c (push_target): New overload, taking an rvalue reference.
10835 * remote.c (remote_target::open_1): Use push_target overload.
10836 * corelow.c (core_target_open): Use push_target overload.
10837
989f3c58
TT
108382019-02-15 Tom Tromey <tromey@adacore.com>
10839
10840 * ravenscar-thread.c (is_ravenscar_task)
10841 (ravenscar_task_is_currently_active): Return bool.
10842 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10843 (_initialize_ravenscar): Remove "(void)".
10844 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10845 Return bool.
10846
6cbcc006
TT
108472019-02-15 Tom Tromey <tromey@adacore.com>
10848
10849 * ravenscar-thread.c (ravenscar_runtime_initializer)
10850 (has_ravenscar_runtime, get_running_thread_id)
10851 (ravenscar_thread_target::resume): Fix indentation.
10852
7657f14d
TT
108532019-02-15 Tom Tromey <tromey@adacore.com>
10854
10855 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10856 from ravenscar_arch_ops.
10857 (sparc_ravenscar_ops::fetch_registers)
10858 (sparc_ravenscar_ops::store_registers): Now methods.
10859 (sparc_ravenscar_prepare_to_store): Remove.
10860 (sparc_ravenscar_ops): Redefine.
10861 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10862 methods and destructor. Remove members.
10863 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10864 (ravenscar_thread_target::store_registers)
10865 (ravenscar_thread_target::prepare_to_store): Update.
10866 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10867 Remove.
10868 (struct ppc_ravenscar_powerpc_ops): Derive from
10869 ravenscar_arch_ops.
10870 (ppc_ravenscar_powerpc_ops::fetch_registers)
10871 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10872 (ppc_ravenscar_powerpc_ops): Redefine.
10873 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10874 (ppc_ravenscar_e500_ops::fetch_registers)
10875 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10876 (ppc_ravenscar_e500_ops): Redefine.
10877 * aarch64-ravenscar-thread.c
10878 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10879 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10880 (aarch64_ravenscar_fetch_registers)
10881 (aarch64_ravenscar_store_registers): Now methods.
10882 (aarch64_ravenscar_ops): Redefine.
10883
5b6ea500
TT
108842019-02-15 Tom Tromey <tromey@adacore.com>
10885
10886 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10887 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10888 (ravenscar_thread_target::stopped_by_watchpoint)
10889 (ravenscar_thread_target::stopped_data_address)
10890 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10891
e397fd39
TT
108922019-02-15 Tom Tromey <tromey@adacore.com>
10893
10894 * ravenscar-thread.c: Fix some typos.
10895
cc12f4a8
TT
108962019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10897 Tom Tromey <tromey@adacore.com>
10898
10899 * ada-lang.c (ada_exception_sal): Change addr_string to a
10900 std::string.
10901 (create_ada_exception_catchpoint): Update.
10902
5f486660
TT
109032019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10904 Tom Tromey <tromey@adacore.com>
10905
10906 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10907 (bp_location_ops): Remove.
10908 (base_breakpoint_allocate_location): Update.
10909 (free_bp_location): Update.
10910 * ada-lang.c (class ada_catchpoint_location)
10911 <ada_catchpoint_location>: Remove ops parameter.
10912 (ada_catchpoint_location_dtor): Remove.
10913 (ada_catchpoint_location_ops): Remove.
10914 (allocate_location_exception): Update.
10915 * breakpoint.h (struct bp_location_ops): Remove.
10916 (class bp_location) <bp_location>: Remove bp_location_ops
10917 parameter.
10918 <~bp_location>: Add destructor.
10919 <ops>: Remove.
10920
b671c7fb
TS
109212019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10922 Pedro Alves <palves@redhat.com>
10923
10924 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10925 'PATH_MAX'.
10926
8071c5ce
DM
109272019-02-14 David Michael <fedora.dm0@gmail.com>
10928 Samuel Thibault <samuel.thibault@gnu.org>
10929 Thomas Schwinge <thomas@codesourcery.com>
10930
10931 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10932 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10933
b1041ae0
TS
109342019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10935
924514e1
TS
10936 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10937 (check_empty): Use "const char *".
10938
c29ee8d4
TS
10939 * gnu-nat.c (gnu_nat_target::detach): Instead of
10940 'detach_inferior (pid)' call
10941 'detach_inferior (find_inferior_pid (pid))'.
10942
6c6ef69f
TS
10943 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10944 'nat/fork-inferior.o'.
10945 * gnu-nat.c: #include "nat/fork-inferior.h".
10946
2d0a338c
TS
10947 * gnu-nat.c (gnu_nat_target::detach): Instead of
10948 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10949 * gnu-nat.h: #include "inf-child.h".
10950 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10951 'i386_gnu_nat_target::fetch_registers'.
10952 (gnu_store_registers): Rename/move to
10953 'i386_gnu_nat_target::store_registers'.
10954
cabb5f06
TS
10955 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10956 * gnu-nat.h (mach_thread_info): New function.
10957 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10958
b1041ae0
TS
10959 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10960
2988d01e
KF
109612019-02-14 Frederic Konrad <konrad@adacore.com>
10962
10963 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10964
c559d709
JB
109652019-02-14 Joel Brobecker <brobecker@adacore.com>
10966
10967 * windows-nat.c (windows_add_thread): Add new parameter
10968 "main_thread_p" with default value set to false. Update
10969 function documentation as well as all callers.
10970 (windows_delete_thread): Likewise.
10971 (fake_create_process): Update call to windows_add_thread.
10972 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10973 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10974 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10975 call to windows_delete_thread.
10976
007024cc
SM
109772019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10978
10979 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10980
f62318e9
JB
109812019-02-12 John Baldwin <jhb@FreeBSD.org>
10982
10983 * symfile.c (find_separate_debug_file): Use canonical path of
10984 sysroot with child_path instead of gdb_sysroot if it is valid.
10985
cd4b7848
JB
109862019-02-12 John Baldwin <jhb@FreeBSD.org>
10987
10988 * symfile.c (find_separate_debug_file): Use child_path to
10989 determine if an object file is under a sysroot.
10990
efac4bfe
JB
109912019-02-12 John Baldwin <jhb@FreeBSD.org>
10992
10993 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10994 unittests/child-path-selftests.c.
10995 * common/pathstuff.c (child_path): New function.
10996 * common/pathstuff.h (child_path): New prototype.
10997 * unittests/child-path-selftests.c: New file.
10998
402d2bfe
JB
109992019-02-12 John Baldwin <jhb@FreeBSD.org>
11000
11001 * symfile.c (find_separate_debug_file): Look for separate debug
11002 files in debug directories under the sysroot.
11003
1ed9f74e
PW
110042019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11005
11006 * symtab.h (struct minimal_symbol data_p): New const method.
11007 (struct minimal_symbol text_p): Likewise.
11008 * symtab.c (output_source_filename): Use file name style
11009 to print file name.
11010 (print_symbol_info): Likewise.
11011 (print_msymbol_info): Use address style to print addresses.
11012 Use function name style to print executable text symbols.
11013 (expand_symtab_containing_pc): Use data_p.
11014 (find_pc_sect_compunit_symtab): Likewise.
11015
2636d81d
PW
110162019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11017
11018 * breakpoint.c (describe_other_breakpoints): Use address style
11019 to print addresses.
11020 (say_where): Likewise.
11021
ac8c53cc
PW
110222019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11023
11024 * ada-typeprint.c (print_func_type): Print function name
11025 style to print function name.
11026 * c-typeprint.c (c_print_type_1): Likewise.
11027
ea638c43
AH
110282019-02-11 Alan Hayward <alan.hayward@arm.com>
11029
11030 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11031 for execve.
11032
ab759ca8
PW
110332019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11034
11035 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11036 type_stack.
11037
aff29d1c
JB
110382019-02-10 Joel Brobecker <brobecker@adacore.com>
11039
11040 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11041 TYPE_CODE_REF types.
11042
617126bc
JW
110432019-02-08 Jim Wilson <jimw@sifive.com>
11044
11045 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11046 (riscv_linux_fregset): New.
11047 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11048
46e3ed7f
TT
110492019-02-07 Tom Tromey <tom@tromey.com>
11050
11051 * thread.c (thread_cancel_execution_command): Update.
11052 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11053 methods.
11054 (struct thread_fsm_ops): Remove.
11055 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11056 (thread_fsm_should_stop, thread_fsm_return_value)
11057 (thread_fsm_set_finished, thread_fsm_finished_p)
11058 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11059 Don't declare.
11060 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11061 * infrun.c (clear_proceed_status_thread)
11062 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11063 (print_stop_event): Update.
11064 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11065 Add constructor.
11066 (step_command_fsm_ops): Remove.
11067 (new_step_command_fsm): Remove.
11068 (step_1): Update.
11069 (step_command_fsm::should_stop): Rename from
11070 step_command_fsm_should_stop.
11071 (step_command_fsm::clean_up): Rename from
11072 step_command_fsm_clean_up.
11073 (step_command_fsm::do_async_reply_reason): Rename from
11074 step_command_fsm_async_reply_reason.
11075 (struct until_next_fsm): Inherit from thread_fsm. Add
11076 constructor.
11077 (until_next_fsm_ops): Remove.
11078 (new_until_next_fsm): Remove.
11079 (until_next_fsm::should_stop): Rename from
11080 until_next_fsm_should_stop.
11081 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11082 (until_next_fsm::do_async_reply_reason): Rename from
11083 until_next_fsm_async_reply_reason.
11084 (struct finish_command_fsm): Inherit from thread_fsm. Add
11085 constructor. Change type of breakpoint.
11086 (finish_command_fsm_ops): Remove.
11087 (new_finish_command_fsm): Remove.
11088 (finish_command_fsm::should_stop): Rename from
11089 finish_command_fsm_should_stop.
11090 (finish_command_fsm::clean_up): Rename from
11091 finish_command_fsm_clean_up.
11092 (finish_command_fsm::return_value): Rename from
11093 finish_command_fsm_return_value.
11094 (finish_command_fsm::do_async_reply_reason): Rename from
11095 finish_command_fsm_async_reply_reason.
11096 (finish_command): Update.
11097 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11098 Add constructor.
11099 (call_thread_fsm_ops): Remove.
11100 (call_thread_fsm::call_thread_fsm): Rename from
11101 new_call_thread_fsm.
11102 (call_thread_fsm::should_stop): Rename from
11103 call_thread_fsm_should_stop.
11104 (call_thread_fsm::should_notify_stop): Rename from
11105 call_thread_fsm_should_notify_stop.
11106 (run_inferior_call, call_function_by_hand_dummy): Update.
11107 * cli/cli-interp.c (should_print_stop_to_console): Update.
11108 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11109 Add constructor. Change type of location_breakpoint,
11110 caller_breakpoint.
11111 (until_break_fsm_ops): Remove.
11112 (new_until_break_fsm): Remove.
11113 (until_break_fsm::should_stop): Rename from
11114 until_break_fsm_should_stop.
11115 (until_break_fsm::clean_up): Rename from
11116 until_break_fsm_clean_up.
11117 (until_break_fsm::do_async_reply_reason): Rename from
11118 until_break_fsm_async_reply_reason.
11119 (until_break_command): Update.
11120 * thread-fsm.c: Remove.
11121 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11122
1a5c2598
TT
111232019-02-07 Tom Tromey <tom@tromey.com>
11124
11125 * yy-remap.h: Add include guard.
11126 * xtensa-tdep.h: Add include guard.
11127 * xcoffread.h: Rename include guard.
11128 * varobj-iter.h: Add include guard.
11129 * tui/tui.h: Rename include guard.
11130 * tui/tui-winsource.h: Rename include guard.
11131 * tui/tui-wingeneral.h: Rename include guard.
11132 * tui/tui-windata.h: Rename include guard.
11133 * tui/tui-win.h: Rename include guard.
11134 * tui/tui-stack.h: Rename include guard.
11135 * tui/tui-source.h: Rename include guard.
11136 * tui/tui-regs.h: Rename include guard.
11137 * tui/tui-out.h: Rename include guard.
11138 * tui/tui-layout.h: Rename include guard.
11139 * tui/tui-io.h: Rename include guard.
11140 * tui/tui-hooks.h: Rename include guard.
11141 * tui/tui-file.h: Rename include guard.
11142 * tui/tui-disasm.h: Rename include guard.
11143 * tui/tui-data.h: Rename include guard.
11144 * tui/tui-command.h: Rename include guard.
11145 * tic6x-tdep.h: Add include guard.
11146 * target/waitstatus.h: Rename include guard.
11147 * target/wait.h: Rename include guard.
11148 * target/target.h: Rename include guard.
11149 * target/resume.h: Rename include guard.
11150 * target-float.h: Rename include guard.
11151 * stabsread.h: Add include guard.
11152 * rs6000-tdep.h: Add include guard.
11153 * riscv-fbsd-tdep.h: Add include guard.
11154 * regformats/regdef.h: Rename include guard.
11155 * record.h: Rename include guard.
11156 * python/python.h: Rename include guard.
11157 * python/python-internal.h: Rename include guard.
11158 * python/py-stopevent.h: Rename include guard.
11159 * python/py-ref.h: Rename include guard.
11160 * python/py-record.h: Rename include guard.
11161 * python/py-record-full.h: Rename include guard.
11162 * python/py-record-btrace.h: Rename include guard.
11163 * python/py-instruction.h: Rename include guard.
11164 * python/py-events.h: Rename include guard.
11165 * python/py-event.h: Rename include guard.
11166 * procfs.h: Add include guard.
11167 * proc-utils.h: Add include guard.
11168 * p-lang.h: Add include guard.
11169 * or1k-tdep.h: Rename include guard.
11170 * observable.h: Rename include guard.
11171 * nto-tdep.h: Rename include guard.
11172 * nat/x86-linux.h: Rename include guard.
11173 * nat/x86-linux-dregs.h: Rename include guard.
11174 * nat/x86-gcc-cpuid.h: Add include guard.
11175 * nat/x86-dregs.h: Rename include guard.
11176 * nat/x86-cpuid.h: Rename include guard.
11177 * nat/ppc-linux.h: Rename include guard.
11178 * nat/mips-linux-watch.h: Rename include guard.
11179 * nat/linux-waitpid.h: Rename include guard.
11180 * nat/linux-ptrace.h: Rename include guard.
11181 * nat/linux-procfs.h: Rename include guard.
11182 * nat/linux-osdata.h: Rename include guard.
11183 * nat/linux-nat.h: Rename include guard.
11184 * nat/linux-namespaces.h: Rename include guard.
11185 * nat/linux-btrace.h: Rename include guard.
11186 * nat/glibc_thread_db.h: Rename include guard.
11187 * nat/gdb_thread_db.h: Rename include guard.
11188 * nat/gdb_ptrace.h: Rename include guard.
11189 * nat/fork-inferior.h: Rename include guard.
11190 * nat/amd64-linux-siginfo.h: Rename include guard.
11191 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11192 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11193 * nat/aarch64-linux.h: Rename include guard.
11194 * nat/aarch64-linux-hw-point.h: Rename include guard.
11195 * mn10300-tdep.h: Add include guard.
11196 * mips-linux-tdep.h: Add include guard.
11197 * mi/mi-parse.h: Rename include guard.
11198 * mi/mi-out.h: Rename include guard.
11199 * mi/mi-main.h: Rename include guard.
11200 * mi/mi-interp.h: Rename include guard.
11201 * mi/mi-getopt.h: Rename include guard.
11202 * mi/mi-console.h: Rename include guard.
11203 * mi/mi-common.h: Rename include guard.
11204 * mi/mi-cmds.h: Rename include guard.
11205 * mi/mi-cmd-break.h: Rename include guard.
11206 * m2-lang.h: Add include guard.
11207 * location.h: Rename include guard.
11208 * linux-record.h: Rename include guard.
11209 * linux-nat.h: Add include guard.
11210 * linux-fork.h: Add include guard.
11211 * i386-darwin-tdep.h: Rename include guard.
11212 * hppa-linux-offsets.h: Add include guard.
11213 * guile/guile.h: Rename include guard.
11214 * guile/guile-internal.h: Rename include guard.
11215 * gnu-nat.h: Rename include guard.
11216 * gdb-stabs.h: Rename include guard.
11217 * frv-tdep.h: Add include guard.
11218 * f-lang.h: Add include guard.
11219 * event-loop.h: Add include guard.
11220 * darwin-nat.h: Rename include guard.
11221 * cp-abi.h: Rename include guard.
11222 * config/sparc/nm-sol2.h: Rename include guard.
11223 * config/nm-nto.h: Rename include guard.
11224 * config/nm-linux.h: Add include guard.
11225 * config/i386/nm-i386gnu.h: Rename include guard.
11226 * config/djgpp/nl_types.h: Rename include guard.
11227 * config/djgpp/langinfo.h: Rename include guard.
11228 * compile/gcc-cp-plugin.h: Add include guard.
11229 * compile/gcc-c-plugin.h: Add include guard.
11230 * compile/compile.h: Rename include guard.
11231 * compile/compile-object-run.h: Rename include guard.
11232 * compile/compile-object-load.h: Rename include guard.
11233 * compile/compile-internal.h: Rename include guard.
11234 * compile/compile-cplus.h: Rename include guard.
11235 * compile/compile-c.h: Rename include guard.
11236 * common/xml-utils.h: Rename include guard.
11237 * common/x86-xstate.h: Rename include guard.
11238 * common/version.h: Rename include guard.
11239 * common/vec.h: Rename include guard.
11240 * common/tdesc.h: Rename include guard.
11241 * common/selftest.h: Rename include guard.
11242 * common/scoped_restore.h: Rename include guard.
11243 * common/scoped_mmap.h: Rename include guard.
11244 * common/scoped_fd.h: Rename include guard.
11245 * common/safe-iterator.h: Rename include guard.
11246 * common/run-time-clock.h: Rename include guard.
11247 * common/refcounted-object.h: Rename include guard.
11248 * common/queue.h: Rename include guard.
11249 * common/ptid.h: Rename include guard.
11250 * common/print-utils.h: Rename include guard.
11251 * common/preprocessor.h: Rename include guard.
11252 * common/pathstuff.h: Rename include guard.
11253 * common/observable.h: Rename include guard.
11254 * common/netstuff.h: Rename include guard.
11255 * common/job-control.h: Rename include guard.
11256 * common/host-defs.h: Rename include guard.
11257 * common/gdb_wait.h: Rename include guard.
11258 * common/gdb_vecs.h: Rename include guard.
11259 * common/gdb_unlinker.h: Rename include guard.
11260 * common/gdb_unique_ptr.h: Rename include guard.
11261 * common/gdb_tilde_expand.h: Rename include guard.
11262 * common/gdb_sys_time.h: Rename include guard.
11263 * common/gdb_string_view.h: Rename include guard.
11264 * common/gdb_splay_tree.h: Rename include guard.
11265 * common/gdb_setjmp.h: Rename include guard.
11266 * common/gdb_ref_ptr.h: Rename include guard.
11267 * common/gdb_optional.h: Rename include guard.
11268 * common/gdb_locale.h: Rename include guard.
11269 * common/gdb_assert.h: Rename include guard.
11270 * common/filtered-iterator.h: Rename include guard.
11271 * common/filestuff.h: Rename include guard.
11272 * common/fileio.h: Rename include guard.
11273 * common/environ.h: Rename include guard.
11274 * common/common-utils.h: Rename include guard.
11275 * common/common-types.h: Rename include guard.
11276 * common/common-regcache.h: Rename include guard.
11277 * common/common-inferior.h: Rename include guard.
11278 * common/common-gdbthread.h: Rename include guard.
11279 * common/common-exceptions.h: Rename include guard.
11280 * common/common-defs.h: Rename include guard.
11281 * common/common-debug.h: Rename include guard.
11282 * common/cleanups.h: Rename include guard.
11283 * common/buffer.h: Rename include guard.
11284 * common/btrace-common.h: Rename include guard.
11285 * common/break-common.h: Rename include guard.
11286 * cli/cli-utils.h: Rename include guard.
11287 * cli/cli-style.h: Rename include guard.
11288 * cli/cli-setshow.h: Rename include guard.
11289 * cli/cli-script.h: Rename include guard.
11290 * cli/cli-interp.h: Rename include guard.
11291 * cli/cli-decode.h: Rename include guard.
11292 * cli/cli-cmds.h: Rename include guard.
11293 * charset-list.h: Add include guard.
11294 * buildsym-legacy.h: Rename include guard.
11295 * bfin-tdep.h: Add include guard.
11296 * ax.h: Rename include guard.
11297 * arm-linux-tdep.h: Add include guard.
11298 * arm-fbsd-tdep.h: Add include guard.
11299 * arch/xtensa.h: Rename include guard.
11300 * arch/tic6x.h: Add include guard.
11301 * arch/i386.h: Add include guard.
11302 * arch/arm.h: Rename include guard.
11303 * arch/arm-linux.h: Rename include guard.
11304 * arch/arm-get-next-pcs.h: Rename include guard.
11305 * arch/amd64.h: Add include guard.
11306 * arch/aarch64-insn.h: Rename include guard.
11307 * arch-utils.h: Rename include guard.
11308 * annotate.h: Add include guard.
11309 * amd64-darwin-tdep.h: Rename include guard.
11310 * aarch64-linux-tdep.h: Add include guard.
11311 * aarch64-fbsd-tdep.h: Add include guard.
11312 * aarch32-linux-nat.h: Add include guard.
11313
ab9268d2
PW
113142019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11315
11316 * macrotab.c (macro_define_internal): New function that
11317 factorizes macro_define_object_internal and macro_define_function
11318 code.
11319 (macro_define_object_internal): Use macro_define_internal.
11320 (macro_define_function): Likewise.
11321
bb0da2b4
PW
113222019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11323
11324 * macrocmd.c (extract_identifier): Return
11325 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11326 callers.
11327
424eb552
JB
113282019-02-06 John Baldwin <jhb@FreeBSD.org>
11329
11330 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11331
1688cb29
TT
113322019-02-05 Tom Tromey <tom@tromey.com>
11333
11334 * target.c (target_stack::unpush): Move assertion earlier.
11335
b5eba2d8
TT
113362019-01-30 Tom Tromey <tom@tromey.com>
11337
11338 PR python/23615:
11339 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11340 (gdbpy_parse_and_eval): Likewise.
11341 * python/python-internal.h (gdbpy_allow_threads): New class.
11342
7054e2ff
JB
113432019-01-28 John Baldwin <jhb@FreeBSD.org>
11344
11345 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11346 (aarch64_fbsd_fpregmap): Move earlier.
11347 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11348 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11349 instead of individual calls to trad_frame_set_reg_addr.
11350 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11351 earlier.
11352 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11353 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11354 instead of individual calls to trad_frame_set_reg_addr.
11355
36c25ffa
AH
113562019-01-28 Alan Hayward <alan.hayward@arm.com>
11357
11358 * CONTRIBUTE: Replace contribution list with wiki link.
11359
a0707f3c
TT
113602019-01-25 Tom Tromey <tom@tromey.com>
11361
11362 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11363
0747795c
TT
113642019-01-25 Tom Tromey <tom@tromey.com>
11365
11366 * xtensa-linux-nat.c: Fix common/ includes.
11367 * xml-support.h: Fix common/ includes.
11368 * xml-support.c: Fix common/ includes.
11369 * x86-linux-nat.c: Fix common/ includes.
11370 * windows-nat.c: Fix common/ includes.
11371 * varobj.h: Fix common/ includes.
11372 * varobj.c: Fix common/ includes.
11373 * value.c: Fix common/ includes.
11374 * valops.c: Fix common/ includes.
11375 * utils.c: Fix common/ includes.
11376 * unittests/xml-utils-selftests.c: Fix common/ includes.
11377 * unittests/utils-selftests.c: Fix common/ includes.
11378 * unittests/unpack-selftests.c: Fix common/ includes.
11379 * unittests/tracepoint-selftests.c: Fix common/ includes.
11380 * unittests/style-selftests.c: Fix common/ includes.
11381 * unittests/string_view-selftests.c: Fix common/ includes.
11382 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11383 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11384 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11385 * unittests/rsp-low-selftests.c: Fix common/ includes.
11386 * unittests/parse-connection-spec-selftests.c: Fix common/
11387 includes.
11388 * unittests/optional-selftests.c: Fix common/ includes.
11389 * unittests/offset-type-selftests.c: Fix common/ includes.
11390 * unittests/observable-selftests.c: Fix common/ includes.
11391 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11392 * unittests/memrange-selftests.c: Fix common/ includes.
11393 * unittests/memory-map-selftests.c: Fix common/ includes.
11394 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11395 * unittests/function-view-selftests.c: Fix common/ includes.
11396 * unittests/environ-selftests.c: Fix common/ includes.
11397 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11398 * unittests/common-utils-selftests.c: Fix common/ includes.
11399 * unittests/cli-utils-selftests.c: Fix common/ includes.
11400 * unittests/array-view-selftests.c: Fix common/ includes.
11401 * ui-file.c: Fix common/ includes.
11402 * tui/tui-io.c: Fix common/ includes.
11403 * tracepoint.h: Fix common/ includes.
11404 * tracepoint.c: Fix common/ includes.
11405 * tracefile-tfile.c: Fix common/ includes.
11406 * top.h: Fix common/ includes.
11407 * top.c: Fix common/ includes.
11408 * thread.c: Fix common/ includes.
11409 * target/waitstatus.h: Fix common/ includes.
11410 * target/waitstatus.c: Fix common/ includes.
11411 * target.h: Fix common/ includes.
11412 * target.c: Fix common/ includes.
11413 * target-memory.c: Fix common/ includes.
11414 * target-descriptions.c: Fix common/ includes.
11415 * symtab.h: Fix common/ includes.
11416 * symfile.c: Fix common/ includes.
11417 * stap-probe.c: Fix common/ includes.
11418 * spu-linux-nat.c: Fix common/ includes.
11419 * sparc-nat.c: Fix common/ includes.
11420 * source.c: Fix common/ includes.
11421 * solib.c: Fix common/ includes.
11422 * solib-target.c: Fix common/ includes.
11423 * ser-unix.c: Fix common/ includes.
11424 * ser-tcp.c: Fix common/ includes.
11425 * ser-pipe.c: Fix common/ includes.
11426 * ser-base.c: Fix common/ includes.
11427 * selftest-arch.c: Fix common/ includes.
11428 * s12z-tdep.c: Fix common/ includes.
11429 * rust-exp.y: Fix common/ includes.
11430 * rs6000-aix-tdep.c: Fix common/ includes.
11431 * riscv-tdep.c: Fix common/ includes.
11432 * remote.c: Fix common/ includes.
11433 * remote-notif.h: Fix common/ includes.
11434 * remote-fileio.h: Fix common/ includes.
11435 * remote-fileio.c: Fix common/ includes.
11436 * regcache.h: Fix common/ includes.
11437 * regcache.c: Fix common/ includes.
11438 * record-btrace.c: Fix common/ includes.
11439 * python/python.c: Fix common/ includes.
11440 * python/py-type.c: Fix common/ includes.
11441 * python/py-inferior.c: Fix common/ includes.
11442 * progspace.h: Fix common/ includes.
11443 * producer.c: Fix common/ includes.
11444 * procfs.c: Fix common/ includes.
11445 * proc-api.c: Fix common/ includes.
11446 * printcmd.c: Fix common/ includes.
11447 * ppc-linux-nat.c: Fix common/ includes.
11448 * parser-defs.h: Fix common/ includes.
11449 * osdata.c: Fix common/ includes.
11450 * obsd-nat.c: Fix common/ includes.
11451 * nat/x86-linux.c: Fix common/ includes.
11452 * nat/x86-linux-dregs.c: Fix common/ includes.
11453 * nat/x86-dregs.h: Fix common/ includes.
11454 * nat/x86-dregs.c: Fix common/ includes.
11455 * nat/ppc-linux.c: Fix common/ includes.
11456 * nat/mips-linux-watch.h: Fix common/ includes.
11457 * nat/mips-linux-watch.c: Fix common/ includes.
11458 * nat/linux-waitpid.c: Fix common/ includes.
11459 * nat/linux-ptrace.h: Fix common/ includes.
11460 * nat/linux-ptrace.c: Fix common/ includes.
11461 * nat/linux-procfs.c: Fix common/ includes.
11462 * nat/linux-personality.c: Fix common/ includes.
11463 * nat/linux-osdata.c: Fix common/ includes.
11464 * nat/linux-namespaces.c: Fix common/ includes.
11465 * nat/linux-btrace.h: Fix common/ includes.
11466 * nat/linux-btrace.c: Fix common/ includes.
11467 * nat/fork-inferior.c: Fix common/ includes.
11468 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11469 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11470 * nat/aarch64-linux.c: Fix common/ includes.
11471 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11472 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11473 * namespace.h: Fix common/ includes.
11474 * mips-linux-tdep.c: Fix common/ includes.
11475 * minsyms.c: Fix common/ includes.
11476 * mi/mi-parse.h: Fix common/ includes.
11477 * mi/mi-main.c: Fix common/ includes.
11478 * mi/mi-cmd-env.c: Fix common/ includes.
11479 * memrange.h: Fix common/ includes.
11480 * memattr.c: Fix common/ includes.
11481 * maint.h: Fix common/ includes.
11482 * maint.c: Fix common/ includes.
11483 * main.c: Fix common/ includes.
11484 * machoread.c: Fix common/ includes.
11485 * location.c: Fix common/ includes.
11486 * linux-thread-db.c: Fix common/ includes.
11487 * linux-nat.c: Fix common/ includes.
11488 * linux-fork.c: Fix common/ includes.
11489 * inline-frame.c: Fix common/ includes.
11490 * infrun.c: Fix common/ includes.
11491 * inflow.c: Fix common/ includes.
11492 * inferior.h: Fix common/ includes.
11493 * inferior.c: Fix common/ includes.
11494 * infcmd.c: Fix common/ includes.
11495 * inf-ptrace.c: Fix common/ includes.
11496 * inf-child.c: Fix common/ includes.
11497 * ia64-linux-nat.c: Fix common/ includes.
11498 * i387-tdep.c: Fix common/ includes.
11499 * i386-tdep.c: Fix common/ includes.
11500 * i386-linux-tdep.c: Fix common/ includes.
11501 * i386-linux-nat.c: Fix common/ includes.
11502 * i386-go32-tdep.c: Fix common/ includes.
11503 * i386-fbsd-tdep.c: Fix common/ includes.
11504 * i386-fbsd-nat.c: Fix common/ includes.
11505 * guile/scm-type.c: Fix common/ includes.
11506 * guile/guile.c: Fix common/ includes.
11507 * go32-nat.c: Fix common/ includes.
11508 * gnu-nat.c: Fix common/ includes.
11509 * gdbthread.h: Fix common/ includes.
11510 * gdbarch-selftests.c: Fix common/ includes.
11511 * gdb_usleep.c: Fix common/ includes.
11512 * gdb_select.h: Fix common/ includes.
11513 * gdb_bfd.c: Fix common/ includes.
11514 * gcore.c: Fix common/ includes.
11515 * fork-child.c: Fix common/ includes.
11516 * findvar.c: Fix common/ includes.
11517 * fbsd-nat.c: Fix common/ includes.
11518 * event-top.c: Fix common/ includes.
11519 * event-loop.c: Fix common/ includes.
11520 * dwarf2read.c: Fix common/ includes.
11521 * dwarf2loc.c: Fix common/ includes.
11522 * dwarf2-frame.c: Fix common/ includes.
11523 * dwarf-index-cache.c: Fix common/ includes.
11524 * dtrace-probe.c: Fix common/ includes.
11525 * disasm-selftests.c: Fix common/ includes.
11526 * defs.h: Fix common/ includes.
11527 * csky-tdep.c: Fix common/ includes.
11528 * cp-valprint.c: Fix common/ includes.
11529 * cp-support.h: Fix common/ includes.
11530 * cp-support.c: Fix common/ includes.
11531 * corelow.c: Fix common/ includes.
11532 * completer.h: Fix common/ includes.
11533 * completer.c: Fix common/ includes.
11534 * compile/compile.c: Fix common/ includes.
11535 * compile/compile-loc2c.c: Fix common/ includes.
11536 * compile/compile-cplus-types.c: Fix common/ includes.
11537 * compile/compile-cplus-symbols.c: Fix common/ includes.
11538 * command.h: Fix common/ includes.
11539 * cli/cli-dump.c: Fix common/ includes.
11540 * cli/cli-cmds.c: Fix common/ includes.
11541 * charset.c: Fix common/ includes.
11542 * build-id.c: Fix common/ includes.
11543 * btrace.h: Fix common/ includes.
11544 * btrace.c: Fix common/ includes.
11545 * breakpoint.h: Fix common/ includes.
11546 * breakpoint.c: Fix common/ includes.
11547 * ax.h:
11548 (enum agent_op): Fix common/ includes.
11549 * ax-general.c (struct aop_map): Fix common/ includes.
11550 * ax-gdb.c: Fix common/ includes.
11551 * auxv.c: Fix common/ includes.
11552 * auto-load.c: Fix common/ includes.
11553 * arm-tdep.c: Fix common/ includes.
11554 * arch/riscv.c: Fix common/ includes.
11555 * arch/ppc-linux-common.c: Fix common/ includes.
11556 * arch/i386.c: Fix common/ includes.
11557 * arch/arm.c: Fix common/ includes.
11558 * arch/arm-linux.c: Fix common/ includes.
11559 * arch/arm-get-next-pcs.c: Fix common/ includes.
11560 * arch/amd64.c: Fix common/ includes.
11561 * arch/aarch64.c: Fix common/ includes.
11562 * arch/aarch64-insn.c: Fix common/ includes.
11563 * arch-utils.c: Fix common/ includes.
11564 * amd64-windows-tdep.c: Fix common/ includes.
11565 * amd64-tdep.c: Fix common/ includes.
11566 * amd64-sol2-tdep.c: Fix common/ includes.
11567 * amd64-obsd-tdep.c: Fix common/ includes.
11568 * amd64-nbsd-tdep.c: Fix common/ includes.
11569 * amd64-linux-tdep.c: Fix common/ includes.
11570 * amd64-linux-nat.c: Fix common/ includes.
11571 * amd64-fbsd-tdep.c: Fix common/ includes.
11572 * amd64-fbsd-nat.c: Fix common/ includes.
11573 * amd64-dicos-tdep.c: Fix common/ includes.
11574 * amd64-darwin-tdep.c: Fix common/ includes.
11575 * agent.c: Fix common/ includes.
11576 * ada-lang.h: Fix common/ includes.
11577 * ada-lang.c: Fix common/ includes.
11578 * aarch64-tdep.c: Fix common/ includes.
11579
2f5c153e
TT
115802019-01-25 Tom Tromey <tom@tromey.com>
11581
11582 * common/create-version.sh: Use common/version.h.
11583
adc6a863
PA
115842019-01-24 Pedro Alves <palves@redhat.com>
11585
11586 * infrun.c (signal_stop, signal_print, signal_program)
11587 (signal_catch, signal_pass): Now arrays instead of pointers.
11588 (update_signals_program_target, do_target_resume)
11589 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11590 * linux-nat.c (linux_nat_target::pass_signals)
11591 (linux_nat_target::create_inferior, linux_nat_target::attach):
11592 Adjust.
11593 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11594 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11595 * procfs.c (procfs_target::pass_signals): Adjust.
11596 * record-full.c (record_full_target::resume): Adjust.
11597 * remote.c (remote_target::pass_signals)
11598 (remote_target::program_signals): Adjust.
11599 * target-debug.h (target_debug_print_signals): Now takes a
11600 gdb::array_view as parameter. Adjust.
11601 * target.h (target_ops) <pass_signals, program_signals>: Replace
11602 pointer and length parameters with gdb::array_view.
11603 (target_pass_signals, target_program_signals): Likewise.
11604 * target-delegates.c: Regenerate.
11605
3046d67a
PA
116062019-01-24 Pedro Alves <palves@redhat.com>
11607
11608 * common/forward-scope-exit.h
11609 (forward_scope_exit::forward_scope_exit): Pass arguments to
11610 m_bind_function directly, instead of creating a std::bind and
11611 copying that.
11612
353229bf
AH
116132019-01-24 Alan Hayward <alan.hayward@arm.com>
11614
11615 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11616 for static members.
11617 (pass_in_v_vfp_candidate): Likewise.
11618
311dc83a
TT
116192019-01-23 Tom Tromey <tom@tromey.com>
11620 Pedro Alves <palves@redhat.com>
11621
11622 * regcache.c (class regcache_invalidator): Remove.
11623 (regcache::raw_write): Use make_scope_exit.
11624
296bd123
TT
116252019-01-23 Tom Tromey <tom@tromey.com>
11626
11627 * ui-out.h (class ui_out_emit_type): Update comment.
11628
979a0d13
TT
116292019-01-23 Tom Tromey <tom@tromey.com>
11630
11631 * infrun.c (fetch_inferior_event): Update comment.
11632
d238133d
TT
116332019-01-23 Tom Tromey <tom@tromey.com>
11634 Pedro Alves <palves@redhat.com>
11635
11636 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11637 parameter.
11638 (fetch_inferior_event): Use SCOPE_EXIT.
11639
11640
9885e6bb
TT
116412019-01-23 Tom Tromey <tom@tromey.com>
11642 Pedro Alves <palves@redhat.com>
11643
11644 * infrun.c (disable_thread_events): Delete.
11645 (stop_all_threads): Use SCOPE_EXIT.
11646
286526c1
TT
116472019-01-23 Tom Tromey <tom@tromey.com>
11648 Pedro Alves <palves@redhat.com>
11649
11650 * symfile.c: Include forward-scope-exit.h.
11651 (clear_symtab_users_cleanup): Replace forward declaration with
11652 a FORWARD_SCOPE_EXIT.
11653 (syms_from_objfile_1): Use the forward_scope_exit and
11654 gdb::optional instead of cleanup_function.
11655 (reread_symbols): Use the forward_scope_exit instead of
11656 cleanup_function.
11657 (clear_symtab_users_cleanup): Remove function.
11658
1db93f14
TT
116592019-01-23 Tom Tromey <tom@tromey.com>
11660 Pedro Alves <palves@redhat.com>
11661
11662 * linux-nat.c: Include scope-exit.h.
11663 (cleanup_target_stop): Remove.
11664 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11665 SCOPE_EXIT.
11666
2cc83d1e
TT
116672019-01-23 Tom Tromey <tom@tromey.com>
11668 Pedro Alves <palves@redhat.com>
11669
11670 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11671 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11672
694c6bf5
TT
116732019-01-23 Tom Tromey <tom@tromey.com>
11674 Andrew Burgess <andrew.burgess@embecosm.com>
11675 Pedro Alves <palves@redhat.com>
11676
11677 * infrun.c (fetch_inferior_event): Use scope_exit.
11678 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11679 * top.c (execute_command): Use scope_exit.
11680 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11681 * utils.c (do_bpstat_clear_actions_cleanup)
11682 (make_bpstat_clear_actions_cleanup): Remove.
11683
4c41382a
TT
116842019-01-23 Tom Tromey <tom@tromey.com>
11685 Pedro Alves <palves@redhat.com>
11686
11687 * infrun.c: Include "common/scope-exit.h"
11688 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11689 (wait_for_inferior): Use SCOPE_EXIT.
11690 (fetch_inferior_event): Use scope_exit.
11691
89f8fb50
TT
116922019-01-23 Tom Tromey <tom@tromey.com>
11693 Pedro Alves <palves@redhat.com>
11694
11695 * breakpoint.c (create_breakpoint): Remove cleanup.
11696
5419bdae
TT
116972019-01-23 Tom Tromey <tom@tromey.com>
11698 Andrew Burgess <andrew.burgess@embecosm.com>
11699 Pedro Alves <palves@redhat.com>
11700
e587ef42
PA
117012019-01-23 Pedro Alves <palves@redhat.com>
11702
11703 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11704
77f0e74c
PA
117052019-01-23 Pedro Alves <palves@redhat.com>
11706 Andrew Burgess <andrew.burgess@embecosm.com>
11707
11708 * gdbthread.h: Include "common/forward-scope-exit.h".
11709 (scoped_finish_thread_state): Redefine custom class in terms of
11710 forward_scope_exit.
11711
5b9b3e53
PA
117122019-01-23 Pedro Alves <palves@redhat.com>
11713 Andrew Burgess <andrew.burgess@embecosm.com>
11714
11715 * common/forward-scope-exit.h: New file.
11716
54b65c9b
PA
117172019-01-23 Pedro Alves <palves@redhat.com>
11718 Andrew Burgess <andrew.burgess@embecosm.com>
11719 Tom Tromey <tom@tromey.com>
11720
11721 * common/scope-exit.h: New file.
11722
cf08fb29
PA
117232019-01-23 Pedro Alves <palves@redhat.com>
11724
11725 * common/preprocessor.h (ESC): Rename to ...
11726 (ESC_PARENS): ... this.
11727 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11728 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11729
ae73e2e2
TT
117302019-01-23 Tom Tromey <tom@tromey.com>
11731
11732 * language.h (class scoped_switch_to_sym_language_if_auto):
11733 Initialize m_lang in both cases.
11734
6594e122
AH
117352019-01-23 Alan Hayward <alan.hayward@arm.com>
11736
11737 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11738 with XCNEW.
11739
a7c9855d
TT
117402019-01-22 Tom Tromey <tom@tromey.com>
11741
11742 * corelow.c: Do not include sys/file.h.
11743
93cc1d53
TT
117442019-01-22 Tom Tromey <tom@tromey.com>
11745
11746 * tui/tui-wingeneral.h: Include gdb_curses.h.
11747
38561778
TT
117482019-01-22 Tom Tromey <tom@tromey.com>
11749
11750 * source-cache.h (class source_cache) <get_source_lines,
11751 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11752
37b3ab5b
TT
117532019-01-22 Tom Tromey <tom@tromey.com>
11754
11755 * remote-fileio.h (struct remote_target): Declare.
11756
3fabc016
TT
117572019-01-22 Tom Tromey <tom@tromey.com>
11758
11759 * python/py-arch.c: Do not include py-ref.h.
11760 * python/py-bpevent.c: Do not include py-ref.h.
11761 * python/py-cmd.c: Do not include py-ref.h.
11762 * python/py-continueevent.c: Do not include py-ref.h.
11763 * python/py-event.h: Do not include py-ref.h.
11764 * python/py-evtregistry.c: Do not include py-ref.h.
11765 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11766 * python/py-frame.c: Do not include py-ref.h.
11767 * python/py-framefilter.c: Do not include py-ref.h.
11768 * python/py-function.c: Do not include py-ref.h.
11769 * python/py-infevents.c: Do not include py-ref.h.
11770 * python/py-linetable.c: Do not include py-ref.h.
11771 * python/py-objfile.c: Do not include py-ref.h.
11772 * python/py-param.c: Do not include py-ref.h.
11773 * python/py-prettyprint.c: Do not include py-ref.h.
11774 * python/py-progspace.c: Do not include py-ref.h.
11775 * python/py-symbol.c: Do not include py-ref.h.
11776 * python/py-symtab.c: Do not include py-ref.h.
11777 * python/py-type.c: Do not include py-ref.h.
11778 * python/py-unwind.c: Do not include py-ref.h.
11779 * python/py-utils.c: Do not include py-ref.h.
11780 * python/py-value.c: Do not include py-ref.h.
11781 * python/py-varobj.c: Do not include py-ref.h.
11782 * python/py-xmethods.c: Do not include py-ref.h.
11783 * python/python.c: Do not include py-ref.h.
11784 * varobj.c: Do not include py-ref.h.
11785
6b4d7774
TT
117862019-01-22 Tom Tromey <tom@tromey.com>
11787
11788 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11789 keyword for bcache.
11790
7af7e9b5
TT
117912019-01-22 Tom Tromey <tom@tromey.com>
11792
11793 * compile/compile-cplus-types.c: Remove a comment by #include.
11794
951d1049
TT
117952019-01-22 Tom Tromey <tom@tromey.com>
11796
11797 * compile/gcc-c-plugin.h: Include compile-internal.h.
11798
d65d5705
TT
117992019-01-22 Tom Tromey <tom@tromey.com>
11800
11801 * stabsread.c (EXTERN): Do not define.
11802 (symnum, next_symbol_text_func, processing_gcc_compilation)
11803 (within_function, global_sym_chain, global_stabs)
11804 (previous_stab_code, this_object_header_files)
11805 (n_this_object_header_files)
11806 (n_allocated_this_object_header_files): Define.
11807 * stabsread.h (EXTERN): Never define. Use "extern".
11808
b6fb1ee5
PW
118092019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11810
11811 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11812 history_value.
11813
be6d4f74
TT
118142019-01-21 Tom Tromey <tom@tromey.com>
11815
11816 * ui-out.c: Fix includes.
11817 * tui/tui-source.c: Fix includes.
11818 * target.c: Fix includes.
11819 * remote.c: Fix includes.
11820 * regcache.c: Fix includes.
11821 * python/py-block.c: Fix includes.
11822 * printcmd.c: Fix includes.
11823 * or1k-tdep.c: Fix includes.
11824 * mi/mi-main.c: Fix includes.
11825 * m32r-tdep.c: Fix includes.
11826 * csky-tdep.c: Fix includes.
11827 * compile/compile-cplus-types.c: Fix includes.
11828 * cli/cli-interp.c: Fix includes.
11829
73021deb
AH
118302019-01-21 Alan Hayward <alan.hayward@arm.com>
11831
11832 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11833 for padding.
11834
7932255d
TT
118352019-01-16 Tom Tromey <tom@tromey.com>
11836
11837 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11838 earlier.
11839 (struct objfile) <msymbols_range>: Move from top level.
11840 <msymbols>: New method.
11841 (class objfile_msymbols): Remove.
11842 * symtab.c (default_collect_symbol_completion_matches_break_on):
11843 Update.
11844 * symmisc.c (dump_msymbols): Update.
11845 * stabsread.c (scan_file_globals): Update.
11846 * objc-lang.c (info_selectors_command, info_classes_command)
11847 (find_methods): Update.
11848 * minsyms.c (find_solib_trampoline_target): Update.
11849 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11850 * coffread.c (coff_symfile_read): Update.
11851 * ada-lang.c (ada_lookup_simple_minsym)
11852 (ada_collect_symbol_completion_matches): Update.
11853
604b1bfb
TT
118542019-01-16 Tom Tromey <tom@tromey.com>
11855
11856 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11857 type. Remove no-argument constructor.
11858 <iterator::operator++>: Simplify.
11859 <begin>: Update.
11860 <end>: Use minimal_symbol_count.
11861
f252c6d5
TT
118622019-01-16 Tom Tromey <tom@tromey.com>
11863
11864 * objfiles.h (struct objfile) <psymtabs>: New method.
11865 (class objfile_psymtabs): Remove.
11866 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11867 typedef.
11868 <range>: New method.
11869 (require_partial_symbols): Change return type.
11870 * psymtab.c (require_partial_symbols)
11871 (psym_expand_symtabs_matching): Update.
11872 * mdebugread.c (parse_partial_symbols): Update.
11873 * dbxread.c (dbx_end_psymtab): Update.
11874
b669c953
TT
118752019-01-15 Tom Tromey <tom@tromey.com>
11876
11877 * symtab.c (lookup_objfile_from_block)
11878 (lookup_symbol_in_objfile_symtabs)
11879 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11880 (find_line_symtab, info_sources_command)
11881 (default_collect_symbol_completion_matches_break_on)
11882 (make_source_files_completion_list): Update.
11883 * symmisc.c (print_objfile_statistics, dump_objfile)
11884 (maintenance_print_symbols, maintenance_info_symtabs)
11885 (maintenance_check_symtabs, maintenance_info_line_tables):
11886 Update.
11887 * source.c (select_source_symtab)
11888 (forget_cached_source_info_for_objfile): Update.
11889 * objfiles.h (class objfile_compunits): Remove.
11890 (struct objfile) <compunits_range>: New typedef.
11891 (compunits): New method.
11892 * objfiles.c (objfile_relocate1): Update.
11893 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11894 * maint.c (count_symtabs_and_blocks): Update.
11895 * linespec.c (iterate_over_all_matching_symtabs): Update.
11896 * cp-support.c (add_symbol_overload_list_qualified): Update.
11897 * coffread.c (coff_symtab_read): Update.
11898 * ada-lang.c (add_nonlocal_symbols)
11899 (ada_collect_symbol_completion_matches)
11900 (ada_add_global_exceptions): Update.
11901
7e955d83
TT
119022019-01-15 Tom Tromey <tom@tromey.com>
11903
11904 * progspace.h (program_space) <objfiles_safe_range>: New
11905 typedef.
11906 <objfiles_safe>: New method.
11907 * objfiles.h (class all_objfiles_safe): Remove.
11908 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11909 * jit.c (jit_inferior_exit_hook): Update.
11910
2030c079
TT
119112019-01-17 Tom Tromey <tom@tromey.com>
11912
11913 * progspace.h (program_space) <objfiles_range>: New typedef.
11914 <objfiles>: New method.
11915 <objfiles_head>: Rename from objfiles.
11916 (object_files): Update.
11917 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11918 * guile/scm-pretty-print.c
11919 (ppscm_find_pretty_printer_from_objfiles): Update.
11920 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11921 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11922 Update.
11923 * python/py-progspace.c (pspy_get_objfiles): Update.
11924 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11925 Update.
11926 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11927 (objfpy_lookup_objfile_by_build_id): Update.
11928 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11929 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11930 Update.
11931 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11932 (expand_symtab_containing_pc, lookup_objfile_from_block)
11933 (lookup_static_symbol, basic_lookup_transparent_type)
11934 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11935 (find_line_symtab, info_sources_command)
11936 (default_collect_symbol_completion_matches_break_on)
11937 (make_source_files_completion_list, find_main_name): Update.
11938 * symmisc.c (print_symbol_bcache_statistics)
11939 (print_objfile_statistics, maintenance_print_symbols)
11940 (maintenance_print_msymbols, maintenance_print_objfiles)
11941 (maintenance_info_symtabs, maintenance_check_symtabs)
11942 (maintenance_expand_symtabs, maintenance_info_line_tables):
11943 Update.
11944 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11945 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11946 (map_overlay_command, unmap_overlay_command)
11947 (simple_overlay_update, expand_symtabs_matching)
11948 (map_symbol_filenames): Update.
11949 * symfile-debug.c (set_debug_symfile): Update.
11950 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11951 Update.
11952 * source.c (select_source_symtab, forget_cached_source_info):
11953 Update.
11954 * solib.c (solib_read_symbols): Update.
11955 * solib-spu.c (append_ocl_sos): Update.
11956 * psymtab.c (maintenance_print_psymbols)
11957 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11958 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11959 * printcmd.c (info_symbol_command): Update.
11960 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11961 Update.
11962 * objfiles.h (class all_objfiles): Remove.
11963 * objfiles.c (have_partial_symbols, have_full_symbols)
11964 (have_minimal_symbols, qsort_cmp, update_section_map)
11965 (shared_objfile_contains_address_p)
11966 (default_iterate_over_objfiles_in_search_order): Update.
11967 * objc-lang.c (info_selectors_command, info_classes_command)
11968 (find_methods): Update.
11969 * minsyms.c (find_solib_trampoline_target): Update.
11970 * maint.c (maintenance_info_sections)
11971 (maintenance_translate_address, count_symtabs_and_blocks):
11972 Update.
11973 * main.c (captured_main_1): Update.
11974 * linux-thread-db.c (try_thread_db_load_from_pdir)
11975 (has_libpthread): Update.
11976 * linespec.c (iterate_over_all_matching_symtabs)
11977 (search_minsyms_for_name): Update.
11978 * jit.c (jit_find_objf_with_entry_addr): Update.
11979 * hppa-tdep.c (find_unwind_entry)
11980 (hppa_lookup_stub_minimal_symbol): Update.
11981 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11982 Update.
11983 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11984 (elf_gnu_ifunc_resolve_by_got): Update.
11985 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11986 * dwarf-index-write.c (save_gdb_index_command): Update.
11987 * cp-support.c (add_symbol_overload_list_qualified): Update.
11988 * breakpoint.c (create_overlay_event_breakpoint)
11989 (create_longjmp_master_breakpoint)
11990 (create_std_terminate_master_breakpoint)
11991 (create_exception_master_breakpoint): Update.
11992 * blockframe.c (find_pc_partial_function): Update.
11993 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11994 (ada_collect_symbol_completion_matches)
11995 (ada_add_global_exceptions): Update.
11996
776489e0
TT
119972019-01-17 Tom Tromey <tom@tromey.com>
11998
11999 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12000 declare VEC.
12001 (solib_target_parse_libraries): Change return type.
12002 (library_list_start_segment, library_list_start_section)
12003 (library_list_end_library, library_list_start_library); Update.
12004 (solib_target_free_library_list): Remove.
12005 (solib_target_parse_libraries): Remove cleanup. Change return
12006 type.
12007 (solib_target_current_sos): Update.
12008
6471e7d2
TT
120092019-01-17 Tom Tromey <tromey@bapiya>
12010
12011 * valprint.c: Replace "the the" with "the".
12012 * symtab.c: Replace "the the" with "the".
12013 * solib.c: Replace "the the" with "the".
12014 * solib-dsbt.c: Replace "the the" with "the".
12015 * linespec.c: Replace "the the" with "the".
12016 * dwarf2loc.h: Replace "the the" with "the".
12017 * amd64-windows-tdep.c: Replace "the the" with "the".
12018 * aarch64-tdep.c: Replace "the the" with "the".
12019
c24bdb02
KS
120202019-01-16 Keith Seitz <keiths@redhat.com>
12021
12022 PR gdb/23773
12023 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12024 <builder>: Rename to ..
12025 <m_builder>: ... this and make private.
12026 (dwarf2_cu::get_builder): New method. Change all users of
12027 `builder' to use this method.
12028 (dwarf2_start_symtab): Move to ...
12029 (dwarf2_cu::start_symtab): ... here. Update all callers
12030 (setup_type_unit_groups): Move to ...
12031 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12032 callers.
12033 (dwarf2_cu::reset_builder): New method.
12034 (process_full_compunit, process_full_type_unit): Use
12035 dwarf2_cu::reset_builder.
12036 (follow_die_offset): Record the ancestor CU if it is different
12037 from the followed DIE's CU.
12038 (follow_die_sig_1): Likewise.
12039
8d64371b
TT
120402019-01-15 Tom Tromey <tom@tromey.com>
12041
12042 * remote.c (class remote_state) <buf>: Now a char_vector.
12043 <buf_size>: Remove.
12044 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12045 parameter.
12046 (remote_target::getpkt_or_notif_sane_1)
12047 (remote_target::getpkt_sane)
12048 (remote_target::getpkt_or_notif_sane): Likewise.
12049 (class remote_target) <putpkt>: New overload.
12050 (remote_target::read_frame): Change type of "buf_p". Remove
12051 sizeof_p parameter.
12052 (packet_ok): New overload.
12053 (packet_check_result): New overload.
12054 Update all uses.
12055
bb277751
TT
120562019-01-14 Tom Tromey <tom@tromey.com>
12057
12058 * remote-notif.c (handle_notification, remote_notif_ack)
12059 (remote_notif_parse): Make "buf" const.
12060 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12061 const.
12062 (remote_notif_parse, remote_notif_ack, handle_notification):
12063 Likewise.
12064 * remote.c (remote_notif_stop_parse): Make "buf" const.
12065 (remote_target::remote_parse_stop_reply): Make "buf" const.
12066 (remote_notif_stop_ack): Make "buf" const.
12067
05be00a8
TT
120682019-01-14 Tom Tromey <tom@tromey.com>
12069
12070 * remote.c (remote_console_output): Make parameter const.
12071
491adeca
TT
120722019-01-14 Tom Tromey <tom@tromey.com>
12073
12074 * target-debug.h (target_debug_print_signals): Constify.
12075 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12076 * procfs.c (procfs_target::pass_signals): Update.
12077 * linux-nat.c (linux_nat_target::pass_signals): Update.
12078 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12079 * target-delegates.c: Rebuild.
12080 * remote.c (remote_target::program_signals): Update.
12081 (remote_target::pass_signals): Update.
12082 * target.c (target_pass_signals): Constify argument.
12083 (target_program_signals): Likewise.
12084 * target.h (struct target_ops) <pass_signals, program_signals>:
12085 Constify argument.
12086 (target_pass_signals, target_program_signals): Constify argument.
12087
bbd94648
TT
120882019-01-14 Tom Tromey <tom@tromey.com>
12089
12090 PR tui/28819:
12091 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12092
6f072a10
PFC
120932019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12094
12095 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12096 field.
12097 * rs6000-tdep.c: Include reggroups.h.
12098 (IS_V_ALIAS_PSEUDOREG): Define.
12099 (rs6000_register_name): Return names for the "vX" aliases.
12100 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12101 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12102 aliases. Call default_register_reggroup_p for all other
12103 pseudo-registers.
12104 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12105 New functions.
12106 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12107 Handle "vX" aliases.
12108 (v_alias_pseudo_register_collect): New function.
12109 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12110 (rs6000_gdbarch_init): Initialize "vX" aliases as
12111 pseudo-registers. Restore registration of
12112 rs6000_pseudo_register_reggroup_p with
12113 set_tdesc_pseudo_register_reggroup_p.
12114
1a782351
MF
121152019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12116
12117 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12118 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12119 set_gdbarch_num_pseudo_regs.
12120
d73cff18
PW
121212019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12122
12123 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12124 Remove arg prefixname, add do_set and do_show.
12125 Add member functions set_list and show_list.
12126 * cli/cli-style.c (class cli_style_option): Update accordingly.
12127 (style_set_list): Move to file scope.
12128 (style_show_list): Likewise.
12129 (set_style): Call help_list.
12130 (show_style): Call cmd_show_list.
12131 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12132 Update to use the new macro.
12133
60a90376
JB
121342019-10-12 Joel Brobecker <brobecker@adacore.com>
12135
12136 * ada-lang.c (_initialize_ada_language): Expand the help text
12137 for the "catch exception" command.
12138
9d7c67bf
PW
121392019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12140
12141 * symtab.c (matching_obj_sections): Initialize obj,
12142 declare it closer to its usage.
12143
7cf47dc4
TT
121442019-01-10 Tom Tromey <tom@tromey.com>
12145
12146 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12147 (basic_inf_threads_range): Remove.
12148 (inf_threads_range, inf_non_exited_threads_range)
12149 (safe_inf_threads_range): Use next_adapter.
12150
d3cb6808
KS
121512019-01-10 Keith Seitz <keiths@redhat.com>
12152
12153 PR gdb/23712
12154 PR symtab/23010
12155 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12156 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12157
63a20375
KS
121582019-01-10 Keith Seitz <keiths@redhat.com>
12159
12160 PR gdb/23712
12161 PR symtab/23010
12162 * dictionary.c (pending_to_vector): Remove.
12163 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12164 Remove _1 suffix, replacing functions of the same name. Update
12165 all callers.
12166 (dict_create_hashed, dict_create_hashed_expandable)
12167 (dict_create_linear, dict_create_linear_expandable, dict_free)
12168 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12169 Make functions static.
12170
b026f593
KS
121712019-01-10 Keith Seitz <keiths@redhat.com>
12172
12173 PR gdb/23712
12174 PR symtab/23010
12175 * dictionary.h (struct dictionary): Replace declaration with
12176 multidictionary.
12177 (dict_create_hashed, dict_create_hashed_expandable)
12178 (dict_create_linear, dict_create_linear_expandable)
12179 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12180 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12181 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12182 taking multidictionary argument.
12183 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12184 * block.h (struct block) <dict>: Change to multidictionary
12185 and rename `multidict'.
12186 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12187 symmisc.c: Update all dictionary references to multidictionary.
12188
c7748ee9
KS
121892019-01-10 Keith Seitz <keiths@redhat.com>
12190
12191 PR gdb/23712
12192 PR symtab/23010
12193 * dictionary.c: Include unordered_map.
12194 (pending_to_vector): New function.
12195 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12196 Rewrite the non-"_1" functions to take vector instead
12197 of linked list.
12198 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12199 "new" _1 versions of the same name.
12200 (multidictionary): Define.
12201 (std::hash<enum language): New definition.
12202 (collate_pending_symbols_by_language, mdict_create_hashed)
12203 (mdict_create_hashed_expandable, mdict_create_linear)
12204 (mdict_create_linear_expandable, mdict_free)
12205 (find_language_dictionary, create_new_language_dictionary)
12206 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12207 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12208 (mdict_size, mdict_empty): New functions.
12209 * dictionary.h (mdict_iterator): Define.
12210
67aa1f3c
PA
122112019-01-10 Pedro Alves <palves@redhat.com>
12212
12213 * breakpoint.c (read_uploaded_action)
12214 (create_tracepoint_from_upload): Adjust to use
12215 gdb::unique_xmalloc_ptr.
12216 * ctf.c (ctf_write_uploaded_tp):
12217 (SET_ARRAY_FIELD): Use emplace_back.
12218 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12219 * tracefile-tfile.c (tfile_write_uploaded_tp):
12220 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12221 gdb::unique_xmalloc_ptr.
12222 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12223 at_string, cond_string, cmd_strings>: Replace char pointers
12224 with gdb::unique_xmalloc_ptr.
12225
2f667667
PA
122262019-01-10 Pedro Alves <palves@redhat.com>
12227
12228 * solib-target.c (library_list_start_library): Don't xstrdup name.
12229
36cb7237
PA
122302019-01-10 Pedro Alves <palves@redhat.com>
12231
12232 * mdebugread.c (parse_partial_symbols): Use
12233 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12234
da584958
AB
122352019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12236
12237 * linux-fork.c (scoped_switch_fork_info)
12238 <~scoped_switch_fork_info>: Fix incorrect variable name.
12239
1ef8573c
AB
122402019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12241
12242 * linux-fork.c (scoped_switch_fork_info)
12243 <scoped_switch_fork_info>: Make explicit.
12244 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12245
8d7bcccb
TT
122462019-01-10 Tom Tromey <tom@tromey.com>
12247
12248 * objfiles.h (objfile::reset_psymtabs): Update.
12249 * objfiles.c (objfile::objfile): Update.
12250 * psymtab.h (psymtab_storage::obstack): Update.
12251 (psymtab_storage::m_obstack): Use gdb::optional.
12252 (class psymtab_storage): Update comment. Remove objfile
12253 parameter.
12254 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12255
b596a3c7
TT
122562019-01-10 Tom Tromey <tom@tromey.com>
12257
12258 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12259 <free_psymtabs>: Now private.
12260 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12261 (allocate_psymtab): Use new method.
12262
a9342b62
TT
122632019-01-10 Tom Tromey <tom@tromey.com>
12264
12265 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12266 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12267 * mdebugread.c (parse_partial_symbols): Use
12268 allocate_dependencies.
12269 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12270 allocate_dependencies.
12271 (process_psymtab_comp_unit_reader)
12272 (build_type_psymtab_dependencies): Likewise.
12273 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12274
5af70966
TT
122752019-01-10 Tom Tromey <tom@tromey.com>
12276
12277 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12278 PSYMBOL_SET_LANGUAGE.
12279 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12280
5923a04c
TT
122812019-01-10 Tom Tromey <tom@tromey.com>
12282
12283 * psymtab.h (psymtab_storage::obstack): New method.
12284 <m_obstack>: Rename from obstack; now private.
12285 * psymtab.c (psymtab_storage): Update.
12286 * dwarf2read.c (create_addrmap_from_index)
12287 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12288 Update.
12289
6d6a12bf
TT
122902019-01-10 Tom Tromey <tom@tromey.com>
12291
12292 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12293 * objfiles.h (objfile::reset_psymtabs): New method.
12294
d320c2b5
TT
122952019-01-10 Tom Tromey <tom@tromey.com>
12296
12297 * symmisc.c (print_symbol_bcache_statistics): Update.
12298 (print_objfile_statistics): Update.
12299 * symfile.c (reread_symbols): Update.
12300 * psymtab.h (class psymtab_storage): New.
12301 * psymtab.c (psymtab_storage): New constructor.
12302 (~psymtab_storage): New destructor.
12303 (require_partial_symbols): Update.
12304 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12305 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12306 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12307 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12308 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12309 (start_psymtab_common, end_psymtab_common)
12310 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12311 (allocate_psymtab): Update.
12312 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12313 Update.
12314 (dump_psymtab_addrmap, maintenance_print_psymbols)
12315 (maintenance_check_psymtabs): Update.
12316 (class objfile_psymtabs): Move to objfiles.h.
12317 * psympriv.h (discard_psymtab): Now inline.
12318 (psymtab_discarder::psymtab_discarder): Update.
12319 (psymtab_discarder::~psymtab_discarder): Update.
12320 (ALL_OBJFILE_PSYMTABS): Rewrite.
12321 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12322 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12323 Remove fields.
12324 <partial_symtabs>: New field.
12325 (class objfile_psymtabs): Move from psymtab.h. Update.
12326 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12327 psymbol_cache.
12328 (objfile::~objfile): Don't destroy psymbol_cache.
12329 * mdebugread.c (parse_partial_symbols): Update.
12330 * dwarf2read.c (create_addrmap_from_index)
12331 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12332 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12333 (add_partial_subprogram, dwarf2_ranges_read): Update.
12334 * dwarf-index-write.c (write_address_map)
12335 (write_one_signatured_type, recursively_write_psymbols)
12336 (class debug_names, class debug_names, write_psymtabs_to_index):
12337 Update.
12338
1d94a5a3
TT
123392019-01-10 Tom Tromey <tom@tromey.com>
12340
12341 * symtab.h (SYMBOL_SET_NAMES): Update.
12342 (symbol_set_names): Update.
12343 (MSYMBOL_SET_NAMES): Update.
12344 * symtab.c (symbol_set_names): Change argument to be an
12345 objfile_per_bfd_storage.
12346 * psymtab.c (add_psymbol_to_bcache): Update.
12347 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12348
0f14768a
TT
123492019-01-10 Tom Tromey <tom@tromey.com>
12350
12351 * symtab.c (create_demangled_names_hash): Change argument to be an
12352 objfile_per_bfd_storage.
12353 (symbol_set_names): Update.
12354
6eee24ce
TT
123552019-01-10 Tom Tromey <tom@tromey.com>
12356
12357 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12358 init_psymbol_list.
12359 * psymtab.c (init_psymbol_list): Do nothing if already called.
12360 * psympriv.h (init_psymbol_list): Add comment.
12361 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12362 init_psymbol_list.
12363 * dbxread.c (dbx_symfile_read): Unconditionally call
12364 init_psymbol_list.
12365
75aedd27
TT
123662019-01-10 Tom Tromey <tom@tromey.com>
12367
12368 * xcoffread.c (scan_xcoff_symtab): Update.
12369 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12370 "where".
12371 * mdebugread.c (parse_partial_symbols)
12372 (handle_psymbol_enumerators): Update.
12373 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12374 * dbxread.c (read_dbx_symtab): Update.
12375 * psympriv.h (psymbol_placement): New enum.
12376 (add_psymbol_to_list): Update.
12377
939652a5
TT
123782019-01-10 Tom Tromey <tom@tromey.com>
12379
12380 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12381 static_psymbols parameters.
12382 (scan_xcoff_symtab): Update.
12383 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12384 static_psymbols parameters.
12385 * psympriv.h (start_psymtab_common): Update.
12386 * mdebugread.c (parse_partial_symbols): Update.
12387 * dwarf2read.c (create_partial_symtab): Update.
12388 * dbxread.c (read_dbx_symtab): Update.
12389 (start_psymtab): Remove global_psymbols and static_psymbols
12390 parameters.
12391
baa62830
TT
123922019-01-10 Tom Tromey <tom@tromey.com>
12393
12394 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12395 * psymtab.c (allocate_psymtab): Add comment.
12396 * psympriv.h (allocate_psymtab): Add comment.
12397 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12398 initializations.
12399 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12400
0e8f53ba
TT
124012019-01-10 Tom Tromey <tom@tromey.com>
12402
12403 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12404 Don't declare.
12405 * mipsread.c: Include mdebugread.h.
12406 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12407 Declare.
12408 * elfread.c: Include mdebugread.h.
12409
b22a7c6a
TT
124102019-01-09 Tom Tromey <tom@tromey.com>
12411
12412 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12413 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12414 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12415 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12416 (psym_lookup_symbol, psym_find_last_source_symtab)
12417 (psym_forget_cached_source_info, psym_print_stats)
12418 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12419 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12420 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12421 (psym_find_compunit_symtab_by_address)
12422 (maintenance_print_psymbols, maintenance_info_psymtabs)
12423 (maintenance_check_psymtabs): Use ranged for.
12424 * psymtab.h (class objfile_psymtabs): New.
12425 (require_partial_symbols): Return objfile_psymtabs.
12426 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12427
3b9d3ac2
TT
124282019-01-09 Tom Tromey <tom@tromey.com>
12429
12430 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12431 (find_pc_mapped_section, list_overlays_command)
12432 (map_overlay_command, unmap_overlay_command)
12433 (simple_overlay_update): Use all_objfiles.
12434 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12435 * printcmd.c (info_symbol_command): Use all_objfiles.
12436 * objfiles.h (ALL_OBJSECTIONS): Remove.
12437 * maint.c (maintenance_translate_address): Use all_objfiles.
12438 * gcore.c (gcore_create_callback): Use all_objfiles.
12439 (objfile_find_memory_regions): Likewise.
12440
8b31193a
TT
124412019-01-09 Tom Tromey <tom@tromey.com>
12442
12443 * symtab.c (find_line_symtab, info_sources_command)
12444 (make_source_files_completion_list): Use objfile_compunits.
12445 * source.c (select_source_symtab): Use objfile_compunits.
12446 * objfiles.h (struct objfile): Update comment.
12447 (ALL_OBJFILES): Remove.
12448 (ALL_FILETABS): Remove.
12449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12450 objfile_compunits.
12451
d5da8b3c
TT
124522019-01-09 Tom Tromey <tom@tromey.com>
12453
12454 * symmisc.c (print_objfile_statistics, dump_objfile)
12455 (maintenance_print_symbols): Use compunit_filetabs.
12456 * source.c (forget_cached_source_info_for_objfile): Use
12457 compunit_filetabs.
12458 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12459 (ALL_FILETABS): Use compunit_filetabs.
12460 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12461 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12462
5accd1a0
TT
124632019-01-09 Tom Tromey <tom@tromey.com>
12464
12465 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12466 (compunit_filetabs): New.
12467 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12468 compunit_filetabs.
12469 (info_sources_command, make_source_files_completion_list): Remove
12470 declaration.
12471 * symmisc.c (print_objfile_statistics, dump_objfile)
12472 (maintenance_print_symbols): Remove declaration.
12473 (maintenance_info_symtabs): Use compunit_filetabs.
12474 (maintenance_info_line_tables): Likewise.
12475 * source.c (select_source_symtab): Change local variable name.
12476 (forget_cached_source_info_for_objfile): Remove declaration.
12477 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12478 * objfiles.c (objfile_relocate1): Remove declaration.
12479 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12480 declaration.
12481 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12482 * coffread.c (coff_symtab_read): Remove declaration.
12483 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12484 compunit_filetabs.
12485
d8aeb77f
TT
124862019-01-09 Tom Tromey <tom@tromey.com>
12487
12488 * symtab.c (lookup_objfile_from_block)
12489 (find_pc_sect_compunit_symtab, search_symbols)
12490 (default_collect_symbol_completion_matches_break_on): Use
12491 objfile_compunits.
12492 * objfiles.h (ALL_COMPUNITS): Remove.
12493 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12494 * cp-support.c (add_symbol_overload_list_qualified): Use
12495 objfile_compunits.
12496 * ada-lang.c (ada_collect_symbol_completion_matches)
12497 (ada_add_global_exceptions): Use objfile_compunits.
12498
592553c4
TT
124992019-01-09 Tom Tromey <tom@tromey.com>
12500
12501 * source.c (select_source_symtab)
12502 (forget_cached_source_info_for_objfile): Remove declaration.
12503 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12504 declaration.
12505 * maint.c (count_symtabs_and_blocks): Remove declaration.
12506 * cp-support.c (add_symbol_overload_list_qualified): Remove
12507 declaration.
12508 * coffread.c (coff_symtab_read): Remove declaration.
12509 * symtab.c (lookup_symbol_in_objfile_symtabs)
12510 (basic_lookup_transparent_type_1): Use objfile_compunits.
12511 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12512 (info_sources_command, search_symbols)
12513 (default_collect_symbol_completion_matches_break_on)
12514 (make_source_files_completion_list): Remove declaration.
12515 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12516 (ada_collect_symbol_completion_matches)
12517 (ada_add_global_exceptions): Remove declaration.
12518 * linespec.c (iterate_over_all_matching_symtabs): Use
12519 objfile_compunits.
12520 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12521 (class objfile_compunits): New.
12522 (ALL_COMPUNITS): Use objfile_compunits.
12523 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12524 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12525 objfile_compunits.
12526 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12527
5325b9bf
TT
125282019-01-09 Tom Tromey <tom@tromey.com>
12529
12530 * symtab.c (search_symbols)
12531 (default_collect_symbol_completion_matches_break_on): Use
12532 objfile_msymbols.
12533 * ada-lang.c (ada_lookup_simple_minsym)
12534 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12535 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12536 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12537 objfile_msymbols.
12538 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12539 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12540 * objc-lang.c (find_methods): Use objfile_msymbols.
12541 (info_selectors_command, info_classes_command): Likewise.
12542 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12543 * objfiles.h (class objfile_msymbols): New.
12544 (ALL_OBJFILE_MSYMBOLS): Remove.
12545 (ALL_MSYMBOLS): Remove.
12546
cac85af2
TT
125472019-01-09 Tom Tromey <tom@tromey.com>
12548
12549 * common/next-iterator.h (next_adapter): Add Iterator template
12550 parameter.
12551 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12552 (class all_objfiles_safe): New.
12553 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12554 * objfiles.c (put_objfile_before): Update comment.
12555 (add_separate_debug_objfile): Likewise.
12556 (free_all_objfiles): Use all_objfiles_safe.
12557 (objfile_purge_solibs): Likewise.
12558
aed57c53
TT
125592019-01-09 Tom Tromey <tom@tromey.com>
12560
12561 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12562 (expand_symtab_containing_pc, lookup_static_symbol)
12563 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12564 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12565 all_objfiles.
12566 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12567 * breakpoint.c (create_overlay_event_breakpoint)
12568 (create_longjmp_master_breakpoint)
12569 (create_std_terminate_master_breakpoint)
12570 (create_exception_master_breakpoint): Use all_objfiles.
12571 * linux-thread-db.c (try_thread_db_load_from_pdir)
12572 (has_libpthread): Use all_objfiles.
12573 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12574 * linespec.c (iterate_over_all_matching_symtabs)
12575 (search_minsyms_for_name): Use all_objfiles.
12576 * maint.c (maintenance_info_sections): Use all_objfiles.
12577 * main.c (captured_main_1): Use all_objfiles.
12578 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12579 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12580 * guile/scm-pretty-print.c
12581 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12582 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12583 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12584 (maintenance_print_msymbols): Use all_objfiles.
12585 * source.c (select_source_symtab): Use all_objfiles.
12586 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12587 * symfile.c (remove_symbol_file_command)
12588 (expand_symtabs_matching, map_symbol_filenames): Use
12589 all_objfiles.
12590 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12591 all_objfiles.
12592 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12593 * objc-lang.c (find_methods): Use all_objfiles.
12594 * objfiles.c (have_partial_symbols, have_full_symbols)
12595 (have_minimal_symbols, qsort_cmp)
12596 (default_iterate_over_objfiles_in_search_order): Use
12597 all_objfiles.
12598 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12599 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12600 (maintenance_check_psymtabs): Use all_objfiles.
12601 (ALL_PSYMTABS): Remove.
12602 * compile/compile-object-run.c (do_module_cleanup): Use
12603 all_objfiles.
12604 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12605 * cp-support.c (add_symbol_overload_list_qualified): Use
12606 all_objfiles.
12607 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12608 Use all_objfiles.
12609 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12610 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12611 all_objfiles.
12612 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12613 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12614 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12615 Uses all_objfiles.
12616 * solib.c (solib_read_symbols): Use all_objfiles
12617
99d89cde
TT
126182019-01-09 Tom Tromey <tom@tromey.com>
12619
12620 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12621 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12622 all_objfiles.
12623 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12624 * symmisc.c (print_symbol_bcache_statistics)
12625 (print_objfile_statistics, maintenance_print_objfiles)
12626 (maintenance_info_symtabs, maintenance_check_symtabs)
12627 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12628 all_objfiles.
12629 * source.c (forget_cached_source_info): Use all_objfiles.
12630 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12631 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12632 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12633 * objfiles.c (update_section_map): Use all_objfiles.
12634 (shared_objfile_contains_address_p): Likewise.
12635 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12636 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12637
21708325
TT
126382019-01-09 Tom Tromey <tom@tromey.com>
12639
12640 * common/next-iterator.h: New file.
12641 * objfiles.h (class all_objfiles): New.
12642 (struct objfile_iterator): New.
12643
669e09f6
PW
126442019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12645
12646 * NEWS: Move the description of the changed "frame", "select-frame",
12647 and "info frame" commands to the Changed commands section.
12648
041be526
SM
126492019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12650
12651 * gdbtypes.c (check_stub_method_group): Remove handling of old
12652 mangling schemes.
12653 * linespec.c (find_methods): Likewise.
12654 * stabsread.c (read_member_functions): Likewise.
12655 * valops.c (search_struct_method): Likewise.
12656 (value_struct_elt_for_reference): Likewise.
12657 * NEWS: Mention this change.
12658
0e2a2133
AB
126592019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12660
12661 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12662 print_source_lines.
12663 * source.c (print_source_lines_base): Update line number check.
12664 (print_source_lines): New function.
12665 (source_lines_range::source_lines_range): New function.
12666 * source.h (class source_lines_range): New class.
12667 (print_source_lines): New declaration.
12668
1055a3b4
PW
126692019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12670
12671 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12672
cfeadda5
TT
126732019-01-08 Tom Tromey <tom@tromey.com>
12674 Simon Marchi <simon.marchi@ericsson.com>
12675
12676 PR gdb/24060
12677 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12678 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12679 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12680 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12681 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12682 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12683
583068ca
AB
126842019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12685
12686 * source.c (select_source_symtab): Move header comment to
12687 declaration in source.h.
12688 (forget_cached_source_info_for_objfile): Likewise.
12689 (forget_cached_source_info): Likewise.
12690 (identify_source_line): Likewise.
12691 * source.h (identify_source_line): Move declaration from symtab.h
12692 and add comment from source.c
12693 (print_source_lines): Likewise.
12694 (forget_cached_source_info_for_objfile): Likewise.
12695 (forget_cached_source_info): Likewise.
12696 (select_source_symtab): Likewise.
12697 (enum print_source_lines_flag): Move definition from symtab.h.
12698 * symtab.h (identify_source_line): Move declaration to source.h.
12699 (print_source_lines): Likewise.
12700 (forget_cached_source_info_for_objfile): Likewise.
12701 (forget_cached_source_info): Likewise.
12702 (select_source_symtab): Likewise.
12703 (enum print_source_lines_flag): Move definition to source.h.
12704 * tui/tui-hooks.c: Add 'source.h' include.
12705
ec98a4ad
AB
127062019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12707
12708 * source.c (print_source_lines_base): Handle requests to print
12709 reverse line number sequences, and guard against empty lines
12710 string.
12711
62ea19c1
AB
127122019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12713
12714 * source.c (print_source_lines_base): Fix skip of '\r' if next
12715 character is '\n'.
12716
9d30e1fd
TT
127172019-01-06 Tom Tromey <tom@tromey.com>
12718
12719 * c-exp.y (struct c_parse_state) <macro_original_text,
12720 expansion_obstack>: New member.
12721 (macro_original_text, expansion_obstack): Remove globals.
12722 (scan_macro_expansion, scanning_macro_expansion)
12723 (finished_macro_expansion): Update.
12724 (scan_macro_cleanup): Remove.
12725 (yylex, c_parse): Update.
12726
c65bac38
TT
127272019-01-06 Tom Tromey <tom@tromey.com>
12728
12729 * c-exp.y (struct c_parse_state) <strings>: New member.
12730 (operator_stoken): Update.
12731
02e12e38
TT
127322019-01-06 Tom Tromey <tom@tromey.com>
12733
12734 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12735 (union type_stack_elt) <typelist_val>: Now a pointer to
12736 std::vector.
12737 (type_stack_cleanup): Don't declare.
12738 (push_typelist): Update.
12739 * parse.c (pop_typelist): Return a std::vector.
12740 (push_typelist): Take a std::vector.
12741 (follow_types): Update. Do not free args.
12742 (type_stack_cleanup): Remove.
12743 * c-exp.y (struct c_parse_state): New.
12744 (cpstate): New global.
12745 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12746 (nonempty_typelist): Update.
12747 (func_mod): Create a new vector.
12748 (c_parse): Create a c_parse_state.
12749 (check_parameter_typelist): Do not delete params.
12750 (function_method): Update. Do not delete type_list.
12751
f097f5ad
TT
127522019-01-06 Tom Tromey <tom@tromey.com>
12753
12754 PR gdb/28155:
12755 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12756 check_typedef.
12757 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12758 (print_return_value): Likewise.
12759
d2adf9f1
TT
127602019-01-05 Tom Tromey <tom@tromey.com>
12761
12762 * contrib/cleanup_check.py: Remove.
12763 * contrib/gcc-with-excheck: Remove.
12764 * contrib/exsummary.py: Remove.
12765 * contrib/excheck.py: Remove.
12766
2eab46b1
JB
127672019-01-05 Joel Brobecker <brobecker@adacore.com>
12768
12769 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12770 NULL. Initialize tpprev to NULL instead of assigning it
12771 to NULL on the next statement.
12772 * windows-nat.c (windows_delete_thread): Remove check for
12773 main_thread_id before printing thread exit notifications.
12774 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12775 Remove thread ID check against main_thread_id.
12776 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12777 windows_delete_thread.
12778 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12779
48c5e7e2
TT
127802019-01-04 Tom Tromey <tom@tromey.com>
12781
12782 * compile/compile.c (_initialize_compile): Use upper case for
12783 metasyntactic variables.
12784 * symmisc.c (_initialize_symmisc): Use upper case for
12785 metasyntactic variables.
12786 * psymtab.c (_initialize_psymtab): Use upper case for
12787 metasyntactic variables.
12788 * demangle.c (demangle_command): Use upper case for metasyntactic
12789 variables.
12790 (_initialize_demangler): Likewise.
12791 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12792 variables.
12793
986041cd
TT
127942019-01-03 Tom Tromey <tom@tromey.com>
12795
12796 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12797
7c711119
TT
127982019-01-03 Tom Tromey <tom@tromey.com>
12799
12800 * python/py-symtab.c (salpy_str): Update.
12801 (struct salpy_sal_object) <symtab>: Now a PyObject.
12802 (salpy_dealloc): Update.
12803 (del_objfile_sal): Use gdbpy_ref.
12804
1b20edf0
TT
128052019-01-03 Tom Tromey <tom@tromey.com>
12806
12807 * python/py-type.c (convert_field): Use new_reference. Return
12808 gdbpy_ref.
12809 (make_fielditem): Return gdbpy_ref.
12810 (typy_fields): Update.
12811 (typy_getitem): Update.
12812 (field_name): Return gdbpy_ref. Use new_reference.
12813 (typy_iterator_iternext): Update.
12814
ea41325b
TT
128152019-01-03 Tom Tromey <tom@tromey.com>
12816
12817 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12818
2a3c71d6
TT
128192019-01-03 Tom Tromey <tom@tromey.com>
12820
12821 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12822 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12823 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12824 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12825 (pspy_set_type_printers): Likewise.
12826 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12827 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12828 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12829 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12830 (objfpy_set_type_printers): Likewise.
12831
5c329e6a
TT
128322019-01-03 Tom Tromey <tom@tromey.com>
12833
12834 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12835 (gdbpy_print_stack): Use gdbpy_err_fetch.
12836 * python/python-internal.h (class gdbpy_err_fetch): New class.
12837 (class gdbpy_enter) <m_error_type, m_error_value,
12838 m_error_traceback>: Remove.
12839 <m_error>: New member.
12840 (gdbpy_exception_to_string): Don't declare.
12841 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12842 * python/py-value.c (convert_value_from_python): Use
12843 gdbpy_err_fetch.
12844 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12845 gdbpy_exception_to_string.
12846 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12847 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12848 gdbpy_err_fetch.
12849
169bb27b
AB
128502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12851
12852 * linux-nat.c (delete_lwp_cleanup): Delete.
12853 (struct lwp_deleter): New struct.
12854 (lwp_info_up): New typedef.
12855 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12856 lwp_info_up.
12857
a07c8880
AB
128582019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12859
12860 * linux-fork.c (class scoped_switch_fork_info): New class.
12861 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12862
26089c49
AB
128632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12864
12865 * valops.c (find_overload_match): Remove use of null_cleanup, and
12866 calls to do_cleanups.
12867
06d3e5b0
AB
128682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12869
12870 * compile/compile-cplus-types.c
12871 (compile_cplus_instance::decl_name): Handle changes to
12872 cp_func_name.
12873 * cp-support.c (cp_func_name): Update header comment, update
12874 return type.
12875 * cp-support.h (cp_func_name): Update return type in declaration.
12876 * valops.c (find_overload_match): Move temp_func local to top
12877 level of function and change its type. Use temp_func to hold and
12878 delete temporary string obtained from cp_func_name.
12879
66644cd3
AB
128802019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12881
12882 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12883 gdb::char_vector, remove cleanup, and update uses of `msg`.
12884
592d8c0a
JW
128852019-01-03 Jim Wilson <jimw@sifive.com>
12886
12887 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12888
c55d06ec
TT
128892019-01-02 Tom Tromey <tom@tromey.com>
12890
12891 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12892 (tdesc_parse_xml): Remove cleanups.
12893 * target-descriptions.h (make_cleanup_free_target_description):
12894 Don't declare.
12895 (target_desc_deleter): New struct.
12896 (target_desc_up): New typedef.
12897 * target-descriptions.c (target_desc_deleter::operator()): Rename
12898 from free_target_description.
12899 (make_cleanup_free_target_description): Remove.
12900
3a6ae42d
TT
129012019-01-02 Tom Tromey <tom@tromey.com>
12902
12903 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12904 constructor, destructor.
12905 (linespec_parser): Remove typedef.
12906 (~linespec_parser): Rename from linespec_parser_delete.
12907 (linespec_lex_to_end, linespec_complete_label)
12908 (linespec_complete): Update.
12909 (decode_line_full): Remove cleanups.
12910 (decode_line_1): Update.
12911
61fd3e73
TT
129122019-01-02 Tom Tromey <tom@tromey.com>
12913
12914 * python/python-internal.h (inferior_to_inferior_object): Change
12915 return type.
12916 * python/py-exitedevent.c (create_exited_event_object): Update.
12917 * python/py-inferior.c (inferior_to_inferior_object): Return
12918 gdbpy_ref.
12919 (python_new_inferior, python_inferior_deleted)
12920 (thread_to_thread_object, delete_thread_object)
12921 (build_inferior_list, gdbpy_selected_inferior): Update.
12922 * python/py-infthread.c (create_thread_object): Update. Also fail
12923 if inferior_to_inferior_object fails.
12924
d20172fc
SM
129252019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12926
12927 * inferior.h (class inferior) <displaced_step_state>: New field.
12928 * infrun.h (struct displaced_step_state): Move here from
12929 infrun.c. Initialize fields, add constructor.
12930 <inf>: Remove field.
12931 <reset>: New method.
12932 * infrun.c (struct displaced_step_inferior_state): Move to
12933 infrun.h.
12934 (displaced_step_inferior_states): Remove.
12935 (get_displaced_stepping_state): Adust.
12936 (displaced_step_in_progress_any_inferior): Adjust.
12937 (displaced_step_in_progress_thread): Adjust.
12938 (displaced_step_in_progress): Adjust.
12939 (add_displaced_stepping_state): Remove.
12940 (get_displaced_step_closure_by_addr): Adjust.
12941 (remove_displaced_stepping_state): Remove.
12942 (infrun_inferior_exit): Call displaced_step_state.reset.
12943 (use_displaced_stepping): Don't check for NULL.
12944 (displaced_step_prepare_throw): Call
12945 get_displaced_stepping_state.
12946 (displaced_step_fixup): Don't check for NULL.
12947 (prepare_for_detach): Don't check for NULL.
12948
e3319240
PW
129492019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12950
12951 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12952 in case of call that did not complete.
12953
5d36dfb9
AU
129542019-01-02 Andrey Utkin <autkin@undo.io>
12955
12956 * symfile.c (find_separate_debug_file): Fix search of debug files for
12957 remote debuggee.
12958
8833fbf0
TT
129592019-01-02 Tom Tromey <tom@tromey.com>
12960
12961 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12962 indentation.
12963 * python/py-frame.c (frapy_older): Remove cast.
12964 (frapy_newer): Likewise.
12965 * python/py-breakpoint.c (local_setattro): Remove cast.
12966 * python/py-arch.c (archpy_name): Remove local variable.
12967 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12968
4ada3dfd
JB
129692019-01-02 Joel Brobecker <brobecker@adacore.com>
12970
12971 * unittests/basic_string_view/element_access/char/empty.cc:
12972 Fix year range in copyright header.
12973
113b7b81
AB
129742019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12975
12976 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12977 Delete.
12978 <operator==>: Update with for removed field.
12979 <hash>: Likewise.
12980 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12981 <isa_features>: ...this.
12982 <abi_features>: New field.
12983 (riscv_isa_flen): Update comment.
12984 (riscv_abi_xlen): New declaration.
12985 (riscv_abi_flen): New declaration.
12986 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12987 isa_features.
12988 (riscv_abi_xlen): New function.
12989 (riscv_isa_flen): Update to get answer from isa_features.
12990 (riscv_abi_flen): New function.
12991 (riscv_has_fp_abi): Update to get answer from abi_features.
12992 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12993 xlen and flen.
12994 (riscv_call_info) <xlen, flen>: Update comment.
12995 (riscv_call_arg_struct): Remove invalid assertions
12996 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12997 is removed.
12998 (riscv_gdbarch_init): Gather isa features and abi features
12999 separately, ensure both match on the gdbarch when reusing an old
13000 gdbarch. Relax an error check to allow 32-bit abi float to run on
13001 a target with 64-bit float hardware.
13002
b18ca514
PW
130032019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13004
13005 * source.c (search_command_helper): Stop reverse search
13006 when line 1 has been searched.
13007
ec70d8db
PW
130082019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13009
13010 * record-full.c (record_full_base_target::close): Rewrite
13011 record_full_core_buf_list free logic.
13012
5b38f9c1
PW
130132019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13014
13015 * break-catch-syscall.c (print_one_catch_syscall): xfree
13016 the last text.
13017
66d91b39
JB
130182019-01-01 Joel Brobecker <brobecker@adacore.com>
13019
13020 * top.c (print_gdb_version): Update Copyright year in version
13021 message.
13022
42a4f53d
JB
130232019-01-01 Joel Brobecker <brobecker@adacore.com>
13024
13025 Update copyright year range in all GDB files.
13026
7e955d83 130272019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13028
5bbd631d 13029 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13030
5bbd631d 13031For older changes see ChangeLog-2018.
c906108c
SS
13032\f
13033Local Variables:
13034mode: change-log
13035left-margin: 8
13036fill-column: 74
13037version-control: never
57da7796 13038coding: utf-8
c906108c 13039End:
5bbd631d 13040
This page took 3.843584 seconds and 4 git commands to generate.