Replace the MSYMBOL_*_NAME macros with member functions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c9d95fa3
CB
12019-11-22 Christian Biesinger <cbiesinger@google.com>
2
3 * ada-lang.c (ada_lookup_simple_minsym): Update.
4 (ada_collect_symbol_completion_matches): Update.
5 * ada-tasks.c (read_atcb): Update.
6 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7 (amd64_windows_skip_trampoline_code): Update.
8 * arm-tdep.c (skip_prologue_function): Update.
9 (arm_skip_stack_protector): Update.
10 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11 (arm_wince_skip_main_prologue): Update.
12 * ax-gdb.c (gen_expr): Update.
13 * block.c (call_site_for_pc): Update.
14 * blockframe.c (find_pc_partial_function): Update.
15 * breakpoint.c (set_breakpoint_location_function): Update.
16 * btrace.c (ftrace_print_function_name): Update.
17 (ftrace_function_switched): Update.
18 * c-valprint.c (print_unpacked_pointer): Update.
19 * coffread.c (coff_symfile_read): Update.
20 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
21 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
22 * dwarf-index-write.c (write_psymbols): Update.
23 * dwarf2loc.c (call_site_to_target_addr): Update.
24 (func_verify_no_selftailcall): Update.
25 (tailcall_dump): Update.
26 (call_site_find_chain_1): Update.
27 (dwarf_expr_reg_to_entry_parameter): Update.
28 * elfread.c (elf_gnu_ifunc_record_cache): Update.
29 * eval.c (evaluate_funcall): Update.
30 (evaluate_subexp_standard): Update.
31 (evaluate_subexp_for_sizeof): Update.
32 * expprint.c (print_subexp_standard): Update.
33 (dump_subexp_body_standard): Update.
34 * frame.c (get_prev_frame_always_1): Update.
35 * frv-tdep.c (frv_skip_main_prologue): Update.
36 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
37 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
38 (gnuv3_get_typename_from_type_info): Update.
39 (gnuv3_skip_trampoline): Update.
40 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
41 * i386-tdep.c (i386_skip_main_prologue): Update.
42 (i386_pe_skip_trampoline_code): Update.
43 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
44 * infcall.c (get_function_name): Update.
45 * linespec.c (minsym_found): Update.
46 * linux-fork.c (info_checkpoints_command): Update.
47 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
48 (m32c_m16c_pointer_to_address): Update.
49 * maint.c (maintenance_translate_address): Update.
50 * minsyms.c (add_minsym_to_hash_table): Update.
51 (add_minsym_to_demangled_hash_table): Update.
52 (lookup_minimal_symbol_mangled): Update.
53 (lookup_minimal_symbol_demangled): Update.
54 (lookup_minimal_symbol_linkage): Update.
55 (lookup_minimal_symbol_text): Update.
56 (lookup_minimal_symbol_by_pc_name): Update.
57 (minimal_symbol_is_less_than): Update.
58 (compact_minimal_symbols): Update.
59 (build_minimal_symbol_hash_tables): Update.
60 (find_solib_trampoline_target): Update.
61 * mips-tdep.c (mips_stub_frame_sniffer): Update.
62 (mips_skip_pic_trampoline_code): Update.
63 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
64 * objc-lang.c (info_selectors_command): Update.
65 (info_classes_command): Update.
66 (find_methods): Update.
67 (find_imps): Update.
68 * p-valprint.c (pascal_val_print): Update.
69 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
70 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
71 * printcmd.c (build_address_symbolic): Update.
72 (info_symbol_command): Update.
73 * psymtab.c (psymbol_name_matches): Update.
74 (match_partial_symbol): Update.
75 (lookup_partial_symbol): Update.
76 (print_partial_symbols): Update.
77 (sort_pst_symbols): Update.
78 (maintenance_check_psymtabs): Update.
79 * python/py-framefilter.c (py_print_frame): Update.
80 * python/python.c (gdbpy_rbreak): Update.
81 * record-btrace.c (btrace_get_bfun_name): Update.
82 (btrace_call_history): Update.
83 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
84 (rs6000_skip_trampoline_code): Update.
85 * sol-thread.c (info_cb): Update.
86 * stabsread.c (scan_file_globals): Update.
87 * stack.c (find_frame_funname): Update.
88 (info_frame_command_core): Update.
89 * symmisc.c (dump_msymbols): Update.
90 * symtab.c (symbol_natural_name): Rename to..,
91 (general_symbol_info::natural_name): ...this.
92 (symbol_demangled_name): Rename to...
93 (general_symbol_info::demangled_name): ...this.
94 (symbol_search_name): Rename to...
95 (general_symbol_info::search_name): ...this.
96 (symbol_matches_search_name): Update.
97 (find_pc_sect_line): Update.
98 (skip_prologue_sal): Update.
99 (search_symbols): Update.
100 (print_msymbol_info): Update.
101 (rbreak_command): Update.
102 (completion_list_add_msymbol): Update.
103 (completion_list_objc_symbol): Update.
104 (get_msymbol_address): Update.
105 * symtab.h (struct general_symbol_info): Add member functions
106 natural_name (), linkage_name (), print_name (), demangled_name (),
107 and search_name ().
108 (SYMBOL_NATURAL_NAME): Update.
109 (symbol_natural_name): Move to a member function on general_symbol_info.
110 (SYMBOL_DEMANGLED_NAME): Update.
111 (symbol_demangled_name): Move to a member function on
112 general_symbol_info.
113 (SYMBOL_SEARCH_NAME): Update.
114 (symbol_search_name): Move to a member function on general_symbol_info.
115 (MSYMBOL_NATURAL_NAME): Remove.
116 (MSYMBOL_LINKAGE_NAME): Remove.
117 (MSYMBOL_PRINT_NAME): Remove.
118 (MSYMBOL_DEMANGLED_NAME): Remove.
119 (MSYMBOL_SEARCH_NAME): Remove.
120 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
121
f8bab2d6
CB
1222019-11-22 Christian Biesinger <cbiesinger@google.com>
123
124 * symtab.c (create_demangled_names_hash): Use per_bfd->
125 minimal_symbol_count for computing the initial size, if greater
126 than our default size.
127
85e7588d
TV
1282019-11-22 Tom de Vries <tdevries@suse.de>
129
130 * contrib/words.sh: Improve words extraction.
131
f6180073
TV
1322019-11-22 Tom de Vries <tdevries@suse.de>
133
134 * contrib/words.sh: Combine sed invocations.
135
f10ffa41
CB
1362019-11-21 Christian Biesinger <cbiesinger@google.com>
137
138 * Makefile.in: Update.
139 * demangle.c: Rename to...
140 * gdb-demangle.c: ..this.
141 (is_cplus_marker): Change return type to bool.
142 (_initialize_demangler): Rename to...
143 (_initialize_gdb_demangle): ...this.
144 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
145 * symtab.h (demangle): Remove declaration; instead include
146 gdb-demangle.h.
147
6ba18521
TT
1482019-11-21 Tom Tromey <tromey@adacore.com>
149
150 * gdbsupport/format.c (format_pieces): Parse %I64d.
151 * unittests/format_pieces-selftests.c (test_windows_formats): New
152 function.
153 (run_tests): Call it.
154
34877895
PJ
1552019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
156
157 Byte reverse display of variables with DW_END_big, DW_END_little
158 (DW_AT_endianity) dwarf attributes if different than the native
159 byte order.
160 * ada-lang.c (ada_value_binop):
161 Use type_byte_order instead of gdbarch_byte_order.
162 * ada-valprint.c (printstr):
163 (ada_val_print_string):
164 * ada-lang.c (value_pointer):
165 (ada_value_binop):
166 Use type_byte_order instead of gdbarch_byte_order.
167 * c-lang.c (c_get_string):
168 Use type_byte_order instead of gdbarch_byte_order.
169 * c-valprint.c (c_val_print_array):
170 Use type_byte_order instead of gdbarch_byte_order.
171 * cp-valprint.c (cp_print_class_member):
172 Use type_byte_order instead of gdbarch_byte_order.
173 * dwarf2loc.c (rw_pieced_value):
174 Use type_byte_order instead of gdbarch_byte_order.
175 * dwarf2read.c (read_base_type): Handle DW_END_big,
176 DW_END_little
177 * f-lang.c (f_get_encoding):
178 Use type_byte_order instead of gdbarch_byte_order.
179 * findvar.c (default_read_var_value):
180 Use type_byte_order instead of gdbarch_byte_order.
181 * gdbtypes.c (check_types_equal):
182 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
183 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
184 and TYPE_ENDIANITY_LITTLE if set.
185 (type_byte_order): new function.
186 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
187 (struct main_type) <flag_endianity_not_default>:
188 New field.
189 (type_byte_order): New function.
190 * infcmd.c (default_print_one_register_info):
191 Use type_byte_order instead of gdbarch_byte_order.
192 * p-lang.c (pascal_printstr):
193 Use type_byte_order instead of gdbarch_byte_order.
194 * p-valprint.c (pascal_val_print):
195 Use type_byte_order instead of gdbarch_byte_order.
196 * printcmd.c (print_scalar_formatted):
197 Use type_byte_order instead of gdbarch_byte_order.
198 * solib-darwin.c (darwin_current_sos):
199 Use type_byte_order instead of gdbarch_byte_order.
200 * solib-svr4.c (solib_svr4_r_ldsomap):
201 Use type_byte_order instead of gdbarch_byte_order.
202 * stap-probe.c (stap_modify_semaphore):
203 Use type_byte_order instead of gdbarch_byte_order.
204 * target-float.c (target_float_same_format_p):
205 Use type_byte_order instead of gdbarch_byte_order.
206 * valarith.c (scalar_binop):
207 (value_bit_index):
208 Use type_byte_order instead of gdbarch_byte_order.
209 * valops.c (value_cast):
210 Use type_byte_order instead of gdbarch_byte_order.
211 * valprint.c (generic_emit_char):
212 (generic_printstr):
213 (val_print_string):
214 Use type_byte_order instead of gdbarch_byte_order.
215 * value.c (unpack_long):
216 (unpack_bits_as_long):
217 (unpack_value_bitfield):
218 (modify_field):
219 (pack_long):
220 (pack_unsigned_long):
221 Use type_byte_order instead of gdbarch_byte_order.
222 * findvar.c (unsigned_pointer_to_address):
223 (signed_pointer_to_address):
224 (unsigned_address_to_pointer):
225 (address_to_signed_pointer):
226 (default_read_var_value):
227 (default_value_from_register):
228 Use type_byte_order instead of gdbarch_byte_order.
229 * gnu-v3-abi.c (gnuv3_make_method_ptr):
230 Use type_byte_order instead of gdbarch_byte_order.
231 * riscv-tdep.c (riscv_print_one_register_info):
232 Use type_byte_order instead of gdbarch_byte_order.
233
87fb00ea
SM
2342019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
237 (current_ui_gdb_stdin_ptr): Likewise.
238 (current_ui_gdb_stderr_ptr): Likewise.
239 (current_ui_gdb_stdlog_ptr): Likewise.
240 (current_ui_current_uiout_ptr): Likewise.
241 (gen_ret_current_ui_field_ptr): Remove.
242
65d1cd5f
TV
2432019-11-21 Tom de Vries <tdevries@suse.de>
244
245 PR gdb/24956
246 * cli/cli-script.c (execute_control_command): Only switch to
247 INTERP_CONSOLE's ui_out when INTERP_MI is active.
248
9f6ad286
TT
2492019-11-19 Tom Tromey <tom@tromey.com>
250
251 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
252 Now static. Change type of "name".
253 (tui_set_win_height_command): Don't copy "arg".
254 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
255 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
256
435d3d88
AT
2572019-11-19 Ali Tamur <tamur@google.com>
258
259 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
260 "if (attr != nullptr)".
261 (dwarf2_find_base_address): Likewise.
262 (dwarf2_build_include_psymtabs): Likewise.
263 (read_cutu_die_from_dwo): Likewise.
264 (read_func_scope): Likewise.
265 (read_call_site_scope): Likewise.
266 (dwarf2_get_pc_bounds): Likewise.
267 (dwarf2_record_block_ranges): Likewise.
268 (dwarf2_add_field): Likewise.
269 (dwarf2_add_member_fn): Likewise.
270 (read_structure_type): Likewise.
271 (read_enumeration_type): Likewise.
272 (read_array_type): Likewise.
273 (read_array_order): Likewise.
274 (read_set_type): Likewise.
275 (read_common_block): Likewise.
276 (read_tag_reference_type): Likewise.
277 (read_tag_string_type): Likewise.
278 (read_subroutine_type): Likewise.
279 (read_base_type): Likewise.
280 (read_subrange_type): Likewise.
281 (new_symbol): Likewise.
282 (prepare_one_comp_unit): Likewise.
283
c9739b6a
TT
2842019-11-19 Tom Tromey <tromey@adacore.com>
285
286 * windows-nat.c (windows_nat_target::attach): Include GetLastError
287 result in error when DebugActiveProcess fails.
288
494409bb
SDJ
2892019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
290 Pedro Alves <palves@redhat.com>
291
292 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
293 * target.c (target_stack::push): Call 'unpush' if there's a
294 target on top of the stack.
295
2e953aca
PW
2962019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
297
298 * python/py-block.c (blpy_dealloc): Call tp_free.
299 (blpy_block_syms_dealloc): Likewise.
300 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
301 * python/py-inferior.c (infpy_dealloc): Likewise.
302 * python/py-lazy-string.c (stpy_dealloc): Likewise.
303 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
304 * python/py-symbol.c (sympy_dealloc): Likewise.
305 * python/py-symtab.c (stpy_dealloc): Likewise.
306 * python/py-type.c (typy_iterator_dealloc): Likewise.
307
6edc43ec
CB
3082019-11-18 Christian Biesinger <cbiesinger@google.com>
309
310 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
311 constructor instead of using a class initializer.
312
cd850b40
CB
3132019-11-15 Christian Biesinger <cbiesinger@google.com>
314
315 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
316 * configure: Regenerate.
317 * configure.ac: Don't source common.host.
318 * gdbsupport/common.host: Remove.
319 * gdbsupport/mingw-strerror.c: Remove.
320 * gdbsupport/posix-strerror.c: Rename to...
321 * gdbsupport/safe-strerror.c: ...this.
322
53fea9c7
CB
3232019-11-15 Christian Biesinger <cbiesinger@google.com>
324
325 * maint.c (scoped_command_stats::print_time): Use localtime_r
326 instead of localtime (provided through gnulib if necessary).
327 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
328 of ctime.
329
f8e27d88
CB
3302019-11-15 Christian Biesinger <cbiesinger@google.com>
331
332 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
333 avoid compile errors.
334
5abebf3c
CB
3352019-11-15 Christian Biesinger <cbiesinger@google.com>
336
337 * config.in: Regenerate.
338 * configure: Regenerate.
339 * gdbsupport/common.m4: No longer check for strerror_r.
340 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
341 POSIX version of strerror_r, now that gnulib provides it if
342 necessary.
343
9a351667
CB
3442019-11-14 Christian Biesinger <cbiesinger@google.com>
345
346 * README (`configure' options): Update.
347
55708e99
TT
3482019-11-14 Tom Tromey <tromey@adacore.com>
349
350 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
351 expected type for the RHS if the LHS is a convenience variable.
352
4b09bb2e
SM
3532019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
356 Provide explicit default and copy constructor.
357
bd454f8b
PW
3582019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
359
360 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
361 only call Py_INCREF (newbp) in the bppy_pending_object case.
362
d1aa3cf0
TT
3632019-11-13 Tom Tromey <tromey@adacore.com>
364
365 PR build/25182:
366 * psympriv.h (partial_symbol): Remove static assert.
367 * symtab.h (general_symbol_info, symbol): Remove static assert.
368
e06f3d6e
AB
3692019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * gdbsupport/format.c (format_pieces::format_pieces): Support
372 printf 'z' size modifier.
373 * gdbsupport/format.h (enum argclass): Add size_t_arg.
374 * printcmd.c (ui_printf): Handle size_t_arg.
375 * ui-out.c (ui_out::vmessage): Likewise.
376 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
377 function.
378 (run_tests): Call test_format_int_sizes.
379
468c0cbb
CB
3802019-11-12 Christian Biesinger <cbiesinger@google.com>
381
382 * ada-exp.y (write_ambiguous_var): Update.
383 * buildsym.c (add_symbol_to_list): Update.
384 * dwarf2read.c (read_variable): Update.
385 (new_symbol): Update.
386 * jit.c (finalize_symtab): Update.
387 * language.c (language_alloc_type_symbol): Update.
388 * symtab.c (fixup_symbol_section): Update.
389 (initialize_objfile_symbol_1): Move code to...
390 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
391 (allocate_symbol): Update.
392 (allocate_template_symbol): Update.
393 (get_symbol_address): Update.
394 * symtab.h (struct symbol): Inherit from general_symbol_info instead
395 of having as a field, and add a constructor.
396 (SYMBOL_VALUE): Update.
397 (SYMBOL_VALUE_ADDRESS): Update.
398 (SET_SYMBOL_VALUE_ADDRESS): Update.
399 (SYMBOL_VALUE_BYTES): Update.
400 (SYMBOL_VALUE_COMMON_BLOCK): Update.
401 (SYMBOL_BLOCK_VALUE): Update.
402 (SYMBOL_VALUE_CHAIN): Update.
403 (SYMBOL_LANGUAGE): Update.
404 (SYMBOL_SECTION): Update.
405 (SYMBOL_OBJ_SECTION): Update.
406 (SYMBOL_SET_LANGUAGE): Update.
407 (SYMBOL_SET_LINKAGE_NAME): Update.
408 (SYMBOL_SET_NAMES): Update.
409 (SYMBOL_NATURAL_NAME): Update.
410 (SYMBOL_LINKAGE_NAME): Update.
411 (SYMBOL_DEMANGLED_NAME): Update.
412 (SYMBOL_SEARCH_NAME): Update.
413 (SYMBOL_MATCHES_SEARCH_NAME): Update.
414 (struct symbol): Update.
415 (struct template_symbol): Update.
416 (struct rust_vtable_symbol): Update.
417 * xcoffread.c (SYMBOL_DUP): Update.
418
ed2c82c3
TT
4192019-11-12 Tom Tromey <tom@tromey.com>
420
421 * tui/tui-layout.c (show_layout): Set current_layout.
422 (show_source_disasm_command, show_data)
423 (show_source_or_disasm_and_command): Don't set current_layout.
424
d9fcefd5
TT
4252019-11-12 Tom Tromey <tom@tromey.com>
426
427 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
428
45e42163
TT
4292019-11-12 Tom Tromey <tom@tromey.com>
430
431 * tui/tui-win.c (resize_message): New global.
432 (show_tui_resize_message): New function.
433 (tui_async_resize_screen): Print message if requested.
434 (_initialize_tui_win): Add tui-resize-message setting.
435 * NEWS: Add entry for new commands.
436
c86d74cc
TT
4372019-11-11 Tom Tromey <tom@tromey.com>
438
439 * tui/tui.c (tui_initialize_readline): Add new bindable readline
440 functions.
441
7b7b9424
CB
4422019-11-11 Christian Biesinger <cbiesinger@google.com>
443
444 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
445
086baaf1
AB
4462019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
449 function.
450 * python/python-internal.h (gdbpy_lookup_static_symbols):
451 Declare new function.
452 * python/python.c (python_GdbMethods): Add
453 gdb.lookup_static_symbols method.
454 * NEWS: Mention gdb.lookup_static_symbols.
455
09ff83af
AB
4562019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
459 static block of current object file first. Also fix typo in
460 header comment.
461
eb2dd8df
AB
4622019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * stack.c (set_last_displayed_sal): Delete.
465 (last_displayed_sal_valid): Delete.
466 (last_displayed_pspace): Delete.
467 (last_displayed_addr): Delete.
468 (last_displayed_symtab): Delete.
469 (last_displayed_line): Delete.
470 (class last_displayed_symtab_info_type): New.
471 (last_displayed_symtab_info): New static global variable.
472 (print_frame_info): Call methods on last_displayed_symtab_info.
473 (clear_last_displayed_sal): Update header comment, and make use of
474 last_displayed_symtab_info.
475 (last_displayed_sal_is_valid): Likewise.
476 (get_last_displayed_pspace): Likewise.
477 (get_last_displayed_addr): Likewise.
478 (get_last_displayed_symtab): Likewise.
479 (get_last_displayed_line): Likewise.
480 (get_last_displayed_sal): Likewise.
481 * stack.h (clear_last_displayed_sal): Update header comment.
482 (last_displayed_sal_is_valid): Likewise.
483 (get_last_displayed_pspace): Likewise.
484 (get_last_displayed_addr): Likewise.
485 (get_last_displayed_symtab): Likewise.
486 (get_last_displayed_line): Likewise.
487 (get_last_displayed_sal): Likewise.
488
62137775
AB
4892019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * stack.c (frame_show_address): Convert return type to bool.
492 * stack.h (frame_show_address): Likewise, and update header
493 comment.
494
cf57ad6d
AB
4952019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
498 * unittests/vec-utils-selftests.c: New file.
499 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
500
0b026263
TT
5012019-11-10 Tom Tromey <tom@tromey.com>
502
503 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
504 (tui_highlight_win): Likewise.
505 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
506 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
507 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
508 Don't set can_highlight.
509
b049ce2d
TT
5102019-11-10 Tom Tromey <tom@tromey.com>
511
512 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
513 Remove unused declaration.
514
992a7040
TT
5152019-11-08 Tom Tromey <tromey@adacore.com>
516
517 * top.c (read_command_file): Update.
518 (command_line_input): Make return type const.
519 * python/py-gdb-readline.c: Update.
520 * linespec.c (decode_line_2): Update.
521 * defs.h (command_line_input): Make return type const.
522 * cli/cli-script.c (read_next_line): Make return type const.
523 * ada-lang.c (get_selections): Update.
524
ca3a04f6
CB
5252019-11-06 Christian Biesinger <cbiesinger@google.com>
526
527 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
528 * mi/mi-main.c (output_cores): Likewise.
529 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
530 (linux_xfer_osdata_modules): Likewise.
531 * remote.c (register_remote_support_xml): Likewise.
532 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
533 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
534
e0eac551
TT
5352019-11-06 Tom Tromey <tom@tromey.com>
536
537 * tui/tui-interp.c: Don't include readline.h.
538 * tui/tui-hooks.c: Don't include readline.h.
539 * symmisc.c: Include tilde.h, not readline.h.
540 * symfile.c: Include tilde.h, not readline.h.
541 * source.c: Include tilde.h, not readline.h.
542 * solib.c: Include tilde.h, not readline.h.
543 * psymtab.c: Include tilde.h, not readline.h.
544 * exec.c: Include tilde.h, not readline.h.
545 * corelow.c: Include tilde.h, not readline.h.
546 * cli/cli-dump.c: Include tilde.h, not readline.h.
547 * cli/cli-cmds.c: Don't include readline.h.
548
825165c5
TT
5492019-11-05 Tom Tromey <tom@tromey.com>
550
551 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
552 (tui_disassemble): Set addr_size.
553 (tui_disasm_window::set_contents): Use addr_size.
554
91ae903f
TT
5552019-11-05 Tom Tromey <tom@tromey.com>
556
557 * rust-lang.c (rust_language_defn): Update.
558 * python/py-value.c (valpy_string): Call c_get_string.
559 * p-lang.c (pascal_language_defn): Update.
560 * opencl-lang.c (opencl_language_defn): Update.
561 * objc-lang.c (objc_language_defn): Update.
562 * m2-lang.c (m2_language_defn): Update.
563 * language.c (unknown_language_defn, auto_language_defn): Update.
564 (default_get_string): Remove.
565 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
566 * go-lang.c (go_language_defn): Update.
567 * f-lang.c (f_language_defn): Update.
568 * d-lang.c (d_language_defn): Update.
569 * c-lang.c (c_language_defn, cplus_language_defn)
570 (asm_language_defn, minimal_language_defn): Update.
571 * ada-lang.c (ada_language_defn): Update.
572 * language.h (struct language_defn) <la_get_string>: Remove.
573 (LA_GET_STRING): Remove.
574 (default_get_string): Don't declare.
575
1df2f9ef
TT
5762019-11-05 Tom Tromey <tom@tromey.com>
577
578 * tui/tui-source.h (struct tui_source_window): Inline
579 constructor. Remove destructor.
580 <style_changed, m_observable>: Move to superclass.
581 * tui/tui-winsource.h (tui_copy_source_line): Declare.
582 (struct tui_source_window_base): Move private members to end.
583 <style_changed, m_observable>: Move from tui_source_window.
584 * tui/tui-winsource.c (tui_copy_source_line): Move from
585 tui-source.c. Rename from copy_source_line. Add special handling
586 for negative line number.
587 (tui_source_window_base::style_changed): Move from
588 tui_source_window.
589 (tui_source_window_base): Register observer.
590 (~tui_source_window_base): New.
591 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
592 rename.
593 (tui_source_window::set_contents): Use tui_copy_source_line.
594 (tui_source_window::tui_source_window): Move to tui-source.h.
595 (tui_source_window::~tui_source_window): Remove.
596 (tui_source_window::style_changed): Move to superclass.
597 * tui/tui-disasm.c (tui_disassemble): Create string file with
598 styling, when possible. Add "addr_size" parameter.
599 (tui_disasm_window::set_contents): Use tui_copy_source_line.
600 Don't compute maximum size.
601 (len_without_escapes): New function
602
5d051055
TT
6032019-11-05 Tom Tromey <tom@tromey.com>
604
605 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
606 std::string.
607 * tui/tui-winsource.c (tui_show_source_line): Update.
608 * tui/tui-source.c (tui_source_window::set_contents): Update.
609 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
610
ade7beea
CB
6112019-11-05 Christian Biesinger <cbiesinger@google.com>
612
613 * symtab.h (gdb_static_assert): Put && operator at the beginning
614 of the line instead of the end.
615
3573abe1
CB
6162019-11-04 Christian Biesinger <cbiesinger@google.com>
617
618 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
619 and sizeof (symbol).
620 * symtab.h: Add a static_assert for sizeof (partial_symbol).
621
dae8b3eb
RO
6222019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
623
624 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
625 * configure.host: Mark *-*-solaris2.10* obsolete.
626 * configure.tgt: Mark Solaris < 11 obsolete.
627 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
628 Update target triplet.
629
5df96a4e
TT
6302019-11-01 Tom Tromey <tromey@adacore.com>
631
632 * utils.c (print_sys_errmsg): Simplify.
633
b7481649
TT
6342019-11-01 Tom Tromey <tromey@adacore.com>
635
636 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
637
e48f6033
CB
6382019-11-01 Christian Biesinger <cbiesinger@google.com>
639
640 * configure: Regenerate.
641 * configure.ac: Remove check for strerror_r.
642 * gdbsupport/common.m4: Check for strerror_r.
643
bd5766ec
LM
6442019-11-01 Luis Machado <luis.machado@linaro.org>
645
646 PR gdb/25124
647
648 * arm-tdep.c (arm_per_objfile): Rename to ...
649 (arm_per_bfd): ... this.
650 (arm_objfile_data_key): Rename to ...
651 (arm_bfd_data_key): ... this.
652 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
653 data.
654 (arm_record_special_symbol): Likewise.
655
e1709896
AB
6562019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
659 end.
660 * c-typeprint.c (c_print_typedef): Likewise.
661 * f-typeprint.c (f_print_typedef): Likewise.
662 * m2-typeprint.c (m2_print_typedef): Likewise.
663 * p-typeprint.c (pascal_print_typedef): Likewise.
664 * rust-lang.c (rust_print_typedef): Likewise.
665 * symtab.c (print_symbol_info): Print a newline after calling
666 typedef_print.
667
165f8965
AB
6682019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * symtab.c (info_module_cmdlist): New variable.
671 (info_module_command): New function.
672 (search_module_symbols): New function.
673 (info_module_subcommand): New function.
674 (struct info_modules_var_func_options): New struct.
675 (info_modules_var_func_options_defs): New variable.
676 (make_info_modules_var_func_options_def_group): New function.
677 (info_module_functions_command): New function.
678 (info_module_variables_command): New function.
679 (info_module_var_func_command_completer): New function.
680 (_initialize_symtab): Register new 'info module functions' and
681 'info module variables' commands.
682 * symtab.h (typedef symbol_search_in_module): New typedef.
683 (search_module_symbols): Declare new function.
684 * NEWS: Mention new commands.
685
59c35742
AB
6862019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
689 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
690 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
691 MODULES_DOMAIN.
692 (scan_partial_symbols): Only create partial module symbols for non
693 declarations.
694 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
695 and MODULES_DOMAIN.
696 * symtab.c (search_domain_name): Likewise.
697 (search_symbols): Likewise.
698 (print_symbol_info): Likewise.
699 (symtab_symbol_info): Likewise.
700 (info_modules_command): New function.
701 (_initialize_symtab): Register 'info modules' command.
702 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
703 * NEWS: Mention new 'info modules' command.
704
aed61d02
PW
7052019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
706
707 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
708 and $_gdb_maint_setting_str.
709
9ad9b77d
PW
7102019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
711
712 * cli/cli-cmds.c (setting_cmd, value_from_setting)
713 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
714 (str_value_from_setting, gdb_setting_str_internal_fn)
715 (gdb_maint_setting_str_internal_fn): New functions.
716 (_initialize_cli_cmds): Define the new convenience functions.
717 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
718 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
719
8d6efaa2
CB
7202019-10-31 Christian Biesinger <cbiesinger@google.com>
721
722 * agent.c (set_can_use_agent): When the setting is turned on,
723 look up agent symbols if we don't have them yet.
724 (agent_new_objfile): Don't look up agent symbols when the agent
725 setting is off.
726
33cb1647
CB
7272019-10-31 Christian Biesinger <cbiesinger@google.com>
728
729 * config.in: Regenerate.
730
b231e86a
CB
7312019-10-31 Christian Biesinger <cbiesinger@google.com>
732
733 * configure: Regenerate.
734 * configure.ac: Check for strerror_r.
735 * gdbsupport/common-utils.h (safe_strerror): Change return value
736 to const char * and document that this function is now threadsafe.
737 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
738 thread_local and call strerror_r, if available.
739 * utils.c (perror_string): Update.
740 (print_sys_errmsg): Update.
741
a2726d4f
LM
7422019-10-31 Luis Machado <luis.machado@linaro.org>
743
744 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
745 objfile_key.
746 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
747 objfile to fetch per-bfd data.
748 (arm_find_exidx_entry): Likewise.
749
75cafaa6
CB
7502019-10-31 Christian Biesinger <cbiesinger@google.com>
751
752 * gdbsupport/agent.c (debug_agent): Change type to bool.
753 (use_agent): Likewise.
754 (all_agent_symbols_look_up): Likewise.
755 (agent_loaded_p): Change return value to bool.
756 (agent_look_up_symbols): Update.
757 (agent_capability_check): Change return value to bool.
758 * gdbsupport/agent.h (agent_loaded_p): Likewise.
759 (debug_agent): Change type to bool.
760 (use_agent): Likewise.
761 (agent_capability_check): Change return value to bool.
762
808590ec
CB
7632019-10-30 Christian Biesinger <cbiesinger@google.com>
764
765 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
766 (build_minimal_symbol_hash_tables): Code to clear the table moved
767 to clear_minimal_symbol_hash_tables.
768 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
769 when needed.
770
f18ad8a1
SM
7712019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * infcmd.c: Remove includes.
774 * infrun.c: Remove includes.
775
de93309a
SM
7762019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
779 (grow_vect): Remove declaration.
780 (ada_type_of_array): Remove declaration.
781 (ada_update_initial_language): Remove declaration.
782 (ada_fold_name): Remove declaration.
783 (ada_fill_in_ada_prototype): Remove declaration.
784 (user_select_syms): Remove declaration.
785 (get_selections): Remove declaration.
786 (ada_tag_type): Remove declaration.
787 (ada_value_tag): Remove declaration.
788 (ada_is_others_clause): Remove declaration.
789 (ada_in_variant): Remove declaration.
790 (ada_value_struct_elt): Remove declaration.
791 (ada_attribute_name): Remove declaration.
792 (ada_system_address_type): Remove declaration.
793 * ada-lang.c (ada_watch_location_expression): Make static.
794 (GROW_VECT): Move here from ada-lang.h.
795 (grow_vect): Make static.
796 (ada_update_initial_language): Make static.
797 (ada_fold_name): Make static.
798 (ada_type_of_array): Make static.
799 (encoded_ordered_before): Move up.
800 (sort_choices): Move up.
801 (print_signatures): Move up.
802 (ada_print_symbol_signature): Move up.
803 (get_selections): Move up and make static.
804 (user_select_syms): Move up and make static.
805 (ada_value_struct_elt): Move up and make static.
806 (ada_tag_type): Make static.
807 (ada_value_tag): Make static.
808 (ada_is_others_clause): Make static.
809 (ada_in_variant): Make static.
810 (ada_attribute_name): Make static.
811
cdc46a9f
SM
8122019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * ada-lang.c: Remove includes.
815 * ada-typeprint.c: Remove includes.
816 * ada-valprint.c: Remove includes.
817
90421c56
SM
8182019-10-29 Simon Marchi <simon.marchi@efficios.com>
819
820 * addrmap.c: Add static assertions of type size, moved from
821 _initialize_addrmap.
822 (_initialize_addrmap): Remove.
823
31edb802
CB
8242019-10-29 Christian Biesinger <cbiesinger@google.com>
825
826 * coffread.c (record_minimal_symbol): Update.
827 (process_coff_symbol): Update.
828 * dbxread.c (read_dbx_symtab): Update.
829 * dwarf2read.c (add_partial_symbol): Update.
830 (fixup_go_packaging): Update.
831 (load_partial_dies): Update.
832 (new_symbol): Update.
833 * elfread.c (record_minimal_symbol): Change signature to use
834 gdb::string_view instead of name+len.
835 (elf_symtab_read): Update.
836 (elf_rel_plt_read): Update.
837 * mdebugread.c (parse_partial_symbols): Update.
838 (handle_psymbol_enumerators): Update.
839 (new_symbol): Update.
840 * minsyms.c (minimal_symbol_reader::record_full): Change signature
841 to use gdb::string_view instead of name+len.
842 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
843 * psympriv.h (add_psymbol_to_list): Likewise.
844 * psymtab.c (add_psymbol_to_bcache): Likewise.
845 (add_psymbol_to_list): Likewise.
846 * stabsread.c (define_symbol): Update.
847 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
848 * symtab.h (SYMBOL_SET_NAMES): Likewise.
849 (symbol_set_names): Likewise.
850 * xcoffread.c (scan_xcoff_symtab): Update.
851
0c921b21
CB
8522019-10-29 Christian Biesinger <cbiesinger@google.com>
853
854 * symtab.h (symbol_set_names): Document that copy_name must be
855 set to true for non-nullterminated strings.
856 * symtab.c (symbol_set_names): Only make a nullterminated copy of
857 linkage_name if the entry was not found and we need to demangle.
858
35e65c49
CB
8592019-10-29 Christian Biesinger <cbiesinger@google.com>
860
861 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
862 * dwarf2-frame.c (bsearch_fde_cmp): Update.
863 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
864 * gdbsupport/gdb_binary_search.h: New file.
865
ed2a2229
CB
8662019-10-29 Christian Biesinger <cbiesinger@google.com>
867
868 * NEWS: Mention new --with-system-gdbinit-dir option.
869 * config.in: Regenerate.
870 * configure: Regenerate.
871 * configure.ac: Add new option --with-system-gdbinit-dir.
872 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
873 for a ".gdb" suffix.
874 * main.c (get_init_files): Change system_gdbinit argument to
875 a vector and return the files in SYSTEM_GDBINIT_DIR in
876 addition to SYSTEM_GDBINIT.
877 (captured_main_1): Update.
878 (print_gdb_help): Update.
879 * top.c (print_gdb_configuration): Also print the value of
880 SYSTEM_GDBINIT_DIR.
881
87f34879
CB
8822019-10-28 Christian Biesinger <cbiesinger@google.com>
883
884 * gdbsupport/common-utils.h (startswith): Add an overloaded version
885 that takes gdb::string_view arguments.
886
30baf67b
TV
8872019-10-26 Tom de Vries <tdevries@suse.de>
888
889 * aarch64-linux-tdep.c: Fix typos in comments.
890 * aarch64-tdep.c: Same.
891 * ada-lang.c: Same.
892 * amd64-nat.c: Same.
893 * arc-tdep.c: Same.
894 * arch/aarch64-insn.c: Same.
895 * block.c: Same.
896 * breakpoint.h: Same.
897 * btrace.h: Same.
898 * c-varobj.c: Same.
899 * cli/cli-decode.c: Same.
900 * cli/cli-script.c: Same.
901 * cli/cli-utils.h: Same.
902 * coff-pe-read.c: Same.
903 * coffread.c: Same.
904 * compile/compile-cplus-symbols.c: Same.
905 * compile/compile-object-run.c: Same.
906 * completer.c: Same.
907 * corelow.c: Same.
908 * cp-support.c: Same.
909 * demangle.c: Same.
910 * dwarf-index-write.c: Same.
911 * dwarf2-frame.c: Same.
912 * dwarf2-frame.h: Same.
913 * eval.c: Same.
914 * frame-base.h: Same.
915 * frame.h: Same.
916 * gdbcmd.h: Same.
917 * gdbtypes.h: Same.
918 * gnu-nat.c: Same.
919 * guile/scm-objfile.c: Same.
920 * i386-tdep.c: Same.
921 * i386-tdep.h: Same.
922 * infcall.c: Same.
923 * infcall.h: Same.
924 * linux-nat.c: Same.
925 * m68k-tdep.c: Same.
926 * macroexp.c: Same.
927 * memattr.c: Same.
928 * mi/mi-cmd-disas.c: Same.
929 * mi/mi-getopt.h: Same.
930 * mi/mi-main.c: Same.
931 * minsyms.c: Same.
932 * nat/aarch64-sve-linux-sigcontext.h: Same.
933 * objfiles.h: Same.
934 * ppc-linux-nat.c: Same.
935 * ppc-linux-tdep.c: Same.
936 * ppc-tdep.h: Same.
937 * progspace.h: Same.
938 * prologue-value.h: Same.
939 * python/py-evtregistry.c: Same.
940 * python/py-instruction.h: Same.
941 * record-btrace.c: Same.
942 * record-full.c: Same.
943 * remote.c: Same.
944 * rs6000-tdep.c: Same.
945 * ser-tcp.c: Same.
946 * sol-thread.c: Same.
947 * sparc-sol2-tdep.c: Same.
948 * sparc64-tdep.c: Same.
949 * stabsread.c: Same.
950 * symfile.c: Same.
951 * symtab.h: Same.
952 * target.c: Same.
953 * tracepoint.c: Same.
954 * tui/tui-data.h: Same.
955 * tui/tui-io.c: Same.
956 * tui/tui-win.c: Same.
957 * tui/tui.c: Same.
958 * unittests/rsp-low-selftests.c: Same.
959 * user-regs.h: Same.
960 * utils.c: Same.
961 * utils.h: Same.
962 * valarith.c: Same.
963 * valops.c: Same.
964 * valprint.c: Same.
965 * valprint.h: Same.
966 * value.c: Same.
967 * value.h: Same.
968 * varobj.c: Same.
969 * x86-nat.h: Same.
970 * xtensa-tdep.c: Same.
971
1834d45f
AT
9722019-10-25 Ali Tamur <tamur@google.com>
973
974 * charset.c (find_charset_names): Reflect API change.
975
5396ae17
CB
9762019-10-25 Christian Biesinger <cbiesinger@google.com>
977
978 * symtab.c (struct demangled_name_entry): Change demangled name
979 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
980 part of the struct anymore.
981 (symbol_set_names): No longer obstack allocate + copy the demangled
982 name, just store the allocated name from bfd.
983
93878f47
TT
9842019-10-25 Tom Tromey <tromey@adacore.com>
985
986 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
987 (bsearch_cie_cmp, add_cie): Remove.
988 (find_cie): Reimplement.
989 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
990 (dwarf2_build_frame_info): Update.
991
7b71fc97
L
9922019-10-24 H.J. Lu <hongjiu.lu@intel.com>
993
994 PR gdb/25126
995 * symfile.c (reread_symbols): Call forget_cached_source_info to
996 clear the stale source cache.
997
cbb5a2ea
CB
9982019-10-24 Christian Biesinger <cbiesinger@google.com>
999
1000 * configure: Regenerate.
1001 * configure.ac: Remove code that sets python_has_threads.
1002
71737c43
CB
10032019-10-24 Christian Biesinger <cbiesinger@google.com>
1004
1005 * config.in: Regenerate.
1006 * configure: Regenerate.
1007 * configure.ac: Remove the code that uses sed to get the python
1008 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1009
33d569b7
AB
10102019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1011
1012 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1013 error paths.
1014
f16f7b7c
TT
10152019-10-23 Tom Tromey <tom@tromey.com>
1016
1017 * arc-tdep.c: Remove ".." from include.
1018 * frv-tdep.c: Remove ".." from include.
1019 * lm32-tdep.c: Remove ".." from include.
1020 * microblaze-tdep.c: Remove ".." from include.
1021 * or1k-tdep.h: Remove ".." from include.
1022 * s12z-tdep.c: Remove ".." from include.
1023 * Makefile.in (OPCODES_CFLAGS): Add comment.
1024 (TOP_CFLAGS): New variable.
1025 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1026
6999161a
TT
10272019-10-23 Tom Tromey <tom@tromey.com>
1028
1029 * Makefile.in (READLINE_DIR): Update.
1030
12e7c35e
TBA
10312019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1032
1033 * infcall.c (call_function_by_hand_dummy): Fix the function
1034 comment. And extract out a code section into...
1035 (reserve_stack_space): ...this new function.
1036
37055cad
TBA
10372019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1038
1039 * infcall.c (value_arg_coerce): Remove an unused parameter.
1040 (call_function_by_hand_dummy): Update the call to
1041 'value_arg_coerce'.
1042
39bcc47c
TBA
10432019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1044
1045 * infcall.c (call_function_by_hand_dummy): Refactor.
1046
bd888c0f
TBA
10472019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1048
1049 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1050
c12d372d
TT
10512019-10-23 Tom Tromey <tom@tromey.com>
1052
1053 * configure: Rebuild.
1054 * configure.ac: Don't check for sigprocmask.
1055 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1056
4d0b984b
TT
10572019-10-23 Tom Tromey <tom@tromey.com>
1058
1059 * configure: Rebuild.
1060 * acinclude.m4: Use m4_include, not sinclude.
1061
7e785608
TV
10622019-10-23 Tom de Vries <tdevries@suse.de>
1063
1064 PR breakpoints/24687
1065 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1066
403772ef
CB
10672019-10-22 Christian Biesinger <cbiesinger@google.com>
1068
1069 * symtab.c (struct demangled_name_entry) <language>: Change from
1070 bitfield to regular variable.
1071
3a494279
CB
10722019-10-22 Christian Biesinger <cbiesinger@google.com>
1073
1074 * symtab.c (struct demangled_name_entry): Add a constructor.
1075 (free_demangled_name_entry): New function to call the destructor
1076 for demangled_name_entry.
1077 (create_demangled_names_hash): Pass free_demangled_name_entry to
1078 htab_create_alloc.
1079 (symbol_set_names): Call placement new for demangled_name_entry.
1080 * utils.c: No longer include xxhash.h here, now that fast_hash
1081 is inlined in the header.
1082 * utils.h: Instead, include it here.
1083
ccb1ba62
CB
10842019-10-22 Christian Biesinger <cbiesinger@google.com>
1085
1086 * Makefile.in: Link with libxxhash.
1087 * config.in: Regenerate.
1088 * configure: Regenerate.
1089 * configure.ac: Search for libxxhash.
1090 * utils.c (fast_hash): Use xxhash if present.
1091
1a6ff1a9
CB
10922019-10-22 Christian Biesinger <cbiesinger@google.com>
1093
1094 * utils.h (fast_hash): New function.
1095 * symtab.c (hash_demangled_name_entry): Call new function
1096 fast_hash.
1097
7bb43059
CB
10982019-10-22 Christian Biesinger <cbiesinger@google.com>
1099
1100 * symtab.c (struct demangled_name_entry): Change type of mangled
1101 to gdb::string_view. Also adds a constructor that takes the
1102 mangled name.
1103 (hash_demangled_name_entry): Update.
1104 (eq_demangled_name_entry): Update.
1105 (free_demangled_name_entry): New function to call the destructor
1106 now that this is not a POD anymore.
1107 (create_demangled_names_hash): Pass free_demangled_name_entry to
1108 htab_create_alloc.
1109 (symbol_set_names): Update.
1110
7ba99d21
AT
11112019-10-21 Ali Tamur <tamu@google.com>
1112
1113 * dwarf2read.c (dir_index): Change type.
1114 (file_name_index): Likewise.
1115 (line_header::include_dir_at): Change comment and implementation on
1116 whether it is DWARF 5.
1117 (line_header::is_valid_file_index): New function.
1118 (line_header::file_name_at): Change comment and implementation on
1119 whether it is DWARF 5.
1120 (line_header::file_names): Change to private field renamed as
1121 m_file_names and introduce a new accessor method.
1122 (line_header::file_names_size): New method.
1123 (line_header::include_dirs): Change to private field and rename as
1124 m_include_dirs.
1125 (dw2_get_file_names_reader): Define local var at a smaller scope and
1126 reflect API change.
1127 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1128 (process_structure_scope): Likewise.
1129 (line_header::add_include_dir): Change message and reflect renaming.
1130 (line_header::add_file_name): Likewise.
1131 (read_formatted_entries): Handle DW_FORM_data16.
1132 (dwarf_decode_line_header): Fix line header length calculation.
1133 (psymtab_include_file_name): Change comment and API.
1134 (lnp_state_machine::m_file): Update comment and reflect type change.
1135 (lnp_state_machine::record_line): Reflect type change.
1136 (dwarf_decode_lines): Reflect API change.
1137 (file_file_name): Likewise.
1138 (file_full_name): Likewise.
1139
45f47c3a
AB
11402019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1143
e5f3c0e3
TT
11442019-10-21 Tom Tromey <tom@tromey.com>
1145
1146 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1147
a0a461e5
TT
11482019-10-21 Tom Tromey <tom@tromey.com>
1149
1150 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1151 NM_H. Use AC_CONFIG_LINKS.
1152 * configure: Rebuild.
1153 * Makefile.in (NM_H): New variable.
1154 (generated_files): Add NM_H. Remove gcore.
1155 (nm.h, stamp-nmh): New targets.
1156
54d83b8d
TT
11572019-10-20 Tom Tromey <tom@tromey.com>
1158
1159 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1160 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1161 obsolete comment.
1162 (put_objfile_before): Now static.
1163
23771117
SM
11642019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1165
1166 * gdbsupport/common-utils.h (startswith): Change return type to
1167 bool.
1168
39ef2f62
CB
11692019-10-19 Christian Biesinger <cbiesinger@google.com>
1170
1171 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1172 * breakpoint.c (bp_locations_compare): Rename to...
1173 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1174 (update_global_location_list): Use std::sort instead of qsort.
1175 * buildsym.c (compare_line_numbers): Rename to...
1176 (lte_is_less_than): ...this, and change to std::sort semantics.
1177 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1178 instead of qsort.
1179 * disasm.c (compare_lines): Rename to...
1180 (line_is_less_than): ...this, and change to std::sort semantics.
1181 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1182 of qsort.
1183 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1184 (fde_is_less_than): ...this, and change to std::sort semantics.
1185 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1186 * mdebugread.c (compare_blocks):
1187 (block_is_less_than): ...this, and change to std::sort semantics.
1188 (sort_blocks): Call std::sort instead of qsort.
1189 * objfiles.c (qsort_cmp): Rename to...
1190 (sort_cmp): ...this, and change to std::sort semantics.
1191 (update_section_map): Call std::sort instead of qsort.
1192 * remote.c (compare_pnums): Remove.
1193 (map_regcache_remote_table): Call std::sort instead of qsort.
1194 * utils.c (compare_positive_ints): Remove.
1195 * utils.h (compare_positive_ints): Remove.
1196 * xcoffread.c (compare_lte): Remove.
1197 (arrange_linetable): Call std::sort instead of qsort.
1198
f71433ee
SDJ
11992019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1200
1201 * symfile.c (init_entry_point_info): Fix typo.
1202 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1203
85102364
TV
12042019-10-18 Tom de Vries <tdevries@suse.de>
1205
1206 * aarch64-tdep.c: Fix typos in comments.
1207 * ada-lang.c: Same.
1208 * ada-tasks.c: Same.
1209 * alpha-tdep.c: Same.
1210 * alpha-tdep.h: Same.
1211 * amd64-nat.c: Same.
1212 * amd64-windows-tdep.c: Same.
1213 * arc-tdep.c: Same.
1214 * arc-tdep.h: Same.
1215 * arch-utils.c: Same.
1216 * arm-nbsd-tdep.c: Same.
1217 * arm-tdep.c: Same.
1218 * ax-gdb.c: Same.
1219 * blockframe.c: Same.
1220 * btrace.c: Same.
1221 * c-varobj.c: Same.
1222 * coff-pe-read.c: Same.
1223 * coffread.c: Same.
1224 * cris-tdep.c: Same.
1225 * darwin-nat.c: Same.
1226 * dbxread.c: Same.
1227 * dcache.c: Same.
1228 * disasm.c: Same.
1229 * dtrace-probe.c: Same.
1230 * dwarf-index-write.c: Same.
1231 * dwarf2-frame-tailcall.c: Same.
1232 * dwarf2-frame.c: Same.
1233 * dwarf2read.c: Same.
1234 * eval.c: Same.
1235 * exceptions.c: Same.
1236 * fbsd-tdep.c: Same.
1237 * findvar.c: Same.
1238 * frame.c: Same.
1239 * frv-tdep.c: Same.
1240 * gnu-v3-abi.c: Same.
1241 * go32-nat.c: Same.
1242 * h8300-tdep.c: Same.
1243 * hppa-tdep.c: Same.
1244 * i386-linux-tdep.c: Same.
1245 * i386-tdep.c: Same.
1246 * ia64-libunwind-tdep.c: Same.
1247 * ia64-tdep.c: Same.
1248 * infcmd.c: Same.
1249 * infrun.c: Same.
1250 * linespec.c: Same.
1251 * linux-nat.c: Same.
1252 * linux-thread-db.c: Same.
1253 * machoread.c: Same.
1254 * mdebugread.c: Same.
1255 * mep-tdep.c: Same.
1256 * mn10300-tdep.c: Same.
1257 * namespace.c: Same.
1258 * objfiles.c: Same.
1259 * opencl-lang.c: Same.
1260 * or1k-tdep.c: Same.
1261 * osabi.c: Same.
1262 * ppc-linux-nat.c: Same.
1263 * ppc-linux-tdep.c: Same.
1264 * ppc-sysv-tdep.c: Same.
1265 * printcmd.c: Same.
1266 * procfs.c: Same.
1267 * record-btrace.c: Same.
1268 * record-full.c: Same.
1269 * remote-fileio.c: Same.
1270 * remote.c: Same.
1271 * rs6000-tdep.c: Same.
1272 * s12z-tdep.c: Same.
1273 * score-tdep.c: Same.
1274 * ser-base.c: Same.
1275 * ser-go32.c: Same.
1276 * skip.c: Same.
1277 * sol-thread.c: Same.
1278 * solib-svr4.c: Same.
1279 * solib.c: Same.
1280 * source.c: Same.
1281 * sparc-nat.c: Same.
1282 * sparc-sol2-tdep.c: Same.
1283 * sparc-tdep.c: Same.
1284 * sparc64-tdep.c: Same.
1285 * stabsread.c: Same.
1286 * stack.c: Same.
1287 * symfile.c: Same.
1288 * symtab.c: Same.
1289 * target-descriptions.c: Same.
1290 * target-float.c: Same.
1291 * thread.c: Same.
1292 * utils.c: Same.
1293 * valops.c: Same.
1294 * valprint.c: Same.
1295 * value.c: Same.
1296 * varobj.c: Same.
1297 * windows-nat.c: Same.
1298 * xcoffread.c: Same.
1299 * xstormy16-tdep.c: Same.
1300 * xtensa-tdep.c: Same.
1301
c5adaa19
TT
13022019-10-17 Tom Tromey <tromey@adacore.com>
1303
1304 * configure: Rebuild.
1305 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1306 in AC_CONFIG_FILES invocation.
1307 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1308 new-style config.status invocation.
1309
405feb71
TV
13102019-10-17 Tom de Vries <tdevries@suse.de>
1311
1312 * arm-nbsd-nat.c: Fix typos in comments.
1313 * arm-tdep.c: Same.
1314 * darwin-nat-info.c: Same.
1315 * dwarf2read.c: Same.
1316 * elfread.c: Same.
1317 * event-top.c: Same.
1318 * findvar.c: Same.
1319 * gdbtypes.c: Same.
1320 * hppa-tdep.c: Same.
1321 * i386-tdep.c: Same.
1322 * jit.c: Same.
1323 * main.c: Same.
1324 * mdebugread.c: Same.
1325 * moxie-tdep.c: Same.
1326 * nto-procfs.c: Same.
1327 * osabi.c: Same.
1328 * ppc-linux-tdep.c: Same.
1329 * remote.c: Same.
1330 * riscv-tdep.c: Same.
1331 * s390-tdep.c: Same.
1332 * sh-tdep.c: Same.
1333 * sparc-linux-tdep.c: Same.
1334 * sparc-nat.c: Same.
1335 * stack.c: Same.
1336 * target-descriptions.c: Same.
1337 * top.c: Same.
1338 * varobj.c: Same.
1339
befcd486
TT
13402019-10-16 Tom Tromey <tom@tromey.com>
1341
1342 * objfiles.h (struct objfile) <original_name>: Now const.
1343
17bfe554
CB
13442019-10-16 Christian Biesinger <cbiesinger@google.com>
1345
1346 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1347 pass on to sigsetjmp's second argument.
1348 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1349
950b7495
KS
13502019-10-16 Keith Seitz <keiths@redhat.com>
1351
1352 PR gdb/23567
1353 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1354 sections whose size is greater than the file size.
1355
ff371ec9
JW
13562019-10-16 Jim Wilson <jimw@sifive.com>
1357
1358 * riscv-tdep.c (riscv_gcc_target_options): New.
1359 (riscv_gnu_triplet_regexp): New.
1360 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1361 set_gdbarch_gnu_triplet_regexp.
1362
fec4e896
CB
13632019-10-16 Christian Biesinger <cbiesinger@google.com>
1364
1365 * Makefile.in: Add xml-builtin.h.
1366 * features/feature_to_c.sh: Add an include for xml-builtin.h
1367 to ensure that the compiler checks that the types match.
1368 * xml-builtin.h: New file.
1369 * xml-support.c (fetch_xml_builtin): Add missing const.
1370 * xml-support.h: Remove declaration of xml_builtins.
1371
d10eccaa
TV
13722019-10-16 Tom de Vries <tdevries@suse.de>
1373
1374 PR tdep/25096
1375 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1376 (amd64_classify_aggregate): ... here.
1377 (amd64_classify_aggregate_field): Handled fiels of nested structs
1378 recursively.
1379
745ff14e
TV
13802019-10-16 Tom de Vries <tdevries@suse.de>
1381
1382 PR tdep/24104
1383 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1384 that handles 'theclass'.
1385
791b7405
AB
13862019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1387
1388 * linespec.c (decode_digits_ordinary): Update comment.
1389 * make-target-delegates: No longer need to handle VEC case.
1390 * memrange.c (normalize_mem_ranges): Update comment.
1391 * namespace.c (add_using_directive): Update comment.
1392 * objc-lang.c (uniquify_strings): Update comment.
1393 * ppc-linux-nat.c (struct thread_points): Update comment.
1394 * probe.h (find_probes_in_objfile): Update comment.
1395 * target.h (enum flash_preserve_mode): Update comment.
1396 * varobj.c (varobj_restrict_range): Update comment.
1397 * varobj.h (varobj_list_children): Update comment.
1398
0dc32745
AB
13992019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * Makefile.in: Remove references to vec.h and vec.c.
1402 * aarch64-tdep.c: No longer include vec.h.
1403 * ada-lang.c: Likewise.
1404 * ada-lang.h: Likewise.
1405 * arm-tdep.c: Likewise.
1406 * ax.h: Likewise.
1407 * breakpoint.h: Likewise.
1408 * charset.c: Likewise.
1409 * cp-support.h: Likewise.
1410 * dtrace-probe.c: Likewise.
1411 * dwarf2read.c: Likewise.
1412 * extension.h: Likewise.
1413 * gdb_bfd.c: Likewise.
1414 * gdbsupport/gdb_vecs.h: Likewise.
1415 * gdbsupport/vec.c: Remove.
1416 * gdbsupport/vec.h: Remove.
1417 * gdbthread.h: Likewise.
1418 * guile/scm-type.c: Likewise.
1419 * inline-frame.c: Likewise.
1420 * machoread.c: Likewise.
1421 * memattr.c: Likewise.
1422 * memrange.h: Likewise.
1423 * namespace.h: Likewise.
1424 * nat/linux-btrace.h: Likewise.
1425 * osdata.c: Likewise.
1426 * parser-defs.h: Likewise.
1427 * progspace.h: Likewise.
1428 * python/py-type.c: Likewise.
1429 * record-btrace.c: Likewise.
1430 * rust-exp.y: Likewise.
1431 * solib-target.c: Likewise.
1432 * stap-probe.c: Likewise.
1433 * target-descriptions.c: Likewise.
1434 * target-memory.c: Likewise.
1435 * target.h: Likewise.
1436 * varobj.c: Likewise.
1437 * varobj.h: Likewise.
1438 * xml-support.h: Likewise.
1439
ae640021
AB
14402019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1443 Update for new std::vector based implementation.
1444 (process_psymtab_comp_unit_reader): Likewise.
1445 (scan_partial_symbols): Likewise.
1446 (recursively_compute_inclusions): Likewise.
1447 (compute_compunit_symtab_includes): Likewise.
1448 (process_imported_unit_die): Likewise.
1449 (queue_and_load_dwo_tu): Likewise.
1450 (follow_die_sig_1): Likewise.
1451 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1452 (typedef dwarf2_per_cu_ptr): Remove.
1453 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1454 function.
1455 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1456 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1457 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1458 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1459 std::vector.
1460
55dfc88f
TT
14612019-10-15 Tom Tromey <tromey@adacore.com>
1462
1463 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1464 TID.
1465
96b49c5e
TT
14662019-10-15 Tom Tromey <tromey@adacore.com>
1467
1468 * windows-nat.c (windows_nat_target::fetch_registers)
1469 (windows_nat_target::store_registers): Rename "pid" to "tid".
1470
953cff56
TT
14712019-10-15 Tom Tromey <tromey@adacore.com>
1472
1473 * gdbarch.h, gdbarch.c: Rebuild.
1474 * gdbarch.sh (gcc_target_options): Change return type to
1475 std::string.
1476 * compile/compile.c (get_args): Update.
1477 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1478 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1479 std::string.
1480 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1481 std::string.
1482 * arch-utils.c (default_gcc_target_options): Return std::string.
1483 * arch-utils.h (default_gcc_target_options): Return std::string.
1484 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1485
81e6b8eb
CB
14862019-10-15 Christian Biesinger <cbiesinger@google.com>
1487
1488 * breakpoint.c (breakpoint_chain): Make static.
1489 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1490 of accessing breakpoint_chain.
1491
95da600f
CB
14922019-10-15 Christian Biesinger <cbiesinger@google.com>
1493
1494 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1495 to a gdb::function_view and return value to bool.
1496 * breakpoint.h (iterate_over_breakpoints): Likewise.
1497 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1498 (pop_dummy_frame): Update.
1499 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1500 (gdbscm_breakpoints): Update.
1501 * python/py-breakpoint.c (build_bp_list): Update.
1502 (gdbpy_breakpoints): Update.
1503 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1504 Update.
1505 (bpfinishpy_handle_stop): Update.
1506 (bpfinishpy_handle_exit): Update.
1507 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1508 (svr4_update_solib_event_breakpoints): Update.
1509
ba18312d
AA
15102019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1511
1512 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1513 when unwrapping single-field structs.
1514
6acc1a0b
SM
15152019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * dwarf2read.c: Remove includes.
1518
284782de
SM
15192019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * ui-out.c (ui_out::call_do_message): Silence
1522 -Wformat-nonliteral warning.
1523
073bbbb0
SM
15242019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1527 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1528 include: readline/tilde.h.
1529
7b9a15e1
CB
15302019-10-12 Christian Biesinger <cbiesinger@google.com>
1531
1532 * remote.c (remote_target::get_trace_status): Remove declaration of
1533 trace_regblock_size.
1534
cc8dee1f
CB
15352019-10-12 Christian Biesinger <cbiesinger@google.com>
1536
1537 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1538 (show_user): Remove declaration of cmdlist.
1539 * cli/cli-cmds.h (max_user_call_depth): Declare.
1540 * cli/cli-script.c (execute_user_command): Remove declaration
1541 of max_user_call_depth.
1542
a83d4ef6
JW
15432019-10-11 Jim Wilson <jimw@sifive.com>
1544
5f93c5a6
JW
1545 * gdbsupport/print-utils.h (pulongest): Fix comment.
1546 (plongest): Likewise.
1547 (phex): Add missing comment, mention leading zeros.
1548 (phex_nz): Add mention of no leading zeros to comment.
1549
a83d4ef6
JW
1550 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1551 plongest instead of unsigned long long cast.
1552
26344e0c
CB
15532019-10-10 Christian Biesinger <cbiesinger@google.com>
1554
1555 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1556 for external_editor_command and gdbtk_test.
1557
c2c440a9
CB
15582019-10-10 Christian Biesinger <cbiesinger@google.com>
1559
1560 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1561 * varobj.c (varobjdebug): Move comment to...
1562 * varobj.h (varobjdebug): ...here, and declare.
1563
a31bff9d
TT
15642019-10-09 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1567 erase_data_content.
1568
7523da63
TT
15692019-10-09 Tom Tromey <tom@tromey.com>
1570
1571 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1572 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1573 * tui/tui-command.c (tui_cmd_window::resize)
1574 (tui_refresh_cmd_win): Update.
1575 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1576 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1577 * tui/tui-data.c (~tui_gen_win_info): Remove.
1578 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1579 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1580 (tui_redisplay_readline, tui_mld_flush)
1581 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1582 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1583 (tui_data_window::erase_data_content)
1584 (tui_data_item_window::rerender)
1585 (tui_data_item_window::refresh_window): Update.
1586 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1587 (box_win, tui_gen_win_info::make_window)
1588 (tui_gen_win_info::make_visible): Update.
1589 (tui_delete_win): Remove.
1590 * tui/tui-winsource.c
1591 (tui_source_window_base::do_erase_source_content): Update.
1592 (tui_show_source_line, tui_source_window_base::update_tab_width)
1593 (tui_source_window_base::update_exec_info): Update.
1594 * tui/tui-data.h (struct curses_deleter): New.
1595 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1596 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1597
a7798e7f
TT
15982019-10-09 Tom Tromey <tom@tromey.com>
1599
1600 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1601
5c45899e
TT
16022019-10-09 Tom Tromey <tom@tromey.com>
1603
1604 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1605 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1606
6d7fd9aa
TT
16072019-10-09 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1610 window height directly.
1611 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1612 declare.
1613 * tui/tui-layout.c (tui_default_win_height): Remove.
1614 (tui_default_win_viewport_height): Remove.
1615
d2dd1084
TT
16162019-10-09 Tom Tromey <tom@tromey.com>
1617
1618 * tui/tui.h: Remove comments.
1619
cff32449
TV
16202019-10-09 Tom de Vries <tdevries@suse.de>
1621
1622 * python/lib/gdb/printer/bound_registers.py: Use
1623 '^builtin_type_bound128' as regexp argument for
1624 add_builtin_pretty_printer.
1625
6a25e8a2
CB
16262019-10-09 Christian Biesinger <cbiesinger@google.com>
1627
1628 * guile/guile.c (guile_extension_script_ops): Remove forward
1629 declaration and mark as static.
1630 (guile_script_ops): Likewise.
1631 (extension_language_guile): Move further down in the file so
1632 it can reference the definitions for guile_{extension_,}script_ops.
1633
6d9d6da4
AA
16342019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1635
1636 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1637 except SORTL, DFLTCC, and KDSA.
1638
3abea05d
TT
16392019-10-08 Tom Tromey <tromey@adacore.com>
1640
1641 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1642 (struct safe_symbol_file_add_args): Remove.
1643
dde996e2
TT
16442019-10-08 Tom Tromey <tromey@adacore.com>
1645
1646 * windows-nat.c: Don't include buildsym-legacy.h.
1647
cd6fdaa1
TT
16482019-10-08 Tom Tromey <tromey@adacore.com>
1649
1650 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1651
79bb1944
CB
16522019-10-08 Christian Biesinger <cbiesinger@google.com>
1653
1654 * gdbtypes.c (overload_debug): Move comment to header.
1655 * gdbtypes.h (overload_debug): Declare.
1656 * valops.c: Remove declaration of overload_debug, instead
1657 include gdbtypes.h.
1658
34916edc
CB
16592019-10-08 Christian Biesinger <cbiesinger@google.com>
1660
1661 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1662 through _().
1663 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1664 move comment...
1665 * language.h (lang_frame_mismatch_warn): ... here. Also add
1666 declaration.
1667 * top.c (lang_frame_mismatch_warn): Remove declaration.
1668 (check_frame_language_change): Pass lang_frame_mismatch_warn
1669 through _().
1670
bad5c026
CB
16712019-10-07 Christian Biesinger <cbiesinger@google.com>
1672
1673 * c-lang.h (vtbl_ptr_name): Declare.
1674 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1675 it from the header.
1676 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1677
51f1fdc3
CB
16782019-10-07 Christian Biesinger <cbiesinger@google.com>
1679
1680 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1681 gdb_static_assert.
1682
30d1f018
WP
16832019-10-07 Weimin Pan <weimin.pan@oracle.com>
1684
606813d5
WP
1685 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1686 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1687 * ctfread.c: New file.
1688 * ctfread.h: New file.
1689 * elfread.c: Include ctfread.h.
1690 (struct elfinfo text_p): New member ctfsect.
1691 (elf_locate_sections): Mark CTF section.
1692 (elf_symfile_read): Call elfctf_build_psymtabs.
1693 * Makefile.in (LIBCTF): Add.
1694 (CLIBS): Use it.
1695 (CDEPS): Likewise.
1696 (DIST): Add ctfread.c.
606813d5
WP
1697
16982019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * ctfread.c (struct nextfield): Renamed to ...
1701 (struct ctf_nextfield): ... this.
1702 (struct field_info): Renamed to ...
1703 (strut ctf_field_info): ... this.
1704 (attach_fields_to_type): Update for renamed structures.
1705 (ctf_add_member_cb): Likewise.
1706 (ctf_add_enum_member_cb): Likewise.
1707 (process_struct_members): Likewise.
1708 (process_enum_type): Likewise.
30d1f018 1709
518fe38c
WP
17102019-10-07 Weimin Pan <weimin.pan@oracle.com>
1711
1712 * tracectf.h: Rename, was ctf.h.
1713 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1714 * tracefile.c: Likewise.
1715 * tracepoint.c: Remove unused include ctf.h.
1716 * mi/mi-main.c: Likewise.
1717 * Makefile.in Replace ctf.c with tracectf.c.
1718
225f296a
JB
17192019-10-06 Joel Brobecker <brobecker@adacore.com>
1720
1721 * version.in: Change version number to "9.0.50.DATE-git".
1722
77c2dba3
TT
17232019-10-03 Tom Tromey <tom@tromey.com>
1724
1725 PR rust/24976:
1726 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1727
179aed7f
AB
17282019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1731 cp_search_name_hash.
1732 * NEWS: Add entry about nested function support.
1733
0a4b0913
AB
17342019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1735 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1738 for nested static variables when searchin VAR_DOMAIN.
1739 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1740 global scope, update comment.
1741 (add_partial_subprogram): Call add_partial_subprogram recursively
1742 for nested subroutines when processinng Fortran.
1743 (load_partial_dies): Process the child entities of a subprogram
1744 when processing Fortran.
1745 (partial_die_parent_scope): Handle building scope
1746 for Fortran nested functions.
1747 (process_die): Record that nested functions have a scope.
1748 (new_symbol): Always record Fortran subprograms on the global
1749 symbol list.
1750 (determine_prefix): How to build the prefix for Fortran
1751 subprograms.
1752
d8c06f22
AB
17532019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1756 have just sent the thread a SIGSTOP and are waiting for it to
1757 arrive.
1758
a8b3b8e9
AB
17592019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * btrace.c (btrace_add_pc): Remove whitespace before the template
1762 parameter in 'std::vector <...>'.
1763 (parse_xml_btrace_block): Likewise.
1764 (btrace_maint_decode_pt): Likewise.
1765 (btrace_maint_update_packets): Likewise.
1766 (btrace_maint_print_packets): Likewise.
1767 * btrace.h (struct btrace_maint_info): Likewise.
1768 * dwarf2read.c (struct type_unit_group): Likewise.
1769 (build_type_psymtabs_reader): Likewise.
1770 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1771 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1772 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1773
4d825eab
TV
17742019-10-03 Tom de Vries <tdevries@suse.de>
1775
1776 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1777 the first line of the help text for set/show style metadata.
1778
80fd2826
TT
17792019-10-02 Tom Tromey <tromey@adacore.com>
1780
1781 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1782 * gdbsupport/common-inferior.c: New file.
1783 * infcmd.c (startup_with_shell): Don't define.
1784 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1785 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1786 * inferior.h (startup_with_shell): Don't declare.
1787
70054538
CB
17882019-10-02 Christian Biesinger <cbiesinger@google.com>
1789
1790 * gdbsupport/gdb_assert.h: Include errors.h.
1791 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1792
37f6a7f4
TT
17932019-10-02 Tom Tromey <tromey@adacore.com>
1794
1795 * NEWS: Add $_ada_exception entry.
1796 * ada-lang.c (struct ada_catchpoint): Add constructor.
1797 <m_kind>: New member.
1798 (allocate_location_exception, re_set_exception): Remove
1799 "ex" parameter.
1800 (should_stop_exception): Compute $_ada_exception.
1801 (check_status_exception, print_it_exception)
1802 (print_one_exception, print_mention_exception): Remove
1803 "ex" parameter.
1804 (allocate_location_catch_exception, re_set_catch_exception)
1805 (check_status_exception, print_it_catch_exception)
1806 (print_one_catch_exception, print_mention_catch_exception)
1807 (print_recreate_catch_exception)
1808 (allocate_location_catch_exception_unhandled)
1809 (re_set_catch_exception_unhandled)
1810 (check_status_exception, print_it_catch_exception_unhandled)
1811 (print_one_catch_exception_unhandled)
1812 (print_mention_catch_exception_unhandled)
1813 (print_recreate_catch_exception_unhandled)
1814 (allocate_location_catch_assert, re_set_catch_assert)
1815 (check_status_assert, print_it_catch_assert)
1816 (print_one_catch_assert, print_mention_catch_assert)
1817 (print_recreate_catch_assert)
1818 (allocate_location_catch_handlers, re_set_catch_handlers)
1819 (check_status_handlers, print_it_catch_handlers)
1820 (print_one_catch_handlers, print_mention_catch_handlers)
1821 (print_recreate_catch_handlers): Remove.
1822 (create_ada_exception_catchpoint): Update.
1823 (initialize_ada_catchpoint_ops): Update.
1824
fccf9de1
TT
18252019-10-02 Tom Tromey <tromey@adacore.com>
1826
1827 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1828 (create_excep_cond_exprs): Simplify exception string computation.
1829 (ada_exception_catchpoint_cond_string): Likewise.
1830
4b610737
TT
18312019-10-02 Tom Tromey <tromey@adacore.com>
1832
1833 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1834 * ada-lang.c (lesseq_defined_than): Handle
1835 LOC_STATIC.
1836 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1837 parameter.
1838 (dwarf2_has_info): Likewise.
1839 (new_symbol): Set maybe_copied on symbol when
1840 appropriate.
1841 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1842 parameter.
1843 <can_copy>: New member.
1844 * elfread.c (record_minimal_symbol): Set maybe_copied
1845 on symbol when appropriate.
1846 (elf_symfile_read): Update call to dwarf2_has_info.
1847 * minsyms.c (lookup_minimal_symbol_linkage): New
1848 function.
1849 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1850 * symtab.c (get_symbol_address, get_msymbol_address):
1851 New functions.
1852 * symtab.h (get_symbol_address, get_msymbol_address):
1853 Declare.
1854 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1855 maybe_copied.
1856 (struct symbol, struct minimal_symbol) <maybe_copied>:
1857 New member.
1858
1dd58850
TT
18592019-10-02 Tom Tromey <tromey@adacore.com>
1860
1861 * source.c (struct current_source_location): New.
1862 (current_source_key): New global.
1863 (current_source_symtab, current_source_line)
1864 (current_source_pspace): Remove.
1865 (get_source_location): New function.
1866 (get_current_source_symtab_and_line)
1867 (set_default_source_symtab_and_line)
1868 (set_current_source_symtab_and_line)
1869 (clear_current_source_symtab_and_line, select_source_symtab)
1870 (info_source_command, print_source_lines_base)
1871 (info_line_command, search_command_helper, _initialize_source):
1872 Update.
1873
5c281dbb
TT
18742019-10-02 Tom Tromey <tromey@adacore.com>
1875
1876 * source.c (select_source_symtab): Don't call
1877 decode_line_with_current_source.
1878
d3d32391
AB
18792019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * symtab.c (lookup_global_symbol): Search global block.
1882
38583298
TT
18832019-10-02 Tom Tromey <tromey@adacore.com>
1884
1885 * coffread.c (process_coff_symbol): Update.
1886 * dwarf2read.c (var_decode_location, new_symbol): Update.
1887 * mdebugread.c (parse_symbol): Update.
1888 * objfiles.c (relocate_one_symbol): Update.
1889 * stabsread.c (define_symbol, fix_common_block)
1890 (scan_file_globals): Update.
1891 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1892 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1893 * xcoffread.c (process_xcoff_symbol): Update.
1894
9344c18f
AA
18952019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1896
1897 * MAINTAINERS: Update my email address.
1898
df07e2c7
AB
18992019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1902 std::vector.
1903 (build_type_psymtabs_reader): Update for std::vector.
1904 (build_type_psymtab_dependencies): Likewise.
1905 * dwarf2read.h: Remove use of DEF_VEC_P.
1906 (typedef sig_type_ptr): Delete.
1907
554ac434
AB
19082019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1911 to std::vector.
1912 (btrace_maint_decode_pt): Likewise, and move allocation of the
1913 vector outside of the loop.
1914 (btrace_maint_update_packets): Update to handle change from VEC to
1915 std::vector.
1916 (btrace_maint_print_packets): Likewise.
1917 (maint_info_btrace_cmd): Likewise.
1918 * btrace.h: Remove use of DEF_VEC_O.
1919 (typedef btrace_pt_packet_s): Delete.
1920 (struct btrace_maint_info) <packets>: Change fromm VEC to
1921 std::vector.
1922 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1923
46f29a9a
AB
19242019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1927 make accesses into the vector constant references.
1928 (btrace_add_pc): Update for std::vector.
1929 (btrace_stitch_bts): Likewise.
1930 (parse_xml_btrace_block): Likewise.
1931 (btrace_maint_update_packets): Likewise.
1932 (btrace_maint_print_packets): Likewise.
1933 (maint_info_btrace_cmd): Likewise.
1934 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1935 std::vector.
1936 (btrace_data::empty): Likewise.
1937 (btrace_data_append): Likewise.
1938 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1939 (typedef btrace_block_s): Delete.
1940 (struct btrace_block): Add constructor.
1941 (struct btrace_data_bts) <blocks>: Change to std::vector.
1942 * nat/linux-btrace.c (perf_event_read_bts): Update for
1943 std::vector.
1944 (linux_read_bts): Likewise.
1945
d770d56f
TT
19462019-10-01 Tom Tromey <tom@tromey.com>
1947
1948 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1949
9d636d67
TT
19502019-10-01 Tom Tromey <tom@tromey.com>
1951
1952 * stack.c (print_frame, info_frame_command_core): Use
1953 styled_string.
1954 * linux-thread-db.c (try_thread_db_load_1)
1955 (try_thread_db_load_from_pdir_1): Use styled_string.
1956 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1957 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1958 (maybe_print_unsupported_script_warning)
1959 (maybe_print_script_not_found_warning): Use styled_string.
1960 * ada-lang.c (user_select_syms): Use styled_string.
1961
7f6aba03
TT
19622019-10-01 Tom Tromey <tom@tromey.com>
1963
1964 * p-lang.c (pascal_printstr): Use metadata style.
1965 * value.c (show_convenience): Use metadata style.
1966 * valprint.c (valprint_check_validity, val_print_optimized_out)
1967 (val_print_not_saved, val_print_unavailable)
1968 (val_print_invalid_address, generic_val_print, val_print)
1969 (value_check_printable, val_print_array_elements): Use metadata
1970 style.
1971 * ui-out.h (class ui_out) <field_fmt>: New overload.
1972 <do_field_fmt>: Add style parameter.
1973 * ui-out.c (ui_out::field_fmt): New overload.
1974 * typeprint.c (type_print_unknown_return_type)
1975 (val_print_not_allocated, val_print_not_associated): Use metadata
1976 style.
1977 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1978 parameter.
1979 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1980 * tracepoint.c (tvariables_info_1): Use metadata style.
1981 * stack.c (print_frame_arg, print_frame_info, print_frame)
1982 (info_frame_command_core): Use metadata style.
1983 * skip.c (info_skip_command): Use metadata style.
1984 * rust-lang.c (rust_print_enum): Use metadata style.
1985 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1986 metadata style.
1987 * python/py-framefilter.c (py_print_single_arg): Use metadata
1988 style.
1989 * printcmd.c (do_one_display, print_variable_and_value): Use
1990 metadata style.
1991 * p-valprint.c (pascal_val_print)
1992 (pascal_object_print_value_fields): Use metadata style.
1993 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1994 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1995 parameter.
1996 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1997 * m2-valprint.c (m2_print_long_set): Use metadata style.
1998 * m2-typeprint.c (m2_print_type): Use metadata style.
1999 * infcmd.c (print_return_value_1): Use metadata style.
2000 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2001 * f-valprint.c (info_common_command_for_block): Use metadata
2002 style.
2003 * f-typeprint.c (f_type_print_base): Use metadata style.
2004 * expprint.c (print_subexp_standard): Use metadata style.
2005 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2006 * cli/cli-style.h (class cli_style_option): Add constructor.
2007 (metadata_style): Declare.
2008 * cli/cli-style.c (metadata_style): New global.
2009 (_initialize_cli_style): Register metadata style.
2010 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2011 parameter.
2012 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2013 * c-typeprint.c (c_type_print_base_struct_union)
2014 (c_type_print_base_1): Use metadata style.
2015 * breakpoint.c (watchpoint_value_print)
2016 (print_one_breakpoint_location): Use metadata style.
2017 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2018 style.
2019 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2020 style.
2021 * ada-valprint.c (val_print_packed_array_elements, printstr)
2022 (print_field_values, ada_val_print_ref, ada_val_print): Use
2023 metadata style.
2024 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2025 style.
2026 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2027 style.
2028 * ada-lang.c (user_select_syms): Use metadata style.
2029
14309bb6
TT
20302019-10-01 Tom Tromey <tom@tromey.com>
2031
2032 * cli/cli-cmds.c (pwd_command): Style output.
2033
6a831f06
PA
20342019-10-01 Pedro Alves <palves@redhat.com>
2035 Tom Tromey <tom@tromey.com>
2036
2037 * symtab.c (print_symbol_info): Use %ps.
2038 (print_msymbol_info): Use %ps.
2039 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2040 * printcmd.c (print_variable_and_value): Use %ps.
2041 * macrocmd.c (show_pp_source_pos): Use %ps.
2042 * infrun.c (print_exited_reason): Use ui_out::message.
2043 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2044 (describe_other_breakpoints): Use ui_out::message and new
2045 formats.
2046 (say_where): Use new formats.
2047 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2048 and new formats.
2049
2a3c1174
PA
20502019-10-01 Pedro Alves <palves@redhat.com>
2051 Tom Tromey <tom@tromey.com>
2052
2053 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2054 (test_gdb_formats): New function.
2055 (run_tests): Call it.
2056 (test_format_specifier): Update.
2057 * utils.h (fputs_filtered): Update comment.
2058 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2059 (fputs_styled_unfiltered): Declare.
2060 * utils.c (fputs_styled_unfiltered): New function.
2061 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2062 (vfprintf_filtered): Update.
2063 (vfprintf_unfiltered, vprintf_filtered): Update.
2064 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2065 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2066 disallow_ui_out_field>: New constants.
2067 (enum class field_kind): New.
2068 (struct base_field_s, struct signed_field_s): New.
2069 (signed_field): New function.
2070 (struct string_field_s): New.
2071 (string_field): New function.
2072 (struct styled_string_s): New.
2073 (styled_string): New function.
2074 (class ui_out) <message>: Add comment.
2075 <vmessage, call_do_message>: New methods.
2076 <do_message>: Add style parameter.
2077 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2078 methods.
2079 (ui_out::message): Rewrite.
2080 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2081 parameter.
2082 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2083 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2084 gdb_extensions parameter.
2085 (class format_piece): Add parameter to constructor.
2086 (n_int_args): New field.
2087 * gdbsupport/format.c (format_pieces::format_pieces): Add
2088 gdb_extensions parameter. Handle '*'.
2089 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2090 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2091 vfprintf_styled_no_gdbfmt.
2092 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2093 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2094 unfiltered output.
2095 * ui-style.h (struct ui_file_style) <ptr>: New method.
2096
0dfe5bfb
TT
20972019-10-01 Tom Tromey <tom@tromey.com>
2098
2099 * unittests/format_pieces-selftests.c: Update. Add final format.
2100 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2101 empty literal pieces.
2102
e43b10e1
TT
21032019-10-01 Tom Tromey <tom@tromey.com>
2104
2105 * ui-out.h (enum class ui_out_style_kind): Remove.
2106 (class ui_out) <field_string, field_stsream, do_field_string>:
2107 Change type of "style".
2108 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2109 (ui_out::field_string): Update.
2110 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2111 of "style".
2112 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2113 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2114 * stack.c (print_frame_arg, print_frame_info, print_frame):
2115 Update.
2116 * source.c (print_source_lines_base): Update.
2117 * solib.c (info_sharedlibrary_command): Update.
2118 * skip.c (info_skip_command): Update.
2119 * record-btrace.c (btrace_call_history_src_line)
2120 (btrace_call_history): Update.
2121 * python/py-framefilter.c (py_print_frame): Update.
2122 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2123 "style".
2124 * mi/mi-out.c (mi_ui_out::do_table_header)
2125 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2126 (mi_ui_out::do_field_string): Update.
2127 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2128 Update.
2129 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2130 "style".
2131 * cli-out.c (cli_ui_out::do_table_header)
2132 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2133 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2134 (cli_ui_out::do_field_fmt): Update.
2135 * breakpoint.c (print_breakpoint_location): Update.
2136 (update_static_tracepoint): Update.
2137
cd7c32c3
PW
21382019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2139
2140 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2141 conversion of gdb_datadir.
2142 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2143 remove not needed c_str ().
2144
8fe0f950
AT
21452019-09-30 Ali Tamur <tamur@google.com>
2146
2147 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2148 (dwarf2_string_attr): Likewise.
2149
5f48f8f3
AT
21502019-09-30 Ali Tamur <tamur@google.com>
2151
2152 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2153 (process_full_type_unit): Likewise.
2154 (dump_die_shallow): Likewise.
2155 (cu_debug_loc_section): Likewise.
2156
6fb08628
CB
21572019-09-28 Christian Biesinger <cbiesinger@google.com>
2158
2159 * minsyms.c (compare_minimal_symbols): Rename to...
2160 (minimal_symbol_is_less_than): ...this, and adjust to STL
2161 conventions (return bool, take arguments as references)
2162 (minimal_symbol_reader::install): Call std::sort instead
2163 of qsort.
2164
c7ee338a
CB
21652019-09-29 Christian Biesinger <cbiesinger@google.com>
2166
2167 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2168 hash and why.
2169 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2170 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2171
703a86c2
SM
21722019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2175 * psympriv.h (add_psymbol_to_list): Move comment here and update
2176 it.
2177
0df0352a
TV
21782019-09-29 Tom de Vries <tdevries@suse.de>
2179
2180 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2181 Use $tmpdir/$(basename "$output_file").dwz instead of
2182 "${output_file}.dwz".
2183
ad75efa6
SM
21842019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 PR gdb/25045
2187 * hppa-linux-nat.c: Include gdbarch.h.
2188
ececd218
CB
21892019-09-26 Christian Biesinger <cbiesinger@google.com>
2190
2191 * blockframe.c (find_pc_partial_function): Change return type to bool.
2192 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2193 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2194 (stub_gnu_ifunc_resolve_name): Likewise.
2195 * symtab.c (compare_filenames_for_search): Likewise.
2196 (compare_glob_filenames_for_search): Likewise.
2197 (matching_obj_sections): Likewise.
2198 (symbol_matches_domain): Likewise.
2199 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2200 (find_line_pc): Change return type to bool.
2201 (find_line_pc_range): Likewise.
2202 (producer_is_realview): Likewise.
2203 * symtab.h (symbol_matches_domain): Likewise.
2204 (find_pc_partial_function): Likewise.
2205 (find_pc_line_pc_range): Likewise.
2206 (in_gnu_ifunc_stub): Likewise.
2207 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2208 (find_line_pc): Likewise.
2209 (find_line_pc_range): Likewise.
2210 (matching_obj_sections): Likewise.
2211 (find_line_symtab): Change out parameter to bool.
2212 (producer_is_realview): Change return type to bool.
2213 (compare_filenames_for_search): Likewise.
2214 (compare_glob_filenames_for_search): Likewise.
2215
27a900b8
TT
22162019-09-26 Tom Tromey <tom@tromey.com>
2217
2218 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2219 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2220 * gdb_usleep.h: Remove.
2221 * gdb_usleep.c: Remove.
2222 * utils.c: Don't include gdb_usleep.h.
2223
5d63b30a
TT
22242019-09-26 Tom Tromey <tromey@adacore.com>
2225
2226 * python/py-type.c (type_to_type_object): Call check_typedef
2227 for stub types.
2228
12904d37
TT
22292019-09-26 Tom Tromey <tom@tromey.com>
2230
2231 * utils.h (initialize_utils): Don't declare.
2232 * top.c (gdb_init): Don't call initialize_utils.
2233 * utils.c (initialize_utils): Remove. Move contents...
2234 (_initialize_utils): ... here.
2235
858f25f0
TT
22362019-09-25 Tom Tromey <tom@tromey.com>
2237
2238 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2239 * utils.h (make_hex_string): Don't declare.
2240 * utils.c (make_hex_string): Remove.
2241
3d435220
TV
22422019-09-24 Tom de Vries <tdevries@suse.de>
2243
2244 PR gdb/23815
2245 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2246 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2247
ddd44b70
DD
22482019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2249
2250 * NEWS: Mention new simulator port for PRU.
2251
f945dedf
CB
22522019-09-23 Christian Biesinger <cbiesinger@google.com>
2253
2254 * ada-exp.y (write_object_remaining): Update.
2255 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2256 and eliminate the static buffer.
2257 (ada_decode_symbol): Update.
2258 (ada_la_decode): Update.
2259 (ada_sniff_from_mangled_name): Update.
2260 (is_valid_name_for_wild_match): Update.
2261 (ada_lookup_name_info::matches): Update and simplify.
2262 (name_matches_regex): Update.
2263 (ada_add_global_exceptions): Update.
2264 * ada-lang.h (ada_decode): Update signature.
2265 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2266 * dwarf-index-write.c (debug_names::insert): Update.
2267
7ab78ccb
SM
22682019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2269
2270 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2271 formatting.
2272
9252448b
SM
22732019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2276 Change "nonzero" to "true" in documentation.
2277
626ca2c0
CB
22782019-09-20 Christian Biesinger <cbiesinger@google.com>
2279
2280 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2281 (_initialize_darwin_solib): Don't set
2282 darwin_so_ops.lookup_lib_global_symbol.
2283 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2284 set_gdbarch_iterate_over_objfiles_in_search_order.
2285 (elf_lookup_lib_symbol): Rename to...
2286 (svr4_iterate_over_objfiles_in_search_order): this, and update
2287 to iterate semantics.
2288 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2289 * solib.c (solib_global_lookup): Remove.
2290 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2291 (solib_global_lookup): Remove.
2292 * symtab.c (lookup_global_or_static_symbol): Remove call to
2293 solib_global_lookup.
2294
5a3a0d63
JB
22952019-09-20 Joel Brobecker <brobecker@adacore.com>
2296
2297 * NEWS: Move entries about default MI version now being
2298 version 3, and about the GDB/MI fix for multi-location
2299 breakpoints to the "since GDB 8.3" section.
2300
ffea1427
JB
23012019-09-20 Joel Brobecker <brobecker@adacore.com>
2302
2303 GDB 8.3.1 released.
2304
abf516c6
UW
23052019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2306
2307 * NEWS: Mention that Cell/B.E. debugging support was removed.
2308 * MAINTAINERS: Remove spu target.
2309
2310 * config/djgpp/fnchange.lst: Remove entries for removed files.
2311
2312 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2313 spu-multiarch.o, and spu-tdep.o.
2314 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2315 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2316 spu-multiarch.c, and spu-tdep.c.
2317 * spu-linux-nat.c: Remove file.
2318 * spu-multiarch.c: Remove file.
2319 * spu-tdep.c: Remove file.
2320 * spu-tdep.h: Remove file.
2321 * solib-spu.c: Remove file.
2322 * solib-spu.h: Remove file.
2323
2324 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2325 * configure.nat (spu-linux): Remove.
2326 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2327 solib-multiarch.o from gdb_target_obs.
2328 (spu*-*-*): Remove.
2329
2330 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2331 feature flag.
2332 (ppc_linux_no_features): Update.
2333 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2334 Cell/B.E. support.
2335 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2336 (tdesc_powerpc_cell64l): Likewise.
2337 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2338 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2339 Cell/B.E. support.
2340 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2341 Do not include "features/rs6000/powerpc-cell32l.c" or
2342 "features/rs6000/powerpc-cell64l.c".
2343 (ppc_linux_spu_section): Remove.
2344 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2345 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2346 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2347 (ppc_linux_spe_context_lookup): Remove.
2348 (ppc_linux_spe_context_inferior_created): Remove.
2349 (ppc_linux_spe_context_solib_loaded): Remove.
2350 (ppc_linux_spe_context_solib_unloaded): Remove.
2351 (ppc_linux_spe_context): Remove.
2352 (struct ppu2spu_cache): Remove.
2353 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2354 (struct ppu2spu_data): Remove.
2355 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2356 ppu2spu_unwind): Remove.
2357 (ppc_linux_init_abi): Remove Cell/B.E. support.
2358 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2359
2360 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2361 (rs6000/powerpc-cell64l-expedite): Likewise
2362 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2363 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2364 rs6000/powerpc-cell64l.xml.
2365 * features/rs6000/powerpc-cell32l.xml: Remove.
2366 * features/rs6000/powerpc-cell64l.xml: Likewise.
2367 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2368 * features/rs6000/powerpc-cell64l.c: Likewise.
2369 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2370 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2371 * regformats/reg-spu.dat: Remove.
2372
2373 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2374 * corelow.c (struct spuid_list): Remove.
2375 (add_to_spuid_list): Remove.
2376 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2377 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2378 (remote_protocol_features): Remove associated entries.
2379 (_initialize_remote): No longer initialize them.
2380 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2381 * linux-nat.c (SPUFS_MAGIC): Remove.
2382 (linux_proc_xfer_spu): Remove.
2383 (spu_enumerate_spu_ids): Remove.
2384 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2385 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2386 (linux_make_corefile_notes): No longer call it.
2387
2388 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2389 (cooked_write_test): Likewise.
2390
78e8cb91
TT
23912019-09-20 Tom Tromey <tom@tromey.com>
2392
2393 * NEWS: Mention case-sensitivity of TUI commands.
2394 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2395 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2396 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2397
f074b67e
TT
23982019-09-20 Tom Tromey <tom@tromey.com>
2399
2400 * tui/tui-source.c (tui_source_window::set_contents): Use
2401 make_unique_xstrdup.
2402 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2403 make_unique_xstrdup.
2404
63c4bf19
TT
24052019-09-20 Tom Tromey <tom@tromey.com>
2406
2407 * tui/tui-data.c: Remove separator comments.
2408 * tui/tui-layout.c: Remove separator comments.
2409 * tui/tui-win.c: Remove separator comments.
2410 * tui/tui-wingeneral.c: Remove separator comments.
2411
43df9b2f
TT
24122019-09-20 Tom Tromey <tom@tromey.com>
2413
2414 * tui/tui.h (strcat_to_buf): Don't declare.
2415 * tui/tui.c (strcat_to_buf): Remove.
2416
7226433c
TT
24172019-09-20 Tom Tromey <tom@tromey.com>
2418
2419 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2420 from "fullname".
2421 * tui/tui-source.c (tui_source_window::set_contents)
2422 (tui_source_window::location_matches_p)
2423 (tui_source_window::maybe_update): Update.
2424
80df3337
TT
24252019-09-20 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2428 Update.
2429 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2430 prefix.
2431 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2432 (tui_data_window::line_from_reg_element_no)
2433 (tui_data_window::first_reg_element_no_inline)
2434 (tui_data_window::show_registers)
2435 (tui_data_window::show_register_group)
2436 (tui_data_window::display_registers_from)
2437 (tui_data_window::display_registers_from_line)
2438 (tui_data_window::first_data_item_displayed)
2439 (tui_data_window::delete_data_content_windows)
2440 (tui_data_window::erase_data_content)
2441 (tui_data_window::do_scroll_vertical)
2442 (tui_data_window::refresh_window)
2443 (tui_data_window::check_register_values): Update.
2444
9923f347
TT
24452019-09-20 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2448 (struct tui_locator_window) <full_name, proc_name>: Now
2449 std::string.
2450 * tui/tui-stack.c (tui_locator_window::make_status_line)
2451 (tui_locator_window::set_locator_fullname)
2452 (tui_locator_window::set_locator_info): Update.
2453 * tui/tui-source.c (tui_source_window::set_contents)
2454 (tui_source_window::showing_source_p): Update.
2455
b76251ab
TT
24562019-09-20 Tom Tromey <tom@tromey.com>
2457
2458 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2459 Don't call tui_locator_win_info_ptr.
2460
0891be08
TT
24612019-09-20 Tom Tromey <tom@tromey.com>
2462
2463 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2464
1b935acf
TT
24652019-09-20 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2468 height for locator.
2469 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2470 * tui/tui-layout.c (show_source_disasm_command, show_data)
2471 (show_source_or_disasm_and_command): Use 1 as height for locator.
2472
9abd8a65
TT
24732019-09-20 Tom Tromey <tom@tromey.com>
2474
2475 * tui/tui.c (tui_enable): Update.
2476 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2477 Update.
2478 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2479 Update.
2480 * tui/tui-data.c (win_resized): Now bool.
2481 (tui_win_resized): Return bool.
2482 (tui_set_win_resized_to): Accept a bool.
2483
b5457826
TT
24842019-09-20 Tom Tromey <tom@tromey.com>
2485
2486 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2487 Change type of "refresh_values_only".
2488 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2489 type of "refresh_values_only".
2490
6b915f7d
TT
24912019-09-20 Tom Tromey <tom@tromey.com>
2492
2493 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2494 std::string.
2495 (tui_disassemble): Add "pos" parameter.
2496 (tui_disasm_window::set_contents): Simplify.
2497
2ad52f6f
TT
24982019-09-20 Tom Tromey <tom@tromey.com>
2499
2500 * tui/tui-winsource.h (struct tui_source_window_base)
2501 <show_source_content>: Now private.
2502 * tui/tui-winsource.c
2503 (tui_source_window_base::show_source_content): Don't handle empty
2504 content case.
2505
b3b1bde6
TT
25062019-09-20 Tom Tromey <tom@tromey.com>
2507
2508 * tui/tui-layout.c (show_source_disasm_command)
2509 (show_source_or_disasm_and_command): Don't call
2510 show_source_content.
2511
71a25ed2
TT
25122019-09-20 Tom Tromey <tom@tromey.com>
2513
2514 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2515 Declare.
2516 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2517 from tui_make_status_line.
2518 (tui_locator_window::rerender): Update.
2519
f8532154
TT
25202019-09-20 Tom Tromey <tom@tromey.com>
2521
2522 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2523 (tui_locator_window::rerender): Update.
2524
2d81b349
TT
25252019-09-20 Tom Tromey <tom@tromey.com>
2526
2527 * tui/tui-winsource.h (struct tui_source_window_base)
2528 <~tui_source_window_base>: Don't declare.
2529 <fullname>: Remove.
2530 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2531 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2532 member.
2533 * tui/tui-source.c (tui_source_window::set_contents): Update.
2534 (tui_source_window::location_matches_p)
2535 (tui_source_window::maybe_update): Update.
2536
f14bec58
TT
25372019-09-20 Tom Tromey <tom@tromey.com>
2538
2539 * tui/tui-winsource.h (~tui_source_element): Remove.
2540 (tui_source_element): Update.
2541 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2542 * tui/tui-winsource.c (tui_show_source_line): Update.
2543 * tui/tui-source.c (tui_source_window::set_contents): Update.
2544 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2545
78d5933a
TT
25462019-09-20 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2549 declare.
2550 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2551 tui_clear_source_windows_detail.
2552 * tui/tui-winsource.h (struct tui_source_window_base)
2553 <clear_detail>: Don't declare.
2554 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2555 Remove.
2556 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2557
d4207696
TT
25582019-09-20 Tom Tromey <tromey@adacore.com>
2559
2560 PR ada/24919:
2561 * block.c (contained_in): Fix final return value.
2562
00f93c44
AM
25632019-09-20 Alan Modra <amodra@gmail.com>
2564
2565 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2566 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2567 (read_indirect_string_from_dwz): Use bfd accessor.
2568 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2569 * machoread.c (macho_symfile_read_all_oso): Likewise.
2570 * solib.c (solib_bfd_open): Likewise.
2571
e4153ae6
CB
25722019-09-19 Christian Biesinger <cbiesinger@google.com>
2573
2574 * eval.c: Move declaration of overload_resolution to...
2575 * value.h: ...here.
2576
c7ae7675
CB
25772019-09-19 Christian Biesinger <cbiesinger@google.com>
2578
2579 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2580 * arm-linux-tdep.c: Likewise.
2581 * arm-nbsd-nat.c: Likewise.
2582 * arm-tdep.h: Declare arm_apcs_32.
2583 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2584
e86f08d2
CB
25852019-09-19 Christian Biesinger <cbiesinger@google.com>
2586
2587 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2588 * dwarf2read.h: Declare dwarf_always_disassemble.
2589
f64e2f40
TV
25902019-09-19 Tom de Vries <tdevries@suse.de>
2591
2592 PR gdb/25009
2593 * source-cache.c (source_cache::ensure): Catch exception thrown during
2594 construction of the highlighter.
2595
fd361982
AM
25962019-09-18 Alan Modra <amodra@gmail.com>
2597
2598 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2599 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2600 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2601 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2602 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2603 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2604 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2605 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2606 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2607 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2608 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2609 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2610 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2611 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2612 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2613 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2614 * mi/mi-interp.c: Update throughout for bfd section macro and
2615 function changes.
2616 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2617 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2618
11061048
TT
26192019-09-18 Tom Tromey <tom@tromey.com>
2620
2621 * NEWS: Add entry.
2622 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2623 call rl_initialize.
2624 (tui_enable): Do not call rl_initialize.
2625
7a27b85f
CG
26262019-09-18 Christian Groessler <chris@groessler.org>
2627
2628 * alpha-linux-nat.c: Include gdbarch.h.
2629
f64eea3a
SM
26302019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2631
2632 * ui-file.c: Include cli/cli-style.h.
2633 (term_cli_styling): Remove cli_styling declaration.
2634
e6f7f6d1
AM
26352019-09-18 Alan Modra <amodra@gmail.com>
2636
2637 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2638 to bfd_asymbol_section.
2639
1d38e9d1
AM
26402019-09-18 Alan Modra <amodra@gmail.com>
2641
2642 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2643 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2644 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2645
90d92a63
AM
26462019-09-18 Alan Modra <amodra@gmail.com>
2647
2648 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2649 * spu-linux-nat.c (spu_bfd_open): Likewise.
2650
a3d181d2
CB
26512019-09-18 Christian Biesinger <cbiesinger@google.com>
2652
2653 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2654 to bool to match definition in dwarf2read.c.
2655
491144b5
CB
26562019-09-17 Christian Biesinger <cbiesinger@google.com>
2657
2658 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2659 (print_signatures): Likewise.
2660 (trust_pad_over_xvs): Likewise.
2661 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2662 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2663 * arm-linux-nat.c (arm_apcs_32): Likewise.
2664 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2665 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2666 * arm-tdep.c (arm_debug): Likewise.
2667 (arm_apcs_32): Likewise.
2668 * auto-load.c (debug_auto_load): Likewise.
2669 (auto_load_gdb_scripts): Likewise.
2670 (global_auto_load): Likewise.
2671 (auto_load_local_gdbinit): Likewise.
2672 (auto_load_local_gdbinit_loaded): Likewise.
2673 * auto-load.h (global_auto_load): Likewise.
2674 (auto_load_local_gdbinit): Likewise.
2675 (auto_load_local_gdbinit_loaded): Likewise.
2676 * breakpoint.c (disconnected_dprintf): Likewise.
2677 (breakpoint_proceeded): Likewise.
2678 (automatic_hardware_breakpoints): Likewise.
2679 (always_inserted_mode): Likewise.
2680 (target_exact_watchpoints): Likewise.
2681 (_initialize_breakpoint): Update.
2682 * breakpoint.h (target_exact_watchpoints): Change to bool.
2683 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2684 * cli/cli-cmds.c (trace_commands): Likewise.
2685 * cli/cli-cmds.h (trace_commands): Likewise.
2686 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2687 to bool*.
2688 * cli/cli-logging.c (logging_overwrite): Change to bool.
2689 (logging_redirect): Likewise.
2690 (debug_redirect): Likewise.
2691 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2692 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2693 to bool.
2694 <boolean_option_def>: Update.
2695 (struct flag_option_def): Change default type of Context to bool
2696 from int.
2697 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2698 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2699 (get_setshow_command_value_string): Likewise.
2700 * cli/cli-style.c (cli_styling): Change to bool.
2701 (source_styling): Likewise.
2702 * cli/cli-style.h (source_styling): Likewise.
2703 (cli_styling): Likewise.
2704 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2705 to bool.
2706 * command.h (var_types): Update comment.
2707 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2708 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2709 bool.
2710 (debug_compile_cplus_scopes): Likewise.
2711 * compile/compile-internal.h (compile_debug): Likewise.
2712 * compile/compile.c (compile_debug): Likewise.
2713 (struct compile_options) <raw>: Likewise.
2714 * cp-support.c (catch_demangler_crashes): Likewise.
2715 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2716 (usr_cmd_cris_dwarf2_cfi): Likewise.
2717 * csky-tdep.c (csky_debug): Likewise.
2718 * darwin-nat.c (enable_mach_exceptions): Likewise.
2719 * dcache.c (dcache_enabled_p): Likewise.
2720 * defs.h (info_verbose): Likewise.
2721 * demangle.c (demangle): Likewise.
2722 (asm_demangle): Likewise.
2723 * dwarf-index-cache.c (debug_index_cache): Likewise.
2724 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2725 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2726 * dwarf2read.c (check_physname): Likewise.
2727 (use_deprecated_index_sections): Likewise.
2728 (dwarf_always_disassemble): Likewise.
2729 * eval.c (overload_resolution): Likewise.
2730 * event-top.c (set_editing_cmd_var): Likewise.
2731 (exec_done_display_p): Likewise.
2732 * event-top.h (set_editing_cmd_var): Likewise.
2733 (exec_done_display_p): Likewise.
2734 * exec.c (write_files): Likewise.
2735 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2736 (debug_fbsd_nat): Likewise.
2737 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2738 Likewise.
2739 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2740 <backtrace_past_entry> Likewise.
2741 * gdb-demangle.h (demangle): Likewise.
2742 (asm_demangle): Likewise.
2743 * gdb_bfd.c (bfd_sharing): Likewise.
2744 * gdbcore.h (write_files): Likewise.
2745 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2746 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2747 * gdbthread.h (print_thread_events): Likewise.
2748 * gdbtypes.c (opaque_type_resolution): Likewise.
2749 (strict_type_checking): Likewise.
2750 * gnu-nat.c (gnu_debug_flag): Likewise.
2751 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2752 * guile/scm-param.c (pascm_variable): Add boolval.
2753 (add_setshow_generic): Update.
2754 (pascm_param_value): Update.
2755 (pascm_set_param_value_x): Update.
2756 * hppa-tdep.c (hppa_debug): Change to bool..
2757 * infcall.c (may_call_functions_p): Likewise.
2758 (coerce_float_to_double_p): Likewise.
2759 (unwind_on_signal_p): Likewise.
2760 (unwind_on_terminating_exception_p): Likewise.
2761 * infcmd.c (startup_with_shell): Likewise.
2762 * inferior.c (print_inferior_events): Likewise.
2763 * inferior.h (startup_with_shell): Likewise.
2764 (print_inferior_events): Likewise.
2765 * infrun.c (step_stop_if_no_debug): Likewise.
2766 (detach_fork): Likewise.
2767 (debug_displaced): Likewise.
2768 (disable_randomization): Likewise.
2769 (non_stop): Likewise.
2770 (non_stop_1): Likewise.
2771 (observer_mode): Likewise.
2772 (observer_mode_1): Likewise.
2773 (set_observer_mode): Update.
2774 (sched_multi): Change to bool.
2775 * infrun.h (debug_displaced): Likewise.
2776 (sched_multi): Likewise.
2777 (step_stop_if_no_debug): Likewise.
2778 (non_stop): Likewise.
2779 (disable_randomization): Likewise.
2780 * linux-tdep.c (use_coredump_filter): Likewise.
2781 (dump_excluded_mappings): Likewise.
2782 * linux-thread-db.c (auto_load_thread_db): Likewise.
2783 (check_thread_db_on_load): Likewise.
2784 * main.c (captured_main_1): Update.
2785 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2786 xx2_opt, boolean_opt>: Change to bool.
2787 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2788 * maint.c (maintenance_profile_p): Likewise.
2789 (per_command_time): Likewise.
2790 (per_command_space): Likewise.
2791 (per_command_symtab): Likewise.
2792 * memattr.c (inaccessible_by_default): Likewise.
2793 * mi/mi-main.c (mi_async): Likewise.
2794 (mi_async_1): Likewise.
2795 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2796 * nat/fork-inferior.h (startup_with_shell): Likewise.
2797 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2798 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2799 * nios2-tdep.c (nios2_debug): Likewise.
2800 * or1k-tdep.c (or1k_debug): Likewise.
2801 * parse.c (parser_debug): Likewise.
2802 * parser-defs.h (parser_debug): Likewise.
2803 * printcmd.c (print_symbol_filename): Likewise.
2804 * proc-api.c (procfs_trace): Likewise.
2805 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2806 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2807 (set_parameter_value): Update.
2808 (add_setshow_generic): Update.
2809 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2810 to bool*.
2811 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2812 int*.
2813 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2814 * record-btrace.c (record_btrace_target::store_registers): Update.
2815 * record-full.c (record_full_memory_query): Change to bool.
2816 (record_full_stop_at_limit): Likewise.
2817 * record-full.h (record_full_memory_query): Likewise.
2818 * remote-notif.c (notif_debug): Likewise.
2819 * remote-notif.h (notif_debug): Likewise.
2820 * remote.c (use_range_stepping): Likewise.
2821 (interrupt_on_connect): Likewise.
2822 (remote_break): Likewise.
2823 * ser-tcp.c (tcp_auto_retry): Likewise.
2824 * ser-unix.c (serial_hwflow): Likewise.
2825 * skip.c (debug_skip): Likewise.
2826 * solib-aix.c (solib_aix_debug): Likewise.
2827 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2828 (spu_auto_flush_cache_p): Likewise.
2829 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2830 Likewise.
2831 (struct info_print_options) <quiet>: Likewise.
2832 * symfile-debug.c (debug_symfile): Likewise.
2833 * symfile.c (auto_solib_add): Likewise.
2834 (separate_debug_file_debug): Likewise.
2835 * symfile.h (auto_solib_add): Likewise.
2836 (separate_debug_file_debug): Likewise.
2837 * symtab.c (basenames_may_differ): Likewise.
2838 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2839 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2840 (struct info_types_options) <quiet>: Likewise.
2841 * symtab.h (demangle): Likewise.
2842 (basenames_may_differ): Likewise.
2843 * target-dcache.c (stack_cache_enabled_1): Likewise.
2844 (code_cache_enabled_1): Likewise.
2845 * target.c (trust_readonly): Likewise.
2846 (may_write_registers): Likewise.
2847 (may_write_memory): Likewise.
2848 (may_insert_breakpoints): Likewise.
2849 (may_insert_tracepoints): Likewise.
2850 (may_insert_fast_tracepoints): Likewise.
2851 (may_stop): Likewise.
2852 (auto_connect_native_target): Likewise.
2853 (target_stop_and_wait): Update.
2854 (target_async_permitted): Change to bool.
2855 (target_async_permitted_1): Likewise.
2856 (may_write_registers_1): Likewise.
2857 (may_write_memory_1): Likewise.
2858 (may_insert_breakpoints_1): Likewise.
2859 (may_insert_tracepoints_1): Likewise.
2860 (may_insert_fast_tracepoints_1): Likewise.
2861 (may_stop_1): Likewise.
2862 * target.h (target_async_permitted): Likewise.
2863 (may_write_registers): Likewise.
2864 (may_write_memory): Likewise.
2865 (may_insert_breakpoints): Likewise.
2866 (may_insert_tracepoints): Likewise.
2867 (may_insert_fast_tracepoints): Likewise.
2868 (may_stop): Likewise.
2869 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2870 (make_thread_apply_all_options_def_group): Change argument from int*
2871 to bool*.
2872 (thread_apply_all_command): Update.
2873 (print_thread_events): Change to bool.
2874 * top.c (confirm): Likewise.
2875 (command_editing_p): Likewise.
2876 (history_expansion_p): Likewise.
2877 (write_history_p): Likewise.
2878 (info_verbose): Likewise.
2879 * top.h (confirm): Likewise.
2880 (history_expansion_p): Likewise.
2881 * tracepoint.c (disconnected_tracing): Likewise.
2882 (circular_trace_buffer): Likewise.
2883 * typeprint.c (print_methods): Likewise.
2884 (print_typedefs): Likewise.
2885 * utils.c (debug_timestamp): Likewise.
2886 (sevenbit_strings): Likewise.
2887 (pagination_enabled): Likewise.
2888 * utils.h (sevenbit_strings): Likewise.
2889 (pagination_enabled): Likewise.
2890 * valops.c (overload_resolution): Likewise.
2891 * valprint.h (struct value_print_options) <prettyformat_arrays,
2892 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2893 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2894 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2895 Likewise.
2896 * windows-nat.c (new_console): Likewise.
2897 (cygwin_exceptions): Likewise.
2898 (new_group): Likewise.
2899 (debug_exec): Likewise.
2900 (debug_events): Likewise.
2901 (debug_memory): Likewise.
2902 (debug_exceptions): Likewise.
2903 (useshell): Likewise.
2904 * windows-tdep.c (maint_display_all_tib): Likewise.
2905 * xml-support.c (debug_xml): Likewise.
2906
f1b620e9
MG
29072019-09-17 Mike Gulick <mgulick@mathworks.com>
2908
2909 * source.c (prepare_path_for_appending): New function.
2910 (openp): Make use of new function.
2911 (find_and_open_source): Search for the compilation directory and
2912 source file as a relative path beneath the directory search path.
2913
67f3ed6a
AB
29142019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * source-cache.c (source_cache::get_line_charpos): Catch
2917 exceptions and return false, this matches the behaviour documented
2918 in the header file.
2919
74332189
JB
29202019-09-17 Joel Brobecker <brobecker@adacore.com>
2921
2922 * ada-tasks.c (info_task): Remove quoting of the task's name.
2923
f2f24aa9
CB
29242019-09-16 Christian Biesinger <cbiesinger@google.com>
2925
2926 * symfile.c (auto_solib_add): Replace comment with a reference
2927 to the header file.
2928
6a062a93
CB
29292019-09-14 Christian Biesinger <cbiesinger@google.com>
2930
2931 * NEWS: Mention that gdb can now be compiled with Python 3
2932 on Windows.
2933
ec6c8338
AB
29342019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2935
2936 * maint.c (maint_print_section_data::maint_print_section_data):
2937 Force use of 'float log10 (float)' by casting the argument to
2938 float.
2939
aa17805f
AB
29402019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * maint.c: Add 'cmath' include.
2943 (struct maint_print_section_data): New structure.
2944 (print_section_index): New function.
2945 (print_bfd_section_info): Add header comment, small whitespace
2946 cleanup, and update to call new print_section_index function.
2947 (print_objfile_section_info): Likewise.
2948 (maint_obj_section_from_bfd_section): New function.
2949 (print_bfd_section_info_maybe_relocated): New function.
2950 (maintenance_info_sections): Add header comment, always use
2951 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2952
3dd9bb46
AB
29532019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2956 inner scope, add check that the objfile has psymtabs before
2957 checking psymtabs_addrmap.
2958 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2959
4993045d
PW
29602019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2961
2962 * NEWS: Announce that Ada task names are now shown at more places,
2963 and between quotes (except in info task output).
2964 * gdb/ada-tasks.c (task_to_str): New function.
2965 (display_current_task_id): Call task_to_str.
2966 (task_command_1): Likewise.
2967 (print_ada_task_info): In non-mi mode, Properly align headers and data
2968 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2969
7a289707
RO
29702019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2971
2972 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2973 prstatus.pr_lwp.pr_info instead of making it up.
2974
f2aec7f6
CB
29752019-09-11 Christian Biesinger <cbiesinger@google.com>
2976
2977 * auto-load.c (auto_load_expand_dir_vars): Update.
2978 * defs.h (gdb_datadir): Change to std::string.
2979 (python_libdir): Likewise.
2980 (relocate_gdb_directory): Change return type to std::string.
2981 * guile/guile.c (gdbscm_data_directory): Update.
2982 (initialize_scheme_side): Update.
2983 * jit.c (jit_reader_dir): Change to std::string.
2984 (jit_reader_load_command): Update.
2985 * main.c (gdb_datadir): Change to std::string.
2986 (python_libdir): Likewise.
2987 (set_gdb_data_directory): Update.
2988 (relocate_path): Change to return std::string.
2989 (relocate_gdb_directory): Change to return std::string.
2990 (relocate_gdbinit_path_maybe_in_datadir): Update.
2991 (captured_main_1): Update.
2992 * python/python.c (do_start_initialization): Update.
2993 * top.c (show_gdb_datadir): Update.
2994 * xml-syscall.c (xml_init_syscalls_info): Update.
2995 (init_syscalls_info): Update.
2996
9224a013
CB
29972019-09-11 Christian Biesinger <cbiesinger@google.com>
2998
2999 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3000 out of get_init_files.
3001 (get_init_files): Update.
3002
f48cd836
CB
30032019-09-11 Christian Biesinger <cbiesinger@google.com>
3004
3005 * main.c (get_init_files): Change to use std::string.
3006 (captured_main_1): Update.
3007 (print_gdb_help): Update.
3008
9cab7ecd
AT
30092019-09-11 Ali Tamur <tamur@google.com>
3010
3011 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3012 implementation.
3013
67547d89
CB
30142019-09-11 Christian Biesinger <cbiesinger@google.com>
3015
3016 * dbxread.c (read_dbx_symtab): Update.
3017 * dwarf2read.c (load_partial_dies): Update.
3018 * mdebugread.c (parse_partial_symbols): Update.
3019 (handle_psymbol_enumerators): Update.
3020 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3021 * psymtab.c (add_psymbol_to_bcache): Likewise.
3022 (add_psymbol_to_list): Likewise.
3023 * symtab.c (symbol_set_names): Likewise.
3024 * symtab.h (symbol_set_names): Likewise.
3025 * xcoffread.c (scan_xcoff_symtab): Update.
3026
64b2d4a0
TT
30272019-09-11 Tom Tromey <tom@tromey.com>
3028
3029 * symfile-mem.c (symbol_file_add_from_memory): Use
3030 bfd_set_filename.
3031 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3032 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3033
3b00ef10
TT
30342019-09-10 Tom Tromey <tromey@adacore.com>
3035
3036 * dwarf-index-write.c (write_psymbols): Extend error message.
3037 (debug_names::insert): Add Ada code.
3038 (debug_names::write_psymbols): Remove Ada check.
3039 (debug_names) <m_string_obstack>: New member.
3040 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3041 (gdb_index_symbol_name_matcher::matches): Remove.
3042 (mapped_index_base::find_name_components_bounds): Add "lang"
3043 parameter.
3044 (mapped_index_base::build_name_components): Also split names
3045 according to Ada syntax.
3046 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3047 type of "match_callback".
3048 (check_match, check_find_bounds_finds)
3049 (dw2_expand_symtabs_matching): Update.
3050 (dw2_debug_names_iterator): Add new constructor.
3051 (dw2_debug_names_map_matching_symbols): New function.
3052 (dw2_debug_names_expand_symtabs_matching): Update.
3053 (dwarf2_debug_names_functions): Use
3054 dw2_debug_names_map_matching_symbols.
3055
aa391654
TT
30562019-09-10 Tom Tromey <tromey@adacore.com>
3057
3058 * dwarf2read.c (dw2_get_file_names_reader): Add the
3059 CU's file name to the results.
3060
b054970d
TT
30612019-09-10 Tom Tromey <tromey@adacore.com>
3062
3063 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3064 map_matching_symbols. Update.
3065 * dwarf2read.c (dw2_map_matching_symbols): Update.
3066 * psymtab.c (match_partial_symbol): Change type; update.
3067 (psym_map_matching_symbols): Likewise.
3068 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3069 type; update.
3070 * symfile.h (struct quick_symbol_functions)
3071 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3072 Remove "match".
3073
6a3dbf1b
TT
30742019-09-10 Tom Tromey <tromey@adacore.com>
3075
3076 * psymtab.c (map_block): Remove.
3077 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3078 * symtab.c (iterate_over_symbols_terminated): New function.
3079 * symtab.c (iterate_over_symbols_terminated): Declare.
3080
6969f124
TT
30812019-09-10 Tom Tromey <tromey@adacore.com>
3082
3083 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3084 * language.h (struct language_defn) <la_iterate_over_symbols>:
3085 Return bool.
3086 * symtab.c (iterate_over_symbols): Return bool.
3087 * symtab.h (iterate_over_symbols): Return bool.
3088
199b4314
TT
30892019-09-10 Tom Tromey <tromey@adacore.com>
3090
3091 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3092 (add_nonlocal_symbols): Update.
3093 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3094 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3095 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3096 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3097 Change type of "callback". Remove "data".
3098
a084a2a6
AT
3099
31002019-09-09 Ali Tamur <tamur@google.com>
3101
3102 * dwarf2read.c (comp_unit_head): Update comment.
3103 (dwarf2_dwo_name): New function declaration.
3104 (dwarf_unit_type_name): New function declaration.
3105 (read_comp_unit_head): Add support for new compilation units,
3106 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3107 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3108 (currently named as "signature") in their header. Also clarify error
3109 messages.
3110 (lookup_dwo_id): New function. Returns the dwo id of the given
3111 compile unit.
3112 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3113 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3114 functions.
3115 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3116 (dwarf2_dwo_name): Get the dwo name if present.
3117 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3118 purposes.
3119
25a2915e
TT
31202019-09-09 Tom Tromey <tom@tromey.com>
3121
3122 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3123
e4df0874
PW
31242019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3125
3126 * python/python.c (do_start_initialization): Make progname_copy static,
3127 to avoid a leak report.
3128
8634b462
TT
31292019-09-08 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3132
c7f839cb
SM
31332019-09-07 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3136 Change type to gdb::optional<block_enum>.
3137 (dw2_symtab_iter_init): Change block_index parameter type
3138 to gdb::optional<block_enum>.
3139 (dw2_lookup_symbol): Change block_index parameter
3140 type to block_enum.c
3141 (dw2_debug_names_lookup_symbol): Likewise.
3142 * psymtab.c (psym_lookup_symbol): Likewise.
3143 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3144 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3145 Likewise.
3146
ead0e69a
CB
31472019-09-06 Christian Biesinger <cbiesinger@google.com>
3148
3149 * defs.h (relocate_gdb_directory): Change int to bool in
3150 signature and rename flag to relocatable.
3151 * main.c (relocate_path): Likewise.
3152 (relocate_gdb_directory): Likewise.
3153
b16c44de
AM
31542019-09-06 Alan Modra <amodra@gmail.com>
3155
3156 * coffread.c (coff_symfile_read): Constify filename variable.
3157 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3158 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3159 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3160 * solib.c (reload_shared_libraries_1): Likewise.
3161 * symfile.c (reread_symbols): Likewise.
3162 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3163 * solib-darwin.c (darwin_bfd_open): Likewise.
3164 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3165
06ff036e
AB
31662019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3169 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3170
4e962e74
TT
31712019-09-03 Tom Tromey <tromey@adacore.com>
3172
3173 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3174 types.
3175 (has_negatives): Unbias a range type bound.
3176 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3177 * gdbtypes.c (operator==): Handle new field.
3178 (create_range_type): Add "bias" parameter.
3179 (create_static_range_type, resolve_dynamic_range): Update.
3180 * gdbtypes.h (struct range_bounds) <bias>: New member.
3181 (create_range_type): Add bias parameter.
3182 * printcmd.c (print_scalar_formatted): Unbias range types.
3183 * value.c (unpack_long): Unbias range types.
3184 (pack_long): Bias range types.
3185
d90b8f26
AH
31862019-09-02 Alan Hayward <alan.hayward@arm.com>
3187
3188 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3189 probe arguments.
3190
fe01123e
AH
31912019-09-02 Alan Hayward <alan.hayward@arm.com>
3192
3193 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3194 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3195 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3196 (compile_probe_arg): Likewise.
3197 * probe.h (get_argument_count): Likewise.
3198 * solib-svr4.c (solib_event_probe_action): Likewise.
3199 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3200
e661ef01
AH
32012019-09-02 Alan Hayward <alan.hayward@arm.com>
3202
3203 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3204 code to here...
3205 (svr4_create_solib_event_breakpoints): ...from here.
3206
47a536d9
SDJ
32072019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3208
3209 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3210 suffix from warning message.
3211
d6a00eba
TT
32122019-08-30 Tom Tromey <tom@tromey.com>
3213
3214 * tui/tui-winsource.h (struct tui_source_window_base)
3215 <refresh_all>: Don't declare.
3216 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3217 Remove.
3218 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3219 tui_show_locator_content.
3220 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3221 declare.
3222 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3223 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3224 declare.
3225
55b2657b
TT
32262019-08-30 Tom Tromey <tom@tromey.com>
3227
3228 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3229
12a8555a
TT
32302019-08-30 Tom Tromey <tom@tromey.com>
3231
3232 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3233 Remove unnecessary forward declarations.
3234
900ac242
TT
32352019-08-30 Tom Tromey <tom@tromey.com>
3236
3237 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3238 rerender.
3239 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3240 tui_show_locator_content.
3241
99ab33fb
TT
32422019-08-30 Tom Tromey <tom@tromey.com>
3243
3244 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3245 (tui_locator_window::rerender): Rewrite using body of previous
3246 tui_show_locator_content.
3247
e594a5d1
TT
32482019-08-30 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3251 set_locator_fullname>: New methods.
3252 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3253 Rename from tui_set_locator_fullname.
3254 (tui_locator_window::set_locator_info): Rename from
3255 tui_set_locator_info. Return bool.
3256 (tui_update_locator_fullname, tui_show_frame_info): Update.
3257
715bb467
TT
32582019-08-30 Tom Tromey <tom@tromey.com>
3259
3260 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3261
772f3f03
TT
32622019-08-30 Tom Tromey <tom@tromey.com>
3263
3264 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3265 call touchwin.
3266
108e13ab
TT
32672019-08-30 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-wingeneral.c (box_win): Assume win_info and
3270 win_info->handle cannot be NULL.
3271
cdaa6eb4
TT
32722019-08-30 Tom Tromey <tom@tromey.com>
3273
3274 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3275 refresh_window>: Declare.
3276 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3277 resize.
3278 (tui_data_item_window::rerender): Rename from
3279 tui_display_register.
3280 (tui_data_item_window::refresh_window): New method.
3281 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3282 no-op.
3283
89df7f90
TT
32842019-08-30 Tom Tromey <tom@tromey.com>
3285
3286 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3287 regs_column_count, current_group>: Move later. Now private.
3288 <get_current_group>: New method.
3289 * tui/tui-regs.c (tui_reg_command): Update.
3290 * tui/tui-layout.c (tui_set_layout): Update.
3291
1bf2866a
TT
32922019-08-30 Tom Tromey <tom@tromey.com>
3293
3294 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3295 (tui_data_window::rerender): Don't call
3296 check_and_display_highlight_if_needed.
3297 (tui_data_window::refresh_all): Remove call to
3298 erase_data_content.
3299
0670413d
TT
33002019-08-30 Tom Tromey <tom@tromey.com>
3301
3302 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3303 (tui_data_window::display_registers_from)
3304 (tui_data_window::display_reg_element_at_line)
3305 (tui_data_window::display_registers_from_line): Remove checks of
3306 "empty".
3307
18bb55c7
TT
33082019-08-30 Tom Tromey <tom@tromey.com>
3309
3310 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3311 Don't declare.
3312 * tui/tui-regs.c (tui_data_window::show_registers): Call
3313 rerender.
3314 (tui_data_window::rerender): Rename from display_all_data.
3315 (tui_data_window::rerender): Remove old implementation.
3316
1f6d2f10
TT
33172019-08-30 Tom Tromey <tom@tromey.com>
3318
3319 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3320 text.
3321 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3322
16d01f9c
BW
33232019-08-29 Bernhard Wodok <barto@gmx.net>
3324 Sergio Durigan Junior <sergiodj@redhat.com>
3325
3326 PR win32/24284
3327 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3328
d8f27c60
AB
33292019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3330
3331 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3332 when searching for types.
3333
1f20c35e
AB
33342019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 * f-lang.c (f_language_defn): Use f_print_typedef.
3337 * f-lang.h (f_print_typedef): Declare.
3338 * f-typeprint.c (f_print_typedef): Define.
3339
550105b7
CB
33402019-08-27 Christian Biesinger <cbiesinger@google.com>
3341
3342 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3343
4acfdd20
AB
33442019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3345
3346 * cli/cli-utils.c (info_print_options_defs): Delete.
3347 (make_info_print_options_def_group): Delete.
3348 (extract_info_print_options): Delete.
3349 (info_print_command_completer): Delete.
3350 (info_print_args_help): Add extra parameter, and optionally
3351 include text about -n flag.
3352 * cli/cli-utils.h (struct info_print_options): Delete.
3353 (extract_info_print_options): Delete declaration.
3354 (info_print_command_completer): Delete declaration.
3355 (info_print_args_help): Add extra parameter, extend header
3356 comment.
3357 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3358 search_symbols.
3359 * stack.c (struct info_print_options): New type.
3360 (info_print_options_defs): New file scoped variable.
3361 (make_info_print_options_def_group): New static function.
3362 (info_print_command_completer): New static function.
3363 (info_locals_command): Update to use new local functions.
3364 (info_args_command): Likewise.
3365 (_initialize_stack): Add extra parameter to calls to
3366 info_print_args_help.
3367 * symtab.c (search_symbols): Add extra parameter, use this to
3368 possibly excluse non-debug symbols.
3369 (symtab_symbol_info): Add extra parameter, which is passed on to
3370 search_symbols.
3371 (struct info_print_options): New type.
3372 (info_print_options_defs): New file scoped variable.
3373 (make_info_print_options_def_group): New static function.
3374 (info_print_command_completer): New static function.
3375 (info_variables_command): Update to use local functions, and pass
3376 extra parameter through to symtab_symbol_info.
3377 (info_functions_command): Likewise.
3378 (info_types_command): Pass additional argument through to
3379 symtab_symbol_info.
3380 (rbreak_command): Pass extra argument to search_symbols.
3381 (_initialize_symtab): Add extra arguments for calls to
3382 info_print_args_help, and update help text for 'info variables',
3383 'whereis', and 'info functions' commands.
3384 * symtab.h (search_symbols): Add extra argument to declaration.
3385 * NEWS: Mention new flags.
3386
9aa55206
CB
33872019-08-26 Christian Biesinger <cbiesinger@google.com>
3388
3389 * symtab.c (lookup_static_symbol): Call the new function (and move
3390 it down to be next to lookup_global_symbol).
3391 (struct global_sym_lookup_data): Add block_enum member and rename to...
3392 (struct global_or_static_sym_lookup_data): ...this.
3393 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3394 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3395 (lookup_symbol_global_or_static_iterator_cb): ...this.
3396 (lookup_global_or_static_symbol): New function.
3397 (lookup_global_symbol): Call new function.
3398
5c31b358
TV
33992019-08-26 Tom de Vries <tdevries@suse.de>
3400
3401 PR c++/24852
3402 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3403 when pc_probe.prob == NULL.
3404
23c13d42
SM
34052019-08-25 Simon Marchi <simon.marchi@efficios.com>
3406
3407 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3408 variable symbol_linkage to symbol_linkage_.
3409
beadd3e8
SM
34102019-08-25 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3413 represent whether the symbol is static, dynamic, or we don't
3414 know.
3415
e3ec872f
YS
34162019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3417
3418 * gdb/rx-tdep.c (rx_register_names): New.
3419 (rx_register_name): Delete.
3420 (rx_psw_type): Delete.
3421 (rx_fpsw_type): Delete.
3422 (rx_register_type): Delete.
3423 (rx_gdbarch_init): Convert target-descriptions.
3424 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3425 * gdb/features/Makefile: Add rx.xml.
3426 * gdb/features/rx.xml: New.
3427 * gdb/features/rx.c: Generated.
3428 * gdb/NEWS: Mention target description support.
3429
d0509ba4
CB
34302019-08-22 Christian Biesinger <cbiesinger@google.com>
3431
3432 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3433 *slot_ptr.
3434
2d41fa11
SDJ
34352019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3436
3437 * configure.ac: Don't check for 'dlfcn.h' (moved to
3438 gdbsupport/common.m4).
3439 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3440 'gdbsupport/'.
3441 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3442 * compile/compile-c-support.c: Include
3443 'gdbsupport/gdb-dlfcn.h'.
3444 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3445 * gdb-dlfcn.c: Move to...
3446 * gdbsupport/gdb-dlfcn.c: ... here.
3447 * gdb-dlfcn.h: Move to...
3448 * gdbsupport/gdb-dlfcn.h: ... here.
3449
de8af808
SL
34502019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3451
3452 * nios2-tdep.c (struct reg_value): Improve comments. Make
3453 the offset field signed.
3454
27204489
CB
34552019-08-22 Christian Biesinger <cbiesinger@google.com>
3456
3457 * python/lib/gdb/__init__.py (_execute_file): New function.
3458 * python/python.c (python_run_simple_file): Call gdb._execute_file
3459 on Windows.
3460
43771869
AB
34612019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3464 all uses as this was never set to anything but a zero value.
3465
26c957f1
PA
34662019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3467
3468 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3469
c07aae6e
CB
34702019-08-21 Christian Biesinger <cbiesinger@google.com>
3471
3472 * tui/tui-data.h (tui_gen_win_info): Add an =default
3473 move constructor, required by some GCC versions.
3474
3960cb7a
JF
34752019-08-21 Jinke Fan <fanjinke51@yeah.net>
3476
3477 * go32-nat.c (go32_sysinfo): Add hygon_p.
3478
04c72a68
TT
34792019-08-20 Tom Tromey <tom@tromey.com>
3480
3481 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3482 line_from_reg_element_no, first_reg_element_no_inline,
3483 display_all_data, delete_data_content_windows,
3484 erase_data_content>: Now private.
3485
072272ce
TT
34862019-08-20 Tom Tromey <tom@tromey.com>
3487
3488 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3489 (tui_unhighlight_win, tui_highlight_win)
3490 (tui_win_info::make_window): Update.
3491 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3492
973961bd
TT
34932019-08-20 Tom Tromey <tom@tromey.com>
3494
3495 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3496 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3497 (MAX_PID_WIDTH): Move to tui-stack.c.
3498 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3499 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3500 (MAX_PID_WIDTH): Move from tui-data.h.
3501
ab0e1f1a
TT
35022019-08-20 Tom Tromey <tom@tromey.com>
3503
3504 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3505 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3506 (box_win): Update.
3507 (tui_gen_win_info::make_window): Rename from tui_make_window.
3508 (tui_win_info::make_window): New method.
3509 (tui_gen_win_info::make_visible): Update.
3510 * tui/tui-source.c (tui_source_window::set_contents): Update.
3511 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3512 (tui_data_window::display_registers_from): Update.
3513 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3514 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3515 Declare.
3516 <can_box>: Remove.
3517 <title>: Remove.
3518 (struct tui_win_info) <make_window>: Declare.
3519 <can_box>: Now virtual.
3520 <title>: New member.
3521 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3522 * tui/tui-command.c (tui_cmd_window::resize): Update.
3523
100c2bf3
TT
35242019-08-20 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3527 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3528 (tui_data_window::check_register_values): Update.
3529
fa4dc567
TT
35302019-08-20 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-regs.h (struct tui_data_window): Use
3533 DISABLE_COPY_AND_ASSIGN.
3534 <regs_content>: Change type, removing unique_ptr.
3535 <tui_data_window>: Add move constructor.
3536 * tui/tui-regs.c (tui_data_window::show_registers)
3537 (tui_data_window::show_register_group)
3538 (tui_data_window::display_registers_from)
3539 (tui_data_window::display_registers_from)
3540 (tui_data_window::first_data_item_displayed)
3541 (tui_data_window::delete_data_content_windows)
3542 (tui_data_window::rerender, tui_data_window::refresh_window)
3543 (tui_data_window::check_register_values): Update.
3544
ca02d7c8
TT
35452019-08-20 Tom Tromey <tom@tromey.com>
3546
3547 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3548 show_register_group>: Declare.
3549 (tui_show_register_group): Don't declare.
3550 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3551 tui_show_registers.
3552 (tui_data_window::show_register_group): Rename from
3553 tui_show_register_group.
3554 (tui_data_window::check_register_values, tui_reg_command):
3555 Update.
3556 * tui/tui-layout.c (tui_set_layout): Update.
3557
63356bfd
TT
35582019-08-20 Tom Tromey <tom@tromey.com>
3559
3560 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3561 Declare.
3562 (tui_check_register_values): Don't declare.
3563 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3564 from tui_check_register_values.
3565 * tui/tui-hooks.c (tui_register_changed): Update.
3566
42cc14a7
TT
35672019-08-20 Tom Tromey <tom@tromey.com>
3568
3569 * tui/tui-regs.c (tui_reg_layout): Move later.
3570 (tui_show_registers): Don't enable TUI mode or change layout.
3571
b9ad3686
TT
35722019-08-20 Tom Tromey <tom@tromey.com>
3573
3574 * tui/tui-regs.h (struct tui_data_item_window)
3575 <~tui_data_item_window>: Remove.
3576 <content>: Now a unique_xmalloc_ptr.
3577 * tui/tui-regs.c (tui_register_format): Return a
3578 unique_xmalloc_ptr.
3579 (tui_get_register): Update.
3580 (~tui_data_item_window): Remove.
3581 (tui_data_window::display_registers_from, tui_display_register):
3582 Update.
3583 * tui/tui-io.h (tui_expand_tabs): Update.
3584 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3585 Remove "col" parameter.
3586
8e114aab
TT
35872019-08-20 Tom Tromey <tom@tromey.com>
3588
3589 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3590 field.
3591 * tui/tui-regs.c (~tui_data_item_window): Update.
3592
1a4f81dd
TT
35932019-08-20 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3596 earlier.
3597
0f8d8876
TT
35982019-08-20 Tom Tromey <tom@tromey.com>
3599
3600 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3601
605dc2c2
TT
36022019-08-20 Tom Tromey <tom@tromey.com>
3603
3604 * tui/tui-source.h (struct tui_source_window): Update.
3605 * tui/tui-regs.c (tui_show_registers): Update.
3606 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3607 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3608 (NO_REGS_STRING): Remove defines.
3609
aedbe3bb
CM
36102019-08-20 Conrad Meyer <cem@FreeBSD.org>
3611
3612 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3613 unnecessary thread walk if remote doesn't support the packet.
3614
7ce8f214
TT
36152019-08-19 Tom Tromey <tromey@adacore.com>
3616
3617 * python/py-value.c (value_has_field): Fix indentation.
3618
f21c2bd7
TT
36192019-08-19 Tom Tromey <tromey@adacore.com>
3620
3621 * printcmd.c (do_one_display, info_display_command): Update.
3622 * block.h (contained_in): Return bool. Add allow_nested
3623 parameter.
3624 * block.c (contained_in): Return bool. Add allow_nested
3625 parameter.
3626
d806ea2d
TT
36272019-08-19 Tom Tromey <tom@tromey.com>
3628
3629 * configure: Rebuild.
3630 * configure.ac: Disallow the combination of -static-libstdc++ and
3631 source highlight.
3632 * source-cache.c (get_language_name): Handle rust.
3633 (source_cache::get_source_lines): Ignore highlighting exceptions.
3634
398fdd60
TT
36352019-08-16 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3638 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3639 (struct tui_source_window_base) <make_visible, refresh_window,
3640 resize>: Remove methods.
3641 <execution_info>: Remove field.
3642 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3643 (tui_show_source_line, tui_source_window_base)
3644 (~tui_source_window_base): Update.
3645 (tui_source_window_base::resize)
3646 (tui_source_window_base::make_visible)
3647 (tui_source_window_base::refresh_window): Remove.
3648 (tui_source_window_base::update_exec_info): Update.
3649 * tui/tui-source.c (tui_source_window::set_contents): Update.
3650 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3651
e699d331
TT
36522019-08-16 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3655 deprecated_query_hook.
3656
bb01dbfc
TT
36572019-08-16 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3660 (tui_update_source_windows_with_line): Update.
3661 * tui/tui-source.h (struct tui_source_window)
3662 <show_symtab_source>: Declare.
3663 (tui_show_symtab_source): Don't declare.
3664 * tui/tui-source.c (tui_show_symtab_source): Rename from
3665 tui_show_symtab_source.
3666
81c82c4b
TT
36672019-08-16 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-winsource.h (struct tui_source_window_base)
3670 <set_contents>: Declare.
3671 * tui/tui-winsource.c
3672 (tui_source_window_base::update_source_window_as_is): Update.
3673 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3674 Declare.
3675 (tui_set_source_content): Don't declare.
3676 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3677 tui_set_source_content.
3678 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3679 Declare.
3680 (tui_set_disassem_content): Don't declare.
3681 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3682 tui_set_disassem_content.
3683
2ddaf614
TT
36842019-08-16 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-winsource.h (struct tui_source_window_base)
3687 <update_breakpoint_info>: Declare.
3688 (tui_update_breakpoint_info): Don't declare.
3689 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3690 (tui_update_all_breakpoint_info): Update.
3691 (tui_source_window_base::update_breakpoint_info): Rename from
3692 tui_update_breakpoint_info.
3693 (tui_source_window_base::update_exec_info): Update.
3694
017f9828
TT
36952019-08-16 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-winsource.h (struct tui_source_window_base)
3698 <update_source_window>: Declare.
3699 (tui_update_source_window): Don't declare.
3700 * tui/tui-winsource.c
3701 (tui_source_window_base::update_source_window): Rename from
3702 tui_update_source_window.
3703 (tui_source_window_base::rerender): Update.
3704 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3705 * tui/tui-disasm.c (tui_show_disassem)
3706 (tui_show_disassem_and_update_source)
3707 (tui_disasm_window::maybe_update): Update.
3708
ed8358e9
TT
37092019-08-16 Tom Tromey <tom@tromey.com>
3710
3711 * tui/tui-winsource.h (struct tui_source_window_base)
3712 <update_source_window_as_is>: Declare.
3713 (tui_update_source_window_as_is): Don't declare.
3714 * tui/tui-winsource.c (tui_update_source_window): Update
3715 (tui_source_window_base::update_source_window_as_is): Rename from
3716 tui_update_source_window_as_is.
3717 (tui_source_window_base::refill): Update.
3718 * tui/tui-source.c (tui_show_symtab_source): Update.
3719 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3720 Update.
3721
20149b6b
TT
37222019-08-16 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui-winsource.h (tui_update_source_window)
3725 (tui_update_source_window_as_is): Remove "noerror" parameter.
3726 * tui/tui-winsource.c (tui_update_source_window)
3727 (tui_update_source_window_as_is): Remove "noerror" parameter.
3728 (tui_update_source_windows_with_addr)
3729 (tui_update_source_windows_with_line)
3730 (tui_source_window_base::rerender)
3731 (tui_source_window_base::refill): Update.
3732 * tui/tui-source.h (tui_set_source_content)
3733 (tui_show_symtab_source): Remove "noerror" parameter.
3734 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3735 parameter.
3736 (tui_show_symtab_source): Likewise.
3737 (tui_source_window::maybe_update): Update.
3738 * tui/tui-disasm.c (tui_show_disassem)
3739 (tui_show_disassem_and_update_source)
3740 (tui_disasm_window::do_scroll_vertical)
3741 (tui_disasm_window::maybe_update): Update.
3742
2d83e710
TT
37432019-08-16 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui.c (tui_is_window_visible): Update.
3746 * tui/tui-wingeneral.c (tui_make_window)
3747 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3748 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3749 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3750 (tui_set_win_height_command, parse_scrolling_args): Update.
3751 * tui/tui-source.c (tui_source_window::style_changed): Update.
3752 * tui/tui-regs.c (tui_show_registers)
3753 (tui_data_window::first_data_item_displayed)
3754 (tui_data_window::delete_data_content_windows)
3755 (tui_check_register_values, tui_reg_command): Update.
3756 * tui/tui-disasm.c (tui_show_disassem): Update.
3757 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3758 method.
3759 <is_visible>: Remove field.
3760 * tui/tui-data.c (tui_next_win, tui_prev_win)
3761 (tui_delete_invisible_windows): Update.
3762
d4ab829a
TT
37632019-08-16 Tom Tromey <tom@tromey.com>
3764
3765 * tui/tui-winsource.h (struct tui_source_window_base)
3766 <m_has_locator>: Remove.
3767 * tui/tui-layout.c (show_source_disasm_command, show_data)
3768 (show_source_or_disasm_and_command): Update.
3769
aa7ca1bb
AH
37702019-08-16 Alan Hayward <alan.hayward@arm.com>
3771
3772 * NEWS (Other MI changes): New subsection.
3773 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3774 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3775 * arch-utils.c (default_get_pc_address_flags): New function.
3776 * arch-utils.h (default_get_pc_address_flags): New declaration.
3777 * gdbarch.sh: Add get_pc_address_flags.
3778 * gdbarch.c: Regenerate.
3779 * gdbarch.h: Likewise.
3780 * stack.c (print_pc): New function.
3781 (print_frame_info) (print_frame): Call print_pc.
3782
6eac171f
TV
37832019-08-16 Tom de Vries <tdevries@suse.de>
3784
3785 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3786 print_objfile_section_info.
3787
3df505f6
TT
37882019-08-15 Tom Tromey <tom@tromey.com>
3789
3790 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3791 calling update_cmdwin_start_line.
3792 * tui/tui-winsource.h (struct tui_source_window_base)
3793 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3794 <rerender>: Declare.
3795 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3796 Call rerender.
3797 (tui_source_window_base::set_new_height): Remove.
3798 (tui_source_window_base::rerender): Rename from
3799 do_make_visible_with_new_height.
3800 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3801 resize method.
3802 (tui_win_info::make_invisible_and_set_new_height)
3803 (tui_win_info::make_visible_with_new_height): Remove.
3804 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3805 Declare.
3806 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3807 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3808 do_make_visible_with_new_height>: Don't declare.
3809 <rerender>: Declare.
3810 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3811 set_new_height.
3812 (tui_data_window::do_make_visible_with_new_height): Remove.
3813 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3814 call tui_show_locator_content.
3815 (tui_gen_win_info::resize): Call rerender.
3816 (show_source_or_disasm_and_command): Don't call
3817 tui_show_locator_content.
3818 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3819 method.
3820 (struct tui_win_info) <rerender>: Declare.
3821 <set_new_height, make_invisible_and_set_new_height,
3822 make_visible_with_new_height>: Don't declare.
3823 * tui/tui-data.c (tui_win_list::rerender): New method.
3824 * tui/tui-command.h (struct tui_cmd_window)
3825 <do_make_visible_with_new_height>: Don't declare.
3826 * tui/tui-command.c
3827 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3828
272560b5
TT
38292019-08-15 Tom Tromey <tromey@adacore.com>
3830
3831 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3832 * ada-lang.c (ada_enum_name): Likewise.
3833
08235187
CB
38342019-08-15 Christian Biesinger <cbiesinger@google.com>
3835
3836 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3837 leading underscore.
3838 (GdbOutputErrorFile): Likewise.
3839 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3840 accordingly.
3841 (execute_unwinders): Rename to have a leading underscore.
3842 (auto_load_packages): Likewise.
3843 (global scope): Adjust call to auto_load_packages accordingly.
3844 (GdbSetPythonDirectory): Likewise.
3845 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3846 instead of execute_unwinders.
3847
db502012
TT
38482019-08-15 Tom Tromey <tom@tromey.com>
3849
3850 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3851 (show_data): Don't change window visibility.
3852 (tui_gen_win_info::resize): Remove special case for command
3853 window. Use wresize, when available.
3854 (show_source_or_disasm_and_command): Don't change window
3855 visibility.
3856 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3857 <make_visible>: New method.
3858 * tui/tui-command.c (tui_cmd_window::resize): New method.
3859
3891b65e
TT
38602019-08-15 Tom Tromey <tom@tromey.com>
3861
3862 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3863 (struct tui_source_windows): New.
3864 * tui/tui-winsource.c (tui_display_main): Update.
3865 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3866 (new_height_ok, parse_scrolling_args): Update.
3867 * tui/tui-layout.c (show_layout, show_data): Update.
3868 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3869 (tui_add_to_source_windows): Don't declare.
3870 * tui/tui-data.c (source_windows, tui_source_windows)
3871 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3872
ee556432
TT
38732019-08-15 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3876 Rename from reset.
3877 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3878 * tui/tui-layout.c (show_source_disasm_command, show_data):
3879 Update.
3880 (tui_gen_win_info::resize): Rename.
3881 (show_source_or_disasm_and_command): Update.
3882 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3883 reset.
3884
46f438e3
TT
38852019-08-15 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3888 * tui/tui-interp.c (tui_interp::init): Don't call
3889 tui_initialize_static_data.
3890 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3891
f4ce562c
TT
38922019-08-15 Tom Tromey <tom@tromey.com>
3893
3894 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3895 examine tui_win_list.
3896
c398c3d0
TT
38972019-08-15 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3900 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3901 tui_clear_source_content.
3902 (tui_clear_source_content): Remove.
3903 (tui_source_window_base::do_erase_source_content): Hoist call to
3904 content.clear().
3905 * tui/tui-stack.c (tui_show_frame_info): Don't call
3906 tui_clear_source_content.
3907
e25d2004
TT
39082019-08-15 Tom Tromey <tom@tromey.com>
3909
3910 * tui/tui-winsource.h (struct tui_source_window_base)
3911 <do_erase_source_content>: New method.
3912 <erase_source_content>: New method.
3913 (tui_erase_source_content): Don't declare.
3914 * tui/tui-winsource.c (tui_clear_source_content): Update.
3915 (tui_source_window_base::do_erase_source_content): Rename from
3916 tui_erase_source_content.
3917 (tui_source_window_base::show_source_content): Update.
3918 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3919 * tui/tui-source.h (struct tui_source_window)
3920 <erase_source_content>: New method.
3921 * tui/tui-disasm.h (struct tui_disasm_window)
3922 <erase_source_content>: New method.
3923
002f15c2
TT
39242019-08-15 Tom Tromey <tom@tromey.com>
3925
3926 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3927 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3928 constructor.
3929 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3930 * tui/tui-source.c (tui_set_source_content): Update.
3931 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3932
c9033fe8
TT
39332019-08-15 Tom Tromey <tom@tromey.com>
3934
3935 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3936 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3937 tui-source.c.
3938 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3939 Declare.
3940 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3941 method.
3942 (tui_source_window::maybe_update): Update.
3943
088f37dd
TT
39442019-08-15 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3947 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3948 tui-disasm.c.
3949 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3950 Declare.
3951 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3952 method.
3953 (tui_disasm_window::maybe_update): Update.
3954
a54700c6
TT
39552019-08-15 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-winsource.h (struct tui_source_window_base)
3958 <maybe_update>: Declare.
3959 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3960 method.
3961 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3962 Declare.
3963 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3964 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3965 Declare.
3966 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3967
e2a678a5
TT
39682019-08-15 Tom Tromey <tom@tromey.com>
3969
3970 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3971
f2dda477
TT
39722019-08-15 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-wingeneral.c: Include tui-stack.h.
3975 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3976 (struct tui_locator_window): Move from tui-data.h.
3977 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3978 (tui_initialize_static_data): Move from tui-data.c.
3979 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3980 (struct tui_locator_window): Move to tui-stack.c.
3981 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3982 (tui_initialize_static_data): Move to tui-stack.c.
3983
ed4a1084
TT
39842019-08-15 Tom Tromey <tom@tromey.com>
3985
3986 * tui/tui-layout.c (show_source_disasm_command)
3987 (show_source_or_disasm_and_command): Use make_visible method, not
3988 tui_make_window.
3989 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3990 Remove.
3991
65962b20
TT
39922019-08-15 Tom Tromey <tom@tromey.com>
3993
3994 * tui/tui-wingeneral.h (tui_make_window): Update.
3995 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3996 parameter.
3997 (tui_gen_win_info::make_visible): Update.
3998 * tui/tui-regs.c (tui_data_window::display_registers_from):
3999 Update.
4000 * tui/tui-layout.c (show_source_disasm_command)
4001 (show_source_or_disasm_and_command): Update.
4002 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4003 (enum tui_box): Remove.
4004 (struct tui_win_info) <can_box>: New method.
4005 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4006 method.
4007
2208ee91
TV
40082019-08-15 Tom de Vries <tdevries@suse.de>
4009
4010 * linux-nat-trad.c: Include gdbarch.h.
4011
75faf5c4
AH
40122019-08-14 Alan Hayward <alan.hayward@arm.com>
4013
4014 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4015 register sizes.
4016
b1c896b3
TT
40172019-08-14 Tom Tromey <tromey@adacore.com>
4018
4019 * darwin-nat.c: Include gdbarch.h.
4020 * darwin-nat-info.c: Include gdbarch.h.
4021
6405cd73
TT
40222019-08-13 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4025 Remove.
4026 * tui/tui-data.c (tui_initialize_static_data): Update.
4027
5216580d
TT
40282019-08-13 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-winsource.h (struct tui_exec_info_window)
4031 <~tui_exec_info_window, maybe_allocate_content, get_content,
4032 m_content>: Remove.
4033 (struct tui_source_window_base) <set_exec_info_content,
4034 show_exec_info_content>: Don't declare.
4035 * tui/tui-winsource.c
4036 (tui_exec_info_window::maybe_allocate_content): Remove.
4037 (tui_source_window_base::update_exec_info): Rename from
4038 set_exec_info_content.
4039 (tui_source_window_base::show_exec_info_content)
4040 (tui_source_window_base::update_exec_info): Remove.
4041
93858ad3
TT
40422019-08-13 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4045 declare.
4046 * tui/tui-winsource.c (tui_update_source_window_as_is)
4047 (tui_update_source_windows_with_addr, tui_erase_source_content):
4048 Update.
4049 (tui_clear_exec_info_content): Remove.
4050
e321e7ce
TT
40512019-08-13 Tom Tromey <tom@tromey.com>
4052
4053 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4054 declare.
4055 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4056 call tui_erase_exec_info_content.
4057 (tui_clear_exec_info_content): Rename from
4058 tui_erase_exec_info_content.
4059 (tui_clear_exec_info_content): Delete.
4060
8270ac62
TT
40612019-08-13 Tom Tromey <tom@tromey.com>
4062
4063 * tui/tui-winsource.h (struct tui_source_window_base)
4064 <show_exec_info_content>: Declare.
4065 (tui_show_exec_info_content): Don't declare.
4066 * tui/tui-winsource.c
4067 (tui_source_window_base::show_exec_info_content): Rename from
4068 tui_show_exec_info_content.
4069 (tui_source_window_base::update_exec_info): Update.
4070
7b56485d
TT
40712019-08-13 Tom Tromey <tom@tromey.com>
4072
4073 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4074 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4075 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4076 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4077 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4078 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4079 ... here.
4080
7ba913dc
TT
40812019-08-13 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-winsource.h (struct tui_source_window_base)
4084 <update_exec_info>: Declare.
4085 (tui_update_exec_info): Don't declare.
4086 * tui/tui-winsource.c (tui_update_source_window_as_is)
4087 (tui_source_window_base::refresh_all)
4088 (tui_update_all_breakpoint_info): Update.
4089 (tui_source_window_base::update_exec_info): Rename from
4090 tui_update_exec_info.
4091 * tui/tui-stack.c (tui_show_frame_info): Update.
4092
37a4a131
TT
40932019-08-13 Tom Tromey <tom@tromey.com>
4094
4095 * tui/tui-winsource.h (struct tui_source_window_base)
4096 <set_exec_info_content>: Declare.
4097 (tui_set_exec_info_content): Don't declare.
4098 * tui/tui-winsource.c
4099 (tui_source_window_base::set_exec_info_content): Rename from
4100 tui_set_exec_info_content.
4101 (tui_update_exec_info): Update.
4102
0bd27e07
TT
41032019-08-13 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-winsource.h (struct tui_source_window_base)
4106 <show_source_content>: Declare.
4107 (tui_show_source_content): Don't declare.
4108 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4109 (tui_source_window_base::show_source_content): Rename from
4110 tui_show_source_content.
4111 (tui_source_window_base::refresh_all): Update.
4112 * tui/tui-layout.c (show_source_disasm_command)
4113 (show_source_or_disasm_and_command): Update.
4114
b4ef5aeb
TT
41152019-08-13 Tom Tromey <tom@tromey.com>
4116
4117 * tui/tui-winsource.c (tui_erase_source_content)
4118 (tui_show_source_content, tui_source_window_base::refresh_all):
4119 Update.
4120 * tui/tui-wingeneral.h
4121 (tui_check_and_display_highlight_if_needed): Don't declare.
4122 * tui/tui-wingeneral.c
4123 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4124 check_and_display_highlight_if_needed.
4125 * tui/tui-win.c (tui_rehighlight_all)
4126 (tui_win_info::make_visible_with_new_height): Update.
4127 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4128 (tui_data_window::erase_data_content)
4129 (tui_data_window::display_all_data): Update.
4130 * tui/tui-data.h (struct tui_win_info)
4131 <check_and_display_highlight_if_needed>: Declare.
4132
fede5273
TT
41332019-08-13 Tom Tromey <tom@tromey.com>
4134
4135 * tui/tui-win.c (tui_resize_all): Call
4136 tui_delete_invisible_windows.
4137 * tui/tui-layout.c (show_layout): Call
4138 tui_delete_invisible_windows.
4139 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4140 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4141
22c3f490
TT
41422019-08-13 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4145 tui_add_win_to_layout.
4146
16cb7910
TT
41472019-08-13 Tom Tromey <tom@tromey.com>
4148
4149 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4150 * tui/tui-layout.c (tui_default_win_height): Now static.
4151
cc0c3ffb
TT
41522019-08-13 Tom Tromey <tom@tromey.com>
4153
4154 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4155 single switch.
4156 (show_source_disasm_command, show_source_or_disasm_and_command):
4157 Don't check current layout.
4158
3f3ffe54
TT
41592019-08-13 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-wingeneral.c (make_all_visible): Remove.
4162 (tui_make_all_invisible): Simplify.
4163 * tui/tui-layout.c (tui_make_all_invisible): Move from
4164 tui-wingeneral.c; simplify.
4165 (show_layout): Hoist call to tui_make_all_invisible.
4166 (show_data): Don't call tui_make_all_invisible.
4167
69258091
TT
41682019-08-13 Tom Tromey <tom@tromey.com>
4169
4170 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4171 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4172
62cf57fe
TT
41732019-08-13 Tom Tromey <tom@tromey.com>
4174
4175 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4176 tui-data.c.
4177 (show_source_disasm_command, show_data)
4178 (show_source_or_disasm_and_command): Don't use
4179 tui_set_current_layout_to.
4180 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4181 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4182 tui-layout.c.
4183 (tui_set_current_layout_to): Remove.
4184
2afade5d
TT
41852019-08-13 Tom Tromey <tom@tromey.com>
4186
4187 * tui/tui-layout.c (tui_set_layout): Update.
4188 * tui/tui-data.h (struct tui_layout_def): Remove.
4189 (tui_layout_def): Don't declare.
4190 * tui/tui-data.c (layout_def): Remove.
4191 (tui_layout_def): Remove.
4192
a3504e96
TT
41932019-08-13 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui-winsource.h (struct tui_source_window_base)
4196 <clear_detail>: No longer "override".
4197 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4198 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4199 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4200 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4201 Remove.
4202 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4203
29c92911
TT
42042019-08-13 Tom Tromey <tromey@adacore.com>
4205
4206 * tracepoint.c: Don't include readline.h or history.h.
4207
86c6b807
TT
42082019-08-12 Tom Tromey <tom@tromey.com>
4209
4210 * configure: Rebuild.
4211 * configure.ac: Check for readline 7.
4212 * NEWS: Mention readline 7 requirement.
4213 * README: Update.
4214
5db2718c
TT
42152019-08-12 Tom Tromey <tom@tromey.com>
4216
4217 * mingw-hdep.c (gdb_select): Remove readline hack.
4218
dac36daf
PFC
42192019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4220
4221 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4222 when the function fails.
4223
1022c627
AA
42242019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4225
4226 * s390-tdep.c (s390_type_align): New function.
4227 (s390_gdbarch_init): Set it as type_align gdbarch method.
4228
eba4caf2
TV
42292019-08-09 Tom de Vries <tdevries@suse.de>
4230
4231 PR gdb/24591
4232 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4233 pc_low with relocation offset.
4234
123cd851
TT
42352019-08-07 Tom Tromey <tromey@adacore.com>
4236
4237 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4238 (print_frame_args): Update.
4239 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4240 Update.
4241 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4242 * frame.h (struct frame_arg): Add initializers.
4243 <error>: Now a unique_xmalloc_ptr.
4244
3d31bc39
AH
42452019-08-07 Alan Hayward <alan.hayward@arm.com>
4246
4247 * NEWS: Expand the Pointer Authentication entry.
4248 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4249 (aarch64_frame_unmask_lr): ... to this.
4250 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4251 Call aarch64_frame_unmask_lr.
4252 * frame.c (struct frame_info): Add "masked" variable.
4253 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4254 (fprint_frame): Check for masked pc.
4255 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4256 declarations.
4257 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4258 * stack.c (print_frame): Check for masked pc.
4259
0cf9feb9
TT
42602019-08-06 Tom Tromey <tom@tromey.com>
4261
4262 * stabsread.c (patch_block_stabs, read_one_struct_field)
4263 (read_enum_type): Use obstack_strndup.
4264 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4265 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4266 * dwarf2read.c (guess_full_die_structure_name)
4267 (anonymous_struct_prefix): Use obstack_strndup.
4268 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4269 * c-exp.y (yylex): Use obstack_strndup.
4270 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4271 (write_var_or_type): Use obstack_strndup.
4272
efba19b0
TT
42732019-08-06 Tom Tromey <tom@tromey.com>
4274
4275 * symfile.c (reread_symbols): Use obstack_strdup.
4276 * stabsread.c (read_type): Use obstack_strdup.
4277 * gdb_obstack.h (obstack_strdup): New overload.
4278 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4279 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4280 (dwarf2_canonicalize_name): Use obstack_strdup.
4281 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4282 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4283 Use obstack_strdup.
4284
f25102f7
TT
42852019-08-06 Tom Tromey <tom@tromey.com>
4286
4287 * gdb_obstack.h (obstack_strdup): Define.
4288 * gdb_obstack.c (obstack_strdup): Don't define.
4289
021887d8
TT
42902019-08-06 Tom Tromey <tom@tromey.com>
4291
4292 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4293 obstack_strdup.
4294 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4295 obstack_strdup.
4296 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4297 * stabsread.c (common_block_start): Use obstack_strdup.
4298 * objfiles.c (set_objfile_main_name, objfile): Use
4299 obstack_strdup.
4300 * namespace.c (add_using_directive): Use obstack_strdup.
4301 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4302 * jit.c (finalize_symtab): Use obstack_strdup.
4303 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4304 (guess_partial_die_structure_name, partial_die_info::fixup)
4305 (dwarf2_name): Use obstack_strdup.
4306 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4307 obstack_strdup.
4308 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4309 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4310 obstack_strdup.
4311 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4312
d2834edc
PW
43132019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4314
4315 * unittests/help-doc-selftests.c: New file.
4316 * Makefile.in: Add the new file.
4317
590042fc
PW
43182019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4319
4320 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4321 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4322 the full first line, except when FOR_VALUE_PREFIX. In this case,
4323 the trailing '.' is not output, and the first character is uppercased.
4324 (print_help_for_command): Update call to print_doc_line.
4325 (print_doc_of_command): Likewise.
4326 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4327 * cli/cli-option.c (append_indented_doc): Do not append newline.
4328 (build_help_option): Append newline after first appended_indented_doc
4329 only if a second call is done.
4330 (build_help): Append 2 new lines before each option, except the first
4331 one.
4332 * compile/compile.c (_initialize_compile): Add new lines after
4333 %OPTIONS%, when not at the end of the help.
4334 Change help doc or code
4335 producing the help doc to respect the invariants.
4336 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4337 Also removed the new line after 'Options:', as all other commands
4338 do not put an empty line between 'Options:' and the first option.
4339 * printcmd.c (_initialize_printcmd): Likewise.
4340 * stack.c (_initialize_stack): Likewise.
4341 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4342 incorrectly telling COMMAND is optional.
4343 * ada-lang.c (_initialize_ada_language): Change help doc or code
4344 producing the help doc to respect the invariants.
4345 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4346 * breakpoint.c (_initialize_breakpoint): Likewise.
4347 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4348 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4349 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4350 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4351 _initialize_cli_style): Likewise.
4352 * corelow.c (core_target_info): Likewise.
4353 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4354 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4355 * filesystem.c (_initialize_filesystem): Likewise.
4356 * frame.c (_initialize_frame): Likewise.
4357 * gnu-nat.c (add_task_commands): Likewise.
4358 * infcall.c (_initialize_infcall): Likewise.
4359 * infcmd.c (_initialize_infcmd): Likewise.
4360 * interps.c (_initialize_interpreter): Likewise.
4361 * language.c (_initialize_language): Likewise.
4362 * linux-fork.c (_initialize_linux_fork): Likewise.
4363 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4364 * maint.c (_initialize_maint_cmds): Likewise.
4365 * memattr.c (_initialize_mem): Likewise.
4366 * printcmd.c (_initialize_printcmd): Likewise.
4367 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4368 _RegEx): Likewise.
4369 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4370 * record-btrace.c (_initialize_record_btrace): Likewise.
4371 * record-full.c (_initialize_record_full): Likewise.
4372 * record.c (_initialize_record): Likewise.
4373 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4374 * regcache.c (_initialize_regcache): Likewise.
4375 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4376 _initialize_remote): Likewise.
4377 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4378 * serial.c (_initialize_serial): Likewise.
4379 * skip.c (_initialize_step_skip): Likewise.
4380 * source.c (_initialize_source): Likewise.
4381 * stack.c (_initialize_stack): Likewise.
4382 * symfile.c (_initialize_symfile): Likewise.
4383 * symtab.c (_initialize_symtab): Likewise.
4384 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4385 * top.c (init_main): Likewise.
4386 * tracefile-tfile.c (tfile_target_info): Likewise.
4387 * tracepoint.c (_initialize_tracepoint): Likewise.
4388 * tui/tui-win.c (_initialize_tui_win): Likewise.
4389 * utils.c (add_internal_problem_command): Likewise.
4390 * valprint.c (value_print_option_defs): Likewise.
4391
404f2902
FCE
43922019-08-06 Frank Ch. Eigler <fche@redhat.com>
4393
4394 PR build/24886
4395 * configure.ac: Drop enable-libmcheck support.
4396 * configure, config.in: Rebuild.
4397 * libmcheck.m4: Remove.
4398 * acinclude.m4: Don't include it.
4399 * Makefile.in: Don't distribute it.
4400 * top.c (print_gdb_configuration): Don't mention it.
4401
046bebe1
TT
44022019-08-06 Tom Tromey <tom@tromey.com>
4403
4404 * utils.c (set_output_style): Sometimes pass stream to
4405 emit_style_escape.
4406 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4407 * record-btrace.c (btrace_insn_history): Update.
4408 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4409 method.
4410 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4411 Update initializers.
4412 <m_uiout>: New field.
4413 <m_di>: Move lower.
4414 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4415 Remove "uiout" parameter.
4416 (dump_insns): Update.
4417 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4418 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4419
ddbcedf5
CB
44202019-08-06 Christian Biesinger <cbiesinger@google.com>
4421
4422 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4423 (error_in_psymtab_expansion): Likewise.
4424 (lookup_symbol_via_quick_fns): Likewise.
4425 (basic_lookup_transparent_type_quick): Likewise.
4426 (basic_lookup_transparent_type_1): Likewise.
4427
b08b16c8
TT
44282019-08-06 Tom Tromey <tromey@adacore.com>
4429
4430 * source.c (last_source_error): Now bool.
4431 (print_source_lines_base): Make "noprint" bool. Only open
4432 source file when last_source_visited changes.
4433
cb44333d
TT
44342019-08-06 Tom Tromey <tromey@adacore.com>
4435
4436 * annotate.c (annotate_source_line): Use g_source_cache.
4437 * source-cache.c (source_cache::get_plain_source_lines): Change
4438 parameters. Populate m_offset_cache.
4439 (source_cache::ensure): New method.
4440 (source_cache::get_line_charpos): New method.
4441 (extract_lines): Move lower. Change parameters.
4442 (source_cache::get_source_lines): Move lower.
4443 * source-cache.h (class source_cache): Update comment.
4444 <get_line_charpos>: New method.
4445 <get_source_lines>: Update comment.
4446 <clear>: Clear m_offset_cache.
4447 <get_plain_source_lines>: Change parameters.
4448 <ensure>: New method
4449 <m_offset_cache>: New member.
4450 * source.c (forget_cached_source_info_for_objfile): Update.
4451 (info_source_command): Use g_source_cache.
4452 (find_source_lines, open_source_file_with_line_charpos): Remove.
4453 (print_source_lines_base, search_command_helper): Use g_source_cache.
4454 * source.h (open_source_file_with_line_charpos): Don't declare.
4455 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4456 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4457 Use g_source_cache.
4458
872dceaa
TT
44592019-08-06 Tom Tromey <tromey@adacore.com>
4460
4461 * source-cache.c (source_cache::get_plain_source_lines):
4462 Remove "first_line" and "last_line" parameters.
4463 (source_cache::get_source_lines): Cache plain text.
4464 * source-cache.h (class source_cache)
4465 <get_plain_source_lines>: Update.
4466
269249d9
TT
44672019-08-06 Tom Tromey <tromey@adacore.com>
4468
4469 * source-cache.c (extract_lines): No longer a method.
4470 Changed type of parameter. Include final newline.
4471 (selftests::extract_lines_test): New function.
4472 (_initialize_source_cache): Likewise.
4473 * source-cache.h (class source_cache)
4474 <extract_lines>: Don't declare.
4475
c0e8dcd8
TT
44762019-08-06 Tom Tromey <tromey@adacore.com>
4477
4478 * breakpoint.c (init_breakpoint_sal): Update.
4479 (breakpoint): Update.
4480 * breakpoint.h (struct breakpoint) <filter>: Now a
4481 unique_xmalloc_ptr.
4482
0b27c27d
CB
44832019-08-05 Christian Biesinger <cbiesinger@google.com>
4484
4485 * NEWS: Mention dictionary access on blocks.
4486 * python/py-block.c (blpy_getitem): New function.
4487 (block_object_as_mapping): New struct.
4488 (block_object_type): Use new struct for tp_as_mapping field.
4489
4ee94178
CB
44902019-08-05 Christian Biesinger <cbiesinger@google.com>
4491
4492 * objfiles.h (objfile): Add a comment describing partial symbols.
4493
8abfcabc
TT
44942019-08-05 Tom Tromey <tromey@adacore.com>
4495
4496 * compile/compile.c (_initialize_compile): Use _(), not N_().
4497 * thread.c (_initialize_thread): Use _(), not N_().
4498 * stack.c (_initialize_stack): Use _(), not N_().
4499 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4500
2b79f376
SM
45012019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4502
4503 * dwarf2read.c (struct dw2_symtab_iterator):
4504 <want_specific_block>: Remove.
4505 <block_index>: Change type to gdb::optional.
4506 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4507 change type of BLOCK_INDEX parameter to gdb::optional.
4508 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4509 (dw2_lookup_symbol): Don't pass argument for
4510 WANT_SPECIFIC_BLOCK.
4511 (dw2_expand_symtabs_for_function): Don't pass argument for
4512 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4513 (class dw2_debug_names_iterator)
4514 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4515 parameter, change BLOCK_INDEX type to gdb::optional.
4516 <m_want_specific_block>: Remove.
4517 <m_block_index>: Change type to gdb::optional.
4518 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4519 gdb::optional. Re-write in function of gdb::optional.
4520 (dw2_debug_names_lookup_symbol): Don't pass argument for
4521 WANT_SPECIFIC_BLOCK.
4522 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4523 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4524 BLOCK_INDEX.
4525
ae60f04e
PW
45262019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4527
4528 * NEWS: Mention changes to "info sources" command.
4529
28cd9371
PW
45302019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4531
4532 * symtab.c (filename_partial_match_opts): New struct type.
4533 (struct output_source_filename_data): New members
4534 regexp, c_regexp, partial_match.
4535 (output_source_filename): Use new members to decide to print file.
4536 (info_sources_option_defs): New variable.
4537 (make_info_sources_options_def_group, print_info_sources_header,
4538 info_sources_command_completer):
4539 New functions.
4540 (info_sources_command): Read new optional arguments.
4541 (_initialize_symtab): Update info sources help.
4542
ca683e3a
AO
45432019-08-02 Alexandre Oliva <oliva@adacore.com>
4544
4545 * ada-lang.c (exception_support_info_v0): Renamed from...
4546 (default_exception_support_info): ... this. Create new
4547 definition for v1.
4548 (ada_has_this_exception_support): Look up catch_handlers_sym.
4549 (ada_exception_support_info_sniffer): Try v0 after default.
4550
f1264162
TT
45512019-08-01 Tom Tromey <tromey@adacore.com>
4552
4553 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4554 gdbarch.h.
4555
0a7b2485
CB
45562019-08-01 Christian Biesinger <cbiesinger@google.com>
4557
4558 * s12z-tdep.c: Fix include path for s12z-opc.h.
4559
c6bdbeb7
AH
45602019-08-01 Alan Hayward <alan.hayward@arm.com>
4561
4562 * NEWS: Require GNU make 3.82.
4563
a2bd7b82
TT
45642019-07-16 Tom Tromey <tom@tromey.com>
4565
4566 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4567 declare.
4568
aa3b6533
TT
45692019-07-30 Tom Tromey <tromey@adacore.com>
4570
4571 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4572
a1530dc7
KB
45732019-07-30 Kevin Buettner <kevinb@redhat.com>
4574
4575 * printcmd.c (print_address_symbolic): Print negative offsets.
4576 (build_address_symbolic): Force signed arithmetic when computing
4577 offset.
4578
2906593f
CB
45792019-07-30 Christian Biesinger <cbiesinger@google.com>
4580
4581 PR/24474: Add a function to lookup static variables.
4582 * NEWS: Mention this new function.
4583 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4584 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4585 * python/python.c (python_GdbMethods): Add new function.
4586
c620ed88
CB
45872019-07-29 Christian Biesinger <cbiesinger@google.com>
4588
4589 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4590 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4591 (objfpy_lookup_static_symbol): New function.
4592 (objfile_object_methods): Add new functions.
4593
bc4268a5
PW
45942019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4595
4596 * NEWS: Mention 'set|show print frame-info'. Mention new
4597 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4598 backtrace argument. Mention that python frame filtering code
4599 is now consistent with what 'backtrace' command prints.
4600
4b5e8d19
PW
46012019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4602
4603 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4604 comments.
4605 (print_frame_info_auto, print_frame_info_source_line,
4606 print_frame_info_location, print_frame_info_source_and_location,
4607 print_frame_info_location_and_address, print_frame_info_short_location):
4608 New declarations.
4609 (struct frame_print_options): New member print_frame_info.
4610 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4611 * stack.h (get_user_print_what_frame_info): New declaration.
4612 (frame_show_address): New declaration.
4613 * stack.c (print_frame_arguments_choices): New value 'presence'.
4614 (print_frame_info_auto, print_frame_info_source_line,
4615 print_frame_info_location, print_frame_info_source_and_location,
4616 print_frame_info_location_and_address, print_frame_info_short_location,
4617 print_frame_info_choices, print_frame_info_print_what): New definitions.
4618 (print_frame_args): Only print dots for args if print frame-arguments
4619 is 'presence'.
4620 (frame_print_option_defs): New element for "frame-info".
4621 (get_user_print_what_frame_info): New function.
4622 (frame_show_address): Make non static. Move comment to stack.h.
4623 (print_frame_info_to_print_what): New function.
4624 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4625 to decide what to print.
4626 (backtrace_command_1): Handle the new print_frame_arguments_presence
4627 value.
4628 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4629 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4630 (py_print_frame): In non-mi mode, use LOCATION as default for
4631 print_what, similarly to frame information printed directly by
4632 backtrace command. Handle frame-info user option in non MI mode.
4633
6bdfee81
KB
46342019-07-27 Kevin Buettner <kevinb@redhat.com>
4635
4636 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4637 Add case for debugging 32-bit target on 64-bit host. Revise
4638 comment.
4639
98a617f8
KB
46402019-07-27 Kevin Buettner <kevinb@redhat.com>
4641
4642 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4643 instead of find_function_entry_range_from_pc.
4644
567238c9
KB
46452019-07-27 Kevin Buettner <kevinb@redhat.com>
4646
4647 * stack.c (find_frame_funname): Remove code which preferred
4648 minsym over symtab sym in "certain pathological cases".
4649
2dc80cf8
KB
4650 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4651 parameter. Change type of "do_demangle" to bool.
4652 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4653 Pass suitable "prefer_sym_over_minsym" flag to
4654 build_address_symbolic(). Don't output "+" for negative offsets.
4655 * printcmd.c (print_address_symbolic): Update invocation of
4656 build_address_symbolic to include a "prefer_sym_over_minsym"
4657 flag.
4658 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4659 Restrict cases in which use of minimal symbol is preferred to that
4660 of a found symbol. Update comments.
4661
1aff7173
KB
4662 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4663 for entry pc when entry pc is out of range for that FDE.
4664
89b085ac
BC
46652019-07-26 Brian Callahan <bcallah@openbsd.org>
4666
4667 PR gdb/24839:
4668 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4669 type.
4670
f32feb4a
CB
46712019-07-25 Christian Biesinger <cbiesinger@google.com>
4672
4673 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4674 this function's Python signature.
4675
4676
46772019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4678
4679 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4680 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4681 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4682 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4683 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4684
4685
c54e4253
YS
46862019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4687
4688 * h8300-tdep.c (h8300_register_name_common): New.
4689 h8300_register_name): Use h8300_register_name_common.
4690 (h8300s_register_name): Likewise.
4691 (h8300sx_register_name): Likewise.
4692 (h8300h_register_nam): New.
4693 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4694
4695
40eadf04
SP
46962019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4697
4698 * arm-tdep.c (arm_skip_cmse_entry): New function.
4699 (arm_is_sgstubs_section): New function.
4700 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4701
bfa2a36d
TT
47022019-07-22 Tom Tromey <tom@tromey.com>
4703
4704 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4705 Don't self-assign.
4706
a8e9d247
AB
47072019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4708
4709 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4710 type_print.
4711
eb86c5e2
AB
47122019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4713
4714 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4715 so that GDB doesn't match any msymbols when searching in the
4716 TYPES_DOMAIN.
4717 (print_symbol_info): Print using typedef_print or type_print based
4718 on the type of the symbol. Add updated FIXME comment moved from...
4719 (_initialize_symtab): ... move and update FIXME comment to above.
4720
a8eab7c6
AB
47212019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4722
4723 * NEWS: Mention adding -q option to "info types".
4724 * symtab.c (struct info_types_options): New struct.
4725 (info_types_options_defs): New variable.
4726 (make_info_types_options_def_group): New function.
4727 (info_types_command): Use gdb::option framework to parse options.
4728 (info_types_command_completer): New function.
4729 (_initialize_symtab): Extend the help text on "info types" and
4730 register command completer.
4731
b4603c34
CB
47322019-07-21 Christian Biesinger <cbiesinger@google.com>
4733
4734 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4735 (lookup_symbol_in_objfile): Change int to block_enum and add a
4736 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4737
c8cdc1e0
CB
47382019-07-20 Christian Biesinger <cbiesinger@google.com>
4739
4740 * MAINTAINERS (Write After Approval): Add self.
4741
01e175fe
AB
47422019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4743
4744 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4745 instruction to the dummy code region.
4746
56f79b63
TT
47472019-07-19 Tom Tromey <tromey@adacore.com>
4748
4749 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4750 (ARGSUSED, PARAMS, __func__): Remove rules.
4751
4c5aa8e0
AH
47522019-07-19 Alan Hayward <alan.hayward@arm.com>
4753
4754 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4755 * features/arm/arm-with-iwmmxt.c: Remove.
4756 * features/arm/arm-with-iwmmxt.xml: Remove.
4757 * features/arm/arm-with-m-fpa-layout.c: Remove.
4758 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4759 * features/arm/arm-with-m-vfp-d16.c: Remove.
4760 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4761 * features/arm/arm-with-m.c: Remove.
4762 * features/arm/arm-with-m.xml: Remove.
4763 * features/arm/arm-with-neon.c: Remove.
4764 * features/arm/arm-with-neon.xml: Remove.
4765 * features/arm/arm-with-vfpv2.c: Remove.
4766 * features/arm/arm-with-vfpv2.xml: Remove.
4767 * features/arm/arm-with-vfpv3.c: Remove.
4768 * features/arm/arm-with-vfpv3.xml: Remove.
4769
f42b2617
AH
47702019-07-19 Alan Hayward <alan.hayward@arm.com>
4771
4772 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4773
f29ec966
AH
47742019-07-19 Alan Hayward <alan.hayward@arm.com>
4775
4776 * arch/aarch32.c (aarch32_create_target_description): Create
4777 target descriptions using features.
4778 * arch/arm.c (arm_create_target_description)
4779 (arm_create_mprofile_target_description): Likewise.
4780 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4781
d105cce5
AH
47822019-07-19 Alan Hayward <alan.hayward@arm.com>
4783
4784 * Makefile.in: Add new files.
4785 * aarch32-tdep.c: New file.
4786 * aarch32-tdep.h: New file.
4787 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4788 Call aarch32_read_description.
4789 * arch/aarch32.c: New file.
4790 * arch/aarch32.h: New file.
4791 * arch/arm.c (arm_create_target_description)
4792 (arm_create_mprofile_target_description): New function.
4793 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4794 (arm_create_target_description)
4795 (arm_create_mprofile_target_description): New declaration.
4796 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4797 read_description functions.
4798 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4799 Likewise.
4800 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4801 * arm-tdep.c (tdesc_arm_list): New variable.
4802 (arm_register_g_packet_guesses): Call create description functions.
4803 (arm_read_description) (arm_read_mprofile_description): New
4804 function.
4805 * arm-tdep.h (arm_read_description)
4806 (arm_read_mprofile_description): Add declaration.
4807 * configure.tgt: Add new files.
4808
afe09f0b
GL
48092019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4810
4811 * top.c (new_ui_command): Open specified terminal just once.
4812
cd215b2e
TT
48132019-07-18 Tom Tromey <tromey@adacore.com>
4814
4815 * symtab.c (main_name): Constify return type.
4816 * symfile.c (set_initial_language): Update.
4817 * symtab.h (main_name): Constify return type.
4818
d8f68fcb
TT
48192019-07-17 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-winsource.c (tui_update_source_window)
4822 (tui_update_source_window_as_is)
4823 (tui_update_source_windows_with_line): Remove return.
4824 * tui/tui-disasm.c (tui_show_disassem)
4825 (tui_show_disassem_and_update_source): Remove return.
4826 * tui/tui.c (tui_reset): Remove return.
4827 * tui/tui-wingeneral.c
4828 (tui_check_and_display_highlight_if_needed): Remove return.
4829
ca5af91e
TT
48302019-07-17 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4833
5104fe36
TT
48342019-07-17 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-winsource.h (struct tui_exec_info_window)
4837 (struct tui_source_window_base): Move from tui-data.h.
4838 * tui/tui-winsource.c: Move many method definitions from
4839 elsewhere. Remove "structuring" comments.
4840 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4841 (tui_source_window_base::refresh_window): Move to
4842 tui-winsource.c.
4843 * tui/tui-win.c (tui_source_window_base::refresh_all)
4844 (tui_source_window_base::update_tab_width)
4845 (tui_source_window_base::set_new_height)
4846 (tui_source_window_base::do_make_visible_with_new_height): Move to
4847 tui-winsource.c.
4848 * tui/tui-source.h: Update.
4849 * tui/tui-source.c (tui_source_window_base::reset): Move to
4850 tui-winsource.c.
4851 * tui/tui-disasm.h: Update.
4852 * tui/tui-data.h (struct tui_exec_info_window): Move to
4853 tui-winsource.h.
4854 (struct tui_source_window_base): Likewise.
4855 * tui/tui-data.c (tui_source_window_base::clear_detail)
4856 (tui_source_window_base, ~tui_source_window_base): Move to
4857 tui-winsource.c.
4858
daa15dde
TT
48592019-07-17 Tom Tromey <tom@tromey.com>
4860
4861 * tui/tui-win.c (tui_resize_all)
4862 (tui_source_window_base::update_tab_width)
4863 (tui_adjust_win_heights): Update.
4864 (tui_win_info::make_invisible_and_set_new_height): Rename from
4865 make_invisible_and_set_new_height.
4866 * tui/tui-data.h (struct tui_win_info)
4867 <make_invisible_and_set_new_height>: New method.
4868
bfad4537
TT
48692019-07-17 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui.c: Update.
4872 * tui/tui-source.h (struct tui_source_window): Move from
4873 tui-data.h.
4874 * tui/tui-layout.c: Update.
4875 * tui/tui-disasm.c: Update.
4876 * tui/tui-data.h (struct tui_source_window): Move to
4877 tui-source.h.
4878
88f7e873
TT
48792019-07-17 Tom Tromey <tom@tromey.com>
4880
4881 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4882 tui-data.h.
4883 * tui/tui-data.h (struct tui_disasm_window): Move to
4884 tui-disasm.h.
4885
96bd6233
TT
48862019-07-17 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-regs.h (struct tui_data_item_window): Move from
4889 tui-data.h.
4890 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4891 * tui/tui-data.h (struct tui_data_item_window): Move to
4892 tui-regs.h.
4893 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4894
ce38393b
TT
48952019-07-17 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui.c: Update.
4898 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4899 (tui_cmd_window::max_height): Move to tui-command.c.
4900 * tui/tui-layout.c: Update.
4901 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4902 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4903 tui-command.c.
4904 * tui/tui-command.h (struct tui_cmd_window): Move from
4905 tui-data.h.
4906 * tui/tui-command.c: Remove "structuring" comments.
4907 (tui_cmd_window::clear_detail)
4908 (tui_cmd_window::do_make_visible_with_new_height)
4909 (tui_cmd_window::max_height): Move from elsewhere.
4910
2d8b51cb
TT
49112019-07-17 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4914 Now static.
4915 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4916 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4917
18ab23af
TT
49182019-07-17 Tom Tromey <tom@tromey.com>
4919
4920 * tui/tui.c: Update.
4921 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4922 tui-regs.c.
4923 * tui/tui-windata.h: Remove file.
4924 * tui/tui-windata.c: Remove file.
4925 * tui/tui-win.c (tui_data_window::set_new_height)
4926 (tui_data_window::do_make_visible_with_new_height): Move to
4927 tui-regs.c.
4928 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4929 * tui/tui-regs.c: Remove "structuring" comments.
4930 (tui_data_window::first_data_item_displayed)
4931 (tui_data_window::delete_data_content_windows)
4932 (tui_data_window::erase_data_content)
4933 (tui_data_window::display_all_data)
4934 (tui_data_window::refresh_all)
4935 (tui_data_window::do_scroll_vertical)
4936 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4937 (tui_data_window::do_make_visible_with_new_height)
4938 (tui_data_window::refresh_window): Move from elsewhere.
4939 (_initialize_tui_regs): Move to end of file.
4940 * tui/tui-layout.c: Update.
4941 * tui/tui-hooks.c: Update.
4942 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4943 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4944 tui-regs.c.
4945 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4946
88b7e7cc
TT
49472019-07-17 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4950 seen.
4951
0fcd3711
TT
49522019-07-17 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui-win.c (tui_source_window_base::set_new_height)
4955 (tui_source_window_base::do_make_visible_with_new_height): Use
4956 m_has_locator field directly.
4957 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4958 method.
4959 (struct tui_source_window_base) <has_locator>: Likewise.
4960
4a38112d
TT
49612019-07-17 Tom Tromey <tom@tromey.com>
4962
4963 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4964 Don't declare.
4965 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4966 Remove.
4967 * tui/tui-win.c (tui_source_window_base::set_new_height)
4968 (tui_source_window_base::set_new_height)
4969 (make_invisible_and_set_new_height)
4970 (tui_source_window_base::do_make_visible_with_new_height)
4971 (tui_source_window_base::do_make_visible_with_new_height):
4972 Update.
4973 * tui/tui-layout.c (show_source_disasm_command, show_data)
4974 (show_source_or_disasm_and_command): Update.
4975 * tui/tui-layout.c (show_layout): Update.
4976
09129226
TT
49772019-07-17 Tom Tromey <tom@tromey.com>
4978
4979 * tui/tui-layout.c (make_data_window): Remove.
4980 (show_data): Unify creation and re-initialization cases.
4981
4a8a5e84
TT
49822019-07-17 Tom Tromey <tom@tromey.com>
4983
4984 * tui/tui-layout.c (make_source_window, make_disasm_window):
4985 Remove.
4986 (show_data): Unify creation and re-initialization cases.
4987
76d2be8e
TT
49882019-07-17 Tom Tromey <tom@tromey.com>
4989
4990 * tui/tui-layout.c (make_command_window): Remove.
4991 (show_source_disasm_command, show_source_or_disasm_and_command):
4992 Unify creation and re-initialization cases.
4993
890b8bde
TT
49942019-07-17 Tom Tromey <tom@tromey.com>
4995
4996 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4997 creation and re-initialization cases.
4998
2cdfa113
TT
49992019-07-17 Tom Tromey <tom@tromey.com>
5000
5001 * tui/tui-regs.c (tui_get_register): Return void.
5002
8e3cfd09
TT
50032019-07-17 Tom Tromey <tom@tromey.com>
5004
5005 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5006 Simplify.
5007
f4e04977
TT
50082019-07-17 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5011 resetting.
5012
0379b883
TT
50132019-07-17 Tom Tromey <tom@tromey.com>
5014
5015 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5016 * tui/tui-regs.c (tui_reg_layout): New function.
5017 (tui_show_registers, tui_reg_command): Use it.
5018 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5019 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5020 parameters.
5021 (tui_layout_command): Remove.
5022
b7fbad91
TT
50232019-07-17 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-layout.h (tui/tui-layout): Return void.
5026 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5027
4e1e56b9
TT
50282019-07-17 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-layout.c (show_source_disasm_command, show_data):
5031 Update.
5032 (reset_locator): Remove.
5033 (show_source_or_disasm_and_command): Update.
5034
1e0c09ba
TT
50352019-07-17 Tom Tromey <tom@tromey.com>
5036
5037 * tui/tui-source.c (tui_source_window_base::reset): Remove
5038 win_type parameter.
5039 * tui/tui-layout.c (make_command_window, make_source_window)
5040 (make_disasm_window, make_data_window)
5041 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5042 (reset_locator, show_source_or_disasm_and_command): Update.
5043 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5044 win_type parameter.
5045 (struct tui_source_window_base) <reset>: Likewise.
5046
1bf605de
TT
50472019-07-17 Tom Tromey <tom@tromey.com>
5048
5049 * tui/tui-layout.c (show_source_disasm_command): Use
5050 reset_locator.
5051 (reset_locator): New function.
5052 (init_and_make_win): Remove.
5053 (show_source_or_disasm_and_command): Use reset_locator.
5054
098f9ed4
TT
50552019-07-17 Tom Tromey <tom@tromey.com>
5056
5057 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5058 condition.
5059 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5060 Remove condition.
5061 * tui/tui-source.c (tui_source_window_base::reset): New method.
5062 * tui/tui-layout.c (make_command_window): Don't call
5063 init_and_make_win.
5064 (make_source_window, make_disasm_window): Don't call
5065 make_source_or_disasm_window.
5066 (make_data_window): Don't call init_and_make_win. Change calling
5067 convention.
5068 (show_source_disasm_command, show_data): Simplify.
5069 (make_source_or_disasm_window): Remove.
5070 (show_source_or_disasm_and_command): Simplify.
5071 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5072 (struct tui_source_window_base) <reset>: Likewise.
5073 <execution_info>: Remove initializer.
5074 * tui/tui-data.c (tui_source_window_base): Initialize
5075 execution_info.
5076
80110957
TT
50772019-07-17 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5080 variable.
5081
cf82af05
TT
50822019-07-17 Tom Tromey <tom@tromey.com>
5083
5084 * tui/tui.c (tui_rl_other_window): Update.
5085 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5086 superclass method first. Always iterate over regs_content.
5087 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5088 method.
5089 * tui/tui-win.c (tui_set_focus_command): Update.
5090
01aeb396
TT
50912019-07-17 Tom Tromey <tom@tromey.com>
5092
5093 * tui/tui-win.c (tui_set_focus_command): Rename from
5094 tui_set_focus. Call tui_enable.
5095 (tui_set_focus_command): Remove.
5096
fd6c75ee
TT
50972019-07-17 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5100 refresh_window.
5101 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5102 touchwin.
5103 (tui_data_window::refresh_window): Call refresh_window on data
5104 items. Always call superclass refresh_window.
5105 (tui_win_info::refresh): Remove.
5106 (tui_source_window_base::refresh_window): Update.
5107 (tui_refresh_all): Update.
5108 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5109 refresh_window.
5110 (show_source_or_disasm_and_command): Likewise.
5111 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5112 (struct tui_source_window_base) <refresh>: Likewise.
5113
f6cc34a9
TT
51142019-07-17 Tom Tromey <tom@tromey.com>
5115
5116 * tui/tui-winsource.c (tui_clear_source_content)
5117 (tui_show_source_content): Update.
5118 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5119 whether content is empty.
5120 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5121 Remove.
5122
f31ec9af
TT
51232019-07-17 Tom Tromey <tom@tromey.com>
5124
5125 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5126 window's contents.
5127 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5128 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5129
d1b6f1e5
TT
51302019-07-17 Tom Tromey <tom@tromey.com>
5131
5132 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5133 (struct tui_data_item_window): Update.
5134
d9743a13
TT
51352019-07-17 Tom Tromey <tom@tromey.com>
5136
5137 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5138 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5139 defines.
5140
caf0bc4e
TT
51412019-07-17 Tom Tromey <tom@tromey.com>
5142
5143 * tui/tui-winsource.h (tui_erase_source_content)
5144 (tui_clear_source_content): Remove "display_prompt" parameter.
5145 * tui/tui-winsource.c (tui_update_source_window_as_is)
5146 (tui_update_source_windows_with_addr): Update.
5147 (tui_clear_source_content): Remove "display_prompt" parameter.
5148 (tui_erase_source_content): Likewise. Simplify.
5149 (tui_show_source_content): Update.
5150 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5151 * tui/tui-stack.c (tui_show_frame_info): Update.
5152 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5153 Remove defines.
5154
9d391078
TT
51552019-07-17 Tom Tromey <tom@tromey.com>
5156
5157 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5158 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5159 parameter.
5160 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5161 parameter.
5162
a38da35d
TT
51632019-07-17 Tom Tromey <tom@tromey.com>
5164
5165 * tui/tui-winsource.c (tui_clear_source_content)
5166 (tui_show_source_content, tui_show_exec_info_content)
5167 (tui_clear_exec_info_content): Update.
5168 * tui/tui-stack.c (tui_show_locator_content): Update.
5169 (tui_show_frame_info): Update.
5170 * tui/tui-source.h (tui_source_window): Don't declare.
5171 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5172 from tui_source_is_displayed.
5173 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5174 Remove field.
5175 (struct tui_source_window_base) <content_in_use>: New field. Now
5176 bool.
5177 (struct tui_source_window) <showing_source_p>: New method.
5178 (TUI_SRC_WIN): Change cast.
5179 * tui/tui-data.c (tui_initialize_static_data): Update.
5180
c2cd8994
TT
51812019-07-17 Tom Tromey <tom@tromey.com>
5182
5183 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5184 location_matches_p.
5185 * tui/tui-source.c (tui_source_window::location_matches_p): New
5186 method.
5187 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5188 method.
5189 * tui/tui-data.h (struct tui_source_window_base)
5190 <location_matches_p>: New method.
5191 (struct tui_source_window, struct tui_disasm_window)
5192 <location_matches_p>: Likewise.
5193
4dde7b34
TT
51942019-07-17 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-win.c (tui_set_win_height_command): Rename from
5197 tui_set_win_height.
5198 (tui_set_win_height_command): Remove.
5199
b73dd877
TT
52002019-07-17 Tom Tromey <tom@tromey.com>
5201
5202 * tui/tui-source.c (tui_source_window): New constructor. Add
5203 observer.
5204 (~tui_source_window): New destructor.
5205 (tui_source_window::style_changed): New method.
5206 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5207 (tui_attach_detach_observers): Update.
5208 * tui/tui-data.h (struct tui_source_window): Make constructor not
5209 inline. Add destructor.
5210 (struct tui_source_window) <style_changed>: New method.
5211 <m_observable>: New member.
5212
ae2b5380
TT
52132019-07-17 Tom Tromey <tom@tromey.com>
5214
5215 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5216 * tui/tui-win.c (tui_resize_all): Fix typo.
5217
1ce3e844
TT
52182019-07-17 Tom Tromey <tom@tromey.com>
5219
5220 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5221 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5222 (tui_refresh_all): Remove "list" parameter. Use foreach.
5223 * tui/tui-win.c (window_name_completer): Use foreach.
5224 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5225 (update_tab_width): Likewise.
5226 * tui/tui-layout.c (show_layout): Update.
5227 * tui/tui-data.h (class tui_window_iterator): New.
5228 (struct all_tui_windows): New.
5229 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5230
fe3eaf1c
TT
52312019-07-17 Tom Tromey <tom@tromey.com>
5232
5233 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5234 parameter. Don't reference globals.
5235 (tui_reg_command): Update.
5236
368c1354
TT
52372019-07-17 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-regs.c (tui_show_registers): Simplify.
5240
e80cd204
TT
52412019-07-17 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-regs.c (tui_show_registers): Update.
5244 (tui_show_register_group): Add win_info parameter.
5245
aca2dd16
TT
52462019-07-17 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5249 Rename from tui_display_reg_element_at_line.
5250 (tui_data_window::display_registers_from_line): Update.
5251 * tui/tui-data.h (struct tui_data_window)
5252 <display_reg_element_at_line>: New method.
5253
517e9505
TT
52542019-07-17 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui-regs.h (tui_display_registers_from)
5257 (tui_display_registers_from_line): Don't declare.
5258 * tui/tui-windata.c (tui_data_window::display_all_data)
5259 (tui_data_window::refresh_all)
5260 (tui_data_window::do_scroll_vertical): Update.
5261 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5262 from tui_display_registers_from.
5263 (tui_display_reg_element_at_line): Update.
5264 (tui_data_window::display_registers_from_line): Rename from
5265 tui_display_registers_from_line.
5266 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5267 display_registers_from_line>: New methods.
5268
f76d8b19
TT
52692019-07-17 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5272 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5273 from tui_erase_data_content.
5274 (tui_data_window::display_all_data)
5275 (tui_data_window::refresh_all)
5276 (tui_data_window::do_scroll_vertical): Update.
5277 * tui/tui-regs.c (tui_show_registers): Update.
5278 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5279 New method.
5280
b4094625
TT
52812019-07-17 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5284 declare.
5285 * tui/tui-windata.c
5286 (tui_data_window::delete_data_content_windows): Rename from
5287 tui_delete_data_content_windows.
5288 (tui_data_window::display_all_data)
5289 (tui_data_window::do_scroll_vertical): Update.
5290 * tui/tui-data.h (struct tui_data_window)
5291 <delete_data_content_windows>: New method.
5292
c223a729
TT
52932019-07-17 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5296 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5297
50daf268
TT
52982019-07-17 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5301 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5302 from tui_display_all_data.
5303 * tui/tui-win.c
5304 (tui_data_window::do_make_visible_with_new_height): Update.
5305 * tui/tui-regs.c (tui_show_registers): Update.
5306 * tui/tui-layout.c (tui_set_layout): Update.
5307 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5308 method.
5309
df5f8cab
TT
53102019-07-17 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5313 * tui/tui-windata.c (tui_display_data_from): Remove.
5314 (tui_data_window::refresh_all): Update.
5315
80cb6c27
TT
53162019-07-17 Tom Tromey <tom@tromey.com>
5317
5318 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5319 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5320 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5321 tui_display_registers_from_line.
5322 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5323 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5324 "force_display" parameter.
5325
baff0c28
TT
53262019-07-17 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5329 declare.
5330 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5331 Rename from tui_first_reg_element_no_inline.
5332 (tui_display_reg_element_at_line)
5333 (tui_display_registers_from_line): Update.
5334 * tui/tui-data.h (struct tui_data_window)
5335 <first_reg_element_no_inline>: New method.
5336
3b23c5f2
TT
53372019-07-17 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-windata.c (tui_display_data_from)
5340 (tui_data_window::do_scroll_vertical): Update.
5341 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5342 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5343 Rename from tui_line_from_reg_element_no.
5344 (tui_display_registers_from_line): Update.
5345 * tui/tui-data.h (struct tui_data_window)
5346 <line_from_reg_element_no>: New method.
5347
0b5ec218
TT
53482019-07-17 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5351 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5352 tui_last_regs_line_no.
5353 (tui_display_reg_element_at_line)
5354 (tui_display_registers_from_line): Update.
5355 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5356 method.
5357
0807ab7b
TT
53582019-07-17 Tom Tromey <tom@tromey.com>
5359
5360 PR tui/24722:
5361 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5362 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5363 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5364 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5365 (tui_update_breakpoint_info): Likewise.
5366 * tui/tui-hooks.c (tui_event_create_breakpoint)
5367 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5368 Update.
5369
9ad7fdef
TT
53702019-07-17 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5373
5813316f
TT
53742019-07-17 Tom Tromey <tom@tromey.com>
5375
5376 * tui/tui-winsource.c (tui_update_source_window_as_is)
5377 (tui_update_source_windows_with_addr): Update.
5378 * tui/tui-source.h (tui_set_source_content)
5379 (tui_show_symtab_source): Add "win_info" parameter.
5380 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5381 parameter.
5382 (tui_show_symtab_source): Likewise.
5383
00e264e7
TT
53842019-07-17 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-wingeneral.c
5387 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5388
06210ce4
TT
53892019-07-17 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5392 (struct tui_cmd_window) <can_scroll>: New method.
5393 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5394 method.
5395
381befee
TT
53962019-07-17 Tom Tromey <tromey@adacore.com>
5397
5398 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5399 do_field_signed>: Rename. Change type of "value".
5400 * ui-out.c (ui_out::field_signed): Rename from field_int.
5401 Change type of "value".
5402 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5403 type of "value".
5404 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5405 do_field_int. Change type of "value".
5406 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5407 do_field_int. Change type of "value".
5408 * tracepoint.c (trace_status_mi, tfind_1)
5409 (print_one_static_tracepoint_marker): Update.
5410 * thread.c (print_thread_info_1, print_selected_thread_frame):
5411 Update.
5412 * stack.c (print_frame, print_frame_info): Update.
5413 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5414 Update.
5415 * source.c (print_source_lines_base): Update.
5416 * skip.c (info_skip_command): Update.
5417 * record-btrace.c (btrace_ui_out_decode_error)
5418 (btrace_call_history_src_line): Update.
5419 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5420 Update.
5421 * progspace.c (print_program_space): Update.
5422 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5423 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5424 do_field_int. Change type of "value".
5425 * mi/mi-out.c (mi_ui_out::do_table_begin)
5426 (mi_ui_out::do_table_header): Update.
5427 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5428 type of "value".
5429 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5430 (mi_cmd_data_list_changed_registers, output_register)
5431 (mi_cmd_data_read_memory, mi_load_progress)
5432 (mi_cmd_trace_frame_collected): Update.
5433 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5434 Update.
5435 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5436 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5437 (mi_cmd_var_list_children, varobj_update_one): Update.
5438 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5439 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5440 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5441 * inferior.c (print_inferior): Update.
5442 * gdb_bfd.c (print_one_bfd): Update.
5443 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5444 Update.
5445 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5446 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5447 do_field_int. Change type of "value".
5448 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5449 do_field_int. Change type of "value".
5450 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5451 (print_one_breakpoint_location, print_it_catch_fork)
5452 (print_one_catch_fork, print_it_catch_vfork)
5453 (print_one_catch_vfork, print_it_catch_solib)
5454 (print_it_catch_exec, print_it_ranged_breakpoint)
5455 (print_mention_watchpoint, print_mention_masked_watchpoint)
5456 (bkpt_print_it, update_static_tracepoint): Update.
5457 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5458 * break-catch-syscall.c (print_it_catch_syscall): Update.
5459 * ada-tasks.c (print_ada_task_info): Update.
5460 * ada-lang.c (print_it_exception, print_mention_exception):
5461 Update.
5462
6b78c3f8
AB
54632019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 PR breakpoints/24541
5466 * gdbarch.c: Regenerate.
5467 * gdbarch.h: Regenerate.
5468 * gdbarch.sh: Adjust return type and parameter types for
5469 'stap_adjust_register'.
5470 (i386_stap_adjust_register): Adjust signature and return new
5471 register name.
5472 * stap-probe.c (stap_parse_register_operand): Adjust use of
5473 'gdbarch_stap_adjust_register'.
5474
d72a9b85
TT
54752019-07-17 Tom Tromey <tromey@adacore.com>
5476
5477 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5478 declare VEC.
5479 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5480 std::vector.
5481 (struct s390_process_info): Add initializers.
5482 (s390_add_process): Use new.
5483 (s390_linux_nat_target::low_forget_process): Use delete.
5484 (s390_linux_nat_target::low_new_fork)
5485 (s390_linux_nat_target::stopped_by_watchpoint)
5486 (s390_linux_nat_target::low_prepare_to_resume)
5487 (s390_linux_nat_target::insert_watchpoint)
5488 (s390_linux_nat_target::insert_hw_breakpoint)
5489 (s390_linux_nat_target::remove_watchpoint)
5490 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5491
206e6c58
JB
54922019-07-16 John Baldwin <jhb@FreeBSD.org>
5493
5494 * aarch64-fbsd-nat.c: Include regcache.h.
5495 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5496 argument.
5497 (aarch64_fbsd_nat_target::fetch_registers)
5498 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5499 variable.
5500 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5501
cbde90f2
JB
55022019-07-16 John Baldwin <jhb@FreeBSD.org>
5503
5504 * fbsd-nat.c: Include gdbarch.h.
5505
07128006
TT
55062019-07-15 Tom Tromey <tromey@adacore.com>
5507
5508 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5509
1f77b012
TT
55102019-07-15 Tom Tromey <tromey@adacore.com>
5511
5512 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5513 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5514 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5515 * cli-out.c (cli_ui_out::do_field_int): New method.
5516 * ui-out.c (ui_out::field_unsigned): New method.
5517 * symfile.c (generic_load): Use field_unsigned.
5518 (print_transfer_performance): Likewise.
5519 * record-btrace.c (ui_out_field_uint): Remove.
5520 (btrace_call_history_insn_range, btrace_call_history): Use
5521 field_unsigned.
5522 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5523 field_unsigned.
5524 * ui-out.h (class ui_out) <field_unsigned>: New method.
5525 <do_field_unsigned>: Likewise.
5526
33eca680
TT
55272019-07-15 Tom Tromey <tromey@adacore.com>
5528
5529 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5530 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5531 * target.c (flash_erase_command): Use field_string.
5532 * infrun.c (print_signal_received_reason): Use field_string.
5533 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5534 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5535 field_string.
5536 * ada-tasks.c (print_ada_task_info): Use field_string.
5537
ca8d69be
TT
55382019-07-15 Tom Tromey <tromey@adacore.com>
5539
5540 * target.c (flash_erase_command): Use field_core_addr.
5541 * symfile.c (generic_load): Use field_core_addr.
5542 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5543 Use field_core_addr.
5544 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5545 field_core_addr.
5546
0d4e84ed
AB
55472019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5548
5549 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5550 value if its desired type is smaller than a CORE_ADDR and signed.
5551
9a49df9d
AB
55522019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5553
5554 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5555 of changes to field names, and use new is_reference field to
5556 decide if a property is a reference or not.
5557 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5558 field.
5559 (struct dwarf2_property_baton): Update header comment, rename
5560 'referenced_type' to 'property_type' and update comments.
5561 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5562 default property type, store in property baton, update to take
5563 accound of renamed field.
5564 (read_func_scope): Update call to attr_to_dynamic_prop.
5565 (read_array_type): Likewise.
5566 (dwarf2_per_cu_addr_sized_int_type): New function.
5567 (read_subrange_index_type): Move type finding code to
5568 dwarf2_per_cu_addr_sized_int_type.
5569 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5570 (dwarf2_per_cu_addr_type): New function.
5571 (set_die_type): Update calls to attr_to_dynamic_prop.
5572
b86352cf
AB
55732019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * dwarf2read.c (read_subrange_index_type): New function.
5576 (read_subrange_type): Move code into new function and call it.
5577 * gdbtypes.c (create_range_type): Add some asserts.
5578
603490bf
AB
55792019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5580
5581 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5582 update return statements.
5583 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5584 declaration, and update comment to match.
5585 * gdbtypes.c (resolve_dynamic_array): Update call to
5586 dwarf2_evaluate_property to match new return type.
5587
592f9d27
AB
55882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5589
5590 * valarith.c (value_subscripted_rvalue): Change lowerbound
5591 parameter type from int to LONGEST.
5592 * value.h (value_subscripted_rvalue): Likewise in declaration.
5593
60cfcb20
AB
55942019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5595
5596 * cli/cli-utils.c (info_print_command_completer): New function.
5597 * cli/cli-utils.h: Add 'completer.h' include, and forward
5598 declaration for 'struct cmd_list_element'.
5599 (info_print_command_completer): Declare.
5600 * stack.c (_initialize_stack): Add completer for 'info locals' and
5601 'info args'.
5602 * symtab.c (_initialize_symtab): Add completer for 'info
5603 variables' and 'info functions'.
5604 * NEWS: Mention completion for additional info commands.
5605
b16507e0
AB
56062019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5607
5608 * cli/cli-utils.c (extract_info_print_args): Delete.
5609 (extract_arg_maybe_quoted): Delete.
5610 (info_print_options_defs): New variable.
5611 (make_info_print_options_def_group): New function.
5612 (extract_info_print_options): Define new function.
5613 * cli/cli-utils.h (extract_info_print_args): Delete.
5614 (struct info_print_options): New structure.
5615 (extract_info_print_options): Declare new function.
5616 * stack.c (info_locals_command): Update to use new
5617 extract_info_print_options, also add a header comment.
5618 (info_args_command): Likewise.
5619 * symtab.c (info_variables_command): Likewise.
5620 (info_functions_command): Likewise.
5621
021d8588
AB
56222019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5625 to extract string arguments.
5626 * common/common-utils.c (extract_string_maybe_quoted): New function.
5627 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5628
b777eb6d
TT
56292019-07-11 Tom Tromey <tromey@adacore.com>
5630
5631 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5632 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5633 * top.h (gdbinit): Don't declare.
5634 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5635 into...
5636 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5637 * top.c (gdb_init): Don't call init_cli_cmds.
5638 (gdbinit): Remove.
5639 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5640
72ee03ff
TT
56412019-07-11 Tom Tromey <tromey@adacore.com>
5642
5643 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5644 after it has been moved.
5645
00db9531
SM
56462019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5647
5648 * valops.c (value_must_coerce_to_target): Change return type to
5649 bool.
5650 * value.h (value_must_coerce_to_target): Likewise.
5651
f2478a7e
SM
56522019-07-10 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * breakpoint.c (is_hardware_watchpoint): Remove
5655 forward-declaration.
5656 (is_masked_watchpoint): Change return type to bool.
5657 (is_tracepoint): Likewise.
5658 (is_breakpoint): Likewise.
5659 (is_hardware_watchpoint): Likewise.
5660 (is_watchpoint): Likewise.
5661 (is_no_memory_software_watchpoint): Likewise.
5662 (is_catchpoint): Likewise.
5663 (breakpoint_1): Make FILTER parameter's return type bool.
5664 is_masked_watchpoint): Change return type to bool.
5665 (save_breakpoints): Make FILTER parameter's return type bool.
5666 * breakpoint.h (is_breakpoint): Change return type to bool.
5667 (is_watchpoint): Likewise.
5668 (is_catchpoint): Likewise.
5669 (is_tracepoint): Likewise.
5670
0d12e84c
TT
56712019-07-10 Tom Tromey <tom@tromey.com>
5672
5673 * defs.h: Don't include gdbarch.h.
5674 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5675 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5676 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5677 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5678 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5679 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5680 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5681 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5682 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5683 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5684 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5685 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5686 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5687 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5688 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5689 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5690 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5691 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5692 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5693 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5694 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5695 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5696 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5697 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5698 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5699 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5700 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5701
f06f1252
TT
57022019-07-10 Tom Tromey <tromey@adacore.com>
5703
5704 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5705 * breakpoint.c (init_ada_exception_breakpoint): Register as
5706 bp_catchpoint.
5707 (print_one_breakpoint_location, print_one_breakpoint): Use
5708 is_ada_exception_catchpoint.
5709 * ada-lang.c (class ada_catchpoint_location): Pass
5710 bp_loc_software_breakpoint to bp_location constructor.
5711 (is_ada_exception_catchpoint): New function.
5712
7a5d944b
TT
57132019-07-10 Tom Tromey <tromey@adacore.com>
5714
5715 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5716 VEC.
5717 (struct arm_exidx_entry): New method operator<.
5718 (struct arm_exidx_data) <section_maps>: Change type.
5719 (arm_exidx_data_free): Remove.
5720 (arm_exidx_data_key): Change type. Move lower.
5721 (arm_exidx_new_objfile): Update.
5722 (arm_compare_exidx_entries): Remove.
5723 (arm_find_exidx_entry, _initialize_arm_tdep)
5724
48c66e1d
TT
57252019-07-10 Tom Tromey <tromey@adacore.com>
5726
5727 * solib-spu.c (ocl_program_data_key): Change type.
5728 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5729 Update.
5730
a269fbf1
TT
57312019-07-10 Tom Tromey <tromey@adacore.com>
5732
5733 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5734 (struct solib_aix_inferior_data) <library_list>: Change type.
5735 (solib_aix_inferior_data_handle): Change type.
5736 (get_solib_aix_inferior_data): Update.
5737 (solib_aix_free_library_list): Remove.
5738 (library_list_start_library): Update.
5739 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5740 return type.
5741 (solib_aix_get_library_list)
5742 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5743 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5744
c294730c
TT
57452019-07-10 Tom Tromey <tromey@adacore.com>
5746
5747 * solib-dsbt.c (struct dsbt_info): Add initializers.
5748 (solib_dsbt_pspace_data): Change type.
5749 (dsbt_pspace_data_cleanup): Remove.
5750 (get_dsbt_info, _initialize_dsbt_solib): Update.
5751
9d52077d
TT
57522019-07-10 Tom Tromey <tromey@adacore.com>
5753
5754 * spu-tdep.c (spu_overlay_data): Change type.
5755 (spu_get_overlay_table, spu_overlay_new_objfile)
5756 (_initialize_spu_tdep): Update.
5757
22a20dca
TT
57582019-07-10 Tom Tromey <tromey@adacore.com>
5759
5760 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5761 destructor.
5762 (dbx_objfile_data_key): Change type and declare later.
5763 (DBX_SYMFILE_INFO): Rewrite.
5764 * dbxread.c (dbx_objfile_data_key): Change type.
5765 (dbx_symfile_init): Update.
5766 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5767 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5768 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5769
cb60f420
TT
57702019-07-10 Tom Tromey <tromey@adacore.com>
5771
5772 * jit.c (jit_program_space_key): Change type. Move lower.
5773 (get_jit_program_space_data): Update.
5774 (jit_program_space_data_cleanup): Remove.
5775 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5776 Update.
5777 (struct jit_program_space_data): Add initializers.
5778
51df2ae3
TT
57792019-07-10 Tom Tromey <tromey@adacore.com>
5780
5781 * solib-darwin.c (struct darwin_info): Add initializers.
5782 (solib_darwin_pspace_data): Change type.
5783 (darwin_pspace_data_cleanup): Remove.
5784 (get_darwin_info, _initialize_darwin_solib): Update.
5785
18101a35
TT
57862019-07-10 Tom Tromey <tromey@adacore.com>
5787
5788 * remote-sim.c (struct sim_inferior_data): Add initializers,
5789 constructor, and destructor.
5790 (sim_inferior_data_key): Change type. Move lower.
5791 (check_for_duplicate_sim_descriptor): Update.
5792 (get_sim_inferior_data): Use new. Update.
5793 (~sim_inferior_data_cleanup): Rename from
5794 sim_inferior_data_cleanup. Simplify.
5795 (gdbsim_close_inferior, simulator_command)
5796 (sim_command_completer, _initialize_remote_sim): Update.
5797 (next_pid, INITIAL_PID): Move earlier.
5798
05b08ac1
TT
57992019-07-10 Tom Tromey <tromey@adacore.com>
5800
5801 * python/python-internal.h (create_thread_object): Return
5802 gdbpy_ref.
5803 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5804 * python/py-inferior.c (struct threadlist_entry): Add
5805 constructor.
5806 <thread_obj>: Now a gdbpy_ref.
5807 (thread_to_thread_object): Update.
5808 (add_thread_object): Use new.
5809 (delete_thread_object): Use delete.
5810 (infpy_threads): Update.
5811 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5812 GIL.
5813
32372d80
TT
58142019-07-10 Tom Tromey <tromey@adacore.com>
5815
5816 * valops.c (value_cast): Specialize error message for Ada.
5817
5c458ae8
SM
58182019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5821
4c462cb0
SM
58222019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5825 bpstat_should_step): Return bool, adjust comments.
5826 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5827 bpstat_should_step): Likewise.
5828
89abbcc2
AH
58292019-07-10 Alan Hayward <alan.hayward@arm.com>
5830
5831 * features/Makefile: Use feature target descriptions for Arm.
5832 * features/arm/arm-core.c: Generate new file.
5833 * features/arm/arm-fpa.c: Likewise.
5834 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5835 * features/arm/arm-m-profile.c: Likewise.
5836 * features/arm/arm-vfpv2.c: Likewise.
5837 * features/arm/arm-vfpv3.c: Likewise.
5838 * features/arm/xscale-iwmmxt.c: Likewise.
5839 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5840
166a82be
AH
58412019-07-10 Alan Hayward <alan.hayward@arm.com>
5842
5843 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5844 ptrace earlier.
5845
9fb4c7e9
AH
58462019-07-10 Alan Hayward <alan.hayward@arm.com>
5847
5848 * features/aarch64-pauth.c: Regenerate.
5849
e2d0f980
SM
58502019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5853 bool.
5854 (bpstat_what): Use false instead of 0.
5855
a38118e5
PA
58562019-07-09 Pedro Alves <palves@redhat.com>
5857
5858 * break-catch-throw.c (is_exception_catchpoint): New.
5859 * breakpoint.c (print_one_breakpoint_location): New parameter
5860 'raw_loc'. Handle it. Use
5861 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5862 looking at the breakpoint's type.
5863 (print_one_breakpoint): If handling "maint info breakpoints", also
5864 print locations of exception catchpoints.
5865 * breakpoint.h (is_exception_catchpoint): Declare.
5866
cb1e4e32
PA
58672019-07-09 Pedro Alves <palves@redhat.com>
5868
5869 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5870 "addr" field.
5871 (allocate_location_exception_catchpoint): New.
5872 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5873 (initialize_throw_catchpoint_ops): Install
5874 allocate_location_exception_catchpoint as allocate_location
5875 method.
5876 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5877 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5878 bp_loc_other.
5879 (breakpoint_address_is_meaningful): Delete.
5880 (bl_address_is_meaningful): New.
5881 (breakpoint_locations_match): Adjust comment.
5882 (bp_location_from_bp_type): New, factored out of...
5883 (bp_location::bp_location(breakpoint *)): ... this.
5884 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5885 factored out of...
5886 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5887 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5888 breakpoint_address_is_meaningful.
5889 (bp_locations_compare): Adjust comment.
5890 (update_global_location_list): Use bl_address_is_meaningful
5891 instead of breakpoint_address_is_meaningful.
5892 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5893 explicit.
5894 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5895 * python/py-breakpoint.c (bppy_get_location): No longer check
5896 whether location is null.
5897
b58a68fe
PA
58982019-07-09 Pedro Alves <palves@redhat.com>
5899
5900 PR c++/15468
5901 * breakpoint.c (print_one_breakpoint_location): Remove
5902 single-location assert.
5903
268a13a5
TT
59042019-07-09 Tom Tromey <tom@tromey.com>
5905
5906 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5907 * configure: Rebuild.
5908 * configure.ac: Change common to gdbsupport.
5909 * gdbsupport: Rename from common.
5910 * acinclude.m4: Change common to gdbsupport.
5911 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5912 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5913 gdbsupport.
5914 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5915 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5916 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5917 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5918 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5919 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5920 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5921 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5922 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5923 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5924 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5925 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5926 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5927 coff-pe-read.c, command.h, compile/compile-c-support.c,
5928 compile/compile-c.h, compile/compile-cplus-symbols.c,
5929 compile/compile-cplus-types.c, compile/compile-cplus.h,
5930 compile/compile-loc2c.c, compile/compile.c, completer.c,
5931 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5932 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5933 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5934 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5935 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5936 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5937 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5938 features/aarch64-core.c, features/aarch64-fpu.c,
5939 features/aarch64-pauth.c, features/aarch64-sve.c,
5940 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5941 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5942 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5943 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5944 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5945 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5946 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5947 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5948 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5949 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5950 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5951 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5952 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5953 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5954 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5955 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5956 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5957 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5958 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5959 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5960 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5961 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5962 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5963 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5964 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5965 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5966 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5967 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5968 minsyms.c, mips-linux-tdep.c, namespace.h,
5969 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5970 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5971 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5972 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5973 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5974 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5975 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5976 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5977 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5978 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5979 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5980 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5981 procfs.c, producer.c, progspace.h, psymtab.h,
5982 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5983 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5984 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5985 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5986 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5987 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5988 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5989 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5990 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5991 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5992 target-memory.c, target.c, target.h, target/waitstatus.c,
5993 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5994 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5995 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5996 unittests/array-view-selftests.c,
5997 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5998 unittests/common-utils-selftests.c,
5999 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6000 unittests/format_pieces-selftests.c,
6001 unittests/function-view-selftests.c,
6002 unittests/lookup_name_info-selftests.c,
6003 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6004 unittests/mkdir-recursive-selftests.c,
6005 unittests/observable-selftests.c,
6006 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6007 unittests/parse-connection-spec-selftests.c,
6008 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6009 unittests/scoped_fd-selftests.c,
6010 unittests/scoped_mmap-selftests.c,
6011 unittests/scoped_restore-selftests.c,
6012 unittests/string_view-selftests.c, unittests/style-selftests.c,
6013 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6014 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6015 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6016 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6017 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6018 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6019
5b0e2db4
AB
60202019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6021
6022 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6023 bool value.
6024 (decode_digits_ordinary): Set explicit_line field in sal.
6025 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6026 symtab_and_line that was set on an explicit line number in
6027 assembler code. Do always update the recorded symtab and line if
6028 we do skip the prologue.
6029
0ba852ab
AB
60302019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * breakpoint.c (set_breakpoint_location_function): Remove
6033 explicit_loc parameter.
6034 (momentary_breakpoint_from_master): Update call to
6035 set_breakpoint_location_function.
6036 (add_location_to_breakpoint): Likewise.
6037
b3a7d171
AB
60382019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6041 required features based on default bfd type when no specific bfd
6042 is present.
6043
1f6f6e21
PW
60442019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6045
6046 * NEWS: Mention that GDB printf and eval commands can now print
6047 C-style and Ada-style convenience var strings without
6048 calling the inferior.
6049 * printcmd.c (printf_c_string): Locally print GDB internal var
6050 instead of transiting via the inferior.
6051 (printf_wide_c_string): Likewise.
6052
60532019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6054
5862c886 6055 PR breakpoints/25011
ea142fbf
AH
6056 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6057
0598af48
TT
60582019-07-04 Tom Tromey <tom@tromey.com>
6059
6060 PR tui/24724:
6061 * tui/tui-winsource.c (tui_clear_source_content): Update.
6062 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6063 (tui_update_breakpoint_info): Update.
6064 (tui_set_exec_info_content): Update.
6065 * tui/tui-source.c (tui_set_source_content_nil): Update.
6066 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6067 has_break.
6068 * tui/tui-data.h (enum tui_bp_flag): New.
6069 (tui_bp_flags): New enum flags type.
6070 (struct tui_source_element) <break_mode>: Change type. Rename
6071 from has_break.
6072 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6073 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6074 constants.
6075 * tui/tui-winsource.h: Fix comment.
6076
350fab54
AH
60772019-07-04 Alan Hayward <alan.hayward@arm.com>
6078
6079 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6080 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6081 (store_fpregs_to_thread)
6082 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6083 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6084 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6085 (IWMMXT_REGS_SIZE): Add define.
6086 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6087 (fetch_vfp_regs, store_vfp_regs)
6088 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6089 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6090
f0452268
AH
60912019-07-04 Alan Hayward <alan.hayward@arm.com>
6092
6093 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6094 defines.
6095 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6096 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6097 (ARM_INT_REGISTER_SIZE): ...to this.
6098 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6099 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6100 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6101 (arm_linux_collect_gregset, supply_nwfpe_register)
6102 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6103 defines.
6104 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6105 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6106 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6107 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6108 (arm_return_in_memory, arm_store_return_value)
6109 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6110 (arm_record_ld_st_multiple): Likewise.
6111 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6112 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6113
e935475c
AH
61142019-07-04 Alan Hayward <alan.hayward@arm.com>
6115
6116 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6117 AARCH64_DISPLACED_MODIFIED_INSNS.
6118 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6119 (aarch64_displaced_step_copy_insn): Likewise.
6120 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6121 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6122 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6123 ARM_DISPLACED_MODIFIED_INSNS.
6124 * arm-tdep.c (arm_gdbarch_init): Likewise.
6125 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6126 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6127 (struct arm_displaced_step_closure): Use
6128 ARM_DISPLACED_MODIFIED_INSNS.
6129
df0bb381
AH
61302019-07-04 Alan Hayward <alan.hayward@arm.com>
6131
6132 * features/Makefile: Remove unused xml files.
6133 * features/aarch64.xml: Remove.
6134 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6135 * features/i386/amd64-avx-avx512.xml: Remove.
6136 * features/i386/amd64-avx-linux.xml: Remove.
6137 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6138 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6139 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6140 * features/i386/amd64-avx-mpx.xml: Remove.
6141 * features/i386/amd64-avx.xml: Remove.
6142 * features/i386/amd64-linux.xml: Remove.
6143 * features/i386/amd64-mpx-linux.xml: Remove.
6144 * features/i386/amd64-mpx.xml: Remove.
6145 * features/i386/amd64.xml: Remove.
6146 * features/i386/i386-avx-avx512-linux.xml: Remove.
6147 * features/i386/i386-avx-avx512.xml: Remove.
6148 * features/i386/i386-avx-linux.xml: Remove.
6149 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6150 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6151 * features/i386/i386-avx-mpx-linux.xml: Remove.
6152 * features/i386/i386-avx-mpx.xml: Remove.
6153 * features/i386/i386-avx.xml: Remove.
6154 * features/i386/i386-linux.xml: Remove.
6155 * features/i386/i386-mmx-linux.xml: Remove.
6156 * features/i386/i386-mmx.xml: Remove.
6157 * features/i386/i386-mpx-linux.xml: Remove.
6158 * features/i386/i386-mpx.xml: Remove.
6159 * features/i386/i386.xml: Remove.
6160 * features/i386/x32-avx-avx512-linux.xml: Remove.
6161 * features/i386/x32-avx-linux.xml: Remove.
6162 * features/i386/x32-linux.xml: Remove.
6163
edd6266a
AH
61642019-07-04 Alan Hayward <alan.hayward@arm.com>
6165
6166 * regformats/aarch64.dat: Remove.
6167 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6168 * regformats/i386/amd64-avx-linux.dat: Remove.
6169 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6170 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6171 * regformats/i386/amd64-linux.dat: Remove.
6172 * regformats/i386/amd64-mpx-linux.dat: Remove.
6173 * regformats/i386/amd64.dat: Remove.
6174 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6175 * regformats/i386/i386-avx-linux.dat: Remove.
6176 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6177 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6178 * regformats/i386/i386-linux.dat: Remove.
6179 * regformats/i386/i386-mmx-linux.dat: Remove.
6180 * regformats/i386/i386-mpx-linux.dat: Remove.
6181 * regformats/i386/i386.dat: Remove.
6182 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6183 * regformats/i386/x32-avx-linux.dat: Remove.
6184 * regformats/i386/x32-linux.dat: Remove.
6185
2b40fda7
AH
61862019-07-04 Alan Hayward <alan.hayward@arm.com>
6187
6188 * aarch64-tdep.c: Remove xml self tests.
6189 * amd64-linux-tdep.c: Likewise.
6190 * amd64-tdep.c: Likewise.
6191 * i386-linux-tdep.c: Likewise.
6192 * i386-tdep.c: Likewise.
6193
5f4ba3e7
PA
61942019-07-03 Pedro Alves <palves@redhat.com>
6195
6196 PR cli/24732
6197 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6198 (pipe_cmd_option_defs): New.
6199 (make_pipe_cmd_options_def_group): New.
6200 (pipe_command): Use gdb::option::process_options.
6201 (pipe_command_completer): New function.
6202 (_initialize_cli_cmds): Install completer for "pipe" command.
6203
3d9be6f5
PA
62042019-07-03 Pedro Alves <palves@redhat.com>
6205
6206 * cli/cli-option.c (union option_value) <string>: New field.
6207 (struct option_def_and_value): Add ctor, move ctor, dtor and
6208 use DISABLE_COPY_AND_ASSIGN.
6209 (option_def_and_value::clear_value): New.
6210 (parse_option, save_option_value_in_ctx, get_val_type_str)
6211 (add_setshow_cmds_for_options): Handle var_string.
6212 * cli-option.h (union option_def::var_address) <string>: New
6213 field.
6214 (struct string_option_def): New.
6215 * maint-test-options.c (struct test_options_opts): Add default
6216 ctor and use DISABLE_COPY_AND_ASSIGN.
6217 <string_opt>: New field.
6218 (test_options_opts::~test_options_opts): New.
6219 (test_options_opts::dump): Also dump "-string".
6220 (test_options_option_defs): Install "string.
6221
41fc454c
PA
62222019-07-03 Pedro Alves <palves@redhat.com>
6223
6224 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6225 option_value with a null enumeration.
6226 (complete_options): Save the option values in the context.
6227 (save_option_value_in_ctx): New, factored out from ...
6228 (process_options): ... here.
6229 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6230 of the function.
6231 * maint-test-options.c (test_options_opts::dump): New, factored
6232 out from ...
6233 (maintenance_test_options_command_mode): ... here.
6234 (maintenance_test_options_command_completion_result): Delete.
6235 (maintenance_test_options_command_completion_text): Update
6236 comment.
6237 (maintenance_show_test_options_completion_result): Change
6238 prototype. Just print
6239 maintenance_test_options_command_completion_text.
6240 (save_completion_result): New.
6241 (maintenance_test_options_completer_mode): Pass options context to
6242 complete_options, and then save a dump.
6243 (_initialize_maint_test_options): Use add_cmd to install "maint
6244 show test-options-completion-result".
6245
fdbc9870
PA
62462019-07-03 Pedro Alves <palves@redhat.com>
6247
6248 * NEWS (New commands): Mention "with" and "maint with".
6249 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6250 (with_command, with_command_completer): New.
6251 (pipe_command): Adjust to new repeat_previous
6252 interface.
6253 (_initialize_cli_cmds): Install the "with" command and its "w"
6254 alias.
6255 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6256 declarations.
6257 * cli/cli-setshow.c (parse_cli_var_uinteger)
6258 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6259 argument strings for all var_types.
6260 (get_setshow_command_value_string): New, factored out from ...
6261 (do_show_command): ... this.
6262 * cli/cli-setshow.h: Include <string>.
6263 (get_setshow_command_value_string): Declare.
6264 * command.h (repeat_previous): Now returns const char *. Adjust
6265 comment.
6266 * maint.c: Include "cli/cli-cmds.h".
6267 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6268 (_initialize_maint_cmds): Register the "maintenance with" command.
6269 * top.c (repeat_previous): Move bits from pipe_command here:
6270 Return the saved command line, if any; error out if there's no
6271 command to relaunch.
6272
c6ac8931
PA
62732019-07-03 Pedro Alves <palves@redhat.com>
6274
6275 * NEWS (New commands): Mention "maint set/show test-settings"
6276 instead of "maint test-settings".
6277 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6278 (maintenance_test_settings_set_list): Rename to ...
6279 (maintenance_set_test_settings_list): ... this.
6280 (maintenance_test_settings_show_list): Rename to ...
6281 (maintenance_show_test_settings_list): ... this.
6282 (maintenance_test_settings_cmd): Delete.
6283 (maintenance_test_settings_set_cmd): ...
6284 (maintenance_set_test_settings_cmd): ... this.
6285 (maintenance_test_settings_show_cmd): ...
6286 (maintenance_show_test_settings_cmd): ... this.
6287 (maintenance_test_settings_show_value_cmd):
6288 (maintenance_show_test_settings_value_cmd): ... this.
6289 (_initialize_maint_test_settings): No longer install the "maint
6290 test-settings" prefix command. Rename "maint test-settings set"
6291 to "maint set test-settings", and "maint test-settings show" to
6292 "maint show test-settings". Adjust all subcommands.
6293
d1fcf2fd
PA
62942019-07-03 Pedro Alves <palves@redhat.com>
6295
6296 * maint-test-settings.c: Fix file's intro comment. Replace all
6297 references to "test-options" with references to "test-settings",
6298 in comments.
6299
970f9d09
PA
63002019-07-03 Pedro Alves <palves@redhat.com>
6301
6302 * maint-test-settings.c (maintenance_test_settings_xxx)
6303 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6304 New.
6305 (maintenance_test_settings_enums): Use them.
6306 (maintenance_test_settings_enum): Default to
6307 maintenance_test_settings_xxx.
6308 (_initialize_maint_test_settings): Initialize
6309 MAINTENANCE_TEST_SETTINGS_FILENAME.
6310
f3869b1a
SM
63112019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6312
6313 * breakpoint.h (remove_breakpoints_inf): Change return type to
6314 void, move function documentation here.
6315 * breakpoint.c (remove_breakpoints_inf): Change return type to
6316 void, move function documentation to header.
6317
54d66006
PA
63182019-07-02 Pedro Alves <palves@redhat.com>
6319
6320 * NEWS (Completion improvements): Mention "info threads".
6321 * thread.c (struct info_threads_opts, info_threads_option_defs)
6322 (make_info_threads_options_def_group): New.
6323 (info_threads_command): Use gdb::option::process_options.
6324 (info_threads_command_completer): New.
6325 (_initialize_thread): Use gdb::option::build_help to build the
6326 help text for "info threads".
6327
854f6088
SM
63282019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6329
6330 * defs.h (generic_load): Move from here...
6331 * symfile.h (generic_load): ... to here. Rename name parameter
6332 to args.
6333 * symfile.c (generic_load): Add comment.
6334
54ee4252
TT
63352019-07-01 Tom Tromey <tromey@adacore.com>
6336
6337 * dwarf2read.c
6338 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6339 declaration of without_params. Fix formatting.
6340
65392b3e
TT
63412019-07-01 Tom Tromey <tromey@adacore.com>
6342
6343 * ada-exp.y (find_primitive_type): Update.
6344 * ada-lang.h (ada_lookup_symbol): Update.
6345 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6346 parameter.
6347 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6348
7d7571f0
SDJ
63492019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6350
6351 PR breakpoints/24541
6352 * gdbarch.c: Regenerate.
6353 * gdbarch.h: Regenerate.
6354 * gdbarch.sh: Add 'stap_adjust_register'.
6355 * i386-tdep.c: Include '<unordered_set>'.
6356 (i386_stap_adjust_register): New function.
6357 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6358 * stap-probe.c (stap_parse_register_operand): Call
6359 'gdbarch_stap_adjust_register'.
6360
5af5392a
SDJ
63612019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6362
6363 PR python/24742
6364 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6365 * python/python.c (do_start_initialization): Use 'xmalloc'
6366 instead of 'PyMem_Malloc'.
6367
10d06d82
TT
63682019-06-28 Tom Tromey <tromey@adacore.com>
6369
6370 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6371 for Ada.
6372
1b7f24cd
TT
63732019-06-27 Tom Tromey <tromey@adacore.com>
6374
6375 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6376 objfile_key.
6377 (arm_find_mapping_symbol, arm_record_special_symbol)
6378 (_initialize_arm_tdep): Update.
6379 (arm_objfile_data_free): Remove.
6380
3d507ff2
TT
63812019-06-27 Tom Tromey <tromey@adacore.com>
6382
6383 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6384 to cp_print_static_field.
6385
762c164d
TT
63862019-06-26 Tom Tromey <tromey@adacore.com>
6387
6388 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6389 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6390 declare.
6391
aa2f9bcf
AH
63922019-06-26 Alan Hayward <alan.hayward@arm.com>
6393
6394 * features/aarch64-core.c (create_feature_aarch64_core):
6395 Regenerate.
6396 * features/aarch64-core.xml: Add cpsr flags.
6397
3426ae57
AH
63982019-06-26 Alan Hayward <alan.hayward@arm.com>
6399
6400 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6401 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6402
4838e44c
SM
64032019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6404
6405 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6406 field.
6407 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6408 use.
6409 (arm_record_special_symbol): Don't insert new symbol in sorted
6410 position, push it at the end.
6411
54cc7474
SM
64122019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6413
6414 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6415 (arm_mapping_symbol_s): Remove.
6416 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6417 (arm_mapping_symbol_vec): New typedef.
6418 (struct arm_per_objfile): Add constructor.
6419 <section_maps>: Change type to
6420 std::unique_ptr<arm_mapping_symbol_vec[]>.
6421 (arm_compare_mapping_symbols): Remove.
6422 (arm_find_mapping_symbol): Adjust to section_maps type change.
6423 (arm_objfile_data_free): Call delete on arm_per_objfile.
6424 (arm_record_special_symbol): Adjust to section_maps type change.
6425 Allocate arm_per_objfile with new.
6426
b65b566c
PW
64272019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6428
6429 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6430 with the command prefix.
6431
c2fc64f5
TT
64322019-06-25 Tom Tromey <tom@tromey.com>
6433
6434 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6435 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6436
fb54fa76
TT
64372019-06-25 Tom Tromey <tom@tromey.com>
6438
6439 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6440 type.
6441 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6442 protected.
6443
f7952c57
TT
64442019-06-25 Tom Tromey <tom@tromey.com>
6445
6446 * tui/tui-winsource.c
6447 (tui_source_window_base::set_is_exec_point_at): Add check against
6448 LOA_ADDRESS.
6449
17568d78
TT
64502019-06-25 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-source.c (tui_set_source_content): Don't check before
6453 xfree.
6454 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6455
53e7cdba
TT
64562019-06-25 Tom Tromey <tom@tromey.com>
6457
6458 * tui/tui-winsource.h (tui_update_source_window_as_is)
6459 (tui_alloc_source_buffer, tui_line_is_displayed)
6460 (tui_addr_is_displayed): Change type of win_info.
6461 * tui/tui-winsource.c (tui_update_source_window_as_is)
6462 (tui_clear_source_content, tui_show_source_line)
6463 (tui_show_source_content, tui_source_window_base::refill)
6464 (tui_source_window_base::set_is_exec_point_at)
6465 (tui_source_window_base::set_is_exec_point_at)
6466 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6467 (tui_alloc_source_buffer, tui_line_is_displayed)
6468 (tui_addr_is_displayed): Change type of win_info. Update.
6469 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6470 (tui_source_window_base::do_make_visible_with_new_height):
6471 Update.
6472 * tui/tui-source.c (tui_set_source_content)
6473 (tui_set_source_content_nil)
6474 (tui_source_window::do_scroll_vertical): Update.
6475 * tui/tui-layout.c (show_layout): Update.
6476 * tui/tui-disasm.c (tui_set_disassem_content)
6477 (tui_disasm_window::do_scroll_vertical): Update.
6478 * tui/tui-data.h (tui_win_content): Remove.
6479 (struct tui_gen_win_info) <content, content_size>: Remove.
6480 (struct tui_source_element): Add initializers and destructor.
6481 (union tui_which_element, struct tui_win_element): Remove.
6482 (struct tui_source_window_base) <content>: New field.
6483 (struct tui_data_window): Remove destructor.
6484 (tui_alloc_content, tui_free_win_content)
6485 (tui_free_all_source_wins_content): Don't declare.
6486 * tui/tui-data.c (tui_initialize_static_data): Update.
6487 (init_content_element, tui_alloc_content): Remove.
6488 (~tui_gen_win_info): Update.
6489 (~tui_data_window, tui_free_all_source_wins_content)
6490 (tui_free_win_content, free_content, free_content_elements):
6491 Remove.
6492
7908abbf
TT
64932019-06-25 Tom Tromey <tom@tromey.com>
6494
6495 * tui/tui-winsource.h (tui_clear_source_content)
6496 (tui_erase_source_content, tui_show_source_content): Change type
6497 of win_info.
6498 * tui/tui-winsource.c (tui_clear_source_content)
6499 (tui_erase_source_content, tui_show_source_content): Change type
6500 of win_info.
6501 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6502 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6503 win_info.
6504 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6505 win_info.
6506 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6507
02c28df0
TT
65082019-06-25 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-winsource.c (tui_clear_source_content)
6511 (tui_source_window_base::set_is_exec_point_at): Update.
6512 * tui/tui-source.c (tui_set_source_content_nil): Update.
6513 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6514 a bool.
6515 * tui/tui-data.c (init_content_element): Update.
6516
6658b1bf
TT
65172019-06-25 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6520 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6521 * tui/tui-layout.c (init_and_make_win): Update.
6522 * tui/tui.h (enum tui_win_type): Update.
6523 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6524 tui_win_is_auxillary.
6525 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6526 tui_win_is_auxillary.
6527
21e1c91e
TT
65282019-06-25 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6531 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6532 (tui_delete_data_content_windows, tui_display_all_data)
6533 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6534 Update.
6535 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6536 * tui/tui-regs.c (tui_last_regs_line_no)
6537 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6538 (tui_show_registers): Update.
6539 (tui_show_register_group): Return void. Update.
6540 (tui_display_registers_from, tui_display_reg_element_at_line)
6541 (tui_display_registers_from_line, tui_check_register_values):
6542 Update.
6543 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6544 member.
6545 (struct tui_data_window) <regs_content>: Now a std::vector.
6546 <regs_content_count>: Remove.
6547 (tui_add_content_elements, tui_free_data_content): Don't declare.
6548 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6549 (init_content_element): Remove DATA_WIN case. Add assert.
6550 (tui_add_content_elements): Remove.
6551 (tui_data_window): Update.
6552 (tui_free_data_content): Remove.
6553 (free_content_elements): Remove DATA_WIN case.
6554
115ac53b
TT
65552019-06-25 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-data.c (tui_data_item_window): Update.
6558 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6559 * tui/tui-windata.c (tui_display_all_data)
6560 (tui_display_data_from_line): Update.
6561 (tui_check_data_values): Remove.
6562 * tui/tui-regs.c (tui_show_register_group)
6563 (tui_display_reg_element_at_line): Update.
6564 * tui/tui-hooks.c (tui_register_changed)
6565 (tui_refresh_frame_and_register_information): Call
6566 tui_check_register_values.
6567 * tui/tui-data.h (struct tui_data_window) <data_content,
6568 data_content_count, data_type>: Remove.
6569 (enum tui_data_type): Remove.
6570
6571 * tui/tui-data.c (tui_data_window::clear_detail)
6572 (~tui_data_window): Update.
6573
eaf9738b
TT
65742019-06-25 Tom Tromey <tom@tromey.com>
6575
6576 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6577 declare.
6578 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6579 Rename from tui_first_data_item_displayed. Update.
6580 (tui_data_window::refresh_all)
6581 (tui_data_window::do_scroll_vertical): Update.
6582 * tui/tui-data.h (struct tui_data_window)
6583 <first_data_item_displayed>: Declare new method.
6584
31ca4723
TT
65852019-06-25 Tom Tromey <tom@tromey.com>
6586
6587 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6588 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6589 contents...
6590 (tui_initialize_static_data): ...here.
6591
41bcff7f
TT
65922019-06-25 Tom Tromey <tom@tromey.com>
6593
6594 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6595 (tui_display_registers_from, tui_check_register_values): Update.
6596 (tui_display_register): Remove win_info parameter; update.
6597 (tui_get_register): Change type of parameters.
6598 * tui/tui-data.h (struct tui_data_element): Remove.
6599 (union tui_which_element) <data>: Remove.
6600 <data_window>: Change type.
6601 (struct tui_data_item_window): New.
6602 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6603 case. Add assert.
6604 (~tui_data_item_window): New destructor.
6605 (free_content_elements): Remove DATA_ITEM_WIN case.
6606
d2802c33
TT
66072019-06-25 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6610 Remove.
6611
dd835f8b
TT
66122019-06-25 Tom Tromey <tom@tromey.com>
6613
6614 * tui/tui-data.h (struct tui_command_element): Remove.
6615 (union tui_which_element) <command>: Remove.
6616 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6617 assert.
6618 (free_content_elements): Remove CMD_WIN case.
6619
bd7db367
TT
66202019-06-25 Tom Tromey <tom@tromey.com>
6621
6622 * tui/tui-layout.c (tui_set_layout): Update.
6623 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6624 * tui/tui-data.c (layout_def): Update.
6625
3add462f
TT
66262019-06-25 Tom Tromey <tom@tromey.com>
6627
6628 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6629 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6630 (tui_source_window_base::set_new_height): Update.
6631 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6632 Update.
6633 (tui_set_locator_fullname, tui_set_locator_info)
6634 (tui_show_frame_info): Update.
6635 * tui/tui-source.c (tui_set_source_content)
6636 (tui_source_is_displayed): Update.
6637 * tui/tui-layout.c (show_source_disasm_command, show_data)
6638 (show_source_or_disasm_and_command): Update.
6639 * tui/tui-disasm.c (tui_set_disassem_content)
6640 (tui_get_begin_asm_address): Update.
6641 * tui/tui-data.h (struct tui_locator_element): Remove.
6642 (union tui_which_element) <locator>: Remove.
6643 (struct tui_locator_window): New.
6644 (tui_locator_win_info_ptr): Change return type.
6645 * tui/tui-data.c (_locator): Change type.
6646 (tui_locator_win_info_ptr): Change return type.
6647 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6648 (tui_alloc_content): Add assert.
6649
489e9d8b
TT
66502019-06-25 Tom Tromey <tom@tromey.com>
6651
6652 * tui/tui-winsource.c
6653 (tui_exec_info_window::maybe_allocate_content): New method.
6654 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6655 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6656 (make_source_or_disasm_window): Add cast.
6657 * tui/tui-data.h (union tui_which_element) <simple_string>:
6658 Remove.
6659 (struct tui_source_info): New.
6660 (struct tui_source_window_base) <execution_info>: Change type.
6661 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6662 case, and add assert.
6663 (tui_alloc_content): Add assert.
6664
c3fabb7d
TT
66652019-06-25 Tom Tromey <tom@tromey.com>
6666
6667 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6668 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6669 * tui/tui-data.c (tui_alloc_win_info): Remove.
6670
bbc228ee
TT
66712019-06-25 Tom Tromey <tom@tromey.com>
6672
6673 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6674 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6675 can_highlight.
6676
5fcee43a
TT
66772019-06-25 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6680 make_visible_with_new_height method.
6681 (tui_win_info::make_visible_with_new_height): New method.
6682 (tui_source_window_base::do_make_visible_with_new_height)
6683 (tui_data_window::do_make_visible_with_new_height)
6684 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6685 (make_visible_with_new_height): Remove.
6686 (tui_resize_all, tui_adjust_win_heights): Use
6687 make_visible_with_new_height method.
6688 * tui/tui-data.h (struct tui_win_info)
6689 <do_make_visible_with_new_height, make_visible_with_new_height>:
6690 New methods.
6691 (struct tui_source_window_base, struct tui_data_window)
6692 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6693 methods.
6694
d83f1fe6
TT
66952019-06-25 Tom Tromey <tom@tromey.com>
6696
6697 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6698 method.
6699 (update_tab_width): Call update_tab_width method.
6700 * tui/tui-data.h (struct tui_win_info)
6701 (struct tui_source_window_base) <update_tab_width>: New methods.
6702
17374de4
TT
67032019-06-25 Tom Tromey <tom@tromey.com>
6704
6705 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6706 parameter.
6707 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6708 parameter.
6709 (tui_gen_win_info::make_visible): Update.
6710 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6711 parameter.
6712 * tui/tui-data.h (enum tui_box): New enum.
6713 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6714
f936bca2
TT
67152019-06-25 Tom Tromey <tom@tromey.com>
6716
6717 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6718 init_and_make_win for EXEC_INFO_WIN.
6719 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6720 longer inline.
6721 (struct tui_win_info) <~tui_win_info>: Inline.
6722 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6723 Don't declare.
6724 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6725 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6726 Remove.
6727 (tui_initialize_static_data): Update.
6728 (~tui_gen_win_info): Handle more cleanup here.
6729 (~tui_source_window_base): Delete "execution_info".
6730 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6731
d6ba6a11
TT
67322019-06-25 Tom Tromey <tom@tromey.com>
6733
6734 * tui/tui-layout.c (make_command_window): Don't set
6735 can_highlight.
6736 (show_source_disasm_command): Call the reset method.
6737 (show_data): Don't set can_highlight. Call the reset method.
6738 (tui_gen_win_info::reset): Rename from init_gen_win_info
6739 (init_and_make_win): Simplify. Return tui_gen_win_info.
6740 (show_source_or_disasm_and_command): Call the reset method.
6741 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6742 (struct tui_cmd_window): Set can_highlight.
6743
48a3bd16
TT
67442019-06-25 Tom Tromey <tom@tromey.com>
6745
6746 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6747 from make_visible.
6748 (tui_make_visible, tui_make_invisible): Rewrite.
6749 (tui_win_info::make_visible): Remove.
6750 (tui_source_window_base::make_visible): Update.
6751 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6752 method. Moved from...
6753 (struct tui_win_info) <make_visible>: ...here.
6754
c3bd716f
TT
67552019-06-25 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-winsource.c
6758 (tui_source_window_base::do_scroll_horizontal): Remove direction
6759 parameter.
6760 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6761 direction parameter.
6762 * tui/tui-win.c (tui_win_info::forward_scroll)
6763 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6764 (tui_win_info::right_scroll): Update.
6765 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6766 direction parameter.
6767 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6768 direction parameter.
6769 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6770 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6771 Remove direction parameter.
6772 (struct tui_source_window_base, struct tui_source_window)
6773 (struct tui_disasm_window, struct tui_data_window)
6774 (struct tui_cmd_window): Update.
6775
21c32dca
TT
67762019-06-25 Tom Tromey <tom@tromey.com>
6777
6778 * tui/tui-winsource.h (tui_set_exec_info_content)
6779 (tui_show_exec_info_content, tui_erase_exec_info_content)
6780 (tui_clear_exec_info_content, tui_update_exec_info): Change
6781 argument to tui_source_window_base.
6782 * tui/tui-winsource.c (tui_set_exec_info_content)
6783 (tui_show_exec_info_content, tui_erase_exec_info_content)
6784 (tui_clear_exec_info_content, tui_update_exec_info): Change
6785 argument to tui_source_window_base.
6786
73fbdc65
TT
67872019-06-25 Tom Tromey <tom@tromey.com>
6788
6789 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6790 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6791
33325343
TT
67922019-06-25 Tom Tromey <tom@tromey.com>
6793
6794 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6795 check.
6796
29d2c474
TT
67972019-06-25 Tom Tromey <tom@tromey.com>
6798
6799 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6800 type to void.
6801 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6802 type to void.
6803 * tui/tui-source.c (tui_set_source_content): Update.
6804 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6805
152f3f4b
TT
68062019-06-25 Tom Tromey <tom@tromey.com>
6807
6808 * tui/tui-win.c (window_name_completer, tui_set_focus)
6809 (tui_all_windows_info): Use name method.
6810 * tui/tui-data.h (struct tui_gen_win_info)
6811 (struct tui_source_window, struct tui_disasm_window)
6812 (struct tui_data_window, struct tui_cmd_window) <name>: New
6813 method.
6814 (tui_win_name): Don't declare.
6815 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6816 (tui_win_name): Remove.
6817
be4da588
TT
68182019-06-25 Tom Tromey <tom@tromey.com>
6819
6820 * tui/tui-winsource.h (tui_update_source_window)
6821 (tui_update_source_window_as_is): Change parameter type.
6822 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6823 to be a tui_source_window_base.
6824 (tui_update_source_window_as_is): Likewise.
6825 * tui/tui-win.c (make_visible_with_new_height): Update.
6826
5b81daba
TT
68272019-06-25 Tom Tromey <tom@tromey.com>
6828
6829 * tui/tui-winsource.c (tui_erase_source_content)
6830 (tui_show_source_content, tui_show_exec_info_content)
6831 (tui_erase_exec_info_content): Use refresh_window method.
6832 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6833 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6834 from tui_refresh_win.
6835 (tui_data_window::refresh_window): New method.
6836 (tui_win_info::refresh, tui_source_window_base::refresh)
6837 (tui_refresh_all): Use refresh_window method.
6838 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6839 method.
6840 * tui/tui-regs.c (tui_display_register): Call refresh_window
6841 method.
6842 * tui/tui-layout.c (show_source_disasm_command)
6843 (show_source_or_disasm_and_command): Call refresh_window method.
6844 * tui/tui-data.h (struct tui_gen_win_info)
6845 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6846 New method.
6847
cb2ce893
TT
68482019-06-25 Tom Tromey <tom@tromey.com>
6849
6850 * tui/tui.c (tui_rl_other_window, tui_enable)
6851 (tui_is_window_visible, tui_get_command_dimension): Update.
6852 * tui/tui-winsource.c (tui_update_source_window_as_is)
6853 (tui_clear_source_content, tui_erase_source_content)
6854 (tui_show_source_line, tui_source_window_base::refill)
6855 (tui_source_window_base::do_scroll_horizontal)
6856 (tui_source_window_base::set_is_exec_point_at)
6857 (tui_update_breakpoint_info, tui_set_exec_info_content)
6858 (tui_alloc_source_buffer, tui_line_is_displayed)
6859 (tui_addr_is_displayed): Update.
6860 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6861 (tui_check_and_display_highlight_if_needed)
6862 (tui_win_info::make_visible, tui_win_info::refresh)
6863 (tui_refresh_all): Update.
6864 * tui/tui-windata.c (tui_first_data_item_displayed)
6865 (tui_delete_data_content_windows, tui_erase_data_content)
6866 (tui_display_all_data, tui_data_window::refresh_all)
6867 (tui_check_data_values): Update.
6868 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6869 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6870 (tui_win_info::backward_scroll, tui_refresh_all_win)
6871 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6872 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6873 (tui_source_window_base::set_new_height)
6874 (tui_data_window::set_new_height)
6875 (make_invisible_and_set_new_height)
6876 (make_visible_with_new_height, new_height_ok)
6877 (parse_scrolling_args): Update.
6878 * tui/tui-stack.c (tui_show_frame_info): Update.
6879 * tui/tui-source.c (tui_set_source_content)
6880 (tui_set_source_content_nil, tui_source_is_displayed)
6881 (tui_source_window::do_scroll_vertical): Update.
6882 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6883 (tui_display_registers_from, tui_display_reg_element_at_line)
6884 (tui_check_register_values, tui_reg_command): Update.
6885 * tui/tui-layout.c (tui_default_win_height)
6886 (show_source_disasm_command, show_data, init_and_make_win)
6887 (show_source_or_disasm_and_command): Update.
6888 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6889 (tui_redisplay_readline, tui_mld_flush)
6890 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6891 (tui_getc): Update.
6892 * tui/tui-disasm.c (tui_set_disassem_content)
6893 (tui_disasm_window::do_scroll_vertical): Update.
6894 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6895 Now virtual.
6896 (struct tui_win_info): Derive from tui_gen_win_info.
6897 <~tui_win_info>: Mark as override.
6898 <generic>: Remove member.
6899 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6900 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6901 (~tui_data_window, ~tui_win_info)
6902 (tui_free_all_source_wins_content): Update.
6903 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6904
ab313b35
TT
69052019-06-25 Tom Tromey <tom@tromey.com>
6906
6907 * tui/tui-layout.c (init_and_make_win): Use new.
6908 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6909 destructor, initializers.
6910 (tui_alloc_generic_win_info): Don't declare.
6911 * tui/tui-data.c (_locator): Add argument to constructor.
6912 (source_win, disasm_win): New globals.
6913 (exec_info): Remove.
6914 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6915 Update.
6916 (tui_alloc_generic_win_info): Remove.
6917 (init_content_element): Use new.
6918 (tui_win_info::tui_win_info): Update.
6919 (free_content_elements) <case DATA_WIN>: Use delete.
6920
dc2c33e4
TT
69212019-06-25 Tom Tromey <tom@tromey.com>
6922
6923 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6924 * tui/tui-windata.c (tui_first_data_item_displayed)
6925 (tui_delete_data_content_windows): Update.
6926 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6927 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6928 (tui_display_registers_from, tui_check_register_values): Update.
6929 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6930 pointer.
6931 * tui/tui-data.c (init_content_element): Update. Allocate the new
6932 window.
6933 (tui_free_data_content): Update.
6934 (free_content_elements) <case DATA_WIN>: Free the window.
6935
214a5cbe
TT
69362019-06-25 Tom Tromey <tom@tromey.com>
6937
6938 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6939 Update.
6940 * tui/tui-layout.c (make_command_window)
6941 (show_source_disasm_command, show_data, init_and_make_win)
6942 (show_source_or_disasm_and_command): Update.
6943 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6944 method.
6945 <can_highight, is_highlighted>: Now bool.
6946 (tui_set_win_highlight): Don't declare.
6947 * tui/tui-data.c (tui_set_win_highlight): Remove.
6948
8e2daf15
TT
69492019-06-25 Tom Tromey <tom@tromey.com>
6950
6951 * tui/tui-wingeneral.c (make_visible): Remove check of window
6952 type.
6953
8903bd8a
TT
69542019-06-25 Tom Tromey <tom@tromey.com>
6955
6956 * tui/tui-win.c (tui_win_info::max_height)
6957 (tui_cmd_window::max_height): New methods.
6958 (new_height_ok): Call max_height.
6959 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6960 <max_height>: New method.
6961
3f02ce1e
TT
69622019-06-25 Tom Tromey <tom@tromey.com>
6963
6964 * tui/tui-win.c (tui_source_window_base::set_new_height)
6965 (tui_data_window::set_new_height): New methods.
6966 (make_invisible_and_set_new_height): Call set_new_height method.
6967 * tui/tui-data.h (struct tui_win_info)
6968 (struct tui_source_window_base, struct tui_data_window)
6969 <set_new_height>: New method.
6970
1825f487
TT
69712019-06-25 Tom Tromey <tom@tromey.com>
6972
6973 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6974 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6975 tui_refresh_data_win.
6976 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6977 method.
6978 (tui_refresh_all_win): Call the refresh_all method.
6979 (tui_set_focus): Likewise.
6980 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6981 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6982 Likewise.
6983
ad54d15b
TT
69842019-06-25 Tom Tromey <tom@tromey.com>
6985
6986 * tui/tui-winsource.h (tui_refill_source_window)
6987 (tui_set_is_exec_point_at): Don't declare.
6988 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6989 (tui_source_window_base::refill): Rename from
6990 tui_refill_source_window.
6991 (tui_source_window_base::do_scroll_horizontal): Update.
6992 (tui_source_window_base::set_is_exec_point_at): Rename from
6993 tui_set_is_exec_point_at.
6994 (tui_update_all_breakpoint_info): Update.
6995 * tui/tui-stack.c (tui_show_frame_info): Update.
6996 * tui/tui-layout.c (show_data): Add cast.
6997 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6998 * tui/tui-data.h (struct tui_source_window_base) <refill,
6999 set_is_exec_point_at>: New methods.
7000 (tui_source_windows, tui_add_to_source_windows): Update types.
7001 (tui_add_to_source_windows): Remove redundant declaration.
7002 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7003 (tui_source_windows): Change return type.
7004 (tui_clear_source_windows_detail): Update.
7005 (tui_add_to_source_windows): Change type of parameter.
7006 (tui_free_all_source_wins_content): Update.
7007
2042b506
TT
70082019-06-25 Tom Tromey <tom@tromey.com>
7009
7010 * tui/tui-wingeneral.c (tui_win_info::refresh)
7011 (tui_source_window_base::refresh): New methods.
7012 (tui_refresh_all): Call the refresh method.
7013 * tui/tui-data.h (struct tui_win_info)
7014 (struct tui_source_window_base) <refresh>: New method.
7015
56122977
TT
70162019-06-25 Tom Tromey <tom@tromey.com>
7017
7018 * tui/tui.h (tui_is_window_visible): Return bool.
7019 * tui/tui.c (tui_is_window_visible): Return bool.
7020 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7021 (tui_make_visible, tui_make_invisible)
7022 (tui_win_info::make_visible)
7023 (tui_source_window_base::make_visible, make_all_visible)
7024 (tui_make_all_visible, tui_make_all_invisible): Update.
7025 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7026 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7027 bool.
7028 (struct tui_win_info, struct tui_source_window_base)
7029 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7030 * tui/tui-data.c (tui_init_generic_part): Update.
7031
cda37efb
TT
70322019-06-25 Tom Tromey <tom@tromey.com>
7033
7034 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7035 (tui_source_window_base::make_visible): New methods.
7036 (make_all_visible): Make method call.
7037 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7038 (struct tui_source_window_base, struct tui_cmd_window): Override
7039 make_visible.
7040 (tui_win_is_source_type): Don't declare.
7041 * tui/tui-data.c (tui_win_is_source_type): Remove.
7042
6a0ee02c
TT
70432019-06-25 Tom Tromey <tom@tromey.com>
7044
7045 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7046 NULL check.
7047
63901aec
TT
70482019-06-25 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7051 Inline constructor. Add initializers for members.
7052 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7053 constructors; now inline in class.
7054
ceb13a13
TT
70552019-06-25 Tom Tromey <tom@tromey.com>
7056
7057 * tui/tui-regs.c (tui_show_registers): Update.
7058 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7059 bool.
7060 * tui/tui-data.c (tui_data_window::clear_detail)
7061 (tui_data_window): Update.
7062
238eb706
TT
70632019-06-25 Tom Tromey <tom@tromey.com>
7064
7065 * tui/tui-windata.c (tui_display_all_data)
7066 (tui_display_data_from_line, tui_display_data_from)
7067 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7068 Update.
7069 * tui/tui-regs.c (tui_last_regs_line_no)
7070 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7071 (tui_show_registers, tui_show_register_group)
7072 (tui_display_registers_from, tui_display_reg_element_at_line)
7073 (tui_display_registers_from_line, tui_check_register_values)
7074 (tui_reg_next, tui_reg_prev): Update.
7075 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7076 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7077 tui_data_window.
7078 (struct tui_win_info) <detail>: Remove. Add new fields from
7079 tui_data_info.
7080 (TUI_DATA_WIN): Add cast.
7081 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7082 (~tui_data_window): Simplify.
7083
81491aa0
TT
70842019-06-25 Tom Tromey <tom@tromey.com>
7085
7086 * tui/tui-layout.c (show_source_disasm_command)
7087 (show_source_or_disasm_and_command): Update.
7088 * tui/tui-io.c (update_cmdwin_start_line)
7089 (tui_redisplay_readline): Update.
7090 * tui/tui-data.h (struct tui_command_info): Remove.
7091 (struct tui_win_info) <detail>: Remove command_info member.
7092 (struct tui_data_window) <start_line>: New member, from
7093 tui_command_info.
7094 (TUI_CMD_WIN): Add casts.
7095
e6e41501
TT
70962019-06-25 Tom Tromey <tom@tromey.com>
7097
7098 * tui/tui-winsource.c (tui_update_source_window)
7099 (tui_refill_source_window)
7100 (tui_source_window_base::do_scroll_horizontal)
7101 (tui_update_breakpoint_info, tui_set_exec_info_content)
7102 (tui_show_exec_info_content, tui_erase_exec_info_content)
7103 (tui_clear_exec_info_content): Update.
7104 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7105 Update.
7106 * tui/tui-win.c (make_invisible_and_set_new_height)
7107 (make_visible_with_new_height): Update.
7108 * tui/tui-source.c (tui_set_source_content)
7109 (tui_show_symtab_source): Update.
7110 * tui/tui-layout.c (extract_display_start_addr)
7111 (show_source_disasm_command, show_data)
7112 (make_source_or_disasm_window)
7113 (show_source_or_disasm_and_command): Update.
7114 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7115 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7116 "gdbarch".
7117 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7118 to tui_source_window_base.
7119 (struct tui_win_info) <detail>: Remove source_info member.
7120 (struct tui_source_window_base) <has_locator>: Inline.
7121 Move contents from tui_source_info; rename has_locator member to
7122 m_has_locator.
7123 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7124 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7125 header file.
7126 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7127 Simplify.
7128 (tui_free_all_source_wins_content): Cast to
7129 tui_source_window_base.
7130
44f0e208
TT
71312019-06-25 Tom Tromey <tom@tromey.com>
7132
7133 * tui/tui-win.c (make_invisible_and_set_new_height)
7134 (make_visible_with_new_height): Call has_locator method.
7135 * tui/tui-layout.c (show_source_disasm_command, show_data)
7136 (show_source_or_disasm_and_command): Update for bool change.
7137 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7138 (tui_win_info) <has_locator>: New method.
7139 (struct tui_source_window_base) <has_locator>: New method.
7140 (tui_win_has_locator): Don't declare.
7141 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7142 from tui_win_has_locator.
7143 (tui_source_window_base): Use false, not FALSE.
7144
7778b912
TT
71452019-06-25 Tom Tromey <tom@tromey.com>
7146
7147 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7148 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7149 clear_detail method directly.
7150 (tui_clear_win_detail): Remove.
7151
f83d391c
TT
71522019-06-25 Tom Tromey <tom@tromey.com>
7153
7154 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7155 "this", not TUI_DISASM_WIN.
7156
13446e05
TT
71572019-06-25 Tom Tromey <tom@tromey.com>
7158
7159 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7160 declare.
7161 * tui/tui-winsource.c
7162 (tui_source_window_base::do_scroll_horizontal): Rename from
7163 tui_horizontal_source_scroll.
7164 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7165 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7166 from tui_vertical_data_scroll.
7167 * tui/tui-win.h (tui_scroll): Don't declare.
7168 * tui/tui-win.c (tui_win_info::forward_scroll)
7169 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7170 (tui_win_info::right_scroll): Rename and update.
7171 (tui_scroll_forward_command, tui_scroll_backward_command)
7172 (tui_scroll_left_command, tui_scroll_right_command): Update.
7173 (tui_scroll): Remove.
7174 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7175 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7176 from tui_vertical_source_scroll.
7177 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7178 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7179 from tui_vertical_disassem_scroll.
7180 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7181 do_scroll_horizontal>: New methods.
7182 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7183 Likewise.
7184 (struct tui_source_window_base): Add do_scroll_horizontal.
7185 (struct tui_source_window, struct tui_disasm_window): Add
7186 do_scroll_vertical.
7187 (struct tui_data_window, struct tui_cmd_window): Add
7188 do_scroll_horizontal and do_scroll_vertical.
7189 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7190
5cf82909
TT
71912019-06-25 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-data.h (struct tui_source_window_base): New struct.
7194 (struct tui_source_window): Derive from tui_source_window_base.
7195 (struct tui_disasm_window): New struct.
7196 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7197 from tui_source_window::clear_detail.
7198 (tui_source_window_base): Rename from tui_source_window.
7199 (~tui_source_window_base): Rename from ~tui_source_window.
7200 (tui_alloc_win_info): Create a tui_disasm_window.
7201
ee1d42d6
TT
72022019-06-25 Tom Tromey <tom@tromey.com>
7203
7204 * tui/tui-data.h (struct tui_source_window)
7205 (struct tui_data_window): Declare destructors.
7206 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7207 destructors.
7208 (tui_win_info): Simplify.
7209
b4eb2452
TT
72102019-06-25 Tom Tromey <tom@tromey.com>
7211
7212 * tui/tui-winsource.c (tui_display_main)
7213 (tui_update_source_windows_with_addr)
7214 (tui_update_all_breakpoint_info): Update.
7215 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7216 (new_height_ok, parse_scrolling_args): Update.
7217 * tui/tui-stack.c (tui_show_frame_info): Update.
7218 * tui/tui-data.h (struct tui_list): Remove.
7219 (tui_source_windows): Return a reference to a std::vector.
7220 * tui/tui-data.c (source_windows): Now a std::vector.
7221 (tui_source_windows): Change return type.
7222 (tui_clear_source_windows): Rewrite.
7223 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7224 (tui_free_all_source_wins_content): Rewrite.
7225
8761a91b
TT
72262019-06-25 Tom Tromey <tom@tromey.com>
7227
7228 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7229 (struct tui_data_window, struct tui_cmd_window): Declare
7230 clear_detail method.
7231 * tui/tui-data.c (tui_source_window::clear_detail)
7232 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7233 methods.
7234 (tui_clear_win_detail): Simplify.
7235
0ed69eda
TT
72362019-06-25 Tom Tromey <tom@tromey.com>
7237
7238 * tui/tui-layout.c (make_source_window, make_disasm_window)
7239 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7240 Return the new window.
7241 (show_source_disasm_command, show_data)
7242 (show_source_or_disasm_and_command): Update.
7243
82432e10
TT
72442019-06-25 Tom Tromey <tom@tromey.com>
7245
7246 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7247 parameter. Return the new window.
7248 (show_source_disasm_command): Update and remove NULL check.
7249 (show_source_or_disasm_and_command): Update.
7250
ec328aa5
TT
72512019-06-25 Tom Tromey <tom@tromey.com>
7252
7253 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7254
33b906ab
TT
72552019-06-25 Tom Tromey <tom@tromey.com>
7256
7257 * tui/tui-data.h (struct tui_win_info): Make constructor
7258 protected. Make destructor virtual. Add initializers.
7259 (tui_source_window, tui_data_window, tui_cmd_window): New
7260 classes.
7261 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7262 constructor. Add "type" parameter.
7263 (tui_source_window, tui_data_window, tui_cmd_window): New
7264 constructors.
7265 (tui_alloc_win_info): Instantiate the appropriate subclass.
7266
e7e11af4
TT
72672019-06-25 Tom Tromey <tom@tromey.com>
7268
7269 * tui/tui-win.c (tui_resize_all): Use delete.
7270 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7271 destructor.
7272 (tui_free_window): Don't declare.
7273 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7274 Update.
7275
6792b55e
TT
72762019-06-25 Tom Tromey <tom@tromey.com>
7277
7278 * tui/tui-data.h (struct tui_win_info): Add constructor.
7279 * tui/tui-data.c (tui_alloc_win_info): Use new.
7280 (tui_free_window): Use delete.
7281
f95675e1
TT
72822019-06-22 Tom Tromey <tom@tromey.com>
7283
7284 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7285 declare.
7286 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7287
5bff081c
TT
72882019-06-22 Tom Tromey <tom@tromey.com>
7289
7290 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7291 declare.
7292 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7293
47e3f474
TV
72942019-06-22 Tom de Vries <tdevries@suse.de>
7295
7296 * dwarf2read.c (create_addrmap_from_aranges)
7297 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7298 instead of '%zu'.
7299
fd5866f6
SM
73002019-06-21 Simon Marchi <simon.marchi@efficios.com>
7301
7302 * dwarf2read.h (dwarf2_section_info_def): Remove.
7303 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7304 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7305 std::vector<dwarf2_section_info>.
7306 (struct dwo_file) <~dwo_file>: Remove.
7307 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7308 types field.
7309 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7310 (dwarf2_read_debug_names): Likewise.
7311 (create_debug_types_hash_table): Change parameter type to
7312 array_view, adjust code accordingly.
7313 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7314 (partial_die_info::fixup): Likewise.
7315 (determine_prefix): Likewise.
7316 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7317
fb1eb2f9
SM
73182019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7319
7320 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7321 gdb_bfd_ref_ptr.
7322 <~dwo_file>: Remove call to gdb_bfd_unref.
7323 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7324 gdb_bfd_ref_ptr::get.
7325
51ac9db5
SM
73262019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7327
7328 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7329 type to htab_up.
7330 * dwarf2read.c (struct dwo_file): Initialize fields.
7331 <~dwo_file>: New.
7332 (free_dwo_file): Remove, move content to ~dwo_file.
7333 (struct dwo_file_deleter): Remove.
7334 (dwo_file_up>: Remove custom deleter.
7335 (free_dwo_files): Remove.
7336 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7337 dwo_files.
7338 (process_skeletonless_type_units): Call unique_ptr::get.
7339 (allocate_dwo_file_hash_table): Add deleter to created hash
7340 table. Change return type to htab_up.
7341 (lookup_dwo_file_slot): Don't memset dwo_file, call
7342 unique_ptr::get.
7343 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7344 (create_dwo_unit_in_dwp_v2): Likewise.
7345 (open_and_init_dwo_file): Likewise.
7346 (free_dwo_file_from_slot): Remove.
7347
dc4ccb6f
SM
73482019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7349
7350 * dwarf2read.h (struct dwarf2_section_info) <readin,
7351 is_virtual>: Change type to bool.
7352 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7353 true instead of 1.
7354
e6a1c5cb
TT
73552019-06-19 Tom Tromey <tom@tromey.com>
7356
7357 * tui/tui-data.h (tui_init_content_element): Don't declare.
7358
6f6ffbeb
TT
73592019-06-19 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-data.h (tui_init_win_info): Don't declare.
7362
f23f598e
TV
73632019-06-19 Tom de Vries <tdevries@suse.de>
7364
7365 * dwarf2read.h (abstract_to_concrete): Change type to
7366 std::unordered_map<sect_offset, std::vector<sect_offset>,
7367 gdb::hash_enum<sect_offset>>.
7368
680e1bee
TT
73692019-06-19 Tom Tromey <tromey@adacore.com>
7370
7371 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7372 EVAL_AVOID_SIDE_EFFECTS specially.
7373
dcf37923
TT
73742019-06-19 Tom Tromey <tromey@adacore.com>
7375
7376 * source-cache.c (highlighter): New global.
7377 (source_cache::get_source_lines): Create a highlighter on demand.
7378
494986d5
AB
73792019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7380
7381 * defs.h (deprecated_interactive_hook): Delete declaration.
7382 * interps.c (clear_interpreter_hooks): Remove use of
7383 deprecated_interactive_hook.
7384 * top.c (deprecated_interactive_hook): Delete definition.
7385 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7386
3360b6e7
TV
73872019-06-18 Tom de Vries <tdevries@suse.de>
7388
7389 PR gdb/24515
7390 * dwarf2read.h (abstract_to_concrete): Change type from
7391 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7392 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7393 * dwarf2read.c (read_variable): Update.
7394 (dwarf2_fetch_die_loc_sect_off): Update.
7395
310b3441
TV
73962019-06-17 Tom de Vries <tdevries@suse.de>
7397
7398 PR gdb/24617
7399 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7400 accessing parent[parent_len - 1].
7401
ba9777be
PP
74022019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7403
7404 PR gdb/24364
7405 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7406 call dtrace_process_dof with NULL dof.
7407
2b9f6e89
TV
74082019-06-16 Tom de Vries <tdevries@suse.de>
7409
7410 PR gdb/24445
7411 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7412
431b3ead
TT
74132019-06-16 Tom Tromey <tom@tromey.com>
7414
7415 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7416 (make_all_visible): Use address of member.
7417
d04b44a1
TT
74182019-06-16 Tom Tromey <tom@tromey.com>
7419
7420 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7421 (tui_free_window, free_content, free_content_elements): Remove
7422 unnecessary cast.
7423 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7424 cast.
7425 * tui/tui-regs.c (tui_show_register_group)
7426 (tui_display_registers_from, tui_display_reg_element_at_line):
7427 Remove unnecessary cast.
7428
bf5142e7
AB
74292019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7430
7431 * linux-nat.c (normal_mask): Delete.
7432 (_initialize_linux_nat): Don't initialise normal_mask.
7433
c4973306
SM
74342019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7435
7436 PR gdb/24445
7437 * dwarf-index-write.h (write_psymtabs_to_index): Add
7438 dwz_basename parameter.
7439 * dwarf-index-write.c (write_gdbindex): Move file writing to
7440 write_gdbindex_1. Change return type void.
7441 (assert_file_size): Move up, remove filename parameter.
7442 (write_gdbindex_1): New function.
7443 (write_debug_names): Change return type to void, call
7444 assert_file_size.
7445 (struct index_wip_file): New struct.
7446 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7447 file logic to index_wip_file. Write index for dwz file if
7448 needed.
7449 (save_gdb_index_command): Pass basename of dwz file, if present.
7450 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7451 build-id of dwz file, if present.
7452 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7453 (dwarf2_get_dwz_file): Likewise.
7454 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7455 (dwarf2_get_dwz_file): Likewise.
7456
395f9c91
TT
74572019-06-16 Tom Tromey <tom@tromey.com>
7458
7459 * coffread.c (process_coff_symbol): Use xstrdup.
7460 * value.c (create_internalvar): Use xstrdup.
7461
cafb3438
TT
74622019-06-16 Tom Tromey <tom@tromey.com>
7463
7464 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7465 * breakpoint.c (stopin_command, stopat_command)
7466 (until_break_command, decode_location_default): Remove unnecessary
7467 cast.
7468 * utils.c (subset_compare): Remove unnecessary cast.
7469 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7470 cast.
7471 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7472 cast.
7473 * infcmd.c (path_command): Remove unnecessary cast.
7474 * coffread.c (decode_type): Remove unnecessary cast.
7475 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7476 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7477 * tui/tui-stack.c (tui_show_locator_content)
7478 (tui_show_frame_info): Remove unnecessary cast.
7479 * tui/tui-win.c (tui_scroll_forward_command)
7480 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7481 (parse_scrolling_args): Remove unnecessary cast.
7482 * tui/tui-data.c (init_win_info, tui_del_window)
7483 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7484 (free_content_elements): Remove unnecessary cast.
7485 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7486 unnecessary cast.
7487 * tui/tui-source.c (tui_set_source_content)
7488 (tui_vertical_source_scroll): Remove unnecessary cast.
7489 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7490 cast.
7491 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7492 * tui/tui-regs.c (tui_display_registers_from)
7493 (tui_display_register): Remove unnecessary cast.
7494 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7495 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7496 (make_visible): Remove unnecessary cast.
7497 * tui/tui-winsource.c (tui_erase_source_content)
7498 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7499 unnecessary cast.
7500 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7501 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7502 * stabsread.c (read_type, read_array_type, read_range_type):
7503 Remove unnecessary cast.
7504 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7505 (parse_symbol, parse_type, upgrade_type, parse_external)
7506 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7507 unnecessary cast.
7508 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7509
730ead81
TT
75102019-06-16 Tom Tromey <tom@tromey.com>
7511
7512 * tui/tui-data.c (tui_alloc_generic_win_info)
7513 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7514 checks.
7515
584a927c
AB
75162019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7517 Andrew Burgess <andrew.burgess@embecosm.com>
7518
7519 * f-typeprint.c (f_print_type): Don't return early for not
7520 associated or not allocated types.
7521 (f_type_print_varspec_suffix): Add print_rank parameter and print
7522 ranks of array types in case they dangling.
7523 (f_type_print_base): Add print_rank parameter.
7524
30056ea0
AB
75252019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7526
7527 * NEWS: Mention new MI commands.
7528 * break-catch-throw.c (enum exception_event_kind): Move to
7529 breakpoint.h.
7530 (print_mention_exception_catchpoint): Output text as a single
7531 message.
7532 (catch_exception_command_1): Rename to...
7533 (catch_exception_event): ...this, make non-static, update header
7534 command, and change some parameter types.
7535 (catch_catch_command): Update for changes to
7536 catch_exception_command_1.
7537 (catch_throw_command): Likewise.
7538 (catch_rethrow_command): Likewise.
7539 * breakpoint.c (enum exception_event_kind): Delete.
7540 * breakpoint.h (enum exception_event_kind): Moved here from
7541 break-catch-throw.c.
7542 (catch_exception_event): Declare.
7543 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7544 (mi_cmd_catch_throw): New function.
7545 (mi_cmd_catch_rethrow): New function.
7546 (mi_cmd_catch_catch): New function.
7547 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7548 'catch-catch' entries.
7549 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7550 (mi_cmd_catch_rethrow): Declare.
7551 (mi_cmd_catch_catch): Declare.
7552
ec8e2b6d
AB
75532019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7554
7555 * annotate.c (annotate_source_line): Change return type to void,
7556 update implementation to match.
7557 * annotate.h (annotate_source_line): Change return type to void,
7558 update header comment.
7559 * stack.c (print_frame_info): Don't change what frame information
7560 is printed based on whether annotations are on or not.
7561
0d3abd8c
AB
75622019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7563
7564 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7565 (annotate_source): Make static.
7566 (annotate_source_line): Moved from source.c and renamed from
7567 identify_source_line. Update the return type.
7568 * annotate.h (annotate_source): Delete declaration.
7569 (annotate_source_line): Declaration moved from source.h, and
7570 renamed from identify_source_line. Return type updated.
7571 * source.c (identify_source_line): Moved to annotate.c and renamed
7572 to annotate_source_line.
7573 (info_line_command): Remove check of annotation_level.
7574 * source.h (identify_source_line): Move declaration to annotate.h
7575 and rename to annotate_source_line.
7576 * stack.c: Add 'annotate.h' include.
7577 (print_frame_info): Remove check of annotation_level before
7578 calling annotate_source_line.
7579
00df30ae
AB
75802019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7581
7582 * source-cache.c (source_cache::get_plain_source_lines): Use
7583 open_source_file_with_line_charpos instead of just
7584 open_source_file, remove call to find_source_lines.
7585 (source_cache::get_source_lines): Likewise.
7586 * source.c (find_source_lines): Make static.
7587 (get_filename_and_charpos): Renamed into...
7588 (open_source_file_with_line_charpos): ..this along with changes to
7589 return a scoped_fd, and some other minor clean ups.
7590 (identify_source_line): Use open_source_file_with_line_charpos.
7591 (search_command_helper): Use open_source_file_with_line_charpos
7592 instead of just open_source_file, remove call to
7593 find_source_lines.
7594 * source.h (open_source_file_with_line_charpos): Declare new
7595 function.
7596 (find_source_lines): Delete declaration.
7597
afda45a2
AB
75982019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7599
7600 * source.c (get_filename_and_charpos): Remove fullname
7601 parameter.
7602 (identify_source_line): Update call to get_filename_and_charpos.
7603
0735b091
TT
76042019-06-14 Tom Tromey <tromey@adacore.com>
7605
7606 PR gdb/24502:
7607 * ui-style.h (skip_ansi_escape): Update comment.
7608 * ui-file.h (class no_terminal_escape_file): New class.
7609 * ui-file.c (no_terminal_escape_file::write)
7610 (no_terminal_escape_file::puts): New methods.
7611 * cli/cli-logging.c (handle_redirections): Use
7612 no_terminal_escape_file.
7613
52ce35e2
TT
76142019-06-14 Tom Tromey <tromey@adacore.com>
7615
7616 * NEWS: Move convenience variable news above Python news.
7617
73cc7272
TT
76182019-06-14 Tom Tromey <tom@tromey.com>
7619
7620 * gnulib: Move directory to top-level.
7621 * configure.ac: Don't configure gnulib.
7622 * configure: Rebuild.
7623 * common/common-defs.h: Use new path to gnulib.
7624 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7625 (GNULIB_H): Remove.
7626 (INCGNU): Look in new gnulib location.
7627 (HFILES_NO_SRCDIR): Remove gnulib files.
7628 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7629 (generated_files): Remove GNULIB_H.
7630 ($(LIBGNU), all-lib): Remove targets.
7631 (distclean): Don't mention GNULIB_BUILDDIR.
7632 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7633
f5686554
TT
76342019-06-14 Tom Tromey <tromey@adacore.com>
7635
7636 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7637 Warn if symbol file does not provide any symbols.
7638
a0c1ffed
TT
76392019-06-14 Tom Tromey <tromey@adacore.com>
7640
7641 * source.c (find_and_open_source): Respect basenames_may_differ.
7642
7c39e397
AB
76432019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 * annotate.c (annotate_breakpoints_invalid): Make use of
7646 scoped_restore_terminal_state.
7647 (annotate_frames_invalid): Likewise.
7648
f411722c
TT
76492019-06-14 Tom Tromey <tromey@adacore.com>
7650
7651 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7652 allow assignment to an internalvar.
7653
4268ec18
TT
76542019-06-14 Tom Tromey <tromey@adacore.com>
7655
7656 * ada-lex.l: Allow "_" in attribute names.
7657
abdb711e
TT
76582019-06-14 Tom Tromey <tromey@adacore.com>
7659
7660 PR gdb/24653:
7661 * regcache.c (registers_changed): Don't call alloca.
7662 * top.c (execute_command): Don't call alloca.
7663
4c048731
PA
76642019-06-13 Pedro Alves <palves@redhat.com>
7665
7666 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7667 'expression'. When parsing an expression, error out if there's
7668 junk after "unlimited".
7669 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7670 (do_set_command): Adjust calls to is_unlimited_literal.
7671
66eb1ed3
PA
76722019-06-13 Pedro Alves <palves@redhat.com>
7673
7674 * compile/compile.c (make_compile_options_def_group): Add braces
7675 around array_view initializer.
7676 * thread.c (make_thread_apply_all_options_def_group)
7677 (make_thread_apply_all_options_def_group): Likewise.
7678
3345721a
PA
76792019-06-13 Pedro Alves <palves@redhat.com>
7680
7681 * NEWS (New commands): Mention "maint test-options
7682 require-delimiter", "maint test-options unknown-is-error", "maint
7683 test-options unknown-is-operand" and "maint show
7684 test-options-completion-result".
7685 (New command options, command completion): New section.
7686 (Completion improvements): New section.
7687 Mention that you can abbreviate "unlimited".
7688
6206060d
PA
76892019-06-13 Pedro Alves <palves@redhat.com>
7690
7691 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7692 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7693 * unittests/cli-utils-selftests.c (test_parse_flags)
7694 (test_parse_flags_qcs): Delete.
7695 (test_cli_utils): Don't call deleted functions.
7696
6665660a
PA
76972019-06-13 Pedro Alves <palves@redhat.com>
7698
7699 * thread.c: Include "cli/cli-option.h".
7700 (tp_array_compar_ascending): Global.
7701 (tp_array_compar): Delete function.
7702 (tp_array_compar_ascending, tp_array_compar_descending): New
7703 functions.
7704 (ascending_option_def, qcs_flag_option_def)
7705 (thr_qcs_flags_option_defs)
7706 (make_thread_apply_all_options_def_group)
7707 (make_thread_apply_options_def_group): New.
7708 (thread_apply_all_command): Use gdb::option::process_options.
7709 (thread_apply_command_completer)
7710 (thread_apply_all_command_completer): New.
7711 (thread_apply_command): Use gdb::option::process_options.
7712 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7713 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7714 to generate help text of "thread apply". Adjust "taas"'s help.
7715 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7716 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7717
f7e13587
PA
77182019-06-13 Pedro Alves <palves@redhat.com>
7719
7720 * thread.c (thread_apply_command): Check for invalid TID with
7721 isdigit instead of !isalpha.
7722
5d707134
PA
77232019-06-13 Pedro Alves <palves@redhat.com>
7724
7725 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7726 (validate_flags_qcs): New.
7727 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7728 (validate_flags_qcs): Declare.
7729 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7730 (make_frame_apply_options_def_group): New.
7731 (frame_apply_command_count): Process options with
7732 gdb::option::process_options.
7733 (frame_apply_completer): New.
7734 (frame_apply_level_completer, frame_apply_all_completer)
7735 (frame_apply_completer): New.
7736 (_initialize_stack): Update help of "frame apply", "frame apply
7737 level", "frame apply all" and "faas" to mention supported options
7738 and install command completers.
7739 * stack.h (frame_apply_all_completer): Declare.
7740 * thread.c: Include "stack.h".
7741 (tfaas_command): Add "--".
7742 (_initialize_thread): Update help "tfaas" to mention supported
7743 options and install command completer.
7744
272d4594
PA
77452019-06-13 Pedro Alves <palves@redhat.com>
7746
7747 * completer.c (complete_nested_command_line): New.
7748 (gdb_completion_word_break_characters_throw): Add assertion.
7749 * completer.h (complete_nested_command_line): Declare.
7750
90a1ef87
PA
77512019-06-13 Pedro Alves <palves@redhat.com>
7752
7753 * stack.c (parse_backtrace_qualifiers): New.
7754 (backtrace_command): Use it.
7755 (backtrace_command_completer): Complete on qualifiers.
7756
d4c16835
PA
77572019-06-13 Pedro Alves <palves@redhat.com>
7758
7759 * frame.c: Include "cli/cli-option.h.
7760 (user_set_backtrace_options): New.
7761 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7762 Delete.
7763 (get_prev_frame): Adjust.
7764 (boolean_option_def, uinteger_option_def)
7765 (set_backtrace_option_defs): New.
7766 (_initialize_frame): Adjust and use
7767 gdb::option::add_setshow_cmds_for_options to install "set
7768 backtrace past-main" and "set backtrace past-entry".
7769 * frame.h: Include "cli/cli-option.h".
7770 (struct frame_print_options): Forward declare.
7771 (print_frame_arguments_all, print_frame_arguments_scalars)
7772 (print_frame_arguments_none): Declare.
7773 (print_entry_values): Delete declaration.
7774 (struct frame_print_options, user_frame_print_options): New.
7775 (struct set_backtrace_options): New.
7776 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7777 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7778 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7779 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7780 (list_args_or_locals): Add frame_print_options parameter.
7781 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7782 * python/py-framefilter.c (enumerate_args): Pass down
7783 USER_FRAME_PRINT_OPTIONS.
7784 * stack.c: Include "cli/cli-option.h".
7785 (print_frame_arguments_all, print_frame_arguments_scalars)
7786 (print_frame_arguments_none): Declare.
7787 (print_raw_frame_arguments, print_entry_values): Delete.
7788 (user_frame_print_options): New.
7789 (boolean_option_def, enum_option_def, frame_print_option_defs):
7790 New.
7791 (struct backtrace_cmd_options): New.
7792 (bt_flag_option_def): New.
7793 (backtrace_command_option_defs): New.
7794 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7795 (print_frame_arg, read_frame_arg, print_frame_args)
7796 (print_frame_info, print_frame): Add frame_print_options parameter
7797 and use it.
7798 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7799 (backtrace_command_1): Add frame_print_options and
7800 backtrace_cmd_options parameters and use them.
7801 (make_backtrace_options_def_group): New.
7802 (backtrace_command): Process command options with
7803 gdb::option::process_options.
7804 (backtrace_command_completer): New.
7805 (_initialize_stack): Extend "backtrace"'s help to mention
7806 supported options. Install completer for "backtrace".
7807 Install some settings commands with add_setshow_cmds_for_options.
7808
2daf894e
PA
78092019-06-13 Pedro Alves <palves@redhat.com>
7810
7811 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7812 and that "set/show print raw frame-arguments" are now deprecated.
7813
7814 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7815 command.
7816 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7817 * stack.c (_initialize_stack): Install "set/show print
7818 raw-frame-arguments", and deprecate "set/show print raw
7819 frame-arguments".
7820 * valprint.c (_initialize_valprint): Deprecate "set/show print
7821 raw".
7822
e6ed716c
PA
78232019-06-13 Pedro Alves <palves@redhat.com>
7824
7825 * compile/compile.c (struct compile_options): New.
7826 (compile_flag_option_def, compile_command_option_defs)
7827 (make_compile_options_def_group): New.
7828 (compile_file_command): Handle options with
7829 gdb::option::process_options.
7830 (compile_file_command_completer): New function.
7831 (compile_code_command): Handle options with
7832 gdb::option::process_options.
7833 (compile_code_command_completer): New function.
7834 (_initialize_compiler): Install completers for "compile code" and
7835 "compile file". Mention available options in "compile code" and
7836 "compile code"'s help.
7837 * completer.c (advance_to_completion_word): New, factored out from
7838 ...
7839 (advance_to_expression_complete_word_point): ... this.
7840 (advance_to_filename_complete_word_point): New.
7841 * completer.h (advance_to_filename_complete_word_point): New
7842 declaration.
7843
7d8062de
PA
78442019-06-13 Pedro Alves <palves@redhat.com>
7845
7846 * compile/compile.c: Include "cli/cli-option.h".
7847 (compile_print_value): Scope data pointer is now a
7848 value_print_options pointer; adjust.
7849 (compile_print_command): Process options. Scope data pointer is
7850 now a value_print_options pointer; adjust.
7851 (_initialize_compile): Update "compile print"'s help to include
7852 supported options. Install a completer for "compile print".
7853 * cp-valprint.c (show_vtblprint, show_objectprint)
7854 (show_static_field_print): Delete.
7855 (_initialize_cp_valprint): Don't install "set print
7856 static-members", "set print vtbl", "set print object" here.
7857 * printcmd.c: Include "cli/cli-option.h" and
7858 "common/gdb_optional.h".
7859 (print_command_parse_format): Rework to fill in a
7860 value_print_options instead of a format_data.
7861 (print_value): Change parameter type from format_data pointer to
7862 value_print_options reference. Adjust.
7863 (print_command_1): Process options. Adjust to pass down a
7864 value_print_options.
7865 (print_command_completer): New.
7866 (_initialize_printcmd): Install print_command_completer as
7867 handle_brkchars completer for the "print" command. Update
7868 "print"'s help to include supported options.
7869 * valprint.c: Include "cli/cli-option.h".
7870 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7871 here from cp-valprint.c.
7872 (boolean_option_def, uinteger_option_def)
7873 (value_print_option_defs, make_value_print_options_def_group):
7874 New. Use gdb::option::add_setshow_cmds_for_options to install
7875 "set print elements", "set print null-stop", "set print repeats",
7876 "set print pretty", "set print union", "set print array", "set
7877 print address", "set print symbol", "set print array-indexes".
7878 * valprint.h: Include <string> and "cli/cli-option.h".
7879 (make_value_print_options_def_group): Declare.
7880 (print_value): Change parameter type from format_data pointer to
7881 value_print_options reference.
7882 (print_command_completer): Declare.
7883
9d0faba9
PA
78842019-06-13 Pedro Alves <palves@redhat.com>
7885
7886 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7887 (COMMON_SFILES): Add maint-test-settings.c.
7888 * cli/cli-decode.c (boolean_enums): New global, factored out from
7889 ...
7890 (add_setshow_boolean_cmd): ... here.
7891 * cli/cli-decode.h (boolean_enums): Declare.
7892 * cli/cli-option.c: New file.
7893 * cli/cli-option.h: New file.
7894 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7895 factored out from ...
7896 (parse_cli_boolean_value(const char *)): ... this.
7897 (is_unlimited_literal): Change parameter type to pointer to
7898 pointer. Adjust and advance ARG pointer.
7899 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7900 (parse_cli_var_enum): New, factored out from ...
7901 (do_set_command): ... this. Adjust.
7902 * cli/cli-setshow.h (parse_cli_boolean_value)
7903 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7904 (parse_cli_var_enum): Declare.
7905 * cli/cli-utils.c: Include "cli/cli-option.h".
7906 (get_ulongest): New.
7907 * cli/cli-utils.h (get_ulongest): Declare.
7908 (check_for_argument): New overloads.
7909 * maint-test-options.c: New file.
7910
2c722807
PA
79112019-06-13 Pedro Alves <palves@redhat.com>
7912
7913 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7914 parse a range if "-" is at the end of the string.
7915
dee7b4c8
PA
79162019-06-13 Pedro Alves <palves@redhat.com>
7917
7918 * cli/cli-setshow.c (parse_auto_binary_operation)
7919 (parse_cli_boolean_value): Don't allow "o".
7920
dca0f6c0
PA
79212019-06-13 Pedro Alves <palves@redhat.com>
7922
7923 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7924 * NEWS: Mention maint test-settings KIND.
7925 * maint-test-settings.c: New file.
7926
597bf39d
PA
79272019-06-13 Pedro Alves <palves@redhat.com>
7928
7929 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7930 completer.
7931 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7932 "set" completers.
7933
48c410fb
PA
79342019-06-13 Pedro Alves <palves@redhat.com>
7935
7936 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7937 after item.
7938
93bcb043
PA
79392019-06-13 Pedro Alves <palves@redhat.com>
7940
7941 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7942
cbba3ecd
PA
79432019-06-13 Pedro Alves <palves@redhat.com>
7944
7945 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7946 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7947 call.
7948 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7949 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7950 calls.
7951 (check_for_argument): Skip spaces after argument.
7952
b9a3f842
PA
79532019-06-13 Pedro Alves <palves@redhat.com>
7954
7955 * thread.c (thread_apply_command): Adjust TID parsing.
7956 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7957 detected before end of string.
7958 (tid_is_in_list): Error out if LIST is invalid.
7959
3844e605
PA
79602019-06-13 Pedro Alves <palves@redhat.com>
7961
7962 * completer.c (complete_line_internal_1): Rewind completion word
7963 point.
7964 (completion_tracker::advance_custom_word_point_by): Change
7965 parameter type to int.
7966 * completer.h (completion_tracker::advance_custom_word_point_by):
7967 Likewise.
7968
00b56dbe
PA
79692019-06-13 Pedro Alves <palves@redhat.com>
7970
7971 * completer.c (advance_to_completion_word): Handle delimiters.
7972
d106773e
PA
79732019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7974
7975 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7976
08f10e02
TT
79772019-06-11 Tom Tromey <tom@tromey.com>
7978
7979 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7980 (xmalloc_failed): Move to alloc.c.
7981 * alloc.c: New file.
7982 * Makefile.in (COMMON_SFILES): Add alloc.c.
7983
1c7fe951
TT
79842019-06-11 Tom Tromey <tom@tromey.com>
7985
7986 * nat/linux-waitpid.c: Don't include server.h.
7987 (linux_debug): Remove.
7988 (my_waitpid): Update.
7989
89549d7f
TT
79902019-06-11 Tom Tromey <tromey@adacore.com>
7991
7992 * infcall.c (_initialize_infcall): Remove trailing newline from
7993 help.
7994 * user-regs.c (_initialize_user_regs): Remove trailing newline
7995 from help.
7996 * typeprint.c (_initialize_typeprint): Remove trailing newline
7997 from help.
7998 * reverse.c (_initialize_reverse): Remove trailing newlines from
7999 help.
8000 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8001 from help.
8002 * language.c (add_set_language_command): Remove trailing newline
8003 from help.
8004 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8005 help.
8006 * disasm.c (_initialize_disasm): Remove trailing newline from
8007 help.
8008 * top.c (init_main): Remove trailing newline from help.
8009 * interps.c (_initialize_interpreter): Remove trailing newline
8010 from help.
8011 * btrace.c (_initialize_btrace): Remove trailing newlines from
8012 help.
8013 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8014 from help.
8015 * python/python.c (_initialize_python): Remove trailing newline
8016 from help.
8017 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8018 help.
8019 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8020 from help. Reformat some text.
8021 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8022 from help.
8023 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8024 newline from help.
8025
86108c13
TT
80262019-06-11 Tom Tromey <tromey@adacore.com>
8027
8028 * darwin-nat.c (darwin_decode_exception_message)
8029 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8030
a7067863
AB
80312019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8032
8033 * valops.c (value_slice): Check for not allocated or not
8034 associated values.
8035
9ab08412
TV
80362019-06-10 Tom de Vries <tdevries@suse.de>
8037
8038 PR gdb/24618
8039 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8040 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8041 invalid.
8042
f19e22e9
TV
80432019-06-10 Tom de Vries <tdevries@suse.de>
8044
8045 PR gdb/24611
8046 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8047 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8048
e99f9db0
TV
80492019-06-10 Tom de Vries <tdevries@suse.de>
8050
8051 PR symtab/24545
8052 * symtab.c (struct demangled_name_entry): Add language field.
8053 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8054 static minimal symbol". Set and use language field.
8055
9bf7038b
TT
80562019-06-10 Tom Tromey <tromey@adacore.com>
8057
8058 * ada-lang.c (_initialize_ada_language): Update help text.
8059
422186a9
TT
80602019-06-10 Tom Tromey <tromey@adacore.com>
8061
8062 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8063 with a newline.
8064 * guile/guile.c (handle_boot_error): Don't end warning with a
8065 newline.
8066 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8067 warning with a newline.
8068 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8069 newline.
8070 (s12z_frame_cache): Likewise.
8071 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8072 a newline.
8073 * solib-svr4.c (disable_probes_interface): Don't end warning with
8074 a newline.
8075 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8076 newline.
8077 * python/python.c (do_finish_initialization): Don't end warning
8078 with a newline.
8079
25ce02ee
TT
80802019-06-10 Tom Tromey <tom@tromey.com>
8081
8082 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8083 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8084 gdbpy_enter.
8085
caa429d8
TT
80862019-06-10 Tom Tromey <tromey@adacore.com>
8087
8088 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8089 data.
8090 (elf_new_init): Don't call stabsread_new_init.
8091 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8092 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8093 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8094
81873cc8
TV
80952019-06-10 Tom de Vries <tdevries@suse.de>
8096
8097 PR symtab/16264
8098 PR symtab/24517
8099 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8100
4fa0265e
РИ
81012019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8102
8103 * source.c (find_and_open_source): Also rewrite relative file
8104 names.
8105
1a3da2cd
AB
81062019-04-26 Amos Bird <amosbird@gmail.com>
8107
8108 * annotate.c (annotate_thread_exited): Add "thread-exited"
8109 annotation.
8110
3847a7bf
TT
81112019-06-06 Tom Tromey <tromey@adacore.com>
8112
8113 * maint.h (class scoped_command_stats): Use
8114 DISABLE_COPY_AND_ASSIGN.
8115 <print_time>: New method.
8116 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8117 print_time.
8118 (scoped_command_stats::print_time): New method.
8119
312617a3
AB
81202019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8121
8122 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8123 instructions of lengths 6 or 8 bytes.
8124
b02f78f9
PA
81252019-06-04 Pedro Alves <palves@redhat.com>
8126
8127 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8128
8129 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8130 * breakpoint.c (condition_completer): Likewise.
8131 * cli/cli-dump.c (scan_expression): Likewise.
8132 * common/filestuff.c (mkdir_recursive): Likewise.
8133 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8134 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8135 (gdb_abspath): Likewise.
8136 * compile/compile-cplus-types.c
8137 (compile_cplus_instance::decl_name): Likewise.
8138 * completer.c (complete_explicit_location):
8139 (signal_completer, reg_or_group_completer_1): Likewise.
8140 * cp-support.c (cp_remove_params_if_any): Likewise.
8141 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8142 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8143 * infcmd.c (strip_bg_char): Likewise.
8144 * linespec.c (copy_token_string): Likewise.
8145 * mi/mi-main.c (output_cores): Likewise.
8146 * psymtab.c (psymtab_search_name):
8147 * symfile.c (test_set_ext_lang_command): Likewise.
8148 * target.c (target_fileio_read_stralloc): Likewise.
8149 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8150 * value.c (complete_internalvar): Likewise.
8151
e1f2e1a2
CB
81522019-06-04 Christian Biesinger <cbiesinger@google.com>
8153
8154 Add objfile property to gdb.Type.
d3238f7d
PA
8155 * NEWS: Mention Python API addition.
8156 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8157
e664d728
PW
81582019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159
8160 * NEWS: Mention the new set|show style [title|highlight].
8161 Mention changes to "show style", "help" and "apropos".
8162
66d8c862
PW
81632019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8164
8165 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8166 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8167 instead of print_help_for_command.
8168 (print_doc_of_command): New function.
8169 (help_list): Add 'apropos -v word' suggestion.
8170 (print_help_for_command): Style the command name using title style.
8171 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8172 (_initialize_cli_cmds): Describe -v in apropos_command help.
8173
9303eb2f
PW
81742019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8175
8176 * cli/cli-style.h (cli_style_option): Add name in constructor,
8177 add m_name class member, add constructor with intensity,
8178 add name class function.
8179 (cli_style_option::add_setshow_commands): Remove name argument.
8180 (highlight_style, title_style): New styles.
8181 * cli/cli-style.c (do_show): New function that shows a style
8182 characteristic styling the style name with itself.
8183 (set_style_name): New function.
8184 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8185 Update all callers according to the changes in cli/cli-style.h.
8186 * utils.h (fputs_highlighted): New function.
8187 * utils.c (fputs_highlighted): Likewise.
8188
e2c52041
PW
81892019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8190
8191 * NEWS: Mention new pipe command and new convenience variables.
8192
947d3946
PW
81932019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8194
8195 * cli/cli-cmds.c (pipe_command): New function.
8196 (_initialize_cli_cmds): Call add_com for pipe_command.
8197 Define | as an alias for pipe.
8198 (exit_status_set_internal_vars): New function.
8199 (shell_escape): Call exit_status_set_internal_vars.
8200 cli/cli-decode.c (find_command_name_length): Recognize | as
8201 a single character command.
8202
b8fd0918
PW
82032019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8204
8205 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8206 top.c (execute_command_to_ui_file): New function, mostly a copy
8207 of execute_command_to_string.
8208 (execute_command_to_string): Implement by calling
8209 execute_command_to_ui_file.
8210
68bb5386
PW
82112019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8212
8213 * top.h (saved_command_line): Remove declaration.
8214 * top.c (previous_saved_command_line, previous_repeat_arguments):
8215 New variables.
8216 (saved_command_line): Make static, define together with other
8217 'repeat variables'.
8218 (dont_repeat): Clear repeat_arguments.
8219 (repeat_previous, get_saved_command_line, save_command_line):
8220 New functions.
8221 (gdb_init): Initialize saved_command_line
8222 and previous_saved_command_line.
8223 * main.c (captured_main_1): Remove saved_command_line initialization.
8224 * event-top.c (handle_line_of_input): Update to use
8225 the new 'repeat' related functions instead of direct access to
8226 saved_command_line.
8227 * command.h (repeat_previous, get_saved_command_line,
8228 save_command_line): New declarations.
8229 (dont_repeat): Add comment.
8230
bfcdb852
TT
82312019-05-30 Tom Tromey <tromey@adacore.com>
8232
8233 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8234 Fix comment.
8235 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8236
0ef209f2
JV
82372019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8238
8239 PR cli/24587
8240 * completer.c (complete): Initialize variable word.
8241
955b06fa
SDJ
82422019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8243
8244 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8245 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8246 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8247 'body' is NULL to the outter 'if', protecting the '!is_define'
8248 situation as well.
8249
fa9c3fa0
TT
82502019-05-29 Tom Tromey <tromey@adacore.com>
8251
8252 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8253 (dwarf_unknown): New function.
8254 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8255 (dwarf_type_encoding_name): Use dwarf_unknown.
8256
4330d61d
TT
82572019-05-29 Tom Tromey <tromey@adacore.com>
8258
8259 PR c++/20020:
8260 * cp-valprint.c (cp_print_value_fields): Call
8261 cp_print_static_field inside "try".
8262
33a6bc35
TT
82632019-05-29 Tom Tromey <tromey@adacore.com>
8264
8265 * inflow.c (struct terminal_info): Add default operator=.
8266 * configure: Rebuild.
8267 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8268 -Wdeprecated-copy-dtor, -Wredundant-move.
8269
000439d5
TT
82702019-05-29 Tom Tromey <tromey@adacore.com>
8271
8272 * NEWS: Add entry.
8273 * infcmd.c (print_return_value_1): Handle finish_print
8274 option.
8275 (show_print_finish): New function.
8276 (_initialize_infcmd): Add "set/show print finish" commands.
8277 * valprint.c (user_print_options): Initialize new member.
8278 * valprint.h (struct value_print_options) <finish_print>: New
8279 member.
8280
c0e70c62
TT
82812019-05-28 Tom Tromey <tromey@adacore.com>
8282
8283 * ada-lang.c (ada_remove_Xbn_suffix)
8284 (find_old_style_renaming_symbol)
8285 (parse_old_style_renaming): Remove.
8286 (ada_find_renaming_symbol): Don't call
8287 find_old_style_renaming_symbol.
8288 (ada_is_renaming_symbol): Rename from
8289 ada_find_renaming_symbol. Remove "block" parameter. Return
8290 bool. Now static.
8291 (ada_read_var_value): Update and simplify.
8292 * ada-exp.y (write_var_or_type): Remove old code.
8293
766f8836
AH
82942019-05-28 Alan Hayward <alan.hayward@arm.com>
8295
68255adc 8296 PR gdb/25010
766f8836
AH
8297 * event-top.c: Remove include comment.
8298 * inflow.c (class scoped_ignore_sigttou): Move from here...
8299 * inflow.h (class scoped_ignore_sigttou): ...to here.
8300 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8301 * top.c: Remove include comment.
8302
eb41253a
TT
83032019-05-27 Tom Tromey <tom@tromey.com>
8304
8305 * NEWS: Fix typo.
8306
4ca51187
TT
83072019-05-22 Tom Tromey <tromey@adacore.com>
8308
8309 * target.c (target_follow_exec): Constify parameter.
8310 * target-delegates.c: Rebuild.
8311 * remote.c (remote_target::follow_exec): Constify parameter.
8312 * infrun.c (follow_exec): Constify parameter.
8313 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8314 (target_follow_exec): Likewise.
8315
8fca4da0
AH
83162019-05-22 Alan Hayward <alan.hayward@arm.com>
8317
8318 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8319 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8320
b7060614
AH
83212019-05-22 Alan Hayward <alan.hayward@arm.com>
8322
8323 * NEWS: Add debugredirect and testsuite sections.
8324
0a5954bd
SC
83252019-05-22 Simon Cook <simon.cook@embecosm.com>
8326
8327 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8328 target descriptions using exclusively floating point register name
8329 aliases.
8330
dc42e902
AB
83312019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8332
8333 PR gdb/18644:
8334 * f-lang.c (build_fortran_types): Handle the case where
8335 gdbarch_floatformat_for_type returns a nullptr.
8336
fb7806c7
TV
83372019-05-21 Tom de Vries <tdevries@suse.de>
8338
8339 PR cli/24587
8340 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8341
34d11c68
AB
83422019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8343
8344 PR gdb/18644:
8345 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8346 16-byte floats.
8347 * i386-tdep.c (i386_floatformat_for_type): Use
8348 floatformats_ia64_quad for the 16-byte floating point component
8349 within a fortran 32-byte complex number.
8350
122cf0f2
AB
83512019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8352
8353 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8354 delete default constructor.
8355 (find_partial_die): Update to return const struct.
8356 (partial_die_parent_scope): Move variable declaration into scope
8357 of its use and change its type to auto.
8358 (guess_partial_die_structure_name): Likewise.
8359 (partial_die_info::fixup): Likewise.
8360
33d0e35a
TT
83612019-05-17 Tom Tromey <tromey@adacore.com>
8362
8363 * source.c (find_and_open_source): Remove cast.
8364
a45575b0
TT
83652019-05-17 Tom Tromey <tromey@adacore.com>
8366
8367 * annotate.c (annotate_source): Make "filename" const.
8368 * annotate.h (annotate_source): Use const.
8369
81f47ac2
AH
83702019-05-17 Alan Hayward <alan.hayward@arm.com>
8371
8372 * disasm.c (set_disassembler_options): Send errors to stderr.
8373
ca1285d1
AH
83742019-05-17 Alan Hayward <alan.hayward@arm.com>
8375
8376 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8377 (cli_interp_base::set_logging): Check debug_redirect.
8378 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8379 * cli/cli-logging.c (debug_redirect): Add static variable.
8380 (pop_output_files): Add default param.
8381 (handle_redirections): Print debug setting.
8382 (show_logging_command): Likewise.
8383 (_initialize_cli_logging): Add debugredirect command.
8384 * interps.c (current_interp_set_logging): Add debug_redirect
8385 parameter.
8386 * interps.h (set_logging): Add debug_redirect parameter.
8387 (current_interp_set_logging): Likewise.
8388 * mi/mi-common.h: Likewise.
8389 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8390
83912019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8392 Tom Tromey <tromey@adacore.com>
8393
8394 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8395 directly.
8396 * cli/cli-interp.h (make_logging_output): Remove declaration.
8397 * cli/cli-logging.c (make_logging_output): Remove function.
8398 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8399 directly.
8400 * ui-file.c (tee_file::tee_file): Remove bools.
8401 (tee_file::~tee_file): Remove deletes.
8402 * ui-file.h (tee_file): Remove bools.
8403
26648588
JV
84042019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8405
8406 * mi/mi-cmds.h (mi_cmd_complete): New function.
8407 * mi/mi-main.c (mi_cmd_complete): Likewise.
8408 * mi/mi-cmds.c: Define new MI command -complete.
8409 * NEWS: Mention new -complete command.
8410
6e035501
JV
84112019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8412
8413 * completer.h (complete): New function.
8414 * completer.c (complete): Likewise.
8415 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8416 function defined in completer.h.
8417
7d0e2ece
JV
84182019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8419
e79be6e5 8420 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8421
fb816e8b
TV
84222019-05-17 Tom de Vries <tdevries@suse.de>
8423
8424 PR gdb/24094
8425 * dwarf2read.c (struct cu_partial_die_info): New struct.
8426 (find_partial_die): Return cu_partial_die_info.
8427 (partial_die_parent_scope, guess_partial_die_structure_name)
8428 (partial_die_info::fixup): Handle new return type of find_partial_die.
8429
677052f2
SDJ
84302019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8431
a1726c38 8432 PR breakpoints/24541
677052f2
SDJ
8433 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8434 "std::string", simplifying the algorithm.
8435
f3da9116
SDJ
84362019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8437
8438 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8439 (stap_static_probe_ops::get_probes): Likewise.
8440
f1bb75ab
SDJ
84412019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8442
8443 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8444 '-')" and "else if".
8445 (stap_parse_single_operand): Join checks for
8446 "gdbarch_stap_parse_special_token_p" and
8447 "gdbarch_stap_parse_special_token" in the same "if" statement.
8448 Invert check when verifying for operation on register
8449 displacement.
8450
3ca58cde
SDJ
84512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8452
8453 * stap-probe.c (stap_get_opcode): Update comment.
8454 (stap_get_expected_argument_type): Likewise.
8455 (handle_stap_probe): Likewise.
8456
af2d9bee
SDJ
84572019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8458
8459 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8460 return type to 'bool'. Adjust comment. Use 'bool' when
8461 appropriate.
8462 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8463 * stap-probe.c (stap_parse_argument_1): Likewise.
8464 (stap_is_operator): Likewise.
8465 (stap_is_generic_prefix): Likewise.
8466 (stap_is_register_prefix): Likewise.
8467 (stap_is_register_indirection_prefix): Likewise.
8468 (stap_is_integer_prefix): Likewise.
8469 (stap_generic_check_suffix): Likewise.
8470 (stap_check_integer_suffix): Likewise.
8471 (stap_check_register_suffix): Likewise.
8472 (stap_check_register_indirection_suffix): Likewise.
8473 (stap_parse_register_operand): Likewise.
8474 (stap_parse_single_operand): Likewise.
8475 (stap_parse_argument_1): Likewise.
8476 (stap_probe::get_argument_count): Likewise.
8477 (stap_is_operator): Likewise.
8478
61c9c421
TT
84792019-05-16 Tom Tromey <tromey@adacore.com>
8480
8481 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8482 keyword to foreach.
8483
9ddc1af1
SM
84842019-05-15 Simon Marchi <simon.marchi@efficios.com>
8485
8486 * linux-thread-db.c (try_thread_db_load_1): Change return type
8487 to bool.
8488 (try_thread_db_load): Likewise.
8489 (try_thread_db_load_from_pdir_1): Likewise.
8490 (try_thread_db_load_from_pdir): Likewise.
8491 (try_thread_db_load_from_sdir): Likewise.
8492 (try_thread_db_load_from_dir): Likewise.
8493 (thread_db_load_search): Likewise.
8494 (has_libpthread): Likewise.
8495 (thread_db_load): Likewise.
8496
7bede828
SDJ
84972019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8498
8499 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8500 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8501 NULL, and complain/return if that's the case.
8502
c5358db4
JD
85032019-05-15 John Darrington <john@darrington.wattle.id.au>
8504
8505 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8506 (advance, posn, abstract_read_memory): New functions.
8507 [struct mem_read_abstraction]: New struct.
8508 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8509
c408a94f
TT
85102019-05-14 Tom Tromey <tromey@adacore.com>
8511
8512 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8513 value is not lval_memory.
8514
e7bd7fba
TT
85152019-05-14 Tom Tromey <tromey@adacore.com>
8516
8517 * solib.c (info_sharedlibrary_command): Style the file name.
8518
a6d0f249
AH
85192019-05-14 Alan Hayward <alan.hayward@arm.com>
8520
8521 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8522 (aarch64_vnv_type): Likewise.
8523 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8524 * common/tdesc.c: Likewise.
8525 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8526 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8527 * features/aarch64-fpu.xml: Add ieee half view.
8528 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8529 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8530 * gdbtypes.h (struct builtin_type): Likewise.
8531 (struct objfile_type): Likewise.
8532
66b8bb74
SM
85332019-05-12 Paul Naert <paul.naert@polymtl.ca>
8534
8535 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8536 typo.
8537 * location.h (string_to_event_location): Likewise.
8538
21c219fd
JB
85392019-05-11 Joel Brobecker <brobecker@adacore.com>
8540
8541 GDB 8.3 released.
8542
13674803
SM
85432019-05-10 Simon Marchi <simon.marchi@efficios.com>
8544
8545 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8546 New variable declaration.
8547 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8548 New variable.
8549 (print_one_breakpoint): Use ui_out::test_flags and new global
8550 variable to compute use_fixed_output.
8551 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8552 Remove.
8553 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8554 (mi_multi_location_breakpoint_output_fixed): Remove.
8555 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8556 new variable.
8557 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8558 fix_multi_location_breakpoint_output flag if version >= 3.
8559 * ui-out.h (enum ui_out_flag)
8560 <fix_multi_location_breakpoint_output>: New enumerator.
8561
a9eac7f9
SM
85622019-05-10 Simon Marchi <simon.marchi@efficios.com>
8563
8564 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8565
71bed2db
TT
85662019-05-10 Tom Tromey <tromey@adacore.com>
8567
8568 * ada-lang.c (catch_ada_completer): New function.
8569 (_initialize_ada_language): Use it.
8570
24c54127
TT
85712019-05-10 Tom Tromey <tromey@adacore.com>
8572
8573 * thread.c (print_thread_info): Make "requested_threads" const.
8574 * gdbthread.h (print_thread_info): Make "requested_threads"
8575 const.
8576 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8577 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8578
7a102139
TT
85792019-05-08 Tom Tromey <tom@tromey.com>
8580
8581 * gdbtypes.c (objfile_type_data): Change type.
8582 (objfile_type, _initialize_gdbtypes): Update.
8583
924d79e2
TT
85842019-05-08 Tom Tromey <tom@tromey.com>
8585
8586 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8587 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8588 (_initialize_dwarf2_frame): Update.
8589
4c58e337
TT
85902019-05-08 Tom Tromey <tom@tromey.com>
8591
8592 * objc-lang.c (objc_objfile_data): Change type.
8593 (find_methods): Update.
8594 (_initialize_objc_lang): Remove.
8595
d772d2ab
TT
85962019-05-08 Tom Tromey <tom@tromey.com>
8597
8598 * stabsread.c (rs6000_builtin_type_data): Change type.
8599 (rs6000_builtin_type, _initialize_stabsread): Update.
8600
d11d83f4
TT
86012019-05-08 Tom Tromey <tom@tromey.com>
8602
8603 * mips-tdep.c (mips_pdr_data): Remove.
8604 (_initialize_mips_tdep): Update.
8605
9a73f0ad
TT
86062019-05-08 Tom Tromey <tom@tromey.com>
8607
8608 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8609 (hppa_init_objfile_priv_data, read_unwind_info)
8610 (find_unwind_entry, _initialize_hppa_tdep): Update.
8611
8127a2fa
TT
86122019-05-08 Tom Tromey <tom@tromey.com>
8613
8614 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8615 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8616 on obstack.
8617 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8618
91d3055d
TT
86192019-05-08 Tom Tromey <tom@tromey.com>
8620
8621 * mdebugread.c (basic_type_data): Change type.
8622 (basic_type, _initialize_mdebugread): Update.
8623
31930bd3
TT
86242019-05-08 Tom Tromey <tom@tromey.com>
8625
8626 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8627
bdb3ed9e
TT
86282019-05-08 Tom Tromey <tom@tromey.com>
8629
8630 * nto-tdep.c (nto_inferior_data_reg): Change type.
8631 (nto_inferior_data): Update.
8632 (nto_inferior_data_cleanup, nto_new_inferior_data)
8633 (_initialize_nto_tdep): Remove.
8634 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8635
f37b313d
TT
86362019-05-08 Tom Tromey <tom@tromey.com>
8637
8638 * ada-lang.c (struct ada_inferior_data): Add initializers.
8639 (ada_inferior_data): Change type.
8640 (ada_inferior_data_cleanup): Remove.
8641 (get_ada_inferior_data, ada_inferior_exit)
8642 (struct ada_pspace_data): Add initializers, destructor.
8643 (ada_pspace_data_handle): Change type.
8644 (get_ada_pspace_data): Update.
8645 (ada_pspace_data_cleanup): Remove.
8646
24699405
TT
86472019-05-08 Tom Tromey <tom@tromey.com>
8648
8649 * coffread.c (struct coff_symfile_info): Add initializers.
8650 (coff_objfile_data_key): Move lower. Change type.
8651 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8652 Update.
8653 (coff_free_info): Remove.
8654
d4e05d2f
TT
86552019-05-08 Tom Tromey <tom@tromey.com>
8656
8657 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8658 (fbsd_pspace_data_handle): Move lower. Change type.
8659 (get_fbsd_pspace_data): Update.
8660 (fbsd_pspace_data_cleanup): Remove.
8661 (_initialize_fbsd_tdep): Update.
8662
14ef6690
TT
86632019-05-08 Tom Tromey <tom@tromey.com>
8664
8665 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8666 (get_ada_tasks_pspace_data): Update.
8667 (ada_tasks_pspace_data_cleanup): Remove.
8668 (_initialize_tasks): Update.
8669 (ada_tasks_inferior_data_handle): Change type.
8670 (get_ada_tasks_inferior_data): Update.
8671 (ada_tasks_inferior_data_cleanup): Remove.
8672 (struct ada_tasks_pspace_data): Add initializers.
8673
814cf43a
TT
86742019-05-08 Tom Tromey <tom@tromey.com>
8675
8676 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8677 * symfile-debug.c (debug_sym_get_probes): Change type.
8678 * stap-probe.c (handle_stap_probe):
8679 (stap_static_probe_ops::get_probes): Change type.
8680 * probe.h (class static_probe_ops) <get_probes>: Change type.
8681 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8682 (parse_probes_in_pspace): Update.
8683 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8684 Update.
8685 (any_static_probe_ops::get_probes): Change type.
8686 * elfread.c (elfread_data): New typedef.
8687 (probe_key): Change type.
8688 (elf_get_probes): Likewise. Update.
8689 (probe_key_free): Remove.
8690 (_initialize_elfread): Update.
8691 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8692 Change type.
8693 (dtrace_process_dof_probe, dtrace_process_dof)
8694 (dtrace_static_probe_ops::get_probe): Change type.
8695
02dc647e
TT
86962019-05-08 Tom Tromey <tom@tromey.com>
8697
8698 * xcoffread.c (struct xcoff_symfile_info): Rename from
8699 coff_symfile_info. Add initializers.
8700 (xcoff_objfile_data_key): Move lower. Change type.
8701 (XCOFF_DATA): Rewrite.
8702 (xcoff_free_info): Remove.
8703 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8704 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8705 (xcoff_initial_scan): Update.
8706
09232438
TT
87072019-05-08 Tom Tromey <tom@tromey.com>
8708
8709 * solib-svr4.c (struct svr4_info): Add initializers and
8710 destructor.
8711 <probes_table>: Now an htab_up.
8712 (solib_svr4_pspace_data): Change type.
8713 (free_probes_table): Simplify.
8714 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8715 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8716 (probes_table_remove_objfile_probes, register_solib_event_probe)
8717 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8718 (_initialize_svr4_solib): Update.
8719
7b4a314f
TT
87202019-05-08 Tom Tromey <tom@tromey.com>
8721
8722 * remote.c (remote_pspace_data): Change type.
8723 (remote_pspace_data_cleanup): Remove.
8724 (get_remote_exec_file, set_pspace_remote_exec_file)
8725 (_initialize_remote): Update.
8726
51d3063a
TT
87272019-05-08 Tom Tromey <tom@tromey.com>
8728
8729 * breakpoint.c (breakpoint_objfile_key): Change type.
8730 (get_breakpoint_objfile_data): Update.
8731 (free_breakpoint_objfile_data): Remove.
8732 (_initialize_breakpoint): Update.
8733
89fb8848
TT
87342019-05-08 Tom Tromey <tom@tromey.com>
8735
8736 * linux-tdep.c (struct linux_info): Add initializers.
8737 (linux_inferior_data): Move. Change type.
8738 (invalidate_linux_cache_inf): Update.
8739 (linux_inferior_data_cleanup): Remove.
8740 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8741
e9b89e2d
TT
87422019-05-08 Tom Tromey <tom@tromey.com>
8743
8744 * auxv.c (auxv_inferior_data): Move. Change type.
8745 (auxv_inferior_data_cleanup): Remove.
8746 (invalidate_auxv_cache_inf): Rewrite.
8747 (get_auxv_inferior_data, _initialize_auxv): Update.
8748
8c42777c
TT
87492019-05-08 Tom Tromey <tom@tromey.com>
8750
8751 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8752 (symfile_debug_objfile_data_key): Change type.
8753 (symfile_debug_installed, debug_qf_has_symbols)
8754 (debug_qf_find_last_source_symtab)
8755 (debug_qf_forget_cached_source_info)
8756 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8757 (debug_qf_print_stats, debug_qf_dump)
8758 (debug_qf_expand_symtabs_for_function)
8759 (debug_qf_expand_all_symtabs)
8760 (debug_qf_expand_symtabs_with_fullname)
8761 (debug_qf_map_matching_symbols)
8762 (debug_qf_expand_symtabs_matching)
8763 (debug_qf_find_pc_sect_compunit_symtab)
8764 (debug_qf_map_symbol_filenames)
8765 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8766 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8767 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8768 (debug_sym_read_linetable, debug_sym_relocate): Update.
8769 (symfile_debug_free_objfile): Remove.
8770 (install_symfile_debug_logging, _initialize_symfile_debug):
8771 Update.
8772
5bfd760d
TT
87732019-05-08 Tom Tromey <tom@tromey.com>
8774
8775 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8776 allocate_on_obstack.
8777 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8778 (get_dwarf2_per_objfile): Update.
8779 (set_dwarf2_per_objfile): Remove.
8780 (dwarf2_has_info, dwarf2_get_section_info): Update.
8781 (dwarf2_free_objfile): Remove.
8782 (_initialize_dwarf2_read): Update.
8783
e85e19b4
TT
87842019-05-08 Tom Tromey <tom@tromey.com>
8785
8786 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8787 initializers.
8788 <unsupported_script_warning_printed,
8789 script_not_found_warning_printed>: Now bool.
8790 (auto_load_pspace_data): Change type.
8791 (~auto_load_pspace_info): Rename from
8792 auto_load_pspace_data_cleanup.
8793 (get_auto_load_pspace_data, init_loaded_scripts_info)
8794 (clear_section_scripts, maybe_print_unsupported_script_warning)
8795 (maybe_print_script_not_found_warning, _initialize_auto_load):
8796 Update.
8797
f6aa7436
TT
87982019-05-08 Tom Tromey <tom@tromey.com>
8799
8800 * objfiles.c (objfile_pspace_info): Add destructor and
8801 initializers.
8802 (objfiles_pspace_data): Change type.
8803 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8804 (get_objfile_pspace_data): Update.
8805 (objfiles_bfd_data): Change type.
8806 (get_objfile_bfd_data): Update.
8807 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8808
6ae614f6
TT
88092019-05-08 Tom Tromey <tom@tromey.com>
8810
8811 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8812 Change type.
8813 (get_catch_syscall_inferior_data): Update.
8814 (catch_syscall_inferior_data_cleanup): Remove.
8815 (_initialize_break_catch_syscall): Update.
8816
6509b8eb
TT
88172019-05-08 Tom Tromey <tom@tromey.com>
8818
8819 * inflow.c (struct terminal_info): Add destructor and
8820 initializers.
8821 (inflow_inferior_data): Change type.
8822 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8823 (get_inflow_inferior_data, inflow_inferior_exit)
8824 (swap_terminal_info, _initialize_inflow): Update.
8825
35632941
TT
88262019-05-08 Tom Tromey <tom@tromey.com>
8827
8828 * target-dcache.c (target_dcache_cleanup): Remove.
8829 (target_dcache_aspace_key): Change type.
8830 (target_dcache_init_p, target_dcache_invalidate)
8831 (target_dcache_get, target_dcache_get_or_init)
8832 (_initialize_target_dcache): Update.
8833 * dcache.h (struct dcache_deleter): New.
8834
3017b94d
TT
88352019-05-08 Tom Tromey <tom@tromey.com>
8836
8837 * symtab.c (struct symbol_cache): Add destructor and
8838 initializers.
8839 (symbol_cache_key): Move. Change type.
8840 (make_symbol_cache, free_symbol_cache): Remove.
8841 (get_symbol_cache): Update.
8842 (symbol_cache_cleanup): Remove.
8843 (ALL_PSPACES, symbol_cache_flush)
8844 (maintenance_print_symbol_cache)
8845 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8846 Update.
8847
a32ad8c5
TT
88482019-05-08 Tom Tromey <tom@tromey.com>
8849
8850 * symtab.c (struct main_info): Add destructor and initializers.
8851 (main_progspace_key): Move. Change type.
8852 (get_main_info): Update.
8853 (main_info_cleanup): Remove.
8854 (_initialize_symtab): Update.
8855
5f6e90a0
TT
88562019-05-08 Tom Tromey <tom@tromey.com>
8857
8858 * registry.h (DECLARE_REGISTRY): Define the _key class.
8859
1bd0c6e4
AB
88602019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8861
8862 * NEWS: Merge two 'New commands' sections.
8863
2228ef77
XR
88642019-05-08 Joel Brobecker <brobecker@adacore.com>
8865
8866 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8867 parameter and use Ada language definition instead.
8868 (ada_val_print_ptr): Remove unused language parameter.
8869 (ada_val_print_num): Remove language parameter and use Ada language
8870 definition instead.
8871 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8872 parameter.
8873 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8874 parameter and use Ada language definition instead.
8875 (ada_val_print_1): Update all ada_val_print_xxx calls.
8876 Remove language parameter.
8877 (ada_val_print): Update ada_val_print_1 call.
8878
60fcc1c3
TT
88792019-05-08 Tom Tromey <tromey@adacore.com>
8880
8881 * remote.c (remote_hw_watchpoint_limit)
8882 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8883 Now static.
8884
ed2b7c17
TT
88852019-05-08 Tom Tromey <tromey@adacore.com>
8886
8887 * maint.c (_initialize_maint_cmds): Move initialization code to
8888 remote.c.
8889 (watchdog, show_watchdog): Move to remote.c.
8890 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8891 "watchdog" static.
8892 (_initialize_remote): Move initialization code from maint.c.
8893 * defs.h (watchdog): Don't declare.
8894
b0be6c91
TT
88952019-05-08 Tom Tromey <tromey@adacore.com>
8896
8897 * tui/tui-interp.c: Include main.h.
8898 * interps.c: Include main.h.
8899 * main.h (interpreter_p): Declare.
8900 * defs.h (interpreter_p): Don't declare.
8901
587ee17b
TT
89022019-05-08 Tom Tromey <tromey@adacore.com>
8903
8904 * dwarf2loc.c: Include dwarf2read.h.
8905 * defs.h (read_unsigned_leb128): Don't declare.
8906 * dwarf2read.h (read_unsigned_leb128): Declare.
8907
ca1df239
TT
89082019-05-08 Tom Tromey <tromey@adacore.com>
8909
8910 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8911 method.
8912
99f20f08
TT
89132019-05-08 Tom Tromey <tromey@adacore.com>
8914
8915 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8916 when no wrap column is set.
8917
80e55b13
TT
89182019-05-08 Tom Tromey <tromey@adacore.com>
8919
8920 * c-lang.c (c_get_string): Handle non-C-style arrays.
8921
9d3421af
TT
89222019-05-08 Tom Tromey <tromey@adacore.com>
8923
8924 * typeprint.c (print_offset_data::update): Print the bit offset,
8925 not the number of bits remaining.
8926
844333e2
TT
89272019-05-08 Tom Tromey <tromey@adacore.com>
8928
8929 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8930 padding at end of comment.
8931
988915ee
TT
89322019-05-08 Tom Tromey <tromey@adacore.com>
8933
8934 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8935 Compare main types.
8936
26bfd823
TT
89372019-05-06 Tom Tromey <tom@tromey.com>
8938
8939 * common/scoped_mmap.c: Include common-defs.h.
8940 * common/scoped_mmap.h: Don't include config.h.
8941
89055eaa
TT
89422019-05-04 Tom Tromey <tom@tromey.com>
8943
8944 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8945 (struct aarch64_call_info): Add initializers.
8946 <si>: Now a std::vector.
8947 (pass_on_stack, aarch64_push_dummy_call): Update.
8948
5da01df5
TT
89492019-05-04 Simon Marchi <simon.marchi@efficios.com>
8950 Tom Tromey <tom@tromey.com>
8951
8952 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8953 (ppc_threads): Now a std::vector. Now static.
8954 (hwdebug_find_thread_points_by_tid)
8955 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8956 Update.
8957
fbdf05a1
TT
89582019-05-04 Tom Tromey <tom@tromey.com>
8959
8960 * arc-tdep.c (arc_tdesc_init): Return bool.
8961
06d16ec9
TT
89622019-05-04 Tom Tromey <tom@tromey.com>
8963
8964 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8965 Use gdb_assert_not_reached.
8966
9c056022
TT
89672019-05-04 Tom Tromey <tom@tromey.com>
8968
8969 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8970 "false".
8971
fa9c2a59
TT
89722019-05-04 Tom Tromey <tom@tromey.com>
8973
8974 * arc-tdep.c (arc_tdesc_init): Use bool.
8975
e2eb806a
TT
89762019-05-04 Tom Tromey <tom@tromey.com>
8977
8978 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8979
6fe87677
TT
89802019-05-04 Tom Tromey <tom@tromey.com>
8981
8982 * cli/cli-cmds.c (valid_command_p): Return bool.
8983
7f008c9e
TT
89842019-05-04 Tom Tromey <tom@tromey.com>
8985
8986 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8987 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8988
b6484282
RT
89892019-05-04 Raul Tambre <raul@tambre.ee>
8990
8991 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8992 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8993 operator for comparison.
8994
af97b416
TT
89952019-05-04 Tom Tromey <tom@tromey.com>
8996
8997 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8998 (lookup_partial_symbol, print_partial_symbols)
8999 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9000 (psymbol_compare): Update.
9001 (add_psymbol_to_bcache): Clear the entire psymbol.
9002 (maintenance_check_psymtabs): Update.
9003 * psympriv.h (struct partial_symbol): Don't derive from
9004 general_symbol_info.
9005 <obj_section, unrelocated_address, address,
9006 set_unrelocated_address>: Update.
9007 <ginfo>: New member.
9008 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9009 (debug_names::write_psymbols): Update.
9010
9d6d4be8
TV
90112019-05-04 Tom de Vries <tdevries@suse.de>
9012
9013 * contrib/cc-with-tweaks.sh: Support -n arg.
9014
66452beb
PW
90152019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9016
9017 * corelow.c (core_target::detach): Ensure frame cache and
9018 register caches are cleared.
9019 inferior.c (exit_inferior_1): Likewise.
9020
bde09ab7
TT
90212019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9022 Tom Tromey <tom@tromey.com>
9023
9024 * dictionary.c (collate_pending_symbols_by_language): Remove
9025 "struct" from foreach.
9026 * symtab.c (lookup_global_symbol_from_objfile)
9027 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9028 foreach.
9029 * ser-tcp.c (net_open): Remove "struct" from foreach.
9030 * objfiles.c (objfile_relocate, objfile_rebase)
9031 (objfile_has_symbols): Remove "struct" from foreach.
9032 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9033 from foreach.
9034 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9035 foreach.
9036 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9037 "struct" from foreach.
9038 * ada-lang.c (create_excep_cond_exprs)
9039 (ada_exception_catchpoint_cond_string): Remove "struct" from
9040 foreach.
9041
222a8d25
TT
90422019-05-03 Tom Tromey <tromey@adacore.com>
9043
9044 * ada-exp.y (convert_char_literal): Check suffix of each
9045 enumerator.
9046
fcd60b84
DP
90472019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9048
9049 PR ada/21406:
9050 * ada-exp.y (yywrap): Don't define.
9051 * ada-lex.l (%option): Add noyywrap
9052 (yywrap): Remove.
9053
5f2459c2
EZ
90542019-05-03 Eli Zaretskii <eliz@gnu.org>
9055
353ea2d1
EZ
9056 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9057 _WIN32_WINNT to the XP level, unless already defined to a higher
9058 level.
9059
9060 * unittests/parse-connection-spec-selftests.c:
9061 * ser-tcp.c:
9062 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9063 override.
9064
5f2459c2
EZ
9065 * symfile.c (find_separate_debug_file): Remove colon from the
9066 drive spec of DOS/Windows file names of the target, so that the
9067 file name produced from DEBUGDIR and the target's directory will
9068 be valid on DOS/Windows systems.
9069
80062eb9
AB
90702019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9071
9072 * rust-lang.c (val_print_struct): Handle printing structures
9073 containing strings.
9074
b8c05e85
TT
90752019-05-02 Tom Tromey <tromey@adacore.com>
9076
9077 * valarith.c (_initialize_valarith): Remove.
9078
4504bbde
TT
90792019-05-01 Tom Tromey <tromey@adacore.com>
9080
9081 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9082 bitfields.
9083
d48e62f4
TT
90842019-05-01 Tom Tromey <tromey@adacore.com>
9085
9086 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9087 for big-endian copies.
9088
15f18d14
AT
90892019-04-30 Ali Tamur <tamur@google.com>
9090 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9091 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9092 (read_3_bytes): New function.
9093
ab4ee614
JB
90942019-04-30 Joel Brobecker <brobecker@adacore.com>
9095
9096 * windows-nat.c (main_thread_id): Delete.
9097 (handle_output_debug_string): Replace main_thread_id by
9098 current_event.dwThreadId.
9099 (fake_create_process): Likewise.
9100 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9101 Do not set main_thread_id.
9102 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9103 current_event.dwThreadId.
9104 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9105
8ed5b76e
JB
91062019-04-30 Joel Brobecker <brobecker@adacore.com>
9107
9108 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9109 Use current_event.dwThreadId instead of main_thread_id.
9110
2ff0a947
TT
91112019-04-30 Tom Tromey <tromey@adacore.com>
9112
9113 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9114 (create_excep_cond_exprs): Iterate over program spaces.
9115 (ada_exception_catchpoint_cond_string): Examine all minimal
9116 symbols for exception types.
9117
a776957c
TT
91182019-04-30 Tom Tromey <tromey@adacore.com>
9119
9120 PR c++/24470:
9121 * dwarf2read.c (process_structure_scope): Handle case where type
9122 has template parameters but no symbol was created.
9123
bc68014d
AB
91242019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9125 Chris January <chris.january@arm.com>
9126
9127 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9128 qualifier.
9129 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9130
f1fdc960
AB
91312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9132
9133 * f-typeprint.c (f_print_type): Update rules for printing
9134 whitespace.
9135 (f_type_print_varspec_suffix): Likewise.
9136
bf7a4de1
AB
91372019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9138 Chris January <chris.january@arm.com>
9139
9140 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9141 function arguments.
9142
bbe75b9d
AB
91432019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9144
9145 * f-lang.c (build_fortran_types): Change name of void type to
9146 lower case.
9147 * f-typeprint.c (f_type_print_base): Print the name of the void
9148 type, rather than a fixed string.
9149 * f-valprint.c (f_decorations): Use lower case void string.
9150
1db455a7
AB
91512019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9152 Chris January <chris.january@arm.com>
9153
9154 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9155 types for Fortran.
9156
b6d03bb2
AB
91572019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9158 Chris January <chris.january@arm.com>
9159 David Lecomber <david.lecomber@arm.com>
9160
9161 * f-exp.y (BINOP_INTRINSIC): New token.
9162 (exp): New parser rule handling BINOP_INTRINSIC.
9163 (f77_keywords): Add new builtin procedures.
9164 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9165 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9166 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9167 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9168 (print_unop_subexp_f): New function.
9169 (print_binop_subexp_f): New function.
9170 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9171 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9172 (dump_subexp_body_f): Likewise.
9173 (operator_check_f): Likewise.
9174 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9175 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9176
83228e93
AB
91772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9178
9179 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9180 UNOP_KIND.
9181 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9182 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9183 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9184 (operator_length_f): New fuction.
9185 (print_subexp_f): New function.
9186 (op_name_f): New function.
9187 (dump_subexp_body_f): New function.
9188 (operator_check_f): New function.
9189 (exp_descriptor_f): Replace standard expression handling functions
9190 with new functions.
9191 * gdb/fortran-operator.def: New file.
9192 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9193 * gdb/std-operator.def: Remove UNOP_KIND.
9194
6fdcd7cc
AB
91952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9196
9197 * std-operator.def: Remove unbalanced, stray double quote
9198 character.
9199
2e62ab40
AB
92002019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9201 Chris January <chris.january@arm.com>
9202 Daniel Everett <daniel.everett@arm.com>
9203 Nick Forrington <nick.forrington@arm.com>
9204 Richard Bunt <richard.bunt@arm.com>
9205
9206 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9207 of depth when printing anonymous structs or unions.
9208 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9209 Don't print either the top-level value, or the children if the
9210 max-depth is exceeded.
9211 (ppscm_print_children): When printing the key of a map, allow one
9212 extra level of depth.
9213 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9214 print either the top-level value, or the children if the max-depth
9215 is exceeded.
9216 (print_children): When printing the key of a map, allow one extra
9217 level of depth.
9218 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9219 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9220 (user_print_options): Initialise max_depth field.
9221 (val_print_scalar_or_string_type_p): New function.
9222 (val_print): Check to see if the max depth has been reached.
9223 (val_print_check_max_depth): Define new function.
9224 (show_print_max_depth): New function.
9225 (_initialize_valprint): Add 'print max-depth' option.
9226 * valprint.h (struct value_print_options) <max_depth>: New field.
9227 (val_print_check_max_depth): Declare new function.
9228 * NEWS: Document new feature.
9229
4be290b2
AB
92302019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9231
9232 * ada-lang.c (ada_language_defn): Initialise new field.
9233 * c-lang.c (c_is_string_type_p): New function.
9234 (c_language_defn): Initialise new field.
9235 (cplus_language_defn): Initialise new field.
9236 (asm_language_defn): Initialise new field.
9237 (minimal_language_defn): Initialise new field.
9238 * c-lang.h (c_is_string_type_p): Declare new function.
9239 * d-lang.c (d_language_defn): Initialise new field.
9240 * f-lang.c (f_is_string_type_p): New function.
9241 (f_language_defn): Initialise new field.
9242 * go-lang.c (go_is_string_type_p): New function.
9243 (go_language_defn): Initialise new field.
9244 * language.c (default_is_string_type_p): New function.
9245 (unknown_language_defn): Initialise new field.
9246 (auto_language_defn): Initialise new field.
9247 * language.h (struct language_defn) <la_is_string_type_p>: New
9248 member variable.
9249 (default_is_string_type_p): Declare new function.
9250 * m2-lang.c (m2_language_defn): Initialise new field.
9251 * objc-lang.c (objc_language_defn): Initialise new field.
9252 * opencl-lang.c (opencl_language_defn): Initialise new field.
9253 * p-lang.c (pascal_is_string_type_p): New function.
9254 (pascal_language_defn): Initialise new field.
9255 * rust-lang.c (rust_is_string_type_p): New function.
9256 (rust_language_defn): Initialise new field.
9257
721b08c6
AB
92582019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9259
9260 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9261 New field.
9262 * ada-lang.c (ada_language_defn): Initialise new field.
9263 * c-lang.c (c_language_defn): Likewise.
9264 (cplus_language_defn): Likewise.
9265 (asm_language_defn): Likewise.
9266 (minimal_language_defn): Likewise.
9267 * d-lang.c (d_language_defn): Likewise.
9268 * f-lang.c (f_language_defn): Likewise.
9269 * go-lang.c (go_language_defn): Likewise.
9270 * language.c (unknown_language_defn): Likewise.
9271 (auto_language_defn): Likewise.
9272 * m2-lang.c (m2_language_defn): Likewise.
9273 * objc-lang.c (objc_language_defn): Likewise.
9274 * opencl-lang.c (opencl_language_defn): Likewise.
9275 * p-lang.c (pascal_language_defn): Likewise.
9276 * rust-lang.c (rust_language_defn): Likewise.
9277
fc913e53
AB
92782019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 * ada-lang.c (ada_is_character_type): Change return type to bool.
9281 (ada_is_string_type): Likewise.
9282 * ada-lang.h (ada_is_character_type): Update declaration
9283 (ada_is_string_type): Likewise.
9284
fa731fa0
PW
92852019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9286
9287 Support style in 'frame|thread apply'
9288
9289 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9290 * record.c (record_start, record_stop): Update callers of
9291 execute_command_to_string with false.
9292 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9293 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9294 methods.
9295 (class string_file): New constructor with term_out parameter.
9296 Override methods term_out and can_emit_style_escape. New member
9297 term_out.
9298 (class stdio_file): Override can_emit_style_escape.
9299 (class tee_file): Override term_out and can_emit_style_escape.
9300 * utils.h (can_emit_style_escape): Remove.
9301 * utils.c (can_emit_style_escape): Likewise.
9302 Update all callers of can_emit_style_escape (SOMESTREAM) to
9303 SOMESTREAM->can_emit_style_escape.
9304 * source-cache.c (source_cache::get_source_lines): Likewise.
9305 * stack.c (frame_apply_command_count): Call execute_command_to_string
9306 passing the term_out characteristic of the current gdb_stdout.
9307 * thread.c (thr_try_catch_cmd): Likewise.
9308 * top.c (execute_command_to_string): pass term_out parameter
9309 to construct the string_file for the command output.
9310 * ui-file.c (term_cli_styling): New function (most code moved
9311 from utils.c can_emit_style_escape).
9312 (string_file::string_file, string_file::can_emit_style_escape,
9313 stdio_file::can_emit_style_escape, tee_file::term_out,
9314 tee_file::can_emit_style_escape): New functions.
9315
136afab8
PW
93162019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9317
9318 * NEWS: Mention the new set|show may-call-functions.
9319 * infcall.c (may_call_functions_p): New variable.
9320 (show_may_call_functions_p): New function.
9321 (call_function_by_hand_dummy): Throws an error if not
9322 may-call-functions.
9323 (_initialize_infcall): Call add_setshow_boolean_cmd for
9324 may-call-functions.
9325
725cbb63
KS
93262019-04-25 Keith Seitz <keiths@redhat.com>
9327
9328 PR c++/24367
9329 * cp-support.c (inspect_type): Don't attempt substitutions
9330 of symbol with the same name.
9331
3d1cbb78
TT
93322019-04-25 Tom Tromey <tromey@adacore.com>
9333
9334 PR gdb/24475:
9335 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9336 static.
9337
94aeb44b
TT
93382019-04-25 Tom Tromey <tromey@adacore.com>
9339
9340 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9341 rvalue reference.
9342 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9343 (gdb_xml_parser::parse): Use std::move.
9344 * python/python-internal.h (gdbpy_convert_exception): Take a const
9345 reference.
9346 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9347 std::move.
9348 * python/py-utils.c (gdbpy_convert_exception): Take a const
9349 reference.
9350 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9351 Use std::move.
9352 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9353 Use std::move.
9354 * mi/mi-main.c (mi_print_exception): Take a const reference.
9355 * main.c (handle_command_errors): Take a const reference.
9356 * linespec.c (parse_linespec): Use std::move.
9357 * infcall.c (run_inferior_call): Use std::move.
9358 (call_function_by_hand_dummy): Use std::move.
9359 * exec.c (try_open_exec_file): Use std::move.
9360 * exceptions.h (exception_print, exception_fprintf)
9361 (exception_print_same): Update.
9362 * exceptions.c (print_exception, exception_print)
9363 (exception_fprintf, exception_print_same): Change parameters to
9364 const reference.
9365 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9366 * common/new-op.c: Use std::move.
9367 * common/common-exceptions.h (struct gdb_exception): Add move
9368 constructor.
9369 (struct gdb_exception_error, struct gdb_exception_quit, struct
9370 gdb_quit_bad_alloc): Change constructor to move constructor.
9371 (throw_exception): Change parameter to rvalue reference.
9372 * common/common-exceptions.c (throw_exception): Take rvalue
9373 reference.
9374 * cli/cli-interp.c (safe_execute_command): Use std::move.
9375 * breakpoint.c (insert_bp_location, location_to_sals): Use
9376 std::move.
9377
680d7fd5
TT
93782019-04-25 Tom Tromey <tromey@adacore.com>
9379
9380 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9381 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9382 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9383 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9384 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9385 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9386 guile/scm-value.c: Use unpack.
9387 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9388 gdbscm_gdb_exception.
9389 (gdbscm_throw_gdb_exception): Likewise.
9390 (struct gdbscm_gdb_exception): New.
9391 (unpack): New function.
9392 (gdbscm_wrap): Use unpack.
9393
c6fdd8b2
TT
93942019-04-25 Tom Tromey <tromey@adacore.com>
9395
9396 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9397 (gdb_rl_callback_handler): Use std::move.
9398 * common/common-exceptions.h (struct gdb_exception): Add move
9399 assignment operator.
9400 (throw_exception_sjlj): Change "exception" to const reference.
9401 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9402 (throw_exception_sjlj): Change "exception" to const reference.
9403
cc06b668
TT
94042019-04-25 Tom Tromey <tromey@adacore.com>
9405
9406 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9407 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9408 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9409 Update.
9410 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9411 Update.
9412 * mi/mi-interp.c (mi_interp::exec): Update.
9413 * linespec.c (parse_linespec): Update.
9414 * infcall.c (run_inferior_call): Update.
9415 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9416 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9417 (gdbscm_lookup_global_symbol): Update.
9418 * guile/scm-param.c (gdbscm_parameter_value): Update.
9419 * guile/scm-frame.c (gdbscm_frame_read_register)
9420 (gdbscm_frame_read_var): Update.
9421 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9422 * exec.c (try_open_exec_file): Update.
9423 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9424 (gdb_rl_callback_handler): Update.
9425 * common/common-exceptions.h (exception_none): Don't declare.
9426 * common/common-exceptions.c (exception_none): Don't define.
9427 (struct catcher) <exception>: Update.
9428 * cli/cli-interp.c (safe_execute_command): Update.
9429 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9430
cf532bd1
AT
94312019-04-25 Ali Tamur <tamur@google.com>
9432
9433 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9434 (read_attribute_value): Likewise.
9435 (dwarf2_read_addr_index): Update comment.
9436 (read_str_index): Add DW_FORM_strx.
9437 (dwarf2_string_attr): Likewise.
9438 (dwarf2_const_value_attr): Likewise.
9439 (dump_die_shallow): Likewise.
9440 (dwarf2_fetch_constant_bytes): Likewise.
9441 (skip_form_bytes): Likewise.
9442 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9443
82433e3e
SDJ
94442019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9445
9446 PR corefiles/11608
9447 PR corefiles/18187
9448 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9449 OFFSET. Verify if current mapping contains an ELF header.
9450 (linux_find_memory_regions_full): Adjust call to
9451 dump_mapping_p.
9452
723adb65
SL
94532019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9454 Kang Li <kanglictf@gmail.com>
9455
9456 PR gdb/21600
9457
9458 * dwarf2-frame.c (read_initial_length): Be consistent about using
9459 unsigned representation of length.
9460 (decode_frame_entry_1): Likewise. Check for wraparound of
9461 end pointer as well as buffer overflow.
9462
596179f7
SDJ
94632019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9464
9465 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9466 "vq".
9467
a59240a4
TT
94682019-04-24 Tom Tromey <tromey@adacore.com>
9469
9470 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9471
f872fdbb
AB
94722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * s12z-tdep.c (s12z_unwind_pc): Delete.
9475 (s12z_unwind_sp): Delete.
9476 (s12z_gdbarch_init): Don't register deleted functions with
9477 gdbarch.
9478
b614e6f3
AB
94792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9480
9481 * rl78-tdep.c (rl78_unwind_sp): Delete.
9482 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9483
14faed38
AB
94842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9485
9486 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9487 (xstormy16_unwind_pc): Delete.
9488 (xstormy16_dummy_id): Delete.
9489 (xstormy16_gdbarch_init): Don't register deleted functions with
9490 gdbarch.
9491
541aad8a
AB
94922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9493
9494 * vax-tdep.c (vax_unwind_pc): Delete.
9495 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9496
29222070
AB
94972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9498
9499 * v850-tdep.c (v850_unwind_sp): Delete.
9500 (v850_unwind_pc): Delete.
9501 (v850_dummy_id): Delete.
9502 (v850_gdbarch_init): Don't register deleted functions with
9503 gdbarch.
9504
0f534d76
AB
95052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9506
9507 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9508 (tilegx_unwind_pc): Delete.
9509 (tilegx_unwind_dummy_id): Delete.
9510 (tilegx_gdbarch_init): Don't register deleted functions with
9511 gdbarch.
9512
1ba7b7f9
AB
95132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9514
9515 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9516 (tic6x_dummy_id): Delete.
9517 (tic6x_gdbarch_init): Don't register deleted functions with
9518 gdbarch.
9519
d31f262c
AB
95202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9521
9522 * sparc-tdep.c (sparc_unwind_pc): Delete.
9523 (sparc32_gdbarch_init): Don't register deleted function with
9524 gdbarch.
9525
6d14d64d
AB
95262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9527
9528 * sh-tdep.c (sh_unwind_sp): Delete.
9529 (sh_unwind_pc): Delete.
9530 (sh_dummy_id): Delete.
9531 (sh_gdbarch_init): Don't register deleted functions with
9532 gdbarch.
9533
a40dde9d
AB
95342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9535
9536 * score-tdep.c (score_unwind_sp): Delete.
9537 (score_unwind_pc): Delete.
9538 (score_dummy_id): Delete.
9539 (score_gdbarch_init): Don't register deleted functions with
9540 gdbarch.
9541
47c47d69
AB
95422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9543
9544 * rx-tdep.c (rx_unwind_pc): Delete.
9545 (rx_unwind_sp): Delete.
9546 (rx_dummy_id): Delete.
9547 (rx_gdbarch_init): Don't register deleted functions with
9548 gdbarch. Update comment.
9549
833a4480
AB
95502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9551
9552 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9553 (rs6000_dummy_id): Delete.
9554 (rs6000_gdbarch_init): Don't register deleted functions with
9555 gdbarch.
9556
3f2cef49
AB
95572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9558
9559 * or1k-tdep.c (or1k_dummy_id): Delete.
9560 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9561
96acf884
AB
95622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9563
9564 * nios2-tdep.c (nios2_dummy_id): Delete.
9565 (nios2_unwind_sp): Delete.
9566 (nios2_gdbarch_init): Don't register deleted functions with
9567 gdbarch.
9568
ca0ab0aa
AB
95692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9570
9571 * nds32-tdep.c (nds32_dummy_id): Delete.
9572 (nds32_unwind_pc): Delete.
9573 (nds32_unwind_sp): Delete.
9574 (nds32_gdbarch_init): Don't register deleted functions with
9575 gdbarch.
9576
c8259044
AB
95772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9578
9579 * msp430-tdep.c (msp430_unwind_pc): Delete.
9580 (msp430_unwind_sp): Delete.
9581 (msp430_dummy_id): Delete.
9582 (msp430_gdbarch_init): Don't register deleted functions with
9583 gdbarch.
9584
27f113c8
AB
95852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 * moxie-tdep.c (moxie_unwind_sp): Delete.
9588 (moxie_unwind_pc): Delete.
9589 (moxie_dummy_id): Delete.
9590 (moxie_gdbarch_init): Don't register deleted functions with
9591 gdbarch.
9592
aee6c3cd
AB
95932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9594
9595 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9596 (mn10300_unwind_pc): Delete.
9597 (mn10300_unwind_sp): Delete.
9598 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9599 mn10300_unwind_sp.
9600 (mn10300_frame_unwind_init): Don't register deleted functions with
9601 gdbarch.
9602
8e2b5aea
AB
96032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * mep-tdep.c (mep_unwind_pc): Delete.
9606 (mep_unwind_sp): Delete.
9607 (mep_dummy_id): Delete.
9608 (mep_gdbarch_init): Don't register deleted functions with
9609 gdbarch.
9610
43cf3ede
AB
96112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9612
9613 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9614 (m68hc11_unwind_sp): Delete.
9615 (m68hc11_gdbarch_init): Don't register deleted functions with
9616 gdbarch.
9617
5e79b7bb
AB
96182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9619
9620 * m32r-tdep.c (m32r_unwind_sp): Delete.
9621 (m32r_unwind_pc): Delete.
9622 (m32r_dummy_id): Delete.
9623 (m32r_gdbarch_init): Don't register deleted functions with
9624 gdbarch.
9625
89b268d8
AB
96262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9627
9628 * m32c-tdep.c (m32c_unwind_pc): Delete.
9629 (m32c_unwind_sp): Delete.
9630 (m32c_dummy_id): Delete.
9631 (m32c_gdbarch_init): Don't register deleted functions with
9632 gdbarch.
9633
946c28d2
AB
96342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9635
9636 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9637 (lm32_unwind_pc): Delete.
9638 (lm32_dummy_id): Delete.
9639 (lm32_gdbarch_init): Don't register deleted functions with
9640 gdbarch.
9641
bf12844a
AB
96422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9643
9644 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9645 (iq2000_unwind_pc): Delete.
9646 (iq2000_dummy_id): Delete.
9647 (iq2000_gdbarch_init): Don't register deleted functions with
9648 gdbarch.
9649
ecbc06d2
AB
96502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9651
9652 * nds32-tdep.c (nds32_type_align): Delete.
9653 (nds32_push_dummy_call): Use type_align instead.
9654
030197b4
AB
96552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9656
9657 * arm-tdep.c (arm_type_align): Only handle vector override case.
9658 (arm_push_dummy_call): Use type_align.
9659 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9660
b907456c
AB
96612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9662
9663 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9664 case.
9665 (pass_on_stack): Use type_align.
9666 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9667 function.
9668
9e97ba43
TT
96692019-04-23 Tom Tromey <tromey@adacore.com>
9670
9671 * dwarf2read.c (line_header::file_name_at): Remove unused
9672 overload.
9673
6892f601
TV
96742019-04-23 Tom de Vries <tdevries@suse.de>
9675
9676 PR gdb/24438
9677 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9678 invocation.
9679
336d760d
AT
9680
96812019-03-27 Ali Tamur <tamur@google.com>
9682
9683 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9684 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9685 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9686 (dwarf_expr_context::get_addr_index): Likewise
9687 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9688 (symbol_needs_eval_context::get_addr_index): Likewise
9689 (disassemble_dwarf_expression): Add DW_OP_addrx
9690 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9691 (read_cutu_die_from_dwo): Update comment
9692 (skip_one_die): Add DW_FORM_addrx
9693 (read_attribute_value): Likewise
9694 (var_decode_location): Add DW_OP_addrx
9695 (dwarf2_const_value_attr): Add DW_FORM_addrx
9696 (dump_die_shallow): Likewise
9697 (dwarf2_fetch_constant_bytes): Likewise
9698 (decode_locdesc): Add DW_OP_addrx
9699 (skip_form_bytes): Add DW_FORM_addrx
9700
ad9d13f8
AT
97012019-04-22 Ali Tamur <tamur@google.com>
9702
9703 * MAINTAINERS (Write After Approval): Add self.
9704
d70cc3ba
SM
97052019-04-22 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9708 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9709 (open_symbol_file_object): Likewise.
9710 (svr4_default_sos): Add info parameter.
9711 (svr4_read_so_list): Likewise.
9712 (svr4_current_sos_direct): Adjust functions calls to pass down
9713 info.
9714 (svr4_current_sos_1): Add info parameter.
9715 (svr4_current_sos): Call get_svr4_info, pass info down to
9716 svr4_current_sos_1.
9717 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9718 get_svr4_info.
9719 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9720 get_svr4_info.
9721 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9722 to get_svr4_info.
9723 (probes_table_remove_objfile_probes): Likewise.
9724 (register_solib_event_probe): Add info parameter.
9725 (solist_update_incremental): Pass info parameter down to
9726 svr4_read_so_list.
9727 (disable_probes_interface): Add info parameter.
9728 (svr4_handle_solib_event): Pass current_program_space to
9729 get_svr4_info. Adjust disable_probes_interface cleanup.
9730 (svr4_create_probe_breakpoints): Add info parameter, pass it
9731 down to register_solib_event_probe.
9732 (svr4_create_solib_event_breakpoints): Add info parameter,
9733 pass it down to svr4_create_probe_breakpoints.
9734 (enable_break): Pass info down to
9735 svr4_create_solib_event_breakpoints.
9736 (svr4_solib_create_inferior_hook): Pass current_program_space to
9737 get_svr4_info.
9738 (svr4_clear_solib): Likewise.
9739
7905fc35
PA
97402019-04-22 Pedro Alves <palves@redhat.com>
9741
9742 * solib-svr4.c (svr4_free_objfile_observer): New.
9743 (probe_and_action::objfile): New field.
9744 (probes_table_htab_remove_objfile_probes)
9745 (probes_table_remove_objfile_probes): New functions.
9746 (register_solib_event_probe): Add 'objfile' parameter. Store it
9747 in the new probe_and_action. Don't store the probe in 'lookup'.
9748 (svr4_create_probe_breakpoints): Pass objfile to
9749 register_solib_event_probe.
9750 (_initialize_svr4_solib): Register a free_objfile observer.
9751
fb881986
TT
97522019-04-19 Tom Tromey <tom@tromey.com>
9753
9754 * common/queue.h: Remove.
9755
8732db6c
TT
97562019-04-19 Tom Tromey <tom@tromey.com>
9757
9758 * event-loop.c: Don't include "common/queue.h".
9759
97dfbadd
TT
97602019-04-19 Tom Tromey <tom@tromey.com>
9761
9762 * remote.c (remote_target): Use delete.
9763 * remote-notif.h: Include <list>, not "common/queue.h".
9764 (notif_client_p): Remove typedef.
9765 (remote_notif_state): Add constructor, destructor, initializer.
9766 <notif_queue>: Now a std::list.
9767 (remote_notif_state_xfree): Don't declare.
9768 * remote-notif.c (remote_notif_process, handle_notification)
9769 (remote_notif_state_allocate): Update.
9770 (~remote_notif_state): Rename from remote_notif_state_xfree.
9771
cf250e36
TT
97722019-04-19 Tom Tromey <tom@tromey.com>
9773
9774 * symfile.c (reread_symbols): Update.
9775 * objfiles.c (objfile_register_static_link)
9776 (objfile_lookup_static_link): Update
9777 (~objfile) Don't delete static_links.
9778 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9779
61f4b350
TT
97802019-04-19 Tom Tromey <tom@tromey.com>
9781
9782 * type-stack.h (struct type_stack) <insert>: Constify string.
9783 * type-stack.c (type_stack::insert): Constify string.
9784 * gdbtypes.h (lookup_template_type): Update.
9785 (address_space_name_to_int): Update.
9786 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9787 const.
9788 (lookup_template_type): Make name const.
9789 * c-exp.y: Update rules.
9790 (lex_one_token, classify_name, classify_inner_name)
9791 (c_print_token): Update.
9792 * p-exp.y: Update rules.
9793 (yylex): Update.
9794 * f-exp.y: Update rules.
9795 (yylex): Update.
9796 * d-exp.y: Update rules.
9797 (lex_one_token, classify_name, classify_inner_name): Update.
9798 * parse.c (write_dollar_variable, copy_name): Return std::string.
9799 * parser-defs.h (copy_name): Change return type.
9800 * m2-exp.y: Update rules.
9801 (yylex): Update.
9802 * go-exp.y (lex_one_token): Update.
9803 Update rules.
9804 (classify_unsafe_function, classify_packaged_name)
9805 (classify_name, yylex): Update.
9806
189b8c2e
ST
98072019-04-19 Sergei Trofimovich <siarheit@google.com>
9808
9809 * configure.ac: add --enable-source-highlight switch.
9810 * configure: Regenerate.
9811 * top.c (print_gdb_version): plumb --enable-source-highlight
9812 status to "show configuration".
9813
8ecb59f8
TT
98142019-04-19 Tom Tromey <tromey@adacore.com>
9815
9816 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9817 Check ADA_TYPE_P.
9818 (empty_record, ada_template_to_fixed_record_type_1)
9819 (template_to_static_fixed_type)
9820 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9821 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9822 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9823 macros.
9824
62160ec9
TT
98252019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9826
9827 PR symtab/24423:
9828 * source.c (print_source_lines_base): Advance "iter" when a
9829 control character is seen.
9830
f2ae8bc8
PW
98312019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9832
9833 * inferior.h (struct infcall_suspend_state_deleter):
9834 Catch exception in destructor to avoid crash.
9835
d563b953
PW
98362019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9837
9838 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9839 close to the add_com "shell".
9840
dc34c897
TT
98412019-04-18 Tom Tromey <tromey@adacore.com>
9842
9843 * process-stratum-target.h (class process_stratum_target)
9844 <stratum>: Add "final".
9845
a12e5744
TT
98462019-04-17 Tom Tromey <tromey@adacore.com>
9847
9848 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9849 against nullptr before use.
9850
a7e559cc
AH
98512019-04-17 Alan Hayward <alan.hayward@arm.com>
9852
9853 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9854
c01660c6
AB
98552019-04-17 Jim Wilson <jimw@sifive.com>
9856 Andrew Burgess <andrew.burgess@embecosm.com>
9857
9858 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9859 code read might fail, assume 4-byte breakpoint in that case.
9860
4aa866af
LS
98612019-04-15 Leszek Swirski <leszeks@google.com>
9862
9863 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9864 rather than a hand-rolled POD check when checking for forced MEMORY
9865 classification.
9866
48574d91
AH
98672019-04-15 Alan Hayward <alan.hayward@arm.com>
9868
9869 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9870 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9871 function.
9872 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9873 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9874 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9875 declaration.
9876
4da037ef
AH
98772019-04-15 Alan Hayward <alan.hayward@arm.com>
9878
9879 * aarch64-linux-nat.c
9880 (aarch64_linux_nat_target::thread_architecture): Add override.
9881 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9882 each VQ.
9883
ccb8d7e8
AH
98842019-04-15 Alan Hayward <alan.hayward@arm.com>
9885
9886 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9887
35add35e
AB
98882019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9889
9890 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9891 target types of size 96-bits, add some additional comments, and
9892 check that the builtin type we found was the correct size.
9893
51196bbc
EZ
98942019-04-12 Eli Zaretskii <eliz@gnu.org>
9895
9896 * utils.c (prompt_for_continue): Don't restore the styling at the
9897 end, as applied_style has the wrong value. This fixes styling in
9898 long lists of file names that are interrupted by the "Continue?"
9899 prompt.
9900
62253a61
AB
99012019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9904 * c-lang.c (c_language_defn): Likewise.
9905 (cplus_language_defn): Likewise.
9906 (asm_language_defn): Likewise.
9907 (minimal_language_defn): Likewise.
9908 * d-lang.c (d_language_defn): Likewise.
9909 * f-lang.c (f_language_defn): Likewise.
9910 * go-lang.c (go_language_defn): Likewise.
9911 * language.c (unknown_language_defn): Likewise.
9912 (auto_language_defn): Likewise.
9913 * language.h (struct language_defn): Remove la_magic field.
9914 (LANG_MAGIC): Delete.
9915 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9916 * objc-lang.c (objc_language_defn): Likewise.
9917 * opencl-lang.c (opencl_language_defn): Likewise.
9918 * p-lang.c (pascal_language_defn): Likewise.
9919 * rust-lang.c (rust_language_defn): Likewise.
9920
a9158a86
AB
99212019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * riscv-tdep.c (riscv_type_align): New function.
9924 (riscv_type_alignment): Delete.
9925 (riscv_arg_location): Use 'type_align'.
9926 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9927
41077b66
AB
99282019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9929
9930 * gdbtypes.c (type_align): A struct with no non-static fields also
9931 has alignment of 1.
9932
9f0272f8
AB
99332019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9936 component to 0.
9937 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9938 member.
9939 (riscv_struct_info::analyse): New implementation using new
9940 analyse_inner member function.
9941 (riscv_struct_info::field_offset): New member function.
9942 (riscv_struct_info::m_offsets): New member variable.
9943 (riscv_struct_info::analyse_inner): New private member function,
9944 takes the old implementation of riscv_struct_info::analyse but
9945 extended to track field offsets.
9946 (riscv_call_arg_struct): Update the struct folding special cases
9947 to handle cases where empty C++ structs, which are non-zero
9948 length, are found.
9949 (riscv_arg_location): Initialise the length of each location, a
9950 non-zero length now indicates the location is in use.
9951 (riscv_push_dummy_call): Allow for the first location having a
9952 non-zero offset when setting up arguments.
9953 (riscv_return_value): Likewise, but for return values.
9954
02cf60c7
TT
99552019-04-11 Tom Tromey <tromey@adacore.com>
9956
9957 * utils.c (internal_vproblem): Make "msg" const.
9958
68811f8f
AH
99592019-04-11 Alan Hayward <alan.hayward@arm.com>
9960
9961 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9962 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9963 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9964 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9965
3f52fdbc
KB
99662019-04-10 Kevin Buettner <kevinb@redhat.com>
9967
9968 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9969 function.
9970 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9971 of amd64_collect_native_gregset.
9972 (amd64_linux_nat_target::store_registers): Likewise.
9973
e9ad22ee
TT
99742019-04-10 Tom Tromey <tom@tromey.com>
9975
9976 * symtab.c (lookup_global_symbol_from_objfile)
9977 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9978 * objfiles.h (class separate_debug_iterator): New.
9979 (class separate_debug_range): New.
9980 (struct objfile) <separate_debug_objfiles>: New method.
9981 (objfile_separate_debug_iterate): Don't declare.
9982 * objfiles.c (separate_debug_iterator::operator++): Rename from
9983 objfile_separate_debug_iterate.
9984 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9985 iterator.
9986 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9987 iterator.
9988
ee371134
TT
99892019-04-10 Tom Tromey <tom@tromey.com>
9990
9991 * symfile.c (reread_symbols): Remove old comment.
9992 * objfiles.c (free_all_objfiles): Fix a typo.
9993
bf227d61
TT
99942019-04-10 Tom Tromey <tom@tromey.com>
9995
9996 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9997 * minsyms.c (lookup_minimal_symbol): Use foreach.
9998 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9999 (lookup_minimal_symbol_solib_trampoline): Likewise.
10000 * symfile.c (reread_symbols): Use foreach.
10001
8dc433a0
TT
100022019-04-09 Ivan Begert <ivanbegert@gmail.com>
10003 Tom Tromey <tromey@adacore.com>
10004
10005 PR rust/24414:
10006 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10007 (rust_lex_int_test): Change "value" to be LONGEST.
10008 (rust_lex_tests): Add test for long integer literal.
10009
9ab8741a
TT
100102019-04-09 Tom Tromey <tromey@adacore.com>
10011
10012 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10013 to bool.
10014 (extended_remote_target::attach): Update.
10015 (remote_target::remote_notice_new_inferior): Update.
10016 (remote_target::add_current_inferior_and_thread): Update.
10017 * inferior.c (exit_inferior_1): Use "false".
10018 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10019
e242fd12
SM
100202019-04-09 Simon Marchi <simon.marchi@efficios.com>
10021
9ca1957f 10022 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10023 the "start" command.
10024
2b0c8b01
KB
100252019-04-08 Kevin Buettner <kevinb@redhat.com>
10026
10027 * python/py-inferior.c (infpy_thread_from_thread_handle):
10028 Adjust comments to reflect renaming of thread_from_thread_handle
10029 to thread_from_handle. Adjust keywords. Fix type error message.
10030 (inferior_object_methods): Add thread_from_handle. Retain
10031 thread_from_thread_handle, but mark it as deprecated.
10032
50a82723
KB
100332019-04-08 Kevin Buettner <kevinb@redhat.com>
10034
10035 * gdbthread.h (find_thread_by_handle): Revise declaration.
10036 * thread.c (find_thread_by_handle): Likewise. Adjust
10037 implementation too.
10038 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10039 support for buffer objects as handles.
10040
cf63b016
KB
100412019-04-08 Kevin Buettner <kevinb@redhat.com>
10042
10043 * python/py-infthread.c (thpy_thread_handle): New function.
10044 (thread_object_methods): Register thpy_thread_handle.
10045
3d6c6204
KB
100462019-04-08 Kevin Buettner <kevinb@redhat.com>
10047
10048 * gdbthread.h (thread_to_thread_handle): Declare.
10049 * thread.c (gdbtypes.h): Include.
10050 (thread_to_thread_handle): New function.
10051
10052 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10053 (target_thread_info_to_thread_handle): Declare.
10054 * target.c (target_thread_info_to_thread_handle): New function.
10055 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10056 * target-delegates.c: Regenerate.
10057
10058 * linux-thread-db.c (class thread_db_target): Add method
10059 thread_info_to_thread_handle.
10060 (thread_db_target::thread_info_to_thread_handle): Define.
10061 * remote.c (class remote_target): Add new method
10062 thread_info_to_thread_handle.
10063 (remote_target::thread_info_to_thread_handle): Define.
10064
56be6ea8
PA
100652019-04-08 Pedro Alves <palves@redhat.com>
10066
10067 * common/common-exceptions.c (throw_exception): Don't create
10068 named object to throw; throw directly.
10069 (throw_it): Likewise. Don't initialize gdb_exception::message
10070 here, with new; pass FMT and AP to the ctor instead.
10071 * common/common-exceptions.h: Include <string>.
10072 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10073 const char *, va_list)): New ctor. Use std::make_shared.
10074 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10075 errors)): Delete.
10076 (gdb_exception_error::gdb_exception_error(enum errors, const char
10077 *, va_list)): New.
10078 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10079 Add assertion.
10080 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10081 errors)): Delete.
10082 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10083 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10084 Add assertion.
10085
eedc3f4f
TT
100862019-04-08 Tom Tromey <tom@tromey.com>
10087
10088 * valops.c (value_rtti_indirect_type): Replace throw_exception
10089 with throw.
10090 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10091 with throw.
10092 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10093 throw.
10094 * target.c (target_translate_tls_address): Replace throw_exception
10095 with throw.
10096 * stack.c (frame_apply_command_count): Replace throw_exception
10097 with throw.
10098 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10099 throw.
10100 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10101 with throw.
10102 * rs6000-tdep.c (rs6000_frame_cache)
10103 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10104 * remote.c: Replace throw_exception with throw.
10105 * record-full.c (record_full_message, record_full_wait_1)
10106 (record_full_restore): Replace throw_exception with throw.
10107 * record-btrace.c:
10108 (get_thread_current_frame_id, record_btrace_start_replaying)
10109 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10110 (cmd_record_btrace_start): Replace throw_exception with throw.
10111 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10112 throw.
10113 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10114 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10115 * linespec.c:
10116 (find_linespec_symbols): Replace throw_exception with throw.
10117 * infrun.c (displaced_step_prepare, resume): Replace
10118 throw_exception with throw.
10119 * infcmd.c (post_create_inferior): Replace throw_exception with
10120 throw.
10121 * inf-loop.c (inferior_event_handler): Replace throw_exception
10122 with throw.
10123 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10124 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10125 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10126 (get_prev_frame_always, get_frame_pc_if_available)
10127 (get_frame_address_in_block_if_available, get_frame_language):
10128 Replace throw_exception with throw.
10129 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10130 throw_exception with throw.
10131 * eval.c (fetch_subexp_value, evaluate_var_value)
10132 (evaluate_funcall, evaluate_subexp_standard): Replace
10133 throw_exception with throw.
10134 * dwarf2loc.c (call_site_find_chain)
10135 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10136 Replace throw_exception with throw.
10137 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10138 with throw.
10139 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10140 throw.
10141 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10142 * completer.c (complete_line_internal): Replace throw_exception
10143 with throw.
10144 * compile/compile-object-run.c (compile_object_run): Replace
10145 throw_exception with throw.
10146 * cli/cli-script.c (process_next_line): Replace throw_exception
10147 with throw.
10148 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10149 (btrace_enable, btrace_maint_update_pt_packets): Replace
10150 throw_exception with throw.
10151 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10152 throw_exception with throw.
10153 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10154 throw_exception with throw.
10155 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10156 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10157 * aarch64-tdep.c (aarch64_make_prologue_cache)
10158 (aarch64_make_stub_cache): Replace throw_exception with throw.
10159
26003a20
TT
101602019-04-08 Tom Tromey <tom@tromey.com>
10161
10162 * common/common-exceptions.c (throw_exception): Rename from
10163 throw_exception_cxx. Remove old copy. Make argument const.
10164 (throw_it): Create and throw exception objects directly.
10165 * common/common-exceptions.h (throw_exception): Make argument
10166 const.
10167 (struct gdb_exception_error): Add constructor.
10168 (struct gdb_exception_quit): Add constructor.
10169
d272eb37
TT
101702019-04-08 Tom Tromey <tom@tromey.com>
10171
10172 * common/common-exceptions.h (exception_rethrow): Don't declare.
10173 (TRY_SJLJ): Update comment.
10174 (TRY, CATCH, END_CATCH): Remove.
10175 * common/common-exceptions.c (exception_rethrow): Remove.
10176
230d2906
TT
101772019-04-08 Tom Tromey <tom@tromey.com>
10178
10179 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10180 Remove.
10181 (gdb_exception_error): Rename from
10182 gdb_exception_RETURN_MASK_ERROR.
10183 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10184 (gdb_quit_bad_alloc): Update.
10185 * aarch64-tdep.c: Update.
10186 * ada-lang.c: Update.
10187 * ada-typeprint.c: Update.
10188 * ada-valprint.c: Update.
10189 * amd64-tdep.c: Update.
10190 * arch-utils.c: Update.
10191 * break-catch-throw.c: Update.
10192 * breakpoint.c: Update.
10193 * btrace.c: Update.
10194 * c-varobj.c: Update.
10195 * cli/cli-cmds.c: Update.
10196 * cli/cli-interp.c: Update.
10197 * cli/cli-script.c: Update.
10198 * common/common-exceptions.c: Update.
10199 * common/new-op.c: Update.
10200 * common/selftest.c: Update.
10201 * compile/compile-c-symbols.c: Update.
10202 * compile/compile-cplus-symbols.c: Update.
10203 * compile/compile-object-load.c: Update.
10204 * compile/compile-object-run.c: Update.
10205 * completer.c: Update.
10206 * corelow.c: Update.
10207 * cp-abi.c: Update.
10208 * cp-support.c: Update.
10209 * cp-valprint.c: Update.
10210 * darwin-nat.c: Update.
10211 * disasm-selftests.c: Update.
10212 * dtrace-probe.c: Update.
10213 * dwarf-index-cache.c: Update.
10214 * dwarf-index-write.c: Update.
10215 * dwarf2-frame-tailcall.c: Update.
10216 * dwarf2-frame.c: Update.
10217 * dwarf2loc.c: Update.
10218 * dwarf2read.c: Update.
10219 * eval.c: Update.
10220 * event-loop.c: Update.
10221 * event-top.c: Update.
10222 * exec.c: Update.
10223 * f-valprint.c: Update.
10224 * fbsd-tdep.c: Update.
10225 * frame-unwind.c: Update.
10226 * frame.c: Update.
10227 * gdbtypes.c: Update.
10228 * gnu-v3-abi.c: Update.
10229 * guile/guile-internal.h: Update.
10230 * guile/scm-block.c: Update.
10231 * guile/scm-breakpoint.c: Update.
10232 * guile/scm-cmd.c: Update.
10233 * guile/scm-disasm.c: Update.
10234 * guile/scm-frame.c: Update.
10235 * guile/scm-lazy-string.c: Update.
10236 * guile/scm-math.c: Update.
10237 * guile/scm-param.c: Update.
10238 * guile/scm-ports.c: Update.
10239 * guile/scm-pretty-print.c: Update.
10240 * guile/scm-symbol.c: Update.
10241 * guile/scm-symtab.c: Update.
10242 * guile/scm-type.c: Update.
10243 * guile/scm-value.c: Update.
10244 * i386-linux-tdep.c: Update.
10245 * i386-tdep.c: Update.
10246 * inf-loop.c: Update.
10247 * infcall.c: Update.
10248 * infcmd.c: Update.
10249 * infrun.c: Update.
10250 * jit.c: Update.
10251 * language.c: Update.
10252 * linespec.c: Update.
10253 * linux-fork.c: Update.
10254 * linux-nat.c: Update.
10255 * linux-tdep.c: Update.
10256 * linux-thread-db.c: Update.
10257 * main.c: Update.
10258 * mi/mi-cmd-break.c: Update.
10259 * mi/mi-cmd-stack.c: Update.
10260 * mi/mi-interp.c: Update.
10261 * mi/mi-main.c: Update.
10262 * objc-lang.c: Update.
10263 * p-valprint.c: Update.
10264 * parse.c: Update.
10265 * ppc-linux-tdep.c: Update.
10266 * printcmd.c: Update.
10267 * python/py-arch.c: Update.
10268 * python/py-breakpoint.c: Update.
10269 * python/py-cmd.c: Update.
10270 * python/py-finishbreakpoint.c: Update.
10271 * python/py-frame.c: Update.
10272 * python/py-framefilter.c: Update.
10273 * python/py-gdb-readline.c: Update.
10274 * python/py-inferior.c: Update.
10275 * python/py-infthread.c: Update.
10276 * python/py-lazy-string.c: Update.
10277 * python/py-linetable.c: Update.
10278 * python/py-objfile.c: Update.
10279 * python/py-param.c: Update.
10280 * python/py-prettyprint.c: Update.
10281 * python/py-progspace.c: Update.
10282 * python/py-record-btrace.c: Update.
10283 * python/py-record.c: Update.
10284 * python/py-symbol.c: Update.
10285 * python/py-type.c: Update.
10286 * python/py-unwind.c: Update.
10287 * python/py-utils.c: Update.
10288 * python/py-value.c: Update.
10289 * python/python.c: Update.
10290 * record-btrace.c: Update.
10291 * record-full.c: Update.
10292 * remote-fileio.c: Update.
10293 * remote.c: Update.
10294 * riscv-tdep.c: Update.
10295 * rs6000-aix-tdep.c: Update.
10296 * rs6000-tdep.c: Update.
10297 * rust-exp.y: Update.
10298 * rust-lang.c: Update.
10299 * s390-tdep.c: Update.
10300 * selftest-arch.c: Update.
10301 * solib-dsbt.c: Update.
10302 * solib-frv.c: Update.
10303 * solib-spu.c: Update.
10304 * solib-svr4.c: Update.
10305 * solib.c: Update.
10306 * sparc64-linux-tdep.c: Update.
10307 * stack.c: Update.
10308 * symfile-mem.c: Update.
10309 * symmisc.c: Update.
10310 * target.c: Update.
10311 * thread.c: Update.
10312 * top.c: Update.
10313 * tracefile-tfile.c: Update.
10314 * tui/tui.c: Update.
10315 * typeprint.c: Update.
10316 * unittests/cli-utils-selftests.c: Update.
10317 * unittests/parse-connection-spec-selftests.c: Update.
10318 * valops.c: Update.
10319 * valprint.c: Update.
10320 * value.c: Update.
10321 * varobj.c: Update.
10322 * windows-nat.c: Update.
10323 * x86-linux-nat.c: Update.
10324 * xml-support.c: Update.
10325
a70b8144
TT
103262019-04-08 Tom Tromey <tom@tromey.com>
10327
10328 * xml-support.c: Use C++ exception handling.
10329 * x86-linux-nat.c: Use C++ exception handling.
10330 * windows-nat.c: Use C++ exception handling.
10331 * varobj.c: Use C++ exception handling.
10332 * value.c: Use C++ exception handling.
10333 * valprint.c: Use C++ exception handling.
10334 * valops.c: Use C++ exception handling.
10335 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10336 handling.
10337 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10338 * typeprint.c: Use C++ exception handling.
10339 * tui/tui.c: Use C++ exception handling.
10340 * tracefile-tfile.c: Use C++ exception handling.
10341 * top.c: Use C++ exception handling.
10342 * thread.c: Use C++ exception handling.
10343 * target.c: Use C++ exception handling.
10344 * symmisc.c: Use C++ exception handling.
10345 * symfile-mem.c: Use C++ exception handling.
10346 * stack.c: Use C++ exception handling.
10347 * sparc64-linux-tdep.c: Use C++ exception handling.
10348 * solib.c: Use C++ exception handling.
10349 * solib-svr4.c: Use C++ exception handling.
10350 * solib-spu.c: Use C++ exception handling.
10351 * solib-frv.c: Use C++ exception handling.
10352 * solib-dsbt.c: Use C++ exception handling.
10353 * selftest-arch.c: Use C++ exception handling.
10354 * s390-tdep.c: Use C++ exception handling.
10355 * rust-lang.c: Use C++ exception handling.
10356 * rust-exp.y: Use C++ exception handling.
10357 * rs6000-tdep.c: Use C++ exception handling.
10358 * rs6000-aix-tdep.c: Use C++ exception handling.
10359 * riscv-tdep.c: Use C++ exception handling.
10360 * remote.c: Use C++ exception handling.
10361 * remote-fileio.c: Use C++ exception handling.
10362 * record-full.c: Use C++ exception handling.
10363 * record-btrace.c: Use C++ exception handling.
10364 * python/python.c: Use C++ exception handling.
10365 * python/py-value.c: Use C++ exception handling.
10366 * python/py-utils.c: Use C++ exception handling.
10367 * python/py-unwind.c: Use C++ exception handling.
10368 * python/py-type.c: Use C++ exception handling.
10369 * python/py-symbol.c: Use C++ exception handling.
10370 * python/py-record.c: Use C++ exception handling.
10371 * python/py-record-btrace.c: Use C++ exception handling.
10372 * python/py-progspace.c: Use C++ exception handling.
10373 * python/py-prettyprint.c: Use C++ exception handling.
10374 * python/py-param.c: Use C++ exception handling.
10375 * python/py-objfile.c: Use C++ exception handling.
10376 * python/py-linetable.c: Use C++ exception handling.
10377 * python/py-lazy-string.c: Use C++ exception handling.
10378 * python/py-infthread.c: Use C++ exception handling.
10379 * python/py-inferior.c: Use C++ exception handling.
10380 * python/py-gdb-readline.c: Use C++ exception handling.
10381 * python/py-framefilter.c: Use C++ exception handling.
10382 * python/py-frame.c: Use C++ exception handling.
10383 * python/py-finishbreakpoint.c: Use C++ exception handling.
10384 * python/py-cmd.c: Use C++ exception handling.
10385 * python/py-breakpoint.c: Use C++ exception handling.
10386 * python/py-arch.c: Use C++ exception handling.
10387 * printcmd.c: Use C++ exception handling.
10388 * ppc-linux-tdep.c: Use C++ exception handling.
10389 * parse.c: Use C++ exception handling.
10390 * p-valprint.c: Use C++ exception handling.
10391 * objc-lang.c: Use C++ exception handling.
10392 * mi/mi-main.c: Use C++ exception handling.
10393 * mi/mi-interp.c: Use C++ exception handling.
10394 * mi/mi-cmd-stack.c: Use C++ exception handling.
10395 * mi/mi-cmd-break.c: Use C++ exception handling.
10396 * main.c: Use C++ exception handling.
10397 * linux-thread-db.c: Use C++ exception handling.
10398 * linux-tdep.c: Use C++ exception handling.
10399 * linux-nat.c: Use C++ exception handling.
10400 * linux-fork.c: Use C++ exception handling.
10401 * linespec.c: Use C++ exception handling.
10402 * language.c: Use C++ exception handling.
10403 * jit.c: Use C++ exception handling.
10404 * infrun.c: Use C++ exception handling.
10405 * infcmd.c: Use C++ exception handling.
10406 * infcall.c: Use C++ exception handling.
10407 * inf-loop.c: Use C++ exception handling.
10408 * i386-tdep.c: Use C++ exception handling.
10409 * i386-linux-tdep.c: Use C++ exception handling.
10410 * guile/scm-value.c: Use C++ exception handling.
10411 * guile/scm-type.c: Use C++ exception handling.
10412 * guile/scm-symtab.c: Use C++ exception handling.
10413 * guile/scm-symbol.c: Use C++ exception handling.
10414 * guile/scm-pretty-print.c: Use C++ exception handling.
10415 * guile/scm-ports.c: Use C++ exception handling.
10416 * guile/scm-param.c: Use C++ exception handling.
10417 * guile/scm-math.c: Use C++ exception handling.
10418 * guile/scm-lazy-string.c: Use C++ exception handling.
10419 * guile/scm-frame.c: Use C++ exception handling.
10420 * guile/scm-disasm.c: Use C++ exception handling.
10421 * guile/scm-cmd.c: Use C++ exception handling.
10422 * guile/scm-breakpoint.c: Use C++ exception handling.
10423 * guile/scm-block.c: Use C++ exception handling.
10424 * guile/guile-internal.h: Use C++ exception handling.
10425 * gnu-v3-abi.c: Use C++ exception handling.
10426 * gdbtypes.c: Use C++ exception handling.
10427 * frame.c: Use C++ exception handling.
10428 * frame-unwind.c: Use C++ exception handling.
10429 * fbsd-tdep.c: Use C++ exception handling.
10430 * f-valprint.c: Use C++ exception handling.
10431 * exec.c: Use C++ exception handling.
10432 * event-top.c: Use C++ exception handling.
10433 * event-loop.c: Use C++ exception handling.
10434 * eval.c: Use C++ exception handling.
10435 * dwarf2read.c: Use C++ exception handling.
10436 * dwarf2loc.c: Use C++ exception handling.
10437 * dwarf2-frame.c: Use C++ exception handling.
10438 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10439 * dwarf-index-write.c: Use C++ exception handling.
10440 * dwarf-index-cache.c: Use C++ exception handling.
10441 * dtrace-probe.c: Use C++ exception handling.
10442 * disasm-selftests.c: Use C++ exception handling.
10443 * darwin-nat.c: Use C++ exception handling.
10444 * cp-valprint.c: Use C++ exception handling.
10445 * cp-support.c: Use C++ exception handling.
10446 * cp-abi.c: Use C++ exception handling.
10447 * corelow.c: Use C++ exception handling.
10448 * completer.c: Use C++ exception handling.
10449 * compile/compile-object-run.c: Use C++ exception handling.
10450 * compile/compile-object-load.c: Use C++ exception handling.
10451 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10452 * compile/compile-c-symbols.c: Use C++ exception handling.
10453 * common/selftest.c: Use C++ exception handling.
10454 * common/new-op.c: Use C++ exception handling.
10455 * cli/cli-script.c: Use C++ exception handling.
10456 * cli/cli-interp.c: Use C++ exception handling.
10457 * cli/cli-cmds.c: Use C++ exception handling.
10458 * c-varobj.c: Use C++ exception handling.
10459 * btrace.c: Use C++ exception handling.
10460 * breakpoint.c: Use C++ exception handling.
10461 * break-catch-throw.c: Use C++ exception handling.
10462 * arch-utils.c: Use C++ exception handling.
10463 * amd64-tdep.c: Use C++ exception handling.
10464 * ada-valprint.c: Use C++ exception handling.
10465 * ada-typeprint.c: Use C++ exception handling.
10466 * ada-lang.c: Use C++ exception handling.
10467 * aarch64-tdep.c: Use C++ exception handling.
10468
3d6e9d23
TT
104692019-04-08 Tom Tromey <tom@tromey.com>
10470
10471 * xml-support.c (gdb_xml_parser::parse): Update.
10472 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10473 * value.c (show_convenience): Update.
10474 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10475 (test_parse_flags_qcs): Update.
10476 * thread.c (thr_try_catch_cmd): Update.
10477 * target.c (target_translate_tls_address): Update.
10478 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10479 (info_frame_command_core, frame_apply_command_count): Update.
10480 * rust-exp.y (rust_lex_exception_test): Update.
10481 * riscv-tdep.c (riscv_print_one_register_info): Update.
10482 * remote.c (remote_target::enable_btrace): Update.
10483 * record-btrace.c (record_btrace_enable_warn): Update.
10484 * python/py-utils.c (gdbpy_convert_exception): Update.
10485 * printcmd.c (do_one_display, print_variable_and_value): Update.
10486 * mi/mi-main.c (mi_print_exception): Update.
10487 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10488 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10489 * linux-nat.c (linux_nat_target::attach): Update.
10490 * linux-fork.c (class scoped_switch_fork_info): Update.
10491 * infrun.c (displaced_step_prepare): Update.
10492 * infcall.c (call_function_by_hand_dummy): Update.
10493 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10494 * gnu-v3-abi.c (print_one_vtable): Update.
10495 * frame.c (get_prev_frame_always): Update.
10496 * f-valprint.c (info_common_command_for_block): Update.
10497 * exec.c (try_open_exec_file): Update.
10498 * exceptions.c (print_exception, exception_print)
10499 (exception_fprintf, exception_print_same): Update.
10500 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10501 * dwarf-index-cache.c (index_cache::store)
10502 (index_cache::lookup_gdb_index): Update.
10503 * darwin-nat.c (maybe_cache_shell): Update.
10504 * cp-valprint.c (cp_print_value_fields): Update.
10505 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10506 (gcc_cplus_symbol_address): Update.
10507 * compile/compile-c-symbols.c (gcc_convert_symbol)
10508 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10509 * common/selftest.c: Update.
10510 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10511 a std::string.
10512 (exception_try_scope_entry, exception_try_scope_exit): Don't
10513 declare.
10514 (struct exception_try_scope): Remove.
10515 (TRY): Don't use exception_try_scope.
10516 (struct gdb_exception): Add constructor, operator=.
10517 <what>: New method.
10518 (struct gdb_exception_RETURN_MASK_ALL)
10519 (struct gdb_exception_RETURN_MASK_ERROR)
10520 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10521 (struct gdb_quit_bad_alloc): Update.
10522 * common/common-exceptions.c (exception_none): Change
10523 initializer.
10524 (struct catcher) <state, exception>: Initialize inline.
10525 <prev>: Remove member.
10526 (current_catcher): Remove.
10527 (catchers): New global.
10528 (exceptions_state_mc_init): Simplify.
10529 (catcher_pop): Remove.
10530 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10531 (try_scope_depth, exception_try_scope_entry)
10532 (exception_try_scope_exit): Remove.
10533 (throw_exception_sjlj): Update.
10534 (exception_messages, exception_messages_size): Remove.
10535 (throw_it): Simplify.
10536 (gdb_exception_sliced_copy): Remove.
10537 (throw_exception_cxx): Update.
10538 * cli/cli-script.c (script_from_file): Update.
10539 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10540 Update.
10541 * ada-valprint.c (ada_val_print): Update.
10542 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10543 (create_excep_cond_exprs): Update.
10544
c5c10118
TT
105452019-04-08 Tom Tromey <tom@tromey.com>
10546
10547 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10548 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10549 (TRY, CATCH, END_CATCH): Remove some definitions.
10550 * common/common-exceptions.c: Don't use GDB_XCPT.
10551 (catcher_list_size): Remove.
10552 (throw_exception, throw_it): Simplify.
10553
4de283e4
TT
105542019-04-05 Tom Tromey <tom@tromey.com>
10555
10556 Revert the header-sorting patch.
10557 * ft32-tdep.c: Revert.
10558 * frv-tdep.c: Revert.
10559 * frv-linux-tdep.c: Revert.
10560 * frame.c: Revert.
10561 * frame-unwind.c: Revert.
10562 * frame-base.c: Revert.
10563 * fork-child.c: Revert.
10564 * findvar.c: Revert.
10565 * findcmd.c: Revert.
10566 * filesystem.c: Revert.
10567 * filename-seen-cache.h: Revert.
10568 * filename-seen-cache.c: Revert.
10569 * fbsd-tdep.c: Revert.
10570 * fbsd-nat.h: Revert.
10571 * fbsd-nat.c: Revert.
10572 * f-valprint.c: Revert.
10573 * f-typeprint.c: Revert.
10574 * f-lang.c: Revert.
10575 * extension.h: Revert.
10576 * extension.c: Revert.
10577 * extension-priv.h: Revert.
10578 * expprint.c: Revert.
10579 * exec.h: Revert.
10580 * exec.c: Revert.
10581 * exceptions.c: Revert.
10582 * event-top.c: Revert.
10583 * event-loop.c: Revert.
10584 * eval.c: Revert.
10585 * elfread.c: Revert.
10586 * dwarf2read.h: Revert.
10587 * dwarf2read.c: Revert.
10588 * dwarf2loc.c: Revert.
10589 * dwarf2expr.h: Revert.
10590 * dwarf2expr.c: Revert.
10591 * dwarf2-frame.c: Revert.
10592 * dwarf2-frame-tailcall.c: Revert.
10593 * dwarf-index-write.h: Revert.
10594 * dwarf-index-write.c: Revert.
10595 * dwarf-index-common.c: Revert.
10596 * dwarf-index-cache.h: Revert.
10597 * dwarf-index-cache.c: Revert.
10598 * dummy-frame.c: Revert.
10599 * dtrace-probe.c: Revert.
10600 * disasm.h: Revert.
10601 * disasm.c: Revert.
10602 * disasm-selftests.c: Revert.
10603 * dictionary.c: Revert.
10604 * dicos-tdep.c: Revert.
10605 * demangle.c: Revert.
10606 * dcache.h: Revert.
10607 * dcache.c: Revert.
10608 * darwin-nat.h: Revert.
10609 * darwin-nat.c: Revert.
10610 * darwin-nat-info.c: Revert.
10611 * d-valprint.c: Revert.
10612 * d-namespace.c: Revert.
10613 * d-lang.c: Revert.
10614 * ctf.c: Revert.
10615 * csky-tdep.c: Revert.
10616 * csky-linux-tdep.c: Revert.
10617 * cris-tdep.c: Revert.
10618 * cris-linux-tdep.c: Revert.
10619 * cp-valprint.c: Revert.
10620 * cp-support.c: Revert.
10621 * cp-namespace.c: Revert.
10622 * cp-abi.c: Revert.
10623 * corelow.c: Revert.
10624 * corefile.c: Revert.
10625 * continuations.c: Revert.
10626 * completer.h: Revert.
10627 * completer.c: Revert.
10628 * complaints.c: Revert.
10629 * coffread.c: Revert.
10630 * coff-pe-read.c: Revert.
10631 * cli-out.h: Revert.
10632 * cli-out.c: Revert.
10633 * charset.c: Revert.
10634 * c-varobj.c: Revert.
10635 * c-valprint.c: Revert.
10636 * c-typeprint.c: Revert.
10637 * c-lang.c: Revert.
10638 * buildsym.c: Revert.
10639 * buildsym-legacy.c: Revert.
10640 * build-id.h: Revert.
10641 * build-id.c: Revert.
10642 * btrace.c: Revert.
10643 * bsd-uthread.c: Revert.
10644 * breakpoint.h: Revert.
10645 * breakpoint.c: Revert.
10646 * break-catch-throw.c: Revert.
10647 * break-catch-syscall.c: Revert.
10648 * break-catch-sig.c: Revert.
10649 * blockframe.c: Revert.
10650 * block.c: Revert.
10651 * bfin-tdep.c: Revert.
10652 * bfin-linux-tdep.c: Revert.
10653 * bfd-target.c: Revert.
10654 * bcache.c: Revert.
10655 * ax-general.c: Revert.
10656 * ax-gdb.h: Revert.
10657 * ax-gdb.c: Revert.
10658 * avr-tdep.c: Revert.
10659 * auxv.c: Revert.
10660 * auto-load.c: Revert.
10661 * arm-wince-tdep.c: Revert.
10662 * arm-tdep.c: Revert.
10663 * arm-symbian-tdep.c: Revert.
10664 * arm-pikeos-tdep.c: Revert.
10665 * arm-obsd-tdep.c: Revert.
10666 * arm-nbsd-tdep.c: Revert.
10667 * arm-nbsd-nat.c: Revert.
10668 * arm-linux-tdep.c: Revert.
10669 * arm-linux-nat.c: Revert.
10670 * arm-fbsd-tdep.c: Revert.
10671 * arm-fbsd-nat.c: Revert.
10672 * arm-bsd-tdep.c: Revert.
10673 * arch-utils.c: Revert.
10674 * arc-tdep.c: Revert.
10675 * arc-newlib-tdep.c: Revert.
10676 * annotate.h: Revert.
10677 * annotate.c: Revert.
10678 * amd64-windows-tdep.c: Revert.
10679 * amd64-windows-nat.c: Revert.
10680 * amd64-tdep.c: Revert.
10681 * amd64-sol2-tdep.c: Revert.
10682 * amd64-obsd-tdep.c: Revert.
10683 * amd64-obsd-nat.c: Revert.
10684 * amd64-nbsd-tdep.c: Revert.
10685 * amd64-nbsd-nat.c: Revert.
10686 * amd64-nat.c: Revert.
10687 * amd64-linux-tdep.c: Revert.
10688 * amd64-linux-nat.c: Revert.
10689 * amd64-fbsd-tdep.c: Revert.
10690 * amd64-fbsd-nat.c: Revert.
10691 * amd64-dicos-tdep.c: Revert.
10692 * amd64-darwin-tdep.c: Revert.
10693 * amd64-bsd-nat.c: Revert.
10694 * alpha-tdep.c: Revert.
10695 * alpha-obsd-tdep.c: Revert.
10696 * alpha-nbsd-tdep.c: Revert.
10697 * alpha-mdebug-tdep.c: Revert.
10698 * alpha-linux-tdep.c: Revert.
10699 * alpha-linux-nat.c: Revert.
10700 * alpha-bsd-tdep.c: Revert.
10701 * alpha-bsd-nat.c: Revert.
10702 * aix-thread.c: Revert.
10703 * agent.c: Revert.
10704 * addrmap.c: Revert.
10705 * ada-varobj.c: Revert.
10706 * ada-valprint.c: Revert.
10707 * ada-typeprint.c: Revert.
10708 * ada-tasks.c: Revert.
10709 * ada-lang.c: Revert.
10710 * aarch64-tdep.c: Revert.
10711 * aarch64-ravenscar-thread.c: Revert.
10712 * aarch64-newlib-tdep.c: Revert.
10713 * aarch64-linux-tdep.c: Revert.
10714 * aarch64-linux-nat.c: Revert.
10715 * aarch64-fbsd-tdep.c: Revert.
10716 * aarch64-fbsd-nat.c: Revert.
10717 * aarch32-linux-nat.c: Revert.
10718
d55e5aa6
TT
107192019-04-05 Tom Tromey <tom@tromey.com>
10720
10721 * ft32-tdep.c: Sort headers.
10722 * frv-tdep.c: Sort headers.
10723 * frv-linux-tdep.c: Sort headers.
10724 * frame.c: Sort headers.
10725 * frame-unwind.c: Sort headers.
10726 * frame-base.c: Sort headers.
10727 * fork-child.c: Sort headers.
10728 * findvar.c: Sort headers.
10729 * findcmd.c: Sort headers.
10730 * filesystem.c: Sort headers.
10731 * filename-seen-cache.h: Sort headers.
10732 * filename-seen-cache.c: Sort headers.
10733 * fbsd-tdep.c: Sort headers.
10734 * fbsd-nat.h: Sort headers.
10735 * fbsd-nat.c: Sort headers.
10736 * f-valprint.c: Sort headers.
10737 * f-typeprint.c: Sort headers.
10738 * f-lang.c: Sort headers.
10739 * extension.h: Sort headers.
10740 * extension.c: Sort headers.
10741 * extension-priv.h: Sort headers.
10742 * expprint.c: Sort headers.
10743 * exec.h: Sort headers.
10744 * exec.c: Sort headers.
10745 * exceptions.c: Sort headers.
10746 * event-top.c: Sort headers.
10747 * event-loop.c: Sort headers.
10748 * eval.c: Sort headers.
10749 * elfread.c: Sort headers.
10750 * dwarf2read.h: Sort headers.
10751 * dwarf2read.c: Sort headers.
10752 * dwarf2loc.c: Sort headers.
10753 * dwarf2expr.h: Sort headers.
10754 * dwarf2expr.c: Sort headers.
10755 * dwarf2-frame.c: Sort headers.
10756 * dwarf2-frame-tailcall.c: Sort headers.
10757 * dwarf-index-write.h: Sort headers.
10758 * dwarf-index-write.c: Sort headers.
10759 * dwarf-index-common.c: Sort headers.
10760 * dwarf-index-cache.h: Sort headers.
10761 * dwarf-index-cache.c: Sort headers.
10762 * dummy-frame.c: Sort headers.
10763 * dtrace-probe.c: Sort headers.
10764 * disasm.h: Sort headers.
10765 * disasm.c: Sort headers.
10766 * disasm-selftests.c: Sort headers.
10767 * dictionary.c: Sort headers.
10768 * dicos-tdep.c: Sort headers.
10769 * demangle.c: Sort headers.
10770 * dcache.h: Sort headers.
10771 * dcache.c: Sort headers.
10772 * darwin-nat.h: Sort headers.
10773 * darwin-nat.c: Sort headers.
10774 * darwin-nat-info.c: Sort headers.
10775 * d-valprint.c: Sort headers.
10776 * d-namespace.c: Sort headers.
10777 * d-lang.c: Sort headers.
10778 * ctf.c: Sort headers.
10779 * csky-tdep.c: Sort headers.
10780 * csky-linux-tdep.c: Sort headers.
10781 * cris-tdep.c: Sort headers.
10782 * cris-linux-tdep.c: Sort headers.
10783 * cp-valprint.c: Sort headers.
10784 * cp-support.c: Sort headers.
10785 * cp-namespace.c: Sort headers.
10786 * cp-abi.c: Sort headers.
10787 * corelow.c: Sort headers.
10788 * corefile.c: Sort headers.
10789 * continuations.c: Sort headers.
10790 * completer.h: Sort headers.
10791 * completer.c: Sort headers.
10792 * complaints.c: Sort headers.
10793 * coffread.c: Sort headers.
10794 * coff-pe-read.c: Sort headers.
10795 * cli-out.h: Sort headers.
10796 * cli-out.c: Sort headers.
10797 * charset.c: Sort headers.
10798 * c-varobj.c: Sort headers.
10799 * c-valprint.c: Sort headers.
10800 * c-typeprint.c: Sort headers.
10801 * c-lang.c: Sort headers.
10802 * buildsym.c: Sort headers.
10803 * buildsym-legacy.c: Sort headers.
10804 * build-id.h: Sort headers.
10805 * build-id.c: Sort headers.
10806 * btrace.c: Sort headers.
10807 * bsd-uthread.c: Sort headers.
10808 * breakpoint.h: Sort headers.
10809 * breakpoint.c: Sort headers.
10810 * break-catch-throw.c: Sort headers.
10811 * break-catch-syscall.c: Sort headers.
10812 * break-catch-sig.c: Sort headers.
10813 * blockframe.c: Sort headers.
10814 * block.c: Sort headers.
10815 * bfin-tdep.c: Sort headers.
10816 * bfin-linux-tdep.c: Sort headers.
10817 * bfd-target.c: Sort headers.
10818 * bcache.c: Sort headers.
10819 * ax-general.c: Sort headers.
10820 * ax-gdb.h: Sort headers.
10821 * ax-gdb.c: Sort headers.
10822 * avr-tdep.c: Sort headers.
10823 * auxv.c: Sort headers.
10824 * auto-load.c: Sort headers.
10825 * arm-wince-tdep.c: Sort headers.
10826 * arm-tdep.c: Sort headers.
10827 * arm-symbian-tdep.c: Sort headers.
10828 * arm-pikeos-tdep.c: Sort headers.
10829 * arm-obsd-tdep.c: Sort headers.
10830 * arm-nbsd-tdep.c: Sort headers.
10831 * arm-nbsd-nat.c: Sort headers.
10832 * arm-linux-tdep.c: Sort headers.
10833 * arm-linux-nat.c: Sort headers.
10834 * arm-fbsd-tdep.c: Sort headers.
10835 * arm-fbsd-nat.c: Sort headers.
10836 * arm-bsd-tdep.c: Sort headers.
10837 * arch-utils.c: Sort headers.
10838 * arc-tdep.c: Sort headers.
10839 * arc-newlib-tdep.c: Sort headers.
10840 * annotate.h: Sort headers.
10841 * annotate.c: Sort headers.
10842 * amd64-windows-tdep.c: Sort headers.
10843 * amd64-windows-nat.c: Sort headers.
10844 * amd64-tdep.c: Sort headers.
10845 * amd64-sol2-tdep.c: Sort headers.
10846 * amd64-obsd-tdep.c: Sort headers.
10847 * amd64-obsd-nat.c: Sort headers.
10848 * amd64-nbsd-tdep.c: Sort headers.
10849 * amd64-nbsd-nat.c: Sort headers.
10850 * amd64-nat.c: Sort headers.
10851 * amd64-linux-tdep.c: Sort headers.
10852 * amd64-linux-nat.c: Sort headers.
10853 * amd64-fbsd-tdep.c: Sort headers.
10854 * amd64-fbsd-nat.c: Sort headers.
10855 * amd64-dicos-tdep.c: Sort headers.
10856 * amd64-darwin-tdep.c: Sort headers.
10857 * amd64-bsd-nat.c: Sort headers.
10858 * alpha-tdep.c: Sort headers.
10859 * alpha-obsd-tdep.c: Sort headers.
10860 * alpha-nbsd-tdep.c: Sort headers.
10861 * alpha-mdebug-tdep.c: Sort headers.
10862 * alpha-linux-tdep.c: Sort headers.
10863 * alpha-linux-nat.c: Sort headers.
10864 * alpha-bsd-tdep.c: Sort headers.
10865 * alpha-bsd-nat.c: Sort headers.
10866 * aix-thread.c: Sort headers.
10867 * agent.c: Sort headers.
10868 * addrmap.c: Sort headers.
10869 * ada-varobj.c: Sort headers.
10870 * ada-valprint.c: Sort headers.
10871 * ada-typeprint.c: Sort headers.
10872 * ada-tasks.c: Sort headers.
10873 * ada-lang.c: Sort headers.
10874 * aarch64-tdep.c: Sort headers.
10875 * aarch64-ravenscar-thread.c: Sort headers.
10876 * aarch64-newlib-tdep.c: Sort headers.
10877 * aarch64-linux-tdep.c: Sort headers.
10878 * aarch64-linux-nat.c: Sort headers.
10879 * aarch64-fbsd-tdep.c: Sort headers.
10880 * aarch64-fbsd-nat.c: Sort headers.
10881 * aarch32-linux-nat.c: Sort headers.
10882
699bd4cf
TT
108832019-04-04 Tom Tromey <tom@tromey.com>
10884
10885 * varobj.c (varobj_create): Update.
10886 * rust-exp.y (struct rust_parser) <update_innermost_block,
10887 lookup_symbol>: New methods.
10888 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10889 Rename.
10890 (rust_parser::rust_lookup_type)
10891 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10892 * printcmd.c (display_command, do_one_display): Update.
10893 * parser-defs.h (struct parser_state) <parser_state>: Add
10894 "tracker" parameter.
10895 (block_tracker): New member.
10896 (class innermost_block_tracker) <innermost_block_tracker>: Add
10897 "types" parameter.
10898 <reset>: Remove method.
10899 (innermost_block): Don't declare.
10900 (null_post_parser): Update.
10901 * parse.c (innermost_block): Remove global.
10902 (write_dollar_variable): Update.
10903 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10904 Remove "tracker_types" parameter.
10905 (parse_expression): Add "tracker" parameter.
10906 (parse_expression_for_completion): Update.
10907 (null_post_parser): Add "tracker" parameter.
10908 * p-exp.y: Update rules.
10909 * m2-exp.y: Update rules.
10910 * language.h (struct language_defn) <la_post_parser>: Add
10911 "tracker" parameter.
10912 * go-exp.y: Update rules.
10913 * f-exp.y: Update rules.
10914 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10915 parameter.
10916 * d-exp.y: Update rules.
10917 * c-exp.y: Update rules.
10918 * breakpoint.c (set_breakpoint_condition): Create an
10919 innermost_block_tracker.
10920 (watch_command_1): Likewise.
10921 * ada-lang.c (resolve): Add "tracker" parameter.
10922 (resolve_subexp): Likewise.
10923 * ada-exp.y (write_var_from_sym): Update.
10924
dac43e32
TT
109252019-04-04 Tom Tromey <tom@tromey.com>
10926
10927 * type-stack.h: New file.
10928 * type-stack.c: New file.
10929 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10930 type-stack.h.
10931 (insert_into_type_stack, insert_type, push_type, push_type_int)
10932 (insert_type_address_space, pop_type, pop_type_int)
10933 (pop_typelist, pop_type_stack, append_type_stack)
10934 (push_type_stack, get_type_stack, push_typelist)
10935 (follow_type_instance_flags, follow_types): Don't declare.
10936 * parse.c (type_stack): Remove global.
10937 (parse_exp_in_context): Update.
10938 (insert_into_type_stack, insert_type, push_type, push_type_int)
10939 (insert_type_address_space, pop_type, pop_type_int)
10940 (pop_typelist, pop_type_stack, append_type_stack)
10941 (push_type_stack, get_type_stack, push_typelist)
10942 (follow_type_instance_flags, follow_types): Remove (moved to
10943 type-stack.c).
10944 * f-exp.y (type_stack): New global.
10945 Update rules.
10946 (push_kind_type, f_parse): Update.
10947 * d-exp.y (type_stack): New global.
10948 Update rules.
10949 (d_parse): Update.
10950 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10951 Update rules.
10952 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10953 (HFILES_NO_SRCDIR): Add type-stack.h.
10954
2a612529
TT
109552019-04-04 Tom Tromey <tom@tromey.com>
10956
10957 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10958 (rust_parser::convert_ast_to_expression, rust_parse)
10959 (rust_lex_test_completion, rust_lex_tests): Update.
10960 * parser-defs.h (struct expr_completion_state): New.
10961 (struct parser_state) <parser_state>: Add completion parameter.
10962 <mark_struct_expression, mark_completion_tag>: New methods.
10963 <parse_completion, m_completion_state>: New members.
10964 (prefixify_expression, null_post_parser): Update.
10965 (mark_struct_expression, mark_completion_tag): Don't declare.
10966 * parse.c (parse_completion, expout_last_struct)
10967 (expout_tag_completion_type, expout_completion_name): Remove
10968 globals.
10969 (parser_state::mark_struct_expression)
10970 (parser_state::mark_completion_tag): Now methods.
10971 (prefixify_expression): Add last_struct parameter.
10972 (prefixify_subexp): Likewise.
10973 (parse_exp_1): Update.
10974 (parse_exp_in_context): Add cstate parameter. Update.
10975 (parse_expression_for_completion): Create an
10976 expr_completion_state.
10977 (null_post_parser): Add "completion" parameter.
10978 * p-exp.y: Update rules.
10979 (yylex): Update.
10980 * language.h (struct language_defn) <la_post_parser>: Add
10981 "completing" parameter.
10982 * go-exp.y: Update rules.
10983 (lex_one_token): Update.
10984 * expression.h (parse_completion): Don't declare.
10985 * d-exp.y: Update rules.
10986 (lex_one_token): Update rules.
10987 * c-exp.y: Update rules.
10988 (lex_one_token): Update.
10989 * ada-lang.c (resolve): Add "parse_completion" parameter.
10990 (resolve_subexp): Likewise.
10991 (ada_resolve_function): Likewise.
10992
43476f0b
TT
109932019-04-04 Tom Tromey <tom@tromey.com>
10994
10995 * parser-defs.h (struct parser_state) <start_arglist,
10996 end_arglist>: New methods.
10997 <arglist_len, m_funcall_chain>: New members.
10998 (arglist_len, start_arglist, end_arglist): Don't declare.
10999 * parse.c (arglist_len, funcall_chain): Remove global.
11000 (start_arglist, end_arglist): Remove functions.
11001 (parse_exp_in_context): Update.
11002 * p-exp.y: Update rules.
11003 * m2-exp.y: Update rules.
11004 * go-exp.y: Update rules.
11005 * f-exp.y: Update rules.
11006 * d-exp.y: Update rules.
11007 * c-exp.y: Update rules.
11008
5776fca3
TT
110092019-04-04 Tom Tromey <tom@tromey.com>
11010
11011 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11012 lex_operator, push_back>: New methods.
11013 Update all rules.
11014 (rust_parser::lex_hex, lex_escape): Rename and update.
11015 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11016 (rust_parser::lex_operator): Rename and update.
11017 (rust_parser::lex_number, rustyylex, rustyyerror)
11018 (rust_lex_test_init, rust_lex_test_sequence)
11019 (rust_lex_test_push_back, rust_lex_tests): Update.
11020 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11021 parameter.
11022 <lexptr, prev_lexptr>: New members.
11023 (lexptr, prev_lexptr): Don't declare.
11024 * parse.c (lexptr, prev_lexptr): Remove globals.
11025 (parse_exp_in_context): Update.
11026 * p-exp.y (yylex, yyerror): Update.
11027 * m2-exp.y (parse_number, yylex, yyerror): Update.
11028 * go-exp.y (lex_one_token, yyerror): Update.
11029 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11030 * d-exp.y (lex_one_token, yyerror): Update.
11031 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11032 (lex_one_token, yyerror): Update.
11033 * ada-lex.l (YY_INPUT): Update.
11034 (rewind_to_char): Update.
11035 * ada-exp.y (yyerror): Update.
11036
8621b685
TT
110372019-04-04 Tom Tromey <tom@tromey.com>
11038
11039 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11040 * parser-defs.h (struct parser_state) <parser_state>: Add new
11041 parameter.
11042 <comma_terminates>: New member.
11043 (comma_terminates): Don't declare global.
11044 * parse.c (comma_terminates): Remove global.
11045 (parse_exp_in_context): Update.
11046 * p-exp.y (yylex): Update.
11047 * m2-exp.y (yylex): Update.
11048 * go-exp.y (lex_one_token): Update.
11049 * f-exp.y (yylex): Update.
11050 * d-exp.y (lex_one_token): Update.
11051 * c-exp.y (lex_one_token): Update.
11052 * ada-lex.l: Update.
11053
28aaf3fd
TT
110542019-04-04 Tom Tromey <tom@tromey.com>
11055
11056 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11057 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11058 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11059 * parser-defs.h (paren_depth): Don't declare.
11060 * parse.c (paren_depth): Remove global.
11061 (parse_exp_in_context): Update.
11062 * p-exp.y (paren_depth): New global.
11063 (pascal_parse): Initialize it.
11064 * m2-exp.y (paren_depth): New global.
11065 (m2_parse): Initialize it.
11066 * go-exp.y (paren_depth): New global.
11067 (go_parse): Initialize it.
11068 * f-exp.y (paren_depth): New global.
11069 (f_parse): Initialize it.
11070 * d-exp.y (paren_depth): New global.
11071 (d_parse): Initialize it.
11072 * c-exp.y (paren_depth): New global.
11073 (c_parse): Initialize it.
11074 * ada-lex.l (paren_depth): New global.
11075 (lexer_init): Initialize it.
11076
1e58a4a4
TT
110772019-04-04 Tom Tromey <tom@tromey.com>
11078
11079 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11080 (rust_parser::convert_ast_to_type)
11081 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11082 * parser-defs.h (struct parser_state) <parser_state>: Add
11083 parameters. Initialize new members.
11084 <expression_context_block, expression_context_pc>: New members.
11085 * parse.c (expression_context_block, expression_context_pc):
11086 Remove globals.
11087 (parse_exp_in_context): Update.
11088 * p-exp.y: Update all rules.
11089 (yylex): Update.
11090 * m2-exp.y: Update all rules.
11091 (yylex): Update.
11092 * go-exp.y (yylex): Update.
11093 * f-exp.y (yylex): Update.
11094 * d-exp.y: Update all rules.
11095 (yylex): Update.
11096 * c-exp.y: Update all rules.
11097 (lex_one_token, classify_name, yylex, c_parse): Update.
11098 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11099
37eedb39
TT
111002019-04-04 Tom Tromey <tom@tromey.com>
11101
11102 * gdbarch.h, gdbarch.c: Rebuild.
11103 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11104 * stap-probe.h:
11105 (struct stap_parse_info): Replace "parser_state" with
11106 "expr_builder".
11107 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11108 (parser_state): New class.
11109 * parse.c (expr_builder): Rename.
11110 (expr_builder::release): Rename.
11111 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11112 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11113 (write_exp_elt_longcst, write_exp_elt_floatcst)
11114 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11115 (write_exp_string_vector, write_exp_bitstring)
11116 (write_exp_msymbol, mark_struct_expression)
11117 (write_dollar_variable)
11118 (insert_type_address_space, increase_expout_size): Replace
11119 "parser_state" with "expr_builder".
11120 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11121 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11122 "parser_state" with "expr_builder".
11123
73923d7e
TT
111242019-04-04 Tom Tromey <tom@tromey.com>
11125
11126 * rust-exp.y: Replace "parse_language" with method call.
11127 * p-exp.y:
11128 (yylex): Replace "parse_language" with method call.
11129 * m2-exp.y:
11130 (yylex): Replace "parse_language" with method call.
11131 * go-exp.y (classify_name): Replace "parse_language" with method
11132 call.
11133 * f-exp.y (yylex): Replace "parse_language" with method call.
11134 * d-exp.y (lex_one_token): Replace "parse_language" with method
11135 call.
11136 * c-exp.y:
11137 (lex_one_token, classify_name, yylex): Replace "parse_language"
11138 with method call.
11139 * ada-exp.y (find_primitive_type, type_char)
11140 (type_system_address): Replace "parse_language" with method call.
11141
fa9f5be6
TT
111422019-04-04 Tom Tromey <tom@tromey.com>
11143
11144 * rust-exp.y: Replace "parse_gdbarch" with method call.
11145 * parse.c (write_dollar_variable, insert_type_address_space):
11146 Replace "parse_gdbarch" with method call.
11147 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11148 call.
11149 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11150 call.
11151 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11152 "parse_gdbarch" with method call.
11153 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11154 with method call.
11155 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11156 "parse_gdbarch" with method call.
11157 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11158 "parse_gdbarch" with method call.
11159 * c-exp.y (parse_type, parse_number, classify_name): Replace
11160 "parse_gdbarch" with method call.
11161 * ada-lex.l: Replace "parse_gdbarch" with method call.
11162 * ada-exp.y (parse_type, find_primitive_type, type_char)
11163 (type_system_address): Replace "parse_gdbarch" with method call.
11164
1201a264
TT
111652019-04-04 Tom Tromey <tom@tromey.com>
11166
11167 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11168 * stap-probe.c (stap_parse_argument): Update.
11169 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11170 initial_size parameter.
11171 * rust-exp.y (rust_lex_tests): Update.
11172 * parse.c (parser_state): Update.
11173 (parse_exp_in_context): Update.
11174 * parser-defs.h (struct parser_state) <parser_state>: Remove
11175 "initial_size" parameter.
11176
e3980ce2
TT
111772019-04-04 Tom Tromey <tom@tromey.com>
11178
11179 * parser-defs.h (increase_expout_size): Don't declare.
11180 * parse.c (increase_expout_size): Now static.
11181
e9f8e3f1
TS
111822019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11183
11184 * gnu-nat.c (gnu_nat_target::wait): Fix
11185 target_waitstatus_to_string call.
11186
d7df6549
AB
111872019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11188
11189 * eval.c (evaluate_subexp_standard): Handle internal functions
11190 during Fortran function call handling.
11191
8bdc1658
AB
111922019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11193
11194 * NEWS: Mention new internal functions.
11195 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11196 (read_base_type): Use dwarf2_init_complex_target_type.
11197 * value.c (creal_internal_fn): New function.
11198 (cimag_internal_fn): New function.
11199 (_initialize_values): Register new internal functions.
11200
c29705b7
PW
112012019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11202
11203 * infrun.c (stop_all_threads): If debug_infrun, always
11204 trace the wait status after wait_one, using
11205 target_waitstatus_to_string and target_pid_to_str.
11206 (handle_inferior_event): Replace various trace of
11207 wait status kind by a single trace.
11208 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11209 wait status kind image by target_waitstatus_to_string.
11210 * target/waitstatus.c (target_waitstatus_to_string): Fix
11211 obsolete comment.
11212
05caa1d2
TT
112132019-04-01 Tom Tromey <tromey@adacore.com>
11214
11215 PR symtab/23331:
11216 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11217
9d1447e0
SDJ
112182019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11219 Pedro Alves <palves@redhat.com>
11220
11221 * top.c (quit_force): Call 'finalize_values'.
11222 * value.c (finalize_values): New function.
11223 * value.h (finalize_values): Declare.
11224
7734102d
EZ
112252019-03-30 Eli Zaretskii <eliz@gnu.org>
11226
11227 * NEWS: Announce $_gdb_major and $_gdb_minor.
11228
11229 * top.c (init_gdb_version_vars): New function.
11230 (gdb_init): Call init_gdb_version_vars.
11231
188e1fa9
TT
112322019-03-29 Tom Tromey <tromey@adacore.com>
11233
11234 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11235 help text. Remove dead code.
11236
2880242d
KS
112372019-03-29 Keith Seitz <keiths@redhat.com>
11238
11239 From Siddhesh Poyarekar:
11240 * f-lang.h (f77_get_upperbound): Return LONGEST.
11241 (f77_get_lowerbound): Likewise.
11242 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11243 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11244 print them.
11245 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11246 plongest to format print it.
11247 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11248 (f77_get_upperbound): Likewise.
11249 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11250 LOWER_BOUND to LONGEST.
11251 (f77_create_arrayprint_offset_tbl): Likewise.
11252
cc1defb1
KS
112532019-03-29 Keith Seitz <keiths@redhat.com>
11254
11255 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11256 %s/pulongest for TYPE_LENGTH instead of %d in format
11257 strings.
11258 * ada-typerint.c (ada_print_type): Likewise.
11259 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11260 * compile/compile-c-support.c (generate_register_struct): Likewise.
11261 * gdbtypes.c (recursive_dump_type): Likewise.
11262 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11263 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11264 instead of %d in format strings.
11265 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11266 to std::min to ULONGEST.
11267 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11268 instead of %d in format strings.
11269 * tracepoint.c (info_scope_command): Likewise.
11270 * typeprint.c (print_offset_data::update)
11271 (print_offset_data::finish): Likewise.
11272 * xtensa-tdep.c (xtensa_store_return_value)
11273 (xtensa_push_dummy_call): Likewise.
11274
e432ccf1
JT
112752019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11276
11277 * windows-nat.c (display_selector): Fixed format specifications
11278 for 64-bit Cygwin.
11279
65d2b333
PW
112802019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11281
11282 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11283
f489207e
SL
112842019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11285
11286 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11287 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11288 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11289 (nios2_linux_init_abi): Install it.
11290
bffa1015
AH
112912019-03-28 Alan Hayward <alan.hayward@arm.com>
11292
11293 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11294
fc96163a
AH
112952019-03-28 Alan Hayward <alan.hayward@arm.com>
11296
11297 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11298
20dc7e9b
PW
112992019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11300 Tom Tromey <tromey@adacore.com>
11301
11302 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11303
7f5331a8
JB
113042019-03-26 Joel Brobecker <brobecker@adacore.com>
11305
11306 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11307 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11308 method to compute the bounds of range types. Also print "[evaluated]"
11309 if the bounds' values come from a dynamic evaluation.
11310
18c77628
AB
113112019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11312
11313 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11314 whitespace when pretty printing is on.
11315
53c973f2
AH
113162019-03-26 Alan Hayward <alan.hayward@arm.com>
11317
e79be6e5 11318 * ppc-linux-nat.c: Add include.
53c973f2 11319
d851aa71
AH
113202019-03-26 Alan Hayward <alan.hayward@arm.com>
11321
e79be6e5 11322 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11323
2fe7bab7
AH
113242019-03-26 Alan Hayward <alan.hayward@arm.com>
11325
e79be6e5 11326 * arm-linux-nat.c: Add include.
2fe7bab7 11327
068ef30e
SM
113282019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11329
11330 * source-cache.c (source_cache::get_source_lines): Re-read
11331 fullname after calling open_source_file.
11332
81a24d04
JB
113332019-03-25 John Baldwin <jhb@FreeBSD.org>
11334
11335 * NEWS: Mention TLS support for FreeBSD.
11336
79e7ae11
TT
113372019-03-25 Tom Tromey <tromey@adacore.com>
11338
11339 * minsyms.c (BUNCH_SIZE): Update comment.
11340 (~minimal_symbol_reader): Remove old comment.
11341 (compact_minimal_symbols): Update comment.
11342 (minimal_symbol_reader::install): Remove old comment. Update
11343 other comments.
11344
d45963c2
AH
113452019-03-25 Alan Hayward <alan.hayward@arm.com>
11346
11347 * s390-linux-nat.c: Add include.
11348
0f83012e
AH
113492019-03-25 Alan Hayward <alan.hayward@arm.com>
11350
11351 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11352 Call linux_get_hwcap.
11353 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11354 Likewise.
11355 (aarch64_linux_get_hwcap): Remove function.
11356 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11357 declaration.
11358 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11359 linux_get_hwcap.
11360 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11361 * linux-tdep.c (linux_get_hwcap): Add function.
11362 (linux_get_hwcap2): Likewise.
11363 * linux-tdep.h (linux_get_hwcap): Add declaration.
11364 (linux_get_hwcap2): Likewise.
11365 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11366 (ppc_linux_get_hwcap2): Likewise.
11367 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11368 linux_get_hwcap.
11369 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11370 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11371 (ppc_linux_nat_target::read_description): Likewise.
11372 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11373 * s390-linux-nat.c: Likewise.
11374 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11375
6640a367
TT
113762019-03-24 Tom Tromey <tom@tromey.com>
11377
11378 * ada-lang.c (standard_lookup): Simplify initialization.
11379 (ada_lookup_symbol_nonlocal): Simplify return.
11380 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11381 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11382 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11383 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11384 initialization.
11385 * solib.c (solib_global_lookup): Simplify.
11386 * symtab.c (null_block_symbol): Remove.
11387 (symbol_cache_lookup): Simplify returns.
11388 (lookup_language_this): Simplify returns.
11389 (lookup_symbol_aux): Simplify return.
11390 (lookup_local_symbol): Simplify returns.
11391 (lookup_global_symbol_from_objfile): Simplify return.
11392 (lookup_symbol_in_objfile_symtabs)
11393 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11394 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11395 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11396 * cp-namespace.c (cp_lookup_bare_symbol)
11397 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11398 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11399 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11400 (cp_lookup_symbol_via_imports): Simplify initialization.
11401 (find_symbol_in_baseclass): Likewise.
11402 * symtab.h (null_block_symbol): Remove.
11403 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11404 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11405 (d_lookup_symbol_module): Likewise.
11406 (find_symbol_in_baseclass): Simplify initialization.
11407
a930ebcd
TT
114082019-03-24 Tom Tromey <tom@tromey.com>
11409
11410 * expression.h: Don't include symtab.h.
11411 (struct block): Forward declare.
11412
582942f4
TT
114132019-03-24 Tom Tromey <tom@tromey.com>
11414
11415 * c-exp.y (typebase): Remove casts.
11416 * gdbtypes.c (lookup_unsigned_typename, )
11417 (lookup_signed_typename): Remove cast.
11418 * eval.c (parse_to_comma_and_eval): Remove cast.
11419 * parse.c (write_dollar_variable): Remove cast.
11420 * block.h (struct block) <superblock>: Now const.
11421 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11422 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11423 (map_block): Make "block" const.
11424 * symfile.h (struct quick_symbol_functions)
11425 <map_matching_symbols>: Constify block argument to "callback".
11426 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11427 const.
11428 (find_pc_sect_compunit_symtab): Make "b" const.
11429 (find_symbol_at_address): Likewise.
11430 (search_symbols): Likewise.
11431 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11432 (dw2_debug_names_lookup_symbol): Likewise.
11433 (dw2_map_matching_symbols): Update.
11434 * p-valprint.c (pascal_val_print): Remove "block".
11435 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11436 (aux_add_nonlocal_symbols): Make "block" const.
11437 (resolve_subexp): Remove cast.
11438 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11439 const.
11440 (iterate_over_file_blocks): Likewise.
11441 * f-exp.y (%union) <bval>: Remove.
11442 * coffread.c (patch_opaque_types): Make "b" const.
11443 * spu-tdep.c (spu_catch_start): Make "block" const.
11444 * c-valprint.c (print_unpacked_pointer): Remove "block".
11445 * symmisc.c (dump_symtab_1): Make "b" const.
11446 (block_depth): Make "block" const.
11447 * d-exp.y (%union) <bval>: Remove.
11448 * cp-support.h (cp_lookup_rtti_type): Update.
11449 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11450 * psymtab.c (psym_lookup_symbol): Make "block" const.
11451 (maintenance_check_psymtabs): Make "b" const.
11452 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11453 (enumerate_locals, enumerate_args): Update.
11454 * python/py-symtab.c (stpy_global_block): Make "block" const.
11455 (stpy_static_block): Likewise.
11456 * inline-frame.c (block_starting_point_at): Make "new_block"
11457 const.
11458 * block.c (find_block_in_blockvector): Make return type const.
11459 (blockvector_for_pc_sect): Make "b" const.
11460 (find_block_in_blockvector): Make "b" const.
11461
7ad417dd
TT
114622019-03-23 Tom Tromey <tom@tromey.com>
11463
11464 * varobj.c (varobj_create): Update.
11465 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11466 * printcmd.c (display_command, do_one_display): Don't reset
11467 innermost_block.
11468 * parser-defs.h (enum innermost_block_tracker_type): Move to
11469 expression.h.
11470 (innermost_block): Update comment.
11471 * parse.c (parse_exp_1): Add tracker_types parameter.
11472 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11473 tracker_types parameter. Reset innermost_block.
11474 (parse_exp_in_context): Remove.
11475 (parse_expression_for_completion): Update.
11476 * objfiles.c (~objfile): Don't reset expression_context_block or
11477 innermost_block.
11478 * expression.h (enum innermost_block_tracker_type): Move from
11479 parser-defs.h.
11480 (parse_exp_1): Add tracker_types parameter.
11481 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11482 reset innermost_block.
11483
b366c208
TT
114842019-03-23 Tom Tromey <tom@tromey.com>
11485
11486 * objfiles.h: Include bcache.h.
11487
9bb9b2f9
TT
114882019-03-23 Tom Tromey <tom@tromey.com>
11489
11490 * linespec.c (get_current_search_block): Use
11491 scoped_restore_current_language.
11492 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11493
59c28372
AH
114942019-03-22 Alan Hayward <alan.hayward@arm.com>
11495 Jiong Wang <jiong.wang@arm.com>
11496
11497 * aarch64-linux-tdep.c
11498 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11499 section.
11500 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11501
17e116a7
AH
115022019-03-22 Alan Hayward <alan.hayward@arm.com>
11503 Jiong Wang <jiong.wang@arm.com>
11504
11505 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11506 instructions.
11507 (aarch64_analyze_prologue_test): Add PACIASP test.
11508 (aarch64_prologue_prev_register): Unmask PC value.
11509
11e1b75f
AH
115102019-03-22 Alan Hayward <alan.hayward@arm.com>
11511 Jiong Wang <jiong.wang@arm.com>
11512
11513 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11514 (aarch64_dwarf2_prev_register): Unmask PC value.
11515 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11516 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11517 DW_CFA_AARCH64_negate_ra_state.
11518 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11519
34dcc7cf
AH
115202019-03-22 Alan Hayward <alan.hayward@arm.com>
11521 Jiong Wang <jiong.wang@arm.com>
11522
11523 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11524 registers.
11525 (aarch64_pseudo_register_name): Likewise.
11526 (aarch64_pseudo_register_type): Likewise.
11527 (aarch64_pseudo_register_reggroup_p): Likewise.
11528 (aarch64_gdbarch_init): Add pauth registers.
11529 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11530 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11531 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11532 (struct gdbarch_tdep): Add regnum for ra_state.
11533
1ef53e6b
AH
115342019-03-22 Alan Hayward <alan.hayward@arm.com>
11535 Jiong Wang <jiong.wang@arm.com>
11536
11537 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11538
76bed0fd
AH
115392019-03-22 Alan Hayward <alan.hayward@arm.com>
11540 Jiong Wang <jiong.wang@arm.com>
11541
11542 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11543 function.
11544 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11545 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11546 (aarch64_gdbarch_init): Add puth registers.
11547 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11548 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11549 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11550
ee4fbcfa
AH
115512019-03-22 Alan Hayward <alan.hayward@arm.com>
11552 Jiong Wang <jiong.wang@arm.com>
11553
11554 * aarch64-linux-nat.c
11555 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11556 * aarch64-linux-tdep.c
11557 (aarch64_linux_core_read_description): Likewise.
11558 (aarch64_linux_get_hwcap): New function.
11559 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11560 (aarch64_linux_get_hwcap): New declaration.
11561
6dc0ebde
AH
115622019-03-22 Alan Hayward <alan.hayward@arm.com>
11563 Jiong Wang <jiong.wang@arm.com>
11564
11565 * aarch64-linux-nat.c
11566 (aarch64_linux_nat_target::read_description): Add pauth param.
11567 * aarch64-linux-tdep.c
11568 (aarch64_linux_core_read_description): Likewise.
11569 * aarch64-tdep.c (struct target_desc): Add in pauth.
11570 (aarch64_read_description): Add pauth param.
11571 (aarch64_gdbarch_init): Likewise.
11572 * aarch64-tdep.h (aarch64_read_description): Likewise.
11573 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11574 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11575 * features/Makefile: Add new files.
11576 * features/aarch64-pauth.c: New file.
11577 * features/aarch64-pauth.xml: New file.
11578
595915c1
TT
115792019-03-20 Tom Tromey <tromey@adacore.com>
11580
11581 * infrun.c (handle_inferior_event): Rename from
11582 handle_inferior_event_1. Create a scoped_value_mark.
11583 (handle_inferior_event): Remove.
11584
4c7d57e7
TT
115852019-03-19 Tom Tromey <tromey@adacore.com>
11586
11587 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11588 * infrun.h (print_stop_event): Add "displays" parameter.
11589 * infrun.c (print_stop_event): Add "displays" parameter.
11590
cb246234
PA
115912019-03-19 Pedro Alves <palves@redhat.com>
11592
11593 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11594 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11595 to -1. Fix TABs vs spaces.
11596 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11597 * tui/tui-out.h (tui_ui_out) Add intro comments.
11598 <m_line, m_start_of_line>: In-class initialize, and add describing
11599 comment.
11600
3a0e45b2
AH
116012019-03-18 Alan Hayward <alan.hayward@arm.com>
11602
11603 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11604 variable names.
11605 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11606
5371b850
PA
116072019-03-18 Pedro Alves <palves@redhat.com>
11608 Eli Zaretskii <eliz@gnu.org>
11609
11610 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11611 m_line and m_start_of_line.
11612
b17c4cd0
EZ
116132019-03-18 Eli Zaretskii <eliz@gnu.org>
11614
11615 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11616 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11617 it returns a newline. This fixes a regression in TU mode, whereby
11618 the next line is output on the same screen line as the user input.
11619
4bd56d18
TT
116202019-03-18 Tom Tromey <tromey@adacore.com>
11621
11622 * minsyms.c (minimal_symbol_reader::install): Remove call to
11623 obstack_blank.
11624
55c10aca
PA
116252019-03-18 Pedro Alves <palves@redhat.com>
11626
11627 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11628 New globals.
11629 (apply_style): New, factored out from ...
11630 (apply_ansi_escape): ... this. Handle reverse video mode.
11631 (tui_set_reverse_mode): New function.
11632 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11633 * tui/tui-winsource.c (tui_show_source_line): Use
11634 tui_set_reverse_mode instead of setting A_STANDOUT.
11635 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11636 New setter methods.
11637
647bb750
HD
116382019-03-18 Hannes Domani <ssbssa@yahoo.de>
11639
11640 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11641 Handle tabs.
11642
bff8c71f
TT
116432019-03-18 Tom Tromey <tromey@adacore.com>
11644
11645 * ada-lang.c (empty_array): Add "high" parameter.
11646 (ada_evaluate_subexp): Update.
11647
58785d98
ST
116482019-03-17 Sergei Trofimovich <siarheit@google.com>
11649
11650 * unittests/string_view-selftests.c: Define
11651 _initialize_string_view_selftests unconditionally.
11652
d4cbef22
ВМ
116532019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11654
11655 PR gdb/24350
11656 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11657
fce4c071
ВМ
116582019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11659
11660 PR gdb/24351
11661 * windows-nat.c (display_selector): Fix format specifiers.
11662
f7f0a123
EZ
116632019-03-17 Eli Zaretskii <eliz@gnu.org>
11664
11665 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11666 tui_refill_source_window instead of tui_refresh_win, to update the
11667 current execution line. This fixes redisplay of the current line
11668 when stepping through the code with "next" or "step".
11669
ab42892f
EZ
116702019-03-16 Eli Zaretskii <eliz@gnu.org>
11671
11672 * source-cache.c (source_cache::get_source_lines): Call
11673 find_source_lines to initialize s->nlines. This fixes vertical
11674 scrolling of TUI source window when the DOWN arrow is pressed.
11675
8d8c087f
PW
116762019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11677
11678 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11679 linux-thread-db.c (_initialize_thread_db): Likewise.
11680
798e1c30
EZ
116812019-03-16 Eli Zaretskii <eliz@gnu.org>
11682
11683 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11684 wclrtoeol in tui_show_source_line". This reverts changes made in
11685 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11686
eefba3da
TT
116872019-03-15 Tom Tromey <tom@tromey.com>
11688
11689 * symtab.h (struct minimal_symbol): Derive from
11690 general_symbol_info.
11691 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11692 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11693 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11694 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11695 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11696 (MSYMBOL_SEARCH_NAME): Update.
11697 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11698 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11699 * minsyms.c (minimal_symbol_reader::record_full): Update.
11700
0de2420c
TT
117012019-03-15 Tom Tromey <tom@tromey.com>
11702
11703 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11704
042d75e4
TT
117052019-03-15 Tom Tromey <tom@tromey.com>
11706
11707 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11708 unique_xmalloc_ptr.
11709 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11710 Update.
11711 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11712 (build_minimal_symbol_hash_tables)
11713 (minimal_symbol_reader::install): Update.
11714
db92718b
TT
117152019-03-15 Tom Tromey <tom@tromey.com>
11716
11717 * symtab.c (create_demangled_names_hash): Update.
11718 (symbol_set_names): Update.
11719 * objfiles.h (struct objfile_per_bfd_storage)
11720 <demangled_names_hash>: Now an htab_up.
11721 * objfiles.c (objfile_per_bfd_storage): Simplify.
11722
d6797f46
TT
117232019-03-15 Tom Tromey <tom@tromey.com>
11724
11725 * objfiles.h (struct objfile_per_bfd_storage): Declare
11726 destructor.
11727 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11728 New.
11729 (get_objfile_bfd_data): Use new. Don't initialize
11730 language_of_main.
11731 (free_objfile_per_bfd_storage): Remove.
11732 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11733
741d7538
TT
117342019-03-15 Tom Tromey <tom@tromey.com>
11735
11736 * symfile.c (reread_symbols): Update.
11737 * objfiles.c (objfile::objfile): Update.
11738 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11739 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11740 comment.
11741 (minimal_symbol_reader::install): Update.
11742 (terminate_minimal_symbol_table): Remove.
11743 * jit.c (jit_object_close_impl): Update.
11744
788c80d1
TT
117452019-03-15 Tom Tromey <tom@tromey.com>
11746
11747 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11748 initializations.
11749
1b7a07cb
TT
117502019-03-15 Tom Tromey <tom@tromey.com>
11751
11752 * objfiles.h (struct objfile_per_bfd_storage)
11753 <demangled_hash_languages>: Now a bitset.
11754 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11755 (lookup_minimal_symbol): Update.
11756
3db066bc
TT
117572019-03-15 Tom Tromey <tom@tromey.com>
11758
11759 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11760 Don't return the symbol.
11761 * coffread.c (record_minimal_symbol): Use record_full.
11762
3fff2c37
EZ
117632019-03-14 Eli Zaretskii <eliz@gnu.org>
11764
11765 The MS-Windows port of ncurses fails to switch to a color pair if
11766 one or both of the colors are the implicit default colors. This
11767 change records the default colors when TUI is initialized, and
11768 then specifies them explicitly when a color pair uses the default
11769 colors. This allows color styling in TUI mode on MS-Windows.
11770
11771 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11772 ncurses_norm_attr.
11773 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11774 colors in ncurses_norm_attr.
11775 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11776 "none", replace it with the default color recorded in
11777 ncurses_norm_attr.
11778
3b336828
TT
117792019-03-14 Tom Tromey <tromey@adacore.com>
11780
11781 * source-cache.h (class source_cache) <get_source_lines>: Return
11782 std::string.
11783 * source-cache.c (source_cache::extract_lines): Handle case where
11784 first_pos==npos. Return std::string.
11785 (source_cache::get_source_lines): Update.
11786
d085f989
TT
117872019-03-14 Tom Tromey <tromey@adacore.com>
11788
11789 * NEWS: Add item for "style sources" commands.
11790 * source-cache.c (source_cache::get_source_lines): Check
11791 source_styling.
11792 * cli/cli-style.c (source_styling): New global.
11793 (_initialize_cli_style): Add "style sources" commands.
11794 (show_style_sources): New function.
11795 * cli/cli-style.h (source_styling): Declare.
11796
6f11e682
TT
117972019-03-14 Pedro Alves <palves@redhat.com>
11798 Tom Tromey <tromey@adacore.com>
11799
11800 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11801 * tui/tui-winsource.c (tui_refill_source_window): New function,
11802 from...
11803 (tui_horizontal_source_scroll): ... here. Move some logic.
11804 * cli/cli-style.c (set_style_enabled): Notify new observable.
11805 * tui/tui-hooks.c (tui_redisplay_source): New function.
11806 (tui_attach_detach_observers): Attach or detach
11807 tui_redisplay_source.
11808 * observable.h (source_styling_changed): New observable.
11809 * observable.c: Define source_styling_changed observable.
11810
a068643d
TT
118112019-03-13 Tom Tromey <tromey@adacore.com>
11812
11813 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11814 (i386_gnu_nat_target::store_registers): Update.
11815 * target-debug.h (target_debug_print_std_string): New macro.
11816 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11817 * windows-tdep.c (display_one_tib): Update.
11818 * tui/tui-stack.c (tui_make_status_line): Update.
11819 * top.c (print_inferior_quit_action): Update.
11820 * thread.c (thr_try_catch_cmd): Update.
11821 (add_thread_with_info): Update.
11822 (thread_target_id_str): Update.
11823 (thr_try_catch_cmd): Update.
11824 (thread_command): Update.
11825 (thread_find_command): Update.
11826 * record-btrace.c (record_btrace_target::info_record)
11827 (record_btrace_resume_thread, record_btrace_target::resume)
11828 (record_btrace_cancel_resume, record_btrace_step_thread)
11829 (record_btrace_target::wait, record_btrace_target::wait)
11830 (record_btrace_target::wait, record_btrace_target::stop): Update.
11831 * progspace.c (print_program_space): Update.
11832 * process-stratum-target.c
11833 (process_stratum_target::thread_address_space): Update.
11834 * linux-fork.c (linux_fork_mourn_inferior)
11835 (detach_checkpoint_command, info_checkpoints_command)
11836 (linux_fork_context): Update.
11837 (linux_fork_detach): Update.
11838 (class scoped_switch_fork_info): Update.
11839 (delete_checkpoint_command): Update.
11840 * infrun.c (follow_fork_inferior): Update.
11841 (follow_fork_inferior): Update.
11842 (proceed_after_vfork_done): Update.
11843 (handle_vfork_child_exec_or_exit): Update.
11844 (follow_exec): Update.
11845 (displaced_step_prepare_throw): Update.
11846 (displaced_step_restore): Update.
11847 (start_step_over): Update.
11848 (resume_1): Update.
11849 (clear_proceed_status_thread): Update.
11850 (proceed): Update.
11851 (print_target_wait_results): Update.
11852 (do_target_wait): Update.
11853 (context_switch): Update.
11854 (stop_all_threads): Update.
11855 (restart_threads): Update.
11856 (finish_step_over): Update.
11857 (handle_signal_stop): Update.
11858 (switch_back_to_stepped_thread): Update.
11859 (keep_going_pass_signal): Update.
11860 (print_exited_reason): Update.
11861 (normal_stop): Update.
11862 * inferior.c (inferior_pid_to_str): Change return type.
11863 (print_selected_inferior): Update.
11864 (add_inferior): Update.
11865 (detach_inferior): Update.
11866 * dummy-frame.c (fprint_dummy_frames): Update.
11867 * dcache.c (dcache_info_1): Update.
11868 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11869 (btrace_fetch, btrace_clear): Update.
11870 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11871 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11872 type.
11873 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11874 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11875 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11876 * gdbarch.c, gdbarch.h: Rebuild.
11877 * gdbarch.sh (core_pid_to_str): Change return type.
11878 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11879 return type.
11880 (windows_nat_target::pid_to_str): Change return type.
11881 (windows_delete_thread): Update.
11882 (windows_nat_target::attach): Update.
11883 (windows_nat_target::files_info): Update.
11884 * target-delegates.c: Rebuild.
11885 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11886 return type.
11887 (sol_thread_target::pid_to_str): Change return type.
11888 * remote.c (class remote_target) <pid_to_str>: Change return
11889 type.
11890 (remote_target::pid_to_str): Change return type.
11891 (extended_remote_target::attach, remote_target::remote_stop_ns)
11892 (remote_target::remote_notif_remove_queued_reply)
11893 (remote_target::push_stop_reply, remote_target::disable_btrace):
11894 Update.
11895 (extended_remote_target::attach): Update.
11896 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11897 type.
11898 (gdbsim_target::pid_to_str): Change return type.
11899 * ravenscar-thread.c (struct ravenscar_thread_target)
11900 <pid_to_str>: Change return type.
11901 (ravenscar_thread_target::pid_to_str): Change return type.
11902 * procfs.c (class procfs_target) <pid_to_str>: Change return
11903 type.
11904 (procfs_target::pid_to_str): Change return type.
11905 (procfs_target::attach): Update.
11906 (procfs_target::detach): Update.
11907 (procfs_target::fetch_registers): Update.
11908 (procfs_target::store_registers): Update.
11909 (procfs_target::wait): Update.
11910 (procfs_target::files_info): Update.
11911 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11912 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11913 return type.
11914 (nto_procfs_target::pid_to_str): Change return type.
11915 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11916 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11917 return type.
11918 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11919 (exit_lwp): Update.
11920 (attach_proc_task_lwp_callback, get_detach_signal)
11921 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11922 (linux_nat_target::resume, wait_lwp, stop_callback)
11923 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11924 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11925 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11926 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11927 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11928 type.
11929 (inf_ptrace_target::attach): Update.
11930 (inf_ptrace_target::files_info): Update.
11931 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11932 type.
11933 (go32_nat_target::pid_to_str): Change return type.
11934 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11935 (gnu_nat_target::wait): Update.
11936 (gnu_nat_target::wait): Update.
11937 (gnu_nat_target::resume): Update.
11938 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11939 (fbsd_nat_target::wait): Update.
11940 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11941 type.
11942 (darwin_nat_target::attach): Update.
11943 * corelow.c (class core_target) <pid_to_str>: Change return type.
11944 (core_target::pid_to_str): Change return type.
11945 * target.c (normal_pid_to_str): Change return type.
11946 (default_pid_to_str): Likewise.
11947 (target_pid_to_str): Change return type.
11948 (target_translate_tls_address): Update.
11949 (target_announce_detach): Update.
11950 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11951 return type.
11952 (bsd_uthread_target::pid_to_str): Change return type.
11953 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11954 type.
11955 (bsd_kvm_target::pid_to_str): Change return type.
11956 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11957 return type.
11958 (aix_thread_target::pid_to_str): Change return type.
11959 * target.h (struct target_ops) <pid_to_str>: Change return type.
11960 (target_pid_to_str, normal_pid_to_str): Likewise.
11961 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11962 type.
11963 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11964 type.
11965 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11966 return type.
11967 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11968 type.
11969 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11970 type.
11971 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11972 return type.
11973
b4be1b06
SM
119742019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11975
11976 * NEWS: Mention that the new default MI version is 3. Mention
11977 changes to the output of commands and events that deal with
11978 multi-location breakpoints.
11979 * breakpoint.c: Include "mi/mi-out.h".
11980 (print_one_breakpoint): Change output syntax if using MI version
11981 >= 3.
11982 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11983 New.
11984 (mi_multi_location_breakpoint_output_fixed): New.
11985 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11986 (mi_cmd_fix_multi_location_breakpoint_output): New.
11987 (mi_multi_location_breakpoint_output_fixed): New.
11988 * mi/mi-cmds.c (mi_cmds): Register command
11989 -fix-multi-location-breakpoint-output.
11990 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11991 interpreter "mi".
11992
8e5e5494
SM
119932019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11994
11995 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11996 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11997 instantiate mi_ui_out based on interpreter name.
11998 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11999 * mi/mi-main.c (mi_load_progress): Likewise.
12000
197df35e
JB
120012019-03-12 John Baldwin <jhb@FreeBSD.org>
12002
12003 * NEWS: Combine separate "New targets" sections for 8.3.
12004
8399425f
JB
120052019-03-12 John Baldwin <jhb@FreeBSD.org>
12006
12007 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12008 (ppcfbsd_init_abi): Install gdbarch
12009 "fetch_tls_load_module_address" and "get_thread_local_address"
12010 methods.
12011
b0f87ed0
JB
120122019-03-12 John Baldwin <jhb@FreeBSD.org>
12013
12014 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12015 (riscv_fbsd_init_abi): Install gdbarch
12016 "fetch_tls_load_module_address" and "get_thread_local_address"
12017 methods.
12018
ce25aa57
JB
120192019-03-12 John Baldwin <jhb@FreeBSD.org>
12020
12021 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12022 (i386fbsd_init_abi): Install gdbarch
12023 "fetch_tls_load_module_address" and "get_thread_local_address"
12024 methods.
12025
f5424cfa
JB
120262019-03-12 John Baldwin <jhb@FreeBSD.org>
12027
12028 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12029 (amd64fbsd_init_abi): Install gdbarch
12030 "fetch_tls_load_module_address" and "get_thread_local_address"
12031 methods.
12032
945f3901
JB
120332019-03-12 John Baldwin <jhb@FreeBSD.org>
12034
12035 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12036 (struct fbsd_pspace_data): New type.
12037 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12038 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12039 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12040 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12041 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12042
ef0bd204
JB
120432019-03-12 John Baldwin <jhb@FreeBSD.org>
12044
12045 * gdbtypes.c (lookup_struct_elt): New function.
12046 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12047 * gdbtypes.h (struct struct_elt): New type.
12048 (lookup_struct_elt): New prototype.
12049
36c53a02
JB
120502019-03-12 John Baldwin <jhb@FreeBSD.org>
12051
12052 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12053 remove disabled code block.
12054
6e056c81
JB
120552019-03-12 John Baldwin <jhb@FreeBSD.org>
12056
12057 * gdbarch.sh (get_thread_local_address): New method.
12058 * gdbarch.h, gdbarch.c: Regenerate.
12059 * target.c (target_translate_tls_address): Use
12060 gdbarch_get_thread_local_address if present instead of
12061 target::get_thread_local_address.
12062
cd250a18
JB
120632019-03-12 John Baldwin <jhb@FreeBSD.org>
12064
12065 * target.h (target::get_thread_local_address): Update comment.
12066
df22c1e5
JB
120672019-03-12 John Baldwin <jhb@FreeBSD.org>
12068
12069 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12070 objfile->separate_debug_objfile_backlink if not NULL.
12071
dd6876c9
JB
120722019-03-12 John Baldwin <jhb@FreeBSD.org>
12073
12074 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12075 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12076 (amd64bsd_store_inferior_registers): Likewise.
12077 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12078 Enable segment base registers.
12079 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12080 PT_GETFSBASE and PT_GETGSBASE.
12081 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12082 PT_SETGSBASE.
12083 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12084 segment base registers.
12085 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12086
1163a4b7
JB
120872019-03-12 John Baldwin <jhb@FreeBSD.org>
12088
12089 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12090 Update calls to i386_target_description to add 'segments'
12091 parameter.
12092 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12093 add segment base registers.
12094 * arch/i386.c (i386_create_target_description): Add 'segments'
12095 parameter to enable segment base registers.
12096 * arch/i386.h (i386_create_target_description): Likewise.
12097 * features/i386/32bit-segments.xml: New file.
12098 * features/i386/32bit-segments.c: Generate.
12099 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12100 call to i386_target_description to add 'segments' parameter.
12101 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12102 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12103 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12104 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12105 if feature is present.
12106 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12107 Add 'segments' parameter to call to i386_target_description.
12108 (i386_target_description): Add 'segments' parameter to enable
12109 segment base registers.
12110 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12111 to call to i386_target_description.
12112 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12113 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12114 Define I386_NUM_REGS.
12115 (i386_target_description): Add 'segments' parameter to enable
12116 segment base registers.
12117
3a350822
EZ
121182019-03-12 Eli Zaretskii <eliz@gnu.org>
12119
12120 PR/24325
12121 * source-cache.c: #undef open and close, to avoid unresolved
12122 externals during linking.
12123
ffdd69cf
TT
121242019-03-12 Tom Tromey <tromey@adacore.com>
12125
12126 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12127 const. Add initializers.
12128 (_initialize_remote): Don't initialize ptid globals.
12129
ec148c57
PA
121302019-03-12 Pedro Alves <palves@redhat.com>
12131
12132 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12133
32764270
PA
121342019-03-12 Pedro Alves <palves@redhat.com>
12135
12136 * cp-name-parser.y (main): Remove unused 'len' variable.
12137
17547186
TT
121382019-03-12 Tom Tromey <tromey@adacore.com>
12139
12140 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12141 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12142
d3a70e03
TT
121432019-03-12 Tom Tromey <tromey@adacore.com>
12144
12145 * linux-nat.c (iterate_over_lwps): Update.
12146 (stop_callback): Remove parameter.
12147 (stop_wait_callback, detach_callback, resume_set_callback)
12148 (select_singlestep_lwp_callback, set_ignore_sigint)
12149 (status_callback, resumed_callback, resume_clear_callback)
12150 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12151 data parameter.
12152 (linux_nat_target::detach, linux_nat_target::resume)
12153 (linux_stop_and_wait_all_lwps, select_event_lwp)
12154 (linux_nat_filter_event, linux_nat_wait_1)
12155 (linux_nat_target::kill, linux_nat_target::stop)
12156 (linux_nat_target::stop): Update.
12157 (linux_nat_resume_callback): Change type.
12158 (resume_stopped_resumed_lwps, count_events_callback)
12159 (select_event_lwp_callback): Likewise.
12160 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12161 * arm-linux-nat.c (struct update_registers_data): Remove.
12162 (update_registers_callback): Change type.
12163 (arm_linux_insert_hw_breakpoint1): Update.
12164 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12165 parameter.
12166 (x86_linux_dr_set_addr): Update.
12167 (x86_linux_dr_set_control): Update.
12168 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12169 (iterate_over_lwps): Use gdb::function_view.
12170 * nat/aarch64-linux-hw-point.c (struct
12171 aarch64_dr_update_callback_param): Remove.
12172 (debug_reg_change_callback): Change type.
12173 (aarch64_notify_debug_reg_change): Update.
12174 * s390-linux-nat.c (s390_refresh_per_info): Update.
12175
82cb27ff
TT
121762019-03-11 Tom Tromey <tromey@adacore.com>
12177
12178 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12179 redundant assignment to "this_cu".
12180
568c0683
SM
121812019-03-08 Simon Marchi <simon.marchi@efficios.com>
12182
12183 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12184
f09ce22d
SM
121852019-03-08 Simon Marchi <simon.marchi@efficios.com>
12186
12187 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12188 from...
12189 (rank_one_type): ... this.
12190
595f96a9
SM
121912019-03-08 Simon Marchi <simon.marchi@efficios.com>
12192
12193 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12194 from...
12195 (rank_one_type): ... this.
12196
2598a94b
SM
121972019-03-08 Simon Marchi <simon.marchi@efficios.com>
12198
12199 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12200 from...
12201 (rank_one_type): ... this.
12202
7f17b20d
SM
122032019-03-08 Simon Marchi <simon.marchi@efficios.com>
12204
12205 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12206 from...
12207 (rank_one_type): ... this.
12208
2c509035
SM
122092019-03-08 Simon Marchi <simon.marchi@efficios.com>
12210
12211 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12212 from...
12213 (rank_one_type): ... this.
12214
0dd322dc
SM
122152019-03-08 Simon Marchi <simon.marchi@efficios.com>
12216
12217 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12218 from...
12219 (rank_one_type): ... this.
12220
41ea4728
SM
122212019-03-08 Simon Marchi <simon.marchi@efficios.com>
12222
12223 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12224 from...
12225 (rank_one_type): ... this.
12226
793cd1d2
SM
122272019-03-08 Simon Marchi <simon.marchi@efficios.com>
12228
12229 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12230 from...
12231 (rank_one_type): ... this.
12232
34910087
SM
122332019-03-08 Simon Marchi <simon.marchi@efficios.com>
12234
12235 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12236 from...
12237 (rank_one_type): ... this.
12238
f1f832d6
SM
122392019-03-08 Simon Marchi <simon.marchi@efficios.com>
12240
12241 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12242 from...
12243 (rank_one_type): ... this.
12244
b9f4512f
SM
122452019-03-08 Simon Marchi <simon.marchi@efficios.com>
12246
12247 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12248 from...
12249 (rank_one_type): ... this.
12250
9293fc63
SM
122512019-03-08 Simon Marchi <simon.marchi@efficios.com>
12252
12253 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12254 from...
12255 (rank_one_type): ... this.
12256
e3abbe7e
PW
122572019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12258
12259 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12260 inferior-events' shows the example events.
12261
e4adb939
EZ
122622019-03-08 Eli Zaretskii <eliz@gnu.org>
12263
12264 Support styling on native MS-Windows console
12265
12266 PR/24315
12267 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12268 on MS-Windows if $TERM is not defined.
12269
12270 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12271
12272 * posix-hdep.c (gdb_console_fputs):
12273 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12274 functions.
12275 * ui-file.h (gdb_console_fputs): Add prototype.
12276
12277 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12278 back to fputs only if the former returns zero.
12279
25629dfd
TT
122802019-03-07 Tom Tromey <tom@tromey.com>
12281
12282 * symmisc.c (print_symbol_bcache_statistics): Update.
12283 (print_objfile_statistics): Update.
12284 * symfile.c (allocate_symtab): Update.
12285 * stabsread.c: Don't include bcache.h.
12286 * psymtab.h (struct psymbol_bcache): Don't declare.
12287 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12288 (psymbol_bcache_init, psymbol_bcache_free)
12289 (psymbol_bcache_get_bcache): Don't declare.
12290 * psymtab.c (struct psymbol_bcache): Remove.
12291 (psymtab_storage::psymtab_storage): Update.
12292 (psymtab_storage::~psymtab_storage): Update.
12293 (psymbol_bcache_init, psymbol_bcache_free)
12294 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12295 (add_psymbol_to_bcache): Update.
12296 (allocate_psymtab): Update.
12297 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12298 macro_cache>: No longer pointers.
12299 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12300 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12301 * macrotab.c (macro_bcache): Update.
12302 * macroexp.c: Don't include bcache.h.
12303 * gdbtypes.c (check_types_worklist): Update.
12304 (types_deeply_equal): Remove TRY/CATCH. Update.
12305 * elfread.c (elf_symtab_read): Update.
12306 * dwarf2read.c: Don't include bcache.h.
12307 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12308 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12309 (print_bcache_statistics, bcache_memory_used): Don't declare.
12310 (struct bcache): Move from bcache.c. Add constructor, destructor,
12311 methods. Rename all data members.
12312 * bcache.c (struct bcache): Move to bcache.h.
12313 (bcache::expand_hash_table): Rename from expand_hash_table.
12314 (bcache): Remove.
12315 (bcache::insert): Rename from bcache_full.
12316 (bcache::compare): Rename from bcache_compare.
12317 (bcache_xmalloc): Remove.
12318 (bcache::~bcache): Rename from bcache_xfree.
12319 (bcache::print_statistics): Rename from print_bcache_statistics.
12320 (bcache::memory_used): Rename from bcache_memory_used.
12321
fe726667
PA
123222019-03-07 Pedro Alves <palves@redhat.com>
12323
12324 * infrun.c (normal_stop): Also check for
12325 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12326
7584bb30
AB
123272019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12328
12329 * f-lang.c (value_from_host_double): Moved to...
12330 * value.c (value_from_host_double): ...here.
12331 * value.h (value_from_host_double): Declare.
12332 * guile/scm-math.c (vlscm_convert_typed_number): Use
12333 value_from_host_double.
12334 (vlscm_convert_number): Likewise.
12335 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12336 * python/py-value.c (convert_value_from_python): Likewise.
12337
a7b1986e
TT
123382019-03-06 Tom Tromey <tom@tromey.com>
12339
12340 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12341
0ccf4211
TT
123422019-03-06 Tom Tromey <tom@tromey.com>
12343
12344 * utils.h (free_current_contents): Don't declare.
12345 * utils.c (free_current_contents): Remove.
12346
fe7b42e5
TT
123472019-03-06 Tom Tromey <tom@tromey.com>
12348
12349 * top.c (quit_force): Update.
12350 * main.c (captured_command_loop): Update.
12351 * common/new-op.c (operator new): Update.
12352 * common/common-exceptions.c (struct catcher)
12353 <save_cleanup_chain>: Remove member.
12354 (exceptions_state_mc_init): Update.
12355 (exception_try_scope_entry): Return nullptr.
12356 (exception_try_scope_exit, exception_rethrow)
12357 (throw_exception_sjlj, throw_exception_cxx): Update.
12358 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12359 (all_cleanups, do_cleanups, discard_cleanups)
12360 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12361 (restore_cleanups, restore_final_cleanups): Don't declare.
12362 (do_final_cleanups): Remove parameter.
12363 * common/cleanups.c (cleanup_chain, make_cleanup)
12364 (make_cleanup_dtor, all_cleanups, do_cleanups)
12365 (discard_my_cleanups, discard_cleanups)
12366 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12367 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12368 (null_cleanup): Remove.
12369 (do_final_cleanups): Remove parameter.
12370
c6321f19
TT
123712019-03-06 Tom Tromey <tom@tromey.com>
12372
12373 * remote.c (remote_target::remote_parse_stop_reply): Use
12374 unique_xmalloc_ptr.
12375
61b30099
TT
123762019-03-06 Tom Tromey <tom@tromey.com>
12377
12378 * stabsread.c (struct stabs_field_info): Rename from field_info.
12379 <list, fnlist>: Add initializers.
12380 <obstack>: New member.
12381 (read_member_functions, read_struct_fields, read_baseclasses):
12382 Allocate on obstack. Don't use cleanups.
12383 (read_one_struct_field, read_member_functions, read_struct_fields)
12384 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12385 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12386 (read_struct_type): Update.
12387
6cceac94
TT
123882019-03-06 Tom Tromey <tom@tromey.com>
12389
12390 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12391 * common/filestuff.h (make_cleanup_close): Don't declare.
12392 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12393 Remove.
12394
72412762
TT
123952019-03-06 Tom Tromey <tom@tromey.com>
12396
12397 * solib-aix.c: Use make_scope_exit.
12398
2b6ff1c0
TT
123992019-03-06 Tom Tromey <tom@tromey.com>
12400
12401 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12402 Use make_scope_exit.
12403
d01c5877
TT
124042019-03-06 Tom Tromey <tom@tromey.com>
12405
12406 * solib-svr4.c (disable_probes_interface): Remove parameter.
12407 (svr4_handle_solib_event): Use make_scope_exit.
12408
32603266
TT
124092019-03-06 Tom Tromey <tom@tromey.com>
12410
12411 * remote.c (struct stop_reply_deleter): Remove.
12412 (stop_reply_up): Update.
12413 (struct stop_reply): Derive from notif_event. Don't typedef.
12414 <regcache>: Now a std::vector.
12415 (stop_reply_xfree): Remove.
12416 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12417 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12418 (remote_target::discard_pending_stop_replies): Use delete.
12419 (remote_target::remote_parse_stop_reply): Update.
12420 (remote_target::process_stop_reply): Update.
12421 * remote-notif.h (struct notif_event): Add virtual destructor.
12422 Remove "dtr" member.
12423 (struct notif_client) <alloc_event>: Return a unique_ptr.
12424 (notif_event_xfree): Don't declare.
12425 (notif_event_up): New typedef.
12426 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12427 (notif_event_xfree, do_notif_event_xfree): Remove.
12428 (remote_notif_state_xfree): Update.
12429
9799571e
TT
124302019-03-06 Tom Tromey <tom@tromey.com>
12431
12432 * infrun.c (displaced_step_clear_cleanup): Now a
12433 forward_scope_exit type.
12434 (displaced_step_prepare_throw): Update.
12435 (displaced_step_fixup): Update.
12436
09e3c4ca
TT
124372019-03-06 Tom Tromey <tom@tromey.com>
12438
12439 * inferior.h (class inferior): Update comment.
12440 * gdbthread.h (class thread_info): Update comment.
12441
e2a03548
TT
124422019-03-06 Joel Brobecker <brobecker@adacore.com>
12443 Tom Tromey <tom@tromey.com>
12444
12445 * stabsread.h (struct stab_section_list): Remove.
12446 (coffstab_build_psymtabs): Update.
12447 * dbxread.c (symbuf_sections): Now a std::vector.
12448 (sect_idx): New global.
12449 (fill_symbuf): Update.
12450 (coffstab_build_psymtabs): Change type of stabsects parameter.
12451 Update.
12452 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12453 std::vector.
12454 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12455 (coff_locate_sections): Update.
12456 (coff_symfile_read): Remove cleanups. Update.
12457 (init_stringtab): Add storage parameter.
12458 (free_stringtab, free_stringtab_cleanup): Remove.
12459 (init_lineno): Add storage parameter.
12460 (free_linetab, free_linetab_cleanup): Remove.
12461
b7e60d85
PA
124622019-03-06 Pedro Alves <palves@redhat.com>
12463
12464 * linux-fork.c (fork_info::clobber_regs): Delete.
12465 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12466 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12467 comment. Adjust.
12468 (scoped_switch_fork_info::scoped_switch_fork_info)
12469 (checkpoint_command, linux_fork_context): Adjust
12470 fork_save_infrun_state calls.
12471
e52c971f
PA
124722019-03-06 Pedro Alves <palves@redhat.com>
12473
12474 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12475 (inf_has_multiple_threads): Return 'bool' and rewrite using
12476 inferior_info::threads().
12477
06974e6c
PA
124782019-03-06 Pedro Alves <palves@redhat.com>
12479
12480 * linux-fork.c: Include <list>.
12481 (fork_list): Now a std::list instance.
12482 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12483 (forks_exist_p, find_last_fork): Adjust.
12484 (new_fork): Delete.
12485 (one_fork_p): New.
12486 (add_fork): Adjust.
12487 (free_fork): Delete, folded into fork_info::~fork_info().
12488 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12489 Adjust.
12490 (init_fork_list): Delete.
12491 (linux_fork_killall, linux_fork_mourn_inferior)
12492 (linux_fork_detach, info_checkpoints_command): Adjust.
12493 (_initialize_linux_fork): No longer call init_fork_list.
12494
72f31aea
PA
124952019-03-06 Pedro Alves <palves@redhat.com>
12496
12497 * linux-fork.c (new_fork): New, split out of ...
12498 (add_fork): ... this. Return void. Move "first fork" special
12499 case from here, to ...
12500 (checkpoint_command): ... here.
12501 * linux-linux.h (add_fork): Return void.
12502
efbecbc1
AB
125032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12504
12505 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12506
0841c79a
AB
125072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12508 Chris January <chris.january@arm.com>
12509 David Lecomber <david.lecomber@arm.com>
12510
12511 * f-exp.y: New token, UNOP_INTRINSIC.
12512 (exp): New pattern using UNOP_INTRINSIC token.
12513 (f77_keywords): Add 'abs' keyword.
12514 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12515 (value_from_host_double): New function.
12516 (evaluate_subexp_f): Support UNOP_ABS.
12517
4a270568
AB
125182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12519
12520 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12521 types.
12522
067630bd
AB
125232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12524
12525 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12526 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12527 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12528
3be47f7a
AB
125292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12530
12531 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12532
4d00f5d8
AB
125332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12534 Chris January <chris.january@arm.com>
12535
12536 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12537 * f-exp.y: Define 'KIND' token.
12538 (exp): New pattern for KIND expressions.
12539 (ptype): Handle types with a kind extension.
12540 (direct_abs_decl): Extend to spot kind extensions.
12541 (f77_keywords): Add 'kind' to the list.
12542 (push_kind_type): New function.
12543 (convert_to_kind_type): New function.
12544 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12545 * parse.c (operator_length_standard): Likewise.
12546 * parser-defs.h (enum type_pieces): Add tp_kind.
12547 * std-operator.def: Add UNOP_KIND.
12548
e454224f
AB
125492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12550
12551 * f-exp.y (f_parse): Set yydebug.
12552
9dad4a58
AB
125532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12554
12555 * f-lang.c (evaluate_subexp_f): New function.
12556 (exp_descriptor_f): New global.
12557 (f_language_defn): Use exp_descriptor_f instead of
12558 exp_descriptor_standard.
12559
c8f91604
AB
125602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12561
12562 * f-exp.y (struct token): Add comments.
12563 (dot_ops): Remove uppercase versions and the end marker.
12564 (f77_keywords): Likewise.
12565 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12566 entries in the dot_ops array are case insensitive, and use
12567 strncasecmp to compare strings. Also some whitespace cleanup in
12568 this area. Similar for the f77_keywords array, except entries in
12569 this list might be case sensitive.
12570
dd9f2c76
AB
125712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12572
12573 * f-exp.y (struct f77_boolean_val): Add comments.
12574 (boolean_values): Remove uppercase versions, and end marker.
12575 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12576 and use strncasecmp to achieve case insensitivity. Additionally,
12577 perform whitespace cleanup around this code.
12578
67a3048c
TT
125792019-03-06 Tom Tromey <tromey@adacore.com>
12580
12581 * remote-sim.c (gdbsim_target_open): Use result of
12582 gdb_argv::release.
12583
aa3cfbda
RB
125842019-03-06 Richard Bunt <richard.bunt@arm.com>
12585 Dirk Schubert <dirk.schubert@arm.com>
12586 Chris January <chris.january@arm.com>
12587
12588 * eval.c (evaluate_subexp_standard): Call Fortran argument
12589 wrapping logic.
12590 * f-lang.c (struct value): A value which can be passed into a
12591 Fortran function call.
12592 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12593 where appropriate.
12594 (struct type): Value ready for a Fortran function call.
12595 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12596 is needed.
12597 * f-lang.h (fortran_argument_convert): Declaration.
12598 (fortran_preserve_arg_pointer): Declaration.
12599 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12600
ea38e5df
TT
126012019-03-05 Tom Tromey <tromey@adacore.com>
12602
12603 * python/py-prettyprint.c (print_string_repr): Remove #if.
12604 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12605
06b5b831
TT
126062019-03-05 Tom Tromey <tromey@adacore.com>
12607
12608 * target.c (the_dummy_target): Move later. Change type to
12609 "dummy_target".
12610 (initialize_targets): Don't initialize the_dummy_target.
12611
edbd9e45
TT
126122019-03-05 Tom Tromey <tromey@adacore.com>
12613
12614 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12615 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12616
c119e040
TT
126172019-03-05 Tom Tromey <tromey@adacore.com>
12618
12619 * windows-nat.c (windows_nat_target::attach)
12620 (windows_nat_target::detach): Don't call gdb_flush.
12621 * valprint.c (generic_val_print, val_print, val_print_string):
12622 Don't call gdb_flush.
12623 * utils.c (defaulted_query): Don't call gdb_flush.
12624 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12625 * target.c (target_announce_detach): Don't call gdb_flush.
12626 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12627 * remote.c (extended_remote_target::attach): Don't call
12628 gdb_flush.
12629 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12630 * printcmd.c (do_examine): Don't call gdb_flush.
12631 (info_display_command): Don't call gdb_flush.
12632 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12633 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12634 * memattr.c (info_mem_command): Don't call gdb_flush.
12635 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12636 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12637 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12638 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12639 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12640 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12641 (gnu_nat_target::detach): Don't call gdb_flush.
12642 * f-valprint.c (f_val_print): Don't call gdb_flush.
12643 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12644 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12645 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12646 gdb_flush.
12647 * c-valprint.c (c_val_print): Don't call gdb_flush.
12648 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12649
895dafa6
TT
126502019-03-05 Tom Tromey <tromey@adacore.com>
12651
12652 * varobj.c (update_dynamic_varobj_children): Update.
12653 (install_default_visualizer): Use reset, not release.
12654 * value.c (set_internalvar): Update.
12655 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12656 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12657 ATTRIBUTE_UNUSED_RESULT.
12658
88a774b9
TT
126592019-03-05 Tom Tromey <tromey@adacore.com>
12660
12661 * remote.c (class scoped_remote_fd) <release>: Add
12662 ATTRIBUTE_UNUSED_RESULT.
12663
4e4a8b93
TT
126642019-03-05 Tom Tromey <tromey@adacore.com>
12665
12666 * macroexp.c (struct macro_buffer) <release>: Add
12667 ATTRIBUTE_UNUSED_RESULT.
12668
083eef1f
TT
126692019-03-05 Tom Tromey <tromey@adacore.com>
12670
12671 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12672 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12673 ATTRIBUTE_UNUSED_RESULT.
12674
3cabd438
TT
126752019-03-05 Tom Tromey <tromey@adacore.com>
12676
12677 * common/scoped_fd.h (class scoped_fd) <release>: Add
12678 ATTRIBUTE_UNUSED_RESULT.
12679
41e3300a
TT
126802019-03-05 Tom Tromey <tromey@adacore.com>
12681
12682 * parser-defs.h (struct parser_state) <release>: Add
12683 ATTRIBUTE_UNUSED_RESULT.
12684
18cb7c9f
TT
126852019-03-05 Tom Tromey <tromey@adacore.com>
12686
12687 * utils.h (class gdb_argv) <release>: Add
12688 ATTRIBUTE_UNUSED_RESULT.
12689 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12690
41fa577f
EZ
126912019-03-02 Eli Zaretskii <eliz@gnu.org>
12692
a6a4b2c6
EZ
12693 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12694 for-loop range, to avoid compiler warnings.
12695
12696 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12697 avoid compiler warnings about unused variables.
12698
742a7df5
EZ
12699 * NEWS: Mention end of support for native debugging on MS-Windows
12700 before XP.
12701
41fa577f
EZ
12702 PR gdb/24292
12703 * common/netstuff.c:
12704 * gdbserver/gdbreplay.c
12705 * gdbserver/remote-utils.c:
12706 * ser-tcp.c:
12707 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12708 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12709 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12710 'getaddrinfo' and 'freeaddrinfo' were not available before
12711 Windows XP, and mingw.org's MinGW headers by default define
12712 _WIN32_WINNT to 0x500.
12713
827f438f
GB
127142019-03-01 Gary Benson <gbenson@redhat.com>
12715
12716 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12717
92137da0
RO
127182019-02-28 Brian Vandenberg <phantall@gmail.com>
12719 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12720
12721 PR gdb/8527
12722 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12723 set_sigint_trap, clear_sigint_trap.
12724
799efbe8
PW
127252019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12726
12727 * target.c (target_detach): Clear the regcache and the
12728 frame cache.
12729
8ed25214
PA
127302019-02-27 Pedro Alves <palves@redhat.com>
12731
12732 * utils.c (set_screen_size): When we cap the height/width sizes,
12733 tweak the corresponding command variable to show "unlimited":
12734
23031e31
SJ
127352019-02-27 Saagar Jha <saagar@saagarjha.com>
12736 Pedro Alves <palves@redhat.com>
12737
12738 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12739 before calling rl_set_screen_size.
12740
6c28e44a
TT
127412019-02-27 Tom Tromey <tromey@adacore.com>
12742
12743 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12744 define.
12745 * python/py-value.c: Remove Python 2.4 workaround.
12746 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12747 workaround.
12748 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12749 Python 2.4 workaround.
12750 * python/python-internal.h: Remove Python 2.4 comment.
12751 (Py_ssize_t): Don't define.
12752 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12753 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12754 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12755 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12756 * python/python.c (do_start_initialization): Remove Python 2.4
12757 workaround.
12758 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12759 (print_children): Remove Python 2.4 workaround.
12760 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12761 workaround.
12762 (CHARBUFFERPROC_NAME): Remove.
12763 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12764 Python 2.4 workaround.
12765
2c3fc25d 127662019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12767
2c3fc25d
KB
12768 * NEWS: Note minimum Python version.
12769
6ca62222
KB
127702019-02-27 Kevin Buettner <kevinb@redhat.com>
12771
12772 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12773 code from these functions. Remove corresponding ifdefs. Use
12774 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12775 Remove gotos and target of gotos.
12776 (infpy_search_memory): Likewise.
12777
f4bc7d2c
AB
127782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12779
12780 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12781 (hppa_gdbarch_init): Don't register deleted functions with
12782 gdbarch.
12783
9734a586
AB
127842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12785
12786 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12787 (h8300_unwind_sp): Delete.
12788 (h8300_dummy_id): Delete.
12789 (h8300_gdbarch_init): Don't register deleted functions with
12790 gdbarch.
12791
68b867f3
AB
127922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12793
12794 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12795 (ft32_unwind_pc): Delete.
12796 (ft32_unwind_sp): Delete.
12797 (ft32_gdbarch_init): Don't register deleted functions with
12798 gdbarch.
12799
2fbe7ad0
AB
128002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12801
12802 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12803 (frv_unwind_pc): Delete.
12804 (frv_unwind_sp): Delete.
12805 (frv_gdbarch_init): Don't register deleted functions with
12806 gdbarch.
12807
76055cbe
AB
128082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12809
12810 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12811 (riscv_unwind_pc): Delete.
12812 (riscv_unwind_sp): Delete.
12813 (riscv_gdbarch_init): Don't register deleted functions with
12814 gdbarch.
12815
4133e5a1
AB
128162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12817
12818 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12819 (csky_unwind_pc): Delete.
12820 (csky_unwind_sp): Delete.
12821 (csky_gdbarch_init): Don't register deleted functions with
12822 gdbarch.
12823
8010f576
AB
128242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12825
12826 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12827 (cris_unwind_pc): Delete.
12828 (cris_unwind_sp): Delete.
12829 (cris_gdbarch_init): Don't register deleted functions with
12830 gdbarch.
12831
b56bf084
AB
128322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12833
12834 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12835 (bfin_unwind_pc): Delete.
12836 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12837
a19a650f
AB
128382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12839
12840 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12841 (arm_unwind_pc): Delete.
12842 (arm_unwind_sp): Delete.
12843 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12844
f8278c3c
AB
128452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12846
12847 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12848 (arc_unwind_pc): Delete.
12849 (arc_unwind_sp): Delete.
12850 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12851
480e46cf
AB
128522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12853
12854 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12855 (alpha_unwind_pc): Delete.
12856 (alpha_gdbarch_init): Don't register deleted functions with
12857 gdbarch.
12858
7a995095
AB
128592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12860
12861 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12862 (aarch64_unwind_pc): Delete.
12863 (aarch64_unwind_sp): Delete.
12864 (aarch64_gdbarch_init): Don't register deleted functions with
12865 gdbarch.
12866
bf9a735e
AB
128672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12868
12869 * gdbtypes.c (type_align): Don't consider static members when
12870 computing structure alignment.
12871
5561fc30
AB
128722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12873
12874 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12875 return 0 for other types.
12876 * arch-utils.c (default_type_align): Always return 0.
12877 * gdbarch.h: Regenerate.
12878 * gdbarch.sh (type_align): Extend comment.
12879 * gdbtypes.c (type_align): Add additional comments, always call
12880 gdbarch_type_align before applying the default rules.
12881 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12882 generic code will then apply a suitable default.
12883 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12884 types, return 0 for other types.
12885
9335e75a
JB
128862019-02-27 Joel Brobecker <brobecker@adacore.com>
12887
12888 * NEWS: Create a new section for the next release branch.
12889 Rename the section of the current branch, now that it has
12890 been cut.
12891
3d34d8de
JB
128922019-02-27 Joel Brobecker <brobecker@adacore.com>
12893
12894 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12895 * version.in: Bump version to 8.3.50.DATE-git.
12896
143420fb
SM
128972019-02-26 Simon Marchi <simon.marchi@efficios.com>
12898
12899 * aix-thread.c (ptid_cmp): Remove unused variable.
12900 (get_signaled_thread): Likewise.
12901 (store_regs_user_thread): Likewise.
12902 (store_regs_kernel_thread): Likewise.
12903 (fetch_regs_kernel_thread): Remove shadowed variable.
12904
172fb711
AB
129052019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12906
12907 * features/riscv/32bit-cpu.xml: Add register numbers.
12908 * features/riscv/32bit-fpu.c: Regenerate.
12909 * features/riscv/32bit-fpu.xml: Add register numbers.
12910 * features/riscv/64bit-cpu.xml: Add register numbers.
12911 * features/riscv/64bit-fpu.c: Regenerate.
12912 * features/riscv/64bit-fpu.xml: Add register numbers.
12913
26c89782
KB
129142019-02-26 Kevin Buettner <kevinb@redhat.com>
12915
af54ade9 12916 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12917 * python/py-value.c (convert_buffer_and_type_to_value): New
12918 function.
12919 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12920 Add support for handling an optional second argument. Call
12921 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12922 * python/python-internal.h (Py_buffer_deleter): New struct.
12923 (Py_buffer_up): New typedef.
12924
0f58c9e8
JB
129252019-02-25 John Baldwin <jhb@FreeBSD.org>
12926
12927 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12928 instead of releasing ownership.
12929
0a0f4c01
JR
129302019-02-25 Jordan Rupprecht <rupprecht@google.com>
12931
12932 * dwarf2read.c (open_and_init_dwp_file): Call
12933 elf_numsections instead of bfd_count_sections to initialize
12934 dwp_file->num_sections.
12935
cd5a152c
TT
129362019-02-25 Tom Tromey <tromey@adacore.com>
12937
12938 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12939
8a6a8513
SDJ
129402019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12941
12942 * gcore.in: Add '--readnever' option when invoking GDB.
12943
04dcda9c
SM
129442019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12945
12946 * MAINTAINERS: Update my email address.
12947
07bc701d
SM
129482019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12949
12950 * build-id.c (build_id_to_debug_bfd_1): New function.
12951 (build_id_to_debug_bfd): Look for separate debug file in
12952 sysroot.
12953
c6f4a5d0
AB
129542019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12955
12956 * gdbarch.sh: Update the copyright year range that is placed into
12957 generated files.
12958
9600246d
KS
129592019-02-22 Keith Seitz <keiths@redhat.com>
12960
12961 PR symtab/23853
12962 * linespec.c (create_sals_line_offset): Search for the default
12963 symtab's filename instead of its fullname.
12964
7557a514
AH
129652019-02-21 Alan Hayward <alan.hayward@arm.com>
12966
12967 * NEWS: Update style defaults.
12968
ee2bcb0c
AH
129692019-02-21 Alan Hayward <alan.hayward@arm.com>
12970
12971 * main.c (captured_main_1): Disable styling in batch mode.
12972
0c95f9ed
TT
129732019-02-20 Tom Tromey <tom@tromey.com>
12974
12975 * symtab.c (symtab_symbol_info): Fix typos.
12976
c763b894
TT
129772019-02-20 Tom Tromey <tromey@adacore.com>
12978
12979 * findcmd.c (_initialize_mem_search): Use upper case for
12980 metasyntactic variables.
12981
0ef8a082
AH
129822019-02-20 Alan Hayward <alan.hayward@arm.com>
12983
12984 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12985 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12986
6caa91b6
SM
129872019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12988
12989 * top.h (source_file_name): Change to std::string.
12990 * top.c (source_file_name): Likewise.
12991 (command_line_input): Adjust.
12992 * cli/cli-script.c (script_from_file): Adjust.
12993
98814c6c
TT
129942019-02-19 Tom Tromey <tromey@adacore.com>
12995
12996 * ravenscar-thread.c
12997 (ravenscar_thread_target::update_thread_list): Don't call
12998 ada_build_task_list.
12999 * ada-lang.h (ada_build_task_list): Don't declare.
13000 * ada-tasks.c (struct ada_tasks_inferior_data)
13001 <task_list_valid_p>: Now bool.
13002 (read_known_tasks, ada_task_list_changed)
13003 (ada_tasks_invalidate_inferior_data): Update.
13004 (read_known_tasks_array): Return bool.
13005 (read_known_tasks_list): Likewise.
13006 (read_known_tasks): Return void.
13007 (ada_build_task_list): Now static.
13008
70cd633e
AB
130092019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13010
13011 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13012 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13013
040b3e95
PW
130142019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13015
13016 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13017 variant for ada_tasks_pspace_data_handle and
13018 ada_tasks_inferior_data_handle.
13019 (ada_tasks_pspace_data_cleanup): New function.
13020 (ada_tasks_inferior_data_cleanup): New function.
13021
9409233b
TT
130222019-02-17 Tom Tromey <tom@tromey.com>
13023
13024 * macrotab.h (macro_source_fullname): Return a std::string.
13025 * macrotab.c (macro_include, check_for_redefinition)
13026 (macro_undef, macro_lookup_definition, foreach_macro)
13027 (foreach_macro_in_scope): Update.
13028 (macro_source_fullname): Return a std::string.
13029 * macrocmd.c (show_pp_source_pos): Update.
13030
6506371f
TT
130312019-02-17 Tom Tromey <tom@tromey.com>
13032
13033 * macrocmd.c (show_pp_source_pos): Style the file names.
13034
0c820d67
TT
130352019-02-17 Tom Tromey <tom@tromey.com>
13036
13037 PR tui/24197:
13038 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13039
a0087920
TT
130402019-02-17 Tom Tromey <tom@tromey.com>
13041
13042 * ada-lang.c (user_select_syms): Use filtered printing.
13043 * utils.c (wrap_style): New global.
13044 (desired_style): Remove.
13045 (emit_style_escape): Add stream parameter.
13046 (set_output_style, reset_terminal_style, prompt_for_continue):
13047 Update.
13048 (flush_wrap_buffer): Only flush gdb_stdout.
13049 (wrap_here): Set wrap_style.
13050 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13051 treat escape sequences as a character. Change when wrap buffer is
13052 flushed.
13053 (fputs_styled): Do not set the output style when the default is
13054 requested.
13055 * ui-style.h (struct ui_file_style) <is_default>: New method.
13056 * source.c (print_source_lines_base): Emit escape sequences in one
13057 piece.
13058
75ba10dc
JB
130592019-02-17 Joel Brobecker <brobecker@adacore.com>
13060
13061 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13062 integers and enumeration types.
13063
a2cd4f14
JB
130642019-02-17 Joel Brobecker <brobecker@adacore.com>
13065
13066 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13067 instead of lookup_symbol_in_language
13068 (do_exact_match): New function.
13069 (ada_get_symbol_name_matcher): Return do_exact_match when
13070 doing a verbatim match.
13071
485b851b
TT
130722019-02-15 Tom Tromey <tromey@adacore.com>
13073
13074 * ravenscar-thread.c (ravenscar_thread_target::resume)
13075 (ravenscar_thread_target::wait): Special case wildcard requests.
13076
0b790b1e
TT
130772019-02-15 Tom Tromey <tromey@adacore.com>
13078
13079 * ravenscar-thread.c (base_ptid): Remove.
13080 (struct ravenscar_thread_target) <close>: New method.
13081 <m_base_ptid>: New member.
13082 <update_inferior_ptid, active_task, task_is_currently_active,
13083 runtime_initialized>: Declare methods.
13084 <ravenscar_thread_target>: Add constructor.
13085 (ravenscar_thread_target::task_is_currently_active)
13086 (ravenscar_thread_target::update_inferior_ptid)
13087 (ravenscar_runtime_initialized): Rename. Now methods.
13088 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13089 (ravenscar_thread_target::update_thread_list): Update.
13090 (ravenscar_thread_target::active_task): Now method.
13091 (ravenscar_thread_target::store_registers)
13092 (ravenscar_thread_target::prepare_to_store)
13093 (ravenscar_thread_target::prepare_to_store)
13094 (ravenscar_thread_target::mourn_inferior): Update.
13095 (ravenscar_inferior_created): Use "new" to create target.
13096 (ravenscar_thread_target::get_ada_task_ptid): Update.
13097 (_initialize_ravenscar): Don't initialize base_ptid.
13098 (ravenscar_ops): Remove global.
13099
dea57a62
TT
131002019-02-15 Tom Tromey <tromey@adacore.com>
13101
13102 * target.h (push_target): Declare new overload.
13103 * target.c (push_target): New overload, taking an rvalue reference.
13104 * remote.c (remote_target::open_1): Use push_target overload.
13105 * corelow.c (core_target_open): Use push_target overload.
13106
989f3c58
TT
131072019-02-15 Tom Tromey <tromey@adacore.com>
13108
13109 * ravenscar-thread.c (is_ravenscar_task)
13110 (ravenscar_task_is_currently_active): Return bool.
13111 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13112 (_initialize_ravenscar): Remove "(void)".
13113 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13114 Return bool.
13115
6cbcc006
TT
131162019-02-15 Tom Tromey <tromey@adacore.com>
13117
13118 * ravenscar-thread.c (ravenscar_runtime_initializer)
13119 (has_ravenscar_runtime, get_running_thread_id)
13120 (ravenscar_thread_target::resume): Fix indentation.
13121
7657f14d
TT
131222019-02-15 Tom Tromey <tromey@adacore.com>
13123
13124 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13125 from ravenscar_arch_ops.
13126 (sparc_ravenscar_ops::fetch_registers)
13127 (sparc_ravenscar_ops::store_registers): Now methods.
13128 (sparc_ravenscar_prepare_to_store): Remove.
13129 (sparc_ravenscar_ops): Redefine.
13130 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13131 methods and destructor. Remove members.
13132 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13133 (ravenscar_thread_target::store_registers)
13134 (ravenscar_thread_target::prepare_to_store): Update.
13135 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13136 Remove.
13137 (struct ppc_ravenscar_powerpc_ops): Derive from
13138 ravenscar_arch_ops.
13139 (ppc_ravenscar_powerpc_ops::fetch_registers)
13140 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13141 (ppc_ravenscar_powerpc_ops): Redefine.
13142 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13143 (ppc_ravenscar_e500_ops::fetch_registers)
13144 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13145 (ppc_ravenscar_e500_ops): Redefine.
13146 * aarch64-ravenscar-thread.c
13147 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13148 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13149 (aarch64_ravenscar_fetch_registers)
13150 (aarch64_ravenscar_store_registers): Now methods.
13151 (aarch64_ravenscar_ops): Redefine.
13152
5b6ea500
TT
131532019-02-15 Tom Tromey <tromey@adacore.com>
13154
13155 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13156 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13157 (ravenscar_thread_target::stopped_by_watchpoint)
13158 (ravenscar_thread_target::stopped_data_address)
13159 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13160
e397fd39
TT
131612019-02-15 Tom Tromey <tromey@adacore.com>
13162
13163 * ravenscar-thread.c: Fix some typos.
13164
cc12f4a8
TT
131652019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13166 Tom Tromey <tromey@adacore.com>
13167
13168 * ada-lang.c (ada_exception_sal): Change addr_string to a
13169 std::string.
13170 (create_ada_exception_catchpoint): Update.
13171
5f486660
TT
131722019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13173 Tom Tromey <tromey@adacore.com>
13174
13175 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13176 (bp_location_ops): Remove.
13177 (base_breakpoint_allocate_location): Update.
13178 (free_bp_location): Update.
13179 * ada-lang.c (class ada_catchpoint_location)
13180 <ada_catchpoint_location>: Remove ops parameter.
13181 (ada_catchpoint_location_dtor): Remove.
13182 (ada_catchpoint_location_ops): Remove.
13183 (allocate_location_exception): Update.
13184 * breakpoint.h (struct bp_location_ops): Remove.
13185 (class bp_location) <bp_location>: Remove bp_location_ops
13186 parameter.
13187 <~bp_location>: Add destructor.
13188 <ops>: Remove.
13189
b671c7fb
TS
131902019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13191 Pedro Alves <palves@redhat.com>
13192
13193 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13194 'PATH_MAX'.
13195
8071c5ce
DM
131962019-02-14 David Michael <fedora.dm0@gmail.com>
13197 Samuel Thibault <samuel.thibault@gnu.org>
13198 Thomas Schwinge <thomas@codesourcery.com>
13199
13200 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13201 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13202
b1041ae0
TS
132032019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13204
924514e1
TS
13205 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13206 (check_empty): Use "const char *".
13207
c29ee8d4
TS
13208 * gnu-nat.c (gnu_nat_target::detach): Instead of
13209 'detach_inferior (pid)' call
13210 'detach_inferior (find_inferior_pid (pid))'.
13211
6c6ef69f
TS
13212 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13213 'nat/fork-inferior.o'.
13214 * gnu-nat.c: #include "nat/fork-inferior.h".
13215
2d0a338c
TS
13216 * gnu-nat.c (gnu_nat_target::detach): Instead of
13217 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13218 * gnu-nat.h: #include "inf-child.h".
13219 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13220 'i386_gnu_nat_target::fetch_registers'.
13221 (gnu_store_registers): Rename/move to
13222 'i386_gnu_nat_target::store_registers'.
13223
cabb5f06
TS
13224 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13225 * gnu-nat.h (mach_thread_info): New function.
13226 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13227
b1041ae0
TS
13228 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13229
2988d01e
KF
132302019-02-14 Frederic Konrad <konrad@adacore.com>
13231
13232 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13233
c559d709
JB
132342019-02-14 Joel Brobecker <brobecker@adacore.com>
13235
13236 * windows-nat.c (windows_add_thread): Add new parameter
13237 "main_thread_p" with default value set to false. Update
13238 function documentation as well as all callers.
13239 (windows_delete_thread): Likewise.
13240 (fake_create_process): Update call to windows_add_thread.
13241 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13242 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13243 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13244 call to windows_delete_thread.
13245
007024cc
SM
132462019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13247
13248 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13249
f62318e9
JB
132502019-02-12 John Baldwin <jhb@FreeBSD.org>
13251
13252 * symfile.c (find_separate_debug_file): Use canonical path of
13253 sysroot with child_path instead of gdb_sysroot if it is valid.
13254
cd4b7848
JB
132552019-02-12 John Baldwin <jhb@FreeBSD.org>
13256
13257 * symfile.c (find_separate_debug_file): Use child_path to
13258 determine if an object file is under a sysroot.
13259
efac4bfe
JB
132602019-02-12 John Baldwin <jhb@FreeBSD.org>
13261
13262 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13263 unittests/child-path-selftests.c.
13264 * common/pathstuff.c (child_path): New function.
13265 * common/pathstuff.h (child_path): New prototype.
13266 * unittests/child-path-selftests.c: New file.
13267
402d2bfe
JB
132682019-02-12 John Baldwin <jhb@FreeBSD.org>
13269
13270 * symfile.c (find_separate_debug_file): Look for separate debug
13271 files in debug directories under the sysroot.
13272
1ed9f74e
PW
132732019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13274
13275 * symtab.h (struct minimal_symbol data_p): New const method.
13276 (struct minimal_symbol text_p): Likewise.
13277 * symtab.c (output_source_filename): Use file name style
13278 to print file name.
13279 (print_symbol_info): Likewise.
13280 (print_msymbol_info): Use address style to print addresses.
13281 Use function name style to print executable text symbols.
13282 (expand_symtab_containing_pc): Use data_p.
13283 (find_pc_sect_compunit_symtab): Likewise.
13284
2636d81d
PW
132852019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13286
13287 * breakpoint.c (describe_other_breakpoints): Use address style
13288 to print addresses.
13289 (say_where): Likewise.
13290
ac8c53cc
PW
132912019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13292
13293 * ada-typeprint.c (print_func_type): Print function name
13294 style to print function name.
13295 * c-typeprint.c (c_print_type_1): Likewise.
13296
ea638c43
AH
132972019-02-11 Alan Hayward <alan.hayward@arm.com>
13298
13299 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13300 for execve.
13301
ab759ca8
PW
133022019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13303
13304 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13305 type_stack.
13306
aff29d1c
JB
133072019-02-10 Joel Brobecker <brobecker@adacore.com>
13308
13309 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13310 TYPE_CODE_REF types.
13311
617126bc
JW
133122019-02-08 Jim Wilson <jimw@sifive.com>
13313
13314 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13315 (riscv_linux_fregset): New.
13316 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13317
46e3ed7f
TT
133182019-02-07 Tom Tromey <tom@tromey.com>
13319
13320 * thread.c (thread_cancel_execution_command): Update.
13321 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13322 methods.
13323 (struct thread_fsm_ops): Remove.
13324 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13325 (thread_fsm_should_stop, thread_fsm_return_value)
13326 (thread_fsm_set_finished, thread_fsm_finished_p)
13327 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13328 Don't declare.
13329 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13330 * infrun.c (clear_proceed_status_thread)
13331 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13332 (print_stop_event): Update.
13333 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13334 Add constructor.
13335 (step_command_fsm_ops): Remove.
13336 (new_step_command_fsm): Remove.
13337 (step_1): Update.
13338 (step_command_fsm::should_stop): Rename from
13339 step_command_fsm_should_stop.
13340 (step_command_fsm::clean_up): Rename from
13341 step_command_fsm_clean_up.
13342 (step_command_fsm::do_async_reply_reason): Rename from
13343 step_command_fsm_async_reply_reason.
13344 (struct until_next_fsm): Inherit from thread_fsm. Add
13345 constructor.
13346 (until_next_fsm_ops): Remove.
13347 (new_until_next_fsm): Remove.
13348 (until_next_fsm::should_stop): Rename from
13349 until_next_fsm_should_stop.
13350 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13351 (until_next_fsm::do_async_reply_reason): Rename from
13352 until_next_fsm_async_reply_reason.
13353 (struct finish_command_fsm): Inherit from thread_fsm. Add
13354 constructor. Change type of breakpoint.
13355 (finish_command_fsm_ops): Remove.
13356 (new_finish_command_fsm): Remove.
13357 (finish_command_fsm::should_stop): Rename from
13358 finish_command_fsm_should_stop.
13359 (finish_command_fsm::clean_up): Rename from
13360 finish_command_fsm_clean_up.
13361 (finish_command_fsm::return_value): Rename from
13362 finish_command_fsm_return_value.
13363 (finish_command_fsm::do_async_reply_reason): Rename from
13364 finish_command_fsm_async_reply_reason.
13365 (finish_command): Update.
13366 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13367 Add constructor.
13368 (call_thread_fsm_ops): Remove.
13369 (call_thread_fsm::call_thread_fsm): Rename from
13370 new_call_thread_fsm.
13371 (call_thread_fsm::should_stop): Rename from
13372 call_thread_fsm_should_stop.
13373 (call_thread_fsm::should_notify_stop): Rename from
13374 call_thread_fsm_should_notify_stop.
13375 (run_inferior_call, call_function_by_hand_dummy): Update.
13376 * cli/cli-interp.c (should_print_stop_to_console): Update.
13377 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13378 Add constructor. Change type of location_breakpoint,
13379 caller_breakpoint.
13380 (until_break_fsm_ops): Remove.
13381 (new_until_break_fsm): Remove.
13382 (until_break_fsm::should_stop): Rename from
13383 until_break_fsm_should_stop.
13384 (until_break_fsm::clean_up): Rename from
13385 until_break_fsm_clean_up.
13386 (until_break_fsm::do_async_reply_reason): Rename from
13387 until_break_fsm_async_reply_reason.
13388 (until_break_command): Update.
13389 * thread-fsm.c: Remove.
13390 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13391
1a5c2598
TT
133922019-02-07 Tom Tromey <tom@tromey.com>
13393
13394 * yy-remap.h: Add include guard.
13395 * xtensa-tdep.h: Add include guard.
13396 * xcoffread.h: Rename include guard.
13397 * varobj-iter.h: Add include guard.
13398 * tui/tui.h: Rename include guard.
13399 * tui/tui-winsource.h: Rename include guard.
13400 * tui/tui-wingeneral.h: Rename include guard.
13401 * tui/tui-windata.h: Rename include guard.
13402 * tui/tui-win.h: Rename include guard.
13403 * tui/tui-stack.h: Rename include guard.
13404 * tui/tui-source.h: Rename include guard.
13405 * tui/tui-regs.h: Rename include guard.
13406 * tui/tui-out.h: Rename include guard.
13407 * tui/tui-layout.h: Rename include guard.
13408 * tui/tui-io.h: Rename include guard.
13409 * tui/tui-hooks.h: Rename include guard.
13410 * tui/tui-file.h: Rename include guard.
13411 * tui/tui-disasm.h: Rename include guard.
13412 * tui/tui-data.h: Rename include guard.
13413 * tui/tui-command.h: Rename include guard.
13414 * tic6x-tdep.h: Add include guard.
13415 * target/waitstatus.h: Rename include guard.
13416 * target/wait.h: Rename include guard.
13417 * target/target.h: Rename include guard.
13418 * target/resume.h: Rename include guard.
13419 * target-float.h: Rename include guard.
13420 * stabsread.h: Add include guard.
13421 * rs6000-tdep.h: Add include guard.
13422 * riscv-fbsd-tdep.h: Add include guard.
13423 * regformats/regdef.h: Rename include guard.
13424 * record.h: Rename include guard.
13425 * python/python.h: Rename include guard.
13426 * python/python-internal.h: Rename include guard.
13427 * python/py-stopevent.h: Rename include guard.
13428 * python/py-ref.h: Rename include guard.
13429 * python/py-record.h: Rename include guard.
13430 * python/py-record-full.h: Rename include guard.
13431 * python/py-record-btrace.h: Rename include guard.
13432 * python/py-instruction.h: Rename include guard.
13433 * python/py-events.h: Rename include guard.
13434 * python/py-event.h: Rename include guard.
13435 * procfs.h: Add include guard.
13436 * proc-utils.h: Add include guard.
13437 * p-lang.h: Add include guard.
13438 * or1k-tdep.h: Rename include guard.
13439 * observable.h: Rename include guard.
13440 * nto-tdep.h: Rename include guard.
13441 * nat/x86-linux.h: Rename include guard.
13442 * nat/x86-linux-dregs.h: Rename include guard.
13443 * nat/x86-gcc-cpuid.h: Add include guard.
13444 * nat/x86-dregs.h: Rename include guard.
13445 * nat/x86-cpuid.h: Rename include guard.
13446 * nat/ppc-linux.h: Rename include guard.
13447 * nat/mips-linux-watch.h: Rename include guard.
13448 * nat/linux-waitpid.h: Rename include guard.
13449 * nat/linux-ptrace.h: Rename include guard.
13450 * nat/linux-procfs.h: Rename include guard.
13451 * nat/linux-osdata.h: Rename include guard.
13452 * nat/linux-nat.h: Rename include guard.
13453 * nat/linux-namespaces.h: Rename include guard.
13454 * nat/linux-btrace.h: Rename include guard.
13455 * nat/glibc_thread_db.h: Rename include guard.
13456 * nat/gdb_thread_db.h: Rename include guard.
13457 * nat/gdb_ptrace.h: Rename include guard.
13458 * nat/fork-inferior.h: Rename include guard.
13459 * nat/amd64-linux-siginfo.h: Rename include guard.
13460 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13461 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13462 * nat/aarch64-linux.h: Rename include guard.
13463 * nat/aarch64-linux-hw-point.h: Rename include guard.
13464 * mn10300-tdep.h: Add include guard.
13465 * mips-linux-tdep.h: Add include guard.
13466 * mi/mi-parse.h: Rename include guard.
13467 * mi/mi-out.h: Rename include guard.
13468 * mi/mi-main.h: Rename include guard.
13469 * mi/mi-interp.h: Rename include guard.
13470 * mi/mi-getopt.h: Rename include guard.
13471 * mi/mi-console.h: Rename include guard.
13472 * mi/mi-common.h: Rename include guard.
13473 * mi/mi-cmds.h: Rename include guard.
13474 * mi/mi-cmd-break.h: Rename include guard.
13475 * m2-lang.h: Add include guard.
13476 * location.h: Rename include guard.
13477 * linux-record.h: Rename include guard.
13478 * linux-nat.h: Add include guard.
13479 * linux-fork.h: Add include guard.
13480 * i386-darwin-tdep.h: Rename include guard.
13481 * hppa-linux-offsets.h: Add include guard.
13482 * guile/guile.h: Rename include guard.
13483 * guile/guile-internal.h: Rename include guard.
13484 * gnu-nat.h: Rename include guard.
13485 * gdb-stabs.h: Rename include guard.
13486 * frv-tdep.h: Add include guard.
13487 * f-lang.h: Add include guard.
13488 * event-loop.h: Add include guard.
13489 * darwin-nat.h: Rename include guard.
13490 * cp-abi.h: Rename include guard.
13491 * config/sparc/nm-sol2.h: Rename include guard.
13492 * config/nm-nto.h: Rename include guard.
13493 * config/nm-linux.h: Add include guard.
13494 * config/i386/nm-i386gnu.h: Rename include guard.
13495 * config/djgpp/nl_types.h: Rename include guard.
13496 * config/djgpp/langinfo.h: Rename include guard.
13497 * compile/gcc-cp-plugin.h: Add include guard.
13498 * compile/gcc-c-plugin.h: Add include guard.
13499 * compile/compile.h: Rename include guard.
13500 * compile/compile-object-run.h: Rename include guard.
13501 * compile/compile-object-load.h: Rename include guard.
13502 * compile/compile-internal.h: Rename include guard.
13503 * compile/compile-cplus.h: Rename include guard.
13504 * compile/compile-c.h: Rename include guard.
13505 * common/xml-utils.h: Rename include guard.
13506 * common/x86-xstate.h: Rename include guard.
13507 * common/version.h: Rename include guard.
13508 * common/vec.h: Rename include guard.
13509 * common/tdesc.h: Rename include guard.
13510 * common/selftest.h: Rename include guard.
13511 * common/scoped_restore.h: Rename include guard.
13512 * common/scoped_mmap.h: Rename include guard.
13513 * common/scoped_fd.h: Rename include guard.
13514 * common/safe-iterator.h: Rename include guard.
13515 * common/run-time-clock.h: Rename include guard.
13516 * common/refcounted-object.h: Rename include guard.
13517 * common/queue.h: Rename include guard.
13518 * common/ptid.h: Rename include guard.
13519 * common/print-utils.h: Rename include guard.
13520 * common/preprocessor.h: Rename include guard.
13521 * common/pathstuff.h: Rename include guard.
13522 * common/observable.h: Rename include guard.
13523 * common/netstuff.h: Rename include guard.
13524 * common/job-control.h: Rename include guard.
13525 * common/host-defs.h: Rename include guard.
13526 * common/gdb_wait.h: Rename include guard.
13527 * common/gdb_vecs.h: Rename include guard.
13528 * common/gdb_unlinker.h: Rename include guard.
13529 * common/gdb_unique_ptr.h: Rename include guard.
13530 * common/gdb_tilde_expand.h: Rename include guard.
13531 * common/gdb_sys_time.h: Rename include guard.
13532 * common/gdb_string_view.h: Rename include guard.
13533 * common/gdb_splay_tree.h: Rename include guard.
13534 * common/gdb_setjmp.h: Rename include guard.
13535 * common/gdb_ref_ptr.h: Rename include guard.
13536 * common/gdb_optional.h: Rename include guard.
13537 * common/gdb_locale.h: Rename include guard.
13538 * common/gdb_assert.h: Rename include guard.
13539 * common/filtered-iterator.h: Rename include guard.
13540 * common/filestuff.h: Rename include guard.
13541 * common/fileio.h: Rename include guard.
13542 * common/environ.h: Rename include guard.
13543 * common/common-utils.h: Rename include guard.
13544 * common/common-types.h: Rename include guard.
13545 * common/common-regcache.h: Rename include guard.
13546 * common/common-inferior.h: Rename include guard.
13547 * common/common-gdbthread.h: Rename include guard.
13548 * common/common-exceptions.h: Rename include guard.
13549 * common/common-defs.h: Rename include guard.
13550 * common/common-debug.h: Rename include guard.
13551 * common/cleanups.h: Rename include guard.
13552 * common/buffer.h: Rename include guard.
13553 * common/btrace-common.h: Rename include guard.
13554 * common/break-common.h: Rename include guard.
13555 * cli/cli-utils.h: Rename include guard.
13556 * cli/cli-style.h: Rename include guard.
13557 * cli/cli-setshow.h: Rename include guard.
13558 * cli/cli-script.h: Rename include guard.
13559 * cli/cli-interp.h: Rename include guard.
13560 * cli/cli-decode.h: Rename include guard.
13561 * cli/cli-cmds.h: Rename include guard.
13562 * charset-list.h: Add include guard.
13563 * buildsym-legacy.h: Rename include guard.
13564 * bfin-tdep.h: Add include guard.
13565 * ax.h: Rename include guard.
13566 * arm-linux-tdep.h: Add include guard.
13567 * arm-fbsd-tdep.h: Add include guard.
13568 * arch/xtensa.h: Rename include guard.
13569 * arch/tic6x.h: Add include guard.
13570 * arch/i386.h: Add include guard.
13571 * arch/arm.h: Rename include guard.
13572 * arch/arm-linux.h: Rename include guard.
13573 * arch/arm-get-next-pcs.h: Rename include guard.
13574 * arch/amd64.h: Add include guard.
13575 * arch/aarch64-insn.h: Rename include guard.
13576 * arch-utils.h: Rename include guard.
13577 * annotate.h: Add include guard.
13578 * amd64-darwin-tdep.h: Rename include guard.
13579 * aarch64-linux-tdep.h: Add include guard.
13580 * aarch64-fbsd-tdep.h: Add include guard.
13581 * aarch32-linux-nat.h: Add include guard.
13582
ab9268d2
PW
135832019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13584
13585 * macrotab.c (macro_define_internal): New function that
13586 factorizes macro_define_object_internal and macro_define_function
13587 code.
13588 (macro_define_object_internal): Use macro_define_internal.
13589 (macro_define_function): Likewise.
13590
bb0da2b4
PW
135912019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13592
13593 * macrocmd.c (extract_identifier): Return
13594 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13595 callers.
13596
424eb552
JB
135972019-02-06 John Baldwin <jhb@FreeBSD.org>
13598
13599 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13600
1688cb29
TT
136012019-02-05 Tom Tromey <tom@tromey.com>
13602
13603 * target.c (target_stack::unpush): Move assertion earlier.
13604
b5eba2d8
TT
136052019-01-30 Tom Tromey <tom@tromey.com>
13606
13607 PR python/23615:
13608 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13609 (gdbpy_parse_and_eval): Likewise.
13610 * python/python-internal.h (gdbpy_allow_threads): New class.
13611
7054e2ff
JB
136122019-01-28 John Baldwin <jhb@FreeBSD.org>
13613
13614 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13615 (aarch64_fbsd_fpregmap): Move earlier.
13616 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13617 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13618 instead of individual calls to trad_frame_set_reg_addr.
13619 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13620 earlier.
13621 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13622 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13623 instead of individual calls to trad_frame_set_reg_addr.
13624
36c25ffa
AH
136252019-01-28 Alan Hayward <alan.hayward@arm.com>
13626
13627 * CONTRIBUTE: Replace contribution list with wiki link.
13628
a0707f3c
TT
136292019-01-25 Tom Tromey <tom@tromey.com>
13630
13631 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13632
0747795c
TT
136332019-01-25 Tom Tromey <tom@tromey.com>
13634
13635 * xtensa-linux-nat.c: Fix common/ includes.
13636 * xml-support.h: Fix common/ includes.
13637 * xml-support.c: Fix common/ includes.
13638 * x86-linux-nat.c: Fix common/ includes.
13639 * windows-nat.c: Fix common/ includes.
13640 * varobj.h: Fix common/ includes.
13641 * varobj.c: Fix common/ includes.
13642 * value.c: Fix common/ includes.
13643 * valops.c: Fix common/ includes.
13644 * utils.c: Fix common/ includes.
13645 * unittests/xml-utils-selftests.c: Fix common/ includes.
13646 * unittests/utils-selftests.c: Fix common/ includes.
13647 * unittests/unpack-selftests.c: Fix common/ includes.
13648 * unittests/tracepoint-selftests.c: Fix common/ includes.
13649 * unittests/style-selftests.c: Fix common/ includes.
13650 * unittests/string_view-selftests.c: Fix common/ includes.
13651 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13652 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13653 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13654 * unittests/rsp-low-selftests.c: Fix common/ includes.
13655 * unittests/parse-connection-spec-selftests.c: Fix common/
13656 includes.
13657 * unittests/optional-selftests.c: Fix common/ includes.
13658 * unittests/offset-type-selftests.c: Fix common/ includes.
13659 * unittests/observable-selftests.c: Fix common/ includes.
13660 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13661 * unittests/memrange-selftests.c: Fix common/ includes.
13662 * unittests/memory-map-selftests.c: Fix common/ includes.
13663 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13664 * unittests/function-view-selftests.c: Fix common/ includes.
13665 * unittests/environ-selftests.c: Fix common/ includes.
13666 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13667 * unittests/common-utils-selftests.c: Fix common/ includes.
13668 * unittests/cli-utils-selftests.c: Fix common/ includes.
13669 * unittests/array-view-selftests.c: Fix common/ includes.
13670 * ui-file.c: Fix common/ includes.
13671 * tui/tui-io.c: Fix common/ includes.
13672 * tracepoint.h: Fix common/ includes.
13673 * tracepoint.c: Fix common/ includes.
13674 * tracefile-tfile.c: Fix common/ includes.
13675 * top.h: Fix common/ includes.
13676 * top.c: Fix common/ includes.
13677 * thread.c: Fix common/ includes.
13678 * target/waitstatus.h: Fix common/ includes.
13679 * target/waitstatus.c: Fix common/ includes.
13680 * target.h: Fix common/ includes.
13681 * target.c: Fix common/ includes.
13682 * target-memory.c: Fix common/ includes.
13683 * target-descriptions.c: Fix common/ includes.
13684 * symtab.h: Fix common/ includes.
13685 * symfile.c: Fix common/ includes.
13686 * stap-probe.c: Fix common/ includes.
13687 * spu-linux-nat.c: Fix common/ includes.
13688 * sparc-nat.c: Fix common/ includes.
13689 * source.c: Fix common/ includes.
13690 * solib.c: Fix common/ includes.
13691 * solib-target.c: Fix common/ includes.
13692 * ser-unix.c: Fix common/ includes.
13693 * ser-tcp.c: Fix common/ includes.
13694 * ser-pipe.c: Fix common/ includes.
13695 * ser-base.c: Fix common/ includes.
13696 * selftest-arch.c: Fix common/ includes.
13697 * s12z-tdep.c: Fix common/ includes.
13698 * rust-exp.y: Fix common/ includes.
13699 * rs6000-aix-tdep.c: Fix common/ includes.
13700 * riscv-tdep.c: Fix common/ includes.
13701 * remote.c: Fix common/ includes.
13702 * remote-notif.h: Fix common/ includes.
13703 * remote-fileio.h: Fix common/ includes.
13704 * remote-fileio.c: Fix common/ includes.
13705 * regcache.h: Fix common/ includes.
13706 * regcache.c: Fix common/ includes.
13707 * record-btrace.c: Fix common/ includes.
13708 * python/python.c: Fix common/ includes.
13709 * python/py-type.c: Fix common/ includes.
13710 * python/py-inferior.c: Fix common/ includes.
13711 * progspace.h: Fix common/ includes.
13712 * producer.c: Fix common/ includes.
13713 * procfs.c: Fix common/ includes.
13714 * proc-api.c: Fix common/ includes.
13715 * printcmd.c: Fix common/ includes.
13716 * ppc-linux-nat.c: Fix common/ includes.
13717 * parser-defs.h: Fix common/ includes.
13718 * osdata.c: Fix common/ includes.
13719 * obsd-nat.c: Fix common/ includes.
13720 * nat/x86-linux.c: Fix common/ includes.
13721 * nat/x86-linux-dregs.c: Fix common/ includes.
13722 * nat/x86-dregs.h: Fix common/ includes.
13723 * nat/x86-dregs.c: Fix common/ includes.
13724 * nat/ppc-linux.c: Fix common/ includes.
13725 * nat/mips-linux-watch.h: Fix common/ includes.
13726 * nat/mips-linux-watch.c: Fix common/ includes.
13727 * nat/linux-waitpid.c: Fix common/ includes.
13728 * nat/linux-ptrace.h: Fix common/ includes.
13729 * nat/linux-ptrace.c: Fix common/ includes.
13730 * nat/linux-procfs.c: Fix common/ includes.
13731 * nat/linux-personality.c: Fix common/ includes.
13732 * nat/linux-osdata.c: Fix common/ includes.
13733 * nat/linux-namespaces.c: Fix common/ includes.
13734 * nat/linux-btrace.h: Fix common/ includes.
13735 * nat/linux-btrace.c: Fix common/ includes.
13736 * nat/fork-inferior.c: Fix common/ includes.
13737 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13738 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13739 * nat/aarch64-linux.c: Fix common/ includes.
13740 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13741 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13742 * namespace.h: Fix common/ includes.
13743 * mips-linux-tdep.c: Fix common/ includes.
13744 * minsyms.c: Fix common/ includes.
13745 * mi/mi-parse.h: Fix common/ includes.
13746 * mi/mi-main.c: Fix common/ includes.
13747 * mi/mi-cmd-env.c: Fix common/ includes.
13748 * memrange.h: Fix common/ includes.
13749 * memattr.c: Fix common/ includes.
13750 * maint.h: Fix common/ includes.
13751 * maint.c: Fix common/ includes.
13752 * main.c: Fix common/ includes.
13753 * machoread.c: Fix common/ includes.
13754 * location.c: Fix common/ includes.
13755 * linux-thread-db.c: Fix common/ includes.
13756 * linux-nat.c: Fix common/ includes.
13757 * linux-fork.c: Fix common/ includes.
13758 * inline-frame.c: Fix common/ includes.
13759 * infrun.c: Fix common/ includes.
13760 * inflow.c: Fix common/ includes.
13761 * inferior.h: Fix common/ includes.
13762 * inferior.c: Fix common/ includes.
13763 * infcmd.c: Fix common/ includes.
13764 * inf-ptrace.c: Fix common/ includes.
13765 * inf-child.c: Fix common/ includes.
13766 * ia64-linux-nat.c: Fix common/ includes.
13767 * i387-tdep.c: Fix common/ includes.
13768 * i386-tdep.c: Fix common/ includes.
13769 * i386-linux-tdep.c: Fix common/ includes.
13770 * i386-linux-nat.c: Fix common/ includes.
13771 * i386-go32-tdep.c: Fix common/ includes.
13772 * i386-fbsd-tdep.c: Fix common/ includes.
13773 * i386-fbsd-nat.c: Fix common/ includes.
13774 * guile/scm-type.c: Fix common/ includes.
13775 * guile/guile.c: Fix common/ includes.
13776 * go32-nat.c: Fix common/ includes.
13777 * gnu-nat.c: Fix common/ includes.
13778 * gdbthread.h: Fix common/ includes.
13779 * gdbarch-selftests.c: Fix common/ includes.
13780 * gdb_usleep.c: Fix common/ includes.
13781 * gdb_select.h: Fix common/ includes.
13782 * gdb_bfd.c: Fix common/ includes.
13783 * gcore.c: Fix common/ includes.
13784 * fork-child.c: Fix common/ includes.
13785 * findvar.c: Fix common/ includes.
13786 * fbsd-nat.c: Fix common/ includes.
13787 * event-top.c: Fix common/ includes.
13788 * event-loop.c: Fix common/ includes.
13789 * dwarf2read.c: Fix common/ includes.
13790 * dwarf2loc.c: Fix common/ includes.
13791 * dwarf2-frame.c: Fix common/ includes.
13792 * dwarf-index-cache.c: Fix common/ includes.
13793 * dtrace-probe.c: Fix common/ includes.
13794 * disasm-selftests.c: Fix common/ includes.
13795 * defs.h: Fix common/ includes.
13796 * csky-tdep.c: Fix common/ includes.
13797 * cp-valprint.c: Fix common/ includes.
13798 * cp-support.h: Fix common/ includes.
13799 * cp-support.c: Fix common/ includes.
13800 * corelow.c: Fix common/ includes.
13801 * completer.h: Fix common/ includes.
13802 * completer.c: Fix common/ includes.
13803 * compile/compile.c: Fix common/ includes.
13804 * compile/compile-loc2c.c: Fix common/ includes.
13805 * compile/compile-cplus-types.c: Fix common/ includes.
13806 * compile/compile-cplus-symbols.c: Fix common/ includes.
13807 * command.h: Fix common/ includes.
13808 * cli/cli-dump.c: Fix common/ includes.
13809 * cli/cli-cmds.c: Fix common/ includes.
13810 * charset.c: Fix common/ includes.
13811 * build-id.c: Fix common/ includes.
13812 * btrace.h: Fix common/ includes.
13813 * btrace.c: Fix common/ includes.
13814 * breakpoint.h: Fix common/ includes.
13815 * breakpoint.c: Fix common/ includes.
13816 * ax.h:
13817 (enum agent_op): Fix common/ includes.
13818 * ax-general.c (struct aop_map): Fix common/ includes.
13819 * ax-gdb.c: Fix common/ includes.
13820 * auxv.c: Fix common/ includes.
13821 * auto-load.c: Fix common/ includes.
13822 * arm-tdep.c: Fix common/ includes.
13823 * arch/riscv.c: Fix common/ includes.
13824 * arch/ppc-linux-common.c: Fix common/ includes.
13825 * arch/i386.c: Fix common/ includes.
13826 * arch/arm.c: Fix common/ includes.
13827 * arch/arm-linux.c: Fix common/ includes.
13828 * arch/arm-get-next-pcs.c: Fix common/ includes.
13829 * arch/amd64.c: Fix common/ includes.
13830 * arch/aarch64.c: Fix common/ includes.
13831 * arch/aarch64-insn.c: Fix common/ includes.
13832 * arch-utils.c: Fix common/ includes.
13833 * amd64-windows-tdep.c: Fix common/ includes.
13834 * amd64-tdep.c: Fix common/ includes.
13835 * amd64-sol2-tdep.c: Fix common/ includes.
13836 * amd64-obsd-tdep.c: Fix common/ includes.
13837 * amd64-nbsd-tdep.c: Fix common/ includes.
13838 * amd64-linux-tdep.c: Fix common/ includes.
13839 * amd64-linux-nat.c: Fix common/ includes.
13840 * amd64-fbsd-tdep.c: Fix common/ includes.
13841 * amd64-fbsd-nat.c: Fix common/ includes.
13842 * amd64-dicos-tdep.c: Fix common/ includes.
13843 * amd64-darwin-tdep.c: Fix common/ includes.
13844 * agent.c: Fix common/ includes.
13845 * ada-lang.h: Fix common/ includes.
13846 * ada-lang.c: Fix common/ includes.
13847 * aarch64-tdep.c: Fix common/ includes.
13848
2f5c153e
TT
138492019-01-25 Tom Tromey <tom@tromey.com>
13850
13851 * common/create-version.sh: Use common/version.h.
13852
adc6a863
PA
138532019-01-24 Pedro Alves <palves@redhat.com>
13854
13855 * infrun.c (signal_stop, signal_print, signal_program)
13856 (signal_catch, signal_pass): Now arrays instead of pointers.
13857 (update_signals_program_target, do_target_resume)
13858 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13859 * linux-nat.c (linux_nat_target::pass_signals)
13860 (linux_nat_target::create_inferior, linux_nat_target::attach):
13861 Adjust.
13862 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13863 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13864 * procfs.c (procfs_target::pass_signals): Adjust.
13865 * record-full.c (record_full_target::resume): Adjust.
13866 * remote.c (remote_target::pass_signals)
13867 (remote_target::program_signals): Adjust.
13868 * target-debug.h (target_debug_print_signals): Now takes a
13869 gdb::array_view as parameter. Adjust.
13870 * target.h (target_ops) <pass_signals, program_signals>: Replace
13871 pointer and length parameters with gdb::array_view.
13872 (target_pass_signals, target_program_signals): Likewise.
13873 * target-delegates.c: Regenerate.
13874
3046d67a
PA
138752019-01-24 Pedro Alves <palves@redhat.com>
13876
13877 * common/forward-scope-exit.h
13878 (forward_scope_exit::forward_scope_exit): Pass arguments to
13879 m_bind_function directly, instead of creating a std::bind and
13880 copying that.
13881
353229bf
AH
138822019-01-24 Alan Hayward <alan.hayward@arm.com>
13883
13884 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13885 for static members.
13886 (pass_in_v_vfp_candidate): Likewise.
13887
311dc83a
TT
138882019-01-23 Tom Tromey <tom@tromey.com>
13889 Pedro Alves <palves@redhat.com>
13890
13891 * regcache.c (class regcache_invalidator): Remove.
13892 (regcache::raw_write): Use make_scope_exit.
13893
296bd123
TT
138942019-01-23 Tom Tromey <tom@tromey.com>
13895
13896 * ui-out.h (class ui_out_emit_type): Update comment.
13897
979a0d13
TT
138982019-01-23 Tom Tromey <tom@tromey.com>
13899
13900 * infrun.c (fetch_inferior_event): Update comment.
13901
d238133d
TT
139022019-01-23 Tom Tromey <tom@tromey.com>
13903 Pedro Alves <palves@redhat.com>
13904
13905 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13906 parameter.
13907 (fetch_inferior_event): Use SCOPE_EXIT.
13908
13909
9885e6bb
TT
139102019-01-23 Tom Tromey <tom@tromey.com>
13911 Pedro Alves <palves@redhat.com>
13912
13913 * infrun.c (disable_thread_events): Delete.
13914 (stop_all_threads): Use SCOPE_EXIT.
13915
286526c1
TT
139162019-01-23 Tom Tromey <tom@tromey.com>
13917 Pedro Alves <palves@redhat.com>
13918
13919 * symfile.c: Include forward-scope-exit.h.
13920 (clear_symtab_users_cleanup): Replace forward declaration with
13921 a FORWARD_SCOPE_EXIT.
13922 (syms_from_objfile_1): Use the forward_scope_exit and
13923 gdb::optional instead of cleanup_function.
13924 (reread_symbols): Use the forward_scope_exit instead of
13925 cleanup_function.
13926 (clear_symtab_users_cleanup): Remove function.
13927
1db93f14
TT
139282019-01-23 Tom Tromey <tom@tromey.com>
13929 Pedro Alves <palves@redhat.com>
13930
13931 * linux-nat.c: Include scope-exit.h.
13932 (cleanup_target_stop): Remove.
13933 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13934 SCOPE_EXIT.
13935
2cc83d1e
TT
139362019-01-23 Tom Tromey <tom@tromey.com>
13937 Pedro Alves <palves@redhat.com>
13938
13939 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13940 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13941
694c6bf5
TT
139422019-01-23 Tom Tromey <tom@tromey.com>
13943 Andrew Burgess <andrew.burgess@embecosm.com>
13944 Pedro Alves <palves@redhat.com>
13945
13946 * infrun.c (fetch_inferior_event): Use scope_exit.
13947 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13948 * top.c (execute_command): Use scope_exit.
13949 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13950 * utils.c (do_bpstat_clear_actions_cleanup)
13951 (make_bpstat_clear_actions_cleanup): Remove.
13952
4c41382a
TT
139532019-01-23 Tom Tromey <tom@tromey.com>
13954 Pedro Alves <palves@redhat.com>
13955
13956 * infrun.c: Include "common/scope-exit.h"
13957 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13958 (wait_for_inferior): Use SCOPE_EXIT.
13959 (fetch_inferior_event): Use scope_exit.
13960
89f8fb50
TT
139612019-01-23 Tom Tromey <tom@tromey.com>
13962 Pedro Alves <palves@redhat.com>
13963
13964 * breakpoint.c (create_breakpoint): Remove cleanup.
13965
5419bdae
TT
139662019-01-23 Tom Tromey <tom@tromey.com>
13967 Andrew Burgess <andrew.burgess@embecosm.com>
13968 Pedro Alves <palves@redhat.com>
13969
e587ef42
PA
139702019-01-23 Pedro Alves <palves@redhat.com>
13971
13972 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13973
77f0e74c
PA
139742019-01-23 Pedro Alves <palves@redhat.com>
13975 Andrew Burgess <andrew.burgess@embecosm.com>
13976
13977 * gdbthread.h: Include "common/forward-scope-exit.h".
13978 (scoped_finish_thread_state): Redefine custom class in terms of
13979 forward_scope_exit.
13980
5b9b3e53
PA
139812019-01-23 Pedro Alves <palves@redhat.com>
13982 Andrew Burgess <andrew.burgess@embecosm.com>
13983
13984 * common/forward-scope-exit.h: New file.
13985
54b65c9b
PA
139862019-01-23 Pedro Alves <palves@redhat.com>
13987 Andrew Burgess <andrew.burgess@embecosm.com>
13988 Tom Tromey <tom@tromey.com>
13989
13990 * common/scope-exit.h: New file.
13991
cf08fb29
PA
139922019-01-23 Pedro Alves <palves@redhat.com>
13993
13994 * common/preprocessor.h (ESC): Rename to ...
13995 (ESC_PARENS): ... this.
13996 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13997 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13998
ae73e2e2
TT
139992019-01-23 Tom Tromey <tom@tromey.com>
14000
14001 * language.h (class scoped_switch_to_sym_language_if_auto):
14002 Initialize m_lang in both cases.
14003
6594e122
AH
140042019-01-23 Alan Hayward <alan.hayward@arm.com>
14005
14006 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14007 with XCNEW.
14008
a7c9855d
TT
140092019-01-22 Tom Tromey <tom@tromey.com>
14010
14011 * corelow.c: Do not include sys/file.h.
14012
93cc1d53
TT
140132019-01-22 Tom Tromey <tom@tromey.com>
14014
14015 * tui/tui-wingeneral.h: Include gdb_curses.h.
14016
38561778
TT
140172019-01-22 Tom Tromey <tom@tromey.com>
14018
14019 * source-cache.h (class source_cache) <get_source_lines,
14020 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14021
37b3ab5b
TT
140222019-01-22 Tom Tromey <tom@tromey.com>
14023
14024 * remote-fileio.h (struct remote_target): Declare.
14025
3fabc016
TT
140262019-01-22 Tom Tromey <tom@tromey.com>
14027
14028 * python/py-arch.c: Do not include py-ref.h.
14029 * python/py-bpevent.c: Do not include py-ref.h.
14030 * python/py-cmd.c: Do not include py-ref.h.
14031 * python/py-continueevent.c: Do not include py-ref.h.
14032 * python/py-event.h: Do not include py-ref.h.
14033 * python/py-evtregistry.c: Do not include py-ref.h.
14034 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14035 * python/py-frame.c: Do not include py-ref.h.
14036 * python/py-framefilter.c: Do not include py-ref.h.
14037 * python/py-function.c: Do not include py-ref.h.
14038 * python/py-infevents.c: Do not include py-ref.h.
14039 * python/py-linetable.c: Do not include py-ref.h.
14040 * python/py-objfile.c: Do not include py-ref.h.
14041 * python/py-param.c: Do not include py-ref.h.
14042 * python/py-prettyprint.c: Do not include py-ref.h.
14043 * python/py-progspace.c: Do not include py-ref.h.
14044 * python/py-symbol.c: Do not include py-ref.h.
14045 * python/py-symtab.c: Do not include py-ref.h.
14046 * python/py-type.c: Do not include py-ref.h.
14047 * python/py-unwind.c: Do not include py-ref.h.
14048 * python/py-utils.c: Do not include py-ref.h.
14049 * python/py-value.c: Do not include py-ref.h.
14050 * python/py-varobj.c: Do not include py-ref.h.
14051 * python/py-xmethods.c: Do not include py-ref.h.
14052 * python/python.c: Do not include py-ref.h.
14053 * varobj.c: Do not include py-ref.h.
14054
6b4d7774
TT
140552019-01-22 Tom Tromey <tom@tromey.com>
14056
14057 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14058 keyword for bcache.
14059
7af7e9b5
TT
140602019-01-22 Tom Tromey <tom@tromey.com>
14061
14062 * compile/compile-cplus-types.c: Remove a comment by #include.
14063
951d1049
TT
140642019-01-22 Tom Tromey <tom@tromey.com>
14065
14066 * compile/gcc-c-plugin.h: Include compile-internal.h.
14067
d65d5705
TT
140682019-01-22 Tom Tromey <tom@tromey.com>
14069
14070 * stabsread.c (EXTERN): Do not define.
14071 (symnum, next_symbol_text_func, processing_gcc_compilation)
14072 (within_function, global_sym_chain, global_stabs)
14073 (previous_stab_code, this_object_header_files)
14074 (n_this_object_header_files)
14075 (n_allocated_this_object_header_files): Define.
14076 * stabsread.h (EXTERN): Never define. Use "extern".
14077
b6fb1ee5
PW
140782019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14079
14080 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14081 history_value.
14082
be6d4f74
TT
140832019-01-21 Tom Tromey <tom@tromey.com>
14084
14085 * ui-out.c: Fix includes.
14086 * tui/tui-source.c: Fix includes.
14087 * target.c: Fix includes.
14088 * remote.c: Fix includes.
14089 * regcache.c: Fix includes.
14090 * python/py-block.c: Fix includes.
14091 * printcmd.c: Fix includes.
14092 * or1k-tdep.c: Fix includes.
14093 * mi/mi-main.c: Fix includes.
14094 * m32r-tdep.c: Fix includes.
14095 * csky-tdep.c: Fix includes.
14096 * compile/compile-cplus-types.c: Fix includes.
14097 * cli/cli-interp.c: Fix includes.
14098
73021deb
AH
140992019-01-21 Alan Hayward <alan.hayward@arm.com>
14100
14101 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14102 for padding.
14103
7932255d
TT
141042019-01-16 Tom Tromey <tom@tromey.com>
14105
14106 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14107 earlier.
14108 (struct objfile) <msymbols_range>: Move from top level.
14109 <msymbols>: New method.
14110 (class objfile_msymbols): Remove.
14111 * symtab.c (default_collect_symbol_completion_matches_break_on):
14112 Update.
14113 * symmisc.c (dump_msymbols): Update.
14114 * stabsread.c (scan_file_globals): Update.
14115 * objc-lang.c (info_selectors_command, info_classes_command)
14116 (find_methods): Update.
14117 * minsyms.c (find_solib_trampoline_target): Update.
14118 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14119 * coffread.c (coff_symfile_read): Update.
14120 * ada-lang.c (ada_lookup_simple_minsym)
14121 (ada_collect_symbol_completion_matches): Update.
14122
604b1bfb
TT
141232019-01-16 Tom Tromey <tom@tromey.com>
14124
14125 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14126 type. Remove no-argument constructor.
14127 <iterator::operator++>: Simplify.
14128 <begin>: Update.
14129 <end>: Use minimal_symbol_count.
14130
f252c6d5
TT
141312019-01-16 Tom Tromey <tom@tromey.com>
14132
14133 * objfiles.h (struct objfile) <psymtabs>: New method.
14134 (class objfile_psymtabs): Remove.
14135 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14136 typedef.
14137 <range>: New method.
14138 (require_partial_symbols): Change return type.
14139 * psymtab.c (require_partial_symbols)
14140 (psym_expand_symtabs_matching): Update.
14141 * mdebugread.c (parse_partial_symbols): Update.
14142 * dbxread.c (dbx_end_psymtab): Update.
14143
b669c953
TT
141442019-01-15 Tom Tromey <tom@tromey.com>
14145
14146 * symtab.c (lookup_objfile_from_block)
14147 (lookup_symbol_in_objfile_symtabs)
14148 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14149 (find_line_symtab, info_sources_command)
14150 (default_collect_symbol_completion_matches_break_on)
14151 (make_source_files_completion_list): Update.
14152 * symmisc.c (print_objfile_statistics, dump_objfile)
14153 (maintenance_print_symbols, maintenance_info_symtabs)
14154 (maintenance_check_symtabs, maintenance_info_line_tables):
14155 Update.
14156 * source.c (select_source_symtab)
14157 (forget_cached_source_info_for_objfile): Update.
14158 * objfiles.h (class objfile_compunits): Remove.
14159 (struct objfile) <compunits_range>: New typedef.
14160 (compunits): New method.
14161 * objfiles.c (objfile_relocate1): Update.
14162 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14163 * maint.c (count_symtabs_and_blocks): Update.
14164 * linespec.c (iterate_over_all_matching_symtabs): Update.
14165 * cp-support.c (add_symbol_overload_list_qualified): Update.
14166 * coffread.c (coff_symtab_read): Update.
14167 * ada-lang.c (add_nonlocal_symbols)
14168 (ada_collect_symbol_completion_matches)
14169 (ada_add_global_exceptions): Update.
14170
7e955d83
TT
141712019-01-15 Tom Tromey <tom@tromey.com>
14172
14173 * progspace.h (program_space) <objfiles_safe_range>: New
14174 typedef.
14175 <objfiles_safe>: New method.
14176 * objfiles.h (class all_objfiles_safe): Remove.
14177 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14178 * jit.c (jit_inferior_exit_hook): Update.
14179
2030c079
TT
141802019-01-17 Tom Tromey <tom@tromey.com>
14181
14182 * progspace.h (program_space) <objfiles_range>: New typedef.
14183 <objfiles>: New method.
14184 <objfiles_head>: Rename from objfiles.
14185 (object_files): Update.
14186 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14187 * guile/scm-pretty-print.c
14188 (ppscm_find_pretty_printer_from_objfiles): Update.
14189 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14190 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14191 Update.
14192 * python/py-progspace.c (pspy_get_objfiles): Update.
14193 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14194 Update.
14195 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14196 (objfpy_lookup_objfile_by_build_id): Update.
14197 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14198 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14199 Update.
14200 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14201 (expand_symtab_containing_pc, lookup_objfile_from_block)
14202 (lookup_static_symbol, basic_lookup_transparent_type)
14203 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14204 (find_line_symtab, info_sources_command)
14205 (default_collect_symbol_completion_matches_break_on)
14206 (make_source_files_completion_list, find_main_name): Update.
14207 * symmisc.c (print_symbol_bcache_statistics)
14208 (print_objfile_statistics, maintenance_print_symbols)
14209 (maintenance_print_msymbols, maintenance_print_objfiles)
14210 (maintenance_info_symtabs, maintenance_check_symtabs)
14211 (maintenance_expand_symtabs, maintenance_info_line_tables):
14212 Update.
14213 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14214 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14215 (map_overlay_command, unmap_overlay_command)
14216 (simple_overlay_update, expand_symtabs_matching)
14217 (map_symbol_filenames): Update.
14218 * symfile-debug.c (set_debug_symfile): Update.
14219 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14220 Update.
14221 * source.c (select_source_symtab, forget_cached_source_info):
14222 Update.
14223 * solib.c (solib_read_symbols): Update.
14224 * solib-spu.c (append_ocl_sos): Update.
14225 * psymtab.c (maintenance_print_psymbols)
14226 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14227 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14228 * printcmd.c (info_symbol_command): Update.
14229 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14230 Update.
14231 * objfiles.h (class all_objfiles): Remove.
14232 * objfiles.c (have_partial_symbols, have_full_symbols)
14233 (have_minimal_symbols, qsort_cmp, update_section_map)
14234 (shared_objfile_contains_address_p)
14235 (default_iterate_over_objfiles_in_search_order): Update.
14236 * objc-lang.c (info_selectors_command, info_classes_command)
14237 (find_methods): Update.
14238 * minsyms.c (find_solib_trampoline_target): Update.
14239 * maint.c (maintenance_info_sections)
14240 (maintenance_translate_address, count_symtabs_and_blocks):
14241 Update.
14242 * main.c (captured_main_1): Update.
14243 * linux-thread-db.c (try_thread_db_load_from_pdir)
14244 (has_libpthread): Update.
14245 * linespec.c (iterate_over_all_matching_symtabs)
14246 (search_minsyms_for_name): Update.
14247 * jit.c (jit_find_objf_with_entry_addr): Update.
14248 * hppa-tdep.c (find_unwind_entry)
14249 (hppa_lookup_stub_minimal_symbol): Update.
14250 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14251 Update.
14252 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14253 (elf_gnu_ifunc_resolve_by_got): Update.
14254 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14255 * dwarf-index-write.c (save_gdb_index_command): Update.
14256 * cp-support.c (add_symbol_overload_list_qualified): Update.
14257 * breakpoint.c (create_overlay_event_breakpoint)
14258 (create_longjmp_master_breakpoint)
14259 (create_std_terminate_master_breakpoint)
14260 (create_exception_master_breakpoint): Update.
14261 * blockframe.c (find_pc_partial_function): Update.
14262 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14263 (ada_collect_symbol_completion_matches)
14264 (ada_add_global_exceptions): Update.
14265
776489e0
TT
142662019-01-17 Tom Tromey <tom@tromey.com>
14267
14268 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14269 declare VEC.
14270 (solib_target_parse_libraries): Change return type.
14271 (library_list_start_segment, library_list_start_section)
14272 (library_list_end_library, library_list_start_library); Update.
14273 (solib_target_free_library_list): Remove.
14274 (solib_target_parse_libraries): Remove cleanup. Change return
14275 type.
14276 (solib_target_current_sos): Update.
14277
6471e7d2
TT
142782019-01-17 Tom Tromey <tromey@bapiya>
14279
14280 * valprint.c: Replace "the the" with "the".
14281 * symtab.c: Replace "the the" with "the".
14282 * solib.c: Replace "the the" with "the".
14283 * solib-dsbt.c: Replace "the the" with "the".
14284 * linespec.c: Replace "the the" with "the".
14285 * dwarf2loc.h: Replace "the the" with "the".
14286 * amd64-windows-tdep.c: Replace "the the" with "the".
14287 * aarch64-tdep.c: Replace "the the" with "the".
14288
c24bdb02
KS
142892019-01-16 Keith Seitz <keiths@redhat.com>
14290
14291 PR gdb/23773
14292 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14293 <builder>: Rename to ..
14294 <m_builder>: ... this and make private.
14295 (dwarf2_cu::get_builder): New method. Change all users of
14296 `builder' to use this method.
14297 (dwarf2_start_symtab): Move to ...
14298 (dwarf2_cu::start_symtab): ... here. Update all callers
14299 (setup_type_unit_groups): Move to ...
14300 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14301 callers.
14302 (dwarf2_cu::reset_builder): New method.
14303 (process_full_compunit, process_full_type_unit): Use
14304 dwarf2_cu::reset_builder.
14305 (follow_die_offset): Record the ancestor CU if it is different
14306 from the followed DIE's CU.
14307 (follow_die_sig_1): Likewise.
14308
8d64371b
TT
143092019-01-15 Tom Tromey <tom@tromey.com>
14310
14311 * remote.c (class remote_state) <buf>: Now a char_vector.
14312 <buf_size>: Remove.
14313 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14314 parameter.
14315 (remote_target::getpkt_or_notif_sane_1)
14316 (remote_target::getpkt_sane)
14317 (remote_target::getpkt_or_notif_sane): Likewise.
14318 (class remote_target) <putpkt>: New overload.
14319 (remote_target::read_frame): Change type of "buf_p". Remove
14320 sizeof_p parameter.
14321 (packet_ok): New overload.
14322 (packet_check_result): New overload.
14323 Update all uses.
14324
bb277751
TT
143252019-01-14 Tom Tromey <tom@tromey.com>
14326
14327 * remote-notif.c (handle_notification, remote_notif_ack)
14328 (remote_notif_parse): Make "buf" const.
14329 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14330 const.
14331 (remote_notif_parse, remote_notif_ack, handle_notification):
14332 Likewise.
14333 * remote.c (remote_notif_stop_parse): Make "buf" const.
14334 (remote_target::remote_parse_stop_reply): Make "buf" const.
14335 (remote_notif_stop_ack): Make "buf" const.
14336
05be00a8
TT
143372019-01-14 Tom Tromey <tom@tromey.com>
14338
14339 * remote.c (remote_console_output): Make parameter const.
14340
491adeca
TT
143412019-01-14 Tom Tromey <tom@tromey.com>
14342
14343 * target-debug.h (target_debug_print_signals): Constify.
14344 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14345 * procfs.c (procfs_target::pass_signals): Update.
14346 * linux-nat.c (linux_nat_target::pass_signals): Update.
14347 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14348 * target-delegates.c: Rebuild.
14349 * remote.c (remote_target::program_signals): Update.
14350 (remote_target::pass_signals): Update.
14351 * target.c (target_pass_signals): Constify argument.
14352 (target_program_signals): Likewise.
14353 * target.h (struct target_ops) <pass_signals, program_signals>:
14354 Constify argument.
14355 (target_pass_signals, target_program_signals): Constify argument.
14356
bbd94648
TT
143572019-01-14 Tom Tromey <tom@tromey.com>
14358
14359 PR tui/28819:
14360 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14361
6f072a10
PFC
143622019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14363
14364 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14365 field.
14366 * rs6000-tdep.c: Include reggroups.h.
14367 (IS_V_ALIAS_PSEUDOREG): Define.
14368 (rs6000_register_name): Return names for the "vX" aliases.
14369 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14370 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14371 aliases. Call default_register_reggroup_p for all other
14372 pseudo-registers.
14373 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14374 New functions.
14375 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14376 Handle "vX" aliases.
14377 (v_alias_pseudo_register_collect): New function.
14378 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14379 (rs6000_gdbarch_init): Initialize "vX" aliases as
14380 pseudo-registers. Restore registration of
14381 rs6000_pseudo_register_reggroup_p with
14382 set_tdesc_pseudo_register_reggroup_p.
14383
1a782351
MF
143842019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14385
14386 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14387 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14388 set_gdbarch_num_pseudo_regs.
14389
d73cff18
PW
143902019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14391
14392 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14393 Remove arg prefixname, add do_set and do_show.
14394 Add member functions set_list and show_list.
14395 * cli/cli-style.c (class cli_style_option): Update accordingly.
14396 (style_set_list): Move to file scope.
14397 (style_show_list): Likewise.
14398 (set_style): Call help_list.
14399 (show_style): Call cmd_show_list.
14400 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14401 Update to use the new macro.
14402
60a90376
JB
144032019-10-12 Joel Brobecker <brobecker@adacore.com>
14404
14405 * ada-lang.c (_initialize_ada_language): Expand the help text
14406 for the "catch exception" command.
14407
9d7c67bf
PW
144082019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14409
14410 * symtab.c (matching_obj_sections): Initialize obj,
14411 declare it closer to its usage.
14412
7cf47dc4
TT
144132019-01-10 Tom Tromey <tom@tromey.com>
14414
14415 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14416 (basic_inf_threads_range): Remove.
14417 (inf_threads_range, inf_non_exited_threads_range)
14418 (safe_inf_threads_range): Use next_adapter.
14419
d3cb6808
KS
144202019-01-10 Keith Seitz <keiths@redhat.com>
14421
14422 PR gdb/23712
14423 PR symtab/23010
14424 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14425 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14426
63a20375
KS
144272019-01-10 Keith Seitz <keiths@redhat.com>
14428
14429 PR gdb/23712
14430 PR symtab/23010
14431 * dictionary.c (pending_to_vector): Remove.
14432 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14433 Remove _1 suffix, replacing functions of the same name. Update
14434 all callers.
14435 (dict_create_hashed, dict_create_hashed_expandable)
14436 (dict_create_linear, dict_create_linear_expandable, dict_free)
14437 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14438 Make functions static.
14439
b026f593
KS
144402019-01-10 Keith Seitz <keiths@redhat.com>
14441
14442 PR gdb/23712
14443 PR symtab/23010
14444 * dictionary.h (struct dictionary): Replace declaration with
14445 multidictionary.
14446 (dict_create_hashed, dict_create_hashed_expandable)
14447 (dict_create_linear, dict_create_linear_expandable)
14448 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14449 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14450 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14451 taking multidictionary argument.
14452 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14453 * block.h (struct block) <dict>: Change to multidictionary
14454 and rename `multidict'.
14455 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14456 symmisc.c: Update all dictionary references to multidictionary.
14457
c7748ee9
KS
144582019-01-10 Keith Seitz <keiths@redhat.com>
14459
14460 PR gdb/23712
14461 PR symtab/23010
14462 * dictionary.c: Include unordered_map.
14463 (pending_to_vector): New function.
14464 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14465 Rewrite the non-"_1" functions to take vector instead
14466 of linked list.
14467 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14468 "new" _1 versions of the same name.
14469 (multidictionary): Define.
14470 (std::hash<enum language): New definition.
14471 (collate_pending_symbols_by_language, mdict_create_hashed)
14472 (mdict_create_hashed_expandable, mdict_create_linear)
14473 (mdict_create_linear_expandable, mdict_free)
14474 (find_language_dictionary, create_new_language_dictionary)
14475 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14476 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14477 (mdict_size, mdict_empty): New functions.
14478 * dictionary.h (mdict_iterator): Define.
14479
67aa1f3c
PA
144802019-01-10 Pedro Alves <palves@redhat.com>
14481
14482 * breakpoint.c (read_uploaded_action)
14483 (create_tracepoint_from_upload): Adjust to use
14484 gdb::unique_xmalloc_ptr.
14485 * ctf.c (ctf_write_uploaded_tp):
14486 (SET_ARRAY_FIELD): Use emplace_back.
14487 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14488 * tracefile-tfile.c (tfile_write_uploaded_tp):
14489 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14490 gdb::unique_xmalloc_ptr.
14491 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14492 at_string, cond_string, cmd_strings>: Replace char pointers
14493 with gdb::unique_xmalloc_ptr.
14494
2f667667
PA
144952019-01-10 Pedro Alves <palves@redhat.com>
14496
14497 * solib-target.c (library_list_start_library): Don't xstrdup name.
14498
36cb7237
PA
144992019-01-10 Pedro Alves <palves@redhat.com>
14500
14501 * mdebugread.c (parse_partial_symbols): Use
14502 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14503
da584958
AB
145042019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14505
14506 * linux-fork.c (scoped_switch_fork_info)
14507 <~scoped_switch_fork_info>: Fix incorrect variable name.
14508
1ef8573c
AB
145092019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14510
14511 * linux-fork.c (scoped_switch_fork_info)
14512 <scoped_switch_fork_info>: Make explicit.
14513 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14514
8d7bcccb
TT
145152019-01-10 Tom Tromey <tom@tromey.com>
14516
14517 * objfiles.h (objfile::reset_psymtabs): Update.
14518 * objfiles.c (objfile::objfile): Update.
14519 * psymtab.h (psymtab_storage::obstack): Update.
14520 (psymtab_storage::m_obstack): Use gdb::optional.
14521 (class psymtab_storage): Update comment. Remove objfile
14522 parameter.
14523 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14524
b596a3c7
TT
145252019-01-10 Tom Tromey <tom@tromey.com>
14526
14527 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14528 <free_psymtabs>: Now private.
14529 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14530 (allocate_psymtab): Use new method.
14531
a9342b62
TT
145322019-01-10 Tom Tromey <tom@tromey.com>
14533
14534 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14535 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14536 * mdebugread.c (parse_partial_symbols): Use
14537 allocate_dependencies.
14538 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14539 allocate_dependencies.
14540 (process_psymtab_comp_unit_reader)
14541 (build_type_psymtab_dependencies): Likewise.
14542 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14543
5af70966
TT
145442019-01-10 Tom Tromey <tom@tromey.com>
14545
14546 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14547 PSYMBOL_SET_LANGUAGE.
14548 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14549
5923a04c
TT
145502019-01-10 Tom Tromey <tom@tromey.com>
14551
14552 * psymtab.h (psymtab_storage::obstack): New method.
14553 <m_obstack>: Rename from obstack; now private.
14554 * psymtab.c (psymtab_storage): Update.
14555 * dwarf2read.c (create_addrmap_from_index)
14556 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14557 Update.
14558
6d6a12bf
TT
145592019-01-10 Tom Tromey <tom@tromey.com>
14560
14561 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14562 * objfiles.h (objfile::reset_psymtabs): New method.
14563
d320c2b5
TT
145642019-01-10 Tom Tromey <tom@tromey.com>
14565
14566 * symmisc.c (print_symbol_bcache_statistics): Update.
14567 (print_objfile_statistics): Update.
14568 * symfile.c (reread_symbols): Update.
14569 * psymtab.h (class psymtab_storage): New.
14570 * psymtab.c (psymtab_storage): New constructor.
14571 (~psymtab_storage): New destructor.
14572 (require_partial_symbols): Update.
14573 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14574 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14575 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14576 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14577 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14578 (start_psymtab_common, end_psymtab_common)
14579 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14580 (allocate_psymtab): Update.
14581 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14582 Update.
14583 (dump_psymtab_addrmap, maintenance_print_psymbols)
14584 (maintenance_check_psymtabs): Update.
14585 (class objfile_psymtabs): Move to objfiles.h.
14586 * psympriv.h (discard_psymtab): Now inline.
14587 (psymtab_discarder::psymtab_discarder): Update.
14588 (psymtab_discarder::~psymtab_discarder): Update.
14589 (ALL_OBJFILE_PSYMTABS): Rewrite.
14590 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14591 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14592 Remove fields.
14593 <partial_symtabs>: New field.
14594 (class objfile_psymtabs): Move from psymtab.h. Update.
14595 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14596 psymbol_cache.
14597 (objfile::~objfile): Don't destroy psymbol_cache.
14598 * mdebugread.c (parse_partial_symbols): Update.
14599 * dwarf2read.c (create_addrmap_from_index)
14600 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14601 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14602 (add_partial_subprogram, dwarf2_ranges_read): Update.
14603 * dwarf-index-write.c (write_address_map)
14604 (write_one_signatured_type, recursively_write_psymbols)
14605 (class debug_names, class debug_names, write_psymtabs_to_index):
14606 Update.
14607
1d94a5a3
TT
146082019-01-10 Tom Tromey <tom@tromey.com>
14609
14610 * symtab.h (SYMBOL_SET_NAMES): Update.
14611 (symbol_set_names): Update.
14612 (MSYMBOL_SET_NAMES): Update.
14613 * symtab.c (symbol_set_names): Change argument to be an
14614 objfile_per_bfd_storage.
14615 * psymtab.c (add_psymbol_to_bcache): Update.
14616 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14617
0f14768a
TT
146182019-01-10 Tom Tromey <tom@tromey.com>
14619
14620 * symtab.c (create_demangled_names_hash): Change argument to be an
14621 objfile_per_bfd_storage.
14622 (symbol_set_names): Update.
14623
6eee24ce
TT
146242019-01-10 Tom Tromey <tom@tromey.com>
14625
14626 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14627 init_psymbol_list.
14628 * psymtab.c (init_psymbol_list): Do nothing if already called.
14629 * psympriv.h (init_psymbol_list): Add comment.
14630 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14631 init_psymbol_list.
14632 * dbxread.c (dbx_symfile_read): Unconditionally call
14633 init_psymbol_list.
14634
75aedd27
TT
146352019-01-10 Tom Tromey <tom@tromey.com>
14636
14637 * xcoffread.c (scan_xcoff_symtab): Update.
14638 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14639 "where".
14640 * mdebugread.c (parse_partial_symbols)
14641 (handle_psymbol_enumerators): Update.
14642 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14643 * dbxread.c (read_dbx_symtab): Update.
14644 * psympriv.h (psymbol_placement): New enum.
14645 (add_psymbol_to_list): Update.
14646
939652a5
TT
146472019-01-10 Tom Tromey <tom@tromey.com>
14648
14649 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14650 static_psymbols parameters.
14651 (scan_xcoff_symtab): Update.
14652 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14653 static_psymbols parameters.
14654 * psympriv.h (start_psymtab_common): Update.
14655 * mdebugread.c (parse_partial_symbols): Update.
14656 * dwarf2read.c (create_partial_symtab): Update.
14657 * dbxread.c (read_dbx_symtab): Update.
14658 (start_psymtab): Remove global_psymbols and static_psymbols
14659 parameters.
14660
baa62830
TT
146612019-01-10 Tom Tromey <tom@tromey.com>
14662
14663 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14664 * psymtab.c (allocate_psymtab): Add comment.
14665 * psympriv.h (allocate_psymtab): Add comment.
14666 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14667 initializations.
14668 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14669
0e8f53ba
TT
146702019-01-10 Tom Tromey <tom@tromey.com>
14671
14672 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14673 Don't declare.
14674 * mipsread.c: Include mdebugread.h.
14675 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14676 Declare.
14677 * elfread.c: Include mdebugread.h.
14678
b22a7c6a
TT
146792019-01-09 Tom Tromey <tom@tromey.com>
14680
14681 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14682 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14683 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14684 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14685 (psym_lookup_symbol, psym_find_last_source_symtab)
14686 (psym_forget_cached_source_info, psym_print_stats)
14687 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14688 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14689 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14690 (psym_find_compunit_symtab_by_address)
14691 (maintenance_print_psymbols, maintenance_info_psymtabs)
14692 (maintenance_check_psymtabs): Use ranged for.
14693 * psymtab.h (class objfile_psymtabs): New.
14694 (require_partial_symbols): Return objfile_psymtabs.
14695 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14696
3b9d3ac2
TT
146972019-01-09 Tom Tromey <tom@tromey.com>
14698
14699 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14700 (find_pc_mapped_section, list_overlays_command)
14701 (map_overlay_command, unmap_overlay_command)
14702 (simple_overlay_update): Use all_objfiles.
14703 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14704 * printcmd.c (info_symbol_command): Use all_objfiles.
14705 * objfiles.h (ALL_OBJSECTIONS): Remove.
14706 * maint.c (maintenance_translate_address): Use all_objfiles.
14707 * gcore.c (gcore_create_callback): Use all_objfiles.
14708 (objfile_find_memory_regions): Likewise.
14709
8b31193a
TT
147102019-01-09 Tom Tromey <tom@tromey.com>
14711
14712 * symtab.c (find_line_symtab, info_sources_command)
14713 (make_source_files_completion_list): Use objfile_compunits.
14714 * source.c (select_source_symtab): Use objfile_compunits.
14715 * objfiles.h (struct objfile): Update comment.
14716 (ALL_OBJFILES): Remove.
14717 (ALL_FILETABS): Remove.
14718 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14719 objfile_compunits.
14720
d5da8b3c
TT
147212019-01-09 Tom Tromey <tom@tromey.com>
14722
14723 * symmisc.c (print_objfile_statistics, dump_objfile)
14724 (maintenance_print_symbols): Use compunit_filetabs.
14725 * source.c (forget_cached_source_info_for_objfile): Use
14726 compunit_filetabs.
14727 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14728 (ALL_FILETABS): Use compunit_filetabs.
14729 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14730 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14731
5accd1a0
TT
147322019-01-09 Tom Tromey <tom@tromey.com>
14733
14734 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14735 (compunit_filetabs): New.
14736 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14737 compunit_filetabs.
14738 (info_sources_command, make_source_files_completion_list): Remove
14739 declaration.
14740 * symmisc.c (print_objfile_statistics, dump_objfile)
14741 (maintenance_print_symbols): Remove declaration.
14742 (maintenance_info_symtabs): Use compunit_filetabs.
14743 (maintenance_info_line_tables): Likewise.
14744 * source.c (select_source_symtab): Change local variable name.
14745 (forget_cached_source_info_for_objfile): Remove declaration.
14746 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14747 * objfiles.c (objfile_relocate1): Remove declaration.
14748 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14749 declaration.
14750 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14751 * coffread.c (coff_symtab_read): Remove declaration.
14752 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14753 compunit_filetabs.
14754
d8aeb77f
TT
147552019-01-09 Tom Tromey <tom@tromey.com>
14756
14757 * symtab.c (lookup_objfile_from_block)
14758 (find_pc_sect_compunit_symtab, search_symbols)
14759 (default_collect_symbol_completion_matches_break_on): Use
14760 objfile_compunits.
14761 * objfiles.h (ALL_COMPUNITS): Remove.
14762 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14763 * cp-support.c (add_symbol_overload_list_qualified): Use
14764 objfile_compunits.
14765 * ada-lang.c (ada_collect_symbol_completion_matches)
14766 (ada_add_global_exceptions): Use objfile_compunits.
14767
592553c4
TT
147682019-01-09 Tom Tromey <tom@tromey.com>
14769
14770 * source.c (select_source_symtab)
14771 (forget_cached_source_info_for_objfile): Remove declaration.
14772 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14773 declaration.
14774 * maint.c (count_symtabs_and_blocks): Remove declaration.
14775 * cp-support.c (add_symbol_overload_list_qualified): Remove
14776 declaration.
14777 * coffread.c (coff_symtab_read): Remove declaration.
14778 * symtab.c (lookup_symbol_in_objfile_symtabs)
14779 (basic_lookup_transparent_type_1): Use objfile_compunits.
14780 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14781 (info_sources_command, search_symbols)
14782 (default_collect_symbol_completion_matches_break_on)
14783 (make_source_files_completion_list): Remove declaration.
14784 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14785 (ada_collect_symbol_completion_matches)
14786 (ada_add_global_exceptions): Remove declaration.
14787 * linespec.c (iterate_over_all_matching_symtabs): Use
14788 objfile_compunits.
14789 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14790 (class objfile_compunits): New.
14791 (ALL_COMPUNITS): Use objfile_compunits.
14792 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14793 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14794 objfile_compunits.
14795 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14796
5325b9bf
TT
147972019-01-09 Tom Tromey <tom@tromey.com>
14798
14799 * symtab.c (search_symbols)
14800 (default_collect_symbol_completion_matches_break_on): Use
14801 objfile_msymbols.
14802 * ada-lang.c (ada_lookup_simple_minsym)
14803 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14804 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14805 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14806 objfile_msymbols.
14807 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14808 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14809 * objc-lang.c (find_methods): Use objfile_msymbols.
14810 (info_selectors_command, info_classes_command): Likewise.
14811 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14812 * objfiles.h (class objfile_msymbols): New.
14813 (ALL_OBJFILE_MSYMBOLS): Remove.
14814 (ALL_MSYMBOLS): Remove.
14815
cac85af2
TT
148162019-01-09 Tom Tromey <tom@tromey.com>
14817
14818 * common/next-iterator.h (next_adapter): Add Iterator template
14819 parameter.
14820 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14821 (class all_objfiles_safe): New.
14822 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14823 * objfiles.c (put_objfile_before): Update comment.
14824 (add_separate_debug_objfile): Likewise.
14825 (free_all_objfiles): Use all_objfiles_safe.
14826 (objfile_purge_solibs): Likewise.
14827
aed57c53
TT
148282019-01-09 Tom Tromey <tom@tromey.com>
14829
14830 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14831 (expand_symtab_containing_pc, lookup_static_symbol)
14832 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14833 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14834 all_objfiles.
14835 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14836 * breakpoint.c (create_overlay_event_breakpoint)
14837 (create_longjmp_master_breakpoint)
14838 (create_std_terminate_master_breakpoint)
14839 (create_exception_master_breakpoint): Use all_objfiles.
14840 * linux-thread-db.c (try_thread_db_load_from_pdir)
14841 (has_libpthread): Use all_objfiles.
14842 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14843 * linespec.c (iterate_over_all_matching_symtabs)
14844 (search_minsyms_for_name): Use all_objfiles.
14845 * maint.c (maintenance_info_sections): Use all_objfiles.
14846 * main.c (captured_main_1): Use all_objfiles.
14847 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14848 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14849 * guile/scm-pretty-print.c
14850 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14851 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14852 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14853 (maintenance_print_msymbols): Use all_objfiles.
14854 * source.c (select_source_symtab): Use all_objfiles.
14855 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14856 * symfile.c (remove_symbol_file_command)
14857 (expand_symtabs_matching, map_symbol_filenames): Use
14858 all_objfiles.
14859 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14860 all_objfiles.
14861 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14862 * objc-lang.c (find_methods): Use all_objfiles.
14863 * objfiles.c (have_partial_symbols, have_full_symbols)
14864 (have_minimal_symbols, qsort_cmp)
14865 (default_iterate_over_objfiles_in_search_order): Use
14866 all_objfiles.
14867 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14868 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14869 (maintenance_check_psymtabs): Use all_objfiles.
14870 (ALL_PSYMTABS): Remove.
14871 * compile/compile-object-run.c (do_module_cleanup): Use
14872 all_objfiles.
14873 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14874 * cp-support.c (add_symbol_overload_list_qualified): Use
14875 all_objfiles.
14876 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14877 Use all_objfiles.
14878 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14879 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14880 all_objfiles.
14881 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14882 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14883 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14884 Uses all_objfiles.
14885 * solib.c (solib_read_symbols): Use all_objfiles
14886
99d89cde
TT
148872019-01-09 Tom Tromey <tom@tromey.com>
14888
14889 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14890 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14891 all_objfiles.
14892 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14893 * symmisc.c (print_symbol_bcache_statistics)
14894 (print_objfile_statistics, maintenance_print_objfiles)
14895 (maintenance_info_symtabs, maintenance_check_symtabs)
14896 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14897 all_objfiles.
14898 * source.c (forget_cached_source_info): Use all_objfiles.
14899 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14900 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14901 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14902 * objfiles.c (update_section_map): Use all_objfiles.
14903 (shared_objfile_contains_address_p): Likewise.
14904 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14905 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14906
21708325
TT
149072019-01-09 Tom Tromey <tom@tromey.com>
14908
14909 * common/next-iterator.h: New file.
14910 * objfiles.h (class all_objfiles): New.
14911 (struct objfile_iterator): New.
14912
669e09f6
PW
149132019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14914
14915 * NEWS: Move the description of the changed "frame", "select-frame",
14916 and "info frame" commands to the Changed commands section.
14917
041be526
SM
149182019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14919
14920 * gdbtypes.c (check_stub_method_group): Remove handling of old
14921 mangling schemes.
14922 * linespec.c (find_methods): Likewise.
14923 * stabsread.c (read_member_functions): Likewise.
14924 * valops.c (search_struct_method): Likewise.
14925 (value_struct_elt_for_reference): Likewise.
14926 * NEWS: Mention this change.
14927
0e2a2133
AB
149282019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14929
14930 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14931 print_source_lines.
14932 * source.c (print_source_lines_base): Update line number check.
14933 (print_source_lines): New function.
14934 (source_lines_range::source_lines_range): New function.
14935 * source.h (class source_lines_range): New class.
14936 (print_source_lines): New declaration.
14937
1055a3b4
PW
149382019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14939
14940 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14941
cfeadda5
TT
149422019-01-08 Tom Tromey <tom@tromey.com>
14943 Simon Marchi <simon.marchi@ericsson.com>
14944
14945 PR gdb/24060
14946 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14947 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14948 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14949 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14950 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14951 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14952
583068ca
AB
149532019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14954
14955 * source.c (select_source_symtab): Move header comment to
14956 declaration in source.h.
14957 (forget_cached_source_info_for_objfile): Likewise.
14958 (forget_cached_source_info): Likewise.
14959 (identify_source_line): Likewise.
14960 * source.h (identify_source_line): Move declaration from symtab.h
14961 and add comment from source.c
14962 (print_source_lines): Likewise.
14963 (forget_cached_source_info_for_objfile): Likewise.
14964 (forget_cached_source_info): Likewise.
14965 (select_source_symtab): Likewise.
14966 (enum print_source_lines_flag): Move definition from symtab.h.
14967 * symtab.h (identify_source_line): Move declaration to source.h.
14968 (print_source_lines): Likewise.
14969 (forget_cached_source_info_for_objfile): Likewise.
14970 (forget_cached_source_info): Likewise.
14971 (select_source_symtab): Likewise.
14972 (enum print_source_lines_flag): Move definition to source.h.
14973 * tui/tui-hooks.c: Add 'source.h' include.
14974
ec98a4ad
AB
149752019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14976
14977 * source.c (print_source_lines_base): Handle requests to print
14978 reverse line number sequences, and guard against empty lines
14979 string.
14980
62ea19c1
AB
149812019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14982
14983 * source.c (print_source_lines_base): Fix skip of '\r' if next
14984 character is '\n'.
14985
9d30e1fd
TT
149862019-01-06 Tom Tromey <tom@tromey.com>
14987
14988 * c-exp.y (struct c_parse_state) <macro_original_text,
14989 expansion_obstack>: New member.
14990 (macro_original_text, expansion_obstack): Remove globals.
14991 (scan_macro_expansion, scanning_macro_expansion)
14992 (finished_macro_expansion): Update.
14993 (scan_macro_cleanup): Remove.
14994 (yylex, c_parse): Update.
14995
c65bac38
TT
149962019-01-06 Tom Tromey <tom@tromey.com>
14997
14998 * c-exp.y (struct c_parse_state) <strings>: New member.
14999 (operator_stoken): Update.
15000
02e12e38
TT
150012019-01-06 Tom Tromey <tom@tromey.com>
15002
15003 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15004 (union type_stack_elt) <typelist_val>: Now a pointer to
15005 std::vector.
15006 (type_stack_cleanup): Don't declare.
15007 (push_typelist): Update.
15008 * parse.c (pop_typelist): Return a std::vector.
15009 (push_typelist): Take a std::vector.
15010 (follow_types): Update. Do not free args.
15011 (type_stack_cleanup): Remove.
15012 * c-exp.y (struct c_parse_state): New.
15013 (cpstate): New global.
15014 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15015 (nonempty_typelist): Update.
15016 (func_mod): Create a new vector.
15017 (c_parse): Create a c_parse_state.
15018 (check_parameter_typelist): Do not delete params.
15019 (function_method): Update. Do not delete type_list.
15020
f097f5ad
TT
150212019-01-06 Tom Tromey <tom@tromey.com>
15022
15023 PR gdb/28155:
15024 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15025 check_typedef.
15026 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15027 (print_return_value): Likewise.
15028
d2adf9f1
TT
150292019-01-05 Tom Tromey <tom@tromey.com>
15030
15031 * contrib/cleanup_check.py: Remove.
15032 * contrib/gcc-with-excheck: Remove.
15033 * contrib/exsummary.py: Remove.
15034 * contrib/excheck.py: Remove.
15035
2eab46b1
JB
150362019-01-05 Joel Brobecker <brobecker@adacore.com>
15037
15038 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15039 NULL. Initialize tpprev to NULL instead of assigning it
15040 to NULL on the next statement.
15041 * windows-nat.c (windows_delete_thread): Remove check for
15042 main_thread_id before printing thread exit notifications.
15043 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15044 Remove thread ID check against main_thread_id.
15045 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15046 windows_delete_thread.
15047 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15048
48c5e7e2
TT
150492019-01-04 Tom Tromey <tom@tromey.com>
15050
15051 * compile/compile.c (_initialize_compile): Use upper case for
15052 metasyntactic variables.
15053 * symmisc.c (_initialize_symmisc): Use upper case for
15054 metasyntactic variables.
15055 * psymtab.c (_initialize_psymtab): Use upper case for
15056 metasyntactic variables.
15057 * demangle.c (demangle_command): Use upper case for metasyntactic
15058 variables.
15059 (_initialize_demangler): Likewise.
15060 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15061 variables.
15062
986041cd
TT
150632019-01-03 Tom Tromey <tom@tromey.com>
15064
15065 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15066
7c711119
TT
150672019-01-03 Tom Tromey <tom@tromey.com>
15068
15069 * python/py-symtab.c (salpy_str): Update.
15070 (struct salpy_sal_object) <symtab>: Now a PyObject.
15071 (salpy_dealloc): Update.
15072 (del_objfile_sal): Use gdbpy_ref.
15073
1b20edf0
TT
150742019-01-03 Tom Tromey <tom@tromey.com>
15075
15076 * python/py-type.c (convert_field): Use new_reference. Return
15077 gdbpy_ref.
15078 (make_fielditem): Return gdbpy_ref.
15079 (typy_fields): Update.
15080 (typy_getitem): Update.
15081 (field_name): Return gdbpy_ref. Use new_reference.
15082 (typy_iterator_iternext): Update.
15083
ea41325b
TT
150842019-01-03 Tom Tromey <tom@tromey.com>
15085
15086 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15087
2a3c71d6
TT
150882019-01-03 Tom Tromey <tom@tromey.com>
15089
15090 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15091 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15092 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15093 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15094 (pspy_set_type_printers): Likewise.
15095 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15096 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15097 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15098 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15099 (objfpy_set_type_printers): Likewise.
15100
5c329e6a
TT
151012019-01-03 Tom Tromey <tom@tromey.com>
15102
15103 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15104 (gdbpy_print_stack): Use gdbpy_err_fetch.
15105 * python/python-internal.h (class gdbpy_err_fetch): New class.
15106 (class gdbpy_enter) <m_error_type, m_error_value,
15107 m_error_traceback>: Remove.
15108 <m_error>: New member.
15109 (gdbpy_exception_to_string): Don't declare.
15110 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15111 * python/py-value.c (convert_value_from_python): Use
15112 gdbpy_err_fetch.
15113 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15114 gdbpy_exception_to_string.
15115 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15116 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15117 gdbpy_err_fetch.
15118
169bb27b
AB
151192019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15120
15121 * linux-nat.c (delete_lwp_cleanup): Delete.
15122 (struct lwp_deleter): New struct.
15123 (lwp_info_up): New typedef.
15124 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15125 lwp_info_up.
15126
a07c8880
AB
151272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15128
15129 * linux-fork.c (class scoped_switch_fork_info): New class.
15130 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15131
26089c49
AB
151322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15133
15134 * valops.c (find_overload_match): Remove use of null_cleanup, and
15135 calls to do_cleanups.
15136
06d3e5b0
AB
151372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15138
15139 * compile/compile-cplus-types.c
15140 (compile_cplus_instance::decl_name): Handle changes to
15141 cp_func_name.
15142 * cp-support.c (cp_func_name): Update header comment, update
15143 return type.
15144 * cp-support.h (cp_func_name): Update return type in declaration.
15145 * valops.c (find_overload_match): Move temp_func local to top
15146 level of function and change its type. Use temp_func to hold and
15147 delete temporary string obtained from cp_func_name.
15148
66644cd3
AB
151492019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15150
15151 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15152 gdb::char_vector, remove cleanup, and update uses of `msg`.
15153
592d8c0a
JW
151542019-01-03 Jim Wilson <jimw@sifive.com>
15155
15156 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15157
c55d06ec
TT
151582019-01-02 Tom Tromey <tom@tromey.com>
15159
15160 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15161 (tdesc_parse_xml): Remove cleanups.
15162 * target-descriptions.h (make_cleanup_free_target_description):
15163 Don't declare.
15164 (target_desc_deleter): New struct.
15165 (target_desc_up): New typedef.
15166 * target-descriptions.c (target_desc_deleter::operator()): Rename
15167 from free_target_description.
15168 (make_cleanup_free_target_description): Remove.
15169
3a6ae42d
TT
151702019-01-02 Tom Tromey <tom@tromey.com>
15171
15172 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15173 constructor, destructor.
15174 (linespec_parser): Remove typedef.
15175 (~linespec_parser): Rename from linespec_parser_delete.
15176 (linespec_lex_to_end, linespec_complete_label)
15177 (linespec_complete): Update.
15178 (decode_line_full): Remove cleanups.
15179 (decode_line_1): Update.
15180
61fd3e73
TT
151812019-01-02 Tom Tromey <tom@tromey.com>
15182
15183 * python/python-internal.h (inferior_to_inferior_object): Change
15184 return type.
15185 * python/py-exitedevent.c (create_exited_event_object): Update.
15186 * python/py-inferior.c (inferior_to_inferior_object): Return
15187 gdbpy_ref.
15188 (python_new_inferior, python_inferior_deleted)
15189 (thread_to_thread_object, delete_thread_object)
15190 (build_inferior_list, gdbpy_selected_inferior): Update.
15191 * python/py-infthread.c (create_thread_object): Update. Also fail
15192 if inferior_to_inferior_object fails.
15193
d20172fc
SM
151942019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15195
15196 * inferior.h (class inferior) <displaced_step_state>: New field.
15197 * infrun.h (struct displaced_step_state): Move here from
15198 infrun.c. Initialize fields, add constructor.
15199 <inf>: Remove field.
15200 <reset>: New method.
15201 * infrun.c (struct displaced_step_inferior_state): Move to
15202 infrun.h.
15203 (displaced_step_inferior_states): Remove.
15204 (get_displaced_stepping_state): Adust.
15205 (displaced_step_in_progress_any_inferior): Adjust.
15206 (displaced_step_in_progress_thread): Adjust.
15207 (displaced_step_in_progress): Adjust.
15208 (add_displaced_stepping_state): Remove.
15209 (get_displaced_step_closure_by_addr): Adjust.
15210 (remove_displaced_stepping_state): Remove.
15211 (infrun_inferior_exit): Call displaced_step_state.reset.
15212 (use_displaced_stepping): Don't check for NULL.
15213 (displaced_step_prepare_throw): Call
15214 get_displaced_stepping_state.
15215 (displaced_step_fixup): Don't check for NULL.
15216 (prepare_for_detach): Don't check for NULL.
15217
e3319240
PW
152182019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15219
15220 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15221 in case of call that did not complete.
15222
5d36dfb9
AU
152232019-01-02 Andrey Utkin <autkin@undo.io>
15224
15225 * symfile.c (find_separate_debug_file): Fix search of debug files for
15226 remote debuggee.
15227
8833fbf0
TT
152282019-01-02 Tom Tromey <tom@tromey.com>
15229
15230 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15231 indentation.
15232 * python/py-frame.c (frapy_older): Remove cast.
15233 (frapy_newer): Likewise.
15234 * python/py-breakpoint.c (local_setattro): Remove cast.
15235 * python/py-arch.c (archpy_name): Remove local variable.
15236 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15237
4ada3dfd
JB
152382019-01-02 Joel Brobecker <brobecker@adacore.com>
15239
15240 * unittests/basic_string_view/element_access/char/empty.cc:
15241 Fix year range in copyright header.
15242
113b7b81
AB
152432019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15244
15245 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15246 Delete.
15247 <operator==>: Update with for removed field.
15248 <hash>: Likewise.
15249 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15250 <isa_features>: ...this.
15251 <abi_features>: New field.
15252 (riscv_isa_flen): Update comment.
15253 (riscv_abi_xlen): New declaration.
15254 (riscv_abi_flen): New declaration.
15255 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15256 isa_features.
15257 (riscv_abi_xlen): New function.
15258 (riscv_isa_flen): Update to get answer from isa_features.
15259 (riscv_abi_flen): New function.
15260 (riscv_has_fp_abi): Update to get answer from abi_features.
15261 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15262 xlen and flen.
15263 (riscv_call_info) <xlen, flen>: Update comment.
15264 (riscv_call_arg_struct): Remove invalid assertions
15265 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15266 is removed.
15267 (riscv_gdbarch_init): Gather isa features and abi features
15268 separately, ensure both match on the gdbarch when reusing an old
15269 gdbarch. Relax an error check to allow 32-bit abi float to run on
15270 a target with 64-bit float hardware.
15271
b18ca514
PW
152722019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15273
15274 * source.c (search_command_helper): Stop reverse search
15275 when line 1 has been searched.
15276
ec70d8db
PW
152772019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15278
15279 * record-full.c (record_full_base_target::close): Rewrite
15280 record_full_core_buf_list free logic.
15281
5b38f9c1
PW
152822019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15283
15284 * break-catch-syscall.c (print_one_catch_syscall): xfree
15285 the last text.
15286
66d91b39
JB
152872019-01-01 Joel Brobecker <brobecker@adacore.com>
15288
15289 * top.c (print_gdb_version): Update Copyright year in version
15290 message.
15291
42a4f53d
JB
152922019-01-01 Joel Brobecker <brobecker@adacore.com>
15293
15294 Update copyright year range in all GDB files.
15295
7e955d83 152962019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15297
5bbd631d 15298 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15299
5bbd631d 15300For older changes see ChangeLog-2018.
c906108c
SS
15301\f
15302Local Variables:
15303mode: change-log
15304left-margin: 8
15305fill-column: 74
15306version-control: never
57da7796 15307coding: utf-8
c906108c 15308End:
5bbd631d 15309
This page took 3.072729 seconds and 4 git commands to generate.