Create a correctly-sized demangled names hashtable
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2
3 * symtab.c (create_demangled_names_hash): Use per_bfd->
4 minimal_symbol_count for computing the initial size, if greater
5 than our default size.
6
7 2019-11-22 Tom de Vries <tdevries@suse.de>
8
9 * contrib/words.sh: Improve words extraction.
10
11 2019-11-22 Tom de Vries <tdevries@suse.de>
12
13 * contrib/words.sh: Combine sed invocations.
14
15 2019-11-21 Christian Biesinger <cbiesinger@google.com>
16
17 * Makefile.in: Update.
18 * demangle.c: Rename to...
19 * gdb-demangle.c: ..this.
20 (is_cplus_marker): Change return type to bool.
21 (_initialize_demangler): Rename to...
22 (_initialize_gdb_demangle): ...this.
23 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
24 * symtab.h (demangle): Remove declaration; instead include
25 gdb-demangle.h.
26
27 2019-11-21 Tom Tromey <tromey@adacore.com>
28
29 * gdbsupport/format.c (format_pieces): Parse %I64d.
30 * unittests/format_pieces-selftests.c (test_windows_formats): New
31 function.
32 (run_tests): Call it.
33
34 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
35
36 Byte reverse display of variables with DW_END_big, DW_END_little
37 (DW_AT_endianity) dwarf attributes if different than the native
38 byte order.
39 * ada-lang.c (ada_value_binop):
40 Use type_byte_order instead of gdbarch_byte_order.
41 * ada-valprint.c (printstr):
42 (ada_val_print_string):
43 * ada-lang.c (value_pointer):
44 (ada_value_binop):
45 Use type_byte_order instead of gdbarch_byte_order.
46 * c-lang.c (c_get_string):
47 Use type_byte_order instead of gdbarch_byte_order.
48 * c-valprint.c (c_val_print_array):
49 Use type_byte_order instead of gdbarch_byte_order.
50 * cp-valprint.c (cp_print_class_member):
51 Use type_byte_order instead of gdbarch_byte_order.
52 * dwarf2loc.c (rw_pieced_value):
53 Use type_byte_order instead of gdbarch_byte_order.
54 * dwarf2read.c (read_base_type): Handle DW_END_big,
55 DW_END_little
56 * f-lang.c (f_get_encoding):
57 Use type_byte_order instead of gdbarch_byte_order.
58 * findvar.c (default_read_var_value):
59 Use type_byte_order instead of gdbarch_byte_order.
60 * gdbtypes.c (check_types_equal):
61 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
62 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
63 and TYPE_ENDIANITY_LITTLE if set.
64 (type_byte_order): new function.
65 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
66 (struct main_type) <flag_endianity_not_default>:
67 New field.
68 (type_byte_order): New function.
69 * infcmd.c (default_print_one_register_info):
70 Use type_byte_order instead of gdbarch_byte_order.
71 * p-lang.c (pascal_printstr):
72 Use type_byte_order instead of gdbarch_byte_order.
73 * p-valprint.c (pascal_val_print):
74 Use type_byte_order instead of gdbarch_byte_order.
75 * printcmd.c (print_scalar_formatted):
76 Use type_byte_order instead of gdbarch_byte_order.
77 * solib-darwin.c (darwin_current_sos):
78 Use type_byte_order instead of gdbarch_byte_order.
79 * solib-svr4.c (solib_svr4_r_ldsomap):
80 Use type_byte_order instead of gdbarch_byte_order.
81 * stap-probe.c (stap_modify_semaphore):
82 Use type_byte_order instead of gdbarch_byte_order.
83 * target-float.c (target_float_same_format_p):
84 Use type_byte_order instead of gdbarch_byte_order.
85 * valarith.c (scalar_binop):
86 (value_bit_index):
87 Use type_byte_order instead of gdbarch_byte_order.
88 * valops.c (value_cast):
89 Use type_byte_order instead of gdbarch_byte_order.
90 * valprint.c (generic_emit_char):
91 (generic_printstr):
92 (val_print_string):
93 Use type_byte_order instead of gdbarch_byte_order.
94 * value.c (unpack_long):
95 (unpack_bits_as_long):
96 (unpack_value_bitfield):
97 (modify_field):
98 (pack_long):
99 (pack_unsigned_long):
100 Use type_byte_order instead of gdbarch_byte_order.
101 * findvar.c (unsigned_pointer_to_address):
102 (signed_pointer_to_address):
103 (unsigned_address_to_pointer):
104 (address_to_signed_pointer):
105 (default_read_var_value):
106 (default_value_from_register):
107 Use type_byte_order instead of gdbarch_byte_order.
108 * gnu-v3-abi.c (gnuv3_make_method_ptr):
109 Use type_byte_order instead of gdbarch_byte_order.
110 * riscv-tdep.c (riscv_print_one_register_info):
111 Use type_byte_order instead of gdbarch_byte_order.
112
113 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
116 (current_ui_gdb_stdin_ptr): Likewise.
117 (current_ui_gdb_stderr_ptr): Likewise.
118 (current_ui_gdb_stdlog_ptr): Likewise.
119 (current_ui_current_uiout_ptr): Likewise.
120 (gen_ret_current_ui_field_ptr): Remove.
121
122 2019-11-21 Tom de Vries <tdevries@suse.de>
123
124 PR gdb/24956
125 * cli/cli-script.c (execute_control_command): Only switch to
126 INTERP_CONSOLE's ui_out when INTERP_MI is active.
127
128 2019-11-19 Tom Tromey <tom@tromey.com>
129
130 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
131 Now static. Change type of "name".
132 (tui_set_win_height_command): Don't copy "arg".
133 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
134 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
135
136 2019-11-19 Ali Tamur <tamur@google.com>
137
138 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
139 "if (attr != nullptr)".
140 (dwarf2_find_base_address): Likewise.
141 (dwarf2_build_include_psymtabs): Likewise.
142 (read_cutu_die_from_dwo): Likewise.
143 (read_func_scope): Likewise.
144 (read_call_site_scope): Likewise.
145 (dwarf2_get_pc_bounds): Likewise.
146 (dwarf2_record_block_ranges): Likewise.
147 (dwarf2_add_field): Likewise.
148 (dwarf2_add_member_fn): Likewise.
149 (read_structure_type): Likewise.
150 (read_enumeration_type): Likewise.
151 (read_array_type): Likewise.
152 (read_array_order): Likewise.
153 (read_set_type): Likewise.
154 (read_common_block): Likewise.
155 (read_tag_reference_type): Likewise.
156 (read_tag_string_type): Likewise.
157 (read_subroutine_type): Likewise.
158 (read_base_type): Likewise.
159 (read_subrange_type): Likewise.
160 (new_symbol): Likewise.
161 (prepare_one_comp_unit): Likewise.
162
163 2019-11-19 Tom Tromey <tromey@adacore.com>
164
165 * windows-nat.c (windows_nat_target::attach): Include GetLastError
166 result in error when DebugActiveProcess fails.
167
168 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
169 Pedro Alves <palves@redhat.com>
170
171 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
172 * target.c (target_stack::push): Call 'unpush' if there's a
173 target on top of the stack.
174
175 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
176
177 * python/py-block.c (blpy_dealloc): Call tp_free.
178 (blpy_block_syms_dealloc): Likewise.
179 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
180 * python/py-inferior.c (infpy_dealloc): Likewise.
181 * python/py-lazy-string.c (stpy_dealloc): Likewise.
182 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
183 * python/py-symbol.c (sympy_dealloc): Likewise.
184 * python/py-symtab.c (stpy_dealloc): Likewise.
185 * python/py-type.c (typy_iterator_dealloc): Likewise.
186
187 2019-11-18 Christian Biesinger <cbiesinger@google.com>
188
189 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
190 constructor instead of using a class initializer.
191
192 2019-11-15 Christian Biesinger <cbiesinger@google.com>
193
194 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
195 * configure: Regenerate.
196 * configure.ac: Don't source common.host.
197 * gdbsupport/common.host: Remove.
198 * gdbsupport/mingw-strerror.c: Remove.
199 * gdbsupport/posix-strerror.c: Rename to...
200 * gdbsupport/safe-strerror.c: ...this.
201
202 2019-11-15 Christian Biesinger <cbiesinger@google.com>
203
204 * maint.c (scoped_command_stats::print_time): Use localtime_r
205 instead of localtime (provided through gnulib if necessary).
206 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
207 of ctime.
208
209 2019-11-15 Christian Biesinger <cbiesinger@google.com>
210
211 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
212 avoid compile errors.
213
214 2019-11-15 Christian Biesinger <cbiesinger@google.com>
215
216 * config.in: Regenerate.
217 * configure: Regenerate.
218 * gdbsupport/common.m4: No longer check for strerror_r.
219 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
220 POSIX version of strerror_r, now that gnulib provides it if
221 necessary.
222
223 2019-11-14 Christian Biesinger <cbiesinger@google.com>
224
225 * README (`configure' options): Update.
226
227 2019-11-14 Tom Tromey <tromey@adacore.com>
228
229 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
230 expected type for the RHS if the LHS is a convenience variable.
231
232 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
233
234 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
235 Provide explicit default and copy constructor.
236
237 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
238
239 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
240 only call Py_INCREF (newbp) in the bppy_pending_object case.
241
242 2019-11-13 Tom Tromey <tromey@adacore.com>
243
244 PR build/25182:
245 * psympriv.h (partial_symbol): Remove static assert.
246 * symtab.h (general_symbol_info, symbol): Remove static assert.
247
248 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * gdbsupport/format.c (format_pieces::format_pieces): Support
251 printf 'z' size modifier.
252 * gdbsupport/format.h (enum argclass): Add size_t_arg.
253 * printcmd.c (ui_printf): Handle size_t_arg.
254 * ui-out.c (ui_out::vmessage): Likewise.
255 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
256 function.
257 (run_tests): Call test_format_int_sizes.
258
259 2019-11-12 Christian Biesinger <cbiesinger@google.com>
260
261 * ada-exp.y (write_ambiguous_var): Update.
262 * buildsym.c (add_symbol_to_list): Update.
263 * dwarf2read.c (read_variable): Update.
264 (new_symbol): Update.
265 * jit.c (finalize_symtab): Update.
266 * language.c (language_alloc_type_symbol): Update.
267 * symtab.c (fixup_symbol_section): Update.
268 (initialize_objfile_symbol_1): Move code to...
269 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
270 (allocate_symbol): Update.
271 (allocate_template_symbol): Update.
272 (get_symbol_address): Update.
273 * symtab.h (struct symbol): Inherit from general_symbol_info instead
274 of having as a field, and add a constructor.
275 (SYMBOL_VALUE): Update.
276 (SYMBOL_VALUE_ADDRESS): Update.
277 (SET_SYMBOL_VALUE_ADDRESS): Update.
278 (SYMBOL_VALUE_BYTES): Update.
279 (SYMBOL_VALUE_COMMON_BLOCK): Update.
280 (SYMBOL_BLOCK_VALUE): Update.
281 (SYMBOL_VALUE_CHAIN): Update.
282 (SYMBOL_LANGUAGE): Update.
283 (SYMBOL_SECTION): Update.
284 (SYMBOL_OBJ_SECTION): Update.
285 (SYMBOL_SET_LANGUAGE): Update.
286 (SYMBOL_SET_LINKAGE_NAME): Update.
287 (SYMBOL_SET_NAMES): Update.
288 (SYMBOL_NATURAL_NAME): Update.
289 (SYMBOL_LINKAGE_NAME): Update.
290 (SYMBOL_DEMANGLED_NAME): Update.
291 (SYMBOL_SEARCH_NAME): Update.
292 (SYMBOL_MATCHES_SEARCH_NAME): Update.
293 (struct symbol): Update.
294 (struct template_symbol): Update.
295 (struct rust_vtable_symbol): Update.
296 * xcoffread.c (SYMBOL_DUP): Update.
297
298 2019-11-12 Tom Tromey <tom@tromey.com>
299
300 * tui/tui-layout.c (show_layout): Set current_layout.
301 (show_source_disasm_command, show_data)
302 (show_source_or_disasm_and_command): Don't set current_layout.
303
304 2019-11-12 Tom Tromey <tom@tromey.com>
305
306 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
307
308 2019-11-12 Tom Tromey <tom@tromey.com>
309
310 * tui/tui-win.c (resize_message): New global.
311 (show_tui_resize_message): New function.
312 (tui_async_resize_screen): Print message if requested.
313 (_initialize_tui_win): Add tui-resize-message setting.
314 * NEWS: Add entry for new commands.
315
316 2019-11-11 Tom Tromey <tom@tromey.com>
317
318 * tui/tui.c (tui_initialize_readline): Add new bindable readline
319 functions.
320
321 2019-11-11 Christian Biesinger <cbiesinger@google.com>
322
323 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
324
325 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
328 function.
329 * python/python-internal.h (gdbpy_lookup_static_symbols):
330 Declare new function.
331 * python/python.c (python_GdbMethods): Add
332 gdb.lookup_static_symbols method.
333 * NEWS: Mention gdb.lookup_static_symbols.
334
335 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
338 static block of current object file first. Also fix typo in
339 header comment.
340
341 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * stack.c (set_last_displayed_sal): Delete.
344 (last_displayed_sal_valid): Delete.
345 (last_displayed_pspace): Delete.
346 (last_displayed_addr): Delete.
347 (last_displayed_symtab): Delete.
348 (last_displayed_line): Delete.
349 (class last_displayed_symtab_info_type): New.
350 (last_displayed_symtab_info): New static global variable.
351 (print_frame_info): Call methods on last_displayed_symtab_info.
352 (clear_last_displayed_sal): Update header comment, and make use of
353 last_displayed_symtab_info.
354 (last_displayed_sal_is_valid): Likewise.
355 (get_last_displayed_pspace): Likewise.
356 (get_last_displayed_addr): Likewise.
357 (get_last_displayed_symtab): Likewise.
358 (get_last_displayed_line): Likewise.
359 (get_last_displayed_sal): Likewise.
360 * stack.h (clear_last_displayed_sal): Update header comment.
361 (last_displayed_sal_is_valid): Likewise.
362 (get_last_displayed_pspace): Likewise.
363 (get_last_displayed_addr): Likewise.
364 (get_last_displayed_symtab): Likewise.
365 (get_last_displayed_line): Likewise.
366 (get_last_displayed_sal): Likewise.
367
368 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * stack.c (frame_show_address): Convert return type to bool.
371 * stack.h (frame_show_address): Likewise, and update header
372 comment.
373
374 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
377 * unittests/vec-utils-selftests.c: New file.
378 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
379
380 2019-11-10 Tom Tromey <tom@tromey.com>
381
382 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
383 (tui_highlight_win): Likewise.
384 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
385 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
386 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
387 Don't set can_highlight.
388
389 2019-11-10 Tom Tromey <tom@tromey.com>
390
391 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
392 Remove unused declaration.
393
394 2019-11-08 Tom Tromey <tromey@adacore.com>
395
396 * top.c (read_command_file): Update.
397 (command_line_input): Make return type const.
398 * python/py-gdb-readline.c: Update.
399 * linespec.c (decode_line_2): Update.
400 * defs.h (command_line_input): Make return type const.
401 * cli/cli-script.c (read_next_line): Make return type const.
402 * ada-lang.c (get_selections): Update.
403
404 2019-11-06 Christian Biesinger <cbiesinger@google.com>
405
406 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
407 * mi/mi-main.c (output_cores): Likewise.
408 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
409 (linux_xfer_osdata_modules): Likewise.
410 * remote.c (register_remote_support_xml): Likewise.
411 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
412 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
413
414 2019-11-06 Tom Tromey <tom@tromey.com>
415
416 * tui/tui-interp.c: Don't include readline.h.
417 * tui/tui-hooks.c: Don't include readline.h.
418 * symmisc.c: Include tilde.h, not readline.h.
419 * symfile.c: Include tilde.h, not readline.h.
420 * source.c: Include tilde.h, not readline.h.
421 * solib.c: Include tilde.h, not readline.h.
422 * psymtab.c: Include tilde.h, not readline.h.
423 * exec.c: Include tilde.h, not readline.h.
424 * corelow.c: Include tilde.h, not readline.h.
425 * cli/cli-dump.c: Include tilde.h, not readline.h.
426 * cli/cli-cmds.c: Don't include readline.h.
427
428 2019-11-05 Tom Tromey <tom@tromey.com>
429
430 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
431 (tui_disassemble): Set addr_size.
432 (tui_disasm_window::set_contents): Use addr_size.
433
434 2019-11-05 Tom Tromey <tom@tromey.com>
435
436 * rust-lang.c (rust_language_defn): Update.
437 * python/py-value.c (valpy_string): Call c_get_string.
438 * p-lang.c (pascal_language_defn): Update.
439 * opencl-lang.c (opencl_language_defn): Update.
440 * objc-lang.c (objc_language_defn): Update.
441 * m2-lang.c (m2_language_defn): Update.
442 * language.c (unknown_language_defn, auto_language_defn): Update.
443 (default_get_string): Remove.
444 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
445 * go-lang.c (go_language_defn): Update.
446 * f-lang.c (f_language_defn): Update.
447 * d-lang.c (d_language_defn): Update.
448 * c-lang.c (c_language_defn, cplus_language_defn)
449 (asm_language_defn, minimal_language_defn): Update.
450 * ada-lang.c (ada_language_defn): Update.
451 * language.h (struct language_defn) <la_get_string>: Remove.
452 (LA_GET_STRING): Remove.
453 (default_get_string): Don't declare.
454
455 2019-11-05 Tom Tromey <tom@tromey.com>
456
457 * tui/tui-source.h (struct tui_source_window): Inline
458 constructor. Remove destructor.
459 <style_changed, m_observable>: Move to superclass.
460 * tui/tui-winsource.h (tui_copy_source_line): Declare.
461 (struct tui_source_window_base): Move private members to end.
462 <style_changed, m_observable>: Move from tui_source_window.
463 * tui/tui-winsource.c (tui_copy_source_line): Move from
464 tui-source.c. Rename from copy_source_line. Add special handling
465 for negative line number.
466 (tui_source_window_base::style_changed): Move from
467 tui_source_window.
468 (tui_source_window_base): Register observer.
469 (~tui_source_window_base): New.
470 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
471 rename.
472 (tui_source_window::set_contents): Use tui_copy_source_line.
473 (tui_source_window::tui_source_window): Move to tui-source.h.
474 (tui_source_window::~tui_source_window): Remove.
475 (tui_source_window::style_changed): Move to superclass.
476 * tui/tui-disasm.c (tui_disassemble): Create string file with
477 styling, when possible. Add "addr_size" parameter.
478 (tui_disasm_window::set_contents): Use tui_copy_source_line.
479 Don't compute maximum size.
480 (len_without_escapes): New function
481
482 2019-11-05 Tom Tromey <tom@tromey.com>
483
484 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
485 std::string.
486 * tui/tui-winsource.c (tui_show_source_line): Update.
487 * tui/tui-source.c (tui_source_window::set_contents): Update.
488 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
489
490 2019-11-05 Christian Biesinger <cbiesinger@google.com>
491
492 * symtab.h (gdb_static_assert): Put && operator at the beginning
493 of the line instead of the end.
494
495 2019-11-04 Christian Biesinger <cbiesinger@google.com>
496
497 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
498 and sizeof (symbol).
499 * symtab.h: Add a static_assert for sizeof (partial_symbol).
500
501 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502
503 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
504 * configure.host: Mark *-*-solaris2.10* obsolete.
505 * configure.tgt: Mark Solaris < 11 obsolete.
506 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
507 Update target triplet.
508
509 2019-11-01 Tom Tromey <tromey@adacore.com>
510
511 * utils.c (print_sys_errmsg): Simplify.
512
513 2019-11-01 Tom Tromey <tromey@adacore.com>
514
515 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
516
517 2019-11-01 Christian Biesinger <cbiesinger@google.com>
518
519 * configure: Regenerate.
520 * configure.ac: Remove check for strerror_r.
521 * gdbsupport/common.m4: Check for strerror_r.
522
523 2019-11-01 Luis Machado <luis.machado@linaro.org>
524
525 PR gdb/25124
526
527 * arm-tdep.c (arm_per_objfile): Rename to ...
528 (arm_per_bfd): ... this.
529 (arm_objfile_data_key): Rename to ...
530 (arm_bfd_data_key): ... this.
531 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
532 data.
533 (arm_record_special_symbol): Likewise.
534
535 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
538 end.
539 * c-typeprint.c (c_print_typedef): Likewise.
540 * f-typeprint.c (f_print_typedef): Likewise.
541 * m2-typeprint.c (m2_print_typedef): Likewise.
542 * p-typeprint.c (pascal_print_typedef): Likewise.
543 * rust-lang.c (rust_print_typedef): Likewise.
544 * symtab.c (print_symbol_info): Print a newline after calling
545 typedef_print.
546
547 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * symtab.c (info_module_cmdlist): New variable.
550 (info_module_command): New function.
551 (search_module_symbols): New function.
552 (info_module_subcommand): New function.
553 (struct info_modules_var_func_options): New struct.
554 (info_modules_var_func_options_defs): New variable.
555 (make_info_modules_var_func_options_def_group): New function.
556 (info_module_functions_command): New function.
557 (info_module_variables_command): New function.
558 (info_module_var_func_command_completer): New function.
559 (_initialize_symtab): Register new 'info module functions' and
560 'info module variables' commands.
561 * symtab.h (typedef symbol_search_in_module): New typedef.
562 (search_module_symbols): Declare new function.
563 * NEWS: Mention new commands.
564
565 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
568 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
569 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
570 MODULES_DOMAIN.
571 (scan_partial_symbols): Only create partial module symbols for non
572 declarations.
573 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
574 and MODULES_DOMAIN.
575 * symtab.c (search_domain_name): Likewise.
576 (search_symbols): Likewise.
577 (print_symbol_info): Likewise.
578 (symtab_symbol_info): Likewise.
579 (info_modules_command): New function.
580 (_initialize_symtab): Register 'info modules' command.
581 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
582 * NEWS: Mention new 'info modules' command.
583
584 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
585
586 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
587 and $_gdb_maint_setting_str.
588
589 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
590
591 * cli/cli-cmds.c (setting_cmd, value_from_setting)
592 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
593 (str_value_from_setting, gdb_setting_str_internal_fn)
594 (gdb_maint_setting_str_internal_fn): New functions.
595 (_initialize_cli_cmds): Define the new convenience functions.
596 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
597 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
598
599 2019-10-31 Christian Biesinger <cbiesinger@google.com>
600
601 * agent.c (set_can_use_agent): When the setting is turned on,
602 look up agent symbols if we don't have them yet.
603 (agent_new_objfile): Don't look up agent symbols when the agent
604 setting is off.
605
606 2019-10-31 Christian Biesinger <cbiesinger@google.com>
607
608 * config.in: Regenerate.
609
610 2019-10-31 Christian Biesinger <cbiesinger@google.com>
611
612 * configure: Regenerate.
613 * configure.ac: Check for strerror_r.
614 * gdbsupport/common-utils.h (safe_strerror): Change return value
615 to const char * and document that this function is now threadsafe.
616 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
617 thread_local and call strerror_r, if available.
618 * utils.c (perror_string): Update.
619 (print_sys_errmsg): Update.
620
621 2019-10-31 Luis Machado <luis.machado@linaro.org>
622
623 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
624 objfile_key.
625 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
626 objfile to fetch per-bfd data.
627 (arm_find_exidx_entry): Likewise.
628
629 2019-10-31 Christian Biesinger <cbiesinger@google.com>
630
631 * gdbsupport/agent.c (debug_agent): Change type to bool.
632 (use_agent): Likewise.
633 (all_agent_symbols_look_up): Likewise.
634 (agent_loaded_p): Change return value to bool.
635 (agent_look_up_symbols): Update.
636 (agent_capability_check): Change return value to bool.
637 * gdbsupport/agent.h (agent_loaded_p): Likewise.
638 (debug_agent): Change type to bool.
639 (use_agent): Likewise.
640 (agent_capability_check): Change return value to bool.
641
642 2019-10-30 Christian Biesinger <cbiesinger@google.com>
643
644 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
645 (build_minimal_symbol_hash_tables): Code to clear the table moved
646 to clear_minimal_symbol_hash_tables.
647 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
648 when needed.
649
650 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
651
652 * infcmd.c: Remove includes.
653 * infrun.c: Remove includes.
654
655 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
658 (grow_vect): Remove declaration.
659 (ada_type_of_array): Remove declaration.
660 (ada_update_initial_language): Remove declaration.
661 (ada_fold_name): Remove declaration.
662 (ada_fill_in_ada_prototype): Remove declaration.
663 (user_select_syms): Remove declaration.
664 (get_selections): Remove declaration.
665 (ada_tag_type): Remove declaration.
666 (ada_value_tag): Remove declaration.
667 (ada_is_others_clause): Remove declaration.
668 (ada_in_variant): Remove declaration.
669 (ada_value_struct_elt): Remove declaration.
670 (ada_attribute_name): Remove declaration.
671 (ada_system_address_type): Remove declaration.
672 * ada-lang.c (ada_watch_location_expression): Make static.
673 (GROW_VECT): Move here from ada-lang.h.
674 (grow_vect): Make static.
675 (ada_update_initial_language): Make static.
676 (ada_fold_name): Make static.
677 (ada_type_of_array): Make static.
678 (encoded_ordered_before): Move up.
679 (sort_choices): Move up.
680 (print_signatures): Move up.
681 (ada_print_symbol_signature): Move up.
682 (get_selections): Move up and make static.
683 (user_select_syms): Move up and make static.
684 (ada_value_struct_elt): Move up and make static.
685 (ada_tag_type): Make static.
686 (ada_value_tag): Make static.
687 (ada_is_others_clause): Make static.
688 (ada_in_variant): Make static.
689 (ada_attribute_name): Make static.
690
691 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
692
693 * ada-lang.c: Remove includes.
694 * ada-typeprint.c: Remove includes.
695 * ada-valprint.c: Remove includes.
696
697 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
698
699 * addrmap.c: Add static assertions of type size, moved from
700 _initialize_addrmap.
701 (_initialize_addrmap): Remove.
702
703 2019-10-29 Christian Biesinger <cbiesinger@google.com>
704
705 * coffread.c (record_minimal_symbol): Update.
706 (process_coff_symbol): Update.
707 * dbxread.c (read_dbx_symtab): Update.
708 * dwarf2read.c (add_partial_symbol): Update.
709 (fixup_go_packaging): Update.
710 (load_partial_dies): Update.
711 (new_symbol): Update.
712 * elfread.c (record_minimal_symbol): Change signature to use
713 gdb::string_view instead of name+len.
714 (elf_symtab_read): Update.
715 (elf_rel_plt_read): Update.
716 * mdebugread.c (parse_partial_symbols): Update.
717 (handle_psymbol_enumerators): Update.
718 (new_symbol): Update.
719 * minsyms.c (minimal_symbol_reader::record_full): Change signature
720 to use gdb::string_view instead of name+len.
721 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
722 * psympriv.h (add_psymbol_to_list): Likewise.
723 * psymtab.c (add_psymbol_to_bcache): Likewise.
724 (add_psymbol_to_list): Likewise.
725 * stabsread.c (define_symbol): Update.
726 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
727 * symtab.h (SYMBOL_SET_NAMES): Likewise.
728 (symbol_set_names): Likewise.
729 * xcoffread.c (scan_xcoff_symtab): Update.
730
731 2019-10-29 Christian Biesinger <cbiesinger@google.com>
732
733 * symtab.h (symbol_set_names): Document that copy_name must be
734 set to true for non-nullterminated strings.
735 * symtab.c (symbol_set_names): Only make a nullterminated copy of
736 linkage_name if the entry was not found and we need to demangle.
737
738 2019-10-29 Christian Biesinger <cbiesinger@google.com>
739
740 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
741 * dwarf2-frame.c (bsearch_fde_cmp): Update.
742 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
743 * gdbsupport/gdb_binary_search.h: New file.
744
745 2019-10-29 Christian Biesinger <cbiesinger@google.com>
746
747 * NEWS: Mention new --with-system-gdbinit-dir option.
748 * config.in: Regenerate.
749 * configure: Regenerate.
750 * configure.ac: Add new option --with-system-gdbinit-dir.
751 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
752 for a ".gdb" suffix.
753 * main.c (get_init_files): Change system_gdbinit argument to
754 a vector and return the files in SYSTEM_GDBINIT_DIR in
755 addition to SYSTEM_GDBINIT.
756 (captured_main_1): Update.
757 (print_gdb_help): Update.
758 * top.c (print_gdb_configuration): Also print the value of
759 SYSTEM_GDBINIT_DIR.
760
761 2019-10-28 Christian Biesinger <cbiesinger@google.com>
762
763 * gdbsupport/common-utils.h (startswith): Add an overloaded version
764 that takes gdb::string_view arguments.
765
766 2019-10-26 Tom de Vries <tdevries@suse.de>
767
768 * aarch64-linux-tdep.c: Fix typos in comments.
769 * aarch64-tdep.c: Same.
770 * ada-lang.c: Same.
771 * amd64-nat.c: Same.
772 * arc-tdep.c: Same.
773 * arch/aarch64-insn.c: Same.
774 * block.c: Same.
775 * breakpoint.h: Same.
776 * btrace.h: Same.
777 * c-varobj.c: Same.
778 * cli/cli-decode.c: Same.
779 * cli/cli-script.c: Same.
780 * cli/cli-utils.h: Same.
781 * coff-pe-read.c: Same.
782 * coffread.c: Same.
783 * compile/compile-cplus-symbols.c: Same.
784 * compile/compile-object-run.c: Same.
785 * completer.c: Same.
786 * corelow.c: Same.
787 * cp-support.c: Same.
788 * demangle.c: Same.
789 * dwarf-index-write.c: Same.
790 * dwarf2-frame.c: Same.
791 * dwarf2-frame.h: Same.
792 * eval.c: Same.
793 * frame-base.h: Same.
794 * frame.h: Same.
795 * gdbcmd.h: Same.
796 * gdbtypes.h: Same.
797 * gnu-nat.c: Same.
798 * guile/scm-objfile.c: Same.
799 * i386-tdep.c: Same.
800 * i386-tdep.h: Same.
801 * infcall.c: Same.
802 * infcall.h: Same.
803 * linux-nat.c: Same.
804 * m68k-tdep.c: Same.
805 * macroexp.c: Same.
806 * memattr.c: Same.
807 * mi/mi-cmd-disas.c: Same.
808 * mi/mi-getopt.h: Same.
809 * mi/mi-main.c: Same.
810 * minsyms.c: Same.
811 * nat/aarch64-sve-linux-sigcontext.h: Same.
812 * objfiles.h: Same.
813 * ppc-linux-nat.c: Same.
814 * ppc-linux-tdep.c: Same.
815 * ppc-tdep.h: Same.
816 * progspace.h: Same.
817 * prologue-value.h: Same.
818 * python/py-evtregistry.c: Same.
819 * python/py-instruction.h: Same.
820 * record-btrace.c: Same.
821 * record-full.c: Same.
822 * remote.c: Same.
823 * rs6000-tdep.c: Same.
824 * ser-tcp.c: Same.
825 * sol-thread.c: Same.
826 * sparc-sol2-tdep.c: Same.
827 * sparc64-tdep.c: Same.
828 * stabsread.c: Same.
829 * symfile.c: Same.
830 * symtab.h: Same.
831 * target.c: Same.
832 * tracepoint.c: Same.
833 * tui/tui-data.h: Same.
834 * tui/tui-io.c: Same.
835 * tui/tui-win.c: Same.
836 * tui/tui.c: Same.
837 * unittests/rsp-low-selftests.c: Same.
838 * user-regs.h: Same.
839 * utils.c: Same.
840 * utils.h: Same.
841 * valarith.c: Same.
842 * valops.c: Same.
843 * valprint.c: Same.
844 * valprint.h: Same.
845 * value.c: Same.
846 * value.h: Same.
847 * varobj.c: Same.
848 * x86-nat.h: Same.
849 * xtensa-tdep.c: Same.
850
851 2019-10-25 Ali Tamur <tamur@google.com>
852
853 * charset.c (find_charset_names): Reflect API change.
854
855 2019-10-25 Christian Biesinger <cbiesinger@google.com>
856
857 * symtab.c (struct demangled_name_entry): Change demangled name
858 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
859 part of the struct anymore.
860 (symbol_set_names): No longer obstack allocate + copy the demangled
861 name, just store the allocated name from bfd.
862
863 2019-10-25 Tom Tromey <tromey@adacore.com>
864
865 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
866 (bsearch_cie_cmp, add_cie): Remove.
867 (find_cie): Reimplement.
868 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
869 (dwarf2_build_frame_info): Update.
870
871 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
872
873 PR gdb/25126
874 * symfile.c (reread_symbols): Call forget_cached_source_info to
875 clear the stale source cache.
876
877 2019-10-24 Christian Biesinger <cbiesinger@google.com>
878
879 * configure: Regenerate.
880 * configure.ac: Remove code that sets python_has_threads.
881
882 2019-10-24 Christian Biesinger <cbiesinger@google.com>
883
884 * config.in: Regenerate.
885 * configure: Regenerate.
886 * configure.ac: Remove the code that uses sed to get the python
887 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
888
889 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * python/py-progspace.c (pspy_block_for_pc): Return None for all
892 error paths.
893
894 2019-10-23 Tom Tromey <tom@tromey.com>
895
896 * arc-tdep.c: Remove ".." from include.
897 * frv-tdep.c: Remove ".." from include.
898 * lm32-tdep.c: Remove ".." from include.
899 * microblaze-tdep.c: Remove ".." from include.
900 * or1k-tdep.h: Remove ".." from include.
901 * s12z-tdep.c: Remove ".." from include.
902 * Makefile.in (OPCODES_CFLAGS): Add comment.
903 (TOP_CFLAGS): New variable.
904 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
905
906 2019-10-23 Tom Tromey <tom@tromey.com>
907
908 * Makefile.in (READLINE_DIR): Update.
909
910 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
911
912 * infcall.c (call_function_by_hand_dummy): Fix the function
913 comment. And extract out a code section into...
914 (reserve_stack_space): ...this new function.
915
916 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
917
918 * infcall.c (value_arg_coerce): Remove an unused parameter.
919 (call_function_by_hand_dummy): Update the call to
920 'value_arg_coerce'.
921
922 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923
924 * infcall.c (call_function_by_hand_dummy): Refactor.
925
926 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
927
928 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
929
930 2019-10-23 Tom Tromey <tom@tromey.com>
931
932 * configure: Rebuild.
933 * configure.ac: Don't check for sigprocmask.
934 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
935
936 2019-10-23 Tom Tromey <tom@tromey.com>
937
938 * configure: Rebuild.
939 * acinclude.m4: Use m4_include, not sinclude.
940
941 2019-10-23 Tom de Vries <tdevries@suse.de>
942
943 PR breakpoints/24687
944 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
945
946 2019-10-22 Christian Biesinger <cbiesinger@google.com>
947
948 * symtab.c (struct demangled_name_entry) <language>: Change from
949 bitfield to regular variable.
950
951 2019-10-22 Christian Biesinger <cbiesinger@google.com>
952
953 * symtab.c (struct demangled_name_entry): Add a constructor.
954 (free_demangled_name_entry): New function to call the destructor
955 for demangled_name_entry.
956 (create_demangled_names_hash): Pass free_demangled_name_entry to
957 htab_create_alloc.
958 (symbol_set_names): Call placement new for demangled_name_entry.
959 * utils.c: No longer include xxhash.h here, now that fast_hash
960 is inlined in the header.
961 * utils.h: Instead, include it here.
962
963 2019-10-22 Christian Biesinger <cbiesinger@google.com>
964
965 * Makefile.in: Link with libxxhash.
966 * config.in: Regenerate.
967 * configure: Regenerate.
968 * configure.ac: Search for libxxhash.
969 * utils.c (fast_hash): Use xxhash if present.
970
971 2019-10-22 Christian Biesinger <cbiesinger@google.com>
972
973 * utils.h (fast_hash): New function.
974 * symtab.c (hash_demangled_name_entry): Call new function
975 fast_hash.
976
977 2019-10-22 Christian Biesinger <cbiesinger@google.com>
978
979 * symtab.c (struct demangled_name_entry): Change type of mangled
980 to gdb::string_view. Also adds a constructor that takes the
981 mangled name.
982 (hash_demangled_name_entry): Update.
983 (eq_demangled_name_entry): Update.
984 (free_demangled_name_entry): New function to call the destructor
985 now that this is not a POD anymore.
986 (create_demangled_names_hash): Pass free_demangled_name_entry to
987 htab_create_alloc.
988 (symbol_set_names): Update.
989
990 2019-10-21 Ali Tamur <tamu@google.com>
991
992 * dwarf2read.c (dir_index): Change type.
993 (file_name_index): Likewise.
994 (line_header::include_dir_at): Change comment and implementation on
995 whether it is DWARF 5.
996 (line_header::is_valid_file_index): New function.
997 (line_header::file_name_at): Change comment and implementation on
998 whether it is DWARF 5.
999 (line_header::file_names): Change to private field renamed as
1000 m_file_names and introduce a new accessor method.
1001 (line_header::file_names_size): New method.
1002 (line_header::include_dirs): Change to private field and rename as
1003 m_include_dirs.
1004 (dw2_get_file_names_reader): Define local var at a smaller scope and
1005 reflect API change.
1006 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1007 (process_structure_scope): Likewise.
1008 (line_header::add_include_dir): Change message and reflect renaming.
1009 (line_header::add_file_name): Likewise.
1010 (read_formatted_entries): Handle DW_FORM_data16.
1011 (dwarf_decode_line_header): Fix line header length calculation.
1012 (psymtab_include_file_name): Change comment and API.
1013 (lnp_state_machine::m_file): Update comment and reflect type change.
1014 (lnp_state_machine::record_line): Reflect type change.
1015 (dwarf_decode_lines): Reflect API change.
1016 (file_file_name): Likewise.
1017 (file_full_name): Likewise.
1018
1019 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1022
1023 2019-10-21 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1026
1027 2019-10-21 Tom Tromey <tom@tromey.com>
1028
1029 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1030 NM_H. Use AC_CONFIG_LINKS.
1031 * configure: Rebuild.
1032 * Makefile.in (NM_H): New variable.
1033 (generated_files): Add NM_H. Remove gcore.
1034 (nm.h, stamp-nmh): New targets.
1035
1036 2019-10-20 Tom Tromey <tom@tromey.com>
1037
1038 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1039 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1040 obsolete comment.
1041 (put_objfile_before): Now static.
1042
1043 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * gdbsupport/common-utils.h (startswith): Change return type to
1046 bool.
1047
1048 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1049
1050 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1051 * breakpoint.c (bp_locations_compare): Rename to...
1052 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1053 (update_global_location_list): Use std::sort instead of qsort.
1054 * buildsym.c (compare_line_numbers): Rename to...
1055 (lte_is_less_than): ...this, and change to std::sort semantics.
1056 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1057 instead of qsort.
1058 * disasm.c (compare_lines): Rename to...
1059 (line_is_less_than): ...this, and change to std::sort semantics.
1060 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1061 of qsort.
1062 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1063 (fde_is_less_than): ...this, and change to std::sort semantics.
1064 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1065 * mdebugread.c (compare_blocks):
1066 (block_is_less_than): ...this, and change to std::sort semantics.
1067 (sort_blocks): Call std::sort instead of qsort.
1068 * objfiles.c (qsort_cmp): Rename to...
1069 (sort_cmp): ...this, and change to std::sort semantics.
1070 (update_section_map): Call std::sort instead of qsort.
1071 * remote.c (compare_pnums): Remove.
1072 (map_regcache_remote_table): Call std::sort instead of qsort.
1073 * utils.c (compare_positive_ints): Remove.
1074 * utils.h (compare_positive_ints): Remove.
1075 * xcoffread.c (compare_lte): Remove.
1076 (arrange_linetable): Call std::sort instead of qsort.
1077
1078 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1079
1080 * symfile.c (init_entry_point_info): Fix typo.
1081 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1082
1083 2019-10-18 Tom de Vries <tdevries@suse.de>
1084
1085 * aarch64-tdep.c: Fix typos in comments.
1086 * ada-lang.c: Same.
1087 * ada-tasks.c: Same.
1088 * alpha-tdep.c: Same.
1089 * alpha-tdep.h: Same.
1090 * amd64-nat.c: Same.
1091 * amd64-windows-tdep.c: Same.
1092 * arc-tdep.c: Same.
1093 * arc-tdep.h: Same.
1094 * arch-utils.c: Same.
1095 * arm-nbsd-tdep.c: Same.
1096 * arm-tdep.c: Same.
1097 * ax-gdb.c: Same.
1098 * blockframe.c: Same.
1099 * btrace.c: Same.
1100 * c-varobj.c: Same.
1101 * coff-pe-read.c: Same.
1102 * coffread.c: Same.
1103 * cris-tdep.c: Same.
1104 * darwin-nat.c: Same.
1105 * dbxread.c: Same.
1106 * dcache.c: Same.
1107 * disasm.c: Same.
1108 * dtrace-probe.c: Same.
1109 * dwarf-index-write.c: Same.
1110 * dwarf2-frame-tailcall.c: Same.
1111 * dwarf2-frame.c: Same.
1112 * dwarf2read.c: Same.
1113 * eval.c: Same.
1114 * exceptions.c: Same.
1115 * fbsd-tdep.c: Same.
1116 * findvar.c: Same.
1117 * frame.c: Same.
1118 * frv-tdep.c: Same.
1119 * gnu-v3-abi.c: Same.
1120 * go32-nat.c: Same.
1121 * h8300-tdep.c: Same.
1122 * hppa-tdep.c: Same.
1123 * i386-linux-tdep.c: Same.
1124 * i386-tdep.c: Same.
1125 * ia64-libunwind-tdep.c: Same.
1126 * ia64-tdep.c: Same.
1127 * infcmd.c: Same.
1128 * infrun.c: Same.
1129 * linespec.c: Same.
1130 * linux-nat.c: Same.
1131 * linux-thread-db.c: Same.
1132 * machoread.c: Same.
1133 * mdebugread.c: Same.
1134 * mep-tdep.c: Same.
1135 * mn10300-tdep.c: Same.
1136 * namespace.c: Same.
1137 * objfiles.c: Same.
1138 * opencl-lang.c: Same.
1139 * or1k-tdep.c: Same.
1140 * osabi.c: Same.
1141 * ppc-linux-nat.c: Same.
1142 * ppc-linux-tdep.c: Same.
1143 * ppc-sysv-tdep.c: Same.
1144 * printcmd.c: Same.
1145 * procfs.c: Same.
1146 * record-btrace.c: Same.
1147 * record-full.c: Same.
1148 * remote-fileio.c: Same.
1149 * remote.c: Same.
1150 * rs6000-tdep.c: Same.
1151 * s12z-tdep.c: Same.
1152 * score-tdep.c: Same.
1153 * ser-base.c: Same.
1154 * ser-go32.c: Same.
1155 * skip.c: Same.
1156 * sol-thread.c: Same.
1157 * solib-svr4.c: Same.
1158 * solib.c: Same.
1159 * source.c: Same.
1160 * sparc-nat.c: Same.
1161 * sparc-sol2-tdep.c: Same.
1162 * sparc-tdep.c: Same.
1163 * sparc64-tdep.c: Same.
1164 * stabsread.c: Same.
1165 * stack.c: Same.
1166 * symfile.c: Same.
1167 * symtab.c: Same.
1168 * target-descriptions.c: Same.
1169 * target-float.c: Same.
1170 * thread.c: Same.
1171 * utils.c: Same.
1172 * valops.c: Same.
1173 * valprint.c: Same.
1174 * value.c: Same.
1175 * varobj.c: Same.
1176 * windows-nat.c: Same.
1177 * xcoffread.c: Same.
1178 * xstormy16-tdep.c: Same.
1179 * xtensa-tdep.c: Same.
1180
1181 2019-10-17 Tom Tromey <tromey@adacore.com>
1182
1183 * configure: Rebuild.
1184 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1185 in AC_CONFIG_FILES invocation.
1186 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1187 new-style config.status invocation.
1188
1189 2019-10-17 Tom de Vries <tdevries@suse.de>
1190
1191 * arm-nbsd-nat.c: Fix typos in comments.
1192 * arm-tdep.c: Same.
1193 * darwin-nat-info.c: Same.
1194 * dwarf2read.c: Same.
1195 * elfread.c: Same.
1196 * event-top.c: Same.
1197 * findvar.c: Same.
1198 * gdbtypes.c: Same.
1199 * hppa-tdep.c: Same.
1200 * i386-tdep.c: Same.
1201 * jit.c: Same.
1202 * main.c: Same.
1203 * mdebugread.c: Same.
1204 * moxie-tdep.c: Same.
1205 * nto-procfs.c: Same.
1206 * osabi.c: Same.
1207 * ppc-linux-tdep.c: Same.
1208 * remote.c: Same.
1209 * riscv-tdep.c: Same.
1210 * s390-tdep.c: Same.
1211 * sh-tdep.c: Same.
1212 * sparc-linux-tdep.c: Same.
1213 * sparc-nat.c: Same.
1214 * stack.c: Same.
1215 * target-descriptions.c: Same.
1216 * top.c: Same.
1217 * varobj.c: Same.
1218
1219 2019-10-16 Tom Tromey <tom@tromey.com>
1220
1221 * objfiles.h (struct objfile) <original_name>: Now const.
1222
1223 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1224
1225 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1226 pass on to sigsetjmp's second argument.
1227 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1228
1229 2019-10-16 Keith Seitz <keiths@redhat.com>
1230
1231 PR gdb/23567
1232 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1233 sections whose size is greater than the file size.
1234
1235 2019-10-16 Jim Wilson <jimw@sifive.com>
1236
1237 * riscv-tdep.c (riscv_gcc_target_options): New.
1238 (riscv_gnu_triplet_regexp): New.
1239 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1240 set_gdbarch_gnu_triplet_regexp.
1241
1242 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1243
1244 * Makefile.in: Add xml-builtin.h.
1245 * features/feature_to_c.sh: Add an include for xml-builtin.h
1246 to ensure that the compiler checks that the types match.
1247 * xml-builtin.h: New file.
1248 * xml-support.c (fetch_xml_builtin): Add missing const.
1249 * xml-support.h: Remove declaration of xml_builtins.
1250
1251 2019-10-16 Tom de Vries <tdevries@suse.de>
1252
1253 PR tdep/25096
1254 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1255 (amd64_classify_aggregate): ... here.
1256 (amd64_classify_aggregate_field): Handled fiels of nested structs
1257 recursively.
1258
1259 2019-10-16 Tom de Vries <tdevries@suse.de>
1260
1261 PR tdep/24104
1262 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1263 that handles 'theclass'.
1264
1265 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1266
1267 * linespec.c (decode_digits_ordinary): Update comment.
1268 * make-target-delegates: No longer need to handle VEC case.
1269 * memrange.c (normalize_mem_ranges): Update comment.
1270 * namespace.c (add_using_directive): Update comment.
1271 * objc-lang.c (uniquify_strings): Update comment.
1272 * ppc-linux-nat.c (struct thread_points): Update comment.
1273 * probe.h (find_probes_in_objfile): Update comment.
1274 * target.h (enum flash_preserve_mode): Update comment.
1275 * varobj.c (varobj_restrict_range): Update comment.
1276 * varobj.h (varobj_list_children): Update comment.
1277
1278 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * Makefile.in: Remove references to vec.h and vec.c.
1281 * aarch64-tdep.c: No longer include vec.h.
1282 * ada-lang.c: Likewise.
1283 * ada-lang.h: Likewise.
1284 * arm-tdep.c: Likewise.
1285 * ax.h: Likewise.
1286 * breakpoint.h: Likewise.
1287 * charset.c: Likewise.
1288 * cp-support.h: Likewise.
1289 * dtrace-probe.c: Likewise.
1290 * dwarf2read.c: Likewise.
1291 * extension.h: Likewise.
1292 * gdb_bfd.c: Likewise.
1293 * gdbsupport/gdb_vecs.h: Likewise.
1294 * gdbsupport/vec.c: Remove.
1295 * gdbsupport/vec.h: Remove.
1296 * gdbthread.h: Likewise.
1297 * guile/scm-type.c: Likewise.
1298 * inline-frame.c: Likewise.
1299 * machoread.c: Likewise.
1300 * memattr.c: Likewise.
1301 * memrange.h: Likewise.
1302 * namespace.h: Likewise.
1303 * nat/linux-btrace.h: Likewise.
1304 * osdata.c: Likewise.
1305 * parser-defs.h: Likewise.
1306 * progspace.h: Likewise.
1307 * python/py-type.c: Likewise.
1308 * record-btrace.c: Likewise.
1309 * rust-exp.y: Likewise.
1310 * solib-target.c: Likewise.
1311 * stap-probe.c: Likewise.
1312 * target-descriptions.c: Likewise.
1313 * target-memory.c: Likewise.
1314 * target.h: Likewise.
1315 * varobj.c: Likewise.
1316 * varobj.h: Likewise.
1317 * xml-support.h: Likewise.
1318
1319 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1322 Update for new std::vector based implementation.
1323 (process_psymtab_comp_unit_reader): Likewise.
1324 (scan_partial_symbols): Likewise.
1325 (recursively_compute_inclusions): Likewise.
1326 (compute_compunit_symtab_includes): Likewise.
1327 (process_imported_unit_die): Likewise.
1328 (queue_and_load_dwo_tu): Likewise.
1329 (follow_die_sig_1): Likewise.
1330 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1331 (typedef dwarf2_per_cu_ptr): Remove.
1332 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1333 function.
1334 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1335 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1336 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1337 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1338 std::vector.
1339
1340 2019-10-15 Tom Tromey <tromey@adacore.com>
1341
1342 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1343 TID.
1344
1345 2019-10-15 Tom Tromey <tromey@adacore.com>
1346
1347 * windows-nat.c (windows_nat_target::fetch_registers)
1348 (windows_nat_target::store_registers): Rename "pid" to "tid".
1349
1350 2019-10-15 Tom Tromey <tromey@adacore.com>
1351
1352 * gdbarch.h, gdbarch.c: Rebuild.
1353 * gdbarch.sh (gcc_target_options): Change return type to
1354 std::string.
1355 * compile/compile.c (get_args): Update.
1356 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1357 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1358 std::string.
1359 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1360 std::string.
1361 * arch-utils.c (default_gcc_target_options): Return std::string.
1362 * arch-utils.h (default_gcc_target_options): Return std::string.
1363 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1364
1365 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1366
1367 * breakpoint.c (breakpoint_chain): Make static.
1368 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1369 of accessing breakpoint_chain.
1370
1371 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1372
1373 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1374 to a gdb::function_view and return value to bool.
1375 * breakpoint.h (iterate_over_breakpoints): Likewise.
1376 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1377 (pop_dummy_frame): Update.
1378 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1379 (gdbscm_breakpoints): Update.
1380 * python/py-breakpoint.c (build_bp_list): Update.
1381 (gdbpy_breakpoints): Update.
1382 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1383 Update.
1384 (bpfinishpy_handle_stop): Update.
1385 (bpfinishpy_handle_exit): Update.
1386 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1387 (svr4_update_solib_event_breakpoints): Update.
1388
1389 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1390
1391 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1392 when unwrapping single-field structs.
1393
1394 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * dwarf2read.c: Remove includes.
1397
1398 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1399
1400 * ui-out.c (ui_out::call_do_message): Silence
1401 -Wformat-nonliteral warning.
1402
1403 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1404
1405 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1406 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1407 include: readline/tilde.h.
1408
1409 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1410
1411 * remote.c (remote_target::get_trace_status): Remove declaration of
1412 trace_regblock_size.
1413
1414 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1415
1416 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1417 (show_user): Remove declaration of cmdlist.
1418 * cli/cli-cmds.h (max_user_call_depth): Declare.
1419 * cli/cli-script.c (execute_user_command): Remove declaration
1420 of max_user_call_depth.
1421
1422 2019-10-11 Jim Wilson <jimw@sifive.com>
1423
1424 * gdbsupport/print-utils.h (pulongest): Fix comment.
1425 (plongest): Likewise.
1426 (phex): Add missing comment, mention leading zeros.
1427 (phex_nz): Add mention of no leading zeros to comment.
1428
1429 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1430 plongest instead of unsigned long long cast.
1431
1432 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1433
1434 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1435 for external_editor_command and gdbtk_test.
1436
1437 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1438
1439 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1440 * varobj.c (varobjdebug): Move comment to...
1441 * varobj.h (varobjdebug): ...here, and declare.
1442
1443 2019-10-09 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1446 erase_data_content.
1447
1448 2019-10-09 Tom Tromey <tom@tromey.com>
1449
1450 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1451 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1452 * tui/tui-command.c (tui_cmd_window::resize)
1453 (tui_refresh_cmd_win): Update.
1454 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1455 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1456 * tui/tui-data.c (~tui_gen_win_info): Remove.
1457 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1458 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1459 (tui_redisplay_readline, tui_mld_flush)
1460 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1461 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1462 (tui_data_window::erase_data_content)
1463 (tui_data_item_window::rerender)
1464 (tui_data_item_window::refresh_window): Update.
1465 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1466 (box_win, tui_gen_win_info::make_window)
1467 (tui_gen_win_info::make_visible): Update.
1468 (tui_delete_win): Remove.
1469 * tui/tui-winsource.c
1470 (tui_source_window_base::do_erase_source_content): Update.
1471 (tui_show_source_line, tui_source_window_base::update_tab_width)
1472 (tui_source_window_base::update_exec_info): Update.
1473 * tui/tui-data.h (struct curses_deleter): New.
1474 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1475 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1476
1477 2019-10-09 Tom Tromey <tom@tromey.com>
1478
1479 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1480
1481 2019-10-09 Tom Tromey <tom@tromey.com>
1482
1483 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1484 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1485
1486 2019-10-09 Tom Tromey <tom@tromey.com>
1487
1488 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1489 window height directly.
1490 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1491 declare.
1492 * tui/tui-layout.c (tui_default_win_height): Remove.
1493 (tui_default_win_viewport_height): Remove.
1494
1495 2019-10-09 Tom Tromey <tom@tromey.com>
1496
1497 * tui/tui.h: Remove comments.
1498
1499 2019-10-09 Tom de Vries <tdevries@suse.de>
1500
1501 * python/lib/gdb/printer/bound_registers.py: Use
1502 '^builtin_type_bound128' as regexp argument for
1503 add_builtin_pretty_printer.
1504
1505 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1506
1507 * guile/guile.c (guile_extension_script_ops): Remove forward
1508 declaration and mark as static.
1509 (guile_script_ops): Likewise.
1510 (extension_language_guile): Move further down in the file so
1511 it can reference the definitions for guile_{extension_,}script_ops.
1512
1513 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1514
1515 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1516 except SORTL, DFLTCC, and KDSA.
1517
1518 2019-10-08 Tom Tromey <tromey@adacore.com>
1519
1520 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1521 (struct safe_symbol_file_add_args): Remove.
1522
1523 2019-10-08 Tom Tromey <tromey@adacore.com>
1524
1525 * windows-nat.c: Don't include buildsym-legacy.h.
1526
1527 2019-10-08 Tom Tromey <tromey@adacore.com>
1528
1529 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1530
1531 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1532
1533 * gdbtypes.c (overload_debug): Move comment to header.
1534 * gdbtypes.h (overload_debug): Declare.
1535 * valops.c: Remove declaration of overload_debug, instead
1536 include gdbtypes.h.
1537
1538 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1539
1540 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1541 through _().
1542 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1543 move comment...
1544 * language.h (lang_frame_mismatch_warn): ... here. Also add
1545 declaration.
1546 * top.c (lang_frame_mismatch_warn): Remove declaration.
1547 (check_frame_language_change): Pass lang_frame_mismatch_warn
1548 through _().
1549
1550 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1551
1552 * c-lang.h (vtbl_ptr_name): Declare.
1553 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1554 it from the header.
1555 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1556
1557 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1558
1559 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1560 gdb_static_assert.
1561
1562 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1563
1564 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1565 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1566 * ctfread.c: New file.
1567 * ctfread.h: New file.
1568 * elfread.c: Include ctfread.h.
1569 (struct elfinfo text_p): New member ctfsect.
1570 (elf_locate_sections): Mark CTF section.
1571 (elf_symfile_read): Call elfctf_build_psymtabs.
1572 * Makefile.in (LIBCTF): Add.
1573 (CLIBS): Use it.
1574 (CDEPS): Likewise.
1575 (DIST): Add ctfread.c.
1576
1577 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * ctfread.c (struct nextfield): Renamed to ...
1580 (struct ctf_nextfield): ... this.
1581 (struct field_info): Renamed to ...
1582 (strut ctf_field_info): ... this.
1583 (attach_fields_to_type): Update for renamed structures.
1584 (ctf_add_member_cb): Likewise.
1585 (ctf_add_enum_member_cb): Likewise.
1586 (process_struct_members): Likewise.
1587 (process_enum_type): Likewise.
1588
1589 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1590
1591 * tracectf.h: Rename, was ctf.h.
1592 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1593 * tracefile.c: Likewise.
1594 * tracepoint.c: Remove unused include ctf.h.
1595 * mi/mi-main.c: Likewise.
1596 * Makefile.in Replace ctf.c with tracectf.c.
1597
1598 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1599
1600 * version.in: Change version number to "9.0.50.DATE-git".
1601
1602 2019-10-03 Tom Tromey <tom@tromey.com>
1603
1604 PR rust/24976:
1605 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1606
1607 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1610 cp_search_name_hash.
1611 * NEWS: Add entry about nested function support.
1612
1613 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1614 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1617 for nested static variables when searchin VAR_DOMAIN.
1618 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1619 global scope, update comment.
1620 (add_partial_subprogram): Call add_partial_subprogram recursively
1621 for nested subroutines when processinng Fortran.
1622 (load_partial_dies): Process the child entities of a subprogram
1623 when processing Fortran.
1624 (partial_die_parent_scope): Handle building scope
1625 for Fortran nested functions.
1626 (process_die): Record that nested functions have a scope.
1627 (new_symbol): Always record Fortran subprograms on the global
1628 symbol list.
1629 (determine_prefix): How to build the prefix for Fortran
1630 subprograms.
1631
1632 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1635 have just sent the thread a SIGSTOP and are waiting for it to
1636 arrive.
1637
1638 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * btrace.c (btrace_add_pc): Remove whitespace before the template
1641 parameter in 'std::vector <...>'.
1642 (parse_xml_btrace_block): Likewise.
1643 (btrace_maint_decode_pt): Likewise.
1644 (btrace_maint_update_packets): Likewise.
1645 (btrace_maint_print_packets): Likewise.
1646 * btrace.h (struct btrace_maint_info): Likewise.
1647 * dwarf2read.c (struct type_unit_group): Likewise.
1648 (build_type_psymtabs_reader): Likewise.
1649 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1650 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1651 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1652
1653 2019-10-03 Tom de Vries <tdevries@suse.de>
1654
1655 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1656 the first line of the help text for set/show style metadata.
1657
1658 2019-10-02 Tom Tromey <tromey@adacore.com>
1659
1660 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1661 * gdbsupport/common-inferior.c: New file.
1662 * infcmd.c (startup_with_shell): Don't define.
1663 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1664 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1665 * inferior.h (startup_with_shell): Don't declare.
1666
1667 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1668
1669 * gdbsupport/gdb_assert.h: Include errors.h.
1670 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1671
1672 2019-10-02 Tom Tromey <tromey@adacore.com>
1673
1674 * NEWS: Add $_ada_exception entry.
1675 * ada-lang.c (struct ada_catchpoint): Add constructor.
1676 <m_kind>: New member.
1677 (allocate_location_exception, re_set_exception): Remove
1678 "ex" parameter.
1679 (should_stop_exception): Compute $_ada_exception.
1680 (check_status_exception, print_it_exception)
1681 (print_one_exception, print_mention_exception): Remove
1682 "ex" parameter.
1683 (allocate_location_catch_exception, re_set_catch_exception)
1684 (check_status_exception, print_it_catch_exception)
1685 (print_one_catch_exception, print_mention_catch_exception)
1686 (print_recreate_catch_exception)
1687 (allocate_location_catch_exception_unhandled)
1688 (re_set_catch_exception_unhandled)
1689 (check_status_exception, print_it_catch_exception_unhandled)
1690 (print_one_catch_exception_unhandled)
1691 (print_mention_catch_exception_unhandled)
1692 (print_recreate_catch_exception_unhandled)
1693 (allocate_location_catch_assert, re_set_catch_assert)
1694 (check_status_assert, print_it_catch_assert)
1695 (print_one_catch_assert, print_mention_catch_assert)
1696 (print_recreate_catch_assert)
1697 (allocate_location_catch_handlers, re_set_catch_handlers)
1698 (check_status_handlers, print_it_catch_handlers)
1699 (print_one_catch_handlers, print_mention_catch_handlers)
1700 (print_recreate_catch_handlers): Remove.
1701 (create_ada_exception_catchpoint): Update.
1702 (initialize_ada_catchpoint_ops): Update.
1703
1704 2019-10-02 Tom Tromey <tromey@adacore.com>
1705
1706 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1707 (create_excep_cond_exprs): Simplify exception string computation.
1708 (ada_exception_catchpoint_cond_string): Likewise.
1709
1710 2019-10-02 Tom Tromey <tromey@adacore.com>
1711
1712 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1713 * ada-lang.c (lesseq_defined_than): Handle
1714 LOC_STATIC.
1715 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1716 parameter.
1717 (dwarf2_has_info): Likewise.
1718 (new_symbol): Set maybe_copied on symbol when
1719 appropriate.
1720 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1721 parameter.
1722 <can_copy>: New member.
1723 * elfread.c (record_minimal_symbol): Set maybe_copied
1724 on symbol when appropriate.
1725 (elf_symfile_read): Update call to dwarf2_has_info.
1726 * minsyms.c (lookup_minimal_symbol_linkage): New
1727 function.
1728 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1729 * symtab.c (get_symbol_address, get_msymbol_address):
1730 New functions.
1731 * symtab.h (get_symbol_address, get_msymbol_address):
1732 Declare.
1733 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1734 maybe_copied.
1735 (struct symbol, struct minimal_symbol) <maybe_copied>:
1736 New member.
1737
1738 2019-10-02 Tom Tromey <tromey@adacore.com>
1739
1740 * source.c (struct current_source_location): New.
1741 (current_source_key): New global.
1742 (current_source_symtab, current_source_line)
1743 (current_source_pspace): Remove.
1744 (get_source_location): New function.
1745 (get_current_source_symtab_and_line)
1746 (set_default_source_symtab_and_line)
1747 (set_current_source_symtab_and_line)
1748 (clear_current_source_symtab_and_line, select_source_symtab)
1749 (info_source_command, print_source_lines_base)
1750 (info_line_command, search_command_helper, _initialize_source):
1751 Update.
1752
1753 2019-10-02 Tom Tromey <tromey@adacore.com>
1754
1755 * source.c (select_source_symtab): Don't call
1756 decode_line_with_current_source.
1757
1758 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * symtab.c (lookup_global_symbol): Search global block.
1761
1762 2019-10-02 Tom Tromey <tromey@adacore.com>
1763
1764 * coffread.c (process_coff_symbol): Update.
1765 * dwarf2read.c (var_decode_location, new_symbol): Update.
1766 * mdebugread.c (parse_symbol): Update.
1767 * objfiles.c (relocate_one_symbol): Update.
1768 * stabsread.c (define_symbol, fix_common_block)
1769 (scan_file_globals): Update.
1770 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1771 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1772 * xcoffread.c (process_xcoff_symbol): Update.
1773
1774 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1775
1776 * MAINTAINERS: Update my email address.
1777
1778 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1779
1780 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1781 std::vector.
1782 (build_type_psymtabs_reader): Update for std::vector.
1783 (build_type_psymtab_dependencies): Likewise.
1784 * dwarf2read.h: Remove use of DEF_VEC_P.
1785 (typedef sig_type_ptr): Delete.
1786
1787 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1790 to std::vector.
1791 (btrace_maint_decode_pt): Likewise, and move allocation of the
1792 vector outside of the loop.
1793 (btrace_maint_update_packets): Update to handle change from VEC to
1794 std::vector.
1795 (btrace_maint_print_packets): Likewise.
1796 (maint_info_btrace_cmd): Likewise.
1797 * btrace.h: Remove use of DEF_VEC_O.
1798 (typedef btrace_pt_packet_s): Delete.
1799 (struct btrace_maint_info) <packets>: Change fromm VEC to
1800 std::vector.
1801 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1802
1803 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1806 make accesses into the vector constant references.
1807 (btrace_add_pc): Update for std::vector.
1808 (btrace_stitch_bts): Likewise.
1809 (parse_xml_btrace_block): Likewise.
1810 (btrace_maint_update_packets): Likewise.
1811 (btrace_maint_print_packets): Likewise.
1812 (maint_info_btrace_cmd): Likewise.
1813 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1814 std::vector.
1815 (btrace_data::empty): Likewise.
1816 (btrace_data_append): Likewise.
1817 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1818 (typedef btrace_block_s): Delete.
1819 (struct btrace_block): Add constructor.
1820 (struct btrace_data_bts) <blocks>: Change to std::vector.
1821 * nat/linux-btrace.c (perf_event_read_bts): Update for
1822 std::vector.
1823 (linux_read_bts): Likewise.
1824
1825 2019-10-01 Tom Tromey <tom@tromey.com>
1826
1827 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1828
1829 2019-10-01 Tom Tromey <tom@tromey.com>
1830
1831 * stack.c (print_frame, info_frame_command_core): Use
1832 styled_string.
1833 * linux-thread-db.c (try_thread_db_load_1)
1834 (try_thread_db_load_from_pdir_1): Use styled_string.
1835 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1836 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1837 (maybe_print_unsupported_script_warning)
1838 (maybe_print_script_not_found_warning): Use styled_string.
1839 * ada-lang.c (user_select_syms): Use styled_string.
1840
1841 2019-10-01 Tom Tromey <tom@tromey.com>
1842
1843 * p-lang.c (pascal_printstr): Use metadata style.
1844 * value.c (show_convenience): Use metadata style.
1845 * valprint.c (valprint_check_validity, val_print_optimized_out)
1846 (val_print_not_saved, val_print_unavailable)
1847 (val_print_invalid_address, generic_val_print, val_print)
1848 (value_check_printable, val_print_array_elements): Use metadata
1849 style.
1850 * ui-out.h (class ui_out) <field_fmt>: New overload.
1851 <do_field_fmt>: Add style parameter.
1852 * ui-out.c (ui_out::field_fmt): New overload.
1853 * typeprint.c (type_print_unknown_return_type)
1854 (val_print_not_allocated, val_print_not_associated): Use metadata
1855 style.
1856 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1857 parameter.
1858 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1859 * tracepoint.c (tvariables_info_1): Use metadata style.
1860 * stack.c (print_frame_arg, print_frame_info, print_frame)
1861 (info_frame_command_core): Use metadata style.
1862 * skip.c (info_skip_command): Use metadata style.
1863 * rust-lang.c (rust_print_enum): Use metadata style.
1864 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1865 metadata style.
1866 * python/py-framefilter.c (py_print_single_arg): Use metadata
1867 style.
1868 * printcmd.c (do_one_display, print_variable_and_value): Use
1869 metadata style.
1870 * p-valprint.c (pascal_val_print)
1871 (pascal_object_print_value_fields): Use metadata style.
1872 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1873 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1874 parameter.
1875 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1876 * m2-valprint.c (m2_print_long_set): Use metadata style.
1877 * m2-typeprint.c (m2_print_type): Use metadata style.
1878 * infcmd.c (print_return_value_1): Use metadata style.
1879 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1880 * f-valprint.c (info_common_command_for_block): Use metadata
1881 style.
1882 * f-typeprint.c (f_type_print_base): Use metadata style.
1883 * expprint.c (print_subexp_standard): Use metadata style.
1884 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1885 * cli/cli-style.h (class cli_style_option): Add constructor.
1886 (metadata_style): Declare.
1887 * cli/cli-style.c (metadata_style): New global.
1888 (_initialize_cli_style): Register metadata style.
1889 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1890 parameter.
1891 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1892 * c-typeprint.c (c_type_print_base_struct_union)
1893 (c_type_print_base_1): Use metadata style.
1894 * breakpoint.c (watchpoint_value_print)
1895 (print_one_breakpoint_location): Use metadata style.
1896 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1897 style.
1898 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1899 style.
1900 * ada-valprint.c (val_print_packed_array_elements, printstr)
1901 (print_field_values, ada_val_print_ref, ada_val_print): Use
1902 metadata style.
1903 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1904 style.
1905 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1906 style.
1907 * ada-lang.c (user_select_syms): Use metadata style.
1908
1909 2019-10-01 Tom Tromey <tom@tromey.com>
1910
1911 * cli/cli-cmds.c (pwd_command): Style output.
1912
1913 2019-10-01 Pedro Alves <palves@redhat.com>
1914 Tom Tromey <tom@tromey.com>
1915
1916 * symtab.c (print_symbol_info): Use %ps.
1917 (print_msymbol_info): Use %ps.
1918 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1919 * printcmd.c (print_variable_and_value): Use %ps.
1920 * macrocmd.c (show_pp_source_pos): Use %ps.
1921 * infrun.c (print_exited_reason): Use ui_out::message.
1922 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1923 (describe_other_breakpoints): Use ui_out::message and new
1924 formats.
1925 (say_where): Use new formats.
1926 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1927 and new formats.
1928
1929 2019-10-01 Pedro Alves <palves@redhat.com>
1930 Tom Tromey <tom@tromey.com>
1931
1932 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1933 (test_gdb_formats): New function.
1934 (run_tests): Call it.
1935 (test_format_specifier): Update.
1936 * utils.h (fputs_filtered): Update comment.
1937 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1938 (fputs_styled_unfiltered): Declare.
1939 * utils.c (fputs_styled_unfiltered): New function.
1940 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1941 (vfprintf_filtered): Update.
1942 (vfprintf_unfiltered, vprintf_filtered): Update.
1943 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1944 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1945 disallow_ui_out_field>: New constants.
1946 (enum class field_kind): New.
1947 (struct base_field_s, struct signed_field_s): New.
1948 (signed_field): New function.
1949 (struct string_field_s): New.
1950 (string_field): New function.
1951 (struct styled_string_s): New.
1952 (styled_string): New function.
1953 (class ui_out) <message>: Add comment.
1954 <vmessage, call_do_message>: New methods.
1955 <do_message>: Add style parameter.
1956 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1957 methods.
1958 (ui_out::message): Rewrite.
1959 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1960 parameter.
1961 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1962 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1963 gdb_extensions parameter.
1964 (class format_piece): Add parameter to constructor.
1965 (n_int_args): New field.
1966 * gdbsupport/format.c (format_pieces::format_pieces): Add
1967 gdb_extensions parameter. Handle '*'.
1968 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1969 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1970 vfprintf_styled_no_gdbfmt.
1971 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1972 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1973 unfiltered output.
1974 * ui-style.h (struct ui_file_style) <ptr>: New method.
1975
1976 2019-10-01 Tom Tromey <tom@tromey.com>
1977
1978 * unittests/format_pieces-selftests.c: Update. Add final format.
1979 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1980 empty literal pieces.
1981
1982 2019-10-01 Tom Tromey <tom@tromey.com>
1983
1984 * ui-out.h (enum class ui_out_style_kind): Remove.
1985 (class ui_out) <field_string, field_stsream, do_field_string>:
1986 Change type of "style".
1987 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1988 (ui_out::field_string): Update.
1989 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1990 of "style".
1991 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1992 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1993 * stack.c (print_frame_arg, print_frame_info, print_frame):
1994 Update.
1995 * source.c (print_source_lines_base): Update.
1996 * solib.c (info_sharedlibrary_command): Update.
1997 * skip.c (info_skip_command): Update.
1998 * record-btrace.c (btrace_call_history_src_line)
1999 (btrace_call_history): Update.
2000 * python/py-framefilter.c (py_print_frame): Update.
2001 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2002 "style".
2003 * mi/mi-out.c (mi_ui_out::do_table_header)
2004 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2005 (mi_ui_out::do_field_string): Update.
2006 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2007 Update.
2008 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2009 "style".
2010 * cli-out.c (cli_ui_out::do_table_header)
2011 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2012 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2013 (cli_ui_out::do_field_fmt): Update.
2014 * breakpoint.c (print_breakpoint_location): Update.
2015 (update_static_tracepoint): Update.
2016
2017 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2018
2019 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2020 conversion of gdb_datadir.
2021 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2022 remove not needed c_str ().
2023
2024 2019-09-30 Ali Tamur <tamur@google.com>
2025
2026 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2027 (dwarf2_string_attr): Likewise.
2028
2029 2019-09-30 Ali Tamur <tamur@google.com>
2030
2031 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2032 (process_full_type_unit): Likewise.
2033 (dump_die_shallow): Likewise.
2034 (cu_debug_loc_section): Likewise.
2035
2036 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2037
2038 * minsyms.c (compare_minimal_symbols): Rename to...
2039 (minimal_symbol_is_less_than): ...this, and adjust to STL
2040 conventions (return bool, take arguments as references)
2041 (minimal_symbol_reader::install): Call std::sort instead
2042 of qsort.
2043
2044 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2045
2046 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2047 hash and why.
2048 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2049 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2050
2051 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2052
2053 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2054 * psympriv.h (add_psymbol_to_list): Move comment here and update
2055 it.
2056
2057 2019-09-29 Tom de Vries <tdevries@suse.de>
2058
2059 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2060 Use $tmpdir/$(basename "$output_file").dwz instead of
2061 "${output_file}.dwz".
2062
2063 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2064
2065 PR gdb/25045
2066 * hppa-linux-nat.c: Include gdbarch.h.
2067
2068 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2069
2070 * blockframe.c (find_pc_partial_function): Change return type to bool.
2071 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2072 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2073 (stub_gnu_ifunc_resolve_name): Likewise.
2074 * symtab.c (compare_filenames_for_search): Likewise.
2075 (compare_glob_filenames_for_search): Likewise.
2076 (matching_obj_sections): Likewise.
2077 (symbol_matches_domain): Likewise.
2078 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2079 (find_line_pc): Change return type to bool.
2080 (find_line_pc_range): Likewise.
2081 (producer_is_realview): Likewise.
2082 * symtab.h (symbol_matches_domain): Likewise.
2083 (find_pc_partial_function): Likewise.
2084 (find_pc_line_pc_range): Likewise.
2085 (in_gnu_ifunc_stub): Likewise.
2086 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2087 (find_line_pc): Likewise.
2088 (find_line_pc_range): Likewise.
2089 (matching_obj_sections): Likewise.
2090 (find_line_symtab): Change out parameter to bool.
2091 (producer_is_realview): Change return type to bool.
2092 (compare_filenames_for_search): Likewise.
2093 (compare_glob_filenames_for_search): Likewise.
2094
2095 2019-09-26 Tom Tromey <tom@tromey.com>
2096
2097 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2098 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2099 * gdb_usleep.h: Remove.
2100 * gdb_usleep.c: Remove.
2101 * utils.c: Don't include gdb_usleep.h.
2102
2103 2019-09-26 Tom Tromey <tromey@adacore.com>
2104
2105 * python/py-type.c (type_to_type_object): Call check_typedef
2106 for stub types.
2107
2108 2019-09-26 Tom Tromey <tom@tromey.com>
2109
2110 * utils.h (initialize_utils): Don't declare.
2111 * top.c (gdb_init): Don't call initialize_utils.
2112 * utils.c (initialize_utils): Remove. Move contents...
2113 (_initialize_utils): ... here.
2114
2115 2019-09-25 Tom Tromey <tom@tromey.com>
2116
2117 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2118 * utils.h (make_hex_string): Don't declare.
2119 * utils.c (make_hex_string): Remove.
2120
2121 2019-09-24 Tom de Vries <tdevries@suse.de>
2122
2123 PR gdb/23815
2124 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2125 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2126
2127 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2128
2129 * NEWS: Mention new simulator port for PRU.
2130
2131 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2132
2133 * ada-exp.y (write_object_remaining): Update.
2134 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2135 and eliminate the static buffer.
2136 (ada_decode_symbol): Update.
2137 (ada_la_decode): Update.
2138 (ada_sniff_from_mangled_name): Update.
2139 (is_valid_name_for_wild_match): Update.
2140 (ada_lookup_name_info::matches): Update and simplify.
2141 (name_matches_regex): Update.
2142 (ada_add_global_exceptions): Update.
2143 * ada-lang.h (ada_decode): Update signature.
2144 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2145 * dwarf-index-write.c (debug_names::insert): Update.
2146
2147 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2150 formatting.
2151
2152 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2155 Change "nonzero" to "true" in documentation.
2156
2157 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2158
2159 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2160 (_initialize_darwin_solib): Don't set
2161 darwin_so_ops.lookup_lib_global_symbol.
2162 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2163 set_gdbarch_iterate_over_objfiles_in_search_order.
2164 (elf_lookup_lib_symbol): Rename to...
2165 (svr4_iterate_over_objfiles_in_search_order): this, and update
2166 to iterate semantics.
2167 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2168 * solib.c (solib_global_lookup): Remove.
2169 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2170 (solib_global_lookup): Remove.
2171 * symtab.c (lookup_global_or_static_symbol): Remove call to
2172 solib_global_lookup.
2173
2174 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2175
2176 * NEWS: Move entries about default MI version now being
2177 version 3, and about the GDB/MI fix for multi-location
2178 breakpoints to the "since GDB 8.3" section.
2179
2180 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2181
2182 GDB 8.3.1 released.
2183
2184 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2185
2186 * NEWS: Mention that Cell/B.E. debugging support was removed.
2187 * MAINTAINERS: Remove spu target.
2188
2189 * config/djgpp/fnchange.lst: Remove entries for removed files.
2190
2191 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2192 spu-multiarch.o, and spu-tdep.o.
2193 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2194 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2195 spu-multiarch.c, and spu-tdep.c.
2196 * spu-linux-nat.c: Remove file.
2197 * spu-multiarch.c: Remove file.
2198 * spu-tdep.c: Remove file.
2199 * spu-tdep.h: Remove file.
2200 * solib-spu.c: Remove file.
2201 * solib-spu.h: Remove file.
2202
2203 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2204 * configure.nat (spu-linux): Remove.
2205 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2206 solib-multiarch.o from gdb_target_obs.
2207 (spu*-*-*): Remove.
2208
2209 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2210 feature flag.
2211 (ppc_linux_no_features): Update.
2212 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2213 Cell/B.E. support.
2214 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2215 (tdesc_powerpc_cell64l): Likewise.
2216 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2217 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2218 Cell/B.E. support.
2219 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2220 Do not include "features/rs6000/powerpc-cell32l.c" or
2221 "features/rs6000/powerpc-cell64l.c".
2222 (ppc_linux_spu_section): Remove.
2223 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2224 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2225 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2226 (ppc_linux_spe_context_lookup): Remove.
2227 (ppc_linux_spe_context_inferior_created): Remove.
2228 (ppc_linux_spe_context_solib_loaded): Remove.
2229 (ppc_linux_spe_context_solib_unloaded): Remove.
2230 (ppc_linux_spe_context): Remove.
2231 (struct ppu2spu_cache): Remove.
2232 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2233 (struct ppu2spu_data): Remove.
2234 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2235 ppu2spu_unwind): Remove.
2236 (ppc_linux_init_abi): Remove Cell/B.E. support.
2237 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2238
2239 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2240 (rs6000/powerpc-cell64l-expedite): Likewise
2241 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2242 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2243 rs6000/powerpc-cell64l.xml.
2244 * features/rs6000/powerpc-cell32l.xml: Remove.
2245 * features/rs6000/powerpc-cell64l.xml: Likewise.
2246 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2247 * features/rs6000/powerpc-cell64l.c: Likewise.
2248 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2249 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2250 * regformats/reg-spu.dat: Remove.
2251
2252 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2253 * corelow.c (struct spuid_list): Remove.
2254 (add_to_spuid_list): Remove.
2255 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2256 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2257 (remote_protocol_features): Remove associated entries.
2258 (_initialize_remote): No longer initialize them.
2259 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2260 * linux-nat.c (SPUFS_MAGIC): Remove.
2261 (linux_proc_xfer_spu): Remove.
2262 (spu_enumerate_spu_ids): Remove.
2263 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2264 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2265 (linux_make_corefile_notes): No longer call it.
2266
2267 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2268 (cooked_write_test): Likewise.
2269
2270 2019-09-20 Tom Tromey <tom@tromey.com>
2271
2272 * NEWS: Mention case-sensitivity of TUI commands.
2273 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2274 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2275 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2276
2277 2019-09-20 Tom Tromey <tom@tromey.com>
2278
2279 * tui/tui-source.c (tui_source_window::set_contents): Use
2280 make_unique_xstrdup.
2281 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2282 make_unique_xstrdup.
2283
2284 2019-09-20 Tom Tromey <tom@tromey.com>
2285
2286 * tui/tui-data.c: Remove separator comments.
2287 * tui/tui-layout.c: Remove separator comments.
2288 * tui/tui-win.c: Remove separator comments.
2289 * tui/tui-wingeneral.c: Remove separator comments.
2290
2291 2019-09-20 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui.h (strcat_to_buf): Don't declare.
2294 * tui/tui.c (strcat_to_buf): Remove.
2295
2296 2019-09-20 Tom Tromey <tom@tromey.com>
2297
2298 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2299 from "fullname".
2300 * tui/tui-source.c (tui_source_window::set_contents)
2301 (tui_source_window::location_matches_p)
2302 (tui_source_window::maybe_update): Update.
2303
2304 2019-09-20 Tom Tromey <tom@tromey.com>
2305
2306 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2307 Update.
2308 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2309 prefix.
2310 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2311 (tui_data_window::line_from_reg_element_no)
2312 (tui_data_window::first_reg_element_no_inline)
2313 (tui_data_window::show_registers)
2314 (tui_data_window::show_register_group)
2315 (tui_data_window::display_registers_from)
2316 (tui_data_window::display_registers_from_line)
2317 (tui_data_window::first_data_item_displayed)
2318 (tui_data_window::delete_data_content_windows)
2319 (tui_data_window::erase_data_content)
2320 (tui_data_window::do_scroll_vertical)
2321 (tui_data_window::refresh_window)
2322 (tui_data_window::check_register_values): Update.
2323
2324 2019-09-20 Tom Tromey <tom@tromey.com>
2325
2326 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2327 (struct tui_locator_window) <full_name, proc_name>: Now
2328 std::string.
2329 * tui/tui-stack.c (tui_locator_window::make_status_line)
2330 (tui_locator_window::set_locator_fullname)
2331 (tui_locator_window::set_locator_info): Update.
2332 * tui/tui-source.c (tui_source_window::set_contents)
2333 (tui_source_window::showing_source_p): Update.
2334
2335 2019-09-20 Tom Tromey <tom@tromey.com>
2336
2337 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2338 Don't call tui_locator_win_info_ptr.
2339
2340 2019-09-20 Tom Tromey <tom@tromey.com>
2341
2342 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2343
2344 2019-09-20 Tom Tromey <tom@tromey.com>
2345
2346 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2347 height for locator.
2348 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2349 * tui/tui-layout.c (show_source_disasm_command, show_data)
2350 (show_source_or_disasm_and_command): Use 1 as height for locator.
2351
2352 2019-09-20 Tom Tromey <tom@tromey.com>
2353
2354 * tui/tui.c (tui_enable): Update.
2355 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2356 Update.
2357 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2358 Update.
2359 * tui/tui-data.c (win_resized): Now bool.
2360 (tui_win_resized): Return bool.
2361 (tui_set_win_resized_to): Accept a bool.
2362
2363 2019-09-20 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2366 Change type of "refresh_values_only".
2367 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2368 type of "refresh_values_only".
2369
2370 2019-09-20 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2373 std::string.
2374 (tui_disassemble): Add "pos" parameter.
2375 (tui_disasm_window::set_contents): Simplify.
2376
2377 2019-09-20 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-winsource.h (struct tui_source_window_base)
2380 <show_source_content>: Now private.
2381 * tui/tui-winsource.c
2382 (tui_source_window_base::show_source_content): Don't handle empty
2383 content case.
2384
2385 2019-09-20 Tom Tromey <tom@tromey.com>
2386
2387 * tui/tui-layout.c (show_source_disasm_command)
2388 (show_source_or_disasm_and_command): Don't call
2389 show_source_content.
2390
2391 2019-09-20 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2394 Declare.
2395 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2396 from tui_make_status_line.
2397 (tui_locator_window::rerender): Update.
2398
2399 2019-09-20 Tom Tromey <tom@tromey.com>
2400
2401 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2402 (tui_locator_window::rerender): Update.
2403
2404 2019-09-20 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-winsource.h (struct tui_source_window_base)
2407 <~tui_source_window_base>: Don't declare.
2408 <fullname>: Remove.
2409 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2410 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2411 member.
2412 * tui/tui-source.c (tui_source_window::set_contents): Update.
2413 (tui_source_window::location_matches_p)
2414 (tui_source_window::maybe_update): Update.
2415
2416 2019-09-20 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-winsource.h (~tui_source_element): Remove.
2419 (tui_source_element): Update.
2420 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2421 * tui/tui-winsource.c (tui_show_source_line): Update.
2422 * tui/tui-source.c (tui_source_window::set_contents): Update.
2423 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2424
2425 2019-09-20 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2428 declare.
2429 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2430 tui_clear_source_windows_detail.
2431 * tui/tui-winsource.h (struct tui_source_window_base)
2432 <clear_detail>: Don't declare.
2433 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2434 Remove.
2435 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2436
2437 2019-09-20 Tom Tromey <tromey@adacore.com>
2438
2439 PR ada/24919:
2440 * block.c (contained_in): Fix final return value.
2441
2442 2019-09-20 Alan Modra <amodra@gmail.com>
2443
2444 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2445 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2446 (read_indirect_string_from_dwz): Use bfd accessor.
2447 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2448 * machoread.c (macho_symfile_read_all_oso): Likewise.
2449 * solib.c (solib_bfd_open): Likewise.
2450
2451 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2452
2453 * eval.c: Move declaration of overload_resolution to...
2454 * value.h: ...here.
2455
2456 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2457
2458 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2459 * arm-linux-tdep.c: Likewise.
2460 * arm-nbsd-nat.c: Likewise.
2461 * arm-tdep.h: Declare arm_apcs_32.
2462 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2463
2464 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2465
2466 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2467 * dwarf2read.h: Declare dwarf_always_disassemble.
2468
2469 2019-09-19 Tom de Vries <tdevries@suse.de>
2470
2471 PR gdb/25009
2472 * source-cache.c (source_cache::ensure): Catch exception thrown during
2473 construction of the highlighter.
2474
2475 2019-09-18 Alan Modra <amodra@gmail.com>
2476
2477 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2478 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2479 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2480 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2481 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2482 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2483 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2484 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2485 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2486 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2487 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2488 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2489 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2490 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2491 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2492 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2493 * mi/mi-interp.c: Update throughout for bfd section macro and
2494 function changes.
2495 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2496 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2497
2498 2019-09-18 Tom Tromey <tom@tromey.com>
2499
2500 * NEWS: Add entry.
2501 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2502 call rl_initialize.
2503 (tui_enable): Do not call rl_initialize.
2504
2505 2019-09-18 Christian Groessler <chris@groessler.org>
2506
2507 * alpha-linux-nat.c: Include gdbarch.h.
2508
2509 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * ui-file.c: Include cli/cli-style.h.
2512 (term_cli_styling): Remove cli_styling declaration.
2513
2514 2019-09-18 Alan Modra <amodra@gmail.com>
2515
2516 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2517 to bfd_asymbol_section.
2518
2519 2019-09-18 Alan Modra <amodra@gmail.com>
2520
2521 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2522 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2523 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2524
2525 2019-09-18 Alan Modra <amodra@gmail.com>
2526
2527 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2528 * spu-linux-nat.c (spu_bfd_open): Likewise.
2529
2530 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2531
2532 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2533 to bool to match definition in dwarf2read.c.
2534
2535 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2536
2537 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2538 (print_signatures): Likewise.
2539 (trust_pad_over_xvs): Likewise.
2540 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2541 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2542 * arm-linux-nat.c (arm_apcs_32): Likewise.
2543 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2544 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2545 * arm-tdep.c (arm_debug): Likewise.
2546 (arm_apcs_32): Likewise.
2547 * auto-load.c (debug_auto_load): Likewise.
2548 (auto_load_gdb_scripts): Likewise.
2549 (global_auto_load): Likewise.
2550 (auto_load_local_gdbinit): Likewise.
2551 (auto_load_local_gdbinit_loaded): Likewise.
2552 * auto-load.h (global_auto_load): Likewise.
2553 (auto_load_local_gdbinit): Likewise.
2554 (auto_load_local_gdbinit_loaded): Likewise.
2555 * breakpoint.c (disconnected_dprintf): Likewise.
2556 (breakpoint_proceeded): Likewise.
2557 (automatic_hardware_breakpoints): Likewise.
2558 (always_inserted_mode): Likewise.
2559 (target_exact_watchpoints): Likewise.
2560 (_initialize_breakpoint): Update.
2561 * breakpoint.h (target_exact_watchpoints): Change to bool.
2562 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2563 * cli/cli-cmds.c (trace_commands): Likewise.
2564 * cli/cli-cmds.h (trace_commands): Likewise.
2565 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2566 to bool*.
2567 * cli/cli-logging.c (logging_overwrite): Change to bool.
2568 (logging_redirect): Likewise.
2569 (debug_redirect): Likewise.
2570 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2571 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2572 to bool.
2573 <boolean_option_def>: Update.
2574 (struct flag_option_def): Change default type of Context to bool
2575 from int.
2576 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2577 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2578 (get_setshow_command_value_string): Likewise.
2579 * cli/cli-style.c (cli_styling): Change to bool.
2580 (source_styling): Likewise.
2581 * cli/cli-style.h (source_styling): Likewise.
2582 (cli_styling): Likewise.
2583 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2584 to bool.
2585 * command.h (var_types): Update comment.
2586 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2587 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2588 bool.
2589 (debug_compile_cplus_scopes): Likewise.
2590 * compile/compile-internal.h (compile_debug): Likewise.
2591 * compile/compile.c (compile_debug): Likewise.
2592 (struct compile_options) <raw>: Likewise.
2593 * cp-support.c (catch_demangler_crashes): Likewise.
2594 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2595 (usr_cmd_cris_dwarf2_cfi): Likewise.
2596 * csky-tdep.c (csky_debug): Likewise.
2597 * darwin-nat.c (enable_mach_exceptions): Likewise.
2598 * dcache.c (dcache_enabled_p): Likewise.
2599 * defs.h (info_verbose): Likewise.
2600 * demangle.c (demangle): Likewise.
2601 (asm_demangle): Likewise.
2602 * dwarf-index-cache.c (debug_index_cache): Likewise.
2603 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2604 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2605 * dwarf2read.c (check_physname): Likewise.
2606 (use_deprecated_index_sections): Likewise.
2607 (dwarf_always_disassemble): Likewise.
2608 * eval.c (overload_resolution): Likewise.
2609 * event-top.c (set_editing_cmd_var): Likewise.
2610 (exec_done_display_p): Likewise.
2611 * event-top.h (set_editing_cmd_var): Likewise.
2612 (exec_done_display_p): Likewise.
2613 * exec.c (write_files): Likewise.
2614 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2615 (debug_fbsd_nat): Likewise.
2616 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2617 Likewise.
2618 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2619 <backtrace_past_entry> Likewise.
2620 * gdb-demangle.h (demangle): Likewise.
2621 (asm_demangle): Likewise.
2622 * gdb_bfd.c (bfd_sharing): Likewise.
2623 * gdbcore.h (write_files): Likewise.
2624 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2625 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2626 * gdbthread.h (print_thread_events): Likewise.
2627 * gdbtypes.c (opaque_type_resolution): Likewise.
2628 (strict_type_checking): Likewise.
2629 * gnu-nat.c (gnu_debug_flag): Likewise.
2630 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2631 * guile/scm-param.c (pascm_variable): Add boolval.
2632 (add_setshow_generic): Update.
2633 (pascm_param_value): Update.
2634 (pascm_set_param_value_x): Update.
2635 * hppa-tdep.c (hppa_debug): Change to bool..
2636 * infcall.c (may_call_functions_p): Likewise.
2637 (coerce_float_to_double_p): Likewise.
2638 (unwind_on_signal_p): Likewise.
2639 (unwind_on_terminating_exception_p): Likewise.
2640 * infcmd.c (startup_with_shell): Likewise.
2641 * inferior.c (print_inferior_events): Likewise.
2642 * inferior.h (startup_with_shell): Likewise.
2643 (print_inferior_events): Likewise.
2644 * infrun.c (step_stop_if_no_debug): Likewise.
2645 (detach_fork): Likewise.
2646 (debug_displaced): Likewise.
2647 (disable_randomization): Likewise.
2648 (non_stop): Likewise.
2649 (non_stop_1): Likewise.
2650 (observer_mode): Likewise.
2651 (observer_mode_1): Likewise.
2652 (set_observer_mode): Update.
2653 (sched_multi): Change to bool.
2654 * infrun.h (debug_displaced): Likewise.
2655 (sched_multi): Likewise.
2656 (step_stop_if_no_debug): Likewise.
2657 (non_stop): Likewise.
2658 (disable_randomization): Likewise.
2659 * linux-tdep.c (use_coredump_filter): Likewise.
2660 (dump_excluded_mappings): Likewise.
2661 * linux-thread-db.c (auto_load_thread_db): Likewise.
2662 (check_thread_db_on_load): Likewise.
2663 * main.c (captured_main_1): Update.
2664 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2665 xx2_opt, boolean_opt>: Change to bool.
2666 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2667 * maint.c (maintenance_profile_p): Likewise.
2668 (per_command_time): Likewise.
2669 (per_command_space): Likewise.
2670 (per_command_symtab): Likewise.
2671 * memattr.c (inaccessible_by_default): Likewise.
2672 * mi/mi-main.c (mi_async): Likewise.
2673 (mi_async_1): Likewise.
2674 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2675 * nat/fork-inferior.h (startup_with_shell): Likewise.
2676 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2677 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2678 * nios2-tdep.c (nios2_debug): Likewise.
2679 * or1k-tdep.c (or1k_debug): Likewise.
2680 * parse.c (parser_debug): Likewise.
2681 * parser-defs.h (parser_debug): Likewise.
2682 * printcmd.c (print_symbol_filename): Likewise.
2683 * proc-api.c (procfs_trace): Likewise.
2684 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2685 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2686 (set_parameter_value): Update.
2687 (add_setshow_generic): Update.
2688 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2689 to bool*.
2690 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2691 int*.
2692 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2693 * record-btrace.c (record_btrace_target::store_registers): Update.
2694 * record-full.c (record_full_memory_query): Change to bool.
2695 (record_full_stop_at_limit): Likewise.
2696 * record-full.h (record_full_memory_query): Likewise.
2697 * remote-notif.c (notif_debug): Likewise.
2698 * remote-notif.h (notif_debug): Likewise.
2699 * remote.c (use_range_stepping): Likewise.
2700 (interrupt_on_connect): Likewise.
2701 (remote_break): Likewise.
2702 * ser-tcp.c (tcp_auto_retry): Likewise.
2703 * ser-unix.c (serial_hwflow): Likewise.
2704 * skip.c (debug_skip): Likewise.
2705 * solib-aix.c (solib_aix_debug): Likewise.
2706 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2707 (spu_auto_flush_cache_p): Likewise.
2708 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2709 Likewise.
2710 (struct info_print_options) <quiet>: Likewise.
2711 * symfile-debug.c (debug_symfile): Likewise.
2712 * symfile.c (auto_solib_add): Likewise.
2713 (separate_debug_file_debug): Likewise.
2714 * symfile.h (auto_solib_add): Likewise.
2715 (separate_debug_file_debug): Likewise.
2716 * symtab.c (basenames_may_differ): Likewise.
2717 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2718 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2719 (struct info_types_options) <quiet>: Likewise.
2720 * symtab.h (demangle): Likewise.
2721 (basenames_may_differ): Likewise.
2722 * target-dcache.c (stack_cache_enabled_1): Likewise.
2723 (code_cache_enabled_1): Likewise.
2724 * target.c (trust_readonly): Likewise.
2725 (may_write_registers): Likewise.
2726 (may_write_memory): Likewise.
2727 (may_insert_breakpoints): Likewise.
2728 (may_insert_tracepoints): Likewise.
2729 (may_insert_fast_tracepoints): Likewise.
2730 (may_stop): Likewise.
2731 (auto_connect_native_target): Likewise.
2732 (target_stop_and_wait): Update.
2733 (target_async_permitted): Change to bool.
2734 (target_async_permitted_1): Likewise.
2735 (may_write_registers_1): Likewise.
2736 (may_write_memory_1): Likewise.
2737 (may_insert_breakpoints_1): Likewise.
2738 (may_insert_tracepoints_1): Likewise.
2739 (may_insert_fast_tracepoints_1): Likewise.
2740 (may_stop_1): Likewise.
2741 * target.h (target_async_permitted): Likewise.
2742 (may_write_registers): Likewise.
2743 (may_write_memory): Likewise.
2744 (may_insert_breakpoints): Likewise.
2745 (may_insert_tracepoints): Likewise.
2746 (may_insert_fast_tracepoints): Likewise.
2747 (may_stop): Likewise.
2748 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2749 (make_thread_apply_all_options_def_group): Change argument from int*
2750 to bool*.
2751 (thread_apply_all_command): Update.
2752 (print_thread_events): Change to bool.
2753 * top.c (confirm): Likewise.
2754 (command_editing_p): Likewise.
2755 (history_expansion_p): Likewise.
2756 (write_history_p): Likewise.
2757 (info_verbose): Likewise.
2758 * top.h (confirm): Likewise.
2759 (history_expansion_p): Likewise.
2760 * tracepoint.c (disconnected_tracing): Likewise.
2761 (circular_trace_buffer): Likewise.
2762 * typeprint.c (print_methods): Likewise.
2763 (print_typedefs): Likewise.
2764 * utils.c (debug_timestamp): Likewise.
2765 (sevenbit_strings): Likewise.
2766 (pagination_enabled): Likewise.
2767 * utils.h (sevenbit_strings): Likewise.
2768 (pagination_enabled): Likewise.
2769 * valops.c (overload_resolution): Likewise.
2770 * valprint.h (struct value_print_options) <prettyformat_arrays,
2771 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2772 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2773 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2774 Likewise.
2775 * windows-nat.c (new_console): Likewise.
2776 (cygwin_exceptions): Likewise.
2777 (new_group): Likewise.
2778 (debug_exec): Likewise.
2779 (debug_events): Likewise.
2780 (debug_memory): Likewise.
2781 (debug_exceptions): Likewise.
2782 (useshell): Likewise.
2783 * windows-tdep.c (maint_display_all_tib): Likewise.
2784 * xml-support.c (debug_xml): Likewise.
2785
2786 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2787
2788 * source.c (prepare_path_for_appending): New function.
2789 (openp): Make use of new function.
2790 (find_and_open_source): Search for the compilation directory and
2791 source file as a relative path beneath the directory search path.
2792
2793 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * source-cache.c (source_cache::get_line_charpos): Catch
2796 exceptions and return false, this matches the behaviour documented
2797 in the header file.
2798
2799 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2800
2801 * ada-tasks.c (info_task): Remove quoting of the task's name.
2802
2803 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2804
2805 * symfile.c (auto_solib_add): Replace comment with a reference
2806 to the header file.
2807
2808 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2809
2810 * NEWS: Mention that gdb can now be compiled with Python 3
2811 on Windows.
2812
2813 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * maint.c (maint_print_section_data::maint_print_section_data):
2816 Force use of 'float log10 (float)' by casting the argument to
2817 float.
2818
2819 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * maint.c: Add 'cmath' include.
2822 (struct maint_print_section_data): New structure.
2823 (print_section_index): New function.
2824 (print_bfd_section_info): Add header comment, small whitespace
2825 cleanup, and update to call new print_section_index function.
2826 (print_objfile_section_info): Likewise.
2827 (maint_obj_section_from_bfd_section): New function.
2828 (print_bfd_section_info_maybe_relocated): New function.
2829 (maintenance_info_sections): Add header comment, always use
2830 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2831
2832 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2833
2834 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2835 inner scope, add check that the objfile has psymtabs before
2836 checking psymtabs_addrmap.
2837 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2838
2839 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2840
2841 * NEWS: Announce that Ada task names are now shown at more places,
2842 and between quotes (except in info task output).
2843 * gdb/ada-tasks.c (task_to_str): New function.
2844 (display_current_task_id): Call task_to_str.
2845 (task_command_1): Likewise.
2846 (print_ada_task_info): In non-mi mode, Properly align headers and data
2847 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2848
2849 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2850
2851 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2852 prstatus.pr_lwp.pr_info instead of making it up.
2853
2854 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2855
2856 * auto-load.c (auto_load_expand_dir_vars): Update.
2857 * defs.h (gdb_datadir): Change to std::string.
2858 (python_libdir): Likewise.
2859 (relocate_gdb_directory): Change return type to std::string.
2860 * guile/guile.c (gdbscm_data_directory): Update.
2861 (initialize_scheme_side): Update.
2862 * jit.c (jit_reader_dir): Change to std::string.
2863 (jit_reader_load_command): Update.
2864 * main.c (gdb_datadir): Change to std::string.
2865 (python_libdir): Likewise.
2866 (set_gdb_data_directory): Update.
2867 (relocate_path): Change to return std::string.
2868 (relocate_gdb_directory): Change to return std::string.
2869 (relocate_gdbinit_path_maybe_in_datadir): Update.
2870 (captured_main_1): Update.
2871 * python/python.c (do_start_initialization): Update.
2872 * top.c (show_gdb_datadir): Update.
2873 * xml-syscall.c (xml_init_syscalls_info): Update.
2874 (init_syscalls_info): Update.
2875
2876 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2877
2878 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2879 out of get_init_files.
2880 (get_init_files): Update.
2881
2882 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2883
2884 * main.c (get_init_files): Change to use std::string.
2885 (captured_main_1): Update.
2886 (print_gdb_help): Update.
2887
2888 2019-09-11 Ali Tamur <tamur@google.com>
2889
2890 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2891 implementation.
2892
2893 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2894
2895 * dbxread.c (read_dbx_symtab): Update.
2896 * dwarf2read.c (load_partial_dies): Update.
2897 * mdebugread.c (parse_partial_symbols): Update.
2898 (handle_psymbol_enumerators): Update.
2899 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2900 * psymtab.c (add_psymbol_to_bcache): Likewise.
2901 (add_psymbol_to_list): Likewise.
2902 * symtab.c (symbol_set_names): Likewise.
2903 * symtab.h (symbol_set_names): Likewise.
2904 * xcoffread.c (scan_xcoff_symtab): Update.
2905
2906 2019-09-11 Tom Tromey <tom@tromey.com>
2907
2908 * symfile-mem.c (symbol_file_add_from_memory): Use
2909 bfd_set_filename.
2910 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2911 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2912
2913 2019-09-10 Tom Tromey <tromey@adacore.com>
2914
2915 * dwarf-index-write.c (write_psymbols): Extend error message.
2916 (debug_names::insert): Add Ada code.
2917 (debug_names::write_psymbols): Remove Ada check.
2918 (debug_names) <m_string_obstack>: New member.
2919 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2920 (gdb_index_symbol_name_matcher::matches): Remove.
2921 (mapped_index_base::find_name_components_bounds): Add "lang"
2922 parameter.
2923 (mapped_index_base::build_name_components): Also split names
2924 according to Ada syntax.
2925 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2926 type of "match_callback".
2927 (check_match, check_find_bounds_finds)
2928 (dw2_expand_symtabs_matching): Update.
2929 (dw2_debug_names_iterator): Add new constructor.
2930 (dw2_debug_names_map_matching_symbols): New function.
2931 (dw2_debug_names_expand_symtabs_matching): Update.
2932 (dwarf2_debug_names_functions): Use
2933 dw2_debug_names_map_matching_symbols.
2934
2935 2019-09-10 Tom Tromey <tromey@adacore.com>
2936
2937 * dwarf2read.c (dw2_get_file_names_reader): Add the
2938 CU's file name to the results.
2939
2940 2019-09-10 Tom Tromey <tromey@adacore.com>
2941
2942 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2943 map_matching_symbols. Update.
2944 * dwarf2read.c (dw2_map_matching_symbols): Update.
2945 * psymtab.c (match_partial_symbol): Change type; update.
2946 (psym_map_matching_symbols): Likewise.
2947 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2948 type; update.
2949 * symfile.h (struct quick_symbol_functions)
2950 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2951 Remove "match".
2952
2953 2019-09-10 Tom Tromey <tromey@adacore.com>
2954
2955 * psymtab.c (map_block): Remove.
2956 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2957 * symtab.c (iterate_over_symbols_terminated): New function.
2958 * symtab.c (iterate_over_symbols_terminated): Declare.
2959
2960 2019-09-10 Tom Tromey <tromey@adacore.com>
2961
2962 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2963 * language.h (struct language_defn) <la_iterate_over_symbols>:
2964 Return bool.
2965 * symtab.c (iterate_over_symbols): Return bool.
2966 * symtab.h (iterate_over_symbols): Return bool.
2967
2968 2019-09-10 Tom Tromey <tromey@adacore.com>
2969
2970 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2971 (add_nonlocal_symbols): Update.
2972 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2973 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2974 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2975 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2976 Change type of "callback". Remove "data".
2977
2978
2979 2019-09-09 Ali Tamur <tamur@google.com>
2980
2981 * dwarf2read.c (comp_unit_head): Update comment.
2982 (dwarf2_dwo_name): New function declaration.
2983 (dwarf_unit_type_name): New function declaration.
2984 (read_comp_unit_head): Add support for new compilation units,
2985 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2986 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2987 (currently named as "signature") in their header. Also clarify error
2988 messages.
2989 (lookup_dwo_id): New function. Returns the dwo id of the given
2990 compile unit.
2991 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2992 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2993 functions.
2994 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2995 (dwarf2_dwo_name): Get the dwo name if present.
2996 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2997 purposes.
2998
2999 2019-09-09 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3002
3003 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3004
3005 * python/python.c (do_start_initialization): Make progname_copy static,
3006 to avoid a leak report.
3007
3008 2019-09-08 Tom Tromey <tom@tromey.com>
3009
3010 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3011
3012 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3013
3014 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3015 Change type to gdb::optional<block_enum>.
3016 (dw2_symtab_iter_init): Change block_index parameter type
3017 to gdb::optional<block_enum>.
3018 (dw2_lookup_symbol): Change block_index parameter
3019 type to block_enum.c
3020 (dw2_debug_names_lookup_symbol): Likewise.
3021 * psymtab.c (psym_lookup_symbol): Likewise.
3022 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3023 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3024 Likewise.
3025
3026 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3027
3028 * defs.h (relocate_gdb_directory): Change int to bool in
3029 signature and rename flag to relocatable.
3030 * main.c (relocate_path): Likewise.
3031 (relocate_gdb_directory): Likewise.
3032
3033 2019-09-06 Alan Modra <amodra@gmail.com>
3034
3035 * coffread.c (coff_symfile_read): Constify filename variable.
3036 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3037 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3038 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3039 * solib.c (reload_shared_libraries_1): Likewise.
3040 * symfile.c (reread_symbols): Likewise.
3041 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3042 * solib-darwin.c (darwin_bfd_open): Likewise.
3043 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3044
3045 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3048 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3049
3050 2019-09-03 Tom Tromey <tromey@adacore.com>
3051
3052 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3053 types.
3054 (has_negatives): Unbias a range type bound.
3055 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3056 * gdbtypes.c (operator==): Handle new field.
3057 (create_range_type): Add "bias" parameter.
3058 (create_static_range_type, resolve_dynamic_range): Update.
3059 * gdbtypes.h (struct range_bounds) <bias>: New member.
3060 (create_range_type): Add bias parameter.
3061 * printcmd.c (print_scalar_formatted): Unbias range types.
3062 * value.c (unpack_long): Unbias range types.
3063 (pack_long): Bias range types.
3064
3065 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3066
3067 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3068 probe arguments.
3069
3070 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3071
3072 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3073 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3074 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3075 (compile_probe_arg): Likewise.
3076 * probe.h (get_argument_count): Likewise.
3077 * solib-svr4.c (solib_event_probe_action): Likewise.
3078 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3079
3080 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3081
3082 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3083 code to here...
3084 (svr4_create_solib_event_breakpoints): ...from here.
3085
3086 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3087
3088 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3089 suffix from warning message.
3090
3091 2019-08-30 Tom Tromey <tom@tromey.com>
3092
3093 * tui/tui-winsource.h (struct tui_source_window_base)
3094 <refresh_all>: Don't declare.
3095 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3096 Remove.
3097 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3098 tui_show_locator_content.
3099 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3100 declare.
3101 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3102 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3103 declare.
3104
3105 2019-08-30 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3108
3109 2019-08-30 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3112 Remove unnecessary forward declarations.
3113
3114 2019-08-30 Tom Tromey <tom@tromey.com>
3115
3116 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3117 rerender.
3118 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3119 tui_show_locator_content.
3120
3121 2019-08-30 Tom Tromey <tom@tromey.com>
3122
3123 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3124 (tui_locator_window::rerender): Rewrite using body of previous
3125 tui_show_locator_content.
3126
3127 2019-08-30 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3130 set_locator_fullname>: New methods.
3131 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3132 Rename from tui_set_locator_fullname.
3133 (tui_locator_window::set_locator_info): Rename from
3134 tui_set_locator_info. Return bool.
3135 (tui_update_locator_fullname, tui_show_frame_info): Update.
3136
3137 2019-08-30 Tom Tromey <tom@tromey.com>
3138
3139 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3140
3141 2019-08-30 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3144 call touchwin.
3145
3146 2019-08-30 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-wingeneral.c (box_win): Assume win_info and
3149 win_info->handle cannot be NULL.
3150
3151 2019-08-30 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3154 refresh_window>: Declare.
3155 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3156 resize.
3157 (tui_data_item_window::rerender): Rename from
3158 tui_display_register.
3159 (tui_data_item_window::refresh_window): New method.
3160 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3161 no-op.
3162
3163 2019-08-30 Tom Tromey <tom@tromey.com>
3164
3165 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3166 regs_column_count, current_group>: Move later. Now private.
3167 <get_current_group>: New method.
3168 * tui/tui-regs.c (tui_reg_command): Update.
3169 * tui/tui-layout.c (tui_set_layout): Update.
3170
3171 2019-08-30 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3174 (tui_data_window::rerender): Don't call
3175 check_and_display_highlight_if_needed.
3176 (tui_data_window::refresh_all): Remove call to
3177 erase_data_content.
3178
3179 2019-08-30 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3182 (tui_data_window::display_registers_from)
3183 (tui_data_window::display_reg_element_at_line)
3184 (tui_data_window::display_registers_from_line): Remove checks of
3185 "empty".
3186
3187 2019-08-30 Tom Tromey <tom@tromey.com>
3188
3189 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3190 Don't declare.
3191 * tui/tui-regs.c (tui_data_window::show_registers): Call
3192 rerender.
3193 (tui_data_window::rerender): Rename from display_all_data.
3194 (tui_data_window::rerender): Remove old implementation.
3195
3196 2019-08-30 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3199 text.
3200 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3201
3202 2019-08-29 Bernhard Wodok <barto@gmx.net>
3203 Sergio Durigan Junior <sergiodj@redhat.com>
3204
3205 PR win32/24284
3206 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3207
3208 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3209
3210 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3211 when searching for types.
3212
3213 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * f-lang.c (f_language_defn): Use f_print_typedef.
3216 * f-lang.h (f_print_typedef): Declare.
3217 * f-typeprint.c (f_print_typedef): Define.
3218
3219 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3220
3221 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3222
3223 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * cli/cli-utils.c (info_print_options_defs): Delete.
3226 (make_info_print_options_def_group): Delete.
3227 (extract_info_print_options): Delete.
3228 (info_print_command_completer): Delete.
3229 (info_print_args_help): Add extra parameter, and optionally
3230 include text about -n flag.
3231 * cli/cli-utils.h (struct info_print_options): Delete.
3232 (extract_info_print_options): Delete declaration.
3233 (info_print_command_completer): Delete declaration.
3234 (info_print_args_help): Add extra parameter, extend header
3235 comment.
3236 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3237 search_symbols.
3238 * stack.c (struct info_print_options): New type.
3239 (info_print_options_defs): New file scoped variable.
3240 (make_info_print_options_def_group): New static function.
3241 (info_print_command_completer): New static function.
3242 (info_locals_command): Update to use new local functions.
3243 (info_args_command): Likewise.
3244 (_initialize_stack): Add extra parameter to calls to
3245 info_print_args_help.
3246 * symtab.c (search_symbols): Add extra parameter, use this to
3247 possibly excluse non-debug symbols.
3248 (symtab_symbol_info): Add extra parameter, which is passed on to
3249 search_symbols.
3250 (struct info_print_options): New type.
3251 (info_print_options_defs): New file scoped variable.
3252 (make_info_print_options_def_group): New static function.
3253 (info_print_command_completer): New static function.
3254 (info_variables_command): Update to use local functions, and pass
3255 extra parameter through to symtab_symbol_info.
3256 (info_functions_command): Likewise.
3257 (info_types_command): Pass additional argument through to
3258 symtab_symbol_info.
3259 (rbreak_command): Pass extra argument to search_symbols.
3260 (_initialize_symtab): Add extra arguments for calls to
3261 info_print_args_help, and update help text for 'info variables',
3262 'whereis', and 'info functions' commands.
3263 * symtab.h (search_symbols): Add extra argument to declaration.
3264 * NEWS: Mention new flags.
3265
3266 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3267
3268 * symtab.c (lookup_static_symbol): Call the new function (and move
3269 it down to be next to lookup_global_symbol).
3270 (struct global_sym_lookup_data): Add block_enum member and rename to...
3271 (struct global_or_static_sym_lookup_data): ...this.
3272 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3273 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3274 (lookup_symbol_global_or_static_iterator_cb): ...this.
3275 (lookup_global_or_static_symbol): New function.
3276 (lookup_global_symbol): Call new function.
3277
3278 2019-08-26 Tom de Vries <tdevries@suse.de>
3279
3280 PR c++/24852
3281 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3282 when pc_probe.prob == NULL.
3283
3284 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3285
3286 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3287 variable symbol_linkage to symbol_linkage_.
3288
3289 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3292 represent whether the symbol is static, dynamic, or we don't
3293 know.
3294
3295 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3296
3297 * gdb/rx-tdep.c (rx_register_names): New.
3298 (rx_register_name): Delete.
3299 (rx_psw_type): Delete.
3300 (rx_fpsw_type): Delete.
3301 (rx_register_type): Delete.
3302 (rx_gdbarch_init): Convert target-descriptions.
3303 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3304 * gdb/features/Makefile: Add rx.xml.
3305 * gdb/features/rx.xml: New.
3306 * gdb/features/rx.c: Generated.
3307 * gdb/NEWS: Mention target description support.
3308
3309 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3310
3311 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3312 *slot_ptr.
3313
3314 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3315
3316 * configure.ac: Don't check for 'dlfcn.h' (moved to
3317 gdbsupport/common.m4).
3318 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3319 'gdbsupport/'.
3320 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3321 * compile/compile-c-support.c: Include
3322 'gdbsupport/gdb-dlfcn.h'.
3323 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3324 * gdb-dlfcn.c: Move to...
3325 * gdbsupport/gdb-dlfcn.c: ... here.
3326 * gdb-dlfcn.h: Move to...
3327 * gdbsupport/gdb-dlfcn.h: ... here.
3328
3329 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3330
3331 * nios2-tdep.c (struct reg_value): Improve comments. Make
3332 the offset field signed.
3333
3334 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3335
3336 * python/lib/gdb/__init__.py (_execute_file): New function.
3337 * python/python.c (python_run_simple_file): Call gdb._execute_file
3338 on Windows.
3339
3340 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3343 all uses as this was never set to anything but a zero value.
3344
3345 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3346
3347 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3348
3349 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3350
3351 * tui/tui-data.h (tui_gen_win_info): Add an =default
3352 move constructor, required by some GCC versions.
3353
3354 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3355
3356 * go32-nat.c (go32_sysinfo): Add hygon_p.
3357
3358 2019-08-20 Tom Tromey <tom@tromey.com>
3359
3360 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3361 line_from_reg_element_no, first_reg_element_no_inline,
3362 display_all_data, delete_data_content_windows,
3363 erase_data_content>: Now private.
3364
3365 2019-08-20 Tom Tromey <tom@tromey.com>
3366
3367 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3368 (tui_unhighlight_win, tui_highlight_win)
3369 (tui_win_info::make_window): Update.
3370 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3371
3372 2019-08-20 Tom Tromey <tom@tromey.com>
3373
3374 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3375 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3376 (MAX_PID_WIDTH): Move to tui-stack.c.
3377 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3378 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3379 (MAX_PID_WIDTH): Move from tui-data.h.
3380
3381 2019-08-20 Tom Tromey <tom@tromey.com>
3382
3383 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3384 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3385 (box_win): Update.
3386 (tui_gen_win_info::make_window): Rename from tui_make_window.
3387 (tui_win_info::make_window): New method.
3388 (tui_gen_win_info::make_visible): Update.
3389 * tui/tui-source.c (tui_source_window::set_contents): Update.
3390 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3391 (tui_data_window::display_registers_from): Update.
3392 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3393 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3394 Declare.
3395 <can_box>: Remove.
3396 <title>: Remove.
3397 (struct tui_win_info) <make_window>: Declare.
3398 <can_box>: Now virtual.
3399 <title>: New member.
3400 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3401 * tui/tui-command.c (tui_cmd_window::resize): Update.
3402
3403 2019-08-20 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3406 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3407 (tui_data_window::check_register_values): Update.
3408
3409 2019-08-20 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-regs.h (struct tui_data_window): Use
3412 DISABLE_COPY_AND_ASSIGN.
3413 <regs_content>: Change type, removing unique_ptr.
3414 <tui_data_window>: Add move constructor.
3415 * tui/tui-regs.c (tui_data_window::show_registers)
3416 (tui_data_window::show_register_group)
3417 (tui_data_window::display_registers_from)
3418 (tui_data_window::display_registers_from)
3419 (tui_data_window::first_data_item_displayed)
3420 (tui_data_window::delete_data_content_windows)
3421 (tui_data_window::rerender, tui_data_window::refresh_window)
3422 (tui_data_window::check_register_values): Update.
3423
3424 2019-08-20 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3427 show_register_group>: Declare.
3428 (tui_show_register_group): Don't declare.
3429 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3430 tui_show_registers.
3431 (tui_data_window::show_register_group): Rename from
3432 tui_show_register_group.
3433 (tui_data_window::check_register_values, tui_reg_command):
3434 Update.
3435 * tui/tui-layout.c (tui_set_layout): Update.
3436
3437 2019-08-20 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3440 Declare.
3441 (tui_check_register_values): Don't declare.
3442 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3443 from tui_check_register_values.
3444 * tui/tui-hooks.c (tui_register_changed): Update.
3445
3446 2019-08-20 Tom Tromey <tom@tromey.com>
3447
3448 * tui/tui-regs.c (tui_reg_layout): Move later.
3449 (tui_show_registers): Don't enable TUI mode or change layout.
3450
3451 2019-08-20 Tom Tromey <tom@tromey.com>
3452
3453 * tui/tui-regs.h (struct tui_data_item_window)
3454 <~tui_data_item_window>: Remove.
3455 <content>: Now a unique_xmalloc_ptr.
3456 * tui/tui-regs.c (tui_register_format): Return a
3457 unique_xmalloc_ptr.
3458 (tui_get_register): Update.
3459 (~tui_data_item_window): Remove.
3460 (tui_data_window::display_registers_from, tui_display_register):
3461 Update.
3462 * tui/tui-io.h (tui_expand_tabs): Update.
3463 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3464 Remove "col" parameter.
3465
3466 2019-08-20 Tom Tromey <tom@tromey.com>
3467
3468 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3469 field.
3470 * tui/tui-regs.c (~tui_data_item_window): Update.
3471
3472 2019-08-20 Tom Tromey <tom@tromey.com>
3473
3474 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3475 earlier.
3476
3477 2019-08-20 Tom Tromey <tom@tromey.com>
3478
3479 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3480
3481 2019-08-20 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui-source.h (struct tui_source_window): Update.
3484 * tui/tui-regs.c (tui_show_registers): Update.
3485 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3486 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3487 (NO_REGS_STRING): Remove defines.
3488
3489 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3490
3491 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3492 unnecessary thread walk if remote doesn't support the packet.
3493
3494 2019-08-19 Tom Tromey <tromey@adacore.com>
3495
3496 * python/py-value.c (value_has_field): Fix indentation.
3497
3498 2019-08-19 Tom Tromey <tromey@adacore.com>
3499
3500 * printcmd.c (do_one_display, info_display_command): Update.
3501 * block.h (contained_in): Return bool. Add allow_nested
3502 parameter.
3503 * block.c (contained_in): Return bool. Add allow_nested
3504 parameter.
3505
3506 2019-08-19 Tom Tromey <tom@tromey.com>
3507
3508 * configure: Rebuild.
3509 * configure.ac: Disallow the combination of -static-libstdc++ and
3510 source highlight.
3511 * source-cache.c (get_language_name): Handle rust.
3512 (source_cache::get_source_lines): Ignore highlighting exceptions.
3513
3514 2019-08-16 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3517 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3518 (struct tui_source_window_base) <make_visible, refresh_window,
3519 resize>: Remove methods.
3520 <execution_info>: Remove field.
3521 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3522 (tui_show_source_line, tui_source_window_base)
3523 (~tui_source_window_base): Update.
3524 (tui_source_window_base::resize)
3525 (tui_source_window_base::make_visible)
3526 (tui_source_window_base::refresh_window): Remove.
3527 (tui_source_window_base::update_exec_info): Update.
3528 * tui/tui-source.c (tui_source_window::set_contents): Update.
3529 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3530
3531 2019-08-16 Tom Tromey <tom@tromey.com>
3532
3533 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3534 deprecated_query_hook.
3535
3536 2019-08-16 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3539 (tui_update_source_windows_with_line): Update.
3540 * tui/tui-source.h (struct tui_source_window)
3541 <show_symtab_source>: Declare.
3542 (tui_show_symtab_source): Don't declare.
3543 * tui/tui-source.c (tui_show_symtab_source): Rename from
3544 tui_show_symtab_source.
3545
3546 2019-08-16 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-winsource.h (struct tui_source_window_base)
3549 <set_contents>: Declare.
3550 * tui/tui-winsource.c
3551 (tui_source_window_base::update_source_window_as_is): Update.
3552 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3553 Declare.
3554 (tui_set_source_content): Don't declare.
3555 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3556 tui_set_source_content.
3557 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3558 Declare.
3559 (tui_set_disassem_content): Don't declare.
3560 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3561 tui_set_disassem_content.
3562
3563 2019-08-16 Tom Tromey <tom@tromey.com>
3564
3565 * tui/tui-winsource.h (struct tui_source_window_base)
3566 <update_breakpoint_info>: Declare.
3567 (tui_update_breakpoint_info): Don't declare.
3568 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3569 (tui_update_all_breakpoint_info): Update.
3570 (tui_source_window_base::update_breakpoint_info): Rename from
3571 tui_update_breakpoint_info.
3572 (tui_source_window_base::update_exec_info): Update.
3573
3574 2019-08-16 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-winsource.h (struct tui_source_window_base)
3577 <update_source_window>: Declare.
3578 (tui_update_source_window): Don't declare.
3579 * tui/tui-winsource.c
3580 (tui_source_window_base::update_source_window): Rename from
3581 tui_update_source_window.
3582 (tui_source_window_base::rerender): Update.
3583 * tui/tui-source.c (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::maybe_update): Update.
3587
3588 2019-08-16 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-winsource.h (struct tui_source_window_base)
3591 <update_source_window_as_is>: Declare.
3592 (tui_update_source_window_as_is): Don't declare.
3593 * tui/tui-winsource.c (tui_update_source_window): Update
3594 (tui_source_window_base::update_source_window_as_is): Rename from
3595 tui_update_source_window_as_is.
3596 (tui_source_window_base::refill): Update.
3597 * tui/tui-source.c (tui_show_symtab_source): Update.
3598 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3599 Update.
3600
3601 2019-08-16 Tom Tromey <tom@tromey.com>
3602
3603 * tui/tui-winsource.h (tui_update_source_window)
3604 (tui_update_source_window_as_is): Remove "noerror" parameter.
3605 * tui/tui-winsource.c (tui_update_source_window)
3606 (tui_update_source_window_as_is): Remove "noerror" parameter.
3607 (tui_update_source_windows_with_addr)
3608 (tui_update_source_windows_with_line)
3609 (tui_source_window_base::rerender)
3610 (tui_source_window_base::refill): Update.
3611 * tui/tui-source.h (tui_set_source_content)
3612 (tui_show_symtab_source): Remove "noerror" parameter.
3613 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3614 parameter.
3615 (tui_show_symtab_source): Likewise.
3616 (tui_source_window::maybe_update): Update.
3617 * tui/tui-disasm.c (tui_show_disassem)
3618 (tui_show_disassem_and_update_source)
3619 (tui_disasm_window::do_scroll_vertical)
3620 (tui_disasm_window::maybe_update): Update.
3621
3622 2019-08-16 Tom Tromey <tom@tromey.com>
3623
3624 * tui/tui.c (tui_is_window_visible): Update.
3625 * tui/tui-wingeneral.c (tui_make_window)
3626 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3627 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3628 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3629 (tui_set_win_height_command, parse_scrolling_args): Update.
3630 * tui/tui-source.c (tui_source_window::style_changed): Update.
3631 * tui/tui-regs.c (tui_show_registers)
3632 (tui_data_window::first_data_item_displayed)
3633 (tui_data_window::delete_data_content_windows)
3634 (tui_check_register_values, tui_reg_command): Update.
3635 * tui/tui-disasm.c (tui_show_disassem): Update.
3636 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3637 method.
3638 <is_visible>: Remove field.
3639 * tui/tui-data.c (tui_next_win, tui_prev_win)
3640 (tui_delete_invisible_windows): Update.
3641
3642 2019-08-16 Tom Tromey <tom@tromey.com>
3643
3644 * tui/tui-winsource.h (struct tui_source_window_base)
3645 <m_has_locator>: Remove.
3646 * tui/tui-layout.c (show_source_disasm_command, show_data)
3647 (show_source_or_disasm_and_command): Update.
3648
3649 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3650
3651 * NEWS (Other MI changes): New subsection.
3652 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3653 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3654 * arch-utils.c (default_get_pc_address_flags): New function.
3655 * arch-utils.h (default_get_pc_address_flags): New declaration.
3656 * gdbarch.sh: Add get_pc_address_flags.
3657 * gdbarch.c: Regenerate.
3658 * gdbarch.h: Likewise.
3659 * stack.c (print_pc): New function.
3660 (print_frame_info) (print_frame): Call print_pc.
3661
3662 2019-08-16 Tom de Vries <tdevries@suse.de>
3663
3664 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3665 print_objfile_section_info.
3666
3667 2019-08-15 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3670 calling update_cmdwin_start_line.
3671 * tui/tui-winsource.h (struct tui_source_window_base)
3672 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3673 <rerender>: Declare.
3674 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3675 Call rerender.
3676 (tui_source_window_base::set_new_height): Remove.
3677 (tui_source_window_base::rerender): Rename from
3678 do_make_visible_with_new_height.
3679 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3680 resize method.
3681 (tui_win_info::make_invisible_and_set_new_height)
3682 (tui_win_info::make_visible_with_new_height): Remove.
3683 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3684 Declare.
3685 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3686 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3687 do_make_visible_with_new_height>: Don't declare.
3688 <rerender>: Declare.
3689 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3690 set_new_height.
3691 (tui_data_window::do_make_visible_with_new_height): Remove.
3692 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3693 call tui_show_locator_content.
3694 (tui_gen_win_info::resize): Call rerender.
3695 (show_source_or_disasm_and_command): Don't call
3696 tui_show_locator_content.
3697 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3698 method.
3699 (struct tui_win_info) <rerender>: Declare.
3700 <set_new_height, make_invisible_and_set_new_height,
3701 make_visible_with_new_height>: Don't declare.
3702 * tui/tui-data.c (tui_win_list::rerender): New method.
3703 * tui/tui-command.h (struct tui_cmd_window)
3704 <do_make_visible_with_new_height>: Don't declare.
3705 * tui/tui-command.c
3706 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3707
3708 2019-08-15 Tom Tromey <tromey@adacore.com>
3709
3710 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3711 * ada-lang.c (ada_enum_name): Likewise.
3712
3713 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3714
3715 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3716 leading underscore.
3717 (GdbOutputErrorFile): Likewise.
3718 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3719 accordingly.
3720 (execute_unwinders): Rename to have a leading underscore.
3721 (auto_load_packages): Likewise.
3722 (global scope): Adjust call to auto_load_packages accordingly.
3723 (GdbSetPythonDirectory): Likewise.
3724 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3725 instead of execute_unwinders.
3726
3727 2019-08-15 Tom Tromey <tom@tromey.com>
3728
3729 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3730 (show_data): Don't change window visibility.
3731 (tui_gen_win_info::resize): Remove special case for command
3732 window. Use wresize, when available.
3733 (show_source_or_disasm_and_command): Don't change window
3734 visibility.
3735 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3736 <make_visible>: New method.
3737 * tui/tui-command.c (tui_cmd_window::resize): New method.
3738
3739 2019-08-15 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3742 (struct tui_source_windows): New.
3743 * tui/tui-winsource.c (tui_display_main): Update.
3744 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3745 (new_height_ok, parse_scrolling_args): Update.
3746 * tui/tui-layout.c (show_layout, show_data): Update.
3747 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3748 (tui_add_to_source_windows): Don't declare.
3749 * tui/tui-data.c (source_windows, tui_source_windows)
3750 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3751
3752 2019-08-15 Tom Tromey <tom@tromey.com>
3753
3754 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3755 Rename from reset.
3756 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3757 * tui/tui-layout.c (show_source_disasm_command, show_data):
3758 Update.
3759 (tui_gen_win_info::resize): Rename.
3760 (show_source_or_disasm_and_command): Update.
3761 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3762 reset.
3763
3764 2019-08-15 Tom Tromey <tom@tromey.com>
3765
3766 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3767 * tui/tui-interp.c (tui_interp::init): Don't call
3768 tui_initialize_static_data.
3769 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3770
3771 2019-08-15 Tom Tromey <tom@tromey.com>
3772
3773 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3774 examine tui_win_list.
3775
3776 2019-08-15 Tom Tromey <tom@tromey.com>
3777
3778 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3779 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3780 tui_clear_source_content.
3781 (tui_clear_source_content): Remove.
3782 (tui_source_window_base::do_erase_source_content): Hoist call to
3783 content.clear().
3784 * tui/tui-stack.c (tui_show_frame_info): Don't call
3785 tui_clear_source_content.
3786
3787 2019-08-15 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-winsource.h (struct tui_source_window_base)
3790 <do_erase_source_content>: New method.
3791 <erase_source_content>: New method.
3792 (tui_erase_source_content): Don't declare.
3793 * tui/tui-winsource.c (tui_clear_source_content): Update.
3794 (tui_source_window_base::do_erase_source_content): Rename from
3795 tui_erase_source_content.
3796 (tui_source_window_base::show_source_content): Update.
3797 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3798 * tui/tui-source.h (struct tui_source_window)
3799 <erase_source_content>: New method.
3800 * tui/tui-disasm.h (struct tui_disasm_window)
3801 <erase_source_content>: New method.
3802
3803 2019-08-15 Tom Tromey <tom@tromey.com>
3804
3805 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3806 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3807 constructor.
3808 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3809 * tui/tui-source.c (tui_set_source_content): Update.
3810 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3811
3812 2019-08-15 Tom Tromey <tom@tromey.com>
3813
3814 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3815 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3816 tui-source.c.
3817 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3818 Declare.
3819 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3820 method.
3821 (tui_source_window::maybe_update): Update.
3822
3823 2019-08-15 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3826 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3827 tui-disasm.c.
3828 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3829 Declare.
3830 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3831 method.
3832 (tui_disasm_window::maybe_update): Update.
3833
3834 2019-08-15 Tom Tromey <tom@tromey.com>
3835
3836 * tui/tui-winsource.h (struct tui_source_window_base)
3837 <maybe_update>: Declare.
3838 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3839 method.
3840 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3841 Declare.
3842 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3843 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3844 Declare.
3845 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3846
3847 2019-08-15 Tom Tromey <tom@tromey.com>
3848
3849 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3850
3851 2019-08-15 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-wingeneral.c: Include tui-stack.h.
3854 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3855 (struct tui_locator_window): Move from tui-data.h.
3856 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3857 (tui_initialize_static_data): Move from tui-data.c.
3858 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3859 (struct tui_locator_window): Move to tui-stack.c.
3860 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3861 (tui_initialize_static_data): Move to tui-stack.c.
3862
3863 2019-08-15 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-layout.c (show_source_disasm_command)
3866 (show_source_or_disasm_and_command): Use make_visible method, not
3867 tui_make_window.
3868 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3869 Remove.
3870
3871 2019-08-15 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-wingeneral.h (tui_make_window): Update.
3874 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3875 parameter.
3876 (tui_gen_win_info::make_visible): Update.
3877 * tui/tui-regs.c (tui_data_window::display_registers_from):
3878 Update.
3879 * tui/tui-layout.c (show_source_disasm_command)
3880 (show_source_or_disasm_and_command): Update.
3881 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3882 (enum tui_box): Remove.
3883 (struct tui_win_info) <can_box>: New method.
3884 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3885 method.
3886
3887 2019-08-15 Tom de Vries <tdevries@suse.de>
3888
3889 * linux-nat-trad.c: Include gdbarch.h.
3890
3891 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3892
3893 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3894 register sizes.
3895
3896 2019-08-14 Tom Tromey <tromey@adacore.com>
3897
3898 * darwin-nat.c: Include gdbarch.h.
3899 * darwin-nat-info.c: Include gdbarch.h.
3900
3901 2019-08-13 Tom Tromey <tom@tromey.com>
3902
3903 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3904 Remove.
3905 * tui/tui-data.c (tui_initialize_static_data): Update.
3906
3907 2019-08-13 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-winsource.h (struct tui_exec_info_window)
3910 <~tui_exec_info_window, maybe_allocate_content, get_content,
3911 m_content>: Remove.
3912 (struct tui_source_window_base) <set_exec_info_content,
3913 show_exec_info_content>: Don't declare.
3914 * tui/tui-winsource.c
3915 (tui_exec_info_window::maybe_allocate_content): Remove.
3916 (tui_source_window_base::update_exec_info): Rename from
3917 set_exec_info_content.
3918 (tui_source_window_base::show_exec_info_content)
3919 (tui_source_window_base::update_exec_info): Remove.
3920
3921 2019-08-13 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3924 declare.
3925 * tui/tui-winsource.c (tui_update_source_window_as_is)
3926 (tui_update_source_windows_with_addr, tui_erase_source_content):
3927 Update.
3928 (tui_clear_exec_info_content): Remove.
3929
3930 2019-08-13 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3933 declare.
3934 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3935 call tui_erase_exec_info_content.
3936 (tui_clear_exec_info_content): Rename from
3937 tui_erase_exec_info_content.
3938 (tui_clear_exec_info_content): Delete.
3939
3940 2019-08-13 Tom Tromey <tom@tromey.com>
3941
3942 * tui/tui-winsource.h (struct tui_source_window_base)
3943 <show_exec_info_content>: Declare.
3944 (tui_show_exec_info_content): Don't declare.
3945 * tui/tui-winsource.c
3946 (tui_source_window_base::show_exec_info_content): Rename from
3947 tui_show_exec_info_content.
3948 (tui_source_window_base::update_exec_info): Update.
3949
3950 2019-08-13 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3953 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3954 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3955 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3956 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3957 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3958 ... here.
3959
3960 2019-08-13 Tom Tromey <tom@tromey.com>
3961
3962 * tui/tui-winsource.h (struct tui_source_window_base)
3963 <update_exec_info>: Declare.
3964 (tui_update_exec_info): Don't declare.
3965 * tui/tui-winsource.c (tui_update_source_window_as_is)
3966 (tui_source_window_base::refresh_all)
3967 (tui_update_all_breakpoint_info): Update.
3968 (tui_source_window_base::update_exec_info): Rename from
3969 tui_update_exec_info.
3970 * tui/tui-stack.c (tui_show_frame_info): Update.
3971
3972 2019-08-13 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-winsource.h (struct tui_source_window_base)
3975 <set_exec_info_content>: Declare.
3976 (tui_set_exec_info_content): Don't declare.
3977 * tui/tui-winsource.c
3978 (tui_source_window_base::set_exec_info_content): Rename from
3979 tui_set_exec_info_content.
3980 (tui_update_exec_info): Update.
3981
3982 2019-08-13 Tom Tromey <tom@tromey.com>
3983
3984 * tui/tui-winsource.h (struct tui_source_window_base)
3985 <show_source_content>: Declare.
3986 (tui_show_source_content): Don't declare.
3987 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3988 (tui_source_window_base::show_source_content): Rename from
3989 tui_show_source_content.
3990 (tui_source_window_base::refresh_all): Update.
3991 * tui/tui-layout.c (show_source_disasm_command)
3992 (show_source_or_disasm_and_command): Update.
3993
3994 2019-08-13 Tom Tromey <tom@tromey.com>
3995
3996 * tui/tui-winsource.c (tui_erase_source_content)
3997 (tui_show_source_content, tui_source_window_base::refresh_all):
3998 Update.
3999 * tui/tui-wingeneral.h
4000 (tui_check_and_display_highlight_if_needed): Don't declare.
4001 * tui/tui-wingeneral.c
4002 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4003 check_and_display_highlight_if_needed.
4004 * tui/tui-win.c (tui_rehighlight_all)
4005 (tui_win_info::make_visible_with_new_height): Update.
4006 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4007 (tui_data_window::erase_data_content)
4008 (tui_data_window::display_all_data): Update.
4009 * tui/tui-data.h (struct tui_win_info)
4010 <check_and_display_highlight_if_needed>: Declare.
4011
4012 2019-08-13 Tom Tromey <tom@tromey.com>
4013
4014 * tui/tui-win.c (tui_resize_all): Call
4015 tui_delete_invisible_windows.
4016 * tui/tui-layout.c (show_layout): Call
4017 tui_delete_invisible_windows.
4018 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4019 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4020
4021 2019-08-13 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4024 tui_add_win_to_layout.
4025
4026 2019-08-13 Tom Tromey <tom@tromey.com>
4027
4028 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4029 * tui/tui-layout.c (tui_default_win_height): Now static.
4030
4031 2019-08-13 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4034 single switch.
4035 (show_source_disasm_command, show_source_or_disasm_and_command):
4036 Don't check current layout.
4037
4038 2019-08-13 Tom Tromey <tom@tromey.com>
4039
4040 * tui/tui-wingeneral.c (make_all_visible): Remove.
4041 (tui_make_all_invisible): Simplify.
4042 * tui/tui-layout.c (tui_make_all_invisible): Move from
4043 tui-wingeneral.c; simplify.
4044 (show_layout): Hoist call to tui_make_all_invisible.
4045 (show_data): Don't call tui_make_all_invisible.
4046
4047 2019-08-13 Tom Tromey <tom@tromey.com>
4048
4049 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4050 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4051
4052 2019-08-13 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4055 tui-data.c.
4056 (show_source_disasm_command, show_data)
4057 (show_source_or_disasm_and_command): Don't use
4058 tui_set_current_layout_to.
4059 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4060 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4061 tui-layout.c.
4062 (tui_set_current_layout_to): Remove.
4063
4064 2019-08-13 Tom Tromey <tom@tromey.com>
4065
4066 * tui/tui-layout.c (tui_set_layout): Update.
4067 * tui/tui-data.h (struct tui_layout_def): Remove.
4068 (tui_layout_def): Don't declare.
4069 * tui/tui-data.c (layout_def): Remove.
4070 (tui_layout_def): Remove.
4071
4072 2019-08-13 Tom Tromey <tom@tromey.com>
4073
4074 * tui/tui-winsource.h (struct tui_source_window_base)
4075 <clear_detail>: No longer "override".
4076 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4077 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4078 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4079 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4080 Remove.
4081 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4082
4083 2019-08-13 Tom Tromey <tromey@adacore.com>
4084
4085 * tracepoint.c: Don't include readline.h or history.h.
4086
4087 2019-08-12 Tom Tromey <tom@tromey.com>
4088
4089 * configure: Rebuild.
4090 * configure.ac: Check for readline 7.
4091 * NEWS: Mention readline 7 requirement.
4092 * README: Update.
4093
4094 2019-08-12 Tom Tromey <tom@tromey.com>
4095
4096 * mingw-hdep.c (gdb_select): Remove readline hack.
4097
4098 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4099
4100 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4101 when the function fails.
4102
4103 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4104
4105 * s390-tdep.c (s390_type_align): New function.
4106 (s390_gdbarch_init): Set it as type_align gdbarch method.
4107
4108 2019-08-09 Tom de Vries <tdevries@suse.de>
4109
4110 PR gdb/24591
4111 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4112 pc_low with relocation offset.
4113
4114 2019-08-07 Tom Tromey <tromey@adacore.com>
4115
4116 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4117 (print_frame_args): Update.
4118 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4119 Update.
4120 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4121 * frame.h (struct frame_arg): Add initializers.
4122 <error>: Now a unique_xmalloc_ptr.
4123
4124 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4125
4126 * NEWS: Expand the Pointer Authentication entry.
4127 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4128 (aarch64_frame_unmask_lr): ... to this.
4129 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4130 Call aarch64_frame_unmask_lr.
4131 * frame.c (struct frame_info): Add "masked" variable.
4132 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4133 (fprint_frame): Check for masked pc.
4134 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4135 declarations.
4136 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4137 * stack.c (print_frame): Check for masked pc.
4138
4139 2019-08-06 Tom Tromey <tom@tromey.com>
4140
4141 * stabsread.c (patch_block_stabs, read_one_struct_field)
4142 (read_enum_type): Use obstack_strndup.
4143 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4144 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4145 * dwarf2read.c (guess_full_die_structure_name)
4146 (anonymous_struct_prefix): Use obstack_strndup.
4147 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4148 * c-exp.y (yylex): Use obstack_strndup.
4149 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4150 (write_var_or_type): Use obstack_strndup.
4151
4152 2019-08-06 Tom Tromey <tom@tromey.com>
4153
4154 * symfile.c (reread_symbols): Use obstack_strdup.
4155 * stabsread.c (read_type): Use obstack_strdup.
4156 * gdb_obstack.h (obstack_strdup): New overload.
4157 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4158 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4159 (dwarf2_canonicalize_name): Use obstack_strdup.
4160 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4161 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4162 Use obstack_strdup.
4163
4164 2019-08-06 Tom Tromey <tom@tromey.com>
4165
4166 * gdb_obstack.h (obstack_strdup): Define.
4167 * gdb_obstack.c (obstack_strdup): Don't define.
4168
4169 2019-08-06 Tom Tromey <tom@tromey.com>
4170
4171 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4172 obstack_strdup.
4173 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4174 obstack_strdup.
4175 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4176 * stabsread.c (common_block_start): Use obstack_strdup.
4177 * objfiles.c (set_objfile_main_name, objfile): Use
4178 obstack_strdup.
4179 * namespace.c (add_using_directive): Use obstack_strdup.
4180 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4181 * jit.c (finalize_symtab): Use obstack_strdup.
4182 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4183 (guess_partial_die_structure_name, partial_die_info::fixup)
4184 (dwarf2_name): Use obstack_strdup.
4185 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4186 obstack_strdup.
4187 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4188 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4189 obstack_strdup.
4190 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4191
4192 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4193
4194 * unittests/help-doc-selftests.c: New file.
4195 * Makefile.in: Add the new file.
4196
4197 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4198
4199 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4200 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4201 the full first line, except when FOR_VALUE_PREFIX. In this case,
4202 the trailing '.' is not output, and the first character is uppercased.
4203 (print_help_for_command): Update call to print_doc_line.
4204 (print_doc_of_command): Likewise.
4205 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4206 * cli/cli-option.c (append_indented_doc): Do not append newline.
4207 (build_help_option): Append newline after first appended_indented_doc
4208 only if a second call is done.
4209 (build_help): Append 2 new lines before each option, except the first
4210 one.
4211 * compile/compile.c (_initialize_compile): Add new lines after
4212 %OPTIONS%, when not at the end of the help.
4213 Change help doc or code
4214 producing the help doc to respect the invariants.
4215 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4216 Also removed the new line after 'Options:', as all other commands
4217 do not put an empty line between 'Options:' and the first option.
4218 * printcmd.c (_initialize_printcmd): Likewise.
4219 * stack.c (_initialize_stack): Likewise.
4220 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4221 incorrectly telling COMMAND is optional.
4222 * ada-lang.c (_initialize_ada_language): Change help doc or code
4223 producing the help doc to respect the invariants.
4224 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4225 * breakpoint.c (_initialize_breakpoint): Likewise.
4226 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4227 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4228 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4229 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4230 _initialize_cli_style): Likewise.
4231 * corelow.c (core_target_info): Likewise.
4232 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4233 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4234 * filesystem.c (_initialize_filesystem): Likewise.
4235 * frame.c (_initialize_frame): Likewise.
4236 * gnu-nat.c (add_task_commands): Likewise.
4237 * infcall.c (_initialize_infcall): Likewise.
4238 * infcmd.c (_initialize_infcmd): Likewise.
4239 * interps.c (_initialize_interpreter): Likewise.
4240 * language.c (_initialize_language): Likewise.
4241 * linux-fork.c (_initialize_linux_fork): Likewise.
4242 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4243 * maint.c (_initialize_maint_cmds): Likewise.
4244 * memattr.c (_initialize_mem): Likewise.
4245 * printcmd.c (_initialize_printcmd): Likewise.
4246 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4247 _RegEx): Likewise.
4248 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4249 * record-btrace.c (_initialize_record_btrace): Likewise.
4250 * record-full.c (_initialize_record_full): Likewise.
4251 * record.c (_initialize_record): Likewise.
4252 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4253 * regcache.c (_initialize_regcache): Likewise.
4254 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4255 _initialize_remote): Likewise.
4256 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4257 * serial.c (_initialize_serial): Likewise.
4258 * skip.c (_initialize_step_skip): Likewise.
4259 * source.c (_initialize_source): Likewise.
4260 * stack.c (_initialize_stack): Likewise.
4261 * symfile.c (_initialize_symfile): Likewise.
4262 * symtab.c (_initialize_symtab): Likewise.
4263 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4264 * top.c (init_main): Likewise.
4265 * tracefile-tfile.c (tfile_target_info): Likewise.
4266 * tracepoint.c (_initialize_tracepoint): Likewise.
4267 * tui/tui-win.c (_initialize_tui_win): Likewise.
4268 * utils.c (add_internal_problem_command): Likewise.
4269 * valprint.c (value_print_option_defs): Likewise.
4270
4271 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4272
4273 PR build/24886
4274 * configure.ac: Drop enable-libmcheck support.
4275 * configure, config.in: Rebuild.
4276 * libmcheck.m4: Remove.
4277 * acinclude.m4: Don't include it.
4278 * Makefile.in: Don't distribute it.
4279 * top.c (print_gdb_configuration): Don't mention it.
4280
4281 2019-08-06 Tom Tromey <tom@tromey.com>
4282
4283 * utils.c (set_output_style): Sometimes pass stream to
4284 emit_style_escape.
4285 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4286 * record-btrace.c (btrace_insn_history): Update.
4287 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4288 method.
4289 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4290 Update initializers.
4291 <m_uiout>: New field.
4292 <m_di>: Move lower.
4293 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4294 Remove "uiout" parameter.
4295 (dump_insns): Update.
4296 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4297 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4298
4299 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4300
4301 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4302 (error_in_psymtab_expansion): Likewise.
4303 (lookup_symbol_via_quick_fns): Likewise.
4304 (basic_lookup_transparent_type_quick): Likewise.
4305 (basic_lookup_transparent_type_1): Likewise.
4306
4307 2019-08-06 Tom Tromey <tromey@adacore.com>
4308
4309 * source.c (last_source_error): Now bool.
4310 (print_source_lines_base): Make "noprint" bool. Only open
4311 source file when last_source_visited changes.
4312
4313 2019-08-06 Tom Tromey <tromey@adacore.com>
4314
4315 * annotate.c (annotate_source_line): Use g_source_cache.
4316 * source-cache.c (source_cache::get_plain_source_lines): Change
4317 parameters. Populate m_offset_cache.
4318 (source_cache::ensure): New method.
4319 (source_cache::get_line_charpos): New method.
4320 (extract_lines): Move lower. Change parameters.
4321 (source_cache::get_source_lines): Move lower.
4322 * source-cache.h (class source_cache): Update comment.
4323 <get_line_charpos>: New method.
4324 <get_source_lines>: Update comment.
4325 <clear>: Clear m_offset_cache.
4326 <get_plain_source_lines>: Change parameters.
4327 <ensure>: New method
4328 <m_offset_cache>: New member.
4329 * source.c (forget_cached_source_info_for_objfile): Update.
4330 (info_source_command): Use g_source_cache.
4331 (find_source_lines, open_source_file_with_line_charpos): Remove.
4332 (print_source_lines_base, search_command_helper): Use g_source_cache.
4333 * source.h (open_source_file_with_line_charpos): Don't declare.
4334 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4335 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4336 Use g_source_cache.
4337
4338 2019-08-06 Tom Tromey <tromey@adacore.com>
4339
4340 * source-cache.c (source_cache::get_plain_source_lines):
4341 Remove "first_line" and "last_line" parameters.
4342 (source_cache::get_source_lines): Cache plain text.
4343 * source-cache.h (class source_cache)
4344 <get_plain_source_lines>: Update.
4345
4346 2019-08-06 Tom Tromey <tromey@adacore.com>
4347
4348 * source-cache.c (extract_lines): No longer a method.
4349 Changed type of parameter. Include final newline.
4350 (selftests::extract_lines_test): New function.
4351 (_initialize_source_cache): Likewise.
4352 * source-cache.h (class source_cache)
4353 <extract_lines>: Don't declare.
4354
4355 2019-08-06 Tom Tromey <tromey@adacore.com>
4356
4357 * breakpoint.c (init_breakpoint_sal): Update.
4358 (breakpoint): Update.
4359 * breakpoint.h (struct breakpoint) <filter>: Now a
4360 unique_xmalloc_ptr.
4361
4362 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4363
4364 * NEWS: Mention dictionary access on blocks.
4365 * python/py-block.c (blpy_getitem): New function.
4366 (block_object_as_mapping): New struct.
4367 (block_object_type): Use new struct for tp_as_mapping field.
4368
4369 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4370
4371 * objfiles.h (objfile): Add a comment describing partial symbols.
4372
4373 2019-08-05 Tom Tromey <tromey@adacore.com>
4374
4375 * compile/compile.c (_initialize_compile): Use _(), not N_().
4376 * thread.c (_initialize_thread): Use _(), not N_().
4377 * stack.c (_initialize_stack): Use _(), not N_().
4378 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4379
4380 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4381
4382 * dwarf2read.c (struct dw2_symtab_iterator):
4383 <want_specific_block>: Remove.
4384 <block_index>: Change type to gdb::optional.
4385 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4386 change type of BLOCK_INDEX parameter to gdb::optional.
4387 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4388 (dw2_lookup_symbol): Don't pass argument for
4389 WANT_SPECIFIC_BLOCK.
4390 (dw2_expand_symtabs_for_function): Don't pass argument for
4391 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4392 (class dw2_debug_names_iterator)
4393 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4394 parameter, change BLOCK_INDEX type to gdb::optional.
4395 <m_want_specific_block>: Remove.
4396 <m_block_index>: Change type to gdb::optional.
4397 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4398 gdb::optional. Re-write in function of gdb::optional.
4399 (dw2_debug_names_lookup_symbol): Don't pass argument for
4400 WANT_SPECIFIC_BLOCK.
4401 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4402 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4403 BLOCK_INDEX.
4404
4405 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4406
4407 * NEWS: Mention changes to "info sources" command.
4408
4409 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4410
4411 * symtab.c (filename_partial_match_opts): New struct type.
4412 (struct output_source_filename_data): New members
4413 regexp, c_regexp, partial_match.
4414 (output_source_filename): Use new members to decide to print file.
4415 (info_sources_option_defs): New variable.
4416 (make_info_sources_options_def_group, print_info_sources_header,
4417 info_sources_command_completer):
4418 New functions.
4419 (info_sources_command): Read new optional arguments.
4420 (_initialize_symtab): Update info sources help.
4421
4422 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4423
4424 * ada-lang.c (exception_support_info_v0): Renamed from...
4425 (default_exception_support_info): ... this. Create new
4426 definition for v1.
4427 (ada_has_this_exception_support): Look up catch_handlers_sym.
4428 (ada_exception_support_info_sniffer): Try v0 after default.
4429
4430 2019-08-01 Tom Tromey <tromey@adacore.com>
4431
4432 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4433 gdbarch.h.
4434
4435 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4436
4437 * s12z-tdep.c: Fix include path for s12z-opc.h.
4438
4439 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4440
4441 * NEWS: Require GNU make 3.82.
4442
4443 2019-07-16 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4446 declare.
4447
4448 2019-07-30 Tom Tromey <tromey@adacore.com>
4449
4450 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4451
4452 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4453
4454 * printcmd.c (print_address_symbolic): Print negative offsets.
4455 (build_address_symbolic): Force signed arithmetic when computing
4456 offset.
4457
4458 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4459
4460 PR/24474: Add a function to lookup static variables.
4461 * NEWS: Mention this new function.
4462 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4463 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4464 * python/python.c (python_GdbMethods): Add new function.
4465
4466 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4467
4468 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4469 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4470 (objfpy_lookup_static_symbol): New function.
4471 (objfile_object_methods): Add new functions.
4472
4473 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4474
4475 * NEWS: Mention 'set|show print frame-info'. Mention new
4476 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4477 backtrace argument. Mention that python frame filtering code
4478 is now consistent with what 'backtrace' command prints.
4479
4480 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4481
4482 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4483 comments.
4484 (print_frame_info_auto, print_frame_info_source_line,
4485 print_frame_info_location, print_frame_info_source_and_location,
4486 print_frame_info_location_and_address, print_frame_info_short_location):
4487 New declarations.
4488 (struct frame_print_options): New member print_frame_info.
4489 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4490 * stack.h (get_user_print_what_frame_info): New declaration.
4491 (frame_show_address): New declaration.
4492 * stack.c (print_frame_arguments_choices): New value 'presence'.
4493 (print_frame_info_auto, print_frame_info_source_line,
4494 print_frame_info_location, print_frame_info_source_and_location,
4495 print_frame_info_location_and_address, print_frame_info_short_location,
4496 print_frame_info_choices, print_frame_info_print_what): New definitions.
4497 (print_frame_args): Only print dots for args if print frame-arguments
4498 is 'presence'.
4499 (frame_print_option_defs): New element for "frame-info".
4500 (get_user_print_what_frame_info): New function.
4501 (frame_show_address): Make non static. Move comment to stack.h.
4502 (print_frame_info_to_print_what): New function.
4503 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4504 to decide what to print.
4505 (backtrace_command_1): Handle the new print_frame_arguments_presence
4506 value.
4507 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4508 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4509 (py_print_frame): In non-mi mode, use LOCATION as default for
4510 print_what, similarly to frame information printed directly by
4511 backtrace command. Handle frame-info user option in non MI mode.
4512
4513 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4514
4515 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4516 Add case for debugging 32-bit target on 64-bit host. Revise
4517 comment.
4518
4519 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4520
4521 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4522 instead of find_function_entry_range_from_pc.
4523
4524 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4525
4526 * stack.c (find_frame_funname): Remove code which preferred
4527 minsym over symtab sym in "certain pathological cases".
4528
4529 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4530 parameter. Change type of "do_demangle" to bool.
4531 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4532 Pass suitable "prefer_sym_over_minsym" flag to
4533 build_address_symbolic(). Don't output "+" for negative offsets.
4534 * printcmd.c (print_address_symbolic): Update invocation of
4535 build_address_symbolic to include a "prefer_sym_over_minsym"
4536 flag.
4537 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4538 Restrict cases in which use of minimal symbol is preferred to that
4539 of a found symbol. Update comments.
4540
4541 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4542 for entry pc when entry pc is out of range for that FDE.
4543
4544 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4545
4546 PR gdb/24839:
4547 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4548 type.
4549
4550 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4551
4552 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4553 this function's Python signature.
4554
4555
4556 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4557
4558 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4559 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4560 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4561 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4562 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4563
4564
4565 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4566
4567 * h8300-tdep.c (h8300_register_name_common): New.
4568 h8300_register_name): Use h8300_register_name_common.
4569 (h8300s_register_name): Likewise.
4570 (h8300sx_register_name): Likewise.
4571 (h8300h_register_nam): New.
4572 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4573
4574
4575 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4576
4577 * arm-tdep.c (arm_skip_cmse_entry): New function.
4578 (arm_is_sgstubs_section): New function.
4579 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4580
4581 2019-07-22 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4584 Don't self-assign.
4585
4586 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4589 type_print.
4590
4591 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4592
4593 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4594 so that GDB doesn't match any msymbols when searching in the
4595 TYPES_DOMAIN.
4596 (print_symbol_info): Print using typedef_print or type_print based
4597 on the type of the symbol. Add updated FIXME comment moved from...
4598 (_initialize_symtab): ... move and update FIXME comment to above.
4599
4600 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * NEWS: Mention adding -q option to "info types".
4603 * symtab.c (struct info_types_options): New struct.
4604 (info_types_options_defs): New variable.
4605 (make_info_types_options_def_group): New function.
4606 (info_types_command): Use gdb::option framework to parse options.
4607 (info_types_command_completer): New function.
4608 (_initialize_symtab): Extend the help text on "info types" and
4609 register command completer.
4610
4611 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4612
4613 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4614 (lookup_symbol_in_objfile): Change int to block_enum and add a
4615 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4616
4617 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4618
4619 * MAINTAINERS (Write After Approval): Add self.
4620
4621 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4624 instruction to the dummy code region.
4625
4626 2019-07-19 Tom Tromey <tromey@adacore.com>
4627
4628 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4629 (ARGSUSED, PARAMS, __func__): Remove rules.
4630
4631 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4632
4633 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4634 * features/arm/arm-with-iwmmxt.c: Remove.
4635 * features/arm/arm-with-iwmmxt.xml: Remove.
4636 * features/arm/arm-with-m-fpa-layout.c: Remove.
4637 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4638 * features/arm/arm-with-m-vfp-d16.c: Remove.
4639 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4640 * features/arm/arm-with-m.c: Remove.
4641 * features/arm/arm-with-m.xml: Remove.
4642 * features/arm/arm-with-neon.c: Remove.
4643 * features/arm/arm-with-neon.xml: Remove.
4644 * features/arm/arm-with-vfpv2.c: Remove.
4645 * features/arm/arm-with-vfpv2.xml: Remove.
4646 * features/arm/arm-with-vfpv3.c: Remove.
4647 * features/arm/arm-with-vfpv3.xml: Remove.
4648
4649 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4650
4651 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4652
4653 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4654
4655 * arch/aarch32.c (aarch32_create_target_description): Create
4656 target descriptions using features.
4657 * arch/arm.c (arm_create_target_description)
4658 (arm_create_mprofile_target_description): Likewise.
4659 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4660
4661 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4662
4663 * Makefile.in: Add new files.
4664 * aarch32-tdep.c: New file.
4665 * aarch32-tdep.h: New file.
4666 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4667 Call aarch32_read_description.
4668 * arch/aarch32.c: New file.
4669 * arch/aarch32.h: New file.
4670 * arch/arm.c (arm_create_target_description)
4671 (arm_create_mprofile_target_description): New function.
4672 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4673 (arm_create_target_description)
4674 (arm_create_mprofile_target_description): New declaration.
4675 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4676 read_description functions.
4677 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4678 Likewise.
4679 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4680 * arm-tdep.c (tdesc_arm_list): New variable.
4681 (arm_register_g_packet_guesses): Call create description functions.
4682 (arm_read_description) (arm_read_mprofile_description): New
4683 function.
4684 * arm-tdep.h (arm_read_description)
4685 (arm_read_mprofile_description): Add declaration.
4686 * configure.tgt: Add new files.
4687
4688 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4689
4690 * top.c (new_ui_command): Open specified terminal just once.
4691
4692 2019-07-18 Tom Tromey <tromey@adacore.com>
4693
4694 * symtab.c (main_name): Constify return type.
4695 * symfile.c (set_initial_language): Update.
4696 * symtab.h (main_name): Constify return type.
4697
4698 2019-07-17 Tom Tromey <tom@tromey.com>
4699
4700 * tui/tui-winsource.c (tui_update_source_window)
4701 (tui_update_source_window_as_is)
4702 (tui_update_source_windows_with_line): Remove return.
4703 * tui/tui-disasm.c (tui_show_disassem)
4704 (tui_show_disassem_and_update_source): Remove return.
4705 * tui/tui.c (tui_reset): Remove return.
4706 * tui/tui-wingeneral.c
4707 (tui_check_and_display_highlight_if_needed): Remove return.
4708
4709 2019-07-17 Tom Tromey <tom@tromey.com>
4710
4711 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4712
4713 2019-07-17 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-winsource.h (struct tui_exec_info_window)
4716 (struct tui_source_window_base): Move from tui-data.h.
4717 * tui/tui-winsource.c: Move many method definitions from
4718 elsewhere. Remove "structuring" comments.
4719 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4720 (tui_source_window_base::refresh_window): Move to
4721 tui-winsource.c.
4722 * tui/tui-win.c (tui_source_window_base::refresh_all)
4723 (tui_source_window_base::update_tab_width)
4724 (tui_source_window_base::set_new_height)
4725 (tui_source_window_base::do_make_visible_with_new_height): Move to
4726 tui-winsource.c.
4727 * tui/tui-source.h: Update.
4728 * tui/tui-source.c (tui_source_window_base::reset): Move to
4729 tui-winsource.c.
4730 * tui/tui-disasm.h: Update.
4731 * tui/tui-data.h (struct tui_exec_info_window): Move to
4732 tui-winsource.h.
4733 (struct tui_source_window_base): Likewise.
4734 * tui/tui-data.c (tui_source_window_base::clear_detail)
4735 (tui_source_window_base, ~tui_source_window_base): Move to
4736 tui-winsource.c.
4737
4738 2019-07-17 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-win.c (tui_resize_all)
4741 (tui_source_window_base::update_tab_width)
4742 (tui_adjust_win_heights): Update.
4743 (tui_win_info::make_invisible_and_set_new_height): Rename from
4744 make_invisible_and_set_new_height.
4745 * tui/tui-data.h (struct tui_win_info)
4746 <make_invisible_and_set_new_height>: New method.
4747
4748 2019-07-17 Tom Tromey <tom@tromey.com>
4749
4750 * tui/tui.c: Update.
4751 * tui/tui-source.h (struct tui_source_window): Move from
4752 tui-data.h.
4753 * tui/tui-layout.c: Update.
4754 * tui/tui-disasm.c: Update.
4755 * tui/tui-data.h (struct tui_source_window): Move to
4756 tui-source.h.
4757
4758 2019-07-17 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4761 tui-data.h.
4762 * tui/tui-data.h (struct tui_disasm_window): Move to
4763 tui-disasm.h.
4764
4765 2019-07-17 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-regs.h (struct tui_data_item_window): Move from
4768 tui-data.h.
4769 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4770 * tui/tui-data.h (struct tui_data_item_window): Move to
4771 tui-regs.h.
4772 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4773
4774 2019-07-17 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui.c: Update.
4777 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4778 (tui_cmd_window::max_height): Move to tui-command.c.
4779 * tui/tui-layout.c: Update.
4780 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4781 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4782 tui-command.c.
4783 * tui/tui-command.h (struct tui_cmd_window): Move from
4784 tui-data.h.
4785 * tui/tui-command.c: Remove "structuring" comments.
4786 (tui_cmd_window::clear_detail)
4787 (tui_cmd_window::do_make_visible_with_new_height)
4788 (tui_cmd_window::max_height): Move from elsewhere.
4789
4790 2019-07-17 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4793 Now static.
4794 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4795 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4796
4797 2019-07-17 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui.c: Update.
4800 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4801 tui-regs.c.
4802 * tui/tui-windata.h: Remove file.
4803 * tui/tui-windata.c: Remove file.
4804 * tui/tui-win.c (tui_data_window::set_new_height)
4805 (tui_data_window::do_make_visible_with_new_height): Move to
4806 tui-regs.c.
4807 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4808 * tui/tui-regs.c: Remove "structuring" comments.
4809 (tui_data_window::first_data_item_displayed)
4810 (tui_data_window::delete_data_content_windows)
4811 (tui_data_window::erase_data_content)
4812 (tui_data_window::display_all_data)
4813 (tui_data_window::refresh_all)
4814 (tui_data_window::do_scroll_vertical)
4815 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4816 (tui_data_window::do_make_visible_with_new_height)
4817 (tui_data_window::refresh_window): Move from elsewhere.
4818 (_initialize_tui_regs): Move to end of file.
4819 * tui/tui-layout.c: Update.
4820 * tui/tui-hooks.c: Update.
4821 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4822 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4823 tui-regs.c.
4824 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4825
4826 2019-07-17 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4829 seen.
4830
4831 2019-07-17 Tom Tromey <tom@tromey.com>
4832
4833 * tui/tui-win.c (tui_source_window_base::set_new_height)
4834 (tui_source_window_base::do_make_visible_with_new_height): Use
4835 m_has_locator field directly.
4836 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4837 method.
4838 (struct tui_source_window_base) <has_locator>: Likewise.
4839
4840 2019-07-17 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4843 Don't declare.
4844 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4845 Remove.
4846 * tui/tui-win.c (tui_source_window_base::set_new_height)
4847 (tui_source_window_base::set_new_height)
4848 (make_invisible_and_set_new_height)
4849 (tui_source_window_base::do_make_visible_with_new_height)
4850 (tui_source_window_base::do_make_visible_with_new_height):
4851 Update.
4852 * tui/tui-layout.c (show_source_disasm_command, show_data)
4853 (show_source_or_disasm_and_command): Update.
4854 * tui/tui-layout.c (show_layout): Update.
4855
4856 2019-07-17 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-layout.c (make_data_window): Remove.
4859 (show_data): Unify creation and re-initialization cases.
4860
4861 2019-07-17 Tom Tromey <tom@tromey.com>
4862
4863 * tui/tui-layout.c (make_source_window, make_disasm_window):
4864 Remove.
4865 (show_data): Unify creation and re-initialization cases.
4866
4867 2019-07-17 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-layout.c (make_command_window): Remove.
4870 (show_source_disasm_command, show_source_or_disasm_and_command):
4871 Unify creation and re-initialization cases.
4872
4873 2019-07-17 Tom Tromey <tom@tromey.com>
4874
4875 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4876 creation and re-initialization cases.
4877
4878 2019-07-17 Tom Tromey <tom@tromey.com>
4879
4880 * tui/tui-regs.c (tui_get_register): Return void.
4881
4882 2019-07-17 Tom Tromey <tom@tromey.com>
4883
4884 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4885 Simplify.
4886
4887 2019-07-17 Tom Tromey <tom@tromey.com>
4888
4889 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4890 resetting.
4891
4892 2019-07-17 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4895 * tui/tui-regs.c (tui_reg_layout): New function.
4896 (tui_show_registers, tui_reg_command): Use it.
4897 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4898 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4899 parameters.
4900 (tui_layout_command): Remove.
4901
4902 2019-07-17 Tom Tromey <tom@tromey.com>
4903
4904 * tui/tui-layout.h (tui/tui-layout): Return void.
4905 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4906
4907 2019-07-17 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-layout.c (show_source_disasm_command, show_data):
4910 Update.
4911 (reset_locator): Remove.
4912 (show_source_or_disasm_and_command): Update.
4913
4914 2019-07-17 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-source.c (tui_source_window_base::reset): Remove
4917 win_type parameter.
4918 * tui/tui-layout.c (make_command_window, make_source_window)
4919 (make_disasm_window, make_data_window)
4920 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4921 (reset_locator, show_source_or_disasm_and_command): Update.
4922 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4923 win_type parameter.
4924 (struct tui_source_window_base) <reset>: Likewise.
4925
4926 2019-07-17 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui-layout.c (show_source_disasm_command): Use
4929 reset_locator.
4930 (reset_locator): New function.
4931 (init_and_make_win): Remove.
4932 (show_source_or_disasm_and_command): Use reset_locator.
4933
4934 2019-07-17 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4937 condition.
4938 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4939 Remove condition.
4940 * tui/tui-source.c (tui_source_window_base::reset): New method.
4941 * tui/tui-layout.c (make_command_window): Don't call
4942 init_and_make_win.
4943 (make_source_window, make_disasm_window): Don't call
4944 make_source_or_disasm_window.
4945 (make_data_window): Don't call init_and_make_win. Change calling
4946 convention.
4947 (show_source_disasm_command, show_data): Simplify.
4948 (make_source_or_disasm_window): Remove.
4949 (show_source_or_disasm_and_command): Simplify.
4950 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4951 (struct tui_source_window_base) <reset>: Likewise.
4952 <execution_info>: Remove initializer.
4953 * tui/tui-data.c (tui_source_window_base): Initialize
4954 execution_info.
4955
4956 2019-07-17 Tom Tromey <tom@tromey.com>
4957
4958 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4959 variable.
4960
4961 2019-07-17 Tom Tromey <tom@tromey.com>
4962
4963 * tui/tui.c (tui_rl_other_window): Update.
4964 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4965 superclass method first. Always iterate over regs_content.
4966 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4967 method.
4968 * tui/tui-win.c (tui_set_focus_command): Update.
4969
4970 2019-07-17 Tom Tromey <tom@tromey.com>
4971
4972 * tui/tui-win.c (tui_set_focus_command): Rename from
4973 tui_set_focus. Call tui_enable.
4974 (tui_set_focus_command): Remove.
4975
4976 2019-07-17 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4979 refresh_window.
4980 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4981 touchwin.
4982 (tui_data_window::refresh_window): Call refresh_window on data
4983 items. Always call superclass refresh_window.
4984 (tui_win_info::refresh): Remove.
4985 (tui_source_window_base::refresh_window): Update.
4986 (tui_refresh_all): Update.
4987 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4988 refresh_window.
4989 (show_source_or_disasm_and_command): Likewise.
4990 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4991 (struct tui_source_window_base) <refresh>: Likewise.
4992
4993 2019-07-17 Tom Tromey <tom@tromey.com>
4994
4995 * tui/tui-winsource.c (tui_clear_source_content)
4996 (tui_show_source_content): Update.
4997 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4998 whether content is empty.
4999 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5000 Remove.
5001
5002 2019-07-17 Tom Tromey <tom@tromey.com>
5003
5004 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5005 window's contents.
5006 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5007 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5008
5009 2019-07-17 Tom Tromey <tom@tromey.com>
5010
5011 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5012 (struct tui_data_item_window): Update.
5013
5014 2019-07-17 Tom Tromey <tom@tromey.com>
5015
5016 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5017 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5018 defines.
5019
5020 2019-07-17 Tom Tromey <tom@tromey.com>
5021
5022 * tui/tui-winsource.h (tui_erase_source_content)
5023 (tui_clear_source_content): Remove "display_prompt" parameter.
5024 * tui/tui-winsource.c (tui_update_source_window_as_is)
5025 (tui_update_source_windows_with_addr): Update.
5026 (tui_clear_source_content): Remove "display_prompt" parameter.
5027 (tui_erase_source_content): Likewise. Simplify.
5028 (tui_show_source_content): Update.
5029 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5030 * tui/tui-stack.c (tui_show_frame_info): Update.
5031 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5032 Remove defines.
5033
5034 2019-07-17 Tom Tromey <tom@tromey.com>
5035
5036 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5037 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5038 parameter.
5039 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5040 parameter.
5041
5042 2019-07-17 Tom Tromey <tom@tromey.com>
5043
5044 * tui/tui-winsource.c (tui_clear_source_content)
5045 (tui_show_source_content, tui_show_exec_info_content)
5046 (tui_clear_exec_info_content): Update.
5047 * tui/tui-stack.c (tui_show_locator_content): Update.
5048 (tui_show_frame_info): Update.
5049 * tui/tui-source.h (tui_source_window): Don't declare.
5050 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5051 from tui_source_is_displayed.
5052 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5053 Remove field.
5054 (struct tui_source_window_base) <content_in_use>: New field. Now
5055 bool.
5056 (struct tui_source_window) <showing_source_p>: New method.
5057 (TUI_SRC_WIN): Change cast.
5058 * tui/tui-data.c (tui_initialize_static_data): Update.
5059
5060 2019-07-17 Tom Tromey <tom@tromey.com>
5061
5062 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5063 location_matches_p.
5064 * tui/tui-source.c (tui_source_window::location_matches_p): New
5065 method.
5066 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5067 method.
5068 * tui/tui-data.h (struct tui_source_window_base)
5069 <location_matches_p>: New method.
5070 (struct tui_source_window, struct tui_disasm_window)
5071 <location_matches_p>: Likewise.
5072
5073 2019-07-17 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-win.c (tui_set_win_height_command): Rename from
5076 tui_set_win_height.
5077 (tui_set_win_height_command): Remove.
5078
5079 2019-07-17 Tom Tromey <tom@tromey.com>
5080
5081 * tui/tui-source.c (tui_source_window): New constructor. Add
5082 observer.
5083 (~tui_source_window): New destructor.
5084 (tui_source_window::style_changed): New method.
5085 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5086 (tui_attach_detach_observers): Update.
5087 * tui/tui-data.h (struct tui_source_window): Make constructor not
5088 inline. Add destructor.
5089 (struct tui_source_window) <style_changed>: New method.
5090 <m_observable>: New member.
5091
5092 2019-07-17 Tom Tromey <tom@tromey.com>
5093
5094 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5095 * tui/tui-win.c (tui_resize_all): Fix typo.
5096
5097 2019-07-17 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5100 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5101 (tui_refresh_all): Remove "list" parameter. Use foreach.
5102 * tui/tui-win.c (window_name_completer): Use foreach.
5103 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5104 (update_tab_width): Likewise.
5105 * tui/tui-layout.c (show_layout): Update.
5106 * tui/tui-data.h (class tui_window_iterator): New.
5107 (struct all_tui_windows): New.
5108 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5109
5110 2019-07-17 Tom Tromey <tom@tromey.com>
5111
5112 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5113 parameter. Don't reference globals.
5114 (tui_reg_command): Update.
5115
5116 2019-07-17 Tom Tromey <tom@tromey.com>
5117
5118 * tui/tui-regs.c (tui_show_registers): Simplify.
5119
5120 2019-07-17 Tom Tromey <tom@tromey.com>
5121
5122 * tui/tui-regs.c (tui_show_registers): Update.
5123 (tui_show_register_group): Add win_info parameter.
5124
5125 2019-07-17 Tom Tromey <tom@tromey.com>
5126
5127 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5128 Rename from tui_display_reg_element_at_line.
5129 (tui_data_window::display_registers_from_line): Update.
5130 * tui/tui-data.h (struct tui_data_window)
5131 <display_reg_element_at_line>: New method.
5132
5133 2019-07-17 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-regs.h (tui_display_registers_from)
5136 (tui_display_registers_from_line): Don't declare.
5137 * tui/tui-windata.c (tui_data_window::display_all_data)
5138 (tui_data_window::refresh_all)
5139 (tui_data_window::do_scroll_vertical): Update.
5140 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5141 from tui_display_registers_from.
5142 (tui_display_reg_element_at_line): Update.
5143 (tui_data_window::display_registers_from_line): Rename from
5144 tui_display_registers_from_line.
5145 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5146 display_registers_from_line>: New methods.
5147
5148 2019-07-17 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5151 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5152 from tui_erase_data_content.
5153 (tui_data_window::display_all_data)
5154 (tui_data_window::refresh_all)
5155 (tui_data_window::do_scroll_vertical): Update.
5156 * tui/tui-regs.c (tui_show_registers): Update.
5157 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5158 New method.
5159
5160 2019-07-17 Tom Tromey <tom@tromey.com>
5161
5162 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5163 declare.
5164 * tui/tui-windata.c
5165 (tui_data_window::delete_data_content_windows): Rename from
5166 tui_delete_data_content_windows.
5167 (tui_data_window::display_all_data)
5168 (tui_data_window::do_scroll_vertical): Update.
5169 * tui/tui-data.h (struct tui_data_window)
5170 <delete_data_content_windows>: New method.
5171
5172 2019-07-17 Tom Tromey <tom@tromey.com>
5173
5174 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5175 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5176
5177 2019-07-17 Tom Tromey <tom@tromey.com>
5178
5179 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5180 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5181 from tui_display_all_data.
5182 * tui/tui-win.c
5183 (tui_data_window::do_make_visible_with_new_height): Update.
5184 * tui/tui-regs.c (tui_show_registers): Update.
5185 * tui/tui-layout.c (tui_set_layout): Update.
5186 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5187 method.
5188
5189 2019-07-17 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5192 * tui/tui-windata.c (tui_display_data_from): Remove.
5193 (tui_data_window::refresh_all): Update.
5194
5195 2019-07-17 Tom Tromey <tom@tromey.com>
5196
5197 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5198 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5199 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5200 tui_display_registers_from_line.
5201 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5202 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5203 "force_display" parameter.
5204
5205 2019-07-17 Tom Tromey <tom@tromey.com>
5206
5207 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5208 declare.
5209 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5210 Rename from tui_first_reg_element_no_inline.
5211 (tui_display_reg_element_at_line)
5212 (tui_display_registers_from_line): Update.
5213 * tui/tui-data.h (struct tui_data_window)
5214 <first_reg_element_no_inline>: New method.
5215
5216 2019-07-17 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-windata.c (tui_display_data_from)
5219 (tui_data_window::do_scroll_vertical): Update.
5220 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5221 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5222 Rename from tui_line_from_reg_element_no.
5223 (tui_display_registers_from_line): Update.
5224 * tui/tui-data.h (struct tui_data_window)
5225 <line_from_reg_element_no>: New method.
5226
5227 2019-07-17 Tom Tromey <tom@tromey.com>
5228
5229 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5230 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5231 tui_last_regs_line_no.
5232 (tui_display_reg_element_at_line)
5233 (tui_display_registers_from_line): Update.
5234 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5235 method.
5236
5237 2019-07-17 Tom Tromey <tom@tromey.com>
5238
5239 PR tui/24722:
5240 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5241 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5242 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5243 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5244 (tui_update_breakpoint_info): Likewise.
5245 * tui/tui-hooks.c (tui_event_create_breakpoint)
5246 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5247 Update.
5248
5249 2019-07-17 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5252
5253 2019-07-17 Tom Tromey <tom@tromey.com>
5254
5255 * tui/tui-winsource.c (tui_update_source_window_as_is)
5256 (tui_update_source_windows_with_addr): Update.
5257 * tui/tui-source.h (tui_set_source_content)
5258 (tui_show_symtab_source): Add "win_info" parameter.
5259 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5260 parameter.
5261 (tui_show_symtab_source): Likewise.
5262
5263 2019-07-17 Tom Tromey <tom@tromey.com>
5264
5265 * tui/tui-wingeneral.c
5266 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5267
5268 2019-07-17 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5271 (struct tui_cmd_window) <can_scroll>: New method.
5272 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5273 method.
5274
5275 2019-07-17 Tom Tromey <tromey@adacore.com>
5276
5277 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5278 do_field_signed>: Rename. Change type of "value".
5279 * ui-out.c (ui_out::field_signed): Rename from field_int.
5280 Change type of "value".
5281 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5282 type of "value".
5283 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5284 do_field_int. Change type of "value".
5285 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5286 do_field_int. Change type of "value".
5287 * tracepoint.c (trace_status_mi, tfind_1)
5288 (print_one_static_tracepoint_marker): Update.
5289 * thread.c (print_thread_info_1, print_selected_thread_frame):
5290 Update.
5291 * stack.c (print_frame, print_frame_info): Update.
5292 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5293 Update.
5294 * source.c (print_source_lines_base): Update.
5295 * skip.c (info_skip_command): Update.
5296 * record-btrace.c (btrace_ui_out_decode_error)
5297 (btrace_call_history_src_line): Update.
5298 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5299 Update.
5300 * progspace.c (print_program_space): Update.
5301 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5302 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5303 do_field_int. Change type of "value".
5304 * mi/mi-out.c (mi_ui_out::do_table_begin)
5305 (mi_ui_out::do_table_header): Update.
5306 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5307 type of "value".
5308 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5309 (mi_cmd_data_list_changed_registers, output_register)
5310 (mi_cmd_data_read_memory, mi_load_progress)
5311 (mi_cmd_trace_frame_collected): Update.
5312 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5313 Update.
5314 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5315 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5316 (mi_cmd_var_list_children, varobj_update_one): Update.
5317 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5318 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5319 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5320 * inferior.c (print_inferior): Update.
5321 * gdb_bfd.c (print_one_bfd): Update.
5322 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5323 Update.
5324 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5325 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5326 do_field_int. Change type of "value".
5327 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5328 do_field_int. Change type of "value".
5329 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5330 (print_one_breakpoint_location, print_it_catch_fork)
5331 (print_one_catch_fork, print_it_catch_vfork)
5332 (print_one_catch_vfork, print_it_catch_solib)
5333 (print_it_catch_exec, print_it_ranged_breakpoint)
5334 (print_mention_watchpoint, print_mention_masked_watchpoint)
5335 (bkpt_print_it, update_static_tracepoint): Update.
5336 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5337 * break-catch-syscall.c (print_it_catch_syscall): Update.
5338 * ada-tasks.c (print_ada_task_info): Update.
5339 * ada-lang.c (print_it_exception, print_mention_exception):
5340 Update.
5341
5342 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5343
5344 PR breakpoints/24541
5345 * gdbarch.c: Regenerate.
5346 * gdbarch.h: Regenerate.
5347 * gdbarch.sh: Adjust return type and parameter types for
5348 'stap_adjust_register'.
5349 (i386_stap_adjust_register): Adjust signature and return new
5350 register name.
5351 * stap-probe.c (stap_parse_register_operand): Adjust use of
5352 'gdbarch_stap_adjust_register'.
5353
5354 2019-07-17 Tom Tromey <tromey@adacore.com>
5355
5356 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5357 declare VEC.
5358 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5359 std::vector.
5360 (struct s390_process_info): Add initializers.
5361 (s390_add_process): Use new.
5362 (s390_linux_nat_target::low_forget_process): Use delete.
5363 (s390_linux_nat_target::low_new_fork)
5364 (s390_linux_nat_target::stopped_by_watchpoint)
5365 (s390_linux_nat_target::low_prepare_to_resume)
5366 (s390_linux_nat_target::insert_watchpoint)
5367 (s390_linux_nat_target::insert_hw_breakpoint)
5368 (s390_linux_nat_target::remove_watchpoint)
5369 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5370
5371 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5372
5373 * aarch64-fbsd-nat.c: Include regcache.h.
5374 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5375 argument.
5376 (aarch64_fbsd_nat_target::fetch_registers)
5377 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5378 variable.
5379 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5380
5381 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5382
5383 * fbsd-nat.c: Include gdbarch.h.
5384
5385 2019-07-15 Tom Tromey <tromey@adacore.com>
5386
5387 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5388
5389 2019-07-15 Tom Tromey <tromey@adacore.com>
5390
5391 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5392 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5393 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5394 * cli-out.c (cli_ui_out::do_field_int): New method.
5395 * ui-out.c (ui_out::field_unsigned): New method.
5396 * symfile.c (generic_load): Use field_unsigned.
5397 (print_transfer_performance): Likewise.
5398 * record-btrace.c (ui_out_field_uint): Remove.
5399 (btrace_call_history_insn_range, btrace_call_history): Use
5400 field_unsigned.
5401 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5402 field_unsigned.
5403 * ui-out.h (class ui_out) <field_unsigned>: New method.
5404 <do_field_unsigned>: Likewise.
5405
5406 2019-07-15 Tom Tromey <tromey@adacore.com>
5407
5408 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5409 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5410 * target.c (flash_erase_command): Use field_string.
5411 * infrun.c (print_signal_received_reason): Use field_string.
5412 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5413 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5414 field_string.
5415 * ada-tasks.c (print_ada_task_info): Use field_string.
5416
5417 2019-07-15 Tom Tromey <tromey@adacore.com>
5418
5419 * target.c (flash_erase_command): Use field_core_addr.
5420 * symfile.c (generic_load): Use field_core_addr.
5421 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5422 Use field_core_addr.
5423 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5424 field_core_addr.
5425
5426 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5427
5428 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5429 value if its desired type is smaller than a CORE_ADDR and signed.
5430
5431 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5432
5433 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5434 of changes to field names, and use new is_reference field to
5435 decide if a property is a reference or not.
5436 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5437 field.
5438 (struct dwarf2_property_baton): Update header comment, rename
5439 'referenced_type' to 'property_type' and update comments.
5440 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5441 default property type, store in property baton, update to take
5442 accound of renamed field.
5443 (read_func_scope): Update call to attr_to_dynamic_prop.
5444 (read_array_type): Likewise.
5445 (dwarf2_per_cu_addr_sized_int_type): New function.
5446 (read_subrange_index_type): Move type finding code to
5447 dwarf2_per_cu_addr_sized_int_type.
5448 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5449 (dwarf2_per_cu_addr_type): New function.
5450 (set_die_type): Update calls to attr_to_dynamic_prop.
5451
5452 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5453
5454 * dwarf2read.c (read_subrange_index_type): New function.
5455 (read_subrange_type): Move code into new function and call it.
5456 * gdbtypes.c (create_range_type): Add some asserts.
5457
5458 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5459
5460 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5461 update return statements.
5462 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5463 declaration, and update comment to match.
5464 * gdbtypes.c (resolve_dynamic_array): Update call to
5465 dwarf2_evaluate_property to match new return type.
5466
5467 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5468
5469 * valarith.c (value_subscripted_rvalue): Change lowerbound
5470 parameter type from int to LONGEST.
5471 * value.h (value_subscripted_rvalue): Likewise in declaration.
5472
5473 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5474
5475 * cli/cli-utils.c (info_print_command_completer): New function.
5476 * cli/cli-utils.h: Add 'completer.h' include, and forward
5477 declaration for 'struct cmd_list_element'.
5478 (info_print_command_completer): Declare.
5479 * stack.c (_initialize_stack): Add completer for 'info locals' and
5480 'info args'.
5481 * symtab.c (_initialize_symtab): Add completer for 'info
5482 variables' and 'info functions'.
5483 * NEWS: Mention completion for additional info commands.
5484
5485 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * cli/cli-utils.c (extract_info_print_args): Delete.
5488 (extract_arg_maybe_quoted): Delete.
5489 (info_print_options_defs): New variable.
5490 (make_info_print_options_def_group): New function.
5491 (extract_info_print_options): Define new function.
5492 * cli/cli-utils.h (extract_info_print_args): Delete.
5493 (struct info_print_options): New structure.
5494 (extract_info_print_options): Declare new function.
5495 * stack.c (info_locals_command): Update to use new
5496 extract_info_print_options, also add a header comment.
5497 (info_args_command): Likewise.
5498 * symtab.c (info_variables_command): Likewise.
5499 (info_functions_command): Likewise.
5500
5501 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5504 to extract string arguments.
5505 * common/common-utils.c (extract_string_maybe_quoted): New function.
5506 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5507
5508 2019-07-11 Tom Tromey <tromey@adacore.com>
5509
5510 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5511 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5512 * top.h (gdbinit): Don't declare.
5513 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5514 into...
5515 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5516 * top.c (gdb_init): Don't call init_cli_cmds.
5517 (gdbinit): Remove.
5518 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5519
5520 2019-07-11 Tom Tromey <tromey@adacore.com>
5521
5522 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5523 after it has been moved.
5524
5525 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * valops.c (value_must_coerce_to_target): Change return type to
5528 bool.
5529 * value.h (value_must_coerce_to_target): Likewise.
5530
5531 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5532
5533 * breakpoint.c (is_hardware_watchpoint): Remove
5534 forward-declaration.
5535 (is_masked_watchpoint): Change return type to bool.
5536 (is_tracepoint): Likewise.
5537 (is_breakpoint): Likewise.
5538 (is_hardware_watchpoint): Likewise.
5539 (is_watchpoint): Likewise.
5540 (is_no_memory_software_watchpoint): Likewise.
5541 (is_catchpoint): Likewise.
5542 (breakpoint_1): Make FILTER parameter's return type bool.
5543 is_masked_watchpoint): Change return type to bool.
5544 (save_breakpoints): Make FILTER parameter's return type bool.
5545 * breakpoint.h (is_breakpoint): Change return type to bool.
5546 (is_watchpoint): Likewise.
5547 (is_catchpoint): Likewise.
5548 (is_tracepoint): Likewise.
5549
5550 2019-07-10 Tom Tromey <tom@tromey.com>
5551
5552 * defs.h: Don't include gdbarch.h.
5553 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5554 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5555 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5556 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5557 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5558 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5559 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5560 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5561 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5562 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5563 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5564 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5565 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5566 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5567 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5568 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5569 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5570 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5571 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5572 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5573 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5574 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5575 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5576 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5577 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5578 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5579 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5580
5581 2019-07-10 Tom Tromey <tromey@adacore.com>
5582
5583 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5584 * breakpoint.c (init_ada_exception_breakpoint): Register as
5585 bp_catchpoint.
5586 (print_one_breakpoint_location, print_one_breakpoint): Use
5587 is_ada_exception_catchpoint.
5588 * ada-lang.c (class ada_catchpoint_location): Pass
5589 bp_loc_software_breakpoint to bp_location constructor.
5590 (is_ada_exception_catchpoint): New function.
5591
5592 2019-07-10 Tom Tromey <tromey@adacore.com>
5593
5594 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5595 VEC.
5596 (struct arm_exidx_entry): New method operator<.
5597 (struct arm_exidx_data) <section_maps>: Change type.
5598 (arm_exidx_data_free): Remove.
5599 (arm_exidx_data_key): Change type. Move lower.
5600 (arm_exidx_new_objfile): Update.
5601 (arm_compare_exidx_entries): Remove.
5602 (arm_find_exidx_entry, _initialize_arm_tdep)
5603
5604 2019-07-10 Tom Tromey <tromey@adacore.com>
5605
5606 * solib-spu.c (ocl_program_data_key): Change type.
5607 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5608 Update.
5609
5610 2019-07-10 Tom Tromey <tromey@adacore.com>
5611
5612 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5613 (struct solib_aix_inferior_data) <library_list>: Change type.
5614 (solib_aix_inferior_data_handle): Change type.
5615 (get_solib_aix_inferior_data): Update.
5616 (solib_aix_free_library_list): Remove.
5617 (library_list_start_library): Update.
5618 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5619 return type.
5620 (solib_aix_get_library_list)
5621 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5622 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5623
5624 2019-07-10 Tom Tromey <tromey@adacore.com>
5625
5626 * solib-dsbt.c (struct dsbt_info): Add initializers.
5627 (solib_dsbt_pspace_data): Change type.
5628 (dsbt_pspace_data_cleanup): Remove.
5629 (get_dsbt_info, _initialize_dsbt_solib): Update.
5630
5631 2019-07-10 Tom Tromey <tromey@adacore.com>
5632
5633 * spu-tdep.c (spu_overlay_data): Change type.
5634 (spu_get_overlay_table, spu_overlay_new_objfile)
5635 (_initialize_spu_tdep): Update.
5636
5637 2019-07-10 Tom Tromey <tromey@adacore.com>
5638
5639 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5640 destructor.
5641 (dbx_objfile_data_key): Change type and declare later.
5642 (DBX_SYMFILE_INFO): Rewrite.
5643 * dbxread.c (dbx_objfile_data_key): Change type.
5644 (dbx_symfile_init): Update.
5645 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5646 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5647 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5648
5649 2019-07-10 Tom Tromey <tromey@adacore.com>
5650
5651 * jit.c (jit_program_space_key): Change type. Move lower.
5652 (get_jit_program_space_data): Update.
5653 (jit_program_space_data_cleanup): Remove.
5654 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5655 Update.
5656 (struct jit_program_space_data): Add initializers.
5657
5658 2019-07-10 Tom Tromey <tromey@adacore.com>
5659
5660 * solib-darwin.c (struct darwin_info): Add initializers.
5661 (solib_darwin_pspace_data): Change type.
5662 (darwin_pspace_data_cleanup): Remove.
5663 (get_darwin_info, _initialize_darwin_solib): Update.
5664
5665 2019-07-10 Tom Tromey <tromey@adacore.com>
5666
5667 * remote-sim.c (struct sim_inferior_data): Add initializers,
5668 constructor, and destructor.
5669 (sim_inferior_data_key): Change type. Move lower.
5670 (check_for_duplicate_sim_descriptor): Update.
5671 (get_sim_inferior_data): Use new. Update.
5672 (~sim_inferior_data_cleanup): Rename from
5673 sim_inferior_data_cleanup. Simplify.
5674 (gdbsim_close_inferior, simulator_command)
5675 (sim_command_completer, _initialize_remote_sim): Update.
5676 (next_pid, INITIAL_PID): Move earlier.
5677
5678 2019-07-10 Tom Tromey <tromey@adacore.com>
5679
5680 * python/python-internal.h (create_thread_object): Return
5681 gdbpy_ref.
5682 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5683 * python/py-inferior.c (struct threadlist_entry): Add
5684 constructor.
5685 <thread_obj>: Now a gdbpy_ref.
5686 (thread_to_thread_object): Update.
5687 (add_thread_object): Use new.
5688 (delete_thread_object): Use delete.
5689 (infpy_threads): Update.
5690 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5691 GIL.
5692
5693 2019-07-10 Tom Tromey <tromey@adacore.com>
5694
5695 * valops.c (value_cast): Specialize error message for Ada.
5696
5697 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5698
5699 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5700
5701 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5702
5703 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5704 bpstat_should_step): Return bool, adjust comments.
5705 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5706 bpstat_should_step): Likewise.
5707
5708 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5709
5710 * features/Makefile: Use feature target descriptions for Arm.
5711 * features/arm/arm-core.c: Generate new file.
5712 * features/arm/arm-fpa.c: Likewise.
5713 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5714 * features/arm/arm-m-profile.c: Likewise.
5715 * features/arm/arm-vfpv2.c: Likewise.
5716 * features/arm/arm-vfpv3.c: Likewise.
5717 * features/arm/xscale-iwmmxt.c: Likewise.
5718 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5719
5720 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5721
5722 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5723 ptrace earlier.
5724
5725 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5726
5727 * features/aarch64-pauth.c: Regenerate.
5728
5729 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5732 bool.
5733 (bpstat_what): Use false instead of 0.
5734
5735 2019-07-09 Pedro Alves <palves@redhat.com>
5736
5737 * break-catch-throw.c (is_exception_catchpoint): New.
5738 * breakpoint.c (print_one_breakpoint_location): New parameter
5739 'raw_loc'. Handle it. Use
5740 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5741 looking at the breakpoint's type.
5742 (print_one_breakpoint): If handling "maint info breakpoints", also
5743 print locations of exception catchpoints.
5744 * breakpoint.h (is_exception_catchpoint): Declare.
5745
5746 2019-07-09 Pedro Alves <palves@redhat.com>
5747
5748 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5749 "addr" field.
5750 (allocate_location_exception_catchpoint): New.
5751 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5752 (initialize_throw_catchpoint_ops): Install
5753 allocate_location_exception_catchpoint as allocate_location
5754 method.
5755 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5756 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5757 bp_loc_other.
5758 (breakpoint_address_is_meaningful): Delete.
5759 (bl_address_is_meaningful): New.
5760 (breakpoint_locations_match): Adjust comment.
5761 (bp_location_from_bp_type): New, factored out of...
5762 (bp_location::bp_location(breakpoint *)): ... this.
5763 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5764 factored out of...
5765 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5766 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5767 breakpoint_address_is_meaningful.
5768 (bp_locations_compare): Adjust comment.
5769 (update_global_location_list): Use bl_address_is_meaningful
5770 instead of breakpoint_address_is_meaningful.
5771 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5772 explicit.
5773 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5774 * python/py-breakpoint.c (bppy_get_location): No longer check
5775 whether location is null.
5776
5777 2019-07-09 Pedro Alves <palves@redhat.com>
5778
5779 PR c++/15468
5780 * breakpoint.c (print_one_breakpoint_location): Remove
5781 single-location assert.
5782
5783 2019-07-09 Tom Tromey <tom@tromey.com>
5784
5785 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5786 * configure: Rebuild.
5787 * configure.ac: Change common to gdbsupport.
5788 * gdbsupport: Rename from common.
5789 * acinclude.m4: Change common to gdbsupport.
5790 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5791 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5792 gdbsupport.
5793 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5794 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5795 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5796 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5797 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5798 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5799 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5800 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5801 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5802 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5803 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5804 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5805 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5806 coff-pe-read.c, command.h, compile/compile-c-support.c,
5807 compile/compile-c.h, compile/compile-cplus-symbols.c,
5808 compile/compile-cplus-types.c, compile/compile-cplus.h,
5809 compile/compile-loc2c.c, compile/compile.c, completer.c,
5810 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5811 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5812 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5813 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5814 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5815 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5816 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5817 features/aarch64-core.c, features/aarch64-fpu.c,
5818 features/aarch64-pauth.c, features/aarch64-sve.c,
5819 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5820 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5821 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5822 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5823 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5824 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5825 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5826 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5827 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5828 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5829 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5830 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5831 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5832 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5833 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5834 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5835 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5836 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5837 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5838 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5839 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5840 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5841 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5842 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5843 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5844 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5845 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5846 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5847 minsyms.c, mips-linux-tdep.c, namespace.h,
5848 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5849 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5850 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5851 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5852 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5853 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5854 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5855 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5856 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5857 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5858 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5859 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5860 procfs.c, producer.c, progspace.h, psymtab.h,
5861 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5862 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5863 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5864 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5865 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5866 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5867 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5868 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5869 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5870 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5871 target-memory.c, target.c, target.h, target/waitstatus.c,
5872 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5873 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5874 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5875 unittests/array-view-selftests.c,
5876 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5877 unittests/common-utils-selftests.c,
5878 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5879 unittests/format_pieces-selftests.c,
5880 unittests/function-view-selftests.c,
5881 unittests/lookup_name_info-selftests.c,
5882 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5883 unittests/mkdir-recursive-selftests.c,
5884 unittests/observable-selftests.c,
5885 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5886 unittests/parse-connection-spec-selftests.c,
5887 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5888 unittests/scoped_fd-selftests.c,
5889 unittests/scoped_mmap-selftests.c,
5890 unittests/scoped_restore-selftests.c,
5891 unittests/string_view-selftests.c, unittests/style-selftests.c,
5892 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5893 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5894 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5895 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5896 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5897 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5898
5899 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5902 bool value.
5903 (decode_digits_ordinary): Set explicit_line field in sal.
5904 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5905 symtab_and_line that was set on an explicit line number in
5906 assembler code. Do always update the recorded symtab and line if
5907 we do skip the prologue.
5908
5909 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * breakpoint.c (set_breakpoint_location_function): Remove
5912 explicit_loc parameter.
5913 (momentary_breakpoint_from_master): Update call to
5914 set_breakpoint_location_function.
5915 (add_location_to_breakpoint): Likewise.
5916
5917 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5918
5919 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5920 required features based on default bfd type when no specific bfd
5921 is present.
5922
5923 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5924
5925 * NEWS: Mention that GDB printf and eval commands can now print
5926 C-style and Ada-style convenience var strings without
5927 calling the inferior.
5928 * printcmd.c (printf_c_string): Locally print GDB internal var
5929 instead of transiting via the inferior.
5930 (printf_wide_c_string): Likewise.
5931
5932 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5933
5934 PR breakpoints/25011
5935 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5936
5937 2019-07-04 Tom Tromey <tom@tromey.com>
5938
5939 PR tui/24724:
5940 * tui/tui-winsource.c (tui_clear_source_content): Update.
5941 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5942 (tui_update_breakpoint_info): Update.
5943 (tui_set_exec_info_content): Update.
5944 * tui/tui-source.c (tui_set_source_content_nil): Update.
5945 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5946 has_break.
5947 * tui/tui-data.h (enum tui_bp_flag): New.
5948 (tui_bp_flags): New enum flags type.
5949 (struct tui_source_element) <break_mode>: Change type. Rename
5950 from has_break.
5951 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5952 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5953 constants.
5954 * tui/tui-winsource.h: Fix comment.
5955
5956 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5957
5958 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5959 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5960 (store_fpregs_to_thread)
5961 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5962 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5963 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5964 (IWMMXT_REGS_SIZE): Add define.
5965 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5966 (fetch_vfp_regs, store_vfp_regs)
5967 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5968 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5969
5970 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5971
5972 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5973 defines.
5974 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5975 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5976 (ARM_INT_REGISTER_SIZE): ...to this.
5977 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5978 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5979 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5980 (arm_linux_collect_gregset, supply_nwfpe_register)
5981 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5982 defines.
5983 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5984 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5985 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5986 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5987 (arm_return_in_memory, arm_store_return_value)
5988 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5989 (arm_record_ld_st_multiple): Likewise.
5990 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5991 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5992
5993 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5994
5995 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5996 AARCH64_DISPLACED_MODIFIED_INSNS.
5997 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5998 (aarch64_displaced_step_copy_insn): Likewise.
5999 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6000 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6001 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6002 ARM_DISPLACED_MODIFIED_INSNS.
6003 * arm-tdep.c (arm_gdbarch_init): Likewise.
6004 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6005 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6006 (struct arm_displaced_step_closure): Use
6007 ARM_DISPLACED_MODIFIED_INSNS.
6008
6009 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6010
6011 * features/Makefile: Remove unused xml files.
6012 * features/aarch64.xml: Remove.
6013 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6014 * features/i386/amd64-avx-avx512.xml: Remove.
6015 * features/i386/amd64-avx-linux.xml: Remove.
6016 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6017 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6018 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6019 * features/i386/amd64-avx-mpx.xml: Remove.
6020 * features/i386/amd64-avx.xml: Remove.
6021 * features/i386/amd64-linux.xml: Remove.
6022 * features/i386/amd64-mpx-linux.xml: Remove.
6023 * features/i386/amd64-mpx.xml: Remove.
6024 * features/i386/amd64.xml: Remove.
6025 * features/i386/i386-avx-avx512-linux.xml: Remove.
6026 * features/i386/i386-avx-avx512.xml: Remove.
6027 * features/i386/i386-avx-linux.xml: Remove.
6028 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6029 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6030 * features/i386/i386-avx-mpx-linux.xml: Remove.
6031 * features/i386/i386-avx-mpx.xml: Remove.
6032 * features/i386/i386-avx.xml: Remove.
6033 * features/i386/i386-linux.xml: Remove.
6034 * features/i386/i386-mmx-linux.xml: Remove.
6035 * features/i386/i386-mmx.xml: Remove.
6036 * features/i386/i386-mpx-linux.xml: Remove.
6037 * features/i386/i386-mpx.xml: Remove.
6038 * features/i386/i386.xml: Remove.
6039 * features/i386/x32-avx-avx512-linux.xml: Remove.
6040 * features/i386/x32-avx-linux.xml: Remove.
6041 * features/i386/x32-linux.xml: Remove.
6042
6043 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6044
6045 * regformats/aarch64.dat: Remove.
6046 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6047 * regformats/i386/amd64-avx-linux.dat: Remove.
6048 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6049 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6050 * regformats/i386/amd64-linux.dat: Remove.
6051 * regformats/i386/amd64-mpx-linux.dat: Remove.
6052 * regformats/i386/amd64.dat: Remove.
6053 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6054 * regformats/i386/i386-avx-linux.dat: Remove.
6055 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6056 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6057 * regformats/i386/i386-linux.dat: Remove.
6058 * regformats/i386/i386-mmx-linux.dat: Remove.
6059 * regformats/i386/i386-mpx-linux.dat: Remove.
6060 * regformats/i386/i386.dat: Remove.
6061 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6062 * regformats/i386/x32-avx-linux.dat: Remove.
6063 * regformats/i386/x32-linux.dat: Remove.
6064
6065 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6066
6067 * aarch64-tdep.c: Remove xml self tests.
6068 * amd64-linux-tdep.c: Likewise.
6069 * amd64-tdep.c: Likewise.
6070 * i386-linux-tdep.c: Likewise.
6071 * i386-tdep.c: Likewise.
6072
6073 2019-07-03 Pedro Alves <palves@redhat.com>
6074
6075 PR cli/24732
6076 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6077 (pipe_cmd_option_defs): New.
6078 (make_pipe_cmd_options_def_group): New.
6079 (pipe_command): Use gdb::option::process_options.
6080 (pipe_command_completer): New function.
6081 (_initialize_cli_cmds): Install completer for "pipe" command.
6082
6083 2019-07-03 Pedro Alves <palves@redhat.com>
6084
6085 * cli/cli-option.c (union option_value) <string>: New field.
6086 (struct option_def_and_value): Add ctor, move ctor, dtor and
6087 use DISABLE_COPY_AND_ASSIGN.
6088 (option_def_and_value::clear_value): New.
6089 (parse_option, save_option_value_in_ctx, get_val_type_str)
6090 (add_setshow_cmds_for_options): Handle var_string.
6091 * cli-option.h (union option_def::var_address) <string>: New
6092 field.
6093 (struct string_option_def): New.
6094 * maint-test-options.c (struct test_options_opts): Add default
6095 ctor and use DISABLE_COPY_AND_ASSIGN.
6096 <string_opt>: New field.
6097 (test_options_opts::~test_options_opts): New.
6098 (test_options_opts::dump): Also dump "-string".
6099 (test_options_option_defs): Install "string.
6100
6101 2019-07-03 Pedro Alves <palves@redhat.com>
6102
6103 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6104 option_value with a null enumeration.
6105 (complete_options): Save the option values in the context.
6106 (save_option_value_in_ctx): New, factored out from ...
6107 (process_options): ... here.
6108 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6109 of the function.
6110 * maint-test-options.c (test_options_opts::dump): New, factored
6111 out from ...
6112 (maintenance_test_options_command_mode): ... here.
6113 (maintenance_test_options_command_completion_result): Delete.
6114 (maintenance_test_options_command_completion_text): Update
6115 comment.
6116 (maintenance_show_test_options_completion_result): Change
6117 prototype. Just print
6118 maintenance_test_options_command_completion_text.
6119 (save_completion_result): New.
6120 (maintenance_test_options_completer_mode): Pass options context to
6121 complete_options, and then save a dump.
6122 (_initialize_maint_test_options): Use add_cmd to install "maint
6123 show test-options-completion-result".
6124
6125 2019-07-03 Pedro Alves <palves@redhat.com>
6126
6127 * NEWS (New commands): Mention "with" and "maint with".
6128 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6129 (with_command, with_command_completer): New.
6130 (pipe_command): Adjust to new repeat_previous
6131 interface.
6132 (_initialize_cli_cmds): Install the "with" command and its "w"
6133 alias.
6134 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6135 declarations.
6136 * cli/cli-setshow.c (parse_cli_var_uinteger)
6137 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6138 argument strings for all var_types.
6139 (get_setshow_command_value_string): New, factored out from ...
6140 (do_show_command): ... this.
6141 * cli/cli-setshow.h: Include <string>.
6142 (get_setshow_command_value_string): Declare.
6143 * command.h (repeat_previous): Now returns const char *. Adjust
6144 comment.
6145 * maint.c: Include "cli/cli-cmds.h".
6146 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6147 (_initialize_maint_cmds): Register the "maintenance with" command.
6148 * top.c (repeat_previous): Move bits from pipe_command here:
6149 Return the saved command line, if any; error out if there's no
6150 command to relaunch.
6151
6152 2019-07-03 Pedro Alves <palves@redhat.com>
6153
6154 * NEWS (New commands): Mention "maint set/show test-settings"
6155 instead of "maint test-settings".
6156 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6157 (maintenance_test_settings_set_list): Rename to ...
6158 (maintenance_set_test_settings_list): ... this.
6159 (maintenance_test_settings_show_list): Rename to ...
6160 (maintenance_show_test_settings_list): ... this.
6161 (maintenance_test_settings_cmd): Delete.
6162 (maintenance_test_settings_set_cmd): ...
6163 (maintenance_set_test_settings_cmd): ... this.
6164 (maintenance_test_settings_show_cmd): ...
6165 (maintenance_show_test_settings_cmd): ... this.
6166 (maintenance_test_settings_show_value_cmd):
6167 (maintenance_show_test_settings_value_cmd): ... this.
6168 (_initialize_maint_test_settings): No longer install the "maint
6169 test-settings" prefix command. Rename "maint test-settings set"
6170 to "maint set test-settings", and "maint test-settings show" to
6171 "maint show test-settings". Adjust all subcommands.
6172
6173 2019-07-03 Pedro Alves <palves@redhat.com>
6174
6175 * maint-test-settings.c: Fix file's intro comment. Replace all
6176 references to "test-options" with references to "test-settings",
6177 in comments.
6178
6179 2019-07-03 Pedro Alves <palves@redhat.com>
6180
6181 * maint-test-settings.c (maintenance_test_settings_xxx)
6182 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6183 New.
6184 (maintenance_test_settings_enums): Use them.
6185 (maintenance_test_settings_enum): Default to
6186 maintenance_test_settings_xxx.
6187 (_initialize_maint_test_settings): Initialize
6188 MAINTENANCE_TEST_SETTINGS_FILENAME.
6189
6190 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * breakpoint.h (remove_breakpoints_inf): Change return type to
6193 void, move function documentation here.
6194 * breakpoint.c (remove_breakpoints_inf): Change return type to
6195 void, move function documentation to header.
6196
6197 2019-07-02 Pedro Alves <palves@redhat.com>
6198
6199 * NEWS (Completion improvements): Mention "info threads".
6200 * thread.c (struct info_threads_opts, info_threads_option_defs)
6201 (make_info_threads_options_def_group): New.
6202 (info_threads_command): Use gdb::option::process_options.
6203 (info_threads_command_completer): New.
6204 (_initialize_thread): Use gdb::option::build_help to build the
6205 help text for "info threads".
6206
6207 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * defs.h (generic_load): Move from here...
6210 * symfile.h (generic_load): ... to here. Rename name parameter
6211 to args.
6212 * symfile.c (generic_load): Add comment.
6213
6214 2019-07-01 Tom Tromey <tromey@adacore.com>
6215
6216 * dwarf2read.c
6217 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6218 declaration of without_params. Fix formatting.
6219
6220 2019-07-01 Tom Tromey <tromey@adacore.com>
6221
6222 * ada-exp.y (find_primitive_type): Update.
6223 * ada-lang.h (ada_lookup_symbol): Update.
6224 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6225 parameter.
6226 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6227
6228 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6229
6230 PR breakpoints/24541
6231 * gdbarch.c: Regenerate.
6232 * gdbarch.h: Regenerate.
6233 * gdbarch.sh: Add 'stap_adjust_register'.
6234 * i386-tdep.c: Include '<unordered_set>'.
6235 (i386_stap_adjust_register): New function.
6236 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6237 * stap-probe.c (stap_parse_register_operand): Call
6238 'gdbarch_stap_adjust_register'.
6239
6240 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6241
6242 PR python/24742
6243 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6244 * python/python.c (do_start_initialization): Use 'xmalloc'
6245 instead of 'PyMem_Malloc'.
6246
6247 2019-06-28 Tom Tromey <tromey@adacore.com>
6248
6249 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6250 for Ada.
6251
6252 2019-06-27 Tom Tromey <tromey@adacore.com>
6253
6254 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6255 objfile_key.
6256 (arm_find_mapping_symbol, arm_record_special_symbol)
6257 (_initialize_arm_tdep): Update.
6258 (arm_objfile_data_free): Remove.
6259
6260 2019-06-27 Tom Tromey <tromey@adacore.com>
6261
6262 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6263 to cp_print_static_field.
6264
6265 2019-06-26 Tom Tromey <tromey@adacore.com>
6266
6267 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6268 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6269 declare.
6270
6271 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6272
6273 * features/aarch64-core.c (create_feature_aarch64_core):
6274 Regenerate.
6275 * features/aarch64-core.xml: Add cpsr flags.
6276
6277 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6278
6279 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6280 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6281
6282 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6285 field.
6286 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6287 use.
6288 (arm_record_special_symbol): Don't insert new symbol in sorted
6289 position, push it at the end.
6290
6291 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6292
6293 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6294 (arm_mapping_symbol_s): Remove.
6295 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6296 (arm_mapping_symbol_vec): New typedef.
6297 (struct arm_per_objfile): Add constructor.
6298 <section_maps>: Change type to
6299 std::unique_ptr<arm_mapping_symbol_vec[]>.
6300 (arm_compare_mapping_symbols): Remove.
6301 (arm_find_mapping_symbol): Adjust to section_maps type change.
6302 (arm_objfile_data_free): Call delete on arm_per_objfile.
6303 (arm_record_special_symbol): Adjust to section_maps type change.
6304 Allocate arm_per_objfile with new.
6305
6306 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6307
6308 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6309 with the command prefix.
6310
6311 2019-06-25 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6314 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6315
6316 2019-06-25 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6319 type.
6320 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6321 protected.
6322
6323 2019-06-25 Tom Tromey <tom@tromey.com>
6324
6325 * tui/tui-winsource.c
6326 (tui_source_window_base::set_is_exec_point_at): Add check against
6327 LOA_ADDRESS.
6328
6329 2019-06-25 Tom Tromey <tom@tromey.com>
6330
6331 * tui/tui-source.c (tui_set_source_content): Don't check before
6332 xfree.
6333 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6334
6335 2019-06-25 Tom Tromey <tom@tromey.com>
6336
6337 * tui/tui-winsource.h (tui_update_source_window_as_is)
6338 (tui_alloc_source_buffer, tui_line_is_displayed)
6339 (tui_addr_is_displayed): Change type of win_info.
6340 * tui/tui-winsource.c (tui_update_source_window_as_is)
6341 (tui_clear_source_content, tui_show_source_line)
6342 (tui_show_source_content, tui_source_window_base::refill)
6343 (tui_source_window_base::set_is_exec_point_at)
6344 (tui_source_window_base::set_is_exec_point_at)
6345 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6346 (tui_alloc_source_buffer, tui_line_is_displayed)
6347 (tui_addr_is_displayed): Change type of win_info. Update.
6348 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6349 (tui_source_window_base::do_make_visible_with_new_height):
6350 Update.
6351 * tui/tui-source.c (tui_set_source_content)
6352 (tui_set_source_content_nil)
6353 (tui_source_window::do_scroll_vertical): Update.
6354 * tui/tui-layout.c (show_layout): Update.
6355 * tui/tui-disasm.c (tui_set_disassem_content)
6356 (tui_disasm_window::do_scroll_vertical): Update.
6357 * tui/tui-data.h (tui_win_content): Remove.
6358 (struct tui_gen_win_info) <content, content_size>: Remove.
6359 (struct tui_source_element): Add initializers and destructor.
6360 (union tui_which_element, struct tui_win_element): Remove.
6361 (struct tui_source_window_base) <content>: New field.
6362 (struct tui_data_window): Remove destructor.
6363 (tui_alloc_content, tui_free_win_content)
6364 (tui_free_all_source_wins_content): Don't declare.
6365 * tui/tui-data.c (tui_initialize_static_data): Update.
6366 (init_content_element, tui_alloc_content): Remove.
6367 (~tui_gen_win_info): Update.
6368 (~tui_data_window, tui_free_all_source_wins_content)
6369 (tui_free_win_content, free_content, free_content_elements):
6370 Remove.
6371
6372 2019-06-25 Tom Tromey <tom@tromey.com>
6373
6374 * tui/tui-winsource.h (tui_clear_source_content)
6375 (tui_erase_source_content, tui_show_source_content): Change type
6376 of win_info.
6377 * tui/tui-winsource.c (tui_clear_source_content)
6378 (tui_erase_source_content, tui_show_source_content): Change type
6379 of win_info.
6380 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6381 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6382 win_info.
6383 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6384 win_info.
6385 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6386
6387 2019-06-25 Tom Tromey <tom@tromey.com>
6388
6389 * tui/tui-winsource.c (tui_clear_source_content)
6390 (tui_source_window_base::set_is_exec_point_at): Update.
6391 * tui/tui-source.c (tui_set_source_content_nil): Update.
6392 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6393 a bool.
6394 * tui/tui-data.c (init_content_element): Update.
6395
6396 2019-06-25 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6399 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6400 * tui/tui-layout.c (init_and_make_win): Update.
6401 * tui/tui.h (enum tui_win_type): Update.
6402 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6403 tui_win_is_auxillary.
6404 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6405 tui_win_is_auxillary.
6406
6407 2019-06-25 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6410 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6411 (tui_delete_data_content_windows, tui_display_all_data)
6412 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6413 Update.
6414 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6415 * tui/tui-regs.c (tui_last_regs_line_no)
6416 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6417 (tui_show_registers): Update.
6418 (tui_show_register_group): Return void. Update.
6419 (tui_display_registers_from, tui_display_reg_element_at_line)
6420 (tui_display_registers_from_line, tui_check_register_values):
6421 Update.
6422 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6423 member.
6424 (struct tui_data_window) <regs_content>: Now a std::vector.
6425 <regs_content_count>: Remove.
6426 (tui_add_content_elements, tui_free_data_content): Don't declare.
6427 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6428 (init_content_element): Remove DATA_WIN case. Add assert.
6429 (tui_add_content_elements): Remove.
6430 (tui_data_window): Update.
6431 (tui_free_data_content): Remove.
6432 (free_content_elements): Remove DATA_WIN case.
6433
6434 2019-06-25 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui-data.c (tui_data_item_window): Update.
6437 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6438 * tui/tui-windata.c (tui_display_all_data)
6439 (tui_display_data_from_line): Update.
6440 (tui_check_data_values): Remove.
6441 * tui/tui-regs.c (tui_show_register_group)
6442 (tui_display_reg_element_at_line): Update.
6443 * tui/tui-hooks.c (tui_register_changed)
6444 (tui_refresh_frame_and_register_information): Call
6445 tui_check_register_values.
6446 * tui/tui-data.h (struct tui_data_window) <data_content,
6447 data_content_count, data_type>: Remove.
6448 (enum tui_data_type): Remove.
6449
6450 * tui/tui-data.c (tui_data_window::clear_detail)
6451 (~tui_data_window): Update.
6452
6453 2019-06-25 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6456 declare.
6457 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6458 Rename from tui_first_data_item_displayed. Update.
6459 (tui_data_window::refresh_all)
6460 (tui_data_window::do_scroll_vertical): Update.
6461 * tui/tui-data.h (struct tui_data_window)
6462 <first_data_item_displayed>: Declare new method.
6463
6464 2019-06-25 Tom Tromey <tom@tromey.com>
6465
6466 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6467 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6468 contents...
6469 (tui_initialize_static_data): ...here.
6470
6471 2019-06-25 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6474 (tui_display_registers_from, tui_check_register_values): Update.
6475 (tui_display_register): Remove win_info parameter; update.
6476 (tui_get_register): Change type of parameters.
6477 * tui/tui-data.h (struct tui_data_element): Remove.
6478 (union tui_which_element) <data>: Remove.
6479 <data_window>: Change type.
6480 (struct tui_data_item_window): New.
6481 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6482 case. Add assert.
6483 (~tui_data_item_window): New destructor.
6484 (free_content_elements): Remove DATA_ITEM_WIN case.
6485
6486 2019-06-25 Tom Tromey <tom@tromey.com>
6487
6488 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6489 Remove.
6490
6491 2019-06-25 Tom Tromey <tom@tromey.com>
6492
6493 * tui/tui-data.h (struct tui_command_element): Remove.
6494 (union tui_which_element) <command>: Remove.
6495 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6496 assert.
6497 (free_content_elements): Remove CMD_WIN case.
6498
6499 2019-06-25 Tom Tromey <tom@tromey.com>
6500
6501 * tui/tui-layout.c (tui_set_layout): Update.
6502 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6503 * tui/tui-data.c (layout_def): Update.
6504
6505 2019-06-25 Tom Tromey <tom@tromey.com>
6506
6507 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6508 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6509 (tui_source_window_base::set_new_height): Update.
6510 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6511 Update.
6512 (tui_set_locator_fullname, tui_set_locator_info)
6513 (tui_show_frame_info): Update.
6514 * tui/tui-source.c (tui_set_source_content)
6515 (tui_source_is_displayed): Update.
6516 * tui/tui-layout.c (show_source_disasm_command, show_data)
6517 (show_source_or_disasm_and_command): Update.
6518 * tui/tui-disasm.c (tui_set_disassem_content)
6519 (tui_get_begin_asm_address): Update.
6520 * tui/tui-data.h (struct tui_locator_element): Remove.
6521 (union tui_which_element) <locator>: Remove.
6522 (struct tui_locator_window): New.
6523 (tui_locator_win_info_ptr): Change return type.
6524 * tui/tui-data.c (_locator): Change type.
6525 (tui_locator_win_info_ptr): Change return type.
6526 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6527 (tui_alloc_content): Add assert.
6528
6529 2019-06-25 Tom Tromey <tom@tromey.com>
6530
6531 * tui/tui-winsource.c
6532 (tui_exec_info_window::maybe_allocate_content): New method.
6533 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6534 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6535 (make_source_or_disasm_window): Add cast.
6536 * tui/tui-data.h (union tui_which_element) <simple_string>:
6537 Remove.
6538 (struct tui_source_info): New.
6539 (struct tui_source_window_base) <execution_info>: Change type.
6540 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6541 case, and add assert.
6542 (tui_alloc_content): Add assert.
6543
6544 2019-06-25 Tom Tromey <tom@tromey.com>
6545
6546 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6547 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6548 * tui/tui-data.c (tui_alloc_win_info): Remove.
6549
6550 2019-06-25 Tom Tromey <tom@tromey.com>
6551
6552 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6553 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6554 can_highlight.
6555
6556 2019-06-25 Tom Tromey <tom@tromey.com>
6557
6558 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6559 make_visible_with_new_height method.
6560 (tui_win_info::make_visible_with_new_height): New method.
6561 (tui_source_window_base::do_make_visible_with_new_height)
6562 (tui_data_window::do_make_visible_with_new_height)
6563 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6564 (make_visible_with_new_height): Remove.
6565 (tui_resize_all, tui_adjust_win_heights): Use
6566 make_visible_with_new_height method.
6567 * tui/tui-data.h (struct tui_win_info)
6568 <do_make_visible_with_new_height, make_visible_with_new_height>:
6569 New methods.
6570 (struct tui_source_window_base, struct tui_data_window)
6571 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6572 methods.
6573
6574 2019-06-25 Tom Tromey <tom@tromey.com>
6575
6576 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6577 method.
6578 (update_tab_width): Call update_tab_width method.
6579 * tui/tui-data.h (struct tui_win_info)
6580 (struct tui_source_window_base) <update_tab_width>: New methods.
6581
6582 2019-06-25 Tom Tromey <tom@tromey.com>
6583
6584 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6585 parameter.
6586 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6587 parameter.
6588 (tui_gen_win_info::make_visible): Update.
6589 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6590 parameter.
6591 * tui/tui-data.h (enum tui_box): New enum.
6592 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6593
6594 2019-06-25 Tom Tromey <tom@tromey.com>
6595
6596 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6597 init_and_make_win for EXEC_INFO_WIN.
6598 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6599 longer inline.
6600 (struct tui_win_info) <~tui_win_info>: Inline.
6601 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6602 Don't declare.
6603 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6604 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6605 Remove.
6606 (tui_initialize_static_data): Update.
6607 (~tui_gen_win_info): Handle more cleanup here.
6608 (~tui_source_window_base): Delete "execution_info".
6609 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6610
6611 2019-06-25 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-layout.c (make_command_window): Don't set
6614 can_highlight.
6615 (show_source_disasm_command): Call the reset method.
6616 (show_data): Don't set can_highlight. Call the reset method.
6617 (tui_gen_win_info::reset): Rename from init_gen_win_info
6618 (init_and_make_win): Simplify. Return tui_gen_win_info.
6619 (show_source_or_disasm_and_command): Call the reset method.
6620 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6621 (struct tui_cmd_window): Set can_highlight.
6622
6623 2019-06-25 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6626 from make_visible.
6627 (tui_make_visible, tui_make_invisible): Rewrite.
6628 (tui_win_info::make_visible): Remove.
6629 (tui_source_window_base::make_visible): Update.
6630 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6631 method. Moved from...
6632 (struct tui_win_info) <make_visible>: ...here.
6633
6634 2019-06-25 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-winsource.c
6637 (tui_source_window_base::do_scroll_horizontal): Remove direction
6638 parameter.
6639 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6640 direction parameter.
6641 * tui/tui-win.c (tui_win_info::forward_scroll)
6642 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6643 (tui_win_info::right_scroll): Update.
6644 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6645 direction parameter.
6646 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6647 direction parameter.
6648 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6649 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6650 Remove direction parameter.
6651 (struct tui_source_window_base, struct tui_source_window)
6652 (struct tui_disasm_window, struct tui_data_window)
6653 (struct tui_cmd_window): Update.
6654
6655 2019-06-25 Tom Tromey <tom@tromey.com>
6656
6657 * tui/tui-winsource.h (tui_set_exec_info_content)
6658 (tui_show_exec_info_content, tui_erase_exec_info_content)
6659 (tui_clear_exec_info_content, tui_update_exec_info): Change
6660 argument to tui_source_window_base.
6661 * tui/tui-winsource.c (tui_set_exec_info_content)
6662 (tui_show_exec_info_content, tui_erase_exec_info_content)
6663 (tui_clear_exec_info_content, tui_update_exec_info): Change
6664 argument to tui_source_window_base.
6665
6666 2019-06-25 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6669 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6670
6671 2019-06-25 Tom Tromey <tom@tromey.com>
6672
6673 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6674 check.
6675
6676 2019-06-25 Tom Tromey <tom@tromey.com>
6677
6678 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6679 type to void.
6680 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6681 type to void.
6682 * tui/tui-source.c (tui_set_source_content): Update.
6683 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6684
6685 2019-06-25 Tom Tromey <tom@tromey.com>
6686
6687 * tui/tui-win.c (window_name_completer, tui_set_focus)
6688 (tui_all_windows_info): Use name method.
6689 * tui/tui-data.h (struct tui_gen_win_info)
6690 (struct tui_source_window, struct tui_disasm_window)
6691 (struct tui_data_window, struct tui_cmd_window) <name>: New
6692 method.
6693 (tui_win_name): Don't declare.
6694 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6695 (tui_win_name): Remove.
6696
6697 2019-06-25 Tom Tromey <tom@tromey.com>
6698
6699 * tui/tui-winsource.h (tui_update_source_window)
6700 (tui_update_source_window_as_is): Change parameter type.
6701 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6702 to be a tui_source_window_base.
6703 (tui_update_source_window_as_is): Likewise.
6704 * tui/tui-win.c (make_visible_with_new_height): Update.
6705
6706 2019-06-25 Tom Tromey <tom@tromey.com>
6707
6708 * tui/tui-winsource.c (tui_erase_source_content)
6709 (tui_show_source_content, tui_show_exec_info_content)
6710 (tui_erase_exec_info_content): Use refresh_window method.
6711 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6712 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6713 from tui_refresh_win.
6714 (tui_data_window::refresh_window): New method.
6715 (tui_win_info::refresh, tui_source_window_base::refresh)
6716 (tui_refresh_all): Use refresh_window method.
6717 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6718 method.
6719 * tui/tui-regs.c (tui_display_register): Call refresh_window
6720 method.
6721 * tui/tui-layout.c (show_source_disasm_command)
6722 (show_source_or_disasm_and_command): Call refresh_window method.
6723 * tui/tui-data.h (struct tui_gen_win_info)
6724 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6725 New method.
6726
6727 2019-06-25 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui.c (tui_rl_other_window, tui_enable)
6730 (tui_is_window_visible, tui_get_command_dimension): Update.
6731 * tui/tui-winsource.c (tui_update_source_window_as_is)
6732 (tui_clear_source_content, tui_erase_source_content)
6733 (tui_show_source_line, tui_source_window_base::refill)
6734 (tui_source_window_base::do_scroll_horizontal)
6735 (tui_source_window_base::set_is_exec_point_at)
6736 (tui_update_breakpoint_info, tui_set_exec_info_content)
6737 (tui_alloc_source_buffer, tui_line_is_displayed)
6738 (tui_addr_is_displayed): Update.
6739 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6740 (tui_check_and_display_highlight_if_needed)
6741 (tui_win_info::make_visible, tui_win_info::refresh)
6742 (tui_refresh_all): Update.
6743 * tui/tui-windata.c (tui_first_data_item_displayed)
6744 (tui_delete_data_content_windows, tui_erase_data_content)
6745 (tui_display_all_data, tui_data_window::refresh_all)
6746 (tui_check_data_values): Update.
6747 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6748 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6749 (tui_win_info::backward_scroll, tui_refresh_all_win)
6750 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6751 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6752 (tui_source_window_base::set_new_height)
6753 (tui_data_window::set_new_height)
6754 (make_invisible_and_set_new_height)
6755 (make_visible_with_new_height, new_height_ok)
6756 (parse_scrolling_args): Update.
6757 * tui/tui-stack.c (tui_show_frame_info): Update.
6758 * tui/tui-source.c (tui_set_source_content)
6759 (tui_set_source_content_nil, tui_source_is_displayed)
6760 (tui_source_window::do_scroll_vertical): Update.
6761 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6762 (tui_display_registers_from, tui_display_reg_element_at_line)
6763 (tui_check_register_values, tui_reg_command): Update.
6764 * tui/tui-layout.c (tui_default_win_height)
6765 (show_source_disasm_command, show_data, init_and_make_win)
6766 (show_source_or_disasm_and_command): Update.
6767 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6768 (tui_redisplay_readline, tui_mld_flush)
6769 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6770 (tui_getc): Update.
6771 * tui/tui-disasm.c (tui_set_disassem_content)
6772 (tui_disasm_window::do_scroll_vertical): Update.
6773 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6774 Now virtual.
6775 (struct tui_win_info): Derive from tui_gen_win_info.
6776 <~tui_win_info>: Mark as override.
6777 <generic>: Remove member.
6778 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6779 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6780 (~tui_data_window, ~tui_win_info)
6781 (tui_free_all_source_wins_content): Update.
6782 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6783
6784 2019-06-25 Tom Tromey <tom@tromey.com>
6785
6786 * tui/tui-layout.c (init_and_make_win): Use new.
6787 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6788 destructor, initializers.
6789 (tui_alloc_generic_win_info): Don't declare.
6790 * tui/tui-data.c (_locator): Add argument to constructor.
6791 (source_win, disasm_win): New globals.
6792 (exec_info): Remove.
6793 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6794 Update.
6795 (tui_alloc_generic_win_info): Remove.
6796 (init_content_element): Use new.
6797 (tui_win_info::tui_win_info): Update.
6798 (free_content_elements) <case DATA_WIN>: Use delete.
6799
6800 2019-06-25 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6803 * tui/tui-windata.c (tui_first_data_item_displayed)
6804 (tui_delete_data_content_windows): Update.
6805 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6806 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6807 (tui_display_registers_from, tui_check_register_values): Update.
6808 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6809 pointer.
6810 * tui/tui-data.c (init_content_element): Update. Allocate the new
6811 window.
6812 (tui_free_data_content): Update.
6813 (free_content_elements) <case DATA_WIN>: Free the window.
6814
6815 2019-06-25 Tom Tromey <tom@tromey.com>
6816
6817 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6818 Update.
6819 * tui/tui-layout.c (make_command_window)
6820 (show_source_disasm_command, show_data, init_and_make_win)
6821 (show_source_or_disasm_and_command): Update.
6822 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6823 method.
6824 <can_highight, is_highlighted>: Now bool.
6825 (tui_set_win_highlight): Don't declare.
6826 * tui/tui-data.c (tui_set_win_highlight): Remove.
6827
6828 2019-06-25 Tom Tromey <tom@tromey.com>
6829
6830 * tui/tui-wingeneral.c (make_visible): Remove check of window
6831 type.
6832
6833 2019-06-25 Tom Tromey <tom@tromey.com>
6834
6835 * tui/tui-win.c (tui_win_info::max_height)
6836 (tui_cmd_window::max_height): New methods.
6837 (new_height_ok): Call max_height.
6838 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6839 <max_height>: New method.
6840
6841 2019-06-25 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-win.c (tui_source_window_base::set_new_height)
6844 (tui_data_window::set_new_height): New methods.
6845 (make_invisible_and_set_new_height): Call set_new_height method.
6846 * tui/tui-data.h (struct tui_win_info)
6847 (struct tui_source_window_base, struct tui_data_window)
6848 <set_new_height>: New method.
6849
6850 2019-06-25 Tom Tromey <tom@tromey.com>
6851
6852 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6853 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6854 tui_refresh_data_win.
6855 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6856 method.
6857 (tui_refresh_all_win): Call the refresh_all method.
6858 (tui_set_focus): Likewise.
6859 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6860 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6861 Likewise.
6862
6863 2019-06-25 Tom Tromey <tom@tromey.com>
6864
6865 * tui/tui-winsource.h (tui_refill_source_window)
6866 (tui_set_is_exec_point_at): Don't declare.
6867 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6868 (tui_source_window_base::refill): Rename from
6869 tui_refill_source_window.
6870 (tui_source_window_base::do_scroll_horizontal): Update.
6871 (tui_source_window_base::set_is_exec_point_at): Rename from
6872 tui_set_is_exec_point_at.
6873 (tui_update_all_breakpoint_info): Update.
6874 * tui/tui-stack.c (tui_show_frame_info): Update.
6875 * tui/tui-layout.c (show_data): Add cast.
6876 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6877 * tui/tui-data.h (struct tui_source_window_base) <refill,
6878 set_is_exec_point_at>: New methods.
6879 (tui_source_windows, tui_add_to_source_windows): Update types.
6880 (tui_add_to_source_windows): Remove redundant declaration.
6881 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6882 (tui_source_windows): Change return type.
6883 (tui_clear_source_windows_detail): Update.
6884 (tui_add_to_source_windows): Change type of parameter.
6885 (tui_free_all_source_wins_content): Update.
6886
6887 2019-06-25 Tom Tromey <tom@tromey.com>
6888
6889 * tui/tui-wingeneral.c (tui_win_info::refresh)
6890 (tui_source_window_base::refresh): New methods.
6891 (tui_refresh_all): Call the refresh method.
6892 * tui/tui-data.h (struct tui_win_info)
6893 (struct tui_source_window_base) <refresh>: New method.
6894
6895 2019-06-25 Tom Tromey <tom@tromey.com>
6896
6897 * tui/tui.h (tui_is_window_visible): Return bool.
6898 * tui/tui.c (tui_is_window_visible): Return bool.
6899 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6900 (tui_make_visible, tui_make_invisible)
6901 (tui_win_info::make_visible)
6902 (tui_source_window_base::make_visible, make_all_visible)
6903 (tui_make_all_visible, tui_make_all_invisible): Update.
6904 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6905 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6906 bool.
6907 (struct tui_win_info, struct tui_source_window_base)
6908 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6909 * tui/tui-data.c (tui_init_generic_part): Update.
6910
6911 2019-06-25 Tom Tromey <tom@tromey.com>
6912
6913 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6914 (tui_source_window_base::make_visible): New methods.
6915 (make_all_visible): Make method call.
6916 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6917 (struct tui_source_window_base, struct tui_cmd_window): Override
6918 make_visible.
6919 (tui_win_is_source_type): Don't declare.
6920 * tui/tui-data.c (tui_win_is_source_type): Remove.
6921
6922 2019-06-25 Tom Tromey <tom@tromey.com>
6923
6924 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6925 NULL check.
6926
6927 2019-06-25 Tom Tromey <tom@tromey.com>
6928
6929 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6930 Inline constructor. Add initializers for members.
6931 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6932 constructors; now inline in class.
6933
6934 2019-06-25 Tom Tromey <tom@tromey.com>
6935
6936 * tui/tui-regs.c (tui_show_registers): Update.
6937 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6938 bool.
6939 * tui/tui-data.c (tui_data_window::clear_detail)
6940 (tui_data_window): Update.
6941
6942 2019-06-25 Tom Tromey <tom@tromey.com>
6943
6944 * tui/tui-windata.c (tui_display_all_data)
6945 (tui_display_data_from_line, tui_display_data_from)
6946 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6947 Update.
6948 * tui/tui-regs.c (tui_last_regs_line_no)
6949 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6950 (tui_show_registers, tui_show_register_group)
6951 (tui_display_registers_from, tui_display_reg_element_at_line)
6952 (tui_display_registers_from_line, tui_check_register_values)
6953 (tui_reg_next, tui_reg_prev): Update.
6954 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6955 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6956 tui_data_window.
6957 (struct tui_win_info) <detail>: Remove. Add new fields from
6958 tui_data_info.
6959 (TUI_DATA_WIN): Add cast.
6960 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6961 (~tui_data_window): Simplify.
6962
6963 2019-06-25 Tom Tromey <tom@tromey.com>
6964
6965 * tui/tui-layout.c (show_source_disasm_command)
6966 (show_source_or_disasm_and_command): Update.
6967 * tui/tui-io.c (update_cmdwin_start_line)
6968 (tui_redisplay_readline): Update.
6969 * tui/tui-data.h (struct tui_command_info): Remove.
6970 (struct tui_win_info) <detail>: Remove command_info member.
6971 (struct tui_data_window) <start_line>: New member, from
6972 tui_command_info.
6973 (TUI_CMD_WIN): Add casts.
6974
6975 2019-06-25 Tom Tromey <tom@tromey.com>
6976
6977 * tui/tui-winsource.c (tui_update_source_window)
6978 (tui_refill_source_window)
6979 (tui_source_window_base::do_scroll_horizontal)
6980 (tui_update_breakpoint_info, tui_set_exec_info_content)
6981 (tui_show_exec_info_content, tui_erase_exec_info_content)
6982 (tui_clear_exec_info_content): Update.
6983 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6984 Update.
6985 * tui/tui-win.c (make_invisible_and_set_new_height)
6986 (make_visible_with_new_height): Update.
6987 * tui/tui-source.c (tui_set_source_content)
6988 (tui_show_symtab_source): Update.
6989 * tui/tui-layout.c (extract_display_start_addr)
6990 (show_source_disasm_command, show_data)
6991 (make_source_or_disasm_window)
6992 (show_source_or_disasm_and_command): Update.
6993 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6994 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6995 "gdbarch".
6996 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6997 to tui_source_window_base.
6998 (struct tui_win_info) <detail>: Remove source_info member.
6999 (struct tui_source_window_base) <has_locator>: Inline.
7000 Move contents from tui_source_info; rename has_locator member to
7001 m_has_locator.
7002 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7003 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7004 header file.
7005 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7006 Simplify.
7007 (tui_free_all_source_wins_content): Cast to
7008 tui_source_window_base.
7009
7010 2019-06-25 Tom Tromey <tom@tromey.com>
7011
7012 * tui/tui-win.c (make_invisible_and_set_new_height)
7013 (make_visible_with_new_height): Call has_locator method.
7014 * tui/tui-layout.c (show_source_disasm_command, show_data)
7015 (show_source_or_disasm_and_command): Update for bool change.
7016 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7017 (tui_win_info) <has_locator>: New method.
7018 (struct tui_source_window_base) <has_locator>: New method.
7019 (tui_win_has_locator): Don't declare.
7020 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7021 from tui_win_has_locator.
7022 (tui_source_window_base): Use false, not FALSE.
7023
7024 2019-06-25 Tom Tromey <tom@tromey.com>
7025
7026 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7027 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7028 clear_detail method directly.
7029 (tui_clear_win_detail): Remove.
7030
7031 2019-06-25 Tom Tromey <tom@tromey.com>
7032
7033 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7034 "this", not TUI_DISASM_WIN.
7035
7036 2019-06-25 Tom Tromey <tom@tromey.com>
7037
7038 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7039 declare.
7040 * tui/tui-winsource.c
7041 (tui_source_window_base::do_scroll_horizontal): Rename from
7042 tui_horizontal_source_scroll.
7043 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7044 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7045 from tui_vertical_data_scroll.
7046 * tui/tui-win.h (tui_scroll): Don't declare.
7047 * tui/tui-win.c (tui_win_info::forward_scroll)
7048 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7049 (tui_win_info::right_scroll): Rename and update.
7050 (tui_scroll_forward_command, tui_scroll_backward_command)
7051 (tui_scroll_left_command, tui_scroll_right_command): Update.
7052 (tui_scroll): Remove.
7053 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7054 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7055 from tui_vertical_source_scroll.
7056 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7057 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7058 from tui_vertical_disassem_scroll.
7059 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7060 do_scroll_horizontal>: New methods.
7061 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7062 Likewise.
7063 (struct tui_source_window_base): Add do_scroll_horizontal.
7064 (struct tui_source_window, struct tui_disasm_window): Add
7065 do_scroll_vertical.
7066 (struct tui_data_window, struct tui_cmd_window): Add
7067 do_scroll_horizontal and do_scroll_vertical.
7068 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7069
7070 2019-06-25 Tom Tromey <tom@tromey.com>
7071
7072 * tui/tui-data.h (struct tui_source_window_base): New struct.
7073 (struct tui_source_window): Derive from tui_source_window_base.
7074 (struct tui_disasm_window): New struct.
7075 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7076 from tui_source_window::clear_detail.
7077 (tui_source_window_base): Rename from tui_source_window.
7078 (~tui_source_window_base): Rename from ~tui_source_window.
7079 (tui_alloc_win_info): Create a tui_disasm_window.
7080
7081 2019-06-25 Tom Tromey <tom@tromey.com>
7082
7083 * tui/tui-data.h (struct tui_source_window)
7084 (struct tui_data_window): Declare destructors.
7085 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7086 destructors.
7087 (tui_win_info): Simplify.
7088
7089 2019-06-25 Tom Tromey <tom@tromey.com>
7090
7091 * tui/tui-winsource.c (tui_display_main)
7092 (tui_update_source_windows_with_addr)
7093 (tui_update_all_breakpoint_info): Update.
7094 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7095 (new_height_ok, parse_scrolling_args): Update.
7096 * tui/tui-stack.c (tui_show_frame_info): Update.
7097 * tui/tui-data.h (struct tui_list): Remove.
7098 (tui_source_windows): Return a reference to a std::vector.
7099 * tui/tui-data.c (source_windows): Now a std::vector.
7100 (tui_source_windows): Change return type.
7101 (tui_clear_source_windows): Rewrite.
7102 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7103 (tui_free_all_source_wins_content): Rewrite.
7104
7105 2019-06-25 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7108 (struct tui_data_window, struct tui_cmd_window): Declare
7109 clear_detail method.
7110 * tui/tui-data.c (tui_source_window::clear_detail)
7111 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7112 methods.
7113 (tui_clear_win_detail): Simplify.
7114
7115 2019-06-25 Tom Tromey <tom@tromey.com>
7116
7117 * tui/tui-layout.c (make_source_window, make_disasm_window)
7118 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7119 Return the new window.
7120 (show_source_disasm_command, show_data)
7121 (show_source_or_disasm_and_command): Update.
7122
7123 2019-06-25 Tom Tromey <tom@tromey.com>
7124
7125 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7126 parameter. Return the new window.
7127 (show_source_disasm_command): Update and remove NULL check.
7128 (show_source_or_disasm_and_command): Update.
7129
7130 2019-06-25 Tom Tromey <tom@tromey.com>
7131
7132 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7133
7134 2019-06-25 Tom Tromey <tom@tromey.com>
7135
7136 * tui/tui-data.h (struct tui_win_info): Make constructor
7137 protected. Make destructor virtual. Add initializers.
7138 (tui_source_window, tui_data_window, tui_cmd_window): New
7139 classes.
7140 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7141 constructor. Add "type" parameter.
7142 (tui_source_window, tui_data_window, tui_cmd_window): New
7143 constructors.
7144 (tui_alloc_win_info): Instantiate the appropriate subclass.
7145
7146 2019-06-25 Tom Tromey <tom@tromey.com>
7147
7148 * tui/tui-win.c (tui_resize_all): Use delete.
7149 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7150 destructor.
7151 (tui_free_window): Don't declare.
7152 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7153 Update.
7154
7155 2019-06-25 Tom Tromey <tom@tromey.com>
7156
7157 * tui/tui-data.h (struct tui_win_info): Add constructor.
7158 * tui/tui-data.c (tui_alloc_win_info): Use new.
7159 (tui_free_window): Use delete.
7160
7161 2019-06-22 Tom Tromey <tom@tromey.com>
7162
7163 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7164 declare.
7165 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7166
7167 2019-06-22 Tom Tromey <tom@tromey.com>
7168
7169 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7170 declare.
7171 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7172
7173 2019-06-22 Tom de Vries <tdevries@suse.de>
7174
7175 * dwarf2read.c (create_addrmap_from_aranges)
7176 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7177 instead of '%zu'.
7178
7179 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7180
7181 * dwarf2read.h (dwarf2_section_info_def): Remove.
7182 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7183 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7184 std::vector<dwarf2_section_info>.
7185 (struct dwo_file) <~dwo_file>: Remove.
7186 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7187 types field.
7188 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7189 (dwarf2_read_debug_names): Likewise.
7190 (create_debug_types_hash_table): Change parameter type to
7191 array_view, adjust code accordingly.
7192 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7193 (partial_die_info::fixup): Likewise.
7194 (determine_prefix): Likewise.
7195 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7196
7197 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7200 gdb_bfd_ref_ptr.
7201 <~dwo_file>: Remove call to gdb_bfd_unref.
7202 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7203 gdb_bfd_ref_ptr::get.
7204
7205 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7206
7207 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7208 type to htab_up.
7209 * dwarf2read.c (struct dwo_file): Initialize fields.
7210 <~dwo_file>: New.
7211 (free_dwo_file): Remove, move content to ~dwo_file.
7212 (struct dwo_file_deleter): Remove.
7213 (dwo_file_up>: Remove custom deleter.
7214 (free_dwo_files): Remove.
7215 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7216 dwo_files.
7217 (process_skeletonless_type_units): Call unique_ptr::get.
7218 (allocate_dwo_file_hash_table): Add deleter to created hash
7219 table. Change return type to htab_up.
7220 (lookup_dwo_file_slot): Don't memset dwo_file, call
7221 unique_ptr::get.
7222 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7223 (create_dwo_unit_in_dwp_v2): Likewise.
7224 (open_and_init_dwo_file): Likewise.
7225 (free_dwo_file_from_slot): Remove.
7226
7227 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7228
7229 * dwarf2read.h (struct dwarf2_section_info) <readin,
7230 is_virtual>: Change type to bool.
7231 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7232 true instead of 1.
7233
7234 2019-06-19 Tom Tromey <tom@tromey.com>
7235
7236 * tui/tui-data.h (tui_init_content_element): Don't declare.
7237
7238 2019-06-19 Tom Tromey <tom@tromey.com>
7239
7240 * tui/tui-data.h (tui_init_win_info): Don't declare.
7241
7242 2019-06-19 Tom de Vries <tdevries@suse.de>
7243
7244 * dwarf2read.h (abstract_to_concrete): Change type to
7245 std::unordered_map<sect_offset, std::vector<sect_offset>,
7246 gdb::hash_enum<sect_offset>>.
7247
7248 2019-06-19 Tom Tromey <tromey@adacore.com>
7249
7250 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7251 EVAL_AVOID_SIDE_EFFECTS specially.
7252
7253 2019-06-19 Tom Tromey <tromey@adacore.com>
7254
7255 * source-cache.c (highlighter): New global.
7256 (source_cache::get_source_lines): Create a highlighter on demand.
7257
7258 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7259
7260 * defs.h (deprecated_interactive_hook): Delete declaration.
7261 * interps.c (clear_interpreter_hooks): Remove use of
7262 deprecated_interactive_hook.
7263 * top.c (deprecated_interactive_hook): Delete definition.
7264 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7265
7266 2019-06-18 Tom de Vries <tdevries@suse.de>
7267
7268 PR gdb/24515
7269 * dwarf2read.h (abstract_to_concrete): Change type from
7270 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7271 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7272 * dwarf2read.c (read_variable): Update.
7273 (dwarf2_fetch_die_loc_sect_off): Update.
7274
7275 2019-06-17 Tom de Vries <tdevries@suse.de>
7276
7277 PR gdb/24617
7278 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7279 accessing parent[parent_len - 1].
7280
7281 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7282
7283 PR gdb/24364
7284 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7285 call dtrace_process_dof with NULL dof.
7286
7287 2019-06-16 Tom de Vries <tdevries@suse.de>
7288
7289 PR gdb/24445
7290 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7291
7292 2019-06-16 Tom Tromey <tom@tromey.com>
7293
7294 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7295 (make_all_visible): Use address of member.
7296
7297 2019-06-16 Tom Tromey <tom@tromey.com>
7298
7299 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7300 (tui_free_window, free_content, free_content_elements): Remove
7301 unnecessary cast.
7302 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7303 cast.
7304 * tui/tui-regs.c (tui_show_register_group)
7305 (tui_display_registers_from, tui_display_reg_element_at_line):
7306 Remove unnecessary cast.
7307
7308 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7309
7310 * linux-nat.c (normal_mask): Delete.
7311 (_initialize_linux_nat): Don't initialise normal_mask.
7312
7313 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7314
7315 PR gdb/24445
7316 * dwarf-index-write.h (write_psymtabs_to_index): Add
7317 dwz_basename parameter.
7318 * dwarf-index-write.c (write_gdbindex): Move file writing to
7319 write_gdbindex_1. Change return type void.
7320 (assert_file_size): Move up, remove filename parameter.
7321 (write_gdbindex_1): New function.
7322 (write_debug_names): Change return type to void, call
7323 assert_file_size.
7324 (struct index_wip_file): New struct.
7325 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7326 file logic to index_wip_file. Write index for dwz file if
7327 needed.
7328 (save_gdb_index_command): Pass basename of dwz file, if present.
7329 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7330 build-id of dwz file, if present.
7331 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7332 (dwarf2_get_dwz_file): Likewise.
7333 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7334 (dwarf2_get_dwz_file): Likewise.
7335
7336 2019-06-16 Tom Tromey <tom@tromey.com>
7337
7338 * coffread.c (process_coff_symbol): Use xstrdup.
7339 * value.c (create_internalvar): Use xstrdup.
7340
7341 2019-06-16 Tom Tromey <tom@tromey.com>
7342
7343 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7344 * breakpoint.c (stopin_command, stopat_command)
7345 (until_break_command, decode_location_default): Remove unnecessary
7346 cast.
7347 * utils.c (subset_compare): Remove unnecessary cast.
7348 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7349 cast.
7350 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7351 cast.
7352 * infcmd.c (path_command): Remove unnecessary cast.
7353 * coffread.c (decode_type): Remove unnecessary cast.
7354 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7355 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7356 * tui/tui-stack.c (tui_show_locator_content)
7357 (tui_show_frame_info): Remove unnecessary cast.
7358 * tui/tui-win.c (tui_scroll_forward_command)
7359 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7360 (parse_scrolling_args): Remove unnecessary cast.
7361 * tui/tui-data.c (init_win_info, tui_del_window)
7362 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7363 (free_content_elements): Remove unnecessary cast.
7364 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7365 unnecessary cast.
7366 * tui/tui-source.c (tui_set_source_content)
7367 (tui_vertical_source_scroll): Remove unnecessary cast.
7368 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7369 cast.
7370 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7371 * tui/tui-regs.c (tui_display_registers_from)
7372 (tui_display_register): Remove unnecessary cast.
7373 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7374 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7375 (make_visible): Remove unnecessary cast.
7376 * tui/tui-winsource.c (tui_erase_source_content)
7377 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7378 unnecessary cast.
7379 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7380 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7381 * stabsread.c (read_type, read_array_type, read_range_type):
7382 Remove unnecessary cast.
7383 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7384 (parse_symbol, parse_type, upgrade_type, parse_external)
7385 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7386 unnecessary cast.
7387 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7388
7389 2019-06-16 Tom Tromey <tom@tromey.com>
7390
7391 * tui/tui-data.c (tui_alloc_generic_win_info)
7392 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7393 checks.
7394
7395 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7396 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * f-typeprint.c (f_print_type): Don't return early for not
7399 associated or not allocated types.
7400 (f_type_print_varspec_suffix): Add print_rank parameter and print
7401 ranks of array types in case they dangling.
7402 (f_type_print_base): Add print_rank parameter.
7403
7404 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * NEWS: Mention new MI commands.
7407 * break-catch-throw.c (enum exception_event_kind): Move to
7408 breakpoint.h.
7409 (print_mention_exception_catchpoint): Output text as a single
7410 message.
7411 (catch_exception_command_1): Rename to...
7412 (catch_exception_event): ...this, make non-static, update header
7413 command, and change some parameter types.
7414 (catch_catch_command): Update for changes to
7415 catch_exception_command_1.
7416 (catch_throw_command): Likewise.
7417 (catch_rethrow_command): Likewise.
7418 * breakpoint.c (enum exception_event_kind): Delete.
7419 * breakpoint.h (enum exception_event_kind): Moved here from
7420 break-catch-throw.c.
7421 (catch_exception_event): Declare.
7422 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7423 (mi_cmd_catch_throw): New function.
7424 (mi_cmd_catch_rethrow): New function.
7425 (mi_cmd_catch_catch): New function.
7426 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7427 'catch-catch' entries.
7428 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7429 (mi_cmd_catch_rethrow): Declare.
7430 (mi_cmd_catch_catch): Declare.
7431
7432 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * annotate.c (annotate_source_line): Change return type to void,
7435 update implementation to match.
7436 * annotate.h (annotate_source_line): Change return type to void,
7437 update header comment.
7438 * stack.c (print_frame_info): Don't change what frame information
7439 is printed based on whether annotations are on or not.
7440
7441 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7442
7443 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7444 (annotate_source): Make static.
7445 (annotate_source_line): Moved from source.c and renamed from
7446 identify_source_line. Update the return type.
7447 * annotate.h (annotate_source): Delete declaration.
7448 (annotate_source_line): Declaration moved from source.h, and
7449 renamed from identify_source_line. Return type updated.
7450 * source.c (identify_source_line): Moved to annotate.c and renamed
7451 to annotate_source_line.
7452 (info_line_command): Remove check of annotation_level.
7453 * source.h (identify_source_line): Move declaration to annotate.h
7454 and rename to annotate_source_line.
7455 * stack.c: Add 'annotate.h' include.
7456 (print_frame_info): Remove check of annotation_level before
7457 calling annotate_source_line.
7458
7459 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7460
7461 * source-cache.c (source_cache::get_plain_source_lines): Use
7462 open_source_file_with_line_charpos instead of just
7463 open_source_file, remove call to find_source_lines.
7464 (source_cache::get_source_lines): Likewise.
7465 * source.c (find_source_lines): Make static.
7466 (get_filename_and_charpos): Renamed into...
7467 (open_source_file_with_line_charpos): ..this along with changes to
7468 return a scoped_fd, and some other minor clean ups.
7469 (identify_source_line): Use open_source_file_with_line_charpos.
7470 (search_command_helper): Use open_source_file_with_line_charpos
7471 instead of just open_source_file, remove call to
7472 find_source_lines.
7473 * source.h (open_source_file_with_line_charpos): Declare new
7474 function.
7475 (find_source_lines): Delete declaration.
7476
7477 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7478
7479 * source.c (get_filename_and_charpos): Remove fullname
7480 parameter.
7481 (identify_source_line): Update call to get_filename_and_charpos.
7482
7483 2019-06-14 Tom Tromey <tromey@adacore.com>
7484
7485 PR gdb/24502:
7486 * ui-style.h (skip_ansi_escape): Update comment.
7487 * ui-file.h (class no_terminal_escape_file): New class.
7488 * ui-file.c (no_terminal_escape_file::write)
7489 (no_terminal_escape_file::puts): New methods.
7490 * cli/cli-logging.c (handle_redirections): Use
7491 no_terminal_escape_file.
7492
7493 2019-06-14 Tom Tromey <tromey@adacore.com>
7494
7495 * NEWS: Move convenience variable news above Python news.
7496
7497 2019-06-14 Tom Tromey <tom@tromey.com>
7498
7499 * gnulib: Move directory to top-level.
7500 * configure.ac: Don't configure gnulib.
7501 * configure: Rebuild.
7502 * common/common-defs.h: Use new path to gnulib.
7503 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7504 (GNULIB_H): Remove.
7505 (INCGNU): Look in new gnulib location.
7506 (HFILES_NO_SRCDIR): Remove gnulib files.
7507 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7508 (generated_files): Remove GNULIB_H.
7509 ($(LIBGNU), all-lib): Remove targets.
7510 (distclean): Don't mention GNULIB_BUILDDIR.
7511 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7512
7513 2019-06-14 Tom Tromey <tromey@adacore.com>
7514
7515 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7516 Warn if symbol file does not provide any symbols.
7517
7518 2019-06-14 Tom Tromey <tromey@adacore.com>
7519
7520 * source.c (find_and_open_source): Respect basenames_may_differ.
7521
7522 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7523
7524 * annotate.c (annotate_breakpoints_invalid): Make use of
7525 scoped_restore_terminal_state.
7526 (annotate_frames_invalid): Likewise.
7527
7528 2019-06-14 Tom Tromey <tromey@adacore.com>
7529
7530 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7531 allow assignment to an internalvar.
7532
7533 2019-06-14 Tom Tromey <tromey@adacore.com>
7534
7535 * ada-lex.l: Allow "_" in attribute names.
7536
7537 2019-06-14 Tom Tromey <tromey@adacore.com>
7538
7539 PR gdb/24653:
7540 * regcache.c (registers_changed): Don't call alloca.
7541 * top.c (execute_command): Don't call alloca.
7542
7543 2019-06-13 Pedro Alves <palves@redhat.com>
7544
7545 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7546 'expression'. When parsing an expression, error out if there's
7547 junk after "unlimited".
7548 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7549 (do_set_command): Adjust calls to is_unlimited_literal.
7550
7551 2019-06-13 Pedro Alves <palves@redhat.com>
7552
7553 * compile/compile.c (make_compile_options_def_group): Add braces
7554 around array_view initializer.
7555 * thread.c (make_thread_apply_all_options_def_group)
7556 (make_thread_apply_all_options_def_group): Likewise.
7557
7558 2019-06-13 Pedro Alves <palves@redhat.com>
7559
7560 * NEWS (New commands): Mention "maint test-options
7561 require-delimiter", "maint test-options unknown-is-error", "maint
7562 test-options unknown-is-operand" and "maint show
7563 test-options-completion-result".
7564 (New command options, command completion): New section.
7565 (Completion improvements): New section.
7566 Mention that you can abbreviate "unlimited".
7567
7568 2019-06-13 Pedro Alves <palves@redhat.com>
7569
7570 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7571 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7572 * unittests/cli-utils-selftests.c (test_parse_flags)
7573 (test_parse_flags_qcs): Delete.
7574 (test_cli_utils): Don't call deleted functions.
7575
7576 2019-06-13 Pedro Alves <palves@redhat.com>
7577
7578 * thread.c: Include "cli/cli-option.h".
7579 (tp_array_compar_ascending): Global.
7580 (tp_array_compar): Delete function.
7581 (tp_array_compar_ascending, tp_array_compar_descending): New
7582 functions.
7583 (ascending_option_def, qcs_flag_option_def)
7584 (thr_qcs_flags_option_defs)
7585 (make_thread_apply_all_options_def_group)
7586 (make_thread_apply_options_def_group): New.
7587 (thread_apply_all_command): Use gdb::option::process_options.
7588 (thread_apply_command_completer)
7589 (thread_apply_all_command_completer): New.
7590 (thread_apply_command): Use gdb::option::process_options.
7591 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7592 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7593 to generate help text of "thread apply". Adjust "taas"'s help.
7594 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7595 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7596
7597 2019-06-13 Pedro Alves <palves@redhat.com>
7598
7599 * thread.c (thread_apply_command): Check for invalid TID with
7600 isdigit instead of !isalpha.
7601
7602 2019-06-13 Pedro Alves <palves@redhat.com>
7603
7604 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7605 (validate_flags_qcs): New.
7606 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7607 (validate_flags_qcs): Declare.
7608 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7609 (make_frame_apply_options_def_group): New.
7610 (frame_apply_command_count): Process options with
7611 gdb::option::process_options.
7612 (frame_apply_completer): New.
7613 (frame_apply_level_completer, frame_apply_all_completer)
7614 (frame_apply_completer): New.
7615 (_initialize_stack): Update help of "frame apply", "frame apply
7616 level", "frame apply all" and "faas" to mention supported options
7617 and install command completers.
7618 * stack.h (frame_apply_all_completer): Declare.
7619 * thread.c: Include "stack.h".
7620 (tfaas_command): Add "--".
7621 (_initialize_thread): Update help "tfaas" to mention supported
7622 options and install command completer.
7623
7624 2019-06-13 Pedro Alves <palves@redhat.com>
7625
7626 * completer.c (complete_nested_command_line): New.
7627 (gdb_completion_word_break_characters_throw): Add assertion.
7628 * completer.h (complete_nested_command_line): Declare.
7629
7630 2019-06-13 Pedro Alves <palves@redhat.com>
7631
7632 * stack.c (parse_backtrace_qualifiers): New.
7633 (backtrace_command): Use it.
7634 (backtrace_command_completer): Complete on qualifiers.
7635
7636 2019-06-13 Pedro Alves <palves@redhat.com>
7637
7638 * frame.c: Include "cli/cli-option.h.
7639 (user_set_backtrace_options): New.
7640 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7641 Delete.
7642 (get_prev_frame): Adjust.
7643 (boolean_option_def, uinteger_option_def)
7644 (set_backtrace_option_defs): New.
7645 (_initialize_frame): Adjust and use
7646 gdb::option::add_setshow_cmds_for_options to install "set
7647 backtrace past-main" and "set backtrace past-entry".
7648 * frame.h: Include "cli/cli-option.h".
7649 (struct frame_print_options): Forward declare.
7650 (print_frame_arguments_all, print_frame_arguments_scalars)
7651 (print_frame_arguments_none): Declare.
7652 (print_entry_values): Delete declaration.
7653 (struct frame_print_options, user_frame_print_options): New.
7654 (struct set_backtrace_options): New.
7655 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7656 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7657 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7658 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7659 (list_args_or_locals): Add frame_print_options parameter.
7660 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7661 * python/py-framefilter.c (enumerate_args): Pass down
7662 USER_FRAME_PRINT_OPTIONS.
7663 * stack.c: Include "cli/cli-option.h".
7664 (print_frame_arguments_all, print_frame_arguments_scalars)
7665 (print_frame_arguments_none): Declare.
7666 (print_raw_frame_arguments, print_entry_values): Delete.
7667 (user_frame_print_options): New.
7668 (boolean_option_def, enum_option_def, frame_print_option_defs):
7669 New.
7670 (struct backtrace_cmd_options): New.
7671 (bt_flag_option_def): New.
7672 (backtrace_command_option_defs): New.
7673 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7674 (print_frame_arg, read_frame_arg, print_frame_args)
7675 (print_frame_info, print_frame): Add frame_print_options parameter
7676 and use it.
7677 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7678 (backtrace_command_1): Add frame_print_options and
7679 backtrace_cmd_options parameters and use them.
7680 (make_backtrace_options_def_group): New.
7681 (backtrace_command): Process command options with
7682 gdb::option::process_options.
7683 (backtrace_command_completer): New.
7684 (_initialize_stack): Extend "backtrace"'s help to mention
7685 supported options. Install completer for "backtrace".
7686 Install some settings commands with add_setshow_cmds_for_options.
7687
7688 2019-06-13 Pedro Alves <palves@redhat.com>
7689
7690 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7691 and that "set/show print raw frame-arguments" are now deprecated.
7692
7693 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7694 command.
7695 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7696 * stack.c (_initialize_stack): Install "set/show print
7697 raw-frame-arguments", and deprecate "set/show print raw
7698 frame-arguments".
7699 * valprint.c (_initialize_valprint): Deprecate "set/show print
7700 raw".
7701
7702 2019-06-13 Pedro Alves <palves@redhat.com>
7703
7704 * compile/compile.c (struct compile_options): New.
7705 (compile_flag_option_def, compile_command_option_defs)
7706 (make_compile_options_def_group): New.
7707 (compile_file_command): Handle options with
7708 gdb::option::process_options.
7709 (compile_file_command_completer): New function.
7710 (compile_code_command): Handle options with
7711 gdb::option::process_options.
7712 (compile_code_command_completer): New function.
7713 (_initialize_compiler): Install completers for "compile code" and
7714 "compile file". Mention available options in "compile code" and
7715 "compile code"'s help.
7716 * completer.c (advance_to_completion_word): New, factored out from
7717 ...
7718 (advance_to_expression_complete_word_point): ... this.
7719 (advance_to_filename_complete_word_point): New.
7720 * completer.h (advance_to_filename_complete_word_point): New
7721 declaration.
7722
7723 2019-06-13 Pedro Alves <palves@redhat.com>
7724
7725 * compile/compile.c: Include "cli/cli-option.h".
7726 (compile_print_value): Scope data pointer is now a
7727 value_print_options pointer; adjust.
7728 (compile_print_command): Process options. Scope data pointer is
7729 now a value_print_options pointer; adjust.
7730 (_initialize_compile): Update "compile print"'s help to include
7731 supported options. Install a completer for "compile print".
7732 * cp-valprint.c (show_vtblprint, show_objectprint)
7733 (show_static_field_print): Delete.
7734 (_initialize_cp_valprint): Don't install "set print
7735 static-members", "set print vtbl", "set print object" here.
7736 * printcmd.c: Include "cli/cli-option.h" and
7737 "common/gdb_optional.h".
7738 (print_command_parse_format): Rework to fill in a
7739 value_print_options instead of a format_data.
7740 (print_value): Change parameter type from format_data pointer to
7741 value_print_options reference. Adjust.
7742 (print_command_1): Process options. Adjust to pass down a
7743 value_print_options.
7744 (print_command_completer): New.
7745 (_initialize_printcmd): Install print_command_completer as
7746 handle_brkchars completer for the "print" command. Update
7747 "print"'s help to include supported options.
7748 * valprint.c: Include "cli/cli-option.h".
7749 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7750 here from cp-valprint.c.
7751 (boolean_option_def, uinteger_option_def)
7752 (value_print_option_defs, make_value_print_options_def_group):
7753 New. Use gdb::option::add_setshow_cmds_for_options to install
7754 "set print elements", "set print null-stop", "set print repeats",
7755 "set print pretty", "set print union", "set print array", "set
7756 print address", "set print symbol", "set print array-indexes".
7757 * valprint.h: Include <string> and "cli/cli-option.h".
7758 (make_value_print_options_def_group): Declare.
7759 (print_value): Change parameter type from format_data pointer to
7760 value_print_options reference.
7761 (print_command_completer): Declare.
7762
7763 2019-06-13 Pedro Alves <palves@redhat.com>
7764
7765 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7766 (COMMON_SFILES): Add maint-test-settings.c.
7767 * cli/cli-decode.c (boolean_enums): New global, factored out from
7768 ...
7769 (add_setshow_boolean_cmd): ... here.
7770 * cli/cli-decode.h (boolean_enums): Declare.
7771 * cli/cli-option.c: New file.
7772 * cli/cli-option.h: New file.
7773 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7774 factored out from ...
7775 (parse_cli_boolean_value(const char *)): ... this.
7776 (is_unlimited_literal): Change parameter type to pointer to
7777 pointer. Adjust and advance ARG pointer.
7778 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7779 (parse_cli_var_enum): New, factored out from ...
7780 (do_set_command): ... this. Adjust.
7781 * cli/cli-setshow.h (parse_cli_boolean_value)
7782 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7783 (parse_cli_var_enum): Declare.
7784 * cli/cli-utils.c: Include "cli/cli-option.h".
7785 (get_ulongest): New.
7786 * cli/cli-utils.h (get_ulongest): Declare.
7787 (check_for_argument): New overloads.
7788 * maint-test-options.c: New file.
7789
7790 2019-06-13 Pedro Alves <palves@redhat.com>
7791
7792 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7793 parse a range if "-" is at the end of the string.
7794
7795 2019-06-13 Pedro Alves <palves@redhat.com>
7796
7797 * cli/cli-setshow.c (parse_auto_binary_operation)
7798 (parse_cli_boolean_value): Don't allow "o".
7799
7800 2019-06-13 Pedro Alves <palves@redhat.com>
7801
7802 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7803 * NEWS: Mention maint test-settings KIND.
7804 * maint-test-settings.c: New file.
7805
7806 2019-06-13 Pedro Alves <palves@redhat.com>
7807
7808 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7809 completer.
7810 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7811 "set" completers.
7812
7813 2019-06-13 Pedro Alves <palves@redhat.com>
7814
7815 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7816 after item.
7817
7818 2019-06-13 Pedro Alves <palves@redhat.com>
7819
7820 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7821
7822 2019-06-13 Pedro Alves <palves@redhat.com>
7823
7824 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7825 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7826 call.
7827 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7828 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7829 calls.
7830 (check_for_argument): Skip spaces after argument.
7831
7832 2019-06-13 Pedro Alves <palves@redhat.com>
7833
7834 * thread.c (thread_apply_command): Adjust TID parsing.
7835 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7836 detected before end of string.
7837 (tid_is_in_list): Error out if LIST is invalid.
7838
7839 2019-06-13 Pedro Alves <palves@redhat.com>
7840
7841 * completer.c (complete_line_internal_1): Rewind completion word
7842 point.
7843 (completion_tracker::advance_custom_word_point_by): Change
7844 parameter type to int.
7845 * completer.h (completion_tracker::advance_custom_word_point_by):
7846 Likewise.
7847
7848 2019-06-13 Pedro Alves <palves@redhat.com>
7849
7850 * completer.c (advance_to_completion_word): Handle delimiters.
7851
7852 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7853
7854 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7855
7856 2019-06-11 Tom Tromey <tom@tromey.com>
7857
7858 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7859 (xmalloc_failed): Move to alloc.c.
7860 * alloc.c: New file.
7861 * Makefile.in (COMMON_SFILES): Add alloc.c.
7862
7863 2019-06-11 Tom Tromey <tom@tromey.com>
7864
7865 * nat/linux-waitpid.c: Don't include server.h.
7866 (linux_debug): Remove.
7867 (my_waitpid): Update.
7868
7869 2019-06-11 Tom Tromey <tromey@adacore.com>
7870
7871 * infcall.c (_initialize_infcall): Remove trailing newline from
7872 help.
7873 * user-regs.c (_initialize_user_regs): Remove trailing newline
7874 from help.
7875 * typeprint.c (_initialize_typeprint): Remove trailing newline
7876 from help.
7877 * reverse.c (_initialize_reverse): Remove trailing newlines from
7878 help.
7879 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7880 from help.
7881 * language.c (add_set_language_command): Remove trailing newline
7882 from help.
7883 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7884 help.
7885 * disasm.c (_initialize_disasm): Remove trailing newline from
7886 help.
7887 * top.c (init_main): Remove trailing newline from help.
7888 * interps.c (_initialize_interpreter): Remove trailing newline
7889 from help.
7890 * btrace.c (_initialize_btrace): Remove trailing newlines from
7891 help.
7892 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7893 from help.
7894 * python/python.c (_initialize_python): Remove trailing newline
7895 from help.
7896 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7897 help.
7898 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7899 from help. Reformat some text.
7900 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7901 from help.
7902 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7903 newline from help.
7904
7905 2019-06-11 Tom Tromey <tromey@adacore.com>
7906
7907 * darwin-nat.c (darwin_decode_exception_message)
7908 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7909
7910 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7911
7912 * valops.c (value_slice): Check for not allocated or not
7913 associated values.
7914
7915 2019-06-10 Tom de Vries <tdevries@suse.de>
7916
7917 PR gdb/24618
7918 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7919 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7920 invalid.
7921
7922 2019-06-10 Tom de Vries <tdevries@suse.de>
7923
7924 PR gdb/24611
7925 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7926 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7927
7928 2019-06-10 Tom de Vries <tdevries@suse.de>
7929
7930 PR symtab/24545
7931 * symtab.c (struct demangled_name_entry): Add language field.
7932 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7933 static minimal symbol". Set and use language field.
7934
7935 2019-06-10 Tom Tromey <tromey@adacore.com>
7936
7937 * ada-lang.c (_initialize_ada_language): Update help text.
7938
7939 2019-06-10 Tom Tromey <tromey@adacore.com>
7940
7941 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7942 with a newline.
7943 * guile/guile.c (handle_boot_error): Don't end warning with a
7944 newline.
7945 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7946 warning with a newline.
7947 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7948 newline.
7949 (s12z_frame_cache): Likewise.
7950 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7951 a newline.
7952 * solib-svr4.c (disable_probes_interface): Don't end warning with
7953 a newline.
7954 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7955 newline.
7956 * python/python.c (do_finish_initialization): Don't end warning
7957 with a newline.
7958
7959 2019-06-10 Tom Tromey <tom@tromey.com>
7960
7961 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7962 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7963 gdbpy_enter.
7964
7965 2019-06-10 Tom Tromey <tromey@adacore.com>
7966
7967 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7968 data.
7969 (elf_new_init): Don't call stabsread_new_init.
7970 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7971 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7972 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7973
7974 2019-06-10 Tom de Vries <tdevries@suse.de>
7975
7976 PR symtab/16264
7977 PR symtab/24517
7978 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7979
7980 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7981
7982 * source.c (find_and_open_source): Also rewrite relative file
7983 names.
7984
7985 2019-04-26 Amos Bird <amosbird@gmail.com>
7986
7987 * annotate.c (annotate_thread_exited): Add "thread-exited"
7988 annotation.
7989
7990 2019-06-06 Tom Tromey <tromey@adacore.com>
7991
7992 * maint.h (class scoped_command_stats): Use
7993 DISABLE_COPY_AND_ASSIGN.
7994 <print_time>: New method.
7995 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7996 print_time.
7997 (scoped_command_stats::print_time): New method.
7998
7999 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8002 instructions of lengths 6 or 8 bytes.
8003
8004 2019-06-04 Pedro Alves <palves@redhat.com>
8005
8006 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8007
8008 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8009 * breakpoint.c (condition_completer): Likewise.
8010 * cli/cli-dump.c (scan_expression): Likewise.
8011 * common/filestuff.c (mkdir_recursive): Likewise.
8012 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8013 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8014 (gdb_abspath): Likewise.
8015 * compile/compile-cplus-types.c
8016 (compile_cplus_instance::decl_name): Likewise.
8017 * completer.c (complete_explicit_location):
8018 (signal_completer, reg_or_group_completer_1): Likewise.
8019 * cp-support.c (cp_remove_params_if_any): Likewise.
8020 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8021 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8022 * infcmd.c (strip_bg_char): Likewise.
8023 * linespec.c (copy_token_string): Likewise.
8024 * mi/mi-main.c (output_cores): Likewise.
8025 * psymtab.c (psymtab_search_name):
8026 * symfile.c (test_set_ext_lang_command): Likewise.
8027 * target.c (target_fileio_read_stralloc): Likewise.
8028 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8029 * value.c (complete_internalvar): Likewise.
8030
8031 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8032
8033 Add objfile property to gdb.Type.
8034 * NEWS: Mention Python API addition.
8035 * python/py-type.c (typy_get_objfile): New method.
8036
8037 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8038
8039 * NEWS: Mention the new set|show style [title|highlight].
8040 Mention changes to "show style", "help" and "apropos".
8041
8042 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8043
8044 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8045 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8046 instead of print_help_for_command.
8047 (print_doc_of_command): New function.
8048 (help_list): Add 'apropos -v word' suggestion.
8049 (print_help_for_command): Style the command name using title style.
8050 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8051 (_initialize_cli_cmds): Describe -v in apropos_command help.
8052
8053 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8054
8055 * cli/cli-style.h (cli_style_option): Add name in constructor,
8056 add m_name class member, add constructor with intensity,
8057 add name class function.
8058 (cli_style_option::add_setshow_commands): Remove name argument.
8059 (highlight_style, title_style): New styles.
8060 * cli/cli-style.c (do_show): New function that shows a style
8061 characteristic styling the style name with itself.
8062 (set_style_name): New function.
8063 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8064 Update all callers according to the changes in cli/cli-style.h.
8065 * utils.h (fputs_highlighted): New function.
8066 * utils.c (fputs_highlighted): Likewise.
8067
8068 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8069
8070 * NEWS: Mention new pipe command and new convenience variables.
8071
8072 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8073
8074 * cli/cli-cmds.c (pipe_command): New function.
8075 (_initialize_cli_cmds): Call add_com for pipe_command.
8076 Define | as an alias for pipe.
8077 (exit_status_set_internal_vars): New function.
8078 (shell_escape): Call exit_status_set_internal_vars.
8079 cli/cli-decode.c (find_command_name_length): Recognize | as
8080 a single character command.
8081
8082 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8083
8084 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8085 top.c (execute_command_to_ui_file): New function, mostly a copy
8086 of execute_command_to_string.
8087 (execute_command_to_string): Implement by calling
8088 execute_command_to_ui_file.
8089
8090 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8091
8092 * top.h (saved_command_line): Remove declaration.
8093 * top.c (previous_saved_command_line, previous_repeat_arguments):
8094 New variables.
8095 (saved_command_line): Make static, define together with other
8096 'repeat variables'.
8097 (dont_repeat): Clear repeat_arguments.
8098 (repeat_previous, get_saved_command_line, save_command_line):
8099 New functions.
8100 (gdb_init): Initialize saved_command_line
8101 and previous_saved_command_line.
8102 * main.c (captured_main_1): Remove saved_command_line initialization.
8103 * event-top.c (handle_line_of_input): Update to use
8104 the new 'repeat' related functions instead of direct access to
8105 saved_command_line.
8106 * command.h (repeat_previous, get_saved_command_line,
8107 save_command_line): New declarations.
8108 (dont_repeat): Add comment.
8109
8110 2019-05-30 Tom Tromey <tromey@adacore.com>
8111
8112 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8113 Fix comment.
8114 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8115
8116 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8117
8118 PR cli/24587
8119 * completer.c (complete): Initialize variable word.
8120
8121 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8122
8123 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8124 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8125 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8126 'body' is NULL to the outter 'if', protecting the '!is_define'
8127 situation as well.
8128
8129 2019-05-29 Tom Tromey <tromey@adacore.com>
8130
8131 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8132 (dwarf_unknown): New function.
8133 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8134 (dwarf_type_encoding_name): Use dwarf_unknown.
8135
8136 2019-05-29 Tom Tromey <tromey@adacore.com>
8137
8138 PR c++/20020:
8139 * cp-valprint.c (cp_print_value_fields): Call
8140 cp_print_static_field inside "try".
8141
8142 2019-05-29 Tom Tromey <tromey@adacore.com>
8143
8144 * inflow.c (struct terminal_info): Add default operator=.
8145 * configure: Rebuild.
8146 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8147 -Wdeprecated-copy-dtor, -Wredundant-move.
8148
8149 2019-05-29 Tom Tromey <tromey@adacore.com>
8150
8151 * NEWS: Add entry.
8152 * infcmd.c (print_return_value_1): Handle finish_print
8153 option.
8154 (show_print_finish): New function.
8155 (_initialize_infcmd): Add "set/show print finish" commands.
8156 * valprint.c (user_print_options): Initialize new member.
8157 * valprint.h (struct value_print_options) <finish_print>: New
8158 member.
8159
8160 2019-05-28 Tom Tromey <tromey@adacore.com>
8161
8162 * ada-lang.c (ada_remove_Xbn_suffix)
8163 (find_old_style_renaming_symbol)
8164 (parse_old_style_renaming): Remove.
8165 (ada_find_renaming_symbol): Don't call
8166 find_old_style_renaming_symbol.
8167 (ada_is_renaming_symbol): Rename from
8168 ada_find_renaming_symbol. Remove "block" parameter. Return
8169 bool. Now static.
8170 (ada_read_var_value): Update and simplify.
8171 * ada-exp.y (write_var_or_type): Remove old code.
8172
8173 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8174
8175 PR gdb/25010
8176 * event-top.c: Remove include comment.
8177 * inflow.c (class scoped_ignore_sigttou): Move from here...
8178 * inflow.h (class scoped_ignore_sigttou): ...to here.
8179 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8180 * top.c: Remove include comment.
8181
8182 2019-05-27 Tom Tromey <tom@tromey.com>
8183
8184 * NEWS: Fix typo.
8185
8186 2019-05-22 Tom Tromey <tromey@adacore.com>
8187
8188 * target.c (target_follow_exec): Constify parameter.
8189 * target-delegates.c: Rebuild.
8190 * remote.c (remote_target::follow_exec): Constify parameter.
8191 * infrun.c (follow_exec): Constify parameter.
8192 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8193 (target_follow_exec): Likewise.
8194
8195 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8196
8197 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8198 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8199
8200 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8201
8202 * NEWS: Add debugredirect and testsuite sections.
8203
8204 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8205
8206 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8207 target descriptions using exclusively floating point register name
8208 aliases.
8209
8210 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8211
8212 PR gdb/18644:
8213 * f-lang.c (build_fortran_types): Handle the case where
8214 gdbarch_floatformat_for_type returns a nullptr.
8215
8216 2019-05-21 Tom de Vries <tdevries@suse.de>
8217
8218 PR cli/24587
8219 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8220
8221 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8222
8223 PR gdb/18644:
8224 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8225 16-byte floats.
8226 * i386-tdep.c (i386_floatformat_for_type): Use
8227 floatformats_ia64_quad for the 16-byte floating point component
8228 within a fortran 32-byte complex number.
8229
8230 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8231
8232 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8233 delete default constructor.
8234 (find_partial_die): Update to return const struct.
8235 (partial_die_parent_scope): Move variable declaration into scope
8236 of its use and change its type to auto.
8237 (guess_partial_die_structure_name): Likewise.
8238 (partial_die_info::fixup): Likewise.
8239
8240 2019-05-17 Tom Tromey <tromey@adacore.com>
8241
8242 * source.c (find_and_open_source): Remove cast.
8243
8244 2019-05-17 Tom Tromey <tromey@adacore.com>
8245
8246 * annotate.c (annotate_source): Make "filename" const.
8247 * annotate.h (annotate_source): Use const.
8248
8249 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8250
8251 * disasm.c (set_disassembler_options): Send errors to stderr.
8252
8253 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8254
8255 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8256 (cli_interp_base::set_logging): Check debug_redirect.
8257 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8258 * cli/cli-logging.c (debug_redirect): Add static variable.
8259 (pop_output_files): Add default param.
8260 (handle_redirections): Print debug setting.
8261 (show_logging_command): Likewise.
8262 (_initialize_cli_logging): Add debugredirect command.
8263 * interps.c (current_interp_set_logging): Add debug_redirect
8264 parameter.
8265 * interps.h (set_logging): Add debug_redirect parameter.
8266 (current_interp_set_logging): Likewise.
8267 * mi/mi-common.h: Likewise.
8268 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8269
8270 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8271 Tom Tromey <tromey@adacore.com>
8272
8273 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8274 directly.
8275 * cli/cli-interp.h (make_logging_output): Remove declaration.
8276 * cli/cli-logging.c (make_logging_output): Remove function.
8277 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8278 directly.
8279 * ui-file.c (tee_file::tee_file): Remove bools.
8280 (tee_file::~tee_file): Remove deletes.
8281 * ui-file.h (tee_file): Remove bools.
8282
8283 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8284
8285 * mi/mi-cmds.h (mi_cmd_complete): New function.
8286 * mi/mi-main.c (mi_cmd_complete): Likewise.
8287 * mi/mi-cmds.c: Define new MI command -complete.
8288 * NEWS: Mention new -complete command.
8289
8290 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8291
8292 * completer.h (complete): New function.
8293 * completer.c (complete): Likewise.
8294 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8295 function defined in completer.h.
8296
8297 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8298
8299 * MAINTAINERS (Write After Approval): Add myself.
8300
8301 2019-05-17 Tom de Vries <tdevries@suse.de>
8302
8303 PR gdb/24094
8304 * dwarf2read.c (struct cu_partial_die_info): New struct.
8305 (find_partial_die): Return cu_partial_die_info.
8306 (partial_die_parent_scope, guess_partial_die_structure_name)
8307 (partial_die_info::fixup): Handle new return type of find_partial_die.
8308
8309 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8310
8311 PR breakpoints/24541
8312 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8313 "std::string", simplifying the algorithm.
8314
8315 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8316
8317 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8318 (stap_static_probe_ops::get_probes): Likewise.
8319
8320 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8321
8322 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8323 '-')" and "else if".
8324 (stap_parse_single_operand): Join checks for
8325 "gdbarch_stap_parse_special_token_p" and
8326 "gdbarch_stap_parse_special_token" in the same "if" statement.
8327 Invert check when verifying for operation on register
8328 displacement.
8329
8330 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8331
8332 * stap-probe.c (stap_get_opcode): Update comment.
8333 (stap_get_expected_argument_type): Likewise.
8334 (handle_stap_probe): Likewise.
8335
8336 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8337
8338 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8339 return type to 'bool'. Adjust comment. Use 'bool' when
8340 appropriate.
8341 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8342 * stap-probe.c (stap_parse_argument_1): Likewise.
8343 (stap_is_operator): Likewise.
8344 (stap_is_generic_prefix): Likewise.
8345 (stap_is_register_prefix): Likewise.
8346 (stap_is_register_indirection_prefix): Likewise.
8347 (stap_is_integer_prefix): Likewise.
8348 (stap_generic_check_suffix): Likewise.
8349 (stap_check_integer_suffix): Likewise.
8350 (stap_check_register_suffix): Likewise.
8351 (stap_check_register_indirection_suffix): Likewise.
8352 (stap_parse_register_operand): Likewise.
8353 (stap_parse_single_operand): Likewise.
8354 (stap_parse_argument_1): Likewise.
8355 (stap_probe::get_argument_count): Likewise.
8356 (stap_is_operator): Likewise.
8357
8358 2019-05-16 Tom Tromey <tromey@adacore.com>
8359
8360 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8361 keyword to foreach.
8362
8363 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8364
8365 * linux-thread-db.c (try_thread_db_load_1): Change return type
8366 to bool.
8367 (try_thread_db_load): Likewise.
8368 (try_thread_db_load_from_pdir_1): Likewise.
8369 (try_thread_db_load_from_pdir): Likewise.
8370 (try_thread_db_load_from_sdir): Likewise.
8371 (try_thread_db_load_from_dir): Likewise.
8372 (thread_db_load_search): Likewise.
8373 (has_libpthread): Likewise.
8374 (thread_db_load): Likewise.
8375
8376 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8377
8378 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8379 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8380 NULL, and complain/return if that's the case.
8381
8382 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8383
8384 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8385 (advance, posn, abstract_read_memory): New functions.
8386 [struct mem_read_abstraction]: New struct.
8387 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8388
8389 2019-05-14 Tom Tromey <tromey@adacore.com>
8390
8391 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8392 value is not lval_memory.
8393
8394 2019-05-14 Tom Tromey <tromey@adacore.com>
8395
8396 * solib.c (info_sharedlibrary_command): Style the file name.
8397
8398 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8399
8400 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8401 (aarch64_vnv_type): Likewise.
8402 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8403 * common/tdesc.c: Likewise.
8404 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8405 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8406 * features/aarch64-fpu.xml: Add ieee half view.
8407 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8408 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8409 * gdbtypes.h (struct builtin_type): Likewise.
8410 (struct objfile_type): Likewise.
8411
8412 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8413
8414 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8415 typo.
8416 * location.h (string_to_event_location): Likewise.
8417
8418 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8419
8420 GDB 8.3 released.
8421
8422 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8423
8424 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8425 New variable declaration.
8426 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8427 New variable.
8428 (print_one_breakpoint): Use ui_out::test_flags and new global
8429 variable to compute use_fixed_output.
8430 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8431 Remove.
8432 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8433 (mi_multi_location_breakpoint_output_fixed): Remove.
8434 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8435 new variable.
8436 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8437 fix_multi_location_breakpoint_output flag if version >= 3.
8438 * ui-out.h (enum ui_out_flag)
8439 <fix_multi_location_breakpoint_output>: New enumerator.
8440
8441 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8442
8443 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8444
8445 2019-05-10 Tom Tromey <tromey@adacore.com>
8446
8447 * ada-lang.c (catch_ada_completer): New function.
8448 (_initialize_ada_language): Use it.
8449
8450 2019-05-10 Tom Tromey <tromey@adacore.com>
8451
8452 * thread.c (print_thread_info): Make "requested_threads" const.
8453 * gdbthread.h (print_thread_info): Make "requested_threads"
8454 const.
8455 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8456 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8457
8458 2019-05-08 Tom Tromey <tom@tromey.com>
8459
8460 * gdbtypes.c (objfile_type_data): Change type.
8461 (objfile_type, _initialize_gdbtypes): Update.
8462
8463 2019-05-08 Tom Tromey <tom@tromey.com>
8464
8465 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8466 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8467 (_initialize_dwarf2_frame): Update.
8468
8469 2019-05-08 Tom Tromey <tom@tromey.com>
8470
8471 * objc-lang.c (objc_objfile_data): Change type.
8472 (find_methods): Update.
8473 (_initialize_objc_lang): Remove.
8474
8475 2019-05-08 Tom Tromey <tom@tromey.com>
8476
8477 * stabsread.c (rs6000_builtin_type_data): Change type.
8478 (rs6000_builtin_type, _initialize_stabsread): Update.
8479
8480 2019-05-08 Tom Tromey <tom@tromey.com>
8481
8482 * mips-tdep.c (mips_pdr_data): Remove.
8483 (_initialize_mips_tdep): Update.
8484
8485 2019-05-08 Tom Tromey <tom@tromey.com>
8486
8487 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8488 (hppa_init_objfile_priv_data, read_unwind_info)
8489 (find_unwind_entry, _initialize_hppa_tdep): Update.
8490
8491 2019-05-08 Tom Tromey <tom@tromey.com>
8492
8493 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8494 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8495 on obstack.
8496 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8497
8498 2019-05-08 Tom Tromey <tom@tromey.com>
8499
8500 * mdebugread.c (basic_type_data): Change type.
8501 (basic_type, _initialize_mdebugread): Update.
8502
8503 2019-05-08 Tom Tromey <tom@tromey.com>
8504
8505 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8506
8507 2019-05-08 Tom Tromey <tom@tromey.com>
8508
8509 * nto-tdep.c (nto_inferior_data_reg): Change type.
8510 (nto_inferior_data): Update.
8511 (nto_inferior_data_cleanup, nto_new_inferior_data)
8512 (_initialize_nto_tdep): Remove.
8513 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8514
8515 2019-05-08 Tom Tromey <tom@tromey.com>
8516
8517 * ada-lang.c (struct ada_inferior_data): Add initializers.
8518 (ada_inferior_data): Change type.
8519 (ada_inferior_data_cleanup): Remove.
8520 (get_ada_inferior_data, ada_inferior_exit)
8521 (struct ada_pspace_data): Add initializers, destructor.
8522 (ada_pspace_data_handle): Change type.
8523 (get_ada_pspace_data): Update.
8524 (ada_pspace_data_cleanup): Remove.
8525
8526 2019-05-08 Tom Tromey <tom@tromey.com>
8527
8528 * coffread.c (struct coff_symfile_info): Add initializers.
8529 (coff_objfile_data_key): Move lower. Change type.
8530 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8531 Update.
8532 (coff_free_info): Remove.
8533
8534 2019-05-08 Tom Tromey <tom@tromey.com>
8535
8536 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8537 (fbsd_pspace_data_handle): Move lower. Change type.
8538 (get_fbsd_pspace_data): Update.
8539 (fbsd_pspace_data_cleanup): Remove.
8540 (_initialize_fbsd_tdep): Update.
8541
8542 2019-05-08 Tom Tromey <tom@tromey.com>
8543
8544 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8545 (get_ada_tasks_pspace_data): Update.
8546 (ada_tasks_pspace_data_cleanup): Remove.
8547 (_initialize_tasks): Update.
8548 (ada_tasks_inferior_data_handle): Change type.
8549 (get_ada_tasks_inferior_data): Update.
8550 (ada_tasks_inferior_data_cleanup): Remove.
8551 (struct ada_tasks_pspace_data): Add initializers.
8552
8553 2019-05-08 Tom Tromey <tom@tromey.com>
8554
8555 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8556 * symfile-debug.c (debug_sym_get_probes): Change type.
8557 * stap-probe.c (handle_stap_probe):
8558 (stap_static_probe_ops::get_probes): Change type.
8559 * probe.h (class static_probe_ops) <get_probes>: Change type.
8560 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8561 (parse_probes_in_pspace): Update.
8562 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8563 Update.
8564 (any_static_probe_ops::get_probes): Change type.
8565 * elfread.c (elfread_data): New typedef.
8566 (probe_key): Change type.
8567 (elf_get_probes): Likewise. Update.
8568 (probe_key_free): Remove.
8569 (_initialize_elfread): Update.
8570 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8571 Change type.
8572 (dtrace_process_dof_probe, dtrace_process_dof)
8573 (dtrace_static_probe_ops::get_probe): Change type.
8574
8575 2019-05-08 Tom Tromey <tom@tromey.com>
8576
8577 * xcoffread.c (struct xcoff_symfile_info): Rename from
8578 coff_symfile_info. Add initializers.
8579 (xcoff_objfile_data_key): Move lower. Change type.
8580 (XCOFF_DATA): Rewrite.
8581 (xcoff_free_info): Remove.
8582 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8583 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8584 (xcoff_initial_scan): Update.
8585
8586 2019-05-08 Tom Tromey <tom@tromey.com>
8587
8588 * solib-svr4.c (struct svr4_info): Add initializers and
8589 destructor.
8590 <probes_table>: Now an htab_up.
8591 (solib_svr4_pspace_data): Change type.
8592 (free_probes_table): Simplify.
8593 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8594 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8595 (probes_table_remove_objfile_probes, register_solib_event_probe)
8596 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8597 (_initialize_svr4_solib): Update.
8598
8599 2019-05-08 Tom Tromey <tom@tromey.com>
8600
8601 * remote.c (remote_pspace_data): Change type.
8602 (remote_pspace_data_cleanup): Remove.
8603 (get_remote_exec_file, set_pspace_remote_exec_file)
8604 (_initialize_remote): Update.
8605
8606 2019-05-08 Tom Tromey <tom@tromey.com>
8607
8608 * breakpoint.c (breakpoint_objfile_key): Change type.
8609 (get_breakpoint_objfile_data): Update.
8610 (free_breakpoint_objfile_data): Remove.
8611 (_initialize_breakpoint): Update.
8612
8613 2019-05-08 Tom Tromey <tom@tromey.com>
8614
8615 * linux-tdep.c (struct linux_info): Add initializers.
8616 (linux_inferior_data): Move. Change type.
8617 (invalidate_linux_cache_inf): Update.
8618 (linux_inferior_data_cleanup): Remove.
8619 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8620
8621 2019-05-08 Tom Tromey <tom@tromey.com>
8622
8623 * auxv.c (auxv_inferior_data): Move. Change type.
8624 (auxv_inferior_data_cleanup): Remove.
8625 (invalidate_auxv_cache_inf): Rewrite.
8626 (get_auxv_inferior_data, _initialize_auxv): Update.
8627
8628 2019-05-08 Tom Tromey <tom@tromey.com>
8629
8630 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8631 (symfile_debug_objfile_data_key): Change type.
8632 (symfile_debug_installed, debug_qf_has_symbols)
8633 (debug_qf_find_last_source_symtab)
8634 (debug_qf_forget_cached_source_info)
8635 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8636 (debug_qf_print_stats, debug_qf_dump)
8637 (debug_qf_expand_symtabs_for_function)
8638 (debug_qf_expand_all_symtabs)
8639 (debug_qf_expand_symtabs_with_fullname)
8640 (debug_qf_map_matching_symbols)
8641 (debug_qf_expand_symtabs_matching)
8642 (debug_qf_find_pc_sect_compunit_symtab)
8643 (debug_qf_map_symbol_filenames)
8644 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8645 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8646 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8647 (debug_sym_read_linetable, debug_sym_relocate): Update.
8648 (symfile_debug_free_objfile): Remove.
8649 (install_symfile_debug_logging, _initialize_symfile_debug):
8650 Update.
8651
8652 2019-05-08 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8655 allocate_on_obstack.
8656 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8657 (get_dwarf2_per_objfile): Update.
8658 (set_dwarf2_per_objfile): Remove.
8659 (dwarf2_has_info, dwarf2_get_section_info): Update.
8660 (dwarf2_free_objfile): Remove.
8661 (_initialize_dwarf2_read): Update.
8662
8663 2019-05-08 Tom Tromey <tom@tromey.com>
8664
8665 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8666 initializers.
8667 <unsupported_script_warning_printed,
8668 script_not_found_warning_printed>: Now bool.
8669 (auto_load_pspace_data): Change type.
8670 (~auto_load_pspace_info): Rename from
8671 auto_load_pspace_data_cleanup.
8672 (get_auto_load_pspace_data, init_loaded_scripts_info)
8673 (clear_section_scripts, maybe_print_unsupported_script_warning)
8674 (maybe_print_script_not_found_warning, _initialize_auto_load):
8675 Update.
8676
8677 2019-05-08 Tom Tromey <tom@tromey.com>
8678
8679 * objfiles.c (objfile_pspace_info): Add destructor and
8680 initializers.
8681 (objfiles_pspace_data): Change type.
8682 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8683 (get_objfile_pspace_data): Update.
8684 (objfiles_bfd_data): Change type.
8685 (get_objfile_bfd_data): Update.
8686 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8687
8688 2019-05-08 Tom Tromey <tom@tromey.com>
8689
8690 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8691 Change type.
8692 (get_catch_syscall_inferior_data): Update.
8693 (catch_syscall_inferior_data_cleanup): Remove.
8694 (_initialize_break_catch_syscall): Update.
8695
8696 2019-05-08 Tom Tromey <tom@tromey.com>
8697
8698 * inflow.c (struct terminal_info): Add destructor and
8699 initializers.
8700 (inflow_inferior_data): Change type.
8701 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8702 (get_inflow_inferior_data, inflow_inferior_exit)
8703 (swap_terminal_info, _initialize_inflow): Update.
8704
8705 2019-05-08 Tom Tromey <tom@tromey.com>
8706
8707 * target-dcache.c (target_dcache_cleanup): Remove.
8708 (target_dcache_aspace_key): Change type.
8709 (target_dcache_init_p, target_dcache_invalidate)
8710 (target_dcache_get, target_dcache_get_or_init)
8711 (_initialize_target_dcache): Update.
8712 * dcache.h (struct dcache_deleter): New.
8713
8714 2019-05-08 Tom Tromey <tom@tromey.com>
8715
8716 * symtab.c (struct symbol_cache): Add destructor and
8717 initializers.
8718 (symbol_cache_key): Move. Change type.
8719 (make_symbol_cache, free_symbol_cache): Remove.
8720 (get_symbol_cache): Update.
8721 (symbol_cache_cleanup): Remove.
8722 (ALL_PSPACES, symbol_cache_flush)
8723 (maintenance_print_symbol_cache)
8724 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8725 Update.
8726
8727 2019-05-08 Tom Tromey <tom@tromey.com>
8728
8729 * symtab.c (struct main_info): Add destructor and initializers.
8730 (main_progspace_key): Move. Change type.
8731 (get_main_info): Update.
8732 (main_info_cleanup): Remove.
8733 (_initialize_symtab): Update.
8734
8735 2019-05-08 Tom Tromey <tom@tromey.com>
8736
8737 * registry.h (DECLARE_REGISTRY): Define the _key class.
8738
8739 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8740
8741 * NEWS: Merge two 'New commands' sections.
8742
8743 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8744
8745 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8746 parameter and use Ada language definition instead.
8747 (ada_val_print_ptr): Remove unused language parameter.
8748 (ada_val_print_num): Remove language parameter and use Ada language
8749 definition instead.
8750 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8751 parameter.
8752 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8753 parameter and use Ada language definition instead.
8754 (ada_val_print_1): Update all ada_val_print_xxx calls.
8755 Remove language parameter.
8756 (ada_val_print): Update ada_val_print_1 call.
8757
8758 2019-05-08 Tom Tromey <tromey@adacore.com>
8759
8760 * remote.c (remote_hw_watchpoint_limit)
8761 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8762 Now static.
8763
8764 2019-05-08 Tom Tromey <tromey@adacore.com>
8765
8766 * maint.c (_initialize_maint_cmds): Move initialization code to
8767 remote.c.
8768 (watchdog, show_watchdog): Move to remote.c.
8769 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8770 "watchdog" static.
8771 (_initialize_remote): Move initialization code from maint.c.
8772 * defs.h (watchdog): Don't declare.
8773
8774 2019-05-08 Tom Tromey <tromey@adacore.com>
8775
8776 * tui/tui-interp.c: Include main.h.
8777 * interps.c: Include main.h.
8778 * main.h (interpreter_p): Declare.
8779 * defs.h (interpreter_p): Don't declare.
8780
8781 2019-05-08 Tom Tromey <tromey@adacore.com>
8782
8783 * dwarf2loc.c: Include dwarf2read.h.
8784 * defs.h (read_unsigned_leb128): Don't declare.
8785 * dwarf2read.h (read_unsigned_leb128): Declare.
8786
8787 2019-05-08 Tom Tromey <tromey@adacore.com>
8788
8789 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8790 method.
8791
8792 2019-05-08 Tom Tromey <tromey@adacore.com>
8793
8794 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8795 when no wrap column is set.
8796
8797 2019-05-08 Tom Tromey <tromey@adacore.com>
8798
8799 * c-lang.c (c_get_string): Handle non-C-style arrays.
8800
8801 2019-05-08 Tom Tromey <tromey@adacore.com>
8802
8803 * typeprint.c (print_offset_data::update): Print the bit offset,
8804 not the number of bits remaining.
8805
8806 2019-05-08 Tom Tromey <tromey@adacore.com>
8807
8808 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8809 padding at end of comment.
8810
8811 2019-05-08 Tom Tromey <tromey@adacore.com>
8812
8813 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8814 Compare main types.
8815
8816 2019-05-06 Tom Tromey <tom@tromey.com>
8817
8818 * common/scoped_mmap.c: Include common-defs.h.
8819 * common/scoped_mmap.h: Don't include config.h.
8820
8821 2019-05-04 Tom Tromey <tom@tromey.com>
8822
8823 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8824 (struct aarch64_call_info): Add initializers.
8825 <si>: Now a std::vector.
8826 (pass_on_stack, aarch64_push_dummy_call): Update.
8827
8828 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8829 Tom Tromey <tom@tromey.com>
8830
8831 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8832 (ppc_threads): Now a std::vector. Now static.
8833 (hwdebug_find_thread_points_by_tid)
8834 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8835 Update.
8836
8837 2019-05-04 Tom Tromey <tom@tromey.com>
8838
8839 * arc-tdep.c (arc_tdesc_init): Return bool.
8840
8841 2019-05-04 Tom Tromey <tom@tromey.com>
8842
8843 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8844 Use gdb_assert_not_reached.
8845
8846 2019-05-04 Tom Tromey <tom@tromey.com>
8847
8848 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8849 "false".
8850
8851 2019-05-04 Tom Tromey <tom@tromey.com>
8852
8853 * arc-tdep.c (arc_tdesc_init): Use bool.
8854
8855 2019-05-04 Tom Tromey <tom@tromey.com>
8856
8857 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8858
8859 2019-05-04 Tom Tromey <tom@tromey.com>
8860
8861 * cli/cli-cmds.c (valid_command_p): Return bool.
8862
8863 2019-05-04 Tom Tromey <tom@tromey.com>
8864
8865 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8866 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8867
8868 2019-05-04 Raul Tambre <raul@tambre.ee>
8869
8870 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8871 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8872 operator for comparison.
8873
8874 2019-05-04 Tom Tromey <tom@tromey.com>
8875
8876 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8877 (lookup_partial_symbol, print_partial_symbols)
8878 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8879 (psymbol_compare): Update.
8880 (add_psymbol_to_bcache): Clear the entire psymbol.
8881 (maintenance_check_psymtabs): Update.
8882 * psympriv.h (struct partial_symbol): Don't derive from
8883 general_symbol_info.
8884 <obj_section, unrelocated_address, address,
8885 set_unrelocated_address>: Update.
8886 <ginfo>: New member.
8887 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8888 (debug_names::write_psymbols): Update.
8889
8890 2019-05-04 Tom de Vries <tdevries@suse.de>
8891
8892 * contrib/cc-with-tweaks.sh: Support -n arg.
8893
8894 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8895
8896 * corelow.c (core_target::detach): Ensure frame cache and
8897 register caches are cleared.
8898 inferior.c (exit_inferior_1): Likewise.
8899
8900 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8901 Tom Tromey <tom@tromey.com>
8902
8903 * dictionary.c (collate_pending_symbols_by_language): Remove
8904 "struct" from foreach.
8905 * symtab.c (lookup_global_symbol_from_objfile)
8906 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8907 foreach.
8908 * ser-tcp.c (net_open): Remove "struct" from foreach.
8909 * objfiles.c (objfile_relocate, objfile_rebase)
8910 (objfile_has_symbols): Remove "struct" from foreach.
8911 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8912 from foreach.
8913 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8914 foreach.
8915 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8916 "struct" from foreach.
8917 * ada-lang.c (create_excep_cond_exprs)
8918 (ada_exception_catchpoint_cond_string): Remove "struct" from
8919 foreach.
8920
8921 2019-05-03 Tom Tromey <tromey@adacore.com>
8922
8923 * ada-exp.y (convert_char_literal): Check suffix of each
8924 enumerator.
8925
8926 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8927
8928 PR ada/21406:
8929 * ada-exp.y (yywrap): Don't define.
8930 * ada-lex.l (%option): Add noyywrap
8931 (yywrap): Remove.
8932
8933 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8934
8935 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8936 _WIN32_WINNT to the XP level, unless already defined to a higher
8937 level.
8938
8939 * unittests/parse-connection-spec-selftests.c:
8940 * ser-tcp.c:
8941 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8942 override.
8943
8944 * symfile.c (find_separate_debug_file): Remove colon from the
8945 drive spec of DOS/Windows file names of the target, so that the
8946 file name produced from DEBUGDIR and the target's directory will
8947 be valid on DOS/Windows systems.
8948
8949 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8950
8951 * rust-lang.c (val_print_struct): Handle printing structures
8952 containing strings.
8953
8954 2019-05-02 Tom Tromey <tromey@adacore.com>
8955
8956 * valarith.c (_initialize_valarith): Remove.
8957
8958 2019-05-01 Tom Tromey <tromey@adacore.com>
8959
8960 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8961 bitfields.
8962
8963 2019-05-01 Tom Tromey <tromey@adacore.com>
8964
8965 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8966 for big-endian copies.
8967
8968 2019-04-30 Ali Tamur <tamur@google.com>
8969 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8970 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8971 (read_3_bytes): New function.
8972
8973 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8974
8975 * windows-nat.c (main_thread_id): Delete.
8976 (handle_output_debug_string): Replace main_thread_id by
8977 current_event.dwThreadId.
8978 (fake_create_process): Likewise.
8979 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8980 Do not set main_thread_id.
8981 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8982 current_event.dwThreadId.
8983 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8984
8985 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8986
8987 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8988 Use current_event.dwThreadId instead of main_thread_id.
8989
8990 2019-04-30 Tom Tromey <tromey@adacore.com>
8991
8992 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8993 (create_excep_cond_exprs): Iterate over program spaces.
8994 (ada_exception_catchpoint_cond_string): Examine all minimal
8995 symbols for exception types.
8996
8997 2019-04-30 Tom Tromey <tromey@adacore.com>
8998
8999 PR c++/24470:
9000 * dwarf2read.c (process_structure_scope): Handle case where type
9001 has template parameters but no symbol was created.
9002
9003 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9004 Chris January <chris.january@arm.com>
9005
9006 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9007 qualifier.
9008 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9009
9010 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9011
9012 * f-typeprint.c (f_print_type): Update rules for printing
9013 whitespace.
9014 (f_type_print_varspec_suffix): Likewise.
9015
9016 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9017 Chris January <chris.january@arm.com>
9018
9019 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9020 function arguments.
9021
9022 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9023
9024 * f-lang.c (build_fortran_types): Change name of void type to
9025 lower case.
9026 * f-typeprint.c (f_type_print_base): Print the name of the void
9027 type, rather than a fixed string.
9028 * f-valprint.c (f_decorations): Use lower case void string.
9029
9030 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9031 Chris January <chris.january@arm.com>
9032
9033 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9034 types for Fortran.
9035
9036 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9037 Chris January <chris.january@arm.com>
9038 David Lecomber <david.lecomber@arm.com>
9039
9040 * f-exp.y (BINOP_INTRINSIC): New token.
9041 (exp): New parser rule handling BINOP_INTRINSIC.
9042 (f77_keywords): Add new builtin procedures.
9043 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9044 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9045 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9046 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9047 (print_unop_subexp_f): New function.
9048 (print_binop_subexp_f): New function.
9049 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9050 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9051 (dump_subexp_body_f): Likewise.
9052 (operator_check_f): Likewise.
9053 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9054 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9055
9056 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9059 UNOP_KIND.
9060 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9061 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9062 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9063 (operator_length_f): New fuction.
9064 (print_subexp_f): New function.
9065 (op_name_f): New function.
9066 (dump_subexp_body_f): New function.
9067 (operator_check_f): New function.
9068 (exp_descriptor_f): Replace standard expression handling functions
9069 with new functions.
9070 * gdb/fortran-operator.def: New file.
9071 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9072 * gdb/std-operator.def: Remove UNOP_KIND.
9073
9074 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * std-operator.def: Remove unbalanced, stray double quote
9077 character.
9078
9079 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9080 Chris January <chris.january@arm.com>
9081 Daniel Everett <daniel.everett@arm.com>
9082 Nick Forrington <nick.forrington@arm.com>
9083 Richard Bunt <richard.bunt@arm.com>
9084
9085 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9086 of depth when printing anonymous structs or unions.
9087 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9088 Don't print either the top-level value, or the children if the
9089 max-depth is exceeded.
9090 (ppscm_print_children): When printing the key of a map, allow one
9091 extra level of depth.
9092 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9093 print either the top-level value, or the children if the max-depth
9094 is exceeded.
9095 (print_children): When printing the key of a map, allow one extra
9096 level of depth.
9097 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9098 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9099 (user_print_options): Initialise max_depth field.
9100 (val_print_scalar_or_string_type_p): New function.
9101 (val_print): Check to see if the max depth has been reached.
9102 (val_print_check_max_depth): Define new function.
9103 (show_print_max_depth): New function.
9104 (_initialize_valprint): Add 'print max-depth' option.
9105 * valprint.h (struct value_print_options) <max_depth>: New field.
9106 (val_print_check_max_depth): Declare new function.
9107 * NEWS: Document new feature.
9108
9109 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9110
9111 * ada-lang.c (ada_language_defn): Initialise new field.
9112 * c-lang.c (c_is_string_type_p): New function.
9113 (c_language_defn): Initialise new field.
9114 (cplus_language_defn): Initialise new field.
9115 (asm_language_defn): Initialise new field.
9116 (minimal_language_defn): Initialise new field.
9117 * c-lang.h (c_is_string_type_p): Declare new function.
9118 * d-lang.c (d_language_defn): Initialise new field.
9119 * f-lang.c (f_is_string_type_p): New function.
9120 (f_language_defn): Initialise new field.
9121 * go-lang.c (go_is_string_type_p): New function.
9122 (go_language_defn): Initialise new field.
9123 * language.c (default_is_string_type_p): New function.
9124 (unknown_language_defn): Initialise new field.
9125 (auto_language_defn): Initialise new field.
9126 * language.h (struct language_defn) <la_is_string_type_p>: New
9127 member variable.
9128 (default_is_string_type_p): Declare new function.
9129 * m2-lang.c (m2_language_defn): Initialise new field.
9130 * objc-lang.c (objc_language_defn): Initialise new field.
9131 * opencl-lang.c (opencl_language_defn): Initialise new field.
9132 * p-lang.c (pascal_is_string_type_p): New function.
9133 (pascal_language_defn): Initialise new field.
9134 * rust-lang.c (rust_is_string_type_p): New function.
9135 (rust_language_defn): Initialise new field.
9136
9137 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9138
9139 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9140 New field.
9141 * ada-lang.c (ada_language_defn): Initialise new field.
9142 * c-lang.c (c_language_defn): Likewise.
9143 (cplus_language_defn): Likewise.
9144 (asm_language_defn): Likewise.
9145 (minimal_language_defn): Likewise.
9146 * d-lang.c (d_language_defn): Likewise.
9147 * f-lang.c (f_language_defn): Likewise.
9148 * go-lang.c (go_language_defn): Likewise.
9149 * language.c (unknown_language_defn): Likewise.
9150 (auto_language_defn): Likewise.
9151 * m2-lang.c (m2_language_defn): Likewise.
9152 * objc-lang.c (objc_language_defn): Likewise.
9153 * opencl-lang.c (opencl_language_defn): Likewise.
9154 * p-lang.c (pascal_language_defn): Likewise.
9155 * rust-lang.c (rust_language_defn): Likewise.
9156
9157 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9158
9159 * ada-lang.c (ada_is_character_type): Change return type to bool.
9160 (ada_is_string_type): Likewise.
9161 * ada-lang.h (ada_is_character_type): Update declaration
9162 (ada_is_string_type): Likewise.
9163
9164 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9165
9166 Support style in 'frame|thread apply'
9167
9168 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9169 * record.c (record_start, record_stop): Update callers of
9170 execute_command_to_string with false.
9171 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9172 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9173 methods.
9174 (class string_file): New constructor with term_out parameter.
9175 Override methods term_out and can_emit_style_escape. New member
9176 term_out.
9177 (class stdio_file): Override can_emit_style_escape.
9178 (class tee_file): Override term_out and can_emit_style_escape.
9179 * utils.h (can_emit_style_escape): Remove.
9180 * utils.c (can_emit_style_escape): Likewise.
9181 Update all callers of can_emit_style_escape (SOMESTREAM) to
9182 SOMESTREAM->can_emit_style_escape.
9183 * source-cache.c (source_cache::get_source_lines): Likewise.
9184 * stack.c (frame_apply_command_count): Call execute_command_to_string
9185 passing the term_out characteristic of the current gdb_stdout.
9186 * thread.c (thr_try_catch_cmd): Likewise.
9187 * top.c (execute_command_to_string): pass term_out parameter
9188 to construct the string_file for the command output.
9189 * ui-file.c (term_cli_styling): New function (most code moved
9190 from utils.c can_emit_style_escape).
9191 (string_file::string_file, string_file::can_emit_style_escape,
9192 stdio_file::can_emit_style_escape, tee_file::term_out,
9193 tee_file::can_emit_style_escape): New functions.
9194
9195 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9196
9197 * NEWS: Mention the new set|show may-call-functions.
9198 * infcall.c (may_call_functions_p): New variable.
9199 (show_may_call_functions_p): New function.
9200 (call_function_by_hand_dummy): Throws an error if not
9201 may-call-functions.
9202 (_initialize_infcall): Call add_setshow_boolean_cmd for
9203 may-call-functions.
9204
9205 2019-04-25 Keith Seitz <keiths@redhat.com>
9206
9207 PR c++/24367
9208 * cp-support.c (inspect_type): Don't attempt substitutions
9209 of symbol with the same name.
9210
9211 2019-04-25 Tom Tromey <tromey@adacore.com>
9212
9213 PR gdb/24475:
9214 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9215 static.
9216
9217 2019-04-25 Tom Tromey <tromey@adacore.com>
9218
9219 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9220 rvalue reference.
9221 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9222 (gdb_xml_parser::parse): Use std::move.
9223 * python/python-internal.h (gdbpy_convert_exception): Take a const
9224 reference.
9225 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9226 std::move.
9227 * python/py-utils.c (gdbpy_convert_exception): Take a const
9228 reference.
9229 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9230 Use std::move.
9231 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9232 Use std::move.
9233 * mi/mi-main.c (mi_print_exception): Take a const reference.
9234 * main.c (handle_command_errors): Take a const reference.
9235 * linespec.c (parse_linespec): Use std::move.
9236 * infcall.c (run_inferior_call): Use std::move.
9237 (call_function_by_hand_dummy): Use std::move.
9238 * exec.c (try_open_exec_file): Use std::move.
9239 * exceptions.h (exception_print, exception_fprintf)
9240 (exception_print_same): Update.
9241 * exceptions.c (print_exception, exception_print)
9242 (exception_fprintf, exception_print_same): Change parameters to
9243 const reference.
9244 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9245 * common/new-op.c: Use std::move.
9246 * common/common-exceptions.h (struct gdb_exception): Add move
9247 constructor.
9248 (struct gdb_exception_error, struct gdb_exception_quit, struct
9249 gdb_quit_bad_alloc): Change constructor to move constructor.
9250 (throw_exception): Change parameter to rvalue reference.
9251 * common/common-exceptions.c (throw_exception): Take rvalue
9252 reference.
9253 * cli/cli-interp.c (safe_execute_command): Use std::move.
9254 * breakpoint.c (insert_bp_location, location_to_sals): Use
9255 std::move.
9256
9257 2019-04-25 Tom Tromey <tromey@adacore.com>
9258
9259 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9260 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9261 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9262 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9263 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9264 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9265 guile/scm-value.c: Use unpack.
9266 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9267 gdbscm_gdb_exception.
9268 (gdbscm_throw_gdb_exception): Likewise.
9269 (struct gdbscm_gdb_exception): New.
9270 (unpack): New function.
9271 (gdbscm_wrap): Use unpack.
9272
9273 2019-04-25 Tom Tromey <tromey@adacore.com>
9274
9275 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9276 (gdb_rl_callback_handler): Use std::move.
9277 * common/common-exceptions.h (struct gdb_exception): Add move
9278 assignment operator.
9279 (throw_exception_sjlj): Change "exception" to const reference.
9280 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9281 (throw_exception_sjlj): Change "exception" to const reference.
9282
9283 2019-04-25 Tom Tromey <tromey@adacore.com>
9284
9285 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9286 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9287 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9288 Update.
9289 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9290 Update.
9291 * mi/mi-interp.c (mi_interp::exec): Update.
9292 * linespec.c (parse_linespec): Update.
9293 * infcall.c (run_inferior_call): Update.
9294 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9295 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9296 (gdbscm_lookup_global_symbol): Update.
9297 * guile/scm-param.c (gdbscm_parameter_value): Update.
9298 * guile/scm-frame.c (gdbscm_frame_read_register)
9299 (gdbscm_frame_read_var): Update.
9300 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9301 * exec.c (try_open_exec_file): Update.
9302 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9303 (gdb_rl_callback_handler): Update.
9304 * common/common-exceptions.h (exception_none): Don't declare.
9305 * common/common-exceptions.c (exception_none): Don't define.
9306 (struct catcher) <exception>: Update.
9307 * cli/cli-interp.c (safe_execute_command): Update.
9308 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9309
9310 2019-04-25 Ali Tamur <tamur@google.com>
9311
9312 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9313 (read_attribute_value): Likewise.
9314 (dwarf2_read_addr_index): Update comment.
9315 (read_str_index): Add DW_FORM_strx.
9316 (dwarf2_string_attr): Likewise.
9317 (dwarf2_const_value_attr): Likewise.
9318 (dump_die_shallow): Likewise.
9319 (dwarf2_fetch_constant_bytes): Likewise.
9320 (skip_form_bytes): Likewise.
9321 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9322
9323 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9324
9325 PR corefiles/11608
9326 PR corefiles/18187
9327 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9328 OFFSET. Verify if current mapping contains an ELF header.
9329 (linux_find_memory_regions_full): Adjust call to
9330 dump_mapping_p.
9331
9332 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9333 Kang Li <kanglictf@gmail.com>
9334
9335 PR gdb/21600
9336
9337 * dwarf2-frame.c (read_initial_length): Be consistent about using
9338 unsigned representation of length.
9339 (decode_frame_entry_1): Likewise. Check for wraparound of
9340 end pointer as well as buffer overflow.
9341
9342 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9343
9344 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9345 "vq".
9346
9347 2019-04-24 Tom Tromey <tromey@adacore.com>
9348
9349 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9350
9351 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9352
9353 * s12z-tdep.c (s12z_unwind_pc): Delete.
9354 (s12z_unwind_sp): Delete.
9355 (s12z_gdbarch_init): Don't register deleted functions with
9356 gdbarch.
9357
9358 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9359
9360 * rl78-tdep.c (rl78_unwind_sp): Delete.
9361 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9362
9363 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9364
9365 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9366 (xstormy16_unwind_pc): Delete.
9367 (xstormy16_dummy_id): Delete.
9368 (xstormy16_gdbarch_init): Don't register deleted functions with
9369 gdbarch.
9370
9371 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 * vax-tdep.c (vax_unwind_pc): Delete.
9374 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9375
9376 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 * v850-tdep.c (v850_unwind_sp): Delete.
9379 (v850_unwind_pc): Delete.
9380 (v850_dummy_id): Delete.
9381 (v850_gdbarch_init): Don't register deleted functions with
9382 gdbarch.
9383
9384 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9385
9386 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9387 (tilegx_unwind_pc): Delete.
9388 (tilegx_unwind_dummy_id): Delete.
9389 (tilegx_gdbarch_init): Don't register deleted functions with
9390 gdbarch.
9391
9392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9393
9394 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9395 (tic6x_dummy_id): Delete.
9396 (tic6x_gdbarch_init): Don't register deleted functions with
9397 gdbarch.
9398
9399 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9400
9401 * sparc-tdep.c (sparc_unwind_pc): Delete.
9402 (sparc32_gdbarch_init): Don't register deleted function with
9403 gdbarch.
9404
9405 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9406
9407 * sh-tdep.c (sh_unwind_sp): Delete.
9408 (sh_unwind_pc): Delete.
9409 (sh_dummy_id): Delete.
9410 (sh_gdbarch_init): Don't register deleted functions with
9411 gdbarch.
9412
9413 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * score-tdep.c (score_unwind_sp): Delete.
9416 (score_unwind_pc): Delete.
9417 (score_dummy_id): Delete.
9418 (score_gdbarch_init): Don't register deleted functions with
9419 gdbarch.
9420
9421 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9422
9423 * rx-tdep.c (rx_unwind_pc): Delete.
9424 (rx_unwind_sp): Delete.
9425 (rx_dummy_id): Delete.
9426 (rx_gdbarch_init): Don't register deleted functions with
9427 gdbarch. Update comment.
9428
9429 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9430
9431 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9432 (rs6000_dummy_id): Delete.
9433 (rs6000_gdbarch_init): Don't register deleted functions with
9434 gdbarch.
9435
9436 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9437
9438 * or1k-tdep.c (or1k_dummy_id): Delete.
9439 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9440
9441 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9442
9443 * nios2-tdep.c (nios2_dummy_id): Delete.
9444 (nios2_unwind_sp): Delete.
9445 (nios2_gdbarch_init): Don't register deleted functions with
9446 gdbarch.
9447
9448 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9449
9450 * nds32-tdep.c (nds32_dummy_id): Delete.
9451 (nds32_unwind_pc): Delete.
9452 (nds32_unwind_sp): Delete.
9453 (nds32_gdbarch_init): Don't register deleted functions with
9454 gdbarch.
9455
9456 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9457
9458 * msp430-tdep.c (msp430_unwind_pc): Delete.
9459 (msp430_unwind_sp): Delete.
9460 (msp430_dummy_id): Delete.
9461 (msp430_gdbarch_init): Don't register deleted functions with
9462 gdbarch.
9463
9464 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9465
9466 * moxie-tdep.c (moxie_unwind_sp): Delete.
9467 (moxie_unwind_pc): Delete.
9468 (moxie_dummy_id): Delete.
9469 (moxie_gdbarch_init): Don't register deleted functions with
9470 gdbarch.
9471
9472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9475 (mn10300_unwind_pc): Delete.
9476 (mn10300_unwind_sp): Delete.
9477 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9478 mn10300_unwind_sp.
9479 (mn10300_frame_unwind_init): Don't register deleted functions with
9480 gdbarch.
9481
9482 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9483
9484 * mep-tdep.c (mep_unwind_pc): Delete.
9485 (mep_unwind_sp): Delete.
9486 (mep_dummy_id): Delete.
9487 (mep_gdbarch_init): Don't register deleted functions with
9488 gdbarch.
9489
9490 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9491
9492 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9493 (m68hc11_unwind_sp): Delete.
9494 (m68hc11_gdbarch_init): Don't register deleted functions with
9495 gdbarch.
9496
9497 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9498
9499 * m32r-tdep.c (m32r_unwind_sp): Delete.
9500 (m32r_unwind_pc): Delete.
9501 (m32r_dummy_id): Delete.
9502 (m32r_gdbarch_init): Don't register deleted functions with
9503 gdbarch.
9504
9505 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9506
9507 * m32c-tdep.c (m32c_unwind_pc): Delete.
9508 (m32c_unwind_sp): Delete.
9509 (m32c_dummy_id): Delete.
9510 (m32c_gdbarch_init): Don't register deleted functions with
9511 gdbarch.
9512
9513 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9514
9515 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9516 (lm32_unwind_pc): Delete.
9517 (lm32_dummy_id): Delete.
9518 (lm32_gdbarch_init): Don't register deleted functions with
9519 gdbarch.
9520
9521 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9524 (iq2000_unwind_pc): Delete.
9525 (iq2000_dummy_id): Delete.
9526 (iq2000_gdbarch_init): Don't register deleted functions with
9527 gdbarch.
9528
9529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9530
9531 * nds32-tdep.c (nds32_type_align): Delete.
9532 (nds32_push_dummy_call): Use type_align instead.
9533
9534 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9535
9536 * arm-tdep.c (arm_type_align): Only handle vector override case.
9537 (arm_push_dummy_call): Use type_align.
9538 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9539
9540 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9541
9542 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9543 case.
9544 (pass_on_stack): Use type_align.
9545 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9546 function.
9547
9548 2019-04-23 Tom Tromey <tromey@adacore.com>
9549
9550 * dwarf2read.c (line_header::file_name_at): Remove unused
9551 overload.
9552
9553 2019-04-23 Tom de Vries <tdevries@suse.de>
9554
9555 PR gdb/24438
9556 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9557 invocation.
9558
9559
9560 2019-03-27 Ali Tamur <tamur@google.com>
9561
9562 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9563 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9564 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9565 (dwarf_expr_context::get_addr_index): Likewise
9566 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9567 (symbol_needs_eval_context::get_addr_index): Likewise
9568 (disassemble_dwarf_expression): Add DW_OP_addrx
9569 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9570 (read_cutu_die_from_dwo): Update comment
9571 (skip_one_die): Add DW_FORM_addrx
9572 (read_attribute_value): Likewise
9573 (var_decode_location): Add DW_OP_addrx
9574 (dwarf2_const_value_attr): Add DW_FORM_addrx
9575 (dump_die_shallow): Likewise
9576 (dwarf2_fetch_constant_bytes): Likewise
9577 (decode_locdesc): Add DW_OP_addrx
9578 (skip_form_bytes): Add DW_FORM_addrx
9579
9580 2019-04-22 Ali Tamur <tamur@google.com>
9581
9582 * MAINTAINERS (Write After Approval): Add self.
9583
9584 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9587 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9588 (open_symbol_file_object): Likewise.
9589 (svr4_default_sos): Add info parameter.
9590 (svr4_read_so_list): Likewise.
9591 (svr4_current_sos_direct): Adjust functions calls to pass down
9592 info.
9593 (svr4_current_sos_1): Add info parameter.
9594 (svr4_current_sos): Call get_svr4_info, pass info down to
9595 svr4_current_sos_1.
9596 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9597 get_svr4_info.
9598 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9599 get_svr4_info.
9600 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9601 to get_svr4_info.
9602 (probes_table_remove_objfile_probes): Likewise.
9603 (register_solib_event_probe): Add info parameter.
9604 (solist_update_incremental): Pass info parameter down to
9605 svr4_read_so_list.
9606 (disable_probes_interface): Add info parameter.
9607 (svr4_handle_solib_event): Pass current_program_space to
9608 get_svr4_info. Adjust disable_probes_interface cleanup.
9609 (svr4_create_probe_breakpoints): Add info parameter, pass it
9610 down to register_solib_event_probe.
9611 (svr4_create_solib_event_breakpoints): Add info parameter,
9612 pass it down to svr4_create_probe_breakpoints.
9613 (enable_break): Pass info down to
9614 svr4_create_solib_event_breakpoints.
9615 (svr4_solib_create_inferior_hook): Pass current_program_space to
9616 get_svr4_info.
9617 (svr4_clear_solib): Likewise.
9618
9619 2019-04-22 Pedro Alves <palves@redhat.com>
9620
9621 * solib-svr4.c (svr4_free_objfile_observer): New.
9622 (probe_and_action::objfile): New field.
9623 (probes_table_htab_remove_objfile_probes)
9624 (probes_table_remove_objfile_probes): New functions.
9625 (register_solib_event_probe): Add 'objfile' parameter. Store it
9626 in the new probe_and_action. Don't store the probe in 'lookup'.
9627 (svr4_create_probe_breakpoints): Pass objfile to
9628 register_solib_event_probe.
9629 (_initialize_svr4_solib): Register a free_objfile observer.
9630
9631 2019-04-19 Tom Tromey <tom@tromey.com>
9632
9633 * common/queue.h: Remove.
9634
9635 2019-04-19 Tom Tromey <tom@tromey.com>
9636
9637 * event-loop.c: Don't include "common/queue.h".
9638
9639 2019-04-19 Tom Tromey <tom@tromey.com>
9640
9641 * remote.c (remote_target): Use delete.
9642 * remote-notif.h: Include <list>, not "common/queue.h".
9643 (notif_client_p): Remove typedef.
9644 (remote_notif_state): Add constructor, destructor, initializer.
9645 <notif_queue>: Now a std::list.
9646 (remote_notif_state_xfree): Don't declare.
9647 * remote-notif.c (remote_notif_process, handle_notification)
9648 (remote_notif_state_allocate): Update.
9649 (~remote_notif_state): Rename from remote_notif_state_xfree.
9650
9651 2019-04-19 Tom Tromey <tom@tromey.com>
9652
9653 * symfile.c (reread_symbols): Update.
9654 * objfiles.c (objfile_register_static_link)
9655 (objfile_lookup_static_link): Update
9656 (~objfile) Don't delete static_links.
9657 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9658
9659 2019-04-19 Tom Tromey <tom@tromey.com>
9660
9661 * type-stack.h (struct type_stack) <insert>: Constify string.
9662 * type-stack.c (type_stack::insert): Constify string.
9663 * gdbtypes.h (lookup_template_type): Update.
9664 (address_space_name_to_int): Update.
9665 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9666 const.
9667 (lookup_template_type): Make name const.
9668 * c-exp.y: Update rules.
9669 (lex_one_token, classify_name, classify_inner_name)
9670 (c_print_token): Update.
9671 * p-exp.y: Update rules.
9672 (yylex): Update.
9673 * f-exp.y: Update rules.
9674 (yylex): Update.
9675 * d-exp.y: Update rules.
9676 (lex_one_token, classify_name, classify_inner_name): Update.
9677 * parse.c (write_dollar_variable, copy_name): Return std::string.
9678 * parser-defs.h (copy_name): Change return type.
9679 * m2-exp.y: Update rules.
9680 (yylex): Update.
9681 * go-exp.y (lex_one_token): Update.
9682 Update rules.
9683 (classify_unsafe_function, classify_packaged_name)
9684 (classify_name, yylex): Update.
9685
9686 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9687
9688 * configure.ac: add --enable-source-highlight switch.
9689 * configure: Regenerate.
9690 * top.c (print_gdb_version): plumb --enable-source-highlight
9691 status to "show configuration".
9692
9693 2019-04-19 Tom Tromey <tromey@adacore.com>
9694
9695 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9696 Check ADA_TYPE_P.
9697 (empty_record, ada_template_to_fixed_record_type_1)
9698 (template_to_static_fixed_type)
9699 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9700 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9701 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9702 macros.
9703
9704 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9705
9706 PR symtab/24423:
9707 * source.c (print_source_lines_base): Advance "iter" when a
9708 control character is seen.
9709
9710 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9711
9712 * inferior.h (struct infcall_suspend_state_deleter):
9713 Catch exception in destructor to avoid crash.
9714
9715 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9716
9717 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9718 close to the add_com "shell".
9719
9720 2019-04-18 Tom Tromey <tromey@adacore.com>
9721
9722 * process-stratum-target.h (class process_stratum_target)
9723 <stratum>: Add "final".
9724
9725 2019-04-17 Tom Tromey <tromey@adacore.com>
9726
9727 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9728 against nullptr before use.
9729
9730 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9731
9732 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9733
9734 2019-04-17 Jim Wilson <jimw@sifive.com>
9735 Andrew Burgess <andrew.burgess@embecosm.com>
9736
9737 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9738 code read might fail, assume 4-byte breakpoint in that case.
9739
9740 2019-04-15 Leszek Swirski <leszeks@google.com>
9741
9742 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9743 rather than a hand-rolled POD check when checking for forced MEMORY
9744 classification.
9745
9746 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9747
9748 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9749 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9750 function.
9751 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9752 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9753 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9754 declaration.
9755
9756 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9757
9758 * aarch64-linux-nat.c
9759 (aarch64_linux_nat_target::thread_architecture): Add override.
9760 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9761 each VQ.
9762
9763 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9764
9765 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9766
9767 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9768
9769 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9770 target types of size 96-bits, add some additional comments, and
9771 check that the builtin type we found was the correct size.
9772
9773 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9774
9775 * utils.c (prompt_for_continue): Don't restore the styling at the
9776 end, as applied_style has the wrong value. This fixes styling in
9777 long lists of file names that are interrupted by the "Continue?"
9778 prompt.
9779
9780 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9781
9782 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9783 * c-lang.c (c_language_defn): Likewise.
9784 (cplus_language_defn): Likewise.
9785 (asm_language_defn): Likewise.
9786 (minimal_language_defn): Likewise.
9787 * d-lang.c (d_language_defn): Likewise.
9788 * f-lang.c (f_language_defn): Likewise.
9789 * go-lang.c (go_language_defn): Likewise.
9790 * language.c (unknown_language_defn): Likewise.
9791 (auto_language_defn): Likewise.
9792 * language.h (struct language_defn): Remove la_magic field.
9793 (LANG_MAGIC): Delete.
9794 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9795 * objc-lang.c (objc_language_defn): Likewise.
9796 * opencl-lang.c (opencl_language_defn): Likewise.
9797 * p-lang.c (pascal_language_defn): Likewise.
9798 * rust-lang.c (rust_language_defn): Likewise.
9799
9800 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9801
9802 * riscv-tdep.c (riscv_type_align): New function.
9803 (riscv_type_alignment): Delete.
9804 (riscv_arg_location): Use 'type_align'.
9805 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9806
9807 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9808
9809 * gdbtypes.c (type_align): A struct with no non-static fields also
9810 has alignment of 1.
9811
9812 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9813
9814 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9815 component to 0.
9816 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9817 member.
9818 (riscv_struct_info::analyse): New implementation using new
9819 analyse_inner member function.
9820 (riscv_struct_info::field_offset): New member function.
9821 (riscv_struct_info::m_offsets): New member variable.
9822 (riscv_struct_info::analyse_inner): New private member function,
9823 takes the old implementation of riscv_struct_info::analyse but
9824 extended to track field offsets.
9825 (riscv_call_arg_struct): Update the struct folding special cases
9826 to handle cases where empty C++ structs, which are non-zero
9827 length, are found.
9828 (riscv_arg_location): Initialise the length of each location, a
9829 non-zero length now indicates the location is in use.
9830 (riscv_push_dummy_call): Allow for the first location having a
9831 non-zero offset when setting up arguments.
9832 (riscv_return_value): Likewise, but for return values.
9833
9834 2019-04-11 Tom Tromey <tromey@adacore.com>
9835
9836 * utils.c (internal_vproblem): Make "msg" const.
9837
9838 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9839
9840 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9841 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9842 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9843 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9844
9845 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9846
9847 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9848 function.
9849 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9850 of amd64_collect_native_gregset.
9851 (amd64_linux_nat_target::store_registers): Likewise.
9852
9853 2019-04-10 Tom Tromey <tom@tromey.com>
9854
9855 * symtab.c (lookup_global_symbol_from_objfile)
9856 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9857 * objfiles.h (class separate_debug_iterator): New.
9858 (class separate_debug_range): New.
9859 (struct objfile) <separate_debug_objfiles>: New method.
9860 (objfile_separate_debug_iterate): Don't declare.
9861 * objfiles.c (separate_debug_iterator::operator++): Rename from
9862 objfile_separate_debug_iterate.
9863 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9864 iterator.
9865 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9866 iterator.
9867
9868 2019-04-10 Tom Tromey <tom@tromey.com>
9869
9870 * symfile.c (reread_symbols): Remove old comment.
9871 * objfiles.c (free_all_objfiles): Fix a typo.
9872
9873 2019-04-10 Tom Tromey <tom@tromey.com>
9874
9875 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9876 * minsyms.c (lookup_minimal_symbol): Use foreach.
9877 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9878 (lookup_minimal_symbol_solib_trampoline): Likewise.
9879 * symfile.c (reread_symbols): Use foreach.
9880
9881 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9882 Tom Tromey <tromey@adacore.com>
9883
9884 PR rust/24414:
9885 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9886 (rust_lex_int_test): Change "value" to be LONGEST.
9887 (rust_lex_tests): Add test for long integer literal.
9888
9889 2019-04-09 Tom Tromey <tromey@adacore.com>
9890
9891 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9892 to bool.
9893 (extended_remote_target::attach): Update.
9894 (remote_target::remote_notice_new_inferior): Update.
9895 (remote_target::add_current_inferior_and_thread): Update.
9896 * inferior.c (exit_inferior_1): Use "false".
9897 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9898
9899 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9900
9901 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9902 the "start" command.
9903
9904 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9905
9906 * python/py-inferior.c (infpy_thread_from_thread_handle):
9907 Adjust comments to reflect renaming of thread_from_thread_handle
9908 to thread_from_handle. Adjust keywords. Fix type error message.
9909 (inferior_object_methods): Add thread_from_handle. Retain
9910 thread_from_thread_handle, but mark it as deprecated.
9911
9912 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9913
9914 * gdbthread.h (find_thread_by_handle): Revise declaration.
9915 * thread.c (find_thread_by_handle): Likewise. Adjust
9916 implementation too.
9917 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9918 support for buffer objects as handles.
9919
9920 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9921
9922 * python/py-infthread.c (thpy_thread_handle): New function.
9923 (thread_object_methods): Register thpy_thread_handle.
9924
9925 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9926
9927 * gdbthread.h (thread_to_thread_handle): Declare.
9928 * thread.c (gdbtypes.h): Include.
9929 (thread_to_thread_handle): New function.
9930
9931 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9932 (target_thread_info_to_thread_handle): Declare.
9933 * target.c (target_thread_info_to_thread_handle): New function.
9934 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9935 * target-delegates.c: Regenerate.
9936
9937 * linux-thread-db.c (class thread_db_target): Add method
9938 thread_info_to_thread_handle.
9939 (thread_db_target::thread_info_to_thread_handle): Define.
9940 * remote.c (class remote_target): Add new method
9941 thread_info_to_thread_handle.
9942 (remote_target::thread_info_to_thread_handle): Define.
9943
9944 2019-04-08 Pedro Alves <palves@redhat.com>
9945
9946 * common/common-exceptions.c (throw_exception): Don't create
9947 named object to throw; throw directly.
9948 (throw_it): Likewise. Don't initialize gdb_exception::message
9949 here, with new; pass FMT and AP to the ctor instead.
9950 * common/common-exceptions.h: Include <string>.
9951 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9952 const char *, va_list)): New ctor. Use std::make_shared.
9953 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9954 errors)): Delete.
9955 (gdb_exception_error::gdb_exception_error(enum errors, const char
9956 *, va_list)): New.
9957 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9958 Add assertion.
9959 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9960 errors)): Delete.
9961 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9962 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9963 Add assertion.
9964
9965 2019-04-08 Tom Tromey <tom@tromey.com>
9966
9967 * valops.c (value_rtti_indirect_type): Replace throw_exception
9968 with throw.
9969 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9970 with throw.
9971 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9972 throw.
9973 * target.c (target_translate_tls_address): Replace throw_exception
9974 with throw.
9975 * stack.c (frame_apply_command_count): Replace throw_exception
9976 with throw.
9977 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9978 throw.
9979 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9980 with throw.
9981 * rs6000-tdep.c (rs6000_frame_cache)
9982 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9983 * remote.c: Replace throw_exception with throw.
9984 * record-full.c (record_full_message, record_full_wait_1)
9985 (record_full_restore): Replace throw_exception with throw.
9986 * record-btrace.c:
9987 (get_thread_current_frame_id, record_btrace_start_replaying)
9988 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9989 (cmd_record_btrace_start): Replace throw_exception with throw.
9990 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9991 throw.
9992 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9993 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9994 * linespec.c:
9995 (find_linespec_symbols): Replace throw_exception with throw.
9996 * infrun.c (displaced_step_prepare, resume): Replace
9997 throw_exception with throw.
9998 * infcmd.c (post_create_inferior): Replace throw_exception with
9999 throw.
10000 * inf-loop.c (inferior_event_handler): Replace throw_exception
10001 with throw.
10002 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10003 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10004 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10005 (get_prev_frame_always, get_frame_pc_if_available)
10006 (get_frame_address_in_block_if_available, get_frame_language):
10007 Replace throw_exception with throw.
10008 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10009 throw_exception with throw.
10010 * eval.c (fetch_subexp_value, evaluate_var_value)
10011 (evaluate_funcall, evaluate_subexp_standard): Replace
10012 throw_exception with throw.
10013 * dwarf2loc.c (call_site_find_chain)
10014 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10015 Replace throw_exception with throw.
10016 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10017 with throw.
10018 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10019 throw.
10020 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10021 * completer.c (complete_line_internal): Replace throw_exception
10022 with throw.
10023 * compile/compile-object-run.c (compile_object_run): Replace
10024 throw_exception with throw.
10025 * cli/cli-script.c (process_next_line): Replace throw_exception
10026 with throw.
10027 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10028 (btrace_enable, btrace_maint_update_pt_packets): Replace
10029 throw_exception with throw.
10030 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10031 throw_exception with throw.
10032 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10033 throw_exception with throw.
10034 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10035 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10036 * aarch64-tdep.c (aarch64_make_prologue_cache)
10037 (aarch64_make_stub_cache): Replace throw_exception with throw.
10038
10039 2019-04-08 Tom Tromey <tom@tromey.com>
10040
10041 * common/common-exceptions.c (throw_exception): Rename from
10042 throw_exception_cxx. Remove old copy. Make argument const.
10043 (throw_it): Create and throw exception objects directly.
10044 * common/common-exceptions.h (throw_exception): Make argument
10045 const.
10046 (struct gdb_exception_error): Add constructor.
10047 (struct gdb_exception_quit): Add constructor.
10048
10049 2019-04-08 Tom Tromey <tom@tromey.com>
10050
10051 * common/common-exceptions.h (exception_rethrow): Don't declare.
10052 (TRY_SJLJ): Update comment.
10053 (TRY, CATCH, END_CATCH): Remove.
10054 * common/common-exceptions.c (exception_rethrow): Remove.
10055
10056 2019-04-08 Tom Tromey <tom@tromey.com>
10057
10058 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10059 Remove.
10060 (gdb_exception_error): Rename from
10061 gdb_exception_RETURN_MASK_ERROR.
10062 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10063 (gdb_quit_bad_alloc): Update.
10064 * aarch64-tdep.c: Update.
10065 * ada-lang.c: Update.
10066 * ada-typeprint.c: Update.
10067 * ada-valprint.c: Update.
10068 * amd64-tdep.c: Update.
10069 * arch-utils.c: Update.
10070 * break-catch-throw.c: Update.
10071 * breakpoint.c: Update.
10072 * btrace.c: Update.
10073 * c-varobj.c: Update.
10074 * cli/cli-cmds.c: Update.
10075 * cli/cli-interp.c: Update.
10076 * cli/cli-script.c: Update.
10077 * common/common-exceptions.c: Update.
10078 * common/new-op.c: Update.
10079 * common/selftest.c: Update.
10080 * compile/compile-c-symbols.c: Update.
10081 * compile/compile-cplus-symbols.c: Update.
10082 * compile/compile-object-load.c: Update.
10083 * compile/compile-object-run.c: Update.
10084 * completer.c: Update.
10085 * corelow.c: Update.
10086 * cp-abi.c: Update.
10087 * cp-support.c: Update.
10088 * cp-valprint.c: Update.
10089 * darwin-nat.c: Update.
10090 * disasm-selftests.c: Update.
10091 * dtrace-probe.c: Update.
10092 * dwarf-index-cache.c: Update.
10093 * dwarf-index-write.c: Update.
10094 * dwarf2-frame-tailcall.c: Update.
10095 * dwarf2-frame.c: Update.
10096 * dwarf2loc.c: Update.
10097 * dwarf2read.c: Update.
10098 * eval.c: Update.
10099 * event-loop.c: Update.
10100 * event-top.c: Update.
10101 * exec.c: Update.
10102 * f-valprint.c: Update.
10103 * fbsd-tdep.c: Update.
10104 * frame-unwind.c: Update.
10105 * frame.c: Update.
10106 * gdbtypes.c: Update.
10107 * gnu-v3-abi.c: Update.
10108 * guile/guile-internal.h: Update.
10109 * guile/scm-block.c: Update.
10110 * guile/scm-breakpoint.c: Update.
10111 * guile/scm-cmd.c: Update.
10112 * guile/scm-disasm.c: Update.
10113 * guile/scm-frame.c: Update.
10114 * guile/scm-lazy-string.c: Update.
10115 * guile/scm-math.c: Update.
10116 * guile/scm-param.c: Update.
10117 * guile/scm-ports.c: Update.
10118 * guile/scm-pretty-print.c: Update.
10119 * guile/scm-symbol.c: Update.
10120 * guile/scm-symtab.c: Update.
10121 * guile/scm-type.c: Update.
10122 * guile/scm-value.c: Update.
10123 * i386-linux-tdep.c: Update.
10124 * i386-tdep.c: Update.
10125 * inf-loop.c: Update.
10126 * infcall.c: Update.
10127 * infcmd.c: Update.
10128 * infrun.c: Update.
10129 * jit.c: Update.
10130 * language.c: Update.
10131 * linespec.c: Update.
10132 * linux-fork.c: Update.
10133 * linux-nat.c: Update.
10134 * linux-tdep.c: Update.
10135 * linux-thread-db.c: Update.
10136 * main.c: Update.
10137 * mi/mi-cmd-break.c: Update.
10138 * mi/mi-cmd-stack.c: Update.
10139 * mi/mi-interp.c: Update.
10140 * mi/mi-main.c: Update.
10141 * objc-lang.c: Update.
10142 * p-valprint.c: Update.
10143 * parse.c: Update.
10144 * ppc-linux-tdep.c: Update.
10145 * printcmd.c: Update.
10146 * python/py-arch.c: Update.
10147 * python/py-breakpoint.c: Update.
10148 * python/py-cmd.c: Update.
10149 * python/py-finishbreakpoint.c: Update.
10150 * python/py-frame.c: Update.
10151 * python/py-framefilter.c: Update.
10152 * python/py-gdb-readline.c: Update.
10153 * python/py-inferior.c: Update.
10154 * python/py-infthread.c: Update.
10155 * python/py-lazy-string.c: Update.
10156 * python/py-linetable.c: Update.
10157 * python/py-objfile.c: Update.
10158 * python/py-param.c: Update.
10159 * python/py-prettyprint.c: Update.
10160 * python/py-progspace.c: Update.
10161 * python/py-record-btrace.c: Update.
10162 * python/py-record.c: Update.
10163 * python/py-symbol.c: Update.
10164 * python/py-type.c: Update.
10165 * python/py-unwind.c: Update.
10166 * python/py-utils.c: Update.
10167 * python/py-value.c: Update.
10168 * python/python.c: Update.
10169 * record-btrace.c: Update.
10170 * record-full.c: Update.
10171 * remote-fileio.c: Update.
10172 * remote.c: Update.
10173 * riscv-tdep.c: Update.
10174 * rs6000-aix-tdep.c: Update.
10175 * rs6000-tdep.c: Update.
10176 * rust-exp.y: Update.
10177 * rust-lang.c: Update.
10178 * s390-tdep.c: Update.
10179 * selftest-arch.c: Update.
10180 * solib-dsbt.c: Update.
10181 * solib-frv.c: Update.
10182 * solib-spu.c: Update.
10183 * solib-svr4.c: Update.
10184 * solib.c: Update.
10185 * sparc64-linux-tdep.c: Update.
10186 * stack.c: Update.
10187 * symfile-mem.c: Update.
10188 * symmisc.c: Update.
10189 * target.c: Update.
10190 * thread.c: Update.
10191 * top.c: Update.
10192 * tracefile-tfile.c: Update.
10193 * tui/tui.c: Update.
10194 * typeprint.c: Update.
10195 * unittests/cli-utils-selftests.c: Update.
10196 * unittests/parse-connection-spec-selftests.c: Update.
10197 * valops.c: Update.
10198 * valprint.c: Update.
10199 * value.c: Update.
10200 * varobj.c: Update.
10201 * windows-nat.c: Update.
10202 * x86-linux-nat.c: Update.
10203 * xml-support.c: Update.
10204
10205 2019-04-08 Tom Tromey <tom@tromey.com>
10206
10207 * xml-support.c: Use C++ exception handling.
10208 * x86-linux-nat.c: Use C++ exception handling.
10209 * windows-nat.c: Use C++ exception handling.
10210 * varobj.c: Use C++ exception handling.
10211 * value.c: Use C++ exception handling.
10212 * valprint.c: Use C++ exception handling.
10213 * valops.c: Use C++ exception handling.
10214 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10215 handling.
10216 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10217 * typeprint.c: Use C++ exception handling.
10218 * tui/tui.c: Use C++ exception handling.
10219 * tracefile-tfile.c: Use C++ exception handling.
10220 * top.c: Use C++ exception handling.
10221 * thread.c: Use C++ exception handling.
10222 * target.c: Use C++ exception handling.
10223 * symmisc.c: Use C++ exception handling.
10224 * symfile-mem.c: Use C++ exception handling.
10225 * stack.c: Use C++ exception handling.
10226 * sparc64-linux-tdep.c: Use C++ exception handling.
10227 * solib.c: Use C++ exception handling.
10228 * solib-svr4.c: Use C++ exception handling.
10229 * solib-spu.c: Use C++ exception handling.
10230 * solib-frv.c: Use C++ exception handling.
10231 * solib-dsbt.c: Use C++ exception handling.
10232 * selftest-arch.c: Use C++ exception handling.
10233 * s390-tdep.c: Use C++ exception handling.
10234 * rust-lang.c: Use C++ exception handling.
10235 * rust-exp.y: Use C++ exception handling.
10236 * rs6000-tdep.c: Use C++ exception handling.
10237 * rs6000-aix-tdep.c: Use C++ exception handling.
10238 * riscv-tdep.c: Use C++ exception handling.
10239 * remote.c: Use C++ exception handling.
10240 * remote-fileio.c: Use C++ exception handling.
10241 * record-full.c: Use C++ exception handling.
10242 * record-btrace.c: Use C++ exception handling.
10243 * python/python.c: Use C++ exception handling.
10244 * python/py-value.c: Use C++ exception handling.
10245 * python/py-utils.c: Use C++ exception handling.
10246 * python/py-unwind.c: Use C++ exception handling.
10247 * python/py-type.c: Use C++ exception handling.
10248 * python/py-symbol.c: Use C++ exception handling.
10249 * python/py-record.c: Use C++ exception handling.
10250 * python/py-record-btrace.c: Use C++ exception handling.
10251 * python/py-progspace.c: Use C++ exception handling.
10252 * python/py-prettyprint.c: Use C++ exception handling.
10253 * python/py-param.c: Use C++ exception handling.
10254 * python/py-objfile.c: Use C++ exception handling.
10255 * python/py-linetable.c: Use C++ exception handling.
10256 * python/py-lazy-string.c: Use C++ exception handling.
10257 * python/py-infthread.c: Use C++ exception handling.
10258 * python/py-inferior.c: Use C++ exception handling.
10259 * python/py-gdb-readline.c: Use C++ exception handling.
10260 * python/py-framefilter.c: Use C++ exception handling.
10261 * python/py-frame.c: Use C++ exception handling.
10262 * python/py-finishbreakpoint.c: Use C++ exception handling.
10263 * python/py-cmd.c: Use C++ exception handling.
10264 * python/py-breakpoint.c: Use C++ exception handling.
10265 * python/py-arch.c: Use C++ exception handling.
10266 * printcmd.c: Use C++ exception handling.
10267 * ppc-linux-tdep.c: Use C++ exception handling.
10268 * parse.c: Use C++ exception handling.
10269 * p-valprint.c: Use C++ exception handling.
10270 * objc-lang.c: Use C++ exception handling.
10271 * mi/mi-main.c: Use C++ exception handling.
10272 * mi/mi-interp.c: Use C++ exception handling.
10273 * mi/mi-cmd-stack.c: Use C++ exception handling.
10274 * mi/mi-cmd-break.c: Use C++ exception handling.
10275 * main.c: Use C++ exception handling.
10276 * linux-thread-db.c: Use C++ exception handling.
10277 * linux-tdep.c: Use C++ exception handling.
10278 * linux-nat.c: Use C++ exception handling.
10279 * linux-fork.c: Use C++ exception handling.
10280 * linespec.c: Use C++ exception handling.
10281 * language.c: Use C++ exception handling.
10282 * jit.c: Use C++ exception handling.
10283 * infrun.c: Use C++ exception handling.
10284 * infcmd.c: Use C++ exception handling.
10285 * infcall.c: Use C++ exception handling.
10286 * inf-loop.c: Use C++ exception handling.
10287 * i386-tdep.c: Use C++ exception handling.
10288 * i386-linux-tdep.c: Use C++ exception handling.
10289 * guile/scm-value.c: Use C++ exception handling.
10290 * guile/scm-type.c: Use C++ exception handling.
10291 * guile/scm-symtab.c: Use C++ exception handling.
10292 * guile/scm-symbol.c: Use C++ exception handling.
10293 * guile/scm-pretty-print.c: Use C++ exception handling.
10294 * guile/scm-ports.c: Use C++ exception handling.
10295 * guile/scm-param.c: Use C++ exception handling.
10296 * guile/scm-math.c: Use C++ exception handling.
10297 * guile/scm-lazy-string.c: Use C++ exception handling.
10298 * guile/scm-frame.c: Use C++ exception handling.
10299 * guile/scm-disasm.c: Use C++ exception handling.
10300 * guile/scm-cmd.c: Use C++ exception handling.
10301 * guile/scm-breakpoint.c: Use C++ exception handling.
10302 * guile/scm-block.c: Use C++ exception handling.
10303 * guile/guile-internal.h: Use C++ exception handling.
10304 * gnu-v3-abi.c: Use C++ exception handling.
10305 * gdbtypes.c: Use C++ exception handling.
10306 * frame.c: Use C++ exception handling.
10307 * frame-unwind.c: Use C++ exception handling.
10308 * fbsd-tdep.c: Use C++ exception handling.
10309 * f-valprint.c: Use C++ exception handling.
10310 * exec.c: Use C++ exception handling.
10311 * event-top.c: Use C++ exception handling.
10312 * event-loop.c: Use C++ exception handling.
10313 * eval.c: Use C++ exception handling.
10314 * dwarf2read.c: Use C++ exception handling.
10315 * dwarf2loc.c: Use C++ exception handling.
10316 * dwarf2-frame.c: Use C++ exception handling.
10317 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10318 * dwarf-index-write.c: Use C++ exception handling.
10319 * dwarf-index-cache.c: Use C++ exception handling.
10320 * dtrace-probe.c: Use C++ exception handling.
10321 * disasm-selftests.c: Use C++ exception handling.
10322 * darwin-nat.c: Use C++ exception handling.
10323 * cp-valprint.c: Use C++ exception handling.
10324 * cp-support.c: Use C++ exception handling.
10325 * cp-abi.c: Use C++ exception handling.
10326 * corelow.c: Use C++ exception handling.
10327 * completer.c: Use C++ exception handling.
10328 * compile/compile-object-run.c: Use C++ exception handling.
10329 * compile/compile-object-load.c: Use C++ exception handling.
10330 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10331 * compile/compile-c-symbols.c: Use C++ exception handling.
10332 * common/selftest.c: Use C++ exception handling.
10333 * common/new-op.c: Use C++ exception handling.
10334 * cli/cli-script.c: Use C++ exception handling.
10335 * cli/cli-interp.c: Use C++ exception handling.
10336 * cli/cli-cmds.c: Use C++ exception handling.
10337 * c-varobj.c: Use C++ exception handling.
10338 * btrace.c: Use C++ exception handling.
10339 * breakpoint.c: Use C++ exception handling.
10340 * break-catch-throw.c: Use C++ exception handling.
10341 * arch-utils.c: Use C++ exception handling.
10342 * amd64-tdep.c: Use C++ exception handling.
10343 * ada-valprint.c: Use C++ exception handling.
10344 * ada-typeprint.c: Use C++ exception handling.
10345 * ada-lang.c: Use C++ exception handling.
10346 * aarch64-tdep.c: Use C++ exception handling.
10347
10348 2019-04-08 Tom Tromey <tom@tromey.com>
10349
10350 * xml-support.c (gdb_xml_parser::parse): Update.
10351 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10352 * value.c (show_convenience): Update.
10353 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10354 (test_parse_flags_qcs): Update.
10355 * thread.c (thr_try_catch_cmd): Update.
10356 * target.c (target_translate_tls_address): Update.
10357 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10358 (info_frame_command_core, frame_apply_command_count): Update.
10359 * rust-exp.y (rust_lex_exception_test): Update.
10360 * riscv-tdep.c (riscv_print_one_register_info): Update.
10361 * remote.c (remote_target::enable_btrace): Update.
10362 * record-btrace.c (record_btrace_enable_warn): Update.
10363 * python/py-utils.c (gdbpy_convert_exception): Update.
10364 * printcmd.c (do_one_display, print_variable_and_value): Update.
10365 * mi/mi-main.c (mi_print_exception): Update.
10366 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10367 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10368 * linux-nat.c (linux_nat_target::attach): Update.
10369 * linux-fork.c (class scoped_switch_fork_info): Update.
10370 * infrun.c (displaced_step_prepare): Update.
10371 * infcall.c (call_function_by_hand_dummy): Update.
10372 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10373 * gnu-v3-abi.c (print_one_vtable): Update.
10374 * frame.c (get_prev_frame_always): Update.
10375 * f-valprint.c (info_common_command_for_block): Update.
10376 * exec.c (try_open_exec_file): Update.
10377 * exceptions.c (print_exception, exception_print)
10378 (exception_fprintf, exception_print_same): Update.
10379 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10380 * dwarf-index-cache.c (index_cache::store)
10381 (index_cache::lookup_gdb_index): Update.
10382 * darwin-nat.c (maybe_cache_shell): Update.
10383 * cp-valprint.c (cp_print_value_fields): Update.
10384 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10385 (gcc_cplus_symbol_address): Update.
10386 * compile/compile-c-symbols.c (gcc_convert_symbol)
10387 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10388 * common/selftest.c: Update.
10389 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10390 a std::string.
10391 (exception_try_scope_entry, exception_try_scope_exit): Don't
10392 declare.
10393 (struct exception_try_scope): Remove.
10394 (TRY): Don't use exception_try_scope.
10395 (struct gdb_exception): Add constructor, operator=.
10396 <what>: New method.
10397 (struct gdb_exception_RETURN_MASK_ALL)
10398 (struct gdb_exception_RETURN_MASK_ERROR)
10399 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10400 (struct gdb_quit_bad_alloc): Update.
10401 * common/common-exceptions.c (exception_none): Change
10402 initializer.
10403 (struct catcher) <state, exception>: Initialize inline.
10404 <prev>: Remove member.
10405 (current_catcher): Remove.
10406 (catchers): New global.
10407 (exceptions_state_mc_init): Simplify.
10408 (catcher_pop): Remove.
10409 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10410 (try_scope_depth, exception_try_scope_entry)
10411 (exception_try_scope_exit): Remove.
10412 (throw_exception_sjlj): Update.
10413 (exception_messages, exception_messages_size): Remove.
10414 (throw_it): Simplify.
10415 (gdb_exception_sliced_copy): Remove.
10416 (throw_exception_cxx): Update.
10417 * cli/cli-script.c (script_from_file): Update.
10418 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10419 Update.
10420 * ada-valprint.c (ada_val_print): Update.
10421 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10422 (create_excep_cond_exprs): Update.
10423
10424 2019-04-08 Tom Tromey <tom@tromey.com>
10425
10426 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10427 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10428 (TRY, CATCH, END_CATCH): Remove some definitions.
10429 * common/common-exceptions.c: Don't use GDB_XCPT.
10430 (catcher_list_size): Remove.
10431 (throw_exception, throw_it): Simplify.
10432
10433 2019-04-05 Tom Tromey <tom@tromey.com>
10434
10435 Revert the header-sorting patch.
10436 * ft32-tdep.c: Revert.
10437 * frv-tdep.c: Revert.
10438 * frv-linux-tdep.c: Revert.
10439 * frame.c: Revert.
10440 * frame-unwind.c: Revert.
10441 * frame-base.c: Revert.
10442 * fork-child.c: Revert.
10443 * findvar.c: Revert.
10444 * findcmd.c: Revert.
10445 * filesystem.c: Revert.
10446 * filename-seen-cache.h: Revert.
10447 * filename-seen-cache.c: Revert.
10448 * fbsd-tdep.c: Revert.
10449 * fbsd-nat.h: Revert.
10450 * fbsd-nat.c: Revert.
10451 * f-valprint.c: Revert.
10452 * f-typeprint.c: Revert.
10453 * f-lang.c: Revert.
10454 * extension.h: Revert.
10455 * extension.c: Revert.
10456 * extension-priv.h: Revert.
10457 * expprint.c: Revert.
10458 * exec.h: Revert.
10459 * exec.c: Revert.
10460 * exceptions.c: Revert.
10461 * event-top.c: Revert.
10462 * event-loop.c: Revert.
10463 * eval.c: Revert.
10464 * elfread.c: Revert.
10465 * dwarf2read.h: Revert.
10466 * dwarf2read.c: Revert.
10467 * dwarf2loc.c: Revert.
10468 * dwarf2expr.h: Revert.
10469 * dwarf2expr.c: Revert.
10470 * dwarf2-frame.c: Revert.
10471 * dwarf2-frame-tailcall.c: Revert.
10472 * dwarf-index-write.h: Revert.
10473 * dwarf-index-write.c: Revert.
10474 * dwarf-index-common.c: Revert.
10475 * dwarf-index-cache.h: Revert.
10476 * dwarf-index-cache.c: Revert.
10477 * dummy-frame.c: Revert.
10478 * dtrace-probe.c: Revert.
10479 * disasm.h: Revert.
10480 * disasm.c: Revert.
10481 * disasm-selftests.c: Revert.
10482 * dictionary.c: Revert.
10483 * dicos-tdep.c: Revert.
10484 * demangle.c: Revert.
10485 * dcache.h: Revert.
10486 * dcache.c: Revert.
10487 * darwin-nat.h: Revert.
10488 * darwin-nat.c: Revert.
10489 * darwin-nat-info.c: Revert.
10490 * d-valprint.c: Revert.
10491 * d-namespace.c: Revert.
10492 * d-lang.c: Revert.
10493 * ctf.c: Revert.
10494 * csky-tdep.c: Revert.
10495 * csky-linux-tdep.c: Revert.
10496 * cris-tdep.c: Revert.
10497 * cris-linux-tdep.c: Revert.
10498 * cp-valprint.c: Revert.
10499 * cp-support.c: Revert.
10500 * cp-namespace.c: Revert.
10501 * cp-abi.c: Revert.
10502 * corelow.c: Revert.
10503 * corefile.c: Revert.
10504 * continuations.c: Revert.
10505 * completer.h: Revert.
10506 * completer.c: Revert.
10507 * complaints.c: Revert.
10508 * coffread.c: Revert.
10509 * coff-pe-read.c: Revert.
10510 * cli-out.h: Revert.
10511 * cli-out.c: Revert.
10512 * charset.c: Revert.
10513 * c-varobj.c: Revert.
10514 * c-valprint.c: Revert.
10515 * c-typeprint.c: Revert.
10516 * c-lang.c: Revert.
10517 * buildsym.c: Revert.
10518 * buildsym-legacy.c: Revert.
10519 * build-id.h: Revert.
10520 * build-id.c: Revert.
10521 * btrace.c: Revert.
10522 * bsd-uthread.c: Revert.
10523 * breakpoint.h: Revert.
10524 * breakpoint.c: Revert.
10525 * break-catch-throw.c: Revert.
10526 * break-catch-syscall.c: Revert.
10527 * break-catch-sig.c: Revert.
10528 * blockframe.c: Revert.
10529 * block.c: Revert.
10530 * bfin-tdep.c: Revert.
10531 * bfin-linux-tdep.c: Revert.
10532 * bfd-target.c: Revert.
10533 * bcache.c: Revert.
10534 * ax-general.c: Revert.
10535 * ax-gdb.h: Revert.
10536 * ax-gdb.c: Revert.
10537 * avr-tdep.c: Revert.
10538 * auxv.c: Revert.
10539 * auto-load.c: Revert.
10540 * arm-wince-tdep.c: Revert.
10541 * arm-tdep.c: Revert.
10542 * arm-symbian-tdep.c: Revert.
10543 * arm-pikeos-tdep.c: Revert.
10544 * arm-obsd-tdep.c: Revert.
10545 * arm-nbsd-tdep.c: Revert.
10546 * arm-nbsd-nat.c: Revert.
10547 * arm-linux-tdep.c: Revert.
10548 * arm-linux-nat.c: Revert.
10549 * arm-fbsd-tdep.c: Revert.
10550 * arm-fbsd-nat.c: Revert.
10551 * arm-bsd-tdep.c: Revert.
10552 * arch-utils.c: Revert.
10553 * arc-tdep.c: Revert.
10554 * arc-newlib-tdep.c: Revert.
10555 * annotate.h: Revert.
10556 * annotate.c: Revert.
10557 * amd64-windows-tdep.c: Revert.
10558 * amd64-windows-nat.c: Revert.
10559 * amd64-tdep.c: Revert.
10560 * amd64-sol2-tdep.c: Revert.
10561 * amd64-obsd-tdep.c: Revert.
10562 * amd64-obsd-nat.c: Revert.
10563 * amd64-nbsd-tdep.c: Revert.
10564 * amd64-nbsd-nat.c: Revert.
10565 * amd64-nat.c: Revert.
10566 * amd64-linux-tdep.c: Revert.
10567 * amd64-linux-nat.c: Revert.
10568 * amd64-fbsd-tdep.c: Revert.
10569 * amd64-fbsd-nat.c: Revert.
10570 * amd64-dicos-tdep.c: Revert.
10571 * amd64-darwin-tdep.c: Revert.
10572 * amd64-bsd-nat.c: Revert.
10573 * alpha-tdep.c: Revert.
10574 * alpha-obsd-tdep.c: Revert.
10575 * alpha-nbsd-tdep.c: Revert.
10576 * alpha-mdebug-tdep.c: Revert.
10577 * alpha-linux-tdep.c: Revert.
10578 * alpha-linux-nat.c: Revert.
10579 * alpha-bsd-tdep.c: Revert.
10580 * alpha-bsd-nat.c: Revert.
10581 * aix-thread.c: Revert.
10582 * agent.c: Revert.
10583 * addrmap.c: Revert.
10584 * ada-varobj.c: Revert.
10585 * ada-valprint.c: Revert.
10586 * ada-typeprint.c: Revert.
10587 * ada-tasks.c: Revert.
10588 * ada-lang.c: Revert.
10589 * aarch64-tdep.c: Revert.
10590 * aarch64-ravenscar-thread.c: Revert.
10591 * aarch64-newlib-tdep.c: Revert.
10592 * aarch64-linux-tdep.c: Revert.
10593 * aarch64-linux-nat.c: Revert.
10594 * aarch64-fbsd-tdep.c: Revert.
10595 * aarch64-fbsd-nat.c: Revert.
10596 * aarch32-linux-nat.c: Revert.
10597
10598 2019-04-05 Tom Tromey <tom@tromey.com>
10599
10600 * ft32-tdep.c: Sort headers.
10601 * frv-tdep.c: Sort headers.
10602 * frv-linux-tdep.c: Sort headers.
10603 * frame.c: Sort headers.
10604 * frame-unwind.c: Sort headers.
10605 * frame-base.c: Sort headers.
10606 * fork-child.c: Sort headers.
10607 * findvar.c: Sort headers.
10608 * findcmd.c: Sort headers.
10609 * filesystem.c: Sort headers.
10610 * filename-seen-cache.h: Sort headers.
10611 * filename-seen-cache.c: Sort headers.
10612 * fbsd-tdep.c: Sort headers.
10613 * fbsd-nat.h: Sort headers.
10614 * fbsd-nat.c: Sort headers.
10615 * f-valprint.c: Sort headers.
10616 * f-typeprint.c: Sort headers.
10617 * f-lang.c: Sort headers.
10618 * extension.h: Sort headers.
10619 * extension.c: Sort headers.
10620 * extension-priv.h: Sort headers.
10621 * expprint.c: Sort headers.
10622 * exec.h: Sort headers.
10623 * exec.c: Sort headers.
10624 * exceptions.c: Sort headers.
10625 * event-top.c: Sort headers.
10626 * event-loop.c: Sort headers.
10627 * eval.c: Sort headers.
10628 * elfread.c: Sort headers.
10629 * dwarf2read.h: Sort headers.
10630 * dwarf2read.c: Sort headers.
10631 * dwarf2loc.c: Sort headers.
10632 * dwarf2expr.h: Sort headers.
10633 * dwarf2expr.c: Sort headers.
10634 * dwarf2-frame.c: Sort headers.
10635 * dwarf2-frame-tailcall.c: Sort headers.
10636 * dwarf-index-write.h: Sort headers.
10637 * dwarf-index-write.c: Sort headers.
10638 * dwarf-index-common.c: Sort headers.
10639 * dwarf-index-cache.h: Sort headers.
10640 * dwarf-index-cache.c: Sort headers.
10641 * dummy-frame.c: Sort headers.
10642 * dtrace-probe.c: Sort headers.
10643 * disasm.h: Sort headers.
10644 * disasm.c: Sort headers.
10645 * disasm-selftests.c: Sort headers.
10646 * dictionary.c: Sort headers.
10647 * dicos-tdep.c: Sort headers.
10648 * demangle.c: Sort headers.
10649 * dcache.h: Sort headers.
10650 * dcache.c: Sort headers.
10651 * darwin-nat.h: Sort headers.
10652 * darwin-nat.c: Sort headers.
10653 * darwin-nat-info.c: Sort headers.
10654 * d-valprint.c: Sort headers.
10655 * d-namespace.c: Sort headers.
10656 * d-lang.c: Sort headers.
10657 * ctf.c: Sort headers.
10658 * csky-tdep.c: Sort headers.
10659 * csky-linux-tdep.c: Sort headers.
10660 * cris-tdep.c: Sort headers.
10661 * cris-linux-tdep.c: Sort headers.
10662 * cp-valprint.c: Sort headers.
10663 * cp-support.c: Sort headers.
10664 * cp-namespace.c: Sort headers.
10665 * cp-abi.c: Sort headers.
10666 * corelow.c: Sort headers.
10667 * corefile.c: Sort headers.
10668 * continuations.c: Sort headers.
10669 * completer.h: Sort headers.
10670 * completer.c: Sort headers.
10671 * complaints.c: Sort headers.
10672 * coffread.c: Sort headers.
10673 * coff-pe-read.c: Sort headers.
10674 * cli-out.h: Sort headers.
10675 * cli-out.c: Sort headers.
10676 * charset.c: Sort headers.
10677 * c-varobj.c: Sort headers.
10678 * c-valprint.c: Sort headers.
10679 * c-typeprint.c: Sort headers.
10680 * c-lang.c: Sort headers.
10681 * buildsym.c: Sort headers.
10682 * buildsym-legacy.c: Sort headers.
10683 * build-id.h: Sort headers.
10684 * build-id.c: Sort headers.
10685 * btrace.c: Sort headers.
10686 * bsd-uthread.c: Sort headers.
10687 * breakpoint.h: Sort headers.
10688 * breakpoint.c: Sort headers.
10689 * break-catch-throw.c: Sort headers.
10690 * break-catch-syscall.c: Sort headers.
10691 * break-catch-sig.c: Sort headers.
10692 * blockframe.c: Sort headers.
10693 * block.c: Sort headers.
10694 * bfin-tdep.c: Sort headers.
10695 * bfin-linux-tdep.c: Sort headers.
10696 * bfd-target.c: Sort headers.
10697 * bcache.c: Sort headers.
10698 * ax-general.c: Sort headers.
10699 * ax-gdb.h: Sort headers.
10700 * ax-gdb.c: Sort headers.
10701 * avr-tdep.c: Sort headers.
10702 * auxv.c: Sort headers.
10703 * auto-load.c: Sort headers.
10704 * arm-wince-tdep.c: Sort headers.
10705 * arm-tdep.c: Sort headers.
10706 * arm-symbian-tdep.c: Sort headers.
10707 * arm-pikeos-tdep.c: Sort headers.
10708 * arm-obsd-tdep.c: Sort headers.
10709 * arm-nbsd-tdep.c: Sort headers.
10710 * arm-nbsd-nat.c: Sort headers.
10711 * arm-linux-tdep.c: Sort headers.
10712 * arm-linux-nat.c: Sort headers.
10713 * arm-fbsd-tdep.c: Sort headers.
10714 * arm-fbsd-nat.c: Sort headers.
10715 * arm-bsd-tdep.c: Sort headers.
10716 * arch-utils.c: Sort headers.
10717 * arc-tdep.c: Sort headers.
10718 * arc-newlib-tdep.c: Sort headers.
10719 * annotate.h: Sort headers.
10720 * annotate.c: Sort headers.
10721 * amd64-windows-tdep.c: Sort headers.
10722 * amd64-windows-nat.c: Sort headers.
10723 * amd64-tdep.c: Sort headers.
10724 * amd64-sol2-tdep.c: Sort headers.
10725 * amd64-obsd-tdep.c: Sort headers.
10726 * amd64-obsd-nat.c: Sort headers.
10727 * amd64-nbsd-tdep.c: Sort headers.
10728 * amd64-nbsd-nat.c: Sort headers.
10729 * amd64-nat.c: Sort headers.
10730 * amd64-linux-tdep.c: Sort headers.
10731 * amd64-linux-nat.c: Sort headers.
10732 * amd64-fbsd-tdep.c: Sort headers.
10733 * amd64-fbsd-nat.c: Sort headers.
10734 * amd64-dicos-tdep.c: Sort headers.
10735 * amd64-darwin-tdep.c: Sort headers.
10736 * amd64-bsd-nat.c: Sort headers.
10737 * alpha-tdep.c: Sort headers.
10738 * alpha-obsd-tdep.c: Sort headers.
10739 * alpha-nbsd-tdep.c: Sort headers.
10740 * alpha-mdebug-tdep.c: Sort headers.
10741 * alpha-linux-tdep.c: Sort headers.
10742 * alpha-linux-nat.c: Sort headers.
10743 * alpha-bsd-tdep.c: Sort headers.
10744 * alpha-bsd-nat.c: Sort headers.
10745 * aix-thread.c: Sort headers.
10746 * agent.c: Sort headers.
10747 * addrmap.c: Sort headers.
10748 * ada-varobj.c: Sort headers.
10749 * ada-valprint.c: Sort headers.
10750 * ada-typeprint.c: Sort headers.
10751 * ada-tasks.c: Sort headers.
10752 * ada-lang.c: Sort headers.
10753 * aarch64-tdep.c: Sort headers.
10754 * aarch64-ravenscar-thread.c: Sort headers.
10755 * aarch64-newlib-tdep.c: Sort headers.
10756 * aarch64-linux-tdep.c: Sort headers.
10757 * aarch64-linux-nat.c: Sort headers.
10758 * aarch64-fbsd-tdep.c: Sort headers.
10759 * aarch64-fbsd-nat.c: Sort headers.
10760 * aarch32-linux-nat.c: Sort headers.
10761
10762 2019-04-04 Tom Tromey <tom@tromey.com>
10763
10764 * varobj.c (varobj_create): Update.
10765 * rust-exp.y (struct rust_parser) <update_innermost_block,
10766 lookup_symbol>: New methods.
10767 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10768 Rename.
10769 (rust_parser::rust_lookup_type)
10770 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10771 * printcmd.c (display_command, do_one_display): Update.
10772 * parser-defs.h (struct parser_state) <parser_state>: Add
10773 "tracker" parameter.
10774 (block_tracker): New member.
10775 (class innermost_block_tracker) <innermost_block_tracker>: Add
10776 "types" parameter.
10777 <reset>: Remove method.
10778 (innermost_block): Don't declare.
10779 (null_post_parser): Update.
10780 * parse.c (innermost_block): Remove global.
10781 (write_dollar_variable): Update.
10782 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10783 Remove "tracker_types" parameter.
10784 (parse_expression): Add "tracker" parameter.
10785 (parse_expression_for_completion): Update.
10786 (null_post_parser): Add "tracker" parameter.
10787 * p-exp.y: Update rules.
10788 * m2-exp.y: Update rules.
10789 * language.h (struct language_defn) <la_post_parser>: Add
10790 "tracker" parameter.
10791 * go-exp.y: Update rules.
10792 * f-exp.y: Update rules.
10793 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10794 parameter.
10795 * d-exp.y: Update rules.
10796 * c-exp.y: Update rules.
10797 * breakpoint.c (set_breakpoint_condition): Create an
10798 innermost_block_tracker.
10799 (watch_command_1): Likewise.
10800 * ada-lang.c (resolve): Add "tracker" parameter.
10801 (resolve_subexp): Likewise.
10802 * ada-exp.y (write_var_from_sym): Update.
10803
10804 2019-04-04 Tom Tromey <tom@tromey.com>
10805
10806 * type-stack.h: New file.
10807 * type-stack.c: New file.
10808 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10809 type-stack.h.
10810 (insert_into_type_stack, insert_type, push_type, push_type_int)
10811 (insert_type_address_space, pop_type, pop_type_int)
10812 (pop_typelist, pop_type_stack, append_type_stack)
10813 (push_type_stack, get_type_stack, push_typelist)
10814 (follow_type_instance_flags, follow_types): Don't declare.
10815 * parse.c (type_stack): Remove global.
10816 (parse_exp_in_context): Update.
10817 (insert_into_type_stack, insert_type, push_type, push_type_int)
10818 (insert_type_address_space, pop_type, pop_type_int)
10819 (pop_typelist, pop_type_stack, append_type_stack)
10820 (push_type_stack, get_type_stack, push_typelist)
10821 (follow_type_instance_flags, follow_types): Remove (moved to
10822 type-stack.c).
10823 * f-exp.y (type_stack): New global.
10824 Update rules.
10825 (push_kind_type, f_parse): Update.
10826 * d-exp.y (type_stack): New global.
10827 Update rules.
10828 (d_parse): Update.
10829 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10830 Update rules.
10831 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10832 (HFILES_NO_SRCDIR): Add type-stack.h.
10833
10834 2019-04-04 Tom Tromey <tom@tromey.com>
10835
10836 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10837 (rust_parser::convert_ast_to_expression, rust_parse)
10838 (rust_lex_test_completion, rust_lex_tests): Update.
10839 * parser-defs.h (struct expr_completion_state): New.
10840 (struct parser_state) <parser_state>: Add completion parameter.
10841 <mark_struct_expression, mark_completion_tag>: New methods.
10842 <parse_completion, m_completion_state>: New members.
10843 (prefixify_expression, null_post_parser): Update.
10844 (mark_struct_expression, mark_completion_tag): Don't declare.
10845 * parse.c (parse_completion, expout_last_struct)
10846 (expout_tag_completion_type, expout_completion_name): Remove
10847 globals.
10848 (parser_state::mark_struct_expression)
10849 (parser_state::mark_completion_tag): Now methods.
10850 (prefixify_expression): Add last_struct parameter.
10851 (prefixify_subexp): Likewise.
10852 (parse_exp_1): Update.
10853 (parse_exp_in_context): Add cstate parameter. Update.
10854 (parse_expression_for_completion): Create an
10855 expr_completion_state.
10856 (null_post_parser): Add "completion" parameter.
10857 * p-exp.y: Update rules.
10858 (yylex): Update.
10859 * language.h (struct language_defn) <la_post_parser>: Add
10860 "completing" parameter.
10861 * go-exp.y: Update rules.
10862 (lex_one_token): Update.
10863 * expression.h (parse_completion): Don't declare.
10864 * d-exp.y: Update rules.
10865 (lex_one_token): Update rules.
10866 * c-exp.y: Update rules.
10867 (lex_one_token): Update.
10868 * ada-lang.c (resolve): Add "parse_completion" parameter.
10869 (resolve_subexp): Likewise.
10870 (ada_resolve_function): Likewise.
10871
10872 2019-04-04 Tom Tromey <tom@tromey.com>
10873
10874 * parser-defs.h (struct parser_state) <start_arglist,
10875 end_arglist>: New methods.
10876 <arglist_len, m_funcall_chain>: New members.
10877 (arglist_len, start_arglist, end_arglist): Don't declare.
10878 * parse.c (arglist_len, funcall_chain): Remove global.
10879 (start_arglist, end_arglist): Remove functions.
10880 (parse_exp_in_context): Update.
10881 * p-exp.y: Update rules.
10882 * m2-exp.y: Update rules.
10883 * go-exp.y: Update rules.
10884 * f-exp.y: Update rules.
10885 * d-exp.y: Update rules.
10886 * c-exp.y: Update rules.
10887
10888 2019-04-04 Tom Tromey <tom@tromey.com>
10889
10890 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10891 lex_operator, push_back>: New methods.
10892 Update all rules.
10893 (rust_parser::lex_hex, lex_escape): Rename and update.
10894 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10895 (rust_parser::lex_operator): Rename and update.
10896 (rust_parser::lex_number, rustyylex, rustyyerror)
10897 (rust_lex_test_init, rust_lex_test_sequence)
10898 (rust_lex_test_push_back, rust_lex_tests): Update.
10899 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10900 parameter.
10901 <lexptr, prev_lexptr>: New members.
10902 (lexptr, prev_lexptr): Don't declare.
10903 * parse.c (lexptr, prev_lexptr): Remove globals.
10904 (parse_exp_in_context): Update.
10905 * p-exp.y (yylex, yyerror): Update.
10906 * m2-exp.y (parse_number, yylex, yyerror): Update.
10907 * go-exp.y (lex_one_token, yyerror): Update.
10908 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10909 * d-exp.y (lex_one_token, yyerror): Update.
10910 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10911 (lex_one_token, yyerror): Update.
10912 * ada-lex.l (YY_INPUT): Update.
10913 (rewind_to_char): Update.
10914 * ada-exp.y (yyerror): Update.
10915
10916 2019-04-04 Tom Tromey <tom@tromey.com>
10917
10918 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10919 * parser-defs.h (struct parser_state) <parser_state>: Add new
10920 parameter.
10921 <comma_terminates>: New member.
10922 (comma_terminates): Don't declare global.
10923 * parse.c (comma_terminates): Remove global.
10924 (parse_exp_in_context): Update.
10925 * p-exp.y (yylex): Update.
10926 * m2-exp.y (yylex): Update.
10927 * go-exp.y (lex_one_token): Update.
10928 * f-exp.y (yylex): Update.
10929 * d-exp.y (lex_one_token): Update.
10930 * c-exp.y (lex_one_token): Update.
10931 * ada-lex.l: Update.
10932
10933 2019-04-04 Tom Tromey <tom@tromey.com>
10934
10935 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10936 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10937 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10938 * parser-defs.h (paren_depth): Don't declare.
10939 * parse.c (paren_depth): Remove global.
10940 (parse_exp_in_context): Update.
10941 * p-exp.y (paren_depth): New global.
10942 (pascal_parse): Initialize it.
10943 * m2-exp.y (paren_depth): New global.
10944 (m2_parse): Initialize it.
10945 * go-exp.y (paren_depth): New global.
10946 (go_parse): Initialize it.
10947 * f-exp.y (paren_depth): New global.
10948 (f_parse): Initialize it.
10949 * d-exp.y (paren_depth): New global.
10950 (d_parse): Initialize it.
10951 * c-exp.y (paren_depth): New global.
10952 (c_parse): Initialize it.
10953 * ada-lex.l (paren_depth): New global.
10954 (lexer_init): Initialize it.
10955
10956 2019-04-04 Tom Tromey <tom@tromey.com>
10957
10958 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10959 (rust_parser::convert_ast_to_type)
10960 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10961 * parser-defs.h (struct parser_state) <parser_state>: Add
10962 parameters. Initialize new members.
10963 <expression_context_block, expression_context_pc>: New members.
10964 * parse.c (expression_context_block, expression_context_pc):
10965 Remove globals.
10966 (parse_exp_in_context): Update.
10967 * p-exp.y: Update all rules.
10968 (yylex): Update.
10969 * m2-exp.y: Update all rules.
10970 (yylex): Update.
10971 * go-exp.y (yylex): Update.
10972 * f-exp.y (yylex): Update.
10973 * d-exp.y: Update all rules.
10974 (yylex): Update.
10975 * c-exp.y: Update all rules.
10976 (lex_one_token, classify_name, yylex, c_parse): Update.
10977 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10978
10979 2019-04-04 Tom Tromey <tom@tromey.com>
10980
10981 * gdbarch.h, gdbarch.c: Rebuild.
10982 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10983 * stap-probe.h:
10984 (struct stap_parse_info): Replace "parser_state" with
10985 "expr_builder".
10986 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10987 (parser_state): New class.
10988 * parse.c (expr_builder): Rename.
10989 (expr_builder::release): Rename.
10990 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10991 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10992 (write_exp_elt_longcst, write_exp_elt_floatcst)
10993 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10994 (write_exp_string_vector, write_exp_bitstring)
10995 (write_exp_msymbol, mark_struct_expression)
10996 (write_dollar_variable)
10997 (insert_type_address_space, increase_expout_size): Replace
10998 "parser_state" with "expr_builder".
10999 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11000 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11001 "parser_state" with "expr_builder".
11002
11003 2019-04-04 Tom Tromey <tom@tromey.com>
11004
11005 * rust-exp.y: Replace "parse_language" with method call.
11006 * p-exp.y:
11007 (yylex): Replace "parse_language" with method call.
11008 * m2-exp.y:
11009 (yylex): Replace "parse_language" with method call.
11010 * go-exp.y (classify_name): Replace "parse_language" with method
11011 call.
11012 * f-exp.y (yylex): Replace "parse_language" with method call.
11013 * d-exp.y (lex_one_token): Replace "parse_language" with method
11014 call.
11015 * c-exp.y:
11016 (lex_one_token, classify_name, yylex): Replace "parse_language"
11017 with method call.
11018 * ada-exp.y (find_primitive_type, type_char)
11019 (type_system_address): Replace "parse_language" with method call.
11020
11021 2019-04-04 Tom Tromey <tom@tromey.com>
11022
11023 * rust-exp.y: Replace "parse_gdbarch" with method call.
11024 * parse.c (write_dollar_variable, insert_type_address_space):
11025 Replace "parse_gdbarch" with method call.
11026 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11027 call.
11028 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11029 call.
11030 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11031 "parse_gdbarch" with method call.
11032 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11033 with method call.
11034 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11035 "parse_gdbarch" with method call.
11036 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11037 "parse_gdbarch" with method call.
11038 * c-exp.y (parse_type, parse_number, classify_name): Replace
11039 "parse_gdbarch" with method call.
11040 * ada-lex.l: Replace "parse_gdbarch" with method call.
11041 * ada-exp.y (parse_type, find_primitive_type, type_char)
11042 (type_system_address): Replace "parse_gdbarch" with method call.
11043
11044 2019-04-04 Tom Tromey <tom@tromey.com>
11045
11046 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11047 * stap-probe.c (stap_parse_argument): Update.
11048 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11049 initial_size parameter.
11050 * rust-exp.y (rust_lex_tests): Update.
11051 * parse.c (parser_state): Update.
11052 (parse_exp_in_context): Update.
11053 * parser-defs.h (struct parser_state) <parser_state>: Remove
11054 "initial_size" parameter.
11055
11056 2019-04-04 Tom Tromey <tom@tromey.com>
11057
11058 * parser-defs.h (increase_expout_size): Don't declare.
11059 * parse.c (increase_expout_size): Now static.
11060
11061 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11062
11063 * gnu-nat.c (gnu_nat_target::wait): Fix
11064 target_waitstatus_to_string call.
11065
11066 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11067
11068 * eval.c (evaluate_subexp_standard): Handle internal functions
11069 during Fortran function call handling.
11070
11071 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * NEWS: Mention new internal functions.
11074 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11075 (read_base_type): Use dwarf2_init_complex_target_type.
11076 * value.c (creal_internal_fn): New function.
11077 (cimag_internal_fn): New function.
11078 (_initialize_values): Register new internal functions.
11079
11080 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11081
11082 * infrun.c (stop_all_threads): If debug_infrun, always
11083 trace the wait status after wait_one, using
11084 target_waitstatus_to_string and target_pid_to_str.
11085 (handle_inferior_event): Replace various trace of
11086 wait status kind by a single trace.
11087 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11088 wait status kind image by target_waitstatus_to_string.
11089 * target/waitstatus.c (target_waitstatus_to_string): Fix
11090 obsolete comment.
11091
11092 2019-04-01 Tom Tromey <tromey@adacore.com>
11093
11094 PR symtab/23331:
11095 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11096
11097 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11098 Pedro Alves <palves@redhat.com>
11099
11100 * top.c (quit_force): Call 'finalize_values'.
11101 * value.c (finalize_values): New function.
11102 * value.h (finalize_values): Declare.
11103
11104 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11105
11106 * NEWS: Announce $_gdb_major and $_gdb_minor.
11107
11108 * top.c (init_gdb_version_vars): New function.
11109 (gdb_init): Call init_gdb_version_vars.
11110
11111 2019-03-29 Tom Tromey <tromey@adacore.com>
11112
11113 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11114 help text. Remove dead code.
11115
11116 2019-03-29 Keith Seitz <keiths@redhat.com>
11117
11118 From Siddhesh Poyarekar:
11119 * f-lang.h (f77_get_upperbound): Return LONGEST.
11120 (f77_get_lowerbound): Likewise.
11121 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11122 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11123 print them.
11124 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11125 plongest to format print it.
11126 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11127 (f77_get_upperbound): Likewise.
11128 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11129 LOWER_BOUND to LONGEST.
11130 (f77_create_arrayprint_offset_tbl): Likewise.
11131
11132 2019-03-29 Keith Seitz <keiths@redhat.com>
11133
11134 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11135 %s/pulongest for TYPE_LENGTH instead of %d in format
11136 strings.
11137 * ada-typerint.c (ada_print_type): Likewise.
11138 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11139 * compile/compile-c-support.c (generate_register_struct): Likewise.
11140 * gdbtypes.c (recursive_dump_type): Likewise.
11141 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11142 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11143 instead of %d in format strings.
11144 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11145 to std::min to ULONGEST.
11146 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11147 instead of %d in format strings.
11148 * tracepoint.c (info_scope_command): Likewise.
11149 * typeprint.c (print_offset_data::update)
11150 (print_offset_data::finish): Likewise.
11151 * xtensa-tdep.c (xtensa_store_return_value)
11152 (xtensa_push_dummy_call): Likewise.
11153
11154 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11155
11156 * windows-nat.c (display_selector): Fixed format specifications
11157 for 64-bit Cygwin.
11158
11159 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11160
11161 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11162
11163 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11164
11165 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11166 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11167 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11168 (nios2_linux_init_abi): Install it.
11169
11170 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11171
11172 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11173
11174 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11175
11176 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11177
11178 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11179 Tom Tromey <tromey@adacore.com>
11180
11181 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11182
11183 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11184
11185 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11186 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11187 method to compute the bounds of range types. Also print "[evaluated]"
11188 if the bounds' values come from a dynamic evaluation.
11189
11190 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11191
11192 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11193 whitespace when pretty printing is on.
11194
11195 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11196
11197 * ppc-linux-nat.c: Add include.
11198
11199 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11200
11201 * NEWS: Mention AArch64 Pointer Authentication.
11202
11203 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11204
11205 * arm-linux-nat.c: Add include.
11206
11207 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11208
11209 * source-cache.c (source_cache::get_source_lines): Re-read
11210 fullname after calling open_source_file.
11211
11212 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11213
11214 * NEWS: Mention TLS support for FreeBSD.
11215
11216 2019-03-25 Tom Tromey <tromey@adacore.com>
11217
11218 * minsyms.c (BUNCH_SIZE): Update comment.
11219 (~minimal_symbol_reader): Remove old comment.
11220 (compact_minimal_symbols): Update comment.
11221 (minimal_symbol_reader::install): Remove old comment. Update
11222 other comments.
11223
11224 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11225
11226 * s390-linux-nat.c: Add include.
11227
11228 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11229
11230 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11231 Call linux_get_hwcap.
11232 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11233 Likewise.
11234 (aarch64_linux_get_hwcap): Remove function.
11235 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11236 declaration.
11237 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11238 linux_get_hwcap.
11239 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11240 * linux-tdep.c (linux_get_hwcap): Add function.
11241 (linux_get_hwcap2): Likewise.
11242 * linux-tdep.h (linux_get_hwcap): Add declaration.
11243 (linux_get_hwcap2): Likewise.
11244 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11245 (ppc_linux_get_hwcap2): Likewise.
11246 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11247 linux_get_hwcap.
11248 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11249 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11250 (ppc_linux_nat_target::read_description): Likewise.
11251 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11252 * s390-linux-nat.c: Likewise.
11253 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11254
11255 2019-03-24 Tom Tromey <tom@tromey.com>
11256
11257 * ada-lang.c (standard_lookup): Simplify initialization.
11258 (ada_lookup_symbol_nonlocal): Simplify return.
11259 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11260 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11261 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11262 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11263 initialization.
11264 * solib.c (solib_global_lookup): Simplify.
11265 * symtab.c (null_block_symbol): Remove.
11266 (symbol_cache_lookup): Simplify returns.
11267 (lookup_language_this): Simplify returns.
11268 (lookup_symbol_aux): Simplify return.
11269 (lookup_local_symbol): Simplify returns.
11270 (lookup_global_symbol_from_objfile): Simplify return.
11271 (lookup_symbol_in_objfile_symtabs)
11272 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11273 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11274 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11275 * cp-namespace.c (cp_lookup_bare_symbol)
11276 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11277 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11278 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11279 (cp_lookup_symbol_via_imports): Simplify initialization.
11280 (find_symbol_in_baseclass): Likewise.
11281 * symtab.h (null_block_symbol): Remove.
11282 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11283 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11284 (d_lookup_symbol_module): Likewise.
11285 (find_symbol_in_baseclass): Simplify initialization.
11286
11287 2019-03-24 Tom Tromey <tom@tromey.com>
11288
11289 * expression.h: Don't include symtab.h.
11290 (struct block): Forward declare.
11291
11292 2019-03-24 Tom Tromey <tom@tromey.com>
11293
11294 * c-exp.y (typebase): Remove casts.
11295 * gdbtypes.c (lookup_unsigned_typename, )
11296 (lookup_signed_typename): Remove cast.
11297 * eval.c (parse_to_comma_and_eval): Remove cast.
11298 * parse.c (write_dollar_variable): Remove cast.
11299 * block.h (struct block) <superblock>: Now const.
11300 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11301 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11302 (map_block): Make "block" const.
11303 * symfile.h (struct quick_symbol_functions)
11304 <map_matching_symbols>: Constify block argument to "callback".
11305 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11306 const.
11307 (find_pc_sect_compunit_symtab): Make "b" const.
11308 (find_symbol_at_address): Likewise.
11309 (search_symbols): Likewise.
11310 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11311 (dw2_debug_names_lookup_symbol): Likewise.
11312 (dw2_map_matching_symbols): Update.
11313 * p-valprint.c (pascal_val_print): Remove "block".
11314 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11315 (aux_add_nonlocal_symbols): Make "block" const.
11316 (resolve_subexp): Remove cast.
11317 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11318 const.
11319 (iterate_over_file_blocks): Likewise.
11320 * f-exp.y (%union) <bval>: Remove.
11321 * coffread.c (patch_opaque_types): Make "b" const.
11322 * spu-tdep.c (spu_catch_start): Make "block" const.
11323 * c-valprint.c (print_unpacked_pointer): Remove "block".
11324 * symmisc.c (dump_symtab_1): Make "b" const.
11325 (block_depth): Make "block" const.
11326 * d-exp.y (%union) <bval>: Remove.
11327 * cp-support.h (cp_lookup_rtti_type): Update.
11328 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11329 * psymtab.c (psym_lookup_symbol): Make "block" const.
11330 (maintenance_check_psymtabs): Make "b" const.
11331 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11332 (enumerate_locals, enumerate_args): Update.
11333 * python/py-symtab.c (stpy_global_block): Make "block" const.
11334 (stpy_static_block): Likewise.
11335 * inline-frame.c (block_starting_point_at): Make "new_block"
11336 const.
11337 * block.c (find_block_in_blockvector): Make return type const.
11338 (blockvector_for_pc_sect): Make "b" const.
11339 (find_block_in_blockvector): Make "b" const.
11340
11341 2019-03-23 Tom Tromey <tom@tromey.com>
11342
11343 * varobj.c (varobj_create): Update.
11344 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11345 * printcmd.c (display_command, do_one_display): Don't reset
11346 innermost_block.
11347 * parser-defs.h (enum innermost_block_tracker_type): Move to
11348 expression.h.
11349 (innermost_block): Update comment.
11350 * parse.c (parse_exp_1): Add tracker_types parameter.
11351 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11352 tracker_types parameter. Reset innermost_block.
11353 (parse_exp_in_context): Remove.
11354 (parse_expression_for_completion): Update.
11355 * objfiles.c (~objfile): Don't reset expression_context_block or
11356 innermost_block.
11357 * expression.h (enum innermost_block_tracker_type): Move from
11358 parser-defs.h.
11359 (parse_exp_1): Add tracker_types parameter.
11360 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11361 reset innermost_block.
11362
11363 2019-03-23 Tom Tromey <tom@tromey.com>
11364
11365 * objfiles.h: Include bcache.h.
11366
11367 2019-03-23 Tom Tromey <tom@tromey.com>
11368
11369 * linespec.c (get_current_search_block): Use
11370 scoped_restore_current_language.
11371 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11372
11373 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11374 Jiong Wang <jiong.wang@arm.com>
11375
11376 * aarch64-linux-tdep.c
11377 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11378 section.
11379 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11380
11381 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11382 Jiong Wang <jiong.wang@arm.com>
11383
11384 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11385 instructions.
11386 (aarch64_analyze_prologue_test): Add PACIASP test.
11387 (aarch64_prologue_prev_register): Unmask PC value.
11388
11389 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11390 Jiong Wang <jiong.wang@arm.com>
11391
11392 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11393 (aarch64_dwarf2_prev_register): Unmask PC value.
11394 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11395 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11396 DW_CFA_AARCH64_negate_ra_state.
11397 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11398
11399 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11400 Jiong Wang <jiong.wang@arm.com>
11401
11402 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11403 registers.
11404 (aarch64_pseudo_register_name): Likewise.
11405 (aarch64_pseudo_register_type): Likewise.
11406 (aarch64_pseudo_register_reggroup_p): Likewise.
11407 (aarch64_gdbarch_init): Add pauth registers.
11408 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11409 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11410 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11411 (struct gdbarch_tdep): Add regnum for ra_state.
11412
11413 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11414 Jiong Wang <jiong.wang@arm.com>
11415
11416 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11417
11418 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11419 Jiong Wang <jiong.wang@arm.com>
11420
11421 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11422 function.
11423 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11424 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11425 (aarch64_gdbarch_init): Add puth registers.
11426 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11427 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11428 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11429
11430 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11431 Jiong Wang <jiong.wang@arm.com>
11432
11433 * aarch64-linux-nat.c
11434 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11435 * aarch64-linux-tdep.c
11436 (aarch64_linux_core_read_description): Likewise.
11437 (aarch64_linux_get_hwcap): New function.
11438 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11439 (aarch64_linux_get_hwcap): New declaration.
11440
11441 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11442 Jiong Wang <jiong.wang@arm.com>
11443
11444 * aarch64-linux-nat.c
11445 (aarch64_linux_nat_target::read_description): Add pauth param.
11446 * aarch64-linux-tdep.c
11447 (aarch64_linux_core_read_description): Likewise.
11448 * aarch64-tdep.c (struct target_desc): Add in pauth.
11449 (aarch64_read_description): Add pauth param.
11450 (aarch64_gdbarch_init): Likewise.
11451 * aarch64-tdep.h (aarch64_read_description): Likewise.
11452 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11453 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11454 * features/Makefile: Add new files.
11455 * features/aarch64-pauth.c: New file.
11456 * features/aarch64-pauth.xml: New file.
11457
11458 2019-03-20 Tom Tromey <tromey@adacore.com>
11459
11460 * infrun.c (handle_inferior_event): Rename from
11461 handle_inferior_event_1. Create a scoped_value_mark.
11462 (handle_inferior_event): Remove.
11463
11464 2019-03-19 Tom Tromey <tromey@adacore.com>
11465
11466 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11467 * infrun.h (print_stop_event): Add "displays" parameter.
11468 * infrun.c (print_stop_event): Add "displays" parameter.
11469
11470 2019-03-19 Pedro Alves <palves@redhat.com>
11471
11472 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11473 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11474 to -1. Fix TABs vs spaces.
11475 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11476 * tui/tui-out.h (tui_ui_out) Add intro comments.
11477 <m_line, m_start_of_line>: In-class initialize, and add describing
11478 comment.
11479
11480 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11481
11482 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11483 variable names.
11484 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11485
11486 2019-03-18 Pedro Alves <palves@redhat.com>
11487 Eli Zaretskii <eliz@gnu.org>
11488
11489 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11490 m_line and m_start_of_line.
11491
11492 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11493
11494 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11495 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11496 it returns a newline. This fixes a regression in TU mode, whereby
11497 the next line is output on the same screen line as the user input.
11498
11499 2019-03-18 Tom Tromey <tromey@adacore.com>
11500
11501 * minsyms.c (minimal_symbol_reader::install): Remove call to
11502 obstack_blank.
11503
11504 2019-03-18 Pedro Alves <palves@redhat.com>
11505
11506 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11507 New globals.
11508 (apply_style): New, factored out from ...
11509 (apply_ansi_escape): ... this. Handle reverse video mode.
11510 (tui_set_reverse_mode): New function.
11511 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11512 * tui/tui-winsource.c (tui_show_source_line): Use
11513 tui_set_reverse_mode instead of setting A_STANDOUT.
11514 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11515 New setter methods.
11516
11517 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11518
11519 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11520 Handle tabs.
11521
11522 2019-03-18 Tom Tromey <tromey@adacore.com>
11523
11524 * ada-lang.c (empty_array): Add "high" parameter.
11525 (ada_evaluate_subexp): Update.
11526
11527 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11528
11529 * unittests/string_view-selftests.c: Define
11530 _initialize_string_view_selftests unconditionally.
11531
11532 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11533
11534 PR gdb/24350
11535 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11536
11537 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11538
11539 PR gdb/24351
11540 * windows-nat.c (display_selector): Fix format specifiers.
11541
11542 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11543
11544 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11545 tui_refill_source_window instead of tui_refresh_win, to update the
11546 current execution line. This fixes redisplay of the current line
11547 when stepping through the code with "next" or "step".
11548
11549 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11550
11551 * source-cache.c (source_cache::get_source_lines): Call
11552 find_source_lines to initialize s->nlines. This fixes vertical
11553 scrolling of TUI source window when the DOWN arrow is pressed.
11554
11555 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11556
11557 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11558 linux-thread-db.c (_initialize_thread_db): Likewise.
11559
11560 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11561
11562 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11563 wclrtoeol in tui_show_source_line". This reverts changes made in
11564 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11565
11566 2019-03-15 Tom Tromey <tom@tromey.com>
11567
11568 * symtab.h (struct minimal_symbol): Derive from
11569 general_symbol_info.
11570 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11571 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11572 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11573 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11574 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11575 (MSYMBOL_SEARCH_NAME): Update.
11576 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11577 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11578 * minsyms.c (minimal_symbol_reader::record_full): Update.
11579
11580 2019-03-15 Tom Tromey <tom@tromey.com>
11581
11582 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11583
11584 2019-03-15 Tom Tromey <tom@tromey.com>
11585
11586 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11587 unique_xmalloc_ptr.
11588 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11589 Update.
11590 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11591 (build_minimal_symbol_hash_tables)
11592 (minimal_symbol_reader::install): Update.
11593
11594 2019-03-15 Tom Tromey <tom@tromey.com>
11595
11596 * symtab.c (create_demangled_names_hash): Update.
11597 (symbol_set_names): Update.
11598 * objfiles.h (struct objfile_per_bfd_storage)
11599 <demangled_names_hash>: Now an htab_up.
11600 * objfiles.c (objfile_per_bfd_storage): Simplify.
11601
11602 2019-03-15 Tom Tromey <tom@tromey.com>
11603
11604 * objfiles.h (struct objfile_per_bfd_storage): Declare
11605 destructor.
11606 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11607 New.
11608 (get_objfile_bfd_data): Use new. Don't initialize
11609 language_of_main.
11610 (free_objfile_per_bfd_storage): Remove.
11611 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11612
11613 2019-03-15 Tom Tromey <tom@tromey.com>
11614
11615 * symfile.c (reread_symbols): Update.
11616 * objfiles.c (objfile::objfile): Update.
11617 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11618 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11619 comment.
11620 (minimal_symbol_reader::install): Update.
11621 (terminate_minimal_symbol_table): Remove.
11622 * jit.c (jit_object_close_impl): Update.
11623
11624 2019-03-15 Tom Tromey <tom@tromey.com>
11625
11626 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11627 initializations.
11628
11629 2019-03-15 Tom Tromey <tom@tromey.com>
11630
11631 * objfiles.h (struct objfile_per_bfd_storage)
11632 <demangled_hash_languages>: Now a bitset.
11633 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11634 (lookup_minimal_symbol): Update.
11635
11636 2019-03-15 Tom Tromey <tom@tromey.com>
11637
11638 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11639 Don't return the symbol.
11640 * coffread.c (record_minimal_symbol): Use record_full.
11641
11642 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11643
11644 The MS-Windows port of ncurses fails to switch to a color pair if
11645 one or both of the colors are the implicit default colors. This
11646 change records the default colors when TUI is initialized, and
11647 then specifies them explicitly when a color pair uses the default
11648 colors. This allows color styling in TUI mode on MS-Windows.
11649
11650 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11651 ncurses_norm_attr.
11652 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11653 colors in ncurses_norm_attr.
11654 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11655 "none", replace it with the default color recorded in
11656 ncurses_norm_attr.
11657
11658 2019-03-14 Tom Tromey <tromey@adacore.com>
11659
11660 * source-cache.h (class source_cache) <get_source_lines>: Return
11661 std::string.
11662 * source-cache.c (source_cache::extract_lines): Handle case where
11663 first_pos==npos. Return std::string.
11664 (source_cache::get_source_lines): Update.
11665
11666 2019-03-14 Tom Tromey <tromey@adacore.com>
11667
11668 * NEWS: Add item for "style sources" commands.
11669 * source-cache.c (source_cache::get_source_lines): Check
11670 source_styling.
11671 * cli/cli-style.c (source_styling): New global.
11672 (_initialize_cli_style): Add "style sources" commands.
11673 (show_style_sources): New function.
11674 * cli/cli-style.h (source_styling): Declare.
11675
11676 2019-03-14 Pedro Alves <palves@redhat.com>
11677 Tom Tromey <tromey@adacore.com>
11678
11679 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11680 * tui/tui-winsource.c (tui_refill_source_window): New function,
11681 from...
11682 (tui_horizontal_source_scroll): ... here. Move some logic.
11683 * cli/cli-style.c (set_style_enabled): Notify new observable.
11684 * tui/tui-hooks.c (tui_redisplay_source): New function.
11685 (tui_attach_detach_observers): Attach or detach
11686 tui_redisplay_source.
11687 * observable.h (source_styling_changed): New observable.
11688 * observable.c: Define source_styling_changed observable.
11689
11690 2019-03-13 Tom Tromey <tromey@adacore.com>
11691
11692 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11693 (i386_gnu_nat_target::store_registers): Update.
11694 * target-debug.h (target_debug_print_std_string): New macro.
11695 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11696 * windows-tdep.c (display_one_tib): Update.
11697 * tui/tui-stack.c (tui_make_status_line): Update.
11698 * top.c (print_inferior_quit_action): Update.
11699 * thread.c (thr_try_catch_cmd): Update.
11700 (add_thread_with_info): Update.
11701 (thread_target_id_str): Update.
11702 (thr_try_catch_cmd): Update.
11703 (thread_command): Update.
11704 (thread_find_command): Update.
11705 * record-btrace.c (record_btrace_target::info_record)
11706 (record_btrace_resume_thread, record_btrace_target::resume)
11707 (record_btrace_cancel_resume, record_btrace_step_thread)
11708 (record_btrace_target::wait, record_btrace_target::wait)
11709 (record_btrace_target::wait, record_btrace_target::stop): Update.
11710 * progspace.c (print_program_space): Update.
11711 * process-stratum-target.c
11712 (process_stratum_target::thread_address_space): Update.
11713 * linux-fork.c (linux_fork_mourn_inferior)
11714 (detach_checkpoint_command, info_checkpoints_command)
11715 (linux_fork_context): Update.
11716 (linux_fork_detach): Update.
11717 (class scoped_switch_fork_info): Update.
11718 (delete_checkpoint_command): Update.
11719 * infrun.c (follow_fork_inferior): Update.
11720 (follow_fork_inferior): Update.
11721 (proceed_after_vfork_done): Update.
11722 (handle_vfork_child_exec_or_exit): Update.
11723 (follow_exec): Update.
11724 (displaced_step_prepare_throw): Update.
11725 (displaced_step_restore): Update.
11726 (start_step_over): Update.
11727 (resume_1): Update.
11728 (clear_proceed_status_thread): Update.
11729 (proceed): Update.
11730 (print_target_wait_results): Update.
11731 (do_target_wait): Update.
11732 (context_switch): Update.
11733 (stop_all_threads): Update.
11734 (restart_threads): Update.
11735 (finish_step_over): Update.
11736 (handle_signal_stop): Update.
11737 (switch_back_to_stepped_thread): Update.
11738 (keep_going_pass_signal): Update.
11739 (print_exited_reason): Update.
11740 (normal_stop): Update.
11741 * inferior.c (inferior_pid_to_str): Change return type.
11742 (print_selected_inferior): Update.
11743 (add_inferior): Update.
11744 (detach_inferior): Update.
11745 * dummy-frame.c (fprint_dummy_frames): Update.
11746 * dcache.c (dcache_info_1): Update.
11747 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11748 (btrace_fetch, btrace_clear): Update.
11749 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11750 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11751 type.
11752 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11753 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11754 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11755 * gdbarch.c, gdbarch.h: Rebuild.
11756 * gdbarch.sh (core_pid_to_str): Change return type.
11757 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11758 return type.
11759 (windows_nat_target::pid_to_str): Change return type.
11760 (windows_delete_thread): Update.
11761 (windows_nat_target::attach): Update.
11762 (windows_nat_target::files_info): Update.
11763 * target-delegates.c: Rebuild.
11764 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11765 return type.
11766 (sol_thread_target::pid_to_str): Change return type.
11767 * remote.c (class remote_target) <pid_to_str>: Change return
11768 type.
11769 (remote_target::pid_to_str): Change return type.
11770 (extended_remote_target::attach, remote_target::remote_stop_ns)
11771 (remote_target::remote_notif_remove_queued_reply)
11772 (remote_target::push_stop_reply, remote_target::disable_btrace):
11773 Update.
11774 (extended_remote_target::attach): Update.
11775 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11776 type.
11777 (gdbsim_target::pid_to_str): Change return type.
11778 * ravenscar-thread.c (struct ravenscar_thread_target)
11779 <pid_to_str>: Change return type.
11780 (ravenscar_thread_target::pid_to_str): Change return type.
11781 * procfs.c (class procfs_target) <pid_to_str>: Change return
11782 type.
11783 (procfs_target::pid_to_str): Change return type.
11784 (procfs_target::attach): Update.
11785 (procfs_target::detach): Update.
11786 (procfs_target::fetch_registers): Update.
11787 (procfs_target::store_registers): Update.
11788 (procfs_target::wait): Update.
11789 (procfs_target::files_info): Update.
11790 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11791 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11792 return type.
11793 (nto_procfs_target::pid_to_str): Change return type.
11794 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11795 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11796 return type.
11797 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11798 (exit_lwp): Update.
11799 (attach_proc_task_lwp_callback, get_detach_signal)
11800 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11801 (linux_nat_target::resume, wait_lwp, stop_callback)
11802 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11803 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11804 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11805 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11806 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11807 type.
11808 (inf_ptrace_target::attach): Update.
11809 (inf_ptrace_target::files_info): Update.
11810 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11811 type.
11812 (go32_nat_target::pid_to_str): Change return type.
11813 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11814 (gnu_nat_target::wait): Update.
11815 (gnu_nat_target::wait): Update.
11816 (gnu_nat_target::resume): Update.
11817 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11818 (fbsd_nat_target::wait): Update.
11819 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11820 type.
11821 (darwin_nat_target::attach): Update.
11822 * corelow.c (class core_target) <pid_to_str>: Change return type.
11823 (core_target::pid_to_str): Change return type.
11824 * target.c (normal_pid_to_str): Change return type.
11825 (default_pid_to_str): Likewise.
11826 (target_pid_to_str): Change return type.
11827 (target_translate_tls_address): Update.
11828 (target_announce_detach): Update.
11829 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11830 return type.
11831 (bsd_uthread_target::pid_to_str): Change return type.
11832 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11833 type.
11834 (bsd_kvm_target::pid_to_str): Change return type.
11835 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11836 return type.
11837 (aix_thread_target::pid_to_str): Change return type.
11838 * target.h (struct target_ops) <pid_to_str>: Change return type.
11839 (target_pid_to_str, normal_pid_to_str): Likewise.
11840 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11841 type.
11842 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11843 type.
11844 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11845 return type.
11846 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11847 type.
11848 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11849 type.
11850 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11851 return type.
11852
11853 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11854
11855 * NEWS: Mention that the new default MI version is 3. Mention
11856 changes to the output of commands and events that deal with
11857 multi-location breakpoints.
11858 * breakpoint.c: Include "mi/mi-out.h".
11859 (print_one_breakpoint): Change output syntax if using MI version
11860 >= 3.
11861 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11862 New.
11863 (mi_multi_location_breakpoint_output_fixed): New.
11864 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11865 (mi_cmd_fix_multi_location_breakpoint_output): New.
11866 (mi_multi_location_breakpoint_output_fixed): New.
11867 * mi/mi-cmds.c (mi_cmds): Register command
11868 -fix-multi-location-breakpoint-output.
11869 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11870 interpreter "mi".
11871
11872 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11873
11874 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11875 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11876 instantiate mi_ui_out based on interpreter name.
11877 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11878 * mi/mi-main.c (mi_load_progress): Likewise.
11879
11880 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11881
11882 * NEWS: Combine separate "New targets" sections for 8.3.
11883
11884 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11885
11886 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11887 (ppcfbsd_init_abi): Install gdbarch
11888 "fetch_tls_load_module_address" and "get_thread_local_address"
11889 methods.
11890
11891 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11892
11893 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11894 (riscv_fbsd_init_abi): Install gdbarch
11895 "fetch_tls_load_module_address" and "get_thread_local_address"
11896 methods.
11897
11898 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11899
11900 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11901 (i386fbsd_init_abi): Install gdbarch
11902 "fetch_tls_load_module_address" and "get_thread_local_address"
11903 methods.
11904
11905 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11906
11907 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11908 (amd64fbsd_init_abi): Install gdbarch
11909 "fetch_tls_load_module_address" and "get_thread_local_address"
11910 methods.
11911
11912 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11913
11914 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11915 (struct fbsd_pspace_data): New type.
11916 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11917 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11918 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11919 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11920 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11921
11922 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11923
11924 * gdbtypes.c (lookup_struct_elt): New function.
11925 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11926 * gdbtypes.h (struct struct_elt): New type.
11927 (lookup_struct_elt): New prototype.
11928
11929 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11930
11931 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11932 remove disabled code block.
11933
11934 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11935
11936 * gdbarch.sh (get_thread_local_address): New method.
11937 * gdbarch.h, gdbarch.c: Regenerate.
11938 * target.c (target_translate_tls_address): Use
11939 gdbarch_get_thread_local_address if present instead of
11940 target::get_thread_local_address.
11941
11942 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11943
11944 * target.h (target::get_thread_local_address): Update comment.
11945
11946 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11947
11948 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11949 objfile->separate_debug_objfile_backlink if not NULL.
11950
11951 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11952
11953 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11954 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11955 (amd64bsd_store_inferior_registers): Likewise.
11956 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11957 Enable segment base registers.
11958 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11959 PT_GETFSBASE and PT_GETGSBASE.
11960 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11961 PT_SETGSBASE.
11962 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11963 segment base registers.
11964 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11965
11966 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11967
11968 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11969 Update calls to i386_target_description to add 'segments'
11970 parameter.
11971 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11972 add segment base registers.
11973 * arch/i386.c (i386_create_target_description): Add 'segments'
11974 parameter to enable segment base registers.
11975 * arch/i386.h (i386_create_target_description): Likewise.
11976 * features/i386/32bit-segments.xml: New file.
11977 * features/i386/32bit-segments.c: Generate.
11978 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11979 call to i386_target_description to add 'segments' parameter.
11980 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11981 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11982 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11983 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11984 if feature is present.
11985 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11986 Add 'segments' parameter to call to i386_target_description.
11987 (i386_target_description): Add 'segments' parameter to enable
11988 segment base registers.
11989 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11990 to call to i386_target_description.
11991 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11992 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11993 Define I386_NUM_REGS.
11994 (i386_target_description): Add 'segments' parameter to enable
11995 segment base registers.
11996
11997 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11998
11999 PR/24325
12000 * source-cache.c: #undef open and close, to avoid unresolved
12001 externals during linking.
12002
12003 2019-03-12 Tom Tromey <tromey@adacore.com>
12004
12005 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12006 const. Add initializers.
12007 (_initialize_remote): Don't initialize ptid globals.
12008
12009 2019-03-12 Pedro Alves <palves@redhat.com>
12010
12011 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12012
12013 2019-03-12 Pedro Alves <palves@redhat.com>
12014
12015 * cp-name-parser.y (main): Remove unused 'len' variable.
12016
12017 2019-03-12 Tom Tromey <tromey@adacore.com>
12018
12019 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12020 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12021
12022 2019-03-12 Tom Tromey <tromey@adacore.com>
12023
12024 * linux-nat.c (iterate_over_lwps): Update.
12025 (stop_callback): Remove parameter.
12026 (stop_wait_callback, detach_callback, resume_set_callback)
12027 (select_singlestep_lwp_callback, set_ignore_sigint)
12028 (status_callback, resumed_callback, resume_clear_callback)
12029 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12030 data parameter.
12031 (linux_nat_target::detach, linux_nat_target::resume)
12032 (linux_stop_and_wait_all_lwps, select_event_lwp)
12033 (linux_nat_filter_event, linux_nat_wait_1)
12034 (linux_nat_target::kill, linux_nat_target::stop)
12035 (linux_nat_target::stop): Update.
12036 (linux_nat_resume_callback): Change type.
12037 (resume_stopped_resumed_lwps, count_events_callback)
12038 (select_event_lwp_callback): Likewise.
12039 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12040 * arm-linux-nat.c (struct update_registers_data): Remove.
12041 (update_registers_callback): Change type.
12042 (arm_linux_insert_hw_breakpoint1): Update.
12043 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12044 parameter.
12045 (x86_linux_dr_set_addr): Update.
12046 (x86_linux_dr_set_control): Update.
12047 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12048 (iterate_over_lwps): Use gdb::function_view.
12049 * nat/aarch64-linux-hw-point.c (struct
12050 aarch64_dr_update_callback_param): Remove.
12051 (debug_reg_change_callback): Change type.
12052 (aarch64_notify_debug_reg_change): Update.
12053 * s390-linux-nat.c (s390_refresh_per_info): Update.
12054
12055 2019-03-11 Tom Tromey <tromey@adacore.com>
12056
12057 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12058 redundant assignment to "this_cu".
12059
12060 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12061
12062 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12063
12064 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12065
12066 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12067 from...
12068 (rank_one_type): ... this.
12069
12070 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12071
12072 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12073 from...
12074 (rank_one_type): ... this.
12075
12076 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12077
12078 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12079 from...
12080 (rank_one_type): ... this.
12081
12082 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12083
12084 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12085 from...
12086 (rank_one_type): ... this.
12087
12088 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12089
12090 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12091 from...
12092 (rank_one_type): ... this.
12093
12094 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12095
12096 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12097 from...
12098 (rank_one_type): ... this.
12099
12100 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12101
12102 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12103 from...
12104 (rank_one_type): ... this.
12105
12106 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12107
12108 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12109 from...
12110 (rank_one_type): ... this.
12111
12112 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12113
12114 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12115 from...
12116 (rank_one_type): ... this.
12117
12118 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12119
12120 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12121 from...
12122 (rank_one_type): ... this.
12123
12124 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12125
12126 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12127 from...
12128 (rank_one_type): ... this.
12129
12130 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12131
12132 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12133 from...
12134 (rank_one_type): ... this.
12135
12136 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12137
12138 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12139 inferior-events' shows the example events.
12140
12141 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12142
12143 Support styling on native MS-Windows console
12144
12145 PR/24315
12146 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12147 on MS-Windows if $TERM is not defined.
12148
12149 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12150
12151 * posix-hdep.c (gdb_console_fputs):
12152 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12153 functions.
12154 * ui-file.h (gdb_console_fputs): Add prototype.
12155
12156 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12157 back to fputs only if the former returns zero.
12158
12159 2019-03-07 Tom Tromey <tom@tromey.com>
12160
12161 * symmisc.c (print_symbol_bcache_statistics): Update.
12162 (print_objfile_statistics): Update.
12163 * symfile.c (allocate_symtab): Update.
12164 * stabsread.c: Don't include bcache.h.
12165 * psymtab.h (struct psymbol_bcache): Don't declare.
12166 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12167 (psymbol_bcache_init, psymbol_bcache_free)
12168 (psymbol_bcache_get_bcache): Don't declare.
12169 * psymtab.c (struct psymbol_bcache): Remove.
12170 (psymtab_storage::psymtab_storage): Update.
12171 (psymtab_storage::~psymtab_storage): Update.
12172 (psymbol_bcache_init, psymbol_bcache_free)
12173 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12174 (add_psymbol_to_bcache): Update.
12175 (allocate_psymtab): Update.
12176 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12177 macro_cache>: No longer pointers.
12178 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12179 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12180 * macrotab.c (macro_bcache): Update.
12181 * macroexp.c: Don't include bcache.h.
12182 * gdbtypes.c (check_types_worklist): Update.
12183 (types_deeply_equal): Remove TRY/CATCH. Update.
12184 * elfread.c (elf_symtab_read): Update.
12185 * dwarf2read.c: Don't include bcache.h.
12186 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12187 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12188 (print_bcache_statistics, bcache_memory_used): Don't declare.
12189 (struct bcache): Move from bcache.c. Add constructor, destructor,
12190 methods. Rename all data members.
12191 * bcache.c (struct bcache): Move to bcache.h.
12192 (bcache::expand_hash_table): Rename from expand_hash_table.
12193 (bcache): Remove.
12194 (bcache::insert): Rename from bcache_full.
12195 (bcache::compare): Rename from bcache_compare.
12196 (bcache_xmalloc): Remove.
12197 (bcache::~bcache): Rename from bcache_xfree.
12198 (bcache::print_statistics): Rename from print_bcache_statistics.
12199 (bcache::memory_used): Rename from bcache_memory_used.
12200
12201 2019-03-07 Pedro Alves <palves@redhat.com>
12202
12203 * infrun.c (normal_stop): Also check for
12204 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12205
12206 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * f-lang.c (value_from_host_double): Moved to...
12209 * value.c (value_from_host_double): ...here.
12210 * value.h (value_from_host_double): Declare.
12211 * guile/scm-math.c (vlscm_convert_typed_number): Use
12212 value_from_host_double.
12213 (vlscm_convert_number): Likewise.
12214 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12215 * python/py-value.c (convert_value_from_python): Likewise.
12216
12217 2019-03-06 Tom Tromey <tom@tromey.com>
12218
12219 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12220
12221 2019-03-06 Tom Tromey <tom@tromey.com>
12222
12223 * utils.h (free_current_contents): Don't declare.
12224 * utils.c (free_current_contents): Remove.
12225
12226 2019-03-06 Tom Tromey <tom@tromey.com>
12227
12228 * top.c (quit_force): Update.
12229 * main.c (captured_command_loop): Update.
12230 * common/new-op.c (operator new): Update.
12231 * common/common-exceptions.c (struct catcher)
12232 <save_cleanup_chain>: Remove member.
12233 (exceptions_state_mc_init): Update.
12234 (exception_try_scope_entry): Return nullptr.
12235 (exception_try_scope_exit, exception_rethrow)
12236 (throw_exception_sjlj, throw_exception_cxx): Update.
12237 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12238 (all_cleanups, do_cleanups, discard_cleanups)
12239 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12240 (restore_cleanups, restore_final_cleanups): Don't declare.
12241 (do_final_cleanups): Remove parameter.
12242 * common/cleanups.c (cleanup_chain, make_cleanup)
12243 (make_cleanup_dtor, all_cleanups, do_cleanups)
12244 (discard_my_cleanups, discard_cleanups)
12245 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12246 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12247 (null_cleanup): Remove.
12248 (do_final_cleanups): Remove parameter.
12249
12250 2019-03-06 Tom Tromey <tom@tromey.com>
12251
12252 * remote.c (remote_target::remote_parse_stop_reply): Use
12253 unique_xmalloc_ptr.
12254
12255 2019-03-06 Tom Tromey <tom@tromey.com>
12256
12257 * stabsread.c (struct stabs_field_info): Rename from field_info.
12258 <list, fnlist>: Add initializers.
12259 <obstack>: New member.
12260 (read_member_functions, read_struct_fields, read_baseclasses):
12261 Allocate on obstack. Don't use cleanups.
12262 (read_one_struct_field, read_member_functions, read_struct_fields)
12263 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12264 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12265 (read_struct_type): Update.
12266
12267 2019-03-06 Tom Tromey <tom@tromey.com>
12268
12269 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12270 * common/filestuff.h (make_cleanup_close): Don't declare.
12271 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12272 Remove.
12273
12274 2019-03-06 Tom Tromey <tom@tromey.com>
12275
12276 * solib-aix.c: Use make_scope_exit.
12277
12278 2019-03-06 Tom Tromey <tom@tromey.com>
12279
12280 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12281 Use make_scope_exit.
12282
12283 2019-03-06 Tom Tromey <tom@tromey.com>
12284
12285 * solib-svr4.c (disable_probes_interface): Remove parameter.
12286 (svr4_handle_solib_event): Use make_scope_exit.
12287
12288 2019-03-06 Tom Tromey <tom@tromey.com>
12289
12290 * remote.c (struct stop_reply_deleter): Remove.
12291 (stop_reply_up): Update.
12292 (struct stop_reply): Derive from notif_event. Don't typedef.
12293 <regcache>: Now a std::vector.
12294 (stop_reply_xfree): Remove.
12295 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12296 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12297 (remote_target::discard_pending_stop_replies): Use delete.
12298 (remote_target::remote_parse_stop_reply): Update.
12299 (remote_target::process_stop_reply): Update.
12300 * remote-notif.h (struct notif_event): Add virtual destructor.
12301 Remove "dtr" member.
12302 (struct notif_client) <alloc_event>: Return a unique_ptr.
12303 (notif_event_xfree): Don't declare.
12304 (notif_event_up): New typedef.
12305 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12306 (notif_event_xfree, do_notif_event_xfree): Remove.
12307 (remote_notif_state_xfree): Update.
12308
12309 2019-03-06 Tom Tromey <tom@tromey.com>
12310
12311 * infrun.c (displaced_step_clear_cleanup): Now a
12312 forward_scope_exit type.
12313 (displaced_step_prepare_throw): Update.
12314 (displaced_step_fixup): Update.
12315
12316 2019-03-06 Tom Tromey <tom@tromey.com>
12317
12318 * inferior.h (class inferior): Update comment.
12319 * gdbthread.h (class thread_info): Update comment.
12320
12321 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12322 Tom Tromey <tom@tromey.com>
12323
12324 * stabsread.h (struct stab_section_list): Remove.
12325 (coffstab_build_psymtabs): Update.
12326 * dbxread.c (symbuf_sections): Now a std::vector.
12327 (sect_idx): New global.
12328 (fill_symbuf): Update.
12329 (coffstab_build_psymtabs): Change type of stabsects parameter.
12330 Update.
12331 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12332 std::vector.
12333 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12334 (coff_locate_sections): Update.
12335 (coff_symfile_read): Remove cleanups. Update.
12336 (init_stringtab): Add storage parameter.
12337 (free_stringtab, free_stringtab_cleanup): Remove.
12338 (init_lineno): Add storage parameter.
12339 (free_linetab, free_linetab_cleanup): Remove.
12340
12341 2019-03-06 Pedro Alves <palves@redhat.com>
12342
12343 * linux-fork.c (fork_info::clobber_regs): Delete.
12344 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12345 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12346 comment. Adjust.
12347 (scoped_switch_fork_info::scoped_switch_fork_info)
12348 (checkpoint_command, linux_fork_context): Adjust
12349 fork_save_infrun_state calls.
12350
12351 2019-03-06 Pedro Alves <palves@redhat.com>
12352
12353 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12354 (inf_has_multiple_threads): Return 'bool' and rewrite using
12355 inferior_info::threads().
12356
12357 2019-03-06 Pedro Alves <palves@redhat.com>
12358
12359 * linux-fork.c: Include <list>.
12360 (fork_list): Now a std::list instance.
12361 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12362 (forks_exist_p, find_last_fork): Adjust.
12363 (new_fork): Delete.
12364 (one_fork_p): New.
12365 (add_fork): Adjust.
12366 (free_fork): Delete, folded into fork_info::~fork_info().
12367 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12368 Adjust.
12369 (init_fork_list): Delete.
12370 (linux_fork_killall, linux_fork_mourn_inferior)
12371 (linux_fork_detach, info_checkpoints_command): Adjust.
12372 (_initialize_linux_fork): No longer call init_fork_list.
12373
12374 2019-03-06 Pedro Alves <palves@redhat.com>
12375
12376 * linux-fork.c (new_fork): New, split out of ...
12377 (add_fork): ... this. Return void. Move "first fork" special
12378 case from here, to ...
12379 (checkpoint_command): ... here.
12380 * linux-linux.h (add_fork): Return void.
12381
12382 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12383
12384 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12385
12386 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12387 Chris January <chris.january@arm.com>
12388 David Lecomber <david.lecomber@arm.com>
12389
12390 * f-exp.y: New token, UNOP_INTRINSIC.
12391 (exp): New pattern using UNOP_INTRINSIC token.
12392 (f77_keywords): Add 'abs' keyword.
12393 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12394 (value_from_host_double): New function.
12395 (evaluate_subexp_f): Support UNOP_ABS.
12396
12397 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12398
12399 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12400 types.
12401
12402 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12403
12404 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12405 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12406 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12407
12408 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12409
12410 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12411
12412 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12413 Chris January <chris.january@arm.com>
12414
12415 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12416 * f-exp.y: Define 'KIND' token.
12417 (exp): New pattern for KIND expressions.
12418 (ptype): Handle types with a kind extension.
12419 (direct_abs_decl): Extend to spot kind extensions.
12420 (f77_keywords): Add 'kind' to the list.
12421 (push_kind_type): New function.
12422 (convert_to_kind_type): New function.
12423 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12424 * parse.c (operator_length_standard): Likewise.
12425 * parser-defs.h (enum type_pieces): Add tp_kind.
12426 * std-operator.def: Add UNOP_KIND.
12427
12428 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12429
12430 * f-exp.y (f_parse): Set yydebug.
12431
12432 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12433
12434 * f-lang.c (evaluate_subexp_f): New function.
12435 (exp_descriptor_f): New global.
12436 (f_language_defn): Use exp_descriptor_f instead of
12437 exp_descriptor_standard.
12438
12439 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12440
12441 * f-exp.y (struct token): Add comments.
12442 (dot_ops): Remove uppercase versions and the end marker.
12443 (f77_keywords): Likewise.
12444 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12445 entries in the dot_ops array are case insensitive, and use
12446 strncasecmp to compare strings. Also some whitespace cleanup in
12447 this area. Similar for the f77_keywords array, except entries in
12448 this list might be case sensitive.
12449
12450 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12451
12452 * f-exp.y (struct f77_boolean_val): Add comments.
12453 (boolean_values): Remove uppercase versions, and end marker.
12454 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12455 and use strncasecmp to achieve case insensitivity. Additionally,
12456 perform whitespace cleanup around this code.
12457
12458 2019-03-06 Tom Tromey <tromey@adacore.com>
12459
12460 * remote-sim.c (gdbsim_target_open): Use result of
12461 gdb_argv::release.
12462
12463 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12464 Dirk Schubert <dirk.schubert@arm.com>
12465 Chris January <chris.january@arm.com>
12466
12467 * eval.c (evaluate_subexp_standard): Call Fortran argument
12468 wrapping logic.
12469 * f-lang.c (struct value): A value which can be passed into a
12470 Fortran function call.
12471 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12472 where appropriate.
12473 (struct type): Value ready for a Fortran function call.
12474 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12475 is needed.
12476 * f-lang.h (fortran_argument_convert): Declaration.
12477 (fortran_preserve_arg_pointer): Declaration.
12478 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12479
12480 2019-03-05 Tom Tromey <tromey@adacore.com>
12481
12482 * python/py-prettyprint.c (print_string_repr): Remove #if.
12483 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12484
12485 2019-03-05 Tom Tromey <tromey@adacore.com>
12486
12487 * target.c (the_dummy_target): Move later. Change type to
12488 "dummy_target".
12489 (initialize_targets): Don't initialize the_dummy_target.
12490
12491 2019-03-05 Tom Tromey <tromey@adacore.com>
12492
12493 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12494 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12495
12496 2019-03-05 Tom Tromey <tromey@adacore.com>
12497
12498 * windows-nat.c (windows_nat_target::attach)
12499 (windows_nat_target::detach): Don't call gdb_flush.
12500 * valprint.c (generic_val_print, val_print, val_print_string):
12501 Don't call gdb_flush.
12502 * utils.c (defaulted_query): Don't call gdb_flush.
12503 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12504 * target.c (target_announce_detach): Don't call gdb_flush.
12505 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12506 * remote.c (extended_remote_target::attach): Don't call
12507 gdb_flush.
12508 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12509 * printcmd.c (do_examine): Don't call gdb_flush.
12510 (info_display_command): Don't call gdb_flush.
12511 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12512 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12513 * memattr.c (info_mem_command): Don't call gdb_flush.
12514 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12515 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12516 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12517 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12518 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12519 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12520 (gnu_nat_target::detach): Don't call gdb_flush.
12521 * f-valprint.c (f_val_print): Don't call gdb_flush.
12522 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12523 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12524 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12525 gdb_flush.
12526 * c-valprint.c (c_val_print): Don't call gdb_flush.
12527 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12528
12529 2019-03-05 Tom Tromey <tromey@adacore.com>
12530
12531 * varobj.c (update_dynamic_varobj_children): Update.
12532 (install_default_visualizer): Use reset, not release.
12533 * value.c (set_internalvar): Update.
12534 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12535 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12536 ATTRIBUTE_UNUSED_RESULT.
12537
12538 2019-03-05 Tom Tromey <tromey@adacore.com>
12539
12540 * remote.c (class scoped_remote_fd) <release>: Add
12541 ATTRIBUTE_UNUSED_RESULT.
12542
12543 2019-03-05 Tom Tromey <tromey@adacore.com>
12544
12545 * macroexp.c (struct macro_buffer) <release>: Add
12546 ATTRIBUTE_UNUSED_RESULT.
12547
12548 2019-03-05 Tom Tromey <tromey@adacore.com>
12549
12550 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12551 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12552 ATTRIBUTE_UNUSED_RESULT.
12553
12554 2019-03-05 Tom Tromey <tromey@adacore.com>
12555
12556 * common/scoped_fd.h (class scoped_fd) <release>: Add
12557 ATTRIBUTE_UNUSED_RESULT.
12558
12559 2019-03-05 Tom Tromey <tromey@adacore.com>
12560
12561 * parser-defs.h (struct parser_state) <release>: Add
12562 ATTRIBUTE_UNUSED_RESULT.
12563
12564 2019-03-05 Tom Tromey <tromey@adacore.com>
12565
12566 * utils.h (class gdb_argv) <release>: Add
12567 ATTRIBUTE_UNUSED_RESULT.
12568 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12569
12570 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12571
12572 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12573 for-loop range, to avoid compiler warnings.
12574
12575 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12576 avoid compiler warnings about unused variables.
12577
12578 * NEWS: Mention end of support for native debugging on MS-Windows
12579 before XP.
12580
12581 PR gdb/24292
12582 * common/netstuff.c:
12583 * gdbserver/gdbreplay.c
12584 * gdbserver/remote-utils.c:
12585 * ser-tcp.c:
12586 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12587 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12588 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12589 'getaddrinfo' and 'freeaddrinfo' were not available before
12590 Windows XP, and mingw.org's MinGW headers by default define
12591 _WIN32_WINNT to 0x500.
12592
12593 2019-03-01 Gary Benson <gbenson@redhat.com>
12594
12595 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12596
12597 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12598 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12599
12600 PR gdb/8527
12601 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12602 set_sigint_trap, clear_sigint_trap.
12603
12604 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12605
12606 * target.c (target_detach): Clear the regcache and the
12607 frame cache.
12608
12609 2019-02-27 Pedro Alves <palves@redhat.com>
12610
12611 * utils.c (set_screen_size): When we cap the height/width sizes,
12612 tweak the corresponding command variable to show "unlimited":
12613
12614 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12615 Pedro Alves <palves@redhat.com>
12616
12617 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12618 before calling rl_set_screen_size.
12619
12620 2019-02-27 Tom Tromey <tromey@adacore.com>
12621
12622 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12623 define.
12624 * python/py-value.c: Remove Python 2.4 workaround.
12625 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12626 workaround.
12627 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12628 Python 2.4 workaround.
12629 * python/python-internal.h: Remove Python 2.4 comment.
12630 (Py_ssize_t): Don't define.
12631 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12632 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12633 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12634 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12635 * python/python.c (do_start_initialization): Remove Python 2.4
12636 workaround.
12637 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12638 (print_children): Remove Python 2.4 workaround.
12639 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12640 workaround.
12641 (CHARBUFFERPROC_NAME): Remove.
12642 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12643 Python 2.4 workaround.
12644
12645 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12646
12647 * NEWS: Note minimum Python version.
12648
12649 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12650
12651 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12652 code from these functions. Remove corresponding ifdefs. Use
12653 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12654 Remove gotos and target of gotos.
12655 (infpy_search_memory): Likewise.
12656
12657 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12658
12659 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12660 (hppa_gdbarch_init): Don't register deleted functions with
12661 gdbarch.
12662
12663 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12664
12665 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12666 (h8300_unwind_sp): Delete.
12667 (h8300_dummy_id): Delete.
12668 (h8300_gdbarch_init): Don't register deleted functions with
12669 gdbarch.
12670
12671 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12672
12673 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12674 (ft32_unwind_pc): Delete.
12675 (ft32_unwind_sp): Delete.
12676 (ft32_gdbarch_init): Don't register deleted functions with
12677 gdbarch.
12678
12679 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12680
12681 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12682 (frv_unwind_pc): Delete.
12683 (frv_unwind_sp): Delete.
12684 (frv_gdbarch_init): Don't register deleted functions with
12685 gdbarch.
12686
12687 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12688
12689 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12690 (riscv_unwind_pc): Delete.
12691 (riscv_unwind_sp): Delete.
12692 (riscv_gdbarch_init): Don't register deleted functions with
12693 gdbarch.
12694
12695 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12696
12697 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12698 (csky_unwind_pc): Delete.
12699 (csky_unwind_sp): Delete.
12700 (csky_gdbarch_init): Don't register deleted functions with
12701 gdbarch.
12702
12703 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12704
12705 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12706 (cris_unwind_pc): Delete.
12707 (cris_unwind_sp): Delete.
12708 (cris_gdbarch_init): Don't register deleted functions with
12709 gdbarch.
12710
12711 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12712
12713 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12714 (bfin_unwind_pc): Delete.
12715 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12716
12717 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12718
12719 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12720 (arm_unwind_pc): Delete.
12721 (arm_unwind_sp): Delete.
12722 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12723
12724 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12725
12726 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12727 (arc_unwind_pc): Delete.
12728 (arc_unwind_sp): Delete.
12729 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12730
12731 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12732
12733 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12734 (alpha_unwind_pc): Delete.
12735 (alpha_gdbarch_init): Don't register deleted functions with
12736 gdbarch.
12737
12738 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12739
12740 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12741 (aarch64_unwind_pc): Delete.
12742 (aarch64_unwind_sp): Delete.
12743 (aarch64_gdbarch_init): Don't register deleted functions with
12744 gdbarch.
12745
12746 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12747
12748 * gdbtypes.c (type_align): Don't consider static members when
12749 computing structure alignment.
12750
12751 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12752
12753 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12754 return 0 for other types.
12755 * arch-utils.c (default_type_align): Always return 0.
12756 * gdbarch.h: Regenerate.
12757 * gdbarch.sh (type_align): Extend comment.
12758 * gdbtypes.c (type_align): Add additional comments, always call
12759 gdbarch_type_align before applying the default rules.
12760 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12761 generic code will then apply a suitable default.
12762 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12763 types, return 0 for other types.
12764
12765 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12766
12767 * NEWS: Create a new section for the next release branch.
12768 Rename the section of the current branch, now that it has
12769 been cut.
12770
12771 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12772
12773 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12774 * version.in: Bump version to 8.3.50.DATE-git.
12775
12776 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12777
12778 * aix-thread.c (ptid_cmp): Remove unused variable.
12779 (get_signaled_thread): Likewise.
12780 (store_regs_user_thread): Likewise.
12781 (store_regs_kernel_thread): Likewise.
12782 (fetch_regs_kernel_thread): Remove shadowed variable.
12783
12784 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12785
12786 * features/riscv/32bit-cpu.xml: Add register numbers.
12787 * features/riscv/32bit-fpu.c: Regenerate.
12788 * features/riscv/32bit-fpu.xml: Add register numbers.
12789 * features/riscv/64bit-cpu.xml: Add register numbers.
12790 * features/riscv/64bit-fpu.c: Regenerate.
12791 * features/riscv/64bit-fpu.xml: Add register numbers.
12792
12793 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12794
12795 * NEWS: Mention two argument form of gdb.Value constructor.
12796 * python/py-value.c (convert_buffer_and_type_to_value): New
12797 function.
12798 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12799 Add support for handling an optional second argument. Call
12800 convert_buffer_and_type_to_value as appropriate.
12801 * python/python-internal.h (Py_buffer_deleter): New struct.
12802 (Py_buffer_up): New typedef.
12803
12804 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12805
12806 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12807 instead of releasing ownership.
12808
12809 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12810
12811 * dwarf2read.c (open_and_init_dwp_file): Call
12812 elf_numsections instead of bfd_count_sections to initialize
12813 dwp_file->num_sections.
12814
12815 2019-02-25 Tom Tromey <tromey@adacore.com>
12816
12817 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12818
12819 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12820
12821 * gcore.in: Add '--readnever' option when invoking GDB.
12822
12823 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12824
12825 * MAINTAINERS: Update my email address.
12826
12827 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12828
12829 * build-id.c (build_id_to_debug_bfd_1): New function.
12830 (build_id_to_debug_bfd): Look for separate debug file in
12831 sysroot.
12832
12833 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12834
12835 * gdbarch.sh: Update the copyright year range that is placed into
12836 generated files.
12837
12838 2019-02-22 Keith Seitz <keiths@redhat.com>
12839
12840 PR symtab/23853
12841 * linespec.c (create_sals_line_offset): Search for the default
12842 symtab's filename instead of its fullname.
12843
12844 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12845
12846 * NEWS: Update style defaults.
12847
12848 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12849
12850 * main.c (captured_main_1): Disable styling in batch mode.
12851
12852 2019-02-20 Tom Tromey <tom@tromey.com>
12853
12854 * symtab.c (symtab_symbol_info): Fix typos.
12855
12856 2019-02-20 Tom Tromey <tromey@adacore.com>
12857
12858 * findcmd.c (_initialize_mem_search): Use upper case for
12859 metasyntactic variables.
12860
12861 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12862
12863 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12864 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12865
12866 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12867
12868 * top.h (source_file_name): Change to std::string.
12869 * top.c (source_file_name): Likewise.
12870 (command_line_input): Adjust.
12871 * cli/cli-script.c (script_from_file): Adjust.
12872
12873 2019-02-19 Tom Tromey <tromey@adacore.com>
12874
12875 * ravenscar-thread.c
12876 (ravenscar_thread_target::update_thread_list): Don't call
12877 ada_build_task_list.
12878 * ada-lang.h (ada_build_task_list): Don't declare.
12879 * ada-tasks.c (struct ada_tasks_inferior_data)
12880 <task_list_valid_p>: Now bool.
12881 (read_known_tasks, ada_task_list_changed)
12882 (ada_tasks_invalidate_inferior_data): Update.
12883 (read_known_tasks_array): Return bool.
12884 (read_known_tasks_list): Likewise.
12885 (read_known_tasks): Return void.
12886 (ada_build_task_list): Now static.
12887
12888 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12889
12890 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12891 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12892
12893 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12894
12895 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12896 variant for ada_tasks_pspace_data_handle and
12897 ada_tasks_inferior_data_handle.
12898 (ada_tasks_pspace_data_cleanup): New function.
12899 (ada_tasks_inferior_data_cleanup): New function.
12900
12901 2019-02-17 Tom Tromey <tom@tromey.com>
12902
12903 * macrotab.h (macro_source_fullname): Return a std::string.
12904 * macrotab.c (macro_include, check_for_redefinition)
12905 (macro_undef, macro_lookup_definition, foreach_macro)
12906 (foreach_macro_in_scope): Update.
12907 (macro_source_fullname): Return a std::string.
12908 * macrocmd.c (show_pp_source_pos): Update.
12909
12910 2019-02-17 Tom Tromey <tom@tromey.com>
12911
12912 * macrocmd.c (show_pp_source_pos): Style the file names.
12913
12914 2019-02-17 Tom Tromey <tom@tromey.com>
12915
12916 PR tui/24197:
12917 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12918
12919 2019-02-17 Tom Tromey <tom@tromey.com>
12920
12921 * ada-lang.c (user_select_syms): Use filtered printing.
12922 * utils.c (wrap_style): New global.
12923 (desired_style): Remove.
12924 (emit_style_escape): Add stream parameter.
12925 (set_output_style, reset_terminal_style, prompt_for_continue):
12926 Update.
12927 (flush_wrap_buffer): Only flush gdb_stdout.
12928 (wrap_here): Set wrap_style.
12929 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12930 treat escape sequences as a character. Change when wrap buffer is
12931 flushed.
12932 (fputs_styled): Do not set the output style when the default is
12933 requested.
12934 * ui-style.h (struct ui_file_style) <is_default>: New method.
12935 * source.c (print_source_lines_base): Emit escape sequences in one
12936 piece.
12937
12938 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12939
12940 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12941 integers and enumeration types.
12942
12943 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12944
12945 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12946 instead of lookup_symbol_in_language
12947 (do_exact_match): New function.
12948 (ada_get_symbol_name_matcher): Return do_exact_match when
12949 doing a verbatim match.
12950
12951 2019-02-15 Tom Tromey <tromey@adacore.com>
12952
12953 * ravenscar-thread.c (ravenscar_thread_target::resume)
12954 (ravenscar_thread_target::wait): Special case wildcard requests.
12955
12956 2019-02-15 Tom Tromey <tromey@adacore.com>
12957
12958 * ravenscar-thread.c (base_ptid): Remove.
12959 (struct ravenscar_thread_target) <close>: New method.
12960 <m_base_ptid>: New member.
12961 <update_inferior_ptid, active_task, task_is_currently_active,
12962 runtime_initialized>: Declare methods.
12963 <ravenscar_thread_target>: Add constructor.
12964 (ravenscar_thread_target::task_is_currently_active)
12965 (ravenscar_thread_target::update_inferior_ptid)
12966 (ravenscar_runtime_initialized): Rename. Now methods.
12967 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12968 (ravenscar_thread_target::update_thread_list): Update.
12969 (ravenscar_thread_target::active_task): Now method.
12970 (ravenscar_thread_target::store_registers)
12971 (ravenscar_thread_target::prepare_to_store)
12972 (ravenscar_thread_target::prepare_to_store)
12973 (ravenscar_thread_target::mourn_inferior): Update.
12974 (ravenscar_inferior_created): Use "new" to create target.
12975 (ravenscar_thread_target::get_ada_task_ptid): Update.
12976 (_initialize_ravenscar): Don't initialize base_ptid.
12977 (ravenscar_ops): Remove global.
12978
12979 2019-02-15 Tom Tromey <tromey@adacore.com>
12980
12981 * target.h (push_target): Declare new overload.
12982 * target.c (push_target): New overload, taking an rvalue reference.
12983 * remote.c (remote_target::open_1): Use push_target overload.
12984 * corelow.c (core_target_open): Use push_target overload.
12985
12986 2019-02-15 Tom Tromey <tromey@adacore.com>
12987
12988 * ravenscar-thread.c (is_ravenscar_task)
12989 (ravenscar_task_is_currently_active): Return bool.
12990 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12991 (_initialize_ravenscar): Remove "(void)".
12992 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12993 Return bool.
12994
12995 2019-02-15 Tom Tromey <tromey@adacore.com>
12996
12997 * ravenscar-thread.c (ravenscar_runtime_initializer)
12998 (has_ravenscar_runtime, get_running_thread_id)
12999 (ravenscar_thread_target::resume): Fix indentation.
13000
13001 2019-02-15 Tom Tromey <tromey@adacore.com>
13002
13003 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13004 from ravenscar_arch_ops.
13005 (sparc_ravenscar_ops::fetch_registers)
13006 (sparc_ravenscar_ops::store_registers): Now methods.
13007 (sparc_ravenscar_prepare_to_store): Remove.
13008 (sparc_ravenscar_ops): Redefine.
13009 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13010 methods and destructor. Remove members.
13011 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13012 (ravenscar_thread_target::store_registers)
13013 (ravenscar_thread_target::prepare_to_store): Update.
13014 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13015 Remove.
13016 (struct ppc_ravenscar_powerpc_ops): Derive from
13017 ravenscar_arch_ops.
13018 (ppc_ravenscar_powerpc_ops::fetch_registers)
13019 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13020 (ppc_ravenscar_powerpc_ops): Redefine.
13021 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13022 (ppc_ravenscar_e500_ops::fetch_registers)
13023 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13024 (ppc_ravenscar_e500_ops): Redefine.
13025 * aarch64-ravenscar-thread.c
13026 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13027 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13028 (aarch64_ravenscar_fetch_registers)
13029 (aarch64_ravenscar_store_registers): Now methods.
13030 (aarch64_ravenscar_ops): Redefine.
13031
13032 2019-02-15 Tom Tromey <tromey@adacore.com>
13033
13034 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13035 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13036 (ravenscar_thread_target::stopped_by_watchpoint)
13037 (ravenscar_thread_target::stopped_data_address)
13038 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13039
13040 2019-02-15 Tom Tromey <tromey@adacore.com>
13041
13042 * ravenscar-thread.c: Fix some typos.
13043
13044 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13045 Tom Tromey <tromey@adacore.com>
13046
13047 * ada-lang.c (ada_exception_sal): Change addr_string to a
13048 std::string.
13049 (create_ada_exception_catchpoint): Update.
13050
13051 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13052 Tom Tromey <tromey@adacore.com>
13053
13054 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13055 (bp_location_ops): Remove.
13056 (base_breakpoint_allocate_location): Update.
13057 (free_bp_location): Update.
13058 * ada-lang.c (class ada_catchpoint_location)
13059 <ada_catchpoint_location>: Remove ops parameter.
13060 (ada_catchpoint_location_dtor): Remove.
13061 (ada_catchpoint_location_ops): Remove.
13062 (allocate_location_exception): Update.
13063 * breakpoint.h (struct bp_location_ops): Remove.
13064 (class bp_location) <bp_location>: Remove bp_location_ops
13065 parameter.
13066 <~bp_location>: Add destructor.
13067 <ops>: Remove.
13068
13069 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13070 Pedro Alves <palves@redhat.com>
13071
13072 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13073 'PATH_MAX'.
13074
13075 2019-02-14 David Michael <fedora.dm0@gmail.com>
13076 Samuel Thibault <samuel.thibault@gnu.org>
13077 Thomas Schwinge <thomas@codesourcery.com>
13078
13079 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13080 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13081
13082 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13083
13084 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13085 (check_empty): Use "const char *".
13086
13087 * gnu-nat.c (gnu_nat_target::detach): Instead of
13088 'detach_inferior (pid)' call
13089 'detach_inferior (find_inferior_pid (pid))'.
13090
13091 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13092 'nat/fork-inferior.o'.
13093 * gnu-nat.c: #include "nat/fork-inferior.h".
13094
13095 * gnu-nat.c (gnu_nat_target::detach): Instead of
13096 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13097 * gnu-nat.h: #include "inf-child.h".
13098 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13099 'i386_gnu_nat_target::fetch_registers'.
13100 (gnu_store_registers): Rename/move to
13101 'i386_gnu_nat_target::store_registers'.
13102
13103 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13104 * gnu-nat.h (mach_thread_info): New function.
13105 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13106
13107 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13108
13109 2019-02-14 Frederic Konrad <konrad@adacore.com>
13110
13111 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13112
13113 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13114
13115 * windows-nat.c (windows_add_thread): Add new parameter
13116 "main_thread_p" with default value set to false. Update
13117 function documentation as well as all callers.
13118 (windows_delete_thread): Likewise.
13119 (fake_create_process): Update call to windows_add_thread.
13120 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13121 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13122 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13123 call to windows_delete_thread.
13124
13125 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13126
13127 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13128
13129 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13130
13131 * symfile.c (find_separate_debug_file): Use canonical path of
13132 sysroot with child_path instead of gdb_sysroot if it is valid.
13133
13134 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13135
13136 * symfile.c (find_separate_debug_file): Use child_path to
13137 determine if an object file is under a sysroot.
13138
13139 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13140
13141 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13142 unittests/child-path-selftests.c.
13143 * common/pathstuff.c (child_path): New function.
13144 * common/pathstuff.h (child_path): New prototype.
13145 * unittests/child-path-selftests.c: New file.
13146
13147 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13148
13149 * symfile.c (find_separate_debug_file): Look for separate debug
13150 files in debug directories under the sysroot.
13151
13152 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13153
13154 * symtab.h (struct minimal_symbol data_p): New const method.
13155 (struct minimal_symbol text_p): Likewise.
13156 * symtab.c (output_source_filename): Use file name style
13157 to print file name.
13158 (print_symbol_info): Likewise.
13159 (print_msymbol_info): Use address style to print addresses.
13160 Use function name style to print executable text symbols.
13161 (expand_symtab_containing_pc): Use data_p.
13162 (find_pc_sect_compunit_symtab): Likewise.
13163
13164 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13165
13166 * breakpoint.c (describe_other_breakpoints): Use address style
13167 to print addresses.
13168 (say_where): Likewise.
13169
13170 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13171
13172 * ada-typeprint.c (print_func_type): Print function name
13173 style to print function name.
13174 * c-typeprint.c (c_print_type_1): Likewise.
13175
13176 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13177
13178 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13179 for execve.
13180
13181 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13182
13183 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13184 type_stack.
13185
13186 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13187
13188 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13189 TYPE_CODE_REF types.
13190
13191 2019-02-08 Jim Wilson <jimw@sifive.com>
13192
13193 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13194 (riscv_linux_fregset): New.
13195 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13196
13197 2019-02-07 Tom Tromey <tom@tromey.com>
13198
13199 * thread.c (thread_cancel_execution_command): Update.
13200 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13201 methods.
13202 (struct thread_fsm_ops): Remove.
13203 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13204 (thread_fsm_should_stop, thread_fsm_return_value)
13205 (thread_fsm_set_finished, thread_fsm_finished_p)
13206 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13207 Don't declare.
13208 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13209 * infrun.c (clear_proceed_status_thread)
13210 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13211 (print_stop_event): Update.
13212 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13213 Add constructor.
13214 (step_command_fsm_ops): Remove.
13215 (new_step_command_fsm): Remove.
13216 (step_1): Update.
13217 (step_command_fsm::should_stop): Rename from
13218 step_command_fsm_should_stop.
13219 (step_command_fsm::clean_up): Rename from
13220 step_command_fsm_clean_up.
13221 (step_command_fsm::do_async_reply_reason): Rename from
13222 step_command_fsm_async_reply_reason.
13223 (struct until_next_fsm): Inherit from thread_fsm. Add
13224 constructor.
13225 (until_next_fsm_ops): Remove.
13226 (new_until_next_fsm): Remove.
13227 (until_next_fsm::should_stop): Rename from
13228 until_next_fsm_should_stop.
13229 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13230 (until_next_fsm::do_async_reply_reason): Rename from
13231 until_next_fsm_async_reply_reason.
13232 (struct finish_command_fsm): Inherit from thread_fsm. Add
13233 constructor. Change type of breakpoint.
13234 (finish_command_fsm_ops): Remove.
13235 (new_finish_command_fsm): Remove.
13236 (finish_command_fsm::should_stop): Rename from
13237 finish_command_fsm_should_stop.
13238 (finish_command_fsm::clean_up): Rename from
13239 finish_command_fsm_clean_up.
13240 (finish_command_fsm::return_value): Rename from
13241 finish_command_fsm_return_value.
13242 (finish_command_fsm::do_async_reply_reason): Rename from
13243 finish_command_fsm_async_reply_reason.
13244 (finish_command): Update.
13245 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13246 Add constructor.
13247 (call_thread_fsm_ops): Remove.
13248 (call_thread_fsm::call_thread_fsm): Rename from
13249 new_call_thread_fsm.
13250 (call_thread_fsm::should_stop): Rename from
13251 call_thread_fsm_should_stop.
13252 (call_thread_fsm::should_notify_stop): Rename from
13253 call_thread_fsm_should_notify_stop.
13254 (run_inferior_call, call_function_by_hand_dummy): Update.
13255 * cli/cli-interp.c (should_print_stop_to_console): Update.
13256 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13257 Add constructor. Change type of location_breakpoint,
13258 caller_breakpoint.
13259 (until_break_fsm_ops): Remove.
13260 (new_until_break_fsm): Remove.
13261 (until_break_fsm::should_stop): Rename from
13262 until_break_fsm_should_stop.
13263 (until_break_fsm::clean_up): Rename from
13264 until_break_fsm_clean_up.
13265 (until_break_fsm::do_async_reply_reason): Rename from
13266 until_break_fsm_async_reply_reason.
13267 (until_break_command): Update.
13268 * thread-fsm.c: Remove.
13269 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13270
13271 2019-02-07 Tom Tromey <tom@tromey.com>
13272
13273 * yy-remap.h: Add include guard.
13274 * xtensa-tdep.h: Add include guard.
13275 * xcoffread.h: Rename include guard.
13276 * varobj-iter.h: Add include guard.
13277 * tui/tui.h: Rename include guard.
13278 * tui/tui-winsource.h: Rename include guard.
13279 * tui/tui-wingeneral.h: Rename include guard.
13280 * tui/tui-windata.h: Rename include guard.
13281 * tui/tui-win.h: Rename include guard.
13282 * tui/tui-stack.h: Rename include guard.
13283 * tui/tui-source.h: Rename include guard.
13284 * tui/tui-regs.h: Rename include guard.
13285 * tui/tui-out.h: Rename include guard.
13286 * tui/tui-layout.h: Rename include guard.
13287 * tui/tui-io.h: Rename include guard.
13288 * tui/tui-hooks.h: Rename include guard.
13289 * tui/tui-file.h: Rename include guard.
13290 * tui/tui-disasm.h: Rename include guard.
13291 * tui/tui-data.h: Rename include guard.
13292 * tui/tui-command.h: Rename include guard.
13293 * tic6x-tdep.h: Add include guard.
13294 * target/waitstatus.h: Rename include guard.
13295 * target/wait.h: Rename include guard.
13296 * target/target.h: Rename include guard.
13297 * target/resume.h: Rename include guard.
13298 * target-float.h: Rename include guard.
13299 * stabsread.h: Add include guard.
13300 * rs6000-tdep.h: Add include guard.
13301 * riscv-fbsd-tdep.h: Add include guard.
13302 * regformats/regdef.h: Rename include guard.
13303 * record.h: Rename include guard.
13304 * python/python.h: Rename include guard.
13305 * python/python-internal.h: Rename include guard.
13306 * python/py-stopevent.h: Rename include guard.
13307 * python/py-ref.h: Rename include guard.
13308 * python/py-record.h: Rename include guard.
13309 * python/py-record-full.h: Rename include guard.
13310 * python/py-record-btrace.h: Rename include guard.
13311 * python/py-instruction.h: Rename include guard.
13312 * python/py-events.h: Rename include guard.
13313 * python/py-event.h: Rename include guard.
13314 * procfs.h: Add include guard.
13315 * proc-utils.h: Add include guard.
13316 * p-lang.h: Add include guard.
13317 * or1k-tdep.h: Rename include guard.
13318 * observable.h: Rename include guard.
13319 * nto-tdep.h: Rename include guard.
13320 * nat/x86-linux.h: Rename include guard.
13321 * nat/x86-linux-dregs.h: Rename include guard.
13322 * nat/x86-gcc-cpuid.h: Add include guard.
13323 * nat/x86-dregs.h: Rename include guard.
13324 * nat/x86-cpuid.h: Rename include guard.
13325 * nat/ppc-linux.h: Rename include guard.
13326 * nat/mips-linux-watch.h: Rename include guard.
13327 * nat/linux-waitpid.h: Rename include guard.
13328 * nat/linux-ptrace.h: Rename include guard.
13329 * nat/linux-procfs.h: Rename include guard.
13330 * nat/linux-osdata.h: Rename include guard.
13331 * nat/linux-nat.h: Rename include guard.
13332 * nat/linux-namespaces.h: Rename include guard.
13333 * nat/linux-btrace.h: Rename include guard.
13334 * nat/glibc_thread_db.h: Rename include guard.
13335 * nat/gdb_thread_db.h: Rename include guard.
13336 * nat/gdb_ptrace.h: Rename include guard.
13337 * nat/fork-inferior.h: Rename include guard.
13338 * nat/amd64-linux-siginfo.h: Rename include guard.
13339 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13340 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13341 * nat/aarch64-linux.h: Rename include guard.
13342 * nat/aarch64-linux-hw-point.h: Rename include guard.
13343 * mn10300-tdep.h: Add include guard.
13344 * mips-linux-tdep.h: Add include guard.
13345 * mi/mi-parse.h: Rename include guard.
13346 * mi/mi-out.h: Rename include guard.
13347 * mi/mi-main.h: Rename include guard.
13348 * mi/mi-interp.h: Rename include guard.
13349 * mi/mi-getopt.h: Rename include guard.
13350 * mi/mi-console.h: Rename include guard.
13351 * mi/mi-common.h: Rename include guard.
13352 * mi/mi-cmds.h: Rename include guard.
13353 * mi/mi-cmd-break.h: Rename include guard.
13354 * m2-lang.h: Add include guard.
13355 * location.h: Rename include guard.
13356 * linux-record.h: Rename include guard.
13357 * linux-nat.h: Add include guard.
13358 * linux-fork.h: Add include guard.
13359 * i386-darwin-tdep.h: Rename include guard.
13360 * hppa-linux-offsets.h: Add include guard.
13361 * guile/guile.h: Rename include guard.
13362 * guile/guile-internal.h: Rename include guard.
13363 * gnu-nat.h: Rename include guard.
13364 * gdb-stabs.h: Rename include guard.
13365 * frv-tdep.h: Add include guard.
13366 * f-lang.h: Add include guard.
13367 * event-loop.h: Add include guard.
13368 * darwin-nat.h: Rename include guard.
13369 * cp-abi.h: Rename include guard.
13370 * config/sparc/nm-sol2.h: Rename include guard.
13371 * config/nm-nto.h: Rename include guard.
13372 * config/nm-linux.h: Add include guard.
13373 * config/i386/nm-i386gnu.h: Rename include guard.
13374 * config/djgpp/nl_types.h: Rename include guard.
13375 * config/djgpp/langinfo.h: Rename include guard.
13376 * compile/gcc-cp-plugin.h: Add include guard.
13377 * compile/gcc-c-plugin.h: Add include guard.
13378 * compile/compile.h: Rename include guard.
13379 * compile/compile-object-run.h: Rename include guard.
13380 * compile/compile-object-load.h: Rename include guard.
13381 * compile/compile-internal.h: Rename include guard.
13382 * compile/compile-cplus.h: Rename include guard.
13383 * compile/compile-c.h: Rename include guard.
13384 * common/xml-utils.h: Rename include guard.
13385 * common/x86-xstate.h: Rename include guard.
13386 * common/version.h: Rename include guard.
13387 * common/vec.h: Rename include guard.
13388 * common/tdesc.h: Rename include guard.
13389 * common/selftest.h: Rename include guard.
13390 * common/scoped_restore.h: Rename include guard.
13391 * common/scoped_mmap.h: Rename include guard.
13392 * common/scoped_fd.h: Rename include guard.
13393 * common/safe-iterator.h: Rename include guard.
13394 * common/run-time-clock.h: Rename include guard.
13395 * common/refcounted-object.h: Rename include guard.
13396 * common/queue.h: Rename include guard.
13397 * common/ptid.h: Rename include guard.
13398 * common/print-utils.h: Rename include guard.
13399 * common/preprocessor.h: Rename include guard.
13400 * common/pathstuff.h: Rename include guard.
13401 * common/observable.h: Rename include guard.
13402 * common/netstuff.h: Rename include guard.
13403 * common/job-control.h: Rename include guard.
13404 * common/host-defs.h: Rename include guard.
13405 * common/gdb_wait.h: Rename include guard.
13406 * common/gdb_vecs.h: Rename include guard.
13407 * common/gdb_unlinker.h: Rename include guard.
13408 * common/gdb_unique_ptr.h: Rename include guard.
13409 * common/gdb_tilde_expand.h: Rename include guard.
13410 * common/gdb_sys_time.h: Rename include guard.
13411 * common/gdb_string_view.h: Rename include guard.
13412 * common/gdb_splay_tree.h: Rename include guard.
13413 * common/gdb_setjmp.h: Rename include guard.
13414 * common/gdb_ref_ptr.h: Rename include guard.
13415 * common/gdb_optional.h: Rename include guard.
13416 * common/gdb_locale.h: Rename include guard.
13417 * common/gdb_assert.h: Rename include guard.
13418 * common/filtered-iterator.h: Rename include guard.
13419 * common/filestuff.h: Rename include guard.
13420 * common/fileio.h: Rename include guard.
13421 * common/environ.h: Rename include guard.
13422 * common/common-utils.h: Rename include guard.
13423 * common/common-types.h: Rename include guard.
13424 * common/common-regcache.h: Rename include guard.
13425 * common/common-inferior.h: Rename include guard.
13426 * common/common-gdbthread.h: Rename include guard.
13427 * common/common-exceptions.h: Rename include guard.
13428 * common/common-defs.h: Rename include guard.
13429 * common/common-debug.h: Rename include guard.
13430 * common/cleanups.h: Rename include guard.
13431 * common/buffer.h: Rename include guard.
13432 * common/btrace-common.h: Rename include guard.
13433 * common/break-common.h: Rename include guard.
13434 * cli/cli-utils.h: Rename include guard.
13435 * cli/cli-style.h: Rename include guard.
13436 * cli/cli-setshow.h: Rename include guard.
13437 * cli/cli-script.h: Rename include guard.
13438 * cli/cli-interp.h: Rename include guard.
13439 * cli/cli-decode.h: Rename include guard.
13440 * cli/cli-cmds.h: Rename include guard.
13441 * charset-list.h: Add include guard.
13442 * buildsym-legacy.h: Rename include guard.
13443 * bfin-tdep.h: Add include guard.
13444 * ax.h: Rename include guard.
13445 * arm-linux-tdep.h: Add include guard.
13446 * arm-fbsd-tdep.h: Add include guard.
13447 * arch/xtensa.h: Rename include guard.
13448 * arch/tic6x.h: Add include guard.
13449 * arch/i386.h: Add include guard.
13450 * arch/arm.h: Rename include guard.
13451 * arch/arm-linux.h: Rename include guard.
13452 * arch/arm-get-next-pcs.h: Rename include guard.
13453 * arch/amd64.h: Add include guard.
13454 * arch/aarch64-insn.h: Rename include guard.
13455 * arch-utils.h: Rename include guard.
13456 * annotate.h: Add include guard.
13457 * amd64-darwin-tdep.h: Rename include guard.
13458 * aarch64-linux-tdep.h: Add include guard.
13459 * aarch64-fbsd-tdep.h: Add include guard.
13460 * aarch32-linux-nat.h: Add include guard.
13461
13462 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13463
13464 * macrotab.c (macro_define_internal): New function that
13465 factorizes macro_define_object_internal and macro_define_function
13466 code.
13467 (macro_define_object_internal): Use macro_define_internal.
13468 (macro_define_function): Likewise.
13469
13470 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13471
13472 * macrocmd.c (extract_identifier): Return
13473 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13474 callers.
13475
13476 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13477
13478 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13479
13480 2019-02-05 Tom Tromey <tom@tromey.com>
13481
13482 * target.c (target_stack::unpush): Move assertion earlier.
13483
13484 2019-01-30 Tom Tromey <tom@tromey.com>
13485
13486 PR python/23615:
13487 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13488 (gdbpy_parse_and_eval): Likewise.
13489 * python/python-internal.h (gdbpy_allow_threads): New class.
13490
13491 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13492
13493 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13494 (aarch64_fbsd_fpregmap): Move earlier.
13495 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13496 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13497 instead of individual calls to trad_frame_set_reg_addr.
13498 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13499 earlier.
13500 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13501 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13502 instead of individual calls to trad_frame_set_reg_addr.
13503
13504 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13505
13506 * CONTRIBUTE: Replace contribution list with wiki link.
13507
13508 2019-01-25 Tom Tromey <tom@tromey.com>
13509
13510 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13511
13512 2019-01-25 Tom Tromey <tom@tromey.com>
13513
13514 * xtensa-linux-nat.c: Fix common/ includes.
13515 * xml-support.h: Fix common/ includes.
13516 * xml-support.c: Fix common/ includes.
13517 * x86-linux-nat.c: Fix common/ includes.
13518 * windows-nat.c: Fix common/ includes.
13519 * varobj.h: Fix common/ includes.
13520 * varobj.c: Fix common/ includes.
13521 * value.c: Fix common/ includes.
13522 * valops.c: Fix common/ includes.
13523 * utils.c: Fix common/ includes.
13524 * unittests/xml-utils-selftests.c: Fix common/ includes.
13525 * unittests/utils-selftests.c: Fix common/ includes.
13526 * unittests/unpack-selftests.c: Fix common/ includes.
13527 * unittests/tracepoint-selftests.c: Fix common/ includes.
13528 * unittests/style-selftests.c: Fix common/ includes.
13529 * unittests/string_view-selftests.c: Fix common/ includes.
13530 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13531 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13532 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13533 * unittests/rsp-low-selftests.c: Fix common/ includes.
13534 * unittests/parse-connection-spec-selftests.c: Fix common/
13535 includes.
13536 * unittests/optional-selftests.c: Fix common/ includes.
13537 * unittests/offset-type-selftests.c: Fix common/ includes.
13538 * unittests/observable-selftests.c: Fix common/ includes.
13539 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13540 * unittests/memrange-selftests.c: Fix common/ includes.
13541 * unittests/memory-map-selftests.c: Fix common/ includes.
13542 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13543 * unittests/function-view-selftests.c: Fix common/ includes.
13544 * unittests/environ-selftests.c: Fix common/ includes.
13545 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13546 * unittests/common-utils-selftests.c: Fix common/ includes.
13547 * unittests/cli-utils-selftests.c: Fix common/ includes.
13548 * unittests/array-view-selftests.c: Fix common/ includes.
13549 * ui-file.c: Fix common/ includes.
13550 * tui/tui-io.c: Fix common/ includes.
13551 * tracepoint.h: Fix common/ includes.
13552 * tracepoint.c: Fix common/ includes.
13553 * tracefile-tfile.c: Fix common/ includes.
13554 * top.h: Fix common/ includes.
13555 * top.c: Fix common/ includes.
13556 * thread.c: Fix common/ includes.
13557 * target/waitstatus.h: Fix common/ includes.
13558 * target/waitstatus.c: Fix common/ includes.
13559 * target.h: Fix common/ includes.
13560 * target.c: Fix common/ includes.
13561 * target-memory.c: Fix common/ includes.
13562 * target-descriptions.c: Fix common/ includes.
13563 * symtab.h: Fix common/ includes.
13564 * symfile.c: Fix common/ includes.
13565 * stap-probe.c: Fix common/ includes.
13566 * spu-linux-nat.c: Fix common/ includes.
13567 * sparc-nat.c: Fix common/ includes.
13568 * source.c: Fix common/ includes.
13569 * solib.c: Fix common/ includes.
13570 * solib-target.c: Fix common/ includes.
13571 * ser-unix.c: Fix common/ includes.
13572 * ser-tcp.c: Fix common/ includes.
13573 * ser-pipe.c: Fix common/ includes.
13574 * ser-base.c: Fix common/ includes.
13575 * selftest-arch.c: Fix common/ includes.
13576 * s12z-tdep.c: Fix common/ includes.
13577 * rust-exp.y: Fix common/ includes.
13578 * rs6000-aix-tdep.c: Fix common/ includes.
13579 * riscv-tdep.c: Fix common/ includes.
13580 * remote.c: Fix common/ includes.
13581 * remote-notif.h: Fix common/ includes.
13582 * remote-fileio.h: Fix common/ includes.
13583 * remote-fileio.c: Fix common/ includes.
13584 * regcache.h: Fix common/ includes.
13585 * regcache.c: Fix common/ includes.
13586 * record-btrace.c: Fix common/ includes.
13587 * python/python.c: Fix common/ includes.
13588 * python/py-type.c: Fix common/ includes.
13589 * python/py-inferior.c: Fix common/ includes.
13590 * progspace.h: Fix common/ includes.
13591 * producer.c: Fix common/ includes.
13592 * procfs.c: Fix common/ includes.
13593 * proc-api.c: Fix common/ includes.
13594 * printcmd.c: Fix common/ includes.
13595 * ppc-linux-nat.c: Fix common/ includes.
13596 * parser-defs.h: Fix common/ includes.
13597 * osdata.c: Fix common/ includes.
13598 * obsd-nat.c: Fix common/ includes.
13599 * nat/x86-linux.c: Fix common/ includes.
13600 * nat/x86-linux-dregs.c: Fix common/ includes.
13601 * nat/x86-dregs.h: Fix common/ includes.
13602 * nat/x86-dregs.c: Fix common/ includes.
13603 * nat/ppc-linux.c: Fix common/ includes.
13604 * nat/mips-linux-watch.h: Fix common/ includes.
13605 * nat/mips-linux-watch.c: Fix common/ includes.
13606 * nat/linux-waitpid.c: Fix common/ includes.
13607 * nat/linux-ptrace.h: Fix common/ includes.
13608 * nat/linux-ptrace.c: Fix common/ includes.
13609 * nat/linux-procfs.c: Fix common/ includes.
13610 * nat/linux-personality.c: Fix common/ includes.
13611 * nat/linux-osdata.c: Fix common/ includes.
13612 * nat/linux-namespaces.c: Fix common/ includes.
13613 * nat/linux-btrace.h: Fix common/ includes.
13614 * nat/linux-btrace.c: Fix common/ includes.
13615 * nat/fork-inferior.c: Fix common/ includes.
13616 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13617 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13618 * nat/aarch64-linux.c: Fix common/ includes.
13619 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13620 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13621 * namespace.h: Fix common/ includes.
13622 * mips-linux-tdep.c: Fix common/ includes.
13623 * minsyms.c: Fix common/ includes.
13624 * mi/mi-parse.h: Fix common/ includes.
13625 * mi/mi-main.c: Fix common/ includes.
13626 * mi/mi-cmd-env.c: Fix common/ includes.
13627 * memrange.h: Fix common/ includes.
13628 * memattr.c: Fix common/ includes.
13629 * maint.h: Fix common/ includes.
13630 * maint.c: Fix common/ includes.
13631 * main.c: Fix common/ includes.
13632 * machoread.c: Fix common/ includes.
13633 * location.c: Fix common/ includes.
13634 * linux-thread-db.c: Fix common/ includes.
13635 * linux-nat.c: Fix common/ includes.
13636 * linux-fork.c: Fix common/ includes.
13637 * inline-frame.c: Fix common/ includes.
13638 * infrun.c: Fix common/ includes.
13639 * inflow.c: Fix common/ includes.
13640 * inferior.h: Fix common/ includes.
13641 * inferior.c: Fix common/ includes.
13642 * infcmd.c: Fix common/ includes.
13643 * inf-ptrace.c: Fix common/ includes.
13644 * inf-child.c: Fix common/ includes.
13645 * ia64-linux-nat.c: Fix common/ includes.
13646 * i387-tdep.c: Fix common/ includes.
13647 * i386-tdep.c: Fix common/ includes.
13648 * i386-linux-tdep.c: Fix common/ includes.
13649 * i386-linux-nat.c: Fix common/ includes.
13650 * i386-go32-tdep.c: Fix common/ includes.
13651 * i386-fbsd-tdep.c: Fix common/ includes.
13652 * i386-fbsd-nat.c: Fix common/ includes.
13653 * guile/scm-type.c: Fix common/ includes.
13654 * guile/guile.c: Fix common/ includes.
13655 * go32-nat.c: Fix common/ includes.
13656 * gnu-nat.c: Fix common/ includes.
13657 * gdbthread.h: Fix common/ includes.
13658 * gdbarch-selftests.c: Fix common/ includes.
13659 * gdb_usleep.c: Fix common/ includes.
13660 * gdb_select.h: Fix common/ includes.
13661 * gdb_bfd.c: Fix common/ includes.
13662 * gcore.c: Fix common/ includes.
13663 * fork-child.c: Fix common/ includes.
13664 * findvar.c: Fix common/ includes.
13665 * fbsd-nat.c: Fix common/ includes.
13666 * event-top.c: Fix common/ includes.
13667 * event-loop.c: Fix common/ includes.
13668 * dwarf2read.c: Fix common/ includes.
13669 * dwarf2loc.c: Fix common/ includes.
13670 * dwarf2-frame.c: Fix common/ includes.
13671 * dwarf-index-cache.c: Fix common/ includes.
13672 * dtrace-probe.c: Fix common/ includes.
13673 * disasm-selftests.c: Fix common/ includes.
13674 * defs.h: Fix common/ includes.
13675 * csky-tdep.c: Fix common/ includes.
13676 * cp-valprint.c: Fix common/ includes.
13677 * cp-support.h: Fix common/ includes.
13678 * cp-support.c: Fix common/ includes.
13679 * corelow.c: Fix common/ includes.
13680 * completer.h: Fix common/ includes.
13681 * completer.c: Fix common/ includes.
13682 * compile/compile.c: Fix common/ includes.
13683 * compile/compile-loc2c.c: Fix common/ includes.
13684 * compile/compile-cplus-types.c: Fix common/ includes.
13685 * compile/compile-cplus-symbols.c: Fix common/ includes.
13686 * command.h: Fix common/ includes.
13687 * cli/cli-dump.c: Fix common/ includes.
13688 * cli/cli-cmds.c: Fix common/ includes.
13689 * charset.c: Fix common/ includes.
13690 * build-id.c: Fix common/ includes.
13691 * btrace.h: Fix common/ includes.
13692 * btrace.c: Fix common/ includes.
13693 * breakpoint.h: Fix common/ includes.
13694 * breakpoint.c: Fix common/ includes.
13695 * ax.h:
13696 (enum agent_op): Fix common/ includes.
13697 * ax-general.c (struct aop_map): Fix common/ includes.
13698 * ax-gdb.c: Fix common/ includes.
13699 * auxv.c: Fix common/ includes.
13700 * auto-load.c: Fix common/ includes.
13701 * arm-tdep.c: Fix common/ includes.
13702 * arch/riscv.c: Fix common/ includes.
13703 * arch/ppc-linux-common.c: Fix common/ includes.
13704 * arch/i386.c: Fix common/ includes.
13705 * arch/arm.c: Fix common/ includes.
13706 * arch/arm-linux.c: Fix common/ includes.
13707 * arch/arm-get-next-pcs.c: Fix common/ includes.
13708 * arch/amd64.c: Fix common/ includes.
13709 * arch/aarch64.c: Fix common/ includes.
13710 * arch/aarch64-insn.c: Fix common/ includes.
13711 * arch-utils.c: Fix common/ includes.
13712 * amd64-windows-tdep.c: Fix common/ includes.
13713 * amd64-tdep.c: Fix common/ includes.
13714 * amd64-sol2-tdep.c: Fix common/ includes.
13715 * amd64-obsd-tdep.c: Fix common/ includes.
13716 * amd64-nbsd-tdep.c: Fix common/ includes.
13717 * amd64-linux-tdep.c: Fix common/ includes.
13718 * amd64-linux-nat.c: Fix common/ includes.
13719 * amd64-fbsd-tdep.c: Fix common/ includes.
13720 * amd64-fbsd-nat.c: Fix common/ includes.
13721 * amd64-dicos-tdep.c: Fix common/ includes.
13722 * amd64-darwin-tdep.c: Fix common/ includes.
13723 * agent.c: Fix common/ includes.
13724 * ada-lang.h: Fix common/ includes.
13725 * ada-lang.c: Fix common/ includes.
13726 * aarch64-tdep.c: Fix common/ includes.
13727
13728 2019-01-25 Tom Tromey <tom@tromey.com>
13729
13730 * common/create-version.sh: Use common/version.h.
13731
13732 2019-01-24 Pedro Alves <palves@redhat.com>
13733
13734 * infrun.c (signal_stop, signal_print, signal_program)
13735 (signal_catch, signal_pass): Now arrays instead of pointers.
13736 (update_signals_program_target, do_target_resume)
13737 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13738 * linux-nat.c (linux_nat_target::pass_signals)
13739 (linux_nat_target::create_inferior, linux_nat_target::attach):
13740 Adjust.
13741 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13742 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13743 * procfs.c (procfs_target::pass_signals): Adjust.
13744 * record-full.c (record_full_target::resume): Adjust.
13745 * remote.c (remote_target::pass_signals)
13746 (remote_target::program_signals): Adjust.
13747 * target-debug.h (target_debug_print_signals): Now takes a
13748 gdb::array_view as parameter. Adjust.
13749 * target.h (target_ops) <pass_signals, program_signals>: Replace
13750 pointer and length parameters with gdb::array_view.
13751 (target_pass_signals, target_program_signals): Likewise.
13752 * target-delegates.c: Regenerate.
13753
13754 2019-01-24 Pedro Alves <palves@redhat.com>
13755
13756 * common/forward-scope-exit.h
13757 (forward_scope_exit::forward_scope_exit): Pass arguments to
13758 m_bind_function directly, instead of creating a std::bind and
13759 copying that.
13760
13761 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13762
13763 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13764 for static members.
13765 (pass_in_v_vfp_candidate): Likewise.
13766
13767 2019-01-23 Tom Tromey <tom@tromey.com>
13768 Pedro Alves <palves@redhat.com>
13769
13770 * regcache.c (class regcache_invalidator): Remove.
13771 (regcache::raw_write): Use make_scope_exit.
13772
13773 2019-01-23 Tom Tromey <tom@tromey.com>
13774
13775 * ui-out.h (class ui_out_emit_type): Update comment.
13776
13777 2019-01-23 Tom Tromey <tom@tromey.com>
13778
13779 * infrun.c (fetch_inferior_event): Update comment.
13780
13781 2019-01-23 Tom Tromey <tom@tromey.com>
13782 Pedro Alves <palves@redhat.com>
13783
13784 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13785 parameter.
13786 (fetch_inferior_event): Use SCOPE_EXIT.
13787
13788
13789 2019-01-23 Tom Tromey <tom@tromey.com>
13790 Pedro Alves <palves@redhat.com>
13791
13792 * infrun.c (disable_thread_events): Delete.
13793 (stop_all_threads): Use SCOPE_EXIT.
13794
13795 2019-01-23 Tom Tromey <tom@tromey.com>
13796 Pedro Alves <palves@redhat.com>
13797
13798 * symfile.c: Include forward-scope-exit.h.
13799 (clear_symtab_users_cleanup): Replace forward declaration with
13800 a FORWARD_SCOPE_EXIT.
13801 (syms_from_objfile_1): Use the forward_scope_exit and
13802 gdb::optional instead of cleanup_function.
13803 (reread_symbols): Use the forward_scope_exit instead of
13804 cleanup_function.
13805 (clear_symtab_users_cleanup): Remove function.
13806
13807 2019-01-23 Tom Tromey <tom@tromey.com>
13808 Pedro Alves <palves@redhat.com>
13809
13810 * linux-nat.c: Include scope-exit.h.
13811 (cleanup_target_stop): Remove.
13812 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13813 SCOPE_EXIT.
13814
13815 2019-01-23 Tom Tromey <tom@tromey.com>
13816 Pedro Alves <palves@redhat.com>
13817
13818 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13819 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13820
13821 2019-01-23 Tom Tromey <tom@tromey.com>
13822 Andrew Burgess <andrew.burgess@embecosm.com>
13823 Pedro Alves <palves@redhat.com>
13824
13825 * infrun.c (fetch_inferior_event): Use scope_exit.
13826 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13827 * top.c (execute_command): Use scope_exit.
13828 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13829 * utils.c (do_bpstat_clear_actions_cleanup)
13830 (make_bpstat_clear_actions_cleanup): Remove.
13831
13832 2019-01-23 Tom Tromey <tom@tromey.com>
13833 Pedro Alves <palves@redhat.com>
13834
13835 * infrun.c: Include "common/scope-exit.h"
13836 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13837 (wait_for_inferior): Use SCOPE_EXIT.
13838 (fetch_inferior_event): Use scope_exit.
13839
13840 2019-01-23 Tom Tromey <tom@tromey.com>
13841 Pedro Alves <palves@redhat.com>
13842
13843 * breakpoint.c (create_breakpoint): Remove cleanup.
13844
13845 2019-01-23 Tom Tromey <tom@tromey.com>
13846 Andrew Burgess <andrew.burgess@embecosm.com>
13847 Pedro Alves <palves@redhat.com>
13848
13849 2019-01-23 Pedro Alves <palves@redhat.com>
13850
13851 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13852
13853 2019-01-23 Pedro Alves <palves@redhat.com>
13854 Andrew Burgess <andrew.burgess@embecosm.com>
13855
13856 * gdbthread.h: Include "common/forward-scope-exit.h".
13857 (scoped_finish_thread_state): Redefine custom class in terms of
13858 forward_scope_exit.
13859
13860 2019-01-23 Pedro Alves <palves@redhat.com>
13861 Andrew Burgess <andrew.burgess@embecosm.com>
13862
13863 * common/forward-scope-exit.h: New file.
13864
13865 2019-01-23 Pedro Alves <palves@redhat.com>
13866 Andrew Burgess <andrew.burgess@embecosm.com>
13867 Tom Tromey <tom@tromey.com>
13868
13869 * common/scope-exit.h: New file.
13870
13871 2019-01-23 Pedro Alves <palves@redhat.com>
13872
13873 * common/preprocessor.h (ESC): Rename to ...
13874 (ESC_PARENS): ... this.
13875 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13876 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13877
13878 2019-01-23 Tom Tromey <tom@tromey.com>
13879
13880 * language.h (class scoped_switch_to_sym_language_if_auto):
13881 Initialize m_lang in both cases.
13882
13883 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13884
13885 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13886 with XCNEW.
13887
13888 2019-01-22 Tom Tromey <tom@tromey.com>
13889
13890 * corelow.c: Do not include sys/file.h.
13891
13892 2019-01-22 Tom Tromey <tom@tromey.com>
13893
13894 * tui/tui-wingeneral.h: Include gdb_curses.h.
13895
13896 2019-01-22 Tom Tromey <tom@tromey.com>
13897
13898 * source-cache.h (class source_cache) <get_source_lines,
13899 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13900
13901 2019-01-22 Tom Tromey <tom@tromey.com>
13902
13903 * remote-fileio.h (struct remote_target): Declare.
13904
13905 2019-01-22 Tom Tromey <tom@tromey.com>
13906
13907 * python/py-arch.c: Do not include py-ref.h.
13908 * python/py-bpevent.c: Do not include py-ref.h.
13909 * python/py-cmd.c: Do not include py-ref.h.
13910 * python/py-continueevent.c: Do not include py-ref.h.
13911 * python/py-event.h: Do not include py-ref.h.
13912 * python/py-evtregistry.c: Do not include py-ref.h.
13913 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13914 * python/py-frame.c: Do not include py-ref.h.
13915 * python/py-framefilter.c: Do not include py-ref.h.
13916 * python/py-function.c: Do not include py-ref.h.
13917 * python/py-infevents.c: Do not include py-ref.h.
13918 * python/py-linetable.c: Do not include py-ref.h.
13919 * python/py-objfile.c: Do not include py-ref.h.
13920 * python/py-param.c: Do not include py-ref.h.
13921 * python/py-prettyprint.c: Do not include py-ref.h.
13922 * python/py-progspace.c: Do not include py-ref.h.
13923 * python/py-symbol.c: Do not include py-ref.h.
13924 * python/py-symtab.c: Do not include py-ref.h.
13925 * python/py-type.c: Do not include py-ref.h.
13926 * python/py-unwind.c: Do not include py-ref.h.
13927 * python/py-utils.c: Do not include py-ref.h.
13928 * python/py-value.c: Do not include py-ref.h.
13929 * python/py-varobj.c: Do not include py-ref.h.
13930 * python/py-xmethods.c: Do not include py-ref.h.
13931 * python/python.c: Do not include py-ref.h.
13932 * varobj.c: Do not include py-ref.h.
13933
13934 2019-01-22 Tom Tromey <tom@tromey.com>
13935
13936 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13937 keyword for bcache.
13938
13939 2019-01-22 Tom Tromey <tom@tromey.com>
13940
13941 * compile/compile-cplus-types.c: Remove a comment by #include.
13942
13943 2019-01-22 Tom Tromey <tom@tromey.com>
13944
13945 * compile/gcc-c-plugin.h: Include compile-internal.h.
13946
13947 2019-01-22 Tom Tromey <tom@tromey.com>
13948
13949 * stabsread.c (EXTERN): Do not define.
13950 (symnum, next_symbol_text_func, processing_gcc_compilation)
13951 (within_function, global_sym_chain, global_stabs)
13952 (previous_stab_code, this_object_header_files)
13953 (n_this_object_header_files)
13954 (n_allocated_this_object_header_files): Define.
13955 * stabsread.h (EXTERN): Never define. Use "extern".
13956
13957 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13958
13959 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13960 history_value.
13961
13962 2019-01-21 Tom Tromey <tom@tromey.com>
13963
13964 * ui-out.c: Fix includes.
13965 * tui/tui-source.c: Fix includes.
13966 * target.c: Fix includes.
13967 * remote.c: Fix includes.
13968 * regcache.c: Fix includes.
13969 * python/py-block.c: Fix includes.
13970 * printcmd.c: Fix includes.
13971 * or1k-tdep.c: Fix includes.
13972 * mi/mi-main.c: Fix includes.
13973 * m32r-tdep.c: Fix includes.
13974 * csky-tdep.c: Fix includes.
13975 * compile/compile-cplus-types.c: Fix includes.
13976 * cli/cli-interp.c: Fix includes.
13977
13978 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13979
13980 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13981 for padding.
13982
13983 2019-01-16 Tom Tromey <tom@tromey.com>
13984
13985 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13986 earlier.
13987 (struct objfile) <msymbols_range>: Move from top level.
13988 <msymbols>: New method.
13989 (class objfile_msymbols): Remove.
13990 * symtab.c (default_collect_symbol_completion_matches_break_on):
13991 Update.
13992 * symmisc.c (dump_msymbols): Update.
13993 * stabsread.c (scan_file_globals): Update.
13994 * objc-lang.c (info_selectors_command, info_classes_command)
13995 (find_methods): Update.
13996 * minsyms.c (find_solib_trampoline_target): Update.
13997 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13998 * coffread.c (coff_symfile_read): Update.
13999 * ada-lang.c (ada_lookup_simple_minsym)
14000 (ada_collect_symbol_completion_matches): Update.
14001
14002 2019-01-16 Tom Tromey <tom@tromey.com>
14003
14004 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14005 type. Remove no-argument constructor.
14006 <iterator::operator++>: Simplify.
14007 <begin>: Update.
14008 <end>: Use minimal_symbol_count.
14009
14010 2019-01-16 Tom Tromey <tom@tromey.com>
14011
14012 * objfiles.h (struct objfile) <psymtabs>: New method.
14013 (class objfile_psymtabs): Remove.
14014 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14015 typedef.
14016 <range>: New method.
14017 (require_partial_symbols): Change return type.
14018 * psymtab.c (require_partial_symbols)
14019 (psym_expand_symtabs_matching): Update.
14020 * mdebugread.c (parse_partial_symbols): Update.
14021 * dbxread.c (dbx_end_psymtab): Update.
14022
14023 2019-01-15 Tom Tromey <tom@tromey.com>
14024
14025 * symtab.c (lookup_objfile_from_block)
14026 (lookup_symbol_in_objfile_symtabs)
14027 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14028 (find_line_symtab, info_sources_command)
14029 (default_collect_symbol_completion_matches_break_on)
14030 (make_source_files_completion_list): Update.
14031 * symmisc.c (print_objfile_statistics, dump_objfile)
14032 (maintenance_print_symbols, maintenance_info_symtabs)
14033 (maintenance_check_symtabs, maintenance_info_line_tables):
14034 Update.
14035 * source.c (select_source_symtab)
14036 (forget_cached_source_info_for_objfile): Update.
14037 * objfiles.h (class objfile_compunits): Remove.
14038 (struct objfile) <compunits_range>: New typedef.
14039 (compunits): New method.
14040 * objfiles.c (objfile_relocate1): Update.
14041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14042 * maint.c (count_symtabs_and_blocks): Update.
14043 * linespec.c (iterate_over_all_matching_symtabs): Update.
14044 * cp-support.c (add_symbol_overload_list_qualified): Update.
14045 * coffread.c (coff_symtab_read): Update.
14046 * ada-lang.c (add_nonlocal_symbols)
14047 (ada_collect_symbol_completion_matches)
14048 (ada_add_global_exceptions): Update.
14049
14050 2019-01-15 Tom Tromey <tom@tromey.com>
14051
14052 * progspace.h (program_space) <objfiles_safe_range>: New
14053 typedef.
14054 <objfiles_safe>: New method.
14055 * objfiles.h (class all_objfiles_safe): Remove.
14056 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14057 * jit.c (jit_inferior_exit_hook): Update.
14058
14059 2019-01-17 Tom Tromey <tom@tromey.com>
14060
14061 * progspace.h (program_space) <objfiles_range>: New typedef.
14062 <objfiles>: New method.
14063 <objfiles_head>: Rename from objfiles.
14064 (object_files): Update.
14065 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14066 * guile/scm-pretty-print.c
14067 (ppscm_find_pretty_printer_from_objfiles): Update.
14068 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14069 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14070 Update.
14071 * python/py-progspace.c (pspy_get_objfiles): Update.
14072 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14073 Update.
14074 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14075 (objfpy_lookup_objfile_by_build_id): Update.
14076 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14077 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14078 Update.
14079 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14080 (expand_symtab_containing_pc, lookup_objfile_from_block)
14081 (lookup_static_symbol, basic_lookup_transparent_type)
14082 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14083 (find_line_symtab, info_sources_command)
14084 (default_collect_symbol_completion_matches_break_on)
14085 (make_source_files_completion_list, find_main_name): Update.
14086 * symmisc.c (print_symbol_bcache_statistics)
14087 (print_objfile_statistics, maintenance_print_symbols)
14088 (maintenance_print_msymbols, maintenance_print_objfiles)
14089 (maintenance_info_symtabs, maintenance_check_symtabs)
14090 (maintenance_expand_symtabs, maintenance_info_line_tables):
14091 Update.
14092 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14093 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14094 (map_overlay_command, unmap_overlay_command)
14095 (simple_overlay_update, expand_symtabs_matching)
14096 (map_symbol_filenames): Update.
14097 * symfile-debug.c (set_debug_symfile): Update.
14098 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14099 Update.
14100 * source.c (select_source_symtab, forget_cached_source_info):
14101 Update.
14102 * solib.c (solib_read_symbols): Update.
14103 * solib-spu.c (append_ocl_sos): Update.
14104 * psymtab.c (maintenance_print_psymbols)
14105 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14106 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14107 * printcmd.c (info_symbol_command): Update.
14108 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14109 Update.
14110 * objfiles.h (class all_objfiles): Remove.
14111 * objfiles.c (have_partial_symbols, have_full_symbols)
14112 (have_minimal_symbols, qsort_cmp, update_section_map)
14113 (shared_objfile_contains_address_p)
14114 (default_iterate_over_objfiles_in_search_order): Update.
14115 * objc-lang.c (info_selectors_command, info_classes_command)
14116 (find_methods): Update.
14117 * minsyms.c (find_solib_trampoline_target): Update.
14118 * maint.c (maintenance_info_sections)
14119 (maintenance_translate_address, count_symtabs_and_blocks):
14120 Update.
14121 * main.c (captured_main_1): Update.
14122 * linux-thread-db.c (try_thread_db_load_from_pdir)
14123 (has_libpthread): Update.
14124 * linespec.c (iterate_over_all_matching_symtabs)
14125 (search_minsyms_for_name): Update.
14126 * jit.c (jit_find_objf_with_entry_addr): Update.
14127 * hppa-tdep.c (find_unwind_entry)
14128 (hppa_lookup_stub_minimal_symbol): Update.
14129 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14130 Update.
14131 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14132 (elf_gnu_ifunc_resolve_by_got): Update.
14133 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14134 * dwarf-index-write.c (save_gdb_index_command): Update.
14135 * cp-support.c (add_symbol_overload_list_qualified): Update.
14136 * breakpoint.c (create_overlay_event_breakpoint)
14137 (create_longjmp_master_breakpoint)
14138 (create_std_terminate_master_breakpoint)
14139 (create_exception_master_breakpoint): Update.
14140 * blockframe.c (find_pc_partial_function): Update.
14141 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14142 (ada_collect_symbol_completion_matches)
14143 (ada_add_global_exceptions): Update.
14144
14145 2019-01-17 Tom Tromey <tom@tromey.com>
14146
14147 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14148 declare VEC.
14149 (solib_target_parse_libraries): Change return type.
14150 (library_list_start_segment, library_list_start_section)
14151 (library_list_end_library, library_list_start_library); Update.
14152 (solib_target_free_library_list): Remove.
14153 (solib_target_parse_libraries): Remove cleanup. Change return
14154 type.
14155 (solib_target_current_sos): Update.
14156
14157 2019-01-17 Tom Tromey <tromey@bapiya>
14158
14159 * valprint.c: Replace "the the" with "the".
14160 * symtab.c: Replace "the the" with "the".
14161 * solib.c: Replace "the the" with "the".
14162 * solib-dsbt.c: Replace "the the" with "the".
14163 * linespec.c: Replace "the the" with "the".
14164 * dwarf2loc.h: Replace "the the" with "the".
14165 * amd64-windows-tdep.c: Replace "the the" with "the".
14166 * aarch64-tdep.c: Replace "the the" with "the".
14167
14168 2019-01-16 Keith Seitz <keiths@redhat.com>
14169
14170 PR gdb/23773
14171 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14172 <builder>: Rename to ..
14173 <m_builder>: ... this and make private.
14174 (dwarf2_cu::get_builder): New method. Change all users of
14175 `builder' to use this method.
14176 (dwarf2_start_symtab): Move to ...
14177 (dwarf2_cu::start_symtab): ... here. Update all callers
14178 (setup_type_unit_groups): Move to ...
14179 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14180 callers.
14181 (dwarf2_cu::reset_builder): New method.
14182 (process_full_compunit, process_full_type_unit): Use
14183 dwarf2_cu::reset_builder.
14184 (follow_die_offset): Record the ancestor CU if it is different
14185 from the followed DIE's CU.
14186 (follow_die_sig_1): Likewise.
14187
14188 2019-01-15 Tom Tromey <tom@tromey.com>
14189
14190 * remote.c (class remote_state) <buf>: Now a char_vector.
14191 <buf_size>: Remove.
14192 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14193 parameter.
14194 (remote_target::getpkt_or_notif_sane_1)
14195 (remote_target::getpkt_sane)
14196 (remote_target::getpkt_or_notif_sane): Likewise.
14197 (class remote_target) <putpkt>: New overload.
14198 (remote_target::read_frame): Change type of "buf_p". Remove
14199 sizeof_p parameter.
14200 (packet_ok): New overload.
14201 (packet_check_result): New overload.
14202 Update all uses.
14203
14204 2019-01-14 Tom Tromey <tom@tromey.com>
14205
14206 * remote-notif.c (handle_notification, remote_notif_ack)
14207 (remote_notif_parse): Make "buf" const.
14208 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14209 const.
14210 (remote_notif_parse, remote_notif_ack, handle_notification):
14211 Likewise.
14212 * remote.c (remote_notif_stop_parse): Make "buf" const.
14213 (remote_target::remote_parse_stop_reply): Make "buf" const.
14214 (remote_notif_stop_ack): Make "buf" const.
14215
14216 2019-01-14 Tom Tromey <tom@tromey.com>
14217
14218 * remote.c (remote_console_output): Make parameter const.
14219
14220 2019-01-14 Tom Tromey <tom@tromey.com>
14221
14222 * target-debug.h (target_debug_print_signals): Constify.
14223 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14224 * procfs.c (procfs_target::pass_signals): Update.
14225 * linux-nat.c (linux_nat_target::pass_signals): Update.
14226 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14227 * target-delegates.c: Rebuild.
14228 * remote.c (remote_target::program_signals): Update.
14229 (remote_target::pass_signals): Update.
14230 * target.c (target_pass_signals): Constify argument.
14231 (target_program_signals): Likewise.
14232 * target.h (struct target_ops) <pass_signals, program_signals>:
14233 Constify argument.
14234 (target_pass_signals, target_program_signals): Constify argument.
14235
14236 2019-01-14 Tom Tromey <tom@tromey.com>
14237
14238 PR tui/28819:
14239 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14240
14241 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14242
14243 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14244 field.
14245 * rs6000-tdep.c: Include reggroups.h.
14246 (IS_V_ALIAS_PSEUDOREG): Define.
14247 (rs6000_register_name): Return names for the "vX" aliases.
14248 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14249 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14250 aliases. Call default_register_reggroup_p for all other
14251 pseudo-registers.
14252 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14253 New functions.
14254 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14255 Handle "vX" aliases.
14256 (v_alias_pseudo_register_collect): New function.
14257 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14258 (rs6000_gdbarch_init): Initialize "vX" aliases as
14259 pseudo-registers. Restore registration of
14260 rs6000_pseudo_register_reggroup_p with
14261 set_tdesc_pseudo_register_reggroup_p.
14262
14263 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14264
14265 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14266 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14267 set_gdbarch_num_pseudo_regs.
14268
14269 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14270
14271 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14272 Remove arg prefixname, add do_set and do_show.
14273 Add member functions set_list and show_list.
14274 * cli/cli-style.c (class cli_style_option): Update accordingly.
14275 (style_set_list): Move to file scope.
14276 (style_show_list): Likewise.
14277 (set_style): Call help_list.
14278 (show_style): Call cmd_show_list.
14279 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14280 Update to use the new macro.
14281
14282 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14283
14284 * ada-lang.c (_initialize_ada_language): Expand the help text
14285 for the "catch exception" command.
14286
14287 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14288
14289 * symtab.c (matching_obj_sections): Initialize obj,
14290 declare it closer to its usage.
14291
14292 2019-01-10 Tom Tromey <tom@tromey.com>
14293
14294 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14295 (basic_inf_threads_range): Remove.
14296 (inf_threads_range, inf_non_exited_threads_range)
14297 (safe_inf_threads_range): Use next_adapter.
14298
14299 2019-01-10 Keith Seitz <keiths@redhat.com>
14300
14301 PR gdb/23712
14302 PR symtab/23010
14303 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14304 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14305
14306 2019-01-10 Keith Seitz <keiths@redhat.com>
14307
14308 PR gdb/23712
14309 PR symtab/23010
14310 * dictionary.c (pending_to_vector): Remove.
14311 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14312 Remove _1 suffix, replacing functions of the same name. Update
14313 all callers.
14314 (dict_create_hashed, dict_create_hashed_expandable)
14315 (dict_create_linear, dict_create_linear_expandable, dict_free)
14316 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14317 Make functions static.
14318
14319 2019-01-10 Keith Seitz <keiths@redhat.com>
14320
14321 PR gdb/23712
14322 PR symtab/23010
14323 * dictionary.h (struct dictionary): Replace declaration with
14324 multidictionary.
14325 (dict_create_hashed, dict_create_hashed_expandable)
14326 (dict_create_linear, dict_create_linear_expandable)
14327 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14328 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14329 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14330 taking multidictionary argument.
14331 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14332 * block.h (struct block) <dict>: Change to multidictionary
14333 and rename `multidict'.
14334 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14335 symmisc.c: Update all dictionary references to multidictionary.
14336
14337 2019-01-10 Keith Seitz <keiths@redhat.com>
14338
14339 PR gdb/23712
14340 PR symtab/23010
14341 * dictionary.c: Include unordered_map.
14342 (pending_to_vector): New function.
14343 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14344 Rewrite the non-"_1" functions to take vector instead
14345 of linked list.
14346 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14347 "new" _1 versions of the same name.
14348 (multidictionary): Define.
14349 (std::hash<enum language): New definition.
14350 (collate_pending_symbols_by_language, mdict_create_hashed)
14351 (mdict_create_hashed_expandable, mdict_create_linear)
14352 (mdict_create_linear_expandable, mdict_free)
14353 (find_language_dictionary, create_new_language_dictionary)
14354 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14355 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14356 (mdict_size, mdict_empty): New functions.
14357 * dictionary.h (mdict_iterator): Define.
14358
14359 2019-01-10 Pedro Alves <palves@redhat.com>
14360
14361 * breakpoint.c (read_uploaded_action)
14362 (create_tracepoint_from_upload): Adjust to use
14363 gdb::unique_xmalloc_ptr.
14364 * ctf.c (ctf_write_uploaded_tp):
14365 (SET_ARRAY_FIELD): Use emplace_back.
14366 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14367 * tracefile-tfile.c (tfile_write_uploaded_tp):
14368 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14369 gdb::unique_xmalloc_ptr.
14370 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14371 at_string, cond_string, cmd_strings>: Replace char pointers
14372 with gdb::unique_xmalloc_ptr.
14373
14374 2019-01-10 Pedro Alves <palves@redhat.com>
14375
14376 * solib-target.c (library_list_start_library): Don't xstrdup name.
14377
14378 2019-01-10 Pedro Alves <palves@redhat.com>
14379
14380 * mdebugread.c (parse_partial_symbols): Use
14381 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14382
14383 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14384
14385 * linux-fork.c (scoped_switch_fork_info)
14386 <~scoped_switch_fork_info>: Fix incorrect variable name.
14387
14388 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14389
14390 * linux-fork.c (scoped_switch_fork_info)
14391 <scoped_switch_fork_info>: Make explicit.
14392 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14393
14394 2019-01-10 Tom Tromey <tom@tromey.com>
14395
14396 * objfiles.h (objfile::reset_psymtabs): Update.
14397 * objfiles.c (objfile::objfile): Update.
14398 * psymtab.h (psymtab_storage::obstack): Update.
14399 (psymtab_storage::m_obstack): Use gdb::optional.
14400 (class psymtab_storage): Update comment. Remove objfile
14401 parameter.
14402 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14403
14404 2019-01-10 Tom Tromey <tom@tromey.com>
14405
14406 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14407 <free_psymtabs>: Now private.
14408 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14409 (allocate_psymtab): Use new method.
14410
14411 2019-01-10 Tom Tromey <tom@tromey.com>
14412
14413 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14414 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14415 * mdebugread.c (parse_partial_symbols): Use
14416 allocate_dependencies.
14417 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14418 allocate_dependencies.
14419 (process_psymtab_comp_unit_reader)
14420 (build_type_psymtab_dependencies): Likewise.
14421 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14422
14423 2019-01-10 Tom Tromey <tom@tromey.com>
14424
14425 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14426 PSYMBOL_SET_LANGUAGE.
14427 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14428
14429 2019-01-10 Tom Tromey <tom@tromey.com>
14430
14431 * psymtab.h (psymtab_storage::obstack): New method.
14432 <m_obstack>: Rename from obstack; now private.
14433 * psymtab.c (psymtab_storage): Update.
14434 * dwarf2read.c (create_addrmap_from_index)
14435 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14436 Update.
14437
14438 2019-01-10 Tom Tromey <tom@tromey.com>
14439
14440 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14441 * objfiles.h (objfile::reset_psymtabs): New method.
14442
14443 2019-01-10 Tom Tromey <tom@tromey.com>
14444
14445 * symmisc.c (print_symbol_bcache_statistics): Update.
14446 (print_objfile_statistics): Update.
14447 * symfile.c (reread_symbols): Update.
14448 * psymtab.h (class psymtab_storage): New.
14449 * psymtab.c (psymtab_storage): New constructor.
14450 (~psymtab_storage): New destructor.
14451 (require_partial_symbols): Update.
14452 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14453 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14454 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14455 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14456 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14457 (start_psymtab_common, end_psymtab_common)
14458 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14459 (allocate_psymtab): Update.
14460 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14461 Update.
14462 (dump_psymtab_addrmap, maintenance_print_psymbols)
14463 (maintenance_check_psymtabs): Update.
14464 (class objfile_psymtabs): Move to objfiles.h.
14465 * psympriv.h (discard_psymtab): Now inline.
14466 (psymtab_discarder::psymtab_discarder): Update.
14467 (psymtab_discarder::~psymtab_discarder): Update.
14468 (ALL_OBJFILE_PSYMTABS): Rewrite.
14469 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14470 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14471 Remove fields.
14472 <partial_symtabs>: New field.
14473 (class objfile_psymtabs): Move from psymtab.h. Update.
14474 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14475 psymbol_cache.
14476 (objfile::~objfile): Don't destroy psymbol_cache.
14477 * mdebugread.c (parse_partial_symbols): Update.
14478 * dwarf2read.c (create_addrmap_from_index)
14479 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14480 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14481 (add_partial_subprogram, dwarf2_ranges_read): Update.
14482 * dwarf-index-write.c (write_address_map)
14483 (write_one_signatured_type, recursively_write_psymbols)
14484 (class debug_names, class debug_names, write_psymtabs_to_index):
14485 Update.
14486
14487 2019-01-10 Tom Tromey <tom@tromey.com>
14488
14489 * symtab.h (SYMBOL_SET_NAMES): Update.
14490 (symbol_set_names): Update.
14491 (MSYMBOL_SET_NAMES): Update.
14492 * symtab.c (symbol_set_names): Change argument to be an
14493 objfile_per_bfd_storage.
14494 * psymtab.c (add_psymbol_to_bcache): Update.
14495 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14496
14497 2019-01-10 Tom Tromey <tom@tromey.com>
14498
14499 * symtab.c (create_demangled_names_hash): Change argument to be an
14500 objfile_per_bfd_storage.
14501 (symbol_set_names): Update.
14502
14503 2019-01-10 Tom Tromey <tom@tromey.com>
14504
14505 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14506 init_psymbol_list.
14507 * psymtab.c (init_psymbol_list): Do nothing if already called.
14508 * psympriv.h (init_psymbol_list): Add comment.
14509 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14510 init_psymbol_list.
14511 * dbxread.c (dbx_symfile_read): Unconditionally call
14512 init_psymbol_list.
14513
14514 2019-01-10 Tom Tromey <tom@tromey.com>
14515
14516 * xcoffread.c (scan_xcoff_symtab): Update.
14517 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14518 "where".
14519 * mdebugread.c (parse_partial_symbols)
14520 (handle_psymbol_enumerators): Update.
14521 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14522 * dbxread.c (read_dbx_symtab): Update.
14523 * psympriv.h (psymbol_placement): New enum.
14524 (add_psymbol_to_list): Update.
14525
14526 2019-01-10 Tom Tromey <tom@tromey.com>
14527
14528 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14529 static_psymbols parameters.
14530 (scan_xcoff_symtab): Update.
14531 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14532 static_psymbols parameters.
14533 * psympriv.h (start_psymtab_common): Update.
14534 * mdebugread.c (parse_partial_symbols): Update.
14535 * dwarf2read.c (create_partial_symtab): Update.
14536 * dbxread.c (read_dbx_symtab): Update.
14537 (start_psymtab): Remove global_psymbols and static_psymbols
14538 parameters.
14539
14540 2019-01-10 Tom Tromey <tom@tromey.com>
14541
14542 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14543 * psymtab.c (allocate_psymtab): Add comment.
14544 * psympriv.h (allocate_psymtab): Add comment.
14545 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14546 initializations.
14547 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14548
14549 2019-01-10 Tom Tromey <tom@tromey.com>
14550
14551 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14552 Don't declare.
14553 * mipsread.c: Include mdebugread.h.
14554 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14555 Declare.
14556 * elfread.c: Include mdebugread.h.
14557
14558 2019-01-09 Tom Tromey <tom@tromey.com>
14559
14560 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14561 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14562 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14563 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14564 (psym_lookup_symbol, psym_find_last_source_symtab)
14565 (psym_forget_cached_source_info, psym_print_stats)
14566 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14567 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14568 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14569 (psym_find_compunit_symtab_by_address)
14570 (maintenance_print_psymbols, maintenance_info_psymtabs)
14571 (maintenance_check_psymtabs): Use ranged for.
14572 * psymtab.h (class objfile_psymtabs): New.
14573 (require_partial_symbols): Return objfile_psymtabs.
14574 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14575
14576 2019-01-09 Tom Tromey <tom@tromey.com>
14577
14578 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14579 (find_pc_mapped_section, list_overlays_command)
14580 (map_overlay_command, unmap_overlay_command)
14581 (simple_overlay_update): Use all_objfiles.
14582 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14583 * printcmd.c (info_symbol_command): Use all_objfiles.
14584 * objfiles.h (ALL_OBJSECTIONS): Remove.
14585 * maint.c (maintenance_translate_address): Use all_objfiles.
14586 * gcore.c (gcore_create_callback): Use all_objfiles.
14587 (objfile_find_memory_regions): Likewise.
14588
14589 2019-01-09 Tom Tromey <tom@tromey.com>
14590
14591 * symtab.c (find_line_symtab, info_sources_command)
14592 (make_source_files_completion_list): Use objfile_compunits.
14593 * source.c (select_source_symtab): Use objfile_compunits.
14594 * objfiles.h (struct objfile): Update comment.
14595 (ALL_OBJFILES): Remove.
14596 (ALL_FILETABS): Remove.
14597 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14598 objfile_compunits.
14599
14600 2019-01-09 Tom Tromey <tom@tromey.com>
14601
14602 * symmisc.c (print_objfile_statistics, dump_objfile)
14603 (maintenance_print_symbols): Use compunit_filetabs.
14604 * source.c (forget_cached_source_info_for_objfile): Use
14605 compunit_filetabs.
14606 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14607 (ALL_FILETABS): Use compunit_filetabs.
14608 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14609 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14610
14611 2019-01-09 Tom Tromey <tom@tromey.com>
14612
14613 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14614 (compunit_filetabs): New.
14615 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14616 compunit_filetabs.
14617 (info_sources_command, make_source_files_completion_list): Remove
14618 declaration.
14619 * symmisc.c (print_objfile_statistics, dump_objfile)
14620 (maintenance_print_symbols): Remove declaration.
14621 (maintenance_info_symtabs): Use compunit_filetabs.
14622 (maintenance_info_line_tables): Likewise.
14623 * source.c (select_source_symtab): Change local variable name.
14624 (forget_cached_source_info_for_objfile): Remove declaration.
14625 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14626 * objfiles.c (objfile_relocate1): Remove declaration.
14627 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14628 declaration.
14629 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14630 * coffread.c (coff_symtab_read): Remove declaration.
14631 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14632 compunit_filetabs.
14633
14634 2019-01-09 Tom Tromey <tom@tromey.com>
14635
14636 * symtab.c (lookup_objfile_from_block)
14637 (find_pc_sect_compunit_symtab, search_symbols)
14638 (default_collect_symbol_completion_matches_break_on): Use
14639 objfile_compunits.
14640 * objfiles.h (ALL_COMPUNITS): Remove.
14641 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14642 * cp-support.c (add_symbol_overload_list_qualified): Use
14643 objfile_compunits.
14644 * ada-lang.c (ada_collect_symbol_completion_matches)
14645 (ada_add_global_exceptions): Use objfile_compunits.
14646
14647 2019-01-09 Tom Tromey <tom@tromey.com>
14648
14649 * source.c (select_source_symtab)
14650 (forget_cached_source_info_for_objfile): Remove declaration.
14651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14652 declaration.
14653 * maint.c (count_symtabs_and_blocks): Remove declaration.
14654 * cp-support.c (add_symbol_overload_list_qualified): Remove
14655 declaration.
14656 * coffread.c (coff_symtab_read): Remove declaration.
14657 * symtab.c (lookup_symbol_in_objfile_symtabs)
14658 (basic_lookup_transparent_type_1): Use objfile_compunits.
14659 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14660 (info_sources_command, search_symbols)
14661 (default_collect_symbol_completion_matches_break_on)
14662 (make_source_files_completion_list): Remove declaration.
14663 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14664 (ada_collect_symbol_completion_matches)
14665 (ada_add_global_exceptions): Remove declaration.
14666 * linespec.c (iterate_over_all_matching_symtabs): Use
14667 objfile_compunits.
14668 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14669 (class objfile_compunits): New.
14670 (ALL_COMPUNITS): Use objfile_compunits.
14671 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14672 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14673 objfile_compunits.
14674 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14675
14676 2019-01-09 Tom Tromey <tom@tromey.com>
14677
14678 * symtab.c (search_symbols)
14679 (default_collect_symbol_completion_matches_break_on): Use
14680 objfile_msymbols.
14681 * ada-lang.c (ada_lookup_simple_minsym)
14682 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14683 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14684 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14685 objfile_msymbols.
14686 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14687 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14688 * objc-lang.c (find_methods): Use objfile_msymbols.
14689 (info_selectors_command, info_classes_command): Likewise.
14690 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14691 * objfiles.h (class objfile_msymbols): New.
14692 (ALL_OBJFILE_MSYMBOLS): Remove.
14693 (ALL_MSYMBOLS): Remove.
14694
14695 2019-01-09 Tom Tromey <tom@tromey.com>
14696
14697 * common/next-iterator.h (next_adapter): Add Iterator template
14698 parameter.
14699 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14700 (class all_objfiles_safe): New.
14701 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14702 * objfiles.c (put_objfile_before): Update comment.
14703 (add_separate_debug_objfile): Likewise.
14704 (free_all_objfiles): Use all_objfiles_safe.
14705 (objfile_purge_solibs): Likewise.
14706
14707 2019-01-09 Tom Tromey <tom@tromey.com>
14708
14709 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14710 (expand_symtab_containing_pc, lookup_static_symbol)
14711 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14712 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14713 all_objfiles.
14714 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14715 * breakpoint.c (create_overlay_event_breakpoint)
14716 (create_longjmp_master_breakpoint)
14717 (create_std_terminate_master_breakpoint)
14718 (create_exception_master_breakpoint): Use all_objfiles.
14719 * linux-thread-db.c (try_thread_db_load_from_pdir)
14720 (has_libpthread): Use all_objfiles.
14721 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14722 * linespec.c (iterate_over_all_matching_symtabs)
14723 (search_minsyms_for_name): Use all_objfiles.
14724 * maint.c (maintenance_info_sections): Use all_objfiles.
14725 * main.c (captured_main_1): Use all_objfiles.
14726 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14727 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14728 * guile/scm-pretty-print.c
14729 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14730 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14731 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14732 (maintenance_print_msymbols): Use all_objfiles.
14733 * source.c (select_source_symtab): Use all_objfiles.
14734 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14735 * symfile.c (remove_symbol_file_command)
14736 (expand_symtabs_matching, map_symbol_filenames): Use
14737 all_objfiles.
14738 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14739 all_objfiles.
14740 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14741 * objc-lang.c (find_methods): Use all_objfiles.
14742 * objfiles.c (have_partial_symbols, have_full_symbols)
14743 (have_minimal_symbols, qsort_cmp)
14744 (default_iterate_over_objfiles_in_search_order): Use
14745 all_objfiles.
14746 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14747 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14748 (maintenance_check_psymtabs): Use all_objfiles.
14749 (ALL_PSYMTABS): Remove.
14750 * compile/compile-object-run.c (do_module_cleanup): Use
14751 all_objfiles.
14752 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14753 * cp-support.c (add_symbol_overload_list_qualified): Use
14754 all_objfiles.
14755 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14756 Use all_objfiles.
14757 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14758 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14759 all_objfiles.
14760 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14761 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14762 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14763 Uses all_objfiles.
14764 * solib.c (solib_read_symbols): Use all_objfiles
14765
14766 2019-01-09 Tom Tromey <tom@tromey.com>
14767
14768 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14769 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14770 all_objfiles.
14771 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14772 * symmisc.c (print_symbol_bcache_statistics)
14773 (print_objfile_statistics, maintenance_print_objfiles)
14774 (maintenance_info_symtabs, maintenance_check_symtabs)
14775 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14776 all_objfiles.
14777 * source.c (forget_cached_source_info): Use all_objfiles.
14778 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14779 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14780 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14781 * objfiles.c (update_section_map): Use all_objfiles.
14782 (shared_objfile_contains_address_p): Likewise.
14783 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14784 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14785
14786 2019-01-09 Tom Tromey <tom@tromey.com>
14787
14788 * common/next-iterator.h: New file.
14789 * objfiles.h (class all_objfiles): New.
14790 (struct objfile_iterator): New.
14791
14792 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14793
14794 * NEWS: Move the description of the changed "frame", "select-frame",
14795 and "info frame" commands to the Changed commands section.
14796
14797 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14798
14799 * gdbtypes.c (check_stub_method_group): Remove handling of old
14800 mangling schemes.
14801 * linespec.c (find_methods): Likewise.
14802 * stabsread.c (read_member_functions): Likewise.
14803 * valops.c (search_struct_method): Likewise.
14804 (value_struct_elt_for_reference): Likewise.
14805 * NEWS: Mention this change.
14806
14807 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14808
14809 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14810 print_source_lines.
14811 * source.c (print_source_lines_base): Update line number check.
14812 (print_source_lines): New function.
14813 (source_lines_range::source_lines_range): New function.
14814 * source.h (class source_lines_range): New class.
14815 (print_source_lines): New declaration.
14816
14817 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14818
14819 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14820
14821 2019-01-08 Tom Tromey <tom@tromey.com>
14822 Simon Marchi <simon.marchi@ericsson.com>
14823
14824 PR gdb/24060
14825 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14826 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14827 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14828 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14829 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14830 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14831
14832 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14833
14834 * source.c (select_source_symtab): Move header comment to
14835 declaration in source.h.
14836 (forget_cached_source_info_for_objfile): Likewise.
14837 (forget_cached_source_info): Likewise.
14838 (identify_source_line): Likewise.
14839 * source.h (identify_source_line): Move declaration from symtab.h
14840 and add comment from source.c
14841 (print_source_lines): Likewise.
14842 (forget_cached_source_info_for_objfile): Likewise.
14843 (forget_cached_source_info): Likewise.
14844 (select_source_symtab): Likewise.
14845 (enum print_source_lines_flag): Move definition from symtab.h.
14846 * symtab.h (identify_source_line): Move declaration to source.h.
14847 (print_source_lines): Likewise.
14848 (forget_cached_source_info_for_objfile): Likewise.
14849 (forget_cached_source_info): Likewise.
14850 (select_source_symtab): Likewise.
14851 (enum print_source_lines_flag): Move definition to source.h.
14852 * tui/tui-hooks.c: Add 'source.h' include.
14853
14854 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14855
14856 * source.c (print_source_lines_base): Handle requests to print
14857 reverse line number sequences, and guard against empty lines
14858 string.
14859
14860 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14861
14862 * source.c (print_source_lines_base): Fix skip of '\r' if next
14863 character is '\n'.
14864
14865 2019-01-06 Tom Tromey <tom@tromey.com>
14866
14867 * c-exp.y (struct c_parse_state) <macro_original_text,
14868 expansion_obstack>: New member.
14869 (macro_original_text, expansion_obstack): Remove globals.
14870 (scan_macro_expansion, scanning_macro_expansion)
14871 (finished_macro_expansion): Update.
14872 (scan_macro_cleanup): Remove.
14873 (yylex, c_parse): Update.
14874
14875 2019-01-06 Tom Tromey <tom@tromey.com>
14876
14877 * c-exp.y (struct c_parse_state) <strings>: New member.
14878 (operator_stoken): Update.
14879
14880 2019-01-06 Tom Tromey <tom@tromey.com>
14881
14882 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14883 (union type_stack_elt) <typelist_val>: Now a pointer to
14884 std::vector.
14885 (type_stack_cleanup): Don't declare.
14886 (push_typelist): Update.
14887 * parse.c (pop_typelist): Return a std::vector.
14888 (push_typelist): Take a std::vector.
14889 (follow_types): Update. Do not free args.
14890 (type_stack_cleanup): Remove.
14891 * c-exp.y (struct c_parse_state): New.
14892 (cpstate): New global.
14893 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14894 (nonempty_typelist): Update.
14895 (func_mod): Create a new vector.
14896 (c_parse): Create a c_parse_state.
14897 (check_parameter_typelist): Do not delete params.
14898 (function_method): Update. Do not delete type_list.
14899
14900 2019-01-06 Tom Tromey <tom@tromey.com>
14901
14902 PR gdb/28155:
14903 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14904 check_typedef.
14905 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14906 (print_return_value): Likewise.
14907
14908 2019-01-05 Tom Tromey <tom@tromey.com>
14909
14910 * contrib/cleanup_check.py: Remove.
14911 * contrib/gcc-with-excheck: Remove.
14912 * contrib/exsummary.py: Remove.
14913 * contrib/excheck.py: Remove.
14914
14915 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14916
14917 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14918 NULL. Initialize tpprev to NULL instead of assigning it
14919 to NULL on the next statement.
14920 * windows-nat.c (windows_delete_thread): Remove check for
14921 main_thread_id before printing thread exit notifications.
14922 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14923 Remove thread ID check against main_thread_id.
14924 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14925 windows_delete_thread.
14926 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14927
14928 2019-01-04 Tom Tromey <tom@tromey.com>
14929
14930 * compile/compile.c (_initialize_compile): Use upper case for
14931 metasyntactic variables.
14932 * symmisc.c (_initialize_symmisc): Use upper case for
14933 metasyntactic variables.
14934 * psymtab.c (_initialize_psymtab): Use upper case for
14935 metasyntactic variables.
14936 * demangle.c (demangle_command): Use upper case for metasyntactic
14937 variables.
14938 (_initialize_demangler): Likewise.
14939 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14940 variables.
14941
14942 2019-01-03 Tom Tromey <tom@tromey.com>
14943
14944 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14945
14946 2019-01-03 Tom Tromey <tom@tromey.com>
14947
14948 * python/py-symtab.c (salpy_str): Update.
14949 (struct salpy_sal_object) <symtab>: Now a PyObject.
14950 (salpy_dealloc): Update.
14951 (del_objfile_sal): Use gdbpy_ref.
14952
14953 2019-01-03 Tom Tromey <tom@tromey.com>
14954
14955 * python/py-type.c (convert_field): Use new_reference. Return
14956 gdbpy_ref.
14957 (make_fielditem): Return gdbpy_ref.
14958 (typy_fields): Update.
14959 (typy_getitem): Update.
14960 (field_name): Return gdbpy_ref. Use new_reference.
14961 (typy_iterator_iternext): Update.
14962
14963 2019-01-03 Tom Tromey <tom@tromey.com>
14964
14965 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14966
14967 2019-01-03 Tom Tromey <tom@tromey.com>
14968
14969 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14970 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14971 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14972 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14973 (pspy_set_type_printers): Likewise.
14974 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14975 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14976 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14977 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14978 (objfpy_set_type_printers): Likewise.
14979
14980 2019-01-03 Tom Tromey <tom@tromey.com>
14981
14982 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14983 (gdbpy_print_stack): Use gdbpy_err_fetch.
14984 * python/python-internal.h (class gdbpy_err_fetch): New class.
14985 (class gdbpy_enter) <m_error_type, m_error_value,
14986 m_error_traceback>: Remove.
14987 <m_error>: New member.
14988 (gdbpy_exception_to_string): Don't declare.
14989 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14990 * python/py-value.c (convert_value_from_python): Use
14991 gdbpy_err_fetch.
14992 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14993 gdbpy_exception_to_string.
14994 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14995 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14996 gdbpy_err_fetch.
14997
14998 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14999
15000 * linux-nat.c (delete_lwp_cleanup): Delete.
15001 (struct lwp_deleter): New struct.
15002 (lwp_info_up): New typedef.
15003 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15004 lwp_info_up.
15005
15006 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15007
15008 * linux-fork.c (class scoped_switch_fork_info): New class.
15009 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15010
15011 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15012
15013 * valops.c (find_overload_match): Remove use of null_cleanup, and
15014 calls to do_cleanups.
15015
15016 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15017
15018 * compile/compile-cplus-types.c
15019 (compile_cplus_instance::decl_name): Handle changes to
15020 cp_func_name.
15021 * cp-support.c (cp_func_name): Update header comment, update
15022 return type.
15023 * cp-support.h (cp_func_name): Update return type in declaration.
15024 * valops.c (find_overload_match): Move temp_func local to top
15025 level of function and change its type. Use temp_func to hold and
15026 delete temporary string obtained from cp_func_name.
15027
15028 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15029
15030 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15031 gdb::char_vector, remove cleanup, and update uses of `msg`.
15032
15033 2019-01-03 Jim Wilson <jimw@sifive.com>
15034
15035 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15036
15037 2019-01-02 Tom Tromey <tom@tromey.com>
15038
15039 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15040 (tdesc_parse_xml): Remove cleanups.
15041 * target-descriptions.h (make_cleanup_free_target_description):
15042 Don't declare.
15043 (target_desc_deleter): New struct.
15044 (target_desc_up): New typedef.
15045 * target-descriptions.c (target_desc_deleter::operator()): Rename
15046 from free_target_description.
15047 (make_cleanup_free_target_description): Remove.
15048
15049 2019-01-02 Tom Tromey <tom@tromey.com>
15050
15051 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15052 constructor, destructor.
15053 (linespec_parser): Remove typedef.
15054 (~linespec_parser): Rename from linespec_parser_delete.
15055 (linespec_lex_to_end, linespec_complete_label)
15056 (linespec_complete): Update.
15057 (decode_line_full): Remove cleanups.
15058 (decode_line_1): Update.
15059
15060 2019-01-02 Tom Tromey <tom@tromey.com>
15061
15062 * python/python-internal.h (inferior_to_inferior_object): Change
15063 return type.
15064 * python/py-exitedevent.c (create_exited_event_object): Update.
15065 * python/py-inferior.c (inferior_to_inferior_object): Return
15066 gdbpy_ref.
15067 (python_new_inferior, python_inferior_deleted)
15068 (thread_to_thread_object, delete_thread_object)
15069 (build_inferior_list, gdbpy_selected_inferior): Update.
15070 * python/py-infthread.c (create_thread_object): Update. Also fail
15071 if inferior_to_inferior_object fails.
15072
15073 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15074
15075 * inferior.h (class inferior) <displaced_step_state>: New field.
15076 * infrun.h (struct displaced_step_state): Move here from
15077 infrun.c. Initialize fields, add constructor.
15078 <inf>: Remove field.
15079 <reset>: New method.
15080 * infrun.c (struct displaced_step_inferior_state): Move to
15081 infrun.h.
15082 (displaced_step_inferior_states): Remove.
15083 (get_displaced_stepping_state): Adust.
15084 (displaced_step_in_progress_any_inferior): Adjust.
15085 (displaced_step_in_progress_thread): Adjust.
15086 (displaced_step_in_progress): Adjust.
15087 (add_displaced_stepping_state): Remove.
15088 (get_displaced_step_closure_by_addr): Adjust.
15089 (remove_displaced_stepping_state): Remove.
15090 (infrun_inferior_exit): Call displaced_step_state.reset.
15091 (use_displaced_stepping): Don't check for NULL.
15092 (displaced_step_prepare_throw): Call
15093 get_displaced_stepping_state.
15094 (displaced_step_fixup): Don't check for NULL.
15095 (prepare_for_detach): Don't check for NULL.
15096
15097 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15098
15099 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15100 in case of call that did not complete.
15101
15102 2019-01-02 Andrey Utkin <autkin@undo.io>
15103
15104 * symfile.c (find_separate_debug_file): Fix search of debug files for
15105 remote debuggee.
15106
15107 2019-01-02 Tom Tromey <tom@tromey.com>
15108
15109 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15110 indentation.
15111 * python/py-frame.c (frapy_older): Remove cast.
15112 (frapy_newer): Likewise.
15113 * python/py-breakpoint.c (local_setattro): Remove cast.
15114 * python/py-arch.c (archpy_name): Remove local variable.
15115 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15116
15117 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15118
15119 * unittests/basic_string_view/element_access/char/empty.cc:
15120 Fix year range in copyright header.
15121
15122 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15123
15124 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15125 Delete.
15126 <operator==>: Update with for removed field.
15127 <hash>: Likewise.
15128 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15129 <isa_features>: ...this.
15130 <abi_features>: New field.
15131 (riscv_isa_flen): Update comment.
15132 (riscv_abi_xlen): New declaration.
15133 (riscv_abi_flen): New declaration.
15134 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15135 isa_features.
15136 (riscv_abi_xlen): New function.
15137 (riscv_isa_flen): Update to get answer from isa_features.
15138 (riscv_abi_flen): New function.
15139 (riscv_has_fp_abi): Update to get answer from abi_features.
15140 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15141 xlen and flen.
15142 (riscv_call_info) <xlen, flen>: Update comment.
15143 (riscv_call_arg_struct): Remove invalid assertions
15144 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15145 is removed.
15146 (riscv_gdbarch_init): Gather isa features and abi features
15147 separately, ensure both match on the gdbarch when reusing an old
15148 gdbarch. Relax an error check to allow 32-bit abi float to run on
15149 a target with 64-bit float hardware.
15150
15151 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15152
15153 * source.c (search_command_helper): Stop reverse search
15154 when line 1 has been searched.
15155
15156 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15157
15158 * record-full.c (record_full_base_target::close): Rewrite
15159 record_full_core_buf_list free logic.
15160
15161 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15162
15163 * break-catch-syscall.c (print_one_catch_syscall): xfree
15164 the last text.
15165
15166 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15167
15168 * top.c (print_gdb_version): Update Copyright year in version
15169 message.
15170
15171 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15172
15173 Update copyright year range in all GDB files.
15174
15175 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15176
15177 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15178
15179 For older changes see ChangeLog-2018.
15180 \f
15181 Local Variables:
15182 mode: change-log
15183 left-margin: 8
15184 fill-column: 74
15185 version-control: never
15186 coding: utf-8
15187 End:
15188
This page took 0.339429 seconds and 5 git commands to generate.