Adjust byte order variable display/change if DW_AT_endianity is present.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2
3 Byte reverse display of variables with DW_END_big, DW_END_little
4 (DW_AT_endianity) dwarf attributes if different than the native
5 byte order.
6 * ada-lang.c (ada_value_binop):
7 Use type_byte_order instead of gdbarch_byte_order.
8 * ada-valprint.c (printstr):
9 (ada_val_print_string):
10 * ada-lang.c (value_pointer):
11 (ada_value_binop):
12 Use type_byte_order instead of gdbarch_byte_order.
13 * c-lang.c (c_get_string):
14 Use type_byte_order instead of gdbarch_byte_order.
15 * c-valprint.c (c_val_print_array):
16 Use type_byte_order instead of gdbarch_byte_order.
17 * cp-valprint.c (cp_print_class_member):
18 Use type_byte_order instead of gdbarch_byte_order.
19 * dwarf2loc.c (rw_pieced_value):
20 Use type_byte_order instead of gdbarch_byte_order.
21 * dwarf2read.c (read_base_type): Handle DW_END_big,
22 DW_END_little
23 * f-lang.c (f_get_encoding):
24 Use type_byte_order instead of gdbarch_byte_order.
25 * findvar.c (default_read_var_value):
26 Use type_byte_order instead of gdbarch_byte_order.
27 * gdbtypes.c (check_types_equal):
28 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
29 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
30 and TYPE_ENDIANITY_LITTLE if set.
31 (type_byte_order): new function.
32 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
33 (struct main_type) <flag_endianity_not_default>:
34 New field.
35 (type_byte_order): New function.
36 * infcmd.c (default_print_one_register_info):
37 Use type_byte_order instead of gdbarch_byte_order.
38 * p-lang.c (pascal_printstr):
39 Use type_byte_order instead of gdbarch_byte_order.
40 * p-valprint.c (pascal_val_print):
41 Use type_byte_order instead of gdbarch_byte_order.
42 * printcmd.c (print_scalar_formatted):
43 Use type_byte_order instead of gdbarch_byte_order.
44 * solib-darwin.c (darwin_current_sos):
45 Use type_byte_order instead of gdbarch_byte_order.
46 * solib-svr4.c (solib_svr4_r_ldsomap):
47 Use type_byte_order instead of gdbarch_byte_order.
48 * stap-probe.c (stap_modify_semaphore):
49 Use type_byte_order instead of gdbarch_byte_order.
50 * target-float.c (target_float_same_format_p):
51 Use type_byte_order instead of gdbarch_byte_order.
52 * valarith.c (scalar_binop):
53 (value_bit_index):
54 Use type_byte_order instead of gdbarch_byte_order.
55 * valops.c (value_cast):
56 Use type_byte_order instead of gdbarch_byte_order.
57 * valprint.c (generic_emit_char):
58 (generic_printstr):
59 (val_print_string):
60 Use type_byte_order instead of gdbarch_byte_order.
61 * value.c (unpack_long):
62 (unpack_bits_as_long):
63 (unpack_value_bitfield):
64 (modify_field):
65 (pack_long):
66 (pack_unsigned_long):
67 Use type_byte_order instead of gdbarch_byte_order.
68 * findvar.c (unsigned_pointer_to_address):
69 (signed_pointer_to_address):
70 (unsigned_address_to_pointer):
71 (address_to_signed_pointer):
72 (default_read_var_value):
73 (default_value_from_register):
74 Use type_byte_order instead of gdbarch_byte_order.
75 * gnu-v3-abi.c (gnuv3_make_method_ptr):
76 Use type_byte_order instead of gdbarch_byte_order.
77 * riscv-tdep.c (riscv_print_one_register_info):
78 Use type_byte_order instead of gdbarch_byte_order.
79
80 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
81
82 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
83 (current_ui_gdb_stdin_ptr): Likewise.
84 (current_ui_gdb_stderr_ptr): Likewise.
85 (current_ui_gdb_stdlog_ptr): Likewise.
86 (current_ui_current_uiout_ptr): Likewise.
87 (gen_ret_current_ui_field_ptr): Remove.
88
89 2019-11-21 Tom de Vries <tdevries@suse.de>
90
91 PR gdb/24956
92 * cli/cli-script.c (execute_control_command): Only switch to
93 INTERP_CONSOLE's ui_out when INTERP_MI is active.
94
95 2019-11-19 Tom Tromey <tom@tromey.com>
96
97 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
98 Now static. Change type of "name".
99 (tui_set_win_height_command): Don't copy "arg".
100 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
101 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
102
103 2019-11-19 Ali Tamur <tamur@google.com>
104
105 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
106 "if (attr != nullptr)".
107 (dwarf2_find_base_address): Likewise.
108 (dwarf2_build_include_psymtabs): Likewise.
109 (read_cutu_die_from_dwo): Likewise.
110 (read_func_scope): Likewise.
111 (read_call_site_scope): Likewise.
112 (dwarf2_get_pc_bounds): Likewise.
113 (dwarf2_record_block_ranges): Likewise.
114 (dwarf2_add_field): Likewise.
115 (dwarf2_add_member_fn): Likewise.
116 (read_structure_type): Likewise.
117 (read_enumeration_type): Likewise.
118 (read_array_type): Likewise.
119 (read_array_order): Likewise.
120 (read_set_type): Likewise.
121 (read_common_block): Likewise.
122 (read_tag_reference_type): Likewise.
123 (read_tag_string_type): Likewise.
124 (read_subroutine_type): Likewise.
125 (read_base_type): Likewise.
126 (read_subrange_type): Likewise.
127 (new_symbol): Likewise.
128 (prepare_one_comp_unit): Likewise.
129
130 2019-11-19 Tom Tromey <tromey@adacore.com>
131
132 * windows-nat.c (windows_nat_target::attach): Include GetLastError
133 result in error when DebugActiveProcess fails.
134
135 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
136 Pedro Alves <palves@redhat.com>
137
138 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
139 * target.c (target_stack::push): Call 'unpush' if there's a
140 target on top of the stack.
141
142 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
143
144 * python/py-block.c (blpy_dealloc): Call tp_free.
145 (blpy_block_syms_dealloc): Likewise.
146 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
147 * python/py-inferior.c (infpy_dealloc): Likewise.
148 * python/py-lazy-string.c (stpy_dealloc): Likewise.
149 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
150 * python/py-symbol.c (sympy_dealloc): Likewise.
151 * python/py-symtab.c (stpy_dealloc): Likewise.
152 * python/py-type.c (typy_iterator_dealloc): Likewise.
153
154 2019-11-18 Christian Biesinger <cbiesinger@google.com>
155
156 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
157 constructor instead of using a class initializer.
158
159 2019-11-15 Christian Biesinger <cbiesinger@google.com>
160
161 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
162 * configure: Regenerate.
163 * configure.ac: Don't source common.host.
164 * gdbsupport/common.host: Remove.
165 * gdbsupport/mingw-strerror.c: Remove.
166 * gdbsupport/posix-strerror.c: Rename to...
167 * gdbsupport/safe-strerror.c: ...this.
168
169 2019-11-15 Christian Biesinger <cbiesinger@google.com>
170
171 * maint.c (scoped_command_stats::print_time): Use localtime_r
172 instead of localtime (provided through gnulib if necessary).
173 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
174 of ctime.
175
176 2019-11-15 Christian Biesinger <cbiesinger@google.com>
177
178 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
179 avoid compile errors.
180
181 2019-11-15 Christian Biesinger <cbiesinger@google.com>
182
183 * config.in: Regenerate.
184 * configure: Regenerate.
185 * gdbsupport/common.m4: No longer check for strerror_r.
186 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
187 POSIX version of strerror_r, now that gnulib provides it if
188 necessary.
189
190 2019-11-14 Christian Biesinger <cbiesinger@google.com>
191
192 * README (`configure' options): Update.
193
194 2019-11-14 Tom Tromey <tromey@adacore.com>
195
196 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
197 expected type for the RHS if the LHS is a convenience variable.
198
199 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
202 Provide explicit default and copy constructor.
203
204 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
205
206 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
207 only call Py_INCREF (newbp) in the bppy_pending_object case.
208
209 2019-11-13 Tom Tromey <tromey@adacore.com>
210
211 PR build/25182:
212 * psympriv.h (partial_symbol): Remove static assert.
213 * symtab.h (general_symbol_info, symbol): Remove static assert.
214
215 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * gdbsupport/format.c (format_pieces::format_pieces): Support
218 printf 'z' size modifier.
219 * gdbsupport/format.h (enum argclass): Add size_t_arg.
220 * printcmd.c (ui_printf): Handle size_t_arg.
221 * ui-out.c (ui_out::vmessage): Likewise.
222 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
223 function.
224 (run_tests): Call test_format_int_sizes.
225
226 2019-11-12 Christian Biesinger <cbiesinger@google.com>
227
228 * ada-exp.y (write_ambiguous_var): Update.
229 * buildsym.c (add_symbol_to_list): Update.
230 * dwarf2read.c (read_variable): Update.
231 (new_symbol): Update.
232 * jit.c (finalize_symtab): Update.
233 * language.c (language_alloc_type_symbol): Update.
234 * symtab.c (fixup_symbol_section): Update.
235 (initialize_objfile_symbol_1): Move code to...
236 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
237 (allocate_symbol): Update.
238 (allocate_template_symbol): Update.
239 (get_symbol_address): Update.
240 * symtab.h (struct symbol): Inherit from general_symbol_info instead
241 of having as a field, and add a constructor.
242 (SYMBOL_VALUE): Update.
243 (SYMBOL_VALUE_ADDRESS): Update.
244 (SET_SYMBOL_VALUE_ADDRESS): Update.
245 (SYMBOL_VALUE_BYTES): Update.
246 (SYMBOL_VALUE_COMMON_BLOCK): Update.
247 (SYMBOL_BLOCK_VALUE): Update.
248 (SYMBOL_VALUE_CHAIN): Update.
249 (SYMBOL_LANGUAGE): Update.
250 (SYMBOL_SECTION): Update.
251 (SYMBOL_OBJ_SECTION): Update.
252 (SYMBOL_SET_LANGUAGE): Update.
253 (SYMBOL_SET_LINKAGE_NAME): Update.
254 (SYMBOL_SET_NAMES): Update.
255 (SYMBOL_NATURAL_NAME): Update.
256 (SYMBOL_LINKAGE_NAME): Update.
257 (SYMBOL_DEMANGLED_NAME): Update.
258 (SYMBOL_SEARCH_NAME): Update.
259 (SYMBOL_MATCHES_SEARCH_NAME): Update.
260 (struct symbol): Update.
261 (struct template_symbol): Update.
262 (struct rust_vtable_symbol): Update.
263 * xcoffread.c (SYMBOL_DUP): Update.
264
265 2019-11-12 Tom Tromey <tom@tromey.com>
266
267 * tui/tui-layout.c (show_layout): Set current_layout.
268 (show_source_disasm_command, show_data)
269 (show_source_or_disasm_and_command): Don't set current_layout.
270
271 2019-11-12 Tom Tromey <tom@tromey.com>
272
273 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
274
275 2019-11-12 Tom Tromey <tom@tromey.com>
276
277 * tui/tui-win.c (resize_message): New global.
278 (show_tui_resize_message): New function.
279 (tui_async_resize_screen): Print message if requested.
280 (_initialize_tui_win): Add tui-resize-message setting.
281 * NEWS: Add entry for new commands.
282
283 2019-11-11 Tom Tromey <tom@tromey.com>
284
285 * tui/tui.c (tui_initialize_readline): Add new bindable readline
286 functions.
287
288 2019-11-11 Christian Biesinger <cbiesinger@google.com>
289
290 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
291
292 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
295 function.
296 * python/python-internal.h (gdbpy_lookup_static_symbols):
297 Declare new function.
298 * python/python.c (python_GdbMethods): Add
299 gdb.lookup_static_symbols method.
300 * NEWS: Mention gdb.lookup_static_symbols.
301
302 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
305 static block of current object file first. Also fix typo in
306 header comment.
307
308 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * stack.c (set_last_displayed_sal): Delete.
311 (last_displayed_sal_valid): Delete.
312 (last_displayed_pspace): Delete.
313 (last_displayed_addr): Delete.
314 (last_displayed_symtab): Delete.
315 (last_displayed_line): Delete.
316 (class last_displayed_symtab_info_type): New.
317 (last_displayed_symtab_info): New static global variable.
318 (print_frame_info): Call methods on last_displayed_symtab_info.
319 (clear_last_displayed_sal): Update header comment, and make use of
320 last_displayed_symtab_info.
321 (last_displayed_sal_is_valid): Likewise.
322 (get_last_displayed_pspace): Likewise.
323 (get_last_displayed_addr): Likewise.
324 (get_last_displayed_symtab): Likewise.
325 (get_last_displayed_line): Likewise.
326 (get_last_displayed_sal): Likewise.
327 * stack.h (clear_last_displayed_sal): Update header comment.
328 (last_displayed_sal_is_valid): Likewise.
329 (get_last_displayed_pspace): Likewise.
330 (get_last_displayed_addr): Likewise.
331 (get_last_displayed_symtab): Likewise.
332 (get_last_displayed_line): Likewise.
333 (get_last_displayed_sal): Likewise.
334
335 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * stack.c (frame_show_address): Convert return type to bool.
338 * stack.h (frame_show_address): Likewise, and update header
339 comment.
340
341 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
344 * unittests/vec-utils-selftests.c: New file.
345 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
346
347 2019-11-10 Tom Tromey <tom@tromey.com>
348
349 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
350 (tui_highlight_win): Likewise.
351 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
352 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
353 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
354 Don't set can_highlight.
355
356 2019-11-10 Tom Tromey <tom@tromey.com>
357
358 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
359 Remove unused declaration.
360
361 2019-11-08 Tom Tromey <tromey@adacore.com>
362
363 * top.c (read_command_file): Update.
364 (command_line_input): Make return type const.
365 * python/py-gdb-readline.c: Update.
366 * linespec.c (decode_line_2): Update.
367 * defs.h (command_line_input): Make return type const.
368 * cli/cli-script.c (read_next_line): Make return type const.
369 * ada-lang.c (get_selections): Update.
370
371 2019-11-06 Christian Biesinger <cbiesinger@google.com>
372
373 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
374 * mi/mi-main.c (output_cores): Likewise.
375 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
376 (linux_xfer_osdata_modules): Likewise.
377 * remote.c (register_remote_support_xml): Likewise.
378 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
379 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
380
381 2019-11-06 Tom Tromey <tom@tromey.com>
382
383 * tui/tui-interp.c: Don't include readline.h.
384 * tui/tui-hooks.c: Don't include readline.h.
385 * symmisc.c: Include tilde.h, not readline.h.
386 * symfile.c: Include tilde.h, not readline.h.
387 * source.c: Include tilde.h, not readline.h.
388 * solib.c: Include tilde.h, not readline.h.
389 * psymtab.c: Include tilde.h, not readline.h.
390 * exec.c: Include tilde.h, not readline.h.
391 * corelow.c: Include tilde.h, not readline.h.
392 * cli/cli-dump.c: Include tilde.h, not readline.h.
393 * cli/cli-cmds.c: Don't include readline.h.
394
395 2019-11-05 Tom Tromey <tom@tromey.com>
396
397 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
398 (tui_disassemble): Set addr_size.
399 (tui_disasm_window::set_contents): Use addr_size.
400
401 2019-11-05 Tom Tromey <tom@tromey.com>
402
403 * rust-lang.c (rust_language_defn): Update.
404 * python/py-value.c (valpy_string): Call c_get_string.
405 * p-lang.c (pascal_language_defn): Update.
406 * opencl-lang.c (opencl_language_defn): Update.
407 * objc-lang.c (objc_language_defn): Update.
408 * m2-lang.c (m2_language_defn): Update.
409 * language.c (unknown_language_defn, auto_language_defn): Update.
410 (default_get_string): Remove.
411 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
412 * go-lang.c (go_language_defn): Update.
413 * f-lang.c (f_language_defn): Update.
414 * d-lang.c (d_language_defn): Update.
415 * c-lang.c (c_language_defn, cplus_language_defn)
416 (asm_language_defn, minimal_language_defn): Update.
417 * ada-lang.c (ada_language_defn): Update.
418 * language.h (struct language_defn) <la_get_string>: Remove.
419 (LA_GET_STRING): Remove.
420 (default_get_string): Don't declare.
421
422 2019-11-05 Tom Tromey <tom@tromey.com>
423
424 * tui/tui-source.h (struct tui_source_window): Inline
425 constructor. Remove destructor.
426 <style_changed, m_observable>: Move to superclass.
427 * tui/tui-winsource.h (tui_copy_source_line): Declare.
428 (struct tui_source_window_base): Move private members to end.
429 <style_changed, m_observable>: Move from tui_source_window.
430 * tui/tui-winsource.c (tui_copy_source_line): Move from
431 tui-source.c. Rename from copy_source_line. Add special handling
432 for negative line number.
433 (tui_source_window_base::style_changed): Move from
434 tui_source_window.
435 (tui_source_window_base): Register observer.
436 (~tui_source_window_base): New.
437 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
438 rename.
439 (tui_source_window::set_contents): Use tui_copy_source_line.
440 (tui_source_window::tui_source_window): Move to tui-source.h.
441 (tui_source_window::~tui_source_window): Remove.
442 (tui_source_window::style_changed): Move to superclass.
443 * tui/tui-disasm.c (tui_disassemble): Create string file with
444 styling, when possible. Add "addr_size" parameter.
445 (tui_disasm_window::set_contents): Use tui_copy_source_line.
446 Don't compute maximum size.
447 (len_without_escapes): New function
448
449 2019-11-05 Tom Tromey <tom@tromey.com>
450
451 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
452 std::string.
453 * tui/tui-winsource.c (tui_show_source_line): Update.
454 * tui/tui-source.c (tui_source_window::set_contents): Update.
455 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
456
457 2019-11-05 Christian Biesinger <cbiesinger@google.com>
458
459 * symtab.h (gdb_static_assert): Put && operator at the beginning
460 of the line instead of the end.
461
462 2019-11-04 Christian Biesinger <cbiesinger@google.com>
463
464 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
465 and sizeof (symbol).
466 * symtab.h: Add a static_assert for sizeof (partial_symbol).
467
468 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
469
470 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
471 * configure.host: Mark *-*-solaris2.10* obsolete.
472 * configure.tgt: Mark Solaris < 11 obsolete.
473 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
474 Update target triplet.
475
476 2019-11-01 Tom Tromey <tromey@adacore.com>
477
478 * utils.c (print_sys_errmsg): Simplify.
479
480 2019-11-01 Tom Tromey <tromey@adacore.com>
481
482 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
483
484 2019-11-01 Christian Biesinger <cbiesinger@google.com>
485
486 * configure: Regenerate.
487 * configure.ac: Remove check for strerror_r.
488 * gdbsupport/common.m4: Check for strerror_r.
489
490 2019-11-01 Luis Machado <luis.machado@linaro.org>
491
492 PR gdb/25124
493
494 * arm-tdep.c (arm_per_objfile): Rename to ...
495 (arm_per_bfd): ... this.
496 (arm_objfile_data_key): Rename to ...
497 (arm_bfd_data_key): ... this.
498 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
499 data.
500 (arm_record_special_symbol): Likewise.
501
502 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
505 end.
506 * c-typeprint.c (c_print_typedef): Likewise.
507 * f-typeprint.c (f_print_typedef): Likewise.
508 * m2-typeprint.c (m2_print_typedef): Likewise.
509 * p-typeprint.c (pascal_print_typedef): Likewise.
510 * rust-lang.c (rust_print_typedef): Likewise.
511 * symtab.c (print_symbol_info): Print a newline after calling
512 typedef_print.
513
514 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * symtab.c (info_module_cmdlist): New variable.
517 (info_module_command): New function.
518 (search_module_symbols): New function.
519 (info_module_subcommand): New function.
520 (struct info_modules_var_func_options): New struct.
521 (info_modules_var_func_options_defs): New variable.
522 (make_info_modules_var_func_options_def_group): New function.
523 (info_module_functions_command): New function.
524 (info_module_variables_command): New function.
525 (info_module_var_func_command_completer): New function.
526 (_initialize_symtab): Register new 'info module functions' and
527 'info module variables' commands.
528 * symtab.h (typedef symbol_search_in_module): New typedef.
529 (search_module_symbols): Declare new function.
530 * NEWS: Mention new commands.
531
532 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
535 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
536 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
537 MODULES_DOMAIN.
538 (scan_partial_symbols): Only create partial module symbols for non
539 declarations.
540 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
541 and MODULES_DOMAIN.
542 * symtab.c (search_domain_name): Likewise.
543 (search_symbols): Likewise.
544 (print_symbol_info): Likewise.
545 (symtab_symbol_info): Likewise.
546 (info_modules_command): New function.
547 (_initialize_symtab): Register 'info modules' command.
548 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
549 * NEWS: Mention new 'info modules' command.
550
551 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
552
553 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
554 and $_gdb_maint_setting_str.
555
556 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
557
558 * cli/cli-cmds.c (setting_cmd, value_from_setting)
559 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
560 (str_value_from_setting, gdb_setting_str_internal_fn)
561 (gdb_maint_setting_str_internal_fn): New functions.
562 (_initialize_cli_cmds): Define the new convenience functions.
563 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
564 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
565
566 2019-10-31 Christian Biesinger <cbiesinger@google.com>
567
568 * agent.c (set_can_use_agent): When the setting is turned on,
569 look up agent symbols if we don't have them yet.
570 (agent_new_objfile): Don't look up agent symbols when the agent
571 setting is off.
572
573 2019-10-31 Christian Biesinger <cbiesinger@google.com>
574
575 * config.in: Regenerate.
576
577 2019-10-31 Christian Biesinger <cbiesinger@google.com>
578
579 * configure: Regenerate.
580 * configure.ac: Check for strerror_r.
581 * gdbsupport/common-utils.h (safe_strerror): Change return value
582 to const char * and document that this function is now threadsafe.
583 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
584 thread_local and call strerror_r, if available.
585 * utils.c (perror_string): Update.
586 (print_sys_errmsg): Update.
587
588 2019-10-31 Luis Machado <luis.machado@linaro.org>
589
590 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
591 objfile_key.
592 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
593 objfile to fetch per-bfd data.
594 (arm_find_exidx_entry): Likewise.
595
596 2019-10-31 Christian Biesinger <cbiesinger@google.com>
597
598 * gdbsupport/agent.c (debug_agent): Change type to bool.
599 (use_agent): Likewise.
600 (all_agent_symbols_look_up): Likewise.
601 (agent_loaded_p): Change return value to bool.
602 (agent_look_up_symbols): Update.
603 (agent_capability_check): Change return value to bool.
604 * gdbsupport/agent.h (agent_loaded_p): Likewise.
605 (debug_agent): Change type to bool.
606 (use_agent): Likewise.
607 (agent_capability_check): Change return value to bool.
608
609 2019-10-30 Christian Biesinger <cbiesinger@google.com>
610
611 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
612 (build_minimal_symbol_hash_tables): Code to clear the table moved
613 to clear_minimal_symbol_hash_tables.
614 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
615 when needed.
616
617 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * infcmd.c: Remove includes.
620 * infrun.c: Remove includes.
621
622 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
625 (grow_vect): Remove declaration.
626 (ada_type_of_array): Remove declaration.
627 (ada_update_initial_language): Remove declaration.
628 (ada_fold_name): Remove declaration.
629 (ada_fill_in_ada_prototype): Remove declaration.
630 (user_select_syms): Remove declaration.
631 (get_selections): Remove declaration.
632 (ada_tag_type): Remove declaration.
633 (ada_value_tag): Remove declaration.
634 (ada_is_others_clause): Remove declaration.
635 (ada_in_variant): Remove declaration.
636 (ada_value_struct_elt): Remove declaration.
637 (ada_attribute_name): Remove declaration.
638 (ada_system_address_type): Remove declaration.
639 * ada-lang.c (ada_watch_location_expression): Make static.
640 (GROW_VECT): Move here from ada-lang.h.
641 (grow_vect): Make static.
642 (ada_update_initial_language): Make static.
643 (ada_fold_name): Make static.
644 (ada_type_of_array): Make static.
645 (encoded_ordered_before): Move up.
646 (sort_choices): Move up.
647 (print_signatures): Move up.
648 (ada_print_symbol_signature): Move up.
649 (get_selections): Move up and make static.
650 (user_select_syms): Move up and make static.
651 (ada_value_struct_elt): Move up and make static.
652 (ada_tag_type): Make static.
653 (ada_value_tag): Make static.
654 (ada_is_others_clause): Make static.
655 (ada_in_variant): Make static.
656 (ada_attribute_name): Make static.
657
658 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
659
660 * ada-lang.c: Remove includes.
661 * ada-typeprint.c: Remove includes.
662 * ada-valprint.c: Remove includes.
663
664 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
665
666 * addrmap.c: Add static assertions of type size, moved from
667 _initialize_addrmap.
668 (_initialize_addrmap): Remove.
669
670 2019-10-29 Christian Biesinger <cbiesinger@google.com>
671
672 * coffread.c (record_minimal_symbol): Update.
673 (process_coff_symbol): Update.
674 * dbxread.c (read_dbx_symtab): Update.
675 * dwarf2read.c (add_partial_symbol): Update.
676 (fixup_go_packaging): Update.
677 (load_partial_dies): Update.
678 (new_symbol): Update.
679 * elfread.c (record_minimal_symbol): Change signature to use
680 gdb::string_view instead of name+len.
681 (elf_symtab_read): Update.
682 (elf_rel_plt_read): Update.
683 * mdebugread.c (parse_partial_symbols): Update.
684 (handle_psymbol_enumerators): Update.
685 (new_symbol): Update.
686 * minsyms.c (minimal_symbol_reader::record_full): Change signature
687 to use gdb::string_view instead of name+len.
688 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
689 * psympriv.h (add_psymbol_to_list): Likewise.
690 * psymtab.c (add_psymbol_to_bcache): Likewise.
691 (add_psymbol_to_list): Likewise.
692 * stabsread.c (define_symbol): Update.
693 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
694 * symtab.h (SYMBOL_SET_NAMES): Likewise.
695 (symbol_set_names): Likewise.
696 * xcoffread.c (scan_xcoff_symtab): Update.
697
698 2019-10-29 Christian Biesinger <cbiesinger@google.com>
699
700 * symtab.h (symbol_set_names): Document that copy_name must be
701 set to true for non-nullterminated strings.
702 * symtab.c (symbol_set_names): Only make a nullterminated copy of
703 linkage_name if the entry was not found and we need to demangle.
704
705 2019-10-29 Christian Biesinger <cbiesinger@google.com>
706
707 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
708 * dwarf2-frame.c (bsearch_fde_cmp): Update.
709 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
710 * gdbsupport/gdb_binary_search.h: New file.
711
712 2019-10-29 Christian Biesinger <cbiesinger@google.com>
713
714 * NEWS: Mention new --with-system-gdbinit-dir option.
715 * config.in: Regenerate.
716 * configure: Regenerate.
717 * configure.ac: Add new option --with-system-gdbinit-dir.
718 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
719 for a ".gdb" suffix.
720 * main.c (get_init_files): Change system_gdbinit argument to
721 a vector and return the files in SYSTEM_GDBINIT_DIR in
722 addition to SYSTEM_GDBINIT.
723 (captured_main_1): Update.
724 (print_gdb_help): Update.
725 * top.c (print_gdb_configuration): Also print the value of
726 SYSTEM_GDBINIT_DIR.
727
728 2019-10-28 Christian Biesinger <cbiesinger@google.com>
729
730 * gdbsupport/common-utils.h (startswith): Add an overloaded version
731 that takes gdb::string_view arguments.
732
733 2019-10-26 Tom de Vries <tdevries@suse.de>
734
735 * aarch64-linux-tdep.c: Fix typos in comments.
736 * aarch64-tdep.c: Same.
737 * ada-lang.c: Same.
738 * amd64-nat.c: Same.
739 * arc-tdep.c: Same.
740 * arch/aarch64-insn.c: Same.
741 * block.c: Same.
742 * breakpoint.h: Same.
743 * btrace.h: Same.
744 * c-varobj.c: Same.
745 * cli/cli-decode.c: Same.
746 * cli/cli-script.c: Same.
747 * cli/cli-utils.h: Same.
748 * coff-pe-read.c: Same.
749 * coffread.c: Same.
750 * compile/compile-cplus-symbols.c: Same.
751 * compile/compile-object-run.c: Same.
752 * completer.c: Same.
753 * corelow.c: Same.
754 * cp-support.c: Same.
755 * demangle.c: Same.
756 * dwarf-index-write.c: Same.
757 * dwarf2-frame.c: Same.
758 * dwarf2-frame.h: Same.
759 * eval.c: Same.
760 * frame-base.h: Same.
761 * frame.h: Same.
762 * gdbcmd.h: Same.
763 * gdbtypes.h: Same.
764 * gnu-nat.c: Same.
765 * guile/scm-objfile.c: Same.
766 * i386-tdep.c: Same.
767 * i386-tdep.h: Same.
768 * infcall.c: Same.
769 * infcall.h: Same.
770 * linux-nat.c: Same.
771 * m68k-tdep.c: Same.
772 * macroexp.c: Same.
773 * memattr.c: Same.
774 * mi/mi-cmd-disas.c: Same.
775 * mi/mi-getopt.h: Same.
776 * mi/mi-main.c: Same.
777 * minsyms.c: Same.
778 * nat/aarch64-sve-linux-sigcontext.h: Same.
779 * objfiles.h: Same.
780 * ppc-linux-nat.c: Same.
781 * ppc-linux-tdep.c: Same.
782 * ppc-tdep.h: Same.
783 * progspace.h: Same.
784 * prologue-value.h: Same.
785 * python/py-evtregistry.c: Same.
786 * python/py-instruction.h: Same.
787 * record-btrace.c: Same.
788 * record-full.c: Same.
789 * remote.c: Same.
790 * rs6000-tdep.c: Same.
791 * ser-tcp.c: Same.
792 * sol-thread.c: Same.
793 * sparc-sol2-tdep.c: Same.
794 * sparc64-tdep.c: Same.
795 * stabsread.c: Same.
796 * symfile.c: Same.
797 * symtab.h: Same.
798 * target.c: Same.
799 * tracepoint.c: Same.
800 * tui/tui-data.h: Same.
801 * tui/tui-io.c: Same.
802 * tui/tui-win.c: Same.
803 * tui/tui.c: Same.
804 * unittests/rsp-low-selftests.c: Same.
805 * user-regs.h: Same.
806 * utils.c: Same.
807 * utils.h: Same.
808 * valarith.c: Same.
809 * valops.c: Same.
810 * valprint.c: Same.
811 * valprint.h: Same.
812 * value.c: Same.
813 * value.h: Same.
814 * varobj.c: Same.
815 * x86-nat.h: Same.
816 * xtensa-tdep.c: Same.
817
818 2019-10-25 Ali Tamur <tamur@google.com>
819
820 * charset.c (find_charset_names): Reflect API change.
821
822 2019-10-25 Christian Biesinger <cbiesinger@google.com>
823
824 * symtab.c (struct demangled_name_entry): Change demangled name
825 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
826 part of the struct anymore.
827 (symbol_set_names): No longer obstack allocate + copy the demangled
828 name, just store the allocated name from bfd.
829
830 2019-10-25 Tom Tromey <tromey@adacore.com>
831
832 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
833 (bsearch_cie_cmp, add_cie): Remove.
834 (find_cie): Reimplement.
835 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
836 (dwarf2_build_frame_info): Update.
837
838 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
839
840 PR gdb/25126
841 * symfile.c (reread_symbols): Call forget_cached_source_info to
842 clear the stale source cache.
843
844 2019-10-24 Christian Biesinger <cbiesinger@google.com>
845
846 * configure: Regenerate.
847 * configure.ac: Remove code that sets python_has_threads.
848
849 2019-10-24 Christian Biesinger <cbiesinger@google.com>
850
851 * config.in: Regenerate.
852 * configure: Regenerate.
853 * configure.ac: Remove the code that uses sed to get the python
854 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
855
856 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * python/py-progspace.c (pspy_block_for_pc): Return None for all
859 error paths.
860
861 2019-10-23 Tom Tromey <tom@tromey.com>
862
863 * arc-tdep.c: Remove ".." from include.
864 * frv-tdep.c: Remove ".." from include.
865 * lm32-tdep.c: Remove ".." from include.
866 * microblaze-tdep.c: Remove ".." from include.
867 * or1k-tdep.h: Remove ".." from include.
868 * s12z-tdep.c: Remove ".." from include.
869 * Makefile.in (OPCODES_CFLAGS): Add comment.
870 (TOP_CFLAGS): New variable.
871 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
872
873 2019-10-23 Tom Tromey <tom@tromey.com>
874
875 * Makefile.in (READLINE_DIR): Update.
876
877 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
878
879 * infcall.c (call_function_by_hand_dummy): Fix the function
880 comment. And extract out a code section into...
881 (reserve_stack_space): ...this new function.
882
883 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
884
885 * infcall.c (value_arg_coerce): Remove an unused parameter.
886 (call_function_by_hand_dummy): Update the call to
887 'value_arg_coerce'.
888
889 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
890
891 * infcall.c (call_function_by_hand_dummy): Refactor.
892
893 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
894
895 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
896
897 2019-10-23 Tom Tromey <tom@tromey.com>
898
899 * configure: Rebuild.
900 * configure.ac: Don't check for sigprocmask.
901 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
902
903 2019-10-23 Tom Tromey <tom@tromey.com>
904
905 * configure: Rebuild.
906 * acinclude.m4: Use m4_include, not sinclude.
907
908 2019-10-23 Tom de Vries <tdevries@suse.de>
909
910 PR breakpoints/24687
911 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
912
913 2019-10-22 Christian Biesinger <cbiesinger@google.com>
914
915 * symtab.c (struct demangled_name_entry) <language>: Change from
916 bitfield to regular variable.
917
918 2019-10-22 Christian Biesinger <cbiesinger@google.com>
919
920 * symtab.c (struct demangled_name_entry): Add a constructor.
921 (free_demangled_name_entry): New function to call the destructor
922 for demangled_name_entry.
923 (create_demangled_names_hash): Pass free_demangled_name_entry to
924 htab_create_alloc.
925 (symbol_set_names): Call placement new for demangled_name_entry.
926 * utils.c: No longer include xxhash.h here, now that fast_hash
927 is inlined in the header.
928 * utils.h: Instead, include it here.
929
930 2019-10-22 Christian Biesinger <cbiesinger@google.com>
931
932 * Makefile.in: Link with libxxhash.
933 * config.in: Regenerate.
934 * configure: Regenerate.
935 * configure.ac: Search for libxxhash.
936 * utils.c (fast_hash): Use xxhash if present.
937
938 2019-10-22 Christian Biesinger <cbiesinger@google.com>
939
940 * utils.h (fast_hash): New function.
941 * symtab.c (hash_demangled_name_entry): Call new function
942 fast_hash.
943
944 2019-10-22 Christian Biesinger <cbiesinger@google.com>
945
946 * symtab.c (struct demangled_name_entry): Change type of mangled
947 to gdb::string_view. Also adds a constructor that takes the
948 mangled name.
949 (hash_demangled_name_entry): Update.
950 (eq_demangled_name_entry): Update.
951 (free_demangled_name_entry): New function to call the destructor
952 now that this is not a POD anymore.
953 (create_demangled_names_hash): Pass free_demangled_name_entry to
954 htab_create_alloc.
955 (symbol_set_names): Update.
956
957 2019-10-21 Ali Tamur <tamu@google.com>
958
959 * dwarf2read.c (dir_index): Change type.
960 (file_name_index): Likewise.
961 (line_header::include_dir_at): Change comment and implementation on
962 whether it is DWARF 5.
963 (line_header::is_valid_file_index): New function.
964 (line_header::file_name_at): Change comment and implementation on
965 whether it is DWARF 5.
966 (line_header::file_names): Change to private field renamed as
967 m_file_names and introduce a new accessor method.
968 (line_header::file_names_size): New method.
969 (line_header::include_dirs): Change to private field and rename as
970 m_include_dirs.
971 (dw2_get_file_names_reader): Define local var at a smaller scope and
972 reflect API change.
973 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
974 (process_structure_scope): Likewise.
975 (line_header::add_include_dir): Change message and reflect renaming.
976 (line_header::add_file_name): Likewise.
977 (read_formatted_entries): Handle DW_FORM_data16.
978 (dwarf_decode_line_header): Fix line header length calculation.
979 (psymtab_include_file_name): Change comment and API.
980 (lnp_state_machine::m_file): Update comment and reflect type change.
981 (lnp_state_machine::record_line): Reflect type change.
982 (dwarf_decode_lines): Reflect API change.
983 (file_file_name): Likewise.
984 (file_full_name): Likewise.
985
986 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
989
990 2019-10-21 Tom Tromey <tom@tromey.com>
991
992 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
993
994 2019-10-21 Tom Tromey <tom@tromey.com>
995
996 * configure.ac (nm.h): Conditionally create nm.h link. Subst
997 NM_H. Use AC_CONFIG_LINKS.
998 * configure: Rebuild.
999 * Makefile.in (NM_H): New variable.
1000 (generated_files): Add NM_H. Remove gcore.
1001 (nm.h, stamp-nmh): New targets.
1002
1003 2019-10-20 Tom Tromey <tom@tromey.com>
1004
1005 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1006 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1007 obsolete comment.
1008 (put_objfile_before): Now static.
1009
1010 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * gdbsupport/common-utils.h (startswith): Change return type to
1013 bool.
1014
1015 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1016
1017 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1018 * breakpoint.c (bp_locations_compare): Rename to...
1019 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1020 (update_global_location_list): Use std::sort instead of qsort.
1021 * buildsym.c (compare_line_numbers): Rename to...
1022 (lte_is_less_than): ...this, and change to std::sort semantics.
1023 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1024 instead of qsort.
1025 * disasm.c (compare_lines): Rename to...
1026 (line_is_less_than): ...this, and change to std::sort semantics.
1027 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1028 of qsort.
1029 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1030 (fde_is_less_than): ...this, and change to std::sort semantics.
1031 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1032 * mdebugread.c (compare_blocks):
1033 (block_is_less_than): ...this, and change to std::sort semantics.
1034 (sort_blocks): Call std::sort instead of qsort.
1035 * objfiles.c (qsort_cmp): Rename to...
1036 (sort_cmp): ...this, and change to std::sort semantics.
1037 (update_section_map): Call std::sort instead of qsort.
1038 * remote.c (compare_pnums): Remove.
1039 (map_regcache_remote_table): Call std::sort instead of qsort.
1040 * utils.c (compare_positive_ints): Remove.
1041 * utils.h (compare_positive_ints): Remove.
1042 * xcoffread.c (compare_lte): Remove.
1043 (arrange_linetable): Call std::sort instead of qsort.
1044
1045 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1046
1047 * symfile.c (init_entry_point_info): Fix typo.
1048 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1049
1050 2019-10-18 Tom de Vries <tdevries@suse.de>
1051
1052 * aarch64-tdep.c: Fix typos in comments.
1053 * ada-lang.c: Same.
1054 * ada-tasks.c: Same.
1055 * alpha-tdep.c: Same.
1056 * alpha-tdep.h: Same.
1057 * amd64-nat.c: Same.
1058 * amd64-windows-tdep.c: Same.
1059 * arc-tdep.c: Same.
1060 * arc-tdep.h: Same.
1061 * arch-utils.c: Same.
1062 * arm-nbsd-tdep.c: Same.
1063 * arm-tdep.c: Same.
1064 * ax-gdb.c: Same.
1065 * blockframe.c: Same.
1066 * btrace.c: Same.
1067 * c-varobj.c: Same.
1068 * coff-pe-read.c: Same.
1069 * coffread.c: Same.
1070 * cris-tdep.c: Same.
1071 * darwin-nat.c: Same.
1072 * dbxread.c: Same.
1073 * dcache.c: Same.
1074 * disasm.c: Same.
1075 * dtrace-probe.c: Same.
1076 * dwarf-index-write.c: Same.
1077 * dwarf2-frame-tailcall.c: Same.
1078 * dwarf2-frame.c: Same.
1079 * dwarf2read.c: Same.
1080 * eval.c: Same.
1081 * exceptions.c: Same.
1082 * fbsd-tdep.c: Same.
1083 * findvar.c: Same.
1084 * frame.c: Same.
1085 * frv-tdep.c: Same.
1086 * gnu-v3-abi.c: Same.
1087 * go32-nat.c: Same.
1088 * h8300-tdep.c: Same.
1089 * hppa-tdep.c: Same.
1090 * i386-linux-tdep.c: Same.
1091 * i386-tdep.c: Same.
1092 * ia64-libunwind-tdep.c: Same.
1093 * ia64-tdep.c: Same.
1094 * infcmd.c: Same.
1095 * infrun.c: Same.
1096 * linespec.c: Same.
1097 * linux-nat.c: Same.
1098 * linux-thread-db.c: Same.
1099 * machoread.c: Same.
1100 * mdebugread.c: Same.
1101 * mep-tdep.c: Same.
1102 * mn10300-tdep.c: Same.
1103 * namespace.c: Same.
1104 * objfiles.c: Same.
1105 * opencl-lang.c: Same.
1106 * or1k-tdep.c: Same.
1107 * osabi.c: Same.
1108 * ppc-linux-nat.c: Same.
1109 * ppc-linux-tdep.c: Same.
1110 * ppc-sysv-tdep.c: Same.
1111 * printcmd.c: Same.
1112 * procfs.c: Same.
1113 * record-btrace.c: Same.
1114 * record-full.c: Same.
1115 * remote-fileio.c: Same.
1116 * remote.c: Same.
1117 * rs6000-tdep.c: Same.
1118 * s12z-tdep.c: Same.
1119 * score-tdep.c: Same.
1120 * ser-base.c: Same.
1121 * ser-go32.c: Same.
1122 * skip.c: Same.
1123 * sol-thread.c: Same.
1124 * solib-svr4.c: Same.
1125 * solib.c: Same.
1126 * source.c: Same.
1127 * sparc-nat.c: Same.
1128 * sparc-sol2-tdep.c: Same.
1129 * sparc-tdep.c: Same.
1130 * sparc64-tdep.c: Same.
1131 * stabsread.c: Same.
1132 * stack.c: Same.
1133 * symfile.c: Same.
1134 * symtab.c: Same.
1135 * target-descriptions.c: Same.
1136 * target-float.c: Same.
1137 * thread.c: Same.
1138 * utils.c: Same.
1139 * valops.c: Same.
1140 * valprint.c: Same.
1141 * value.c: Same.
1142 * varobj.c: Same.
1143 * windows-nat.c: Same.
1144 * xcoffread.c: Same.
1145 * xstormy16-tdep.c: Same.
1146 * xtensa-tdep.c: Same.
1147
1148 2019-10-17 Tom Tromey <tromey@adacore.com>
1149
1150 * configure: Rebuild.
1151 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1152 in AC_CONFIG_FILES invocation.
1153 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1154 new-style config.status invocation.
1155
1156 2019-10-17 Tom de Vries <tdevries@suse.de>
1157
1158 * arm-nbsd-nat.c: Fix typos in comments.
1159 * arm-tdep.c: Same.
1160 * darwin-nat-info.c: Same.
1161 * dwarf2read.c: Same.
1162 * elfread.c: Same.
1163 * event-top.c: Same.
1164 * findvar.c: Same.
1165 * gdbtypes.c: Same.
1166 * hppa-tdep.c: Same.
1167 * i386-tdep.c: Same.
1168 * jit.c: Same.
1169 * main.c: Same.
1170 * mdebugread.c: Same.
1171 * moxie-tdep.c: Same.
1172 * nto-procfs.c: Same.
1173 * osabi.c: Same.
1174 * ppc-linux-tdep.c: Same.
1175 * remote.c: Same.
1176 * riscv-tdep.c: Same.
1177 * s390-tdep.c: Same.
1178 * sh-tdep.c: Same.
1179 * sparc-linux-tdep.c: Same.
1180 * sparc-nat.c: Same.
1181 * stack.c: Same.
1182 * target-descriptions.c: Same.
1183 * top.c: Same.
1184 * varobj.c: Same.
1185
1186 2019-10-16 Tom Tromey <tom@tromey.com>
1187
1188 * objfiles.h (struct objfile) <original_name>: Now const.
1189
1190 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1191
1192 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1193 pass on to sigsetjmp's second argument.
1194 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1195
1196 2019-10-16 Keith Seitz <keiths@redhat.com>
1197
1198 PR gdb/23567
1199 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1200 sections whose size is greater than the file size.
1201
1202 2019-10-16 Jim Wilson <jimw@sifive.com>
1203
1204 * riscv-tdep.c (riscv_gcc_target_options): New.
1205 (riscv_gnu_triplet_regexp): New.
1206 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1207 set_gdbarch_gnu_triplet_regexp.
1208
1209 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1210
1211 * Makefile.in: Add xml-builtin.h.
1212 * features/feature_to_c.sh: Add an include for xml-builtin.h
1213 to ensure that the compiler checks that the types match.
1214 * xml-builtin.h: New file.
1215 * xml-support.c (fetch_xml_builtin): Add missing const.
1216 * xml-support.h: Remove declaration of xml_builtins.
1217
1218 2019-10-16 Tom de Vries <tdevries@suse.de>
1219
1220 PR tdep/25096
1221 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1222 (amd64_classify_aggregate): ... here.
1223 (amd64_classify_aggregate_field): Handled fiels of nested structs
1224 recursively.
1225
1226 2019-10-16 Tom de Vries <tdevries@suse.de>
1227
1228 PR tdep/24104
1229 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1230 that handles 'theclass'.
1231
1232 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * linespec.c (decode_digits_ordinary): Update comment.
1235 * make-target-delegates: No longer need to handle VEC case.
1236 * memrange.c (normalize_mem_ranges): Update comment.
1237 * namespace.c (add_using_directive): Update comment.
1238 * objc-lang.c (uniquify_strings): Update comment.
1239 * ppc-linux-nat.c (struct thread_points): Update comment.
1240 * probe.h (find_probes_in_objfile): Update comment.
1241 * target.h (enum flash_preserve_mode): Update comment.
1242 * varobj.c (varobj_restrict_range): Update comment.
1243 * varobj.h (varobj_list_children): Update comment.
1244
1245 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * Makefile.in: Remove references to vec.h and vec.c.
1248 * aarch64-tdep.c: No longer include vec.h.
1249 * ada-lang.c: Likewise.
1250 * ada-lang.h: Likewise.
1251 * arm-tdep.c: Likewise.
1252 * ax.h: Likewise.
1253 * breakpoint.h: Likewise.
1254 * charset.c: Likewise.
1255 * cp-support.h: Likewise.
1256 * dtrace-probe.c: Likewise.
1257 * dwarf2read.c: Likewise.
1258 * extension.h: Likewise.
1259 * gdb_bfd.c: Likewise.
1260 * gdbsupport/gdb_vecs.h: Likewise.
1261 * gdbsupport/vec.c: Remove.
1262 * gdbsupport/vec.h: Remove.
1263 * gdbthread.h: Likewise.
1264 * guile/scm-type.c: Likewise.
1265 * inline-frame.c: Likewise.
1266 * machoread.c: Likewise.
1267 * memattr.c: Likewise.
1268 * memrange.h: Likewise.
1269 * namespace.h: Likewise.
1270 * nat/linux-btrace.h: Likewise.
1271 * osdata.c: Likewise.
1272 * parser-defs.h: Likewise.
1273 * progspace.h: Likewise.
1274 * python/py-type.c: Likewise.
1275 * record-btrace.c: Likewise.
1276 * rust-exp.y: Likewise.
1277 * solib-target.c: Likewise.
1278 * stap-probe.c: Likewise.
1279 * target-descriptions.c: Likewise.
1280 * target-memory.c: Likewise.
1281 * target.h: Likewise.
1282 * varobj.c: Likewise.
1283 * varobj.h: Likewise.
1284 * xml-support.h: Likewise.
1285
1286 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1289 Update for new std::vector based implementation.
1290 (process_psymtab_comp_unit_reader): Likewise.
1291 (scan_partial_symbols): Likewise.
1292 (recursively_compute_inclusions): Likewise.
1293 (compute_compunit_symtab_includes): Likewise.
1294 (process_imported_unit_die): Likewise.
1295 (queue_and_load_dwo_tu): Likewise.
1296 (follow_die_sig_1): Likewise.
1297 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1298 (typedef dwarf2_per_cu_ptr): Remove.
1299 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1300 function.
1301 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1302 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1303 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1304 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1305 std::vector.
1306
1307 2019-10-15 Tom Tromey <tromey@adacore.com>
1308
1309 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1310 TID.
1311
1312 2019-10-15 Tom Tromey <tromey@adacore.com>
1313
1314 * windows-nat.c (windows_nat_target::fetch_registers)
1315 (windows_nat_target::store_registers): Rename "pid" to "tid".
1316
1317 2019-10-15 Tom Tromey <tromey@adacore.com>
1318
1319 * gdbarch.h, gdbarch.c: Rebuild.
1320 * gdbarch.sh (gcc_target_options): Change return type to
1321 std::string.
1322 * compile/compile.c (get_args): Update.
1323 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1324 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1325 std::string.
1326 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1327 std::string.
1328 * arch-utils.c (default_gcc_target_options): Return std::string.
1329 * arch-utils.h (default_gcc_target_options): Return std::string.
1330 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1331
1332 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1333
1334 * breakpoint.c (breakpoint_chain): Make static.
1335 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1336 of accessing breakpoint_chain.
1337
1338 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1339
1340 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1341 to a gdb::function_view and return value to bool.
1342 * breakpoint.h (iterate_over_breakpoints): Likewise.
1343 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1344 (pop_dummy_frame): Update.
1345 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1346 (gdbscm_breakpoints): Update.
1347 * python/py-breakpoint.c (build_bp_list): Update.
1348 (gdbpy_breakpoints): Update.
1349 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1350 Update.
1351 (bpfinishpy_handle_stop): Update.
1352 (bpfinishpy_handle_exit): Update.
1353 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1354 (svr4_update_solib_event_breakpoints): Update.
1355
1356 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1357
1358 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1359 when unwrapping single-field structs.
1360
1361 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * dwarf2read.c: Remove includes.
1364
1365 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1366
1367 * ui-out.c (ui_out::call_do_message): Silence
1368 -Wformat-nonliteral warning.
1369
1370 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1371
1372 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1373 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1374 include: readline/tilde.h.
1375
1376 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1377
1378 * remote.c (remote_target::get_trace_status): Remove declaration of
1379 trace_regblock_size.
1380
1381 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1382
1383 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1384 (show_user): Remove declaration of cmdlist.
1385 * cli/cli-cmds.h (max_user_call_depth): Declare.
1386 * cli/cli-script.c (execute_user_command): Remove declaration
1387 of max_user_call_depth.
1388
1389 2019-10-11 Jim Wilson <jimw@sifive.com>
1390
1391 * gdbsupport/print-utils.h (pulongest): Fix comment.
1392 (plongest): Likewise.
1393 (phex): Add missing comment, mention leading zeros.
1394 (phex_nz): Add mention of no leading zeros to comment.
1395
1396 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1397 plongest instead of unsigned long long cast.
1398
1399 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1400
1401 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1402 for external_editor_command and gdbtk_test.
1403
1404 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1405
1406 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1407 * varobj.c (varobjdebug): Move comment to...
1408 * varobj.h (varobjdebug): ...here, and declare.
1409
1410 2019-10-09 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1413 erase_data_content.
1414
1415 2019-10-09 Tom Tromey <tom@tromey.com>
1416
1417 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1418 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1419 * tui/tui-command.c (tui_cmd_window::resize)
1420 (tui_refresh_cmd_win): Update.
1421 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1422 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1423 * tui/tui-data.c (~tui_gen_win_info): Remove.
1424 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1425 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1426 (tui_redisplay_readline, tui_mld_flush)
1427 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1428 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1429 (tui_data_window::erase_data_content)
1430 (tui_data_item_window::rerender)
1431 (tui_data_item_window::refresh_window): Update.
1432 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1433 (box_win, tui_gen_win_info::make_window)
1434 (tui_gen_win_info::make_visible): Update.
1435 (tui_delete_win): Remove.
1436 * tui/tui-winsource.c
1437 (tui_source_window_base::do_erase_source_content): Update.
1438 (tui_show_source_line, tui_source_window_base::update_tab_width)
1439 (tui_source_window_base::update_exec_info): Update.
1440 * tui/tui-data.h (struct curses_deleter): New.
1441 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1442 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1443
1444 2019-10-09 Tom Tromey <tom@tromey.com>
1445
1446 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1447
1448 2019-10-09 Tom Tromey <tom@tromey.com>
1449
1450 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1451 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1452
1453 2019-10-09 Tom Tromey <tom@tromey.com>
1454
1455 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1456 window height directly.
1457 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1458 declare.
1459 * tui/tui-layout.c (tui_default_win_height): Remove.
1460 (tui_default_win_viewport_height): Remove.
1461
1462 2019-10-09 Tom Tromey <tom@tromey.com>
1463
1464 * tui/tui.h: Remove comments.
1465
1466 2019-10-09 Tom de Vries <tdevries@suse.de>
1467
1468 * python/lib/gdb/printer/bound_registers.py: Use
1469 '^builtin_type_bound128' as regexp argument for
1470 add_builtin_pretty_printer.
1471
1472 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1473
1474 * guile/guile.c (guile_extension_script_ops): Remove forward
1475 declaration and mark as static.
1476 (guile_script_ops): Likewise.
1477 (extension_language_guile): Move further down in the file so
1478 it can reference the definitions for guile_{extension_,}script_ops.
1479
1480 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1481
1482 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1483 except SORTL, DFLTCC, and KDSA.
1484
1485 2019-10-08 Tom Tromey <tromey@adacore.com>
1486
1487 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1488 (struct safe_symbol_file_add_args): Remove.
1489
1490 2019-10-08 Tom Tromey <tromey@adacore.com>
1491
1492 * windows-nat.c: Don't include buildsym-legacy.h.
1493
1494 2019-10-08 Tom Tromey <tromey@adacore.com>
1495
1496 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1497
1498 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1499
1500 * gdbtypes.c (overload_debug): Move comment to header.
1501 * gdbtypes.h (overload_debug): Declare.
1502 * valops.c: Remove declaration of overload_debug, instead
1503 include gdbtypes.h.
1504
1505 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1506
1507 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1508 through _().
1509 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1510 move comment...
1511 * language.h (lang_frame_mismatch_warn): ... here. Also add
1512 declaration.
1513 * top.c (lang_frame_mismatch_warn): Remove declaration.
1514 (check_frame_language_change): Pass lang_frame_mismatch_warn
1515 through _().
1516
1517 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1518
1519 * c-lang.h (vtbl_ptr_name): Declare.
1520 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1521 it from the header.
1522 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1523
1524 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1525
1526 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1527 gdb_static_assert.
1528
1529 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1530
1531 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1532 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1533 * ctfread.c: New file.
1534 * ctfread.h: New file.
1535 * elfread.c: Include ctfread.h.
1536 (struct elfinfo text_p): New member ctfsect.
1537 (elf_locate_sections): Mark CTF section.
1538 (elf_symfile_read): Call elfctf_build_psymtabs.
1539 * Makefile.in (LIBCTF): Add.
1540 (CLIBS): Use it.
1541 (CDEPS): Likewise.
1542 (DIST): Add ctfread.c.
1543
1544 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * ctfread.c (struct nextfield): Renamed to ...
1547 (struct ctf_nextfield): ... this.
1548 (struct field_info): Renamed to ...
1549 (strut ctf_field_info): ... this.
1550 (attach_fields_to_type): Update for renamed structures.
1551 (ctf_add_member_cb): Likewise.
1552 (ctf_add_enum_member_cb): Likewise.
1553 (process_struct_members): Likewise.
1554 (process_enum_type): Likewise.
1555
1556 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1557
1558 * tracectf.h: Rename, was ctf.h.
1559 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1560 * tracefile.c: Likewise.
1561 * tracepoint.c: Remove unused include ctf.h.
1562 * mi/mi-main.c: Likewise.
1563 * Makefile.in Replace ctf.c with tracectf.c.
1564
1565 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1566
1567 * version.in: Change version number to "9.0.50.DATE-git".
1568
1569 2019-10-03 Tom Tromey <tom@tromey.com>
1570
1571 PR rust/24976:
1572 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1573
1574 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1575
1576 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1577 cp_search_name_hash.
1578 * NEWS: Add entry about nested function support.
1579
1580 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1581 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1584 for nested static variables when searchin VAR_DOMAIN.
1585 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1586 global scope, update comment.
1587 (add_partial_subprogram): Call add_partial_subprogram recursively
1588 for nested subroutines when processinng Fortran.
1589 (load_partial_dies): Process the child entities of a subprogram
1590 when processing Fortran.
1591 (partial_die_parent_scope): Handle building scope
1592 for Fortran nested functions.
1593 (process_die): Record that nested functions have a scope.
1594 (new_symbol): Always record Fortran subprograms on the global
1595 symbol list.
1596 (determine_prefix): How to build the prefix for Fortran
1597 subprograms.
1598
1599 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1602 have just sent the thread a SIGSTOP and are waiting for it to
1603 arrive.
1604
1605 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * btrace.c (btrace_add_pc): Remove whitespace before the template
1608 parameter in 'std::vector <...>'.
1609 (parse_xml_btrace_block): Likewise.
1610 (btrace_maint_decode_pt): Likewise.
1611 (btrace_maint_update_packets): Likewise.
1612 (btrace_maint_print_packets): Likewise.
1613 * btrace.h (struct btrace_maint_info): Likewise.
1614 * dwarf2read.c (struct type_unit_group): Likewise.
1615 (build_type_psymtabs_reader): Likewise.
1616 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1617 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1618 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1619
1620 2019-10-03 Tom de Vries <tdevries@suse.de>
1621
1622 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1623 the first line of the help text for set/show style metadata.
1624
1625 2019-10-02 Tom Tromey <tromey@adacore.com>
1626
1627 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1628 * gdbsupport/common-inferior.c: New file.
1629 * infcmd.c (startup_with_shell): Don't define.
1630 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1631 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1632 * inferior.h (startup_with_shell): Don't declare.
1633
1634 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1635
1636 * gdbsupport/gdb_assert.h: Include errors.h.
1637 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1638
1639 2019-10-02 Tom Tromey <tromey@adacore.com>
1640
1641 * NEWS: Add $_ada_exception entry.
1642 * ada-lang.c (struct ada_catchpoint): Add constructor.
1643 <m_kind>: New member.
1644 (allocate_location_exception, re_set_exception): Remove
1645 "ex" parameter.
1646 (should_stop_exception): Compute $_ada_exception.
1647 (check_status_exception, print_it_exception)
1648 (print_one_exception, print_mention_exception): Remove
1649 "ex" parameter.
1650 (allocate_location_catch_exception, re_set_catch_exception)
1651 (check_status_exception, print_it_catch_exception)
1652 (print_one_catch_exception, print_mention_catch_exception)
1653 (print_recreate_catch_exception)
1654 (allocate_location_catch_exception_unhandled)
1655 (re_set_catch_exception_unhandled)
1656 (check_status_exception, print_it_catch_exception_unhandled)
1657 (print_one_catch_exception_unhandled)
1658 (print_mention_catch_exception_unhandled)
1659 (print_recreate_catch_exception_unhandled)
1660 (allocate_location_catch_assert, re_set_catch_assert)
1661 (check_status_assert, print_it_catch_assert)
1662 (print_one_catch_assert, print_mention_catch_assert)
1663 (print_recreate_catch_assert)
1664 (allocate_location_catch_handlers, re_set_catch_handlers)
1665 (check_status_handlers, print_it_catch_handlers)
1666 (print_one_catch_handlers, print_mention_catch_handlers)
1667 (print_recreate_catch_handlers): Remove.
1668 (create_ada_exception_catchpoint): Update.
1669 (initialize_ada_catchpoint_ops): Update.
1670
1671 2019-10-02 Tom Tromey <tromey@adacore.com>
1672
1673 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1674 (create_excep_cond_exprs): Simplify exception string computation.
1675 (ada_exception_catchpoint_cond_string): Likewise.
1676
1677 2019-10-02 Tom Tromey <tromey@adacore.com>
1678
1679 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1680 * ada-lang.c (lesseq_defined_than): Handle
1681 LOC_STATIC.
1682 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1683 parameter.
1684 (dwarf2_has_info): Likewise.
1685 (new_symbol): Set maybe_copied on symbol when
1686 appropriate.
1687 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1688 parameter.
1689 <can_copy>: New member.
1690 * elfread.c (record_minimal_symbol): Set maybe_copied
1691 on symbol when appropriate.
1692 (elf_symfile_read): Update call to dwarf2_has_info.
1693 * minsyms.c (lookup_minimal_symbol_linkage): New
1694 function.
1695 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1696 * symtab.c (get_symbol_address, get_msymbol_address):
1697 New functions.
1698 * symtab.h (get_symbol_address, get_msymbol_address):
1699 Declare.
1700 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1701 maybe_copied.
1702 (struct symbol, struct minimal_symbol) <maybe_copied>:
1703 New member.
1704
1705 2019-10-02 Tom Tromey <tromey@adacore.com>
1706
1707 * source.c (struct current_source_location): New.
1708 (current_source_key): New global.
1709 (current_source_symtab, current_source_line)
1710 (current_source_pspace): Remove.
1711 (get_source_location): New function.
1712 (get_current_source_symtab_and_line)
1713 (set_default_source_symtab_and_line)
1714 (set_current_source_symtab_and_line)
1715 (clear_current_source_symtab_and_line, select_source_symtab)
1716 (info_source_command, print_source_lines_base)
1717 (info_line_command, search_command_helper, _initialize_source):
1718 Update.
1719
1720 2019-10-02 Tom Tromey <tromey@adacore.com>
1721
1722 * source.c (select_source_symtab): Don't call
1723 decode_line_with_current_source.
1724
1725 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * symtab.c (lookup_global_symbol): Search global block.
1728
1729 2019-10-02 Tom Tromey <tromey@adacore.com>
1730
1731 * coffread.c (process_coff_symbol): Update.
1732 * dwarf2read.c (var_decode_location, new_symbol): Update.
1733 * mdebugread.c (parse_symbol): Update.
1734 * objfiles.c (relocate_one_symbol): Update.
1735 * stabsread.c (define_symbol, fix_common_block)
1736 (scan_file_globals): Update.
1737 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1738 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1739 * xcoffread.c (process_xcoff_symbol): Update.
1740
1741 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1742
1743 * MAINTAINERS: Update my email address.
1744
1745 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1746
1747 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1748 std::vector.
1749 (build_type_psymtabs_reader): Update for std::vector.
1750 (build_type_psymtab_dependencies): Likewise.
1751 * dwarf2read.h: Remove use of DEF_VEC_P.
1752 (typedef sig_type_ptr): Delete.
1753
1754 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1757 to std::vector.
1758 (btrace_maint_decode_pt): Likewise, and move allocation of the
1759 vector outside of the loop.
1760 (btrace_maint_update_packets): Update to handle change from VEC to
1761 std::vector.
1762 (btrace_maint_print_packets): Likewise.
1763 (maint_info_btrace_cmd): Likewise.
1764 * btrace.h: Remove use of DEF_VEC_O.
1765 (typedef btrace_pt_packet_s): Delete.
1766 (struct btrace_maint_info) <packets>: Change fromm VEC to
1767 std::vector.
1768 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1769
1770 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1773 make accesses into the vector constant references.
1774 (btrace_add_pc): Update for std::vector.
1775 (btrace_stitch_bts): Likewise.
1776 (parse_xml_btrace_block): Likewise.
1777 (btrace_maint_update_packets): Likewise.
1778 (btrace_maint_print_packets): Likewise.
1779 (maint_info_btrace_cmd): Likewise.
1780 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1781 std::vector.
1782 (btrace_data::empty): Likewise.
1783 (btrace_data_append): Likewise.
1784 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1785 (typedef btrace_block_s): Delete.
1786 (struct btrace_block): Add constructor.
1787 (struct btrace_data_bts) <blocks>: Change to std::vector.
1788 * nat/linux-btrace.c (perf_event_read_bts): Update for
1789 std::vector.
1790 (linux_read_bts): Likewise.
1791
1792 2019-10-01 Tom Tromey <tom@tromey.com>
1793
1794 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1795
1796 2019-10-01 Tom Tromey <tom@tromey.com>
1797
1798 * stack.c (print_frame, info_frame_command_core): Use
1799 styled_string.
1800 * linux-thread-db.c (try_thread_db_load_1)
1801 (try_thread_db_load_from_pdir_1): Use styled_string.
1802 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1803 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1804 (maybe_print_unsupported_script_warning)
1805 (maybe_print_script_not_found_warning): Use styled_string.
1806 * ada-lang.c (user_select_syms): Use styled_string.
1807
1808 2019-10-01 Tom Tromey <tom@tromey.com>
1809
1810 * p-lang.c (pascal_printstr): Use metadata style.
1811 * value.c (show_convenience): Use metadata style.
1812 * valprint.c (valprint_check_validity, val_print_optimized_out)
1813 (val_print_not_saved, val_print_unavailable)
1814 (val_print_invalid_address, generic_val_print, val_print)
1815 (value_check_printable, val_print_array_elements): Use metadata
1816 style.
1817 * ui-out.h (class ui_out) <field_fmt>: New overload.
1818 <do_field_fmt>: Add style parameter.
1819 * ui-out.c (ui_out::field_fmt): New overload.
1820 * typeprint.c (type_print_unknown_return_type)
1821 (val_print_not_allocated, val_print_not_associated): Use metadata
1822 style.
1823 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1824 parameter.
1825 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1826 * tracepoint.c (tvariables_info_1): Use metadata style.
1827 * stack.c (print_frame_arg, print_frame_info, print_frame)
1828 (info_frame_command_core): Use metadata style.
1829 * skip.c (info_skip_command): Use metadata style.
1830 * rust-lang.c (rust_print_enum): Use metadata style.
1831 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1832 metadata style.
1833 * python/py-framefilter.c (py_print_single_arg): Use metadata
1834 style.
1835 * printcmd.c (do_one_display, print_variable_and_value): Use
1836 metadata style.
1837 * p-valprint.c (pascal_val_print)
1838 (pascal_object_print_value_fields): Use metadata style.
1839 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1840 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1841 parameter.
1842 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1843 * m2-valprint.c (m2_print_long_set): Use metadata style.
1844 * m2-typeprint.c (m2_print_type): Use metadata style.
1845 * infcmd.c (print_return_value_1): Use metadata style.
1846 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1847 * f-valprint.c (info_common_command_for_block): Use metadata
1848 style.
1849 * f-typeprint.c (f_type_print_base): Use metadata style.
1850 * expprint.c (print_subexp_standard): Use metadata style.
1851 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1852 * cli/cli-style.h (class cli_style_option): Add constructor.
1853 (metadata_style): Declare.
1854 * cli/cli-style.c (metadata_style): New global.
1855 (_initialize_cli_style): Register metadata style.
1856 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1857 parameter.
1858 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1859 * c-typeprint.c (c_type_print_base_struct_union)
1860 (c_type_print_base_1): Use metadata style.
1861 * breakpoint.c (watchpoint_value_print)
1862 (print_one_breakpoint_location): Use metadata style.
1863 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1864 style.
1865 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1866 style.
1867 * ada-valprint.c (val_print_packed_array_elements, printstr)
1868 (print_field_values, ada_val_print_ref, ada_val_print): Use
1869 metadata style.
1870 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1871 style.
1872 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1873 style.
1874 * ada-lang.c (user_select_syms): Use metadata style.
1875
1876 2019-10-01 Tom Tromey <tom@tromey.com>
1877
1878 * cli/cli-cmds.c (pwd_command): Style output.
1879
1880 2019-10-01 Pedro Alves <palves@redhat.com>
1881 Tom Tromey <tom@tromey.com>
1882
1883 * symtab.c (print_symbol_info): Use %ps.
1884 (print_msymbol_info): Use %ps.
1885 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1886 * printcmd.c (print_variable_and_value): Use %ps.
1887 * macrocmd.c (show_pp_source_pos): Use %ps.
1888 * infrun.c (print_exited_reason): Use ui_out::message.
1889 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1890 (describe_other_breakpoints): Use ui_out::message and new
1891 formats.
1892 (say_where): Use new formats.
1893 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1894 and new formats.
1895
1896 2019-10-01 Pedro Alves <palves@redhat.com>
1897 Tom Tromey <tom@tromey.com>
1898
1899 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1900 (test_gdb_formats): New function.
1901 (run_tests): Call it.
1902 (test_format_specifier): Update.
1903 * utils.h (fputs_filtered): Update comment.
1904 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1905 (fputs_styled_unfiltered): Declare.
1906 * utils.c (fputs_styled_unfiltered): New function.
1907 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1908 (vfprintf_filtered): Update.
1909 (vfprintf_unfiltered, vprintf_filtered): Update.
1910 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1911 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1912 disallow_ui_out_field>: New constants.
1913 (enum class field_kind): New.
1914 (struct base_field_s, struct signed_field_s): New.
1915 (signed_field): New function.
1916 (struct string_field_s): New.
1917 (string_field): New function.
1918 (struct styled_string_s): New.
1919 (styled_string): New function.
1920 (class ui_out) <message>: Add comment.
1921 <vmessage, call_do_message>: New methods.
1922 <do_message>: Add style parameter.
1923 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1924 methods.
1925 (ui_out::message): Rewrite.
1926 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1927 parameter.
1928 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1929 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1930 gdb_extensions parameter.
1931 (class format_piece): Add parameter to constructor.
1932 (n_int_args): New field.
1933 * gdbsupport/format.c (format_pieces::format_pieces): Add
1934 gdb_extensions parameter. Handle '*'.
1935 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1936 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1937 vfprintf_styled_no_gdbfmt.
1938 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1939 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1940 unfiltered output.
1941 * ui-style.h (struct ui_file_style) <ptr>: New method.
1942
1943 2019-10-01 Tom Tromey <tom@tromey.com>
1944
1945 * unittests/format_pieces-selftests.c: Update. Add final format.
1946 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1947 empty literal pieces.
1948
1949 2019-10-01 Tom Tromey <tom@tromey.com>
1950
1951 * ui-out.h (enum class ui_out_style_kind): Remove.
1952 (class ui_out) <field_string, field_stsream, do_field_string>:
1953 Change type of "style".
1954 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1955 (ui_out::field_string): Update.
1956 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1957 of "style".
1958 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1959 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1960 * stack.c (print_frame_arg, print_frame_info, print_frame):
1961 Update.
1962 * source.c (print_source_lines_base): Update.
1963 * solib.c (info_sharedlibrary_command): Update.
1964 * skip.c (info_skip_command): Update.
1965 * record-btrace.c (btrace_call_history_src_line)
1966 (btrace_call_history): Update.
1967 * python/py-framefilter.c (py_print_frame): Update.
1968 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1969 "style".
1970 * mi/mi-out.c (mi_ui_out::do_table_header)
1971 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1972 (mi_ui_out::do_field_string): Update.
1973 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1974 Update.
1975 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1976 "style".
1977 * cli-out.c (cli_ui_out::do_table_header)
1978 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1979 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1980 (cli_ui_out::do_field_fmt): Update.
1981 * breakpoint.c (print_breakpoint_location): Update.
1982 (update_static_tracepoint): Update.
1983
1984 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1985
1986 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1987 conversion of gdb_datadir.
1988 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1989 remove not needed c_str ().
1990
1991 2019-09-30 Ali Tamur <tamur@google.com>
1992
1993 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1994 (dwarf2_string_attr): Likewise.
1995
1996 2019-09-30 Ali Tamur <tamur@google.com>
1997
1998 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1999 (process_full_type_unit): Likewise.
2000 (dump_die_shallow): Likewise.
2001 (cu_debug_loc_section): Likewise.
2002
2003 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2004
2005 * minsyms.c (compare_minimal_symbols): Rename to...
2006 (minimal_symbol_is_less_than): ...this, and adjust to STL
2007 conventions (return bool, take arguments as references)
2008 (minimal_symbol_reader::install): Call std::sort instead
2009 of qsort.
2010
2011 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2012
2013 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2014 hash and why.
2015 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2016 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2017
2018 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2019
2020 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2021 * psympriv.h (add_psymbol_to_list): Move comment here and update
2022 it.
2023
2024 2019-09-29 Tom de Vries <tdevries@suse.de>
2025
2026 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2027 Use $tmpdir/$(basename "$output_file").dwz instead of
2028 "${output_file}.dwz".
2029
2030 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2031
2032 PR gdb/25045
2033 * hppa-linux-nat.c: Include gdbarch.h.
2034
2035 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2036
2037 * blockframe.c (find_pc_partial_function): Change return type to bool.
2038 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2039 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2040 (stub_gnu_ifunc_resolve_name): Likewise.
2041 * symtab.c (compare_filenames_for_search): Likewise.
2042 (compare_glob_filenames_for_search): Likewise.
2043 (matching_obj_sections): Likewise.
2044 (symbol_matches_domain): Likewise.
2045 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2046 (find_line_pc): Change return type to bool.
2047 (find_line_pc_range): Likewise.
2048 (producer_is_realview): Likewise.
2049 * symtab.h (symbol_matches_domain): Likewise.
2050 (find_pc_partial_function): Likewise.
2051 (find_pc_line_pc_range): Likewise.
2052 (in_gnu_ifunc_stub): Likewise.
2053 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2054 (find_line_pc): Likewise.
2055 (find_line_pc_range): Likewise.
2056 (matching_obj_sections): Likewise.
2057 (find_line_symtab): Change out parameter to bool.
2058 (producer_is_realview): Change return type to bool.
2059 (compare_filenames_for_search): Likewise.
2060 (compare_glob_filenames_for_search): Likewise.
2061
2062 2019-09-26 Tom Tromey <tom@tromey.com>
2063
2064 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2065 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2066 * gdb_usleep.h: Remove.
2067 * gdb_usleep.c: Remove.
2068 * utils.c: Don't include gdb_usleep.h.
2069
2070 2019-09-26 Tom Tromey <tromey@adacore.com>
2071
2072 * python/py-type.c (type_to_type_object): Call check_typedef
2073 for stub types.
2074
2075 2019-09-26 Tom Tromey <tom@tromey.com>
2076
2077 * utils.h (initialize_utils): Don't declare.
2078 * top.c (gdb_init): Don't call initialize_utils.
2079 * utils.c (initialize_utils): Remove. Move contents...
2080 (_initialize_utils): ... here.
2081
2082 2019-09-25 Tom Tromey <tom@tromey.com>
2083
2084 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2085 * utils.h (make_hex_string): Don't declare.
2086 * utils.c (make_hex_string): Remove.
2087
2088 2019-09-24 Tom de Vries <tdevries@suse.de>
2089
2090 PR gdb/23815
2091 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2092 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2093
2094 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2095
2096 * NEWS: Mention new simulator port for PRU.
2097
2098 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2099
2100 * ada-exp.y (write_object_remaining): Update.
2101 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2102 and eliminate the static buffer.
2103 (ada_decode_symbol): Update.
2104 (ada_la_decode): Update.
2105 (ada_sniff_from_mangled_name): Update.
2106 (is_valid_name_for_wild_match): Update.
2107 (ada_lookup_name_info::matches): Update and simplify.
2108 (name_matches_regex): Update.
2109 (ada_add_global_exceptions): Update.
2110 * ada-lang.h (ada_decode): Update signature.
2111 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2112 * dwarf-index-write.c (debug_names::insert): Update.
2113
2114 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2117 formatting.
2118
2119 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2120
2121 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2122 Change "nonzero" to "true" in documentation.
2123
2124 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2125
2126 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2127 (_initialize_darwin_solib): Don't set
2128 darwin_so_ops.lookup_lib_global_symbol.
2129 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2130 set_gdbarch_iterate_over_objfiles_in_search_order.
2131 (elf_lookup_lib_symbol): Rename to...
2132 (svr4_iterate_over_objfiles_in_search_order): this, and update
2133 to iterate semantics.
2134 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2135 * solib.c (solib_global_lookup): Remove.
2136 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2137 (solib_global_lookup): Remove.
2138 * symtab.c (lookup_global_or_static_symbol): Remove call to
2139 solib_global_lookup.
2140
2141 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2142
2143 * NEWS: Move entries about default MI version now being
2144 version 3, and about the GDB/MI fix for multi-location
2145 breakpoints to the "since GDB 8.3" section.
2146
2147 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2148
2149 GDB 8.3.1 released.
2150
2151 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2152
2153 * NEWS: Mention that Cell/B.E. debugging support was removed.
2154 * MAINTAINERS: Remove spu target.
2155
2156 * config/djgpp/fnchange.lst: Remove entries for removed files.
2157
2158 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2159 spu-multiarch.o, and spu-tdep.o.
2160 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2161 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2162 spu-multiarch.c, and spu-tdep.c.
2163 * spu-linux-nat.c: Remove file.
2164 * spu-multiarch.c: Remove file.
2165 * spu-tdep.c: Remove file.
2166 * spu-tdep.h: Remove file.
2167 * solib-spu.c: Remove file.
2168 * solib-spu.h: Remove file.
2169
2170 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2171 * configure.nat (spu-linux): Remove.
2172 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2173 solib-multiarch.o from gdb_target_obs.
2174 (spu*-*-*): Remove.
2175
2176 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2177 feature flag.
2178 (ppc_linux_no_features): Update.
2179 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2180 Cell/B.E. support.
2181 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2182 (tdesc_powerpc_cell64l): Likewise.
2183 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2184 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2185 Cell/B.E. support.
2186 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2187 Do not include "features/rs6000/powerpc-cell32l.c" or
2188 "features/rs6000/powerpc-cell64l.c".
2189 (ppc_linux_spu_section): Remove.
2190 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2191 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2192 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2193 (ppc_linux_spe_context_lookup): Remove.
2194 (ppc_linux_spe_context_inferior_created): Remove.
2195 (ppc_linux_spe_context_solib_loaded): Remove.
2196 (ppc_linux_spe_context_solib_unloaded): Remove.
2197 (ppc_linux_spe_context): Remove.
2198 (struct ppu2spu_cache): Remove.
2199 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2200 (struct ppu2spu_data): Remove.
2201 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2202 ppu2spu_unwind): Remove.
2203 (ppc_linux_init_abi): Remove Cell/B.E. support.
2204 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2205
2206 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2207 (rs6000/powerpc-cell64l-expedite): Likewise
2208 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2209 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2210 rs6000/powerpc-cell64l.xml.
2211 * features/rs6000/powerpc-cell32l.xml: Remove.
2212 * features/rs6000/powerpc-cell64l.xml: Likewise.
2213 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2214 * features/rs6000/powerpc-cell64l.c: Likewise.
2215 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2216 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2217 * regformats/reg-spu.dat: Remove.
2218
2219 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2220 * corelow.c (struct spuid_list): Remove.
2221 (add_to_spuid_list): Remove.
2222 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2223 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2224 (remote_protocol_features): Remove associated entries.
2225 (_initialize_remote): No longer initialize them.
2226 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2227 * linux-nat.c (SPUFS_MAGIC): Remove.
2228 (linux_proc_xfer_spu): Remove.
2229 (spu_enumerate_spu_ids): Remove.
2230 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2231 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2232 (linux_make_corefile_notes): No longer call it.
2233
2234 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2235 (cooked_write_test): Likewise.
2236
2237 2019-09-20 Tom Tromey <tom@tromey.com>
2238
2239 * NEWS: Mention case-sensitivity of TUI commands.
2240 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2241 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2242 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2243
2244 2019-09-20 Tom Tromey <tom@tromey.com>
2245
2246 * tui/tui-source.c (tui_source_window::set_contents): Use
2247 make_unique_xstrdup.
2248 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2249 make_unique_xstrdup.
2250
2251 2019-09-20 Tom Tromey <tom@tromey.com>
2252
2253 * tui/tui-data.c: Remove separator comments.
2254 * tui/tui-layout.c: Remove separator comments.
2255 * tui/tui-win.c: Remove separator comments.
2256 * tui/tui-wingeneral.c: Remove separator comments.
2257
2258 2019-09-20 Tom Tromey <tom@tromey.com>
2259
2260 * tui/tui.h (strcat_to_buf): Don't declare.
2261 * tui/tui.c (strcat_to_buf): Remove.
2262
2263 2019-09-20 Tom Tromey <tom@tromey.com>
2264
2265 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2266 from "fullname".
2267 * tui/tui-source.c (tui_source_window::set_contents)
2268 (tui_source_window::location_matches_p)
2269 (tui_source_window::maybe_update): Update.
2270
2271 2019-09-20 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2274 Update.
2275 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2276 prefix.
2277 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2278 (tui_data_window::line_from_reg_element_no)
2279 (tui_data_window::first_reg_element_no_inline)
2280 (tui_data_window::show_registers)
2281 (tui_data_window::show_register_group)
2282 (tui_data_window::display_registers_from)
2283 (tui_data_window::display_registers_from_line)
2284 (tui_data_window::first_data_item_displayed)
2285 (tui_data_window::delete_data_content_windows)
2286 (tui_data_window::erase_data_content)
2287 (tui_data_window::do_scroll_vertical)
2288 (tui_data_window::refresh_window)
2289 (tui_data_window::check_register_values): Update.
2290
2291 2019-09-20 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2294 (struct tui_locator_window) <full_name, proc_name>: Now
2295 std::string.
2296 * tui/tui-stack.c (tui_locator_window::make_status_line)
2297 (tui_locator_window::set_locator_fullname)
2298 (tui_locator_window::set_locator_info): Update.
2299 * tui/tui-source.c (tui_source_window::set_contents)
2300 (tui_source_window::showing_source_p): Update.
2301
2302 2019-09-20 Tom Tromey <tom@tromey.com>
2303
2304 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2305 Don't call tui_locator_win_info_ptr.
2306
2307 2019-09-20 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2310
2311 2019-09-20 Tom Tromey <tom@tromey.com>
2312
2313 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2314 height for locator.
2315 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2316 * tui/tui-layout.c (show_source_disasm_command, show_data)
2317 (show_source_or_disasm_and_command): Use 1 as height for locator.
2318
2319 2019-09-20 Tom Tromey <tom@tromey.com>
2320
2321 * tui/tui.c (tui_enable): Update.
2322 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2323 Update.
2324 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2325 Update.
2326 * tui/tui-data.c (win_resized): Now bool.
2327 (tui_win_resized): Return bool.
2328 (tui_set_win_resized_to): Accept a bool.
2329
2330 2019-09-20 Tom Tromey <tom@tromey.com>
2331
2332 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2333 Change type of "refresh_values_only".
2334 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2335 type of "refresh_values_only".
2336
2337 2019-09-20 Tom Tromey <tom@tromey.com>
2338
2339 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2340 std::string.
2341 (tui_disassemble): Add "pos" parameter.
2342 (tui_disasm_window::set_contents): Simplify.
2343
2344 2019-09-20 Tom Tromey <tom@tromey.com>
2345
2346 * tui/tui-winsource.h (struct tui_source_window_base)
2347 <show_source_content>: Now private.
2348 * tui/tui-winsource.c
2349 (tui_source_window_base::show_source_content): Don't handle empty
2350 content case.
2351
2352 2019-09-20 Tom Tromey <tom@tromey.com>
2353
2354 * tui/tui-layout.c (show_source_disasm_command)
2355 (show_source_or_disasm_and_command): Don't call
2356 show_source_content.
2357
2358 2019-09-20 Tom Tromey <tom@tromey.com>
2359
2360 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2361 Declare.
2362 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2363 from tui_make_status_line.
2364 (tui_locator_window::rerender): Update.
2365
2366 2019-09-20 Tom Tromey <tom@tromey.com>
2367
2368 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2369 (tui_locator_window::rerender): Update.
2370
2371 2019-09-20 Tom Tromey <tom@tromey.com>
2372
2373 * tui/tui-winsource.h (struct tui_source_window_base)
2374 <~tui_source_window_base>: Don't declare.
2375 <fullname>: Remove.
2376 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2377 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2378 member.
2379 * tui/tui-source.c (tui_source_window::set_contents): Update.
2380 (tui_source_window::location_matches_p)
2381 (tui_source_window::maybe_update): Update.
2382
2383 2019-09-20 Tom Tromey <tom@tromey.com>
2384
2385 * tui/tui-winsource.h (~tui_source_element): Remove.
2386 (tui_source_element): Update.
2387 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2388 * tui/tui-winsource.c (tui_show_source_line): Update.
2389 * tui/tui-source.c (tui_source_window::set_contents): Update.
2390 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2391
2392 2019-09-20 Tom Tromey <tom@tromey.com>
2393
2394 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2395 declare.
2396 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2397 tui_clear_source_windows_detail.
2398 * tui/tui-winsource.h (struct tui_source_window_base)
2399 <clear_detail>: Don't declare.
2400 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2401 Remove.
2402 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2403
2404 2019-09-20 Tom Tromey <tromey@adacore.com>
2405
2406 PR ada/24919:
2407 * block.c (contained_in): Fix final return value.
2408
2409 2019-09-20 Alan Modra <amodra@gmail.com>
2410
2411 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2412 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2413 (read_indirect_string_from_dwz): Use bfd accessor.
2414 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2415 * machoread.c (macho_symfile_read_all_oso): Likewise.
2416 * solib.c (solib_bfd_open): Likewise.
2417
2418 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2419
2420 * eval.c: Move declaration of overload_resolution to...
2421 * value.h: ...here.
2422
2423 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2424
2425 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2426 * arm-linux-tdep.c: Likewise.
2427 * arm-nbsd-nat.c: Likewise.
2428 * arm-tdep.h: Declare arm_apcs_32.
2429 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2430
2431 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2432
2433 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2434 * dwarf2read.h: Declare dwarf_always_disassemble.
2435
2436 2019-09-19 Tom de Vries <tdevries@suse.de>
2437
2438 PR gdb/25009
2439 * source-cache.c (source_cache::ensure): Catch exception thrown during
2440 construction of the highlighter.
2441
2442 2019-09-18 Alan Modra <amodra@gmail.com>
2443
2444 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2445 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2446 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2447 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2448 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2449 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2450 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2451 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2452 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2453 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2454 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2455 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2456 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2457 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2458 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2459 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2460 * mi/mi-interp.c: Update throughout for bfd section macro and
2461 function changes.
2462 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2463 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2464
2465 2019-09-18 Tom Tromey <tom@tromey.com>
2466
2467 * NEWS: Add entry.
2468 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2469 call rl_initialize.
2470 (tui_enable): Do not call rl_initialize.
2471
2472 2019-09-18 Christian Groessler <chris@groessler.org>
2473
2474 * alpha-linux-nat.c: Include gdbarch.h.
2475
2476 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 * ui-file.c: Include cli/cli-style.h.
2479 (term_cli_styling): Remove cli_styling declaration.
2480
2481 2019-09-18 Alan Modra <amodra@gmail.com>
2482
2483 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2484 to bfd_asymbol_section.
2485
2486 2019-09-18 Alan Modra <amodra@gmail.com>
2487
2488 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2489 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2490 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2491
2492 2019-09-18 Alan Modra <amodra@gmail.com>
2493
2494 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2495 * spu-linux-nat.c (spu_bfd_open): Likewise.
2496
2497 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2498
2499 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2500 to bool to match definition in dwarf2read.c.
2501
2502 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2503
2504 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2505 (print_signatures): Likewise.
2506 (trust_pad_over_xvs): Likewise.
2507 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2508 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2509 * arm-linux-nat.c (arm_apcs_32): Likewise.
2510 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2511 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2512 * arm-tdep.c (arm_debug): Likewise.
2513 (arm_apcs_32): Likewise.
2514 * auto-load.c (debug_auto_load): Likewise.
2515 (auto_load_gdb_scripts): Likewise.
2516 (global_auto_load): Likewise.
2517 (auto_load_local_gdbinit): Likewise.
2518 (auto_load_local_gdbinit_loaded): Likewise.
2519 * auto-load.h (global_auto_load): Likewise.
2520 (auto_load_local_gdbinit): Likewise.
2521 (auto_load_local_gdbinit_loaded): Likewise.
2522 * breakpoint.c (disconnected_dprintf): Likewise.
2523 (breakpoint_proceeded): Likewise.
2524 (automatic_hardware_breakpoints): Likewise.
2525 (always_inserted_mode): Likewise.
2526 (target_exact_watchpoints): Likewise.
2527 (_initialize_breakpoint): Update.
2528 * breakpoint.h (target_exact_watchpoints): Change to bool.
2529 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2530 * cli/cli-cmds.c (trace_commands): Likewise.
2531 * cli/cli-cmds.h (trace_commands): Likewise.
2532 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2533 to bool*.
2534 * cli/cli-logging.c (logging_overwrite): Change to bool.
2535 (logging_redirect): Likewise.
2536 (debug_redirect): Likewise.
2537 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2538 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2539 to bool.
2540 <boolean_option_def>: Update.
2541 (struct flag_option_def): Change default type of Context to bool
2542 from int.
2543 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2544 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2545 (get_setshow_command_value_string): Likewise.
2546 * cli/cli-style.c (cli_styling): Change to bool.
2547 (source_styling): Likewise.
2548 * cli/cli-style.h (source_styling): Likewise.
2549 (cli_styling): Likewise.
2550 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2551 to bool.
2552 * command.h (var_types): Update comment.
2553 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2554 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2555 bool.
2556 (debug_compile_cplus_scopes): Likewise.
2557 * compile/compile-internal.h (compile_debug): Likewise.
2558 * compile/compile.c (compile_debug): Likewise.
2559 (struct compile_options) <raw>: Likewise.
2560 * cp-support.c (catch_demangler_crashes): Likewise.
2561 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2562 (usr_cmd_cris_dwarf2_cfi): Likewise.
2563 * csky-tdep.c (csky_debug): Likewise.
2564 * darwin-nat.c (enable_mach_exceptions): Likewise.
2565 * dcache.c (dcache_enabled_p): Likewise.
2566 * defs.h (info_verbose): Likewise.
2567 * demangle.c (demangle): Likewise.
2568 (asm_demangle): Likewise.
2569 * dwarf-index-cache.c (debug_index_cache): Likewise.
2570 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2571 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2572 * dwarf2read.c (check_physname): Likewise.
2573 (use_deprecated_index_sections): Likewise.
2574 (dwarf_always_disassemble): Likewise.
2575 * eval.c (overload_resolution): Likewise.
2576 * event-top.c (set_editing_cmd_var): Likewise.
2577 (exec_done_display_p): Likewise.
2578 * event-top.h (set_editing_cmd_var): Likewise.
2579 (exec_done_display_p): Likewise.
2580 * exec.c (write_files): Likewise.
2581 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2582 (debug_fbsd_nat): Likewise.
2583 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2584 Likewise.
2585 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2586 <backtrace_past_entry> Likewise.
2587 * gdb-demangle.h (demangle): Likewise.
2588 (asm_demangle): Likewise.
2589 * gdb_bfd.c (bfd_sharing): Likewise.
2590 * gdbcore.h (write_files): Likewise.
2591 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2592 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2593 * gdbthread.h (print_thread_events): Likewise.
2594 * gdbtypes.c (opaque_type_resolution): Likewise.
2595 (strict_type_checking): Likewise.
2596 * gnu-nat.c (gnu_debug_flag): Likewise.
2597 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2598 * guile/scm-param.c (pascm_variable): Add boolval.
2599 (add_setshow_generic): Update.
2600 (pascm_param_value): Update.
2601 (pascm_set_param_value_x): Update.
2602 * hppa-tdep.c (hppa_debug): Change to bool..
2603 * infcall.c (may_call_functions_p): Likewise.
2604 (coerce_float_to_double_p): Likewise.
2605 (unwind_on_signal_p): Likewise.
2606 (unwind_on_terminating_exception_p): Likewise.
2607 * infcmd.c (startup_with_shell): Likewise.
2608 * inferior.c (print_inferior_events): Likewise.
2609 * inferior.h (startup_with_shell): Likewise.
2610 (print_inferior_events): Likewise.
2611 * infrun.c (step_stop_if_no_debug): Likewise.
2612 (detach_fork): Likewise.
2613 (debug_displaced): Likewise.
2614 (disable_randomization): Likewise.
2615 (non_stop): Likewise.
2616 (non_stop_1): Likewise.
2617 (observer_mode): Likewise.
2618 (observer_mode_1): Likewise.
2619 (set_observer_mode): Update.
2620 (sched_multi): Change to bool.
2621 * infrun.h (debug_displaced): Likewise.
2622 (sched_multi): Likewise.
2623 (step_stop_if_no_debug): Likewise.
2624 (non_stop): Likewise.
2625 (disable_randomization): Likewise.
2626 * linux-tdep.c (use_coredump_filter): Likewise.
2627 (dump_excluded_mappings): Likewise.
2628 * linux-thread-db.c (auto_load_thread_db): Likewise.
2629 (check_thread_db_on_load): Likewise.
2630 * main.c (captured_main_1): Update.
2631 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2632 xx2_opt, boolean_opt>: Change to bool.
2633 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2634 * maint.c (maintenance_profile_p): Likewise.
2635 (per_command_time): Likewise.
2636 (per_command_space): Likewise.
2637 (per_command_symtab): Likewise.
2638 * memattr.c (inaccessible_by_default): Likewise.
2639 * mi/mi-main.c (mi_async): Likewise.
2640 (mi_async_1): Likewise.
2641 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2642 * nat/fork-inferior.h (startup_with_shell): Likewise.
2643 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2644 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2645 * nios2-tdep.c (nios2_debug): Likewise.
2646 * or1k-tdep.c (or1k_debug): Likewise.
2647 * parse.c (parser_debug): Likewise.
2648 * parser-defs.h (parser_debug): Likewise.
2649 * printcmd.c (print_symbol_filename): Likewise.
2650 * proc-api.c (procfs_trace): Likewise.
2651 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2652 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2653 (set_parameter_value): Update.
2654 (add_setshow_generic): Update.
2655 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2656 to bool*.
2657 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2658 int*.
2659 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2660 * record-btrace.c (record_btrace_target::store_registers): Update.
2661 * record-full.c (record_full_memory_query): Change to bool.
2662 (record_full_stop_at_limit): Likewise.
2663 * record-full.h (record_full_memory_query): Likewise.
2664 * remote-notif.c (notif_debug): Likewise.
2665 * remote-notif.h (notif_debug): Likewise.
2666 * remote.c (use_range_stepping): Likewise.
2667 (interrupt_on_connect): Likewise.
2668 (remote_break): Likewise.
2669 * ser-tcp.c (tcp_auto_retry): Likewise.
2670 * ser-unix.c (serial_hwflow): Likewise.
2671 * skip.c (debug_skip): Likewise.
2672 * solib-aix.c (solib_aix_debug): Likewise.
2673 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2674 (spu_auto_flush_cache_p): Likewise.
2675 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2676 Likewise.
2677 (struct info_print_options) <quiet>: Likewise.
2678 * symfile-debug.c (debug_symfile): Likewise.
2679 * symfile.c (auto_solib_add): Likewise.
2680 (separate_debug_file_debug): Likewise.
2681 * symfile.h (auto_solib_add): Likewise.
2682 (separate_debug_file_debug): Likewise.
2683 * symtab.c (basenames_may_differ): Likewise.
2684 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2685 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2686 (struct info_types_options) <quiet>: Likewise.
2687 * symtab.h (demangle): Likewise.
2688 (basenames_may_differ): Likewise.
2689 * target-dcache.c (stack_cache_enabled_1): Likewise.
2690 (code_cache_enabled_1): Likewise.
2691 * target.c (trust_readonly): Likewise.
2692 (may_write_registers): Likewise.
2693 (may_write_memory): Likewise.
2694 (may_insert_breakpoints): Likewise.
2695 (may_insert_tracepoints): Likewise.
2696 (may_insert_fast_tracepoints): Likewise.
2697 (may_stop): Likewise.
2698 (auto_connect_native_target): Likewise.
2699 (target_stop_and_wait): Update.
2700 (target_async_permitted): Change to bool.
2701 (target_async_permitted_1): Likewise.
2702 (may_write_registers_1): Likewise.
2703 (may_write_memory_1): Likewise.
2704 (may_insert_breakpoints_1): Likewise.
2705 (may_insert_tracepoints_1): Likewise.
2706 (may_insert_fast_tracepoints_1): Likewise.
2707 (may_stop_1): Likewise.
2708 * target.h (target_async_permitted): Likewise.
2709 (may_write_registers): Likewise.
2710 (may_write_memory): Likewise.
2711 (may_insert_breakpoints): Likewise.
2712 (may_insert_tracepoints): Likewise.
2713 (may_insert_fast_tracepoints): Likewise.
2714 (may_stop): Likewise.
2715 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2716 (make_thread_apply_all_options_def_group): Change argument from int*
2717 to bool*.
2718 (thread_apply_all_command): Update.
2719 (print_thread_events): Change to bool.
2720 * top.c (confirm): Likewise.
2721 (command_editing_p): Likewise.
2722 (history_expansion_p): Likewise.
2723 (write_history_p): Likewise.
2724 (info_verbose): Likewise.
2725 * top.h (confirm): Likewise.
2726 (history_expansion_p): Likewise.
2727 * tracepoint.c (disconnected_tracing): Likewise.
2728 (circular_trace_buffer): Likewise.
2729 * typeprint.c (print_methods): Likewise.
2730 (print_typedefs): Likewise.
2731 * utils.c (debug_timestamp): Likewise.
2732 (sevenbit_strings): Likewise.
2733 (pagination_enabled): Likewise.
2734 * utils.h (sevenbit_strings): Likewise.
2735 (pagination_enabled): Likewise.
2736 * valops.c (overload_resolution): Likewise.
2737 * valprint.h (struct value_print_options) <prettyformat_arrays,
2738 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2739 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2740 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2741 Likewise.
2742 * windows-nat.c (new_console): Likewise.
2743 (cygwin_exceptions): Likewise.
2744 (new_group): Likewise.
2745 (debug_exec): Likewise.
2746 (debug_events): Likewise.
2747 (debug_memory): Likewise.
2748 (debug_exceptions): Likewise.
2749 (useshell): Likewise.
2750 * windows-tdep.c (maint_display_all_tib): Likewise.
2751 * xml-support.c (debug_xml): Likewise.
2752
2753 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2754
2755 * source.c (prepare_path_for_appending): New function.
2756 (openp): Make use of new function.
2757 (find_and_open_source): Search for the compilation directory and
2758 source file as a relative path beneath the directory search path.
2759
2760 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * source-cache.c (source_cache::get_line_charpos): Catch
2763 exceptions and return false, this matches the behaviour documented
2764 in the header file.
2765
2766 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2767
2768 * ada-tasks.c (info_task): Remove quoting of the task's name.
2769
2770 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2771
2772 * symfile.c (auto_solib_add): Replace comment with a reference
2773 to the header file.
2774
2775 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2776
2777 * NEWS: Mention that gdb can now be compiled with Python 3
2778 on Windows.
2779
2780 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * maint.c (maint_print_section_data::maint_print_section_data):
2783 Force use of 'float log10 (float)' by casting the argument to
2784 float.
2785
2786 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2787
2788 * maint.c: Add 'cmath' include.
2789 (struct maint_print_section_data): New structure.
2790 (print_section_index): New function.
2791 (print_bfd_section_info): Add header comment, small whitespace
2792 cleanup, and update to call new print_section_index function.
2793 (print_objfile_section_info): Likewise.
2794 (maint_obj_section_from_bfd_section): New function.
2795 (print_bfd_section_info_maybe_relocated): New function.
2796 (maintenance_info_sections): Add header comment, always use
2797 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2798
2799 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2800
2801 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2802 inner scope, add check that the objfile has psymtabs before
2803 checking psymtabs_addrmap.
2804 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2805
2806 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2807
2808 * NEWS: Announce that Ada task names are now shown at more places,
2809 and between quotes (except in info task output).
2810 * gdb/ada-tasks.c (task_to_str): New function.
2811 (display_current_task_id): Call task_to_str.
2812 (task_command_1): Likewise.
2813 (print_ada_task_info): In non-mi mode, Properly align headers and data
2814 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2815
2816 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2817
2818 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2819 prstatus.pr_lwp.pr_info instead of making it up.
2820
2821 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2822
2823 * auto-load.c (auto_load_expand_dir_vars): Update.
2824 * defs.h (gdb_datadir): Change to std::string.
2825 (python_libdir): Likewise.
2826 (relocate_gdb_directory): Change return type to std::string.
2827 * guile/guile.c (gdbscm_data_directory): Update.
2828 (initialize_scheme_side): Update.
2829 * jit.c (jit_reader_dir): Change to std::string.
2830 (jit_reader_load_command): Update.
2831 * main.c (gdb_datadir): Change to std::string.
2832 (python_libdir): Likewise.
2833 (set_gdb_data_directory): Update.
2834 (relocate_path): Change to return std::string.
2835 (relocate_gdb_directory): Change to return std::string.
2836 (relocate_gdbinit_path_maybe_in_datadir): Update.
2837 (captured_main_1): Update.
2838 * python/python.c (do_start_initialization): Update.
2839 * top.c (show_gdb_datadir): Update.
2840 * xml-syscall.c (xml_init_syscalls_info): Update.
2841 (init_syscalls_info): Update.
2842
2843 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2844
2845 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2846 out of get_init_files.
2847 (get_init_files): Update.
2848
2849 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2850
2851 * main.c (get_init_files): Change to use std::string.
2852 (captured_main_1): Update.
2853 (print_gdb_help): Update.
2854
2855 2019-09-11 Ali Tamur <tamur@google.com>
2856
2857 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2858 implementation.
2859
2860 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2861
2862 * dbxread.c (read_dbx_symtab): Update.
2863 * dwarf2read.c (load_partial_dies): Update.
2864 * mdebugread.c (parse_partial_symbols): Update.
2865 (handle_psymbol_enumerators): Update.
2866 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2867 * psymtab.c (add_psymbol_to_bcache): Likewise.
2868 (add_psymbol_to_list): Likewise.
2869 * symtab.c (symbol_set_names): Likewise.
2870 * symtab.h (symbol_set_names): Likewise.
2871 * xcoffread.c (scan_xcoff_symtab): Update.
2872
2873 2019-09-11 Tom Tromey <tom@tromey.com>
2874
2875 * symfile-mem.c (symbol_file_add_from_memory): Use
2876 bfd_set_filename.
2877 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2878 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2879
2880 2019-09-10 Tom Tromey <tromey@adacore.com>
2881
2882 * dwarf-index-write.c (write_psymbols): Extend error message.
2883 (debug_names::insert): Add Ada code.
2884 (debug_names::write_psymbols): Remove Ada check.
2885 (debug_names) <m_string_obstack>: New member.
2886 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2887 (gdb_index_symbol_name_matcher::matches): Remove.
2888 (mapped_index_base::find_name_components_bounds): Add "lang"
2889 parameter.
2890 (mapped_index_base::build_name_components): Also split names
2891 according to Ada syntax.
2892 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2893 type of "match_callback".
2894 (check_match, check_find_bounds_finds)
2895 (dw2_expand_symtabs_matching): Update.
2896 (dw2_debug_names_iterator): Add new constructor.
2897 (dw2_debug_names_map_matching_symbols): New function.
2898 (dw2_debug_names_expand_symtabs_matching): Update.
2899 (dwarf2_debug_names_functions): Use
2900 dw2_debug_names_map_matching_symbols.
2901
2902 2019-09-10 Tom Tromey <tromey@adacore.com>
2903
2904 * dwarf2read.c (dw2_get_file_names_reader): Add the
2905 CU's file name to the results.
2906
2907 2019-09-10 Tom Tromey <tromey@adacore.com>
2908
2909 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2910 map_matching_symbols. Update.
2911 * dwarf2read.c (dw2_map_matching_symbols): Update.
2912 * psymtab.c (match_partial_symbol): Change type; update.
2913 (psym_map_matching_symbols): Likewise.
2914 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2915 type; update.
2916 * symfile.h (struct quick_symbol_functions)
2917 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2918 Remove "match".
2919
2920 2019-09-10 Tom Tromey <tromey@adacore.com>
2921
2922 * psymtab.c (map_block): Remove.
2923 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2924 * symtab.c (iterate_over_symbols_terminated): New function.
2925 * symtab.c (iterate_over_symbols_terminated): Declare.
2926
2927 2019-09-10 Tom Tromey <tromey@adacore.com>
2928
2929 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2930 * language.h (struct language_defn) <la_iterate_over_symbols>:
2931 Return bool.
2932 * symtab.c (iterate_over_symbols): Return bool.
2933 * symtab.h (iterate_over_symbols): Return bool.
2934
2935 2019-09-10 Tom Tromey <tromey@adacore.com>
2936
2937 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2938 (add_nonlocal_symbols): Update.
2939 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2940 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2941 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2942 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2943 Change type of "callback". Remove "data".
2944
2945
2946 2019-09-09 Ali Tamur <tamur@google.com>
2947
2948 * dwarf2read.c (comp_unit_head): Update comment.
2949 (dwarf2_dwo_name): New function declaration.
2950 (dwarf_unit_type_name): New function declaration.
2951 (read_comp_unit_head): Add support for new compilation units,
2952 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2953 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2954 (currently named as "signature") in their header. Also clarify error
2955 messages.
2956 (lookup_dwo_id): New function. Returns the dwo id of the given
2957 compile unit.
2958 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2959 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2960 functions.
2961 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2962 (dwarf2_dwo_name): Get the dwo name if present.
2963 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2964 purposes.
2965
2966 2019-09-09 Tom Tromey <tom@tromey.com>
2967
2968 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2969
2970 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2971
2972 * python/python.c (do_start_initialization): Make progname_copy static,
2973 to avoid a leak report.
2974
2975 2019-09-08 Tom Tromey <tom@tromey.com>
2976
2977 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2978
2979 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2982 Change type to gdb::optional<block_enum>.
2983 (dw2_symtab_iter_init): Change block_index parameter type
2984 to gdb::optional<block_enum>.
2985 (dw2_lookup_symbol): Change block_index parameter
2986 type to block_enum.c
2987 (dw2_debug_names_lookup_symbol): Likewise.
2988 * psymtab.c (psym_lookup_symbol): Likewise.
2989 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2990 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2991 Likewise.
2992
2993 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2994
2995 * defs.h (relocate_gdb_directory): Change int to bool in
2996 signature and rename flag to relocatable.
2997 * main.c (relocate_path): Likewise.
2998 (relocate_gdb_directory): Likewise.
2999
3000 2019-09-06 Alan Modra <amodra@gmail.com>
3001
3002 * coffread.c (coff_symfile_read): Constify filename variable.
3003 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3004 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3005 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3006 * solib.c (reload_shared_libraries_1): Likewise.
3007 * symfile.c (reread_symbols): Likewise.
3008 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3009 * solib-darwin.c (darwin_bfd_open): Likewise.
3010 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3011
3012 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3013
3014 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3015 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3016
3017 2019-09-03 Tom Tromey <tromey@adacore.com>
3018
3019 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3020 types.
3021 (has_negatives): Unbias a range type bound.
3022 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3023 * gdbtypes.c (operator==): Handle new field.
3024 (create_range_type): Add "bias" parameter.
3025 (create_static_range_type, resolve_dynamic_range): Update.
3026 * gdbtypes.h (struct range_bounds) <bias>: New member.
3027 (create_range_type): Add bias parameter.
3028 * printcmd.c (print_scalar_formatted): Unbias range types.
3029 * value.c (unpack_long): Unbias range types.
3030 (pack_long): Bias range types.
3031
3032 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3033
3034 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3035 probe arguments.
3036
3037 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3038
3039 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3040 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3041 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3042 (compile_probe_arg): Likewise.
3043 * probe.h (get_argument_count): Likewise.
3044 * solib-svr4.c (solib_event_probe_action): Likewise.
3045 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3046
3047 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3048
3049 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3050 code to here...
3051 (svr4_create_solib_event_breakpoints): ...from here.
3052
3053 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3054
3055 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3056 suffix from warning message.
3057
3058 2019-08-30 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-winsource.h (struct tui_source_window_base)
3061 <refresh_all>: Don't declare.
3062 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3063 Remove.
3064 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3065 tui_show_locator_content.
3066 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3067 declare.
3068 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3069 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3070 declare.
3071
3072 2019-08-30 Tom Tromey <tom@tromey.com>
3073
3074 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3075
3076 2019-08-30 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3079 Remove unnecessary forward declarations.
3080
3081 2019-08-30 Tom Tromey <tom@tromey.com>
3082
3083 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3084 rerender.
3085 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3086 tui_show_locator_content.
3087
3088 2019-08-30 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3091 (tui_locator_window::rerender): Rewrite using body of previous
3092 tui_show_locator_content.
3093
3094 2019-08-30 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3097 set_locator_fullname>: New methods.
3098 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3099 Rename from tui_set_locator_fullname.
3100 (tui_locator_window::set_locator_info): Rename from
3101 tui_set_locator_info. Return bool.
3102 (tui_update_locator_fullname, tui_show_frame_info): Update.
3103
3104 2019-08-30 Tom Tromey <tom@tromey.com>
3105
3106 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3107
3108 2019-08-30 Tom Tromey <tom@tromey.com>
3109
3110 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3111 call touchwin.
3112
3113 2019-08-30 Tom Tromey <tom@tromey.com>
3114
3115 * tui/tui-wingeneral.c (box_win): Assume win_info and
3116 win_info->handle cannot be NULL.
3117
3118 2019-08-30 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3121 refresh_window>: Declare.
3122 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3123 resize.
3124 (tui_data_item_window::rerender): Rename from
3125 tui_display_register.
3126 (tui_data_item_window::refresh_window): New method.
3127 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3128 no-op.
3129
3130 2019-08-30 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3133 regs_column_count, current_group>: Move later. Now private.
3134 <get_current_group>: New method.
3135 * tui/tui-regs.c (tui_reg_command): Update.
3136 * tui/tui-layout.c (tui_set_layout): Update.
3137
3138 2019-08-30 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3141 (tui_data_window::rerender): Don't call
3142 check_and_display_highlight_if_needed.
3143 (tui_data_window::refresh_all): Remove call to
3144 erase_data_content.
3145
3146 2019-08-30 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3149 (tui_data_window::display_registers_from)
3150 (tui_data_window::display_reg_element_at_line)
3151 (tui_data_window::display_registers_from_line): Remove checks of
3152 "empty".
3153
3154 2019-08-30 Tom Tromey <tom@tromey.com>
3155
3156 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3157 Don't declare.
3158 * tui/tui-regs.c (tui_data_window::show_registers): Call
3159 rerender.
3160 (tui_data_window::rerender): Rename from display_all_data.
3161 (tui_data_window::rerender): Remove old implementation.
3162
3163 2019-08-30 Tom Tromey <tom@tromey.com>
3164
3165 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3166 text.
3167 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3168
3169 2019-08-29 Bernhard Wodok <barto@gmx.net>
3170 Sergio Durigan Junior <sergiodj@redhat.com>
3171
3172 PR win32/24284
3173 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3174
3175 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3176
3177 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3178 when searching for types.
3179
3180 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3181
3182 * f-lang.c (f_language_defn): Use f_print_typedef.
3183 * f-lang.h (f_print_typedef): Declare.
3184 * f-typeprint.c (f_print_typedef): Define.
3185
3186 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3187
3188 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3189
3190 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * cli/cli-utils.c (info_print_options_defs): Delete.
3193 (make_info_print_options_def_group): Delete.
3194 (extract_info_print_options): Delete.
3195 (info_print_command_completer): Delete.
3196 (info_print_args_help): Add extra parameter, and optionally
3197 include text about -n flag.
3198 * cli/cli-utils.h (struct info_print_options): Delete.
3199 (extract_info_print_options): Delete declaration.
3200 (info_print_command_completer): Delete declaration.
3201 (info_print_args_help): Add extra parameter, extend header
3202 comment.
3203 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3204 search_symbols.
3205 * stack.c (struct info_print_options): New type.
3206 (info_print_options_defs): New file scoped variable.
3207 (make_info_print_options_def_group): New static function.
3208 (info_print_command_completer): New static function.
3209 (info_locals_command): Update to use new local functions.
3210 (info_args_command): Likewise.
3211 (_initialize_stack): Add extra parameter to calls to
3212 info_print_args_help.
3213 * symtab.c (search_symbols): Add extra parameter, use this to
3214 possibly excluse non-debug symbols.
3215 (symtab_symbol_info): Add extra parameter, which is passed on to
3216 search_symbols.
3217 (struct info_print_options): New type.
3218 (info_print_options_defs): New file scoped variable.
3219 (make_info_print_options_def_group): New static function.
3220 (info_print_command_completer): New static function.
3221 (info_variables_command): Update to use local functions, and pass
3222 extra parameter through to symtab_symbol_info.
3223 (info_functions_command): Likewise.
3224 (info_types_command): Pass additional argument through to
3225 symtab_symbol_info.
3226 (rbreak_command): Pass extra argument to search_symbols.
3227 (_initialize_symtab): Add extra arguments for calls to
3228 info_print_args_help, and update help text for 'info variables',
3229 'whereis', and 'info functions' commands.
3230 * symtab.h (search_symbols): Add extra argument to declaration.
3231 * NEWS: Mention new flags.
3232
3233 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3234
3235 * symtab.c (lookup_static_symbol): Call the new function (and move
3236 it down to be next to lookup_global_symbol).
3237 (struct global_sym_lookup_data): Add block_enum member and rename to...
3238 (struct global_or_static_sym_lookup_data): ...this.
3239 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3240 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3241 (lookup_symbol_global_or_static_iterator_cb): ...this.
3242 (lookup_global_or_static_symbol): New function.
3243 (lookup_global_symbol): Call new function.
3244
3245 2019-08-26 Tom de Vries <tdevries@suse.de>
3246
3247 PR c++/24852
3248 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3249 when pc_probe.prob == NULL.
3250
3251 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3252
3253 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3254 variable symbol_linkage to symbol_linkage_.
3255
3256 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3257
3258 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3259 represent whether the symbol is static, dynamic, or we don't
3260 know.
3261
3262 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3263
3264 * gdb/rx-tdep.c (rx_register_names): New.
3265 (rx_register_name): Delete.
3266 (rx_psw_type): Delete.
3267 (rx_fpsw_type): Delete.
3268 (rx_register_type): Delete.
3269 (rx_gdbarch_init): Convert target-descriptions.
3270 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3271 * gdb/features/Makefile: Add rx.xml.
3272 * gdb/features/rx.xml: New.
3273 * gdb/features/rx.c: Generated.
3274 * gdb/NEWS: Mention target description support.
3275
3276 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3277
3278 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3279 *slot_ptr.
3280
3281 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3282
3283 * configure.ac: Don't check for 'dlfcn.h' (moved to
3284 gdbsupport/common.m4).
3285 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3286 'gdbsupport/'.
3287 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3288 * compile/compile-c-support.c: Include
3289 'gdbsupport/gdb-dlfcn.h'.
3290 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3291 * gdb-dlfcn.c: Move to...
3292 * gdbsupport/gdb-dlfcn.c: ... here.
3293 * gdb-dlfcn.h: Move to...
3294 * gdbsupport/gdb-dlfcn.h: ... here.
3295
3296 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3297
3298 * nios2-tdep.c (struct reg_value): Improve comments. Make
3299 the offset field signed.
3300
3301 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3302
3303 * python/lib/gdb/__init__.py (_execute_file): New function.
3304 * python/python.c (python_run_simple_file): Call gdb._execute_file
3305 on Windows.
3306
3307 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3308
3309 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3310 all uses as this was never set to anything but a zero value.
3311
3312 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3313
3314 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3315
3316 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3317
3318 * tui/tui-data.h (tui_gen_win_info): Add an =default
3319 move constructor, required by some GCC versions.
3320
3321 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3322
3323 * go32-nat.c (go32_sysinfo): Add hygon_p.
3324
3325 2019-08-20 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3328 line_from_reg_element_no, first_reg_element_no_inline,
3329 display_all_data, delete_data_content_windows,
3330 erase_data_content>: Now private.
3331
3332 2019-08-20 Tom Tromey <tom@tromey.com>
3333
3334 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3335 (tui_unhighlight_win, tui_highlight_win)
3336 (tui_win_info::make_window): Update.
3337 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3338
3339 2019-08-20 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3342 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3343 (MAX_PID_WIDTH): Move to tui-stack.c.
3344 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3345 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3346 (MAX_PID_WIDTH): Move from tui-data.h.
3347
3348 2019-08-20 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3351 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3352 (box_win): Update.
3353 (tui_gen_win_info::make_window): Rename from tui_make_window.
3354 (tui_win_info::make_window): New method.
3355 (tui_gen_win_info::make_visible): Update.
3356 * tui/tui-source.c (tui_source_window::set_contents): Update.
3357 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3358 (tui_data_window::display_registers_from): Update.
3359 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3360 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3361 Declare.
3362 <can_box>: Remove.
3363 <title>: Remove.
3364 (struct tui_win_info) <make_window>: Declare.
3365 <can_box>: Now virtual.
3366 <title>: New member.
3367 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3368 * tui/tui-command.c (tui_cmd_window::resize): Update.
3369
3370 2019-08-20 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3373 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3374 (tui_data_window::check_register_values): Update.
3375
3376 2019-08-20 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-regs.h (struct tui_data_window): Use
3379 DISABLE_COPY_AND_ASSIGN.
3380 <regs_content>: Change type, removing unique_ptr.
3381 <tui_data_window>: Add move constructor.
3382 * tui/tui-regs.c (tui_data_window::show_registers)
3383 (tui_data_window::show_register_group)
3384 (tui_data_window::display_registers_from)
3385 (tui_data_window::display_registers_from)
3386 (tui_data_window::first_data_item_displayed)
3387 (tui_data_window::delete_data_content_windows)
3388 (tui_data_window::rerender, tui_data_window::refresh_window)
3389 (tui_data_window::check_register_values): Update.
3390
3391 2019-08-20 Tom Tromey <tom@tromey.com>
3392
3393 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3394 show_register_group>: Declare.
3395 (tui_show_register_group): Don't declare.
3396 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3397 tui_show_registers.
3398 (tui_data_window::show_register_group): Rename from
3399 tui_show_register_group.
3400 (tui_data_window::check_register_values, tui_reg_command):
3401 Update.
3402 * tui/tui-layout.c (tui_set_layout): Update.
3403
3404 2019-08-20 Tom Tromey <tom@tromey.com>
3405
3406 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3407 Declare.
3408 (tui_check_register_values): Don't declare.
3409 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3410 from tui_check_register_values.
3411 * tui/tui-hooks.c (tui_register_changed): Update.
3412
3413 2019-08-20 Tom Tromey <tom@tromey.com>
3414
3415 * tui/tui-regs.c (tui_reg_layout): Move later.
3416 (tui_show_registers): Don't enable TUI mode or change layout.
3417
3418 2019-08-20 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-regs.h (struct tui_data_item_window)
3421 <~tui_data_item_window>: Remove.
3422 <content>: Now a unique_xmalloc_ptr.
3423 * tui/tui-regs.c (tui_register_format): Return a
3424 unique_xmalloc_ptr.
3425 (tui_get_register): Update.
3426 (~tui_data_item_window): Remove.
3427 (tui_data_window::display_registers_from, tui_display_register):
3428 Update.
3429 * tui/tui-io.h (tui_expand_tabs): Update.
3430 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3431 Remove "col" parameter.
3432
3433 2019-08-20 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3436 field.
3437 * tui/tui-regs.c (~tui_data_item_window): Update.
3438
3439 2019-08-20 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3442 earlier.
3443
3444 2019-08-20 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3447
3448 2019-08-20 Tom Tromey <tom@tromey.com>
3449
3450 * tui/tui-source.h (struct tui_source_window): Update.
3451 * tui/tui-regs.c (tui_show_registers): Update.
3452 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3453 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3454 (NO_REGS_STRING): Remove defines.
3455
3456 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3457
3458 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3459 unnecessary thread walk if remote doesn't support the packet.
3460
3461 2019-08-19 Tom Tromey <tromey@adacore.com>
3462
3463 * python/py-value.c (value_has_field): Fix indentation.
3464
3465 2019-08-19 Tom Tromey <tromey@adacore.com>
3466
3467 * printcmd.c (do_one_display, info_display_command): Update.
3468 * block.h (contained_in): Return bool. Add allow_nested
3469 parameter.
3470 * block.c (contained_in): Return bool. Add allow_nested
3471 parameter.
3472
3473 2019-08-19 Tom Tromey <tom@tromey.com>
3474
3475 * configure: Rebuild.
3476 * configure.ac: Disallow the combination of -static-libstdc++ and
3477 source highlight.
3478 * source-cache.c (get_language_name): Handle rust.
3479 (source_cache::get_source_lines): Ignore highlighting exceptions.
3480
3481 2019-08-16 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3484 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3485 (struct tui_source_window_base) <make_visible, refresh_window,
3486 resize>: Remove methods.
3487 <execution_info>: Remove field.
3488 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3489 (tui_show_source_line, tui_source_window_base)
3490 (~tui_source_window_base): Update.
3491 (tui_source_window_base::resize)
3492 (tui_source_window_base::make_visible)
3493 (tui_source_window_base::refresh_window): Remove.
3494 (tui_source_window_base::update_exec_info): Update.
3495 * tui/tui-source.c (tui_source_window::set_contents): Update.
3496 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3497
3498 2019-08-16 Tom Tromey <tom@tromey.com>
3499
3500 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3501 deprecated_query_hook.
3502
3503 2019-08-16 Tom Tromey <tom@tromey.com>
3504
3505 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3506 (tui_update_source_windows_with_line): Update.
3507 * tui/tui-source.h (struct tui_source_window)
3508 <show_symtab_source>: Declare.
3509 (tui_show_symtab_source): Don't declare.
3510 * tui/tui-source.c (tui_show_symtab_source): Rename from
3511 tui_show_symtab_source.
3512
3513 2019-08-16 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-winsource.h (struct tui_source_window_base)
3516 <set_contents>: Declare.
3517 * tui/tui-winsource.c
3518 (tui_source_window_base::update_source_window_as_is): Update.
3519 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3520 Declare.
3521 (tui_set_source_content): Don't declare.
3522 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3523 tui_set_source_content.
3524 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3525 Declare.
3526 (tui_set_disassem_content): Don't declare.
3527 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3528 tui_set_disassem_content.
3529
3530 2019-08-16 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-winsource.h (struct tui_source_window_base)
3533 <update_breakpoint_info>: Declare.
3534 (tui_update_breakpoint_info): Don't declare.
3535 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3536 (tui_update_all_breakpoint_info): Update.
3537 (tui_source_window_base::update_breakpoint_info): Rename from
3538 tui_update_breakpoint_info.
3539 (tui_source_window_base::update_exec_info): Update.
3540
3541 2019-08-16 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-winsource.h (struct tui_source_window_base)
3544 <update_source_window>: Declare.
3545 (tui_update_source_window): Don't declare.
3546 * tui/tui-winsource.c
3547 (tui_source_window_base::update_source_window): Rename from
3548 tui_update_source_window.
3549 (tui_source_window_base::rerender): Update.
3550 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3551 * tui/tui-disasm.c (tui_show_disassem)
3552 (tui_show_disassem_and_update_source)
3553 (tui_disasm_window::maybe_update): Update.
3554
3555 2019-08-16 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-winsource.h (struct tui_source_window_base)
3558 <update_source_window_as_is>: Declare.
3559 (tui_update_source_window_as_is): Don't declare.
3560 * tui/tui-winsource.c (tui_update_source_window): Update
3561 (tui_source_window_base::update_source_window_as_is): Rename from
3562 tui_update_source_window_as_is.
3563 (tui_source_window_base::refill): Update.
3564 * tui/tui-source.c (tui_show_symtab_source): Update.
3565 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3566 Update.
3567
3568 2019-08-16 Tom Tromey <tom@tromey.com>
3569
3570 * tui/tui-winsource.h (tui_update_source_window)
3571 (tui_update_source_window_as_is): Remove "noerror" parameter.
3572 * tui/tui-winsource.c (tui_update_source_window)
3573 (tui_update_source_window_as_is): Remove "noerror" parameter.
3574 (tui_update_source_windows_with_addr)
3575 (tui_update_source_windows_with_line)
3576 (tui_source_window_base::rerender)
3577 (tui_source_window_base::refill): Update.
3578 * tui/tui-source.h (tui_set_source_content)
3579 (tui_show_symtab_source): Remove "noerror" parameter.
3580 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3581 parameter.
3582 (tui_show_symtab_source): Likewise.
3583 (tui_source_window::maybe_update): Update.
3584 * tui/tui-disasm.c (tui_show_disassem)
3585 (tui_show_disassem_and_update_source)
3586 (tui_disasm_window::do_scroll_vertical)
3587 (tui_disasm_window::maybe_update): Update.
3588
3589 2019-08-16 Tom Tromey <tom@tromey.com>
3590
3591 * tui/tui.c (tui_is_window_visible): Update.
3592 * tui/tui-wingeneral.c (tui_make_window)
3593 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3594 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3595 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3596 (tui_set_win_height_command, parse_scrolling_args): Update.
3597 * tui/tui-source.c (tui_source_window::style_changed): Update.
3598 * tui/tui-regs.c (tui_show_registers)
3599 (tui_data_window::first_data_item_displayed)
3600 (tui_data_window::delete_data_content_windows)
3601 (tui_check_register_values, tui_reg_command): Update.
3602 * tui/tui-disasm.c (tui_show_disassem): Update.
3603 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3604 method.
3605 <is_visible>: Remove field.
3606 * tui/tui-data.c (tui_next_win, tui_prev_win)
3607 (tui_delete_invisible_windows): Update.
3608
3609 2019-08-16 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-winsource.h (struct tui_source_window_base)
3612 <m_has_locator>: Remove.
3613 * tui/tui-layout.c (show_source_disasm_command, show_data)
3614 (show_source_or_disasm_and_command): Update.
3615
3616 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3617
3618 * NEWS (Other MI changes): New subsection.
3619 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3620 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3621 * arch-utils.c (default_get_pc_address_flags): New function.
3622 * arch-utils.h (default_get_pc_address_flags): New declaration.
3623 * gdbarch.sh: Add get_pc_address_flags.
3624 * gdbarch.c: Regenerate.
3625 * gdbarch.h: Likewise.
3626 * stack.c (print_pc): New function.
3627 (print_frame_info) (print_frame): Call print_pc.
3628
3629 2019-08-16 Tom de Vries <tdevries@suse.de>
3630
3631 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3632 print_objfile_section_info.
3633
3634 2019-08-15 Tom Tromey <tom@tromey.com>
3635
3636 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3637 calling update_cmdwin_start_line.
3638 * tui/tui-winsource.h (struct tui_source_window_base)
3639 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3640 <rerender>: Declare.
3641 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3642 Call rerender.
3643 (tui_source_window_base::set_new_height): Remove.
3644 (tui_source_window_base::rerender): Rename from
3645 do_make_visible_with_new_height.
3646 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3647 resize method.
3648 (tui_win_info::make_invisible_and_set_new_height)
3649 (tui_win_info::make_visible_with_new_height): Remove.
3650 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3651 Declare.
3652 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3653 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3654 do_make_visible_with_new_height>: Don't declare.
3655 <rerender>: Declare.
3656 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3657 set_new_height.
3658 (tui_data_window::do_make_visible_with_new_height): Remove.
3659 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3660 call tui_show_locator_content.
3661 (tui_gen_win_info::resize): Call rerender.
3662 (show_source_or_disasm_and_command): Don't call
3663 tui_show_locator_content.
3664 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3665 method.
3666 (struct tui_win_info) <rerender>: Declare.
3667 <set_new_height, make_invisible_and_set_new_height,
3668 make_visible_with_new_height>: Don't declare.
3669 * tui/tui-data.c (tui_win_list::rerender): New method.
3670 * tui/tui-command.h (struct tui_cmd_window)
3671 <do_make_visible_with_new_height>: Don't declare.
3672 * tui/tui-command.c
3673 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3674
3675 2019-08-15 Tom Tromey <tromey@adacore.com>
3676
3677 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3678 * ada-lang.c (ada_enum_name): Likewise.
3679
3680 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3681
3682 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3683 leading underscore.
3684 (GdbOutputErrorFile): Likewise.
3685 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3686 accordingly.
3687 (execute_unwinders): Rename to have a leading underscore.
3688 (auto_load_packages): Likewise.
3689 (global scope): Adjust call to auto_load_packages accordingly.
3690 (GdbSetPythonDirectory): Likewise.
3691 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3692 instead of execute_unwinders.
3693
3694 2019-08-15 Tom Tromey <tom@tromey.com>
3695
3696 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3697 (show_data): Don't change window visibility.
3698 (tui_gen_win_info::resize): Remove special case for command
3699 window. Use wresize, when available.
3700 (show_source_or_disasm_and_command): Don't change window
3701 visibility.
3702 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3703 <make_visible>: New method.
3704 * tui/tui-command.c (tui_cmd_window::resize): New method.
3705
3706 2019-08-15 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3709 (struct tui_source_windows): New.
3710 * tui/tui-winsource.c (tui_display_main): Update.
3711 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3712 (new_height_ok, parse_scrolling_args): Update.
3713 * tui/tui-layout.c (show_layout, show_data): Update.
3714 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3715 (tui_add_to_source_windows): Don't declare.
3716 * tui/tui-data.c (source_windows, tui_source_windows)
3717 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3718
3719 2019-08-15 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3722 Rename from reset.
3723 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3724 * tui/tui-layout.c (show_source_disasm_command, show_data):
3725 Update.
3726 (tui_gen_win_info::resize): Rename.
3727 (show_source_or_disasm_and_command): Update.
3728 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3729 reset.
3730
3731 2019-08-15 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3734 * tui/tui-interp.c (tui_interp::init): Don't call
3735 tui_initialize_static_data.
3736 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3737
3738 2019-08-15 Tom Tromey <tom@tromey.com>
3739
3740 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3741 examine tui_win_list.
3742
3743 2019-08-15 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3746 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3747 tui_clear_source_content.
3748 (tui_clear_source_content): Remove.
3749 (tui_source_window_base::do_erase_source_content): Hoist call to
3750 content.clear().
3751 * tui/tui-stack.c (tui_show_frame_info): Don't call
3752 tui_clear_source_content.
3753
3754 2019-08-15 Tom Tromey <tom@tromey.com>
3755
3756 * tui/tui-winsource.h (struct tui_source_window_base)
3757 <do_erase_source_content>: New method.
3758 <erase_source_content>: New method.
3759 (tui_erase_source_content): Don't declare.
3760 * tui/tui-winsource.c (tui_clear_source_content): Update.
3761 (tui_source_window_base::do_erase_source_content): Rename from
3762 tui_erase_source_content.
3763 (tui_source_window_base::show_source_content): Update.
3764 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3765 * tui/tui-source.h (struct tui_source_window)
3766 <erase_source_content>: New method.
3767 * tui/tui-disasm.h (struct tui_disasm_window)
3768 <erase_source_content>: New method.
3769
3770 2019-08-15 Tom Tromey <tom@tromey.com>
3771
3772 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3773 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3774 constructor.
3775 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3776 * tui/tui-source.c (tui_set_source_content): Update.
3777 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3778
3779 2019-08-15 Tom Tromey <tom@tromey.com>
3780
3781 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3782 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3783 tui-source.c.
3784 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3785 Declare.
3786 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3787 method.
3788 (tui_source_window::maybe_update): Update.
3789
3790 2019-08-15 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3793 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3794 tui-disasm.c.
3795 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3796 Declare.
3797 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3798 method.
3799 (tui_disasm_window::maybe_update): Update.
3800
3801 2019-08-15 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-winsource.h (struct tui_source_window_base)
3804 <maybe_update>: Declare.
3805 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3806 method.
3807 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3808 Declare.
3809 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3810 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3811 Declare.
3812 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3813
3814 2019-08-15 Tom Tromey <tom@tromey.com>
3815
3816 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3817
3818 2019-08-15 Tom Tromey <tom@tromey.com>
3819
3820 * tui/tui-wingeneral.c: Include tui-stack.h.
3821 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3822 (struct tui_locator_window): Move from tui-data.h.
3823 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3824 (tui_initialize_static_data): Move from tui-data.c.
3825 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3826 (struct tui_locator_window): Move to tui-stack.c.
3827 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3828 (tui_initialize_static_data): Move to tui-stack.c.
3829
3830 2019-08-15 Tom Tromey <tom@tromey.com>
3831
3832 * tui/tui-layout.c (show_source_disasm_command)
3833 (show_source_or_disasm_and_command): Use make_visible method, not
3834 tui_make_window.
3835 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3836 Remove.
3837
3838 2019-08-15 Tom Tromey <tom@tromey.com>
3839
3840 * tui/tui-wingeneral.h (tui_make_window): Update.
3841 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3842 parameter.
3843 (tui_gen_win_info::make_visible): Update.
3844 * tui/tui-regs.c (tui_data_window::display_registers_from):
3845 Update.
3846 * tui/tui-layout.c (show_source_disasm_command)
3847 (show_source_or_disasm_and_command): Update.
3848 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3849 (enum tui_box): Remove.
3850 (struct tui_win_info) <can_box>: New method.
3851 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3852 method.
3853
3854 2019-08-15 Tom de Vries <tdevries@suse.de>
3855
3856 * linux-nat-trad.c: Include gdbarch.h.
3857
3858 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3859
3860 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3861 register sizes.
3862
3863 2019-08-14 Tom Tromey <tromey@adacore.com>
3864
3865 * darwin-nat.c: Include gdbarch.h.
3866 * darwin-nat-info.c: Include gdbarch.h.
3867
3868 2019-08-13 Tom Tromey <tom@tromey.com>
3869
3870 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3871 Remove.
3872 * tui/tui-data.c (tui_initialize_static_data): Update.
3873
3874 2019-08-13 Tom Tromey <tom@tromey.com>
3875
3876 * tui/tui-winsource.h (struct tui_exec_info_window)
3877 <~tui_exec_info_window, maybe_allocate_content, get_content,
3878 m_content>: Remove.
3879 (struct tui_source_window_base) <set_exec_info_content,
3880 show_exec_info_content>: Don't declare.
3881 * tui/tui-winsource.c
3882 (tui_exec_info_window::maybe_allocate_content): Remove.
3883 (tui_source_window_base::update_exec_info): Rename from
3884 set_exec_info_content.
3885 (tui_source_window_base::show_exec_info_content)
3886 (tui_source_window_base::update_exec_info): Remove.
3887
3888 2019-08-13 Tom Tromey <tom@tromey.com>
3889
3890 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3891 declare.
3892 * tui/tui-winsource.c (tui_update_source_window_as_is)
3893 (tui_update_source_windows_with_addr, tui_erase_source_content):
3894 Update.
3895 (tui_clear_exec_info_content): Remove.
3896
3897 2019-08-13 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3900 declare.
3901 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3902 call tui_erase_exec_info_content.
3903 (tui_clear_exec_info_content): Rename from
3904 tui_erase_exec_info_content.
3905 (tui_clear_exec_info_content): Delete.
3906
3907 2019-08-13 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-winsource.h (struct tui_source_window_base)
3910 <show_exec_info_content>: Declare.
3911 (tui_show_exec_info_content): Don't declare.
3912 * tui/tui-winsource.c
3913 (tui_source_window_base::show_exec_info_content): Rename from
3914 tui_show_exec_info_content.
3915 (tui_source_window_base::update_exec_info): Update.
3916
3917 2019-08-13 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3920 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3921 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3922 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3923 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3924 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3925 ... here.
3926
3927 2019-08-13 Tom Tromey <tom@tromey.com>
3928
3929 * tui/tui-winsource.h (struct tui_source_window_base)
3930 <update_exec_info>: Declare.
3931 (tui_update_exec_info): Don't declare.
3932 * tui/tui-winsource.c (tui_update_source_window_as_is)
3933 (tui_source_window_base::refresh_all)
3934 (tui_update_all_breakpoint_info): Update.
3935 (tui_source_window_base::update_exec_info): Rename from
3936 tui_update_exec_info.
3937 * tui/tui-stack.c (tui_show_frame_info): Update.
3938
3939 2019-08-13 Tom Tromey <tom@tromey.com>
3940
3941 * tui/tui-winsource.h (struct tui_source_window_base)
3942 <set_exec_info_content>: Declare.
3943 (tui_set_exec_info_content): Don't declare.
3944 * tui/tui-winsource.c
3945 (tui_source_window_base::set_exec_info_content): Rename from
3946 tui_set_exec_info_content.
3947 (tui_update_exec_info): Update.
3948
3949 2019-08-13 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-winsource.h (struct tui_source_window_base)
3952 <show_source_content>: Declare.
3953 (tui_show_source_content): Don't declare.
3954 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3955 (tui_source_window_base::show_source_content): Rename from
3956 tui_show_source_content.
3957 (tui_source_window_base::refresh_all): Update.
3958 * tui/tui-layout.c (show_source_disasm_command)
3959 (show_source_or_disasm_and_command): Update.
3960
3961 2019-08-13 Tom Tromey <tom@tromey.com>
3962
3963 * tui/tui-winsource.c (tui_erase_source_content)
3964 (tui_show_source_content, tui_source_window_base::refresh_all):
3965 Update.
3966 * tui/tui-wingeneral.h
3967 (tui_check_and_display_highlight_if_needed): Don't declare.
3968 * tui/tui-wingeneral.c
3969 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3970 check_and_display_highlight_if_needed.
3971 * tui/tui-win.c (tui_rehighlight_all)
3972 (tui_win_info::make_visible_with_new_height): Update.
3973 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3974 (tui_data_window::erase_data_content)
3975 (tui_data_window::display_all_data): Update.
3976 * tui/tui-data.h (struct tui_win_info)
3977 <check_and_display_highlight_if_needed>: Declare.
3978
3979 2019-08-13 Tom Tromey <tom@tromey.com>
3980
3981 * tui/tui-win.c (tui_resize_all): Call
3982 tui_delete_invisible_windows.
3983 * tui/tui-layout.c (show_layout): Call
3984 tui_delete_invisible_windows.
3985 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3986 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3987
3988 2019-08-13 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3991 tui_add_win_to_layout.
3992
3993 2019-08-13 Tom Tromey <tom@tromey.com>
3994
3995 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3996 * tui/tui-layout.c (tui_default_win_height): Now static.
3997
3998 2019-08-13 Tom Tromey <tom@tromey.com>
3999
4000 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4001 single switch.
4002 (show_source_disasm_command, show_source_or_disasm_and_command):
4003 Don't check current layout.
4004
4005 2019-08-13 Tom Tromey <tom@tromey.com>
4006
4007 * tui/tui-wingeneral.c (make_all_visible): Remove.
4008 (tui_make_all_invisible): Simplify.
4009 * tui/tui-layout.c (tui_make_all_invisible): Move from
4010 tui-wingeneral.c; simplify.
4011 (show_layout): Hoist call to tui_make_all_invisible.
4012 (show_data): Don't call tui_make_all_invisible.
4013
4014 2019-08-13 Tom Tromey <tom@tromey.com>
4015
4016 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4017 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4018
4019 2019-08-13 Tom Tromey <tom@tromey.com>
4020
4021 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4022 tui-data.c.
4023 (show_source_disasm_command, show_data)
4024 (show_source_or_disasm_and_command): Don't use
4025 tui_set_current_layout_to.
4026 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4027 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4028 tui-layout.c.
4029 (tui_set_current_layout_to): Remove.
4030
4031 2019-08-13 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui-layout.c (tui_set_layout): Update.
4034 * tui/tui-data.h (struct tui_layout_def): Remove.
4035 (tui_layout_def): Don't declare.
4036 * tui/tui-data.c (layout_def): Remove.
4037 (tui_layout_def): Remove.
4038
4039 2019-08-13 Tom Tromey <tom@tromey.com>
4040
4041 * tui/tui-winsource.h (struct tui_source_window_base)
4042 <clear_detail>: No longer "override".
4043 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4044 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4045 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4046 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4047 Remove.
4048 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4049
4050 2019-08-13 Tom Tromey <tromey@adacore.com>
4051
4052 * tracepoint.c: Don't include readline.h or history.h.
4053
4054 2019-08-12 Tom Tromey <tom@tromey.com>
4055
4056 * configure: Rebuild.
4057 * configure.ac: Check for readline 7.
4058 * NEWS: Mention readline 7 requirement.
4059 * README: Update.
4060
4061 2019-08-12 Tom Tromey <tom@tromey.com>
4062
4063 * mingw-hdep.c (gdb_select): Remove readline hack.
4064
4065 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4066
4067 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4068 when the function fails.
4069
4070 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4071
4072 * s390-tdep.c (s390_type_align): New function.
4073 (s390_gdbarch_init): Set it as type_align gdbarch method.
4074
4075 2019-08-09 Tom de Vries <tdevries@suse.de>
4076
4077 PR gdb/24591
4078 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4079 pc_low with relocation offset.
4080
4081 2019-08-07 Tom Tromey <tromey@adacore.com>
4082
4083 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4084 (print_frame_args): Update.
4085 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4086 Update.
4087 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4088 * frame.h (struct frame_arg): Add initializers.
4089 <error>: Now a unique_xmalloc_ptr.
4090
4091 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4092
4093 * NEWS: Expand the Pointer Authentication entry.
4094 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4095 (aarch64_frame_unmask_lr): ... to this.
4096 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4097 Call aarch64_frame_unmask_lr.
4098 * frame.c (struct frame_info): Add "masked" variable.
4099 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4100 (fprint_frame): Check for masked pc.
4101 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4102 declarations.
4103 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4104 * stack.c (print_frame): Check for masked pc.
4105
4106 2019-08-06 Tom Tromey <tom@tromey.com>
4107
4108 * stabsread.c (patch_block_stabs, read_one_struct_field)
4109 (read_enum_type): Use obstack_strndup.
4110 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4111 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4112 * dwarf2read.c (guess_full_die_structure_name)
4113 (anonymous_struct_prefix): Use obstack_strndup.
4114 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4115 * c-exp.y (yylex): Use obstack_strndup.
4116 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4117 (write_var_or_type): Use obstack_strndup.
4118
4119 2019-08-06 Tom Tromey <tom@tromey.com>
4120
4121 * symfile.c (reread_symbols): Use obstack_strdup.
4122 * stabsread.c (read_type): Use obstack_strdup.
4123 * gdb_obstack.h (obstack_strdup): New overload.
4124 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4125 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4126 (dwarf2_canonicalize_name): Use obstack_strdup.
4127 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4128 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4129 Use obstack_strdup.
4130
4131 2019-08-06 Tom Tromey <tom@tromey.com>
4132
4133 * gdb_obstack.h (obstack_strdup): Define.
4134 * gdb_obstack.c (obstack_strdup): Don't define.
4135
4136 2019-08-06 Tom Tromey <tom@tromey.com>
4137
4138 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4139 obstack_strdup.
4140 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4141 obstack_strdup.
4142 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4143 * stabsread.c (common_block_start): Use obstack_strdup.
4144 * objfiles.c (set_objfile_main_name, objfile): Use
4145 obstack_strdup.
4146 * namespace.c (add_using_directive): Use obstack_strdup.
4147 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4148 * jit.c (finalize_symtab): Use obstack_strdup.
4149 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4150 (guess_partial_die_structure_name, partial_die_info::fixup)
4151 (dwarf2_name): Use obstack_strdup.
4152 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4153 obstack_strdup.
4154 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4155 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4156 obstack_strdup.
4157 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4158
4159 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4160
4161 * unittests/help-doc-selftests.c: New file.
4162 * Makefile.in: Add the new file.
4163
4164 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4165
4166 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4167 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4168 the full first line, except when FOR_VALUE_PREFIX. In this case,
4169 the trailing '.' is not output, and the first character is uppercased.
4170 (print_help_for_command): Update call to print_doc_line.
4171 (print_doc_of_command): Likewise.
4172 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4173 * cli/cli-option.c (append_indented_doc): Do not append newline.
4174 (build_help_option): Append newline after first appended_indented_doc
4175 only if a second call is done.
4176 (build_help): Append 2 new lines before each option, except the first
4177 one.
4178 * compile/compile.c (_initialize_compile): Add new lines after
4179 %OPTIONS%, when not at the end of the help.
4180 Change help doc or code
4181 producing the help doc to respect the invariants.
4182 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4183 Also removed the new line after 'Options:', as all other commands
4184 do not put an empty line between 'Options:' and the first option.
4185 * printcmd.c (_initialize_printcmd): Likewise.
4186 * stack.c (_initialize_stack): Likewise.
4187 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4188 incorrectly telling COMMAND is optional.
4189 * ada-lang.c (_initialize_ada_language): Change help doc or code
4190 producing the help doc to respect the invariants.
4191 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4192 * breakpoint.c (_initialize_breakpoint): Likewise.
4193 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4194 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4195 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4196 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4197 _initialize_cli_style): Likewise.
4198 * corelow.c (core_target_info): Likewise.
4199 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4200 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4201 * filesystem.c (_initialize_filesystem): Likewise.
4202 * frame.c (_initialize_frame): Likewise.
4203 * gnu-nat.c (add_task_commands): Likewise.
4204 * infcall.c (_initialize_infcall): Likewise.
4205 * infcmd.c (_initialize_infcmd): Likewise.
4206 * interps.c (_initialize_interpreter): Likewise.
4207 * language.c (_initialize_language): Likewise.
4208 * linux-fork.c (_initialize_linux_fork): Likewise.
4209 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4210 * maint.c (_initialize_maint_cmds): Likewise.
4211 * memattr.c (_initialize_mem): Likewise.
4212 * printcmd.c (_initialize_printcmd): Likewise.
4213 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4214 _RegEx): Likewise.
4215 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4216 * record-btrace.c (_initialize_record_btrace): Likewise.
4217 * record-full.c (_initialize_record_full): Likewise.
4218 * record.c (_initialize_record): Likewise.
4219 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4220 * regcache.c (_initialize_regcache): Likewise.
4221 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4222 _initialize_remote): Likewise.
4223 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4224 * serial.c (_initialize_serial): Likewise.
4225 * skip.c (_initialize_step_skip): Likewise.
4226 * source.c (_initialize_source): Likewise.
4227 * stack.c (_initialize_stack): Likewise.
4228 * symfile.c (_initialize_symfile): Likewise.
4229 * symtab.c (_initialize_symtab): Likewise.
4230 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4231 * top.c (init_main): Likewise.
4232 * tracefile-tfile.c (tfile_target_info): Likewise.
4233 * tracepoint.c (_initialize_tracepoint): Likewise.
4234 * tui/tui-win.c (_initialize_tui_win): Likewise.
4235 * utils.c (add_internal_problem_command): Likewise.
4236 * valprint.c (value_print_option_defs): Likewise.
4237
4238 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4239
4240 PR build/24886
4241 * configure.ac: Drop enable-libmcheck support.
4242 * configure, config.in: Rebuild.
4243 * libmcheck.m4: Remove.
4244 * acinclude.m4: Don't include it.
4245 * Makefile.in: Don't distribute it.
4246 * top.c (print_gdb_configuration): Don't mention it.
4247
4248 2019-08-06 Tom Tromey <tom@tromey.com>
4249
4250 * utils.c (set_output_style): Sometimes pass stream to
4251 emit_style_escape.
4252 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4253 * record-btrace.c (btrace_insn_history): Update.
4254 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4255 method.
4256 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4257 Update initializers.
4258 <m_uiout>: New field.
4259 <m_di>: Move lower.
4260 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4261 Remove "uiout" parameter.
4262 (dump_insns): Update.
4263 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4264 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4265
4266 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4267
4268 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4269 (error_in_psymtab_expansion): Likewise.
4270 (lookup_symbol_via_quick_fns): Likewise.
4271 (basic_lookup_transparent_type_quick): Likewise.
4272 (basic_lookup_transparent_type_1): Likewise.
4273
4274 2019-08-06 Tom Tromey <tromey@adacore.com>
4275
4276 * source.c (last_source_error): Now bool.
4277 (print_source_lines_base): Make "noprint" bool. Only open
4278 source file when last_source_visited changes.
4279
4280 2019-08-06 Tom Tromey <tromey@adacore.com>
4281
4282 * annotate.c (annotate_source_line): Use g_source_cache.
4283 * source-cache.c (source_cache::get_plain_source_lines): Change
4284 parameters. Populate m_offset_cache.
4285 (source_cache::ensure): New method.
4286 (source_cache::get_line_charpos): New method.
4287 (extract_lines): Move lower. Change parameters.
4288 (source_cache::get_source_lines): Move lower.
4289 * source-cache.h (class source_cache): Update comment.
4290 <get_line_charpos>: New method.
4291 <get_source_lines>: Update comment.
4292 <clear>: Clear m_offset_cache.
4293 <get_plain_source_lines>: Change parameters.
4294 <ensure>: New method
4295 <m_offset_cache>: New member.
4296 * source.c (forget_cached_source_info_for_objfile): Update.
4297 (info_source_command): Use g_source_cache.
4298 (find_source_lines, open_source_file_with_line_charpos): Remove.
4299 (print_source_lines_base, search_command_helper): Use g_source_cache.
4300 * source.h (open_source_file_with_line_charpos): Don't declare.
4301 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4302 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4303 Use g_source_cache.
4304
4305 2019-08-06 Tom Tromey <tromey@adacore.com>
4306
4307 * source-cache.c (source_cache::get_plain_source_lines):
4308 Remove "first_line" and "last_line" parameters.
4309 (source_cache::get_source_lines): Cache plain text.
4310 * source-cache.h (class source_cache)
4311 <get_plain_source_lines>: Update.
4312
4313 2019-08-06 Tom Tromey <tromey@adacore.com>
4314
4315 * source-cache.c (extract_lines): No longer a method.
4316 Changed type of parameter. Include final newline.
4317 (selftests::extract_lines_test): New function.
4318 (_initialize_source_cache): Likewise.
4319 * source-cache.h (class source_cache)
4320 <extract_lines>: Don't declare.
4321
4322 2019-08-06 Tom Tromey <tromey@adacore.com>
4323
4324 * breakpoint.c (init_breakpoint_sal): Update.
4325 (breakpoint): Update.
4326 * breakpoint.h (struct breakpoint) <filter>: Now a
4327 unique_xmalloc_ptr.
4328
4329 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4330
4331 * NEWS: Mention dictionary access on blocks.
4332 * python/py-block.c (blpy_getitem): New function.
4333 (block_object_as_mapping): New struct.
4334 (block_object_type): Use new struct for tp_as_mapping field.
4335
4336 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4337
4338 * objfiles.h (objfile): Add a comment describing partial symbols.
4339
4340 2019-08-05 Tom Tromey <tromey@adacore.com>
4341
4342 * compile/compile.c (_initialize_compile): Use _(), not N_().
4343 * thread.c (_initialize_thread): Use _(), not N_().
4344 * stack.c (_initialize_stack): Use _(), not N_().
4345 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4346
4347 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4348
4349 * dwarf2read.c (struct dw2_symtab_iterator):
4350 <want_specific_block>: Remove.
4351 <block_index>: Change type to gdb::optional.
4352 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4353 change type of BLOCK_INDEX parameter to gdb::optional.
4354 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4355 (dw2_lookup_symbol): Don't pass argument for
4356 WANT_SPECIFIC_BLOCK.
4357 (dw2_expand_symtabs_for_function): Don't pass argument for
4358 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4359 (class dw2_debug_names_iterator)
4360 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4361 parameter, change BLOCK_INDEX type to gdb::optional.
4362 <m_want_specific_block>: Remove.
4363 <m_block_index>: Change type to gdb::optional.
4364 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4365 gdb::optional. Re-write in function of gdb::optional.
4366 (dw2_debug_names_lookup_symbol): Don't pass argument for
4367 WANT_SPECIFIC_BLOCK.
4368 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4369 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4370 BLOCK_INDEX.
4371
4372 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4373
4374 * NEWS: Mention changes to "info sources" command.
4375
4376 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4377
4378 * symtab.c (filename_partial_match_opts): New struct type.
4379 (struct output_source_filename_data): New members
4380 regexp, c_regexp, partial_match.
4381 (output_source_filename): Use new members to decide to print file.
4382 (info_sources_option_defs): New variable.
4383 (make_info_sources_options_def_group, print_info_sources_header,
4384 info_sources_command_completer):
4385 New functions.
4386 (info_sources_command): Read new optional arguments.
4387 (_initialize_symtab): Update info sources help.
4388
4389 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4390
4391 * ada-lang.c (exception_support_info_v0): Renamed from...
4392 (default_exception_support_info): ... this. Create new
4393 definition for v1.
4394 (ada_has_this_exception_support): Look up catch_handlers_sym.
4395 (ada_exception_support_info_sniffer): Try v0 after default.
4396
4397 2019-08-01 Tom Tromey <tromey@adacore.com>
4398
4399 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4400 gdbarch.h.
4401
4402 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4403
4404 * s12z-tdep.c: Fix include path for s12z-opc.h.
4405
4406 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4407
4408 * NEWS: Require GNU make 3.82.
4409
4410 2019-07-16 Tom Tromey <tom@tromey.com>
4411
4412 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4413 declare.
4414
4415 2019-07-30 Tom Tromey <tromey@adacore.com>
4416
4417 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4418
4419 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4420
4421 * printcmd.c (print_address_symbolic): Print negative offsets.
4422 (build_address_symbolic): Force signed arithmetic when computing
4423 offset.
4424
4425 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4426
4427 PR/24474: Add a function to lookup static variables.
4428 * NEWS: Mention this new function.
4429 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4430 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4431 * python/python.c (python_GdbMethods): Add new function.
4432
4433 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4434
4435 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4436 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4437 (objfpy_lookup_static_symbol): New function.
4438 (objfile_object_methods): Add new functions.
4439
4440 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4441
4442 * NEWS: Mention 'set|show print frame-info'. Mention new
4443 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4444 backtrace argument. Mention that python frame filtering code
4445 is now consistent with what 'backtrace' command prints.
4446
4447 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4448
4449 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4450 comments.
4451 (print_frame_info_auto, print_frame_info_source_line,
4452 print_frame_info_location, print_frame_info_source_and_location,
4453 print_frame_info_location_and_address, print_frame_info_short_location):
4454 New declarations.
4455 (struct frame_print_options): New member print_frame_info.
4456 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4457 * stack.h (get_user_print_what_frame_info): New declaration.
4458 (frame_show_address): New declaration.
4459 * stack.c (print_frame_arguments_choices): New value 'presence'.
4460 (print_frame_info_auto, print_frame_info_source_line,
4461 print_frame_info_location, print_frame_info_source_and_location,
4462 print_frame_info_location_and_address, print_frame_info_short_location,
4463 print_frame_info_choices, print_frame_info_print_what): New definitions.
4464 (print_frame_args): Only print dots for args if print frame-arguments
4465 is 'presence'.
4466 (frame_print_option_defs): New element for "frame-info".
4467 (get_user_print_what_frame_info): New function.
4468 (frame_show_address): Make non static. Move comment to stack.h.
4469 (print_frame_info_to_print_what): New function.
4470 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4471 to decide what to print.
4472 (backtrace_command_1): Handle the new print_frame_arguments_presence
4473 value.
4474 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4475 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4476 (py_print_frame): In non-mi mode, use LOCATION as default for
4477 print_what, similarly to frame information printed directly by
4478 backtrace command. Handle frame-info user option in non MI mode.
4479
4480 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4481
4482 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4483 Add case for debugging 32-bit target on 64-bit host. Revise
4484 comment.
4485
4486 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4487
4488 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4489 instead of find_function_entry_range_from_pc.
4490
4491 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4492
4493 * stack.c (find_frame_funname): Remove code which preferred
4494 minsym over symtab sym in "certain pathological cases".
4495
4496 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4497 parameter. Change type of "do_demangle" to bool.
4498 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4499 Pass suitable "prefer_sym_over_minsym" flag to
4500 build_address_symbolic(). Don't output "+" for negative offsets.
4501 * printcmd.c (print_address_symbolic): Update invocation of
4502 build_address_symbolic to include a "prefer_sym_over_minsym"
4503 flag.
4504 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4505 Restrict cases in which use of minimal symbol is preferred to that
4506 of a found symbol. Update comments.
4507
4508 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4509 for entry pc when entry pc is out of range for that FDE.
4510
4511 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4512
4513 PR gdb/24839:
4514 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4515 type.
4516
4517 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4518
4519 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4520 this function's Python signature.
4521
4522
4523 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4524
4525 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4526 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4527 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4528 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4529 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4530
4531
4532 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4533
4534 * h8300-tdep.c (h8300_register_name_common): New.
4535 h8300_register_name): Use h8300_register_name_common.
4536 (h8300s_register_name): Likewise.
4537 (h8300sx_register_name): Likewise.
4538 (h8300h_register_nam): New.
4539 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4540
4541
4542 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4543
4544 * arm-tdep.c (arm_skip_cmse_entry): New function.
4545 (arm_is_sgstubs_section): New function.
4546 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4547
4548 2019-07-22 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4551 Don't self-assign.
4552
4553 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4554
4555 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4556 type_print.
4557
4558 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4559
4560 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4561 so that GDB doesn't match any msymbols when searching in the
4562 TYPES_DOMAIN.
4563 (print_symbol_info): Print using typedef_print or type_print based
4564 on the type of the symbol. Add updated FIXME comment moved from...
4565 (_initialize_symtab): ... move and update FIXME comment to above.
4566
4567 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * NEWS: Mention adding -q option to "info types".
4570 * symtab.c (struct info_types_options): New struct.
4571 (info_types_options_defs): New variable.
4572 (make_info_types_options_def_group): New function.
4573 (info_types_command): Use gdb::option framework to parse options.
4574 (info_types_command_completer): New function.
4575 (_initialize_symtab): Extend the help text on "info types" and
4576 register command completer.
4577
4578 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4579
4580 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4581 (lookup_symbol_in_objfile): Change int to block_enum and add a
4582 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4583
4584 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4585
4586 * MAINTAINERS (Write After Approval): Add self.
4587
4588 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4589
4590 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4591 instruction to the dummy code region.
4592
4593 2019-07-19 Tom Tromey <tromey@adacore.com>
4594
4595 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4596 (ARGSUSED, PARAMS, __func__): Remove rules.
4597
4598 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4599
4600 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4601 * features/arm/arm-with-iwmmxt.c: Remove.
4602 * features/arm/arm-with-iwmmxt.xml: Remove.
4603 * features/arm/arm-with-m-fpa-layout.c: Remove.
4604 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4605 * features/arm/arm-with-m-vfp-d16.c: Remove.
4606 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4607 * features/arm/arm-with-m.c: Remove.
4608 * features/arm/arm-with-m.xml: Remove.
4609 * features/arm/arm-with-neon.c: Remove.
4610 * features/arm/arm-with-neon.xml: Remove.
4611 * features/arm/arm-with-vfpv2.c: Remove.
4612 * features/arm/arm-with-vfpv2.xml: Remove.
4613 * features/arm/arm-with-vfpv3.c: Remove.
4614 * features/arm/arm-with-vfpv3.xml: Remove.
4615
4616 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4617
4618 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4619
4620 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4621
4622 * arch/aarch32.c (aarch32_create_target_description): Create
4623 target descriptions using features.
4624 * arch/arm.c (arm_create_target_description)
4625 (arm_create_mprofile_target_description): Likewise.
4626 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4627
4628 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4629
4630 * Makefile.in: Add new files.
4631 * aarch32-tdep.c: New file.
4632 * aarch32-tdep.h: New file.
4633 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4634 Call aarch32_read_description.
4635 * arch/aarch32.c: New file.
4636 * arch/aarch32.h: New file.
4637 * arch/arm.c (arm_create_target_description)
4638 (arm_create_mprofile_target_description): New function.
4639 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4640 (arm_create_target_description)
4641 (arm_create_mprofile_target_description): New declaration.
4642 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4643 read_description functions.
4644 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4645 Likewise.
4646 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4647 * arm-tdep.c (tdesc_arm_list): New variable.
4648 (arm_register_g_packet_guesses): Call create description functions.
4649 (arm_read_description) (arm_read_mprofile_description): New
4650 function.
4651 * arm-tdep.h (arm_read_description)
4652 (arm_read_mprofile_description): Add declaration.
4653 * configure.tgt: Add new files.
4654
4655 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4656
4657 * top.c (new_ui_command): Open specified terminal just once.
4658
4659 2019-07-18 Tom Tromey <tromey@adacore.com>
4660
4661 * symtab.c (main_name): Constify return type.
4662 * symfile.c (set_initial_language): Update.
4663 * symtab.h (main_name): Constify return type.
4664
4665 2019-07-17 Tom Tromey <tom@tromey.com>
4666
4667 * tui/tui-winsource.c (tui_update_source_window)
4668 (tui_update_source_window_as_is)
4669 (tui_update_source_windows_with_line): Remove return.
4670 * tui/tui-disasm.c (tui_show_disassem)
4671 (tui_show_disassem_and_update_source): Remove return.
4672 * tui/tui.c (tui_reset): Remove return.
4673 * tui/tui-wingeneral.c
4674 (tui_check_and_display_highlight_if_needed): Remove return.
4675
4676 2019-07-17 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4679
4680 2019-07-17 Tom Tromey <tom@tromey.com>
4681
4682 * tui/tui-winsource.h (struct tui_exec_info_window)
4683 (struct tui_source_window_base): Move from tui-data.h.
4684 * tui/tui-winsource.c: Move many method definitions from
4685 elsewhere. Remove "structuring" comments.
4686 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4687 (tui_source_window_base::refresh_window): Move to
4688 tui-winsource.c.
4689 * tui/tui-win.c (tui_source_window_base::refresh_all)
4690 (tui_source_window_base::update_tab_width)
4691 (tui_source_window_base::set_new_height)
4692 (tui_source_window_base::do_make_visible_with_new_height): Move to
4693 tui-winsource.c.
4694 * tui/tui-source.h: Update.
4695 * tui/tui-source.c (tui_source_window_base::reset): Move to
4696 tui-winsource.c.
4697 * tui/tui-disasm.h: Update.
4698 * tui/tui-data.h (struct tui_exec_info_window): Move to
4699 tui-winsource.h.
4700 (struct tui_source_window_base): Likewise.
4701 * tui/tui-data.c (tui_source_window_base::clear_detail)
4702 (tui_source_window_base, ~tui_source_window_base): Move to
4703 tui-winsource.c.
4704
4705 2019-07-17 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-win.c (tui_resize_all)
4708 (tui_source_window_base::update_tab_width)
4709 (tui_adjust_win_heights): Update.
4710 (tui_win_info::make_invisible_and_set_new_height): Rename from
4711 make_invisible_and_set_new_height.
4712 * tui/tui-data.h (struct tui_win_info)
4713 <make_invisible_and_set_new_height>: New method.
4714
4715 2019-07-17 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui.c: Update.
4718 * tui/tui-source.h (struct tui_source_window): Move from
4719 tui-data.h.
4720 * tui/tui-layout.c: Update.
4721 * tui/tui-disasm.c: Update.
4722 * tui/tui-data.h (struct tui_source_window): Move to
4723 tui-source.h.
4724
4725 2019-07-17 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4728 tui-data.h.
4729 * tui/tui-data.h (struct tui_disasm_window): Move to
4730 tui-disasm.h.
4731
4732 2019-07-17 Tom Tromey <tom@tromey.com>
4733
4734 * tui/tui-regs.h (struct tui_data_item_window): Move from
4735 tui-data.h.
4736 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4737 * tui/tui-data.h (struct tui_data_item_window): Move to
4738 tui-regs.h.
4739 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4740
4741 2019-07-17 Tom Tromey <tom@tromey.com>
4742
4743 * tui/tui.c: Update.
4744 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4745 (tui_cmd_window::max_height): Move to tui-command.c.
4746 * tui/tui-layout.c: Update.
4747 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4748 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4749 tui-command.c.
4750 * tui/tui-command.h (struct tui_cmd_window): Move from
4751 tui-data.h.
4752 * tui/tui-command.c: Remove "structuring" comments.
4753 (tui_cmd_window::clear_detail)
4754 (tui_cmd_window::do_make_visible_with_new_height)
4755 (tui_cmd_window::max_height): Move from elsewhere.
4756
4757 2019-07-17 Tom Tromey <tom@tromey.com>
4758
4759 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4760 Now static.
4761 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4762 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4763
4764 2019-07-17 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui.c: Update.
4767 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4768 tui-regs.c.
4769 * tui/tui-windata.h: Remove file.
4770 * tui/tui-windata.c: Remove file.
4771 * tui/tui-win.c (tui_data_window::set_new_height)
4772 (tui_data_window::do_make_visible_with_new_height): Move to
4773 tui-regs.c.
4774 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4775 * tui/tui-regs.c: Remove "structuring" comments.
4776 (tui_data_window::first_data_item_displayed)
4777 (tui_data_window::delete_data_content_windows)
4778 (tui_data_window::erase_data_content)
4779 (tui_data_window::display_all_data)
4780 (tui_data_window::refresh_all)
4781 (tui_data_window::do_scroll_vertical)
4782 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4783 (tui_data_window::do_make_visible_with_new_height)
4784 (tui_data_window::refresh_window): Move from elsewhere.
4785 (_initialize_tui_regs): Move to end of file.
4786 * tui/tui-layout.c: Update.
4787 * tui/tui-hooks.c: Update.
4788 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4789 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4790 tui-regs.c.
4791 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4792
4793 2019-07-17 Tom Tromey <tom@tromey.com>
4794
4795 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4796 seen.
4797
4798 2019-07-17 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-win.c (tui_source_window_base::set_new_height)
4801 (tui_source_window_base::do_make_visible_with_new_height): Use
4802 m_has_locator field directly.
4803 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4804 method.
4805 (struct tui_source_window_base) <has_locator>: Likewise.
4806
4807 2019-07-17 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4810 Don't declare.
4811 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4812 Remove.
4813 * tui/tui-win.c (tui_source_window_base::set_new_height)
4814 (tui_source_window_base::set_new_height)
4815 (make_invisible_and_set_new_height)
4816 (tui_source_window_base::do_make_visible_with_new_height)
4817 (tui_source_window_base::do_make_visible_with_new_height):
4818 Update.
4819 * tui/tui-layout.c (show_source_disasm_command, show_data)
4820 (show_source_or_disasm_and_command): Update.
4821 * tui/tui-layout.c (show_layout): Update.
4822
4823 2019-07-17 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui-layout.c (make_data_window): Remove.
4826 (show_data): Unify creation and re-initialization cases.
4827
4828 2019-07-17 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-layout.c (make_source_window, make_disasm_window):
4831 Remove.
4832 (show_data): Unify creation and re-initialization cases.
4833
4834 2019-07-17 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-layout.c (make_command_window): Remove.
4837 (show_source_disasm_command, show_source_or_disasm_and_command):
4838 Unify creation and re-initialization cases.
4839
4840 2019-07-17 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4843 creation and re-initialization cases.
4844
4845 2019-07-17 Tom Tromey <tom@tromey.com>
4846
4847 * tui/tui-regs.c (tui_get_register): Return void.
4848
4849 2019-07-17 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4852 Simplify.
4853
4854 2019-07-17 Tom Tromey <tom@tromey.com>
4855
4856 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4857 resetting.
4858
4859 2019-07-17 Tom Tromey <tom@tromey.com>
4860
4861 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4862 * tui/tui-regs.c (tui_reg_layout): New function.
4863 (tui_show_registers, tui_reg_command): Use it.
4864 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4865 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4866 parameters.
4867 (tui_layout_command): Remove.
4868
4869 2019-07-17 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui-layout.h (tui/tui-layout): Return void.
4872 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4873
4874 2019-07-17 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-layout.c (show_source_disasm_command, show_data):
4877 Update.
4878 (reset_locator): Remove.
4879 (show_source_or_disasm_and_command): Update.
4880
4881 2019-07-17 Tom Tromey <tom@tromey.com>
4882
4883 * tui/tui-source.c (tui_source_window_base::reset): Remove
4884 win_type parameter.
4885 * tui/tui-layout.c (make_command_window, make_source_window)
4886 (make_disasm_window, make_data_window)
4887 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4888 (reset_locator, show_source_or_disasm_and_command): Update.
4889 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4890 win_type parameter.
4891 (struct tui_source_window_base) <reset>: Likewise.
4892
4893 2019-07-17 Tom Tromey <tom@tromey.com>
4894
4895 * tui/tui-layout.c (show_source_disasm_command): Use
4896 reset_locator.
4897 (reset_locator): New function.
4898 (init_and_make_win): Remove.
4899 (show_source_or_disasm_and_command): Use reset_locator.
4900
4901 2019-07-17 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4904 condition.
4905 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4906 Remove condition.
4907 * tui/tui-source.c (tui_source_window_base::reset): New method.
4908 * tui/tui-layout.c (make_command_window): Don't call
4909 init_and_make_win.
4910 (make_source_window, make_disasm_window): Don't call
4911 make_source_or_disasm_window.
4912 (make_data_window): Don't call init_and_make_win. Change calling
4913 convention.
4914 (show_source_disasm_command, show_data): Simplify.
4915 (make_source_or_disasm_window): Remove.
4916 (show_source_or_disasm_and_command): Simplify.
4917 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4918 (struct tui_source_window_base) <reset>: Likewise.
4919 <execution_info>: Remove initializer.
4920 * tui/tui-data.c (tui_source_window_base): Initialize
4921 execution_info.
4922
4923 2019-07-17 Tom Tromey <tom@tromey.com>
4924
4925 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4926 variable.
4927
4928 2019-07-17 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui.c (tui_rl_other_window): Update.
4931 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4932 superclass method first. Always iterate over regs_content.
4933 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4934 method.
4935 * tui/tui-win.c (tui_set_focus_command): Update.
4936
4937 2019-07-17 Tom Tromey <tom@tromey.com>
4938
4939 * tui/tui-win.c (tui_set_focus_command): Rename from
4940 tui_set_focus. Call tui_enable.
4941 (tui_set_focus_command): Remove.
4942
4943 2019-07-17 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4946 refresh_window.
4947 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4948 touchwin.
4949 (tui_data_window::refresh_window): Call refresh_window on data
4950 items. Always call superclass refresh_window.
4951 (tui_win_info::refresh): Remove.
4952 (tui_source_window_base::refresh_window): Update.
4953 (tui_refresh_all): Update.
4954 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4955 refresh_window.
4956 (show_source_or_disasm_and_command): Likewise.
4957 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4958 (struct tui_source_window_base) <refresh>: Likewise.
4959
4960 2019-07-17 Tom Tromey <tom@tromey.com>
4961
4962 * tui/tui-winsource.c (tui_clear_source_content)
4963 (tui_show_source_content): Update.
4964 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4965 whether content is empty.
4966 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4967 Remove.
4968
4969 2019-07-17 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4972 window's contents.
4973 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4974 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4975
4976 2019-07-17 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4979 (struct tui_data_item_window): Update.
4980
4981 2019-07-17 Tom Tromey <tom@tromey.com>
4982
4983 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4984 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4985 defines.
4986
4987 2019-07-17 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-winsource.h (tui_erase_source_content)
4990 (tui_clear_source_content): Remove "display_prompt" parameter.
4991 * tui/tui-winsource.c (tui_update_source_window_as_is)
4992 (tui_update_source_windows_with_addr): Update.
4993 (tui_clear_source_content): Remove "display_prompt" parameter.
4994 (tui_erase_source_content): Likewise. Simplify.
4995 (tui_show_source_content): Update.
4996 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4997 * tui/tui-stack.c (tui_show_frame_info): Update.
4998 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4999 Remove defines.
5000
5001 2019-07-17 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5004 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5005 parameter.
5006 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5007 parameter.
5008
5009 2019-07-17 Tom Tromey <tom@tromey.com>
5010
5011 * tui/tui-winsource.c (tui_clear_source_content)
5012 (tui_show_source_content, tui_show_exec_info_content)
5013 (tui_clear_exec_info_content): Update.
5014 * tui/tui-stack.c (tui_show_locator_content): Update.
5015 (tui_show_frame_info): Update.
5016 * tui/tui-source.h (tui_source_window): Don't declare.
5017 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5018 from tui_source_is_displayed.
5019 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5020 Remove field.
5021 (struct tui_source_window_base) <content_in_use>: New field. Now
5022 bool.
5023 (struct tui_source_window) <showing_source_p>: New method.
5024 (TUI_SRC_WIN): Change cast.
5025 * tui/tui-data.c (tui_initialize_static_data): Update.
5026
5027 2019-07-17 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5030 location_matches_p.
5031 * tui/tui-source.c (tui_source_window::location_matches_p): New
5032 method.
5033 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5034 method.
5035 * tui/tui-data.h (struct tui_source_window_base)
5036 <location_matches_p>: New method.
5037 (struct tui_source_window, struct tui_disasm_window)
5038 <location_matches_p>: Likewise.
5039
5040 2019-07-17 Tom Tromey <tom@tromey.com>
5041
5042 * tui/tui-win.c (tui_set_win_height_command): Rename from
5043 tui_set_win_height.
5044 (tui_set_win_height_command): Remove.
5045
5046 2019-07-17 Tom Tromey <tom@tromey.com>
5047
5048 * tui/tui-source.c (tui_source_window): New constructor. Add
5049 observer.
5050 (~tui_source_window): New destructor.
5051 (tui_source_window::style_changed): New method.
5052 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5053 (tui_attach_detach_observers): Update.
5054 * tui/tui-data.h (struct tui_source_window): Make constructor not
5055 inline. Add destructor.
5056 (struct tui_source_window) <style_changed>: New method.
5057 <m_observable>: New member.
5058
5059 2019-07-17 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5062 * tui/tui-win.c (tui_resize_all): Fix typo.
5063
5064 2019-07-17 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5067 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5068 (tui_refresh_all): Remove "list" parameter. Use foreach.
5069 * tui/tui-win.c (window_name_completer): Use foreach.
5070 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5071 (update_tab_width): Likewise.
5072 * tui/tui-layout.c (show_layout): Update.
5073 * tui/tui-data.h (class tui_window_iterator): New.
5074 (struct all_tui_windows): New.
5075 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5076
5077 2019-07-17 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5080 parameter. Don't reference globals.
5081 (tui_reg_command): Update.
5082
5083 2019-07-17 Tom Tromey <tom@tromey.com>
5084
5085 * tui/tui-regs.c (tui_show_registers): Simplify.
5086
5087 2019-07-17 Tom Tromey <tom@tromey.com>
5088
5089 * tui/tui-regs.c (tui_show_registers): Update.
5090 (tui_show_register_group): Add win_info parameter.
5091
5092 2019-07-17 Tom Tromey <tom@tromey.com>
5093
5094 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5095 Rename from tui_display_reg_element_at_line.
5096 (tui_data_window::display_registers_from_line): Update.
5097 * tui/tui-data.h (struct tui_data_window)
5098 <display_reg_element_at_line>: New method.
5099
5100 2019-07-17 Tom Tromey <tom@tromey.com>
5101
5102 * tui/tui-regs.h (tui_display_registers_from)
5103 (tui_display_registers_from_line): Don't declare.
5104 * tui/tui-windata.c (tui_data_window::display_all_data)
5105 (tui_data_window::refresh_all)
5106 (tui_data_window::do_scroll_vertical): Update.
5107 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5108 from tui_display_registers_from.
5109 (tui_display_reg_element_at_line): Update.
5110 (tui_data_window::display_registers_from_line): Rename from
5111 tui_display_registers_from_line.
5112 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5113 display_registers_from_line>: New methods.
5114
5115 2019-07-17 Tom Tromey <tom@tromey.com>
5116
5117 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5118 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5119 from tui_erase_data_content.
5120 (tui_data_window::display_all_data)
5121 (tui_data_window::refresh_all)
5122 (tui_data_window::do_scroll_vertical): Update.
5123 * tui/tui-regs.c (tui_show_registers): Update.
5124 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5125 New method.
5126
5127 2019-07-17 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5130 declare.
5131 * tui/tui-windata.c
5132 (tui_data_window::delete_data_content_windows): Rename from
5133 tui_delete_data_content_windows.
5134 (tui_data_window::display_all_data)
5135 (tui_data_window::do_scroll_vertical): Update.
5136 * tui/tui-data.h (struct tui_data_window)
5137 <delete_data_content_windows>: New method.
5138
5139 2019-07-17 Tom Tromey <tom@tromey.com>
5140
5141 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5142 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5143
5144 2019-07-17 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5147 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5148 from tui_display_all_data.
5149 * tui/tui-win.c
5150 (tui_data_window::do_make_visible_with_new_height): Update.
5151 * tui/tui-regs.c (tui_show_registers): Update.
5152 * tui/tui-layout.c (tui_set_layout): Update.
5153 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5154 method.
5155
5156 2019-07-17 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5159 * tui/tui-windata.c (tui_display_data_from): Remove.
5160 (tui_data_window::refresh_all): Update.
5161
5162 2019-07-17 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5165 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5166 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5167 tui_display_registers_from_line.
5168 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5169 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5170 "force_display" parameter.
5171
5172 2019-07-17 Tom Tromey <tom@tromey.com>
5173
5174 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5175 declare.
5176 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5177 Rename from tui_first_reg_element_no_inline.
5178 (tui_display_reg_element_at_line)
5179 (tui_display_registers_from_line): Update.
5180 * tui/tui-data.h (struct tui_data_window)
5181 <first_reg_element_no_inline>: New method.
5182
5183 2019-07-17 Tom Tromey <tom@tromey.com>
5184
5185 * tui/tui-windata.c (tui_display_data_from)
5186 (tui_data_window::do_scroll_vertical): Update.
5187 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5188 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5189 Rename from tui_line_from_reg_element_no.
5190 (tui_display_registers_from_line): Update.
5191 * tui/tui-data.h (struct tui_data_window)
5192 <line_from_reg_element_no>: New method.
5193
5194 2019-07-17 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5197 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5198 tui_last_regs_line_no.
5199 (tui_display_reg_element_at_line)
5200 (tui_display_registers_from_line): Update.
5201 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5202 method.
5203
5204 2019-07-17 Tom Tromey <tom@tromey.com>
5205
5206 PR tui/24722:
5207 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5208 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5209 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5210 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5211 (tui_update_breakpoint_info): Likewise.
5212 * tui/tui-hooks.c (tui_event_create_breakpoint)
5213 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5214 Update.
5215
5216 2019-07-17 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5219
5220 2019-07-17 Tom Tromey <tom@tromey.com>
5221
5222 * tui/tui-winsource.c (tui_update_source_window_as_is)
5223 (tui_update_source_windows_with_addr): Update.
5224 * tui/tui-source.h (tui_set_source_content)
5225 (tui_show_symtab_source): Add "win_info" parameter.
5226 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5227 parameter.
5228 (tui_show_symtab_source): Likewise.
5229
5230 2019-07-17 Tom Tromey <tom@tromey.com>
5231
5232 * tui/tui-wingeneral.c
5233 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5234
5235 2019-07-17 Tom Tromey <tom@tromey.com>
5236
5237 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5238 (struct tui_cmd_window) <can_scroll>: New method.
5239 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5240 method.
5241
5242 2019-07-17 Tom Tromey <tromey@adacore.com>
5243
5244 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5245 do_field_signed>: Rename. Change type of "value".
5246 * ui-out.c (ui_out::field_signed): Rename from field_int.
5247 Change type of "value".
5248 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5249 type of "value".
5250 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5251 do_field_int. Change type of "value".
5252 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5253 do_field_int. Change type of "value".
5254 * tracepoint.c (trace_status_mi, tfind_1)
5255 (print_one_static_tracepoint_marker): Update.
5256 * thread.c (print_thread_info_1, print_selected_thread_frame):
5257 Update.
5258 * stack.c (print_frame, print_frame_info): Update.
5259 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5260 Update.
5261 * source.c (print_source_lines_base): Update.
5262 * skip.c (info_skip_command): Update.
5263 * record-btrace.c (btrace_ui_out_decode_error)
5264 (btrace_call_history_src_line): Update.
5265 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5266 Update.
5267 * progspace.c (print_program_space): Update.
5268 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5269 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5270 do_field_int. Change type of "value".
5271 * mi/mi-out.c (mi_ui_out::do_table_begin)
5272 (mi_ui_out::do_table_header): Update.
5273 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5274 type of "value".
5275 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5276 (mi_cmd_data_list_changed_registers, output_register)
5277 (mi_cmd_data_read_memory, mi_load_progress)
5278 (mi_cmd_trace_frame_collected): Update.
5279 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5280 Update.
5281 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5282 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5283 (mi_cmd_var_list_children, varobj_update_one): Update.
5284 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5285 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5286 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5287 * inferior.c (print_inferior): Update.
5288 * gdb_bfd.c (print_one_bfd): Update.
5289 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5290 Update.
5291 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5292 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5293 do_field_int. Change type of "value".
5294 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5295 do_field_int. Change type of "value".
5296 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5297 (print_one_breakpoint_location, print_it_catch_fork)
5298 (print_one_catch_fork, print_it_catch_vfork)
5299 (print_one_catch_vfork, print_it_catch_solib)
5300 (print_it_catch_exec, print_it_ranged_breakpoint)
5301 (print_mention_watchpoint, print_mention_masked_watchpoint)
5302 (bkpt_print_it, update_static_tracepoint): Update.
5303 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5304 * break-catch-syscall.c (print_it_catch_syscall): Update.
5305 * ada-tasks.c (print_ada_task_info): Update.
5306 * ada-lang.c (print_it_exception, print_mention_exception):
5307 Update.
5308
5309 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 PR breakpoints/24541
5312 * gdbarch.c: Regenerate.
5313 * gdbarch.h: Regenerate.
5314 * gdbarch.sh: Adjust return type and parameter types for
5315 'stap_adjust_register'.
5316 (i386_stap_adjust_register): Adjust signature and return new
5317 register name.
5318 * stap-probe.c (stap_parse_register_operand): Adjust use of
5319 'gdbarch_stap_adjust_register'.
5320
5321 2019-07-17 Tom Tromey <tromey@adacore.com>
5322
5323 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5324 declare VEC.
5325 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5326 std::vector.
5327 (struct s390_process_info): Add initializers.
5328 (s390_add_process): Use new.
5329 (s390_linux_nat_target::low_forget_process): Use delete.
5330 (s390_linux_nat_target::low_new_fork)
5331 (s390_linux_nat_target::stopped_by_watchpoint)
5332 (s390_linux_nat_target::low_prepare_to_resume)
5333 (s390_linux_nat_target::insert_watchpoint)
5334 (s390_linux_nat_target::insert_hw_breakpoint)
5335 (s390_linux_nat_target::remove_watchpoint)
5336 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5337
5338 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5339
5340 * aarch64-fbsd-nat.c: Include regcache.h.
5341 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5342 argument.
5343 (aarch64_fbsd_nat_target::fetch_registers)
5344 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5345 variable.
5346 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5347
5348 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5349
5350 * fbsd-nat.c: Include gdbarch.h.
5351
5352 2019-07-15 Tom Tromey <tromey@adacore.com>
5353
5354 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5355
5356 2019-07-15 Tom Tromey <tromey@adacore.com>
5357
5358 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5359 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5360 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5361 * cli-out.c (cli_ui_out::do_field_int): New method.
5362 * ui-out.c (ui_out::field_unsigned): New method.
5363 * symfile.c (generic_load): Use field_unsigned.
5364 (print_transfer_performance): Likewise.
5365 * record-btrace.c (ui_out_field_uint): Remove.
5366 (btrace_call_history_insn_range, btrace_call_history): Use
5367 field_unsigned.
5368 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5369 field_unsigned.
5370 * ui-out.h (class ui_out) <field_unsigned>: New method.
5371 <do_field_unsigned>: Likewise.
5372
5373 2019-07-15 Tom Tromey <tromey@adacore.com>
5374
5375 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5376 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5377 * target.c (flash_erase_command): Use field_string.
5378 * infrun.c (print_signal_received_reason): Use field_string.
5379 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5380 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5381 field_string.
5382 * ada-tasks.c (print_ada_task_info): Use field_string.
5383
5384 2019-07-15 Tom Tromey <tromey@adacore.com>
5385
5386 * target.c (flash_erase_command): Use field_core_addr.
5387 * symfile.c (generic_load): Use field_core_addr.
5388 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5389 Use field_core_addr.
5390 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5391 field_core_addr.
5392
5393 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5394
5395 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5396 value if its desired type is smaller than a CORE_ADDR and signed.
5397
5398 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5401 of changes to field names, and use new is_reference field to
5402 decide if a property is a reference or not.
5403 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5404 field.
5405 (struct dwarf2_property_baton): Update header comment, rename
5406 'referenced_type' to 'property_type' and update comments.
5407 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5408 default property type, store in property baton, update to take
5409 accound of renamed field.
5410 (read_func_scope): Update call to attr_to_dynamic_prop.
5411 (read_array_type): Likewise.
5412 (dwarf2_per_cu_addr_sized_int_type): New function.
5413 (read_subrange_index_type): Move type finding code to
5414 dwarf2_per_cu_addr_sized_int_type.
5415 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5416 (dwarf2_per_cu_addr_type): New function.
5417 (set_die_type): Update calls to attr_to_dynamic_prop.
5418
5419 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * dwarf2read.c (read_subrange_index_type): New function.
5422 (read_subrange_type): Move code into new function and call it.
5423 * gdbtypes.c (create_range_type): Add some asserts.
5424
5425 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5426
5427 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5428 update return statements.
5429 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5430 declaration, and update comment to match.
5431 * gdbtypes.c (resolve_dynamic_array): Update call to
5432 dwarf2_evaluate_property to match new return type.
5433
5434 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * valarith.c (value_subscripted_rvalue): Change lowerbound
5437 parameter type from int to LONGEST.
5438 * value.h (value_subscripted_rvalue): Likewise in declaration.
5439
5440 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5441
5442 * cli/cli-utils.c (info_print_command_completer): New function.
5443 * cli/cli-utils.h: Add 'completer.h' include, and forward
5444 declaration for 'struct cmd_list_element'.
5445 (info_print_command_completer): Declare.
5446 * stack.c (_initialize_stack): Add completer for 'info locals' and
5447 'info args'.
5448 * symtab.c (_initialize_symtab): Add completer for 'info
5449 variables' and 'info functions'.
5450 * NEWS: Mention completion for additional info commands.
5451
5452 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5453
5454 * cli/cli-utils.c (extract_info_print_args): Delete.
5455 (extract_arg_maybe_quoted): Delete.
5456 (info_print_options_defs): New variable.
5457 (make_info_print_options_def_group): New function.
5458 (extract_info_print_options): Define new function.
5459 * cli/cli-utils.h (extract_info_print_args): Delete.
5460 (struct info_print_options): New structure.
5461 (extract_info_print_options): Declare new function.
5462 * stack.c (info_locals_command): Update to use new
5463 extract_info_print_options, also add a header comment.
5464 (info_args_command): Likewise.
5465 * symtab.c (info_variables_command): Likewise.
5466 (info_functions_command): Likewise.
5467
5468 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5471 to extract string arguments.
5472 * common/common-utils.c (extract_string_maybe_quoted): New function.
5473 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5474
5475 2019-07-11 Tom Tromey <tromey@adacore.com>
5476
5477 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5478 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5479 * top.h (gdbinit): Don't declare.
5480 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5481 into...
5482 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5483 * top.c (gdb_init): Don't call init_cli_cmds.
5484 (gdbinit): Remove.
5485 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5486
5487 2019-07-11 Tom Tromey <tromey@adacore.com>
5488
5489 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5490 after it has been moved.
5491
5492 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5493
5494 * valops.c (value_must_coerce_to_target): Change return type to
5495 bool.
5496 * value.h (value_must_coerce_to_target): Likewise.
5497
5498 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5499
5500 * breakpoint.c (is_hardware_watchpoint): Remove
5501 forward-declaration.
5502 (is_masked_watchpoint): Change return type to bool.
5503 (is_tracepoint): Likewise.
5504 (is_breakpoint): Likewise.
5505 (is_hardware_watchpoint): Likewise.
5506 (is_watchpoint): Likewise.
5507 (is_no_memory_software_watchpoint): Likewise.
5508 (is_catchpoint): Likewise.
5509 (breakpoint_1): Make FILTER parameter's return type bool.
5510 is_masked_watchpoint): Change return type to bool.
5511 (save_breakpoints): Make FILTER parameter's return type bool.
5512 * breakpoint.h (is_breakpoint): Change return type to bool.
5513 (is_watchpoint): Likewise.
5514 (is_catchpoint): Likewise.
5515 (is_tracepoint): Likewise.
5516
5517 2019-07-10 Tom Tromey <tom@tromey.com>
5518
5519 * defs.h: Don't include gdbarch.h.
5520 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5521 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5522 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5523 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5524 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5525 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5526 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5527 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5528 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5529 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5530 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5531 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5532 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5533 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5534 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5535 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5536 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5537 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5538 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5539 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5540 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5541 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5542 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5543 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5544 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5545 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5546 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5547
5548 2019-07-10 Tom Tromey <tromey@adacore.com>
5549
5550 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5551 * breakpoint.c (init_ada_exception_breakpoint): Register as
5552 bp_catchpoint.
5553 (print_one_breakpoint_location, print_one_breakpoint): Use
5554 is_ada_exception_catchpoint.
5555 * ada-lang.c (class ada_catchpoint_location): Pass
5556 bp_loc_software_breakpoint to bp_location constructor.
5557 (is_ada_exception_catchpoint): New function.
5558
5559 2019-07-10 Tom Tromey <tromey@adacore.com>
5560
5561 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5562 VEC.
5563 (struct arm_exidx_entry): New method operator<.
5564 (struct arm_exidx_data) <section_maps>: Change type.
5565 (arm_exidx_data_free): Remove.
5566 (arm_exidx_data_key): Change type. Move lower.
5567 (arm_exidx_new_objfile): Update.
5568 (arm_compare_exidx_entries): Remove.
5569 (arm_find_exidx_entry, _initialize_arm_tdep)
5570
5571 2019-07-10 Tom Tromey <tromey@adacore.com>
5572
5573 * solib-spu.c (ocl_program_data_key): Change type.
5574 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5575 Update.
5576
5577 2019-07-10 Tom Tromey <tromey@adacore.com>
5578
5579 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5580 (struct solib_aix_inferior_data) <library_list>: Change type.
5581 (solib_aix_inferior_data_handle): Change type.
5582 (get_solib_aix_inferior_data): Update.
5583 (solib_aix_free_library_list): Remove.
5584 (library_list_start_library): Update.
5585 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5586 return type.
5587 (solib_aix_get_library_list)
5588 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5589 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5590
5591 2019-07-10 Tom Tromey <tromey@adacore.com>
5592
5593 * solib-dsbt.c (struct dsbt_info): Add initializers.
5594 (solib_dsbt_pspace_data): Change type.
5595 (dsbt_pspace_data_cleanup): Remove.
5596 (get_dsbt_info, _initialize_dsbt_solib): Update.
5597
5598 2019-07-10 Tom Tromey <tromey@adacore.com>
5599
5600 * spu-tdep.c (spu_overlay_data): Change type.
5601 (spu_get_overlay_table, spu_overlay_new_objfile)
5602 (_initialize_spu_tdep): Update.
5603
5604 2019-07-10 Tom Tromey <tromey@adacore.com>
5605
5606 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5607 destructor.
5608 (dbx_objfile_data_key): Change type and declare later.
5609 (DBX_SYMFILE_INFO): Rewrite.
5610 * dbxread.c (dbx_objfile_data_key): Change type.
5611 (dbx_symfile_init): Update.
5612 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5613 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5614 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5615
5616 2019-07-10 Tom Tromey <tromey@adacore.com>
5617
5618 * jit.c (jit_program_space_key): Change type. Move lower.
5619 (get_jit_program_space_data): Update.
5620 (jit_program_space_data_cleanup): Remove.
5621 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5622 Update.
5623 (struct jit_program_space_data): Add initializers.
5624
5625 2019-07-10 Tom Tromey <tromey@adacore.com>
5626
5627 * solib-darwin.c (struct darwin_info): Add initializers.
5628 (solib_darwin_pspace_data): Change type.
5629 (darwin_pspace_data_cleanup): Remove.
5630 (get_darwin_info, _initialize_darwin_solib): Update.
5631
5632 2019-07-10 Tom Tromey <tromey@adacore.com>
5633
5634 * remote-sim.c (struct sim_inferior_data): Add initializers,
5635 constructor, and destructor.
5636 (sim_inferior_data_key): Change type. Move lower.
5637 (check_for_duplicate_sim_descriptor): Update.
5638 (get_sim_inferior_data): Use new. Update.
5639 (~sim_inferior_data_cleanup): Rename from
5640 sim_inferior_data_cleanup. Simplify.
5641 (gdbsim_close_inferior, simulator_command)
5642 (sim_command_completer, _initialize_remote_sim): Update.
5643 (next_pid, INITIAL_PID): Move earlier.
5644
5645 2019-07-10 Tom Tromey <tromey@adacore.com>
5646
5647 * python/python-internal.h (create_thread_object): Return
5648 gdbpy_ref.
5649 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5650 * python/py-inferior.c (struct threadlist_entry): Add
5651 constructor.
5652 <thread_obj>: Now a gdbpy_ref.
5653 (thread_to_thread_object): Update.
5654 (add_thread_object): Use new.
5655 (delete_thread_object): Use delete.
5656 (infpy_threads): Update.
5657 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5658 GIL.
5659
5660 2019-07-10 Tom Tromey <tromey@adacore.com>
5661
5662 * valops.c (value_cast): Specialize error message for Ada.
5663
5664 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5665
5666 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5667
5668 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5669
5670 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5671 bpstat_should_step): Return bool, adjust comments.
5672 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5673 bpstat_should_step): Likewise.
5674
5675 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5676
5677 * features/Makefile: Use feature target descriptions for Arm.
5678 * features/arm/arm-core.c: Generate new file.
5679 * features/arm/arm-fpa.c: Likewise.
5680 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5681 * features/arm/arm-m-profile.c: Likewise.
5682 * features/arm/arm-vfpv2.c: Likewise.
5683 * features/arm/arm-vfpv3.c: Likewise.
5684 * features/arm/xscale-iwmmxt.c: Likewise.
5685 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5686
5687 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5688
5689 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5690 ptrace earlier.
5691
5692 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5693
5694 * features/aarch64-pauth.c: Regenerate.
5695
5696 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5699 bool.
5700 (bpstat_what): Use false instead of 0.
5701
5702 2019-07-09 Pedro Alves <palves@redhat.com>
5703
5704 * break-catch-throw.c (is_exception_catchpoint): New.
5705 * breakpoint.c (print_one_breakpoint_location): New parameter
5706 'raw_loc'. Handle it. Use
5707 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5708 looking at the breakpoint's type.
5709 (print_one_breakpoint): If handling "maint info breakpoints", also
5710 print locations of exception catchpoints.
5711 * breakpoint.h (is_exception_catchpoint): Declare.
5712
5713 2019-07-09 Pedro Alves <palves@redhat.com>
5714
5715 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5716 "addr" field.
5717 (allocate_location_exception_catchpoint): New.
5718 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5719 (initialize_throw_catchpoint_ops): Install
5720 allocate_location_exception_catchpoint as allocate_location
5721 method.
5722 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5723 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5724 bp_loc_other.
5725 (breakpoint_address_is_meaningful): Delete.
5726 (bl_address_is_meaningful): New.
5727 (breakpoint_locations_match): Adjust comment.
5728 (bp_location_from_bp_type): New, factored out of...
5729 (bp_location::bp_location(breakpoint *)): ... this.
5730 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5731 factored out of...
5732 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5733 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5734 breakpoint_address_is_meaningful.
5735 (bp_locations_compare): Adjust comment.
5736 (update_global_location_list): Use bl_address_is_meaningful
5737 instead of breakpoint_address_is_meaningful.
5738 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5739 explicit.
5740 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5741 * python/py-breakpoint.c (bppy_get_location): No longer check
5742 whether location is null.
5743
5744 2019-07-09 Pedro Alves <palves@redhat.com>
5745
5746 PR c++/15468
5747 * breakpoint.c (print_one_breakpoint_location): Remove
5748 single-location assert.
5749
5750 2019-07-09 Tom Tromey <tom@tromey.com>
5751
5752 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5753 * configure: Rebuild.
5754 * configure.ac: Change common to gdbsupport.
5755 * gdbsupport: Rename from common.
5756 * acinclude.m4: Change common to gdbsupport.
5757 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5758 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5759 gdbsupport.
5760 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5761 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5762 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5763 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5764 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5765 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5766 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5767 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5768 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5769 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5770 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5771 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5772 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5773 coff-pe-read.c, command.h, compile/compile-c-support.c,
5774 compile/compile-c.h, compile/compile-cplus-symbols.c,
5775 compile/compile-cplus-types.c, compile/compile-cplus.h,
5776 compile/compile-loc2c.c, compile/compile.c, completer.c,
5777 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5778 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5779 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5780 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5781 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5782 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5783 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5784 features/aarch64-core.c, features/aarch64-fpu.c,
5785 features/aarch64-pauth.c, features/aarch64-sve.c,
5786 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5787 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5788 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5789 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5790 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5791 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5792 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5793 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5794 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5795 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5796 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5797 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5798 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5799 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5800 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5801 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5802 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5803 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5804 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5805 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5806 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5807 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5808 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5809 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5810 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5811 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5812 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5813 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5814 minsyms.c, mips-linux-tdep.c, namespace.h,
5815 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5816 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5817 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5818 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5819 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5820 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5821 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5822 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5823 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5824 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5825 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5826 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5827 procfs.c, producer.c, progspace.h, psymtab.h,
5828 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5829 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5830 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5831 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5832 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5833 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5834 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5835 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5836 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5837 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5838 target-memory.c, target.c, target.h, target/waitstatus.c,
5839 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5840 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5841 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5842 unittests/array-view-selftests.c,
5843 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5844 unittests/common-utils-selftests.c,
5845 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5846 unittests/format_pieces-selftests.c,
5847 unittests/function-view-selftests.c,
5848 unittests/lookup_name_info-selftests.c,
5849 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5850 unittests/mkdir-recursive-selftests.c,
5851 unittests/observable-selftests.c,
5852 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5853 unittests/parse-connection-spec-selftests.c,
5854 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5855 unittests/scoped_fd-selftests.c,
5856 unittests/scoped_mmap-selftests.c,
5857 unittests/scoped_restore-selftests.c,
5858 unittests/string_view-selftests.c, unittests/style-selftests.c,
5859 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5860 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5861 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5862 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5863 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5864 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5865
5866 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5867
5868 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5869 bool value.
5870 (decode_digits_ordinary): Set explicit_line field in sal.
5871 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5872 symtab_and_line that was set on an explicit line number in
5873 assembler code. Do always update the recorded symtab and line if
5874 we do skip the prologue.
5875
5876 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5877
5878 * breakpoint.c (set_breakpoint_location_function): Remove
5879 explicit_loc parameter.
5880 (momentary_breakpoint_from_master): Update call to
5881 set_breakpoint_location_function.
5882 (add_location_to_breakpoint): Likewise.
5883
5884 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5885
5886 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5887 required features based on default bfd type when no specific bfd
5888 is present.
5889
5890 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5891
5892 * NEWS: Mention that GDB printf and eval commands can now print
5893 C-style and Ada-style convenience var strings without
5894 calling the inferior.
5895 * printcmd.c (printf_c_string): Locally print GDB internal var
5896 instead of transiting via the inferior.
5897 (printf_wide_c_string): Likewise.
5898
5899 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5900
5901 PR breakpoints/25011
5902 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5903
5904 2019-07-04 Tom Tromey <tom@tromey.com>
5905
5906 PR tui/24724:
5907 * tui/tui-winsource.c (tui_clear_source_content): Update.
5908 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5909 (tui_update_breakpoint_info): Update.
5910 (tui_set_exec_info_content): Update.
5911 * tui/tui-source.c (tui_set_source_content_nil): Update.
5912 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5913 has_break.
5914 * tui/tui-data.h (enum tui_bp_flag): New.
5915 (tui_bp_flags): New enum flags type.
5916 (struct tui_source_element) <break_mode>: Change type. Rename
5917 from has_break.
5918 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5919 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5920 constants.
5921 * tui/tui-winsource.h: Fix comment.
5922
5923 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5924
5925 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5926 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5927 (store_fpregs_to_thread)
5928 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5929 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5930 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5931 (IWMMXT_REGS_SIZE): Add define.
5932 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5933 (fetch_vfp_regs, store_vfp_regs)
5934 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5935 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5936
5937 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5938
5939 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5940 defines.
5941 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5942 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5943 (ARM_INT_REGISTER_SIZE): ...to this.
5944 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5945 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5946 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5947 (arm_linux_collect_gregset, supply_nwfpe_register)
5948 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5949 defines.
5950 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5951 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5952 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5953 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5954 (arm_return_in_memory, arm_store_return_value)
5955 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5956 (arm_record_ld_st_multiple): Likewise.
5957 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5958 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5959
5960 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5961
5962 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5963 AARCH64_DISPLACED_MODIFIED_INSNS.
5964 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5965 (aarch64_displaced_step_copy_insn): Likewise.
5966 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5967 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5968 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5969 ARM_DISPLACED_MODIFIED_INSNS.
5970 * arm-tdep.c (arm_gdbarch_init): Likewise.
5971 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5972 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5973 (struct arm_displaced_step_closure): Use
5974 ARM_DISPLACED_MODIFIED_INSNS.
5975
5976 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5977
5978 * features/Makefile: Remove unused xml files.
5979 * features/aarch64.xml: Remove.
5980 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5981 * features/i386/amd64-avx-avx512.xml: Remove.
5982 * features/i386/amd64-avx-linux.xml: Remove.
5983 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5984 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5985 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5986 * features/i386/amd64-avx-mpx.xml: Remove.
5987 * features/i386/amd64-avx.xml: Remove.
5988 * features/i386/amd64-linux.xml: Remove.
5989 * features/i386/amd64-mpx-linux.xml: Remove.
5990 * features/i386/amd64-mpx.xml: Remove.
5991 * features/i386/amd64.xml: Remove.
5992 * features/i386/i386-avx-avx512-linux.xml: Remove.
5993 * features/i386/i386-avx-avx512.xml: Remove.
5994 * features/i386/i386-avx-linux.xml: Remove.
5995 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5996 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5997 * features/i386/i386-avx-mpx-linux.xml: Remove.
5998 * features/i386/i386-avx-mpx.xml: Remove.
5999 * features/i386/i386-avx.xml: Remove.
6000 * features/i386/i386-linux.xml: Remove.
6001 * features/i386/i386-mmx-linux.xml: Remove.
6002 * features/i386/i386-mmx.xml: Remove.
6003 * features/i386/i386-mpx-linux.xml: Remove.
6004 * features/i386/i386-mpx.xml: Remove.
6005 * features/i386/i386.xml: Remove.
6006 * features/i386/x32-avx-avx512-linux.xml: Remove.
6007 * features/i386/x32-avx-linux.xml: Remove.
6008 * features/i386/x32-linux.xml: Remove.
6009
6010 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6011
6012 * regformats/aarch64.dat: Remove.
6013 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6014 * regformats/i386/amd64-avx-linux.dat: Remove.
6015 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6016 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6017 * regformats/i386/amd64-linux.dat: Remove.
6018 * regformats/i386/amd64-mpx-linux.dat: Remove.
6019 * regformats/i386/amd64.dat: Remove.
6020 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6021 * regformats/i386/i386-avx-linux.dat: Remove.
6022 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6023 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6024 * regformats/i386/i386-linux.dat: Remove.
6025 * regformats/i386/i386-mmx-linux.dat: Remove.
6026 * regformats/i386/i386-mpx-linux.dat: Remove.
6027 * regformats/i386/i386.dat: Remove.
6028 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6029 * regformats/i386/x32-avx-linux.dat: Remove.
6030 * regformats/i386/x32-linux.dat: Remove.
6031
6032 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6033
6034 * aarch64-tdep.c: Remove xml self tests.
6035 * amd64-linux-tdep.c: Likewise.
6036 * amd64-tdep.c: Likewise.
6037 * i386-linux-tdep.c: Likewise.
6038 * i386-tdep.c: Likewise.
6039
6040 2019-07-03 Pedro Alves <palves@redhat.com>
6041
6042 PR cli/24732
6043 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6044 (pipe_cmd_option_defs): New.
6045 (make_pipe_cmd_options_def_group): New.
6046 (pipe_command): Use gdb::option::process_options.
6047 (pipe_command_completer): New function.
6048 (_initialize_cli_cmds): Install completer for "pipe" command.
6049
6050 2019-07-03 Pedro Alves <palves@redhat.com>
6051
6052 * cli/cli-option.c (union option_value) <string>: New field.
6053 (struct option_def_and_value): Add ctor, move ctor, dtor and
6054 use DISABLE_COPY_AND_ASSIGN.
6055 (option_def_and_value::clear_value): New.
6056 (parse_option, save_option_value_in_ctx, get_val_type_str)
6057 (add_setshow_cmds_for_options): Handle var_string.
6058 * cli-option.h (union option_def::var_address) <string>: New
6059 field.
6060 (struct string_option_def): New.
6061 * maint-test-options.c (struct test_options_opts): Add default
6062 ctor and use DISABLE_COPY_AND_ASSIGN.
6063 <string_opt>: New field.
6064 (test_options_opts::~test_options_opts): New.
6065 (test_options_opts::dump): Also dump "-string".
6066 (test_options_option_defs): Install "string.
6067
6068 2019-07-03 Pedro Alves <palves@redhat.com>
6069
6070 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6071 option_value with a null enumeration.
6072 (complete_options): Save the option values in the context.
6073 (save_option_value_in_ctx): New, factored out from ...
6074 (process_options): ... here.
6075 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6076 of the function.
6077 * maint-test-options.c (test_options_opts::dump): New, factored
6078 out from ...
6079 (maintenance_test_options_command_mode): ... here.
6080 (maintenance_test_options_command_completion_result): Delete.
6081 (maintenance_test_options_command_completion_text): Update
6082 comment.
6083 (maintenance_show_test_options_completion_result): Change
6084 prototype. Just print
6085 maintenance_test_options_command_completion_text.
6086 (save_completion_result): New.
6087 (maintenance_test_options_completer_mode): Pass options context to
6088 complete_options, and then save a dump.
6089 (_initialize_maint_test_options): Use add_cmd to install "maint
6090 show test-options-completion-result".
6091
6092 2019-07-03 Pedro Alves <palves@redhat.com>
6093
6094 * NEWS (New commands): Mention "with" and "maint with".
6095 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6096 (with_command, with_command_completer): New.
6097 (pipe_command): Adjust to new repeat_previous
6098 interface.
6099 (_initialize_cli_cmds): Install the "with" command and its "w"
6100 alias.
6101 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6102 declarations.
6103 * cli/cli-setshow.c (parse_cli_var_uinteger)
6104 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6105 argument strings for all var_types.
6106 (get_setshow_command_value_string): New, factored out from ...
6107 (do_show_command): ... this.
6108 * cli/cli-setshow.h: Include <string>.
6109 (get_setshow_command_value_string): Declare.
6110 * command.h (repeat_previous): Now returns const char *. Adjust
6111 comment.
6112 * maint.c: Include "cli/cli-cmds.h".
6113 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6114 (_initialize_maint_cmds): Register the "maintenance with" command.
6115 * top.c (repeat_previous): Move bits from pipe_command here:
6116 Return the saved command line, if any; error out if there's no
6117 command to relaunch.
6118
6119 2019-07-03 Pedro Alves <palves@redhat.com>
6120
6121 * NEWS (New commands): Mention "maint set/show test-settings"
6122 instead of "maint test-settings".
6123 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6124 (maintenance_test_settings_set_list): Rename to ...
6125 (maintenance_set_test_settings_list): ... this.
6126 (maintenance_test_settings_show_list): Rename to ...
6127 (maintenance_show_test_settings_list): ... this.
6128 (maintenance_test_settings_cmd): Delete.
6129 (maintenance_test_settings_set_cmd): ...
6130 (maintenance_set_test_settings_cmd): ... this.
6131 (maintenance_test_settings_show_cmd): ...
6132 (maintenance_show_test_settings_cmd): ... this.
6133 (maintenance_test_settings_show_value_cmd):
6134 (maintenance_show_test_settings_value_cmd): ... this.
6135 (_initialize_maint_test_settings): No longer install the "maint
6136 test-settings" prefix command. Rename "maint test-settings set"
6137 to "maint set test-settings", and "maint test-settings show" to
6138 "maint show test-settings". Adjust all subcommands.
6139
6140 2019-07-03 Pedro Alves <palves@redhat.com>
6141
6142 * maint-test-settings.c: Fix file's intro comment. Replace all
6143 references to "test-options" with references to "test-settings",
6144 in comments.
6145
6146 2019-07-03 Pedro Alves <palves@redhat.com>
6147
6148 * maint-test-settings.c (maintenance_test_settings_xxx)
6149 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6150 New.
6151 (maintenance_test_settings_enums): Use them.
6152 (maintenance_test_settings_enum): Default to
6153 maintenance_test_settings_xxx.
6154 (_initialize_maint_test_settings): Initialize
6155 MAINTENANCE_TEST_SETTINGS_FILENAME.
6156
6157 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * breakpoint.h (remove_breakpoints_inf): Change return type to
6160 void, move function documentation here.
6161 * breakpoint.c (remove_breakpoints_inf): Change return type to
6162 void, move function documentation to header.
6163
6164 2019-07-02 Pedro Alves <palves@redhat.com>
6165
6166 * NEWS (Completion improvements): Mention "info threads".
6167 * thread.c (struct info_threads_opts, info_threads_option_defs)
6168 (make_info_threads_options_def_group): New.
6169 (info_threads_command): Use gdb::option::process_options.
6170 (info_threads_command_completer): New.
6171 (_initialize_thread): Use gdb::option::build_help to build the
6172 help text for "info threads".
6173
6174 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * defs.h (generic_load): Move from here...
6177 * symfile.h (generic_load): ... to here. Rename name parameter
6178 to args.
6179 * symfile.c (generic_load): Add comment.
6180
6181 2019-07-01 Tom Tromey <tromey@adacore.com>
6182
6183 * dwarf2read.c
6184 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6185 declaration of without_params. Fix formatting.
6186
6187 2019-07-01 Tom Tromey <tromey@adacore.com>
6188
6189 * ada-exp.y (find_primitive_type): Update.
6190 * ada-lang.h (ada_lookup_symbol): Update.
6191 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6192 parameter.
6193 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6194
6195 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6196
6197 PR breakpoints/24541
6198 * gdbarch.c: Regenerate.
6199 * gdbarch.h: Regenerate.
6200 * gdbarch.sh: Add 'stap_adjust_register'.
6201 * i386-tdep.c: Include '<unordered_set>'.
6202 (i386_stap_adjust_register): New function.
6203 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6204 * stap-probe.c (stap_parse_register_operand): Call
6205 'gdbarch_stap_adjust_register'.
6206
6207 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6208
6209 PR python/24742
6210 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6211 * python/python.c (do_start_initialization): Use 'xmalloc'
6212 instead of 'PyMem_Malloc'.
6213
6214 2019-06-28 Tom Tromey <tromey@adacore.com>
6215
6216 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6217 for Ada.
6218
6219 2019-06-27 Tom Tromey <tromey@adacore.com>
6220
6221 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6222 objfile_key.
6223 (arm_find_mapping_symbol, arm_record_special_symbol)
6224 (_initialize_arm_tdep): Update.
6225 (arm_objfile_data_free): Remove.
6226
6227 2019-06-27 Tom Tromey <tromey@adacore.com>
6228
6229 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6230 to cp_print_static_field.
6231
6232 2019-06-26 Tom Tromey <tromey@adacore.com>
6233
6234 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6235 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6236 declare.
6237
6238 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6239
6240 * features/aarch64-core.c (create_feature_aarch64_core):
6241 Regenerate.
6242 * features/aarch64-core.xml: Add cpsr flags.
6243
6244 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6245
6246 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6247 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6248
6249 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6250
6251 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6252 field.
6253 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6254 use.
6255 (arm_record_special_symbol): Don't insert new symbol in sorted
6256 position, push it at the end.
6257
6258 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6261 (arm_mapping_symbol_s): Remove.
6262 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6263 (arm_mapping_symbol_vec): New typedef.
6264 (struct arm_per_objfile): Add constructor.
6265 <section_maps>: Change type to
6266 std::unique_ptr<arm_mapping_symbol_vec[]>.
6267 (arm_compare_mapping_symbols): Remove.
6268 (arm_find_mapping_symbol): Adjust to section_maps type change.
6269 (arm_objfile_data_free): Call delete on arm_per_objfile.
6270 (arm_record_special_symbol): Adjust to section_maps type change.
6271 Allocate arm_per_objfile with new.
6272
6273 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6274
6275 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6276 with the command prefix.
6277
6278 2019-06-25 Tom Tromey <tom@tromey.com>
6279
6280 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6281 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6282
6283 2019-06-25 Tom Tromey <tom@tromey.com>
6284
6285 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6286 type.
6287 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6288 protected.
6289
6290 2019-06-25 Tom Tromey <tom@tromey.com>
6291
6292 * tui/tui-winsource.c
6293 (tui_source_window_base::set_is_exec_point_at): Add check against
6294 LOA_ADDRESS.
6295
6296 2019-06-25 Tom Tromey <tom@tromey.com>
6297
6298 * tui/tui-source.c (tui_set_source_content): Don't check before
6299 xfree.
6300 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6301
6302 2019-06-25 Tom Tromey <tom@tromey.com>
6303
6304 * tui/tui-winsource.h (tui_update_source_window_as_is)
6305 (tui_alloc_source_buffer, tui_line_is_displayed)
6306 (tui_addr_is_displayed): Change type of win_info.
6307 * tui/tui-winsource.c (tui_update_source_window_as_is)
6308 (tui_clear_source_content, tui_show_source_line)
6309 (tui_show_source_content, tui_source_window_base::refill)
6310 (tui_source_window_base::set_is_exec_point_at)
6311 (tui_source_window_base::set_is_exec_point_at)
6312 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6313 (tui_alloc_source_buffer, tui_line_is_displayed)
6314 (tui_addr_is_displayed): Change type of win_info. Update.
6315 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6316 (tui_source_window_base::do_make_visible_with_new_height):
6317 Update.
6318 * tui/tui-source.c (tui_set_source_content)
6319 (tui_set_source_content_nil)
6320 (tui_source_window::do_scroll_vertical): Update.
6321 * tui/tui-layout.c (show_layout): Update.
6322 * tui/tui-disasm.c (tui_set_disassem_content)
6323 (tui_disasm_window::do_scroll_vertical): Update.
6324 * tui/tui-data.h (tui_win_content): Remove.
6325 (struct tui_gen_win_info) <content, content_size>: Remove.
6326 (struct tui_source_element): Add initializers and destructor.
6327 (union tui_which_element, struct tui_win_element): Remove.
6328 (struct tui_source_window_base) <content>: New field.
6329 (struct tui_data_window): Remove destructor.
6330 (tui_alloc_content, tui_free_win_content)
6331 (tui_free_all_source_wins_content): Don't declare.
6332 * tui/tui-data.c (tui_initialize_static_data): Update.
6333 (init_content_element, tui_alloc_content): Remove.
6334 (~tui_gen_win_info): Update.
6335 (~tui_data_window, tui_free_all_source_wins_content)
6336 (tui_free_win_content, free_content, free_content_elements):
6337 Remove.
6338
6339 2019-06-25 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui-winsource.h (tui_clear_source_content)
6342 (tui_erase_source_content, tui_show_source_content): Change type
6343 of win_info.
6344 * tui/tui-winsource.c (tui_clear_source_content)
6345 (tui_erase_source_content, tui_show_source_content): Change type
6346 of win_info.
6347 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6348 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6349 win_info.
6350 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6351 win_info.
6352 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6353
6354 2019-06-25 Tom Tromey <tom@tromey.com>
6355
6356 * tui/tui-winsource.c (tui_clear_source_content)
6357 (tui_source_window_base::set_is_exec_point_at): Update.
6358 * tui/tui-source.c (tui_set_source_content_nil): Update.
6359 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6360 a bool.
6361 * tui/tui-data.c (init_content_element): Update.
6362
6363 2019-06-25 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6366 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6367 * tui/tui-layout.c (init_and_make_win): Update.
6368 * tui/tui.h (enum tui_win_type): Update.
6369 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6370 tui_win_is_auxillary.
6371 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6372 tui_win_is_auxillary.
6373
6374 2019-06-25 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6377 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6378 (tui_delete_data_content_windows, tui_display_all_data)
6379 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6380 Update.
6381 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6382 * tui/tui-regs.c (tui_last_regs_line_no)
6383 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6384 (tui_show_registers): Update.
6385 (tui_show_register_group): Return void. Update.
6386 (tui_display_registers_from, tui_display_reg_element_at_line)
6387 (tui_display_registers_from_line, tui_check_register_values):
6388 Update.
6389 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6390 member.
6391 (struct tui_data_window) <regs_content>: Now a std::vector.
6392 <regs_content_count>: Remove.
6393 (tui_add_content_elements, tui_free_data_content): Don't declare.
6394 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6395 (init_content_element): Remove DATA_WIN case. Add assert.
6396 (tui_add_content_elements): Remove.
6397 (tui_data_window): Update.
6398 (tui_free_data_content): Remove.
6399 (free_content_elements): Remove DATA_WIN case.
6400
6401 2019-06-25 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-data.c (tui_data_item_window): Update.
6404 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6405 * tui/tui-windata.c (tui_display_all_data)
6406 (tui_display_data_from_line): Update.
6407 (tui_check_data_values): Remove.
6408 * tui/tui-regs.c (tui_show_register_group)
6409 (tui_display_reg_element_at_line): Update.
6410 * tui/tui-hooks.c (tui_register_changed)
6411 (tui_refresh_frame_and_register_information): Call
6412 tui_check_register_values.
6413 * tui/tui-data.h (struct tui_data_window) <data_content,
6414 data_content_count, data_type>: Remove.
6415 (enum tui_data_type): Remove.
6416
6417 * tui/tui-data.c (tui_data_window::clear_detail)
6418 (~tui_data_window): Update.
6419
6420 2019-06-25 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6423 declare.
6424 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6425 Rename from tui_first_data_item_displayed. Update.
6426 (tui_data_window::refresh_all)
6427 (tui_data_window::do_scroll_vertical): Update.
6428 * tui/tui-data.h (struct tui_data_window)
6429 <first_data_item_displayed>: Declare new method.
6430
6431 2019-06-25 Tom Tromey <tom@tromey.com>
6432
6433 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6434 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6435 contents...
6436 (tui_initialize_static_data): ...here.
6437
6438 2019-06-25 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6441 (tui_display_registers_from, tui_check_register_values): Update.
6442 (tui_display_register): Remove win_info parameter; update.
6443 (tui_get_register): Change type of parameters.
6444 * tui/tui-data.h (struct tui_data_element): Remove.
6445 (union tui_which_element) <data>: Remove.
6446 <data_window>: Change type.
6447 (struct tui_data_item_window): New.
6448 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6449 case. Add assert.
6450 (~tui_data_item_window): New destructor.
6451 (free_content_elements): Remove DATA_ITEM_WIN case.
6452
6453 2019-06-25 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6456 Remove.
6457
6458 2019-06-25 Tom Tromey <tom@tromey.com>
6459
6460 * tui/tui-data.h (struct tui_command_element): Remove.
6461 (union tui_which_element) <command>: Remove.
6462 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6463 assert.
6464 (free_content_elements): Remove CMD_WIN case.
6465
6466 2019-06-25 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-layout.c (tui_set_layout): Update.
6469 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6470 * tui/tui-data.c (layout_def): Update.
6471
6472 2019-06-25 Tom Tromey <tom@tromey.com>
6473
6474 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6475 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6476 (tui_source_window_base::set_new_height): Update.
6477 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6478 Update.
6479 (tui_set_locator_fullname, tui_set_locator_info)
6480 (tui_show_frame_info): Update.
6481 * tui/tui-source.c (tui_set_source_content)
6482 (tui_source_is_displayed): Update.
6483 * tui/tui-layout.c (show_source_disasm_command, show_data)
6484 (show_source_or_disasm_and_command): Update.
6485 * tui/tui-disasm.c (tui_set_disassem_content)
6486 (tui_get_begin_asm_address): Update.
6487 * tui/tui-data.h (struct tui_locator_element): Remove.
6488 (union tui_which_element) <locator>: Remove.
6489 (struct tui_locator_window): New.
6490 (tui_locator_win_info_ptr): Change return type.
6491 * tui/tui-data.c (_locator): Change type.
6492 (tui_locator_win_info_ptr): Change return type.
6493 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6494 (tui_alloc_content): Add assert.
6495
6496 2019-06-25 Tom Tromey <tom@tromey.com>
6497
6498 * tui/tui-winsource.c
6499 (tui_exec_info_window::maybe_allocate_content): New method.
6500 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6501 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6502 (make_source_or_disasm_window): Add cast.
6503 * tui/tui-data.h (union tui_which_element) <simple_string>:
6504 Remove.
6505 (struct tui_source_info): New.
6506 (struct tui_source_window_base) <execution_info>: Change type.
6507 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6508 case, and add assert.
6509 (tui_alloc_content): Add assert.
6510
6511 2019-06-25 Tom Tromey <tom@tromey.com>
6512
6513 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6514 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6515 * tui/tui-data.c (tui_alloc_win_info): Remove.
6516
6517 2019-06-25 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6520 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6521 can_highlight.
6522
6523 2019-06-25 Tom Tromey <tom@tromey.com>
6524
6525 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6526 make_visible_with_new_height method.
6527 (tui_win_info::make_visible_with_new_height): New method.
6528 (tui_source_window_base::do_make_visible_with_new_height)
6529 (tui_data_window::do_make_visible_with_new_height)
6530 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6531 (make_visible_with_new_height): Remove.
6532 (tui_resize_all, tui_adjust_win_heights): Use
6533 make_visible_with_new_height method.
6534 * tui/tui-data.h (struct tui_win_info)
6535 <do_make_visible_with_new_height, make_visible_with_new_height>:
6536 New methods.
6537 (struct tui_source_window_base, struct tui_data_window)
6538 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6539 methods.
6540
6541 2019-06-25 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6544 method.
6545 (update_tab_width): Call update_tab_width method.
6546 * tui/tui-data.h (struct tui_win_info)
6547 (struct tui_source_window_base) <update_tab_width>: New methods.
6548
6549 2019-06-25 Tom Tromey <tom@tromey.com>
6550
6551 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6552 parameter.
6553 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6554 parameter.
6555 (tui_gen_win_info::make_visible): Update.
6556 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6557 parameter.
6558 * tui/tui-data.h (enum tui_box): New enum.
6559 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6560
6561 2019-06-25 Tom Tromey <tom@tromey.com>
6562
6563 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6564 init_and_make_win for EXEC_INFO_WIN.
6565 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6566 longer inline.
6567 (struct tui_win_info) <~tui_win_info>: Inline.
6568 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6569 Don't declare.
6570 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6571 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6572 Remove.
6573 (tui_initialize_static_data): Update.
6574 (~tui_gen_win_info): Handle more cleanup here.
6575 (~tui_source_window_base): Delete "execution_info".
6576 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6577
6578 2019-06-25 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui-layout.c (make_command_window): Don't set
6581 can_highlight.
6582 (show_source_disasm_command): Call the reset method.
6583 (show_data): Don't set can_highlight. Call the reset method.
6584 (tui_gen_win_info::reset): Rename from init_gen_win_info
6585 (init_and_make_win): Simplify. Return tui_gen_win_info.
6586 (show_source_or_disasm_and_command): Call the reset method.
6587 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6588 (struct tui_cmd_window): Set can_highlight.
6589
6590 2019-06-25 Tom Tromey <tom@tromey.com>
6591
6592 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6593 from make_visible.
6594 (tui_make_visible, tui_make_invisible): Rewrite.
6595 (tui_win_info::make_visible): Remove.
6596 (tui_source_window_base::make_visible): Update.
6597 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6598 method. Moved from...
6599 (struct tui_win_info) <make_visible>: ...here.
6600
6601 2019-06-25 Tom Tromey <tom@tromey.com>
6602
6603 * tui/tui-winsource.c
6604 (tui_source_window_base::do_scroll_horizontal): Remove direction
6605 parameter.
6606 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6607 direction parameter.
6608 * tui/tui-win.c (tui_win_info::forward_scroll)
6609 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6610 (tui_win_info::right_scroll): Update.
6611 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6612 direction parameter.
6613 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6614 direction parameter.
6615 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6616 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6617 Remove direction parameter.
6618 (struct tui_source_window_base, struct tui_source_window)
6619 (struct tui_disasm_window, struct tui_data_window)
6620 (struct tui_cmd_window): Update.
6621
6622 2019-06-25 Tom Tromey <tom@tromey.com>
6623
6624 * tui/tui-winsource.h (tui_set_exec_info_content)
6625 (tui_show_exec_info_content, tui_erase_exec_info_content)
6626 (tui_clear_exec_info_content, tui_update_exec_info): Change
6627 argument to tui_source_window_base.
6628 * tui/tui-winsource.c (tui_set_exec_info_content)
6629 (tui_show_exec_info_content, tui_erase_exec_info_content)
6630 (tui_clear_exec_info_content, tui_update_exec_info): Change
6631 argument to tui_source_window_base.
6632
6633 2019-06-25 Tom Tromey <tom@tromey.com>
6634
6635 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6636 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6637
6638 2019-06-25 Tom Tromey <tom@tromey.com>
6639
6640 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6641 check.
6642
6643 2019-06-25 Tom Tromey <tom@tromey.com>
6644
6645 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6646 type to void.
6647 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6648 type to void.
6649 * tui/tui-source.c (tui_set_source_content): Update.
6650 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6651
6652 2019-06-25 Tom Tromey <tom@tromey.com>
6653
6654 * tui/tui-win.c (window_name_completer, tui_set_focus)
6655 (tui_all_windows_info): Use name method.
6656 * tui/tui-data.h (struct tui_gen_win_info)
6657 (struct tui_source_window, struct tui_disasm_window)
6658 (struct tui_data_window, struct tui_cmd_window) <name>: New
6659 method.
6660 (tui_win_name): Don't declare.
6661 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6662 (tui_win_name): Remove.
6663
6664 2019-06-25 Tom Tromey <tom@tromey.com>
6665
6666 * tui/tui-winsource.h (tui_update_source_window)
6667 (tui_update_source_window_as_is): Change parameter type.
6668 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6669 to be a tui_source_window_base.
6670 (tui_update_source_window_as_is): Likewise.
6671 * tui/tui-win.c (make_visible_with_new_height): Update.
6672
6673 2019-06-25 Tom Tromey <tom@tromey.com>
6674
6675 * tui/tui-winsource.c (tui_erase_source_content)
6676 (tui_show_source_content, tui_show_exec_info_content)
6677 (tui_erase_exec_info_content): Use refresh_window method.
6678 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6679 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6680 from tui_refresh_win.
6681 (tui_data_window::refresh_window): New method.
6682 (tui_win_info::refresh, tui_source_window_base::refresh)
6683 (tui_refresh_all): Use refresh_window method.
6684 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6685 method.
6686 * tui/tui-regs.c (tui_display_register): Call refresh_window
6687 method.
6688 * tui/tui-layout.c (show_source_disasm_command)
6689 (show_source_or_disasm_and_command): Call refresh_window method.
6690 * tui/tui-data.h (struct tui_gen_win_info)
6691 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6692 New method.
6693
6694 2019-06-25 Tom Tromey <tom@tromey.com>
6695
6696 * tui/tui.c (tui_rl_other_window, tui_enable)
6697 (tui_is_window_visible, tui_get_command_dimension): Update.
6698 * tui/tui-winsource.c (tui_update_source_window_as_is)
6699 (tui_clear_source_content, tui_erase_source_content)
6700 (tui_show_source_line, tui_source_window_base::refill)
6701 (tui_source_window_base::do_scroll_horizontal)
6702 (tui_source_window_base::set_is_exec_point_at)
6703 (tui_update_breakpoint_info, tui_set_exec_info_content)
6704 (tui_alloc_source_buffer, tui_line_is_displayed)
6705 (tui_addr_is_displayed): Update.
6706 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6707 (tui_check_and_display_highlight_if_needed)
6708 (tui_win_info::make_visible, tui_win_info::refresh)
6709 (tui_refresh_all): Update.
6710 * tui/tui-windata.c (tui_first_data_item_displayed)
6711 (tui_delete_data_content_windows, tui_erase_data_content)
6712 (tui_display_all_data, tui_data_window::refresh_all)
6713 (tui_check_data_values): Update.
6714 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6715 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6716 (tui_win_info::backward_scroll, tui_refresh_all_win)
6717 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6718 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6719 (tui_source_window_base::set_new_height)
6720 (tui_data_window::set_new_height)
6721 (make_invisible_and_set_new_height)
6722 (make_visible_with_new_height, new_height_ok)
6723 (parse_scrolling_args): Update.
6724 * tui/tui-stack.c (tui_show_frame_info): Update.
6725 * tui/tui-source.c (tui_set_source_content)
6726 (tui_set_source_content_nil, tui_source_is_displayed)
6727 (tui_source_window::do_scroll_vertical): Update.
6728 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6729 (tui_display_registers_from, tui_display_reg_element_at_line)
6730 (tui_check_register_values, tui_reg_command): Update.
6731 * tui/tui-layout.c (tui_default_win_height)
6732 (show_source_disasm_command, show_data, init_and_make_win)
6733 (show_source_or_disasm_and_command): Update.
6734 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6735 (tui_redisplay_readline, tui_mld_flush)
6736 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6737 (tui_getc): Update.
6738 * tui/tui-disasm.c (tui_set_disassem_content)
6739 (tui_disasm_window::do_scroll_vertical): Update.
6740 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6741 Now virtual.
6742 (struct tui_win_info): Derive from tui_gen_win_info.
6743 <~tui_win_info>: Mark as override.
6744 <generic>: Remove member.
6745 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6746 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6747 (~tui_data_window, ~tui_win_info)
6748 (tui_free_all_source_wins_content): Update.
6749 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6750
6751 2019-06-25 Tom Tromey <tom@tromey.com>
6752
6753 * tui/tui-layout.c (init_and_make_win): Use new.
6754 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6755 destructor, initializers.
6756 (tui_alloc_generic_win_info): Don't declare.
6757 * tui/tui-data.c (_locator): Add argument to constructor.
6758 (source_win, disasm_win): New globals.
6759 (exec_info): Remove.
6760 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6761 Update.
6762 (tui_alloc_generic_win_info): Remove.
6763 (init_content_element): Use new.
6764 (tui_win_info::tui_win_info): Update.
6765 (free_content_elements) <case DATA_WIN>: Use delete.
6766
6767 2019-06-25 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6770 * tui/tui-windata.c (tui_first_data_item_displayed)
6771 (tui_delete_data_content_windows): Update.
6772 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6773 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6774 (tui_display_registers_from, tui_check_register_values): Update.
6775 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6776 pointer.
6777 * tui/tui-data.c (init_content_element): Update. Allocate the new
6778 window.
6779 (tui_free_data_content): Update.
6780 (free_content_elements) <case DATA_WIN>: Free the window.
6781
6782 2019-06-25 Tom Tromey <tom@tromey.com>
6783
6784 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6785 Update.
6786 * tui/tui-layout.c (make_command_window)
6787 (show_source_disasm_command, show_data, init_and_make_win)
6788 (show_source_or_disasm_and_command): Update.
6789 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6790 method.
6791 <can_highight, is_highlighted>: Now bool.
6792 (tui_set_win_highlight): Don't declare.
6793 * tui/tui-data.c (tui_set_win_highlight): Remove.
6794
6795 2019-06-25 Tom Tromey <tom@tromey.com>
6796
6797 * tui/tui-wingeneral.c (make_visible): Remove check of window
6798 type.
6799
6800 2019-06-25 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-win.c (tui_win_info::max_height)
6803 (tui_cmd_window::max_height): New methods.
6804 (new_height_ok): Call max_height.
6805 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6806 <max_height>: New method.
6807
6808 2019-06-25 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-win.c (tui_source_window_base::set_new_height)
6811 (tui_data_window::set_new_height): New methods.
6812 (make_invisible_and_set_new_height): Call set_new_height method.
6813 * tui/tui-data.h (struct tui_win_info)
6814 (struct tui_source_window_base, struct tui_data_window)
6815 <set_new_height>: New method.
6816
6817 2019-06-25 Tom Tromey <tom@tromey.com>
6818
6819 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6820 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6821 tui_refresh_data_win.
6822 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6823 method.
6824 (tui_refresh_all_win): Call the refresh_all method.
6825 (tui_set_focus): Likewise.
6826 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6827 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6828 Likewise.
6829
6830 2019-06-25 Tom Tromey <tom@tromey.com>
6831
6832 * tui/tui-winsource.h (tui_refill_source_window)
6833 (tui_set_is_exec_point_at): Don't declare.
6834 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6835 (tui_source_window_base::refill): Rename from
6836 tui_refill_source_window.
6837 (tui_source_window_base::do_scroll_horizontal): Update.
6838 (tui_source_window_base::set_is_exec_point_at): Rename from
6839 tui_set_is_exec_point_at.
6840 (tui_update_all_breakpoint_info): Update.
6841 * tui/tui-stack.c (tui_show_frame_info): Update.
6842 * tui/tui-layout.c (show_data): Add cast.
6843 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6844 * tui/tui-data.h (struct tui_source_window_base) <refill,
6845 set_is_exec_point_at>: New methods.
6846 (tui_source_windows, tui_add_to_source_windows): Update types.
6847 (tui_add_to_source_windows): Remove redundant declaration.
6848 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6849 (tui_source_windows): Change return type.
6850 (tui_clear_source_windows_detail): Update.
6851 (tui_add_to_source_windows): Change type of parameter.
6852 (tui_free_all_source_wins_content): Update.
6853
6854 2019-06-25 Tom Tromey <tom@tromey.com>
6855
6856 * tui/tui-wingeneral.c (tui_win_info::refresh)
6857 (tui_source_window_base::refresh): New methods.
6858 (tui_refresh_all): Call the refresh method.
6859 * tui/tui-data.h (struct tui_win_info)
6860 (struct tui_source_window_base) <refresh>: New method.
6861
6862 2019-06-25 Tom Tromey <tom@tromey.com>
6863
6864 * tui/tui.h (tui_is_window_visible): Return bool.
6865 * tui/tui.c (tui_is_window_visible): Return bool.
6866 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6867 (tui_make_visible, tui_make_invisible)
6868 (tui_win_info::make_visible)
6869 (tui_source_window_base::make_visible, make_all_visible)
6870 (tui_make_all_visible, tui_make_all_invisible): Update.
6871 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6872 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6873 bool.
6874 (struct tui_win_info, struct tui_source_window_base)
6875 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6876 * tui/tui-data.c (tui_init_generic_part): Update.
6877
6878 2019-06-25 Tom Tromey <tom@tromey.com>
6879
6880 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6881 (tui_source_window_base::make_visible): New methods.
6882 (make_all_visible): Make method call.
6883 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6884 (struct tui_source_window_base, struct tui_cmd_window): Override
6885 make_visible.
6886 (tui_win_is_source_type): Don't declare.
6887 * tui/tui-data.c (tui_win_is_source_type): Remove.
6888
6889 2019-06-25 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6892 NULL check.
6893
6894 2019-06-25 Tom Tromey <tom@tromey.com>
6895
6896 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6897 Inline constructor. Add initializers for members.
6898 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6899 constructors; now inline in class.
6900
6901 2019-06-25 Tom Tromey <tom@tromey.com>
6902
6903 * tui/tui-regs.c (tui_show_registers): Update.
6904 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6905 bool.
6906 * tui/tui-data.c (tui_data_window::clear_detail)
6907 (tui_data_window): Update.
6908
6909 2019-06-25 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-windata.c (tui_display_all_data)
6912 (tui_display_data_from_line, tui_display_data_from)
6913 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6914 Update.
6915 * tui/tui-regs.c (tui_last_regs_line_no)
6916 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6917 (tui_show_registers, tui_show_register_group)
6918 (tui_display_registers_from, tui_display_reg_element_at_line)
6919 (tui_display_registers_from_line, tui_check_register_values)
6920 (tui_reg_next, tui_reg_prev): Update.
6921 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6922 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6923 tui_data_window.
6924 (struct tui_win_info) <detail>: Remove. Add new fields from
6925 tui_data_info.
6926 (TUI_DATA_WIN): Add cast.
6927 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6928 (~tui_data_window): Simplify.
6929
6930 2019-06-25 Tom Tromey <tom@tromey.com>
6931
6932 * tui/tui-layout.c (show_source_disasm_command)
6933 (show_source_or_disasm_and_command): Update.
6934 * tui/tui-io.c (update_cmdwin_start_line)
6935 (tui_redisplay_readline): Update.
6936 * tui/tui-data.h (struct tui_command_info): Remove.
6937 (struct tui_win_info) <detail>: Remove command_info member.
6938 (struct tui_data_window) <start_line>: New member, from
6939 tui_command_info.
6940 (TUI_CMD_WIN): Add casts.
6941
6942 2019-06-25 Tom Tromey <tom@tromey.com>
6943
6944 * tui/tui-winsource.c (tui_update_source_window)
6945 (tui_refill_source_window)
6946 (tui_source_window_base::do_scroll_horizontal)
6947 (tui_update_breakpoint_info, tui_set_exec_info_content)
6948 (tui_show_exec_info_content, tui_erase_exec_info_content)
6949 (tui_clear_exec_info_content): Update.
6950 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6951 Update.
6952 * tui/tui-win.c (make_invisible_and_set_new_height)
6953 (make_visible_with_new_height): Update.
6954 * tui/tui-source.c (tui_set_source_content)
6955 (tui_show_symtab_source): Update.
6956 * tui/tui-layout.c (extract_display_start_addr)
6957 (show_source_disasm_command, show_data)
6958 (make_source_or_disasm_window)
6959 (show_source_or_disasm_and_command): Update.
6960 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6961 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6962 "gdbarch".
6963 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6964 to tui_source_window_base.
6965 (struct tui_win_info) <detail>: Remove source_info member.
6966 (struct tui_source_window_base) <has_locator>: Inline.
6967 Move contents from tui_source_info; rename has_locator member to
6968 m_has_locator.
6969 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6970 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6971 header file.
6972 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6973 Simplify.
6974 (tui_free_all_source_wins_content): Cast to
6975 tui_source_window_base.
6976
6977 2019-06-25 Tom Tromey <tom@tromey.com>
6978
6979 * tui/tui-win.c (make_invisible_and_set_new_height)
6980 (make_visible_with_new_height): Call has_locator method.
6981 * tui/tui-layout.c (show_source_disasm_command, show_data)
6982 (show_source_or_disasm_and_command): Update for bool change.
6983 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6984 (tui_win_info) <has_locator>: New method.
6985 (struct tui_source_window_base) <has_locator>: New method.
6986 (tui_win_has_locator): Don't declare.
6987 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6988 from tui_win_has_locator.
6989 (tui_source_window_base): Use false, not FALSE.
6990
6991 2019-06-25 Tom Tromey <tom@tromey.com>
6992
6993 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6994 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6995 clear_detail method directly.
6996 (tui_clear_win_detail): Remove.
6997
6998 2019-06-25 Tom Tromey <tom@tromey.com>
6999
7000 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7001 "this", not TUI_DISASM_WIN.
7002
7003 2019-06-25 Tom Tromey <tom@tromey.com>
7004
7005 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7006 declare.
7007 * tui/tui-winsource.c
7008 (tui_source_window_base::do_scroll_horizontal): Rename from
7009 tui_horizontal_source_scroll.
7010 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7011 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7012 from tui_vertical_data_scroll.
7013 * tui/tui-win.h (tui_scroll): Don't declare.
7014 * tui/tui-win.c (tui_win_info::forward_scroll)
7015 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7016 (tui_win_info::right_scroll): Rename and update.
7017 (tui_scroll_forward_command, tui_scroll_backward_command)
7018 (tui_scroll_left_command, tui_scroll_right_command): Update.
7019 (tui_scroll): Remove.
7020 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7021 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7022 from tui_vertical_source_scroll.
7023 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7024 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7025 from tui_vertical_disassem_scroll.
7026 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7027 do_scroll_horizontal>: New methods.
7028 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7029 Likewise.
7030 (struct tui_source_window_base): Add do_scroll_horizontal.
7031 (struct tui_source_window, struct tui_disasm_window): Add
7032 do_scroll_vertical.
7033 (struct tui_data_window, struct tui_cmd_window): Add
7034 do_scroll_horizontal and do_scroll_vertical.
7035 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7036
7037 2019-06-25 Tom Tromey <tom@tromey.com>
7038
7039 * tui/tui-data.h (struct tui_source_window_base): New struct.
7040 (struct tui_source_window): Derive from tui_source_window_base.
7041 (struct tui_disasm_window): New struct.
7042 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7043 from tui_source_window::clear_detail.
7044 (tui_source_window_base): Rename from tui_source_window.
7045 (~tui_source_window_base): Rename from ~tui_source_window.
7046 (tui_alloc_win_info): Create a tui_disasm_window.
7047
7048 2019-06-25 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-data.h (struct tui_source_window)
7051 (struct tui_data_window): Declare destructors.
7052 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7053 destructors.
7054 (tui_win_info): Simplify.
7055
7056 2019-06-25 Tom Tromey <tom@tromey.com>
7057
7058 * tui/tui-winsource.c (tui_display_main)
7059 (tui_update_source_windows_with_addr)
7060 (tui_update_all_breakpoint_info): Update.
7061 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7062 (new_height_ok, parse_scrolling_args): Update.
7063 * tui/tui-stack.c (tui_show_frame_info): Update.
7064 * tui/tui-data.h (struct tui_list): Remove.
7065 (tui_source_windows): Return a reference to a std::vector.
7066 * tui/tui-data.c (source_windows): Now a std::vector.
7067 (tui_source_windows): Change return type.
7068 (tui_clear_source_windows): Rewrite.
7069 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7070 (tui_free_all_source_wins_content): Rewrite.
7071
7072 2019-06-25 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7075 (struct tui_data_window, struct tui_cmd_window): Declare
7076 clear_detail method.
7077 * tui/tui-data.c (tui_source_window::clear_detail)
7078 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7079 methods.
7080 (tui_clear_win_detail): Simplify.
7081
7082 2019-06-25 Tom Tromey <tom@tromey.com>
7083
7084 * tui/tui-layout.c (make_source_window, make_disasm_window)
7085 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7086 Return the new window.
7087 (show_source_disasm_command, show_data)
7088 (show_source_or_disasm_and_command): Update.
7089
7090 2019-06-25 Tom Tromey <tom@tromey.com>
7091
7092 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7093 parameter. Return the new window.
7094 (show_source_disasm_command): Update and remove NULL check.
7095 (show_source_or_disasm_and_command): Update.
7096
7097 2019-06-25 Tom Tromey <tom@tromey.com>
7098
7099 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7100
7101 2019-06-25 Tom Tromey <tom@tromey.com>
7102
7103 * tui/tui-data.h (struct tui_win_info): Make constructor
7104 protected. Make destructor virtual. Add initializers.
7105 (tui_source_window, tui_data_window, tui_cmd_window): New
7106 classes.
7107 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7108 constructor. Add "type" parameter.
7109 (tui_source_window, tui_data_window, tui_cmd_window): New
7110 constructors.
7111 (tui_alloc_win_info): Instantiate the appropriate subclass.
7112
7113 2019-06-25 Tom Tromey <tom@tromey.com>
7114
7115 * tui/tui-win.c (tui_resize_all): Use delete.
7116 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7117 destructor.
7118 (tui_free_window): Don't declare.
7119 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7120 Update.
7121
7122 2019-06-25 Tom Tromey <tom@tromey.com>
7123
7124 * tui/tui-data.h (struct tui_win_info): Add constructor.
7125 * tui/tui-data.c (tui_alloc_win_info): Use new.
7126 (tui_free_window): Use delete.
7127
7128 2019-06-22 Tom Tromey <tom@tromey.com>
7129
7130 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7131 declare.
7132 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7133
7134 2019-06-22 Tom Tromey <tom@tromey.com>
7135
7136 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7137 declare.
7138 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7139
7140 2019-06-22 Tom de Vries <tdevries@suse.de>
7141
7142 * dwarf2read.c (create_addrmap_from_aranges)
7143 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7144 instead of '%zu'.
7145
7146 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * dwarf2read.h (dwarf2_section_info_def): Remove.
7149 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7150 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7151 std::vector<dwarf2_section_info>.
7152 (struct dwo_file) <~dwo_file>: Remove.
7153 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7154 types field.
7155 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7156 (dwarf2_read_debug_names): Likewise.
7157 (create_debug_types_hash_table): Change parameter type to
7158 array_view, adjust code accordingly.
7159 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7160 (partial_die_info::fixup): Likewise.
7161 (determine_prefix): Likewise.
7162 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7163
7164 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7165
7166 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7167 gdb_bfd_ref_ptr.
7168 <~dwo_file>: Remove call to gdb_bfd_unref.
7169 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7170 gdb_bfd_ref_ptr::get.
7171
7172 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7175 type to htab_up.
7176 * dwarf2read.c (struct dwo_file): Initialize fields.
7177 <~dwo_file>: New.
7178 (free_dwo_file): Remove, move content to ~dwo_file.
7179 (struct dwo_file_deleter): Remove.
7180 (dwo_file_up>: Remove custom deleter.
7181 (free_dwo_files): Remove.
7182 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7183 dwo_files.
7184 (process_skeletonless_type_units): Call unique_ptr::get.
7185 (allocate_dwo_file_hash_table): Add deleter to created hash
7186 table. Change return type to htab_up.
7187 (lookup_dwo_file_slot): Don't memset dwo_file, call
7188 unique_ptr::get.
7189 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7190 (create_dwo_unit_in_dwp_v2): Likewise.
7191 (open_and_init_dwo_file): Likewise.
7192 (free_dwo_file_from_slot): Remove.
7193
7194 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7195
7196 * dwarf2read.h (struct dwarf2_section_info) <readin,
7197 is_virtual>: Change type to bool.
7198 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7199 true instead of 1.
7200
7201 2019-06-19 Tom Tromey <tom@tromey.com>
7202
7203 * tui/tui-data.h (tui_init_content_element): Don't declare.
7204
7205 2019-06-19 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-data.h (tui_init_win_info): Don't declare.
7208
7209 2019-06-19 Tom de Vries <tdevries@suse.de>
7210
7211 * dwarf2read.h (abstract_to_concrete): Change type to
7212 std::unordered_map<sect_offset, std::vector<sect_offset>,
7213 gdb::hash_enum<sect_offset>>.
7214
7215 2019-06-19 Tom Tromey <tromey@adacore.com>
7216
7217 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7218 EVAL_AVOID_SIDE_EFFECTS specially.
7219
7220 2019-06-19 Tom Tromey <tromey@adacore.com>
7221
7222 * source-cache.c (highlighter): New global.
7223 (source_cache::get_source_lines): Create a highlighter on demand.
7224
7225 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * defs.h (deprecated_interactive_hook): Delete declaration.
7228 * interps.c (clear_interpreter_hooks): Remove use of
7229 deprecated_interactive_hook.
7230 * top.c (deprecated_interactive_hook): Delete definition.
7231 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7232
7233 2019-06-18 Tom de Vries <tdevries@suse.de>
7234
7235 PR gdb/24515
7236 * dwarf2read.h (abstract_to_concrete): Change type from
7237 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7238 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7239 * dwarf2read.c (read_variable): Update.
7240 (dwarf2_fetch_die_loc_sect_off): Update.
7241
7242 2019-06-17 Tom de Vries <tdevries@suse.de>
7243
7244 PR gdb/24617
7245 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7246 accessing parent[parent_len - 1].
7247
7248 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7249
7250 PR gdb/24364
7251 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7252 call dtrace_process_dof with NULL dof.
7253
7254 2019-06-16 Tom de Vries <tdevries@suse.de>
7255
7256 PR gdb/24445
7257 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7258
7259 2019-06-16 Tom Tromey <tom@tromey.com>
7260
7261 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7262 (make_all_visible): Use address of member.
7263
7264 2019-06-16 Tom Tromey <tom@tromey.com>
7265
7266 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7267 (tui_free_window, free_content, free_content_elements): Remove
7268 unnecessary cast.
7269 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7270 cast.
7271 * tui/tui-regs.c (tui_show_register_group)
7272 (tui_display_registers_from, tui_display_reg_element_at_line):
7273 Remove unnecessary cast.
7274
7275 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * linux-nat.c (normal_mask): Delete.
7278 (_initialize_linux_nat): Don't initialise normal_mask.
7279
7280 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 PR gdb/24445
7283 * dwarf-index-write.h (write_psymtabs_to_index): Add
7284 dwz_basename parameter.
7285 * dwarf-index-write.c (write_gdbindex): Move file writing to
7286 write_gdbindex_1. Change return type void.
7287 (assert_file_size): Move up, remove filename parameter.
7288 (write_gdbindex_1): New function.
7289 (write_debug_names): Change return type to void, call
7290 assert_file_size.
7291 (struct index_wip_file): New struct.
7292 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7293 file logic to index_wip_file. Write index for dwz file if
7294 needed.
7295 (save_gdb_index_command): Pass basename of dwz file, if present.
7296 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7297 build-id of dwz file, if present.
7298 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7299 (dwarf2_get_dwz_file): Likewise.
7300 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7301 (dwarf2_get_dwz_file): Likewise.
7302
7303 2019-06-16 Tom Tromey <tom@tromey.com>
7304
7305 * coffread.c (process_coff_symbol): Use xstrdup.
7306 * value.c (create_internalvar): Use xstrdup.
7307
7308 2019-06-16 Tom Tromey <tom@tromey.com>
7309
7310 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7311 * breakpoint.c (stopin_command, stopat_command)
7312 (until_break_command, decode_location_default): Remove unnecessary
7313 cast.
7314 * utils.c (subset_compare): Remove unnecessary cast.
7315 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7316 cast.
7317 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7318 cast.
7319 * infcmd.c (path_command): Remove unnecessary cast.
7320 * coffread.c (decode_type): Remove unnecessary cast.
7321 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7322 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7323 * tui/tui-stack.c (tui_show_locator_content)
7324 (tui_show_frame_info): Remove unnecessary cast.
7325 * tui/tui-win.c (tui_scroll_forward_command)
7326 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7327 (parse_scrolling_args): Remove unnecessary cast.
7328 * tui/tui-data.c (init_win_info, tui_del_window)
7329 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7330 (free_content_elements): Remove unnecessary cast.
7331 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7332 unnecessary cast.
7333 * tui/tui-source.c (tui_set_source_content)
7334 (tui_vertical_source_scroll): Remove unnecessary cast.
7335 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7336 cast.
7337 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7338 * tui/tui-regs.c (tui_display_registers_from)
7339 (tui_display_register): Remove unnecessary cast.
7340 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7341 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7342 (make_visible): Remove unnecessary cast.
7343 * tui/tui-winsource.c (tui_erase_source_content)
7344 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7345 unnecessary cast.
7346 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7347 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7348 * stabsread.c (read_type, read_array_type, read_range_type):
7349 Remove unnecessary cast.
7350 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7351 (parse_symbol, parse_type, upgrade_type, parse_external)
7352 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7353 unnecessary cast.
7354 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7355
7356 2019-06-16 Tom Tromey <tom@tromey.com>
7357
7358 * tui/tui-data.c (tui_alloc_generic_win_info)
7359 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7360 checks.
7361
7362 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7363 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * f-typeprint.c (f_print_type): Don't return early for not
7366 associated or not allocated types.
7367 (f_type_print_varspec_suffix): Add print_rank parameter and print
7368 ranks of array types in case they dangling.
7369 (f_type_print_base): Add print_rank parameter.
7370
7371 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * NEWS: Mention new MI commands.
7374 * break-catch-throw.c (enum exception_event_kind): Move to
7375 breakpoint.h.
7376 (print_mention_exception_catchpoint): Output text as a single
7377 message.
7378 (catch_exception_command_1): Rename to...
7379 (catch_exception_event): ...this, make non-static, update header
7380 command, and change some parameter types.
7381 (catch_catch_command): Update for changes to
7382 catch_exception_command_1.
7383 (catch_throw_command): Likewise.
7384 (catch_rethrow_command): Likewise.
7385 * breakpoint.c (enum exception_event_kind): Delete.
7386 * breakpoint.h (enum exception_event_kind): Moved here from
7387 break-catch-throw.c.
7388 (catch_exception_event): Declare.
7389 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7390 (mi_cmd_catch_throw): New function.
7391 (mi_cmd_catch_rethrow): New function.
7392 (mi_cmd_catch_catch): New function.
7393 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7394 'catch-catch' entries.
7395 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7396 (mi_cmd_catch_rethrow): Declare.
7397 (mi_cmd_catch_catch): Declare.
7398
7399 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7400
7401 * annotate.c (annotate_source_line): Change return type to void,
7402 update implementation to match.
7403 * annotate.h (annotate_source_line): Change return type to void,
7404 update header comment.
7405 * stack.c (print_frame_info): Don't change what frame information
7406 is printed based on whether annotations are on or not.
7407
7408 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7411 (annotate_source): Make static.
7412 (annotate_source_line): Moved from source.c and renamed from
7413 identify_source_line. Update the return type.
7414 * annotate.h (annotate_source): Delete declaration.
7415 (annotate_source_line): Declaration moved from source.h, and
7416 renamed from identify_source_line. Return type updated.
7417 * source.c (identify_source_line): Moved to annotate.c and renamed
7418 to annotate_source_line.
7419 (info_line_command): Remove check of annotation_level.
7420 * source.h (identify_source_line): Move declaration to annotate.h
7421 and rename to annotate_source_line.
7422 * stack.c: Add 'annotate.h' include.
7423 (print_frame_info): Remove check of annotation_level before
7424 calling annotate_source_line.
7425
7426 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7427
7428 * source-cache.c (source_cache::get_plain_source_lines): Use
7429 open_source_file_with_line_charpos instead of just
7430 open_source_file, remove call to find_source_lines.
7431 (source_cache::get_source_lines): Likewise.
7432 * source.c (find_source_lines): Make static.
7433 (get_filename_and_charpos): Renamed into...
7434 (open_source_file_with_line_charpos): ..this along with changes to
7435 return a scoped_fd, and some other minor clean ups.
7436 (identify_source_line): Use open_source_file_with_line_charpos.
7437 (search_command_helper): Use open_source_file_with_line_charpos
7438 instead of just open_source_file, remove call to
7439 find_source_lines.
7440 * source.h (open_source_file_with_line_charpos): Declare new
7441 function.
7442 (find_source_lines): Delete declaration.
7443
7444 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7445
7446 * source.c (get_filename_and_charpos): Remove fullname
7447 parameter.
7448 (identify_source_line): Update call to get_filename_and_charpos.
7449
7450 2019-06-14 Tom Tromey <tromey@adacore.com>
7451
7452 PR gdb/24502:
7453 * ui-style.h (skip_ansi_escape): Update comment.
7454 * ui-file.h (class no_terminal_escape_file): New class.
7455 * ui-file.c (no_terminal_escape_file::write)
7456 (no_terminal_escape_file::puts): New methods.
7457 * cli/cli-logging.c (handle_redirections): Use
7458 no_terminal_escape_file.
7459
7460 2019-06-14 Tom Tromey <tromey@adacore.com>
7461
7462 * NEWS: Move convenience variable news above Python news.
7463
7464 2019-06-14 Tom Tromey <tom@tromey.com>
7465
7466 * gnulib: Move directory to top-level.
7467 * configure.ac: Don't configure gnulib.
7468 * configure: Rebuild.
7469 * common/common-defs.h: Use new path to gnulib.
7470 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7471 (GNULIB_H): Remove.
7472 (INCGNU): Look in new gnulib location.
7473 (HFILES_NO_SRCDIR): Remove gnulib files.
7474 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7475 (generated_files): Remove GNULIB_H.
7476 ($(LIBGNU), all-lib): Remove targets.
7477 (distclean): Don't mention GNULIB_BUILDDIR.
7478 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7479
7480 2019-06-14 Tom Tromey <tromey@adacore.com>
7481
7482 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7483 Warn if symbol file does not provide any symbols.
7484
7485 2019-06-14 Tom Tromey <tromey@adacore.com>
7486
7487 * source.c (find_and_open_source): Respect basenames_may_differ.
7488
7489 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7490
7491 * annotate.c (annotate_breakpoints_invalid): Make use of
7492 scoped_restore_terminal_state.
7493 (annotate_frames_invalid): Likewise.
7494
7495 2019-06-14 Tom Tromey <tromey@adacore.com>
7496
7497 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7498 allow assignment to an internalvar.
7499
7500 2019-06-14 Tom Tromey <tromey@adacore.com>
7501
7502 * ada-lex.l: Allow "_" in attribute names.
7503
7504 2019-06-14 Tom Tromey <tromey@adacore.com>
7505
7506 PR gdb/24653:
7507 * regcache.c (registers_changed): Don't call alloca.
7508 * top.c (execute_command): Don't call alloca.
7509
7510 2019-06-13 Pedro Alves <palves@redhat.com>
7511
7512 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7513 'expression'. When parsing an expression, error out if there's
7514 junk after "unlimited".
7515 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7516 (do_set_command): Adjust calls to is_unlimited_literal.
7517
7518 2019-06-13 Pedro Alves <palves@redhat.com>
7519
7520 * compile/compile.c (make_compile_options_def_group): Add braces
7521 around array_view initializer.
7522 * thread.c (make_thread_apply_all_options_def_group)
7523 (make_thread_apply_all_options_def_group): Likewise.
7524
7525 2019-06-13 Pedro Alves <palves@redhat.com>
7526
7527 * NEWS (New commands): Mention "maint test-options
7528 require-delimiter", "maint test-options unknown-is-error", "maint
7529 test-options unknown-is-operand" and "maint show
7530 test-options-completion-result".
7531 (New command options, command completion): New section.
7532 (Completion improvements): New section.
7533 Mention that you can abbreviate "unlimited".
7534
7535 2019-06-13 Pedro Alves <palves@redhat.com>
7536
7537 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7538 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7539 * unittests/cli-utils-selftests.c (test_parse_flags)
7540 (test_parse_flags_qcs): Delete.
7541 (test_cli_utils): Don't call deleted functions.
7542
7543 2019-06-13 Pedro Alves <palves@redhat.com>
7544
7545 * thread.c: Include "cli/cli-option.h".
7546 (tp_array_compar_ascending): Global.
7547 (tp_array_compar): Delete function.
7548 (tp_array_compar_ascending, tp_array_compar_descending): New
7549 functions.
7550 (ascending_option_def, qcs_flag_option_def)
7551 (thr_qcs_flags_option_defs)
7552 (make_thread_apply_all_options_def_group)
7553 (make_thread_apply_options_def_group): New.
7554 (thread_apply_all_command): Use gdb::option::process_options.
7555 (thread_apply_command_completer)
7556 (thread_apply_all_command_completer): New.
7557 (thread_apply_command): Use gdb::option::process_options.
7558 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7559 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7560 to generate help text of "thread apply". Adjust "taas"'s help.
7561 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7562 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7563
7564 2019-06-13 Pedro Alves <palves@redhat.com>
7565
7566 * thread.c (thread_apply_command): Check for invalid TID with
7567 isdigit instead of !isalpha.
7568
7569 2019-06-13 Pedro Alves <palves@redhat.com>
7570
7571 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7572 (validate_flags_qcs): New.
7573 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7574 (validate_flags_qcs): Declare.
7575 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7576 (make_frame_apply_options_def_group): New.
7577 (frame_apply_command_count): Process options with
7578 gdb::option::process_options.
7579 (frame_apply_completer): New.
7580 (frame_apply_level_completer, frame_apply_all_completer)
7581 (frame_apply_completer): New.
7582 (_initialize_stack): Update help of "frame apply", "frame apply
7583 level", "frame apply all" and "faas" to mention supported options
7584 and install command completers.
7585 * stack.h (frame_apply_all_completer): Declare.
7586 * thread.c: Include "stack.h".
7587 (tfaas_command): Add "--".
7588 (_initialize_thread): Update help "tfaas" to mention supported
7589 options and install command completer.
7590
7591 2019-06-13 Pedro Alves <palves@redhat.com>
7592
7593 * completer.c (complete_nested_command_line): New.
7594 (gdb_completion_word_break_characters_throw): Add assertion.
7595 * completer.h (complete_nested_command_line): Declare.
7596
7597 2019-06-13 Pedro Alves <palves@redhat.com>
7598
7599 * stack.c (parse_backtrace_qualifiers): New.
7600 (backtrace_command): Use it.
7601 (backtrace_command_completer): Complete on qualifiers.
7602
7603 2019-06-13 Pedro Alves <palves@redhat.com>
7604
7605 * frame.c: Include "cli/cli-option.h.
7606 (user_set_backtrace_options): New.
7607 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7608 Delete.
7609 (get_prev_frame): Adjust.
7610 (boolean_option_def, uinteger_option_def)
7611 (set_backtrace_option_defs): New.
7612 (_initialize_frame): Adjust and use
7613 gdb::option::add_setshow_cmds_for_options to install "set
7614 backtrace past-main" and "set backtrace past-entry".
7615 * frame.h: Include "cli/cli-option.h".
7616 (struct frame_print_options): Forward declare.
7617 (print_frame_arguments_all, print_frame_arguments_scalars)
7618 (print_frame_arguments_none): Declare.
7619 (print_entry_values): Delete declaration.
7620 (struct frame_print_options, user_frame_print_options): New.
7621 (struct set_backtrace_options): New.
7622 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7623 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7624 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7625 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7626 (list_args_or_locals): Add frame_print_options parameter.
7627 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7628 * python/py-framefilter.c (enumerate_args): Pass down
7629 USER_FRAME_PRINT_OPTIONS.
7630 * stack.c: Include "cli/cli-option.h".
7631 (print_frame_arguments_all, print_frame_arguments_scalars)
7632 (print_frame_arguments_none): Declare.
7633 (print_raw_frame_arguments, print_entry_values): Delete.
7634 (user_frame_print_options): New.
7635 (boolean_option_def, enum_option_def, frame_print_option_defs):
7636 New.
7637 (struct backtrace_cmd_options): New.
7638 (bt_flag_option_def): New.
7639 (backtrace_command_option_defs): New.
7640 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7641 (print_frame_arg, read_frame_arg, print_frame_args)
7642 (print_frame_info, print_frame): Add frame_print_options parameter
7643 and use it.
7644 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7645 (backtrace_command_1): Add frame_print_options and
7646 backtrace_cmd_options parameters and use them.
7647 (make_backtrace_options_def_group): New.
7648 (backtrace_command): Process command options with
7649 gdb::option::process_options.
7650 (backtrace_command_completer): New.
7651 (_initialize_stack): Extend "backtrace"'s help to mention
7652 supported options. Install completer for "backtrace".
7653 Install some settings commands with add_setshow_cmds_for_options.
7654
7655 2019-06-13 Pedro Alves <palves@redhat.com>
7656
7657 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7658 and that "set/show print raw frame-arguments" are now deprecated.
7659
7660 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7661 command.
7662 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7663 * stack.c (_initialize_stack): Install "set/show print
7664 raw-frame-arguments", and deprecate "set/show print raw
7665 frame-arguments".
7666 * valprint.c (_initialize_valprint): Deprecate "set/show print
7667 raw".
7668
7669 2019-06-13 Pedro Alves <palves@redhat.com>
7670
7671 * compile/compile.c (struct compile_options): New.
7672 (compile_flag_option_def, compile_command_option_defs)
7673 (make_compile_options_def_group): New.
7674 (compile_file_command): Handle options with
7675 gdb::option::process_options.
7676 (compile_file_command_completer): New function.
7677 (compile_code_command): Handle options with
7678 gdb::option::process_options.
7679 (compile_code_command_completer): New function.
7680 (_initialize_compiler): Install completers for "compile code" and
7681 "compile file". Mention available options in "compile code" and
7682 "compile code"'s help.
7683 * completer.c (advance_to_completion_word): New, factored out from
7684 ...
7685 (advance_to_expression_complete_word_point): ... this.
7686 (advance_to_filename_complete_word_point): New.
7687 * completer.h (advance_to_filename_complete_word_point): New
7688 declaration.
7689
7690 2019-06-13 Pedro Alves <palves@redhat.com>
7691
7692 * compile/compile.c: Include "cli/cli-option.h".
7693 (compile_print_value): Scope data pointer is now a
7694 value_print_options pointer; adjust.
7695 (compile_print_command): Process options. Scope data pointer is
7696 now a value_print_options pointer; adjust.
7697 (_initialize_compile): Update "compile print"'s help to include
7698 supported options. Install a completer for "compile print".
7699 * cp-valprint.c (show_vtblprint, show_objectprint)
7700 (show_static_field_print): Delete.
7701 (_initialize_cp_valprint): Don't install "set print
7702 static-members", "set print vtbl", "set print object" here.
7703 * printcmd.c: Include "cli/cli-option.h" and
7704 "common/gdb_optional.h".
7705 (print_command_parse_format): Rework to fill in a
7706 value_print_options instead of a format_data.
7707 (print_value): Change parameter type from format_data pointer to
7708 value_print_options reference. Adjust.
7709 (print_command_1): Process options. Adjust to pass down a
7710 value_print_options.
7711 (print_command_completer): New.
7712 (_initialize_printcmd): Install print_command_completer as
7713 handle_brkchars completer for the "print" command. Update
7714 "print"'s help to include supported options.
7715 * valprint.c: Include "cli/cli-option.h".
7716 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7717 here from cp-valprint.c.
7718 (boolean_option_def, uinteger_option_def)
7719 (value_print_option_defs, make_value_print_options_def_group):
7720 New. Use gdb::option::add_setshow_cmds_for_options to install
7721 "set print elements", "set print null-stop", "set print repeats",
7722 "set print pretty", "set print union", "set print array", "set
7723 print address", "set print symbol", "set print array-indexes".
7724 * valprint.h: Include <string> and "cli/cli-option.h".
7725 (make_value_print_options_def_group): Declare.
7726 (print_value): Change parameter type from format_data pointer to
7727 value_print_options reference.
7728 (print_command_completer): Declare.
7729
7730 2019-06-13 Pedro Alves <palves@redhat.com>
7731
7732 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7733 (COMMON_SFILES): Add maint-test-settings.c.
7734 * cli/cli-decode.c (boolean_enums): New global, factored out from
7735 ...
7736 (add_setshow_boolean_cmd): ... here.
7737 * cli/cli-decode.h (boolean_enums): Declare.
7738 * cli/cli-option.c: New file.
7739 * cli/cli-option.h: New file.
7740 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7741 factored out from ...
7742 (parse_cli_boolean_value(const char *)): ... this.
7743 (is_unlimited_literal): Change parameter type to pointer to
7744 pointer. Adjust and advance ARG pointer.
7745 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7746 (parse_cli_var_enum): New, factored out from ...
7747 (do_set_command): ... this. Adjust.
7748 * cli/cli-setshow.h (parse_cli_boolean_value)
7749 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7750 (parse_cli_var_enum): Declare.
7751 * cli/cli-utils.c: Include "cli/cli-option.h".
7752 (get_ulongest): New.
7753 * cli/cli-utils.h (get_ulongest): Declare.
7754 (check_for_argument): New overloads.
7755 * maint-test-options.c: New file.
7756
7757 2019-06-13 Pedro Alves <palves@redhat.com>
7758
7759 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7760 parse a range if "-" is at the end of the string.
7761
7762 2019-06-13 Pedro Alves <palves@redhat.com>
7763
7764 * cli/cli-setshow.c (parse_auto_binary_operation)
7765 (parse_cli_boolean_value): Don't allow "o".
7766
7767 2019-06-13 Pedro Alves <palves@redhat.com>
7768
7769 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7770 * NEWS: Mention maint test-settings KIND.
7771 * maint-test-settings.c: New file.
7772
7773 2019-06-13 Pedro Alves <palves@redhat.com>
7774
7775 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7776 completer.
7777 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7778 "set" completers.
7779
7780 2019-06-13 Pedro Alves <palves@redhat.com>
7781
7782 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7783 after item.
7784
7785 2019-06-13 Pedro Alves <palves@redhat.com>
7786
7787 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7788
7789 2019-06-13 Pedro Alves <palves@redhat.com>
7790
7791 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7792 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7793 call.
7794 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7795 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7796 calls.
7797 (check_for_argument): Skip spaces after argument.
7798
7799 2019-06-13 Pedro Alves <palves@redhat.com>
7800
7801 * thread.c (thread_apply_command): Adjust TID parsing.
7802 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7803 detected before end of string.
7804 (tid_is_in_list): Error out if LIST is invalid.
7805
7806 2019-06-13 Pedro Alves <palves@redhat.com>
7807
7808 * completer.c (complete_line_internal_1): Rewind completion word
7809 point.
7810 (completion_tracker::advance_custom_word_point_by): Change
7811 parameter type to int.
7812 * completer.h (completion_tracker::advance_custom_word_point_by):
7813 Likewise.
7814
7815 2019-06-13 Pedro Alves <palves@redhat.com>
7816
7817 * completer.c (advance_to_completion_word): Handle delimiters.
7818
7819 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7820
7821 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7822
7823 2019-06-11 Tom Tromey <tom@tromey.com>
7824
7825 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7826 (xmalloc_failed): Move to alloc.c.
7827 * alloc.c: New file.
7828 * Makefile.in (COMMON_SFILES): Add alloc.c.
7829
7830 2019-06-11 Tom Tromey <tom@tromey.com>
7831
7832 * nat/linux-waitpid.c: Don't include server.h.
7833 (linux_debug): Remove.
7834 (my_waitpid): Update.
7835
7836 2019-06-11 Tom Tromey <tromey@adacore.com>
7837
7838 * infcall.c (_initialize_infcall): Remove trailing newline from
7839 help.
7840 * user-regs.c (_initialize_user_regs): Remove trailing newline
7841 from help.
7842 * typeprint.c (_initialize_typeprint): Remove trailing newline
7843 from help.
7844 * reverse.c (_initialize_reverse): Remove trailing newlines from
7845 help.
7846 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7847 from help.
7848 * language.c (add_set_language_command): Remove trailing newline
7849 from help.
7850 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7851 help.
7852 * disasm.c (_initialize_disasm): Remove trailing newline from
7853 help.
7854 * top.c (init_main): Remove trailing newline from help.
7855 * interps.c (_initialize_interpreter): Remove trailing newline
7856 from help.
7857 * btrace.c (_initialize_btrace): Remove trailing newlines from
7858 help.
7859 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7860 from help.
7861 * python/python.c (_initialize_python): Remove trailing newline
7862 from help.
7863 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7864 help.
7865 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7866 from help. Reformat some text.
7867 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7868 from help.
7869 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7870 newline from help.
7871
7872 2019-06-11 Tom Tromey <tromey@adacore.com>
7873
7874 * darwin-nat.c (darwin_decode_exception_message)
7875 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7876
7877 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7878
7879 * valops.c (value_slice): Check for not allocated or not
7880 associated values.
7881
7882 2019-06-10 Tom de Vries <tdevries@suse.de>
7883
7884 PR gdb/24618
7885 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7886 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7887 invalid.
7888
7889 2019-06-10 Tom de Vries <tdevries@suse.de>
7890
7891 PR gdb/24611
7892 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7893 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7894
7895 2019-06-10 Tom de Vries <tdevries@suse.de>
7896
7897 PR symtab/24545
7898 * symtab.c (struct demangled_name_entry): Add language field.
7899 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7900 static minimal symbol". Set and use language field.
7901
7902 2019-06-10 Tom Tromey <tromey@adacore.com>
7903
7904 * ada-lang.c (_initialize_ada_language): Update help text.
7905
7906 2019-06-10 Tom Tromey <tromey@adacore.com>
7907
7908 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7909 with a newline.
7910 * guile/guile.c (handle_boot_error): Don't end warning with a
7911 newline.
7912 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7913 warning with a newline.
7914 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7915 newline.
7916 (s12z_frame_cache): Likewise.
7917 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7918 a newline.
7919 * solib-svr4.c (disable_probes_interface): Don't end warning with
7920 a newline.
7921 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7922 newline.
7923 * python/python.c (do_finish_initialization): Don't end warning
7924 with a newline.
7925
7926 2019-06-10 Tom Tromey <tom@tromey.com>
7927
7928 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7929 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7930 gdbpy_enter.
7931
7932 2019-06-10 Tom Tromey <tromey@adacore.com>
7933
7934 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7935 data.
7936 (elf_new_init): Don't call stabsread_new_init.
7937 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7938 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7939 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7940
7941 2019-06-10 Tom de Vries <tdevries@suse.de>
7942
7943 PR symtab/16264
7944 PR symtab/24517
7945 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7946
7947 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7948
7949 * source.c (find_and_open_source): Also rewrite relative file
7950 names.
7951
7952 2019-04-26 Amos Bird <amosbird@gmail.com>
7953
7954 * annotate.c (annotate_thread_exited): Add "thread-exited"
7955 annotation.
7956
7957 2019-06-06 Tom Tromey <tromey@adacore.com>
7958
7959 * maint.h (class scoped_command_stats): Use
7960 DISABLE_COPY_AND_ASSIGN.
7961 <print_time>: New method.
7962 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7963 print_time.
7964 (scoped_command_stats::print_time): New method.
7965
7966 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7967
7968 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7969 instructions of lengths 6 or 8 bytes.
7970
7971 2019-06-04 Pedro Alves <palves@redhat.com>
7972
7973 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7974
7975 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7976 * breakpoint.c (condition_completer): Likewise.
7977 * cli/cli-dump.c (scan_expression): Likewise.
7978 * common/filestuff.c (mkdir_recursive): Likewise.
7979 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7980 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7981 (gdb_abspath): Likewise.
7982 * compile/compile-cplus-types.c
7983 (compile_cplus_instance::decl_name): Likewise.
7984 * completer.c (complete_explicit_location):
7985 (signal_completer, reg_or_group_completer_1): Likewise.
7986 * cp-support.c (cp_remove_params_if_any): Likewise.
7987 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7988 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7989 * infcmd.c (strip_bg_char): Likewise.
7990 * linespec.c (copy_token_string): Likewise.
7991 * mi/mi-main.c (output_cores): Likewise.
7992 * psymtab.c (psymtab_search_name):
7993 * symfile.c (test_set_ext_lang_command): Likewise.
7994 * target.c (target_fileio_read_stralloc): Likewise.
7995 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7996 * value.c (complete_internalvar): Likewise.
7997
7998 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7999
8000 Add objfile property to gdb.Type.
8001 * NEWS: Mention Python API addition.
8002 * python/py-type.c (typy_get_objfile): New method.
8003
8004 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8005
8006 * NEWS: Mention the new set|show style [title|highlight].
8007 Mention changes to "show style", "help" and "apropos".
8008
8009 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8010
8011 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8012 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8013 instead of print_help_for_command.
8014 (print_doc_of_command): New function.
8015 (help_list): Add 'apropos -v word' suggestion.
8016 (print_help_for_command): Style the command name using title style.
8017 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8018 (_initialize_cli_cmds): Describe -v in apropos_command help.
8019
8020 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8021
8022 * cli/cli-style.h (cli_style_option): Add name in constructor,
8023 add m_name class member, add constructor with intensity,
8024 add name class function.
8025 (cli_style_option::add_setshow_commands): Remove name argument.
8026 (highlight_style, title_style): New styles.
8027 * cli/cli-style.c (do_show): New function that shows a style
8028 characteristic styling the style name with itself.
8029 (set_style_name): New function.
8030 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8031 Update all callers according to the changes in cli/cli-style.h.
8032 * utils.h (fputs_highlighted): New function.
8033 * utils.c (fputs_highlighted): Likewise.
8034
8035 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8036
8037 * NEWS: Mention new pipe command and new convenience variables.
8038
8039 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8040
8041 * cli/cli-cmds.c (pipe_command): New function.
8042 (_initialize_cli_cmds): Call add_com for pipe_command.
8043 Define | as an alias for pipe.
8044 (exit_status_set_internal_vars): New function.
8045 (shell_escape): Call exit_status_set_internal_vars.
8046 cli/cli-decode.c (find_command_name_length): Recognize | as
8047 a single character command.
8048
8049 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8050
8051 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8052 top.c (execute_command_to_ui_file): New function, mostly a copy
8053 of execute_command_to_string.
8054 (execute_command_to_string): Implement by calling
8055 execute_command_to_ui_file.
8056
8057 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8058
8059 * top.h (saved_command_line): Remove declaration.
8060 * top.c (previous_saved_command_line, previous_repeat_arguments):
8061 New variables.
8062 (saved_command_line): Make static, define together with other
8063 'repeat variables'.
8064 (dont_repeat): Clear repeat_arguments.
8065 (repeat_previous, get_saved_command_line, save_command_line):
8066 New functions.
8067 (gdb_init): Initialize saved_command_line
8068 and previous_saved_command_line.
8069 * main.c (captured_main_1): Remove saved_command_line initialization.
8070 * event-top.c (handle_line_of_input): Update to use
8071 the new 'repeat' related functions instead of direct access to
8072 saved_command_line.
8073 * command.h (repeat_previous, get_saved_command_line,
8074 save_command_line): New declarations.
8075 (dont_repeat): Add comment.
8076
8077 2019-05-30 Tom Tromey <tromey@adacore.com>
8078
8079 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8080 Fix comment.
8081 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8082
8083 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8084
8085 PR cli/24587
8086 * completer.c (complete): Initialize variable word.
8087
8088 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8089
8090 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8091 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8092 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8093 'body' is NULL to the outter 'if', protecting the '!is_define'
8094 situation as well.
8095
8096 2019-05-29 Tom Tromey <tromey@adacore.com>
8097
8098 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8099 (dwarf_unknown): New function.
8100 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8101 (dwarf_type_encoding_name): Use dwarf_unknown.
8102
8103 2019-05-29 Tom Tromey <tromey@adacore.com>
8104
8105 PR c++/20020:
8106 * cp-valprint.c (cp_print_value_fields): Call
8107 cp_print_static_field inside "try".
8108
8109 2019-05-29 Tom Tromey <tromey@adacore.com>
8110
8111 * inflow.c (struct terminal_info): Add default operator=.
8112 * configure: Rebuild.
8113 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8114 -Wdeprecated-copy-dtor, -Wredundant-move.
8115
8116 2019-05-29 Tom Tromey <tromey@adacore.com>
8117
8118 * NEWS: Add entry.
8119 * infcmd.c (print_return_value_1): Handle finish_print
8120 option.
8121 (show_print_finish): New function.
8122 (_initialize_infcmd): Add "set/show print finish" commands.
8123 * valprint.c (user_print_options): Initialize new member.
8124 * valprint.h (struct value_print_options) <finish_print>: New
8125 member.
8126
8127 2019-05-28 Tom Tromey <tromey@adacore.com>
8128
8129 * ada-lang.c (ada_remove_Xbn_suffix)
8130 (find_old_style_renaming_symbol)
8131 (parse_old_style_renaming): Remove.
8132 (ada_find_renaming_symbol): Don't call
8133 find_old_style_renaming_symbol.
8134 (ada_is_renaming_symbol): Rename from
8135 ada_find_renaming_symbol. Remove "block" parameter. Return
8136 bool. Now static.
8137 (ada_read_var_value): Update and simplify.
8138 * ada-exp.y (write_var_or_type): Remove old code.
8139
8140 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8141
8142 PR gdb/25010
8143 * event-top.c: Remove include comment.
8144 * inflow.c (class scoped_ignore_sigttou): Move from here...
8145 * inflow.h (class scoped_ignore_sigttou): ...to here.
8146 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8147 * top.c: Remove include comment.
8148
8149 2019-05-27 Tom Tromey <tom@tromey.com>
8150
8151 * NEWS: Fix typo.
8152
8153 2019-05-22 Tom Tromey <tromey@adacore.com>
8154
8155 * target.c (target_follow_exec): Constify parameter.
8156 * target-delegates.c: Rebuild.
8157 * remote.c (remote_target::follow_exec): Constify parameter.
8158 * infrun.c (follow_exec): Constify parameter.
8159 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8160 (target_follow_exec): Likewise.
8161
8162 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8163
8164 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8165 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8166
8167 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8168
8169 * NEWS: Add debugredirect and testsuite sections.
8170
8171 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8172
8173 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8174 target descriptions using exclusively floating point register name
8175 aliases.
8176
8177 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 PR gdb/18644:
8180 * f-lang.c (build_fortran_types): Handle the case where
8181 gdbarch_floatformat_for_type returns a nullptr.
8182
8183 2019-05-21 Tom de Vries <tdevries@suse.de>
8184
8185 PR cli/24587
8186 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8187
8188 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 PR gdb/18644:
8191 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8192 16-byte floats.
8193 * i386-tdep.c (i386_floatformat_for_type): Use
8194 floatformats_ia64_quad for the 16-byte floating point component
8195 within a fortran 32-byte complex number.
8196
8197 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8198
8199 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8200 delete default constructor.
8201 (find_partial_die): Update to return const struct.
8202 (partial_die_parent_scope): Move variable declaration into scope
8203 of its use and change its type to auto.
8204 (guess_partial_die_structure_name): Likewise.
8205 (partial_die_info::fixup): Likewise.
8206
8207 2019-05-17 Tom Tromey <tromey@adacore.com>
8208
8209 * source.c (find_and_open_source): Remove cast.
8210
8211 2019-05-17 Tom Tromey <tromey@adacore.com>
8212
8213 * annotate.c (annotate_source): Make "filename" const.
8214 * annotate.h (annotate_source): Use const.
8215
8216 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8217
8218 * disasm.c (set_disassembler_options): Send errors to stderr.
8219
8220 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8221
8222 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8223 (cli_interp_base::set_logging): Check debug_redirect.
8224 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8225 * cli/cli-logging.c (debug_redirect): Add static variable.
8226 (pop_output_files): Add default param.
8227 (handle_redirections): Print debug setting.
8228 (show_logging_command): Likewise.
8229 (_initialize_cli_logging): Add debugredirect command.
8230 * interps.c (current_interp_set_logging): Add debug_redirect
8231 parameter.
8232 * interps.h (set_logging): Add debug_redirect parameter.
8233 (current_interp_set_logging): Likewise.
8234 * mi/mi-common.h: Likewise.
8235 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8236
8237 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8238 Tom Tromey <tromey@adacore.com>
8239
8240 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8241 directly.
8242 * cli/cli-interp.h (make_logging_output): Remove declaration.
8243 * cli/cli-logging.c (make_logging_output): Remove function.
8244 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8245 directly.
8246 * ui-file.c (tee_file::tee_file): Remove bools.
8247 (tee_file::~tee_file): Remove deletes.
8248 * ui-file.h (tee_file): Remove bools.
8249
8250 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8251
8252 * mi/mi-cmds.h (mi_cmd_complete): New function.
8253 * mi/mi-main.c (mi_cmd_complete): Likewise.
8254 * mi/mi-cmds.c: Define new MI command -complete.
8255 * NEWS: Mention new -complete command.
8256
8257 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8258
8259 * completer.h (complete): New function.
8260 * completer.c (complete): Likewise.
8261 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8262 function defined in completer.h.
8263
8264 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8265
8266 * MAINTAINERS (Write After Approval): Add myself.
8267
8268 2019-05-17 Tom de Vries <tdevries@suse.de>
8269
8270 PR gdb/24094
8271 * dwarf2read.c (struct cu_partial_die_info): New struct.
8272 (find_partial_die): Return cu_partial_die_info.
8273 (partial_die_parent_scope, guess_partial_die_structure_name)
8274 (partial_die_info::fixup): Handle new return type of find_partial_die.
8275
8276 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8277
8278 PR breakpoints/24541
8279 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8280 "std::string", simplifying the algorithm.
8281
8282 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8283
8284 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8285 (stap_static_probe_ops::get_probes): Likewise.
8286
8287 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8288
8289 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8290 '-')" and "else if".
8291 (stap_parse_single_operand): Join checks for
8292 "gdbarch_stap_parse_special_token_p" and
8293 "gdbarch_stap_parse_special_token" in the same "if" statement.
8294 Invert check when verifying for operation on register
8295 displacement.
8296
8297 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8298
8299 * stap-probe.c (stap_get_opcode): Update comment.
8300 (stap_get_expected_argument_type): Likewise.
8301 (handle_stap_probe): Likewise.
8302
8303 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8304
8305 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8306 return type to 'bool'. Adjust comment. Use 'bool' when
8307 appropriate.
8308 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8309 * stap-probe.c (stap_parse_argument_1): Likewise.
8310 (stap_is_operator): Likewise.
8311 (stap_is_generic_prefix): Likewise.
8312 (stap_is_register_prefix): Likewise.
8313 (stap_is_register_indirection_prefix): Likewise.
8314 (stap_is_integer_prefix): Likewise.
8315 (stap_generic_check_suffix): Likewise.
8316 (stap_check_integer_suffix): Likewise.
8317 (stap_check_register_suffix): Likewise.
8318 (stap_check_register_indirection_suffix): Likewise.
8319 (stap_parse_register_operand): Likewise.
8320 (stap_parse_single_operand): Likewise.
8321 (stap_parse_argument_1): Likewise.
8322 (stap_probe::get_argument_count): Likewise.
8323 (stap_is_operator): Likewise.
8324
8325 2019-05-16 Tom Tromey <tromey@adacore.com>
8326
8327 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8328 keyword to foreach.
8329
8330 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8331
8332 * linux-thread-db.c (try_thread_db_load_1): Change return type
8333 to bool.
8334 (try_thread_db_load): Likewise.
8335 (try_thread_db_load_from_pdir_1): Likewise.
8336 (try_thread_db_load_from_pdir): Likewise.
8337 (try_thread_db_load_from_sdir): Likewise.
8338 (try_thread_db_load_from_dir): Likewise.
8339 (thread_db_load_search): Likewise.
8340 (has_libpthread): Likewise.
8341 (thread_db_load): Likewise.
8342
8343 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8344
8345 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8346 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8347 NULL, and complain/return if that's the case.
8348
8349 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8350
8351 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8352 (advance, posn, abstract_read_memory): New functions.
8353 [struct mem_read_abstraction]: New struct.
8354 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8355
8356 2019-05-14 Tom Tromey <tromey@adacore.com>
8357
8358 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8359 value is not lval_memory.
8360
8361 2019-05-14 Tom Tromey <tromey@adacore.com>
8362
8363 * solib.c (info_sharedlibrary_command): Style the file name.
8364
8365 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8366
8367 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8368 (aarch64_vnv_type): Likewise.
8369 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8370 * common/tdesc.c: Likewise.
8371 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8372 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8373 * features/aarch64-fpu.xml: Add ieee half view.
8374 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8375 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8376 * gdbtypes.h (struct builtin_type): Likewise.
8377 (struct objfile_type): Likewise.
8378
8379 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8380
8381 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8382 typo.
8383 * location.h (string_to_event_location): Likewise.
8384
8385 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8386
8387 GDB 8.3 released.
8388
8389 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8390
8391 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8392 New variable declaration.
8393 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8394 New variable.
8395 (print_one_breakpoint): Use ui_out::test_flags and new global
8396 variable to compute use_fixed_output.
8397 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8398 Remove.
8399 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8400 (mi_multi_location_breakpoint_output_fixed): Remove.
8401 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8402 new variable.
8403 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8404 fix_multi_location_breakpoint_output flag if version >= 3.
8405 * ui-out.h (enum ui_out_flag)
8406 <fix_multi_location_breakpoint_output>: New enumerator.
8407
8408 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8409
8410 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8411
8412 2019-05-10 Tom Tromey <tromey@adacore.com>
8413
8414 * ada-lang.c (catch_ada_completer): New function.
8415 (_initialize_ada_language): Use it.
8416
8417 2019-05-10 Tom Tromey <tromey@adacore.com>
8418
8419 * thread.c (print_thread_info): Make "requested_threads" const.
8420 * gdbthread.h (print_thread_info): Make "requested_threads"
8421 const.
8422 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8423 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8424
8425 2019-05-08 Tom Tromey <tom@tromey.com>
8426
8427 * gdbtypes.c (objfile_type_data): Change type.
8428 (objfile_type, _initialize_gdbtypes): Update.
8429
8430 2019-05-08 Tom Tromey <tom@tromey.com>
8431
8432 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8433 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8434 (_initialize_dwarf2_frame): Update.
8435
8436 2019-05-08 Tom Tromey <tom@tromey.com>
8437
8438 * objc-lang.c (objc_objfile_data): Change type.
8439 (find_methods): Update.
8440 (_initialize_objc_lang): Remove.
8441
8442 2019-05-08 Tom Tromey <tom@tromey.com>
8443
8444 * stabsread.c (rs6000_builtin_type_data): Change type.
8445 (rs6000_builtin_type, _initialize_stabsread): Update.
8446
8447 2019-05-08 Tom Tromey <tom@tromey.com>
8448
8449 * mips-tdep.c (mips_pdr_data): Remove.
8450 (_initialize_mips_tdep): Update.
8451
8452 2019-05-08 Tom Tromey <tom@tromey.com>
8453
8454 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8455 (hppa_init_objfile_priv_data, read_unwind_info)
8456 (find_unwind_entry, _initialize_hppa_tdep): Update.
8457
8458 2019-05-08 Tom Tromey <tom@tromey.com>
8459
8460 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8461 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8462 on obstack.
8463 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8464
8465 2019-05-08 Tom Tromey <tom@tromey.com>
8466
8467 * mdebugread.c (basic_type_data): Change type.
8468 (basic_type, _initialize_mdebugread): Update.
8469
8470 2019-05-08 Tom Tromey <tom@tromey.com>
8471
8472 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8473
8474 2019-05-08 Tom Tromey <tom@tromey.com>
8475
8476 * nto-tdep.c (nto_inferior_data_reg): Change type.
8477 (nto_inferior_data): Update.
8478 (nto_inferior_data_cleanup, nto_new_inferior_data)
8479 (_initialize_nto_tdep): Remove.
8480 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8481
8482 2019-05-08 Tom Tromey <tom@tromey.com>
8483
8484 * ada-lang.c (struct ada_inferior_data): Add initializers.
8485 (ada_inferior_data): Change type.
8486 (ada_inferior_data_cleanup): Remove.
8487 (get_ada_inferior_data, ada_inferior_exit)
8488 (struct ada_pspace_data): Add initializers, destructor.
8489 (ada_pspace_data_handle): Change type.
8490 (get_ada_pspace_data): Update.
8491 (ada_pspace_data_cleanup): Remove.
8492
8493 2019-05-08 Tom Tromey <tom@tromey.com>
8494
8495 * coffread.c (struct coff_symfile_info): Add initializers.
8496 (coff_objfile_data_key): Move lower. Change type.
8497 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8498 Update.
8499 (coff_free_info): Remove.
8500
8501 2019-05-08 Tom Tromey <tom@tromey.com>
8502
8503 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8504 (fbsd_pspace_data_handle): Move lower. Change type.
8505 (get_fbsd_pspace_data): Update.
8506 (fbsd_pspace_data_cleanup): Remove.
8507 (_initialize_fbsd_tdep): Update.
8508
8509 2019-05-08 Tom Tromey <tom@tromey.com>
8510
8511 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8512 (get_ada_tasks_pspace_data): Update.
8513 (ada_tasks_pspace_data_cleanup): Remove.
8514 (_initialize_tasks): Update.
8515 (ada_tasks_inferior_data_handle): Change type.
8516 (get_ada_tasks_inferior_data): Update.
8517 (ada_tasks_inferior_data_cleanup): Remove.
8518 (struct ada_tasks_pspace_data): Add initializers.
8519
8520 2019-05-08 Tom Tromey <tom@tromey.com>
8521
8522 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8523 * symfile-debug.c (debug_sym_get_probes): Change type.
8524 * stap-probe.c (handle_stap_probe):
8525 (stap_static_probe_ops::get_probes): Change type.
8526 * probe.h (class static_probe_ops) <get_probes>: Change type.
8527 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8528 (parse_probes_in_pspace): Update.
8529 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8530 Update.
8531 (any_static_probe_ops::get_probes): Change type.
8532 * elfread.c (elfread_data): New typedef.
8533 (probe_key): Change type.
8534 (elf_get_probes): Likewise. Update.
8535 (probe_key_free): Remove.
8536 (_initialize_elfread): Update.
8537 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8538 Change type.
8539 (dtrace_process_dof_probe, dtrace_process_dof)
8540 (dtrace_static_probe_ops::get_probe): Change type.
8541
8542 2019-05-08 Tom Tromey <tom@tromey.com>
8543
8544 * xcoffread.c (struct xcoff_symfile_info): Rename from
8545 coff_symfile_info. Add initializers.
8546 (xcoff_objfile_data_key): Move lower. Change type.
8547 (XCOFF_DATA): Rewrite.
8548 (xcoff_free_info): Remove.
8549 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8550 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8551 (xcoff_initial_scan): Update.
8552
8553 2019-05-08 Tom Tromey <tom@tromey.com>
8554
8555 * solib-svr4.c (struct svr4_info): Add initializers and
8556 destructor.
8557 <probes_table>: Now an htab_up.
8558 (solib_svr4_pspace_data): Change type.
8559 (free_probes_table): Simplify.
8560 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8561 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8562 (probes_table_remove_objfile_probes, register_solib_event_probe)
8563 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8564 (_initialize_svr4_solib): Update.
8565
8566 2019-05-08 Tom Tromey <tom@tromey.com>
8567
8568 * remote.c (remote_pspace_data): Change type.
8569 (remote_pspace_data_cleanup): Remove.
8570 (get_remote_exec_file, set_pspace_remote_exec_file)
8571 (_initialize_remote): Update.
8572
8573 2019-05-08 Tom Tromey <tom@tromey.com>
8574
8575 * breakpoint.c (breakpoint_objfile_key): Change type.
8576 (get_breakpoint_objfile_data): Update.
8577 (free_breakpoint_objfile_data): Remove.
8578 (_initialize_breakpoint): Update.
8579
8580 2019-05-08 Tom Tromey <tom@tromey.com>
8581
8582 * linux-tdep.c (struct linux_info): Add initializers.
8583 (linux_inferior_data): Move. Change type.
8584 (invalidate_linux_cache_inf): Update.
8585 (linux_inferior_data_cleanup): Remove.
8586 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8587
8588 2019-05-08 Tom Tromey <tom@tromey.com>
8589
8590 * auxv.c (auxv_inferior_data): Move. Change type.
8591 (auxv_inferior_data_cleanup): Remove.
8592 (invalidate_auxv_cache_inf): Rewrite.
8593 (get_auxv_inferior_data, _initialize_auxv): Update.
8594
8595 2019-05-08 Tom Tromey <tom@tromey.com>
8596
8597 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8598 (symfile_debug_objfile_data_key): Change type.
8599 (symfile_debug_installed, debug_qf_has_symbols)
8600 (debug_qf_find_last_source_symtab)
8601 (debug_qf_forget_cached_source_info)
8602 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8603 (debug_qf_print_stats, debug_qf_dump)
8604 (debug_qf_expand_symtabs_for_function)
8605 (debug_qf_expand_all_symtabs)
8606 (debug_qf_expand_symtabs_with_fullname)
8607 (debug_qf_map_matching_symbols)
8608 (debug_qf_expand_symtabs_matching)
8609 (debug_qf_find_pc_sect_compunit_symtab)
8610 (debug_qf_map_symbol_filenames)
8611 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8612 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8613 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8614 (debug_sym_read_linetable, debug_sym_relocate): Update.
8615 (symfile_debug_free_objfile): Remove.
8616 (install_symfile_debug_logging, _initialize_symfile_debug):
8617 Update.
8618
8619 2019-05-08 Tom Tromey <tom@tromey.com>
8620
8621 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8622 allocate_on_obstack.
8623 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8624 (get_dwarf2_per_objfile): Update.
8625 (set_dwarf2_per_objfile): Remove.
8626 (dwarf2_has_info, dwarf2_get_section_info): Update.
8627 (dwarf2_free_objfile): Remove.
8628 (_initialize_dwarf2_read): Update.
8629
8630 2019-05-08 Tom Tromey <tom@tromey.com>
8631
8632 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8633 initializers.
8634 <unsupported_script_warning_printed,
8635 script_not_found_warning_printed>: Now bool.
8636 (auto_load_pspace_data): Change type.
8637 (~auto_load_pspace_info): Rename from
8638 auto_load_pspace_data_cleanup.
8639 (get_auto_load_pspace_data, init_loaded_scripts_info)
8640 (clear_section_scripts, maybe_print_unsupported_script_warning)
8641 (maybe_print_script_not_found_warning, _initialize_auto_load):
8642 Update.
8643
8644 2019-05-08 Tom Tromey <tom@tromey.com>
8645
8646 * objfiles.c (objfile_pspace_info): Add destructor and
8647 initializers.
8648 (objfiles_pspace_data): Change type.
8649 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8650 (get_objfile_pspace_data): Update.
8651 (objfiles_bfd_data): Change type.
8652 (get_objfile_bfd_data): Update.
8653 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8654
8655 2019-05-08 Tom Tromey <tom@tromey.com>
8656
8657 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8658 Change type.
8659 (get_catch_syscall_inferior_data): Update.
8660 (catch_syscall_inferior_data_cleanup): Remove.
8661 (_initialize_break_catch_syscall): Update.
8662
8663 2019-05-08 Tom Tromey <tom@tromey.com>
8664
8665 * inflow.c (struct terminal_info): Add destructor and
8666 initializers.
8667 (inflow_inferior_data): Change type.
8668 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8669 (get_inflow_inferior_data, inflow_inferior_exit)
8670 (swap_terminal_info, _initialize_inflow): Update.
8671
8672 2019-05-08 Tom Tromey <tom@tromey.com>
8673
8674 * target-dcache.c (target_dcache_cleanup): Remove.
8675 (target_dcache_aspace_key): Change type.
8676 (target_dcache_init_p, target_dcache_invalidate)
8677 (target_dcache_get, target_dcache_get_or_init)
8678 (_initialize_target_dcache): Update.
8679 * dcache.h (struct dcache_deleter): New.
8680
8681 2019-05-08 Tom Tromey <tom@tromey.com>
8682
8683 * symtab.c (struct symbol_cache): Add destructor and
8684 initializers.
8685 (symbol_cache_key): Move. Change type.
8686 (make_symbol_cache, free_symbol_cache): Remove.
8687 (get_symbol_cache): Update.
8688 (symbol_cache_cleanup): Remove.
8689 (ALL_PSPACES, symbol_cache_flush)
8690 (maintenance_print_symbol_cache)
8691 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8692 Update.
8693
8694 2019-05-08 Tom Tromey <tom@tromey.com>
8695
8696 * symtab.c (struct main_info): Add destructor and initializers.
8697 (main_progspace_key): Move. Change type.
8698 (get_main_info): Update.
8699 (main_info_cleanup): Remove.
8700 (_initialize_symtab): Update.
8701
8702 2019-05-08 Tom Tromey <tom@tromey.com>
8703
8704 * registry.h (DECLARE_REGISTRY): Define the _key class.
8705
8706 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8707
8708 * NEWS: Merge two 'New commands' sections.
8709
8710 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8711
8712 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8713 parameter and use Ada language definition instead.
8714 (ada_val_print_ptr): Remove unused language parameter.
8715 (ada_val_print_num): Remove language parameter and use Ada language
8716 definition instead.
8717 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8718 parameter.
8719 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8720 parameter and use Ada language definition instead.
8721 (ada_val_print_1): Update all ada_val_print_xxx calls.
8722 Remove language parameter.
8723 (ada_val_print): Update ada_val_print_1 call.
8724
8725 2019-05-08 Tom Tromey <tromey@adacore.com>
8726
8727 * remote.c (remote_hw_watchpoint_limit)
8728 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8729 Now static.
8730
8731 2019-05-08 Tom Tromey <tromey@adacore.com>
8732
8733 * maint.c (_initialize_maint_cmds): Move initialization code to
8734 remote.c.
8735 (watchdog, show_watchdog): Move to remote.c.
8736 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8737 "watchdog" static.
8738 (_initialize_remote): Move initialization code from maint.c.
8739 * defs.h (watchdog): Don't declare.
8740
8741 2019-05-08 Tom Tromey <tromey@adacore.com>
8742
8743 * tui/tui-interp.c: Include main.h.
8744 * interps.c: Include main.h.
8745 * main.h (interpreter_p): Declare.
8746 * defs.h (interpreter_p): Don't declare.
8747
8748 2019-05-08 Tom Tromey <tromey@adacore.com>
8749
8750 * dwarf2loc.c: Include dwarf2read.h.
8751 * defs.h (read_unsigned_leb128): Don't declare.
8752 * dwarf2read.h (read_unsigned_leb128): Declare.
8753
8754 2019-05-08 Tom Tromey <tromey@adacore.com>
8755
8756 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8757 method.
8758
8759 2019-05-08 Tom Tromey <tromey@adacore.com>
8760
8761 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8762 when no wrap column is set.
8763
8764 2019-05-08 Tom Tromey <tromey@adacore.com>
8765
8766 * c-lang.c (c_get_string): Handle non-C-style arrays.
8767
8768 2019-05-08 Tom Tromey <tromey@adacore.com>
8769
8770 * typeprint.c (print_offset_data::update): Print the bit offset,
8771 not the number of bits remaining.
8772
8773 2019-05-08 Tom Tromey <tromey@adacore.com>
8774
8775 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8776 padding at end of comment.
8777
8778 2019-05-08 Tom Tromey <tromey@adacore.com>
8779
8780 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8781 Compare main types.
8782
8783 2019-05-06 Tom Tromey <tom@tromey.com>
8784
8785 * common/scoped_mmap.c: Include common-defs.h.
8786 * common/scoped_mmap.h: Don't include config.h.
8787
8788 2019-05-04 Tom Tromey <tom@tromey.com>
8789
8790 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8791 (struct aarch64_call_info): Add initializers.
8792 <si>: Now a std::vector.
8793 (pass_on_stack, aarch64_push_dummy_call): Update.
8794
8795 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8796 Tom Tromey <tom@tromey.com>
8797
8798 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8799 (ppc_threads): Now a std::vector. Now static.
8800 (hwdebug_find_thread_points_by_tid)
8801 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8802 Update.
8803
8804 2019-05-04 Tom Tromey <tom@tromey.com>
8805
8806 * arc-tdep.c (arc_tdesc_init): Return bool.
8807
8808 2019-05-04 Tom Tromey <tom@tromey.com>
8809
8810 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8811 Use gdb_assert_not_reached.
8812
8813 2019-05-04 Tom Tromey <tom@tromey.com>
8814
8815 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8816 "false".
8817
8818 2019-05-04 Tom Tromey <tom@tromey.com>
8819
8820 * arc-tdep.c (arc_tdesc_init): Use bool.
8821
8822 2019-05-04 Tom Tromey <tom@tromey.com>
8823
8824 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8825
8826 2019-05-04 Tom Tromey <tom@tromey.com>
8827
8828 * cli/cli-cmds.c (valid_command_p): Return bool.
8829
8830 2019-05-04 Tom Tromey <tom@tromey.com>
8831
8832 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8833 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8834
8835 2019-05-04 Raul Tambre <raul@tambre.ee>
8836
8837 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8838 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8839 operator for comparison.
8840
8841 2019-05-04 Tom Tromey <tom@tromey.com>
8842
8843 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8844 (lookup_partial_symbol, print_partial_symbols)
8845 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8846 (psymbol_compare): Update.
8847 (add_psymbol_to_bcache): Clear the entire psymbol.
8848 (maintenance_check_psymtabs): Update.
8849 * psympriv.h (struct partial_symbol): Don't derive from
8850 general_symbol_info.
8851 <obj_section, unrelocated_address, address,
8852 set_unrelocated_address>: Update.
8853 <ginfo>: New member.
8854 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8855 (debug_names::write_psymbols): Update.
8856
8857 2019-05-04 Tom de Vries <tdevries@suse.de>
8858
8859 * contrib/cc-with-tweaks.sh: Support -n arg.
8860
8861 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8862
8863 * corelow.c (core_target::detach): Ensure frame cache and
8864 register caches are cleared.
8865 inferior.c (exit_inferior_1): Likewise.
8866
8867 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8868 Tom Tromey <tom@tromey.com>
8869
8870 * dictionary.c (collate_pending_symbols_by_language): Remove
8871 "struct" from foreach.
8872 * symtab.c (lookup_global_symbol_from_objfile)
8873 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8874 foreach.
8875 * ser-tcp.c (net_open): Remove "struct" from foreach.
8876 * objfiles.c (objfile_relocate, objfile_rebase)
8877 (objfile_has_symbols): Remove "struct" from foreach.
8878 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8879 from foreach.
8880 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8881 foreach.
8882 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8883 "struct" from foreach.
8884 * ada-lang.c (create_excep_cond_exprs)
8885 (ada_exception_catchpoint_cond_string): Remove "struct" from
8886 foreach.
8887
8888 2019-05-03 Tom Tromey <tromey@adacore.com>
8889
8890 * ada-exp.y (convert_char_literal): Check suffix of each
8891 enumerator.
8892
8893 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8894
8895 PR ada/21406:
8896 * ada-exp.y (yywrap): Don't define.
8897 * ada-lex.l (%option): Add noyywrap
8898 (yywrap): Remove.
8899
8900 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8901
8902 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8903 _WIN32_WINNT to the XP level, unless already defined to a higher
8904 level.
8905
8906 * unittests/parse-connection-spec-selftests.c:
8907 * ser-tcp.c:
8908 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8909 override.
8910
8911 * symfile.c (find_separate_debug_file): Remove colon from the
8912 drive spec of DOS/Windows file names of the target, so that the
8913 file name produced from DEBUGDIR and the target's directory will
8914 be valid on DOS/Windows systems.
8915
8916 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8917
8918 * rust-lang.c (val_print_struct): Handle printing structures
8919 containing strings.
8920
8921 2019-05-02 Tom Tromey <tromey@adacore.com>
8922
8923 * valarith.c (_initialize_valarith): Remove.
8924
8925 2019-05-01 Tom Tromey <tromey@adacore.com>
8926
8927 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8928 bitfields.
8929
8930 2019-05-01 Tom Tromey <tromey@adacore.com>
8931
8932 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8933 for big-endian copies.
8934
8935 2019-04-30 Ali Tamur <tamur@google.com>
8936 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8937 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8938 (read_3_bytes): New function.
8939
8940 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8941
8942 * windows-nat.c (main_thread_id): Delete.
8943 (handle_output_debug_string): Replace main_thread_id by
8944 current_event.dwThreadId.
8945 (fake_create_process): Likewise.
8946 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8947 Do not set main_thread_id.
8948 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8949 current_event.dwThreadId.
8950 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8951
8952 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8953
8954 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8955 Use current_event.dwThreadId instead of main_thread_id.
8956
8957 2019-04-30 Tom Tromey <tromey@adacore.com>
8958
8959 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8960 (create_excep_cond_exprs): Iterate over program spaces.
8961 (ada_exception_catchpoint_cond_string): Examine all minimal
8962 symbols for exception types.
8963
8964 2019-04-30 Tom Tromey <tromey@adacore.com>
8965
8966 PR c++/24470:
8967 * dwarf2read.c (process_structure_scope): Handle case where type
8968 has template parameters but no symbol was created.
8969
8970 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8971 Chris January <chris.january@arm.com>
8972
8973 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8974 qualifier.
8975 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8976
8977 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8978
8979 * f-typeprint.c (f_print_type): Update rules for printing
8980 whitespace.
8981 (f_type_print_varspec_suffix): Likewise.
8982
8983 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8984 Chris January <chris.january@arm.com>
8985
8986 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8987 function arguments.
8988
8989 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8990
8991 * f-lang.c (build_fortran_types): Change name of void type to
8992 lower case.
8993 * f-typeprint.c (f_type_print_base): Print the name of the void
8994 type, rather than a fixed string.
8995 * f-valprint.c (f_decorations): Use lower case void string.
8996
8997 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8998 Chris January <chris.january@arm.com>
8999
9000 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9001 types for Fortran.
9002
9003 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9004 Chris January <chris.january@arm.com>
9005 David Lecomber <david.lecomber@arm.com>
9006
9007 * f-exp.y (BINOP_INTRINSIC): New token.
9008 (exp): New parser rule handling BINOP_INTRINSIC.
9009 (f77_keywords): Add new builtin procedures.
9010 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9011 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9012 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9013 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9014 (print_unop_subexp_f): New function.
9015 (print_binop_subexp_f): New function.
9016 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9017 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9018 (dump_subexp_body_f): Likewise.
9019 (operator_check_f): Likewise.
9020 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9021 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9022
9023 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9024
9025 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9026 UNOP_KIND.
9027 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9028 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9029 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9030 (operator_length_f): New fuction.
9031 (print_subexp_f): New function.
9032 (op_name_f): New function.
9033 (dump_subexp_body_f): New function.
9034 (operator_check_f): New function.
9035 (exp_descriptor_f): Replace standard expression handling functions
9036 with new functions.
9037 * gdb/fortran-operator.def: New file.
9038 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9039 * gdb/std-operator.def: Remove UNOP_KIND.
9040
9041 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9042
9043 * std-operator.def: Remove unbalanced, stray double quote
9044 character.
9045
9046 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9047 Chris January <chris.january@arm.com>
9048 Daniel Everett <daniel.everett@arm.com>
9049 Nick Forrington <nick.forrington@arm.com>
9050 Richard Bunt <richard.bunt@arm.com>
9051
9052 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9053 of depth when printing anonymous structs or unions.
9054 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9055 Don't print either the top-level value, or the children if the
9056 max-depth is exceeded.
9057 (ppscm_print_children): When printing the key of a map, allow one
9058 extra level of depth.
9059 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9060 print either the top-level value, or the children if the max-depth
9061 is exceeded.
9062 (print_children): When printing the key of a map, allow one extra
9063 level of depth.
9064 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9065 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9066 (user_print_options): Initialise max_depth field.
9067 (val_print_scalar_or_string_type_p): New function.
9068 (val_print): Check to see if the max depth has been reached.
9069 (val_print_check_max_depth): Define new function.
9070 (show_print_max_depth): New function.
9071 (_initialize_valprint): Add 'print max-depth' option.
9072 * valprint.h (struct value_print_options) <max_depth>: New field.
9073 (val_print_check_max_depth): Declare new function.
9074 * NEWS: Document new feature.
9075
9076 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * ada-lang.c (ada_language_defn): Initialise new field.
9079 * c-lang.c (c_is_string_type_p): New function.
9080 (c_language_defn): Initialise new field.
9081 (cplus_language_defn): Initialise new field.
9082 (asm_language_defn): Initialise new field.
9083 (minimal_language_defn): Initialise new field.
9084 * c-lang.h (c_is_string_type_p): Declare new function.
9085 * d-lang.c (d_language_defn): Initialise new field.
9086 * f-lang.c (f_is_string_type_p): New function.
9087 (f_language_defn): Initialise new field.
9088 * go-lang.c (go_is_string_type_p): New function.
9089 (go_language_defn): Initialise new field.
9090 * language.c (default_is_string_type_p): New function.
9091 (unknown_language_defn): Initialise new field.
9092 (auto_language_defn): Initialise new field.
9093 * language.h (struct language_defn) <la_is_string_type_p>: New
9094 member variable.
9095 (default_is_string_type_p): Declare new function.
9096 * m2-lang.c (m2_language_defn): Initialise new field.
9097 * objc-lang.c (objc_language_defn): Initialise new field.
9098 * opencl-lang.c (opencl_language_defn): Initialise new field.
9099 * p-lang.c (pascal_is_string_type_p): New function.
9100 (pascal_language_defn): Initialise new field.
9101 * rust-lang.c (rust_is_string_type_p): New function.
9102 (rust_language_defn): Initialise new field.
9103
9104 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9105
9106 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9107 New field.
9108 * ada-lang.c (ada_language_defn): Initialise new field.
9109 * c-lang.c (c_language_defn): Likewise.
9110 (cplus_language_defn): Likewise.
9111 (asm_language_defn): Likewise.
9112 (minimal_language_defn): Likewise.
9113 * d-lang.c (d_language_defn): Likewise.
9114 * f-lang.c (f_language_defn): Likewise.
9115 * go-lang.c (go_language_defn): Likewise.
9116 * language.c (unknown_language_defn): Likewise.
9117 (auto_language_defn): Likewise.
9118 * m2-lang.c (m2_language_defn): Likewise.
9119 * objc-lang.c (objc_language_defn): Likewise.
9120 * opencl-lang.c (opencl_language_defn): Likewise.
9121 * p-lang.c (pascal_language_defn): Likewise.
9122 * rust-lang.c (rust_language_defn): Likewise.
9123
9124 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9125
9126 * ada-lang.c (ada_is_character_type): Change return type to bool.
9127 (ada_is_string_type): Likewise.
9128 * ada-lang.h (ada_is_character_type): Update declaration
9129 (ada_is_string_type): Likewise.
9130
9131 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9132
9133 Support style in 'frame|thread apply'
9134
9135 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9136 * record.c (record_start, record_stop): Update callers of
9137 execute_command_to_string with false.
9138 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9139 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9140 methods.
9141 (class string_file): New constructor with term_out parameter.
9142 Override methods term_out and can_emit_style_escape. New member
9143 term_out.
9144 (class stdio_file): Override can_emit_style_escape.
9145 (class tee_file): Override term_out and can_emit_style_escape.
9146 * utils.h (can_emit_style_escape): Remove.
9147 * utils.c (can_emit_style_escape): Likewise.
9148 Update all callers of can_emit_style_escape (SOMESTREAM) to
9149 SOMESTREAM->can_emit_style_escape.
9150 * source-cache.c (source_cache::get_source_lines): Likewise.
9151 * stack.c (frame_apply_command_count): Call execute_command_to_string
9152 passing the term_out characteristic of the current gdb_stdout.
9153 * thread.c (thr_try_catch_cmd): Likewise.
9154 * top.c (execute_command_to_string): pass term_out parameter
9155 to construct the string_file for the command output.
9156 * ui-file.c (term_cli_styling): New function (most code moved
9157 from utils.c can_emit_style_escape).
9158 (string_file::string_file, string_file::can_emit_style_escape,
9159 stdio_file::can_emit_style_escape, tee_file::term_out,
9160 tee_file::can_emit_style_escape): New functions.
9161
9162 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9163
9164 * NEWS: Mention the new set|show may-call-functions.
9165 * infcall.c (may_call_functions_p): New variable.
9166 (show_may_call_functions_p): New function.
9167 (call_function_by_hand_dummy): Throws an error if not
9168 may-call-functions.
9169 (_initialize_infcall): Call add_setshow_boolean_cmd for
9170 may-call-functions.
9171
9172 2019-04-25 Keith Seitz <keiths@redhat.com>
9173
9174 PR c++/24367
9175 * cp-support.c (inspect_type): Don't attempt substitutions
9176 of symbol with the same name.
9177
9178 2019-04-25 Tom Tromey <tromey@adacore.com>
9179
9180 PR gdb/24475:
9181 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9182 static.
9183
9184 2019-04-25 Tom Tromey <tromey@adacore.com>
9185
9186 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9187 rvalue reference.
9188 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9189 (gdb_xml_parser::parse): Use std::move.
9190 * python/python-internal.h (gdbpy_convert_exception): Take a const
9191 reference.
9192 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9193 std::move.
9194 * python/py-utils.c (gdbpy_convert_exception): Take a const
9195 reference.
9196 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9197 Use std::move.
9198 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9199 Use std::move.
9200 * mi/mi-main.c (mi_print_exception): Take a const reference.
9201 * main.c (handle_command_errors): Take a const reference.
9202 * linespec.c (parse_linespec): Use std::move.
9203 * infcall.c (run_inferior_call): Use std::move.
9204 (call_function_by_hand_dummy): Use std::move.
9205 * exec.c (try_open_exec_file): Use std::move.
9206 * exceptions.h (exception_print, exception_fprintf)
9207 (exception_print_same): Update.
9208 * exceptions.c (print_exception, exception_print)
9209 (exception_fprintf, exception_print_same): Change parameters to
9210 const reference.
9211 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9212 * common/new-op.c: Use std::move.
9213 * common/common-exceptions.h (struct gdb_exception): Add move
9214 constructor.
9215 (struct gdb_exception_error, struct gdb_exception_quit, struct
9216 gdb_quit_bad_alloc): Change constructor to move constructor.
9217 (throw_exception): Change parameter to rvalue reference.
9218 * common/common-exceptions.c (throw_exception): Take rvalue
9219 reference.
9220 * cli/cli-interp.c (safe_execute_command): Use std::move.
9221 * breakpoint.c (insert_bp_location, location_to_sals): Use
9222 std::move.
9223
9224 2019-04-25 Tom Tromey <tromey@adacore.com>
9225
9226 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9227 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9228 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9229 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9230 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9231 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9232 guile/scm-value.c: Use unpack.
9233 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9234 gdbscm_gdb_exception.
9235 (gdbscm_throw_gdb_exception): Likewise.
9236 (struct gdbscm_gdb_exception): New.
9237 (unpack): New function.
9238 (gdbscm_wrap): Use unpack.
9239
9240 2019-04-25 Tom Tromey <tromey@adacore.com>
9241
9242 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9243 (gdb_rl_callback_handler): Use std::move.
9244 * common/common-exceptions.h (struct gdb_exception): Add move
9245 assignment operator.
9246 (throw_exception_sjlj): Change "exception" to const reference.
9247 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9248 (throw_exception_sjlj): Change "exception" to const reference.
9249
9250 2019-04-25 Tom Tromey <tromey@adacore.com>
9251
9252 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9253 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9254 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9255 Update.
9256 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9257 Update.
9258 * mi/mi-interp.c (mi_interp::exec): Update.
9259 * linespec.c (parse_linespec): Update.
9260 * infcall.c (run_inferior_call): Update.
9261 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9262 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9263 (gdbscm_lookup_global_symbol): Update.
9264 * guile/scm-param.c (gdbscm_parameter_value): Update.
9265 * guile/scm-frame.c (gdbscm_frame_read_register)
9266 (gdbscm_frame_read_var): Update.
9267 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9268 * exec.c (try_open_exec_file): Update.
9269 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9270 (gdb_rl_callback_handler): Update.
9271 * common/common-exceptions.h (exception_none): Don't declare.
9272 * common/common-exceptions.c (exception_none): Don't define.
9273 (struct catcher) <exception>: Update.
9274 * cli/cli-interp.c (safe_execute_command): Update.
9275 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9276
9277 2019-04-25 Ali Tamur <tamur@google.com>
9278
9279 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9280 (read_attribute_value): Likewise.
9281 (dwarf2_read_addr_index): Update comment.
9282 (read_str_index): Add DW_FORM_strx.
9283 (dwarf2_string_attr): Likewise.
9284 (dwarf2_const_value_attr): Likewise.
9285 (dump_die_shallow): Likewise.
9286 (dwarf2_fetch_constant_bytes): Likewise.
9287 (skip_form_bytes): Likewise.
9288 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9289
9290 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9291
9292 PR corefiles/11608
9293 PR corefiles/18187
9294 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9295 OFFSET. Verify if current mapping contains an ELF header.
9296 (linux_find_memory_regions_full): Adjust call to
9297 dump_mapping_p.
9298
9299 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9300 Kang Li <kanglictf@gmail.com>
9301
9302 PR gdb/21600
9303
9304 * dwarf2-frame.c (read_initial_length): Be consistent about using
9305 unsigned representation of length.
9306 (decode_frame_entry_1): Likewise. Check for wraparound of
9307 end pointer as well as buffer overflow.
9308
9309 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9310
9311 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9312 "vq".
9313
9314 2019-04-24 Tom Tromey <tromey@adacore.com>
9315
9316 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9317
9318 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9319
9320 * s12z-tdep.c (s12z_unwind_pc): Delete.
9321 (s12z_unwind_sp): Delete.
9322 (s12z_gdbarch_init): Don't register deleted functions with
9323 gdbarch.
9324
9325 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * rl78-tdep.c (rl78_unwind_sp): Delete.
9328 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9329
9330 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9331
9332 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9333 (xstormy16_unwind_pc): Delete.
9334 (xstormy16_dummy_id): Delete.
9335 (xstormy16_gdbarch_init): Don't register deleted functions with
9336 gdbarch.
9337
9338 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9339
9340 * vax-tdep.c (vax_unwind_pc): Delete.
9341 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9342
9343 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * v850-tdep.c (v850_unwind_sp): Delete.
9346 (v850_unwind_pc): Delete.
9347 (v850_dummy_id): Delete.
9348 (v850_gdbarch_init): Don't register deleted functions with
9349 gdbarch.
9350
9351 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9352
9353 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9354 (tilegx_unwind_pc): Delete.
9355 (tilegx_unwind_dummy_id): Delete.
9356 (tilegx_gdbarch_init): Don't register deleted functions with
9357 gdbarch.
9358
9359 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9360
9361 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9362 (tic6x_dummy_id): Delete.
9363 (tic6x_gdbarch_init): Don't register deleted functions with
9364 gdbarch.
9365
9366 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9367
9368 * sparc-tdep.c (sparc_unwind_pc): Delete.
9369 (sparc32_gdbarch_init): Don't register deleted function with
9370 gdbarch.
9371
9372 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9373
9374 * sh-tdep.c (sh_unwind_sp): Delete.
9375 (sh_unwind_pc): Delete.
9376 (sh_dummy_id): Delete.
9377 (sh_gdbarch_init): Don't register deleted functions with
9378 gdbarch.
9379
9380 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9381
9382 * score-tdep.c (score_unwind_sp): Delete.
9383 (score_unwind_pc): Delete.
9384 (score_dummy_id): Delete.
9385 (score_gdbarch_init): Don't register deleted functions with
9386 gdbarch.
9387
9388 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9389
9390 * rx-tdep.c (rx_unwind_pc): Delete.
9391 (rx_unwind_sp): Delete.
9392 (rx_dummy_id): Delete.
9393 (rx_gdbarch_init): Don't register deleted functions with
9394 gdbarch. Update comment.
9395
9396 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9397
9398 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9399 (rs6000_dummy_id): Delete.
9400 (rs6000_gdbarch_init): Don't register deleted functions with
9401 gdbarch.
9402
9403 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9404
9405 * or1k-tdep.c (or1k_dummy_id): Delete.
9406 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9407
9408 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9409
9410 * nios2-tdep.c (nios2_dummy_id): Delete.
9411 (nios2_unwind_sp): Delete.
9412 (nios2_gdbarch_init): Don't register deleted functions with
9413 gdbarch.
9414
9415 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9416
9417 * nds32-tdep.c (nds32_dummy_id): Delete.
9418 (nds32_unwind_pc): Delete.
9419 (nds32_unwind_sp): Delete.
9420 (nds32_gdbarch_init): Don't register deleted functions with
9421 gdbarch.
9422
9423 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9424
9425 * msp430-tdep.c (msp430_unwind_pc): Delete.
9426 (msp430_unwind_sp): Delete.
9427 (msp430_dummy_id): Delete.
9428 (msp430_gdbarch_init): Don't register deleted functions with
9429 gdbarch.
9430
9431 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9432
9433 * moxie-tdep.c (moxie_unwind_sp): Delete.
9434 (moxie_unwind_pc): Delete.
9435 (moxie_dummy_id): Delete.
9436 (moxie_gdbarch_init): Don't register deleted functions with
9437 gdbarch.
9438
9439 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9442 (mn10300_unwind_pc): Delete.
9443 (mn10300_unwind_sp): Delete.
9444 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9445 mn10300_unwind_sp.
9446 (mn10300_frame_unwind_init): Don't register deleted functions with
9447 gdbarch.
9448
9449 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9450
9451 * mep-tdep.c (mep_unwind_pc): Delete.
9452 (mep_unwind_sp): Delete.
9453 (mep_dummy_id): Delete.
9454 (mep_gdbarch_init): Don't register deleted functions with
9455 gdbarch.
9456
9457 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9458
9459 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9460 (m68hc11_unwind_sp): Delete.
9461 (m68hc11_gdbarch_init): Don't register deleted functions with
9462 gdbarch.
9463
9464 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9465
9466 * m32r-tdep.c (m32r_unwind_sp): Delete.
9467 (m32r_unwind_pc): Delete.
9468 (m32r_dummy_id): Delete.
9469 (m32r_gdbarch_init): Don't register deleted functions with
9470 gdbarch.
9471
9472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * m32c-tdep.c (m32c_unwind_pc): Delete.
9475 (m32c_unwind_sp): Delete.
9476 (m32c_dummy_id): Delete.
9477 (m32c_gdbarch_init): Don't register deleted functions with
9478 gdbarch.
9479
9480 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9481
9482 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9483 (lm32_unwind_pc): Delete.
9484 (lm32_dummy_id): Delete.
9485 (lm32_gdbarch_init): Don't register deleted functions with
9486 gdbarch.
9487
9488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9489
9490 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9491 (iq2000_unwind_pc): Delete.
9492 (iq2000_dummy_id): Delete.
9493 (iq2000_gdbarch_init): Don't register deleted functions with
9494 gdbarch.
9495
9496 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9497
9498 * nds32-tdep.c (nds32_type_align): Delete.
9499 (nds32_push_dummy_call): Use type_align instead.
9500
9501 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9502
9503 * arm-tdep.c (arm_type_align): Only handle vector override case.
9504 (arm_push_dummy_call): Use type_align.
9505 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9506
9507 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9508
9509 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9510 case.
9511 (pass_on_stack): Use type_align.
9512 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9513 function.
9514
9515 2019-04-23 Tom Tromey <tromey@adacore.com>
9516
9517 * dwarf2read.c (line_header::file_name_at): Remove unused
9518 overload.
9519
9520 2019-04-23 Tom de Vries <tdevries@suse.de>
9521
9522 PR gdb/24438
9523 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9524 invocation.
9525
9526
9527 2019-03-27 Ali Tamur <tamur@google.com>
9528
9529 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9530 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9531 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9532 (dwarf_expr_context::get_addr_index): Likewise
9533 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9534 (symbol_needs_eval_context::get_addr_index): Likewise
9535 (disassemble_dwarf_expression): Add DW_OP_addrx
9536 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9537 (read_cutu_die_from_dwo): Update comment
9538 (skip_one_die): Add DW_FORM_addrx
9539 (read_attribute_value): Likewise
9540 (var_decode_location): Add DW_OP_addrx
9541 (dwarf2_const_value_attr): Add DW_FORM_addrx
9542 (dump_die_shallow): Likewise
9543 (dwarf2_fetch_constant_bytes): Likewise
9544 (decode_locdesc): Add DW_OP_addrx
9545 (skip_form_bytes): Add DW_FORM_addrx
9546
9547 2019-04-22 Ali Tamur <tamur@google.com>
9548
9549 * MAINTAINERS (Write After Approval): Add self.
9550
9551 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9554 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9555 (open_symbol_file_object): Likewise.
9556 (svr4_default_sos): Add info parameter.
9557 (svr4_read_so_list): Likewise.
9558 (svr4_current_sos_direct): Adjust functions calls to pass down
9559 info.
9560 (svr4_current_sos_1): Add info parameter.
9561 (svr4_current_sos): Call get_svr4_info, pass info down to
9562 svr4_current_sos_1.
9563 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9564 get_svr4_info.
9565 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9566 get_svr4_info.
9567 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9568 to get_svr4_info.
9569 (probes_table_remove_objfile_probes): Likewise.
9570 (register_solib_event_probe): Add info parameter.
9571 (solist_update_incremental): Pass info parameter down to
9572 svr4_read_so_list.
9573 (disable_probes_interface): Add info parameter.
9574 (svr4_handle_solib_event): Pass current_program_space to
9575 get_svr4_info. Adjust disable_probes_interface cleanup.
9576 (svr4_create_probe_breakpoints): Add info parameter, pass it
9577 down to register_solib_event_probe.
9578 (svr4_create_solib_event_breakpoints): Add info parameter,
9579 pass it down to svr4_create_probe_breakpoints.
9580 (enable_break): Pass info down to
9581 svr4_create_solib_event_breakpoints.
9582 (svr4_solib_create_inferior_hook): Pass current_program_space to
9583 get_svr4_info.
9584 (svr4_clear_solib): Likewise.
9585
9586 2019-04-22 Pedro Alves <palves@redhat.com>
9587
9588 * solib-svr4.c (svr4_free_objfile_observer): New.
9589 (probe_and_action::objfile): New field.
9590 (probes_table_htab_remove_objfile_probes)
9591 (probes_table_remove_objfile_probes): New functions.
9592 (register_solib_event_probe): Add 'objfile' parameter. Store it
9593 in the new probe_and_action. Don't store the probe in 'lookup'.
9594 (svr4_create_probe_breakpoints): Pass objfile to
9595 register_solib_event_probe.
9596 (_initialize_svr4_solib): Register a free_objfile observer.
9597
9598 2019-04-19 Tom Tromey <tom@tromey.com>
9599
9600 * common/queue.h: Remove.
9601
9602 2019-04-19 Tom Tromey <tom@tromey.com>
9603
9604 * event-loop.c: Don't include "common/queue.h".
9605
9606 2019-04-19 Tom Tromey <tom@tromey.com>
9607
9608 * remote.c (remote_target): Use delete.
9609 * remote-notif.h: Include <list>, not "common/queue.h".
9610 (notif_client_p): Remove typedef.
9611 (remote_notif_state): Add constructor, destructor, initializer.
9612 <notif_queue>: Now a std::list.
9613 (remote_notif_state_xfree): Don't declare.
9614 * remote-notif.c (remote_notif_process, handle_notification)
9615 (remote_notif_state_allocate): Update.
9616 (~remote_notif_state): Rename from remote_notif_state_xfree.
9617
9618 2019-04-19 Tom Tromey <tom@tromey.com>
9619
9620 * symfile.c (reread_symbols): Update.
9621 * objfiles.c (objfile_register_static_link)
9622 (objfile_lookup_static_link): Update
9623 (~objfile) Don't delete static_links.
9624 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9625
9626 2019-04-19 Tom Tromey <tom@tromey.com>
9627
9628 * type-stack.h (struct type_stack) <insert>: Constify string.
9629 * type-stack.c (type_stack::insert): Constify string.
9630 * gdbtypes.h (lookup_template_type): Update.
9631 (address_space_name_to_int): Update.
9632 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9633 const.
9634 (lookup_template_type): Make name const.
9635 * c-exp.y: Update rules.
9636 (lex_one_token, classify_name, classify_inner_name)
9637 (c_print_token): Update.
9638 * p-exp.y: Update rules.
9639 (yylex): Update.
9640 * f-exp.y: Update rules.
9641 (yylex): Update.
9642 * d-exp.y: Update rules.
9643 (lex_one_token, classify_name, classify_inner_name): Update.
9644 * parse.c (write_dollar_variable, copy_name): Return std::string.
9645 * parser-defs.h (copy_name): Change return type.
9646 * m2-exp.y: Update rules.
9647 (yylex): Update.
9648 * go-exp.y (lex_one_token): Update.
9649 Update rules.
9650 (classify_unsafe_function, classify_packaged_name)
9651 (classify_name, yylex): Update.
9652
9653 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9654
9655 * configure.ac: add --enable-source-highlight switch.
9656 * configure: Regenerate.
9657 * top.c (print_gdb_version): plumb --enable-source-highlight
9658 status to "show configuration".
9659
9660 2019-04-19 Tom Tromey <tromey@adacore.com>
9661
9662 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9663 Check ADA_TYPE_P.
9664 (empty_record, ada_template_to_fixed_record_type_1)
9665 (template_to_static_fixed_type)
9666 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9667 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9668 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9669 macros.
9670
9671 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9672
9673 PR symtab/24423:
9674 * source.c (print_source_lines_base): Advance "iter" when a
9675 control character is seen.
9676
9677 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9678
9679 * inferior.h (struct infcall_suspend_state_deleter):
9680 Catch exception in destructor to avoid crash.
9681
9682 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9683
9684 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9685 close to the add_com "shell".
9686
9687 2019-04-18 Tom Tromey <tromey@adacore.com>
9688
9689 * process-stratum-target.h (class process_stratum_target)
9690 <stratum>: Add "final".
9691
9692 2019-04-17 Tom Tromey <tromey@adacore.com>
9693
9694 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9695 against nullptr before use.
9696
9697 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9698
9699 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9700
9701 2019-04-17 Jim Wilson <jimw@sifive.com>
9702 Andrew Burgess <andrew.burgess@embecosm.com>
9703
9704 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9705 code read might fail, assume 4-byte breakpoint in that case.
9706
9707 2019-04-15 Leszek Swirski <leszeks@google.com>
9708
9709 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9710 rather than a hand-rolled POD check when checking for forced MEMORY
9711 classification.
9712
9713 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9714
9715 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9716 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9717 function.
9718 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9719 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9720 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9721 declaration.
9722
9723 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9724
9725 * aarch64-linux-nat.c
9726 (aarch64_linux_nat_target::thread_architecture): Add override.
9727 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9728 each VQ.
9729
9730 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9731
9732 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9733
9734 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9735
9736 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9737 target types of size 96-bits, add some additional comments, and
9738 check that the builtin type we found was the correct size.
9739
9740 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9741
9742 * utils.c (prompt_for_continue): Don't restore the styling at the
9743 end, as applied_style has the wrong value. This fixes styling in
9744 long lists of file names that are interrupted by the "Continue?"
9745 prompt.
9746
9747 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9748
9749 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9750 * c-lang.c (c_language_defn): Likewise.
9751 (cplus_language_defn): Likewise.
9752 (asm_language_defn): Likewise.
9753 (minimal_language_defn): Likewise.
9754 * d-lang.c (d_language_defn): Likewise.
9755 * f-lang.c (f_language_defn): Likewise.
9756 * go-lang.c (go_language_defn): Likewise.
9757 * language.c (unknown_language_defn): Likewise.
9758 (auto_language_defn): Likewise.
9759 * language.h (struct language_defn): Remove la_magic field.
9760 (LANG_MAGIC): Delete.
9761 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9762 * objc-lang.c (objc_language_defn): Likewise.
9763 * opencl-lang.c (opencl_language_defn): Likewise.
9764 * p-lang.c (pascal_language_defn): Likewise.
9765 * rust-lang.c (rust_language_defn): Likewise.
9766
9767 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9768
9769 * riscv-tdep.c (riscv_type_align): New function.
9770 (riscv_type_alignment): Delete.
9771 (riscv_arg_location): Use 'type_align'.
9772 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9773
9774 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9775
9776 * gdbtypes.c (type_align): A struct with no non-static fields also
9777 has alignment of 1.
9778
9779 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9780
9781 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9782 component to 0.
9783 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9784 member.
9785 (riscv_struct_info::analyse): New implementation using new
9786 analyse_inner member function.
9787 (riscv_struct_info::field_offset): New member function.
9788 (riscv_struct_info::m_offsets): New member variable.
9789 (riscv_struct_info::analyse_inner): New private member function,
9790 takes the old implementation of riscv_struct_info::analyse but
9791 extended to track field offsets.
9792 (riscv_call_arg_struct): Update the struct folding special cases
9793 to handle cases where empty C++ structs, which are non-zero
9794 length, are found.
9795 (riscv_arg_location): Initialise the length of each location, a
9796 non-zero length now indicates the location is in use.
9797 (riscv_push_dummy_call): Allow for the first location having a
9798 non-zero offset when setting up arguments.
9799 (riscv_return_value): Likewise, but for return values.
9800
9801 2019-04-11 Tom Tromey <tromey@adacore.com>
9802
9803 * utils.c (internal_vproblem): Make "msg" const.
9804
9805 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9806
9807 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9808 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9809 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9810 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9811
9812 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9813
9814 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9815 function.
9816 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9817 of amd64_collect_native_gregset.
9818 (amd64_linux_nat_target::store_registers): Likewise.
9819
9820 2019-04-10 Tom Tromey <tom@tromey.com>
9821
9822 * symtab.c (lookup_global_symbol_from_objfile)
9823 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9824 * objfiles.h (class separate_debug_iterator): New.
9825 (class separate_debug_range): New.
9826 (struct objfile) <separate_debug_objfiles>: New method.
9827 (objfile_separate_debug_iterate): Don't declare.
9828 * objfiles.c (separate_debug_iterator::operator++): Rename from
9829 objfile_separate_debug_iterate.
9830 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9831 iterator.
9832 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9833 iterator.
9834
9835 2019-04-10 Tom Tromey <tom@tromey.com>
9836
9837 * symfile.c (reread_symbols): Remove old comment.
9838 * objfiles.c (free_all_objfiles): Fix a typo.
9839
9840 2019-04-10 Tom Tromey <tom@tromey.com>
9841
9842 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9843 * minsyms.c (lookup_minimal_symbol): Use foreach.
9844 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9845 (lookup_minimal_symbol_solib_trampoline): Likewise.
9846 * symfile.c (reread_symbols): Use foreach.
9847
9848 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9849 Tom Tromey <tromey@adacore.com>
9850
9851 PR rust/24414:
9852 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9853 (rust_lex_int_test): Change "value" to be LONGEST.
9854 (rust_lex_tests): Add test for long integer literal.
9855
9856 2019-04-09 Tom Tromey <tromey@adacore.com>
9857
9858 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9859 to bool.
9860 (extended_remote_target::attach): Update.
9861 (remote_target::remote_notice_new_inferior): Update.
9862 (remote_target::add_current_inferior_and_thread): Update.
9863 * inferior.c (exit_inferior_1): Use "false".
9864 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9865
9866 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9867
9868 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9869 the "start" command.
9870
9871 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9872
9873 * python/py-inferior.c (infpy_thread_from_thread_handle):
9874 Adjust comments to reflect renaming of thread_from_thread_handle
9875 to thread_from_handle. Adjust keywords. Fix type error message.
9876 (inferior_object_methods): Add thread_from_handle. Retain
9877 thread_from_thread_handle, but mark it as deprecated.
9878
9879 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9880
9881 * gdbthread.h (find_thread_by_handle): Revise declaration.
9882 * thread.c (find_thread_by_handle): Likewise. Adjust
9883 implementation too.
9884 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9885 support for buffer objects as handles.
9886
9887 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9888
9889 * python/py-infthread.c (thpy_thread_handle): New function.
9890 (thread_object_methods): Register thpy_thread_handle.
9891
9892 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9893
9894 * gdbthread.h (thread_to_thread_handle): Declare.
9895 * thread.c (gdbtypes.h): Include.
9896 (thread_to_thread_handle): New function.
9897
9898 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9899 (target_thread_info_to_thread_handle): Declare.
9900 * target.c (target_thread_info_to_thread_handle): New function.
9901 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9902 * target-delegates.c: Regenerate.
9903
9904 * linux-thread-db.c (class thread_db_target): Add method
9905 thread_info_to_thread_handle.
9906 (thread_db_target::thread_info_to_thread_handle): Define.
9907 * remote.c (class remote_target): Add new method
9908 thread_info_to_thread_handle.
9909 (remote_target::thread_info_to_thread_handle): Define.
9910
9911 2019-04-08 Pedro Alves <palves@redhat.com>
9912
9913 * common/common-exceptions.c (throw_exception): Don't create
9914 named object to throw; throw directly.
9915 (throw_it): Likewise. Don't initialize gdb_exception::message
9916 here, with new; pass FMT and AP to the ctor instead.
9917 * common/common-exceptions.h: Include <string>.
9918 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9919 const char *, va_list)): New ctor. Use std::make_shared.
9920 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9921 errors)): Delete.
9922 (gdb_exception_error::gdb_exception_error(enum errors, const char
9923 *, va_list)): New.
9924 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9925 Add assertion.
9926 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9927 errors)): Delete.
9928 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9929 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9930 Add assertion.
9931
9932 2019-04-08 Tom Tromey <tom@tromey.com>
9933
9934 * valops.c (value_rtti_indirect_type): Replace throw_exception
9935 with throw.
9936 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9937 with throw.
9938 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9939 throw.
9940 * target.c (target_translate_tls_address): Replace throw_exception
9941 with throw.
9942 * stack.c (frame_apply_command_count): Replace throw_exception
9943 with throw.
9944 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9945 throw.
9946 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9947 with throw.
9948 * rs6000-tdep.c (rs6000_frame_cache)
9949 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9950 * remote.c: Replace throw_exception with throw.
9951 * record-full.c (record_full_message, record_full_wait_1)
9952 (record_full_restore): Replace throw_exception with throw.
9953 * record-btrace.c:
9954 (get_thread_current_frame_id, record_btrace_start_replaying)
9955 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9956 (cmd_record_btrace_start): Replace throw_exception with throw.
9957 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9958 throw.
9959 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9960 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9961 * linespec.c:
9962 (find_linespec_symbols): Replace throw_exception with throw.
9963 * infrun.c (displaced_step_prepare, resume): Replace
9964 throw_exception with throw.
9965 * infcmd.c (post_create_inferior): Replace throw_exception with
9966 throw.
9967 * inf-loop.c (inferior_event_handler): Replace throw_exception
9968 with throw.
9969 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9970 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9971 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9972 (get_prev_frame_always, get_frame_pc_if_available)
9973 (get_frame_address_in_block_if_available, get_frame_language):
9974 Replace throw_exception with throw.
9975 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9976 throw_exception with throw.
9977 * eval.c (fetch_subexp_value, evaluate_var_value)
9978 (evaluate_funcall, evaluate_subexp_standard): Replace
9979 throw_exception with throw.
9980 * dwarf2loc.c (call_site_find_chain)
9981 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9982 Replace throw_exception with throw.
9983 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9984 with throw.
9985 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9986 throw.
9987 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9988 * completer.c (complete_line_internal): Replace throw_exception
9989 with throw.
9990 * compile/compile-object-run.c (compile_object_run): Replace
9991 throw_exception with throw.
9992 * cli/cli-script.c (process_next_line): Replace throw_exception
9993 with throw.
9994 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9995 (btrace_enable, btrace_maint_update_pt_packets): Replace
9996 throw_exception with throw.
9997 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9998 throw_exception with throw.
9999 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10000 throw_exception with throw.
10001 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10002 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10003 * aarch64-tdep.c (aarch64_make_prologue_cache)
10004 (aarch64_make_stub_cache): Replace throw_exception with throw.
10005
10006 2019-04-08 Tom Tromey <tom@tromey.com>
10007
10008 * common/common-exceptions.c (throw_exception): Rename from
10009 throw_exception_cxx. Remove old copy. Make argument const.
10010 (throw_it): Create and throw exception objects directly.
10011 * common/common-exceptions.h (throw_exception): Make argument
10012 const.
10013 (struct gdb_exception_error): Add constructor.
10014 (struct gdb_exception_quit): Add constructor.
10015
10016 2019-04-08 Tom Tromey <tom@tromey.com>
10017
10018 * common/common-exceptions.h (exception_rethrow): Don't declare.
10019 (TRY_SJLJ): Update comment.
10020 (TRY, CATCH, END_CATCH): Remove.
10021 * common/common-exceptions.c (exception_rethrow): Remove.
10022
10023 2019-04-08 Tom Tromey <tom@tromey.com>
10024
10025 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10026 Remove.
10027 (gdb_exception_error): Rename from
10028 gdb_exception_RETURN_MASK_ERROR.
10029 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10030 (gdb_quit_bad_alloc): Update.
10031 * aarch64-tdep.c: Update.
10032 * ada-lang.c: Update.
10033 * ada-typeprint.c: Update.
10034 * ada-valprint.c: Update.
10035 * amd64-tdep.c: Update.
10036 * arch-utils.c: Update.
10037 * break-catch-throw.c: Update.
10038 * breakpoint.c: Update.
10039 * btrace.c: Update.
10040 * c-varobj.c: Update.
10041 * cli/cli-cmds.c: Update.
10042 * cli/cli-interp.c: Update.
10043 * cli/cli-script.c: Update.
10044 * common/common-exceptions.c: Update.
10045 * common/new-op.c: Update.
10046 * common/selftest.c: Update.
10047 * compile/compile-c-symbols.c: Update.
10048 * compile/compile-cplus-symbols.c: Update.
10049 * compile/compile-object-load.c: Update.
10050 * compile/compile-object-run.c: Update.
10051 * completer.c: Update.
10052 * corelow.c: Update.
10053 * cp-abi.c: Update.
10054 * cp-support.c: Update.
10055 * cp-valprint.c: Update.
10056 * darwin-nat.c: Update.
10057 * disasm-selftests.c: Update.
10058 * dtrace-probe.c: Update.
10059 * dwarf-index-cache.c: Update.
10060 * dwarf-index-write.c: Update.
10061 * dwarf2-frame-tailcall.c: Update.
10062 * dwarf2-frame.c: Update.
10063 * dwarf2loc.c: Update.
10064 * dwarf2read.c: Update.
10065 * eval.c: Update.
10066 * event-loop.c: Update.
10067 * event-top.c: Update.
10068 * exec.c: Update.
10069 * f-valprint.c: Update.
10070 * fbsd-tdep.c: Update.
10071 * frame-unwind.c: Update.
10072 * frame.c: Update.
10073 * gdbtypes.c: Update.
10074 * gnu-v3-abi.c: Update.
10075 * guile/guile-internal.h: Update.
10076 * guile/scm-block.c: Update.
10077 * guile/scm-breakpoint.c: Update.
10078 * guile/scm-cmd.c: Update.
10079 * guile/scm-disasm.c: Update.
10080 * guile/scm-frame.c: Update.
10081 * guile/scm-lazy-string.c: Update.
10082 * guile/scm-math.c: Update.
10083 * guile/scm-param.c: Update.
10084 * guile/scm-ports.c: Update.
10085 * guile/scm-pretty-print.c: Update.
10086 * guile/scm-symbol.c: Update.
10087 * guile/scm-symtab.c: Update.
10088 * guile/scm-type.c: Update.
10089 * guile/scm-value.c: Update.
10090 * i386-linux-tdep.c: Update.
10091 * i386-tdep.c: Update.
10092 * inf-loop.c: Update.
10093 * infcall.c: Update.
10094 * infcmd.c: Update.
10095 * infrun.c: Update.
10096 * jit.c: Update.
10097 * language.c: Update.
10098 * linespec.c: Update.
10099 * linux-fork.c: Update.
10100 * linux-nat.c: Update.
10101 * linux-tdep.c: Update.
10102 * linux-thread-db.c: Update.
10103 * main.c: Update.
10104 * mi/mi-cmd-break.c: Update.
10105 * mi/mi-cmd-stack.c: Update.
10106 * mi/mi-interp.c: Update.
10107 * mi/mi-main.c: Update.
10108 * objc-lang.c: Update.
10109 * p-valprint.c: Update.
10110 * parse.c: Update.
10111 * ppc-linux-tdep.c: Update.
10112 * printcmd.c: Update.
10113 * python/py-arch.c: Update.
10114 * python/py-breakpoint.c: Update.
10115 * python/py-cmd.c: Update.
10116 * python/py-finishbreakpoint.c: Update.
10117 * python/py-frame.c: Update.
10118 * python/py-framefilter.c: Update.
10119 * python/py-gdb-readline.c: Update.
10120 * python/py-inferior.c: Update.
10121 * python/py-infthread.c: Update.
10122 * python/py-lazy-string.c: Update.
10123 * python/py-linetable.c: Update.
10124 * python/py-objfile.c: Update.
10125 * python/py-param.c: Update.
10126 * python/py-prettyprint.c: Update.
10127 * python/py-progspace.c: Update.
10128 * python/py-record-btrace.c: Update.
10129 * python/py-record.c: Update.
10130 * python/py-symbol.c: Update.
10131 * python/py-type.c: Update.
10132 * python/py-unwind.c: Update.
10133 * python/py-utils.c: Update.
10134 * python/py-value.c: Update.
10135 * python/python.c: Update.
10136 * record-btrace.c: Update.
10137 * record-full.c: Update.
10138 * remote-fileio.c: Update.
10139 * remote.c: Update.
10140 * riscv-tdep.c: Update.
10141 * rs6000-aix-tdep.c: Update.
10142 * rs6000-tdep.c: Update.
10143 * rust-exp.y: Update.
10144 * rust-lang.c: Update.
10145 * s390-tdep.c: Update.
10146 * selftest-arch.c: Update.
10147 * solib-dsbt.c: Update.
10148 * solib-frv.c: Update.
10149 * solib-spu.c: Update.
10150 * solib-svr4.c: Update.
10151 * solib.c: Update.
10152 * sparc64-linux-tdep.c: Update.
10153 * stack.c: Update.
10154 * symfile-mem.c: Update.
10155 * symmisc.c: Update.
10156 * target.c: Update.
10157 * thread.c: Update.
10158 * top.c: Update.
10159 * tracefile-tfile.c: Update.
10160 * tui/tui.c: Update.
10161 * typeprint.c: Update.
10162 * unittests/cli-utils-selftests.c: Update.
10163 * unittests/parse-connection-spec-selftests.c: Update.
10164 * valops.c: Update.
10165 * valprint.c: Update.
10166 * value.c: Update.
10167 * varobj.c: Update.
10168 * windows-nat.c: Update.
10169 * x86-linux-nat.c: Update.
10170 * xml-support.c: Update.
10171
10172 2019-04-08 Tom Tromey <tom@tromey.com>
10173
10174 * xml-support.c: Use C++ exception handling.
10175 * x86-linux-nat.c: Use C++ exception handling.
10176 * windows-nat.c: Use C++ exception handling.
10177 * varobj.c: Use C++ exception handling.
10178 * value.c: Use C++ exception handling.
10179 * valprint.c: Use C++ exception handling.
10180 * valops.c: Use C++ exception handling.
10181 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10182 handling.
10183 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10184 * typeprint.c: Use C++ exception handling.
10185 * tui/tui.c: Use C++ exception handling.
10186 * tracefile-tfile.c: Use C++ exception handling.
10187 * top.c: Use C++ exception handling.
10188 * thread.c: Use C++ exception handling.
10189 * target.c: Use C++ exception handling.
10190 * symmisc.c: Use C++ exception handling.
10191 * symfile-mem.c: Use C++ exception handling.
10192 * stack.c: Use C++ exception handling.
10193 * sparc64-linux-tdep.c: Use C++ exception handling.
10194 * solib.c: Use C++ exception handling.
10195 * solib-svr4.c: Use C++ exception handling.
10196 * solib-spu.c: Use C++ exception handling.
10197 * solib-frv.c: Use C++ exception handling.
10198 * solib-dsbt.c: Use C++ exception handling.
10199 * selftest-arch.c: Use C++ exception handling.
10200 * s390-tdep.c: Use C++ exception handling.
10201 * rust-lang.c: Use C++ exception handling.
10202 * rust-exp.y: Use C++ exception handling.
10203 * rs6000-tdep.c: Use C++ exception handling.
10204 * rs6000-aix-tdep.c: Use C++ exception handling.
10205 * riscv-tdep.c: Use C++ exception handling.
10206 * remote.c: Use C++ exception handling.
10207 * remote-fileio.c: Use C++ exception handling.
10208 * record-full.c: Use C++ exception handling.
10209 * record-btrace.c: Use C++ exception handling.
10210 * python/python.c: Use C++ exception handling.
10211 * python/py-value.c: Use C++ exception handling.
10212 * python/py-utils.c: Use C++ exception handling.
10213 * python/py-unwind.c: Use C++ exception handling.
10214 * python/py-type.c: Use C++ exception handling.
10215 * python/py-symbol.c: Use C++ exception handling.
10216 * python/py-record.c: Use C++ exception handling.
10217 * python/py-record-btrace.c: Use C++ exception handling.
10218 * python/py-progspace.c: Use C++ exception handling.
10219 * python/py-prettyprint.c: Use C++ exception handling.
10220 * python/py-param.c: Use C++ exception handling.
10221 * python/py-objfile.c: Use C++ exception handling.
10222 * python/py-linetable.c: Use C++ exception handling.
10223 * python/py-lazy-string.c: Use C++ exception handling.
10224 * python/py-infthread.c: Use C++ exception handling.
10225 * python/py-inferior.c: Use C++ exception handling.
10226 * python/py-gdb-readline.c: Use C++ exception handling.
10227 * python/py-framefilter.c: Use C++ exception handling.
10228 * python/py-frame.c: Use C++ exception handling.
10229 * python/py-finishbreakpoint.c: Use C++ exception handling.
10230 * python/py-cmd.c: Use C++ exception handling.
10231 * python/py-breakpoint.c: Use C++ exception handling.
10232 * python/py-arch.c: Use C++ exception handling.
10233 * printcmd.c: Use C++ exception handling.
10234 * ppc-linux-tdep.c: Use C++ exception handling.
10235 * parse.c: Use C++ exception handling.
10236 * p-valprint.c: Use C++ exception handling.
10237 * objc-lang.c: Use C++ exception handling.
10238 * mi/mi-main.c: Use C++ exception handling.
10239 * mi/mi-interp.c: Use C++ exception handling.
10240 * mi/mi-cmd-stack.c: Use C++ exception handling.
10241 * mi/mi-cmd-break.c: Use C++ exception handling.
10242 * main.c: Use C++ exception handling.
10243 * linux-thread-db.c: Use C++ exception handling.
10244 * linux-tdep.c: Use C++ exception handling.
10245 * linux-nat.c: Use C++ exception handling.
10246 * linux-fork.c: Use C++ exception handling.
10247 * linespec.c: Use C++ exception handling.
10248 * language.c: Use C++ exception handling.
10249 * jit.c: Use C++ exception handling.
10250 * infrun.c: Use C++ exception handling.
10251 * infcmd.c: Use C++ exception handling.
10252 * infcall.c: Use C++ exception handling.
10253 * inf-loop.c: Use C++ exception handling.
10254 * i386-tdep.c: Use C++ exception handling.
10255 * i386-linux-tdep.c: Use C++ exception handling.
10256 * guile/scm-value.c: Use C++ exception handling.
10257 * guile/scm-type.c: Use C++ exception handling.
10258 * guile/scm-symtab.c: Use C++ exception handling.
10259 * guile/scm-symbol.c: Use C++ exception handling.
10260 * guile/scm-pretty-print.c: Use C++ exception handling.
10261 * guile/scm-ports.c: Use C++ exception handling.
10262 * guile/scm-param.c: Use C++ exception handling.
10263 * guile/scm-math.c: Use C++ exception handling.
10264 * guile/scm-lazy-string.c: Use C++ exception handling.
10265 * guile/scm-frame.c: Use C++ exception handling.
10266 * guile/scm-disasm.c: Use C++ exception handling.
10267 * guile/scm-cmd.c: Use C++ exception handling.
10268 * guile/scm-breakpoint.c: Use C++ exception handling.
10269 * guile/scm-block.c: Use C++ exception handling.
10270 * guile/guile-internal.h: Use C++ exception handling.
10271 * gnu-v3-abi.c: Use C++ exception handling.
10272 * gdbtypes.c: Use C++ exception handling.
10273 * frame.c: Use C++ exception handling.
10274 * frame-unwind.c: Use C++ exception handling.
10275 * fbsd-tdep.c: Use C++ exception handling.
10276 * f-valprint.c: Use C++ exception handling.
10277 * exec.c: Use C++ exception handling.
10278 * event-top.c: Use C++ exception handling.
10279 * event-loop.c: Use C++ exception handling.
10280 * eval.c: Use C++ exception handling.
10281 * dwarf2read.c: Use C++ exception handling.
10282 * dwarf2loc.c: Use C++ exception handling.
10283 * dwarf2-frame.c: Use C++ exception handling.
10284 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10285 * dwarf-index-write.c: Use C++ exception handling.
10286 * dwarf-index-cache.c: Use C++ exception handling.
10287 * dtrace-probe.c: Use C++ exception handling.
10288 * disasm-selftests.c: Use C++ exception handling.
10289 * darwin-nat.c: Use C++ exception handling.
10290 * cp-valprint.c: Use C++ exception handling.
10291 * cp-support.c: Use C++ exception handling.
10292 * cp-abi.c: Use C++ exception handling.
10293 * corelow.c: Use C++ exception handling.
10294 * completer.c: Use C++ exception handling.
10295 * compile/compile-object-run.c: Use C++ exception handling.
10296 * compile/compile-object-load.c: Use C++ exception handling.
10297 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10298 * compile/compile-c-symbols.c: Use C++ exception handling.
10299 * common/selftest.c: Use C++ exception handling.
10300 * common/new-op.c: Use C++ exception handling.
10301 * cli/cli-script.c: Use C++ exception handling.
10302 * cli/cli-interp.c: Use C++ exception handling.
10303 * cli/cli-cmds.c: Use C++ exception handling.
10304 * c-varobj.c: Use C++ exception handling.
10305 * btrace.c: Use C++ exception handling.
10306 * breakpoint.c: Use C++ exception handling.
10307 * break-catch-throw.c: Use C++ exception handling.
10308 * arch-utils.c: Use C++ exception handling.
10309 * amd64-tdep.c: Use C++ exception handling.
10310 * ada-valprint.c: Use C++ exception handling.
10311 * ada-typeprint.c: Use C++ exception handling.
10312 * ada-lang.c: Use C++ exception handling.
10313 * aarch64-tdep.c: Use C++ exception handling.
10314
10315 2019-04-08 Tom Tromey <tom@tromey.com>
10316
10317 * xml-support.c (gdb_xml_parser::parse): Update.
10318 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10319 * value.c (show_convenience): Update.
10320 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10321 (test_parse_flags_qcs): Update.
10322 * thread.c (thr_try_catch_cmd): Update.
10323 * target.c (target_translate_tls_address): Update.
10324 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10325 (info_frame_command_core, frame_apply_command_count): Update.
10326 * rust-exp.y (rust_lex_exception_test): Update.
10327 * riscv-tdep.c (riscv_print_one_register_info): Update.
10328 * remote.c (remote_target::enable_btrace): Update.
10329 * record-btrace.c (record_btrace_enable_warn): Update.
10330 * python/py-utils.c (gdbpy_convert_exception): Update.
10331 * printcmd.c (do_one_display, print_variable_and_value): Update.
10332 * mi/mi-main.c (mi_print_exception): Update.
10333 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10334 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10335 * linux-nat.c (linux_nat_target::attach): Update.
10336 * linux-fork.c (class scoped_switch_fork_info): Update.
10337 * infrun.c (displaced_step_prepare): Update.
10338 * infcall.c (call_function_by_hand_dummy): Update.
10339 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10340 * gnu-v3-abi.c (print_one_vtable): Update.
10341 * frame.c (get_prev_frame_always): Update.
10342 * f-valprint.c (info_common_command_for_block): Update.
10343 * exec.c (try_open_exec_file): Update.
10344 * exceptions.c (print_exception, exception_print)
10345 (exception_fprintf, exception_print_same): Update.
10346 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10347 * dwarf-index-cache.c (index_cache::store)
10348 (index_cache::lookup_gdb_index): Update.
10349 * darwin-nat.c (maybe_cache_shell): Update.
10350 * cp-valprint.c (cp_print_value_fields): Update.
10351 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10352 (gcc_cplus_symbol_address): Update.
10353 * compile/compile-c-symbols.c (gcc_convert_symbol)
10354 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10355 * common/selftest.c: Update.
10356 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10357 a std::string.
10358 (exception_try_scope_entry, exception_try_scope_exit): Don't
10359 declare.
10360 (struct exception_try_scope): Remove.
10361 (TRY): Don't use exception_try_scope.
10362 (struct gdb_exception): Add constructor, operator=.
10363 <what>: New method.
10364 (struct gdb_exception_RETURN_MASK_ALL)
10365 (struct gdb_exception_RETURN_MASK_ERROR)
10366 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10367 (struct gdb_quit_bad_alloc): Update.
10368 * common/common-exceptions.c (exception_none): Change
10369 initializer.
10370 (struct catcher) <state, exception>: Initialize inline.
10371 <prev>: Remove member.
10372 (current_catcher): Remove.
10373 (catchers): New global.
10374 (exceptions_state_mc_init): Simplify.
10375 (catcher_pop): Remove.
10376 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10377 (try_scope_depth, exception_try_scope_entry)
10378 (exception_try_scope_exit): Remove.
10379 (throw_exception_sjlj): Update.
10380 (exception_messages, exception_messages_size): Remove.
10381 (throw_it): Simplify.
10382 (gdb_exception_sliced_copy): Remove.
10383 (throw_exception_cxx): Update.
10384 * cli/cli-script.c (script_from_file): Update.
10385 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10386 Update.
10387 * ada-valprint.c (ada_val_print): Update.
10388 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10389 (create_excep_cond_exprs): Update.
10390
10391 2019-04-08 Tom Tromey <tom@tromey.com>
10392
10393 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10394 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10395 (TRY, CATCH, END_CATCH): Remove some definitions.
10396 * common/common-exceptions.c: Don't use GDB_XCPT.
10397 (catcher_list_size): Remove.
10398 (throw_exception, throw_it): Simplify.
10399
10400 2019-04-05 Tom Tromey <tom@tromey.com>
10401
10402 Revert the header-sorting patch.
10403 * ft32-tdep.c: Revert.
10404 * frv-tdep.c: Revert.
10405 * frv-linux-tdep.c: Revert.
10406 * frame.c: Revert.
10407 * frame-unwind.c: Revert.
10408 * frame-base.c: Revert.
10409 * fork-child.c: Revert.
10410 * findvar.c: Revert.
10411 * findcmd.c: Revert.
10412 * filesystem.c: Revert.
10413 * filename-seen-cache.h: Revert.
10414 * filename-seen-cache.c: Revert.
10415 * fbsd-tdep.c: Revert.
10416 * fbsd-nat.h: Revert.
10417 * fbsd-nat.c: Revert.
10418 * f-valprint.c: Revert.
10419 * f-typeprint.c: Revert.
10420 * f-lang.c: Revert.
10421 * extension.h: Revert.
10422 * extension.c: Revert.
10423 * extension-priv.h: Revert.
10424 * expprint.c: Revert.
10425 * exec.h: Revert.
10426 * exec.c: Revert.
10427 * exceptions.c: Revert.
10428 * event-top.c: Revert.
10429 * event-loop.c: Revert.
10430 * eval.c: Revert.
10431 * elfread.c: Revert.
10432 * dwarf2read.h: Revert.
10433 * dwarf2read.c: Revert.
10434 * dwarf2loc.c: Revert.
10435 * dwarf2expr.h: Revert.
10436 * dwarf2expr.c: Revert.
10437 * dwarf2-frame.c: Revert.
10438 * dwarf2-frame-tailcall.c: Revert.
10439 * dwarf-index-write.h: Revert.
10440 * dwarf-index-write.c: Revert.
10441 * dwarf-index-common.c: Revert.
10442 * dwarf-index-cache.h: Revert.
10443 * dwarf-index-cache.c: Revert.
10444 * dummy-frame.c: Revert.
10445 * dtrace-probe.c: Revert.
10446 * disasm.h: Revert.
10447 * disasm.c: Revert.
10448 * disasm-selftests.c: Revert.
10449 * dictionary.c: Revert.
10450 * dicos-tdep.c: Revert.
10451 * demangle.c: Revert.
10452 * dcache.h: Revert.
10453 * dcache.c: Revert.
10454 * darwin-nat.h: Revert.
10455 * darwin-nat.c: Revert.
10456 * darwin-nat-info.c: Revert.
10457 * d-valprint.c: Revert.
10458 * d-namespace.c: Revert.
10459 * d-lang.c: Revert.
10460 * ctf.c: Revert.
10461 * csky-tdep.c: Revert.
10462 * csky-linux-tdep.c: Revert.
10463 * cris-tdep.c: Revert.
10464 * cris-linux-tdep.c: Revert.
10465 * cp-valprint.c: Revert.
10466 * cp-support.c: Revert.
10467 * cp-namespace.c: Revert.
10468 * cp-abi.c: Revert.
10469 * corelow.c: Revert.
10470 * corefile.c: Revert.
10471 * continuations.c: Revert.
10472 * completer.h: Revert.
10473 * completer.c: Revert.
10474 * complaints.c: Revert.
10475 * coffread.c: Revert.
10476 * coff-pe-read.c: Revert.
10477 * cli-out.h: Revert.
10478 * cli-out.c: Revert.
10479 * charset.c: Revert.
10480 * c-varobj.c: Revert.
10481 * c-valprint.c: Revert.
10482 * c-typeprint.c: Revert.
10483 * c-lang.c: Revert.
10484 * buildsym.c: Revert.
10485 * buildsym-legacy.c: Revert.
10486 * build-id.h: Revert.
10487 * build-id.c: Revert.
10488 * btrace.c: Revert.
10489 * bsd-uthread.c: Revert.
10490 * breakpoint.h: Revert.
10491 * breakpoint.c: Revert.
10492 * break-catch-throw.c: Revert.
10493 * break-catch-syscall.c: Revert.
10494 * break-catch-sig.c: Revert.
10495 * blockframe.c: Revert.
10496 * block.c: Revert.
10497 * bfin-tdep.c: Revert.
10498 * bfin-linux-tdep.c: Revert.
10499 * bfd-target.c: Revert.
10500 * bcache.c: Revert.
10501 * ax-general.c: Revert.
10502 * ax-gdb.h: Revert.
10503 * ax-gdb.c: Revert.
10504 * avr-tdep.c: Revert.
10505 * auxv.c: Revert.
10506 * auto-load.c: Revert.
10507 * arm-wince-tdep.c: Revert.
10508 * arm-tdep.c: Revert.
10509 * arm-symbian-tdep.c: Revert.
10510 * arm-pikeos-tdep.c: Revert.
10511 * arm-obsd-tdep.c: Revert.
10512 * arm-nbsd-tdep.c: Revert.
10513 * arm-nbsd-nat.c: Revert.
10514 * arm-linux-tdep.c: Revert.
10515 * arm-linux-nat.c: Revert.
10516 * arm-fbsd-tdep.c: Revert.
10517 * arm-fbsd-nat.c: Revert.
10518 * arm-bsd-tdep.c: Revert.
10519 * arch-utils.c: Revert.
10520 * arc-tdep.c: Revert.
10521 * arc-newlib-tdep.c: Revert.
10522 * annotate.h: Revert.
10523 * annotate.c: Revert.
10524 * amd64-windows-tdep.c: Revert.
10525 * amd64-windows-nat.c: Revert.
10526 * amd64-tdep.c: Revert.
10527 * amd64-sol2-tdep.c: Revert.
10528 * amd64-obsd-tdep.c: Revert.
10529 * amd64-obsd-nat.c: Revert.
10530 * amd64-nbsd-tdep.c: Revert.
10531 * amd64-nbsd-nat.c: Revert.
10532 * amd64-nat.c: Revert.
10533 * amd64-linux-tdep.c: Revert.
10534 * amd64-linux-nat.c: Revert.
10535 * amd64-fbsd-tdep.c: Revert.
10536 * amd64-fbsd-nat.c: Revert.
10537 * amd64-dicos-tdep.c: Revert.
10538 * amd64-darwin-tdep.c: Revert.
10539 * amd64-bsd-nat.c: Revert.
10540 * alpha-tdep.c: Revert.
10541 * alpha-obsd-tdep.c: Revert.
10542 * alpha-nbsd-tdep.c: Revert.
10543 * alpha-mdebug-tdep.c: Revert.
10544 * alpha-linux-tdep.c: Revert.
10545 * alpha-linux-nat.c: Revert.
10546 * alpha-bsd-tdep.c: Revert.
10547 * alpha-bsd-nat.c: Revert.
10548 * aix-thread.c: Revert.
10549 * agent.c: Revert.
10550 * addrmap.c: Revert.
10551 * ada-varobj.c: Revert.
10552 * ada-valprint.c: Revert.
10553 * ada-typeprint.c: Revert.
10554 * ada-tasks.c: Revert.
10555 * ada-lang.c: Revert.
10556 * aarch64-tdep.c: Revert.
10557 * aarch64-ravenscar-thread.c: Revert.
10558 * aarch64-newlib-tdep.c: Revert.
10559 * aarch64-linux-tdep.c: Revert.
10560 * aarch64-linux-nat.c: Revert.
10561 * aarch64-fbsd-tdep.c: Revert.
10562 * aarch64-fbsd-nat.c: Revert.
10563 * aarch32-linux-nat.c: Revert.
10564
10565 2019-04-05 Tom Tromey <tom@tromey.com>
10566
10567 * ft32-tdep.c: Sort headers.
10568 * frv-tdep.c: Sort headers.
10569 * frv-linux-tdep.c: Sort headers.
10570 * frame.c: Sort headers.
10571 * frame-unwind.c: Sort headers.
10572 * frame-base.c: Sort headers.
10573 * fork-child.c: Sort headers.
10574 * findvar.c: Sort headers.
10575 * findcmd.c: Sort headers.
10576 * filesystem.c: Sort headers.
10577 * filename-seen-cache.h: Sort headers.
10578 * filename-seen-cache.c: Sort headers.
10579 * fbsd-tdep.c: Sort headers.
10580 * fbsd-nat.h: Sort headers.
10581 * fbsd-nat.c: Sort headers.
10582 * f-valprint.c: Sort headers.
10583 * f-typeprint.c: Sort headers.
10584 * f-lang.c: Sort headers.
10585 * extension.h: Sort headers.
10586 * extension.c: Sort headers.
10587 * extension-priv.h: Sort headers.
10588 * expprint.c: Sort headers.
10589 * exec.h: Sort headers.
10590 * exec.c: Sort headers.
10591 * exceptions.c: Sort headers.
10592 * event-top.c: Sort headers.
10593 * event-loop.c: Sort headers.
10594 * eval.c: Sort headers.
10595 * elfread.c: Sort headers.
10596 * dwarf2read.h: Sort headers.
10597 * dwarf2read.c: Sort headers.
10598 * dwarf2loc.c: Sort headers.
10599 * dwarf2expr.h: Sort headers.
10600 * dwarf2expr.c: Sort headers.
10601 * dwarf2-frame.c: Sort headers.
10602 * dwarf2-frame-tailcall.c: Sort headers.
10603 * dwarf-index-write.h: Sort headers.
10604 * dwarf-index-write.c: Sort headers.
10605 * dwarf-index-common.c: Sort headers.
10606 * dwarf-index-cache.h: Sort headers.
10607 * dwarf-index-cache.c: Sort headers.
10608 * dummy-frame.c: Sort headers.
10609 * dtrace-probe.c: Sort headers.
10610 * disasm.h: Sort headers.
10611 * disasm.c: Sort headers.
10612 * disasm-selftests.c: Sort headers.
10613 * dictionary.c: Sort headers.
10614 * dicos-tdep.c: Sort headers.
10615 * demangle.c: Sort headers.
10616 * dcache.h: Sort headers.
10617 * dcache.c: Sort headers.
10618 * darwin-nat.h: Sort headers.
10619 * darwin-nat.c: Sort headers.
10620 * darwin-nat-info.c: Sort headers.
10621 * d-valprint.c: Sort headers.
10622 * d-namespace.c: Sort headers.
10623 * d-lang.c: Sort headers.
10624 * ctf.c: Sort headers.
10625 * csky-tdep.c: Sort headers.
10626 * csky-linux-tdep.c: Sort headers.
10627 * cris-tdep.c: Sort headers.
10628 * cris-linux-tdep.c: Sort headers.
10629 * cp-valprint.c: Sort headers.
10630 * cp-support.c: Sort headers.
10631 * cp-namespace.c: Sort headers.
10632 * cp-abi.c: Sort headers.
10633 * corelow.c: Sort headers.
10634 * corefile.c: Sort headers.
10635 * continuations.c: Sort headers.
10636 * completer.h: Sort headers.
10637 * completer.c: Sort headers.
10638 * complaints.c: Sort headers.
10639 * coffread.c: Sort headers.
10640 * coff-pe-read.c: Sort headers.
10641 * cli-out.h: Sort headers.
10642 * cli-out.c: Sort headers.
10643 * charset.c: Sort headers.
10644 * c-varobj.c: Sort headers.
10645 * c-valprint.c: Sort headers.
10646 * c-typeprint.c: Sort headers.
10647 * c-lang.c: Sort headers.
10648 * buildsym.c: Sort headers.
10649 * buildsym-legacy.c: Sort headers.
10650 * build-id.h: Sort headers.
10651 * build-id.c: Sort headers.
10652 * btrace.c: Sort headers.
10653 * bsd-uthread.c: Sort headers.
10654 * breakpoint.h: Sort headers.
10655 * breakpoint.c: Sort headers.
10656 * break-catch-throw.c: Sort headers.
10657 * break-catch-syscall.c: Sort headers.
10658 * break-catch-sig.c: Sort headers.
10659 * blockframe.c: Sort headers.
10660 * block.c: Sort headers.
10661 * bfin-tdep.c: Sort headers.
10662 * bfin-linux-tdep.c: Sort headers.
10663 * bfd-target.c: Sort headers.
10664 * bcache.c: Sort headers.
10665 * ax-general.c: Sort headers.
10666 * ax-gdb.h: Sort headers.
10667 * ax-gdb.c: Sort headers.
10668 * avr-tdep.c: Sort headers.
10669 * auxv.c: Sort headers.
10670 * auto-load.c: Sort headers.
10671 * arm-wince-tdep.c: Sort headers.
10672 * arm-tdep.c: Sort headers.
10673 * arm-symbian-tdep.c: Sort headers.
10674 * arm-pikeos-tdep.c: Sort headers.
10675 * arm-obsd-tdep.c: Sort headers.
10676 * arm-nbsd-tdep.c: Sort headers.
10677 * arm-nbsd-nat.c: Sort headers.
10678 * arm-linux-tdep.c: Sort headers.
10679 * arm-linux-nat.c: Sort headers.
10680 * arm-fbsd-tdep.c: Sort headers.
10681 * arm-fbsd-nat.c: Sort headers.
10682 * arm-bsd-tdep.c: Sort headers.
10683 * arch-utils.c: Sort headers.
10684 * arc-tdep.c: Sort headers.
10685 * arc-newlib-tdep.c: Sort headers.
10686 * annotate.h: Sort headers.
10687 * annotate.c: Sort headers.
10688 * amd64-windows-tdep.c: Sort headers.
10689 * amd64-windows-nat.c: Sort headers.
10690 * amd64-tdep.c: Sort headers.
10691 * amd64-sol2-tdep.c: Sort headers.
10692 * amd64-obsd-tdep.c: Sort headers.
10693 * amd64-obsd-nat.c: Sort headers.
10694 * amd64-nbsd-tdep.c: Sort headers.
10695 * amd64-nbsd-nat.c: Sort headers.
10696 * amd64-nat.c: Sort headers.
10697 * amd64-linux-tdep.c: Sort headers.
10698 * amd64-linux-nat.c: Sort headers.
10699 * amd64-fbsd-tdep.c: Sort headers.
10700 * amd64-fbsd-nat.c: Sort headers.
10701 * amd64-dicos-tdep.c: Sort headers.
10702 * amd64-darwin-tdep.c: Sort headers.
10703 * amd64-bsd-nat.c: Sort headers.
10704 * alpha-tdep.c: Sort headers.
10705 * alpha-obsd-tdep.c: Sort headers.
10706 * alpha-nbsd-tdep.c: Sort headers.
10707 * alpha-mdebug-tdep.c: Sort headers.
10708 * alpha-linux-tdep.c: Sort headers.
10709 * alpha-linux-nat.c: Sort headers.
10710 * alpha-bsd-tdep.c: Sort headers.
10711 * alpha-bsd-nat.c: Sort headers.
10712 * aix-thread.c: Sort headers.
10713 * agent.c: Sort headers.
10714 * addrmap.c: Sort headers.
10715 * ada-varobj.c: Sort headers.
10716 * ada-valprint.c: Sort headers.
10717 * ada-typeprint.c: Sort headers.
10718 * ada-tasks.c: Sort headers.
10719 * ada-lang.c: Sort headers.
10720 * aarch64-tdep.c: Sort headers.
10721 * aarch64-ravenscar-thread.c: Sort headers.
10722 * aarch64-newlib-tdep.c: Sort headers.
10723 * aarch64-linux-tdep.c: Sort headers.
10724 * aarch64-linux-nat.c: Sort headers.
10725 * aarch64-fbsd-tdep.c: Sort headers.
10726 * aarch64-fbsd-nat.c: Sort headers.
10727 * aarch32-linux-nat.c: Sort headers.
10728
10729 2019-04-04 Tom Tromey <tom@tromey.com>
10730
10731 * varobj.c (varobj_create): Update.
10732 * rust-exp.y (struct rust_parser) <update_innermost_block,
10733 lookup_symbol>: New methods.
10734 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10735 Rename.
10736 (rust_parser::rust_lookup_type)
10737 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10738 * printcmd.c (display_command, do_one_display): Update.
10739 * parser-defs.h (struct parser_state) <parser_state>: Add
10740 "tracker" parameter.
10741 (block_tracker): New member.
10742 (class innermost_block_tracker) <innermost_block_tracker>: Add
10743 "types" parameter.
10744 <reset>: Remove method.
10745 (innermost_block): Don't declare.
10746 (null_post_parser): Update.
10747 * parse.c (innermost_block): Remove global.
10748 (write_dollar_variable): Update.
10749 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10750 Remove "tracker_types" parameter.
10751 (parse_expression): Add "tracker" parameter.
10752 (parse_expression_for_completion): Update.
10753 (null_post_parser): Add "tracker" parameter.
10754 * p-exp.y: Update rules.
10755 * m2-exp.y: Update rules.
10756 * language.h (struct language_defn) <la_post_parser>: Add
10757 "tracker" parameter.
10758 * go-exp.y: Update rules.
10759 * f-exp.y: Update rules.
10760 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10761 parameter.
10762 * d-exp.y: Update rules.
10763 * c-exp.y: Update rules.
10764 * breakpoint.c (set_breakpoint_condition): Create an
10765 innermost_block_tracker.
10766 (watch_command_1): Likewise.
10767 * ada-lang.c (resolve): Add "tracker" parameter.
10768 (resolve_subexp): Likewise.
10769 * ada-exp.y (write_var_from_sym): Update.
10770
10771 2019-04-04 Tom Tromey <tom@tromey.com>
10772
10773 * type-stack.h: New file.
10774 * type-stack.c: New file.
10775 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10776 type-stack.h.
10777 (insert_into_type_stack, insert_type, push_type, push_type_int)
10778 (insert_type_address_space, pop_type, pop_type_int)
10779 (pop_typelist, pop_type_stack, append_type_stack)
10780 (push_type_stack, get_type_stack, push_typelist)
10781 (follow_type_instance_flags, follow_types): Don't declare.
10782 * parse.c (type_stack): Remove global.
10783 (parse_exp_in_context): Update.
10784 (insert_into_type_stack, insert_type, push_type, push_type_int)
10785 (insert_type_address_space, pop_type, pop_type_int)
10786 (pop_typelist, pop_type_stack, append_type_stack)
10787 (push_type_stack, get_type_stack, push_typelist)
10788 (follow_type_instance_flags, follow_types): Remove (moved to
10789 type-stack.c).
10790 * f-exp.y (type_stack): New global.
10791 Update rules.
10792 (push_kind_type, f_parse): Update.
10793 * d-exp.y (type_stack): New global.
10794 Update rules.
10795 (d_parse): Update.
10796 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10797 Update rules.
10798 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10799 (HFILES_NO_SRCDIR): Add type-stack.h.
10800
10801 2019-04-04 Tom Tromey <tom@tromey.com>
10802
10803 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10804 (rust_parser::convert_ast_to_expression, rust_parse)
10805 (rust_lex_test_completion, rust_lex_tests): Update.
10806 * parser-defs.h (struct expr_completion_state): New.
10807 (struct parser_state) <parser_state>: Add completion parameter.
10808 <mark_struct_expression, mark_completion_tag>: New methods.
10809 <parse_completion, m_completion_state>: New members.
10810 (prefixify_expression, null_post_parser): Update.
10811 (mark_struct_expression, mark_completion_tag): Don't declare.
10812 * parse.c (parse_completion, expout_last_struct)
10813 (expout_tag_completion_type, expout_completion_name): Remove
10814 globals.
10815 (parser_state::mark_struct_expression)
10816 (parser_state::mark_completion_tag): Now methods.
10817 (prefixify_expression): Add last_struct parameter.
10818 (prefixify_subexp): Likewise.
10819 (parse_exp_1): Update.
10820 (parse_exp_in_context): Add cstate parameter. Update.
10821 (parse_expression_for_completion): Create an
10822 expr_completion_state.
10823 (null_post_parser): Add "completion" parameter.
10824 * p-exp.y: Update rules.
10825 (yylex): Update.
10826 * language.h (struct language_defn) <la_post_parser>: Add
10827 "completing" parameter.
10828 * go-exp.y: Update rules.
10829 (lex_one_token): Update.
10830 * expression.h (parse_completion): Don't declare.
10831 * d-exp.y: Update rules.
10832 (lex_one_token): Update rules.
10833 * c-exp.y: Update rules.
10834 (lex_one_token): Update.
10835 * ada-lang.c (resolve): Add "parse_completion" parameter.
10836 (resolve_subexp): Likewise.
10837 (ada_resolve_function): Likewise.
10838
10839 2019-04-04 Tom Tromey <tom@tromey.com>
10840
10841 * parser-defs.h (struct parser_state) <start_arglist,
10842 end_arglist>: New methods.
10843 <arglist_len, m_funcall_chain>: New members.
10844 (arglist_len, start_arglist, end_arglist): Don't declare.
10845 * parse.c (arglist_len, funcall_chain): Remove global.
10846 (start_arglist, end_arglist): Remove functions.
10847 (parse_exp_in_context): Update.
10848 * p-exp.y: Update rules.
10849 * m2-exp.y: Update rules.
10850 * go-exp.y: Update rules.
10851 * f-exp.y: Update rules.
10852 * d-exp.y: Update rules.
10853 * c-exp.y: Update rules.
10854
10855 2019-04-04 Tom Tromey <tom@tromey.com>
10856
10857 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10858 lex_operator, push_back>: New methods.
10859 Update all rules.
10860 (rust_parser::lex_hex, lex_escape): Rename and update.
10861 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10862 (rust_parser::lex_operator): Rename and update.
10863 (rust_parser::lex_number, rustyylex, rustyyerror)
10864 (rust_lex_test_init, rust_lex_test_sequence)
10865 (rust_lex_test_push_back, rust_lex_tests): Update.
10866 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10867 parameter.
10868 <lexptr, prev_lexptr>: New members.
10869 (lexptr, prev_lexptr): Don't declare.
10870 * parse.c (lexptr, prev_lexptr): Remove globals.
10871 (parse_exp_in_context): Update.
10872 * p-exp.y (yylex, yyerror): Update.
10873 * m2-exp.y (parse_number, yylex, yyerror): Update.
10874 * go-exp.y (lex_one_token, yyerror): Update.
10875 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10876 * d-exp.y (lex_one_token, yyerror): Update.
10877 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10878 (lex_one_token, yyerror): Update.
10879 * ada-lex.l (YY_INPUT): Update.
10880 (rewind_to_char): Update.
10881 * ada-exp.y (yyerror): Update.
10882
10883 2019-04-04 Tom Tromey <tom@tromey.com>
10884
10885 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10886 * parser-defs.h (struct parser_state) <parser_state>: Add new
10887 parameter.
10888 <comma_terminates>: New member.
10889 (comma_terminates): Don't declare global.
10890 * parse.c (comma_terminates): Remove global.
10891 (parse_exp_in_context): Update.
10892 * p-exp.y (yylex): Update.
10893 * m2-exp.y (yylex): Update.
10894 * go-exp.y (lex_one_token): Update.
10895 * f-exp.y (yylex): Update.
10896 * d-exp.y (lex_one_token): Update.
10897 * c-exp.y (lex_one_token): Update.
10898 * ada-lex.l: Update.
10899
10900 2019-04-04 Tom Tromey <tom@tromey.com>
10901
10902 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10903 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10904 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10905 * parser-defs.h (paren_depth): Don't declare.
10906 * parse.c (paren_depth): Remove global.
10907 (parse_exp_in_context): Update.
10908 * p-exp.y (paren_depth): New global.
10909 (pascal_parse): Initialize it.
10910 * m2-exp.y (paren_depth): New global.
10911 (m2_parse): Initialize it.
10912 * go-exp.y (paren_depth): New global.
10913 (go_parse): Initialize it.
10914 * f-exp.y (paren_depth): New global.
10915 (f_parse): Initialize it.
10916 * d-exp.y (paren_depth): New global.
10917 (d_parse): Initialize it.
10918 * c-exp.y (paren_depth): New global.
10919 (c_parse): Initialize it.
10920 * ada-lex.l (paren_depth): New global.
10921 (lexer_init): Initialize it.
10922
10923 2019-04-04 Tom Tromey <tom@tromey.com>
10924
10925 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10926 (rust_parser::convert_ast_to_type)
10927 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10928 * parser-defs.h (struct parser_state) <parser_state>: Add
10929 parameters. Initialize new members.
10930 <expression_context_block, expression_context_pc>: New members.
10931 * parse.c (expression_context_block, expression_context_pc):
10932 Remove globals.
10933 (parse_exp_in_context): Update.
10934 * p-exp.y: Update all rules.
10935 (yylex): Update.
10936 * m2-exp.y: Update all rules.
10937 (yylex): Update.
10938 * go-exp.y (yylex): Update.
10939 * f-exp.y (yylex): Update.
10940 * d-exp.y: Update all rules.
10941 (yylex): Update.
10942 * c-exp.y: Update all rules.
10943 (lex_one_token, classify_name, yylex, c_parse): Update.
10944 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10945
10946 2019-04-04 Tom Tromey <tom@tromey.com>
10947
10948 * gdbarch.h, gdbarch.c: Rebuild.
10949 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10950 * stap-probe.h:
10951 (struct stap_parse_info): Replace "parser_state" with
10952 "expr_builder".
10953 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10954 (parser_state): New class.
10955 * parse.c (expr_builder): Rename.
10956 (expr_builder::release): Rename.
10957 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10958 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10959 (write_exp_elt_longcst, write_exp_elt_floatcst)
10960 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10961 (write_exp_string_vector, write_exp_bitstring)
10962 (write_exp_msymbol, mark_struct_expression)
10963 (write_dollar_variable)
10964 (insert_type_address_space, increase_expout_size): Replace
10965 "parser_state" with "expr_builder".
10966 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10967 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10968 "parser_state" with "expr_builder".
10969
10970 2019-04-04 Tom Tromey <tom@tromey.com>
10971
10972 * rust-exp.y: Replace "parse_language" with method call.
10973 * p-exp.y:
10974 (yylex): Replace "parse_language" with method call.
10975 * m2-exp.y:
10976 (yylex): Replace "parse_language" with method call.
10977 * go-exp.y (classify_name): Replace "parse_language" with method
10978 call.
10979 * f-exp.y (yylex): Replace "parse_language" with method call.
10980 * d-exp.y (lex_one_token): Replace "parse_language" with method
10981 call.
10982 * c-exp.y:
10983 (lex_one_token, classify_name, yylex): Replace "parse_language"
10984 with method call.
10985 * ada-exp.y (find_primitive_type, type_char)
10986 (type_system_address): Replace "parse_language" with method call.
10987
10988 2019-04-04 Tom Tromey <tom@tromey.com>
10989
10990 * rust-exp.y: Replace "parse_gdbarch" with method call.
10991 * parse.c (write_dollar_variable, insert_type_address_space):
10992 Replace "parse_gdbarch" with method call.
10993 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10994 call.
10995 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10996 call.
10997 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10998 "parse_gdbarch" with method call.
10999 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11000 with method call.
11001 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11002 "parse_gdbarch" with method call.
11003 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11004 "parse_gdbarch" with method call.
11005 * c-exp.y (parse_type, parse_number, classify_name): Replace
11006 "parse_gdbarch" with method call.
11007 * ada-lex.l: Replace "parse_gdbarch" with method call.
11008 * ada-exp.y (parse_type, find_primitive_type, type_char)
11009 (type_system_address): Replace "parse_gdbarch" with method call.
11010
11011 2019-04-04 Tom Tromey <tom@tromey.com>
11012
11013 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11014 * stap-probe.c (stap_parse_argument): Update.
11015 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11016 initial_size parameter.
11017 * rust-exp.y (rust_lex_tests): Update.
11018 * parse.c (parser_state): Update.
11019 (parse_exp_in_context): Update.
11020 * parser-defs.h (struct parser_state) <parser_state>: Remove
11021 "initial_size" parameter.
11022
11023 2019-04-04 Tom Tromey <tom@tromey.com>
11024
11025 * parser-defs.h (increase_expout_size): Don't declare.
11026 * parse.c (increase_expout_size): Now static.
11027
11028 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11029
11030 * gnu-nat.c (gnu_nat_target::wait): Fix
11031 target_waitstatus_to_string call.
11032
11033 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11034
11035 * eval.c (evaluate_subexp_standard): Handle internal functions
11036 during Fortran function call handling.
11037
11038 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11039
11040 * NEWS: Mention new internal functions.
11041 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11042 (read_base_type): Use dwarf2_init_complex_target_type.
11043 * value.c (creal_internal_fn): New function.
11044 (cimag_internal_fn): New function.
11045 (_initialize_values): Register new internal functions.
11046
11047 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11048
11049 * infrun.c (stop_all_threads): If debug_infrun, always
11050 trace the wait status after wait_one, using
11051 target_waitstatus_to_string and target_pid_to_str.
11052 (handle_inferior_event): Replace various trace of
11053 wait status kind by a single trace.
11054 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11055 wait status kind image by target_waitstatus_to_string.
11056 * target/waitstatus.c (target_waitstatus_to_string): Fix
11057 obsolete comment.
11058
11059 2019-04-01 Tom Tromey <tromey@adacore.com>
11060
11061 PR symtab/23331:
11062 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11063
11064 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11065 Pedro Alves <palves@redhat.com>
11066
11067 * top.c (quit_force): Call 'finalize_values'.
11068 * value.c (finalize_values): New function.
11069 * value.h (finalize_values): Declare.
11070
11071 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11072
11073 * NEWS: Announce $_gdb_major and $_gdb_minor.
11074
11075 * top.c (init_gdb_version_vars): New function.
11076 (gdb_init): Call init_gdb_version_vars.
11077
11078 2019-03-29 Tom Tromey <tromey@adacore.com>
11079
11080 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11081 help text. Remove dead code.
11082
11083 2019-03-29 Keith Seitz <keiths@redhat.com>
11084
11085 From Siddhesh Poyarekar:
11086 * f-lang.h (f77_get_upperbound): Return LONGEST.
11087 (f77_get_lowerbound): Likewise.
11088 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11089 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11090 print them.
11091 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11092 plongest to format print it.
11093 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11094 (f77_get_upperbound): Likewise.
11095 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11096 LOWER_BOUND to LONGEST.
11097 (f77_create_arrayprint_offset_tbl): Likewise.
11098
11099 2019-03-29 Keith Seitz <keiths@redhat.com>
11100
11101 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11102 %s/pulongest for TYPE_LENGTH instead of %d in format
11103 strings.
11104 * ada-typerint.c (ada_print_type): Likewise.
11105 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11106 * compile/compile-c-support.c (generate_register_struct): Likewise.
11107 * gdbtypes.c (recursive_dump_type): Likewise.
11108 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11109 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11110 instead of %d in format strings.
11111 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11112 to std::min to ULONGEST.
11113 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11114 instead of %d in format strings.
11115 * tracepoint.c (info_scope_command): Likewise.
11116 * typeprint.c (print_offset_data::update)
11117 (print_offset_data::finish): Likewise.
11118 * xtensa-tdep.c (xtensa_store_return_value)
11119 (xtensa_push_dummy_call): Likewise.
11120
11121 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11122
11123 * windows-nat.c (display_selector): Fixed format specifications
11124 for 64-bit Cygwin.
11125
11126 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11127
11128 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11129
11130 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11131
11132 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11133 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11134 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11135 (nios2_linux_init_abi): Install it.
11136
11137 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11138
11139 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11140
11141 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11142
11143 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11144
11145 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11146 Tom Tromey <tromey@adacore.com>
11147
11148 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11149
11150 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11151
11152 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11153 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11154 method to compute the bounds of range types. Also print "[evaluated]"
11155 if the bounds' values come from a dynamic evaluation.
11156
11157 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11158
11159 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11160 whitespace when pretty printing is on.
11161
11162 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11163
11164 * ppc-linux-nat.c: Add include.
11165
11166 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11167
11168 * NEWS: Mention AArch64 Pointer Authentication.
11169
11170 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11171
11172 * arm-linux-nat.c: Add include.
11173
11174 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11175
11176 * source-cache.c (source_cache::get_source_lines): Re-read
11177 fullname after calling open_source_file.
11178
11179 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11180
11181 * NEWS: Mention TLS support for FreeBSD.
11182
11183 2019-03-25 Tom Tromey <tromey@adacore.com>
11184
11185 * minsyms.c (BUNCH_SIZE): Update comment.
11186 (~minimal_symbol_reader): Remove old comment.
11187 (compact_minimal_symbols): Update comment.
11188 (minimal_symbol_reader::install): Remove old comment. Update
11189 other comments.
11190
11191 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11192
11193 * s390-linux-nat.c: Add include.
11194
11195 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11196
11197 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11198 Call linux_get_hwcap.
11199 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11200 Likewise.
11201 (aarch64_linux_get_hwcap): Remove function.
11202 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11203 declaration.
11204 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11205 linux_get_hwcap.
11206 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11207 * linux-tdep.c (linux_get_hwcap): Add function.
11208 (linux_get_hwcap2): Likewise.
11209 * linux-tdep.h (linux_get_hwcap): Add declaration.
11210 (linux_get_hwcap2): Likewise.
11211 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11212 (ppc_linux_get_hwcap2): Likewise.
11213 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11214 linux_get_hwcap.
11215 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11216 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11217 (ppc_linux_nat_target::read_description): Likewise.
11218 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11219 * s390-linux-nat.c: Likewise.
11220 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11221
11222 2019-03-24 Tom Tromey <tom@tromey.com>
11223
11224 * ada-lang.c (standard_lookup): Simplify initialization.
11225 (ada_lookup_symbol_nonlocal): Simplify return.
11226 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11227 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11228 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11229 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11230 initialization.
11231 * solib.c (solib_global_lookup): Simplify.
11232 * symtab.c (null_block_symbol): Remove.
11233 (symbol_cache_lookup): Simplify returns.
11234 (lookup_language_this): Simplify returns.
11235 (lookup_symbol_aux): Simplify return.
11236 (lookup_local_symbol): Simplify returns.
11237 (lookup_global_symbol_from_objfile): Simplify return.
11238 (lookup_symbol_in_objfile_symtabs)
11239 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11240 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11241 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11242 * cp-namespace.c (cp_lookup_bare_symbol)
11243 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11244 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11245 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11246 (cp_lookup_symbol_via_imports): Simplify initialization.
11247 (find_symbol_in_baseclass): Likewise.
11248 * symtab.h (null_block_symbol): Remove.
11249 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11250 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11251 (d_lookup_symbol_module): Likewise.
11252 (find_symbol_in_baseclass): Simplify initialization.
11253
11254 2019-03-24 Tom Tromey <tom@tromey.com>
11255
11256 * expression.h: Don't include symtab.h.
11257 (struct block): Forward declare.
11258
11259 2019-03-24 Tom Tromey <tom@tromey.com>
11260
11261 * c-exp.y (typebase): Remove casts.
11262 * gdbtypes.c (lookup_unsigned_typename, )
11263 (lookup_signed_typename): Remove cast.
11264 * eval.c (parse_to_comma_and_eval): Remove cast.
11265 * parse.c (write_dollar_variable): Remove cast.
11266 * block.h (struct block) <superblock>: Now const.
11267 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11268 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11269 (map_block): Make "block" const.
11270 * symfile.h (struct quick_symbol_functions)
11271 <map_matching_symbols>: Constify block argument to "callback".
11272 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11273 const.
11274 (find_pc_sect_compunit_symtab): Make "b" const.
11275 (find_symbol_at_address): Likewise.
11276 (search_symbols): Likewise.
11277 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11278 (dw2_debug_names_lookup_symbol): Likewise.
11279 (dw2_map_matching_symbols): Update.
11280 * p-valprint.c (pascal_val_print): Remove "block".
11281 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11282 (aux_add_nonlocal_symbols): Make "block" const.
11283 (resolve_subexp): Remove cast.
11284 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11285 const.
11286 (iterate_over_file_blocks): Likewise.
11287 * f-exp.y (%union) <bval>: Remove.
11288 * coffread.c (patch_opaque_types): Make "b" const.
11289 * spu-tdep.c (spu_catch_start): Make "block" const.
11290 * c-valprint.c (print_unpacked_pointer): Remove "block".
11291 * symmisc.c (dump_symtab_1): Make "b" const.
11292 (block_depth): Make "block" const.
11293 * d-exp.y (%union) <bval>: Remove.
11294 * cp-support.h (cp_lookup_rtti_type): Update.
11295 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11296 * psymtab.c (psym_lookup_symbol): Make "block" const.
11297 (maintenance_check_psymtabs): Make "b" const.
11298 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11299 (enumerate_locals, enumerate_args): Update.
11300 * python/py-symtab.c (stpy_global_block): Make "block" const.
11301 (stpy_static_block): Likewise.
11302 * inline-frame.c (block_starting_point_at): Make "new_block"
11303 const.
11304 * block.c (find_block_in_blockvector): Make return type const.
11305 (blockvector_for_pc_sect): Make "b" const.
11306 (find_block_in_blockvector): Make "b" const.
11307
11308 2019-03-23 Tom Tromey <tom@tromey.com>
11309
11310 * varobj.c (varobj_create): Update.
11311 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11312 * printcmd.c (display_command, do_one_display): Don't reset
11313 innermost_block.
11314 * parser-defs.h (enum innermost_block_tracker_type): Move to
11315 expression.h.
11316 (innermost_block): Update comment.
11317 * parse.c (parse_exp_1): Add tracker_types parameter.
11318 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11319 tracker_types parameter. Reset innermost_block.
11320 (parse_exp_in_context): Remove.
11321 (parse_expression_for_completion): Update.
11322 * objfiles.c (~objfile): Don't reset expression_context_block or
11323 innermost_block.
11324 * expression.h (enum innermost_block_tracker_type): Move from
11325 parser-defs.h.
11326 (parse_exp_1): Add tracker_types parameter.
11327 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11328 reset innermost_block.
11329
11330 2019-03-23 Tom Tromey <tom@tromey.com>
11331
11332 * objfiles.h: Include bcache.h.
11333
11334 2019-03-23 Tom Tromey <tom@tromey.com>
11335
11336 * linespec.c (get_current_search_block): Use
11337 scoped_restore_current_language.
11338 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11339
11340 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11341 Jiong Wang <jiong.wang@arm.com>
11342
11343 * aarch64-linux-tdep.c
11344 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11345 section.
11346 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11347
11348 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11349 Jiong Wang <jiong.wang@arm.com>
11350
11351 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11352 instructions.
11353 (aarch64_analyze_prologue_test): Add PACIASP test.
11354 (aarch64_prologue_prev_register): Unmask PC value.
11355
11356 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11357 Jiong Wang <jiong.wang@arm.com>
11358
11359 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11360 (aarch64_dwarf2_prev_register): Unmask PC value.
11361 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11362 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11363 DW_CFA_AARCH64_negate_ra_state.
11364 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11365
11366 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11367 Jiong Wang <jiong.wang@arm.com>
11368
11369 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11370 registers.
11371 (aarch64_pseudo_register_name): Likewise.
11372 (aarch64_pseudo_register_type): Likewise.
11373 (aarch64_pseudo_register_reggroup_p): Likewise.
11374 (aarch64_gdbarch_init): Add pauth registers.
11375 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11376 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11377 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11378 (struct gdbarch_tdep): Add regnum for ra_state.
11379
11380 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11381 Jiong Wang <jiong.wang@arm.com>
11382
11383 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11384
11385 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11386 Jiong Wang <jiong.wang@arm.com>
11387
11388 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11389 function.
11390 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11391 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11392 (aarch64_gdbarch_init): Add puth registers.
11393 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11394 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11395 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11396
11397 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11398 Jiong Wang <jiong.wang@arm.com>
11399
11400 * aarch64-linux-nat.c
11401 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11402 * aarch64-linux-tdep.c
11403 (aarch64_linux_core_read_description): Likewise.
11404 (aarch64_linux_get_hwcap): New function.
11405 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11406 (aarch64_linux_get_hwcap): New declaration.
11407
11408 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11409 Jiong Wang <jiong.wang@arm.com>
11410
11411 * aarch64-linux-nat.c
11412 (aarch64_linux_nat_target::read_description): Add pauth param.
11413 * aarch64-linux-tdep.c
11414 (aarch64_linux_core_read_description): Likewise.
11415 * aarch64-tdep.c (struct target_desc): Add in pauth.
11416 (aarch64_read_description): Add pauth param.
11417 (aarch64_gdbarch_init): Likewise.
11418 * aarch64-tdep.h (aarch64_read_description): Likewise.
11419 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11420 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11421 * features/Makefile: Add new files.
11422 * features/aarch64-pauth.c: New file.
11423 * features/aarch64-pauth.xml: New file.
11424
11425 2019-03-20 Tom Tromey <tromey@adacore.com>
11426
11427 * infrun.c (handle_inferior_event): Rename from
11428 handle_inferior_event_1. Create a scoped_value_mark.
11429 (handle_inferior_event): Remove.
11430
11431 2019-03-19 Tom Tromey <tromey@adacore.com>
11432
11433 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11434 * infrun.h (print_stop_event): Add "displays" parameter.
11435 * infrun.c (print_stop_event): Add "displays" parameter.
11436
11437 2019-03-19 Pedro Alves <palves@redhat.com>
11438
11439 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11440 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11441 to -1. Fix TABs vs spaces.
11442 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11443 * tui/tui-out.h (tui_ui_out) Add intro comments.
11444 <m_line, m_start_of_line>: In-class initialize, and add describing
11445 comment.
11446
11447 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11448
11449 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11450 variable names.
11451 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11452
11453 2019-03-18 Pedro Alves <palves@redhat.com>
11454 Eli Zaretskii <eliz@gnu.org>
11455
11456 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11457 m_line and m_start_of_line.
11458
11459 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11460
11461 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11462 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11463 it returns a newline. This fixes a regression in TU mode, whereby
11464 the next line is output on the same screen line as the user input.
11465
11466 2019-03-18 Tom Tromey <tromey@adacore.com>
11467
11468 * minsyms.c (minimal_symbol_reader::install): Remove call to
11469 obstack_blank.
11470
11471 2019-03-18 Pedro Alves <palves@redhat.com>
11472
11473 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11474 New globals.
11475 (apply_style): New, factored out from ...
11476 (apply_ansi_escape): ... this. Handle reverse video mode.
11477 (tui_set_reverse_mode): New function.
11478 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11479 * tui/tui-winsource.c (tui_show_source_line): Use
11480 tui_set_reverse_mode instead of setting A_STANDOUT.
11481 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11482 New setter methods.
11483
11484 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11485
11486 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11487 Handle tabs.
11488
11489 2019-03-18 Tom Tromey <tromey@adacore.com>
11490
11491 * ada-lang.c (empty_array): Add "high" parameter.
11492 (ada_evaluate_subexp): Update.
11493
11494 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11495
11496 * unittests/string_view-selftests.c: Define
11497 _initialize_string_view_selftests unconditionally.
11498
11499 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11500
11501 PR gdb/24350
11502 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11503
11504 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11505
11506 PR gdb/24351
11507 * windows-nat.c (display_selector): Fix format specifiers.
11508
11509 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11510
11511 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11512 tui_refill_source_window instead of tui_refresh_win, to update the
11513 current execution line. This fixes redisplay of the current line
11514 when stepping through the code with "next" or "step".
11515
11516 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11517
11518 * source-cache.c (source_cache::get_source_lines): Call
11519 find_source_lines to initialize s->nlines. This fixes vertical
11520 scrolling of TUI source window when the DOWN arrow is pressed.
11521
11522 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11523
11524 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11525 linux-thread-db.c (_initialize_thread_db): Likewise.
11526
11527 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11528
11529 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11530 wclrtoeol in tui_show_source_line". This reverts changes made in
11531 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11532
11533 2019-03-15 Tom Tromey <tom@tromey.com>
11534
11535 * symtab.h (struct minimal_symbol): Derive from
11536 general_symbol_info.
11537 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11538 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11539 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11540 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11541 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11542 (MSYMBOL_SEARCH_NAME): Update.
11543 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11544 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11545 * minsyms.c (minimal_symbol_reader::record_full): Update.
11546
11547 2019-03-15 Tom Tromey <tom@tromey.com>
11548
11549 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11550
11551 2019-03-15 Tom Tromey <tom@tromey.com>
11552
11553 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11554 unique_xmalloc_ptr.
11555 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11556 Update.
11557 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11558 (build_minimal_symbol_hash_tables)
11559 (minimal_symbol_reader::install): Update.
11560
11561 2019-03-15 Tom Tromey <tom@tromey.com>
11562
11563 * symtab.c (create_demangled_names_hash): Update.
11564 (symbol_set_names): Update.
11565 * objfiles.h (struct objfile_per_bfd_storage)
11566 <demangled_names_hash>: Now an htab_up.
11567 * objfiles.c (objfile_per_bfd_storage): Simplify.
11568
11569 2019-03-15 Tom Tromey <tom@tromey.com>
11570
11571 * objfiles.h (struct objfile_per_bfd_storage): Declare
11572 destructor.
11573 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11574 New.
11575 (get_objfile_bfd_data): Use new. Don't initialize
11576 language_of_main.
11577 (free_objfile_per_bfd_storage): Remove.
11578 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11579
11580 2019-03-15 Tom Tromey <tom@tromey.com>
11581
11582 * symfile.c (reread_symbols): Update.
11583 * objfiles.c (objfile::objfile): Update.
11584 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11585 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11586 comment.
11587 (minimal_symbol_reader::install): Update.
11588 (terminate_minimal_symbol_table): Remove.
11589 * jit.c (jit_object_close_impl): Update.
11590
11591 2019-03-15 Tom Tromey <tom@tromey.com>
11592
11593 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11594 initializations.
11595
11596 2019-03-15 Tom Tromey <tom@tromey.com>
11597
11598 * objfiles.h (struct objfile_per_bfd_storage)
11599 <demangled_hash_languages>: Now a bitset.
11600 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11601 (lookup_minimal_symbol): Update.
11602
11603 2019-03-15 Tom Tromey <tom@tromey.com>
11604
11605 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11606 Don't return the symbol.
11607 * coffread.c (record_minimal_symbol): Use record_full.
11608
11609 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11610
11611 The MS-Windows port of ncurses fails to switch to a color pair if
11612 one or both of the colors are the implicit default colors. This
11613 change records the default colors when TUI is initialized, and
11614 then specifies them explicitly when a color pair uses the default
11615 colors. This allows color styling in TUI mode on MS-Windows.
11616
11617 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11618 ncurses_norm_attr.
11619 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11620 colors in ncurses_norm_attr.
11621 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11622 "none", replace it with the default color recorded in
11623 ncurses_norm_attr.
11624
11625 2019-03-14 Tom Tromey <tromey@adacore.com>
11626
11627 * source-cache.h (class source_cache) <get_source_lines>: Return
11628 std::string.
11629 * source-cache.c (source_cache::extract_lines): Handle case where
11630 first_pos==npos. Return std::string.
11631 (source_cache::get_source_lines): Update.
11632
11633 2019-03-14 Tom Tromey <tromey@adacore.com>
11634
11635 * NEWS: Add item for "style sources" commands.
11636 * source-cache.c (source_cache::get_source_lines): Check
11637 source_styling.
11638 * cli/cli-style.c (source_styling): New global.
11639 (_initialize_cli_style): Add "style sources" commands.
11640 (show_style_sources): New function.
11641 * cli/cli-style.h (source_styling): Declare.
11642
11643 2019-03-14 Pedro Alves <palves@redhat.com>
11644 Tom Tromey <tromey@adacore.com>
11645
11646 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11647 * tui/tui-winsource.c (tui_refill_source_window): New function,
11648 from...
11649 (tui_horizontal_source_scroll): ... here. Move some logic.
11650 * cli/cli-style.c (set_style_enabled): Notify new observable.
11651 * tui/tui-hooks.c (tui_redisplay_source): New function.
11652 (tui_attach_detach_observers): Attach or detach
11653 tui_redisplay_source.
11654 * observable.h (source_styling_changed): New observable.
11655 * observable.c: Define source_styling_changed observable.
11656
11657 2019-03-13 Tom Tromey <tromey@adacore.com>
11658
11659 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11660 (i386_gnu_nat_target::store_registers): Update.
11661 * target-debug.h (target_debug_print_std_string): New macro.
11662 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11663 * windows-tdep.c (display_one_tib): Update.
11664 * tui/tui-stack.c (tui_make_status_line): Update.
11665 * top.c (print_inferior_quit_action): Update.
11666 * thread.c (thr_try_catch_cmd): Update.
11667 (add_thread_with_info): Update.
11668 (thread_target_id_str): Update.
11669 (thr_try_catch_cmd): Update.
11670 (thread_command): Update.
11671 (thread_find_command): Update.
11672 * record-btrace.c (record_btrace_target::info_record)
11673 (record_btrace_resume_thread, record_btrace_target::resume)
11674 (record_btrace_cancel_resume, record_btrace_step_thread)
11675 (record_btrace_target::wait, record_btrace_target::wait)
11676 (record_btrace_target::wait, record_btrace_target::stop): Update.
11677 * progspace.c (print_program_space): Update.
11678 * process-stratum-target.c
11679 (process_stratum_target::thread_address_space): Update.
11680 * linux-fork.c (linux_fork_mourn_inferior)
11681 (detach_checkpoint_command, info_checkpoints_command)
11682 (linux_fork_context): Update.
11683 (linux_fork_detach): Update.
11684 (class scoped_switch_fork_info): Update.
11685 (delete_checkpoint_command): Update.
11686 * infrun.c (follow_fork_inferior): Update.
11687 (follow_fork_inferior): Update.
11688 (proceed_after_vfork_done): Update.
11689 (handle_vfork_child_exec_or_exit): Update.
11690 (follow_exec): Update.
11691 (displaced_step_prepare_throw): Update.
11692 (displaced_step_restore): Update.
11693 (start_step_over): Update.
11694 (resume_1): Update.
11695 (clear_proceed_status_thread): Update.
11696 (proceed): Update.
11697 (print_target_wait_results): Update.
11698 (do_target_wait): Update.
11699 (context_switch): Update.
11700 (stop_all_threads): Update.
11701 (restart_threads): Update.
11702 (finish_step_over): Update.
11703 (handle_signal_stop): Update.
11704 (switch_back_to_stepped_thread): Update.
11705 (keep_going_pass_signal): Update.
11706 (print_exited_reason): Update.
11707 (normal_stop): Update.
11708 * inferior.c (inferior_pid_to_str): Change return type.
11709 (print_selected_inferior): Update.
11710 (add_inferior): Update.
11711 (detach_inferior): Update.
11712 * dummy-frame.c (fprint_dummy_frames): Update.
11713 * dcache.c (dcache_info_1): Update.
11714 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11715 (btrace_fetch, btrace_clear): Update.
11716 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11717 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11718 type.
11719 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11720 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11721 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11722 * gdbarch.c, gdbarch.h: Rebuild.
11723 * gdbarch.sh (core_pid_to_str): Change return type.
11724 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11725 return type.
11726 (windows_nat_target::pid_to_str): Change return type.
11727 (windows_delete_thread): Update.
11728 (windows_nat_target::attach): Update.
11729 (windows_nat_target::files_info): Update.
11730 * target-delegates.c: Rebuild.
11731 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11732 return type.
11733 (sol_thread_target::pid_to_str): Change return type.
11734 * remote.c (class remote_target) <pid_to_str>: Change return
11735 type.
11736 (remote_target::pid_to_str): Change return type.
11737 (extended_remote_target::attach, remote_target::remote_stop_ns)
11738 (remote_target::remote_notif_remove_queued_reply)
11739 (remote_target::push_stop_reply, remote_target::disable_btrace):
11740 Update.
11741 (extended_remote_target::attach): Update.
11742 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11743 type.
11744 (gdbsim_target::pid_to_str): Change return type.
11745 * ravenscar-thread.c (struct ravenscar_thread_target)
11746 <pid_to_str>: Change return type.
11747 (ravenscar_thread_target::pid_to_str): Change return type.
11748 * procfs.c (class procfs_target) <pid_to_str>: Change return
11749 type.
11750 (procfs_target::pid_to_str): Change return type.
11751 (procfs_target::attach): Update.
11752 (procfs_target::detach): Update.
11753 (procfs_target::fetch_registers): Update.
11754 (procfs_target::store_registers): Update.
11755 (procfs_target::wait): Update.
11756 (procfs_target::files_info): Update.
11757 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11758 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11759 return type.
11760 (nto_procfs_target::pid_to_str): Change return type.
11761 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11762 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11763 return type.
11764 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11765 (exit_lwp): Update.
11766 (attach_proc_task_lwp_callback, get_detach_signal)
11767 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11768 (linux_nat_target::resume, wait_lwp, stop_callback)
11769 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11770 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11771 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11772 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11773 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11774 type.
11775 (inf_ptrace_target::attach): Update.
11776 (inf_ptrace_target::files_info): Update.
11777 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11778 type.
11779 (go32_nat_target::pid_to_str): Change return type.
11780 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11781 (gnu_nat_target::wait): Update.
11782 (gnu_nat_target::wait): Update.
11783 (gnu_nat_target::resume): Update.
11784 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11785 (fbsd_nat_target::wait): Update.
11786 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11787 type.
11788 (darwin_nat_target::attach): Update.
11789 * corelow.c (class core_target) <pid_to_str>: Change return type.
11790 (core_target::pid_to_str): Change return type.
11791 * target.c (normal_pid_to_str): Change return type.
11792 (default_pid_to_str): Likewise.
11793 (target_pid_to_str): Change return type.
11794 (target_translate_tls_address): Update.
11795 (target_announce_detach): Update.
11796 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11797 return type.
11798 (bsd_uthread_target::pid_to_str): Change return type.
11799 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11800 type.
11801 (bsd_kvm_target::pid_to_str): Change return type.
11802 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11803 return type.
11804 (aix_thread_target::pid_to_str): Change return type.
11805 * target.h (struct target_ops) <pid_to_str>: Change return type.
11806 (target_pid_to_str, normal_pid_to_str): Likewise.
11807 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11808 type.
11809 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11810 type.
11811 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11812 return type.
11813 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11814 type.
11815 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11816 type.
11817 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11818 return type.
11819
11820 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11821
11822 * NEWS: Mention that the new default MI version is 3. Mention
11823 changes to the output of commands and events that deal with
11824 multi-location breakpoints.
11825 * breakpoint.c: Include "mi/mi-out.h".
11826 (print_one_breakpoint): Change output syntax if using MI version
11827 >= 3.
11828 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11829 New.
11830 (mi_multi_location_breakpoint_output_fixed): New.
11831 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11832 (mi_cmd_fix_multi_location_breakpoint_output): New.
11833 (mi_multi_location_breakpoint_output_fixed): New.
11834 * mi/mi-cmds.c (mi_cmds): Register command
11835 -fix-multi-location-breakpoint-output.
11836 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11837 interpreter "mi".
11838
11839 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11840
11841 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11842 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11843 instantiate mi_ui_out based on interpreter name.
11844 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11845 * mi/mi-main.c (mi_load_progress): Likewise.
11846
11847 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11848
11849 * NEWS: Combine separate "New targets" sections for 8.3.
11850
11851 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11852
11853 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11854 (ppcfbsd_init_abi): Install gdbarch
11855 "fetch_tls_load_module_address" and "get_thread_local_address"
11856 methods.
11857
11858 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11859
11860 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11861 (riscv_fbsd_init_abi): Install gdbarch
11862 "fetch_tls_load_module_address" and "get_thread_local_address"
11863 methods.
11864
11865 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11866
11867 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11868 (i386fbsd_init_abi): Install gdbarch
11869 "fetch_tls_load_module_address" and "get_thread_local_address"
11870 methods.
11871
11872 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11873
11874 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11875 (amd64fbsd_init_abi): Install gdbarch
11876 "fetch_tls_load_module_address" and "get_thread_local_address"
11877 methods.
11878
11879 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11880
11881 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11882 (struct fbsd_pspace_data): New type.
11883 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11884 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11885 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11886 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11887 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11888
11889 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11890
11891 * gdbtypes.c (lookup_struct_elt): New function.
11892 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11893 * gdbtypes.h (struct struct_elt): New type.
11894 (lookup_struct_elt): New prototype.
11895
11896 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11897
11898 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11899 remove disabled code block.
11900
11901 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11902
11903 * gdbarch.sh (get_thread_local_address): New method.
11904 * gdbarch.h, gdbarch.c: Regenerate.
11905 * target.c (target_translate_tls_address): Use
11906 gdbarch_get_thread_local_address if present instead of
11907 target::get_thread_local_address.
11908
11909 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11910
11911 * target.h (target::get_thread_local_address): Update comment.
11912
11913 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11914
11915 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11916 objfile->separate_debug_objfile_backlink if not NULL.
11917
11918 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11919
11920 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11921 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11922 (amd64bsd_store_inferior_registers): Likewise.
11923 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11924 Enable segment base registers.
11925 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11926 PT_GETFSBASE and PT_GETGSBASE.
11927 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11928 PT_SETGSBASE.
11929 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11930 segment base registers.
11931 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11932
11933 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11934
11935 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11936 Update calls to i386_target_description to add 'segments'
11937 parameter.
11938 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11939 add segment base registers.
11940 * arch/i386.c (i386_create_target_description): Add 'segments'
11941 parameter to enable segment base registers.
11942 * arch/i386.h (i386_create_target_description): Likewise.
11943 * features/i386/32bit-segments.xml: New file.
11944 * features/i386/32bit-segments.c: Generate.
11945 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11946 call to i386_target_description to add 'segments' parameter.
11947 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11948 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11949 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11950 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11951 if feature is present.
11952 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11953 Add 'segments' parameter to call to i386_target_description.
11954 (i386_target_description): Add 'segments' parameter to enable
11955 segment base registers.
11956 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11957 to call to i386_target_description.
11958 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11959 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11960 Define I386_NUM_REGS.
11961 (i386_target_description): Add 'segments' parameter to enable
11962 segment base registers.
11963
11964 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11965
11966 PR/24325
11967 * source-cache.c: #undef open and close, to avoid unresolved
11968 externals during linking.
11969
11970 2019-03-12 Tom Tromey <tromey@adacore.com>
11971
11972 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11973 const. Add initializers.
11974 (_initialize_remote): Don't initialize ptid globals.
11975
11976 2019-03-12 Pedro Alves <palves@redhat.com>
11977
11978 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11979
11980 2019-03-12 Pedro Alves <palves@redhat.com>
11981
11982 * cp-name-parser.y (main): Remove unused 'len' variable.
11983
11984 2019-03-12 Tom Tromey <tromey@adacore.com>
11985
11986 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11987 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11988
11989 2019-03-12 Tom Tromey <tromey@adacore.com>
11990
11991 * linux-nat.c (iterate_over_lwps): Update.
11992 (stop_callback): Remove parameter.
11993 (stop_wait_callback, detach_callback, resume_set_callback)
11994 (select_singlestep_lwp_callback, set_ignore_sigint)
11995 (status_callback, resumed_callback, resume_clear_callback)
11996 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11997 data parameter.
11998 (linux_nat_target::detach, linux_nat_target::resume)
11999 (linux_stop_and_wait_all_lwps, select_event_lwp)
12000 (linux_nat_filter_event, linux_nat_wait_1)
12001 (linux_nat_target::kill, linux_nat_target::stop)
12002 (linux_nat_target::stop): Update.
12003 (linux_nat_resume_callback): Change type.
12004 (resume_stopped_resumed_lwps, count_events_callback)
12005 (select_event_lwp_callback): Likewise.
12006 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12007 * arm-linux-nat.c (struct update_registers_data): Remove.
12008 (update_registers_callback): Change type.
12009 (arm_linux_insert_hw_breakpoint1): Update.
12010 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12011 parameter.
12012 (x86_linux_dr_set_addr): Update.
12013 (x86_linux_dr_set_control): Update.
12014 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12015 (iterate_over_lwps): Use gdb::function_view.
12016 * nat/aarch64-linux-hw-point.c (struct
12017 aarch64_dr_update_callback_param): Remove.
12018 (debug_reg_change_callback): Change type.
12019 (aarch64_notify_debug_reg_change): Update.
12020 * s390-linux-nat.c (s390_refresh_per_info): Update.
12021
12022 2019-03-11 Tom Tromey <tromey@adacore.com>
12023
12024 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12025 redundant assignment to "this_cu".
12026
12027 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12028
12029 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12030
12031 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12032
12033 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12034 from...
12035 (rank_one_type): ... this.
12036
12037 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12038
12039 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12040 from...
12041 (rank_one_type): ... this.
12042
12043 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12044
12045 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12046 from...
12047 (rank_one_type): ... this.
12048
12049 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12050
12051 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12052 from...
12053 (rank_one_type): ... this.
12054
12055 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12056
12057 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12058 from...
12059 (rank_one_type): ... this.
12060
12061 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12062
12063 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12064 from...
12065 (rank_one_type): ... this.
12066
12067 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12068
12069 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12070 from...
12071 (rank_one_type): ... this.
12072
12073 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12074
12075 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12076 from...
12077 (rank_one_type): ... this.
12078
12079 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12080
12081 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12082 from...
12083 (rank_one_type): ... this.
12084
12085 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12086
12087 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12088 from...
12089 (rank_one_type): ... this.
12090
12091 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12092
12093 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12094 from...
12095 (rank_one_type): ... this.
12096
12097 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12098
12099 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12100 from...
12101 (rank_one_type): ... this.
12102
12103 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12104
12105 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12106 inferior-events' shows the example events.
12107
12108 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12109
12110 Support styling on native MS-Windows console
12111
12112 PR/24315
12113 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12114 on MS-Windows if $TERM is not defined.
12115
12116 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12117
12118 * posix-hdep.c (gdb_console_fputs):
12119 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12120 functions.
12121 * ui-file.h (gdb_console_fputs): Add prototype.
12122
12123 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12124 back to fputs only if the former returns zero.
12125
12126 2019-03-07 Tom Tromey <tom@tromey.com>
12127
12128 * symmisc.c (print_symbol_bcache_statistics): Update.
12129 (print_objfile_statistics): Update.
12130 * symfile.c (allocate_symtab): Update.
12131 * stabsread.c: Don't include bcache.h.
12132 * psymtab.h (struct psymbol_bcache): Don't declare.
12133 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12134 (psymbol_bcache_init, psymbol_bcache_free)
12135 (psymbol_bcache_get_bcache): Don't declare.
12136 * psymtab.c (struct psymbol_bcache): Remove.
12137 (psymtab_storage::psymtab_storage): Update.
12138 (psymtab_storage::~psymtab_storage): Update.
12139 (psymbol_bcache_init, psymbol_bcache_free)
12140 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12141 (add_psymbol_to_bcache): Update.
12142 (allocate_psymtab): Update.
12143 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12144 macro_cache>: No longer pointers.
12145 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12146 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12147 * macrotab.c (macro_bcache): Update.
12148 * macroexp.c: Don't include bcache.h.
12149 * gdbtypes.c (check_types_worklist): Update.
12150 (types_deeply_equal): Remove TRY/CATCH. Update.
12151 * elfread.c (elf_symtab_read): Update.
12152 * dwarf2read.c: Don't include bcache.h.
12153 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12154 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12155 (print_bcache_statistics, bcache_memory_used): Don't declare.
12156 (struct bcache): Move from bcache.c. Add constructor, destructor,
12157 methods. Rename all data members.
12158 * bcache.c (struct bcache): Move to bcache.h.
12159 (bcache::expand_hash_table): Rename from expand_hash_table.
12160 (bcache): Remove.
12161 (bcache::insert): Rename from bcache_full.
12162 (bcache::compare): Rename from bcache_compare.
12163 (bcache_xmalloc): Remove.
12164 (bcache::~bcache): Rename from bcache_xfree.
12165 (bcache::print_statistics): Rename from print_bcache_statistics.
12166 (bcache::memory_used): Rename from bcache_memory_used.
12167
12168 2019-03-07 Pedro Alves <palves@redhat.com>
12169
12170 * infrun.c (normal_stop): Also check for
12171 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12172
12173 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12174
12175 * f-lang.c (value_from_host_double): Moved to...
12176 * value.c (value_from_host_double): ...here.
12177 * value.h (value_from_host_double): Declare.
12178 * guile/scm-math.c (vlscm_convert_typed_number): Use
12179 value_from_host_double.
12180 (vlscm_convert_number): Likewise.
12181 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12182 * python/py-value.c (convert_value_from_python): Likewise.
12183
12184 2019-03-06 Tom Tromey <tom@tromey.com>
12185
12186 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12187
12188 2019-03-06 Tom Tromey <tom@tromey.com>
12189
12190 * utils.h (free_current_contents): Don't declare.
12191 * utils.c (free_current_contents): Remove.
12192
12193 2019-03-06 Tom Tromey <tom@tromey.com>
12194
12195 * top.c (quit_force): Update.
12196 * main.c (captured_command_loop): Update.
12197 * common/new-op.c (operator new): Update.
12198 * common/common-exceptions.c (struct catcher)
12199 <save_cleanup_chain>: Remove member.
12200 (exceptions_state_mc_init): Update.
12201 (exception_try_scope_entry): Return nullptr.
12202 (exception_try_scope_exit, exception_rethrow)
12203 (throw_exception_sjlj, throw_exception_cxx): Update.
12204 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12205 (all_cleanups, do_cleanups, discard_cleanups)
12206 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12207 (restore_cleanups, restore_final_cleanups): Don't declare.
12208 (do_final_cleanups): Remove parameter.
12209 * common/cleanups.c (cleanup_chain, make_cleanup)
12210 (make_cleanup_dtor, all_cleanups, do_cleanups)
12211 (discard_my_cleanups, discard_cleanups)
12212 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12213 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12214 (null_cleanup): Remove.
12215 (do_final_cleanups): Remove parameter.
12216
12217 2019-03-06 Tom Tromey <tom@tromey.com>
12218
12219 * remote.c (remote_target::remote_parse_stop_reply): Use
12220 unique_xmalloc_ptr.
12221
12222 2019-03-06 Tom Tromey <tom@tromey.com>
12223
12224 * stabsread.c (struct stabs_field_info): Rename from field_info.
12225 <list, fnlist>: Add initializers.
12226 <obstack>: New member.
12227 (read_member_functions, read_struct_fields, read_baseclasses):
12228 Allocate on obstack. Don't use cleanups.
12229 (read_one_struct_field, read_member_functions, read_struct_fields)
12230 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12231 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12232 (read_struct_type): Update.
12233
12234 2019-03-06 Tom Tromey <tom@tromey.com>
12235
12236 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12237 * common/filestuff.h (make_cleanup_close): Don't declare.
12238 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12239 Remove.
12240
12241 2019-03-06 Tom Tromey <tom@tromey.com>
12242
12243 * solib-aix.c: Use make_scope_exit.
12244
12245 2019-03-06 Tom Tromey <tom@tromey.com>
12246
12247 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12248 Use make_scope_exit.
12249
12250 2019-03-06 Tom Tromey <tom@tromey.com>
12251
12252 * solib-svr4.c (disable_probes_interface): Remove parameter.
12253 (svr4_handle_solib_event): Use make_scope_exit.
12254
12255 2019-03-06 Tom Tromey <tom@tromey.com>
12256
12257 * remote.c (struct stop_reply_deleter): Remove.
12258 (stop_reply_up): Update.
12259 (struct stop_reply): Derive from notif_event. Don't typedef.
12260 <regcache>: Now a std::vector.
12261 (stop_reply_xfree): Remove.
12262 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12263 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12264 (remote_target::discard_pending_stop_replies): Use delete.
12265 (remote_target::remote_parse_stop_reply): Update.
12266 (remote_target::process_stop_reply): Update.
12267 * remote-notif.h (struct notif_event): Add virtual destructor.
12268 Remove "dtr" member.
12269 (struct notif_client) <alloc_event>: Return a unique_ptr.
12270 (notif_event_xfree): Don't declare.
12271 (notif_event_up): New typedef.
12272 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12273 (notif_event_xfree, do_notif_event_xfree): Remove.
12274 (remote_notif_state_xfree): Update.
12275
12276 2019-03-06 Tom Tromey <tom@tromey.com>
12277
12278 * infrun.c (displaced_step_clear_cleanup): Now a
12279 forward_scope_exit type.
12280 (displaced_step_prepare_throw): Update.
12281 (displaced_step_fixup): Update.
12282
12283 2019-03-06 Tom Tromey <tom@tromey.com>
12284
12285 * inferior.h (class inferior): Update comment.
12286 * gdbthread.h (class thread_info): Update comment.
12287
12288 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12289 Tom Tromey <tom@tromey.com>
12290
12291 * stabsread.h (struct stab_section_list): Remove.
12292 (coffstab_build_psymtabs): Update.
12293 * dbxread.c (symbuf_sections): Now a std::vector.
12294 (sect_idx): New global.
12295 (fill_symbuf): Update.
12296 (coffstab_build_psymtabs): Change type of stabsects parameter.
12297 Update.
12298 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12299 std::vector.
12300 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12301 (coff_locate_sections): Update.
12302 (coff_symfile_read): Remove cleanups. Update.
12303 (init_stringtab): Add storage parameter.
12304 (free_stringtab, free_stringtab_cleanup): Remove.
12305 (init_lineno): Add storage parameter.
12306 (free_linetab, free_linetab_cleanup): Remove.
12307
12308 2019-03-06 Pedro Alves <palves@redhat.com>
12309
12310 * linux-fork.c (fork_info::clobber_regs): Delete.
12311 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12312 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12313 comment. Adjust.
12314 (scoped_switch_fork_info::scoped_switch_fork_info)
12315 (checkpoint_command, linux_fork_context): Adjust
12316 fork_save_infrun_state calls.
12317
12318 2019-03-06 Pedro Alves <palves@redhat.com>
12319
12320 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12321 (inf_has_multiple_threads): Return 'bool' and rewrite using
12322 inferior_info::threads().
12323
12324 2019-03-06 Pedro Alves <palves@redhat.com>
12325
12326 * linux-fork.c: Include <list>.
12327 (fork_list): Now a std::list instance.
12328 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12329 (forks_exist_p, find_last_fork): Adjust.
12330 (new_fork): Delete.
12331 (one_fork_p): New.
12332 (add_fork): Adjust.
12333 (free_fork): Delete, folded into fork_info::~fork_info().
12334 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12335 Adjust.
12336 (init_fork_list): Delete.
12337 (linux_fork_killall, linux_fork_mourn_inferior)
12338 (linux_fork_detach, info_checkpoints_command): Adjust.
12339 (_initialize_linux_fork): No longer call init_fork_list.
12340
12341 2019-03-06 Pedro Alves <palves@redhat.com>
12342
12343 * linux-fork.c (new_fork): New, split out of ...
12344 (add_fork): ... this. Return void. Move "first fork" special
12345 case from here, to ...
12346 (checkpoint_command): ... here.
12347 * linux-linux.h (add_fork): Return void.
12348
12349 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12350
12351 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12352
12353 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12354 Chris January <chris.january@arm.com>
12355 David Lecomber <david.lecomber@arm.com>
12356
12357 * f-exp.y: New token, UNOP_INTRINSIC.
12358 (exp): New pattern using UNOP_INTRINSIC token.
12359 (f77_keywords): Add 'abs' keyword.
12360 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12361 (value_from_host_double): New function.
12362 (evaluate_subexp_f): Support UNOP_ABS.
12363
12364 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12365
12366 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12367 types.
12368
12369 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12370
12371 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12372 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12373 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12374
12375 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12376
12377 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12378
12379 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12380 Chris January <chris.january@arm.com>
12381
12382 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12383 * f-exp.y: Define 'KIND' token.
12384 (exp): New pattern for KIND expressions.
12385 (ptype): Handle types with a kind extension.
12386 (direct_abs_decl): Extend to spot kind extensions.
12387 (f77_keywords): Add 'kind' to the list.
12388 (push_kind_type): New function.
12389 (convert_to_kind_type): New function.
12390 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12391 * parse.c (operator_length_standard): Likewise.
12392 * parser-defs.h (enum type_pieces): Add tp_kind.
12393 * std-operator.def: Add UNOP_KIND.
12394
12395 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12396
12397 * f-exp.y (f_parse): Set yydebug.
12398
12399 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12400
12401 * f-lang.c (evaluate_subexp_f): New function.
12402 (exp_descriptor_f): New global.
12403 (f_language_defn): Use exp_descriptor_f instead of
12404 exp_descriptor_standard.
12405
12406 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12407
12408 * f-exp.y (struct token): Add comments.
12409 (dot_ops): Remove uppercase versions and the end marker.
12410 (f77_keywords): Likewise.
12411 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12412 entries in the dot_ops array are case insensitive, and use
12413 strncasecmp to compare strings. Also some whitespace cleanup in
12414 this area. Similar for the f77_keywords array, except entries in
12415 this list might be case sensitive.
12416
12417 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12418
12419 * f-exp.y (struct f77_boolean_val): Add comments.
12420 (boolean_values): Remove uppercase versions, and end marker.
12421 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12422 and use strncasecmp to achieve case insensitivity. Additionally,
12423 perform whitespace cleanup around this code.
12424
12425 2019-03-06 Tom Tromey <tromey@adacore.com>
12426
12427 * remote-sim.c (gdbsim_target_open): Use result of
12428 gdb_argv::release.
12429
12430 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12431 Dirk Schubert <dirk.schubert@arm.com>
12432 Chris January <chris.january@arm.com>
12433
12434 * eval.c (evaluate_subexp_standard): Call Fortran argument
12435 wrapping logic.
12436 * f-lang.c (struct value): A value which can be passed into a
12437 Fortran function call.
12438 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12439 where appropriate.
12440 (struct type): Value ready for a Fortran function call.
12441 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12442 is needed.
12443 * f-lang.h (fortran_argument_convert): Declaration.
12444 (fortran_preserve_arg_pointer): Declaration.
12445 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12446
12447 2019-03-05 Tom Tromey <tromey@adacore.com>
12448
12449 * python/py-prettyprint.c (print_string_repr): Remove #if.
12450 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12451
12452 2019-03-05 Tom Tromey <tromey@adacore.com>
12453
12454 * target.c (the_dummy_target): Move later. Change type to
12455 "dummy_target".
12456 (initialize_targets): Don't initialize the_dummy_target.
12457
12458 2019-03-05 Tom Tromey <tromey@adacore.com>
12459
12460 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12461 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12462
12463 2019-03-05 Tom Tromey <tromey@adacore.com>
12464
12465 * windows-nat.c (windows_nat_target::attach)
12466 (windows_nat_target::detach): Don't call gdb_flush.
12467 * valprint.c (generic_val_print, val_print, val_print_string):
12468 Don't call gdb_flush.
12469 * utils.c (defaulted_query): Don't call gdb_flush.
12470 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12471 * target.c (target_announce_detach): Don't call gdb_flush.
12472 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12473 * remote.c (extended_remote_target::attach): Don't call
12474 gdb_flush.
12475 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12476 * printcmd.c (do_examine): Don't call gdb_flush.
12477 (info_display_command): Don't call gdb_flush.
12478 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12479 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12480 * memattr.c (info_mem_command): Don't call gdb_flush.
12481 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12482 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12483 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12484 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12485 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12486 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12487 (gnu_nat_target::detach): Don't call gdb_flush.
12488 * f-valprint.c (f_val_print): Don't call gdb_flush.
12489 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12490 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12491 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12492 gdb_flush.
12493 * c-valprint.c (c_val_print): Don't call gdb_flush.
12494 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12495
12496 2019-03-05 Tom Tromey <tromey@adacore.com>
12497
12498 * varobj.c (update_dynamic_varobj_children): Update.
12499 (install_default_visualizer): Use reset, not release.
12500 * value.c (set_internalvar): Update.
12501 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12502 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12503 ATTRIBUTE_UNUSED_RESULT.
12504
12505 2019-03-05 Tom Tromey <tromey@adacore.com>
12506
12507 * remote.c (class scoped_remote_fd) <release>: Add
12508 ATTRIBUTE_UNUSED_RESULT.
12509
12510 2019-03-05 Tom Tromey <tromey@adacore.com>
12511
12512 * macroexp.c (struct macro_buffer) <release>: Add
12513 ATTRIBUTE_UNUSED_RESULT.
12514
12515 2019-03-05 Tom Tromey <tromey@adacore.com>
12516
12517 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12518 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12519 ATTRIBUTE_UNUSED_RESULT.
12520
12521 2019-03-05 Tom Tromey <tromey@adacore.com>
12522
12523 * common/scoped_fd.h (class scoped_fd) <release>: Add
12524 ATTRIBUTE_UNUSED_RESULT.
12525
12526 2019-03-05 Tom Tromey <tromey@adacore.com>
12527
12528 * parser-defs.h (struct parser_state) <release>: Add
12529 ATTRIBUTE_UNUSED_RESULT.
12530
12531 2019-03-05 Tom Tromey <tromey@adacore.com>
12532
12533 * utils.h (class gdb_argv) <release>: Add
12534 ATTRIBUTE_UNUSED_RESULT.
12535 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12536
12537 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12538
12539 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12540 for-loop range, to avoid compiler warnings.
12541
12542 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12543 avoid compiler warnings about unused variables.
12544
12545 * NEWS: Mention end of support for native debugging on MS-Windows
12546 before XP.
12547
12548 PR gdb/24292
12549 * common/netstuff.c:
12550 * gdbserver/gdbreplay.c
12551 * gdbserver/remote-utils.c:
12552 * ser-tcp.c:
12553 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12554 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12555 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12556 'getaddrinfo' and 'freeaddrinfo' were not available before
12557 Windows XP, and mingw.org's MinGW headers by default define
12558 _WIN32_WINNT to 0x500.
12559
12560 2019-03-01 Gary Benson <gbenson@redhat.com>
12561
12562 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12563
12564 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12565 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12566
12567 PR gdb/8527
12568 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12569 set_sigint_trap, clear_sigint_trap.
12570
12571 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12572
12573 * target.c (target_detach): Clear the regcache and the
12574 frame cache.
12575
12576 2019-02-27 Pedro Alves <palves@redhat.com>
12577
12578 * utils.c (set_screen_size): When we cap the height/width sizes,
12579 tweak the corresponding command variable to show "unlimited":
12580
12581 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12582 Pedro Alves <palves@redhat.com>
12583
12584 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12585 before calling rl_set_screen_size.
12586
12587 2019-02-27 Tom Tromey <tromey@adacore.com>
12588
12589 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12590 define.
12591 * python/py-value.c: Remove Python 2.4 workaround.
12592 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12593 workaround.
12594 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12595 Python 2.4 workaround.
12596 * python/python-internal.h: Remove Python 2.4 comment.
12597 (Py_ssize_t): Don't define.
12598 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12599 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12600 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12601 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12602 * python/python.c (do_start_initialization): Remove Python 2.4
12603 workaround.
12604 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12605 (print_children): Remove Python 2.4 workaround.
12606 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12607 workaround.
12608 (CHARBUFFERPROC_NAME): Remove.
12609 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12610 Python 2.4 workaround.
12611
12612 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12613
12614 * NEWS: Note minimum Python version.
12615
12616 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12617
12618 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12619 code from these functions. Remove corresponding ifdefs. Use
12620 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12621 Remove gotos and target of gotos.
12622 (infpy_search_memory): Likewise.
12623
12624 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12625
12626 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12627 (hppa_gdbarch_init): Don't register deleted functions with
12628 gdbarch.
12629
12630 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12631
12632 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12633 (h8300_unwind_sp): Delete.
12634 (h8300_dummy_id): Delete.
12635 (h8300_gdbarch_init): Don't register deleted functions with
12636 gdbarch.
12637
12638 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12639
12640 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12641 (ft32_unwind_pc): Delete.
12642 (ft32_unwind_sp): Delete.
12643 (ft32_gdbarch_init): Don't register deleted functions with
12644 gdbarch.
12645
12646 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12647
12648 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12649 (frv_unwind_pc): Delete.
12650 (frv_unwind_sp): Delete.
12651 (frv_gdbarch_init): Don't register deleted functions with
12652 gdbarch.
12653
12654 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12655
12656 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12657 (riscv_unwind_pc): Delete.
12658 (riscv_unwind_sp): Delete.
12659 (riscv_gdbarch_init): Don't register deleted functions with
12660 gdbarch.
12661
12662 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12663
12664 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12665 (csky_unwind_pc): Delete.
12666 (csky_unwind_sp): Delete.
12667 (csky_gdbarch_init): Don't register deleted functions with
12668 gdbarch.
12669
12670 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12671
12672 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12673 (cris_unwind_pc): Delete.
12674 (cris_unwind_sp): Delete.
12675 (cris_gdbarch_init): Don't register deleted functions with
12676 gdbarch.
12677
12678 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12679
12680 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12681 (bfin_unwind_pc): Delete.
12682 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12683
12684 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12685
12686 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12687 (arm_unwind_pc): Delete.
12688 (arm_unwind_sp): Delete.
12689 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12690
12691 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12692
12693 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12694 (arc_unwind_pc): Delete.
12695 (arc_unwind_sp): Delete.
12696 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12697
12698 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12699
12700 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12701 (alpha_unwind_pc): Delete.
12702 (alpha_gdbarch_init): Don't register deleted functions with
12703 gdbarch.
12704
12705 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12706
12707 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12708 (aarch64_unwind_pc): Delete.
12709 (aarch64_unwind_sp): Delete.
12710 (aarch64_gdbarch_init): Don't register deleted functions with
12711 gdbarch.
12712
12713 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12714
12715 * gdbtypes.c (type_align): Don't consider static members when
12716 computing structure alignment.
12717
12718 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12719
12720 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12721 return 0 for other types.
12722 * arch-utils.c (default_type_align): Always return 0.
12723 * gdbarch.h: Regenerate.
12724 * gdbarch.sh (type_align): Extend comment.
12725 * gdbtypes.c (type_align): Add additional comments, always call
12726 gdbarch_type_align before applying the default rules.
12727 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12728 generic code will then apply a suitable default.
12729 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12730 types, return 0 for other types.
12731
12732 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12733
12734 * NEWS: Create a new section for the next release branch.
12735 Rename the section of the current branch, now that it has
12736 been cut.
12737
12738 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12739
12740 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12741 * version.in: Bump version to 8.3.50.DATE-git.
12742
12743 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12744
12745 * aix-thread.c (ptid_cmp): Remove unused variable.
12746 (get_signaled_thread): Likewise.
12747 (store_regs_user_thread): Likewise.
12748 (store_regs_kernel_thread): Likewise.
12749 (fetch_regs_kernel_thread): Remove shadowed variable.
12750
12751 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12752
12753 * features/riscv/32bit-cpu.xml: Add register numbers.
12754 * features/riscv/32bit-fpu.c: Regenerate.
12755 * features/riscv/32bit-fpu.xml: Add register numbers.
12756 * features/riscv/64bit-cpu.xml: Add register numbers.
12757 * features/riscv/64bit-fpu.c: Regenerate.
12758 * features/riscv/64bit-fpu.xml: Add register numbers.
12759
12760 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12761
12762 * NEWS: Mention two argument form of gdb.Value constructor.
12763 * python/py-value.c (convert_buffer_and_type_to_value): New
12764 function.
12765 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12766 Add support for handling an optional second argument. Call
12767 convert_buffer_and_type_to_value as appropriate.
12768 * python/python-internal.h (Py_buffer_deleter): New struct.
12769 (Py_buffer_up): New typedef.
12770
12771 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12772
12773 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12774 instead of releasing ownership.
12775
12776 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12777
12778 * dwarf2read.c (open_and_init_dwp_file): Call
12779 elf_numsections instead of bfd_count_sections to initialize
12780 dwp_file->num_sections.
12781
12782 2019-02-25 Tom Tromey <tromey@adacore.com>
12783
12784 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12785
12786 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12787
12788 * gcore.in: Add '--readnever' option when invoking GDB.
12789
12790 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12791
12792 * MAINTAINERS: Update my email address.
12793
12794 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12795
12796 * build-id.c (build_id_to_debug_bfd_1): New function.
12797 (build_id_to_debug_bfd): Look for separate debug file in
12798 sysroot.
12799
12800 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12801
12802 * gdbarch.sh: Update the copyright year range that is placed into
12803 generated files.
12804
12805 2019-02-22 Keith Seitz <keiths@redhat.com>
12806
12807 PR symtab/23853
12808 * linespec.c (create_sals_line_offset): Search for the default
12809 symtab's filename instead of its fullname.
12810
12811 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12812
12813 * NEWS: Update style defaults.
12814
12815 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12816
12817 * main.c (captured_main_1): Disable styling in batch mode.
12818
12819 2019-02-20 Tom Tromey <tom@tromey.com>
12820
12821 * symtab.c (symtab_symbol_info): Fix typos.
12822
12823 2019-02-20 Tom Tromey <tromey@adacore.com>
12824
12825 * findcmd.c (_initialize_mem_search): Use upper case for
12826 metasyntactic variables.
12827
12828 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12829
12830 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12831 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12832
12833 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12834
12835 * top.h (source_file_name): Change to std::string.
12836 * top.c (source_file_name): Likewise.
12837 (command_line_input): Adjust.
12838 * cli/cli-script.c (script_from_file): Adjust.
12839
12840 2019-02-19 Tom Tromey <tromey@adacore.com>
12841
12842 * ravenscar-thread.c
12843 (ravenscar_thread_target::update_thread_list): Don't call
12844 ada_build_task_list.
12845 * ada-lang.h (ada_build_task_list): Don't declare.
12846 * ada-tasks.c (struct ada_tasks_inferior_data)
12847 <task_list_valid_p>: Now bool.
12848 (read_known_tasks, ada_task_list_changed)
12849 (ada_tasks_invalidate_inferior_data): Update.
12850 (read_known_tasks_array): Return bool.
12851 (read_known_tasks_list): Likewise.
12852 (read_known_tasks): Return void.
12853 (ada_build_task_list): Now static.
12854
12855 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12856
12857 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12858 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12859
12860 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12861
12862 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12863 variant for ada_tasks_pspace_data_handle and
12864 ada_tasks_inferior_data_handle.
12865 (ada_tasks_pspace_data_cleanup): New function.
12866 (ada_tasks_inferior_data_cleanup): New function.
12867
12868 2019-02-17 Tom Tromey <tom@tromey.com>
12869
12870 * macrotab.h (macro_source_fullname): Return a std::string.
12871 * macrotab.c (macro_include, check_for_redefinition)
12872 (macro_undef, macro_lookup_definition, foreach_macro)
12873 (foreach_macro_in_scope): Update.
12874 (macro_source_fullname): Return a std::string.
12875 * macrocmd.c (show_pp_source_pos): Update.
12876
12877 2019-02-17 Tom Tromey <tom@tromey.com>
12878
12879 * macrocmd.c (show_pp_source_pos): Style the file names.
12880
12881 2019-02-17 Tom Tromey <tom@tromey.com>
12882
12883 PR tui/24197:
12884 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12885
12886 2019-02-17 Tom Tromey <tom@tromey.com>
12887
12888 * ada-lang.c (user_select_syms): Use filtered printing.
12889 * utils.c (wrap_style): New global.
12890 (desired_style): Remove.
12891 (emit_style_escape): Add stream parameter.
12892 (set_output_style, reset_terminal_style, prompt_for_continue):
12893 Update.
12894 (flush_wrap_buffer): Only flush gdb_stdout.
12895 (wrap_here): Set wrap_style.
12896 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12897 treat escape sequences as a character. Change when wrap buffer is
12898 flushed.
12899 (fputs_styled): Do not set the output style when the default is
12900 requested.
12901 * ui-style.h (struct ui_file_style) <is_default>: New method.
12902 * source.c (print_source_lines_base): Emit escape sequences in one
12903 piece.
12904
12905 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12906
12907 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12908 integers and enumeration types.
12909
12910 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12911
12912 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12913 instead of lookup_symbol_in_language
12914 (do_exact_match): New function.
12915 (ada_get_symbol_name_matcher): Return do_exact_match when
12916 doing a verbatim match.
12917
12918 2019-02-15 Tom Tromey <tromey@adacore.com>
12919
12920 * ravenscar-thread.c (ravenscar_thread_target::resume)
12921 (ravenscar_thread_target::wait): Special case wildcard requests.
12922
12923 2019-02-15 Tom Tromey <tromey@adacore.com>
12924
12925 * ravenscar-thread.c (base_ptid): Remove.
12926 (struct ravenscar_thread_target) <close>: New method.
12927 <m_base_ptid>: New member.
12928 <update_inferior_ptid, active_task, task_is_currently_active,
12929 runtime_initialized>: Declare methods.
12930 <ravenscar_thread_target>: Add constructor.
12931 (ravenscar_thread_target::task_is_currently_active)
12932 (ravenscar_thread_target::update_inferior_ptid)
12933 (ravenscar_runtime_initialized): Rename. Now methods.
12934 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12935 (ravenscar_thread_target::update_thread_list): Update.
12936 (ravenscar_thread_target::active_task): Now method.
12937 (ravenscar_thread_target::store_registers)
12938 (ravenscar_thread_target::prepare_to_store)
12939 (ravenscar_thread_target::prepare_to_store)
12940 (ravenscar_thread_target::mourn_inferior): Update.
12941 (ravenscar_inferior_created): Use "new" to create target.
12942 (ravenscar_thread_target::get_ada_task_ptid): Update.
12943 (_initialize_ravenscar): Don't initialize base_ptid.
12944 (ravenscar_ops): Remove global.
12945
12946 2019-02-15 Tom Tromey <tromey@adacore.com>
12947
12948 * target.h (push_target): Declare new overload.
12949 * target.c (push_target): New overload, taking an rvalue reference.
12950 * remote.c (remote_target::open_1): Use push_target overload.
12951 * corelow.c (core_target_open): Use push_target overload.
12952
12953 2019-02-15 Tom Tromey <tromey@adacore.com>
12954
12955 * ravenscar-thread.c (is_ravenscar_task)
12956 (ravenscar_task_is_currently_active): Return bool.
12957 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12958 (_initialize_ravenscar): Remove "(void)".
12959 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12960 Return bool.
12961
12962 2019-02-15 Tom Tromey <tromey@adacore.com>
12963
12964 * ravenscar-thread.c (ravenscar_runtime_initializer)
12965 (has_ravenscar_runtime, get_running_thread_id)
12966 (ravenscar_thread_target::resume): Fix indentation.
12967
12968 2019-02-15 Tom Tromey <tromey@adacore.com>
12969
12970 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12971 from ravenscar_arch_ops.
12972 (sparc_ravenscar_ops::fetch_registers)
12973 (sparc_ravenscar_ops::store_registers): Now methods.
12974 (sparc_ravenscar_prepare_to_store): Remove.
12975 (sparc_ravenscar_ops): Redefine.
12976 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12977 methods and destructor. Remove members.
12978 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12979 (ravenscar_thread_target::store_registers)
12980 (ravenscar_thread_target::prepare_to_store): Update.
12981 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12982 Remove.
12983 (struct ppc_ravenscar_powerpc_ops): Derive from
12984 ravenscar_arch_ops.
12985 (ppc_ravenscar_powerpc_ops::fetch_registers)
12986 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12987 (ppc_ravenscar_powerpc_ops): Redefine.
12988 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12989 (ppc_ravenscar_e500_ops::fetch_registers)
12990 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12991 (ppc_ravenscar_e500_ops): Redefine.
12992 * aarch64-ravenscar-thread.c
12993 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12994 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12995 (aarch64_ravenscar_fetch_registers)
12996 (aarch64_ravenscar_store_registers): Now methods.
12997 (aarch64_ravenscar_ops): Redefine.
12998
12999 2019-02-15 Tom Tromey <tromey@adacore.com>
13000
13001 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13002 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13003 (ravenscar_thread_target::stopped_by_watchpoint)
13004 (ravenscar_thread_target::stopped_data_address)
13005 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13006
13007 2019-02-15 Tom Tromey <tromey@adacore.com>
13008
13009 * ravenscar-thread.c: Fix some typos.
13010
13011 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13012 Tom Tromey <tromey@adacore.com>
13013
13014 * ada-lang.c (ada_exception_sal): Change addr_string to a
13015 std::string.
13016 (create_ada_exception_catchpoint): Update.
13017
13018 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13019 Tom Tromey <tromey@adacore.com>
13020
13021 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13022 (bp_location_ops): Remove.
13023 (base_breakpoint_allocate_location): Update.
13024 (free_bp_location): Update.
13025 * ada-lang.c (class ada_catchpoint_location)
13026 <ada_catchpoint_location>: Remove ops parameter.
13027 (ada_catchpoint_location_dtor): Remove.
13028 (ada_catchpoint_location_ops): Remove.
13029 (allocate_location_exception): Update.
13030 * breakpoint.h (struct bp_location_ops): Remove.
13031 (class bp_location) <bp_location>: Remove bp_location_ops
13032 parameter.
13033 <~bp_location>: Add destructor.
13034 <ops>: Remove.
13035
13036 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13037 Pedro Alves <palves@redhat.com>
13038
13039 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13040 'PATH_MAX'.
13041
13042 2019-02-14 David Michael <fedora.dm0@gmail.com>
13043 Samuel Thibault <samuel.thibault@gnu.org>
13044 Thomas Schwinge <thomas@codesourcery.com>
13045
13046 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13047 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13048
13049 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13050
13051 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13052 (check_empty): Use "const char *".
13053
13054 * gnu-nat.c (gnu_nat_target::detach): Instead of
13055 'detach_inferior (pid)' call
13056 'detach_inferior (find_inferior_pid (pid))'.
13057
13058 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13059 'nat/fork-inferior.o'.
13060 * gnu-nat.c: #include "nat/fork-inferior.h".
13061
13062 * gnu-nat.c (gnu_nat_target::detach): Instead of
13063 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13064 * gnu-nat.h: #include "inf-child.h".
13065 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13066 'i386_gnu_nat_target::fetch_registers'.
13067 (gnu_store_registers): Rename/move to
13068 'i386_gnu_nat_target::store_registers'.
13069
13070 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13071 * gnu-nat.h (mach_thread_info): New function.
13072 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13073
13074 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13075
13076 2019-02-14 Frederic Konrad <konrad@adacore.com>
13077
13078 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13079
13080 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13081
13082 * windows-nat.c (windows_add_thread): Add new parameter
13083 "main_thread_p" with default value set to false. Update
13084 function documentation as well as all callers.
13085 (windows_delete_thread): Likewise.
13086 (fake_create_process): Update call to windows_add_thread.
13087 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13088 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13089 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13090 call to windows_delete_thread.
13091
13092 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13093
13094 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13095
13096 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13097
13098 * symfile.c (find_separate_debug_file): Use canonical path of
13099 sysroot with child_path instead of gdb_sysroot if it is valid.
13100
13101 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13102
13103 * symfile.c (find_separate_debug_file): Use child_path to
13104 determine if an object file is under a sysroot.
13105
13106 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13107
13108 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13109 unittests/child-path-selftests.c.
13110 * common/pathstuff.c (child_path): New function.
13111 * common/pathstuff.h (child_path): New prototype.
13112 * unittests/child-path-selftests.c: New file.
13113
13114 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13115
13116 * symfile.c (find_separate_debug_file): Look for separate debug
13117 files in debug directories under the sysroot.
13118
13119 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13120
13121 * symtab.h (struct minimal_symbol data_p): New const method.
13122 (struct minimal_symbol text_p): Likewise.
13123 * symtab.c (output_source_filename): Use file name style
13124 to print file name.
13125 (print_symbol_info): Likewise.
13126 (print_msymbol_info): Use address style to print addresses.
13127 Use function name style to print executable text symbols.
13128 (expand_symtab_containing_pc): Use data_p.
13129 (find_pc_sect_compunit_symtab): Likewise.
13130
13131 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13132
13133 * breakpoint.c (describe_other_breakpoints): Use address style
13134 to print addresses.
13135 (say_where): Likewise.
13136
13137 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13138
13139 * ada-typeprint.c (print_func_type): Print function name
13140 style to print function name.
13141 * c-typeprint.c (c_print_type_1): Likewise.
13142
13143 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13144
13145 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13146 for execve.
13147
13148 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13149
13150 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13151 type_stack.
13152
13153 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13154
13155 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13156 TYPE_CODE_REF types.
13157
13158 2019-02-08 Jim Wilson <jimw@sifive.com>
13159
13160 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13161 (riscv_linux_fregset): New.
13162 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13163
13164 2019-02-07 Tom Tromey <tom@tromey.com>
13165
13166 * thread.c (thread_cancel_execution_command): Update.
13167 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13168 methods.
13169 (struct thread_fsm_ops): Remove.
13170 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13171 (thread_fsm_should_stop, thread_fsm_return_value)
13172 (thread_fsm_set_finished, thread_fsm_finished_p)
13173 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13174 Don't declare.
13175 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13176 * infrun.c (clear_proceed_status_thread)
13177 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13178 (print_stop_event): Update.
13179 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13180 Add constructor.
13181 (step_command_fsm_ops): Remove.
13182 (new_step_command_fsm): Remove.
13183 (step_1): Update.
13184 (step_command_fsm::should_stop): Rename from
13185 step_command_fsm_should_stop.
13186 (step_command_fsm::clean_up): Rename from
13187 step_command_fsm_clean_up.
13188 (step_command_fsm::do_async_reply_reason): Rename from
13189 step_command_fsm_async_reply_reason.
13190 (struct until_next_fsm): Inherit from thread_fsm. Add
13191 constructor.
13192 (until_next_fsm_ops): Remove.
13193 (new_until_next_fsm): Remove.
13194 (until_next_fsm::should_stop): Rename from
13195 until_next_fsm_should_stop.
13196 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13197 (until_next_fsm::do_async_reply_reason): Rename from
13198 until_next_fsm_async_reply_reason.
13199 (struct finish_command_fsm): Inherit from thread_fsm. Add
13200 constructor. Change type of breakpoint.
13201 (finish_command_fsm_ops): Remove.
13202 (new_finish_command_fsm): Remove.
13203 (finish_command_fsm::should_stop): Rename from
13204 finish_command_fsm_should_stop.
13205 (finish_command_fsm::clean_up): Rename from
13206 finish_command_fsm_clean_up.
13207 (finish_command_fsm::return_value): Rename from
13208 finish_command_fsm_return_value.
13209 (finish_command_fsm::do_async_reply_reason): Rename from
13210 finish_command_fsm_async_reply_reason.
13211 (finish_command): Update.
13212 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13213 Add constructor.
13214 (call_thread_fsm_ops): Remove.
13215 (call_thread_fsm::call_thread_fsm): Rename from
13216 new_call_thread_fsm.
13217 (call_thread_fsm::should_stop): Rename from
13218 call_thread_fsm_should_stop.
13219 (call_thread_fsm::should_notify_stop): Rename from
13220 call_thread_fsm_should_notify_stop.
13221 (run_inferior_call, call_function_by_hand_dummy): Update.
13222 * cli/cli-interp.c (should_print_stop_to_console): Update.
13223 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13224 Add constructor. Change type of location_breakpoint,
13225 caller_breakpoint.
13226 (until_break_fsm_ops): Remove.
13227 (new_until_break_fsm): Remove.
13228 (until_break_fsm::should_stop): Rename from
13229 until_break_fsm_should_stop.
13230 (until_break_fsm::clean_up): Rename from
13231 until_break_fsm_clean_up.
13232 (until_break_fsm::do_async_reply_reason): Rename from
13233 until_break_fsm_async_reply_reason.
13234 (until_break_command): Update.
13235 * thread-fsm.c: Remove.
13236 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13237
13238 2019-02-07 Tom Tromey <tom@tromey.com>
13239
13240 * yy-remap.h: Add include guard.
13241 * xtensa-tdep.h: Add include guard.
13242 * xcoffread.h: Rename include guard.
13243 * varobj-iter.h: Add include guard.
13244 * tui/tui.h: Rename include guard.
13245 * tui/tui-winsource.h: Rename include guard.
13246 * tui/tui-wingeneral.h: Rename include guard.
13247 * tui/tui-windata.h: Rename include guard.
13248 * tui/tui-win.h: Rename include guard.
13249 * tui/tui-stack.h: Rename include guard.
13250 * tui/tui-source.h: Rename include guard.
13251 * tui/tui-regs.h: Rename include guard.
13252 * tui/tui-out.h: Rename include guard.
13253 * tui/tui-layout.h: Rename include guard.
13254 * tui/tui-io.h: Rename include guard.
13255 * tui/tui-hooks.h: Rename include guard.
13256 * tui/tui-file.h: Rename include guard.
13257 * tui/tui-disasm.h: Rename include guard.
13258 * tui/tui-data.h: Rename include guard.
13259 * tui/tui-command.h: Rename include guard.
13260 * tic6x-tdep.h: Add include guard.
13261 * target/waitstatus.h: Rename include guard.
13262 * target/wait.h: Rename include guard.
13263 * target/target.h: Rename include guard.
13264 * target/resume.h: Rename include guard.
13265 * target-float.h: Rename include guard.
13266 * stabsread.h: Add include guard.
13267 * rs6000-tdep.h: Add include guard.
13268 * riscv-fbsd-tdep.h: Add include guard.
13269 * regformats/regdef.h: Rename include guard.
13270 * record.h: Rename include guard.
13271 * python/python.h: Rename include guard.
13272 * python/python-internal.h: Rename include guard.
13273 * python/py-stopevent.h: Rename include guard.
13274 * python/py-ref.h: Rename include guard.
13275 * python/py-record.h: Rename include guard.
13276 * python/py-record-full.h: Rename include guard.
13277 * python/py-record-btrace.h: Rename include guard.
13278 * python/py-instruction.h: Rename include guard.
13279 * python/py-events.h: Rename include guard.
13280 * python/py-event.h: Rename include guard.
13281 * procfs.h: Add include guard.
13282 * proc-utils.h: Add include guard.
13283 * p-lang.h: Add include guard.
13284 * or1k-tdep.h: Rename include guard.
13285 * observable.h: Rename include guard.
13286 * nto-tdep.h: Rename include guard.
13287 * nat/x86-linux.h: Rename include guard.
13288 * nat/x86-linux-dregs.h: Rename include guard.
13289 * nat/x86-gcc-cpuid.h: Add include guard.
13290 * nat/x86-dregs.h: Rename include guard.
13291 * nat/x86-cpuid.h: Rename include guard.
13292 * nat/ppc-linux.h: Rename include guard.
13293 * nat/mips-linux-watch.h: Rename include guard.
13294 * nat/linux-waitpid.h: Rename include guard.
13295 * nat/linux-ptrace.h: Rename include guard.
13296 * nat/linux-procfs.h: Rename include guard.
13297 * nat/linux-osdata.h: Rename include guard.
13298 * nat/linux-nat.h: Rename include guard.
13299 * nat/linux-namespaces.h: Rename include guard.
13300 * nat/linux-btrace.h: Rename include guard.
13301 * nat/glibc_thread_db.h: Rename include guard.
13302 * nat/gdb_thread_db.h: Rename include guard.
13303 * nat/gdb_ptrace.h: Rename include guard.
13304 * nat/fork-inferior.h: Rename include guard.
13305 * nat/amd64-linux-siginfo.h: Rename include guard.
13306 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13307 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13308 * nat/aarch64-linux.h: Rename include guard.
13309 * nat/aarch64-linux-hw-point.h: Rename include guard.
13310 * mn10300-tdep.h: Add include guard.
13311 * mips-linux-tdep.h: Add include guard.
13312 * mi/mi-parse.h: Rename include guard.
13313 * mi/mi-out.h: Rename include guard.
13314 * mi/mi-main.h: Rename include guard.
13315 * mi/mi-interp.h: Rename include guard.
13316 * mi/mi-getopt.h: Rename include guard.
13317 * mi/mi-console.h: Rename include guard.
13318 * mi/mi-common.h: Rename include guard.
13319 * mi/mi-cmds.h: Rename include guard.
13320 * mi/mi-cmd-break.h: Rename include guard.
13321 * m2-lang.h: Add include guard.
13322 * location.h: Rename include guard.
13323 * linux-record.h: Rename include guard.
13324 * linux-nat.h: Add include guard.
13325 * linux-fork.h: Add include guard.
13326 * i386-darwin-tdep.h: Rename include guard.
13327 * hppa-linux-offsets.h: Add include guard.
13328 * guile/guile.h: Rename include guard.
13329 * guile/guile-internal.h: Rename include guard.
13330 * gnu-nat.h: Rename include guard.
13331 * gdb-stabs.h: Rename include guard.
13332 * frv-tdep.h: Add include guard.
13333 * f-lang.h: Add include guard.
13334 * event-loop.h: Add include guard.
13335 * darwin-nat.h: Rename include guard.
13336 * cp-abi.h: Rename include guard.
13337 * config/sparc/nm-sol2.h: Rename include guard.
13338 * config/nm-nto.h: Rename include guard.
13339 * config/nm-linux.h: Add include guard.
13340 * config/i386/nm-i386gnu.h: Rename include guard.
13341 * config/djgpp/nl_types.h: Rename include guard.
13342 * config/djgpp/langinfo.h: Rename include guard.
13343 * compile/gcc-cp-plugin.h: Add include guard.
13344 * compile/gcc-c-plugin.h: Add include guard.
13345 * compile/compile.h: Rename include guard.
13346 * compile/compile-object-run.h: Rename include guard.
13347 * compile/compile-object-load.h: Rename include guard.
13348 * compile/compile-internal.h: Rename include guard.
13349 * compile/compile-cplus.h: Rename include guard.
13350 * compile/compile-c.h: Rename include guard.
13351 * common/xml-utils.h: Rename include guard.
13352 * common/x86-xstate.h: Rename include guard.
13353 * common/version.h: Rename include guard.
13354 * common/vec.h: Rename include guard.
13355 * common/tdesc.h: Rename include guard.
13356 * common/selftest.h: Rename include guard.
13357 * common/scoped_restore.h: Rename include guard.
13358 * common/scoped_mmap.h: Rename include guard.
13359 * common/scoped_fd.h: Rename include guard.
13360 * common/safe-iterator.h: Rename include guard.
13361 * common/run-time-clock.h: Rename include guard.
13362 * common/refcounted-object.h: Rename include guard.
13363 * common/queue.h: Rename include guard.
13364 * common/ptid.h: Rename include guard.
13365 * common/print-utils.h: Rename include guard.
13366 * common/preprocessor.h: Rename include guard.
13367 * common/pathstuff.h: Rename include guard.
13368 * common/observable.h: Rename include guard.
13369 * common/netstuff.h: Rename include guard.
13370 * common/job-control.h: Rename include guard.
13371 * common/host-defs.h: Rename include guard.
13372 * common/gdb_wait.h: Rename include guard.
13373 * common/gdb_vecs.h: Rename include guard.
13374 * common/gdb_unlinker.h: Rename include guard.
13375 * common/gdb_unique_ptr.h: Rename include guard.
13376 * common/gdb_tilde_expand.h: Rename include guard.
13377 * common/gdb_sys_time.h: Rename include guard.
13378 * common/gdb_string_view.h: Rename include guard.
13379 * common/gdb_splay_tree.h: Rename include guard.
13380 * common/gdb_setjmp.h: Rename include guard.
13381 * common/gdb_ref_ptr.h: Rename include guard.
13382 * common/gdb_optional.h: Rename include guard.
13383 * common/gdb_locale.h: Rename include guard.
13384 * common/gdb_assert.h: Rename include guard.
13385 * common/filtered-iterator.h: Rename include guard.
13386 * common/filestuff.h: Rename include guard.
13387 * common/fileio.h: Rename include guard.
13388 * common/environ.h: Rename include guard.
13389 * common/common-utils.h: Rename include guard.
13390 * common/common-types.h: Rename include guard.
13391 * common/common-regcache.h: Rename include guard.
13392 * common/common-inferior.h: Rename include guard.
13393 * common/common-gdbthread.h: Rename include guard.
13394 * common/common-exceptions.h: Rename include guard.
13395 * common/common-defs.h: Rename include guard.
13396 * common/common-debug.h: Rename include guard.
13397 * common/cleanups.h: Rename include guard.
13398 * common/buffer.h: Rename include guard.
13399 * common/btrace-common.h: Rename include guard.
13400 * common/break-common.h: Rename include guard.
13401 * cli/cli-utils.h: Rename include guard.
13402 * cli/cli-style.h: Rename include guard.
13403 * cli/cli-setshow.h: Rename include guard.
13404 * cli/cli-script.h: Rename include guard.
13405 * cli/cli-interp.h: Rename include guard.
13406 * cli/cli-decode.h: Rename include guard.
13407 * cli/cli-cmds.h: Rename include guard.
13408 * charset-list.h: Add include guard.
13409 * buildsym-legacy.h: Rename include guard.
13410 * bfin-tdep.h: Add include guard.
13411 * ax.h: Rename include guard.
13412 * arm-linux-tdep.h: Add include guard.
13413 * arm-fbsd-tdep.h: Add include guard.
13414 * arch/xtensa.h: Rename include guard.
13415 * arch/tic6x.h: Add include guard.
13416 * arch/i386.h: Add include guard.
13417 * arch/arm.h: Rename include guard.
13418 * arch/arm-linux.h: Rename include guard.
13419 * arch/arm-get-next-pcs.h: Rename include guard.
13420 * arch/amd64.h: Add include guard.
13421 * arch/aarch64-insn.h: Rename include guard.
13422 * arch-utils.h: Rename include guard.
13423 * annotate.h: Add include guard.
13424 * amd64-darwin-tdep.h: Rename include guard.
13425 * aarch64-linux-tdep.h: Add include guard.
13426 * aarch64-fbsd-tdep.h: Add include guard.
13427 * aarch32-linux-nat.h: Add include guard.
13428
13429 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13430
13431 * macrotab.c (macro_define_internal): New function that
13432 factorizes macro_define_object_internal and macro_define_function
13433 code.
13434 (macro_define_object_internal): Use macro_define_internal.
13435 (macro_define_function): Likewise.
13436
13437 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13438
13439 * macrocmd.c (extract_identifier): Return
13440 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13441 callers.
13442
13443 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13444
13445 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13446
13447 2019-02-05 Tom Tromey <tom@tromey.com>
13448
13449 * target.c (target_stack::unpush): Move assertion earlier.
13450
13451 2019-01-30 Tom Tromey <tom@tromey.com>
13452
13453 PR python/23615:
13454 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13455 (gdbpy_parse_and_eval): Likewise.
13456 * python/python-internal.h (gdbpy_allow_threads): New class.
13457
13458 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13459
13460 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13461 (aarch64_fbsd_fpregmap): Move earlier.
13462 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13463 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13464 instead of individual calls to trad_frame_set_reg_addr.
13465 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13466 earlier.
13467 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13468 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13469 instead of individual calls to trad_frame_set_reg_addr.
13470
13471 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13472
13473 * CONTRIBUTE: Replace contribution list with wiki link.
13474
13475 2019-01-25 Tom Tromey <tom@tromey.com>
13476
13477 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13478
13479 2019-01-25 Tom Tromey <tom@tromey.com>
13480
13481 * xtensa-linux-nat.c: Fix common/ includes.
13482 * xml-support.h: Fix common/ includes.
13483 * xml-support.c: Fix common/ includes.
13484 * x86-linux-nat.c: Fix common/ includes.
13485 * windows-nat.c: Fix common/ includes.
13486 * varobj.h: Fix common/ includes.
13487 * varobj.c: Fix common/ includes.
13488 * value.c: Fix common/ includes.
13489 * valops.c: Fix common/ includes.
13490 * utils.c: Fix common/ includes.
13491 * unittests/xml-utils-selftests.c: Fix common/ includes.
13492 * unittests/utils-selftests.c: Fix common/ includes.
13493 * unittests/unpack-selftests.c: Fix common/ includes.
13494 * unittests/tracepoint-selftests.c: Fix common/ includes.
13495 * unittests/style-selftests.c: Fix common/ includes.
13496 * unittests/string_view-selftests.c: Fix common/ includes.
13497 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13498 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13499 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13500 * unittests/rsp-low-selftests.c: Fix common/ includes.
13501 * unittests/parse-connection-spec-selftests.c: Fix common/
13502 includes.
13503 * unittests/optional-selftests.c: Fix common/ includes.
13504 * unittests/offset-type-selftests.c: Fix common/ includes.
13505 * unittests/observable-selftests.c: Fix common/ includes.
13506 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13507 * unittests/memrange-selftests.c: Fix common/ includes.
13508 * unittests/memory-map-selftests.c: Fix common/ includes.
13509 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13510 * unittests/function-view-selftests.c: Fix common/ includes.
13511 * unittests/environ-selftests.c: Fix common/ includes.
13512 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13513 * unittests/common-utils-selftests.c: Fix common/ includes.
13514 * unittests/cli-utils-selftests.c: Fix common/ includes.
13515 * unittests/array-view-selftests.c: Fix common/ includes.
13516 * ui-file.c: Fix common/ includes.
13517 * tui/tui-io.c: Fix common/ includes.
13518 * tracepoint.h: Fix common/ includes.
13519 * tracepoint.c: Fix common/ includes.
13520 * tracefile-tfile.c: Fix common/ includes.
13521 * top.h: Fix common/ includes.
13522 * top.c: Fix common/ includes.
13523 * thread.c: Fix common/ includes.
13524 * target/waitstatus.h: Fix common/ includes.
13525 * target/waitstatus.c: Fix common/ includes.
13526 * target.h: Fix common/ includes.
13527 * target.c: Fix common/ includes.
13528 * target-memory.c: Fix common/ includes.
13529 * target-descriptions.c: Fix common/ includes.
13530 * symtab.h: Fix common/ includes.
13531 * symfile.c: Fix common/ includes.
13532 * stap-probe.c: Fix common/ includes.
13533 * spu-linux-nat.c: Fix common/ includes.
13534 * sparc-nat.c: Fix common/ includes.
13535 * source.c: Fix common/ includes.
13536 * solib.c: Fix common/ includes.
13537 * solib-target.c: Fix common/ includes.
13538 * ser-unix.c: Fix common/ includes.
13539 * ser-tcp.c: Fix common/ includes.
13540 * ser-pipe.c: Fix common/ includes.
13541 * ser-base.c: Fix common/ includes.
13542 * selftest-arch.c: Fix common/ includes.
13543 * s12z-tdep.c: Fix common/ includes.
13544 * rust-exp.y: Fix common/ includes.
13545 * rs6000-aix-tdep.c: Fix common/ includes.
13546 * riscv-tdep.c: Fix common/ includes.
13547 * remote.c: Fix common/ includes.
13548 * remote-notif.h: Fix common/ includes.
13549 * remote-fileio.h: Fix common/ includes.
13550 * remote-fileio.c: Fix common/ includes.
13551 * regcache.h: Fix common/ includes.
13552 * regcache.c: Fix common/ includes.
13553 * record-btrace.c: Fix common/ includes.
13554 * python/python.c: Fix common/ includes.
13555 * python/py-type.c: Fix common/ includes.
13556 * python/py-inferior.c: Fix common/ includes.
13557 * progspace.h: Fix common/ includes.
13558 * producer.c: Fix common/ includes.
13559 * procfs.c: Fix common/ includes.
13560 * proc-api.c: Fix common/ includes.
13561 * printcmd.c: Fix common/ includes.
13562 * ppc-linux-nat.c: Fix common/ includes.
13563 * parser-defs.h: Fix common/ includes.
13564 * osdata.c: Fix common/ includes.
13565 * obsd-nat.c: Fix common/ includes.
13566 * nat/x86-linux.c: Fix common/ includes.
13567 * nat/x86-linux-dregs.c: Fix common/ includes.
13568 * nat/x86-dregs.h: Fix common/ includes.
13569 * nat/x86-dregs.c: Fix common/ includes.
13570 * nat/ppc-linux.c: Fix common/ includes.
13571 * nat/mips-linux-watch.h: Fix common/ includes.
13572 * nat/mips-linux-watch.c: Fix common/ includes.
13573 * nat/linux-waitpid.c: Fix common/ includes.
13574 * nat/linux-ptrace.h: Fix common/ includes.
13575 * nat/linux-ptrace.c: Fix common/ includes.
13576 * nat/linux-procfs.c: Fix common/ includes.
13577 * nat/linux-personality.c: Fix common/ includes.
13578 * nat/linux-osdata.c: Fix common/ includes.
13579 * nat/linux-namespaces.c: Fix common/ includes.
13580 * nat/linux-btrace.h: Fix common/ includes.
13581 * nat/linux-btrace.c: Fix common/ includes.
13582 * nat/fork-inferior.c: Fix common/ includes.
13583 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13584 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13585 * nat/aarch64-linux.c: Fix common/ includes.
13586 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13587 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13588 * namespace.h: Fix common/ includes.
13589 * mips-linux-tdep.c: Fix common/ includes.
13590 * minsyms.c: Fix common/ includes.
13591 * mi/mi-parse.h: Fix common/ includes.
13592 * mi/mi-main.c: Fix common/ includes.
13593 * mi/mi-cmd-env.c: Fix common/ includes.
13594 * memrange.h: Fix common/ includes.
13595 * memattr.c: Fix common/ includes.
13596 * maint.h: Fix common/ includes.
13597 * maint.c: Fix common/ includes.
13598 * main.c: Fix common/ includes.
13599 * machoread.c: Fix common/ includes.
13600 * location.c: Fix common/ includes.
13601 * linux-thread-db.c: Fix common/ includes.
13602 * linux-nat.c: Fix common/ includes.
13603 * linux-fork.c: Fix common/ includes.
13604 * inline-frame.c: Fix common/ includes.
13605 * infrun.c: Fix common/ includes.
13606 * inflow.c: Fix common/ includes.
13607 * inferior.h: Fix common/ includes.
13608 * inferior.c: Fix common/ includes.
13609 * infcmd.c: Fix common/ includes.
13610 * inf-ptrace.c: Fix common/ includes.
13611 * inf-child.c: Fix common/ includes.
13612 * ia64-linux-nat.c: Fix common/ includes.
13613 * i387-tdep.c: Fix common/ includes.
13614 * i386-tdep.c: Fix common/ includes.
13615 * i386-linux-tdep.c: Fix common/ includes.
13616 * i386-linux-nat.c: Fix common/ includes.
13617 * i386-go32-tdep.c: Fix common/ includes.
13618 * i386-fbsd-tdep.c: Fix common/ includes.
13619 * i386-fbsd-nat.c: Fix common/ includes.
13620 * guile/scm-type.c: Fix common/ includes.
13621 * guile/guile.c: Fix common/ includes.
13622 * go32-nat.c: Fix common/ includes.
13623 * gnu-nat.c: Fix common/ includes.
13624 * gdbthread.h: Fix common/ includes.
13625 * gdbarch-selftests.c: Fix common/ includes.
13626 * gdb_usleep.c: Fix common/ includes.
13627 * gdb_select.h: Fix common/ includes.
13628 * gdb_bfd.c: Fix common/ includes.
13629 * gcore.c: Fix common/ includes.
13630 * fork-child.c: Fix common/ includes.
13631 * findvar.c: Fix common/ includes.
13632 * fbsd-nat.c: Fix common/ includes.
13633 * event-top.c: Fix common/ includes.
13634 * event-loop.c: Fix common/ includes.
13635 * dwarf2read.c: Fix common/ includes.
13636 * dwarf2loc.c: Fix common/ includes.
13637 * dwarf2-frame.c: Fix common/ includes.
13638 * dwarf-index-cache.c: Fix common/ includes.
13639 * dtrace-probe.c: Fix common/ includes.
13640 * disasm-selftests.c: Fix common/ includes.
13641 * defs.h: Fix common/ includes.
13642 * csky-tdep.c: Fix common/ includes.
13643 * cp-valprint.c: Fix common/ includes.
13644 * cp-support.h: Fix common/ includes.
13645 * cp-support.c: Fix common/ includes.
13646 * corelow.c: Fix common/ includes.
13647 * completer.h: Fix common/ includes.
13648 * completer.c: Fix common/ includes.
13649 * compile/compile.c: Fix common/ includes.
13650 * compile/compile-loc2c.c: Fix common/ includes.
13651 * compile/compile-cplus-types.c: Fix common/ includes.
13652 * compile/compile-cplus-symbols.c: Fix common/ includes.
13653 * command.h: Fix common/ includes.
13654 * cli/cli-dump.c: Fix common/ includes.
13655 * cli/cli-cmds.c: Fix common/ includes.
13656 * charset.c: Fix common/ includes.
13657 * build-id.c: Fix common/ includes.
13658 * btrace.h: Fix common/ includes.
13659 * btrace.c: Fix common/ includes.
13660 * breakpoint.h: Fix common/ includes.
13661 * breakpoint.c: Fix common/ includes.
13662 * ax.h:
13663 (enum agent_op): Fix common/ includes.
13664 * ax-general.c (struct aop_map): Fix common/ includes.
13665 * ax-gdb.c: Fix common/ includes.
13666 * auxv.c: Fix common/ includes.
13667 * auto-load.c: Fix common/ includes.
13668 * arm-tdep.c: Fix common/ includes.
13669 * arch/riscv.c: Fix common/ includes.
13670 * arch/ppc-linux-common.c: Fix common/ includes.
13671 * arch/i386.c: Fix common/ includes.
13672 * arch/arm.c: Fix common/ includes.
13673 * arch/arm-linux.c: Fix common/ includes.
13674 * arch/arm-get-next-pcs.c: Fix common/ includes.
13675 * arch/amd64.c: Fix common/ includes.
13676 * arch/aarch64.c: Fix common/ includes.
13677 * arch/aarch64-insn.c: Fix common/ includes.
13678 * arch-utils.c: Fix common/ includes.
13679 * amd64-windows-tdep.c: Fix common/ includes.
13680 * amd64-tdep.c: Fix common/ includes.
13681 * amd64-sol2-tdep.c: Fix common/ includes.
13682 * amd64-obsd-tdep.c: Fix common/ includes.
13683 * amd64-nbsd-tdep.c: Fix common/ includes.
13684 * amd64-linux-tdep.c: Fix common/ includes.
13685 * amd64-linux-nat.c: Fix common/ includes.
13686 * amd64-fbsd-tdep.c: Fix common/ includes.
13687 * amd64-fbsd-nat.c: Fix common/ includes.
13688 * amd64-dicos-tdep.c: Fix common/ includes.
13689 * amd64-darwin-tdep.c: Fix common/ includes.
13690 * agent.c: Fix common/ includes.
13691 * ada-lang.h: Fix common/ includes.
13692 * ada-lang.c: Fix common/ includes.
13693 * aarch64-tdep.c: Fix common/ includes.
13694
13695 2019-01-25 Tom Tromey <tom@tromey.com>
13696
13697 * common/create-version.sh: Use common/version.h.
13698
13699 2019-01-24 Pedro Alves <palves@redhat.com>
13700
13701 * infrun.c (signal_stop, signal_print, signal_program)
13702 (signal_catch, signal_pass): Now arrays instead of pointers.
13703 (update_signals_program_target, do_target_resume)
13704 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13705 * linux-nat.c (linux_nat_target::pass_signals)
13706 (linux_nat_target::create_inferior, linux_nat_target::attach):
13707 Adjust.
13708 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13709 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13710 * procfs.c (procfs_target::pass_signals): Adjust.
13711 * record-full.c (record_full_target::resume): Adjust.
13712 * remote.c (remote_target::pass_signals)
13713 (remote_target::program_signals): Adjust.
13714 * target-debug.h (target_debug_print_signals): Now takes a
13715 gdb::array_view as parameter. Adjust.
13716 * target.h (target_ops) <pass_signals, program_signals>: Replace
13717 pointer and length parameters with gdb::array_view.
13718 (target_pass_signals, target_program_signals): Likewise.
13719 * target-delegates.c: Regenerate.
13720
13721 2019-01-24 Pedro Alves <palves@redhat.com>
13722
13723 * common/forward-scope-exit.h
13724 (forward_scope_exit::forward_scope_exit): Pass arguments to
13725 m_bind_function directly, instead of creating a std::bind and
13726 copying that.
13727
13728 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13729
13730 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13731 for static members.
13732 (pass_in_v_vfp_candidate): Likewise.
13733
13734 2019-01-23 Tom Tromey <tom@tromey.com>
13735 Pedro Alves <palves@redhat.com>
13736
13737 * regcache.c (class regcache_invalidator): Remove.
13738 (regcache::raw_write): Use make_scope_exit.
13739
13740 2019-01-23 Tom Tromey <tom@tromey.com>
13741
13742 * ui-out.h (class ui_out_emit_type): Update comment.
13743
13744 2019-01-23 Tom Tromey <tom@tromey.com>
13745
13746 * infrun.c (fetch_inferior_event): Update comment.
13747
13748 2019-01-23 Tom Tromey <tom@tromey.com>
13749 Pedro Alves <palves@redhat.com>
13750
13751 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13752 parameter.
13753 (fetch_inferior_event): Use SCOPE_EXIT.
13754
13755
13756 2019-01-23 Tom Tromey <tom@tromey.com>
13757 Pedro Alves <palves@redhat.com>
13758
13759 * infrun.c (disable_thread_events): Delete.
13760 (stop_all_threads): Use SCOPE_EXIT.
13761
13762 2019-01-23 Tom Tromey <tom@tromey.com>
13763 Pedro Alves <palves@redhat.com>
13764
13765 * symfile.c: Include forward-scope-exit.h.
13766 (clear_symtab_users_cleanup): Replace forward declaration with
13767 a FORWARD_SCOPE_EXIT.
13768 (syms_from_objfile_1): Use the forward_scope_exit and
13769 gdb::optional instead of cleanup_function.
13770 (reread_symbols): Use the forward_scope_exit instead of
13771 cleanup_function.
13772 (clear_symtab_users_cleanup): Remove function.
13773
13774 2019-01-23 Tom Tromey <tom@tromey.com>
13775 Pedro Alves <palves@redhat.com>
13776
13777 * linux-nat.c: Include scope-exit.h.
13778 (cleanup_target_stop): Remove.
13779 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13780 SCOPE_EXIT.
13781
13782 2019-01-23 Tom Tromey <tom@tromey.com>
13783 Pedro Alves <palves@redhat.com>
13784
13785 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13786 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13787
13788 2019-01-23 Tom Tromey <tom@tromey.com>
13789 Andrew Burgess <andrew.burgess@embecosm.com>
13790 Pedro Alves <palves@redhat.com>
13791
13792 * infrun.c (fetch_inferior_event): Use scope_exit.
13793 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13794 * top.c (execute_command): Use scope_exit.
13795 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13796 * utils.c (do_bpstat_clear_actions_cleanup)
13797 (make_bpstat_clear_actions_cleanup): Remove.
13798
13799 2019-01-23 Tom Tromey <tom@tromey.com>
13800 Pedro Alves <palves@redhat.com>
13801
13802 * infrun.c: Include "common/scope-exit.h"
13803 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13804 (wait_for_inferior): Use SCOPE_EXIT.
13805 (fetch_inferior_event): Use scope_exit.
13806
13807 2019-01-23 Tom Tromey <tom@tromey.com>
13808 Pedro Alves <palves@redhat.com>
13809
13810 * breakpoint.c (create_breakpoint): Remove cleanup.
13811
13812 2019-01-23 Tom Tromey <tom@tromey.com>
13813 Andrew Burgess <andrew.burgess@embecosm.com>
13814 Pedro Alves <palves@redhat.com>
13815
13816 2019-01-23 Pedro Alves <palves@redhat.com>
13817
13818 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13819
13820 2019-01-23 Pedro Alves <palves@redhat.com>
13821 Andrew Burgess <andrew.burgess@embecosm.com>
13822
13823 * gdbthread.h: Include "common/forward-scope-exit.h".
13824 (scoped_finish_thread_state): Redefine custom class in terms of
13825 forward_scope_exit.
13826
13827 2019-01-23 Pedro Alves <palves@redhat.com>
13828 Andrew Burgess <andrew.burgess@embecosm.com>
13829
13830 * common/forward-scope-exit.h: New file.
13831
13832 2019-01-23 Pedro Alves <palves@redhat.com>
13833 Andrew Burgess <andrew.burgess@embecosm.com>
13834 Tom Tromey <tom@tromey.com>
13835
13836 * common/scope-exit.h: New file.
13837
13838 2019-01-23 Pedro Alves <palves@redhat.com>
13839
13840 * common/preprocessor.h (ESC): Rename to ...
13841 (ESC_PARENS): ... this.
13842 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13843 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13844
13845 2019-01-23 Tom Tromey <tom@tromey.com>
13846
13847 * language.h (class scoped_switch_to_sym_language_if_auto):
13848 Initialize m_lang in both cases.
13849
13850 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13851
13852 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13853 with XCNEW.
13854
13855 2019-01-22 Tom Tromey <tom@tromey.com>
13856
13857 * corelow.c: Do not include sys/file.h.
13858
13859 2019-01-22 Tom Tromey <tom@tromey.com>
13860
13861 * tui/tui-wingeneral.h: Include gdb_curses.h.
13862
13863 2019-01-22 Tom Tromey <tom@tromey.com>
13864
13865 * source-cache.h (class source_cache) <get_source_lines,
13866 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13867
13868 2019-01-22 Tom Tromey <tom@tromey.com>
13869
13870 * remote-fileio.h (struct remote_target): Declare.
13871
13872 2019-01-22 Tom Tromey <tom@tromey.com>
13873
13874 * python/py-arch.c: Do not include py-ref.h.
13875 * python/py-bpevent.c: Do not include py-ref.h.
13876 * python/py-cmd.c: Do not include py-ref.h.
13877 * python/py-continueevent.c: Do not include py-ref.h.
13878 * python/py-event.h: Do not include py-ref.h.
13879 * python/py-evtregistry.c: Do not include py-ref.h.
13880 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13881 * python/py-frame.c: Do not include py-ref.h.
13882 * python/py-framefilter.c: Do not include py-ref.h.
13883 * python/py-function.c: Do not include py-ref.h.
13884 * python/py-infevents.c: Do not include py-ref.h.
13885 * python/py-linetable.c: Do not include py-ref.h.
13886 * python/py-objfile.c: Do not include py-ref.h.
13887 * python/py-param.c: Do not include py-ref.h.
13888 * python/py-prettyprint.c: Do not include py-ref.h.
13889 * python/py-progspace.c: Do not include py-ref.h.
13890 * python/py-symbol.c: Do not include py-ref.h.
13891 * python/py-symtab.c: Do not include py-ref.h.
13892 * python/py-type.c: Do not include py-ref.h.
13893 * python/py-unwind.c: Do not include py-ref.h.
13894 * python/py-utils.c: Do not include py-ref.h.
13895 * python/py-value.c: Do not include py-ref.h.
13896 * python/py-varobj.c: Do not include py-ref.h.
13897 * python/py-xmethods.c: Do not include py-ref.h.
13898 * python/python.c: Do not include py-ref.h.
13899 * varobj.c: Do not include py-ref.h.
13900
13901 2019-01-22 Tom Tromey <tom@tromey.com>
13902
13903 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13904 keyword for bcache.
13905
13906 2019-01-22 Tom Tromey <tom@tromey.com>
13907
13908 * compile/compile-cplus-types.c: Remove a comment by #include.
13909
13910 2019-01-22 Tom Tromey <tom@tromey.com>
13911
13912 * compile/gcc-c-plugin.h: Include compile-internal.h.
13913
13914 2019-01-22 Tom Tromey <tom@tromey.com>
13915
13916 * stabsread.c (EXTERN): Do not define.
13917 (symnum, next_symbol_text_func, processing_gcc_compilation)
13918 (within_function, global_sym_chain, global_stabs)
13919 (previous_stab_code, this_object_header_files)
13920 (n_this_object_header_files)
13921 (n_allocated_this_object_header_files): Define.
13922 * stabsread.h (EXTERN): Never define. Use "extern".
13923
13924 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13925
13926 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13927 history_value.
13928
13929 2019-01-21 Tom Tromey <tom@tromey.com>
13930
13931 * ui-out.c: Fix includes.
13932 * tui/tui-source.c: Fix includes.
13933 * target.c: Fix includes.
13934 * remote.c: Fix includes.
13935 * regcache.c: Fix includes.
13936 * python/py-block.c: Fix includes.
13937 * printcmd.c: Fix includes.
13938 * or1k-tdep.c: Fix includes.
13939 * mi/mi-main.c: Fix includes.
13940 * m32r-tdep.c: Fix includes.
13941 * csky-tdep.c: Fix includes.
13942 * compile/compile-cplus-types.c: Fix includes.
13943 * cli/cli-interp.c: Fix includes.
13944
13945 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13946
13947 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13948 for padding.
13949
13950 2019-01-16 Tom Tromey <tom@tromey.com>
13951
13952 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13953 earlier.
13954 (struct objfile) <msymbols_range>: Move from top level.
13955 <msymbols>: New method.
13956 (class objfile_msymbols): Remove.
13957 * symtab.c (default_collect_symbol_completion_matches_break_on):
13958 Update.
13959 * symmisc.c (dump_msymbols): Update.
13960 * stabsread.c (scan_file_globals): Update.
13961 * objc-lang.c (info_selectors_command, info_classes_command)
13962 (find_methods): Update.
13963 * minsyms.c (find_solib_trampoline_target): Update.
13964 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13965 * coffread.c (coff_symfile_read): Update.
13966 * ada-lang.c (ada_lookup_simple_minsym)
13967 (ada_collect_symbol_completion_matches): Update.
13968
13969 2019-01-16 Tom Tromey <tom@tromey.com>
13970
13971 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13972 type. Remove no-argument constructor.
13973 <iterator::operator++>: Simplify.
13974 <begin>: Update.
13975 <end>: Use minimal_symbol_count.
13976
13977 2019-01-16 Tom Tromey <tom@tromey.com>
13978
13979 * objfiles.h (struct objfile) <psymtabs>: New method.
13980 (class objfile_psymtabs): Remove.
13981 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13982 typedef.
13983 <range>: New method.
13984 (require_partial_symbols): Change return type.
13985 * psymtab.c (require_partial_symbols)
13986 (psym_expand_symtabs_matching): Update.
13987 * mdebugread.c (parse_partial_symbols): Update.
13988 * dbxread.c (dbx_end_psymtab): Update.
13989
13990 2019-01-15 Tom Tromey <tom@tromey.com>
13991
13992 * symtab.c (lookup_objfile_from_block)
13993 (lookup_symbol_in_objfile_symtabs)
13994 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13995 (find_line_symtab, info_sources_command)
13996 (default_collect_symbol_completion_matches_break_on)
13997 (make_source_files_completion_list): Update.
13998 * symmisc.c (print_objfile_statistics, dump_objfile)
13999 (maintenance_print_symbols, maintenance_info_symtabs)
14000 (maintenance_check_symtabs, maintenance_info_line_tables):
14001 Update.
14002 * source.c (select_source_symtab)
14003 (forget_cached_source_info_for_objfile): Update.
14004 * objfiles.h (class objfile_compunits): Remove.
14005 (struct objfile) <compunits_range>: New typedef.
14006 (compunits): New method.
14007 * objfiles.c (objfile_relocate1): Update.
14008 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14009 * maint.c (count_symtabs_and_blocks): Update.
14010 * linespec.c (iterate_over_all_matching_symtabs): Update.
14011 * cp-support.c (add_symbol_overload_list_qualified): Update.
14012 * coffread.c (coff_symtab_read): Update.
14013 * ada-lang.c (add_nonlocal_symbols)
14014 (ada_collect_symbol_completion_matches)
14015 (ada_add_global_exceptions): Update.
14016
14017 2019-01-15 Tom Tromey <tom@tromey.com>
14018
14019 * progspace.h (program_space) <objfiles_safe_range>: New
14020 typedef.
14021 <objfiles_safe>: New method.
14022 * objfiles.h (class all_objfiles_safe): Remove.
14023 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14024 * jit.c (jit_inferior_exit_hook): Update.
14025
14026 2019-01-17 Tom Tromey <tom@tromey.com>
14027
14028 * progspace.h (program_space) <objfiles_range>: New typedef.
14029 <objfiles>: New method.
14030 <objfiles_head>: Rename from objfiles.
14031 (object_files): Update.
14032 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14033 * guile/scm-pretty-print.c
14034 (ppscm_find_pretty_printer_from_objfiles): Update.
14035 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14036 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14037 Update.
14038 * python/py-progspace.c (pspy_get_objfiles): Update.
14039 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14040 Update.
14041 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14042 (objfpy_lookup_objfile_by_build_id): Update.
14043 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14044 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14045 Update.
14046 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14047 (expand_symtab_containing_pc, lookup_objfile_from_block)
14048 (lookup_static_symbol, basic_lookup_transparent_type)
14049 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14050 (find_line_symtab, info_sources_command)
14051 (default_collect_symbol_completion_matches_break_on)
14052 (make_source_files_completion_list, find_main_name): Update.
14053 * symmisc.c (print_symbol_bcache_statistics)
14054 (print_objfile_statistics, maintenance_print_symbols)
14055 (maintenance_print_msymbols, maintenance_print_objfiles)
14056 (maintenance_info_symtabs, maintenance_check_symtabs)
14057 (maintenance_expand_symtabs, maintenance_info_line_tables):
14058 Update.
14059 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14060 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14061 (map_overlay_command, unmap_overlay_command)
14062 (simple_overlay_update, expand_symtabs_matching)
14063 (map_symbol_filenames): Update.
14064 * symfile-debug.c (set_debug_symfile): Update.
14065 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14066 Update.
14067 * source.c (select_source_symtab, forget_cached_source_info):
14068 Update.
14069 * solib.c (solib_read_symbols): Update.
14070 * solib-spu.c (append_ocl_sos): Update.
14071 * psymtab.c (maintenance_print_psymbols)
14072 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14073 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14074 * printcmd.c (info_symbol_command): Update.
14075 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14076 Update.
14077 * objfiles.h (class all_objfiles): Remove.
14078 * objfiles.c (have_partial_symbols, have_full_symbols)
14079 (have_minimal_symbols, qsort_cmp, update_section_map)
14080 (shared_objfile_contains_address_p)
14081 (default_iterate_over_objfiles_in_search_order): Update.
14082 * objc-lang.c (info_selectors_command, info_classes_command)
14083 (find_methods): Update.
14084 * minsyms.c (find_solib_trampoline_target): Update.
14085 * maint.c (maintenance_info_sections)
14086 (maintenance_translate_address, count_symtabs_and_blocks):
14087 Update.
14088 * main.c (captured_main_1): Update.
14089 * linux-thread-db.c (try_thread_db_load_from_pdir)
14090 (has_libpthread): Update.
14091 * linespec.c (iterate_over_all_matching_symtabs)
14092 (search_minsyms_for_name): Update.
14093 * jit.c (jit_find_objf_with_entry_addr): Update.
14094 * hppa-tdep.c (find_unwind_entry)
14095 (hppa_lookup_stub_minimal_symbol): Update.
14096 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14097 Update.
14098 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14099 (elf_gnu_ifunc_resolve_by_got): Update.
14100 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14101 * dwarf-index-write.c (save_gdb_index_command): Update.
14102 * cp-support.c (add_symbol_overload_list_qualified): Update.
14103 * breakpoint.c (create_overlay_event_breakpoint)
14104 (create_longjmp_master_breakpoint)
14105 (create_std_terminate_master_breakpoint)
14106 (create_exception_master_breakpoint): Update.
14107 * blockframe.c (find_pc_partial_function): Update.
14108 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14109 (ada_collect_symbol_completion_matches)
14110 (ada_add_global_exceptions): Update.
14111
14112 2019-01-17 Tom Tromey <tom@tromey.com>
14113
14114 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14115 declare VEC.
14116 (solib_target_parse_libraries): Change return type.
14117 (library_list_start_segment, library_list_start_section)
14118 (library_list_end_library, library_list_start_library); Update.
14119 (solib_target_free_library_list): Remove.
14120 (solib_target_parse_libraries): Remove cleanup. Change return
14121 type.
14122 (solib_target_current_sos): Update.
14123
14124 2019-01-17 Tom Tromey <tromey@bapiya>
14125
14126 * valprint.c: Replace "the the" with "the".
14127 * symtab.c: Replace "the the" with "the".
14128 * solib.c: Replace "the the" with "the".
14129 * solib-dsbt.c: Replace "the the" with "the".
14130 * linespec.c: Replace "the the" with "the".
14131 * dwarf2loc.h: Replace "the the" with "the".
14132 * amd64-windows-tdep.c: Replace "the the" with "the".
14133 * aarch64-tdep.c: Replace "the the" with "the".
14134
14135 2019-01-16 Keith Seitz <keiths@redhat.com>
14136
14137 PR gdb/23773
14138 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14139 <builder>: Rename to ..
14140 <m_builder>: ... this and make private.
14141 (dwarf2_cu::get_builder): New method. Change all users of
14142 `builder' to use this method.
14143 (dwarf2_start_symtab): Move to ...
14144 (dwarf2_cu::start_symtab): ... here. Update all callers
14145 (setup_type_unit_groups): Move to ...
14146 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14147 callers.
14148 (dwarf2_cu::reset_builder): New method.
14149 (process_full_compunit, process_full_type_unit): Use
14150 dwarf2_cu::reset_builder.
14151 (follow_die_offset): Record the ancestor CU if it is different
14152 from the followed DIE's CU.
14153 (follow_die_sig_1): Likewise.
14154
14155 2019-01-15 Tom Tromey <tom@tromey.com>
14156
14157 * remote.c (class remote_state) <buf>: Now a char_vector.
14158 <buf_size>: Remove.
14159 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14160 parameter.
14161 (remote_target::getpkt_or_notif_sane_1)
14162 (remote_target::getpkt_sane)
14163 (remote_target::getpkt_or_notif_sane): Likewise.
14164 (class remote_target) <putpkt>: New overload.
14165 (remote_target::read_frame): Change type of "buf_p". Remove
14166 sizeof_p parameter.
14167 (packet_ok): New overload.
14168 (packet_check_result): New overload.
14169 Update all uses.
14170
14171 2019-01-14 Tom Tromey <tom@tromey.com>
14172
14173 * remote-notif.c (handle_notification, remote_notif_ack)
14174 (remote_notif_parse): Make "buf" const.
14175 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14176 const.
14177 (remote_notif_parse, remote_notif_ack, handle_notification):
14178 Likewise.
14179 * remote.c (remote_notif_stop_parse): Make "buf" const.
14180 (remote_target::remote_parse_stop_reply): Make "buf" const.
14181 (remote_notif_stop_ack): Make "buf" const.
14182
14183 2019-01-14 Tom Tromey <tom@tromey.com>
14184
14185 * remote.c (remote_console_output): Make parameter const.
14186
14187 2019-01-14 Tom Tromey <tom@tromey.com>
14188
14189 * target-debug.h (target_debug_print_signals): Constify.
14190 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14191 * procfs.c (procfs_target::pass_signals): Update.
14192 * linux-nat.c (linux_nat_target::pass_signals): Update.
14193 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14194 * target-delegates.c: Rebuild.
14195 * remote.c (remote_target::program_signals): Update.
14196 (remote_target::pass_signals): Update.
14197 * target.c (target_pass_signals): Constify argument.
14198 (target_program_signals): Likewise.
14199 * target.h (struct target_ops) <pass_signals, program_signals>:
14200 Constify argument.
14201 (target_pass_signals, target_program_signals): Constify argument.
14202
14203 2019-01-14 Tom Tromey <tom@tromey.com>
14204
14205 PR tui/28819:
14206 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14207
14208 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14209
14210 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14211 field.
14212 * rs6000-tdep.c: Include reggroups.h.
14213 (IS_V_ALIAS_PSEUDOREG): Define.
14214 (rs6000_register_name): Return names for the "vX" aliases.
14215 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14216 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14217 aliases. Call default_register_reggroup_p for all other
14218 pseudo-registers.
14219 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14220 New functions.
14221 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14222 Handle "vX" aliases.
14223 (v_alias_pseudo_register_collect): New function.
14224 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14225 (rs6000_gdbarch_init): Initialize "vX" aliases as
14226 pseudo-registers. Restore registration of
14227 rs6000_pseudo_register_reggroup_p with
14228 set_tdesc_pseudo_register_reggroup_p.
14229
14230 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14231
14232 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14233 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14234 set_gdbarch_num_pseudo_regs.
14235
14236 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14237
14238 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14239 Remove arg prefixname, add do_set and do_show.
14240 Add member functions set_list and show_list.
14241 * cli/cli-style.c (class cli_style_option): Update accordingly.
14242 (style_set_list): Move to file scope.
14243 (style_show_list): Likewise.
14244 (set_style): Call help_list.
14245 (show_style): Call cmd_show_list.
14246 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14247 Update to use the new macro.
14248
14249 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14250
14251 * ada-lang.c (_initialize_ada_language): Expand the help text
14252 for the "catch exception" command.
14253
14254 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14255
14256 * symtab.c (matching_obj_sections): Initialize obj,
14257 declare it closer to its usage.
14258
14259 2019-01-10 Tom Tromey <tom@tromey.com>
14260
14261 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14262 (basic_inf_threads_range): Remove.
14263 (inf_threads_range, inf_non_exited_threads_range)
14264 (safe_inf_threads_range): Use next_adapter.
14265
14266 2019-01-10 Keith Seitz <keiths@redhat.com>
14267
14268 PR gdb/23712
14269 PR symtab/23010
14270 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14271 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14272
14273 2019-01-10 Keith Seitz <keiths@redhat.com>
14274
14275 PR gdb/23712
14276 PR symtab/23010
14277 * dictionary.c (pending_to_vector): Remove.
14278 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14279 Remove _1 suffix, replacing functions of the same name. Update
14280 all callers.
14281 (dict_create_hashed, dict_create_hashed_expandable)
14282 (dict_create_linear, dict_create_linear_expandable, dict_free)
14283 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14284 Make functions static.
14285
14286 2019-01-10 Keith Seitz <keiths@redhat.com>
14287
14288 PR gdb/23712
14289 PR symtab/23010
14290 * dictionary.h (struct dictionary): Replace declaration with
14291 multidictionary.
14292 (dict_create_hashed, dict_create_hashed_expandable)
14293 (dict_create_linear, dict_create_linear_expandable)
14294 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14295 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14296 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14297 taking multidictionary argument.
14298 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14299 * block.h (struct block) <dict>: Change to multidictionary
14300 and rename `multidict'.
14301 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14302 symmisc.c: Update all dictionary references to multidictionary.
14303
14304 2019-01-10 Keith Seitz <keiths@redhat.com>
14305
14306 PR gdb/23712
14307 PR symtab/23010
14308 * dictionary.c: Include unordered_map.
14309 (pending_to_vector): New function.
14310 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14311 Rewrite the non-"_1" functions to take vector instead
14312 of linked list.
14313 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14314 "new" _1 versions of the same name.
14315 (multidictionary): Define.
14316 (std::hash<enum language): New definition.
14317 (collate_pending_symbols_by_language, mdict_create_hashed)
14318 (mdict_create_hashed_expandable, mdict_create_linear)
14319 (mdict_create_linear_expandable, mdict_free)
14320 (find_language_dictionary, create_new_language_dictionary)
14321 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14322 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14323 (mdict_size, mdict_empty): New functions.
14324 * dictionary.h (mdict_iterator): Define.
14325
14326 2019-01-10 Pedro Alves <palves@redhat.com>
14327
14328 * breakpoint.c (read_uploaded_action)
14329 (create_tracepoint_from_upload): Adjust to use
14330 gdb::unique_xmalloc_ptr.
14331 * ctf.c (ctf_write_uploaded_tp):
14332 (SET_ARRAY_FIELD): Use emplace_back.
14333 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14334 * tracefile-tfile.c (tfile_write_uploaded_tp):
14335 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14336 gdb::unique_xmalloc_ptr.
14337 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14338 at_string, cond_string, cmd_strings>: Replace char pointers
14339 with gdb::unique_xmalloc_ptr.
14340
14341 2019-01-10 Pedro Alves <palves@redhat.com>
14342
14343 * solib-target.c (library_list_start_library): Don't xstrdup name.
14344
14345 2019-01-10 Pedro Alves <palves@redhat.com>
14346
14347 * mdebugread.c (parse_partial_symbols): Use
14348 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14349
14350 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14351
14352 * linux-fork.c (scoped_switch_fork_info)
14353 <~scoped_switch_fork_info>: Fix incorrect variable name.
14354
14355 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14356
14357 * linux-fork.c (scoped_switch_fork_info)
14358 <scoped_switch_fork_info>: Make explicit.
14359 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14360
14361 2019-01-10 Tom Tromey <tom@tromey.com>
14362
14363 * objfiles.h (objfile::reset_psymtabs): Update.
14364 * objfiles.c (objfile::objfile): Update.
14365 * psymtab.h (psymtab_storage::obstack): Update.
14366 (psymtab_storage::m_obstack): Use gdb::optional.
14367 (class psymtab_storage): Update comment. Remove objfile
14368 parameter.
14369 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14370
14371 2019-01-10 Tom Tromey <tom@tromey.com>
14372
14373 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14374 <free_psymtabs>: Now private.
14375 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14376 (allocate_psymtab): Use new method.
14377
14378 2019-01-10 Tom Tromey <tom@tromey.com>
14379
14380 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14381 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14382 * mdebugread.c (parse_partial_symbols): Use
14383 allocate_dependencies.
14384 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14385 allocate_dependencies.
14386 (process_psymtab_comp_unit_reader)
14387 (build_type_psymtab_dependencies): Likewise.
14388 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14389
14390 2019-01-10 Tom Tromey <tom@tromey.com>
14391
14392 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14393 PSYMBOL_SET_LANGUAGE.
14394 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14395
14396 2019-01-10 Tom Tromey <tom@tromey.com>
14397
14398 * psymtab.h (psymtab_storage::obstack): New method.
14399 <m_obstack>: Rename from obstack; now private.
14400 * psymtab.c (psymtab_storage): Update.
14401 * dwarf2read.c (create_addrmap_from_index)
14402 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14403 Update.
14404
14405 2019-01-10 Tom Tromey <tom@tromey.com>
14406
14407 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14408 * objfiles.h (objfile::reset_psymtabs): New method.
14409
14410 2019-01-10 Tom Tromey <tom@tromey.com>
14411
14412 * symmisc.c (print_symbol_bcache_statistics): Update.
14413 (print_objfile_statistics): Update.
14414 * symfile.c (reread_symbols): Update.
14415 * psymtab.h (class psymtab_storage): New.
14416 * psymtab.c (psymtab_storage): New constructor.
14417 (~psymtab_storage): New destructor.
14418 (require_partial_symbols): Update.
14419 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14420 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14421 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14422 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14423 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14424 (start_psymtab_common, end_psymtab_common)
14425 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14426 (allocate_psymtab): Update.
14427 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14428 Update.
14429 (dump_psymtab_addrmap, maintenance_print_psymbols)
14430 (maintenance_check_psymtabs): Update.
14431 (class objfile_psymtabs): Move to objfiles.h.
14432 * psympriv.h (discard_psymtab): Now inline.
14433 (psymtab_discarder::psymtab_discarder): Update.
14434 (psymtab_discarder::~psymtab_discarder): Update.
14435 (ALL_OBJFILE_PSYMTABS): Rewrite.
14436 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14437 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14438 Remove fields.
14439 <partial_symtabs>: New field.
14440 (class objfile_psymtabs): Move from psymtab.h. Update.
14441 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14442 psymbol_cache.
14443 (objfile::~objfile): Don't destroy psymbol_cache.
14444 * mdebugread.c (parse_partial_symbols): Update.
14445 * dwarf2read.c (create_addrmap_from_index)
14446 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14447 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14448 (add_partial_subprogram, dwarf2_ranges_read): Update.
14449 * dwarf-index-write.c (write_address_map)
14450 (write_one_signatured_type, recursively_write_psymbols)
14451 (class debug_names, class debug_names, write_psymtabs_to_index):
14452 Update.
14453
14454 2019-01-10 Tom Tromey <tom@tromey.com>
14455
14456 * symtab.h (SYMBOL_SET_NAMES): Update.
14457 (symbol_set_names): Update.
14458 (MSYMBOL_SET_NAMES): Update.
14459 * symtab.c (symbol_set_names): Change argument to be an
14460 objfile_per_bfd_storage.
14461 * psymtab.c (add_psymbol_to_bcache): Update.
14462 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14463
14464 2019-01-10 Tom Tromey <tom@tromey.com>
14465
14466 * symtab.c (create_demangled_names_hash): Change argument to be an
14467 objfile_per_bfd_storage.
14468 (symbol_set_names): Update.
14469
14470 2019-01-10 Tom Tromey <tom@tromey.com>
14471
14472 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14473 init_psymbol_list.
14474 * psymtab.c (init_psymbol_list): Do nothing if already called.
14475 * psympriv.h (init_psymbol_list): Add comment.
14476 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14477 init_psymbol_list.
14478 * dbxread.c (dbx_symfile_read): Unconditionally call
14479 init_psymbol_list.
14480
14481 2019-01-10 Tom Tromey <tom@tromey.com>
14482
14483 * xcoffread.c (scan_xcoff_symtab): Update.
14484 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14485 "where".
14486 * mdebugread.c (parse_partial_symbols)
14487 (handle_psymbol_enumerators): Update.
14488 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14489 * dbxread.c (read_dbx_symtab): Update.
14490 * psympriv.h (psymbol_placement): New enum.
14491 (add_psymbol_to_list): Update.
14492
14493 2019-01-10 Tom Tromey <tom@tromey.com>
14494
14495 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14496 static_psymbols parameters.
14497 (scan_xcoff_symtab): Update.
14498 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14499 static_psymbols parameters.
14500 * psympriv.h (start_psymtab_common): Update.
14501 * mdebugread.c (parse_partial_symbols): Update.
14502 * dwarf2read.c (create_partial_symtab): Update.
14503 * dbxread.c (read_dbx_symtab): Update.
14504 (start_psymtab): Remove global_psymbols and static_psymbols
14505 parameters.
14506
14507 2019-01-10 Tom Tromey <tom@tromey.com>
14508
14509 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14510 * psymtab.c (allocate_psymtab): Add comment.
14511 * psympriv.h (allocate_psymtab): Add comment.
14512 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14513 initializations.
14514 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14515
14516 2019-01-10 Tom Tromey <tom@tromey.com>
14517
14518 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14519 Don't declare.
14520 * mipsread.c: Include mdebugread.h.
14521 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14522 Declare.
14523 * elfread.c: Include mdebugread.h.
14524
14525 2019-01-09 Tom Tromey <tom@tromey.com>
14526
14527 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14528 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14529 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14530 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14531 (psym_lookup_symbol, psym_find_last_source_symtab)
14532 (psym_forget_cached_source_info, psym_print_stats)
14533 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14534 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14535 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14536 (psym_find_compunit_symtab_by_address)
14537 (maintenance_print_psymbols, maintenance_info_psymtabs)
14538 (maintenance_check_psymtabs): Use ranged for.
14539 * psymtab.h (class objfile_psymtabs): New.
14540 (require_partial_symbols): Return objfile_psymtabs.
14541 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14542
14543 2019-01-09 Tom Tromey <tom@tromey.com>
14544
14545 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14546 (find_pc_mapped_section, list_overlays_command)
14547 (map_overlay_command, unmap_overlay_command)
14548 (simple_overlay_update): Use all_objfiles.
14549 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14550 * printcmd.c (info_symbol_command): Use all_objfiles.
14551 * objfiles.h (ALL_OBJSECTIONS): Remove.
14552 * maint.c (maintenance_translate_address): Use all_objfiles.
14553 * gcore.c (gcore_create_callback): Use all_objfiles.
14554 (objfile_find_memory_regions): Likewise.
14555
14556 2019-01-09 Tom Tromey <tom@tromey.com>
14557
14558 * symtab.c (find_line_symtab, info_sources_command)
14559 (make_source_files_completion_list): Use objfile_compunits.
14560 * source.c (select_source_symtab): Use objfile_compunits.
14561 * objfiles.h (struct objfile): Update comment.
14562 (ALL_OBJFILES): Remove.
14563 (ALL_FILETABS): Remove.
14564 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14565 objfile_compunits.
14566
14567 2019-01-09 Tom Tromey <tom@tromey.com>
14568
14569 * symmisc.c (print_objfile_statistics, dump_objfile)
14570 (maintenance_print_symbols): Use compunit_filetabs.
14571 * source.c (forget_cached_source_info_for_objfile): Use
14572 compunit_filetabs.
14573 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14574 (ALL_FILETABS): Use compunit_filetabs.
14575 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14576 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14577
14578 2019-01-09 Tom Tromey <tom@tromey.com>
14579
14580 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14581 (compunit_filetabs): New.
14582 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14583 compunit_filetabs.
14584 (info_sources_command, make_source_files_completion_list): Remove
14585 declaration.
14586 * symmisc.c (print_objfile_statistics, dump_objfile)
14587 (maintenance_print_symbols): Remove declaration.
14588 (maintenance_info_symtabs): Use compunit_filetabs.
14589 (maintenance_info_line_tables): Likewise.
14590 * source.c (select_source_symtab): Change local variable name.
14591 (forget_cached_source_info_for_objfile): Remove declaration.
14592 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14593 * objfiles.c (objfile_relocate1): Remove declaration.
14594 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14595 declaration.
14596 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14597 * coffread.c (coff_symtab_read): Remove declaration.
14598 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14599 compunit_filetabs.
14600
14601 2019-01-09 Tom Tromey <tom@tromey.com>
14602
14603 * symtab.c (lookup_objfile_from_block)
14604 (find_pc_sect_compunit_symtab, search_symbols)
14605 (default_collect_symbol_completion_matches_break_on): Use
14606 objfile_compunits.
14607 * objfiles.h (ALL_COMPUNITS): Remove.
14608 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14609 * cp-support.c (add_symbol_overload_list_qualified): Use
14610 objfile_compunits.
14611 * ada-lang.c (ada_collect_symbol_completion_matches)
14612 (ada_add_global_exceptions): Use objfile_compunits.
14613
14614 2019-01-09 Tom Tromey <tom@tromey.com>
14615
14616 * source.c (select_source_symtab)
14617 (forget_cached_source_info_for_objfile): Remove declaration.
14618 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14619 declaration.
14620 * maint.c (count_symtabs_and_blocks): Remove declaration.
14621 * cp-support.c (add_symbol_overload_list_qualified): Remove
14622 declaration.
14623 * coffread.c (coff_symtab_read): Remove declaration.
14624 * symtab.c (lookup_symbol_in_objfile_symtabs)
14625 (basic_lookup_transparent_type_1): Use objfile_compunits.
14626 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14627 (info_sources_command, search_symbols)
14628 (default_collect_symbol_completion_matches_break_on)
14629 (make_source_files_completion_list): Remove declaration.
14630 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14631 (ada_collect_symbol_completion_matches)
14632 (ada_add_global_exceptions): Remove declaration.
14633 * linespec.c (iterate_over_all_matching_symtabs): Use
14634 objfile_compunits.
14635 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14636 (class objfile_compunits): New.
14637 (ALL_COMPUNITS): Use objfile_compunits.
14638 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14639 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14640 objfile_compunits.
14641 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14642
14643 2019-01-09 Tom Tromey <tom@tromey.com>
14644
14645 * symtab.c (search_symbols)
14646 (default_collect_symbol_completion_matches_break_on): Use
14647 objfile_msymbols.
14648 * ada-lang.c (ada_lookup_simple_minsym)
14649 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14650 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14651 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14652 objfile_msymbols.
14653 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14654 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14655 * objc-lang.c (find_methods): Use objfile_msymbols.
14656 (info_selectors_command, info_classes_command): Likewise.
14657 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14658 * objfiles.h (class objfile_msymbols): New.
14659 (ALL_OBJFILE_MSYMBOLS): Remove.
14660 (ALL_MSYMBOLS): Remove.
14661
14662 2019-01-09 Tom Tromey <tom@tromey.com>
14663
14664 * common/next-iterator.h (next_adapter): Add Iterator template
14665 parameter.
14666 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14667 (class all_objfiles_safe): New.
14668 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14669 * objfiles.c (put_objfile_before): Update comment.
14670 (add_separate_debug_objfile): Likewise.
14671 (free_all_objfiles): Use all_objfiles_safe.
14672 (objfile_purge_solibs): Likewise.
14673
14674 2019-01-09 Tom Tromey <tom@tromey.com>
14675
14676 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14677 (expand_symtab_containing_pc, lookup_static_symbol)
14678 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14679 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14680 all_objfiles.
14681 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14682 * breakpoint.c (create_overlay_event_breakpoint)
14683 (create_longjmp_master_breakpoint)
14684 (create_std_terminate_master_breakpoint)
14685 (create_exception_master_breakpoint): Use all_objfiles.
14686 * linux-thread-db.c (try_thread_db_load_from_pdir)
14687 (has_libpthread): Use all_objfiles.
14688 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14689 * linespec.c (iterate_over_all_matching_symtabs)
14690 (search_minsyms_for_name): Use all_objfiles.
14691 * maint.c (maintenance_info_sections): Use all_objfiles.
14692 * main.c (captured_main_1): Use all_objfiles.
14693 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14694 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14695 * guile/scm-pretty-print.c
14696 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14697 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14698 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14699 (maintenance_print_msymbols): Use all_objfiles.
14700 * source.c (select_source_symtab): Use all_objfiles.
14701 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14702 * symfile.c (remove_symbol_file_command)
14703 (expand_symtabs_matching, map_symbol_filenames): Use
14704 all_objfiles.
14705 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14706 all_objfiles.
14707 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14708 * objc-lang.c (find_methods): Use all_objfiles.
14709 * objfiles.c (have_partial_symbols, have_full_symbols)
14710 (have_minimal_symbols, qsort_cmp)
14711 (default_iterate_over_objfiles_in_search_order): Use
14712 all_objfiles.
14713 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14714 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14715 (maintenance_check_psymtabs): Use all_objfiles.
14716 (ALL_PSYMTABS): Remove.
14717 * compile/compile-object-run.c (do_module_cleanup): Use
14718 all_objfiles.
14719 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14720 * cp-support.c (add_symbol_overload_list_qualified): Use
14721 all_objfiles.
14722 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14723 Use all_objfiles.
14724 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14725 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14726 all_objfiles.
14727 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14728 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14729 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14730 Uses all_objfiles.
14731 * solib.c (solib_read_symbols): Use all_objfiles
14732
14733 2019-01-09 Tom Tromey <tom@tromey.com>
14734
14735 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14736 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14737 all_objfiles.
14738 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14739 * symmisc.c (print_symbol_bcache_statistics)
14740 (print_objfile_statistics, maintenance_print_objfiles)
14741 (maintenance_info_symtabs, maintenance_check_symtabs)
14742 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14743 all_objfiles.
14744 * source.c (forget_cached_source_info): Use all_objfiles.
14745 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14746 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14747 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14748 * objfiles.c (update_section_map): Use all_objfiles.
14749 (shared_objfile_contains_address_p): Likewise.
14750 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14751 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14752
14753 2019-01-09 Tom Tromey <tom@tromey.com>
14754
14755 * common/next-iterator.h: New file.
14756 * objfiles.h (class all_objfiles): New.
14757 (struct objfile_iterator): New.
14758
14759 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14760
14761 * NEWS: Move the description of the changed "frame", "select-frame",
14762 and "info frame" commands to the Changed commands section.
14763
14764 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14765
14766 * gdbtypes.c (check_stub_method_group): Remove handling of old
14767 mangling schemes.
14768 * linespec.c (find_methods): Likewise.
14769 * stabsread.c (read_member_functions): Likewise.
14770 * valops.c (search_struct_method): Likewise.
14771 (value_struct_elt_for_reference): Likewise.
14772 * NEWS: Mention this change.
14773
14774 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14775
14776 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14777 print_source_lines.
14778 * source.c (print_source_lines_base): Update line number check.
14779 (print_source_lines): New function.
14780 (source_lines_range::source_lines_range): New function.
14781 * source.h (class source_lines_range): New class.
14782 (print_source_lines): New declaration.
14783
14784 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14785
14786 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14787
14788 2019-01-08 Tom Tromey <tom@tromey.com>
14789 Simon Marchi <simon.marchi@ericsson.com>
14790
14791 PR gdb/24060
14792 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14793 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14794 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14795 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14796 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14797 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14798
14799 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14800
14801 * source.c (select_source_symtab): Move header comment to
14802 declaration in source.h.
14803 (forget_cached_source_info_for_objfile): Likewise.
14804 (forget_cached_source_info): Likewise.
14805 (identify_source_line): Likewise.
14806 * source.h (identify_source_line): Move declaration from symtab.h
14807 and add comment from source.c
14808 (print_source_lines): Likewise.
14809 (forget_cached_source_info_for_objfile): Likewise.
14810 (forget_cached_source_info): Likewise.
14811 (select_source_symtab): Likewise.
14812 (enum print_source_lines_flag): Move definition from symtab.h.
14813 * symtab.h (identify_source_line): Move declaration to source.h.
14814 (print_source_lines): Likewise.
14815 (forget_cached_source_info_for_objfile): Likewise.
14816 (forget_cached_source_info): Likewise.
14817 (select_source_symtab): Likewise.
14818 (enum print_source_lines_flag): Move definition to source.h.
14819 * tui/tui-hooks.c: Add 'source.h' include.
14820
14821 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14822
14823 * source.c (print_source_lines_base): Handle requests to print
14824 reverse line number sequences, and guard against empty lines
14825 string.
14826
14827 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14828
14829 * source.c (print_source_lines_base): Fix skip of '\r' if next
14830 character is '\n'.
14831
14832 2019-01-06 Tom Tromey <tom@tromey.com>
14833
14834 * c-exp.y (struct c_parse_state) <macro_original_text,
14835 expansion_obstack>: New member.
14836 (macro_original_text, expansion_obstack): Remove globals.
14837 (scan_macro_expansion, scanning_macro_expansion)
14838 (finished_macro_expansion): Update.
14839 (scan_macro_cleanup): Remove.
14840 (yylex, c_parse): Update.
14841
14842 2019-01-06 Tom Tromey <tom@tromey.com>
14843
14844 * c-exp.y (struct c_parse_state) <strings>: New member.
14845 (operator_stoken): Update.
14846
14847 2019-01-06 Tom Tromey <tom@tromey.com>
14848
14849 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14850 (union type_stack_elt) <typelist_val>: Now a pointer to
14851 std::vector.
14852 (type_stack_cleanup): Don't declare.
14853 (push_typelist): Update.
14854 * parse.c (pop_typelist): Return a std::vector.
14855 (push_typelist): Take a std::vector.
14856 (follow_types): Update. Do not free args.
14857 (type_stack_cleanup): Remove.
14858 * c-exp.y (struct c_parse_state): New.
14859 (cpstate): New global.
14860 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14861 (nonempty_typelist): Update.
14862 (func_mod): Create a new vector.
14863 (c_parse): Create a c_parse_state.
14864 (check_parameter_typelist): Do not delete params.
14865 (function_method): Update. Do not delete type_list.
14866
14867 2019-01-06 Tom Tromey <tom@tromey.com>
14868
14869 PR gdb/28155:
14870 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14871 check_typedef.
14872 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14873 (print_return_value): Likewise.
14874
14875 2019-01-05 Tom Tromey <tom@tromey.com>
14876
14877 * contrib/cleanup_check.py: Remove.
14878 * contrib/gcc-with-excheck: Remove.
14879 * contrib/exsummary.py: Remove.
14880 * contrib/excheck.py: Remove.
14881
14882 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14883
14884 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14885 NULL. Initialize tpprev to NULL instead of assigning it
14886 to NULL on the next statement.
14887 * windows-nat.c (windows_delete_thread): Remove check for
14888 main_thread_id before printing thread exit notifications.
14889 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14890 Remove thread ID check against main_thread_id.
14891 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14892 windows_delete_thread.
14893 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14894
14895 2019-01-04 Tom Tromey <tom@tromey.com>
14896
14897 * compile/compile.c (_initialize_compile): Use upper case for
14898 metasyntactic variables.
14899 * symmisc.c (_initialize_symmisc): Use upper case for
14900 metasyntactic variables.
14901 * psymtab.c (_initialize_psymtab): Use upper case for
14902 metasyntactic variables.
14903 * demangle.c (demangle_command): Use upper case for metasyntactic
14904 variables.
14905 (_initialize_demangler): Likewise.
14906 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14907 variables.
14908
14909 2019-01-03 Tom Tromey <tom@tromey.com>
14910
14911 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14912
14913 2019-01-03 Tom Tromey <tom@tromey.com>
14914
14915 * python/py-symtab.c (salpy_str): Update.
14916 (struct salpy_sal_object) <symtab>: Now a PyObject.
14917 (salpy_dealloc): Update.
14918 (del_objfile_sal): Use gdbpy_ref.
14919
14920 2019-01-03 Tom Tromey <tom@tromey.com>
14921
14922 * python/py-type.c (convert_field): Use new_reference. Return
14923 gdbpy_ref.
14924 (make_fielditem): Return gdbpy_ref.
14925 (typy_fields): Update.
14926 (typy_getitem): Update.
14927 (field_name): Return gdbpy_ref. Use new_reference.
14928 (typy_iterator_iternext): Update.
14929
14930 2019-01-03 Tom Tromey <tom@tromey.com>
14931
14932 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14933
14934 2019-01-03 Tom Tromey <tom@tromey.com>
14935
14936 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14937 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14938 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14939 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14940 (pspy_set_type_printers): Likewise.
14941 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14942 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14943 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14944 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14945 (objfpy_set_type_printers): Likewise.
14946
14947 2019-01-03 Tom Tromey <tom@tromey.com>
14948
14949 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14950 (gdbpy_print_stack): Use gdbpy_err_fetch.
14951 * python/python-internal.h (class gdbpy_err_fetch): New class.
14952 (class gdbpy_enter) <m_error_type, m_error_value,
14953 m_error_traceback>: Remove.
14954 <m_error>: New member.
14955 (gdbpy_exception_to_string): Don't declare.
14956 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14957 * python/py-value.c (convert_value_from_python): Use
14958 gdbpy_err_fetch.
14959 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14960 gdbpy_exception_to_string.
14961 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14962 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14963 gdbpy_err_fetch.
14964
14965 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14966
14967 * linux-nat.c (delete_lwp_cleanup): Delete.
14968 (struct lwp_deleter): New struct.
14969 (lwp_info_up): New typedef.
14970 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14971 lwp_info_up.
14972
14973 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14974
14975 * linux-fork.c (class scoped_switch_fork_info): New class.
14976 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14977
14978 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14979
14980 * valops.c (find_overload_match): Remove use of null_cleanup, and
14981 calls to do_cleanups.
14982
14983 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14984
14985 * compile/compile-cplus-types.c
14986 (compile_cplus_instance::decl_name): Handle changes to
14987 cp_func_name.
14988 * cp-support.c (cp_func_name): Update header comment, update
14989 return type.
14990 * cp-support.h (cp_func_name): Update return type in declaration.
14991 * valops.c (find_overload_match): Move temp_func local to top
14992 level of function and change its type. Use temp_func to hold and
14993 delete temporary string obtained from cp_func_name.
14994
14995 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14996
14997 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14998 gdb::char_vector, remove cleanup, and update uses of `msg`.
14999
15000 2019-01-03 Jim Wilson <jimw@sifive.com>
15001
15002 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15003
15004 2019-01-02 Tom Tromey <tom@tromey.com>
15005
15006 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15007 (tdesc_parse_xml): Remove cleanups.
15008 * target-descriptions.h (make_cleanup_free_target_description):
15009 Don't declare.
15010 (target_desc_deleter): New struct.
15011 (target_desc_up): New typedef.
15012 * target-descriptions.c (target_desc_deleter::operator()): Rename
15013 from free_target_description.
15014 (make_cleanup_free_target_description): Remove.
15015
15016 2019-01-02 Tom Tromey <tom@tromey.com>
15017
15018 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15019 constructor, destructor.
15020 (linespec_parser): Remove typedef.
15021 (~linespec_parser): Rename from linespec_parser_delete.
15022 (linespec_lex_to_end, linespec_complete_label)
15023 (linespec_complete): Update.
15024 (decode_line_full): Remove cleanups.
15025 (decode_line_1): Update.
15026
15027 2019-01-02 Tom Tromey <tom@tromey.com>
15028
15029 * python/python-internal.h (inferior_to_inferior_object): Change
15030 return type.
15031 * python/py-exitedevent.c (create_exited_event_object): Update.
15032 * python/py-inferior.c (inferior_to_inferior_object): Return
15033 gdbpy_ref.
15034 (python_new_inferior, python_inferior_deleted)
15035 (thread_to_thread_object, delete_thread_object)
15036 (build_inferior_list, gdbpy_selected_inferior): Update.
15037 * python/py-infthread.c (create_thread_object): Update. Also fail
15038 if inferior_to_inferior_object fails.
15039
15040 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15041
15042 * inferior.h (class inferior) <displaced_step_state>: New field.
15043 * infrun.h (struct displaced_step_state): Move here from
15044 infrun.c. Initialize fields, add constructor.
15045 <inf>: Remove field.
15046 <reset>: New method.
15047 * infrun.c (struct displaced_step_inferior_state): Move to
15048 infrun.h.
15049 (displaced_step_inferior_states): Remove.
15050 (get_displaced_stepping_state): Adust.
15051 (displaced_step_in_progress_any_inferior): Adjust.
15052 (displaced_step_in_progress_thread): Adjust.
15053 (displaced_step_in_progress): Adjust.
15054 (add_displaced_stepping_state): Remove.
15055 (get_displaced_step_closure_by_addr): Adjust.
15056 (remove_displaced_stepping_state): Remove.
15057 (infrun_inferior_exit): Call displaced_step_state.reset.
15058 (use_displaced_stepping): Don't check for NULL.
15059 (displaced_step_prepare_throw): Call
15060 get_displaced_stepping_state.
15061 (displaced_step_fixup): Don't check for NULL.
15062 (prepare_for_detach): Don't check for NULL.
15063
15064 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15065
15066 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15067 in case of call that did not complete.
15068
15069 2019-01-02 Andrey Utkin <autkin@undo.io>
15070
15071 * symfile.c (find_separate_debug_file): Fix search of debug files for
15072 remote debuggee.
15073
15074 2019-01-02 Tom Tromey <tom@tromey.com>
15075
15076 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15077 indentation.
15078 * python/py-frame.c (frapy_older): Remove cast.
15079 (frapy_newer): Likewise.
15080 * python/py-breakpoint.c (local_setattro): Remove cast.
15081 * python/py-arch.c (archpy_name): Remove local variable.
15082 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15083
15084 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15085
15086 * unittests/basic_string_view/element_access/char/empty.cc:
15087 Fix year range in copyright header.
15088
15089 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15090
15091 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15092 Delete.
15093 <operator==>: Update with for removed field.
15094 <hash>: Likewise.
15095 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15096 <isa_features>: ...this.
15097 <abi_features>: New field.
15098 (riscv_isa_flen): Update comment.
15099 (riscv_abi_xlen): New declaration.
15100 (riscv_abi_flen): New declaration.
15101 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15102 isa_features.
15103 (riscv_abi_xlen): New function.
15104 (riscv_isa_flen): Update to get answer from isa_features.
15105 (riscv_abi_flen): New function.
15106 (riscv_has_fp_abi): Update to get answer from abi_features.
15107 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15108 xlen and flen.
15109 (riscv_call_info) <xlen, flen>: Update comment.
15110 (riscv_call_arg_struct): Remove invalid assertions
15111 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15112 is removed.
15113 (riscv_gdbarch_init): Gather isa features and abi features
15114 separately, ensure both match on the gdbarch when reusing an old
15115 gdbarch. Relax an error check to allow 32-bit abi float to run on
15116 a target with 64-bit float hardware.
15117
15118 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15119
15120 * source.c (search_command_helper): Stop reverse search
15121 when line 1 has been searched.
15122
15123 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15124
15125 * record-full.c (record_full_base_target::close): Rewrite
15126 record_full_core_buf_list free logic.
15127
15128 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15129
15130 * break-catch-syscall.c (print_one_catch_syscall): xfree
15131 the last text.
15132
15133 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15134
15135 * top.c (print_gdb_version): Update Copyright year in version
15136 message.
15137
15138 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15139
15140 Update copyright year range in all GDB files.
15141
15142 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15143
15144 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15145
15146 For older changes see ChangeLog-2018.
15147 \f
15148 Local Variables:
15149 mode: change-log
15150 left-margin: 8
15151 fill-column: 74
15152 version-control: never
15153 coding: utf-8
15154 End:
15155
This page took 0.364925 seconds and 5 git commands to generate.