[gdb] Only force INTERP_CONSOLE ui_out for breakpoint commands in MI mode
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
65d1cd5f
TV
12019-11-21 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/24956
4 * cli/cli-script.c (execute_control_command): Only switch to
5 INTERP_CONSOLE's ui_out when INTERP_MI is active.
6
9f6ad286
TT
72019-11-19 Tom Tromey <tom@tromey.com>
8
9 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
10 Now static. Change type of "name".
11 (tui_set_win_height_command): Don't copy "arg".
12 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
13 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
14
435d3d88
AT
152019-11-19 Ali Tamur <tamur@google.com>
16
17 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
18 "if (attr != nullptr)".
19 (dwarf2_find_base_address): Likewise.
20 (dwarf2_build_include_psymtabs): Likewise.
21 (read_cutu_die_from_dwo): Likewise.
22 (read_func_scope): Likewise.
23 (read_call_site_scope): Likewise.
24 (dwarf2_get_pc_bounds): Likewise.
25 (dwarf2_record_block_ranges): Likewise.
26 (dwarf2_add_field): Likewise.
27 (dwarf2_add_member_fn): Likewise.
28 (read_structure_type): Likewise.
29 (read_enumeration_type): Likewise.
30 (read_array_type): Likewise.
31 (read_array_order): Likewise.
32 (read_set_type): Likewise.
33 (read_common_block): Likewise.
34 (read_tag_reference_type): Likewise.
35 (read_tag_string_type): Likewise.
36 (read_subroutine_type): Likewise.
37 (read_base_type): Likewise.
38 (read_subrange_type): Likewise.
39 (new_symbol): Likewise.
40 (prepare_one_comp_unit): Likewise.
41
c9739b6a
TT
422019-11-19 Tom Tromey <tromey@adacore.com>
43
44 * windows-nat.c (windows_nat_target::attach): Include GetLastError
45 result in error when DebugActiveProcess fails.
46
494409bb
SDJ
472019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
48 Pedro Alves <palves@redhat.com>
49
50 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
51 * target.c (target_stack::push): Call 'unpush' if there's a
52 target on top of the stack.
53
2e953aca
PW
542019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
55
56 * python/py-block.c (blpy_dealloc): Call tp_free.
57 (blpy_block_syms_dealloc): Likewise.
58 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
59 * python/py-inferior.c (infpy_dealloc): Likewise.
60 * python/py-lazy-string.c (stpy_dealloc): Likewise.
61 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
62 * python/py-symbol.c (sympy_dealloc): Likewise.
63 * python/py-symtab.c (stpy_dealloc): Likewise.
64 * python/py-type.c (typy_iterator_dealloc): Likewise.
65
6edc43ec
CB
662019-11-18 Christian Biesinger <cbiesinger@google.com>
67
68 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
69 constructor instead of using a class initializer.
70
cd850b40
CB
712019-11-15 Christian Biesinger <cbiesinger@google.com>
72
73 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
74 * configure: Regenerate.
75 * configure.ac: Don't source common.host.
76 * gdbsupport/common.host: Remove.
77 * gdbsupport/mingw-strerror.c: Remove.
78 * gdbsupport/posix-strerror.c: Rename to...
79 * gdbsupport/safe-strerror.c: ...this.
80
53fea9c7
CB
812019-11-15 Christian Biesinger <cbiesinger@google.com>
82
83 * maint.c (scoped_command_stats::print_time): Use localtime_r
84 instead of localtime (provided through gnulib if necessary).
85 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
86 of ctime.
87
f8e27d88
CB
882019-11-15 Christian Biesinger <cbiesinger@google.com>
89
90 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
91 avoid compile errors.
92
5abebf3c
CB
932019-11-15 Christian Biesinger <cbiesinger@google.com>
94
95 * config.in: Regenerate.
96 * configure: Regenerate.
97 * gdbsupport/common.m4: No longer check for strerror_r.
98 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
99 POSIX version of strerror_r, now that gnulib provides it if
100 necessary.
101
9a351667
CB
1022019-11-14 Christian Biesinger <cbiesinger@google.com>
103
104 * README (`configure' options): Update.
105
55708e99
TT
1062019-11-14 Tom Tromey <tromey@adacore.com>
107
108 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
109 expected type for the RHS if the LHS is a convenience variable.
110
4b09bb2e
SM
1112019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
114 Provide explicit default and copy constructor.
115
bd454f8b
PW
1162019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
117
118 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
119 only call Py_INCREF (newbp) in the bppy_pending_object case.
120
d1aa3cf0
TT
1212019-11-13 Tom Tromey <tromey@adacore.com>
122
123 PR build/25182:
124 * psympriv.h (partial_symbol): Remove static assert.
125 * symtab.h (general_symbol_info, symbol): Remove static assert.
126
e06f3d6e
AB
1272019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * gdbsupport/format.c (format_pieces::format_pieces): Support
130 printf 'z' size modifier.
131 * gdbsupport/format.h (enum argclass): Add size_t_arg.
132 * printcmd.c (ui_printf): Handle size_t_arg.
133 * ui-out.c (ui_out::vmessage): Likewise.
134 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
135 function.
136 (run_tests): Call test_format_int_sizes.
137
468c0cbb
CB
1382019-11-12 Christian Biesinger <cbiesinger@google.com>
139
140 * ada-exp.y (write_ambiguous_var): Update.
141 * buildsym.c (add_symbol_to_list): Update.
142 * dwarf2read.c (read_variable): Update.
143 (new_symbol): Update.
144 * jit.c (finalize_symtab): Update.
145 * language.c (language_alloc_type_symbol): Update.
146 * symtab.c (fixup_symbol_section): Update.
147 (initialize_objfile_symbol_1): Move code to...
148 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
149 (allocate_symbol): Update.
150 (allocate_template_symbol): Update.
151 (get_symbol_address): Update.
152 * symtab.h (struct symbol): Inherit from general_symbol_info instead
153 of having as a field, and add a constructor.
154 (SYMBOL_VALUE): Update.
155 (SYMBOL_VALUE_ADDRESS): Update.
156 (SET_SYMBOL_VALUE_ADDRESS): Update.
157 (SYMBOL_VALUE_BYTES): Update.
158 (SYMBOL_VALUE_COMMON_BLOCK): Update.
159 (SYMBOL_BLOCK_VALUE): Update.
160 (SYMBOL_VALUE_CHAIN): Update.
161 (SYMBOL_LANGUAGE): Update.
162 (SYMBOL_SECTION): Update.
163 (SYMBOL_OBJ_SECTION): Update.
164 (SYMBOL_SET_LANGUAGE): Update.
165 (SYMBOL_SET_LINKAGE_NAME): Update.
166 (SYMBOL_SET_NAMES): Update.
167 (SYMBOL_NATURAL_NAME): Update.
168 (SYMBOL_LINKAGE_NAME): Update.
169 (SYMBOL_DEMANGLED_NAME): Update.
170 (SYMBOL_SEARCH_NAME): Update.
171 (SYMBOL_MATCHES_SEARCH_NAME): Update.
172 (struct symbol): Update.
173 (struct template_symbol): Update.
174 (struct rust_vtable_symbol): Update.
175 * xcoffread.c (SYMBOL_DUP): Update.
176
ed2c82c3
TT
1772019-11-12 Tom Tromey <tom@tromey.com>
178
179 * tui/tui-layout.c (show_layout): Set current_layout.
180 (show_source_disasm_command, show_data)
181 (show_source_or_disasm_and_command): Don't set current_layout.
182
d9fcefd5
TT
1832019-11-12 Tom Tromey <tom@tromey.com>
184
185 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
186
45e42163
TT
1872019-11-12 Tom Tromey <tom@tromey.com>
188
189 * tui/tui-win.c (resize_message): New global.
190 (show_tui_resize_message): New function.
191 (tui_async_resize_screen): Print message if requested.
192 (_initialize_tui_win): Add tui-resize-message setting.
193 * NEWS: Add entry for new commands.
194
c86d74cc
TT
1952019-11-11 Tom Tromey <tom@tromey.com>
196
197 * tui/tui.c (tui_initialize_readline): Add new bindable readline
198 functions.
199
7b7b9424
CB
2002019-11-11 Christian Biesinger <cbiesinger@google.com>
201
202 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
203
086baaf1
AB
2042019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
207 function.
208 * python/python-internal.h (gdbpy_lookup_static_symbols):
209 Declare new function.
210 * python/python.c (python_GdbMethods): Add
211 gdb.lookup_static_symbols method.
212 * NEWS: Mention gdb.lookup_static_symbols.
213
09ff83af
AB
2142019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
215
216 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
217 static block of current object file first. Also fix typo in
218 header comment.
219
eb2dd8df
AB
2202019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * stack.c (set_last_displayed_sal): Delete.
223 (last_displayed_sal_valid): Delete.
224 (last_displayed_pspace): Delete.
225 (last_displayed_addr): Delete.
226 (last_displayed_symtab): Delete.
227 (last_displayed_line): Delete.
228 (class last_displayed_symtab_info_type): New.
229 (last_displayed_symtab_info): New static global variable.
230 (print_frame_info): Call methods on last_displayed_symtab_info.
231 (clear_last_displayed_sal): Update header comment, and make use of
232 last_displayed_symtab_info.
233 (last_displayed_sal_is_valid): Likewise.
234 (get_last_displayed_pspace): Likewise.
235 (get_last_displayed_addr): Likewise.
236 (get_last_displayed_symtab): Likewise.
237 (get_last_displayed_line): Likewise.
238 (get_last_displayed_sal): Likewise.
239 * stack.h (clear_last_displayed_sal): Update header comment.
240 (last_displayed_sal_is_valid): Likewise.
241 (get_last_displayed_pspace): Likewise.
242 (get_last_displayed_addr): Likewise.
243 (get_last_displayed_symtab): Likewise.
244 (get_last_displayed_line): Likewise.
245 (get_last_displayed_sal): Likewise.
246
62137775
AB
2472019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * stack.c (frame_show_address): Convert return type to bool.
250 * stack.h (frame_show_address): Likewise, and update header
251 comment.
252
cf57ad6d
AB
2532019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
254
255 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
256 * unittests/vec-utils-selftests.c: New file.
257 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
258
0b026263
TT
2592019-11-10 Tom Tromey <tom@tromey.com>
260
261 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
262 (tui_highlight_win): Likewise.
263 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
264 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
265 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
266 Don't set can_highlight.
267
b049ce2d
TT
2682019-11-10 Tom Tromey <tom@tromey.com>
269
270 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
271 Remove unused declaration.
272
992a7040
TT
2732019-11-08 Tom Tromey <tromey@adacore.com>
274
275 * top.c (read_command_file): Update.
276 (command_line_input): Make return type const.
277 * python/py-gdb-readline.c: Update.
278 * linespec.c (decode_line_2): Update.
279 * defs.h (command_line_input): Make return type const.
280 * cli/cli-script.c (read_next_line): Make return type const.
281 * ada-lang.c (get_selections): Update.
282
ca3a04f6
CB
2832019-11-06 Christian Biesinger <cbiesinger@google.com>
284
285 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
286 * mi/mi-main.c (output_cores): Likewise.
287 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
288 (linux_xfer_osdata_modules): Likewise.
289 * remote.c (register_remote_support_xml): Likewise.
290 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
291 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
292
e0eac551
TT
2932019-11-06 Tom Tromey <tom@tromey.com>
294
295 * tui/tui-interp.c: Don't include readline.h.
296 * tui/tui-hooks.c: Don't include readline.h.
297 * symmisc.c: Include tilde.h, not readline.h.
298 * symfile.c: Include tilde.h, not readline.h.
299 * source.c: Include tilde.h, not readline.h.
300 * solib.c: Include tilde.h, not readline.h.
301 * psymtab.c: Include tilde.h, not readline.h.
302 * exec.c: Include tilde.h, not readline.h.
303 * corelow.c: Include tilde.h, not readline.h.
304 * cli/cli-dump.c: Include tilde.h, not readline.h.
305 * cli/cli-cmds.c: Don't include readline.h.
306
825165c5
TT
3072019-11-05 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
310 (tui_disassemble): Set addr_size.
311 (tui_disasm_window::set_contents): Use addr_size.
312
91ae903f
TT
3132019-11-05 Tom Tromey <tom@tromey.com>
314
315 * rust-lang.c (rust_language_defn): Update.
316 * python/py-value.c (valpy_string): Call c_get_string.
317 * p-lang.c (pascal_language_defn): Update.
318 * opencl-lang.c (opencl_language_defn): Update.
319 * objc-lang.c (objc_language_defn): Update.
320 * m2-lang.c (m2_language_defn): Update.
321 * language.c (unknown_language_defn, auto_language_defn): Update.
322 (default_get_string): Remove.
323 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
324 * go-lang.c (go_language_defn): Update.
325 * f-lang.c (f_language_defn): Update.
326 * d-lang.c (d_language_defn): Update.
327 * c-lang.c (c_language_defn, cplus_language_defn)
328 (asm_language_defn, minimal_language_defn): Update.
329 * ada-lang.c (ada_language_defn): Update.
330 * language.h (struct language_defn) <la_get_string>: Remove.
331 (LA_GET_STRING): Remove.
332 (default_get_string): Don't declare.
333
1df2f9ef
TT
3342019-11-05 Tom Tromey <tom@tromey.com>
335
336 * tui/tui-source.h (struct tui_source_window): Inline
337 constructor. Remove destructor.
338 <style_changed, m_observable>: Move to superclass.
339 * tui/tui-winsource.h (tui_copy_source_line): Declare.
340 (struct tui_source_window_base): Move private members to end.
341 <style_changed, m_observable>: Move from tui_source_window.
342 * tui/tui-winsource.c (tui_copy_source_line): Move from
343 tui-source.c. Rename from copy_source_line. Add special handling
344 for negative line number.
345 (tui_source_window_base::style_changed): Move from
346 tui_source_window.
347 (tui_source_window_base): Register observer.
348 (~tui_source_window_base): New.
349 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
350 rename.
351 (tui_source_window::set_contents): Use tui_copy_source_line.
352 (tui_source_window::tui_source_window): Move to tui-source.h.
353 (tui_source_window::~tui_source_window): Remove.
354 (tui_source_window::style_changed): Move to superclass.
355 * tui/tui-disasm.c (tui_disassemble): Create string file with
356 styling, when possible. Add "addr_size" parameter.
357 (tui_disasm_window::set_contents): Use tui_copy_source_line.
358 Don't compute maximum size.
359 (len_without_escapes): New function
360
5d051055
TT
3612019-11-05 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
364 std::string.
365 * tui/tui-winsource.c (tui_show_source_line): Update.
366 * tui/tui-source.c (tui_source_window::set_contents): Update.
367 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
368
ade7beea
CB
3692019-11-05 Christian Biesinger <cbiesinger@google.com>
370
371 * symtab.h (gdb_static_assert): Put && operator at the beginning
372 of the line instead of the end.
373
3573abe1
CB
3742019-11-04 Christian Biesinger <cbiesinger@google.com>
375
376 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
377 and sizeof (symbol).
378 * symtab.h: Add a static_assert for sizeof (partial_symbol).
379
dae8b3eb
RO
3802019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381
382 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
383 * configure.host: Mark *-*-solaris2.10* obsolete.
384 * configure.tgt: Mark Solaris < 11 obsolete.
385 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
386 Update target triplet.
387
5df96a4e
TT
3882019-11-01 Tom Tromey <tromey@adacore.com>
389
390 * utils.c (print_sys_errmsg): Simplify.
391
b7481649
TT
3922019-11-01 Tom Tromey <tromey@adacore.com>
393
394 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
395
e48f6033
CB
3962019-11-01 Christian Biesinger <cbiesinger@google.com>
397
398 * configure: Regenerate.
399 * configure.ac: Remove check for strerror_r.
400 * gdbsupport/common.m4: Check for strerror_r.
401
bd5766ec
LM
4022019-11-01 Luis Machado <luis.machado@linaro.org>
403
404 PR gdb/25124
405
406 * arm-tdep.c (arm_per_objfile): Rename to ...
407 (arm_per_bfd): ... this.
408 (arm_objfile_data_key): Rename to ...
409 (arm_bfd_data_key): ... this.
410 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
411 data.
412 (arm_record_special_symbol): Likewise.
413
e1709896
AB
4142019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
417 end.
418 * c-typeprint.c (c_print_typedef): Likewise.
419 * f-typeprint.c (f_print_typedef): Likewise.
420 * m2-typeprint.c (m2_print_typedef): Likewise.
421 * p-typeprint.c (pascal_print_typedef): Likewise.
422 * rust-lang.c (rust_print_typedef): Likewise.
423 * symtab.c (print_symbol_info): Print a newline after calling
424 typedef_print.
425
165f8965
AB
4262019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * symtab.c (info_module_cmdlist): New variable.
429 (info_module_command): New function.
430 (search_module_symbols): New function.
431 (info_module_subcommand): New function.
432 (struct info_modules_var_func_options): New struct.
433 (info_modules_var_func_options_defs): New variable.
434 (make_info_modules_var_func_options_def_group): New function.
435 (info_module_functions_command): New function.
436 (info_module_variables_command): New function.
437 (info_module_var_func_command_completer): New function.
438 (_initialize_symtab): Register new 'info module functions' and
439 'info module variables' commands.
440 * symtab.h (typedef symbol_search_in_module): New typedef.
441 (search_module_symbols): Declare new function.
442 * NEWS: Mention new commands.
443
59c35742
AB
4442019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
447 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
448 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
449 MODULES_DOMAIN.
450 (scan_partial_symbols): Only create partial module symbols for non
451 declarations.
452 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
453 and MODULES_DOMAIN.
454 * symtab.c (search_domain_name): Likewise.
455 (search_symbols): Likewise.
456 (print_symbol_info): Likewise.
457 (symtab_symbol_info): Likewise.
458 (info_modules_command): New function.
459 (_initialize_symtab): Register 'info modules' command.
460 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
461 * NEWS: Mention new 'info modules' command.
462
aed61d02
PW
4632019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
464
465 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
466 and $_gdb_maint_setting_str.
467
9ad9b77d
PW
4682019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
469
470 * cli/cli-cmds.c (setting_cmd, value_from_setting)
471 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
472 (str_value_from_setting, gdb_setting_str_internal_fn)
473 (gdb_maint_setting_str_internal_fn): New functions.
474 (_initialize_cli_cmds): Define the new convenience functions.
475 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
476 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
477
8d6efaa2
CB
4782019-10-31 Christian Biesinger <cbiesinger@google.com>
479
480 * agent.c (set_can_use_agent): When the setting is turned on,
481 look up agent symbols if we don't have them yet.
482 (agent_new_objfile): Don't look up agent symbols when the agent
483 setting is off.
484
33cb1647
CB
4852019-10-31 Christian Biesinger <cbiesinger@google.com>
486
487 * config.in: Regenerate.
488
b231e86a
CB
4892019-10-31 Christian Biesinger <cbiesinger@google.com>
490
491 * configure: Regenerate.
492 * configure.ac: Check for strerror_r.
493 * gdbsupport/common-utils.h (safe_strerror): Change return value
494 to const char * and document that this function is now threadsafe.
495 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
496 thread_local and call strerror_r, if available.
497 * utils.c (perror_string): Update.
498 (print_sys_errmsg): Update.
499
a2726d4f
LM
5002019-10-31 Luis Machado <luis.machado@linaro.org>
501
502 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
503 objfile_key.
504 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
505 objfile to fetch per-bfd data.
506 (arm_find_exidx_entry): Likewise.
507
75cafaa6
CB
5082019-10-31 Christian Biesinger <cbiesinger@google.com>
509
510 * gdbsupport/agent.c (debug_agent): Change type to bool.
511 (use_agent): Likewise.
512 (all_agent_symbols_look_up): Likewise.
513 (agent_loaded_p): Change return value to bool.
514 (agent_look_up_symbols): Update.
515 (agent_capability_check): Change return value to bool.
516 * gdbsupport/agent.h (agent_loaded_p): Likewise.
517 (debug_agent): Change type to bool.
518 (use_agent): Likewise.
519 (agent_capability_check): Change return value to bool.
520
808590ec
CB
5212019-10-30 Christian Biesinger <cbiesinger@google.com>
522
523 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
524 (build_minimal_symbol_hash_tables): Code to clear the table moved
525 to clear_minimal_symbol_hash_tables.
526 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
527 when needed.
528
f18ad8a1
SM
5292019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
530
531 * infcmd.c: Remove includes.
532 * infrun.c: Remove includes.
533
de93309a
SM
5342019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
537 (grow_vect): Remove declaration.
538 (ada_type_of_array): Remove declaration.
539 (ada_update_initial_language): Remove declaration.
540 (ada_fold_name): Remove declaration.
541 (ada_fill_in_ada_prototype): Remove declaration.
542 (user_select_syms): Remove declaration.
543 (get_selections): Remove declaration.
544 (ada_tag_type): Remove declaration.
545 (ada_value_tag): Remove declaration.
546 (ada_is_others_clause): Remove declaration.
547 (ada_in_variant): Remove declaration.
548 (ada_value_struct_elt): Remove declaration.
549 (ada_attribute_name): Remove declaration.
550 (ada_system_address_type): Remove declaration.
551 * ada-lang.c (ada_watch_location_expression): Make static.
552 (GROW_VECT): Move here from ada-lang.h.
553 (grow_vect): Make static.
554 (ada_update_initial_language): Make static.
555 (ada_fold_name): Make static.
556 (ada_type_of_array): Make static.
557 (encoded_ordered_before): Move up.
558 (sort_choices): Move up.
559 (print_signatures): Move up.
560 (ada_print_symbol_signature): Move up.
561 (get_selections): Move up and make static.
562 (user_select_syms): Move up and make static.
563 (ada_value_struct_elt): Move up and make static.
564 (ada_tag_type): Make static.
565 (ada_value_tag): Make static.
566 (ada_is_others_clause): Make static.
567 (ada_in_variant): Make static.
568 (ada_attribute_name): Make static.
569
cdc46a9f
SM
5702019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
571
572 * ada-lang.c: Remove includes.
573 * ada-typeprint.c: Remove includes.
574 * ada-valprint.c: Remove includes.
575
90421c56
SM
5762019-10-29 Simon Marchi <simon.marchi@efficios.com>
577
578 * addrmap.c: Add static assertions of type size, moved from
579 _initialize_addrmap.
580 (_initialize_addrmap): Remove.
581
31edb802
CB
5822019-10-29 Christian Biesinger <cbiesinger@google.com>
583
584 * coffread.c (record_minimal_symbol): Update.
585 (process_coff_symbol): Update.
586 * dbxread.c (read_dbx_symtab): Update.
587 * dwarf2read.c (add_partial_symbol): Update.
588 (fixup_go_packaging): Update.
589 (load_partial_dies): Update.
590 (new_symbol): Update.
591 * elfread.c (record_minimal_symbol): Change signature to use
592 gdb::string_view instead of name+len.
593 (elf_symtab_read): Update.
594 (elf_rel_plt_read): Update.
595 * mdebugread.c (parse_partial_symbols): Update.
596 (handle_psymbol_enumerators): Update.
597 (new_symbol): Update.
598 * minsyms.c (minimal_symbol_reader::record_full): Change signature
599 to use gdb::string_view instead of name+len.
600 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
601 * psympriv.h (add_psymbol_to_list): Likewise.
602 * psymtab.c (add_psymbol_to_bcache): Likewise.
603 (add_psymbol_to_list): Likewise.
604 * stabsread.c (define_symbol): Update.
605 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
606 * symtab.h (SYMBOL_SET_NAMES): Likewise.
607 (symbol_set_names): Likewise.
608 * xcoffread.c (scan_xcoff_symtab): Update.
609
0c921b21
CB
6102019-10-29 Christian Biesinger <cbiesinger@google.com>
611
612 * symtab.h (symbol_set_names): Document that copy_name must be
613 set to true for non-nullterminated strings.
614 * symtab.c (symbol_set_names): Only make a nullterminated copy of
615 linkage_name if the entry was not found and we need to demangle.
616
35e65c49
CB
6172019-10-29 Christian Biesinger <cbiesinger@google.com>
618
619 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
620 * dwarf2-frame.c (bsearch_fde_cmp): Update.
621 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
622 * gdbsupport/gdb_binary_search.h: New file.
623
ed2a2229
CB
6242019-10-29 Christian Biesinger <cbiesinger@google.com>
625
626 * NEWS: Mention new --with-system-gdbinit-dir option.
627 * config.in: Regenerate.
628 * configure: Regenerate.
629 * configure.ac: Add new option --with-system-gdbinit-dir.
630 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
631 for a ".gdb" suffix.
632 * main.c (get_init_files): Change system_gdbinit argument to
633 a vector and return the files in SYSTEM_GDBINIT_DIR in
634 addition to SYSTEM_GDBINIT.
635 (captured_main_1): Update.
636 (print_gdb_help): Update.
637 * top.c (print_gdb_configuration): Also print the value of
638 SYSTEM_GDBINIT_DIR.
639
87f34879
CB
6402019-10-28 Christian Biesinger <cbiesinger@google.com>
641
642 * gdbsupport/common-utils.h (startswith): Add an overloaded version
643 that takes gdb::string_view arguments.
644
30baf67b
TV
6452019-10-26 Tom de Vries <tdevries@suse.de>
646
647 * aarch64-linux-tdep.c: Fix typos in comments.
648 * aarch64-tdep.c: Same.
649 * ada-lang.c: Same.
650 * amd64-nat.c: Same.
651 * arc-tdep.c: Same.
652 * arch/aarch64-insn.c: Same.
653 * block.c: Same.
654 * breakpoint.h: Same.
655 * btrace.h: Same.
656 * c-varobj.c: Same.
657 * cli/cli-decode.c: Same.
658 * cli/cli-script.c: Same.
659 * cli/cli-utils.h: Same.
660 * coff-pe-read.c: Same.
661 * coffread.c: Same.
662 * compile/compile-cplus-symbols.c: Same.
663 * compile/compile-object-run.c: Same.
664 * completer.c: Same.
665 * corelow.c: Same.
666 * cp-support.c: Same.
667 * demangle.c: Same.
668 * dwarf-index-write.c: Same.
669 * dwarf2-frame.c: Same.
670 * dwarf2-frame.h: Same.
671 * eval.c: Same.
672 * frame-base.h: Same.
673 * frame.h: Same.
674 * gdbcmd.h: Same.
675 * gdbtypes.h: Same.
676 * gnu-nat.c: Same.
677 * guile/scm-objfile.c: Same.
678 * i386-tdep.c: Same.
679 * i386-tdep.h: Same.
680 * infcall.c: Same.
681 * infcall.h: Same.
682 * linux-nat.c: Same.
683 * m68k-tdep.c: Same.
684 * macroexp.c: Same.
685 * memattr.c: Same.
686 * mi/mi-cmd-disas.c: Same.
687 * mi/mi-getopt.h: Same.
688 * mi/mi-main.c: Same.
689 * minsyms.c: Same.
690 * nat/aarch64-sve-linux-sigcontext.h: Same.
691 * objfiles.h: Same.
692 * ppc-linux-nat.c: Same.
693 * ppc-linux-tdep.c: Same.
694 * ppc-tdep.h: Same.
695 * progspace.h: Same.
696 * prologue-value.h: Same.
697 * python/py-evtregistry.c: Same.
698 * python/py-instruction.h: Same.
699 * record-btrace.c: Same.
700 * record-full.c: Same.
701 * remote.c: Same.
702 * rs6000-tdep.c: Same.
703 * ser-tcp.c: Same.
704 * sol-thread.c: Same.
705 * sparc-sol2-tdep.c: Same.
706 * sparc64-tdep.c: Same.
707 * stabsread.c: Same.
708 * symfile.c: Same.
709 * symtab.h: Same.
710 * target.c: Same.
711 * tracepoint.c: Same.
712 * tui/tui-data.h: Same.
713 * tui/tui-io.c: Same.
714 * tui/tui-win.c: Same.
715 * tui/tui.c: Same.
716 * unittests/rsp-low-selftests.c: Same.
717 * user-regs.h: Same.
718 * utils.c: Same.
719 * utils.h: Same.
720 * valarith.c: Same.
721 * valops.c: Same.
722 * valprint.c: Same.
723 * valprint.h: Same.
724 * value.c: Same.
725 * value.h: Same.
726 * varobj.c: Same.
727 * x86-nat.h: Same.
728 * xtensa-tdep.c: Same.
729
1834d45f
AT
7302019-10-25 Ali Tamur <tamur@google.com>
731
732 * charset.c (find_charset_names): Reflect API change.
733
5396ae17
CB
7342019-10-25 Christian Biesinger <cbiesinger@google.com>
735
736 * symtab.c (struct demangled_name_entry): Change demangled name
737 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
738 part of the struct anymore.
739 (symbol_set_names): No longer obstack allocate + copy the demangled
740 name, just store the allocated name from bfd.
741
93878f47
TT
7422019-10-25 Tom Tromey <tromey@adacore.com>
743
744 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
745 (bsearch_cie_cmp, add_cie): Remove.
746 (find_cie): Reimplement.
747 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
748 (dwarf2_build_frame_info): Update.
749
7b71fc97
L
7502019-10-24 H.J. Lu <hongjiu.lu@intel.com>
751
752 PR gdb/25126
753 * symfile.c (reread_symbols): Call forget_cached_source_info to
754 clear the stale source cache.
755
cbb5a2ea
CB
7562019-10-24 Christian Biesinger <cbiesinger@google.com>
757
758 * configure: Regenerate.
759 * configure.ac: Remove code that sets python_has_threads.
760
71737c43
CB
7612019-10-24 Christian Biesinger <cbiesinger@google.com>
762
763 * config.in: Regenerate.
764 * configure: Regenerate.
765 * configure.ac: Remove the code that uses sed to get the python
766 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
767
33d569b7
AB
7682019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * python/py-progspace.c (pspy_block_for_pc): Return None for all
771 error paths.
772
f16f7b7c
TT
7732019-10-23 Tom Tromey <tom@tromey.com>
774
775 * arc-tdep.c: Remove ".." from include.
776 * frv-tdep.c: Remove ".." from include.
777 * lm32-tdep.c: Remove ".." from include.
778 * microblaze-tdep.c: Remove ".." from include.
779 * or1k-tdep.h: Remove ".." from include.
780 * s12z-tdep.c: Remove ".." from include.
781 * Makefile.in (OPCODES_CFLAGS): Add comment.
782 (TOP_CFLAGS): New variable.
783 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
784
6999161a
TT
7852019-10-23 Tom Tromey <tom@tromey.com>
786
787 * Makefile.in (READLINE_DIR): Update.
788
12e7c35e
TBA
7892019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
790
791 * infcall.c (call_function_by_hand_dummy): Fix the function
792 comment. And extract out a code section into...
793 (reserve_stack_space): ...this new function.
794
37055cad
TBA
7952019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
796
797 * infcall.c (value_arg_coerce): Remove an unused parameter.
798 (call_function_by_hand_dummy): Update the call to
799 'value_arg_coerce'.
800
39bcc47c
TBA
8012019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
802
803 * infcall.c (call_function_by_hand_dummy): Refactor.
804
bd888c0f
TBA
8052019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
806
807 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
808
c12d372d
TT
8092019-10-23 Tom Tromey <tom@tromey.com>
810
811 * configure: Rebuild.
812 * configure.ac: Don't check for sigprocmask.
813 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
814
4d0b984b
TT
8152019-10-23 Tom Tromey <tom@tromey.com>
816
817 * configure: Rebuild.
818 * acinclude.m4: Use m4_include, not sinclude.
819
7e785608
TV
8202019-10-23 Tom de Vries <tdevries@suse.de>
821
822 PR breakpoints/24687
823 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
824
403772ef
CB
8252019-10-22 Christian Biesinger <cbiesinger@google.com>
826
827 * symtab.c (struct demangled_name_entry) <language>: Change from
828 bitfield to regular variable.
829
3a494279
CB
8302019-10-22 Christian Biesinger <cbiesinger@google.com>
831
832 * symtab.c (struct demangled_name_entry): Add a constructor.
833 (free_demangled_name_entry): New function to call the destructor
834 for demangled_name_entry.
835 (create_demangled_names_hash): Pass free_demangled_name_entry to
836 htab_create_alloc.
837 (symbol_set_names): Call placement new for demangled_name_entry.
838 * utils.c: No longer include xxhash.h here, now that fast_hash
839 is inlined in the header.
840 * utils.h: Instead, include it here.
841
ccb1ba62
CB
8422019-10-22 Christian Biesinger <cbiesinger@google.com>
843
844 * Makefile.in: Link with libxxhash.
845 * config.in: Regenerate.
846 * configure: Regenerate.
847 * configure.ac: Search for libxxhash.
848 * utils.c (fast_hash): Use xxhash if present.
849
1a6ff1a9
CB
8502019-10-22 Christian Biesinger <cbiesinger@google.com>
851
852 * utils.h (fast_hash): New function.
853 * symtab.c (hash_demangled_name_entry): Call new function
854 fast_hash.
855
7bb43059
CB
8562019-10-22 Christian Biesinger <cbiesinger@google.com>
857
858 * symtab.c (struct demangled_name_entry): Change type of mangled
859 to gdb::string_view. Also adds a constructor that takes the
860 mangled name.
861 (hash_demangled_name_entry): Update.
862 (eq_demangled_name_entry): Update.
863 (free_demangled_name_entry): New function to call the destructor
864 now that this is not a POD anymore.
865 (create_demangled_names_hash): Pass free_demangled_name_entry to
866 htab_create_alloc.
867 (symbol_set_names): Update.
868
7ba99d21
AT
8692019-10-21 Ali Tamur <tamu@google.com>
870
871 * dwarf2read.c (dir_index): Change type.
872 (file_name_index): Likewise.
873 (line_header::include_dir_at): Change comment and implementation on
874 whether it is DWARF 5.
875 (line_header::is_valid_file_index): New function.
876 (line_header::file_name_at): Change comment and implementation on
877 whether it is DWARF 5.
878 (line_header::file_names): Change to private field renamed as
879 m_file_names and introduce a new accessor method.
880 (line_header::file_names_size): New method.
881 (line_header::include_dirs): Change to private field and rename as
882 m_include_dirs.
883 (dw2_get_file_names_reader): Define local var at a smaller scope and
884 reflect API change.
885 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
886 (process_structure_scope): Likewise.
887 (line_header::add_include_dir): Change message and reflect renaming.
888 (line_header::add_file_name): Likewise.
889 (read_formatted_entries): Handle DW_FORM_data16.
890 (dwarf_decode_line_header): Fix line header length calculation.
891 (psymtab_include_file_name): Change comment and API.
892 (lnp_state_machine::m_file): Update comment and reflect type change.
893 (lnp_state_machine::record_line): Reflect type change.
894 (dwarf_decode_lines): Reflect API change.
895 (file_file_name): Likewise.
896 (file_full_name): Likewise.
897
45f47c3a
AB
8982019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
901
e5f3c0e3
TT
9022019-10-21 Tom Tromey <tom@tromey.com>
903
904 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
905
a0a461e5
TT
9062019-10-21 Tom Tromey <tom@tromey.com>
907
908 * configure.ac (nm.h): Conditionally create nm.h link. Subst
909 NM_H. Use AC_CONFIG_LINKS.
910 * configure: Rebuild.
911 * Makefile.in (NM_H): New variable.
912 (generated_files): Add NM_H. Remove gcore.
913 (nm.h, stamp-nmh): New targets.
914
54d83b8d
TT
9152019-10-20 Tom Tromey <tom@tromey.com>
916
917 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
918 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
919 obsolete comment.
920 (put_objfile_before): Now static.
921
23771117
SM
9222019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * gdbsupport/common-utils.h (startswith): Change return type to
925 bool.
926
39ef2f62
CB
9272019-10-19 Christian Biesinger <cbiesinger@google.com>
928
929 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
930 * breakpoint.c (bp_locations_compare): Rename to...
931 (bp_location_is_less_than): ...this, and change to std::sort semantics.
932 (update_global_location_list): Use std::sort instead of qsort.
933 * buildsym.c (compare_line_numbers): Rename to...
934 (lte_is_less_than): ...this, and change to std::sort semantics.
935 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
936 instead of qsort.
937 * disasm.c (compare_lines): Rename to...
938 (line_is_less_than): ...this, and change to std::sort semantics.
939 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
940 of qsort.
941 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
942 (fde_is_less_than): ...this, and change to std::sort semantics.
943 (dwarf2_build_frame_info): Call std::sort instead of qsort.
944 * mdebugread.c (compare_blocks):
945 (block_is_less_than): ...this, and change to std::sort semantics.
946 (sort_blocks): Call std::sort instead of qsort.
947 * objfiles.c (qsort_cmp): Rename to...
948 (sort_cmp): ...this, and change to std::sort semantics.
949 (update_section_map): Call std::sort instead of qsort.
950 * remote.c (compare_pnums): Remove.
951 (map_regcache_remote_table): Call std::sort instead of qsort.
952 * utils.c (compare_positive_ints): Remove.
953 * utils.h (compare_positive_ints): Remove.
954 * xcoffread.c (compare_lte): Remove.
955 (arrange_linetable): Call std::sort instead of qsort.
956
f71433ee
SDJ
9572019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
958
959 * symfile.c (init_entry_point_info): Fix typo.
960 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
961
85102364
TV
9622019-10-18 Tom de Vries <tdevries@suse.de>
963
964 * aarch64-tdep.c: Fix typos in comments.
965 * ada-lang.c: Same.
966 * ada-tasks.c: Same.
967 * alpha-tdep.c: Same.
968 * alpha-tdep.h: Same.
969 * amd64-nat.c: Same.
970 * amd64-windows-tdep.c: Same.
971 * arc-tdep.c: Same.
972 * arc-tdep.h: Same.
973 * arch-utils.c: Same.
974 * arm-nbsd-tdep.c: Same.
975 * arm-tdep.c: Same.
976 * ax-gdb.c: Same.
977 * blockframe.c: Same.
978 * btrace.c: Same.
979 * c-varobj.c: Same.
980 * coff-pe-read.c: Same.
981 * coffread.c: Same.
982 * cris-tdep.c: Same.
983 * darwin-nat.c: Same.
984 * dbxread.c: Same.
985 * dcache.c: Same.
986 * disasm.c: Same.
987 * dtrace-probe.c: Same.
988 * dwarf-index-write.c: Same.
989 * dwarf2-frame-tailcall.c: Same.
990 * dwarf2-frame.c: Same.
991 * dwarf2read.c: Same.
992 * eval.c: Same.
993 * exceptions.c: Same.
994 * fbsd-tdep.c: Same.
995 * findvar.c: Same.
996 * frame.c: Same.
997 * frv-tdep.c: Same.
998 * gnu-v3-abi.c: Same.
999 * go32-nat.c: Same.
1000 * h8300-tdep.c: Same.
1001 * hppa-tdep.c: Same.
1002 * i386-linux-tdep.c: Same.
1003 * i386-tdep.c: Same.
1004 * ia64-libunwind-tdep.c: Same.
1005 * ia64-tdep.c: Same.
1006 * infcmd.c: Same.
1007 * infrun.c: Same.
1008 * linespec.c: Same.
1009 * linux-nat.c: Same.
1010 * linux-thread-db.c: Same.
1011 * machoread.c: Same.
1012 * mdebugread.c: Same.
1013 * mep-tdep.c: Same.
1014 * mn10300-tdep.c: Same.
1015 * namespace.c: Same.
1016 * objfiles.c: Same.
1017 * opencl-lang.c: Same.
1018 * or1k-tdep.c: Same.
1019 * osabi.c: Same.
1020 * ppc-linux-nat.c: Same.
1021 * ppc-linux-tdep.c: Same.
1022 * ppc-sysv-tdep.c: Same.
1023 * printcmd.c: Same.
1024 * procfs.c: Same.
1025 * record-btrace.c: Same.
1026 * record-full.c: Same.
1027 * remote-fileio.c: Same.
1028 * remote.c: Same.
1029 * rs6000-tdep.c: Same.
1030 * s12z-tdep.c: Same.
1031 * score-tdep.c: Same.
1032 * ser-base.c: Same.
1033 * ser-go32.c: Same.
1034 * skip.c: Same.
1035 * sol-thread.c: Same.
1036 * solib-svr4.c: Same.
1037 * solib.c: Same.
1038 * source.c: Same.
1039 * sparc-nat.c: Same.
1040 * sparc-sol2-tdep.c: Same.
1041 * sparc-tdep.c: Same.
1042 * sparc64-tdep.c: Same.
1043 * stabsread.c: Same.
1044 * stack.c: Same.
1045 * symfile.c: Same.
1046 * symtab.c: Same.
1047 * target-descriptions.c: Same.
1048 * target-float.c: Same.
1049 * thread.c: Same.
1050 * utils.c: Same.
1051 * valops.c: Same.
1052 * valprint.c: Same.
1053 * value.c: Same.
1054 * varobj.c: Same.
1055 * windows-nat.c: Same.
1056 * xcoffread.c: Same.
1057 * xstormy16-tdep.c: Same.
1058 * xtensa-tdep.c: Same.
1059
c5adaa19
TT
10602019-10-17 Tom Tromey <tromey@adacore.com>
1061
1062 * configure: Rebuild.
1063 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1064 in AC_CONFIG_FILES invocation.
1065 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1066 new-style config.status invocation.
1067
405feb71
TV
10682019-10-17 Tom de Vries <tdevries@suse.de>
1069
1070 * arm-nbsd-nat.c: Fix typos in comments.
1071 * arm-tdep.c: Same.
1072 * darwin-nat-info.c: Same.
1073 * dwarf2read.c: Same.
1074 * elfread.c: Same.
1075 * event-top.c: Same.
1076 * findvar.c: Same.
1077 * gdbtypes.c: Same.
1078 * hppa-tdep.c: Same.
1079 * i386-tdep.c: Same.
1080 * jit.c: Same.
1081 * main.c: Same.
1082 * mdebugread.c: Same.
1083 * moxie-tdep.c: Same.
1084 * nto-procfs.c: Same.
1085 * osabi.c: Same.
1086 * ppc-linux-tdep.c: Same.
1087 * remote.c: Same.
1088 * riscv-tdep.c: Same.
1089 * s390-tdep.c: Same.
1090 * sh-tdep.c: Same.
1091 * sparc-linux-tdep.c: Same.
1092 * sparc-nat.c: Same.
1093 * stack.c: Same.
1094 * target-descriptions.c: Same.
1095 * top.c: Same.
1096 * varobj.c: Same.
1097
befcd486
TT
10982019-10-16 Tom Tromey <tom@tromey.com>
1099
1100 * objfiles.h (struct objfile) <original_name>: Now const.
1101
17bfe554
CB
11022019-10-16 Christian Biesinger <cbiesinger@google.com>
1103
1104 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1105 pass on to sigsetjmp's second argument.
1106 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1107
950b7495
KS
11082019-10-16 Keith Seitz <keiths@redhat.com>
1109
1110 PR gdb/23567
1111 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1112 sections whose size is greater than the file size.
1113
ff371ec9
JW
11142019-10-16 Jim Wilson <jimw@sifive.com>
1115
1116 * riscv-tdep.c (riscv_gcc_target_options): New.
1117 (riscv_gnu_triplet_regexp): New.
1118 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1119 set_gdbarch_gnu_triplet_regexp.
1120
fec4e896
CB
11212019-10-16 Christian Biesinger <cbiesinger@google.com>
1122
1123 * Makefile.in: Add xml-builtin.h.
1124 * features/feature_to_c.sh: Add an include for xml-builtin.h
1125 to ensure that the compiler checks that the types match.
1126 * xml-builtin.h: New file.
1127 * xml-support.c (fetch_xml_builtin): Add missing const.
1128 * xml-support.h: Remove declaration of xml_builtins.
1129
d10eccaa
TV
11302019-10-16 Tom de Vries <tdevries@suse.de>
1131
1132 PR tdep/25096
1133 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1134 (amd64_classify_aggregate): ... here.
1135 (amd64_classify_aggregate_field): Handled fiels of nested structs
1136 recursively.
1137
745ff14e
TV
11382019-10-16 Tom de Vries <tdevries@suse.de>
1139
1140 PR tdep/24104
1141 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1142 that handles 'theclass'.
1143
791b7405
AB
11442019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * linespec.c (decode_digits_ordinary): Update comment.
1147 * make-target-delegates: No longer need to handle VEC case.
1148 * memrange.c (normalize_mem_ranges): Update comment.
1149 * namespace.c (add_using_directive): Update comment.
1150 * objc-lang.c (uniquify_strings): Update comment.
1151 * ppc-linux-nat.c (struct thread_points): Update comment.
1152 * probe.h (find_probes_in_objfile): Update comment.
1153 * target.h (enum flash_preserve_mode): Update comment.
1154 * varobj.c (varobj_restrict_range): Update comment.
1155 * varobj.h (varobj_list_children): Update comment.
1156
0dc32745
AB
11572019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 * Makefile.in: Remove references to vec.h and vec.c.
1160 * aarch64-tdep.c: No longer include vec.h.
1161 * ada-lang.c: Likewise.
1162 * ada-lang.h: Likewise.
1163 * arm-tdep.c: Likewise.
1164 * ax.h: Likewise.
1165 * breakpoint.h: Likewise.
1166 * charset.c: Likewise.
1167 * cp-support.h: Likewise.
1168 * dtrace-probe.c: Likewise.
1169 * dwarf2read.c: Likewise.
1170 * extension.h: Likewise.
1171 * gdb_bfd.c: Likewise.
1172 * gdbsupport/gdb_vecs.h: Likewise.
1173 * gdbsupport/vec.c: Remove.
1174 * gdbsupport/vec.h: Remove.
1175 * gdbthread.h: Likewise.
1176 * guile/scm-type.c: Likewise.
1177 * inline-frame.c: Likewise.
1178 * machoread.c: Likewise.
1179 * memattr.c: Likewise.
1180 * memrange.h: Likewise.
1181 * namespace.h: Likewise.
1182 * nat/linux-btrace.h: Likewise.
1183 * osdata.c: Likewise.
1184 * parser-defs.h: Likewise.
1185 * progspace.h: Likewise.
1186 * python/py-type.c: Likewise.
1187 * record-btrace.c: Likewise.
1188 * rust-exp.y: Likewise.
1189 * solib-target.c: Likewise.
1190 * stap-probe.c: Likewise.
1191 * target-descriptions.c: Likewise.
1192 * target-memory.c: Likewise.
1193 * target.h: Likewise.
1194 * varobj.c: Likewise.
1195 * varobj.h: Likewise.
1196 * xml-support.h: Likewise.
1197
ae640021
AB
11982019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1201 Update for new std::vector based implementation.
1202 (process_psymtab_comp_unit_reader): Likewise.
1203 (scan_partial_symbols): Likewise.
1204 (recursively_compute_inclusions): Likewise.
1205 (compute_compunit_symtab_includes): Likewise.
1206 (process_imported_unit_die): Likewise.
1207 (queue_and_load_dwo_tu): Likewise.
1208 (follow_die_sig_1): Likewise.
1209 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1210 (typedef dwarf2_per_cu_ptr): Remove.
1211 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1212 function.
1213 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1214 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1215 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1216 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1217 std::vector.
1218
55dfc88f
TT
12192019-10-15 Tom Tromey <tromey@adacore.com>
1220
1221 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1222 TID.
1223
96b49c5e
TT
12242019-10-15 Tom Tromey <tromey@adacore.com>
1225
1226 * windows-nat.c (windows_nat_target::fetch_registers)
1227 (windows_nat_target::store_registers): Rename "pid" to "tid".
1228
953cff56
TT
12292019-10-15 Tom Tromey <tromey@adacore.com>
1230
1231 * gdbarch.h, gdbarch.c: Rebuild.
1232 * gdbarch.sh (gcc_target_options): Change return type to
1233 std::string.
1234 * compile/compile.c (get_args): Update.
1235 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1236 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1237 std::string.
1238 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1239 std::string.
1240 * arch-utils.c (default_gcc_target_options): Return std::string.
1241 * arch-utils.h (default_gcc_target_options): Return std::string.
1242 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1243
81e6b8eb
CB
12442019-10-15 Christian Biesinger <cbiesinger@google.com>
1245
1246 * breakpoint.c (breakpoint_chain): Make static.
1247 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1248 of accessing breakpoint_chain.
1249
95da600f
CB
12502019-10-15 Christian Biesinger <cbiesinger@google.com>
1251
1252 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1253 to a gdb::function_view and return value to bool.
1254 * breakpoint.h (iterate_over_breakpoints): Likewise.
1255 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1256 (pop_dummy_frame): Update.
1257 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1258 (gdbscm_breakpoints): Update.
1259 * python/py-breakpoint.c (build_bp_list): Update.
1260 (gdbpy_breakpoints): Update.
1261 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1262 Update.
1263 (bpfinishpy_handle_stop): Update.
1264 (bpfinishpy_handle_exit): Update.
1265 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1266 (svr4_update_solib_event_breakpoints): Update.
1267
ba18312d
AA
12682019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1269
1270 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1271 when unwrapping single-field structs.
1272
6acc1a0b
SM
12732019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1274
1275 * dwarf2read.c: Remove includes.
1276
284782de
SM
12772019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * ui-out.c (ui_out::call_do_message): Silence
1280 -Wformat-nonliteral warning.
1281
073bbbb0
SM
12822019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1285 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1286 include: readline/tilde.h.
1287
7b9a15e1
CB
12882019-10-12 Christian Biesinger <cbiesinger@google.com>
1289
1290 * remote.c (remote_target::get_trace_status): Remove declaration of
1291 trace_regblock_size.
1292
cc8dee1f
CB
12932019-10-12 Christian Biesinger <cbiesinger@google.com>
1294
1295 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1296 (show_user): Remove declaration of cmdlist.
1297 * cli/cli-cmds.h (max_user_call_depth): Declare.
1298 * cli/cli-script.c (execute_user_command): Remove declaration
1299 of max_user_call_depth.
1300
a83d4ef6
JW
13012019-10-11 Jim Wilson <jimw@sifive.com>
1302
5f93c5a6
JW
1303 * gdbsupport/print-utils.h (pulongest): Fix comment.
1304 (plongest): Likewise.
1305 (phex): Add missing comment, mention leading zeros.
1306 (phex_nz): Add mention of no leading zeros to comment.
1307
a83d4ef6
JW
1308 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1309 plongest instead of unsigned long long cast.
1310
26344e0c
CB
13112019-10-10 Christian Biesinger <cbiesinger@google.com>
1312
1313 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1314 for external_editor_command and gdbtk_test.
1315
c2c440a9
CB
13162019-10-10 Christian Biesinger <cbiesinger@google.com>
1317
1318 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1319 * varobj.c (varobjdebug): Move comment to...
1320 * varobj.h (varobjdebug): ...here, and declare.
1321
a31bff9d
TT
13222019-10-09 Tom Tromey <tom@tromey.com>
1323
1324 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1325 erase_data_content.
1326
7523da63
TT
13272019-10-09 Tom Tromey <tom@tromey.com>
1328
1329 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1330 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1331 * tui/tui-command.c (tui_cmd_window::resize)
1332 (tui_refresh_cmd_win): Update.
1333 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1334 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1335 * tui/tui-data.c (~tui_gen_win_info): Remove.
1336 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1337 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1338 (tui_redisplay_readline, tui_mld_flush)
1339 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1340 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1341 (tui_data_window::erase_data_content)
1342 (tui_data_item_window::rerender)
1343 (tui_data_item_window::refresh_window): Update.
1344 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1345 (box_win, tui_gen_win_info::make_window)
1346 (tui_gen_win_info::make_visible): Update.
1347 (tui_delete_win): Remove.
1348 * tui/tui-winsource.c
1349 (tui_source_window_base::do_erase_source_content): Update.
1350 (tui_show_source_line, tui_source_window_base::update_tab_width)
1351 (tui_source_window_base::update_exec_info): Update.
1352 * tui/tui-data.h (struct curses_deleter): New.
1353 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1354 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1355
a7798e7f
TT
13562019-10-09 Tom Tromey <tom@tromey.com>
1357
1358 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1359
5c45899e
TT
13602019-10-09 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1363 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1364
6d7fd9aa
TT
13652019-10-09 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1368 window height directly.
1369 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1370 declare.
1371 * tui/tui-layout.c (tui_default_win_height): Remove.
1372 (tui_default_win_viewport_height): Remove.
1373
d2dd1084
TT
13742019-10-09 Tom Tromey <tom@tromey.com>
1375
1376 * tui/tui.h: Remove comments.
1377
cff32449
TV
13782019-10-09 Tom de Vries <tdevries@suse.de>
1379
1380 * python/lib/gdb/printer/bound_registers.py: Use
1381 '^builtin_type_bound128' as regexp argument for
1382 add_builtin_pretty_printer.
1383
6a25e8a2
CB
13842019-10-09 Christian Biesinger <cbiesinger@google.com>
1385
1386 * guile/guile.c (guile_extension_script_ops): Remove forward
1387 declaration and mark as static.
1388 (guile_script_ops): Likewise.
1389 (extension_language_guile): Move further down in the file so
1390 it can reference the definitions for guile_{extension_,}script_ops.
1391
6d9d6da4
AA
13922019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1393
1394 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1395 except SORTL, DFLTCC, and KDSA.
1396
3abea05d
TT
13972019-10-08 Tom Tromey <tromey@adacore.com>
1398
1399 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1400 (struct safe_symbol_file_add_args): Remove.
1401
dde996e2
TT
14022019-10-08 Tom Tromey <tromey@adacore.com>
1403
1404 * windows-nat.c: Don't include buildsym-legacy.h.
1405
cd6fdaa1
TT
14062019-10-08 Tom Tromey <tromey@adacore.com>
1407
1408 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1409
79bb1944
CB
14102019-10-08 Christian Biesinger <cbiesinger@google.com>
1411
1412 * gdbtypes.c (overload_debug): Move comment to header.
1413 * gdbtypes.h (overload_debug): Declare.
1414 * valops.c: Remove declaration of overload_debug, instead
1415 include gdbtypes.h.
1416
34916edc
CB
14172019-10-08 Christian Biesinger <cbiesinger@google.com>
1418
1419 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1420 through _().
1421 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1422 move comment...
1423 * language.h (lang_frame_mismatch_warn): ... here. Also add
1424 declaration.
1425 * top.c (lang_frame_mismatch_warn): Remove declaration.
1426 (check_frame_language_change): Pass lang_frame_mismatch_warn
1427 through _().
1428
bad5c026
CB
14292019-10-07 Christian Biesinger <cbiesinger@google.com>
1430
1431 * c-lang.h (vtbl_ptr_name): Declare.
1432 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1433 it from the header.
1434 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1435
51f1fdc3
CB
14362019-10-07 Christian Biesinger <cbiesinger@google.com>
1437
1438 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1439 gdb_static_assert.
1440
30d1f018
WP
14412019-10-07 Weimin Pan <weimin.pan@oracle.com>
1442
606813d5
WP
1443 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1444 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1445 * ctfread.c: New file.
1446 * ctfread.h: New file.
1447 * elfread.c: Include ctfread.h.
1448 (struct elfinfo text_p): New member ctfsect.
1449 (elf_locate_sections): Mark CTF section.
1450 (elf_symfile_read): Call elfctf_build_psymtabs.
1451 * Makefile.in (LIBCTF): Add.
1452 (CLIBS): Use it.
1453 (CDEPS): Likewise.
1454 (DIST): Add ctfread.c.
606813d5
WP
1455
14562019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1457
1458 * ctfread.c (struct nextfield): Renamed to ...
1459 (struct ctf_nextfield): ... this.
1460 (struct field_info): Renamed to ...
1461 (strut ctf_field_info): ... this.
1462 (attach_fields_to_type): Update for renamed structures.
1463 (ctf_add_member_cb): Likewise.
1464 (ctf_add_enum_member_cb): Likewise.
1465 (process_struct_members): Likewise.
1466 (process_enum_type): Likewise.
30d1f018 1467
518fe38c
WP
14682019-10-07 Weimin Pan <weimin.pan@oracle.com>
1469
1470 * tracectf.h: Rename, was ctf.h.
1471 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1472 * tracefile.c: Likewise.
1473 * tracepoint.c: Remove unused include ctf.h.
1474 * mi/mi-main.c: Likewise.
1475 * Makefile.in Replace ctf.c with tracectf.c.
1476
225f296a
JB
14772019-10-06 Joel Brobecker <brobecker@adacore.com>
1478
1479 * version.in: Change version number to "9.0.50.DATE-git".
1480
77c2dba3
TT
14812019-10-03 Tom Tromey <tom@tromey.com>
1482
1483 PR rust/24976:
1484 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1485
179aed7f
AB
14862019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1489 cp_search_name_hash.
1490 * NEWS: Add entry about nested function support.
1491
0a4b0913
AB
14922019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1493 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1496 for nested static variables when searchin VAR_DOMAIN.
1497 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1498 global scope, update comment.
1499 (add_partial_subprogram): Call add_partial_subprogram recursively
1500 for nested subroutines when processinng Fortran.
1501 (load_partial_dies): Process the child entities of a subprogram
1502 when processing Fortran.
1503 (partial_die_parent_scope): Handle building scope
1504 for Fortran nested functions.
1505 (process_die): Record that nested functions have a scope.
1506 (new_symbol): Always record Fortran subprograms on the global
1507 symbol list.
1508 (determine_prefix): How to build the prefix for Fortran
1509 subprograms.
1510
d8c06f22
AB
15112019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1512
1513 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1514 have just sent the thread a SIGSTOP and are waiting for it to
1515 arrive.
1516
a8b3b8e9
AB
15172019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * btrace.c (btrace_add_pc): Remove whitespace before the template
1520 parameter in 'std::vector <...>'.
1521 (parse_xml_btrace_block): Likewise.
1522 (btrace_maint_decode_pt): Likewise.
1523 (btrace_maint_update_packets): Likewise.
1524 (btrace_maint_print_packets): Likewise.
1525 * btrace.h (struct btrace_maint_info): Likewise.
1526 * dwarf2read.c (struct type_unit_group): Likewise.
1527 (build_type_psymtabs_reader): Likewise.
1528 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1529 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1530 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1531
4d825eab
TV
15322019-10-03 Tom de Vries <tdevries@suse.de>
1533
1534 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1535 the first line of the help text for set/show style metadata.
1536
80fd2826
TT
15372019-10-02 Tom Tromey <tromey@adacore.com>
1538
1539 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1540 * gdbsupport/common-inferior.c: New file.
1541 * infcmd.c (startup_with_shell): Don't define.
1542 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1543 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1544 * inferior.h (startup_with_shell): Don't declare.
1545
70054538
CB
15462019-10-02 Christian Biesinger <cbiesinger@google.com>
1547
1548 * gdbsupport/gdb_assert.h: Include errors.h.
1549 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1550
37f6a7f4
TT
15512019-10-02 Tom Tromey <tromey@adacore.com>
1552
1553 * NEWS: Add $_ada_exception entry.
1554 * ada-lang.c (struct ada_catchpoint): Add constructor.
1555 <m_kind>: New member.
1556 (allocate_location_exception, re_set_exception): Remove
1557 "ex" parameter.
1558 (should_stop_exception): Compute $_ada_exception.
1559 (check_status_exception, print_it_exception)
1560 (print_one_exception, print_mention_exception): Remove
1561 "ex" parameter.
1562 (allocate_location_catch_exception, re_set_catch_exception)
1563 (check_status_exception, print_it_catch_exception)
1564 (print_one_catch_exception, print_mention_catch_exception)
1565 (print_recreate_catch_exception)
1566 (allocate_location_catch_exception_unhandled)
1567 (re_set_catch_exception_unhandled)
1568 (check_status_exception, print_it_catch_exception_unhandled)
1569 (print_one_catch_exception_unhandled)
1570 (print_mention_catch_exception_unhandled)
1571 (print_recreate_catch_exception_unhandled)
1572 (allocate_location_catch_assert, re_set_catch_assert)
1573 (check_status_assert, print_it_catch_assert)
1574 (print_one_catch_assert, print_mention_catch_assert)
1575 (print_recreate_catch_assert)
1576 (allocate_location_catch_handlers, re_set_catch_handlers)
1577 (check_status_handlers, print_it_catch_handlers)
1578 (print_one_catch_handlers, print_mention_catch_handlers)
1579 (print_recreate_catch_handlers): Remove.
1580 (create_ada_exception_catchpoint): Update.
1581 (initialize_ada_catchpoint_ops): Update.
1582
fccf9de1
TT
15832019-10-02 Tom Tromey <tromey@adacore.com>
1584
1585 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1586 (create_excep_cond_exprs): Simplify exception string computation.
1587 (ada_exception_catchpoint_cond_string): Likewise.
1588
4b610737
TT
15892019-10-02 Tom Tromey <tromey@adacore.com>
1590
1591 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1592 * ada-lang.c (lesseq_defined_than): Handle
1593 LOC_STATIC.
1594 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1595 parameter.
1596 (dwarf2_has_info): Likewise.
1597 (new_symbol): Set maybe_copied on symbol when
1598 appropriate.
1599 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1600 parameter.
1601 <can_copy>: New member.
1602 * elfread.c (record_minimal_symbol): Set maybe_copied
1603 on symbol when appropriate.
1604 (elf_symfile_read): Update call to dwarf2_has_info.
1605 * minsyms.c (lookup_minimal_symbol_linkage): New
1606 function.
1607 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1608 * symtab.c (get_symbol_address, get_msymbol_address):
1609 New functions.
1610 * symtab.h (get_symbol_address, get_msymbol_address):
1611 Declare.
1612 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1613 maybe_copied.
1614 (struct symbol, struct minimal_symbol) <maybe_copied>:
1615 New member.
1616
1dd58850
TT
16172019-10-02 Tom Tromey <tromey@adacore.com>
1618
1619 * source.c (struct current_source_location): New.
1620 (current_source_key): New global.
1621 (current_source_symtab, current_source_line)
1622 (current_source_pspace): Remove.
1623 (get_source_location): New function.
1624 (get_current_source_symtab_and_line)
1625 (set_default_source_symtab_and_line)
1626 (set_current_source_symtab_and_line)
1627 (clear_current_source_symtab_and_line, select_source_symtab)
1628 (info_source_command, print_source_lines_base)
1629 (info_line_command, search_command_helper, _initialize_source):
1630 Update.
1631
5c281dbb
TT
16322019-10-02 Tom Tromey <tromey@adacore.com>
1633
1634 * source.c (select_source_symtab): Don't call
1635 decode_line_with_current_source.
1636
d3d32391
AB
16372019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * symtab.c (lookup_global_symbol): Search global block.
1640
38583298
TT
16412019-10-02 Tom Tromey <tromey@adacore.com>
1642
1643 * coffread.c (process_coff_symbol): Update.
1644 * dwarf2read.c (var_decode_location, new_symbol): Update.
1645 * mdebugread.c (parse_symbol): Update.
1646 * objfiles.c (relocate_one_symbol): Update.
1647 * stabsread.c (define_symbol, fix_common_block)
1648 (scan_file_globals): Update.
1649 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1650 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1651 * xcoffread.c (process_xcoff_symbol): Update.
1652
9344c18f
AA
16532019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1654
1655 * MAINTAINERS: Update my email address.
1656
df07e2c7
AB
16572019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1660 std::vector.
1661 (build_type_psymtabs_reader): Update for std::vector.
1662 (build_type_psymtab_dependencies): Likewise.
1663 * dwarf2read.h: Remove use of DEF_VEC_P.
1664 (typedef sig_type_ptr): Delete.
1665
554ac434
AB
16662019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1669 to std::vector.
1670 (btrace_maint_decode_pt): Likewise, and move allocation of the
1671 vector outside of the loop.
1672 (btrace_maint_update_packets): Update to handle change from VEC to
1673 std::vector.
1674 (btrace_maint_print_packets): Likewise.
1675 (maint_info_btrace_cmd): Likewise.
1676 * btrace.h: Remove use of DEF_VEC_O.
1677 (typedef btrace_pt_packet_s): Delete.
1678 (struct btrace_maint_info) <packets>: Change fromm VEC to
1679 std::vector.
1680 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1681
46f29a9a
AB
16822019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1685 make accesses into the vector constant references.
1686 (btrace_add_pc): Update for std::vector.
1687 (btrace_stitch_bts): Likewise.
1688 (parse_xml_btrace_block): Likewise.
1689 (btrace_maint_update_packets): Likewise.
1690 (btrace_maint_print_packets): Likewise.
1691 (maint_info_btrace_cmd): Likewise.
1692 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1693 std::vector.
1694 (btrace_data::empty): Likewise.
1695 (btrace_data_append): Likewise.
1696 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1697 (typedef btrace_block_s): Delete.
1698 (struct btrace_block): Add constructor.
1699 (struct btrace_data_bts) <blocks>: Change to std::vector.
1700 * nat/linux-btrace.c (perf_event_read_bts): Update for
1701 std::vector.
1702 (linux_read_bts): Likewise.
1703
d770d56f
TT
17042019-10-01 Tom Tromey <tom@tromey.com>
1705
1706 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1707
9d636d67
TT
17082019-10-01 Tom Tromey <tom@tromey.com>
1709
1710 * stack.c (print_frame, info_frame_command_core): Use
1711 styled_string.
1712 * linux-thread-db.c (try_thread_db_load_1)
1713 (try_thread_db_load_from_pdir_1): Use styled_string.
1714 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1715 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1716 (maybe_print_unsupported_script_warning)
1717 (maybe_print_script_not_found_warning): Use styled_string.
1718 * ada-lang.c (user_select_syms): Use styled_string.
1719
7f6aba03
TT
17202019-10-01 Tom Tromey <tom@tromey.com>
1721
1722 * p-lang.c (pascal_printstr): Use metadata style.
1723 * value.c (show_convenience): Use metadata style.
1724 * valprint.c (valprint_check_validity, val_print_optimized_out)
1725 (val_print_not_saved, val_print_unavailable)
1726 (val_print_invalid_address, generic_val_print, val_print)
1727 (value_check_printable, val_print_array_elements): Use metadata
1728 style.
1729 * ui-out.h (class ui_out) <field_fmt>: New overload.
1730 <do_field_fmt>: Add style parameter.
1731 * ui-out.c (ui_out::field_fmt): New overload.
1732 * typeprint.c (type_print_unknown_return_type)
1733 (val_print_not_allocated, val_print_not_associated): Use metadata
1734 style.
1735 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1736 parameter.
1737 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1738 * tracepoint.c (tvariables_info_1): Use metadata style.
1739 * stack.c (print_frame_arg, print_frame_info, print_frame)
1740 (info_frame_command_core): Use metadata style.
1741 * skip.c (info_skip_command): Use metadata style.
1742 * rust-lang.c (rust_print_enum): Use metadata style.
1743 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1744 metadata style.
1745 * python/py-framefilter.c (py_print_single_arg): Use metadata
1746 style.
1747 * printcmd.c (do_one_display, print_variable_and_value): Use
1748 metadata style.
1749 * p-valprint.c (pascal_val_print)
1750 (pascal_object_print_value_fields): Use metadata style.
1751 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1752 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1753 parameter.
1754 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1755 * m2-valprint.c (m2_print_long_set): Use metadata style.
1756 * m2-typeprint.c (m2_print_type): Use metadata style.
1757 * infcmd.c (print_return_value_1): Use metadata style.
1758 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1759 * f-valprint.c (info_common_command_for_block): Use metadata
1760 style.
1761 * f-typeprint.c (f_type_print_base): Use metadata style.
1762 * expprint.c (print_subexp_standard): Use metadata style.
1763 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1764 * cli/cli-style.h (class cli_style_option): Add constructor.
1765 (metadata_style): Declare.
1766 * cli/cli-style.c (metadata_style): New global.
1767 (_initialize_cli_style): Register metadata style.
1768 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1769 parameter.
1770 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1771 * c-typeprint.c (c_type_print_base_struct_union)
1772 (c_type_print_base_1): Use metadata style.
1773 * breakpoint.c (watchpoint_value_print)
1774 (print_one_breakpoint_location): Use metadata style.
1775 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1776 style.
1777 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1778 style.
1779 * ada-valprint.c (val_print_packed_array_elements, printstr)
1780 (print_field_values, ada_val_print_ref, ada_val_print): Use
1781 metadata style.
1782 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1783 style.
1784 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1785 style.
1786 * ada-lang.c (user_select_syms): Use metadata style.
1787
14309bb6
TT
17882019-10-01 Tom Tromey <tom@tromey.com>
1789
1790 * cli/cli-cmds.c (pwd_command): Style output.
1791
6a831f06
PA
17922019-10-01 Pedro Alves <palves@redhat.com>
1793 Tom Tromey <tom@tromey.com>
1794
1795 * symtab.c (print_symbol_info): Use %ps.
1796 (print_msymbol_info): Use %ps.
1797 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1798 * printcmd.c (print_variable_and_value): Use %ps.
1799 * macrocmd.c (show_pp_source_pos): Use %ps.
1800 * infrun.c (print_exited_reason): Use ui_out::message.
1801 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1802 (describe_other_breakpoints): Use ui_out::message and new
1803 formats.
1804 (say_where): Use new formats.
1805 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1806 and new formats.
1807
2a3c1174
PA
18082019-10-01 Pedro Alves <palves@redhat.com>
1809 Tom Tromey <tom@tromey.com>
1810
1811 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1812 (test_gdb_formats): New function.
1813 (run_tests): Call it.
1814 (test_format_specifier): Update.
1815 * utils.h (fputs_filtered): Update comment.
1816 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1817 (fputs_styled_unfiltered): Declare.
1818 * utils.c (fputs_styled_unfiltered): New function.
1819 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1820 (vfprintf_filtered): Update.
1821 (vfprintf_unfiltered, vprintf_filtered): Update.
1822 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1823 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1824 disallow_ui_out_field>: New constants.
1825 (enum class field_kind): New.
1826 (struct base_field_s, struct signed_field_s): New.
1827 (signed_field): New function.
1828 (struct string_field_s): New.
1829 (string_field): New function.
1830 (struct styled_string_s): New.
1831 (styled_string): New function.
1832 (class ui_out) <message>: Add comment.
1833 <vmessage, call_do_message>: New methods.
1834 <do_message>: Add style parameter.
1835 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1836 methods.
1837 (ui_out::message): Rewrite.
1838 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1839 parameter.
1840 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1841 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1842 gdb_extensions parameter.
1843 (class format_piece): Add parameter to constructor.
1844 (n_int_args): New field.
1845 * gdbsupport/format.c (format_pieces::format_pieces): Add
1846 gdb_extensions parameter. Handle '*'.
1847 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1848 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1849 vfprintf_styled_no_gdbfmt.
1850 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1851 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1852 unfiltered output.
1853 * ui-style.h (struct ui_file_style) <ptr>: New method.
1854
0dfe5bfb
TT
18552019-10-01 Tom Tromey <tom@tromey.com>
1856
1857 * unittests/format_pieces-selftests.c: Update. Add final format.
1858 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1859 empty literal pieces.
1860
e43b10e1
TT
18612019-10-01 Tom Tromey <tom@tromey.com>
1862
1863 * ui-out.h (enum class ui_out_style_kind): Remove.
1864 (class ui_out) <field_string, field_stsream, do_field_string>:
1865 Change type of "style".
1866 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1867 (ui_out::field_string): Update.
1868 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1869 of "style".
1870 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1871 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1872 * stack.c (print_frame_arg, print_frame_info, print_frame):
1873 Update.
1874 * source.c (print_source_lines_base): Update.
1875 * solib.c (info_sharedlibrary_command): Update.
1876 * skip.c (info_skip_command): Update.
1877 * record-btrace.c (btrace_call_history_src_line)
1878 (btrace_call_history): Update.
1879 * python/py-framefilter.c (py_print_frame): Update.
1880 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1881 "style".
1882 * mi/mi-out.c (mi_ui_out::do_table_header)
1883 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1884 (mi_ui_out::do_field_string): Update.
1885 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1886 Update.
1887 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1888 "style".
1889 * cli-out.c (cli_ui_out::do_table_header)
1890 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1891 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1892 (cli_ui_out::do_field_fmt): Update.
1893 * breakpoint.c (print_breakpoint_location): Update.
1894 (update_static_tracepoint): Update.
1895
cd7c32c3
PW
18962019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1897
1898 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1899 conversion of gdb_datadir.
1900 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1901 remove not needed c_str ().
1902
8fe0f950
AT
19032019-09-30 Ali Tamur <tamur@google.com>
1904
1905 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1906 (dwarf2_string_attr): Likewise.
1907
5f48f8f3
AT
19082019-09-30 Ali Tamur <tamur@google.com>
1909
1910 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1911 (process_full_type_unit): Likewise.
1912 (dump_die_shallow): Likewise.
1913 (cu_debug_loc_section): Likewise.
1914
6fb08628
CB
19152019-09-28 Christian Biesinger <cbiesinger@google.com>
1916
1917 * minsyms.c (compare_minimal_symbols): Rename to...
1918 (minimal_symbol_is_less_than): ...this, and adjust to STL
1919 conventions (return bool, take arguments as references)
1920 (minimal_symbol_reader::install): Call std::sort instead
1921 of qsort.
1922
c7ee338a
CB
19232019-09-29 Christian Biesinger <cbiesinger@google.com>
1924
1925 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1926 hash and why.
1927 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1928 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1929
703a86c2
SM
19302019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1933 * psympriv.h (add_psymbol_to_list): Move comment here and update
1934 it.
1935
0df0352a
TV
19362019-09-29 Tom de Vries <tdevries@suse.de>
1937
1938 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1939 Use $tmpdir/$(basename "$output_file").dwz instead of
1940 "${output_file}.dwz".
1941
ad75efa6
SM
19422019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1943
1944 PR gdb/25045
1945 * hppa-linux-nat.c: Include gdbarch.h.
1946
ececd218
CB
19472019-09-26 Christian Biesinger <cbiesinger@google.com>
1948
1949 * blockframe.c (find_pc_partial_function): Change return type to bool.
1950 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1951 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1952 (stub_gnu_ifunc_resolve_name): Likewise.
1953 * symtab.c (compare_filenames_for_search): Likewise.
1954 (compare_glob_filenames_for_search): Likewise.
1955 (matching_obj_sections): Likewise.
1956 (symbol_matches_domain): Likewise.
1957 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1958 (find_line_pc): Change return type to bool.
1959 (find_line_pc_range): Likewise.
1960 (producer_is_realview): Likewise.
1961 * symtab.h (symbol_matches_domain): Likewise.
1962 (find_pc_partial_function): Likewise.
1963 (find_pc_line_pc_range): Likewise.
1964 (in_gnu_ifunc_stub): Likewise.
1965 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1966 (find_line_pc): Likewise.
1967 (find_line_pc_range): Likewise.
1968 (matching_obj_sections): Likewise.
1969 (find_line_symtab): Change out parameter to bool.
1970 (producer_is_realview): Change return type to bool.
1971 (compare_filenames_for_search): Likewise.
1972 (compare_glob_filenames_for_search): Likewise.
1973
27a900b8
TT
19742019-09-26 Tom Tromey <tom@tromey.com>
1975
1976 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1977 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1978 * gdb_usleep.h: Remove.
1979 * gdb_usleep.c: Remove.
1980 * utils.c: Don't include gdb_usleep.h.
1981
5d63b30a
TT
19822019-09-26 Tom Tromey <tromey@adacore.com>
1983
1984 * python/py-type.c (type_to_type_object): Call check_typedef
1985 for stub types.
1986
12904d37
TT
19872019-09-26 Tom Tromey <tom@tromey.com>
1988
1989 * utils.h (initialize_utils): Don't declare.
1990 * top.c (gdb_init): Don't call initialize_utils.
1991 * utils.c (initialize_utils): Remove. Move contents...
1992 (_initialize_utils): ... here.
1993
858f25f0
TT
19942019-09-25 Tom Tromey <tom@tromey.com>
1995
1996 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1997 * utils.h (make_hex_string): Don't declare.
1998 * utils.c (make_hex_string): Remove.
1999
3d435220
TV
20002019-09-24 Tom de Vries <tdevries@suse.de>
2001
2002 PR gdb/23815
2003 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2004 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2005
ddd44b70
DD
20062019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2007
2008 * NEWS: Mention new simulator port for PRU.
2009
f945dedf
CB
20102019-09-23 Christian Biesinger <cbiesinger@google.com>
2011
2012 * ada-exp.y (write_object_remaining): Update.
2013 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2014 and eliminate the static buffer.
2015 (ada_decode_symbol): Update.
2016 (ada_la_decode): Update.
2017 (ada_sniff_from_mangled_name): Update.
2018 (is_valid_name_for_wild_match): Update.
2019 (ada_lookup_name_info::matches): Update and simplify.
2020 (name_matches_regex): Update.
2021 (ada_add_global_exceptions): Update.
2022 * ada-lang.h (ada_decode): Update signature.
2023 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2024 * dwarf-index-write.c (debug_names::insert): Update.
2025
7ab78ccb
SM
20262019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2027
2028 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2029 formatting.
2030
9252448b
SM
20312019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2034 Change "nonzero" to "true" in documentation.
2035
626ca2c0
CB
20362019-09-20 Christian Biesinger <cbiesinger@google.com>
2037
2038 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2039 (_initialize_darwin_solib): Don't set
2040 darwin_so_ops.lookup_lib_global_symbol.
2041 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2042 set_gdbarch_iterate_over_objfiles_in_search_order.
2043 (elf_lookup_lib_symbol): Rename to...
2044 (svr4_iterate_over_objfiles_in_search_order): this, and update
2045 to iterate semantics.
2046 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2047 * solib.c (solib_global_lookup): Remove.
2048 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2049 (solib_global_lookup): Remove.
2050 * symtab.c (lookup_global_or_static_symbol): Remove call to
2051 solib_global_lookup.
2052
5a3a0d63
JB
20532019-09-20 Joel Brobecker <brobecker@adacore.com>
2054
2055 * NEWS: Move entries about default MI version now being
2056 version 3, and about the GDB/MI fix for multi-location
2057 breakpoints to the "since GDB 8.3" section.
2058
ffea1427
JB
20592019-09-20 Joel Brobecker <brobecker@adacore.com>
2060
2061 GDB 8.3.1 released.
2062
abf516c6
UW
20632019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2064
2065 * NEWS: Mention that Cell/B.E. debugging support was removed.
2066 * MAINTAINERS: Remove spu target.
2067
2068 * config/djgpp/fnchange.lst: Remove entries for removed files.
2069
2070 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2071 spu-multiarch.o, and spu-tdep.o.
2072 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2073 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2074 spu-multiarch.c, and spu-tdep.c.
2075 * spu-linux-nat.c: Remove file.
2076 * spu-multiarch.c: Remove file.
2077 * spu-tdep.c: Remove file.
2078 * spu-tdep.h: Remove file.
2079 * solib-spu.c: Remove file.
2080 * solib-spu.h: Remove file.
2081
2082 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2083 * configure.nat (spu-linux): Remove.
2084 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2085 solib-multiarch.o from gdb_target_obs.
2086 (spu*-*-*): Remove.
2087
2088 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2089 feature flag.
2090 (ppc_linux_no_features): Update.
2091 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2092 Cell/B.E. support.
2093 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2094 (tdesc_powerpc_cell64l): Likewise.
2095 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2096 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2097 Cell/B.E. support.
2098 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2099 Do not include "features/rs6000/powerpc-cell32l.c" or
2100 "features/rs6000/powerpc-cell64l.c".
2101 (ppc_linux_spu_section): Remove.
2102 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2103 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2104 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2105 (ppc_linux_spe_context_lookup): Remove.
2106 (ppc_linux_spe_context_inferior_created): Remove.
2107 (ppc_linux_spe_context_solib_loaded): Remove.
2108 (ppc_linux_spe_context_solib_unloaded): Remove.
2109 (ppc_linux_spe_context): Remove.
2110 (struct ppu2spu_cache): Remove.
2111 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2112 (struct ppu2spu_data): Remove.
2113 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2114 ppu2spu_unwind): Remove.
2115 (ppc_linux_init_abi): Remove Cell/B.E. support.
2116 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2117
2118 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2119 (rs6000/powerpc-cell64l-expedite): Likewise
2120 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2121 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2122 rs6000/powerpc-cell64l.xml.
2123 * features/rs6000/powerpc-cell32l.xml: Remove.
2124 * features/rs6000/powerpc-cell64l.xml: Likewise.
2125 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2126 * features/rs6000/powerpc-cell64l.c: Likewise.
2127 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2128 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2129 * regformats/reg-spu.dat: Remove.
2130
2131 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2132 * corelow.c (struct spuid_list): Remove.
2133 (add_to_spuid_list): Remove.
2134 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2135 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2136 (remote_protocol_features): Remove associated entries.
2137 (_initialize_remote): No longer initialize them.
2138 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2139 * linux-nat.c (SPUFS_MAGIC): Remove.
2140 (linux_proc_xfer_spu): Remove.
2141 (spu_enumerate_spu_ids): Remove.
2142 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2143 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2144 (linux_make_corefile_notes): No longer call it.
2145
2146 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2147 (cooked_write_test): Likewise.
2148
78e8cb91
TT
21492019-09-20 Tom Tromey <tom@tromey.com>
2150
2151 * NEWS: Mention case-sensitivity of TUI commands.
2152 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2153 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2154 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2155
f074b67e
TT
21562019-09-20 Tom Tromey <tom@tromey.com>
2157
2158 * tui/tui-source.c (tui_source_window::set_contents): Use
2159 make_unique_xstrdup.
2160 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2161 make_unique_xstrdup.
2162
63c4bf19
TT
21632019-09-20 Tom Tromey <tom@tromey.com>
2164
2165 * tui/tui-data.c: Remove separator comments.
2166 * tui/tui-layout.c: Remove separator comments.
2167 * tui/tui-win.c: Remove separator comments.
2168 * tui/tui-wingeneral.c: Remove separator comments.
2169
43df9b2f
TT
21702019-09-20 Tom Tromey <tom@tromey.com>
2171
2172 * tui/tui.h (strcat_to_buf): Don't declare.
2173 * tui/tui.c (strcat_to_buf): Remove.
2174
7226433c
TT
21752019-09-20 Tom Tromey <tom@tromey.com>
2176
2177 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2178 from "fullname".
2179 * tui/tui-source.c (tui_source_window::set_contents)
2180 (tui_source_window::location_matches_p)
2181 (tui_source_window::maybe_update): Update.
2182
80df3337
TT
21832019-09-20 Tom Tromey <tom@tromey.com>
2184
2185 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2186 Update.
2187 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2188 prefix.
2189 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2190 (tui_data_window::line_from_reg_element_no)
2191 (tui_data_window::first_reg_element_no_inline)
2192 (tui_data_window::show_registers)
2193 (tui_data_window::show_register_group)
2194 (tui_data_window::display_registers_from)
2195 (tui_data_window::display_registers_from_line)
2196 (tui_data_window::first_data_item_displayed)
2197 (tui_data_window::delete_data_content_windows)
2198 (tui_data_window::erase_data_content)
2199 (tui_data_window::do_scroll_vertical)
2200 (tui_data_window::refresh_window)
2201 (tui_data_window::check_register_values): Update.
2202
9923f347
TT
22032019-09-20 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2206 (struct tui_locator_window) <full_name, proc_name>: Now
2207 std::string.
2208 * tui/tui-stack.c (tui_locator_window::make_status_line)
2209 (tui_locator_window::set_locator_fullname)
2210 (tui_locator_window::set_locator_info): Update.
2211 * tui/tui-source.c (tui_source_window::set_contents)
2212 (tui_source_window::showing_source_p): Update.
2213
b76251ab
TT
22142019-09-20 Tom Tromey <tom@tromey.com>
2215
2216 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2217 Don't call tui_locator_win_info_ptr.
2218
0891be08
TT
22192019-09-20 Tom Tromey <tom@tromey.com>
2220
2221 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2222
1b935acf
TT
22232019-09-20 Tom Tromey <tom@tromey.com>
2224
2225 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2226 height for locator.
2227 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2228 * tui/tui-layout.c (show_source_disasm_command, show_data)
2229 (show_source_or_disasm_and_command): Use 1 as height for locator.
2230
9abd8a65
TT
22312019-09-20 Tom Tromey <tom@tromey.com>
2232
2233 * tui/tui.c (tui_enable): Update.
2234 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2235 Update.
2236 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2237 Update.
2238 * tui/tui-data.c (win_resized): Now bool.
2239 (tui_win_resized): Return bool.
2240 (tui_set_win_resized_to): Accept a bool.
2241
b5457826
TT
22422019-09-20 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2245 Change type of "refresh_values_only".
2246 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2247 type of "refresh_values_only".
2248
6b915f7d
TT
22492019-09-20 Tom Tromey <tom@tromey.com>
2250
2251 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2252 std::string.
2253 (tui_disassemble): Add "pos" parameter.
2254 (tui_disasm_window::set_contents): Simplify.
2255
2ad52f6f
TT
22562019-09-20 Tom Tromey <tom@tromey.com>
2257
2258 * tui/tui-winsource.h (struct tui_source_window_base)
2259 <show_source_content>: Now private.
2260 * tui/tui-winsource.c
2261 (tui_source_window_base::show_source_content): Don't handle empty
2262 content case.
2263
b3b1bde6
TT
22642019-09-20 Tom Tromey <tom@tromey.com>
2265
2266 * tui/tui-layout.c (show_source_disasm_command)
2267 (show_source_or_disasm_and_command): Don't call
2268 show_source_content.
2269
71a25ed2
TT
22702019-09-20 Tom Tromey <tom@tromey.com>
2271
2272 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2273 Declare.
2274 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2275 from tui_make_status_line.
2276 (tui_locator_window::rerender): Update.
2277
f8532154
TT
22782019-09-20 Tom Tromey <tom@tromey.com>
2279
2280 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2281 (tui_locator_window::rerender): Update.
2282
2d81b349
TT
22832019-09-20 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-winsource.h (struct tui_source_window_base)
2286 <~tui_source_window_base>: Don't declare.
2287 <fullname>: Remove.
2288 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2289 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2290 member.
2291 * tui/tui-source.c (tui_source_window::set_contents): Update.
2292 (tui_source_window::location_matches_p)
2293 (tui_source_window::maybe_update): Update.
2294
f14bec58
TT
22952019-09-20 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-winsource.h (~tui_source_element): Remove.
2298 (tui_source_element): Update.
2299 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2300 * tui/tui-winsource.c (tui_show_source_line): Update.
2301 * tui/tui-source.c (tui_source_window::set_contents): Update.
2302 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2303
78d5933a
TT
23042019-09-20 Tom Tromey <tom@tromey.com>
2305
2306 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2307 declare.
2308 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2309 tui_clear_source_windows_detail.
2310 * tui/tui-winsource.h (struct tui_source_window_base)
2311 <clear_detail>: Don't declare.
2312 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2313 Remove.
2314 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2315
d4207696
TT
23162019-09-20 Tom Tromey <tromey@adacore.com>
2317
2318 PR ada/24919:
2319 * block.c (contained_in): Fix final return value.
2320
00f93c44
AM
23212019-09-20 Alan Modra <amodra@gmail.com>
2322
2323 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2324 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2325 (read_indirect_string_from_dwz): Use bfd accessor.
2326 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2327 * machoread.c (macho_symfile_read_all_oso): Likewise.
2328 * solib.c (solib_bfd_open): Likewise.
2329
e4153ae6
CB
23302019-09-19 Christian Biesinger <cbiesinger@google.com>
2331
2332 * eval.c: Move declaration of overload_resolution to...
2333 * value.h: ...here.
2334
c7ae7675
CB
23352019-09-19 Christian Biesinger <cbiesinger@google.com>
2336
2337 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2338 * arm-linux-tdep.c: Likewise.
2339 * arm-nbsd-nat.c: Likewise.
2340 * arm-tdep.h: Declare arm_apcs_32.
2341 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2342
e86f08d2
CB
23432019-09-19 Christian Biesinger <cbiesinger@google.com>
2344
2345 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2346 * dwarf2read.h: Declare dwarf_always_disassemble.
2347
f64e2f40
TV
23482019-09-19 Tom de Vries <tdevries@suse.de>
2349
2350 PR gdb/25009
2351 * source-cache.c (source_cache::ensure): Catch exception thrown during
2352 construction of the highlighter.
2353
fd361982
AM
23542019-09-18 Alan Modra <amodra@gmail.com>
2355
2356 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2357 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2358 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2359 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2360 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2361 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2362 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2363 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2364 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2365 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2366 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2367 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2368 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2369 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2370 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2371 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2372 * mi/mi-interp.c: Update throughout for bfd section macro and
2373 function changes.
2374 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2375 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2376
11061048
TT
23772019-09-18 Tom Tromey <tom@tromey.com>
2378
2379 * NEWS: Add entry.
2380 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2381 call rl_initialize.
2382 (tui_enable): Do not call rl_initialize.
2383
7a27b85f
CG
23842019-09-18 Christian Groessler <chris@groessler.org>
2385
2386 * alpha-linux-nat.c: Include gdbarch.h.
2387
f64eea3a
SM
23882019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2389
2390 * ui-file.c: Include cli/cli-style.h.
2391 (term_cli_styling): Remove cli_styling declaration.
2392
e6f7f6d1
AM
23932019-09-18 Alan Modra <amodra@gmail.com>
2394
2395 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2396 to bfd_asymbol_section.
2397
1d38e9d1
AM
23982019-09-18 Alan Modra <amodra@gmail.com>
2399
2400 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2401 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2402 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2403
90d92a63
AM
24042019-09-18 Alan Modra <amodra@gmail.com>
2405
2406 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2407 * spu-linux-nat.c (spu_bfd_open): Likewise.
2408
a3d181d2
CB
24092019-09-18 Christian Biesinger <cbiesinger@google.com>
2410
2411 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2412 to bool to match definition in dwarf2read.c.
2413
491144b5
CB
24142019-09-17 Christian Biesinger <cbiesinger@google.com>
2415
2416 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2417 (print_signatures): Likewise.
2418 (trust_pad_over_xvs): Likewise.
2419 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2420 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2421 * arm-linux-nat.c (arm_apcs_32): Likewise.
2422 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2423 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2424 * arm-tdep.c (arm_debug): Likewise.
2425 (arm_apcs_32): Likewise.
2426 * auto-load.c (debug_auto_load): Likewise.
2427 (auto_load_gdb_scripts): Likewise.
2428 (global_auto_load): Likewise.
2429 (auto_load_local_gdbinit): Likewise.
2430 (auto_load_local_gdbinit_loaded): Likewise.
2431 * auto-load.h (global_auto_load): Likewise.
2432 (auto_load_local_gdbinit): Likewise.
2433 (auto_load_local_gdbinit_loaded): Likewise.
2434 * breakpoint.c (disconnected_dprintf): Likewise.
2435 (breakpoint_proceeded): Likewise.
2436 (automatic_hardware_breakpoints): Likewise.
2437 (always_inserted_mode): Likewise.
2438 (target_exact_watchpoints): Likewise.
2439 (_initialize_breakpoint): Update.
2440 * breakpoint.h (target_exact_watchpoints): Change to bool.
2441 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2442 * cli/cli-cmds.c (trace_commands): Likewise.
2443 * cli/cli-cmds.h (trace_commands): Likewise.
2444 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2445 to bool*.
2446 * cli/cli-logging.c (logging_overwrite): Change to bool.
2447 (logging_redirect): Likewise.
2448 (debug_redirect): Likewise.
2449 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2450 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2451 to bool.
2452 <boolean_option_def>: Update.
2453 (struct flag_option_def): Change default type of Context to bool
2454 from int.
2455 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2456 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2457 (get_setshow_command_value_string): Likewise.
2458 * cli/cli-style.c (cli_styling): Change to bool.
2459 (source_styling): Likewise.
2460 * cli/cli-style.h (source_styling): Likewise.
2461 (cli_styling): Likewise.
2462 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2463 to bool.
2464 * command.h (var_types): Update comment.
2465 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2466 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2467 bool.
2468 (debug_compile_cplus_scopes): Likewise.
2469 * compile/compile-internal.h (compile_debug): Likewise.
2470 * compile/compile.c (compile_debug): Likewise.
2471 (struct compile_options) <raw>: Likewise.
2472 * cp-support.c (catch_demangler_crashes): Likewise.
2473 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2474 (usr_cmd_cris_dwarf2_cfi): Likewise.
2475 * csky-tdep.c (csky_debug): Likewise.
2476 * darwin-nat.c (enable_mach_exceptions): Likewise.
2477 * dcache.c (dcache_enabled_p): Likewise.
2478 * defs.h (info_verbose): Likewise.
2479 * demangle.c (demangle): Likewise.
2480 (asm_demangle): Likewise.
2481 * dwarf-index-cache.c (debug_index_cache): Likewise.
2482 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2483 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2484 * dwarf2read.c (check_physname): Likewise.
2485 (use_deprecated_index_sections): Likewise.
2486 (dwarf_always_disassemble): Likewise.
2487 * eval.c (overload_resolution): Likewise.
2488 * event-top.c (set_editing_cmd_var): Likewise.
2489 (exec_done_display_p): Likewise.
2490 * event-top.h (set_editing_cmd_var): Likewise.
2491 (exec_done_display_p): Likewise.
2492 * exec.c (write_files): Likewise.
2493 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2494 (debug_fbsd_nat): Likewise.
2495 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2496 Likewise.
2497 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2498 <backtrace_past_entry> Likewise.
2499 * gdb-demangle.h (demangle): Likewise.
2500 (asm_demangle): Likewise.
2501 * gdb_bfd.c (bfd_sharing): Likewise.
2502 * gdbcore.h (write_files): Likewise.
2503 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2504 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2505 * gdbthread.h (print_thread_events): Likewise.
2506 * gdbtypes.c (opaque_type_resolution): Likewise.
2507 (strict_type_checking): Likewise.
2508 * gnu-nat.c (gnu_debug_flag): Likewise.
2509 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2510 * guile/scm-param.c (pascm_variable): Add boolval.
2511 (add_setshow_generic): Update.
2512 (pascm_param_value): Update.
2513 (pascm_set_param_value_x): Update.
2514 * hppa-tdep.c (hppa_debug): Change to bool..
2515 * infcall.c (may_call_functions_p): Likewise.
2516 (coerce_float_to_double_p): Likewise.
2517 (unwind_on_signal_p): Likewise.
2518 (unwind_on_terminating_exception_p): Likewise.
2519 * infcmd.c (startup_with_shell): Likewise.
2520 * inferior.c (print_inferior_events): Likewise.
2521 * inferior.h (startup_with_shell): Likewise.
2522 (print_inferior_events): Likewise.
2523 * infrun.c (step_stop_if_no_debug): Likewise.
2524 (detach_fork): Likewise.
2525 (debug_displaced): Likewise.
2526 (disable_randomization): Likewise.
2527 (non_stop): Likewise.
2528 (non_stop_1): Likewise.
2529 (observer_mode): Likewise.
2530 (observer_mode_1): Likewise.
2531 (set_observer_mode): Update.
2532 (sched_multi): Change to bool.
2533 * infrun.h (debug_displaced): Likewise.
2534 (sched_multi): Likewise.
2535 (step_stop_if_no_debug): Likewise.
2536 (non_stop): Likewise.
2537 (disable_randomization): Likewise.
2538 * linux-tdep.c (use_coredump_filter): Likewise.
2539 (dump_excluded_mappings): Likewise.
2540 * linux-thread-db.c (auto_load_thread_db): Likewise.
2541 (check_thread_db_on_load): Likewise.
2542 * main.c (captured_main_1): Update.
2543 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2544 xx2_opt, boolean_opt>: Change to bool.
2545 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2546 * maint.c (maintenance_profile_p): Likewise.
2547 (per_command_time): Likewise.
2548 (per_command_space): Likewise.
2549 (per_command_symtab): Likewise.
2550 * memattr.c (inaccessible_by_default): Likewise.
2551 * mi/mi-main.c (mi_async): Likewise.
2552 (mi_async_1): Likewise.
2553 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2554 * nat/fork-inferior.h (startup_with_shell): Likewise.
2555 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2556 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2557 * nios2-tdep.c (nios2_debug): Likewise.
2558 * or1k-tdep.c (or1k_debug): Likewise.
2559 * parse.c (parser_debug): Likewise.
2560 * parser-defs.h (parser_debug): Likewise.
2561 * printcmd.c (print_symbol_filename): Likewise.
2562 * proc-api.c (procfs_trace): Likewise.
2563 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2564 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2565 (set_parameter_value): Update.
2566 (add_setshow_generic): Update.
2567 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2568 to bool*.
2569 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2570 int*.
2571 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2572 * record-btrace.c (record_btrace_target::store_registers): Update.
2573 * record-full.c (record_full_memory_query): Change to bool.
2574 (record_full_stop_at_limit): Likewise.
2575 * record-full.h (record_full_memory_query): Likewise.
2576 * remote-notif.c (notif_debug): Likewise.
2577 * remote-notif.h (notif_debug): Likewise.
2578 * remote.c (use_range_stepping): Likewise.
2579 (interrupt_on_connect): Likewise.
2580 (remote_break): Likewise.
2581 * ser-tcp.c (tcp_auto_retry): Likewise.
2582 * ser-unix.c (serial_hwflow): Likewise.
2583 * skip.c (debug_skip): Likewise.
2584 * solib-aix.c (solib_aix_debug): Likewise.
2585 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2586 (spu_auto_flush_cache_p): Likewise.
2587 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2588 Likewise.
2589 (struct info_print_options) <quiet>: Likewise.
2590 * symfile-debug.c (debug_symfile): Likewise.
2591 * symfile.c (auto_solib_add): Likewise.
2592 (separate_debug_file_debug): Likewise.
2593 * symfile.h (auto_solib_add): Likewise.
2594 (separate_debug_file_debug): Likewise.
2595 * symtab.c (basenames_may_differ): Likewise.
2596 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2597 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2598 (struct info_types_options) <quiet>: Likewise.
2599 * symtab.h (demangle): Likewise.
2600 (basenames_may_differ): Likewise.
2601 * target-dcache.c (stack_cache_enabled_1): Likewise.
2602 (code_cache_enabled_1): Likewise.
2603 * target.c (trust_readonly): Likewise.
2604 (may_write_registers): Likewise.
2605 (may_write_memory): Likewise.
2606 (may_insert_breakpoints): Likewise.
2607 (may_insert_tracepoints): Likewise.
2608 (may_insert_fast_tracepoints): Likewise.
2609 (may_stop): Likewise.
2610 (auto_connect_native_target): Likewise.
2611 (target_stop_and_wait): Update.
2612 (target_async_permitted): Change to bool.
2613 (target_async_permitted_1): Likewise.
2614 (may_write_registers_1): Likewise.
2615 (may_write_memory_1): Likewise.
2616 (may_insert_breakpoints_1): Likewise.
2617 (may_insert_tracepoints_1): Likewise.
2618 (may_insert_fast_tracepoints_1): Likewise.
2619 (may_stop_1): Likewise.
2620 * target.h (target_async_permitted): Likewise.
2621 (may_write_registers): Likewise.
2622 (may_write_memory): Likewise.
2623 (may_insert_breakpoints): Likewise.
2624 (may_insert_tracepoints): Likewise.
2625 (may_insert_fast_tracepoints): Likewise.
2626 (may_stop): Likewise.
2627 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2628 (make_thread_apply_all_options_def_group): Change argument from int*
2629 to bool*.
2630 (thread_apply_all_command): Update.
2631 (print_thread_events): Change to bool.
2632 * top.c (confirm): Likewise.
2633 (command_editing_p): Likewise.
2634 (history_expansion_p): Likewise.
2635 (write_history_p): Likewise.
2636 (info_verbose): Likewise.
2637 * top.h (confirm): Likewise.
2638 (history_expansion_p): Likewise.
2639 * tracepoint.c (disconnected_tracing): Likewise.
2640 (circular_trace_buffer): Likewise.
2641 * typeprint.c (print_methods): Likewise.
2642 (print_typedefs): Likewise.
2643 * utils.c (debug_timestamp): Likewise.
2644 (sevenbit_strings): Likewise.
2645 (pagination_enabled): Likewise.
2646 * utils.h (sevenbit_strings): Likewise.
2647 (pagination_enabled): Likewise.
2648 * valops.c (overload_resolution): Likewise.
2649 * valprint.h (struct value_print_options) <prettyformat_arrays,
2650 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2651 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2652 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2653 Likewise.
2654 * windows-nat.c (new_console): Likewise.
2655 (cygwin_exceptions): Likewise.
2656 (new_group): Likewise.
2657 (debug_exec): Likewise.
2658 (debug_events): Likewise.
2659 (debug_memory): Likewise.
2660 (debug_exceptions): Likewise.
2661 (useshell): Likewise.
2662 * windows-tdep.c (maint_display_all_tib): Likewise.
2663 * xml-support.c (debug_xml): Likewise.
2664
f1b620e9
MG
26652019-09-17 Mike Gulick <mgulick@mathworks.com>
2666
2667 * source.c (prepare_path_for_appending): New function.
2668 (openp): Make use of new function.
2669 (find_and_open_source): Search for the compilation directory and
2670 source file as a relative path beneath the directory search path.
2671
67f3ed6a
AB
26722019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2673
2674 * source-cache.c (source_cache::get_line_charpos): Catch
2675 exceptions and return false, this matches the behaviour documented
2676 in the header file.
2677
74332189
JB
26782019-09-17 Joel Brobecker <brobecker@adacore.com>
2679
2680 * ada-tasks.c (info_task): Remove quoting of the task's name.
2681
f2f24aa9
CB
26822019-09-16 Christian Biesinger <cbiesinger@google.com>
2683
2684 * symfile.c (auto_solib_add): Replace comment with a reference
2685 to the header file.
2686
6a062a93
CB
26872019-09-14 Christian Biesinger <cbiesinger@google.com>
2688
2689 * NEWS: Mention that gdb can now be compiled with Python 3
2690 on Windows.
2691
ec6c8338
AB
26922019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * maint.c (maint_print_section_data::maint_print_section_data):
2695 Force use of 'float log10 (float)' by casting the argument to
2696 float.
2697
aa17805f
AB
26982019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * maint.c: Add 'cmath' include.
2701 (struct maint_print_section_data): New structure.
2702 (print_section_index): New function.
2703 (print_bfd_section_info): Add header comment, small whitespace
2704 cleanup, and update to call new print_section_index function.
2705 (print_objfile_section_info): Likewise.
2706 (maint_obj_section_from_bfd_section): New function.
2707 (print_bfd_section_info_maybe_relocated): New function.
2708 (maintenance_info_sections): Add header comment, always use
2709 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2710
3dd9bb46
AB
27112019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2712
2713 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2714 inner scope, add check that the objfile has psymtabs before
2715 checking psymtabs_addrmap.
2716 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2717
4993045d
PW
27182019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2719
2720 * NEWS: Announce that Ada task names are now shown at more places,
2721 and between quotes (except in info task output).
2722 * gdb/ada-tasks.c (task_to_str): New function.
2723 (display_current_task_id): Call task_to_str.
2724 (task_command_1): Likewise.
2725 (print_ada_task_info): In non-mi mode, Properly align headers and data
2726 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2727
7a289707
RO
27282019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2729
2730 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2731 prstatus.pr_lwp.pr_info instead of making it up.
2732
f2aec7f6
CB
27332019-09-11 Christian Biesinger <cbiesinger@google.com>
2734
2735 * auto-load.c (auto_load_expand_dir_vars): Update.
2736 * defs.h (gdb_datadir): Change to std::string.
2737 (python_libdir): Likewise.
2738 (relocate_gdb_directory): Change return type to std::string.
2739 * guile/guile.c (gdbscm_data_directory): Update.
2740 (initialize_scheme_side): Update.
2741 * jit.c (jit_reader_dir): Change to std::string.
2742 (jit_reader_load_command): Update.
2743 * main.c (gdb_datadir): Change to std::string.
2744 (python_libdir): Likewise.
2745 (set_gdb_data_directory): Update.
2746 (relocate_path): Change to return std::string.
2747 (relocate_gdb_directory): Change to return std::string.
2748 (relocate_gdbinit_path_maybe_in_datadir): Update.
2749 (captured_main_1): Update.
2750 * python/python.c (do_start_initialization): Update.
2751 * top.c (show_gdb_datadir): Update.
2752 * xml-syscall.c (xml_init_syscalls_info): Update.
2753 (init_syscalls_info): Update.
2754
9224a013
CB
27552019-09-11 Christian Biesinger <cbiesinger@google.com>
2756
2757 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2758 out of get_init_files.
2759 (get_init_files): Update.
2760
f48cd836
CB
27612019-09-11 Christian Biesinger <cbiesinger@google.com>
2762
2763 * main.c (get_init_files): Change to use std::string.
2764 (captured_main_1): Update.
2765 (print_gdb_help): Update.
2766
9cab7ecd
AT
27672019-09-11 Ali Tamur <tamur@google.com>
2768
2769 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2770 implementation.
2771
67547d89
CB
27722019-09-11 Christian Biesinger <cbiesinger@google.com>
2773
2774 * dbxread.c (read_dbx_symtab): Update.
2775 * dwarf2read.c (load_partial_dies): Update.
2776 * mdebugread.c (parse_partial_symbols): Update.
2777 (handle_psymbol_enumerators): Update.
2778 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2779 * psymtab.c (add_psymbol_to_bcache): Likewise.
2780 (add_psymbol_to_list): Likewise.
2781 * symtab.c (symbol_set_names): Likewise.
2782 * symtab.h (symbol_set_names): Likewise.
2783 * xcoffread.c (scan_xcoff_symtab): Update.
2784
64b2d4a0
TT
27852019-09-11 Tom Tromey <tom@tromey.com>
2786
2787 * symfile-mem.c (symbol_file_add_from_memory): Use
2788 bfd_set_filename.
2789 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2790 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2791
3b00ef10
TT
27922019-09-10 Tom Tromey <tromey@adacore.com>
2793
2794 * dwarf-index-write.c (write_psymbols): Extend error message.
2795 (debug_names::insert): Add Ada code.
2796 (debug_names::write_psymbols): Remove Ada check.
2797 (debug_names) <m_string_obstack>: New member.
2798 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2799 (gdb_index_symbol_name_matcher::matches): Remove.
2800 (mapped_index_base::find_name_components_bounds): Add "lang"
2801 parameter.
2802 (mapped_index_base::build_name_components): Also split names
2803 according to Ada syntax.
2804 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2805 type of "match_callback".
2806 (check_match, check_find_bounds_finds)
2807 (dw2_expand_symtabs_matching): Update.
2808 (dw2_debug_names_iterator): Add new constructor.
2809 (dw2_debug_names_map_matching_symbols): New function.
2810 (dw2_debug_names_expand_symtabs_matching): Update.
2811 (dwarf2_debug_names_functions): Use
2812 dw2_debug_names_map_matching_symbols.
2813
aa391654
TT
28142019-09-10 Tom Tromey <tromey@adacore.com>
2815
2816 * dwarf2read.c (dw2_get_file_names_reader): Add the
2817 CU's file name to the results.
2818
b054970d
TT
28192019-09-10 Tom Tromey <tromey@adacore.com>
2820
2821 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2822 map_matching_symbols. Update.
2823 * dwarf2read.c (dw2_map_matching_symbols): Update.
2824 * psymtab.c (match_partial_symbol): Change type; update.
2825 (psym_map_matching_symbols): Likewise.
2826 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2827 type; update.
2828 * symfile.h (struct quick_symbol_functions)
2829 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2830 Remove "match".
2831
6a3dbf1b
TT
28322019-09-10 Tom Tromey <tromey@adacore.com>
2833
2834 * psymtab.c (map_block): Remove.
2835 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2836 * symtab.c (iterate_over_symbols_terminated): New function.
2837 * symtab.c (iterate_over_symbols_terminated): Declare.
2838
6969f124
TT
28392019-09-10 Tom Tromey <tromey@adacore.com>
2840
2841 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2842 * language.h (struct language_defn) <la_iterate_over_symbols>:
2843 Return bool.
2844 * symtab.c (iterate_over_symbols): Return bool.
2845 * symtab.h (iterate_over_symbols): Return bool.
2846
199b4314
TT
28472019-09-10 Tom Tromey <tromey@adacore.com>
2848
2849 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2850 (add_nonlocal_symbols): Update.
2851 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2852 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2853 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2854 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2855 Change type of "callback". Remove "data".
2856
a084a2a6
AT
2857
28582019-09-09 Ali Tamur <tamur@google.com>
2859
2860 * dwarf2read.c (comp_unit_head): Update comment.
2861 (dwarf2_dwo_name): New function declaration.
2862 (dwarf_unit_type_name): New function declaration.
2863 (read_comp_unit_head): Add support for new compilation units,
2864 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2865 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2866 (currently named as "signature") in their header. Also clarify error
2867 messages.
2868 (lookup_dwo_id): New function. Returns the dwo id of the given
2869 compile unit.
2870 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2871 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2872 functions.
2873 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2874 (dwarf2_dwo_name): Get the dwo name if present.
2875 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2876 purposes.
2877
25a2915e
TT
28782019-09-09 Tom Tromey <tom@tromey.com>
2879
2880 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2881
e4df0874
PW
28822019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2883
2884 * python/python.c (do_start_initialization): Make progname_copy static,
2885 to avoid a leak report.
2886
8634b462
TT
28872019-09-08 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2890
c7f839cb
SM
28912019-09-07 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2894 Change type to gdb::optional<block_enum>.
2895 (dw2_symtab_iter_init): Change block_index parameter type
2896 to gdb::optional<block_enum>.
2897 (dw2_lookup_symbol): Change block_index parameter
2898 type to block_enum.c
2899 (dw2_debug_names_lookup_symbol): Likewise.
2900 * psymtab.c (psym_lookup_symbol): Likewise.
2901 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2902 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2903 Likewise.
2904
ead0e69a
CB
29052019-09-06 Christian Biesinger <cbiesinger@google.com>
2906
2907 * defs.h (relocate_gdb_directory): Change int to bool in
2908 signature and rename flag to relocatable.
2909 * main.c (relocate_path): Likewise.
2910 (relocate_gdb_directory): Likewise.
2911
b16c44de
AM
29122019-09-06 Alan Modra <amodra@gmail.com>
2913
2914 * coffread.c (coff_symfile_read): Constify filename variable.
2915 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2916 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2917 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2918 * solib.c (reload_shared_libraries_1): Likewise.
2919 * symfile.c (reread_symbols): Likewise.
2920 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2921 * solib-darwin.c (darwin_bfd_open): Likewise.
2922 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2923
06ff036e
AB
29242019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2925
2926 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2927 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2928
4e962e74
TT
29292019-09-03 Tom Tromey <tromey@adacore.com>
2930
2931 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2932 types.
2933 (has_negatives): Unbias a range type bound.
2934 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2935 * gdbtypes.c (operator==): Handle new field.
2936 (create_range_type): Add "bias" parameter.
2937 (create_static_range_type, resolve_dynamic_range): Update.
2938 * gdbtypes.h (struct range_bounds) <bias>: New member.
2939 (create_range_type): Add bias parameter.
2940 * printcmd.c (print_scalar_formatted): Unbias range types.
2941 * value.c (unpack_long): Unbias range types.
2942 (pack_long): Bias range types.
2943
d90b8f26
AH
29442019-09-02 Alan Hayward <alan.hayward@arm.com>
2945
2946 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2947 probe arguments.
2948
fe01123e
AH
29492019-09-02 Alan Hayward <alan.hayward@arm.com>
2950
2951 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2952 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2953 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2954 (compile_probe_arg): Likewise.
2955 * probe.h (get_argument_count): Likewise.
2956 * solib-svr4.c (solib_event_probe_action): Likewise.
2957 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2958
e661ef01
AH
29592019-09-02 Alan Hayward <alan.hayward@arm.com>
2960
2961 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2962 code to here...
2963 (svr4_create_solib_event_breakpoints): ...from here.
2964
47a536d9
SDJ
29652019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2966
2967 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2968 suffix from warning message.
2969
d6a00eba
TT
29702019-08-30 Tom Tromey <tom@tromey.com>
2971
2972 * tui/tui-winsource.h (struct tui_source_window_base)
2973 <refresh_all>: Don't declare.
2974 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2975 Remove.
2976 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2977 tui_show_locator_content.
2978 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2979 declare.
2980 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2981 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2982 declare.
2983
55b2657b
TT
29842019-08-30 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2987
12a8555a
TT
29882019-08-30 Tom Tromey <tom@tromey.com>
2989
2990 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2991 Remove unnecessary forward declarations.
2992
900ac242
TT
29932019-08-30 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2996 rerender.
2997 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2998 tui_show_locator_content.
2999
99ab33fb
TT
30002019-08-30 Tom Tromey <tom@tromey.com>
3001
3002 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3003 (tui_locator_window::rerender): Rewrite using body of previous
3004 tui_show_locator_content.
3005
e594a5d1
TT
30062019-08-30 Tom Tromey <tom@tromey.com>
3007
3008 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3009 set_locator_fullname>: New methods.
3010 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3011 Rename from tui_set_locator_fullname.
3012 (tui_locator_window::set_locator_info): Rename from
3013 tui_set_locator_info. Return bool.
3014 (tui_update_locator_fullname, tui_show_frame_info): Update.
3015
715bb467
TT
30162019-08-30 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3019
772f3f03
TT
30202019-08-30 Tom Tromey <tom@tromey.com>
3021
3022 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3023 call touchwin.
3024
108e13ab
TT
30252019-08-30 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui-wingeneral.c (box_win): Assume win_info and
3028 win_info->handle cannot be NULL.
3029
cdaa6eb4
TT
30302019-08-30 Tom Tromey <tom@tromey.com>
3031
3032 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3033 refresh_window>: Declare.
3034 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3035 resize.
3036 (tui_data_item_window::rerender): Rename from
3037 tui_display_register.
3038 (tui_data_item_window::refresh_window): New method.
3039 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3040 no-op.
3041
89df7f90
TT
30422019-08-30 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3045 regs_column_count, current_group>: Move later. Now private.
3046 <get_current_group>: New method.
3047 * tui/tui-regs.c (tui_reg_command): Update.
3048 * tui/tui-layout.c (tui_set_layout): Update.
3049
1bf2866a
TT
30502019-08-30 Tom Tromey <tom@tromey.com>
3051
3052 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3053 (tui_data_window::rerender): Don't call
3054 check_and_display_highlight_if_needed.
3055 (tui_data_window::refresh_all): Remove call to
3056 erase_data_content.
3057
0670413d
TT
30582019-08-30 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3061 (tui_data_window::display_registers_from)
3062 (tui_data_window::display_reg_element_at_line)
3063 (tui_data_window::display_registers_from_line): Remove checks of
3064 "empty".
3065
18bb55c7
TT
30662019-08-30 Tom Tromey <tom@tromey.com>
3067
3068 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3069 Don't declare.
3070 * tui/tui-regs.c (tui_data_window::show_registers): Call
3071 rerender.
3072 (tui_data_window::rerender): Rename from display_all_data.
3073 (tui_data_window::rerender): Remove old implementation.
3074
1f6d2f10
TT
30752019-08-30 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3078 text.
3079 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3080
16d01f9c
BW
30812019-08-29 Bernhard Wodok <barto@gmx.net>
3082 Sergio Durigan Junior <sergiodj@redhat.com>
3083
3084 PR win32/24284
3085 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3086
d8f27c60
AB
30872019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3090 when searching for types.
3091
1f20c35e
AB
30922019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3093
3094 * f-lang.c (f_language_defn): Use f_print_typedef.
3095 * f-lang.h (f_print_typedef): Declare.
3096 * f-typeprint.c (f_print_typedef): Define.
3097
550105b7
CB
30982019-08-27 Christian Biesinger <cbiesinger@google.com>
3099
3100 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3101
4acfdd20
AB
31022019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * cli/cli-utils.c (info_print_options_defs): Delete.
3105 (make_info_print_options_def_group): Delete.
3106 (extract_info_print_options): Delete.
3107 (info_print_command_completer): Delete.
3108 (info_print_args_help): Add extra parameter, and optionally
3109 include text about -n flag.
3110 * cli/cli-utils.h (struct info_print_options): Delete.
3111 (extract_info_print_options): Delete declaration.
3112 (info_print_command_completer): Delete declaration.
3113 (info_print_args_help): Add extra parameter, extend header
3114 comment.
3115 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3116 search_symbols.
3117 * stack.c (struct info_print_options): New type.
3118 (info_print_options_defs): New file scoped variable.
3119 (make_info_print_options_def_group): New static function.
3120 (info_print_command_completer): New static function.
3121 (info_locals_command): Update to use new local functions.
3122 (info_args_command): Likewise.
3123 (_initialize_stack): Add extra parameter to calls to
3124 info_print_args_help.
3125 * symtab.c (search_symbols): Add extra parameter, use this to
3126 possibly excluse non-debug symbols.
3127 (symtab_symbol_info): Add extra parameter, which is passed on to
3128 search_symbols.
3129 (struct info_print_options): New type.
3130 (info_print_options_defs): New file scoped variable.
3131 (make_info_print_options_def_group): New static function.
3132 (info_print_command_completer): New static function.
3133 (info_variables_command): Update to use local functions, and pass
3134 extra parameter through to symtab_symbol_info.
3135 (info_functions_command): Likewise.
3136 (info_types_command): Pass additional argument through to
3137 symtab_symbol_info.
3138 (rbreak_command): Pass extra argument to search_symbols.
3139 (_initialize_symtab): Add extra arguments for calls to
3140 info_print_args_help, and update help text for 'info variables',
3141 'whereis', and 'info functions' commands.
3142 * symtab.h (search_symbols): Add extra argument to declaration.
3143 * NEWS: Mention new flags.
3144
9aa55206
CB
31452019-08-26 Christian Biesinger <cbiesinger@google.com>
3146
3147 * symtab.c (lookup_static_symbol): Call the new function (and move
3148 it down to be next to lookup_global_symbol).
3149 (struct global_sym_lookup_data): Add block_enum member and rename to...
3150 (struct global_or_static_sym_lookup_data): ...this.
3151 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3152 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3153 (lookup_symbol_global_or_static_iterator_cb): ...this.
3154 (lookup_global_or_static_symbol): New function.
3155 (lookup_global_symbol): Call new function.
3156
5c31b358
TV
31572019-08-26 Tom de Vries <tdevries@suse.de>
3158
3159 PR c++/24852
3160 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3161 when pc_probe.prob == NULL.
3162
23c13d42
SM
31632019-08-25 Simon Marchi <simon.marchi@efficios.com>
3164
3165 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3166 variable symbol_linkage to symbol_linkage_.
3167
beadd3e8
SM
31682019-08-25 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3171 represent whether the symbol is static, dynamic, or we don't
3172 know.
3173
e3ec872f
YS
31742019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3175
3176 * gdb/rx-tdep.c (rx_register_names): New.
3177 (rx_register_name): Delete.
3178 (rx_psw_type): Delete.
3179 (rx_fpsw_type): Delete.
3180 (rx_register_type): Delete.
3181 (rx_gdbarch_init): Convert target-descriptions.
3182 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3183 * gdb/features/Makefile: Add rx.xml.
3184 * gdb/features/rx.xml: New.
3185 * gdb/features/rx.c: Generated.
3186 * gdb/NEWS: Mention target description support.
3187
d0509ba4
CB
31882019-08-22 Christian Biesinger <cbiesinger@google.com>
3189
3190 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3191 *slot_ptr.
3192
2d41fa11
SDJ
31932019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3194
3195 * configure.ac: Don't check for 'dlfcn.h' (moved to
3196 gdbsupport/common.m4).
3197 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3198 'gdbsupport/'.
3199 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3200 * compile/compile-c-support.c: Include
3201 'gdbsupport/gdb-dlfcn.h'.
3202 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3203 * gdb-dlfcn.c: Move to...
3204 * gdbsupport/gdb-dlfcn.c: ... here.
3205 * gdb-dlfcn.h: Move to...
3206 * gdbsupport/gdb-dlfcn.h: ... here.
3207
de8af808
SL
32082019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3209
3210 * nios2-tdep.c (struct reg_value): Improve comments. Make
3211 the offset field signed.
3212
27204489
CB
32132019-08-22 Christian Biesinger <cbiesinger@google.com>
3214
3215 * python/lib/gdb/__init__.py (_execute_file): New function.
3216 * python/python.c (python_run_simple_file): Call gdb._execute_file
3217 on Windows.
3218
43771869
AB
32192019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3222 all uses as this was never set to anything but a zero value.
3223
26c957f1
PA
32242019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3225
3226 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3227
c07aae6e
CB
32282019-08-21 Christian Biesinger <cbiesinger@google.com>
3229
3230 * tui/tui-data.h (tui_gen_win_info): Add an =default
3231 move constructor, required by some GCC versions.
3232
3960cb7a
JF
32332019-08-21 Jinke Fan <fanjinke51@yeah.net>
3234
3235 * go32-nat.c (go32_sysinfo): Add hygon_p.
3236
04c72a68
TT
32372019-08-20 Tom Tromey <tom@tromey.com>
3238
3239 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3240 line_from_reg_element_no, first_reg_element_no_inline,
3241 display_all_data, delete_data_content_windows,
3242 erase_data_content>: Now private.
3243
072272ce
TT
32442019-08-20 Tom Tromey <tom@tromey.com>
3245
3246 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3247 (tui_unhighlight_win, tui_highlight_win)
3248 (tui_win_info::make_window): Update.
3249 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3250
973961bd
TT
32512019-08-20 Tom Tromey <tom@tromey.com>
3252
3253 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3254 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3255 (MAX_PID_WIDTH): Move to tui-stack.c.
3256 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3257 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3258 (MAX_PID_WIDTH): Move from tui-data.h.
3259
ab0e1f1a
TT
32602019-08-20 Tom Tromey <tom@tromey.com>
3261
3262 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3263 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3264 (box_win): Update.
3265 (tui_gen_win_info::make_window): Rename from tui_make_window.
3266 (tui_win_info::make_window): New method.
3267 (tui_gen_win_info::make_visible): Update.
3268 * tui/tui-source.c (tui_source_window::set_contents): Update.
3269 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3270 (tui_data_window::display_registers_from): Update.
3271 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3272 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3273 Declare.
3274 <can_box>: Remove.
3275 <title>: Remove.
3276 (struct tui_win_info) <make_window>: Declare.
3277 <can_box>: Now virtual.
3278 <title>: New member.
3279 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3280 * tui/tui-command.c (tui_cmd_window::resize): Update.
3281
100c2bf3
TT
32822019-08-20 Tom Tromey <tom@tromey.com>
3283
3284 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3285 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3286 (tui_data_window::check_register_values): Update.
3287
fa4dc567
TT
32882019-08-20 Tom Tromey <tom@tromey.com>
3289
3290 * tui/tui-regs.h (struct tui_data_window): Use
3291 DISABLE_COPY_AND_ASSIGN.
3292 <regs_content>: Change type, removing unique_ptr.
3293 <tui_data_window>: Add move constructor.
3294 * tui/tui-regs.c (tui_data_window::show_registers)
3295 (tui_data_window::show_register_group)
3296 (tui_data_window::display_registers_from)
3297 (tui_data_window::display_registers_from)
3298 (tui_data_window::first_data_item_displayed)
3299 (tui_data_window::delete_data_content_windows)
3300 (tui_data_window::rerender, tui_data_window::refresh_window)
3301 (tui_data_window::check_register_values): Update.
3302
ca02d7c8
TT
33032019-08-20 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3306 show_register_group>: Declare.
3307 (tui_show_register_group): Don't declare.
3308 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3309 tui_show_registers.
3310 (tui_data_window::show_register_group): Rename from
3311 tui_show_register_group.
3312 (tui_data_window::check_register_values, tui_reg_command):
3313 Update.
3314 * tui/tui-layout.c (tui_set_layout): Update.
3315
63356bfd
TT
33162019-08-20 Tom Tromey <tom@tromey.com>
3317
3318 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3319 Declare.
3320 (tui_check_register_values): Don't declare.
3321 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3322 from tui_check_register_values.
3323 * tui/tui-hooks.c (tui_register_changed): Update.
3324
42cc14a7
TT
33252019-08-20 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui-regs.c (tui_reg_layout): Move later.
3328 (tui_show_registers): Don't enable TUI mode or change layout.
3329
b9ad3686
TT
33302019-08-20 Tom Tromey <tom@tromey.com>
3331
3332 * tui/tui-regs.h (struct tui_data_item_window)
3333 <~tui_data_item_window>: Remove.
3334 <content>: Now a unique_xmalloc_ptr.
3335 * tui/tui-regs.c (tui_register_format): Return a
3336 unique_xmalloc_ptr.
3337 (tui_get_register): Update.
3338 (~tui_data_item_window): Remove.
3339 (tui_data_window::display_registers_from, tui_display_register):
3340 Update.
3341 * tui/tui-io.h (tui_expand_tabs): Update.
3342 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3343 Remove "col" parameter.
3344
8e114aab
TT
33452019-08-20 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3348 field.
3349 * tui/tui-regs.c (~tui_data_item_window): Update.
3350
1a4f81dd
TT
33512019-08-20 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3354 earlier.
3355
0f8d8876
TT
33562019-08-20 Tom Tromey <tom@tromey.com>
3357
3358 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3359
605dc2c2
TT
33602019-08-20 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-source.h (struct tui_source_window): Update.
3363 * tui/tui-regs.c (tui_show_registers): Update.
3364 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3365 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3366 (NO_REGS_STRING): Remove defines.
3367
aedbe3bb
CM
33682019-08-20 Conrad Meyer <cem@FreeBSD.org>
3369
3370 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3371 unnecessary thread walk if remote doesn't support the packet.
3372
7ce8f214
TT
33732019-08-19 Tom Tromey <tromey@adacore.com>
3374
3375 * python/py-value.c (value_has_field): Fix indentation.
3376
f21c2bd7
TT
33772019-08-19 Tom Tromey <tromey@adacore.com>
3378
3379 * printcmd.c (do_one_display, info_display_command): Update.
3380 * block.h (contained_in): Return bool. Add allow_nested
3381 parameter.
3382 * block.c (contained_in): Return bool. Add allow_nested
3383 parameter.
3384
d806ea2d
TT
33852019-08-19 Tom Tromey <tom@tromey.com>
3386
3387 * configure: Rebuild.
3388 * configure.ac: Disallow the combination of -static-libstdc++ and
3389 source highlight.
3390 * source-cache.c (get_language_name): Handle rust.
3391 (source_cache::get_source_lines): Ignore highlighting exceptions.
3392
398fdd60
TT
33932019-08-16 Tom Tromey <tom@tromey.com>
3394
3395 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3396 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3397 (struct tui_source_window_base) <make_visible, refresh_window,
3398 resize>: Remove methods.
3399 <execution_info>: Remove field.
3400 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3401 (tui_show_source_line, tui_source_window_base)
3402 (~tui_source_window_base): Update.
3403 (tui_source_window_base::resize)
3404 (tui_source_window_base::make_visible)
3405 (tui_source_window_base::refresh_window): Remove.
3406 (tui_source_window_base::update_exec_info): Update.
3407 * tui/tui-source.c (tui_source_window::set_contents): Update.
3408 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3409
e699d331
TT
34102019-08-16 Tom Tromey <tom@tromey.com>
3411
3412 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3413 deprecated_query_hook.
3414
bb01dbfc
TT
34152019-08-16 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3418 (tui_update_source_windows_with_line): Update.
3419 * tui/tui-source.h (struct tui_source_window)
3420 <show_symtab_source>: Declare.
3421 (tui_show_symtab_source): Don't declare.
3422 * tui/tui-source.c (tui_show_symtab_source): Rename from
3423 tui_show_symtab_source.
3424
81c82c4b
TT
34252019-08-16 Tom Tromey <tom@tromey.com>
3426
3427 * tui/tui-winsource.h (struct tui_source_window_base)
3428 <set_contents>: Declare.
3429 * tui/tui-winsource.c
3430 (tui_source_window_base::update_source_window_as_is): Update.
3431 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3432 Declare.
3433 (tui_set_source_content): Don't declare.
3434 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3435 tui_set_source_content.
3436 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3437 Declare.
3438 (tui_set_disassem_content): Don't declare.
3439 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3440 tui_set_disassem_content.
3441
2ddaf614
TT
34422019-08-16 Tom Tromey <tom@tromey.com>
3443
3444 * tui/tui-winsource.h (struct tui_source_window_base)
3445 <update_breakpoint_info>: Declare.
3446 (tui_update_breakpoint_info): Don't declare.
3447 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3448 (tui_update_all_breakpoint_info): Update.
3449 (tui_source_window_base::update_breakpoint_info): Rename from
3450 tui_update_breakpoint_info.
3451 (tui_source_window_base::update_exec_info): Update.
3452
017f9828
TT
34532019-08-16 Tom Tromey <tom@tromey.com>
3454
3455 * tui/tui-winsource.h (struct tui_source_window_base)
3456 <update_source_window>: Declare.
3457 (tui_update_source_window): Don't declare.
3458 * tui/tui-winsource.c
3459 (tui_source_window_base::update_source_window): Rename from
3460 tui_update_source_window.
3461 (tui_source_window_base::rerender): Update.
3462 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3463 * tui/tui-disasm.c (tui_show_disassem)
3464 (tui_show_disassem_and_update_source)
3465 (tui_disasm_window::maybe_update): Update.
3466
ed8358e9
TT
34672019-08-16 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-winsource.h (struct tui_source_window_base)
3470 <update_source_window_as_is>: Declare.
3471 (tui_update_source_window_as_is): Don't declare.
3472 * tui/tui-winsource.c (tui_update_source_window): Update
3473 (tui_source_window_base::update_source_window_as_is): Rename from
3474 tui_update_source_window_as_is.
3475 (tui_source_window_base::refill): Update.
3476 * tui/tui-source.c (tui_show_symtab_source): Update.
3477 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3478 Update.
3479
20149b6b
TT
34802019-08-16 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-winsource.h (tui_update_source_window)
3483 (tui_update_source_window_as_is): Remove "noerror" parameter.
3484 * tui/tui-winsource.c (tui_update_source_window)
3485 (tui_update_source_window_as_is): Remove "noerror" parameter.
3486 (tui_update_source_windows_with_addr)
3487 (tui_update_source_windows_with_line)
3488 (tui_source_window_base::rerender)
3489 (tui_source_window_base::refill): Update.
3490 * tui/tui-source.h (tui_set_source_content)
3491 (tui_show_symtab_source): Remove "noerror" parameter.
3492 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3493 parameter.
3494 (tui_show_symtab_source): Likewise.
3495 (tui_source_window::maybe_update): Update.
3496 * tui/tui-disasm.c (tui_show_disassem)
3497 (tui_show_disassem_and_update_source)
3498 (tui_disasm_window::do_scroll_vertical)
3499 (tui_disasm_window::maybe_update): Update.
3500
2d83e710
TT
35012019-08-16 Tom Tromey <tom@tromey.com>
3502
3503 * tui/tui.c (tui_is_window_visible): Update.
3504 * tui/tui-wingeneral.c (tui_make_window)
3505 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3506 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3507 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3508 (tui_set_win_height_command, parse_scrolling_args): Update.
3509 * tui/tui-source.c (tui_source_window::style_changed): Update.
3510 * tui/tui-regs.c (tui_show_registers)
3511 (tui_data_window::first_data_item_displayed)
3512 (tui_data_window::delete_data_content_windows)
3513 (tui_check_register_values, tui_reg_command): Update.
3514 * tui/tui-disasm.c (tui_show_disassem): Update.
3515 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3516 method.
3517 <is_visible>: Remove field.
3518 * tui/tui-data.c (tui_next_win, tui_prev_win)
3519 (tui_delete_invisible_windows): Update.
3520
d4ab829a
TT
35212019-08-16 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-winsource.h (struct tui_source_window_base)
3524 <m_has_locator>: Remove.
3525 * tui/tui-layout.c (show_source_disasm_command, show_data)
3526 (show_source_or_disasm_and_command): Update.
3527
aa7ca1bb
AH
35282019-08-16 Alan Hayward <alan.hayward@arm.com>
3529
3530 * NEWS (Other MI changes): New subsection.
3531 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3532 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3533 * arch-utils.c (default_get_pc_address_flags): New function.
3534 * arch-utils.h (default_get_pc_address_flags): New declaration.
3535 * gdbarch.sh: Add get_pc_address_flags.
3536 * gdbarch.c: Regenerate.
3537 * gdbarch.h: Likewise.
3538 * stack.c (print_pc): New function.
3539 (print_frame_info) (print_frame): Call print_pc.
3540
6eac171f
TV
35412019-08-16 Tom de Vries <tdevries@suse.de>
3542
3543 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3544 print_objfile_section_info.
3545
3df505f6
TT
35462019-08-15 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3549 calling update_cmdwin_start_line.
3550 * tui/tui-winsource.h (struct tui_source_window_base)
3551 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3552 <rerender>: Declare.
3553 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3554 Call rerender.
3555 (tui_source_window_base::set_new_height): Remove.
3556 (tui_source_window_base::rerender): Rename from
3557 do_make_visible_with_new_height.
3558 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3559 resize method.
3560 (tui_win_info::make_invisible_and_set_new_height)
3561 (tui_win_info::make_visible_with_new_height): Remove.
3562 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3563 Declare.
3564 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3565 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3566 do_make_visible_with_new_height>: Don't declare.
3567 <rerender>: Declare.
3568 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3569 set_new_height.
3570 (tui_data_window::do_make_visible_with_new_height): Remove.
3571 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3572 call tui_show_locator_content.
3573 (tui_gen_win_info::resize): Call rerender.
3574 (show_source_or_disasm_and_command): Don't call
3575 tui_show_locator_content.
3576 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3577 method.
3578 (struct tui_win_info) <rerender>: Declare.
3579 <set_new_height, make_invisible_and_set_new_height,
3580 make_visible_with_new_height>: Don't declare.
3581 * tui/tui-data.c (tui_win_list::rerender): New method.
3582 * tui/tui-command.h (struct tui_cmd_window)
3583 <do_make_visible_with_new_height>: Don't declare.
3584 * tui/tui-command.c
3585 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3586
272560b5
TT
35872019-08-15 Tom Tromey <tromey@adacore.com>
3588
3589 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3590 * ada-lang.c (ada_enum_name): Likewise.
3591
08235187
CB
35922019-08-15 Christian Biesinger <cbiesinger@google.com>
3593
3594 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3595 leading underscore.
3596 (GdbOutputErrorFile): Likewise.
3597 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3598 accordingly.
3599 (execute_unwinders): Rename to have a leading underscore.
3600 (auto_load_packages): Likewise.
3601 (global scope): Adjust call to auto_load_packages accordingly.
3602 (GdbSetPythonDirectory): Likewise.
3603 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3604 instead of execute_unwinders.
3605
db502012
TT
36062019-08-15 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3609 (show_data): Don't change window visibility.
3610 (tui_gen_win_info::resize): Remove special case for command
3611 window. Use wresize, when available.
3612 (show_source_or_disasm_and_command): Don't change window
3613 visibility.
3614 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3615 <make_visible>: New method.
3616 * tui/tui-command.c (tui_cmd_window::resize): New method.
3617
3891b65e
TT
36182019-08-15 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3621 (struct tui_source_windows): New.
3622 * tui/tui-winsource.c (tui_display_main): Update.
3623 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3624 (new_height_ok, parse_scrolling_args): Update.
3625 * tui/tui-layout.c (show_layout, show_data): Update.
3626 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3627 (tui_add_to_source_windows): Don't declare.
3628 * tui/tui-data.c (source_windows, tui_source_windows)
3629 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3630
ee556432
TT
36312019-08-15 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3634 Rename from reset.
3635 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3636 * tui/tui-layout.c (show_source_disasm_command, show_data):
3637 Update.
3638 (tui_gen_win_info::resize): Rename.
3639 (show_source_or_disasm_and_command): Update.
3640 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3641 reset.
3642
46f438e3
TT
36432019-08-15 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3646 * tui/tui-interp.c (tui_interp::init): Don't call
3647 tui_initialize_static_data.
3648 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3649
f4ce562c
TT
36502019-08-15 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3653 examine tui_win_list.
3654
c398c3d0
TT
36552019-08-15 Tom Tromey <tom@tromey.com>
3656
3657 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3658 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3659 tui_clear_source_content.
3660 (tui_clear_source_content): Remove.
3661 (tui_source_window_base::do_erase_source_content): Hoist call to
3662 content.clear().
3663 * tui/tui-stack.c (tui_show_frame_info): Don't call
3664 tui_clear_source_content.
3665
e25d2004
TT
36662019-08-15 Tom Tromey <tom@tromey.com>
3667
3668 * tui/tui-winsource.h (struct tui_source_window_base)
3669 <do_erase_source_content>: New method.
3670 <erase_source_content>: New method.
3671 (tui_erase_source_content): Don't declare.
3672 * tui/tui-winsource.c (tui_clear_source_content): Update.
3673 (tui_source_window_base::do_erase_source_content): Rename from
3674 tui_erase_source_content.
3675 (tui_source_window_base::show_source_content): Update.
3676 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3677 * tui/tui-source.h (struct tui_source_window)
3678 <erase_source_content>: New method.
3679 * tui/tui-disasm.h (struct tui_disasm_window)
3680 <erase_source_content>: New method.
3681
002f15c2
TT
36822019-08-15 Tom Tromey <tom@tromey.com>
3683
3684 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3685 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3686 constructor.
3687 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3688 * tui/tui-source.c (tui_set_source_content): Update.
3689 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3690
c9033fe8
TT
36912019-08-15 Tom Tromey <tom@tromey.com>
3692
3693 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3694 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3695 tui-source.c.
3696 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3697 Declare.
3698 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3699 method.
3700 (tui_source_window::maybe_update): Update.
3701
088f37dd
TT
37022019-08-15 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3705 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3706 tui-disasm.c.
3707 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3708 Declare.
3709 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3710 method.
3711 (tui_disasm_window::maybe_update): Update.
3712
a54700c6
TT
37132019-08-15 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui-winsource.h (struct tui_source_window_base)
3716 <maybe_update>: Declare.
3717 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3718 method.
3719 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3720 Declare.
3721 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3722 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3723 Declare.
3724 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3725
e2a678a5
TT
37262019-08-15 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3729
f2dda477
TT
37302019-08-15 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-wingeneral.c: Include tui-stack.h.
3733 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3734 (struct tui_locator_window): Move from tui-data.h.
3735 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3736 (tui_initialize_static_data): Move from tui-data.c.
3737 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3738 (struct tui_locator_window): Move to tui-stack.c.
3739 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3740 (tui_initialize_static_data): Move to tui-stack.c.
3741
ed4a1084
TT
37422019-08-15 Tom Tromey <tom@tromey.com>
3743
3744 * tui/tui-layout.c (show_source_disasm_command)
3745 (show_source_or_disasm_and_command): Use make_visible method, not
3746 tui_make_window.
3747 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3748 Remove.
3749
65962b20
TT
37502019-08-15 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-wingeneral.h (tui_make_window): Update.
3753 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3754 parameter.
3755 (tui_gen_win_info::make_visible): Update.
3756 * tui/tui-regs.c (tui_data_window::display_registers_from):
3757 Update.
3758 * tui/tui-layout.c (show_source_disasm_command)
3759 (show_source_or_disasm_and_command): Update.
3760 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3761 (enum tui_box): Remove.
3762 (struct tui_win_info) <can_box>: New method.
3763 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3764 method.
3765
2208ee91
TV
37662019-08-15 Tom de Vries <tdevries@suse.de>
3767
3768 * linux-nat-trad.c: Include gdbarch.h.
3769
75faf5c4
AH
37702019-08-14 Alan Hayward <alan.hayward@arm.com>
3771
3772 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3773 register sizes.
3774
b1c896b3
TT
37752019-08-14 Tom Tromey <tromey@adacore.com>
3776
3777 * darwin-nat.c: Include gdbarch.h.
3778 * darwin-nat-info.c: Include gdbarch.h.
3779
6405cd73
TT
37802019-08-13 Tom Tromey <tom@tromey.com>
3781
3782 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3783 Remove.
3784 * tui/tui-data.c (tui_initialize_static_data): Update.
3785
5216580d
TT
37862019-08-13 Tom Tromey <tom@tromey.com>
3787
3788 * tui/tui-winsource.h (struct tui_exec_info_window)
3789 <~tui_exec_info_window, maybe_allocate_content, get_content,
3790 m_content>: Remove.
3791 (struct tui_source_window_base) <set_exec_info_content,
3792 show_exec_info_content>: Don't declare.
3793 * tui/tui-winsource.c
3794 (tui_exec_info_window::maybe_allocate_content): Remove.
3795 (tui_source_window_base::update_exec_info): Rename from
3796 set_exec_info_content.
3797 (tui_source_window_base::show_exec_info_content)
3798 (tui_source_window_base::update_exec_info): Remove.
3799
93858ad3
TT
38002019-08-13 Tom Tromey <tom@tromey.com>
3801
3802 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3803 declare.
3804 * tui/tui-winsource.c (tui_update_source_window_as_is)
3805 (tui_update_source_windows_with_addr, tui_erase_source_content):
3806 Update.
3807 (tui_clear_exec_info_content): Remove.
3808
e321e7ce
TT
38092019-08-13 Tom Tromey <tom@tromey.com>
3810
3811 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3812 declare.
3813 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3814 call tui_erase_exec_info_content.
3815 (tui_clear_exec_info_content): Rename from
3816 tui_erase_exec_info_content.
3817 (tui_clear_exec_info_content): Delete.
3818
8270ac62
TT
38192019-08-13 Tom Tromey <tom@tromey.com>
3820
3821 * tui/tui-winsource.h (struct tui_source_window_base)
3822 <show_exec_info_content>: Declare.
3823 (tui_show_exec_info_content): Don't declare.
3824 * tui/tui-winsource.c
3825 (tui_source_window_base::show_exec_info_content): Rename from
3826 tui_show_exec_info_content.
3827 (tui_source_window_base::update_exec_info): Update.
3828
7b56485d
TT
38292019-08-13 Tom Tromey <tom@tromey.com>
3830
3831 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3832 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3833 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3834 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3835 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3836 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3837 ... here.
3838
7ba913dc
TT
38392019-08-13 Tom Tromey <tom@tromey.com>
3840
3841 * tui/tui-winsource.h (struct tui_source_window_base)
3842 <update_exec_info>: Declare.
3843 (tui_update_exec_info): Don't declare.
3844 * tui/tui-winsource.c (tui_update_source_window_as_is)
3845 (tui_source_window_base::refresh_all)
3846 (tui_update_all_breakpoint_info): Update.
3847 (tui_source_window_base::update_exec_info): Rename from
3848 tui_update_exec_info.
3849 * tui/tui-stack.c (tui_show_frame_info): Update.
3850
37a4a131
TT
38512019-08-13 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-winsource.h (struct tui_source_window_base)
3854 <set_exec_info_content>: Declare.
3855 (tui_set_exec_info_content): Don't declare.
3856 * tui/tui-winsource.c
3857 (tui_source_window_base::set_exec_info_content): Rename from
3858 tui_set_exec_info_content.
3859 (tui_update_exec_info): Update.
3860
0bd27e07
TT
38612019-08-13 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-winsource.h (struct tui_source_window_base)
3864 <show_source_content>: Declare.
3865 (tui_show_source_content): Don't declare.
3866 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3867 (tui_source_window_base::show_source_content): Rename from
3868 tui_show_source_content.
3869 (tui_source_window_base::refresh_all): Update.
3870 * tui/tui-layout.c (show_source_disasm_command)
3871 (show_source_or_disasm_and_command): Update.
3872
b4ef5aeb
TT
38732019-08-13 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui-winsource.c (tui_erase_source_content)
3876 (tui_show_source_content, tui_source_window_base::refresh_all):
3877 Update.
3878 * tui/tui-wingeneral.h
3879 (tui_check_and_display_highlight_if_needed): Don't declare.
3880 * tui/tui-wingeneral.c
3881 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3882 check_and_display_highlight_if_needed.
3883 * tui/tui-win.c (tui_rehighlight_all)
3884 (tui_win_info::make_visible_with_new_height): Update.
3885 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3886 (tui_data_window::erase_data_content)
3887 (tui_data_window::display_all_data): Update.
3888 * tui/tui-data.h (struct tui_win_info)
3889 <check_and_display_highlight_if_needed>: Declare.
3890
fede5273
TT
38912019-08-13 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-win.c (tui_resize_all): Call
3894 tui_delete_invisible_windows.
3895 * tui/tui-layout.c (show_layout): Call
3896 tui_delete_invisible_windows.
3897 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3898 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3899
22c3f490
TT
39002019-08-13 Tom Tromey <tom@tromey.com>
3901
3902 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3903 tui_add_win_to_layout.
3904
16cb7910
TT
39052019-08-13 Tom Tromey <tom@tromey.com>
3906
3907 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3908 * tui/tui-layout.c (tui_default_win_height): Now static.
3909
cc0c3ffb
TT
39102019-08-13 Tom Tromey <tom@tromey.com>
3911
3912 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3913 single switch.
3914 (show_source_disasm_command, show_source_or_disasm_and_command):
3915 Don't check current layout.
3916
3f3ffe54
TT
39172019-08-13 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-wingeneral.c (make_all_visible): Remove.
3920 (tui_make_all_invisible): Simplify.
3921 * tui/tui-layout.c (tui_make_all_invisible): Move from
3922 tui-wingeneral.c; simplify.
3923 (show_layout): Hoist call to tui_make_all_invisible.
3924 (show_data): Don't call tui_make_all_invisible.
3925
69258091
TT
39262019-08-13 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3929 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3930
62cf57fe
TT
39312019-08-13 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3934 tui-data.c.
3935 (show_source_disasm_command, show_data)
3936 (show_source_or_disasm_and_command): Don't use
3937 tui_set_current_layout_to.
3938 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3939 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3940 tui-layout.c.
3941 (tui_set_current_layout_to): Remove.
3942
2afade5d
TT
39432019-08-13 Tom Tromey <tom@tromey.com>
3944
3945 * tui/tui-layout.c (tui_set_layout): Update.
3946 * tui/tui-data.h (struct tui_layout_def): Remove.
3947 (tui_layout_def): Don't declare.
3948 * tui/tui-data.c (layout_def): Remove.
3949 (tui_layout_def): Remove.
3950
a3504e96
TT
39512019-08-13 Tom Tromey <tom@tromey.com>
3952
3953 * tui/tui-winsource.h (struct tui_source_window_base)
3954 <clear_detail>: No longer "override".
3955 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3956 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3957 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3958 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3959 Remove.
3960 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3961
29c92911
TT
39622019-08-13 Tom Tromey <tromey@adacore.com>
3963
3964 * tracepoint.c: Don't include readline.h or history.h.
3965
86c6b807
TT
39662019-08-12 Tom Tromey <tom@tromey.com>
3967
3968 * configure: Rebuild.
3969 * configure.ac: Check for readline 7.
3970 * NEWS: Mention readline 7 requirement.
3971 * README: Update.
3972
5db2718c
TT
39732019-08-12 Tom Tromey <tom@tromey.com>
3974
3975 * mingw-hdep.c (gdb_select): Remove readline hack.
3976
dac36daf
PFC
39772019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3978
3979 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3980 when the function fails.
3981
1022c627
AA
39822019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3983
3984 * s390-tdep.c (s390_type_align): New function.
3985 (s390_gdbarch_init): Set it as type_align gdbarch method.
3986
eba4caf2
TV
39872019-08-09 Tom de Vries <tdevries@suse.de>
3988
3989 PR gdb/24591
3990 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3991 pc_low with relocation offset.
3992
123cd851
TT
39932019-08-07 Tom Tromey <tromey@adacore.com>
3994
3995 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3996 (print_frame_args): Update.
3997 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3998 Update.
3999 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4000 * frame.h (struct frame_arg): Add initializers.
4001 <error>: Now a unique_xmalloc_ptr.
4002
3d31bc39
AH
40032019-08-07 Alan Hayward <alan.hayward@arm.com>
4004
4005 * NEWS: Expand the Pointer Authentication entry.
4006 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4007 (aarch64_frame_unmask_lr): ... to this.
4008 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4009 Call aarch64_frame_unmask_lr.
4010 * frame.c (struct frame_info): Add "masked" variable.
4011 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4012 (fprint_frame): Check for masked pc.
4013 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4014 declarations.
4015 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4016 * stack.c (print_frame): Check for masked pc.
4017
0cf9feb9
TT
40182019-08-06 Tom Tromey <tom@tromey.com>
4019
4020 * stabsread.c (patch_block_stabs, read_one_struct_field)
4021 (read_enum_type): Use obstack_strndup.
4022 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4023 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4024 * dwarf2read.c (guess_full_die_structure_name)
4025 (anonymous_struct_prefix): Use obstack_strndup.
4026 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4027 * c-exp.y (yylex): Use obstack_strndup.
4028 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4029 (write_var_or_type): Use obstack_strndup.
4030
efba19b0
TT
40312019-08-06 Tom Tromey <tom@tromey.com>
4032
4033 * symfile.c (reread_symbols): Use obstack_strdup.
4034 * stabsread.c (read_type): Use obstack_strdup.
4035 * gdb_obstack.h (obstack_strdup): New overload.
4036 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4037 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4038 (dwarf2_canonicalize_name): Use obstack_strdup.
4039 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4040 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4041 Use obstack_strdup.
4042
f25102f7
TT
40432019-08-06 Tom Tromey <tom@tromey.com>
4044
4045 * gdb_obstack.h (obstack_strdup): Define.
4046 * gdb_obstack.c (obstack_strdup): Don't define.
4047
021887d8
TT
40482019-08-06 Tom Tromey <tom@tromey.com>
4049
4050 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4051 obstack_strdup.
4052 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4053 obstack_strdup.
4054 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4055 * stabsread.c (common_block_start): Use obstack_strdup.
4056 * objfiles.c (set_objfile_main_name, objfile): Use
4057 obstack_strdup.
4058 * namespace.c (add_using_directive): Use obstack_strdup.
4059 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4060 * jit.c (finalize_symtab): Use obstack_strdup.
4061 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4062 (guess_partial_die_structure_name, partial_die_info::fixup)
4063 (dwarf2_name): Use obstack_strdup.
4064 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4065 obstack_strdup.
4066 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4067 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4068 obstack_strdup.
4069 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4070
d2834edc
PW
40712019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4072
4073 * unittests/help-doc-selftests.c: New file.
4074 * Makefile.in: Add the new file.
4075
590042fc
PW
40762019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4077
4078 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4079 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4080 the full first line, except when FOR_VALUE_PREFIX. In this case,
4081 the trailing '.' is not output, and the first character is uppercased.
4082 (print_help_for_command): Update call to print_doc_line.
4083 (print_doc_of_command): Likewise.
4084 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4085 * cli/cli-option.c (append_indented_doc): Do not append newline.
4086 (build_help_option): Append newline after first appended_indented_doc
4087 only if a second call is done.
4088 (build_help): Append 2 new lines before each option, except the first
4089 one.
4090 * compile/compile.c (_initialize_compile): Add new lines after
4091 %OPTIONS%, when not at the end of the help.
4092 Change help doc or code
4093 producing the help doc to respect the invariants.
4094 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4095 Also removed the new line after 'Options:', as all other commands
4096 do not put an empty line between 'Options:' and the first option.
4097 * printcmd.c (_initialize_printcmd): Likewise.
4098 * stack.c (_initialize_stack): Likewise.
4099 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4100 incorrectly telling COMMAND is optional.
4101 * ada-lang.c (_initialize_ada_language): Change help doc or code
4102 producing the help doc to respect the invariants.
4103 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4104 * breakpoint.c (_initialize_breakpoint): Likewise.
4105 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4106 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4107 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4108 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4109 _initialize_cli_style): Likewise.
4110 * corelow.c (core_target_info): Likewise.
4111 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4112 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4113 * filesystem.c (_initialize_filesystem): Likewise.
4114 * frame.c (_initialize_frame): Likewise.
4115 * gnu-nat.c (add_task_commands): Likewise.
4116 * infcall.c (_initialize_infcall): Likewise.
4117 * infcmd.c (_initialize_infcmd): Likewise.
4118 * interps.c (_initialize_interpreter): Likewise.
4119 * language.c (_initialize_language): Likewise.
4120 * linux-fork.c (_initialize_linux_fork): Likewise.
4121 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4122 * maint.c (_initialize_maint_cmds): Likewise.
4123 * memattr.c (_initialize_mem): Likewise.
4124 * printcmd.c (_initialize_printcmd): Likewise.
4125 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4126 _RegEx): Likewise.
4127 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4128 * record-btrace.c (_initialize_record_btrace): Likewise.
4129 * record-full.c (_initialize_record_full): Likewise.
4130 * record.c (_initialize_record): Likewise.
4131 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4132 * regcache.c (_initialize_regcache): Likewise.
4133 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4134 _initialize_remote): Likewise.
4135 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4136 * serial.c (_initialize_serial): Likewise.
4137 * skip.c (_initialize_step_skip): Likewise.
4138 * source.c (_initialize_source): Likewise.
4139 * stack.c (_initialize_stack): Likewise.
4140 * symfile.c (_initialize_symfile): Likewise.
4141 * symtab.c (_initialize_symtab): Likewise.
4142 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4143 * top.c (init_main): Likewise.
4144 * tracefile-tfile.c (tfile_target_info): Likewise.
4145 * tracepoint.c (_initialize_tracepoint): Likewise.
4146 * tui/tui-win.c (_initialize_tui_win): Likewise.
4147 * utils.c (add_internal_problem_command): Likewise.
4148 * valprint.c (value_print_option_defs): Likewise.
4149
404f2902
FCE
41502019-08-06 Frank Ch. Eigler <fche@redhat.com>
4151
4152 PR build/24886
4153 * configure.ac: Drop enable-libmcheck support.
4154 * configure, config.in: Rebuild.
4155 * libmcheck.m4: Remove.
4156 * acinclude.m4: Don't include it.
4157 * Makefile.in: Don't distribute it.
4158 * top.c (print_gdb_configuration): Don't mention it.
4159
046bebe1
TT
41602019-08-06 Tom Tromey <tom@tromey.com>
4161
4162 * utils.c (set_output_style): Sometimes pass stream to
4163 emit_style_escape.
4164 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4165 * record-btrace.c (btrace_insn_history): Update.
4166 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4167 method.
4168 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4169 Update initializers.
4170 <m_uiout>: New field.
4171 <m_di>: Move lower.
4172 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4173 Remove "uiout" parameter.
4174 (dump_insns): Update.
4175 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4176 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4177
ddbcedf5
CB
41782019-08-06 Christian Biesinger <cbiesinger@google.com>
4179
4180 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4181 (error_in_psymtab_expansion): Likewise.
4182 (lookup_symbol_via_quick_fns): Likewise.
4183 (basic_lookup_transparent_type_quick): Likewise.
4184 (basic_lookup_transparent_type_1): Likewise.
4185
b08b16c8
TT
41862019-08-06 Tom Tromey <tromey@adacore.com>
4187
4188 * source.c (last_source_error): Now bool.
4189 (print_source_lines_base): Make "noprint" bool. Only open
4190 source file when last_source_visited changes.
4191
cb44333d
TT
41922019-08-06 Tom Tromey <tromey@adacore.com>
4193
4194 * annotate.c (annotate_source_line): Use g_source_cache.
4195 * source-cache.c (source_cache::get_plain_source_lines): Change
4196 parameters. Populate m_offset_cache.
4197 (source_cache::ensure): New method.
4198 (source_cache::get_line_charpos): New method.
4199 (extract_lines): Move lower. Change parameters.
4200 (source_cache::get_source_lines): Move lower.
4201 * source-cache.h (class source_cache): Update comment.
4202 <get_line_charpos>: New method.
4203 <get_source_lines>: Update comment.
4204 <clear>: Clear m_offset_cache.
4205 <get_plain_source_lines>: Change parameters.
4206 <ensure>: New method
4207 <m_offset_cache>: New member.
4208 * source.c (forget_cached_source_info_for_objfile): Update.
4209 (info_source_command): Use g_source_cache.
4210 (find_source_lines, open_source_file_with_line_charpos): Remove.
4211 (print_source_lines_base, search_command_helper): Use g_source_cache.
4212 * source.h (open_source_file_with_line_charpos): Don't declare.
4213 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4214 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4215 Use g_source_cache.
4216
872dceaa
TT
42172019-08-06 Tom Tromey <tromey@adacore.com>
4218
4219 * source-cache.c (source_cache::get_plain_source_lines):
4220 Remove "first_line" and "last_line" parameters.
4221 (source_cache::get_source_lines): Cache plain text.
4222 * source-cache.h (class source_cache)
4223 <get_plain_source_lines>: Update.
4224
269249d9
TT
42252019-08-06 Tom Tromey <tromey@adacore.com>
4226
4227 * source-cache.c (extract_lines): No longer a method.
4228 Changed type of parameter. Include final newline.
4229 (selftests::extract_lines_test): New function.
4230 (_initialize_source_cache): Likewise.
4231 * source-cache.h (class source_cache)
4232 <extract_lines>: Don't declare.
4233
c0e8dcd8
TT
42342019-08-06 Tom Tromey <tromey@adacore.com>
4235
4236 * breakpoint.c (init_breakpoint_sal): Update.
4237 (breakpoint): Update.
4238 * breakpoint.h (struct breakpoint) <filter>: Now a
4239 unique_xmalloc_ptr.
4240
0b27c27d
CB
42412019-08-05 Christian Biesinger <cbiesinger@google.com>
4242
4243 * NEWS: Mention dictionary access on blocks.
4244 * python/py-block.c (blpy_getitem): New function.
4245 (block_object_as_mapping): New struct.
4246 (block_object_type): Use new struct for tp_as_mapping field.
4247
4ee94178
CB
42482019-08-05 Christian Biesinger <cbiesinger@google.com>
4249
4250 * objfiles.h (objfile): Add a comment describing partial symbols.
4251
8abfcabc
TT
42522019-08-05 Tom Tromey <tromey@adacore.com>
4253
4254 * compile/compile.c (_initialize_compile): Use _(), not N_().
4255 * thread.c (_initialize_thread): Use _(), not N_().
4256 * stack.c (_initialize_stack): Use _(), not N_().
4257 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4258
2b79f376
SM
42592019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4260
4261 * dwarf2read.c (struct dw2_symtab_iterator):
4262 <want_specific_block>: Remove.
4263 <block_index>: Change type to gdb::optional.
4264 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4265 change type of BLOCK_INDEX parameter to gdb::optional.
4266 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4267 (dw2_lookup_symbol): Don't pass argument for
4268 WANT_SPECIFIC_BLOCK.
4269 (dw2_expand_symtabs_for_function): Don't pass argument for
4270 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4271 (class dw2_debug_names_iterator)
4272 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4273 parameter, change BLOCK_INDEX type to gdb::optional.
4274 <m_want_specific_block>: Remove.
4275 <m_block_index>: Change type to gdb::optional.
4276 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4277 gdb::optional. Re-write in function of gdb::optional.
4278 (dw2_debug_names_lookup_symbol): Don't pass argument for
4279 WANT_SPECIFIC_BLOCK.
4280 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4281 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4282 BLOCK_INDEX.
4283
ae60f04e
PW
42842019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4285
4286 * NEWS: Mention changes to "info sources" command.
4287
28cd9371
PW
42882019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4289
4290 * symtab.c (filename_partial_match_opts): New struct type.
4291 (struct output_source_filename_data): New members
4292 regexp, c_regexp, partial_match.
4293 (output_source_filename): Use new members to decide to print file.
4294 (info_sources_option_defs): New variable.
4295 (make_info_sources_options_def_group, print_info_sources_header,
4296 info_sources_command_completer):
4297 New functions.
4298 (info_sources_command): Read new optional arguments.
4299 (_initialize_symtab): Update info sources help.
4300
ca683e3a
AO
43012019-08-02 Alexandre Oliva <oliva@adacore.com>
4302
4303 * ada-lang.c (exception_support_info_v0): Renamed from...
4304 (default_exception_support_info): ... this. Create new
4305 definition for v1.
4306 (ada_has_this_exception_support): Look up catch_handlers_sym.
4307 (ada_exception_support_info_sniffer): Try v0 after default.
4308
f1264162
TT
43092019-08-01 Tom Tromey <tromey@adacore.com>
4310
4311 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4312 gdbarch.h.
4313
0a7b2485
CB
43142019-08-01 Christian Biesinger <cbiesinger@google.com>
4315
4316 * s12z-tdep.c: Fix include path for s12z-opc.h.
4317
c6bdbeb7
AH
43182019-08-01 Alan Hayward <alan.hayward@arm.com>
4319
4320 * NEWS: Require GNU make 3.82.
4321
a2bd7b82
TT
43222019-07-16 Tom Tromey <tom@tromey.com>
4323
4324 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4325 declare.
4326
aa3b6533
TT
43272019-07-30 Tom Tromey <tromey@adacore.com>
4328
4329 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4330
a1530dc7
KB
43312019-07-30 Kevin Buettner <kevinb@redhat.com>
4332
4333 * printcmd.c (print_address_symbolic): Print negative offsets.
4334 (build_address_symbolic): Force signed arithmetic when computing
4335 offset.
4336
2906593f
CB
43372019-07-30 Christian Biesinger <cbiesinger@google.com>
4338
4339 PR/24474: Add a function to lookup static variables.
4340 * NEWS: Mention this new function.
4341 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4342 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4343 * python/python.c (python_GdbMethods): Add new function.
4344
c620ed88
CB
43452019-07-29 Christian Biesinger <cbiesinger@google.com>
4346
4347 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4348 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4349 (objfpy_lookup_static_symbol): New function.
4350 (objfile_object_methods): Add new functions.
4351
bc4268a5
PW
43522019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4353
4354 * NEWS: Mention 'set|show print frame-info'. Mention new
4355 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4356 backtrace argument. Mention that python frame filtering code
4357 is now consistent with what 'backtrace' command prints.
4358
4b5e8d19
PW
43592019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4360
4361 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4362 comments.
4363 (print_frame_info_auto, print_frame_info_source_line,
4364 print_frame_info_location, print_frame_info_source_and_location,
4365 print_frame_info_location_and_address, print_frame_info_short_location):
4366 New declarations.
4367 (struct frame_print_options): New member print_frame_info.
4368 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4369 * stack.h (get_user_print_what_frame_info): New declaration.
4370 (frame_show_address): New declaration.
4371 * stack.c (print_frame_arguments_choices): New value 'presence'.
4372 (print_frame_info_auto, print_frame_info_source_line,
4373 print_frame_info_location, print_frame_info_source_and_location,
4374 print_frame_info_location_and_address, print_frame_info_short_location,
4375 print_frame_info_choices, print_frame_info_print_what): New definitions.
4376 (print_frame_args): Only print dots for args if print frame-arguments
4377 is 'presence'.
4378 (frame_print_option_defs): New element for "frame-info".
4379 (get_user_print_what_frame_info): New function.
4380 (frame_show_address): Make non static. Move comment to stack.h.
4381 (print_frame_info_to_print_what): New function.
4382 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4383 to decide what to print.
4384 (backtrace_command_1): Handle the new print_frame_arguments_presence
4385 value.
4386 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4387 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4388 (py_print_frame): In non-mi mode, use LOCATION as default for
4389 print_what, similarly to frame information printed directly by
4390 backtrace command. Handle frame-info user option in non MI mode.
4391
6bdfee81
KB
43922019-07-27 Kevin Buettner <kevinb@redhat.com>
4393
4394 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4395 Add case for debugging 32-bit target on 64-bit host. Revise
4396 comment.
4397
98a617f8
KB
43982019-07-27 Kevin Buettner <kevinb@redhat.com>
4399
4400 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4401 instead of find_function_entry_range_from_pc.
4402
567238c9
KB
44032019-07-27 Kevin Buettner <kevinb@redhat.com>
4404
4405 * stack.c (find_frame_funname): Remove code which preferred
4406 minsym over symtab sym in "certain pathological cases".
4407
2dc80cf8
KB
4408 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4409 parameter. Change type of "do_demangle" to bool.
4410 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4411 Pass suitable "prefer_sym_over_minsym" flag to
4412 build_address_symbolic(). Don't output "+" for negative offsets.
4413 * printcmd.c (print_address_symbolic): Update invocation of
4414 build_address_symbolic to include a "prefer_sym_over_minsym"
4415 flag.
4416 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4417 Restrict cases in which use of minimal symbol is preferred to that
4418 of a found symbol. Update comments.
4419
1aff7173
KB
4420 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4421 for entry pc when entry pc is out of range for that FDE.
4422
89b085ac
BC
44232019-07-26 Brian Callahan <bcallah@openbsd.org>
4424
4425 PR gdb/24839:
4426 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4427 type.
4428
f32feb4a
CB
44292019-07-25 Christian Biesinger <cbiesinger@google.com>
4430
4431 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4432 this function's Python signature.
4433
4434
44352019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4436
4437 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4438 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4439 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4440 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4441 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4442
4443
c54e4253
YS
44442019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4445
4446 * h8300-tdep.c (h8300_register_name_common): New.
4447 h8300_register_name): Use h8300_register_name_common.
4448 (h8300s_register_name): Likewise.
4449 (h8300sx_register_name): Likewise.
4450 (h8300h_register_nam): New.
4451 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4452
4453
40eadf04
SP
44542019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4455
4456 * arm-tdep.c (arm_skip_cmse_entry): New function.
4457 (arm_is_sgstubs_section): New function.
4458 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4459
bfa2a36d
TT
44602019-07-22 Tom Tromey <tom@tromey.com>
4461
4462 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4463 Don't self-assign.
4464
a8e9d247
AB
44652019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4466
4467 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4468 type_print.
4469
eb86c5e2
AB
44702019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4473 so that GDB doesn't match any msymbols when searching in the
4474 TYPES_DOMAIN.
4475 (print_symbol_info): Print using typedef_print or type_print based
4476 on the type of the symbol. Add updated FIXME comment moved from...
4477 (_initialize_symtab): ... move and update FIXME comment to above.
4478
a8eab7c6
AB
44792019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4480
4481 * NEWS: Mention adding -q option to "info types".
4482 * symtab.c (struct info_types_options): New struct.
4483 (info_types_options_defs): New variable.
4484 (make_info_types_options_def_group): New function.
4485 (info_types_command): Use gdb::option framework to parse options.
4486 (info_types_command_completer): New function.
4487 (_initialize_symtab): Extend the help text on "info types" and
4488 register command completer.
4489
b4603c34
CB
44902019-07-21 Christian Biesinger <cbiesinger@google.com>
4491
4492 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4493 (lookup_symbol_in_objfile): Change int to block_enum and add a
4494 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4495
c8cdc1e0
CB
44962019-07-20 Christian Biesinger <cbiesinger@google.com>
4497
4498 * MAINTAINERS (Write After Approval): Add self.
4499
01e175fe
AB
45002019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4501
4502 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4503 instruction to the dummy code region.
4504
56f79b63
TT
45052019-07-19 Tom Tromey <tromey@adacore.com>
4506
4507 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4508 (ARGSUSED, PARAMS, __func__): Remove rules.
4509
4c5aa8e0
AH
45102019-07-19 Alan Hayward <alan.hayward@arm.com>
4511
4512 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4513 * features/arm/arm-with-iwmmxt.c: Remove.
4514 * features/arm/arm-with-iwmmxt.xml: Remove.
4515 * features/arm/arm-with-m-fpa-layout.c: Remove.
4516 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4517 * features/arm/arm-with-m-vfp-d16.c: Remove.
4518 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4519 * features/arm/arm-with-m.c: Remove.
4520 * features/arm/arm-with-m.xml: Remove.
4521 * features/arm/arm-with-neon.c: Remove.
4522 * features/arm/arm-with-neon.xml: Remove.
4523 * features/arm/arm-with-vfpv2.c: Remove.
4524 * features/arm/arm-with-vfpv2.xml: Remove.
4525 * features/arm/arm-with-vfpv3.c: Remove.
4526 * features/arm/arm-with-vfpv3.xml: Remove.
4527
f42b2617
AH
45282019-07-19 Alan Hayward <alan.hayward@arm.com>
4529
4530 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4531
f29ec966
AH
45322019-07-19 Alan Hayward <alan.hayward@arm.com>
4533
4534 * arch/aarch32.c (aarch32_create_target_description): Create
4535 target descriptions using features.
4536 * arch/arm.c (arm_create_target_description)
4537 (arm_create_mprofile_target_description): Likewise.
4538 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4539
d105cce5
AH
45402019-07-19 Alan Hayward <alan.hayward@arm.com>
4541
4542 * Makefile.in: Add new files.
4543 * aarch32-tdep.c: New file.
4544 * aarch32-tdep.h: New file.
4545 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4546 Call aarch32_read_description.
4547 * arch/aarch32.c: New file.
4548 * arch/aarch32.h: New file.
4549 * arch/arm.c (arm_create_target_description)
4550 (arm_create_mprofile_target_description): New function.
4551 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4552 (arm_create_target_description)
4553 (arm_create_mprofile_target_description): New declaration.
4554 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4555 read_description functions.
4556 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4557 Likewise.
4558 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4559 * arm-tdep.c (tdesc_arm_list): New variable.
4560 (arm_register_g_packet_guesses): Call create description functions.
4561 (arm_read_description) (arm_read_mprofile_description): New
4562 function.
4563 * arm-tdep.h (arm_read_description)
4564 (arm_read_mprofile_description): Add declaration.
4565 * configure.tgt: Add new files.
4566
afe09f0b
GL
45672019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4568
4569 * top.c (new_ui_command): Open specified terminal just once.
4570
cd215b2e
TT
45712019-07-18 Tom Tromey <tromey@adacore.com>
4572
4573 * symtab.c (main_name): Constify return type.
4574 * symfile.c (set_initial_language): Update.
4575 * symtab.h (main_name): Constify return type.
4576
d8f68fcb
TT
45772019-07-17 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-winsource.c (tui_update_source_window)
4580 (tui_update_source_window_as_is)
4581 (tui_update_source_windows_with_line): Remove return.
4582 * tui/tui-disasm.c (tui_show_disassem)
4583 (tui_show_disassem_and_update_source): Remove return.
4584 * tui/tui.c (tui_reset): Remove return.
4585 * tui/tui-wingeneral.c
4586 (tui_check_and_display_highlight_if_needed): Remove return.
4587
ca5af91e
TT
45882019-07-17 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4591
5104fe36
TT
45922019-07-17 Tom Tromey <tom@tromey.com>
4593
4594 * tui/tui-winsource.h (struct tui_exec_info_window)
4595 (struct tui_source_window_base): Move from tui-data.h.
4596 * tui/tui-winsource.c: Move many method definitions from
4597 elsewhere. Remove "structuring" comments.
4598 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4599 (tui_source_window_base::refresh_window): Move to
4600 tui-winsource.c.
4601 * tui/tui-win.c (tui_source_window_base::refresh_all)
4602 (tui_source_window_base::update_tab_width)
4603 (tui_source_window_base::set_new_height)
4604 (tui_source_window_base::do_make_visible_with_new_height): Move to
4605 tui-winsource.c.
4606 * tui/tui-source.h: Update.
4607 * tui/tui-source.c (tui_source_window_base::reset): Move to
4608 tui-winsource.c.
4609 * tui/tui-disasm.h: Update.
4610 * tui/tui-data.h (struct tui_exec_info_window): Move to
4611 tui-winsource.h.
4612 (struct tui_source_window_base): Likewise.
4613 * tui/tui-data.c (tui_source_window_base::clear_detail)
4614 (tui_source_window_base, ~tui_source_window_base): Move to
4615 tui-winsource.c.
4616
daa15dde
TT
46172019-07-17 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-win.c (tui_resize_all)
4620 (tui_source_window_base::update_tab_width)
4621 (tui_adjust_win_heights): Update.
4622 (tui_win_info::make_invisible_and_set_new_height): Rename from
4623 make_invisible_and_set_new_height.
4624 * tui/tui-data.h (struct tui_win_info)
4625 <make_invisible_and_set_new_height>: New method.
4626
bfad4537
TT
46272019-07-17 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui.c: Update.
4630 * tui/tui-source.h (struct tui_source_window): Move from
4631 tui-data.h.
4632 * tui/tui-layout.c: Update.
4633 * tui/tui-disasm.c: Update.
4634 * tui/tui-data.h (struct tui_source_window): Move to
4635 tui-source.h.
4636
88f7e873
TT
46372019-07-17 Tom Tromey <tom@tromey.com>
4638
4639 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4640 tui-data.h.
4641 * tui/tui-data.h (struct tui_disasm_window): Move to
4642 tui-disasm.h.
4643
96bd6233
TT
46442019-07-17 Tom Tromey <tom@tromey.com>
4645
4646 * tui/tui-regs.h (struct tui_data_item_window): Move from
4647 tui-data.h.
4648 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4649 * tui/tui-data.h (struct tui_data_item_window): Move to
4650 tui-regs.h.
4651 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4652
ce38393b
TT
46532019-07-17 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui.c: Update.
4656 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4657 (tui_cmd_window::max_height): Move to tui-command.c.
4658 * tui/tui-layout.c: Update.
4659 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4660 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4661 tui-command.c.
4662 * tui/tui-command.h (struct tui_cmd_window): Move from
4663 tui-data.h.
4664 * tui/tui-command.c: Remove "structuring" comments.
4665 (tui_cmd_window::clear_detail)
4666 (tui_cmd_window::do_make_visible_with_new_height)
4667 (tui_cmd_window::max_height): Move from elsewhere.
4668
2d8b51cb
TT
46692019-07-17 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4672 Now static.
4673 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4674 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4675
18ab23af
TT
46762019-07-17 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui.c: Update.
4679 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4680 tui-regs.c.
4681 * tui/tui-windata.h: Remove file.
4682 * tui/tui-windata.c: Remove file.
4683 * tui/tui-win.c (tui_data_window::set_new_height)
4684 (tui_data_window::do_make_visible_with_new_height): Move to
4685 tui-regs.c.
4686 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4687 * tui/tui-regs.c: Remove "structuring" comments.
4688 (tui_data_window::first_data_item_displayed)
4689 (tui_data_window::delete_data_content_windows)
4690 (tui_data_window::erase_data_content)
4691 (tui_data_window::display_all_data)
4692 (tui_data_window::refresh_all)
4693 (tui_data_window::do_scroll_vertical)
4694 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4695 (tui_data_window::do_make_visible_with_new_height)
4696 (tui_data_window::refresh_window): Move from elsewhere.
4697 (_initialize_tui_regs): Move to end of file.
4698 * tui/tui-layout.c: Update.
4699 * tui/tui-hooks.c: Update.
4700 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4701 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4702 tui-regs.c.
4703 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4704
88b7e7cc
TT
47052019-07-17 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4708 seen.
4709
0fcd3711
TT
47102019-07-17 Tom Tromey <tom@tromey.com>
4711
4712 * tui/tui-win.c (tui_source_window_base::set_new_height)
4713 (tui_source_window_base::do_make_visible_with_new_height): Use
4714 m_has_locator field directly.
4715 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4716 method.
4717 (struct tui_source_window_base) <has_locator>: Likewise.
4718
4a38112d
TT
47192019-07-17 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4722 Don't declare.
4723 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4724 Remove.
4725 * tui/tui-win.c (tui_source_window_base::set_new_height)
4726 (tui_source_window_base::set_new_height)
4727 (make_invisible_and_set_new_height)
4728 (tui_source_window_base::do_make_visible_with_new_height)
4729 (tui_source_window_base::do_make_visible_with_new_height):
4730 Update.
4731 * tui/tui-layout.c (show_source_disasm_command, show_data)
4732 (show_source_or_disasm_and_command): Update.
4733 * tui/tui-layout.c (show_layout): Update.
4734
09129226
TT
47352019-07-17 Tom Tromey <tom@tromey.com>
4736
4737 * tui/tui-layout.c (make_data_window): Remove.
4738 (show_data): Unify creation and re-initialization cases.
4739
4a8a5e84
TT
47402019-07-17 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-layout.c (make_source_window, make_disasm_window):
4743 Remove.
4744 (show_data): Unify creation and re-initialization cases.
4745
76d2be8e
TT
47462019-07-17 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-layout.c (make_command_window): Remove.
4749 (show_source_disasm_command, show_source_or_disasm_and_command):
4750 Unify creation and re-initialization cases.
4751
890b8bde
TT
47522019-07-17 Tom Tromey <tom@tromey.com>
4753
4754 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4755 creation and re-initialization cases.
4756
2cdfa113
TT
47572019-07-17 Tom Tromey <tom@tromey.com>
4758
4759 * tui/tui-regs.c (tui_get_register): Return void.
4760
8e3cfd09
TT
47612019-07-17 Tom Tromey <tom@tromey.com>
4762
4763 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4764 Simplify.
4765
f4e04977
TT
47662019-07-17 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4769 resetting.
4770
0379b883
TT
47712019-07-17 Tom Tromey <tom@tromey.com>
4772
4773 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4774 * tui/tui-regs.c (tui_reg_layout): New function.
4775 (tui_show_registers, tui_reg_command): Use it.
4776 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4777 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4778 parameters.
4779 (tui_layout_command): Remove.
4780
b7fbad91
TT
47812019-07-17 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-layout.h (tui/tui-layout): Return void.
4784 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4785
4e1e56b9
TT
47862019-07-17 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-layout.c (show_source_disasm_command, show_data):
4789 Update.
4790 (reset_locator): Remove.
4791 (show_source_or_disasm_and_command): Update.
4792
1e0c09ba
TT
47932019-07-17 Tom Tromey <tom@tromey.com>
4794
4795 * tui/tui-source.c (tui_source_window_base::reset): Remove
4796 win_type parameter.
4797 * tui/tui-layout.c (make_command_window, make_source_window)
4798 (make_disasm_window, make_data_window)
4799 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4800 (reset_locator, show_source_or_disasm_and_command): Update.
4801 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4802 win_type parameter.
4803 (struct tui_source_window_base) <reset>: Likewise.
4804
1bf605de
TT
48052019-07-17 Tom Tromey <tom@tromey.com>
4806
4807 * tui/tui-layout.c (show_source_disasm_command): Use
4808 reset_locator.
4809 (reset_locator): New function.
4810 (init_and_make_win): Remove.
4811 (show_source_or_disasm_and_command): Use reset_locator.
4812
098f9ed4
TT
48132019-07-17 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4816 condition.
4817 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4818 Remove condition.
4819 * tui/tui-source.c (tui_source_window_base::reset): New method.
4820 * tui/tui-layout.c (make_command_window): Don't call
4821 init_and_make_win.
4822 (make_source_window, make_disasm_window): Don't call
4823 make_source_or_disasm_window.
4824 (make_data_window): Don't call init_and_make_win. Change calling
4825 convention.
4826 (show_source_disasm_command, show_data): Simplify.
4827 (make_source_or_disasm_window): Remove.
4828 (show_source_or_disasm_and_command): Simplify.
4829 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4830 (struct tui_source_window_base) <reset>: Likewise.
4831 <execution_info>: Remove initializer.
4832 * tui/tui-data.c (tui_source_window_base): Initialize
4833 execution_info.
4834
80110957
TT
48352019-07-17 Tom Tromey <tom@tromey.com>
4836
4837 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4838 variable.
4839
cf82af05
TT
48402019-07-17 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui.c (tui_rl_other_window): Update.
4843 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4844 superclass method first. Always iterate over regs_content.
4845 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4846 method.
4847 * tui/tui-win.c (tui_set_focus_command): Update.
4848
01aeb396
TT
48492019-07-17 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-win.c (tui_set_focus_command): Rename from
4852 tui_set_focus. Call tui_enable.
4853 (tui_set_focus_command): Remove.
4854
fd6c75ee
TT
48552019-07-17 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4858 refresh_window.
4859 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4860 touchwin.
4861 (tui_data_window::refresh_window): Call refresh_window on data
4862 items. Always call superclass refresh_window.
4863 (tui_win_info::refresh): Remove.
4864 (tui_source_window_base::refresh_window): Update.
4865 (tui_refresh_all): Update.
4866 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4867 refresh_window.
4868 (show_source_or_disasm_and_command): Likewise.
4869 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4870 (struct tui_source_window_base) <refresh>: Likewise.
4871
f6cc34a9
TT
48722019-07-17 Tom Tromey <tom@tromey.com>
4873
4874 * tui/tui-winsource.c (tui_clear_source_content)
4875 (tui_show_source_content): Update.
4876 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4877 whether content is empty.
4878 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4879 Remove.
4880
f31ec9af
TT
48812019-07-17 Tom Tromey <tom@tromey.com>
4882
4883 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4884 window's contents.
4885 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4886 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4887
d1b6f1e5
TT
48882019-07-17 Tom Tromey <tom@tromey.com>
4889
4890 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4891 (struct tui_data_item_window): Update.
4892
d9743a13
TT
48932019-07-17 Tom Tromey <tom@tromey.com>
4894
4895 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4896 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4897 defines.
4898
caf0bc4e
TT
48992019-07-17 Tom Tromey <tom@tromey.com>
4900
4901 * tui/tui-winsource.h (tui_erase_source_content)
4902 (tui_clear_source_content): Remove "display_prompt" parameter.
4903 * tui/tui-winsource.c (tui_update_source_window_as_is)
4904 (tui_update_source_windows_with_addr): Update.
4905 (tui_clear_source_content): Remove "display_prompt" parameter.
4906 (tui_erase_source_content): Likewise. Simplify.
4907 (tui_show_source_content): Update.
4908 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4909 * tui/tui-stack.c (tui_show_frame_info): Update.
4910 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4911 Remove defines.
4912
9d391078
TT
49132019-07-17 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4916 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4917 parameter.
4918 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4919 parameter.
4920
a38da35d
TT
49212019-07-17 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-winsource.c (tui_clear_source_content)
4924 (tui_show_source_content, tui_show_exec_info_content)
4925 (tui_clear_exec_info_content): Update.
4926 * tui/tui-stack.c (tui_show_locator_content): Update.
4927 (tui_show_frame_info): Update.
4928 * tui/tui-source.h (tui_source_window): Don't declare.
4929 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4930 from tui_source_is_displayed.
4931 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4932 Remove field.
4933 (struct tui_source_window_base) <content_in_use>: New field. Now
4934 bool.
4935 (struct tui_source_window) <showing_source_p>: New method.
4936 (TUI_SRC_WIN): Change cast.
4937 * tui/tui-data.c (tui_initialize_static_data): Update.
4938
c2cd8994
TT
49392019-07-17 Tom Tromey <tom@tromey.com>
4940
4941 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4942 location_matches_p.
4943 * tui/tui-source.c (tui_source_window::location_matches_p): New
4944 method.
4945 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4946 method.
4947 * tui/tui-data.h (struct tui_source_window_base)
4948 <location_matches_p>: New method.
4949 (struct tui_source_window, struct tui_disasm_window)
4950 <location_matches_p>: Likewise.
4951
4dde7b34
TT
49522019-07-17 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui-win.c (tui_set_win_height_command): Rename from
4955 tui_set_win_height.
4956 (tui_set_win_height_command): Remove.
4957
b73dd877
TT
49582019-07-17 Tom Tromey <tom@tromey.com>
4959
4960 * tui/tui-source.c (tui_source_window): New constructor. Add
4961 observer.
4962 (~tui_source_window): New destructor.
4963 (tui_source_window::style_changed): New method.
4964 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4965 (tui_attach_detach_observers): Update.
4966 * tui/tui-data.h (struct tui_source_window): Make constructor not
4967 inline. Add destructor.
4968 (struct tui_source_window) <style_changed>: New method.
4969 <m_observable>: New member.
4970
ae2b5380
TT
49712019-07-17 Tom Tromey <tom@tromey.com>
4972
4973 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4974 * tui/tui-win.c (tui_resize_all): Fix typo.
4975
1ce3e844
TT
49762019-07-17 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4979 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4980 (tui_refresh_all): Remove "list" parameter. Use foreach.
4981 * tui/tui-win.c (window_name_completer): Use foreach.
4982 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4983 (update_tab_width): Likewise.
4984 * tui/tui-layout.c (show_layout): Update.
4985 * tui/tui-data.h (class tui_window_iterator): New.
4986 (struct all_tui_windows): New.
4987 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4988
fe3eaf1c
TT
49892019-07-17 Tom Tromey <tom@tromey.com>
4990
4991 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4992 parameter. Don't reference globals.
4993 (tui_reg_command): Update.
4994
368c1354
TT
49952019-07-17 Tom Tromey <tom@tromey.com>
4996
4997 * tui/tui-regs.c (tui_show_registers): Simplify.
4998
e80cd204
TT
49992019-07-17 Tom Tromey <tom@tromey.com>
5000
5001 * tui/tui-regs.c (tui_show_registers): Update.
5002 (tui_show_register_group): Add win_info parameter.
5003
aca2dd16
TT
50042019-07-17 Tom Tromey <tom@tromey.com>
5005
5006 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5007 Rename from tui_display_reg_element_at_line.
5008 (tui_data_window::display_registers_from_line): Update.
5009 * tui/tui-data.h (struct tui_data_window)
5010 <display_reg_element_at_line>: New method.
5011
517e9505
TT
50122019-07-17 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-regs.h (tui_display_registers_from)
5015 (tui_display_registers_from_line): Don't declare.
5016 * tui/tui-windata.c (tui_data_window::display_all_data)
5017 (tui_data_window::refresh_all)
5018 (tui_data_window::do_scroll_vertical): Update.
5019 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5020 from tui_display_registers_from.
5021 (tui_display_reg_element_at_line): Update.
5022 (tui_data_window::display_registers_from_line): Rename from
5023 tui_display_registers_from_line.
5024 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5025 display_registers_from_line>: New methods.
5026
f76d8b19
TT
50272019-07-17 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5030 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5031 from tui_erase_data_content.
5032 (tui_data_window::display_all_data)
5033 (tui_data_window::refresh_all)
5034 (tui_data_window::do_scroll_vertical): Update.
5035 * tui/tui-regs.c (tui_show_registers): Update.
5036 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5037 New method.
5038
b4094625
TT
50392019-07-17 Tom Tromey <tom@tromey.com>
5040
5041 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5042 declare.
5043 * tui/tui-windata.c
5044 (tui_data_window::delete_data_content_windows): Rename from
5045 tui_delete_data_content_windows.
5046 (tui_data_window::display_all_data)
5047 (tui_data_window::do_scroll_vertical): Update.
5048 * tui/tui-data.h (struct tui_data_window)
5049 <delete_data_content_windows>: New method.
5050
c223a729
TT
50512019-07-17 Tom Tromey <tom@tromey.com>
5052
5053 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5054 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5055
50daf268
TT
50562019-07-17 Tom Tromey <tom@tromey.com>
5057
5058 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5059 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5060 from tui_display_all_data.
5061 * tui/tui-win.c
5062 (tui_data_window::do_make_visible_with_new_height): Update.
5063 * tui/tui-regs.c (tui_show_registers): Update.
5064 * tui/tui-layout.c (tui_set_layout): Update.
5065 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5066 method.
5067
df5f8cab
TT
50682019-07-17 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5071 * tui/tui-windata.c (tui_display_data_from): Remove.
5072 (tui_data_window::refresh_all): Update.
5073
80cb6c27
TT
50742019-07-17 Tom Tromey <tom@tromey.com>
5075
5076 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5077 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5078 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5079 tui_display_registers_from_line.
5080 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5081 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5082 "force_display" parameter.
5083
baff0c28
TT
50842019-07-17 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5087 declare.
5088 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5089 Rename from tui_first_reg_element_no_inline.
5090 (tui_display_reg_element_at_line)
5091 (tui_display_registers_from_line): Update.
5092 * tui/tui-data.h (struct tui_data_window)
5093 <first_reg_element_no_inline>: New method.
5094
3b23c5f2
TT
50952019-07-17 Tom Tromey <tom@tromey.com>
5096
5097 * tui/tui-windata.c (tui_display_data_from)
5098 (tui_data_window::do_scroll_vertical): Update.
5099 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5100 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5101 Rename from tui_line_from_reg_element_no.
5102 (tui_display_registers_from_line): Update.
5103 * tui/tui-data.h (struct tui_data_window)
5104 <line_from_reg_element_no>: New method.
5105
0b5ec218
TT
51062019-07-17 Tom Tromey <tom@tromey.com>
5107
5108 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5109 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5110 tui_last_regs_line_no.
5111 (tui_display_reg_element_at_line)
5112 (tui_display_registers_from_line): Update.
5113 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5114 method.
5115
0807ab7b
TT
51162019-07-17 Tom Tromey <tom@tromey.com>
5117
5118 PR tui/24722:
5119 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5120 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5121 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5122 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5123 (tui_update_breakpoint_info): Likewise.
5124 * tui/tui-hooks.c (tui_event_create_breakpoint)
5125 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5126 Update.
5127
9ad7fdef
TT
51282019-07-17 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5131
5813316f
TT
51322019-07-17 Tom Tromey <tom@tromey.com>
5133
5134 * tui/tui-winsource.c (tui_update_source_window_as_is)
5135 (tui_update_source_windows_with_addr): Update.
5136 * tui/tui-source.h (tui_set_source_content)
5137 (tui_show_symtab_source): Add "win_info" parameter.
5138 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5139 parameter.
5140 (tui_show_symtab_source): Likewise.
5141
00e264e7
TT
51422019-07-17 Tom Tromey <tom@tromey.com>
5143
5144 * tui/tui-wingeneral.c
5145 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5146
06210ce4
TT
51472019-07-17 Tom Tromey <tom@tromey.com>
5148
5149 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5150 (struct tui_cmd_window) <can_scroll>: New method.
5151 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5152 method.
5153
381befee
TT
51542019-07-17 Tom Tromey <tromey@adacore.com>
5155
5156 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5157 do_field_signed>: Rename. Change type of "value".
5158 * ui-out.c (ui_out::field_signed): Rename from field_int.
5159 Change type of "value".
5160 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5161 type of "value".
5162 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5163 do_field_int. Change type of "value".
5164 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5165 do_field_int. Change type of "value".
5166 * tracepoint.c (trace_status_mi, tfind_1)
5167 (print_one_static_tracepoint_marker): Update.
5168 * thread.c (print_thread_info_1, print_selected_thread_frame):
5169 Update.
5170 * stack.c (print_frame, print_frame_info): Update.
5171 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5172 Update.
5173 * source.c (print_source_lines_base): Update.
5174 * skip.c (info_skip_command): Update.
5175 * record-btrace.c (btrace_ui_out_decode_error)
5176 (btrace_call_history_src_line): Update.
5177 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5178 Update.
5179 * progspace.c (print_program_space): Update.
5180 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5181 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5182 do_field_int. Change type of "value".
5183 * mi/mi-out.c (mi_ui_out::do_table_begin)
5184 (mi_ui_out::do_table_header): Update.
5185 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5186 type of "value".
5187 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5188 (mi_cmd_data_list_changed_registers, output_register)
5189 (mi_cmd_data_read_memory, mi_load_progress)
5190 (mi_cmd_trace_frame_collected): Update.
5191 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5192 Update.
5193 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5194 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5195 (mi_cmd_var_list_children, varobj_update_one): Update.
5196 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5197 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5198 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5199 * inferior.c (print_inferior): Update.
5200 * gdb_bfd.c (print_one_bfd): Update.
5201 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5202 Update.
5203 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5204 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5205 do_field_int. Change type of "value".
5206 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5207 do_field_int. Change type of "value".
5208 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5209 (print_one_breakpoint_location, print_it_catch_fork)
5210 (print_one_catch_fork, print_it_catch_vfork)
5211 (print_one_catch_vfork, print_it_catch_solib)
5212 (print_it_catch_exec, print_it_ranged_breakpoint)
5213 (print_mention_watchpoint, print_mention_masked_watchpoint)
5214 (bkpt_print_it, update_static_tracepoint): Update.
5215 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5216 * break-catch-syscall.c (print_it_catch_syscall): Update.
5217 * ada-tasks.c (print_ada_task_info): Update.
5218 * ada-lang.c (print_it_exception, print_mention_exception):
5219 Update.
5220
6b78c3f8
AB
52212019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5222
5223 PR breakpoints/24541
5224 * gdbarch.c: Regenerate.
5225 * gdbarch.h: Regenerate.
5226 * gdbarch.sh: Adjust return type and parameter types for
5227 'stap_adjust_register'.
5228 (i386_stap_adjust_register): Adjust signature and return new
5229 register name.
5230 * stap-probe.c (stap_parse_register_operand): Adjust use of
5231 'gdbarch_stap_adjust_register'.
5232
d72a9b85
TT
52332019-07-17 Tom Tromey <tromey@adacore.com>
5234
5235 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5236 declare VEC.
5237 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5238 std::vector.
5239 (struct s390_process_info): Add initializers.
5240 (s390_add_process): Use new.
5241 (s390_linux_nat_target::low_forget_process): Use delete.
5242 (s390_linux_nat_target::low_new_fork)
5243 (s390_linux_nat_target::stopped_by_watchpoint)
5244 (s390_linux_nat_target::low_prepare_to_resume)
5245 (s390_linux_nat_target::insert_watchpoint)
5246 (s390_linux_nat_target::insert_hw_breakpoint)
5247 (s390_linux_nat_target::remove_watchpoint)
5248 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5249
206e6c58
JB
52502019-07-16 John Baldwin <jhb@FreeBSD.org>
5251
5252 * aarch64-fbsd-nat.c: Include regcache.h.
5253 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5254 argument.
5255 (aarch64_fbsd_nat_target::fetch_registers)
5256 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5257 variable.
5258 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5259
cbde90f2
JB
52602019-07-16 John Baldwin <jhb@FreeBSD.org>
5261
5262 * fbsd-nat.c: Include gdbarch.h.
5263
07128006
TT
52642019-07-15 Tom Tromey <tromey@adacore.com>
5265
5266 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5267
1f77b012
TT
52682019-07-15 Tom Tromey <tromey@adacore.com>
5269
5270 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5271 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5272 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5273 * cli-out.c (cli_ui_out::do_field_int): New method.
5274 * ui-out.c (ui_out::field_unsigned): New method.
5275 * symfile.c (generic_load): Use field_unsigned.
5276 (print_transfer_performance): Likewise.
5277 * record-btrace.c (ui_out_field_uint): Remove.
5278 (btrace_call_history_insn_range, btrace_call_history): Use
5279 field_unsigned.
5280 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5281 field_unsigned.
5282 * ui-out.h (class ui_out) <field_unsigned>: New method.
5283 <do_field_unsigned>: Likewise.
5284
33eca680
TT
52852019-07-15 Tom Tromey <tromey@adacore.com>
5286
5287 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5288 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5289 * target.c (flash_erase_command): Use field_string.
5290 * infrun.c (print_signal_received_reason): Use field_string.
5291 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5292 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5293 field_string.
5294 * ada-tasks.c (print_ada_task_info): Use field_string.
5295
ca8d69be
TT
52962019-07-15 Tom Tromey <tromey@adacore.com>
5297
5298 * target.c (flash_erase_command): Use field_core_addr.
5299 * symfile.c (generic_load): Use field_core_addr.
5300 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5301 Use field_core_addr.
5302 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5303 field_core_addr.
5304
0d4e84ed
AB
53052019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5308 value if its desired type is smaller than a CORE_ADDR and signed.
5309
9a49df9d
AB
53102019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5313 of changes to field names, and use new is_reference field to
5314 decide if a property is a reference or not.
5315 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5316 field.
5317 (struct dwarf2_property_baton): Update header comment, rename
5318 'referenced_type' to 'property_type' and update comments.
5319 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5320 default property type, store in property baton, update to take
5321 accound of renamed field.
5322 (read_func_scope): Update call to attr_to_dynamic_prop.
5323 (read_array_type): Likewise.
5324 (dwarf2_per_cu_addr_sized_int_type): New function.
5325 (read_subrange_index_type): Move type finding code to
5326 dwarf2_per_cu_addr_sized_int_type.
5327 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5328 (dwarf2_per_cu_addr_type): New function.
5329 (set_die_type): Update calls to attr_to_dynamic_prop.
5330
b86352cf
AB
53312019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * dwarf2read.c (read_subrange_index_type): New function.
5334 (read_subrange_type): Move code into new function and call it.
5335 * gdbtypes.c (create_range_type): Add some asserts.
5336
603490bf
AB
53372019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5340 update return statements.
5341 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5342 declaration, and update comment to match.
5343 * gdbtypes.c (resolve_dynamic_array): Update call to
5344 dwarf2_evaluate_property to match new return type.
5345
592f9d27
AB
53462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * valarith.c (value_subscripted_rvalue): Change lowerbound
5349 parameter type from int to LONGEST.
5350 * value.h (value_subscripted_rvalue): Likewise in declaration.
5351
60cfcb20
AB
53522019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * cli/cli-utils.c (info_print_command_completer): New function.
5355 * cli/cli-utils.h: Add 'completer.h' include, and forward
5356 declaration for 'struct cmd_list_element'.
5357 (info_print_command_completer): Declare.
5358 * stack.c (_initialize_stack): Add completer for 'info locals' and
5359 'info args'.
5360 * symtab.c (_initialize_symtab): Add completer for 'info
5361 variables' and 'info functions'.
5362 * NEWS: Mention completion for additional info commands.
5363
b16507e0
AB
53642019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5365
5366 * cli/cli-utils.c (extract_info_print_args): Delete.
5367 (extract_arg_maybe_quoted): Delete.
5368 (info_print_options_defs): New variable.
5369 (make_info_print_options_def_group): New function.
5370 (extract_info_print_options): Define new function.
5371 * cli/cli-utils.h (extract_info_print_args): Delete.
5372 (struct info_print_options): New structure.
5373 (extract_info_print_options): Declare new function.
5374 * stack.c (info_locals_command): Update to use new
5375 extract_info_print_options, also add a header comment.
5376 (info_args_command): Likewise.
5377 * symtab.c (info_variables_command): Likewise.
5378 (info_functions_command): Likewise.
5379
021d8588
AB
53802019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5381
5382 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5383 to extract string arguments.
5384 * common/common-utils.c (extract_string_maybe_quoted): New function.
5385 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5386
b777eb6d
TT
53872019-07-11 Tom Tromey <tromey@adacore.com>
5388
5389 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5390 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5391 * top.h (gdbinit): Don't declare.
5392 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5393 into...
5394 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5395 * top.c (gdb_init): Don't call init_cli_cmds.
5396 (gdbinit): Remove.
5397 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5398
72ee03ff
TT
53992019-07-11 Tom Tromey <tromey@adacore.com>
5400
5401 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5402 after it has been moved.
5403
00db9531
SM
54042019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * valops.c (value_must_coerce_to_target): Change return type to
5407 bool.
5408 * value.h (value_must_coerce_to_target): Likewise.
5409
f2478a7e
SM
54102019-07-10 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * breakpoint.c (is_hardware_watchpoint): Remove
5413 forward-declaration.
5414 (is_masked_watchpoint): Change return type to bool.
5415 (is_tracepoint): Likewise.
5416 (is_breakpoint): Likewise.
5417 (is_hardware_watchpoint): Likewise.
5418 (is_watchpoint): Likewise.
5419 (is_no_memory_software_watchpoint): Likewise.
5420 (is_catchpoint): Likewise.
5421 (breakpoint_1): Make FILTER parameter's return type bool.
5422 is_masked_watchpoint): Change return type to bool.
5423 (save_breakpoints): Make FILTER parameter's return type bool.
5424 * breakpoint.h (is_breakpoint): Change return type to bool.
5425 (is_watchpoint): Likewise.
5426 (is_catchpoint): Likewise.
5427 (is_tracepoint): Likewise.
5428
0d12e84c
TT
54292019-07-10 Tom Tromey <tom@tromey.com>
5430
5431 * defs.h: Don't include gdbarch.h.
5432 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5433 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5434 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5435 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5436 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5437 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5438 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5439 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5440 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5441 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5442 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5443 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5444 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5445 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5446 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5447 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5448 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5449 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5450 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5451 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5452 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5453 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5454 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5455 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5456 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5457 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5458 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5459
f06f1252
TT
54602019-07-10 Tom Tromey <tromey@adacore.com>
5461
5462 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5463 * breakpoint.c (init_ada_exception_breakpoint): Register as
5464 bp_catchpoint.
5465 (print_one_breakpoint_location, print_one_breakpoint): Use
5466 is_ada_exception_catchpoint.
5467 * ada-lang.c (class ada_catchpoint_location): Pass
5468 bp_loc_software_breakpoint to bp_location constructor.
5469 (is_ada_exception_catchpoint): New function.
5470
7a5d944b
TT
54712019-07-10 Tom Tromey <tromey@adacore.com>
5472
5473 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5474 VEC.
5475 (struct arm_exidx_entry): New method operator<.
5476 (struct arm_exidx_data) <section_maps>: Change type.
5477 (arm_exidx_data_free): Remove.
5478 (arm_exidx_data_key): Change type. Move lower.
5479 (arm_exidx_new_objfile): Update.
5480 (arm_compare_exidx_entries): Remove.
5481 (arm_find_exidx_entry, _initialize_arm_tdep)
5482
48c66e1d
TT
54832019-07-10 Tom Tromey <tromey@adacore.com>
5484
5485 * solib-spu.c (ocl_program_data_key): Change type.
5486 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5487 Update.
5488
a269fbf1
TT
54892019-07-10 Tom Tromey <tromey@adacore.com>
5490
5491 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5492 (struct solib_aix_inferior_data) <library_list>: Change type.
5493 (solib_aix_inferior_data_handle): Change type.
5494 (get_solib_aix_inferior_data): Update.
5495 (solib_aix_free_library_list): Remove.
5496 (library_list_start_library): Update.
5497 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5498 return type.
5499 (solib_aix_get_library_list)
5500 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5501 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5502
c294730c
TT
55032019-07-10 Tom Tromey <tromey@adacore.com>
5504
5505 * solib-dsbt.c (struct dsbt_info): Add initializers.
5506 (solib_dsbt_pspace_data): Change type.
5507 (dsbt_pspace_data_cleanup): Remove.
5508 (get_dsbt_info, _initialize_dsbt_solib): Update.
5509
9d52077d
TT
55102019-07-10 Tom Tromey <tromey@adacore.com>
5511
5512 * spu-tdep.c (spu_overlay_data): Change type.
5513 (spu_get_overlay_table, spu_overlay_new_objfile)
5514 (_initialize_spu_tdep): Update.
5515
22a20dca
TT
55162019-07-10 Tom Tromey <tromey@adacore.com>
5517
5518 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5519 destructor.
5520 (dbx_objfile_data_key): Change type and declare later.
5521 (DBX_SYMFILE_INFO): Rewrite.
5522 * dbxread.c (dbx_objfile_data_key): Change type.
5523 (dbx_symfile_init): Update.
5524 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5525 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5526 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5527
cb60f420
TT
55282019-07-10 Tom Tromey <tromey@adacore.com>
5529
5530 * jit.c (jit_program_space_key): Change type. Move lower.
5531 (get_jit_program_space_data): Update.
5532 (jit_program_space_data_cleanup): Remove.
5533 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5534 Update.
5535 (struct jit_program_space_data): Add initializers.
5536
51df2ae3
TT
55372019-07-10 Tom Tromey <tromey@adacore.com>
5538
5539 * solib-darwin.c (struct darwin_info): Add initializers.
5540 (solib_darwin_pspace_data): Change type.
5541 (darwin_pspace_data_cleanup): Remove.
5542 (get_darwin_info, _initialize_darwin_solib): Update.
5543
18101a35
TT
55442019-07-10 Tom Tromey <tromey@adacore.com>
5545
5546 * remote-sim.c (struct sim_inferior_data): Add initializers,
5547 constructor, and destructor.
5548 (sim_inferior_data_key): Change type. Move lower.
5549 (check_for_duplicate_sim_descriptor): Update.
5550 (get_sim_inferior_data): Use new. Update.
5551 (~sim_inferior_data_cleanup): Rename from
5552 sim_inferior_data_cleanup. Simplify.
5553 (gdbsim_close_inferior, simulator_command)
5554 (sim_command_completer, _initialize_remote_sim): Update.
5555 (next_pid, INITIAL_PID): Move earlier.
5556
05b08ac1
TT
55572019-07-10 Tom Tromey <tromey@adacore.com>
5558
5559 * python/python-internal.h (create_thread_object): Return
5560 gdbpy_ref.
5561 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5562 * python/py-inferior.c (struct threadlist_entry): Add
5563 constructor.
5564 <thread_obj>: Now a gdbpy_ref.
5565 (thread_to_thread_object): Update.
5566 (add_thread_object): Use new.
5567 (delete_thread_object): Use delete.
5568 (infpy_threads): Update.
5569 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5570 GIL.
5571
32372d80
TT
55722019-07-10 Tom Tromey <tromey@adacore.com>
5573
5574 * valops.c (value_cast): Specialize error message for Ada.
5575
5c458ae8
SM
55762019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5577
5578 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5579
4c462cb0
SM
55802019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5583 bpstat_should_step): Return bool, adjust comments.
5584 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5585 bpstat_should_step): Likewise.
5586
89abbcc2
AH
55872019-07-10 Alan Hayward <alan.hayward@arm.com>
5588
5589 * features/Makefile: Use feature target descriptions for Arm.
5590 * features/arm/arm-core.c: Generate new file.
5591 * features/arm/arm-fpa.c: Likewise.
5592 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5593 * features/arm/arm-m-profile.c: Likewise.
5594 * features/arm/arm-vfpv2.c: Likewise.
5595 * features/arm/arm-vfpv3.c: Likewise.
5596 * features/arm/xscale-iwmmxt.c: Likewise.
5597 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5598
166a82be
AH
55992019-07-10 Alan Hayward <alan.hayward@arm.com>
5600
5601 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5602 ptrace earlier.
5603
9fb4c7e9
AH
56042019-07-10 Alan Hayward <alan.hayward@arm.com>
5605
5606 * features/aarch64-pauth.c: Regenerate.
5607
e2d0f980
SM
56082019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5609
5610 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5611 bool.
5612 (bpstat_what): Use false instead of 0.
5613
a38118e5
PA
56142019-07-09 Pedro Alves <palves@redhat.com>
5615
5616 * break-catch-throw.c (is_exception_catchpoint): New.
5617 * breakpoint.c (print_one_breakpoint_location): New parameter
5618 'raw_loc'. Handle it. Use
5619 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5620 looking at the breakpoint's type.
5621 (print_one_breakpoint): If handling "maint info breakpoints", also
5622 print locations of exception catchpoints.
5623 * breakpoint.h (is_exception_catchpoint): Declare.
5624
cb1e4e32
PA
56252019-07-09 Pedro Alves <palves@redhat.com>
5626
5627 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5628 "addr" field.
5629 (allocate_location_exception_catchpoint): New.
5630 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5631 (initialize_throw_catchpoint_ops): Install
5632 allocate_location_exception_catchpoint as allocate_location
5633 method.
5634 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5635 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5636 bp_loc_other.
5637 (breakpoint_address_is_meaningful): Delete.
5638 (bl_address_is_meaningful): New.
5639 (breakpoint_locations_match): Adjust comment.
5640 (bp_location_from_bp_type): New, factored out of...
5641 (bp_location::bp_location(breakpoint *)): ... this.
5642 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5643 factored out of...
5644 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5645 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5646 breakpoint_address_is_meaningful.
5647 (bp_locations_compare): Adjust comment.
5648 (update_global_location_list): Use bl_address_is_meaningful
5649 instead of breakpoint_address_is_meaningful.
5650 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5651 explicit.
5652 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5653 * python/py-breakpoint.c (bppy_get_location): No longer check
5654 whether location is null.
5655
b58a68fe
PA
56562019-07-09 Pedro Alves <palves@redhat.com>
5657
5658 PR c++/15468
5659 * breakpoint.c (print_one_breakpoint_location): Remove
5660 single-location assert.
5661
268a13a5
TT
56622019-07-09 Tom Tromey <tom@tromey.com>
5663
5664 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5665 * configure: Rebuild.
5666 * configure.ac: Change common to gdbsupport.
5667 * gdbsupport: Rename from common.
5668 * acinclude.m4: Change common to gdbsupport.
5669 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5670 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5671 gdbsupport.
5672 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5673 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5674 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5675 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5676 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5677 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5678 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5679 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5680 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5681 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5682 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5683 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5684 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5685 coff-pe-read.c, command.h, compile/compile-c-support.c,
5686 compile/compile-c.h, compile/compile-cplus-symbols.c,
5687 compile/compile-cplus-types.c, compile/compile-cplus.h,
5688 compile/compile-loc2c.c, compile/compile.c, completer.c,
5689 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5690 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5691 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5692 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5693 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5694 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5695 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5696 features/aarch64-core.c, features/aarch64-fpu.c,
5697 features/aarch64-pauth.c, features/aarch64-sve.c,
5698 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5699 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5700 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5701 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5702 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5703 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5704 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5705 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5706 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5707 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5708 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5709 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5710 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5711 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5712 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5713 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5714 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5715 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5716 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5717 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5718 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5719 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5720 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5721 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5722 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5723 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5724 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5725 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5726 minsyms.c, mips-linux-tdep.c, namespace.h,
5727 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5728 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5729 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5730 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5731 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5732 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5733 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5734 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5735 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5736 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5737 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5738 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5739 procfs.c, producer.c, progspace.h, psymtab.h,
5740 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5741 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5742 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5743 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5744 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5745 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5746 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5747 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5748 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5749 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5750 target-memory.c, target.c, target.h, target/waitstatus.c,
5751 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5752 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5753 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5754 unittests/array-view-selftests.c,
5755 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5756 unittests/common-utils-selftests.c,
5757 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5758 unittests/format_pieces-selftests.c,
5759 unittests/function-view-selftests.c,
5760 unittests/lookup_name_info-selftests.c,
5761 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5762 unittests/mkdir-recursive-selftests.c,
5763 unittests/observable-selftests.c,
5764 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5765 unittests/parse-connection-spec-selftests.c,
5766 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5767 unittests/scoped_fd-selftests.c,
5768 unittests/scoped_mmap-selftests.c,
5769 unittests/scoped_restore-selftests.c,
5770 unittests/string_view-selftests.c, unittests/style-selftests.c,
5771 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5772 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5773 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5774 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5775 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5776 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5777
5b0e2db4
AB
57782019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5779
5780 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5781 bool value.
5782 (decode_digits_ordinary): Set explicit_line field in sal.
5783 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5784 symtab_and_line that was set on an explicit line number in
5785 assembler code. Do always update the recorded symtab and line if
5786 we do skip the prologue.
5787
0ba852ab
AB
57882019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5789
5790 * breakpoint.c (set_breakpoint_location_function): Remove
5791 explicit_loc parameter.
5792 (momentary_breakpoint_from_master): Update call to
5793 set_breakpoint_location_function.
5794 (add_location_to_breakpoint): Likewise.
5795
b3a7d171
AB
57962019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5797
5798 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5799 required features based on default bfd type when no specific bfd
5800 is present.
5801
1f6f6e21
PW
58022019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5803
5804 * NEWS: Mention that GDB printf and eval commands can now print
5805 C-style and Ada-style convenience var strings without
5806 calling the inferior.
5807 * printcmd.c (printf_c_string): Locally print GDB internal var
5808 instead of transiting via the inferior.
5809 (printf_wide_c_string): Likewise.
5810
58112019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5812
5862c886 5813 PR breakpoints/25011
ea142fbf
AH
5814 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5815
0598af48
TT
58162019-07-04 Tom Tromey <tom@tromey.com>
5817
5818 PR tui/24724:
5819 * tui/tui-winsource.c (tui_clear_source_content): Update.
5820 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5821 (tui_update_breakpoint_info): Update.
5822 (tui_set_exec_info_content): Update.
5823 * tui/tui-source.c (tui_set_source_content_nil): Update.
5824 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5825 has_break.
5826 * tui/tui-data.h (enum tui_bp_flag): New.
5827 (tui_bp_flags): New enum flags type.
5828 (struct tui_source_element) <break_mode>: Change type. Rename
5829 from has_break.
5830 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5831 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5832 constants.
5833 * tui/tui-winsource.h: Fix comment.
5834
350fab54
AH
58352019-07-04 Alan Hayward <alan.hayward@arm.com>
5836
5837 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5838 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5839 (store_fpregs_to_thread)
5840 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5841 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5842 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5843 (IWMMXT_REGS_SIZE): Add define.
5844 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5845 (fetch_vfp_regs, store_vfp_regs)
5846 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5847 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5848
f0452268
AH
58492019-07-04 Alan Hayward <alan.hayward@arm.com>
5850
5851 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5852 defines.
5853 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5854 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5855 (ARM_INT_REGISTER_SIZE): ...to this.
5856 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5857 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5858 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5859 (arm_linux_collect_gregset, supply_nwfpe_register)
5860 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5861 defines.
5862 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5863 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5864 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5865 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5866 (arm_return_in_memory, arm_store_return_value)
5867 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5868 (arm_record_ld_st_multiple): Likewise.
5869 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5870 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5871
e935475c
AH
58722019-07-04 Alan Hayward <alan.hayward@arm.com>
5873
5874 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5875 AARCH64_DISPLACED_MODIFIED_INSNS.
5876 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5877 (aarch64_displaced_step_copy_insn): Likewise.
5878 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5879 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5880 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5881 ARM_DISPLACED_MODIFIED_INSNS.
5882 * arm-tdep.c (arm_gdbarch_init): Likewise.
5883 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5884 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5885 (struct arm_displaced_step_closure): Use
5886 ARM_DISPLACED_MODIFIED_INSNS.
5887
df0bb381
AH
58882019-07-04 Alan Hayward <alan.hayward@arm.com>
5889
5890 * features/Makefile: Remove unused xml files.
5891 * features/aarch64.xml: Remove.
5892 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5893 * features/i386/amd64-avx-avx512.xml: Remove.
5894 * features/i386/amd64-avx-linux.xml: Remove.
5895 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5896 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5897 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5898 * features/i386/amd64-avx-mpx.xml: Remove.
5899 * features/i386/amd64-avx.xml: Remove.
5900 * features/i386/amd64-linux.xml: Remove.
5901 * features/i386/amd64-mpx-linux.xml: Remove.
5902 * features/i386/amd64-mpx.xml: Remove.
5903 * features/i386/amd64.xml: Remove.
5904 * features/i386/i386-avx-avx512-linux.xml: Remove.
5905 * features/i386/i386-avx-avx512.xml: Remove.
5906 * features/i386/i386-avx-linux.xml: Remove.
5907 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5908 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5909 * features/i386/i386-avx-mpx-linux.xml: Remove.
5910 * features/i386/i386-avx-mpx.xml: Remove.
5911 * features/i386/i386-avx.xml: Remove.
5912 * features/i386/i386-linux.xml: Remove.
5913 * features/i386/i386-mmx-linux.xml: Remove.
5914 * features/i386/i386-mmx.xml: Remove.
5915 * features/i386/i386-mpx-linux.xml: Remove.
5916 * features/i386/i386-mpx.xml: Remove.
5917 * features/i386/i386.xml: Remove.
5918 * features/i386/x32-avx-avx512-linux.xml: Remove.
5919 * features/i386/x32-avx-linux.xml: Remove.
5920 * features/i386/x32-linux.xml: Remove.
5921
edd6266a
AH
59222019-07-04 Alan Hayward <alan.hayward@arm.com>
5923
5924 * regformats/aarch64.dat: Remove.
5925 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5926 * regformats/i386/amd64-avx-linux.dat: Remove.
5927 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5928 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5929 * regformats/i386/amd64-linux.dat: Remove.
5930 * regformats/i386/amd64-mpx-linux.dat: Remove.
5931 * regformats/i386/amd64.dat: Remove.
5932 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5933 * regformats/i386/i386-avx-linux.dat: Remove.
5934 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5935 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5936 * regformats/i386/i386-linux.dat: Remove.
5937 * regformats/i386/i386-mmx-linux.dat: Remove.
5938 * regformats/i386/i386-mpx-linux.dat: Remove.
5939 * regformats/i386/i386.dat: Remove.
5940 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5941 * regformats/i386/x32-avx-linux.dat: Remove.
5942 * regformats/i386/x32-linux.dat: Remove.
5943
2b40fda7
AH
59442019-07-04 Alan Hayward <alan.hayward@arm.com>
5945
5946 * aarch64-tdep.c: Remove xml self tests.
5947 * amd64-linux-tdep.c: Likewise.
5948 * amd64-tdep.c: Likewise.
5949 * i386-linux-tdep.c: Likewise.
5950 * i386-tdep.c: Likewise.
5951
5f4ba3e7
PA
59522019-07-03 Pedro Alves <palves@redhat.com>
5953
5954 PR cli/24732
5955 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5956 (pipe_cmd_option_defs): New.
5957 (make_pipe_cmd_options_def_group): New.
5958 (pipe_command): Use gdb::option::process_options.
5959 (pipe_command_completer): New function.
5960 (_initialize_cli_cmds): Install completer for "pipe" command.
5961
3d9be6f5
PA
59622019-07-03 Pedro Alves <palves@redhat.com>
5963
5964 * cli/cli-option.c (union option_value) <string>: New field.
5965 (struct option_def_and_value): Add ctor, move ctor, dtor and
5966 use DISABLE_COPY_AND_ASSIGN.
5967 (option_def_and_value::clear_value): New.
5968 (parse_option, save_option_value_in_ctx, get_val_type_str)
5969 (add_setshow_cmds_for_options): Handle var_string.
5970 * cli-option.h (union option_def::var_address) <string>: New
5971 field.
5972 (struct string_option_def): New.
5973 * maint-test-options.c (struct test_options_opts): Add default
5974 ctor and use DISABLE_COPY_AND_ASSIGN.
5975 <string_opt>: New field.
5976 (test_options_opts::~test_options_opts): New.
5977 (test_options_opts::dump): Also dump "-string".
5978 (test_options_option_defs): Install "string.
5979
41fc454c
PA
59802019-07-03 Pedro Alves <palves@redhat.com>
5981
5982 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5983 option_value with a null enumeration.
5984 (complete_options): Save the option values in the context.
5985 (save_option_value_in_ctx): New, factored out from ...
5986 (process_options): ... here.
5987 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5988 of the function.
5989 * maint-test-options.c (test_options_opts::dump): New, factored
5990 out from ...
5991 (maintenance_test_options_command_mode): ... here.
5992 (maintenance_test_options_command_completion_result): Delete.
5993 (maintenance_test_options_command_completion_text): Update
5994 comment.
5995 (maintenance_show_test_options_completion_result): Change
5996 prototype. Just print
5997 maintenance_test_options_command_completion_text.
5998 (save_completion_result): New.
5999 (maintenance_test_options_completer_mode): Pass options context to
6000 complete_options, and then save a dump.
6001 (_initialize_maint_test_options): Use add_cmd to install "maint
6002 show test-options-completion-result".
6003
fdbc9870
PA
60042019-07-03 Pedro Alves <palves@redhat.com>
6005
6006 * NEWS (New commands): Mention "with" and "maint with".
6007 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6008 (with_command, with_command_completer): New.
6009 (pipe_command): Adjust to new repeat_previous
6010 interface.
6011 (_initialize_cli_cmds): Install the "with" command and its "w"
6012 alias.
6013 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6014 declarations.
6015 * cli/cli-setshow.c (parse_cli_var_uinteger)
6016 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6017 argument strings for all var_types.
6018 (get_setshow_command_value_string): New, factored out from ...
6019 (do_show_command): ... this.
6020 * cli/cli-setshow.h: Include <string>.
6021 (get_setshow_command_value_string): Declare.
6022 * command.h (repeat_previous): Now returns const char *. Adjust
6023 comment.
6024 * maint.c: Include "cli/cli-cmds.h".
6025 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6026 (_initialize_maint_cmds): Register the "maintenance with" command.
6027 * top.c (repeat_previous): Move bits from pipe_command here:
6028 Return the saved command line, if any; error out if there's no
6029 command to relaunch.
6030
c6ac8931
PA
60312019-07-03 Pedro Alves <palves@redhat.com>
6032
6033 * NEWS (New commands): Mention "maint set/show test-settings"
6034 instead of "maint test-settings".
6035 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6036 (maintenance_test_settings_set_list): Rename to ...
6037 (maintenance_set_test_settings_list): ... this.
6038 (maintenance_test_settings_show_list): Rename to ...
6039 (maintenance_show_test_settings_list): ... this.
6040 (maintenance_test_settings_cmd): Delete.
6041 (maintenance_test_settings_set_cmd): ...
6042 (maintenance_set_test_settings_cmd): ... this.
6043 (maintenance_test_settings_show_cmd): ...
6044 (maintenance_show_test_settings_cmd): ... this.
6045 (maintenance_test_settings_show_value_cmd):
6046 (maintenance_show_test_settings_value_cmd): ... this.
6047 (_initialize_maint_test_settings): No longer install the "maint
6048 test-settings" prefix command. Rename "maint test-settings set"
6049 to "maint set test-settings", and "maint test-settings show" to
6050 "maint show test-settings". Adjust all subcommands.
6051
d1fcf2fd
PA
60522019-07-03 Pedro Alves <palves@redhat.com>
6053
6054 * maint-test-settings.c: Fix file's intro comment. Replace all
6055 references to "test-options" with references to "test-settings",
6056 in comments.
6057
970f9d09
PA
60582019-07-03 Pedro Alves <palves@redhat.com>
6059
6060 * maint-test-settings.c (maintenance_test_settings_xxx)
6061 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6062 New.
6063 (maintenance_test_settings_enums): Use them.
6064 (maintenance_test_settings_enum): Default to
6065 maintenance_test_settings_xxx.
6066 (_initialize_maint_test_settings): Initialize
6067 MAINTENANCE_TEST_SETTINGS_FILENAME.
6068
f3869b1a
SM
60692019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6070
6071 * breakpoint.h (remove_breakpoints_inf): Change return type to
6072 void, move function documentation here.
6073 * breakpoint.c (remove_breakpoints_inf): Change return type to
6074 void, move function documentation to header.
6075
54d66006
PA
60762019-07-02 Pedro Alves <palves@redhat.com>
6077
6078 * NEWS (Completion improvements): Mention "info threads".
6079 * thread.c (struct info_threads_opts, info_threads_option_defs)
6080 (make_info_threads_options_def_group): New.
6081 (info_threads_command): Use gdb::option::process_options.
6082 (info_threads_command_completer): New.
6083 (_initialize_thread): Use gdb::option::build_help to build the
6084 help text for "info threads".
6085
854f6088
SM
60862019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6087
6088 * defs.h (generic_load): Move from here...
6089 * symfile.h (generic_load): ... to here. Rename name parameter
6090 to args.
6091 * symfile.c (generic_load): Add comment.
6092
54ee4252
TT
60932019-07-01 Tom Tromey <tromey@adacore.com>
6094
6095 * dwarf2read.c
6096 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6097 declaration of without_params. Fix formatting.
6098
65392b3e
TT
60992019-07-01 Tom Tromey <tromey@adacore.com>
6100
6101 * ada-exp.y (find_primitive_type): Update.
6102 * ada-lang.h (ada_lookup_symbol): Update.
6103 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6104 parameter.
6105 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6106
7d7571f0
SDJ
61072019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6108
6109 PR breakpoints/24541
6110 * gdbarch.c: Regenerate.
6111 * gdbarch.h: Regenerate.
6112 * gdbarch.sh: Add 'stap_adjust_register'.
6113 * i386-tdep.c: Include '<unordered_set>'.
6114 (i386_stap_adjust_register): New function.
6115 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6116 * stap-probe.c (stap_parse_register_operand): Call
6117 'gdbarch_stap_adjust_register'.
6118
5af5392a
SDJ
61192019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6120
6121 PR python/24742
6122 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6123 * python/python.c (do_start_initialization): Use 'xmalloc'
6124 instead of 'PyMem_Malloc'.
6125
10d06d82
TT
61262019-06-28 Tom Tromey <tromey@adacore.com>
6127
6128 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6129 for Ada.
6130
1b7f24cd
TT
61312019-06-27 Tom Tromey <tromey@adacore.com>
6132
6133 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6134 objfile_key.
6135 (arm_find_mapping_symbol, arm_record_special_symbol)
6136 (_initialize_arm_tdep): Update.
6137 (arm_objfile_data_free): Remove.
6138
3d507ff2
TT
61392019-06-27 Tom Tromey <tromey@adacore.com>
6140
6141 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6142 to cp_print_static_field.
6143
762c164d
TT
61442019-06-26 Tom Tromey <tromey@adacore.com>
6145
6146 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6147 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6148 declare.
6149
aa2f9bcf
AH
61502019-06-26 Alan Hayward <alan.hayward@arm.com>
6151
6152 * features/aarch64-core.c (create_feature_aarch64_core):
6153 Regenerate.
6154 * features/aarch64-core.xml: Add cpsr flags.
6155
3426ae57
AH
61562019-06-26 Alan Hayward <alan.hayward@arm.com>
6157
6158 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6159 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6160
4838e44c
SM
61612019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6162
6163 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6164 field.
6165 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6166 use.
6167 (arm_record_special_symbol): Don't insert new symbol in sorted
6168 position, push it at the end.
6169
54cc7474
SM
61702019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6173 (arm_mapping_symbol_s): Remove.
6174 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6175 (arm_mapping_symbol_vec): New typedef.
6176 (struct arm_per_objfile): Add constructor.
6177 <section_maps>: Change type to
6178 std::unique_ptr<arm_mapping_symbol_vec[]>.
6179 (arm_compare_mapping_symbols): Remove.
6180 (arm_find_mapping_symbol): Adjust to section_maps type change.
6181 (arm_objfile_data_free): Call delete on arm_per_objfile.
6182 (arm_record_special_symbol): Adjust to section_maps type change.
6183 Allocate arm_per_objfile with new.
6184
b65b566c
PW
61852019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6186
6187 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6188 with the command prefix.
6189
c2fc64f5
TT
61902019-06-25 Tom Tromey <tom@tromey.com>
6191
6192 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6193 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6194
fb54fa76
TT
61952019-06-25 Tom Tromey <tom@tromey.com>
6196
6197 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6198 type.
6199 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6200 protected.
6201
f7952c57
TT
62022019-06-25 Tom Tromey <tom@tromey.com>
6203
6204 * tui/tui-winsource.c
6205 (tui_source_window_base::set_is_exec_point_at): Add check against
6206 LOA_ADDRESS.
6207
17568d78
TT
62082019-06-25 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-source.c (tui_set_source_content): Don't check before
6211 xfree.
6212 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6213
53e7cdba
TT
62142019-06-25 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-winsource.h (tui_update_source_window_as_is)
6217 (tui_alloc_source_buffer, tui_line_is_displayed)
6218 (tui_addr_is_displayed): Change type of win_info.
6219 * tui/tui-winsource.c (tui_update_source_window_as_is)
6220 (tui_clear_source_content, tui_show_source_line)
6221 (tui_show_source_content, tui_source_window_base::refill)
6222 (tui_source_window_base::set_is_exec_point_at)
6223 (tui_source_window_base::set_is_exec_point_at)
6224 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6225 (tui_alloc_source_buffer, tui_line_is_displayed)
6226 (tui_addr_is_displayed): Change type of win_info. Update.
6227 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6228 (tui_source_window_base::do_make_visible_with_new_height):
6229 Update.
6230 * tui/tui-source.c (tui_set_source_content)
6231 (tui_set_source_content_nil)
6232 (tui_source_window::do_scroll_vertical): Update.
6233 * tui/tui-layout.c (show_layout): Update.
6234 * tui/tui-disasm.c (tui_set_disassem_content)
6235 (tui_disasm_window::do_scroll_vertical): Update.
6236 * tui/tui-data.h (tui_win_content): Remove.
6237 (struct tui_gen_win_info) <content, content_size>: Remove.
6238 (struct tui_source_element): Add initializers and destructor.
6239 (union tui_which_element, struct tui_win_element): Remove.
6240 (struct tui_source_window_base) <content>: New field.
6241 (struct tui_data_window): Remove destructor.
6242 (tui_alloc_content, tui_free_win_content)
6243 (tui_free_all_source_wins_content): Don't declare.
6244 * tui/tui-data.c (tui_initialize_static_data): Update.
6245 (init_content_element, tui_alloc_content): Remove.
6246 (~tui_gen_win_info): Update.
6247 (~tui_data_window, tui_free_all_source_wins_content)
6248 (tui_free_win_content, free_content, free_content_elements):
6249 Remove.
6250
7908abbf
TT
62512019-06-25 Tom Tromey <tom@tromey.com>
6252
6253 * tui/tui-winsource.h (tui_clear_source_content)
6254 (tui_erase_source_content, tui_show_source_content): Change type
6255 of win_info.
6256 * tui/tui-winsource.c (tui_clear_source_content)
6257 (tui_erase_source_content, tui_show_source_content): Change type
6258 of win_info.
6259 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6260 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6261 win_info.
6262 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6263 win_info.
6264 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6265
02c28df0
TT
62662019-06-25 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-winsource.c (tui_clear_source_content)
6269 (tui_source_window_base::set_is_exec_point_at): Update.
6270 * tui/tui-source.c (tui_set_source_content_nil): Update.
6271 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6272 a bool.
6273 * tui/tui-data.c (init_content_element): Update.
6274
6658b1bf
TT
62752019-06-25 Tom Tromey <tom@tromey.com>
6276
6277 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6278 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6279 * tui/tui-layout.c (init_and_make_win): Update.
6280 * tui/tui.h (enum tui_win_type): Update.
6281 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6282 tui_win_is_auxillary.
6283 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6284 tui_win_is_auxillary.
6285
21e1c91e
TT
62862019-06-25 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6289 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6290 (tui_delete_data_content_windows, tui_display_all_data)
6291 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6292 Update.
6293 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6294 * tui/tui-regs.c (tui_last_regs_line_no)
6295 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6296 (tui_show_registers): Update.
6297 (tui_show_register_group): Return void. Update.
6298 (tui_display_registers_from, tui_display_reg_element_at_line)
6299 (tui_display_registers_from_line, tui_check_register_values):
6300 Update.
6301 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6302 member.
6303 (struct tui_data_window) <regs_content>: Now a std::vector.
6304 <regs_content_count>: Remove.
6305 (tui_add_content_elements, tui_free_data_content): Don't declare.
6306 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6307 (init_content_element): Remove DATA_WIN case. Add assert.
6308 (tui_add_content_elements): Remove.
6309 (tui_data_window): Update.
6310 (tui_free_data_content): Remove.
6311 (free_content_elements): Remove DATA_WIN case.
6312
115ac53b
TT
63132019-06-25 Tom Tromey <tom@tromey.com>
6314
6315 * tui/tui-data.c (tui_data_item_window): Update.
6316 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6317 * tui/tui-windata.c (tui_display_all_data)
6318 (tui_display_data_from_line): Update.
6319 (tui_check_data_values): Remove.
6320 * tui/tui-regs.c (tui_show_register_group)
6321 (tui_display_reg_element_at_line): Update.
6322 * tui/tui-hooks.c (tui_register_changed)
6323 (tui_refresh_frame_and_register_information): Call
6324 tui_check_register_values.
6325 * tui/tui-data.h (struct tui_data_window) <data_content,
6326 data_content_count, data_type>: Remove.
6327 (enum tui_data_type): Remove.
6328
6329 * tui/tui-data.c (tui_data_window::clear_detail)
6330 (~tui_data_window): Update.
6331
eaf9738b
TT
63322019-06-25 Tom Tromey <tom@tromey.com>
6333
6334 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6335 declare.
6336 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6337 Rename from tui_first_data_item_displayed. Update.
6338 (tui_data_window::refresh_all)
6339 (tui_data_window::do_scroll_vertical): Update.
6340 * tui/tui-data.h (struct tui_data_window)
6341 <first_data_item_displayed>: Declare new method.
6342
31ca4723
TT
63432019-06-25 Tom Tromey <tom@tromey.com>
6344
6345 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6346 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6347 contents...
6348 (tui_initialize_static_data): ...here.
6349
41bcff7f
TT
63502019-06-25 Tom Tromey <tom@tromey.com>
6351
6352 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6353 (tui_display_registers_from, tui_check_register_values): Update.
6354 (tui_display_register): Remove win_info parameter; update.
6355 (tui_get_register): Change type of parameters.
6356 * tui/tui-data.h (struct tui_data_element): Remove.
6357 (union tui_which_element) <data>: Remove.
6358 <data_window>: Change type.
6359 (struct tui_data_item_window): New.
6360 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6361 case. Add assert.
6362 (~tui_data_item_window): New destructor.
6363 (free_content_elements): Remove DATA_ITEM_WIN case.
6364
d2802c33
TT
63652019-06-25 Tom Tromey <tom@tromey.com>
6366
6367 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6368 Remove.
6369
dd835f8b
TT
63702019-06-25 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui-data.h (struct tui_command_element): Remove.
6373 (union tui_which_element) <command>: Remove.
6374 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6375 assert.
6376 (free_content_elements): Remove CMD_WIN case.
6377
bd7db367
TT
63782019-06-25 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-layout.c (tui_set_layout): Update.
6381 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6382 * tui/tui-data.c (layout_def): Update.
6383
3add462f
TT
63842019-06-25 Tom Tromey <tom@tromey.com>
6385
6386 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6387 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6388 (tui_source_window_base::set_new_height): Update.
6389 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6390 Update.
6391 (tui_set_locator_fullname, tui_set_locator_info)
6392 (tui_show_frame_info): Update.
6393 * tui/tui-source.c (tui_set_source_content)
6394 (tui_source_is_displayed): Update.
6395 * tui/tui-layout.c (show_source_disasm_command, show_data)
6396 (show_source_or_disasm_and_command): Update.
6397 * tui/tui-disasm.c (tui_set_disassem_content)
6398 (tui_get_begin_asm_address): Update.
6399 * tui/tui-data.h (struct tui_locator_element): Remove.
6400 (union tui_which_element) <locator>: Remove.
6401 (struct tui_locator_window): New.
6402 (tui_locator_win_info_ptr): Change return type.
6403 * tui/tui-data.c (_locator): Change type.
6404 (tui_locator_win_info_ptr): Change return type.
6405 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6406 (tui_alloc_content): Add assert.
6407
489e9d8b
TT
64082019-06-25 Tom Tromey <tom@tromey.com>
6409
6410 * tui/tui-winsource.c
6411 (tui_exec_info_window::maybe_allocate_content): New method.
6412 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6413 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6414 (make_source_or_disasm_window): Add cast.
6415 * tui/tui-data.h (union tui_which_element) <simple_string>:
6416 Remove.
6417 (struct tui_source_info): New.
6418 (struct tui_source_window_base) <execution_info>: Change type.
6419 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6420 case, and add assert.
6421 (tui_alloc_content): Add assert.
6422
c3fabb7d
TT
64232019-06-25 Tom Tromey <tom@tromey.com>
6424
6425 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6426 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6427 * tui/tui-data.c (tui_alloc_win_info): Remove.
6428
bbc228ee
TT
64292019-06-25 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6432 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6433 can_highlight.
6434
5fcee43a
TT
64352019-06-25 Tom Tromey <tom@tromey.com>
6436
6437 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6438 make_visible_with_new_height method.
6439 (tui_win_info::make_visible_with_new_height): New method.
6440 (tui_source_window_base::do_make_visible_with_new_height)
6441 (tui_data_window::do_make_visible_with_new_height)
6442 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6443 (make_visible_with_new_height): Remove.
6444 (tui_resize_all, tui_adjust_win_heights): Use
6445 make_visible_with_new_height method.
6446 * tui/tui-data.h (struct tui_win_info)
6447 <do_make_visible_with_new_height, make_visible_with_new_height>:
6448 New methods.
6449 (struct tui_source_window_base, struct tui_data_window)
6450 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6451 methods.
6452
d83f1fe6
TT
64532019-06-25 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6456 method.
6457 (update_tab_width): Call update_tab_width method.
6458 * tui/tui-data.h (struct tui_win_info)
6459 (struct tui_source_window_base) <update_tab_width>: New methods.
6460
17374de4
TT
64612019-06-25 Tom Tromey <tom@tromey.com>
6462
6463 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6464 parameter.
6465 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6466 parameter.
6467 (tui_gen_win_info::make_visible): Update.
6468 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6469 parameter.
6470 * tui/tui-data.h (enum tui_box): New enum.
6471 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6472
f936bca2
TT
64732019-06-25 Tom Tromey <tom@tromey.com>
6474
6475 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6476 init_and_make_win for EXEC_INFO_WIN.
6477 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6478 longer inline.
6479 (struct tui_win_info) <~tui_win_info>: Inline.
6480 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6481 Don't declare.
6482 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6483 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6484 Remove.
6485 (tui_initialize_static_data): Update.
6486 (~tui_gen_win_info): Handle more cleanup here.
6487 (~tui_source_window_base): Delete "execution_info".
6488 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6489
d6ba6a11
TT
64902019-06-25 Tom Tromey <tom@tromey.com>
6491
6492 * tui/tui-layout.c (make_command_window): Don't set
6493 can_highlight.
6494 (show_source_disasm_command): Call the reset method.
6495 (show_data): Don't set can_highlight. Call the reset method.
6496 (tui_gen_win_info::reset): Rename from init_gen_win_info
6497 (init_and_make_win): Simplify. Return tui_gen_win_info.
6498 (show_source_or_disasm_and_command): Call the reset method.
6499 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6500 (struct tui_cmd_window): Set can_highlight.
6501
48a3bd16
TT
65022019-06-25 Tom Tromey <tom@tromey.com>
6503
6504 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6505 from make_visible.
6506 (tui_make_visible, tui_make_invisible): Rewrite.
6507 (tui_win_info::make_visible): Remove.
6508 (tui_source_window_base::make_visible): Update.
6509 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6510 method. Moved from...
6511 (struct tui_win_info) <make_visible>: ...here.
6512
c3bd716f
TT
65132019-06-25 Tom Tromey <tom@tromey.com>
6514
6515 * tui/tui-winsource.c
6516 (tui_source_window_base::do_scroll_horizontal): Remove direction
6517 parameter.
6518 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6519 direction parameter.
6520 * tui/tui-win.c (tui_win_info::forward_scroll)
6521 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6522 (tui_win_info::right_scroll): Update.
6523 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6524 direction parameter.
6525 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6526 direction parameter.
6527 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6528 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6529 Remove direction parameter.
6530 (struct tui_source_window_base, struct tui_source_window)
6531 (struct tui_disasm_window, struct tui_data_window)
6532 (struct tui_cmd_window): Update.
6533
21c32dca
TT
65342019-06-25 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui-winsource.h (tui_set_exec_info_content)
6537 (tui_show_exec_info_content, tui_erase_exec_info_content)
6538 (tui_clear_exec_info_content, tui_update_exec_info): Change
6539 argument to tui_source_window_base.
6540 * tui/tui-winsource.c (tui_set_exec_info_content)
6541 (tui_show_exec_info_content, tui_erase_exec_info_content)
6542 (tui_clear_exec_info_content, tui_update_exec_info): Change
6543 argument to tui_source_window_base.
6544
73fbdc65
TT
65452019-06-25 Tom Tromey <tom@tromey.com>
6546
6547 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6548 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6549
33325343
TT
65502019-06-25 Tom Tromey <tom@tromey.com>
6551
6552 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6553 check.
6554
29d2c474
TT
65552019-06-25 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6558 type to void.
6559 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6560 type to void.
6561 * tui/tui-source.c (tui_set_source_content): Update.
6562 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6563
152f3f4b
TT
65642019-06-25 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-win.c (window_name_completer, tui_set_focus)
6567 (tui_all_windows_info): Use name method.
6568 * tui/tui-data.h (struct tui_gen_win_info)
6569 (struct tui_source_window, struct tui_disasm_window)
6570 (struct tui_data_window, struct tui_cmd_window) <name>: New
6571 method.
6572 (tui_win_name): Don't declare.
6573 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6574 (tui_win_name): Remove.
6575
be4da588
TT
65762019-06-25 Tom Tromey <tom@tromey.com>
6577
6578 * tui/tui-winsource.h (tui_update_source_window)
6579 (tui_update_source_window_as_is): Change parameter type.
6580 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6581 to be a tui_source_window_base.
6582 (tui_update_source_window_as_is): Likewise.
6583 * tui/tui-win.c (make_visible_with_new_height): Update.
6584
5b81daba
TT
65852019-06-25 Tom Tromey <tom@tromey.com>
6586
6587 * tui/tui-winsource.c (tui_erase_source_content)
6588 (tui_show_source_content, tui_show_exec_info_content)
6589 (tui_erase_exec_info_content): Use refresh_window method.
6590 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6591 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6592 from tui_refresh_win.
6593 (tui_data_window::refresh_window): New method.
6594 (tui_win_info::refresh, tui_source_window_base::refresh)
6595 (tui_refresh_all): Use refresh_window method.
6596 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6597 method.
6598 * tui/tui-regs.c (tui_display_register): Call refresh_window
6599 method.
6600 * tui/tui-layout.c (show_source_disasm_command)
6601 (show_source_or_disasm_and_command): Call refresh_window method.
6602 * tui/tui-data.h (struct tui_gen_win_info)
6603 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6604 New method.
6605
cb2ce893
TT
66062019-06-25 Tom Tromey <tom@tromey.com>
6607
6608 * tui/tui.c (tui_rl_other_window, tui_enable)
6609 (tui_is_window_visible, tui_get_command_dimension): Update.
6610 * tui/tui-winsource.c (tui_update_source_window_as_is)
6611 (tui_clear_source_content, tui_erase_source_content)
6612 (tui_show_source_line, tui_source_window_base::refill)
6613 (tui_source_window_base::do_scroll_horizontal)
6614 (tui_source_window_base::set_is_exec_point_at)
6615 (tui_update_breakpoint_info, tui_set_exec_info_content)
6616 (tui_alloc_source_buffer, tui_line_is_displayed)
6617 (tui_addr_is_displayed): Update.
6618 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6619 (tui_check_and_display_highlight_if_needed)
6620 (tui_win_info::make_visible, tui_win_info::refresh)
6621 (tui_refresh_all): Update.
6622 * tui/tui-windata.c (tui_first_data_item_displayed)
6623 (tui_delete_data_content_windows, tui_erase_data_content)
6624 (tui_display_all_data, tui_data_window::refresh_all)
6625 (tui_check_data_values): Update.
6626 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6627 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6628 (tui_win_info::backward_scroll, tui_refresh_all_win)
6629 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6630 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6631 (tui_source_window_base::set_new_height)
6632 (tui_data_window::set_new_height)
6633 (make_invisible_and_set_new_height)
6634 (make_visible_with_new_height, new_height_ok)
6635 (parse_scrolling_args): Update.
6636 * tui/tui-stack.c (tui_show_frame_info): Update.
6637 * tui/tui-source.c (tui_set_source_content)
6638 (tui_set_source_content_nil, tui_source_is_displayed)
6639 (tui_source_window::do_scroll_vertical): Update.
6640 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6641 (tui_display_registers_from, tui_display_reg_element_at_line)
6642 (tui_check_register_values, tui_reg_command): Update.
6643 * tui/tui-layout.c (tui_default_win_height)
6644 (show_source_disasm_command, show_data, init_and_make_win)
6645 (show_source_or_disasm_and_command): Update.
6646 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6647 (tui_redisplay_readline, tui_mld_flush)
6648 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6649 (tui_getc): Update.
6650 * tui/tui-disasm.c (tui_set_disassem_content)
6651 (tui_disasm_window::do_scroll_vertical): Update.
6652 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6653 Now virtual.
6654 (struct tui_win_info): Derive from tui_gen_win_info.
6655 <~tui_win_info>: Mark as override.
6656 <generic>: Remove member.
6657 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6658 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6659 (~tui_data_window, ~tui_win_info)
6660 (tui_free_all_source_wins_content): Update.
6661 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6662
ab313b35
TT
66632019-06-25 Tom Tromey <tom@tromey.com>
6664
6665 * tui/tui-layout.c (init_and_make_win): Use new.
6666 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6667 destructor, initializers.
6668 (tui_alloc_generic_win_info): Don't declare.
6669 * tui/tui-data.c (_locator): Add argument to constructor.
6670 (source_win, disasm_win): New globals.
6671 (exec_info): Remove.
6672 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6673 Update.
6674 (tui_alloc_generic_win_info): Remove.
6675 (init_content_element): Use new.
6676 (tui_win_info::tui_win_info): Update.
6677 (free_content_elements) <case DATA_WIN>: Use delete.
6678
dc2c33e4
TT
66792019-06-25 Tom Tromey <tom@tromey.com>
6680
6681 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6682 * tui/tui-windata.c (tui_first_data_item_displayed)
6683 (tui_delete_data_content_windows): Update.
6684 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6685 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6686 (tui_display_registers_from, tui_check_register_values): Update.
6687 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6688 pointer.
6689 * tui/tui-data.c (init_content_element): Update. Allocate the new
6690 window.
6691 (tui_free_data_content): Update.
6692 (free_content_elements) <case DATA_WIN>: Free the window.
6693
214a5cbe
TT
66942019-06-25 Tom Tromey <tom@tromey.com>
6695
6696 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6697 Update.
6698 * tui/tui-layout.c (make_command_window)
6699 (show_source_disasm_command, show_data, init_and_make_win)
6700 (show_source_or_disasm_and_command): Update.
6701 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6702 method.
6703 <can_highight, is_highlighted>: Now bool.
6704 (tui_set_win_highlight): Don't declare.
6705 * tui/tui-data.c (tui_set_win_highlight): Remove.
6706
8e2daf15
TT
67072019-06-25 Tom Tromey <tom@tromey.com>
6708
6709 * tui/tui-wingeneral.c (make_visible): Remove check of window
6710 type.
6711
8903bd8a
TT
67122019-06-25 Tom Tromey <tom@tromey.com>
6713
6714 * tui/tui-win.c (tui_win_info::max_height)
6715 (tui_cmd_window::max_height): New methods.
6716 (new_height_ok): Call max_height.
6717 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6718 <max_height>: New method.
6719
3f02ce1e
TT
67202019-06-25 Tom Tromey <tom@tromey.com>
6721
6722 * tui/tui-win.c (tui_source_window_base::set_new_height)
6723 (tui_data_window::set_new_height): New methods.
6724 (make_invisible_and_set_new_height): Call set_new_height method.
6725 * tui/tui-data.h (struct tui_win_info)
6726 (struct tui_source_window_base, struct tui_data_window)
6727 <set_new_height>: New method.
6728
1825f487
TT
67292019-06-25 Tom Tromey <tom@tromey.com>
6730
6731 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6732 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6733 tui_refresh_data_win.
6734 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6735 method.
6736 (tui_refresh_all_win): Call the refresh_all method.
6737 (tui_set_focus): Likewise.
6738 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6739 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6740 Likewise.
6741
ad54d15b
TT
67422019-06-25 Tom Tromey <tom@tromey.com>
6743
6744 * tui/tui-winsource.h (tui_refill_source_window)
6745 (tui_set_is_exec_point_at): Don't declare.
6746 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6747 (tui_source_window_base::refill): Rename from
6748 tui_refill_source_window.
6749 (tui_source_window_base::do_scroll_horizontal): Update.
6750 (tui_source_window_base::set_is_exec_point_at): Rename from
6751 tui_set_is_exec_point_at.
6752 (tui_update_all_breakpoint_info): Update.
6753 * tui/tui-stack.c (tui_show_frame_info): Update.
6754 * tui/tui-layout.c (show_data): Add cast.
6755 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6756 * tui/tui-data.h (struct tui_source_window_base) <refill,
6757 set_is_exec_point_at>: New methods.
6758 (tui_source_windows, tui_add_to_source_windows): Update types.
6759 (tui_add_to_source_windows): Remove redundant declaration.
6760 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6761 (tui_source_windows): Change return type.
6762 (tui_clear_source_windows_detail): Update.
6763 (tui_add_to_source_windows): Change type of parameter.
6764 (tui_free_all_source_wins_content): Update.
6765
2042b506
TT
67662019-06-25 Tom Tromey <tom@tromey.com>
6767
6768 * tui/tui-wingeneral.c (tui_win_info::refresh)
6769 (tui_source_window_base::refresh): New methods.
6770 (tui_refresh_all): Call the refresh method.
6771 * tui/tui-data.h (struct tui_win_info)
6772 (struct tui_source_window_base) <refresh>: New method.
6773
56122977
TT
67742019-06-25 Tom Tromey <tom@tromey.com>
6775
6776 * tui/tui.h (tui_is_window_visible): Return bool.
6777 * tui/tui.c (tui_is_window_visible): Return bool.
6778 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6779 (tui_make_visible, tui_make_invisible)
6780 (tui_win_info::make_visible)
6781 (tui_source_window_base::make_visible, make_all_visible)
6782 (tui_make_all_visible, tui_make_all_invisible): Update.
6783 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6784 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6785 bool.
6786 (struct tui_win_info, struct tui_source_window_base)
6787 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6788 * tui/tui-data.c (tui_init_generic_part): Update.
6789
cda37efb
TT
67902019-06-25 Tom Tromey <tom@tromey.com>
6791
6792 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6793 (tui_source_window_base::make_visible): New methods.
6794 (make_all_visible): Make method call.
6795 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6796 (struct tui_source_window_base, struct tui_cmd_window): Override
6797 make_visible.
6798 (tui_win_is_source_type): Don't declare.
6799 * tui/tui-data.c (tui_win_is_source_type): Remove.
6800
6a0ee02c
TT
68012019-06-25 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6804 NULL check.
6805
63901aec
TT
68062019-06-25 Tom Tromey <tom@tromey.com>
6807
6808 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6809 Inline constructor. Add initializers for members.
6810 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6811 constructors; now inline in class.
6812
ceb13a13
TT
68132019-06-25 Tom Tromey <tom@tromey.com>
6814
6815 * tui/tui-regs.c (tui_show_registers): Update.
6816 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6817 bool.
6818 * tui/tui-data.c (tui_data_window::clear_detail)
6819 (tui_data_window): Update.
6820
238eb706
TT
68212019-06-25 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-windata.c (tui_display_all_data)
6824 (tui_display_data_from_line, tui_display_data_from)
6825 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6826 Update.
6827 * tui/tui-regs.c (tui_last_regs_line_no)
6828 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6829 (tui_show_registers, tui_show_register_group)
6830 (tui_display_registers_from, tui_display_reg_element_at_line)
6831 (tui_display_registers_from_line, tui_check_register_values)
6832 (tui_reg_next, tui_reg_prev): Update.
6833 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6834 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6835 tui_data_window.
6836 (struct tui_win_info) <detail>: Remove. Add new fields from
6837 tui_data_info.
6838 (TUI_DATA_WIN): Add cast.
6839 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6840 (~tui_data_window): Simplify.
6841
81491aa0
TT
68422019-06-25 Tom Tromey <tom@tromey.com>
6843
6844 * tui/tui-layout.c (show_source_disasm_command)
6845 (show_source_or_disasm_and_command): Update.
6846 * tui/tui-io.c (update_cmdwin_start_line)
6847 (tui_redisplay_readline): Update.
6848 * tui/tui-data.h (struct tui_command_info): Remove.
6849 (struct tui_win_info) <detail>: Remove command_info member.
6850 (struct tui_data_window) <start_line>: New member, from
6851 tui_command_info.
6852 (TUI_CMD_WIN): Add casts.
6853
e6e41501
TT
68542019-06-25 Tom Tromey <tom@tromey.com>
6855
6856 * tui/tui-winsource.c (tui_update_source_window)
6857 (tui_refill_source_window)
6858 (tui_source_window_base::do_scroll_horizontal)
6859 (tui_update_breakpoint_info, tui_set_exec_info_content)
6860 (tui_show_exec_info_content, tui_erase_exec_info_content)
6861 (tui_clear_exec_info_content): Update.
6862 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6863 Update.
6864 * tui/tui-win.c (make_invisible_and_set_new_height)
6865 (make_visible_with_new_height): Update.
6866 * tui/tui-source.c (tui_set_source_content)
6867 (tui_show_symtab_source): Update.
6868 * tui/tui-layout.c (extract_display_start_addr)
6869 (show_source_disasm_command, show_data)
6870 (make_source_or_disasm_window)
6871 (show_source_or_disasm_and_command): Update.
6872 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6873 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6874 "gdbarch".
6875 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6876 to tui_source_window_base.
6877 (struct tui_win_info) <detail>: Remove source_info member.
6878 (struct tui_source_window_base) <has_locator>: Inline.
6879 Move contents from tui_source_info; rename has_locator member to
6880 m_has_locator.
6881 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6882 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6883 header file.
6884 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6885 Simplify.
6886 (tui_free_all_source_wins_content): Cast to
6887 tui_source_window_base.
6888
44f0e208
TT
68892019-06-25 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-win.c (make_invisible_and_set_new_height)
6892 (make_visible_with_new_height): Call has_locator method.
6893 * tui/tui-layout.c (show_source_disasm_command, show_data)
6894 (show_source_or_disasm_and_command): Update for bool change.
6895 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6896 (tui_win_info) <has_locator>: New method.
6897 (struct tui_source_window_base) <has_locator>: New method.
6898 (tui_win_has_locator): Don't declare.
6899 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6900 from tui_win_has_locator.
6901 (tui_source_window_base): Use false, not FALSE.
6902
7778b912
TT
69032019-06-25 Tom Tromey <tom@tromey.com>
6904
6905 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6906 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6907 clear_detail method directly.
6908 (tui_clear_win_detail): Remove.
6909
f83d391c
TT
69102019-06-25 Tom Tromey <tom@tromey.com>
6911
6912 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6913 "this", not TUI_DISASM_WIN.
6914
13446e05
TT
69152019-06-25 Tom Tromey <tom@tromey.com>
6916
6917 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6918 declare.
6919 * tui/tui-winsource.c
6920 (tui_source_window_base::do_scroll_horizontal): Rename from
6921 tui_horizontal_source_scroll.
6922 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6923 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6924 from tui_vertical_data_scroll.
6925 * tui/tui-win.h (tui_scroll): Don't declare.
6926 * tui/tui-win.c (tui_win_info::forward_scroll)
6927 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6928 (tui_win_info::right_scroll): Rename and update.
6929 (tui_scroll_forward_command, tui_scroll_backward_command)
6930 (tui_scroll_left_command, tui_scroll_right_command): Update.
6931 (tui_scroll): Remove.
6932 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6933 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6934 from tui_vertical_source_scroll.
6935 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6936 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6937 from tui_vertical_disassem_scroll.
6938 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6939 do_scroll_horizontal>: New methods.
6940 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6941 Likewise.
6942 (struct tui_source_window_base): Add do_scroll_horizontal.
6943 (struct tui_source_window, struct tui_disasm_window): Add
6944 do_scroll_vertical.
6945 (struct tui_data_window, struct tui_cmd_window): Add
6946 do_scroll_horizontal and do_scroll_vertical.
6947 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6948
5cf82909
TT
69492019-06-25 Tom Tromey <tom@tromey.com>
6950
6951 * tui/tui-data.h (struct tui_source_window_base): New struct.
6952 (struct tui_source_window): Derive from tui_source_window_base.
6953 (struct tui_disasm_window): New struct.
6954 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6955 from tui_source_window::clear_detail.
6956 (tui_source_window_base): Rename from tui_source_window.
6957 (~tui_source_window_base): Rename from ~tui_source_window.
6958 (tui_alloc_win_info): Create a tui_disasm_window.
6959
ee1d42d6
TT
69602019-06-25 Tom Tromey <tom@tromey.com>
6961
6962 * tui/tui-data.h (struct tui_source_window)
6963 (struct tui_data_window): Declare destructors.
6964 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6965 destructors.
6966 (tui_win_info): Simplify.
6967
b4eb2452
TT
69682019-06-25 Tom Tromey <tom@tromey.com>
6969
6970 * tui/tui-winsource.c (tui_display_main)
6971 (tui_update_source_windows_with_addr)
6972 (tui_update_all_breakpoint_info): Update.
6973 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6974 (new_height_ok, parse_scrolling_args): Update.
6975 * tui/tui-stack.c (tui_show_frame_info): Update.
6976 * tui/tui-data.h (struct tui_list): Remove.
6977 (tui_source_windows): Return a reference to a std::vector.
6978 * tui/tui-data.c (source_windows): Now a std::vector.
6979 (tui_source_windows): Change return type.
6980 (tui_clear_source_windows): Rewrite.
6981 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6982 (tui_free_all_source_wins_content): Rewrite.
6983
8761a91b
TT
69842019-06-25 Tom Tromey <tom@tromey.com>
6985
6986 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6987 (struct tui_data_window, struct tui_cmd_window): Declare
6988 clear_detail method.
6989 * tui/tui-data.c (tui_source_window::clear_detail)
6990 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6991 methods.
6992 (tui_clear_win_detail): Simplify.
6993
0ed69eda
TT
69942019-06-25 Tom Tromey <tom@tromey.com>
6995
6996 * tui/tui-layout.c (make_source_window, make_disasm_window)
6997 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6998 Return the new window.
6999 (show_source_disasm_command, show_data)
7000 (show_source_or_disasm_and_command): Update.
7001
82432e10
TT
70022019-06-25 Tom Tromey <tom@tromey.com>
7003
7004 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7005 parameter. Return the new window.
7006 (show_source_disasm_command): Update and remove NULL check.
7007 (show_source_or_disasm_and_command): Update.
7008
ec328aa5
TT
70092019-06-25 Tom Tromey <tom@tromey.com>
7010
7011 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7012
33b906ab
TT
70132019-06-25 Tom Tromey <tom@tromey.com>
7014
7015 * tui/tui-data.h (struct tui_win_info): Make constructor
7016 protected. Make destructor virtual. Add initializers.
7017 (tui_source_window, tui_data_window, tui_cmd_window): New
7018 classes.
7019 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7020 constructor. Add "type" parameter.
7021 (tui_source_window, tui_data_window, tui_cmd_window): New
7022 constructors.
7023 (tui_alloc_win_info): Instantiate the appropriate subclass.
7024
e7e11af4
TT
70252019-06-25 Tom Tromey <tom@tromey.com>
7026
7027 * tui/tui-win.c (tui_resize_all): Use delete.
7028 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7029 destructor.
7030 (tui_free_window): Don't declare.
7031 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7032 Update.
7033
6792b55e
TT
70342019-06-25 Tom Tromey <tom@tromey.com>
7035
7036 * tui/tui-data.h (struct tui_win_info): Add constructor.
7037 * tui/tui-data.c (tui_alloc_win_info): Use new.
7038 (tui_free_window): Use delete.
7039
f95675e1
TT
70402019-06-22 Tom Tromey <tom@tromey.com>
7041
7042 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7043 declare.
7044 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7045
5bff081c
TT
70462019-06-22 Tom Tromey <tom@tromey.com>
7047
7048 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7049 declare.
7050 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7051
47e3f474
TV
70522019-06-22 Tom de Vries <tdevries@suse.de>
7053
7054 * dwarf2read.c (create_addrmap_from_aranges)
7055 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7056 instead of '%zu'.
7057
fd5866f6
SM
70582019-06-21 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * dwarf2read.h (dwarf2_section_info_def): Remove.
7061 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7062 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7063 std::vector<dwarf2_section_info>.
7064 (struct dwo_file) <~dwo_file>: Remove.
7065 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7066 types field.
7067 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7068 (dwarf2_read_debug_names): Likewise.
7069 (create_debug_types_hash_table): Change parameter type to
7070 array_view, adjust code accordingly.
7071 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7072 (partial_die_info::fixup): Likewise.
7073 (determine_prefix): Likewise.
7074 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7075
fb1eb2f9
SM
70762019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7079 gdb_bfd_ref_ptr.
7080 <~dwo_file>: Remove call to gdb_bfd_unref.
7081 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7082 gdb_bfd_ref_ptr::get.
7083
51ac9db5
SM
70842019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7085
7086 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7087 type to htab_up.
7088 * dwarf2read.c (struct dwo_file): Initialize fields.
7089 <~dwo_file>: New.
7090 (free_dwo_file): Remove, move content to ~dwo_file.
7091 (struct dwo_file_deleter): Remove.
7092 (dwo_file_up>: Remove custom deleter.
7093 (free_dwo_files): Remove.
7094 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7095 dwo_files.
7096 (process_skeletonless_type_units): Call unique_ptr::get.
7097 (allocate_dwo_file_hash_table): Add deleter to created hash
7098 table. Change return type to htab_up.
7099 (lookup_dwo_file_slot): Don't memset dwo_file, call
7100 unique_ptr::get.
7101 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7102 (create_dwo_unit_in_dwp_v2): Likewise.
7103 (open_and_init_dwo_file): Likewise.
7104 (free_dwo_file_from_slot): Remove.
7105
dc4ccb6f
SM
71062019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7107
7108 * dwarf2read.h (struct dwarf2_section_info) <readin,
7109 is_virtual>: Change type to bool.
7110 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7111 true instead of 1.
7112
e6a1c5cb
TT
71132019-06-19 Tom Tromey <tom@tromey.com>
7114
7115 * tui/tui-data.h (tui_init_content_element): Don't declare.
7116
6f6ffbeb
TT
71172019-06-19 Tom Tromey <tom@tromey.com>
7118
7119 * tui/tui-data.h (tui_init_win_info): Don't declare.
7120
f23f598e
TV
71212019-06-19 Tom de Vries <tdevries@suse.de>
7122
7123 * dwarf2read.h (abstract_to_concrete): Change type to
7124 std::unordered_map<sect_offset, std::vector<sect_offset>,
7125 gdb::hash_enum<sect_offset>>.
7126
680e1bee
TT
71272019-06-19 Tom Tromey <tromey@adacore.com>
7128
7129 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7130 EVAL_AVOID_SIDE_EFFECTS specially.
7131
dcf37923
TT
71322019-06-19 Tom Tromey <tromey@adacore.com>
7133
7134 * source-cache.c (highlighter): New global.
7135 (source_cache::get_source_lines): Create a highlighter on demand.
7136
494986d5
AB
71372019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7138
7139 * defs.h (deprecated_interactive_hook): Delete declaration.
7140 * interps.c (clear_interpreter_hooks): Remove use of
7141 deprecated_interactive_hook.
7142 * top.c (deprecated_interactive_hook): Delete definition.
7143 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7144
3360b6e7
TV
71452019-06-18 Tom de Vries <tdevries@suse.de>
7146
7147 PR gdb/24515
7148 * dwarf2read.h (abstract_to_concrete): Change type from
7149 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7150 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7151 * dwarf2read.c (read_variable): Update.
7152 (dwarf2_fetch_die_loc_sect_off): Update.
7153
310b3441
TV
71542019-06-17 Tom de Vries <tdevries@suse.de>
7155
7156 PR gdb/24617
7157 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7158 accessing parent[parent_len - 1].
7159
ba9777be
PP
71602019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7161
7162 PR gdb/24364
7163 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7164 call dtrace_process_dof with NULL dof.
7165
2b9f6e89
TV
71662019-06-16 Tom de Vries <tdevries@suse.de>
7167
7168 PR gdb/24445
7169 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7170
431b3ead
TT
71712019-06-16 Tom Tromey <tom@tromey.com>
7172
7173 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7174 (make_all_visible): Use address of member.
7175
d04b44a1
TT
71762019-06-16 Tom Tromey <tom@tromey.com>
7177
7178 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7179 (tui_free_window, free_content, free_content_elements): Remove
7180 unnecessary cast.
7181 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7182 cast.
7183 * tui/tui-regs.c (tui_show_register_group)
7184 (tui_display_registers_from, tui_display_reg_element_at_line):
7185 Remove unnecessary cast.
7186
bf5142e7
AB
71872019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7188
7189 * linux-nat.c (normal_mask): Delete.
7190 (_initialize_linux_nat): Don't initialise normal_mask.
7191
c4973306
SM
71922019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 PR gdb/24445
7195 * dwarf-index-write.h (write_psymtabs_to_index): Add
7196 dwz_basename parameter.
7197 * dwarf-index-write.c (write_gdbindex): Move file writing to
7198 write_gdbindex_1. Change return type void.
7199 (assert_file_size): Move up, remove filename parameter.
7200 (write_gdbindex_1): New function.
7201 (write_debug_names): Change return type to void, call
7202 assert_file_size.
7203 (struct index_wip_file): New struct.
7204 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7205 file logic to index_wip_file. Write index for dwz file if
7206 needed.
7207 (save_gdb_index_command): Pass basename of dwz file, if present.
7208 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7209 build-id of dwz file, if present.
7210 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7211 (dwarf2_get_dwz_file): Likewise.
7212 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7213 (dwarf2_get_dwz_file): Likewise.
7214
395f9c91
TT
72152019-06-16 Tom Tromey <tom@tromey.com>
7216
7217 * coffread.c (process_coff_symbol): Use xstrdup.
7218 * value.c (create_internalvar): Use xstrdup.
7219
cafb3438
TT
72202019-06-16 Tom Tromey <tom@tromey.com>
7221
7222 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7223 * breakpoint.c (stopin_command, stopat_command)
7224 (until_break_command, decode_location_default): Remove unnecessary
7225 cast.
7226 * utils.c (subset_compare): Remove unnecessary cast.
7227 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7228 cast.
7229 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7230 cast.
7231 * infcmd.c (path_command): Remove unnecessary cast.
7232 * coffread.c (decode_type): Remove unnecessary cast.
7233 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7234 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7235 * tui/tui-stack.c (tui_show_locator_content)
7236 (tui_show_frame_info): Remove unnecessary cast.
7237 * tui/tui-win.c (tui_scroll_forward_command)
7238 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7239 (parse_scrolling_args): Remove unnecessary cast.
7240 * tui/tui-data.c (init_win_info, tui_del_window)
7241 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7242 (free_content_elements): Remove unnecessary cast.
7243 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7244 unnecessary cast.
7245 * tui/tui-source.c (tui_set_source_content)
7246 (tui_vertical_source_scroll): Remove unnecessary cast.
7247 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7248 cast.
7249 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7250 * tui/tui-regs.c (tui_display_registers_from)
7251 (tui_display_register): Remove unnecessary cast.
7252 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7253 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7254 (make_visible): Remove unnecessary cast.
7255 * tui/tui-winsource.c (tui_erase_source_content)
7256 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7257 unnecessary cast.
7258 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7259 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7260 * stabsread.c (read_type, read_array_type, read_range_type):
7261 Remove unnecessary cast.
7262 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7263 (parse_symbol, parse_type, upgrade_type, parse_external)
7264 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7265 unnecessary cast.
7266 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7267
730ead81
TT
72682019-06-16 Tom Tromey <tom@tromey.com>
7269
7270 * tui/tui-data.c (tui_alloc_generic_win_info)
7271 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7272 checks.
7273
584a927c
AB
72742019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7275 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * f-typeprint.c (f_print_type): Don't return early for not
7278 associated or not allocated types.
7279 (f_type_print_varspec_suffix): Add print_rank parameter and print
7280 ranks of array types in case they dangling.
7281 (f_type_print_base): Add print_rank parameter.
7282
30056ea0
AB
72832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * NEWS: Mention new MI commands.
7286 * break-catch-throw.c (enum exception_event_kind): Move to
7287 breakpoint.h.
7288 (print_mention_exception_catchpoint): Output text as a single
7289 message.
7290 (catch_exception_command_1): Rename to...
7291 (catch_exception_event): ...this, make non-static, update header
7292 command, and change some parameter types.
7293 (catch_catch_command): Update for changes to
7294 catch_exception_command_1.
7295 (catch_throw_command): Likewise.
7296 (catch_rethrow_command): Likewise.
7297 * breakpoint.c (enum exception_event_kind): Delete.
7298 * breakpoint.h (enum exception_event_kind): Moved here from
7299 break-catch-throw.c.
7300 (catch_exception_event): Declare.
7301 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7302 (mi_cmd_catch_throw): New function.
7303 (mi_cmd_catch_rethrow): New function.
7304 (mi_cmd_catch_catch): New function.
7305 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7306 'catch-catch' entries.
7307 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7308 (mi_cmd_catch_rethrow): Declare.
7309 (mi_cmd_catch_catch): Declare.
7310
ec8e2b6d
AB
73112019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7312
7313 * annotate.c (annotate_source_line): Change return type to void,
7314 update implementation to match.
7315 * annotate.h (annotate_source_line): Change return type to void,
7316 update header comment.
7317 * stack.c (print_frame_info): Don't change what frame information
7318 is printed based on whether annotations are on or not.
7319
0d3abd8c
AB
73202019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7321
7322 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7323 (annotate_source): Make static.
7324 (annotate_source_line): Moved from source.c and renamed from
7325 identify_source_line. Update the return type.
7326 * annotate.h (annotate_source): Delete declaration.
7327 (annotate_source_line): Declaration moved from source.h, and
7328 renamed from identify_source_line. Return type updated.
7329 * source.c (identify_source_line): Moved to annotate.c and renamed
7330 to annotate_source_line.
7331 (info_line_command): Remove check of annotation_level.
7332 * source.h (identify_source_line): Move declaration to annotate.h
7333 and rename to annotate_source_line.
7334 * stack.c: Add 'annotate.h' include.
7335 (print_frame_info): Remove check of annotation_level before
7336 calling annotate_source_line.
7337
00df30ae
AB
73382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7339
7340 * source-cache.c (source_cache::get_plain_source_lines): Use
7341 open_source_file_with_line_charpos instead of just
7342 open_source_file, remove call to find_source_lines.
7343 (source_cache::get_source_lines): Likewise.
7344 * source.c (find_source_lines): Make static.
7345 (get_filename_and_charpos): Renamed into...
7346 (open_source_file_with_line_charpos): ..this along with changes to
7347 return a scoped_fd, and some other minor clean ups.
7348 (identify_source_line): Use open_source_file_with_line_charpos.
7349 (search_command_helper): Use open_source_file_with_line_charpos
7350 instead of just open_source_file, remove call to
7351 find_source_lines.
7352 * source.h (open_source_file_with_line_charpos): Declare new
7353 function.
7354 (find_source_lines): Delete declaration.
7355
afda45a2
AB
73562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7357
7358 * source.c (get_filename_and_charpos): Remove fullname
7359 parameter.
7360 (identify_source_line): Update call to get_filename_and_charpos.
7361
0735b091
TT
73622019-06-14 Tom Tromey <tromey@adacore.com>
7363
7364 PR gdb/24502:
7365 * ui-style.h (skip_ansi_escape): Update comment.
7366 * ui-file.h (class no_terminal_escape_file): New class.
7367 * ui-file.c (no_terminal_escape_file::write)
7368 (no_terminal_escape_file::puts): New methods.
7369 * cli/cli-logging.c (handle_redirections): Use
7370 no_terminal_escape_file.
7371
52ce35e2
TT
73722019-06-14 Tom Tromey <tromey@adacore.com>
7373
7374 * NEWS: Move convenience variable news above Python news.
7375
73cc7272
TT
73762019-06-14 Tom Tromey <tom@tromey.com>
7377
7378 * gnulib: Move directory to top-level.
7379 * configure.ac: Don't configure gnulib.
7380 * configure: Rebuild.
7381 * common/common-defs.h: Use new path to gnulib.
7382 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7383 (GNULIB_H): Remove.
7384 (INCGNU): Look in new gnulib location.
7385 (HFILES_NO_SRCDIR): Remove gnulib files.
7386 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7387 (generated_files): Remove GNULIB_H.
7388 ($(LIBGNU), all-lib): Remove targets.
7389 (distclean): Don't mention GNULIB_BUILDDIR.
7390 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7391
f5686554
TT
73922019-06-14 Tom Tromey <tromey@adacore.com>
7393
7394 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7395 Warn if symbol file does not provide any symbols.
7396
a0c1ffed
TT
73972019-06-14 Tom Tromey <tromey@adacore.com>
7398
7399 * source.c (find_and_open_source): Respect basenames_may_differ.
7400
7c39e397
AB
74012019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * annotate.c (annotate_breakpoints_invalid): Make use of
7404 scoped_restore_terminal_state.
7405 (annotate_frames_invalid): Likewise.
7406
f411722c
TT
74072019-06-14 Tom Tromey <tromey@adacore.com>
7408
7409 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7410 allow assignment to an internalvar.
7411
4268ec18
TT
74122019-06-14 Tom Tromey <tromey@adacore.com>
7413
7414 * ada-lex.l: Allow "_" in attribute names.
7415
abdb711e
TT
74162019-06-14 Tom Tromey <tromey@adacore.com>
7417
7418 PR gdb/24653:
7419 * regcache.c (registers_changed): Don't call alloca.
7420 * top.c (execute_command): Don't call alloca.
7421
4c048731
PA
74222019-06-13 Pedro Alves <palves@redhat.com>
7423
7424 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7425 'expression'. When parsing an expression, error out if there's
7426 junk after "unlimited".
7427 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7428 (do_set_command): Adjust calls to is_unlimited_literal.
7429
66eb1ed3
PA
74302019-06-13 Pedro Alves <palves@redhat.com>
7431
7432 * compile/compile.c (make_compile_options_def_group): Add braces
7433 around array_view initializer.
7434 * thread.c (make_thread_apply_all_options_def_group)
7435 (make_thread_apply_all_options_def_group): Likewise.
7436
3345721a
PA
74372019-06-13 Pedro Alves <palves@redhat.com>
7438
7439 * NEWS (New commands): Mention "maint test-options
7440 require-delimiter", "maint test-options unknown-is-error", "maint
7441 test-options unknown-is-operand" and "maint show
7442 test-options-completion-result".
7443 (New command options, command completion): New section.
7444 (Completion improvements): New section.
7445 Mention that you can abbreviate "unlimited".
7446
6206060d
PA
74472019-06-13 Pedro Alves <palves@redhat.com>
7448
7449 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7450 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7451 * unittests/cli-utils-selftests.c (test_parse_flags)
7452 (test_parse_flags_qcs): Delete.
7453 (test_cli_utils): Don't call deleted functions.
7454
6665660a
PA
74552019-06-13 Pedro Alves <palves@redhat.com>
7456
7457 * thread.c: Include "cli/cli-option.h".
7458 (tp_array_compar_ascending): Global.
7459 (tp_array_compar): Delete function.
7460 (tp_array_compar_ascending, tp_array_compar_descending): New
7461 functions.
7462 (ascending_option_def, qcs_flag_option_def)
7463 (thr_qcs_flags_option_defs)
7464 (make_thread_apply_all_options_def_group)
7465 (make_thread_apply_options_def_group): New.
7466 (thread_apply_all_command): Use gdb::option::process_options.
7467 (thread_apply_command_completer)
7468 (thread_apply_all_command_completer): New.
7469 (thread_apply_command): Use gdb::option::process_options.
7470 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7471 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7472 to generate help text of "thread apply". Adjust "taas"'s help.
7473 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7474 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7475
f7e13587
PA
74762019-06-13 Pedro Alves <palves@redhat.com>
7477
7478 * thread.c (thread_apply_command): Check for invalid TID with
7479 isdigit instead of !isalpha.
7480
5d707134
PA
74812019-06-13 Pedro Alves <palves@redhat.com>
7482
7483 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7484 (validate_flags_qcs): New.
7485 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7486 (validate_flags_qcs): Declare.
7487 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7488 (make_frame_apply_options_def_group): New.
7489 (frame_apply_command_count): Process options with
7490 gdb::option::process_options.
7491 (frame_apply_completer): New.
7492 (frame_apply_level_completer, frame_apply_all_completer)
7493 (frame_apply_completer): New.
7494 (_initialize_stack): Update help of "frame apply", "frame apply
7495 level", "frame apply all" and "faas" to mention supported options
7496 and install command completers.
7497 * stack.h (frame_apply_all_completer): Declare.
7498 * thread.c: Include "stack.h".
7499 (tfaas_command): Add "--".
7500 (_initialize_thread): Update help "tfaas" to mention supported
7501 options and install command completer.
7502
272d4594
PA
75032019-06-13 Pedro Alves <palves@redhat.com>
7504
7505 * completer.c (complete_nested_command_line): New.
7506 (gdb_completion_word_break_characters_throw): Add assertion.
7507 * completer.h (complete_nested_command_line): Declare.
7508
90a1ef87
PA
75092019-06-13 Pedro Alves <palves@redhat.com>
7510
7511 * stack.c (parse_backtrace_qualifiers): New.
7512 (backtrace_command): Use it.
7513 (backtrace_command_completer): Complete on qualifiers.
7514
d4c16835
PA
75152019-06-13 Pedro Alves <palves@redhat.com>
7516
7517 * frame.c: Include "cli/cli-option.h.
7518 (user_set_backtrace_options): New.
7519 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7520 Delete.
7521 (get_prev_frame): Adjust.
7522 (boolean_option_def, uinteger_option_def)
7523 (set_backtrace_option_defs): New.
7524 (_initialize_frame): Adjust and use
7525 gdb::option::add_setshow_cmds_for_options to install "set
7526 backtrace past-main" and "set backtrace past-entry".
7527 * frame.h: Include "cli/cli-option.h".
7528 (struct frame_print_options): Forward declare.
7529 (print_frame_arguments_all, print_frame_arguments_scalars)
7530 (print_frame_arguments_none): Declare.
7531 (print_entry_values): Delete declaration.
7532 (struct frame_print_options, user_frame_print_options): New.
7533 (struct set_backtrace_options): New.
7534 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7535 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7536 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7537 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7538 (list_args_or_locals): Add frame_print_options parameter.
7539 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7540 * python/py-framefilter.c (enumerate_args): Pass down
7541 USER_FRAME_PRINT_OPTIONS.
7542 * stack.c: Include "cli/cli-option.h".
7543 (print_frame_arguments_all, print_frame_arguments_scalars)
7544 (print_frame_arguments_none): Declare.
7545 (print_raw_frame_arguments, print_entry_values): Delete.
7546 (user_frame_print_options): New.
7547 (boolean_option_def, enum_option_def, frame_print_option_defs):
7548 New.
7549 (struct backtrace_cmd_options): New.
7550 (bt_flag_option_def): New.
7551 (backtrace_command_option_defs): New.
7552 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7553 (print_frame_arg, read_frame_arg, print_frame_args)
7554 (print_frame_info, print_frame): Add frame_print_options parameter
7555 and use it.
7556 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7557 (backtrace_command_1): Add frame_print_options and
7558 backtrace_cmd_options parameters and use them.
7559 (make_backtrace_options_def_group): New.
7560 (backtrace_command): Process command options with
7561 gdb::option::process_options.
7562 (backtrace_command_completer): New.
7563 (_initialize_stack): Extend "backtrace"'s help to mention
7564 supported options. Install completer for "backtrace".
7565 Install some settings commands with add_setshow_cmds_for_options.
7566
2daf894e
PA
75672019-06-13 Pedro Alves <palves@redhat.com>
7568
7569 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7570 and that "set/show print raw frame-arguments" are now deprecated.
7571
7572 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7573 command.
7574 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7575 * stack.c (_initialize_stack): Install "set/show print
7576 raw-frame-arguments", and deprecate "set/show print raw
7577 frame-arguments".
7578 * valprint.c (_initialize_valprint): Deprecate "set/show print
7579 raw".
7580
e6ed716c
PA
75812019-06-13 Pedro Alves <palves@redhat.com>
7582
7583 * compile/compile.c (struct compile_options): New.
7584 (compile_flag_option_def, compile_command_option_defs)
7585 (make_compile_options_def_group): New.
7586 (compile_file_command): Handle options with
7587 gdb::option::process_options.
7588 (compile_file_command_completer): New function.
7589 (compile_code_command): Handle options with
7590 gdb::option::process_options.
7591 (compile_code_command_completer): New function.
7592 (_initialize_compiler): Install completers for "compile code" and
7593 "compile file". Mention available options in "compile code" and
7594 "compile code"'s help.
7595 * completer.c (advance_to_completion_word): New, factored out from
7596 ...
7597 (advance_to_expression_complete_word_point): ... this.
7598 (advance_to_filename_complete_word_point): New.
7599 * completer.h (advance_to_filename_complete_word_point): New
7600 declaration.
7601
7d8062de
PA
76022019-06-13 Pedro Alves <palves@redhat.com>
7603
7604 * compile/compile.c: Include "cli/cli-option.h".
7605 (compile_print_value): Scope data pointer is now a
7606 value_print_options pointer; adjust.
7607 (compile_print_command): Process options. Scope data pointer is
7608 now a value_print_options pointer; adjust.
7609 (_initialize_compile): Update "compile print"'s help to include
7610 supported options. Install a completer for "compile print".
7611 * cp-valprint.c (show_vtblprint, show_objectprint)
7612 (show_static_field_print): Delete.
7613 (_initialize_cp_valprint): Don't install "set print
7614 static-members", "set print vtbl", "set print object" here.
7615 * printcmd.c: Include "cli/cli-option.h" and
7616 "common/gdb_optional.h".
7617 (print_command_parse_format): Rework to fill in a
7618 value_print_options instead of a format_data.
7619 (print_value): Change parameter type from format_data pointer to
7620 value_print_options reference. Adjust.
7621 (print_command_1): Process options. Adjust to pass down a
7622 value_print_options.
7623 (print_command_completer): New.
7624 (_initialize_printcmd): Install print_command_completer as
7625 handle_brkchars completer for the "print" command. Update
7626 "print"'s help to include supported options.
7627 * valprint.c: Include "cli/cli-option.h".
7628 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7629 here from cp-valprint.c.
7630 (boolean_option_def, uinteger_option_def)
7631 (value_print_option_defs, make_value_print_options_def_group):
7632 New. Use gdb::option::add_setshow_cmds_for_options to install
7633 "set print elements", "set print null-stop", "set print repeats",
7634 "set print pretty", "set print union", "set print array", "set
7635 print address", "set print symbol", "set print array-indexes".
7636 * valprint.h: Include <string> and "cli/cli-option.h".
7637 (make_value_print_options_def_group): Declare.
7638 (print_value): Change parameter type from format_data pointer to
7639 value_print_options reference.
7640 (print_command_completer): Declare.
7641
9d0faba9
PA
76422019-06-13 Pedro Alves <palves@redhat.com>
7643
7644 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7645 (COMMON_SFILES): Add maint-test-settings.c.
7646 * cli/cli-decode.c (boolean_enums): New global, factored out from
7647 ...
7648 (add_setshow_boolean_cmd): ... here.
7649 * cli/cli-decode.h (boolean_enums): Declare.
7650 * cli/cli-option.c: New file.
7651 * cli/cli-option.h: New file.
7652 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7653 factored out from ...
7654 (parse_cli_boolean_value(const char *)): ... this.
7655 (is_unlimited_literal): Change parameter type to pointer to
7656 pointer. Adjust and advance ARG pointer.
7657 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7658 (parse_cli_var_enum): New, factored out from ...
7659 (do_set_command): ... this. Adjust.
7660 * cli/cli-setshow.h (parse_cli_boolean_value)
7661 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7662 (parse_cli_var_enum): Declare.
7663 * cli/cli-utils.c: Include "cli/cli-option.h".
7664 (get_ulongest): New.
7665 * cli/cli-utils.h (get_ulongest): Declare.
7666 (check_for_argument): New overloads.
7667 * maint-test-options.c: New file.
7668
2c722807
PA
76692019-06-13 Pedro Alves <palves@redhat.com>
7670
7671 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7672 parse a range if "-" is at the end of the string.
7673
dee7b4c8
PA
76742019-06-13 Pedro Alves <palves@redhat.com>
7675
7676 * cli/cli-setshow.c (parse_auto_binary_operation)
7677 (parse_cli_boolean_value): Don't allow "o".
7678
dca0f6c0
PA
76792019-06-13 Pedro Alves <palves@redhat.com>
7680
7681 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7682 * NEWS: Mention maint test-settings KIND.
7683 * maint-test-settings.c: New file.
7684
597bf39d
PA
76852019-06-13 Pedro Alves <palves@redhat.com>
7686
7687 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7688 completer.
7689 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7690 "set" completers.
7691
48c410fb
PA
76922019-06-13 Pedro Alves <palves@redhat.com>
7693
7694 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7695 after item.
7696
93bcb043
PA
76972019-06-13 Pedro Alves <palves@redhat.com>
7698
7699 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7700
cbba3ecd
PA
77012019-06-13 Pedro Alves <palves@redhat.com>
7702
7703 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7704 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7705 call.
7706 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7707 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7708 calls.
7709 (check_for_argument): Skip spaces after argument.
7710
b9a3f842
PA
77112019-06-13 Pedro Alves <palves@redhat.com>
7712
7713 * thread.c (thread_apply_command): Adjust TID parsing.
7714 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7715 detected before end of string.
7716 (tid_is_in_list): Error out if LIST is invalid.
7717
3844e605
PA
77182019-06-13 Pedro Alves <palves@redhat.com>
7719
7720 * completer.c (complete_line_internal_1): Rewind completion word
7721 point.
7722 (completion_tracker::advance_custom_word_point_by): Change
7723 parameter type to int.
7724 * completer.h (completion_tracker::advance_custom_word_point_by):
7725 Likewise.
7726
00b56dbe
PA
77272019-06-13 Pedro Alves <palves@redhat.com>
7728
7729 * completer.c (advance_to_completion_word): Handle delimiters.
7730
d106773e
PA
77312019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7732
7733 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7734
08f10e02
TT
77352019-06-11 Tom Tromey <tom@tromey.com>
7736
7737 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7738 (xmalloc_failed): Move to alloc.c.
7739 * alloc.c: New file.
7740 * Makefile.in (COMMON_SFILES): Add alloc.c.
7741
1c7fe951
TT
77422019-06-11 Tom Tromey <tom@tromey.com>
7743
7744 * nat/linux-waitpid.c: Don't include server.h.
7745 (linux_debug): Remove.
7746 (my_waitpid): Update.
7747
89549d7f
TT
77482019-06-11 Tom Tromey <tromey@adacore.com>
7749
7750 * infcall.c (_initialize_infcall): Remove trailing newline from
7751 help.
7752 * user-regs.c (_initialize_user_regs): Remove trailing newline
7753 from help.
7754 * typeprint.c (_initialize_typeprint): Remove trailing newline
7755 from help.
7756 * reverse.c (_initialize_reverse): Remove trailing newlines from
7757 help.
7758 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7759 from help.
7760 * language.c (add_set_language_command): Remove trailing newline
7761 from help.
7762 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7763 help.
7764 * disasm.c (_initialize_disasm): Remove trailing newline from
7765 help.
7766 * top.c (init_main): Remove trailing newline from help.
7767 * interps.c (_initialize_interpreter): Remove trailing newline
7768 from help.
7769 * btrace.c (_initialize_btrace): Remove trailing newlines from
7770 help.
7771 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7772 from help.
7773 * python/python.c (_initialize_python): Remove trailing newline
7774 from help.
7775 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7776 help.
7777 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7778 from help. Reformat some text.
7779 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7780 from help.
7781 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7782 newline from help.
7783
86108c13
TT
77842019-06-11 Tom Tromey <tromey@adacore.com>
7785
7786 * darwin-nat.c (darwin_decode_exception_message)
7787 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7788
a7067863
AB
77892019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * valops.c (value_slice): Check for not allocated or not
7792 associated values.
7793
9ab08412
TV
77942019-06-10 Tom de Vries <tdevries@suse.de>
7795
7796 PR gdb/24618
7797 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7798 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7799 invalid.
7800
f19e22e9
TV
78012019-06-10 Tom de Vries <tdevries@suse.de>
7802
7803 PR gdb/24611
7804 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7805 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7806
e99f9db0
TV
78072019-06-10 Tom de Vries <tdevries@suse.de>
7808
7809 PR symtab/24545
7810 * symtab.c (struct demangled_name_entry): Add language field.
7811 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7812 static minimal symbol". Set and use language field.
7813
9bf7038b
TT
78142019-06-10 Tom Tromey <tromey@adacore.com>
7815
7816 * ada-lang.c (_initialize_ada_language): Update help text.
7817
422186a9
TT
78182019-06-10 Tom Tromey <tromey@adacore.com>
7819
7820 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7821 with a newline.
7822 * guile/guile.c (handle_boot_error): Don't end warning with a
7823 newline.
7824 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7825 warning with a newline.
7826 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7827 newline.
7828 (s12z_frame_cache): Likewise.
7829 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7830 a newline.
7831 * solib-svr4.c (disable_probes_interface): Don't end warning with
7832 a newline.
7833 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7834 newline.
7835 * python/python.c (do_finish_initialization): Don't end warning
7836 with a newline.
7837
25ce02ee
TT
78382019-06-10 Tom Tromey <tom@tromey.com>
7839
7840 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7841 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7842 gdbpy_enter.
7843
caa429d8
TT
78442019-06-10 Tom Tromey <tromey@adacore.com>
7845
7846 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7847 data.
7848 (elf_new_init): Don't call stabsread_new_init.
7849 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7850 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7851 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7852
81873cc8
TV
78532019-06-10 Tom de Vries <tdevries@suse.de>
7854
7855 PR symtab/16264
7856 PR symtab/24517
7857 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7858
4fa0265e
РИ
78592019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7860
7861 * source.c (find_and_open_source): Also rewrite relative file
7862 names.
7863
1a3da2cd
AB
78642019-04-26 Amos Bird <amosbird@gmail.com>
7865
7866 * annotate.c (annotate_thread_exited): Add "thread-exited"
7867 annotation.
7868
3847a7bf
TT
78692019-06-06 Tom Tromey <tromey@adacore.com>
7870
7871 * maint.h (class scoped_command_stats): Use
7872 DISABLE_COPY_AND_ASSIGN.
7873 <print_time>: New method.
7874 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7875 print_time.
7876 (scoped_command_stats::print_time): New method.
7877
312617a3
AB
78782019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7879
7880 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7881 instructions of lengths 6 or 8 bytes.
7882
b02f78f9
PA
78832019-06-04 Pedro Alves <palves@redhat.com>
7884
7885 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7886
7887 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7888 * breakpoint.c (condition_completer): Likewise.
7889 * cli/cli-dump.c (scan_expression): Likewise.
7890 * common/filestuff.c (mkdir_recursive): Likewise.
7891 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7892 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7893 (gdb_abspath): Likewise.
7894 * compile/compile-cplus-types.c
7895 (compile_cplus_instance::decl_name): Likewise.
7896 * completer.c (complete_explicit_location):
7897 (signal_completer, reg_or_group_completer_1): Likewise.
7898 * cp-support.c (cp_remove_params_if_any): Likewise.
7899 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7900 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7901 * infcmd.c (strip_bg_char): Likewise.
7902 * linespec.c (copy_token_string): Likewise.
7903 * mi/mi-main.c (output_cores): Likewise.
7904 * psymtab.c (psymtab_search_name):
7905 * symfile.c (test_set_ext_lang_command): Likewise.
7906 * target.c (target_fileio_read_stralloc): Likewise.
7907 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7908 * value.c (complete_internalvar): Likewise.
7909
e1f2e1a2
CB
79102019-06-04 Christian Biesinger <cbiesinger@google.com>
7911
7912 Add objfile property to gdb.Type.
d3238f7d
PA
7913 * NEWS: Mention Python API addition.
7914 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7915
e664d728
PW
79162019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7917
7918 * NEWS: Mention the new set|show style [title|highlight].
7919 Mention changes to "show style", "help" and "apropos".
7920
66d8c862
PW
79212019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7922
7923 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7924 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7925 instead of print_help_for_command.
7926 (print_doc_of_command): New function.
7927 (help_list): Add 'apropos -v word' suggestion.
7928 (print_help_for_command): Style the command name using title style.
7929 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7930 (_initialize_cli_cmds): Describe -v in apropos_command help.
7931
9303eb2f
PW
79322019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7933
7934 * cli/cli-style.h (cli_style_option): Add name in constructor,
7935 add m_name class member, add constructor with intensity,
7936 add name class function.
7937 (cli_style_option::add_setshow_commands): Remove name argument.
7938 (highlight_style, title_style): New styles.
7939 * cli/cli-style.c (do_show): New function that shows a style
7940 characteristic styling the style name with itself.
7941 (set_style_name): New function.
7942 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7943 Update all callers according to the changes in cli/cli-style.h.
7944 * utils.h (fputs_highlighted): New function.
7945 * utils.c (fputs_highlighted): Likewise.
7946
e2c52041
PW
79472019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7948
7949 * NEWS: Mention new pipe command and new convenience variables.
7950
947d3946
PW
79512019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7952
7953 * cli/cli-cmds.c (pipe_command): New function.
7954 (_initialize_cli_cmds): Call add_com for pipe_command.
7955 Define | as an alias for pipe.
7956 (exit_status_set_internal_vars): New function.
7957 (shell_escape): Call exit_status_set_internal_vars.
7958 cli/cli-decode.c (find_command_name_length): Recognize | as
7959 a single character command.
7960
b8fd0918
PW
79612019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7962
7963 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7964 top.c (execute_command_to_ui_file): New function, mostly a copy
7965 of execute_command_to_string.
7966 (execute_command_to_string): Implement by calling
7967 execute_command_to_ui_file.
7968
68bb5386
PW
79692019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7970
7971 * top.h (saved_command_line): Remove declaration.
7972 * top.c (previous_saved_command_line, previous_repeat_arguments):
7973 New variables.
7974 (saved_command_line): Make static, define together with other
7975 'repeat variables'.
7976 (dont_repeat): Clear repeat_arguments.
7977 (repeat_previous, get_saved_command_line, save_command_line):
7978 New functions.
7979 (gdb_init): Initialize saved_command_line
7980 and previous_saved_command_line.
7981 * main.c (captured_main_1): Remove saved_command_line initialization.
7982 * event-top.c (handle_line_of_input): Update to use
7983 the new 'repeat' related functions instead of direct access to
7984 saved_command_line.
7985 * command.h (repeat_previous, get_saved_command_line,
7986 save_command_line): New declarations.
7987 (dont_repeat): Add comment.
7988
bfcdb852
TT
79892019-05-30 Tom Tromey <tromey@adacore.com>
7990
7991 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7992 Fix comment.
7993 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7994
0ef209f2
JV
79952019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7996
7997 PR cli/24587
7998 * completer.c (complete): Initialize variable word.
7999
955b06fa
SDJ
80002019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8001
8002 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8003 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8004 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8005 'body' is NULL to the outter 'if', protecting the '!is_define'
8006 situation as well.
8007
fa9c3fa0
TT
80082019-05-29 Tom Tromey <tromey@adacore.com>
8009
8010 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8011 (dwarf_unknown): New function.
8012 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8013 (dwarf_type_encoding_name): Use dwarf_unknown.
8014
4330d61d
TT
80152019-05-29 Tom Tromey <tromey@adacore.com>
8016
8017 PR c++/20020:
8018 * cp-valprint.c (cp_print_value_fields): Call
8019 cp_print_static_field inside "try".
8020
33a6bc35
TT
80212019-05-29 Tom Tromey <tromey@adacore.com>
8022
8023 * inflow.c (struct terminal_info): Add default operator=.
8024 * configure: Rebuild.
8025 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8026 -Wdeprecated-copy-dtor, -Wredundant-move.
8027
000439d5
TT
80282019-05-29 Tom Tromey <tromey@adacore.com>
8029
8030 * NEWS: Add entry.
8031 * infcmd.c (print_return_value_1): Handle finish_print
8032 option.
8033 (show_print_finish): New function.
8034 (_initialize_infcmd): Add "set/show print finish" commands.
8035 * valprint.c (user_print_options): Initialize new member.
8036 * valprint.h (struct value_print_options) <finish_print>: New
8037 member.
8038
c0e70c62
TT
80392019-05-28 Tom Tromey <tromey@adacore.com>
8040
8041 * ada-lang.c (ada_remove_Xbn_suffix)
8042 (find_old_style_renaming_symbol)
8043 (parse_old_style_renaming): Remove.
8044 (ada_find_renaming_symbol): Don't call
8045 find_old_style_renaming_symbol.
8046 (ada_is_renaming_symbol): Rename from
8047 ada_find_renaming_symbol. Remove "block" parameter. Return
8048 bool. Now static.
8049 (ada_read_var_value): Update and simplify.
8050 * ada-exp.y (write_var_or_type): Remove old code.
8051
766f8836
AH
80522019-05-28 Alan Hayward <alan.hayward@arm.com>
8053
68255adc 8054 PR gdb/25010
766f8836
AH
8055 * event-top.c: Remove include comment.
8056 * inflow.c (class scoped_ignore_sigttou): Move from here...
8057 * inflow.h (class scoped_ignore_sigttou): ...to here.
8058 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8059 * top.c: Remove include comment.
8060
eb41253a
TT
80612019-05-27 Tom Tromey <tom@tromey.com>
8062
8063 * NEWS: Fix typo.
8064
4ca51187
TT
80652019-05-22 Tom Tromey <tromey@adacore.com>
8066
8067 * target.c (target_follow_exec): Constify parameter.
8068 * target-delegates.c: Rebuild.
8069 * remote.c (remote_target::follow_exec): Constify parameter.
8070 * infrun.c (follow_exec): Constify parameter.
8071 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8072 (target_follow_exec): Likewise.
8073
8fca4da0
AH
80742019-05-22 Alan Hayward <alan.hayward@arm.com>
8075
8076 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8077 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8078
b7060614
AH
80792019-05-22 Alan Hayward <alan.hayward@arm.com>
8080
8081 * NEWS: Add debugredirect and testsuite sections.
8082
0a5954bd
SC
80832019-05-22 Simon Cook <simon.cook@embecosm.com>
8084
8085 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8086 target descriptions using exclusively floating point register name
8087 aliases.
8088
dc42e902
AB
80892019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8090
8091 PR gdb/18644:
8092 * f-lang.c (build_fortran_types): Handle the case where
8093 gdbarch_floatformat_for_type returns a nullptr.
8094
fb7806c7
TV
80952019-05-21 Tom de Vries <tdevries@suse.de>
8096
8097 PR cli/24587
8098 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8099
34d11c68
AB
81002019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 PR gdb/18644:
8103 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8104 16-byte floats.
8105 * i386-tdep.c (i386_floatformat_for_type): Use
8106 floatformats_ia64_quad for the 16-byte floating point component
8107 within a fortran 32-byte complex number.
8108
122cf0f2
AB
81092019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8110
8111 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8112 delete default constructor.
8113 (find_partial_die): Update to return const struct.
8114 (partial_die_parent_scope): Move variable declaration into scope
8115 of its use and change its type to auto.
8116 (guess_partial_die_structure_name): Likewise.
8117 (partial_die_info::fixup): Likewise.
8118
33d0e35a
TT
81192019-05-17 Tom Tromey <tromey@adacore.com>
8120
8121 * source.c (find_and_open_source): Remove cast.
8122
a45575b0
TT
81232019-05-17 Tom Tromey <tromey@adacore.com>
8124
8125 * annotate.c (annotate_source): Make "filename" const.
8126 * annotate.h (annotate_source): Use const.
8127
81f47ac2
AH
81282019-05-17 Alan Hayward <alan.hayward@arm.com>
8129
8130 * disasm.c (set_disassembler_options): Send errors to stderr.
8131
ca1285d1
AH
81322019-05-17 Alan Hayward <alan.hayward@arm.com>
8133
8134 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8135 (cli_interp_base::set_logging): Check debug_redirect.
8136 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8137 * cli/cli-logging.c (debug_redirect): Add static variable.
8138 (pop_output_files): Add default param.
8139 (handle_redirections): Print debug setting.
8140 (show_logging_command): Likewise.
8141 (_initialize_cli_logging): Add debugredirect command.
8142 * interps.c (current_interp_set_logging): Add debug_redirect
8143 parameter.
8144 * interps.h (set_logging): Add debug_redirect parameter.
8145 (current_interp_set_logging): Likewise.
8146 * mi/mi-common.h: Likewise.
8147 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8148
81492019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8150 Tom Tromey <tromey@adacore.com>
8151
8152 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8153 directly.
8154 * cli/cli-interp.h (make_logging_output): Remove declaration.
8155 * cli/cli-logging.c (make_logging_output): Remove function.
8156 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8157 directly.
8158 * ui-file.c (tee_file::tee_file): Remove bools.
8159 (tee_file::~tee_file): Remove deletes.
8160 * ui-file.h (tee_file): Remove bools.
8161
26648588
JV
81622019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8163
8164 * mi/mi-cmds.h (mi_cmd_complete): New function.
8165 * mi/mi-main.c (mi_cmd_complete): Likewise.
8166 * mi/mi-cmds.c: Define new MI command -complete.
8167 * NEWS: Mention new -complete command.
8168
6e035501
JV
81692019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8170
8171 * completer.h (complete): New function.
8172 * completer.c (complete): Likewise.
8173 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8174 function defined in completer.h.
8175
7d0e2ece
JV
81762019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8177
e79be6e5 8178 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8179
fb816e8b
TV
81802019-05-17 Tom de Vries <tdevries@suse.de>
8181
8182 PR gdb/24094
8183 * dwarf2read.c (struct cu_partial_die_info): New struct.
8184 (find_partial_die): Return cu_partial_die_info.
8185 (partial_die_parent_scope, guess_partial_die_structure_name)
8186 (partial_die_info::fixup): Handle new return type of find_partial_die.
8187
677052f2
SDJ
81882019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8189
a1726c38 8190 PR breakpoints/24541
677052f2
SDJ
8191 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8192 "std::string", simplifying the algorithm.
8193
f3da9116
SDJ
81942019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8195
8196 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8197 (stap_static_probe_ops::get_probes): Likewise.
8198
f1bb75ab
SDJ
81992019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8200
8201 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8202 '-')" and "else if".
8203 (stap_parse_single_operand): Join checks for
8204 "gdbarch_stap_parse_special_token_p" and
8205 "gdbarch_stap_parse_special_token" in the same "if" statement.
8206 Invert check when verifying for operation on register
8207 displacement.
8208
3ca58cde
SDJ
82092019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8210
8211 * stap-probe.c (stap_get_opcode): Update comment.
8212 (stap_get_expected_argument_type): Likewise.
8213 (handle_stap_probe): Likewise.
8214
af2d9bee
SDJ
82152019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8216
8217 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8218 return type to 'bool'. Adjust comment. Use 'bool' when
8219 appropriate.
8220 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8221 * stap-probe.c (stap_parse_argument_1): Likewise.
8222 (stap_is_operator): Likewise.
8223 (stap_is_generic_prefix): Likewise.
8224 (stap_is_register_prefix): Likewise.
8225 (stap_is_register_indirection_prefix): Likewise.
8226 (stap_is_integer_prefix): Likewise.
8227 (stap_generic_check_suffix): Likewise.
8228 (stap_check_integer_suffix): Likewise.
8229 (stap_check_register_suffix): Likewise.
8230 (stap_check_register_indirection_suffix): Likewise.
8231 (stap_parse_register_operand): Likewise.
8232 (stap_parse_single_operand): Likewise.
8233 (stap_parse_argument_1): Likewise.
8234 (stap_probe::get_argument_count): Likewise.
8235 (stap_is_operator): Likewise.
8236
61c9c421
TT
82372019-05-16 Tom Tromey <tromey@adacore.com>
8238
8239 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8240 keyword to foreach.
8241
9ddc1af1
SM
82422019-05-15 Simon Marchi <simon.marchi@efficios.com>
8243
8244 * linux-thread-db.c (try_thread_db_load_1): Change return type
8245 to bool.
8246 (try_thread_db_load): Likewise.
8247 (try_thread_db_load_from_pdir_1): Likewise.
8248 (try_thread_db_load_from_pdir): Likewise.
8249 (try_thread_db_load_from_sdir): Likewise.
8250 (try_thread_db_load_from_dir): Likewise.
8251 (thread_db_load_search): Likewise.
8252 (has_libpthread): Likewise.
8253 (thread_db_load): Likewise.
8254
7bede828
SDJ
82552019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8256
8257 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8258 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8259 NULL, and complain/return if that's the case.
8260
c5358db4
JD
82612019-05-15 John Darrington <john@darrington.wattle.id.au>
8262
8263 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8264 (advance, posn, abstract_read_memory): New functions.
8265 [struct mem_read_abstraction]: New struct.
8266 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8267
c408a94f
TT
82682019-05-14 Tom Tromey <tromey@adacore.com>
8269
8270 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8271 value is not lval_memory.
8272
e7bd7fba
TT
82732019-05-14 Tom Tromey <tromey@adacore.com>
8274
8275 * solib.c (info_sharedlibrary_command): Style the file name.
8276
a6d0f249
AH
82772019-05-14 Alan Hayward <alan.hayward@arm.com>
8278
8279 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8280 (aarch64_vnv_type): Likewise.
8281 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8282 * common/tdesc.c: Likewise.
8283 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8284 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8285 * features/aarch64-fpu.xml: Add ieee half view.
8286 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8287 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8288 * gdbtypes.h (struct builtin_type): Likewise.
8289 (struct objfile_type): Likewise.
8290
66b8bb74
SM
82912019-05-12 Paul Naert <paul.naert@polymtl.ca>
8292
8293 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8294 typo.
8295 * location.h (string_to_event_location): Likewise.
8296
21c219fd
JB
82972019-05-11 Joel Brobecker <brobecker@adacore.com>
8298
8299 GDB 8.3 released.
8300
13674803
SM
83012019-05-10 Simon Marchi <simon.marchi@efficios.com>
8302
8303 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8304 New variable declaration.
8305 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8306 New variable.
8307 (print_one_breakpoint): Use ui_out::test_flags and new global
8308 variable to compute use_fixed_output.
8309 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8310 Remove.
8311 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8312 (mi_multi_location_breakpoint_output_fixed): Remove.
8313 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8314 new variable.
8315 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8316 fix_multi_location_breakpoint_output flag if version >= 3.
8317 * ui-out.h (enum ui_out_flag)
8318 <fix_multi_location_breakpoint_output>: New enumerator.
8319
a9eac7f9
SM
83202019-05-10 Simon Marchi <simon.marchi@efficios.com>
8321
8322 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8323
71bed2db
TT
83242019-05-10 Tom Tromey <tromey@adacore.com>
8325
8326 * ada-lang.c (catch_ada_completer): New function.
8327 (_initialize_ada_language): Use it.
8328
24c54127
TT
83292019-05-10 Tom Tromey <tromey@adacore.com>
8330
8331 * thread.c (print_thread_info): Make "requested_threads" const.
8332 * gdbthread.h (print_thread_info): Make "requested_threads"
8333 const.
8334 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8335 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8336
7a102139
TT
83372019-05-08 Tom Tromey <tom@tromey.com>
8338
8339 * gdbtypes.c (objfile_type_data): Change type.
8340 (objfile_type, _initialize_gdbtypes): Update.
8341
924d79e2
TT
83422019-05-08 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8345 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8346 (_initialize_dwarf2_frame): Update.
8347
4c58e337
TT
83482019-05-08 Tom Tromey <tom@tromey.com>
8349
8350 * objc-lang.c (objc_objfile_data): Change type.
8351 (find_methods): Update.
8352 (_initialize_objc_lang): Remove.
8353
d772d2ab
TT
83542019-05-08 Tom Tromey <tom@tromey.com>
8355
8356 * stabsread.c (rs6000_builtin_type_data): Change type.
8357 (rs6000_builtin_type, _initialize_stabsread): Update.
8358
d11d83f4
TT
83592019-05-08 Tom Tromey <tom@tromey.com>
8360
8361 * mips-tdep.c (mips_pdr_data): Remove.
8362 (_initialize_mips_tdep): Update.
8363
9a73f0ad
TT
83642019-05-08 Tom Tromey <tom@tromey.com>
8365
8366 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8367 (hppa_init_objfile_priv_data, read_unwind_info)
8368 (find_unwind_entry, _initialize_hppa_tdep): Update.
8369
8127a2fa
TT
83702019-05-08 Tom Tromey <tom@tromey.com>
8371
8372 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8373 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8374 on obstack.
8375 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8376
91d3055d
TT
83772019-05-08 Tom Tromey <tom@tromey.com>
8378
8379 * mdebugread.c (basic_type_data): Change type.
8380 (basic_type, _initialize_mdebugread): Update.
8381
31930bd3
TT
83822019-05-08 Tom Tromey <tom@tromey.com>
8383
8384 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8385
bdb3ed9e
TT
83862019-05-08 Tom Tromey <tom@tromey.com>
8387
8388 * nto-tdep.c (nto_inferior_data_reg): Change type.
8389 (nto_inferior_data): Update.
8390 (nto_inferior_data_cleanup, nto_new_inferior_data)
8391 (_initialize_nto_tdep): Remove.
8392 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8393
f37b313d
TT
83942019-05-08 Tom Tromey <tom@tromey.com>
8395
8396 * ada-lang.c (struct ada_inferior_data): Add initializers.
8397 (ada_inferior_data): Change type.
8398 (ada_inferior_data_cleanup): Remove.
8399 (get_ada_inferior_data, ada_inferior_exit)
8400 (struct ada_pspace_data): Add initializers, destructor.
8401 (ada_pspace_data_handle): Change type.
8402 (get_ada_pspace_data): Update.
8403 (ada_pspace_data_cleanup): Remove.
8404
24699405
TT
84052019-05-08 Tom Tromey <tom@tromey.com>
8406
8407 * coffread.c (struct coff_symfile_info): Add initializers.
8408 (coff_objfile_data_key): Move lower. Change type.
8409 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8410 Update.
8411 (coff_free_info): Remove.
8412
d4e05d2f
TT
84132019-05-08 Tom Tromey <tom@tromey.com>
8414
8415 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8416 (fbsd_pspace_data_handle): Move lower. Change type.
8417 (get_fbsd_pspace_data): Update.
8418 (fbsd_pspace_data_cleanup): Remove.
8419 (_initialize_fbsd_tdep): Update.
8420
14ef6690
TT
84212019-05-08 Tom Tromey <tom@tromey.com>
8422
8423 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8424 (get_ada_tasks_pspace_data): Update.
8425 (ada_tasks_pspace_data_cleanup): Remove.
8426 (_initialize_tasks): Update.
8427 (ada_tasks_inferior_data_handle): Change type.
8428 (get_ada_tasks_inferior_data): Update.
8429 (ada_tasks_inferior_data_cleanup): Remove.
8430 (struct ada_tasks_pspace_data): Add initializers.
8431
814cf43a
TT
84322019-05-08 Tom Tromey <tom@tromey.com>
8433
8434 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8435 * symfile-debug.c (debug_sym_get_probes): Change type.
8436 * stap-probe.c (handle_stap_probe):
8437 (stap_static_probe_ops::get_probes): Change type.
8438 * probe.h (class static_probe_ops) <get_probes>: Change type.
8439 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8440 (parse_probes_in_pspace): Update.
8441 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8442 Update.
8443 (any_static_probe_ops::get_probes): Change type.
8444 * elfread.c (elfread_data): New typedef.
8445 (probe_key): Change type.
8446 (elf_get_probes): Likewise. Update.
8447 (probe_key_free): Remove.
8448 (_initialize_elfread): Update.
8449 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8450 Change type.
8451 (dtrace_process_dof_probe, dtrace_process_dof)
8452 (dtrace_static_probe_ops::get_probe): Change type.
8453
02dc647e
TT
84542019-05-08 Tom Tromey <tom@tromey.com>
8455
8456 * xcoffread.c (struct xcoff_symfile_info): Rename from
8457 coff_symfile_info. Add initializers.
8458 (xcoff_objfile_data_key): Move lower. Change type.
8459 (XCOFF_DATA): Rewrite.
8460 (xcoff_free_info): Remove.
8461 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8462 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8463 (xcoff_initial_scan): Update.
8464
09232438
TT
84652019-05-08 Tom Tromey <tom@tromey.com>
8466
8467 * solib-svr4.c (struct svr4_info): Add initializers and
8468 destructor.
8469 <probes_table>: Now an htab_up.
8470 (solib_svr4_pspace_data): Change type.
8471 (free_probes_table): Simplify.
8472 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8473 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8474 (probes_table_remove_objfile_probes, register_solib_event_probe)
8475 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8476 (_initialize_svr4_solib): Update.
8477
7b4a314f
TT
84782019-05-08 Tom Tromey <tom@tromey.com>
8479
8480 * remote.c (remote_pspace_data): Change type.
8481 (remote_pspace_data_cleanup): Remove.
8482 (get_remote_exec_file, set_pspace_remote_exec_file)
8483 (_initialize_remote): Update.
8484
51d3063a
TT
84852019-05-08 Tom Tromey <tom@tromey.com>
8486
8487 * breakpoint.c (breakpoint_objfile_key): Change type.
8488 (get_breakpoint_objfile_data): Update.
8489 (free_breakpoint_objfile_data): Remove.
8490 (_initialize_breakpoint): Update.
8491
89fb8848
TT
84922019-05-08 Tom Tromey <tom@tromey.com>
8493
8494 * linux-tdep.c (struct linux_info): Add initializers.
8495 (linux_inferior_data): Move. Change type.
8496 (invalidate_linux_cache_inf): Update.
8497 (linux_inferior_data_cleanup): Remove.
8498 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8499
e9b89e2d
TT
85002019-05-08 Tom Tromey <tom@tromey.com>
8501
8502 * auxv.c (auxv_inferior_data): Move. Change type.
8503 (auxv_inferior_data_cleanup): Remove.
8504 (invalidate_auxv_cache_inf): Rewrite.
8505 (get_auxv_inferior_data, _initialize_auxv): Update.
8506
8c42777c
TT
85072019-05-08 Tom Tromey <tom@tromey.com>
8508
8509 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8510 (symfile_debug_objfile_data_key): Change type.
8511 (symfile_debug_installed, debug_qf_has_symbols)
8512 (debug_qf_find_last_source_symtab)
8513 (debug_qf_forget_cached_source_info)
8514 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8515 (debug_qf_print_stats, debug_qf_dump)
8516 (debug_qf_expand_symtabs_for_function)
8517 (debug_qf_expand_all_symtabs)
8518 (debug_qf_expand_symtabs_with_fullname)
8519 (debug_qf_map_matching_symbols)
8520 (debug_qf_expand_symtabs_matching)
8521 (debug_qf_find_pc_sect_compunit_symtab)
8522 (debug_qf_map_symbol_filenames)
8523 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8524 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8525 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8526 (debug_sym_read_linetable, debug_sym_relocate): Update.
8527 (symfile_debug_free_objfile): Remove.
8528 (install_symfile_debug_logging, _initialize_symfile_debug):
8529 Update.
8530
5bfd760d
TT
85312019-05-08 Tom Tromey <tom@tromey.com>
8532
8533 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8534 allocate_on_obstack.
8535 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8536 (get_dwarf2_per_objfile): Update.
8537 (set_dwarf2_per_objfile): Remove.
8538 (dwarf2_has_info, dwarf2_get_section_info): Update.
8539 (dwarf2_free_objfile): Remove.
8540 (_initialize_dwarf2_read): Update.
8541
e85e19b4
TT
85422019-05-08 Tom Tromey <tom@tromey.com>
8543
8544 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8545 initializers.
8546 <unsupported_script_warning_printed,
8547 script_not_found_warning_printed>: Now bool.
8548 (auto_load_pspace_data): Change type.
8549 (~auto_load_pspace_info): Rename from
8550 auto_load_pspace_data_cleanup.
8551 (get_auto_load_pspace_data, init_loaded_scripts_info)
8552 (clear_section_scripts, maybe_print_unsupported_script_warning)
8553 (maybe_print_script_not_found_warning, _initialize_auto_load):
8554 Update.
8555
f6aa7436
TT
85562019-05-08 Tom Tromey <tom@tromey.com>
8557
8558 * objfiles.c (objfile_pspace_info): Add destructor and
8559 initializers.
8560 (objfiles_pspace_data): Change type.
8561 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8562 (get_objfile_pspace_data): Update.
8563 (objfiles_bfd_data): Change type.
8564 (get_objfile_bfd_data): Update.
8565 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8566
6ae614f6
TT
85672019-05-08 Tom Tromey <tom@tromey.com>
8568
8569 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8570 Change type.
8571 (get_catch_syscall_inferior_data): Update.
8572 (catch_syscall_inferior_data_cleanup): Remove.
8573 (_initialize_break_catch_syscall): Update.
8574
6509b8eb
TT
85752019-05-08 Tom Tromey <tom@tromey.com>
8576
8577 * inflow.c (struct terminal_info): Add destructor and
8578 initializers.
8579 (inflow_inferior_data): Change type.
8580 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8581 (get_inflow_inferior_data, inflow_inferior_exit)
8582 (swap_terminal_info, _initialize_inflow): Update.
8583
35632941
TT
85842019-05-08 Tom Tromey <tom@tromey.com>
8585
8586 * target-dcache.c (target_dcache_cleanup): Remove.
8587 (target_dcache_aspace_key): Change type.
8588 (target_dcache_init_p, target_dcache_invalidate)
8589 (target_dcache_get, target_dcache_get_or_init)
8590 (_initialize_target_dcache): Update.
8591 * dcache.h (struct dcache_deleter): New.
8592
3017b94d
TT
85932019-05-08 Tom Tromey <tom@tromey.com>
8594
8595 * symtab.c (struct symbol_cache): Add destructor and
8596 initializers.
8597 (symbol_cache_key): Move. Change type.
8598 (make_symbol_cache, free_symbol_cache): Remove.
8599 (get_symbol_cache): Update.
8600 (symbol_cache_cleanup): Remove.
8601 (ALL_PSPACES, symbol_cache_flush)
8602 (maintenance_print_symbol_cache)
8603 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8604 Update.
8605
a32ad8c5
TT
86062019-05-08 Tom Tromey <tom@tromey.com>
8607
8608 * symtab.c (struct main_info): Add destructor and initializers.
8609 (main_progspace_key): Move. Change type.
8610 (get_main_info): Update.
8611 (main_info_cleanup): Remove.
8612 (_initialize_symtab): Update.
8613
5f6e90a0
TT
86142019-05-08 Tom Tromey <tom@tromey.com>
8615
8616 * registry.h (DECLARE_REGISTRY): Define the _key class.
8617
1bd0c6e4
AB
86182019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8619
8620 * NEWS: Merge two 'New commands' sections.
8621
2228ef77
XR
86222019-05-08 Joel Brobecker <brobecker@adacore.com>
8623
8624 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8625 parameter and use Ada language definition instead.
8626 (ada_val_print_ptr): Remove unused language parameter.
8627 (ada_val_print_num): Remove language parameter and use Ada language
8628 definition instead.
8629 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8630 parameter.
8631 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8632 parameter and use Ada language definition instead.
8633 (ada_val_print_1): Update all ada_val_print_xxx calls.
8634 Remove language parameter.
8635 (ada_val_print): Update ada_val_print_1 call.
8636
60fcc1c3
TT
86372019-05-08 Tom Tromey <tromey@adacore.com>
8638
8639 * remote.c (remote_hw_watchpoint_limit)
8640 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8641 Now static.
8642
ed2b7c17
TT
86432019-05-08 Tom Tromey <tromey@adacore.com>
8644
8645 * maint.c (_initialize_maint_cmds): Move initialization code to
8646 remote.c.
8647 (watchdog, show_watchdog): Move to remote.c.
8648 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8649 "watchdog" static.
8650 (_initialize_remote): Move initialization code from maint.c.
8651 * defs.h (watchdog): Don't declare.
8652
b0be6c91
TT
86532019-05-08 Tom Tromey <tromey@adacore.com>
8654
8655 * tui/tui-interp.c: Include main.h.
8656 * interps.c: Include main.h.
8657 * main.h (interpreter_p): Declare.
8658 * defs.h (interpreter_p): Don't declare.
8659
587ee17b
TT
86602019-05-08 Tom Tromey <tromey@adacore.com>
8661
8662 * dwarf2loc.c: Include dwarf2read.h.
8663 * defs.h (read_unsigned_leb128): Don't declare.
8664 * dwarf2read.h (read_unsigned_leb128): Declare.
8665
ca1df239
TT
86662019-05-08 Tom Tromey <tromey@adacore.com>
8667
8668 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8669 method.
8670
99f20f08
TT
86712019-05-08 Tom Tromey <tromey@adacore.com>
8672
8673 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8674 when no wrap column is set.
8675
80e55b13
TT
86762019-05-08 Tom Tromey <tromey@adacore.com>
8677
8678 * c-lang.c (c_get_string): Handle non-C-style arrays.
8679
9d3421af
TT
86802019-05-08 Tom Tromey <tromey@adacore.com>
8681
8682 * typeprint.c (print_offset_data::update): Print the bit offset,
8683 not the number of bits remaining.
8684
844333e2
TT
86852019-05-08 Tom Tromey <tromey@adacore.com>
8686
8687 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8688 padding at end of comment.
8689
988915ee
TT
86902019-05-08 Tom Tromey <tromey@adacore.com>
8691
8692 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8693 Compare main types.
8694
26bfd823
TT
86952019-05-06 Tom Tromey <tom@tromey.com>
8696
8697 * common/scoped_mmap.c: Include common-defs.h.
8698 * common/scoped_mmap.h: Don't include config.h.
8699
89055eaa
TT
87002019-05-04 Tom Tromey <tom@tromey.com>
8701
8702 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8703 (struct aarch64_call_info): Add initializers.
8704 <si>: Now a std::vector.
8705 (pass_on_stack, aarch64_push_dummy_call): Update.
8706
5da01df5
TT
87072019-05-04 Simon Marchi <simon.marchi@efficios.com>
8708 Tom Tromey <tom@tromey.com>
8709
8710 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8711 (ppc_threads): Now a std::vector. Now static.
8712 (hwdebug_find_thread_points_by_tid)
8713 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8714 Update.
8715
fbdf05a1
TT
87162019-05-04 Tom Tromey <tom@tromey.com>
8717
8718 * arc-tdep.c (arc_tdesc_init): Return bool.
8719
06d16ec9
TT
87202019-05-04 Tom Tromey <tom@tromey.com>
8721
8722 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8723 Use gdb_assert_not_reached.
8724
9c056022
TT
87252019-05-04 Tom Tromey <tom@tromey.com>
8726
8727 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8728 "false".
8729
fa9c2a59
TT
87302019-05-04 Tom Tromey <tom@tromey.com>
8731
8732 * arc-tdep.c (arc_tdesc_init): Use bool.
8733
e2eb806a
TT
87342019-05-04 Tom Tromey <tom@tromey.com>
8735
8736 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8737
6fe87677
TT
87382019-05-04 Tom Tromey <tom@tromey.com>
8739
8740 * cli/cli-cmds.c (valid_command_p): Return bool.
8741
7f008c9e
TT
87422019-05-04 Tom Tromey <tom@tromey.com>
8743
8744 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8745 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8746
b6484282
RT
87472019-05-04 Raul Tambre <raul@tambre.ee>
8748
8749 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8750 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8751 operator for comparison.
8752
af97b416
TT
87532019-05-04 Tom Tromey <tom@tromey.com>
8754
8755 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8756 (lookup_partial_symbol, print_partial_symbols)
8757 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8758 (psymbol_compare): Update.
8759 (add_psymbol_to_bcache): Clear the entire psymbol.
8760 (maintenance_check_psymtabs): Update.
8761 * psympriv.h (struct partial_symbol): Don't derive from
8762 general_symbol_info.
8763 <obj_section, unrelocated_address, address,
8764 set_unrelocated_address>: Update.
8765 <ginfo>: New member.
8766 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8767 (debug_names::write_psymbols): Update.
8768
9d6d4be8
TV
87692019-05-04 Tom de Vries <tdevries@suse.de>
8770
8771 * contrib/cc-with-tweaks.sh: Support -n arg.
8772
66452beb
PW
87732019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8774
8775 * corelow.c (core_target::detach): Ensure frame cache and
8776 register caches are cleared.
8777 inferior.c (exit_inferior_1): Likewise.
8778
bde09ab7
TT
87792019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8780 Tom Tromey <tom@tromey.com>
8781
8782 * dictionary.c (collate_pending_symbols_by_language): Remove
8783 "struct" from foreach.
8784 * symtab.c (lookup_global_symbol_from_objfile)
8785 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8786 foreach.
8787 * ser-tcp.c (net_open): Remove "struct" from foreach.
8788 * objfiles.c (objfile_relocate, objfile_rebase)
8789 (objfile_has_symbols): Remove "struct" from foreach.
8790 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8791 from foreach.
8792 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8793 foreach.
8794 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8795 "struct" from foreach.
8796 * ada-lang.c (create_excep_cond_exprs)
8797 (ada_exception_catchpoint_cond_string): Remove "struct" from
8798 foreach.
8799
222a8d25
TT
88002019-05-03 Tom Tromey <tromey@adacore.com>
8801
8802 * ada-exp.y (convert_char_literal): Check suffix of each
8803 enumerator.
8804
fcd60b84
DP
88052019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8806
8807 PR ada/21406:
8808 * ada-exp.y (yywrap): Don't define.
8809 * ada-lex.l (%option): Add noyywrap
8810 (yywrap): Remove.
8811
5f2459c2
EZ
88122019-05-03 Eli Zaretskii <eliz@gnu.org>
8813
353ea2d1
EZ
8814 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8815 _WIN32_WINNT to the XP level, unless already defined to a higher
8816 level.
8817
8818 * unittests/parse-connection-spec-selftests.c:
8819 * ser-tcp.c:
8820 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8821 override.
8822
5f2459c2
EZ
8823 * symfile.c (find_separate_debug_file): Remove colon from the
8824 drive spec of DOS/Windows file names of the target, so that the
8825 file name produced from DEBUGDIR and the target's directory will
8826 be valid on DOS/Windows systems.
8827
80062eb9
AB
88282019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * rust-lang.c (val_print_struct): Handle printing structures
8831 containing strings.
8832
b8c05e85
TT
88332019-05-02 Tom Tromey <tromey@adacore.com>
8834
8835 * valarith.c (_initialize_valarith): Remove.
8836
4504bbde
TT
88372019-05-01 Tom Tromey <tromey@adacore.com>
8838
8839 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8840 bitfields.
8841
d48e62f4
TT
88422019-05-01 Tom Tromey <tromey@adacore.com>
8843
8844 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8845 for big-endian copies.
8846
15f18d14
AT
88472019-04-30 Ali Tamur <tamur@google.com>
8848 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8849 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8850 (read_3_bytes): New function.
8851
ab4ee614
JB
88522019-04-30 Joel Brobecker <brobecker@adacore.com>
8853
8854 * windows-nat.c (main_thread_id): Delete.
8855 (handle_output_debug_string): Replace main_thread_id by
8856 current_event.dwThreadId.
8857 (fake_create_process): Likewise.
8858 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8859 Do not set main_thread_id.
8860 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8861 current_event.dwThreadId.
8862 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8863
8ed5b76e
JB
88642019-04-30 Joel Brobecker <brobecker@adacore.com>
8865
8866 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8867 Use current_event.dwThreadId instead of main_thread_id.
8868
2ff0a947
TT
88692019-04-30 Tom Tromey <tromey@adacore.com>
8870
8871 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8872 (create_excep_cond_exprs): Iterate over program spaces.
8873 (ada_exception_catchpoint_cond_string): Examine all minimal
8874 symbols for exception types.
8875
a776957c
TT
88762019-04-30 Tom Tromey <tromey@adacore.com>
8877
8878 PR c++/24470:
8879 * dwarf2read.c (process_structure_scope): Handle case where type
8880 has template parameters but no symbol was created.
8881
bc68014d
AB
88822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8883 Chris January <chris.january@arm.com>
8884
8885 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8886 qualifier.
8887 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8888
f1fdc960
AB
88892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8890
8891 * f-typeprint.c (f_print_type): Update rules for printing
8892 whitespace.
8893 (f_type_print_varspec_suffix): Likewise.
8894
bf7a4de1
AB
88952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8896 Chris January <chris.january@arm.com>
8897
8898 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8899 function arguments.
8900
bbe75b9d
AB
89012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8902
8903 * f-lang.c (build_fortran_types): Change name of void type to
8904 lower case.
8905 * f-typeprint.c (f_type_print_base): Print the name of the void
8906 type, rather than a fixed string.
8907 * f-valprint.c (f_decorations): Use lower case void string.
8908
1db455a7
AB
89092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8910 Chris January <chris.january@arm.com>
8911
8912 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8913 types for Fortran.
8914
b6d03bb2
AB
89152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8916 Chris January <chris.january@arm.com>
8917 David Lecomber <david.lecomber@arm.com>
8918
8919 * f-exp.y (BINOP_INTRINSIC): New token.
8920 (exp): New parser rule handling BINOP_INTRINSIC.
8921 (f77_keywords): Add new builtin procedures.
8922 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8923 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8924 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8925 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8926 (print_unop_subexp_f): New function.
8927 (print_binop_subexp_f): New function.
8928 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8929 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8930 (dump_subexp_body_f): Likewise.
8931 (operator_check_f): Likewise.
8932 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8933 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8934
83228e93
AB
89352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8936
8937 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8938 UNOP_KIND.
8939 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8940 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8941 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8942 (operator_length_f): New fuction.
8943 (print_subexp_f): New function.
8944 (op_name_f): New function.
8945 (dump_subexp_body_f): New function.
8946 (operator_check_f): New function.
8947 (exp_descriptor_f): Replace standard expression handling functions
8948 with new functions.
8949 * gdb/fortran-operator.def: New file.
8950 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8951 * gdb/std-operator.def: Remove UNOP_KIND.
8952
6fdcd7cc
AB
89532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8954
8955 * std-operator.def: Remove unbalanced, stray double quote
8956 character.
8957
2e62ab40
AB
89582019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8959 Chris January <chris.january@arm.com>
8960 Daniel Everett <daniel.everett@arm.com>
8961 Nick Forrington <nick.forrington@arm.com>
8962 Richard Bunt <richard.bunt@arm.com>
8963
8964 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8965 of depth when printing anonymous structs or unions.
8966 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8967 Don't print either the top-level value, or the children if the
8968 max-depth is exceeded.
8969 (ppscm_print_children): When printing the key of a map, allow one
8970 extra level of depth.
8971 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8972 print either the top-level value, or the children if the max-depth
8973 is exceeded.
8974 (print_children): When printing the key of a map, allow one extra
8975 level of depth.
8976 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8977 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8978 (user_print_options): Initialise max_depth field.
8979 (val_print_scalar_or_string_type_p): New function.
8980 (val_print): Check to see if the max depth has been reached.
8981 (val_print_check_max_depth): Define new function.
8982 (show_print_max_depth): New function.
8983 (_initialize_valprint): Add 'print max-depth' option.
8984 * valprint.h (struct value_print_options) <max_depth>: New field.
8985 (val_print_check_max_depth): Declare new function.
8986 * NEWS: Document new feature.
8987
4be290b2
AB
89882019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * ada-lang.c (ada_language_defn): Initialise new field.
8991 * c-lang.c (c_is_string_type_p): New function.
8992 (c_language_defn): Initialise new field.
8993 (cplus_language_defn): Initialise new field.
8994 (asm_language_defn): Initialise new field.
8995 (minimal_language_defn): Initialise new field.
8996 * c-lang.h (c_is_string_type_p): Declare new function.
8997 * d-lang.c (d_language_defn): Initialise new field.
8998 * f-lang.c (f_is_string_type_p): New function.
8999 (f_language_defn): Initialise new field.
9000 * go-lang.c (go_is_string_type_p): New function.
9001 (go_language_defn): Initialise new field.
9002 * language.c (default_is_string_type_p): New function.
9003 (unknown_language_defn): Initialise new field.
9004 (auto_language_defn): Initialise new field.
9005 * language.h (struct language_defn) <la_is_string_type_p>: New
9006 member variable.
9007 (default_is_string_type_p): Declare new function.
9008 * m2-lang.c (m2_language_defn): Initialise new field.
9009 * objc-lang.c (objc_language_defn): Initialise new field.
9010 * opencl-lang.c (opencl_language_defn): Initialise new field.
9011 * p-lang.c (pascal_is_string_type_p): New function.
9012 (pascal_language_defn): Initialise new field.
9013 * rust-lang.c (rust_is_string_type_p): New function.
9014 (rust_language_defn): Initialise new field.
9015
721b08c6
AB
90162019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9017
9018 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9019 New field.
9020 * ada-lang.c (ada_language_defn): Initialise new field.
9021 * c-lang.c (c_language_defn): Likewise.
9022 (cplus_language_defn): Likewise.
9023 (asm_language_defn): Likewise.
9024 (minimal_language_defn): Likewise.
9025 * d-lang.c (d_language_defn): Likewise.
9026 * f-lang.c (f_language_defn): Likewise.
9027 * go-lang.c (go_language_defn): Likewise.
9028 * language.c (unknown_language_defn): Likewise.
9029 (auto_language_defn): Likewise.
9030 * m2-lang.c (m2_language_defn): Likewise.
9031 * objc-lang.c (objc_language_defn): Likewise.
9032 * opencl-lang.c (opencl_language_defn): Likewise.
9033 * p-lang.c (pascal_language_defn): Likewise.
9034 * rust-lang.c (rust_language_defn): Likewise.
9035
fc913e53
AB
90362019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9037
9038 * ada-lang.c (ada_is_character_type): Change return type to bool.
9039 (ada_is_string_type): Likewise.
9040 * ada-lang.h (ada_is_character_type): Update declaration
9041 (ada_is_string_type): Likewise.
9042
fa731fa0
PW
90432019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9044
9045 Support style in 'frame|thread apply'
9046
9047 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9048 * record.c (record_start, record_stop): Update callers of
9049 execute_command_to_string with false.
9050 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9051 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9052 methods.
9053 (class string_file): New constructor with term_out parameter.
9054 Override methods term_out and can_emit_style_escape. New member
9055 term_out.
9056 (class stdio_file): Override can_emit_style_escape.
9057 (class tee_file): Override term_out and can_emit_style_escape.
9058 * utils.h (can_emit_style_escape): Remove.
9059 * utils.c (can_emit_style_escape): Likewise.
9060 Update all callers of can_emit_style_escape (SOMESTREAM) to
9061 SOMESTREAM->can_emit_style_escape.
9062 * source-cache.c (source_cache::get_source_lines): Likewise.
9063 * stack.c (frame_apply_command_count): Call execute_command_to_string
9064 passing the term_out characteristic of the current gdb_stdout.
9065 * thread.c (thr_try_catch_cmd): Likewise.
9066 * top.c (execute_command_to_string): pass term_out parameter
9067 to construct the string_file for the command output.
9068 * ui-file.c (term_cli_styling): New function (most code moved
9069 from utils.c can_emit_style_escape).
9070 (string_file::string_file, string_file::can_emit_style_escape,
9071 stdio_file::can_emit_style_escape, tee_file::term_out,
9072 tee_file::can_emit_style_escape): New functions.
9073
136afab8
PW
90742019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9075
9076 * NEWS: Mention the new set|show may-call-functions.
9077 * infcall.c (may_call_functions_p): New variable.
9078 (show_may_call_functions_p): New function.
9079 (call_function_by_hand_dummy): Throws an error if not
9080 may-call-functions.
9081 (_initialize_infcall): Call add_setshow_boolean_cmd for
9082 may-call-functions.
9083
725cbb63
KS
90842019-04-25 Keith Seitz <keiths@redhat.com>
9085
9086 PR c++/24367
9087 * cp-support.c (inspect_type): Don't attempt substitutions
9088 of symbol with the same name.
9089
3d1cbb78
TT
90902019-04-25 Tom Tromey <tromey@adacore.com>
9091
9092 PR gdb/24475:
9093 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9094 static.
9095
94aeb44b
TT
90962019-04-25 Tom Tromey <tromey@adacore.com>
9097
9098 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9099 rvalue reference.
9100 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9101 (gdb_xml_parser::parse): Use std::move.
9102 * python/python-internal.h (gdbpy_convert_exception): Take a const
9103 reference.
9104 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9105 std::move.
9106 * python/py-utils.c (gdbpy_convert_exception): Take a const
9107 reference.
9108 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9109 Use std::move.
9110 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9111 Use std::move.
9112 * mi/mi-main.c (mi_print_exception): Take a const reference.
9113 * main.c (handle_command_errors): Take a const reference.
9114 * linespec.c (parse_linespec): Use std::move.
9115 * infcall.c (run_inferior_call): Use std::move.
9116 (call_function_by_hand_dummy): Use std::move.
9117 * exec.c (try_open_exec_file): Use std::move.
9118 * exceptions.h (exception_print, exception_fprintf)
9119 (exception_print_same): Update.
9120 * exceptions.c (print_exception, exception_print)
9121 (exception_fprintf, exception_print_same): Change parameters to
9122 const reference.
9123 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9124 * common/new-op.c: Use std::move.
9125 * common/common-exceptions.h (struct gdb_exception): Add move
9126 constructor.
9127 (struct gdb_exception_error, struct gdb_exception_quit, struct
9128 gdb_quit_bad_alloc): Change constructor to move constructor.
9129 (throw_exception): Change parameter to rvalue reference.
9130 * common/common-exceptions.c (throw_exception): Take rvalue
9131 reference.
9132 * cli/cli-interp.c (safe_execute_command): Use std::move.
9133 * breakpoint.c (insert_bp_location, location_to_sals): Use
9134 std::move.
9135
680d7fd5
TT
91362019-04-25 Tom Tromey <tromey@adacore.com>
9137
9138 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9139 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9140 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9141 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9142 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9143 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9144 guile/scm-value.c: Use unpack.
9145 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9146 gdbscm_gdb_exception.
9147 (gdbscm_throw_gdb_exception): Likewise.
9148 (struct gdbscm_gdb_exception): New.
9149 (unpack): New function.
9150 (gdbscm_wrap): Use unpack.
9151
c6fdd8b2
TT
91522019-04-25 Tom Tromey <tromey@adacore.com>
9153
9154 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9155 (gdb_rl_callback_handler): Use std::move.
9156 * common/common-exceptions.h (struct gdb_exception): Add move
9157 assignment operator.
9158 (throw_exception_sjlj): Change "exception" to const reference.
9159 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9160 (throw_exception_sjlj): Change "exception" to const reference.
9161
cc06b668
TT
91622019-04-25 Tom Tromey <tromey@adacore.com>
9163
9164 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9165 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9166 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9167 Update.
9168 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9169 Update.
9170 * mi/mi-interp.c (mi_interp::exec): Update.
9171 * linespec.c (parse_linespec): Update.
9172 * infcall.c (run_inferior_call): Update.
9173 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9174 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9175 (gdbscm_lookup_global_symbol): Update.
9176 * guile/scm-param.c (gdbscm_parameter_value): Update.
9177 * guile/scm-frame.c (gdbscm_frame_read_register)
9178 (gdbscm_frame_read_var): Update.
9179 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9180 * exec.c (try_open_exec_file): Update.
9181 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9182 (gdb_rl_callback_handler): Update.
9183 * common/common-exceptions.h (exception_none): Don't declare.
9184 * common/common-exceptions.c (exception_none): Don't define.
9185 (struct catcher) <exception>: Update.
9186 * cli/cli-interp.c (safe_execute_command): Update.
9187 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9188
cf532bd1
AT
91892019-04-25 Ali Tamur <tamur@google.com>
9190
9191 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9192 (read_attribute_value): Likewise.
9193 (dwarf2_read_addr_index): Update comment.
9194 (read_str_index): Add DW_FORM_strx.
9195 (dwarf2_string_attr): Likewise.
9196 (dwarf2_const_value_attr): Likewise.
9197 (dump_die_shallow): Likewise.
9198 (dwarf2_fetch_constant_bytes): Likewise.
9199 (skip_form_bytes): Likewise.
9200 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9201
82433e3e
SDJ
92022019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9203
9204 PR corefiles/11608
9205 PR corefiles/18187
9206 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9207 OFFSET. Verify if current mapping contains an ELF header.
9208 (linux_find_memory_regions_full): Adjust call to
9209 dump_mapping_p.
9210
723adb65
SL
92112019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9212 Kang Li <kanglictf@gmail.com>
9213
9214 PR gdb/21600
9215
9216 * dwarf2-frame.c (read_initial_length): Be consistent about using
9217 unsigned representation of length.
9218 (decode_frame_entry_1): Likewise. Check for wraparound of
9219 end pointer as well as buffer overflow.
9220
596179f7
SDJ
92212019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9222
9223 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9224 "vq".
9225
a59240a4
TT
92262019-04-24 Tom Tromey <tromey@adacore.com>
9227
9228 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9229
f872fdbb
AB
92302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9231
9232 * s12z-tdep.c (s12z_unwind_pc): Delete.
9233 (s12z_unwind_sp): Delete.
9234 (s12z_gdbarch_init): Don't register deleted functions with
9235 gdbarch.
9236
b614e6f3
AB
92372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9238
9239 * rl78-tdep.c (rl78_unwind_sp): Delete.
9240 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9241
14faed38
AB
92422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9243
9244 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9245 (xstormy16_unwind_pc): Delete.
9246 (xstormy16_dummy_id): Delete.
9247 (xstormy16_gdbarch_init): Don't register deleted functions with
9248 gdbarch.
9249
541aad8a
AB
92502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9251
9252 * vax-tdep.c (vax_unwind_pc): Delete.
9253 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9254
29222070
AB
92552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9256
9257 * v850-tdep.c (v850_unwind_sp): Delete.
9258 (v850_unwind_pc): Delete.
9259 (v850_dummy_id): Delete.
9260 (v850_gdbarch_init): Don't register deleted functions with
9261 gdbarch.
9262
0f534d76
AB
92632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9264
9265 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9266 (tilegx_unwind_pc): Delete.
9267 (tilegx_unwind_dummy_id): Delete.
9268 (tilegx_gdbarch_init): Don't register deleted functions with
9269 gdbarch.
9270
1ba7b7f9
AB
92712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9272
9273 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9274 (tic6x_dummy_id): Delete.
9275 (tic6x_gdbarch_init): Don't register deleted functions with
9276 gdbarch.
9277
d31f262c
AB
92782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 * sparc-tdep.c (sparc_unwind_pc): Delete.
9281 (sparc32_gdbarch_init): Don't register deleted function with
9282 gdbarch.
9283
6d14d64d
AB
92842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9285
9286 * sh-tdep.c (sh_unwind_sp): Delete.
9287 (sh_unwind_pc): Delete.
9288 (sh_dummy_id): Delete.
9289 (sh_gdbarch_init): Don't register deleted functions with
9290 gdbarch.
9291
a40dde9d
AB
92922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 * score-tdep.c (score_unwind_sp): Delete.
9295 (score_unwind_pc): Delete.
9296 (score_dummy_id): Delete.
9297 (score_gdbarch_init): Don't register deleted functions with
9298 gdbarch.
9299
47c47d69
AB
93002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9301
9302 * rx-tdep.c (rx_unwind_pc): Delete.
9303 (rx_unwind_sp): Delete.
9304 (rx_dummy_id): Delete.
9305 (rx_gdbarch_init): Don't register deleted functions with
9306 gdbarch. Update comment.
9307
833a4480
AB
93082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9311 (rs6000_dummy_id): Delete.
9312 (rs6000_gdbarch_init): Don't register deleted functions with
9313 gdbarch.
9314
3f2cef49
AB
93152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9316
9317 * or1k-tdep.c (or1k_dummy_id): Delete.
9318 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9319
96acf884
AB
93202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9321
9322 * nios2-tdep.c (nios2_dummy_id): Delete.
9323 (nios2_unwind_sp): Delete.
9324 (nios2_gdbarch_init): Don't register deleted functions with
9325 gdbarch.
9326
ca0ab0aa
AB
93272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9328
9329 * nds32-tdep.c (nds32_dummy_id): Delete.
9330 (nds32_unwind_pc): Delete.
9331 (nds32_unwind_sp): Delete.
9332 (nds32_gdbarch_init): Don't register deleted functions with
9333 gdbarch.
9334
c8259044
AB
93352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9336
9337 * msp430-tdep.c (msp430_unwind_pc): Delete.
9338 (msp430_unwind_sp): Delete.
9339 (msp430_dummy_id): Delete.
9340 (msp430_gdbarch_init): Don't register deleted functions with
9341 gdbarch.
9342
27f113c8
AB
93432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * moxie-tdep.c (moxie_unwind_sp): Delete.
9346 (moxie_unwind_pc): Delete.
9347 (moxie_dummy_id): Delete.
9348 (moxie_gdbarch_init): Don't register deleted functions with
9349 gdbarch.
9350
aee6c3cd
AB
93512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9352
9353 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9354 (mn10300_unwind_pc): Delete.
9355 (mn10300_unwind_sp): Delete.
9356 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9357 mn10300_unwind_sp.
9358 (mn10300_frame_unwind_init): Don't register deleted functions with
9359 gdbarch.
9360
8e2b5aea
AB
93612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 * mep-tdep.c (mep_unwind_pc): Delete.
9364 (mep_unwind_sp): Delete.
9365 (mep_dummy_id): Delete.
9366 (mep_gdbarch_init): Don't register deleted functions with
9367 gdbarch.
9368
43cf3ede
AB
93692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9370
9371 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9372 (m68hc11_unwind_sp): Delete.
9373 (m68hc11_gdbarch_init): Don't register deleted functions with
9374 gdbarch.
9375
5e79b7bb
AB
93762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 * m32r-tdep.c (m32r_unwind_sp): Delete.
9379 (m32r_unwind_pc): Delete.
9380 (m32r_dummy_id): Delete.
9381 (m32r_gdbarch_init): Don't register deleted functions with
9382 gdbarch.
9383
89b268d8
AB
93842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9385
9386 * m32c-tdep.c (m32c_unwind_pc): Delete.
9387 (m32c_unwind_sp): Delete.
9388 (m32c_dummy_id): Delete.
9389 (m32c_gdbarch_init): Don't register deleted functions with
9390 gdbarch.
9391
946c28d2
AB
93922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9393
9394 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9395 (lm32_unwind_pc): Delete.
9396 (lm32_dummy_id): Delete.
9397 (lm32_gdbarch_init): Don't register deleted functions with
9398 gdbarch.
9399
bf12844a
AB
94002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9403 (iq2000_unwind_pc): Delete.
9404 (iq2000_dummy_id): Delete.
9405 (iq2000_gdbarch_init): Don't register deleted functions with
9406 gdbarch.
9407
ecbc06d2
AB
94082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9409
9410 * nds32-tdep.c (nds32_type_align): Delete.
9411 (nds32_push_dummy_call): Use type_align instead.
9412
030197b4
AB
94132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * arm-tdep.c (arm_type_align): Only handle vector override case.
9416 (arm_push_dummy_call): Use type_align.
9417 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9418
b907456c
AB
94192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9420
9421 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9422 case.
9423 (pass_on_stack): Use type_align.
9424 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9425 function.
9426
9e97ba43
TT
94272019-04-23 Tom Tromey <tromey@adacore.com>
9428
9429 * dwarf2read.c (line_header::file_name_at): Remove unused
9430 overload.
9431
6892f601
TV
94322019-04-23 Tom de Vries <tdevries@suse.de>
9433
9434 PR gdb/24438
9435 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9436 invocation.
9437
336d760d
AT
9438
94392019-03-27 Ali Tamur <tamur@google.com>
9440
9441 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9442 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9443 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9444 (dwarf_expr_context::get_addr_index): Likewise
9445 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9446 (symbol_needs_eval_context::get_addr_index): Likewise
9447 (disassemble_dwarf_expression): Add DW_OP_addrx
9448 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9449 (read_cutu_die_from_dwo): Update comment
9450 (skip_one_die): Add DW_FORM_addrx
9451 (read_attribute_value): Likewise
9452 (var_decode_location): Add DW_OP_addrx
9453 (dwarf2_const_value_attr): Add DW_FORM_addrx
9454 (dump_die_shallow): Likewise
9455 (dwarf2_fetch_constant_bytes): Likewise
9456 (decode_locdesc): Add DW_OP_addrx
9457 (skip_form_bytes): Add DW_FORM_addrx
9458
ad9d13f8
AT
94592019-04-22 Ali Tamur <tamur@google.com>
9460
9461 * MAINTAINERS (Write After Approval): Add self.
9462
d70cc3ba
SM
94632019-04-22 Simon Marchi <simon.marchi@efficios.com>
9464
9465 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9466 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9467 (open_symbol_file_object): Likewise.
9468 (svr4_default_sos): Add info parameter.
9469 (svr4_read_so_list): Likewise.
9470 (svr4_current_sos_direct): Adjust functions calls to pass down
9471 info.
9472 (svr4_current_sos_1): Add info parameter.
9473 (svr4_current_sos): Call get_svr4_info, pass info down to
9474 svr4_current_sos_1.
9475 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9476 get_svr4_info.
9477 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9478 get_svr4_info.
9479 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9480 to get_svr4_info.
9481 (probes_table_remove_objfile_probes): Likewise.
9482 (register_solib_event_probe): Add info parameter.
9483 (solist_update_incremental): Pass info parameter down to
9484 svr4_read_so_list.
9485 (disable_probes_interface): Add info parameter.
9486 (svr4_handle_solib_event): Pass current_program_space to
9487 get_svr4_info. Adjust disable_probes_interface cleanup.
9488 (svr4_create_probe_breakpoints): Add info parameter, pass it
9489 down to register_solib_event_probe.
9490 (svr4_create_solib_event_breakpoints): Add info parameter,
9491 pass it down to svr4_create_probe_breakpoints.
9492 (enable_break): Pass info down to
9493 svr4_create_solib_event_breakpoints.
9494 (svr4_solib_create_inferior_hook): Pass current_program_space to
9495 get_svr4_info.
9496 (svr4_clear_solib): Likewise.
9497
7905fc35
PA
94982019-04-22 Pedro Alves <palves@redhat.com>
9499
9500 * solib-svr4.c (svr4_free_objfile_observer): New.
9501 (probe_and_action::objfile): New field.
9502 (probes_table_htab_remove_objfile_probes)
9503 (probes_table_remove_objfile_probes): New functions.
9504 (register_solib_event_probe): Add 'objfile' parameter. Store it
9505 in the new probe_and_action. Don't store the probe in 'lookup'.
9506 (svr4_create_probe_breakpoints): Pass objfile to
9507 register_solib_event_probe.
9508 (_initialize_svr4_solib): Register a free_objfile observer.
9509
fb881986
TT
95102019-04-19 Tom Tromey <tom@tromey.com>
9511
9512 * common/queue.h: Remove.
9513
8732db6c
TT
95142019-04-19 Tom Tromey <tom@tromey.com>
9515
9516 * event-loop.c: Don't include "common/queue.h".
9517
97dfbadd
TT
95182019-04-19 Tom Tromey <tom@tromey.com>
9519
9520 * remote.c (remote_target): Use delete.
9521 * remote-notif.h: Include <list>, not "common/queue.h".
9522 (notif_client_p): Remove typedef.
9523 (remote_notif_state): Add constructor, destructor, initializer.
9524 <notif_queue>: Now a std::list.
9525 (remote_notif_state_xfree): Don't declare.
9526 * remote-notif.c (remote_notif_process, handle_notification)
9527 (remote_notif_state_allocate): Update.
9528 (~remote_notif_state): Rename from remote_notif_state_xfree.
9529
cf250e36
TT
95302019-04-19 Tom Tromey <tom@tromey.com>
9531
9532 * symfile.c (reread_symbols): Update.
9533 * objfiles.c (objfile_register_static_link)
9534 (objfile_lookup_static_link): Update
9535 (~objfile) Don't delete static_links.
9536 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9537
61f4b350
TT
95382019-04-19 Tom Tromey <tom@tromey.com>
9539
9540 * type-stack.h (struct type_stack) <insert>: Constify string.
9541 * type-stack.c (type_stack::insert): Constify string.
9542 * gdbtypes.h (lookup_template_type): Update.
9543 (address_space_name_to_int): Update.
9544 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9545 const.
9546 (lookup_template_type): Make name const.
9547 * c-exp.y: Update rules.
9548 (lex_one_token, classify_name, classify_inner_name)
9549 (c_print_token): Update.
9550 * p-exp.y: Update rules.
9551 (yylex): Update.
9552 * f-exp.y: Update rules.
9553 (yylex): Update.
9554 * d-exp.y: Update rules.
9555 (lex_one_token, classify_name, classify_inner_name): Update.
9556 * parse.c (write_dollar_variable, copy_name): Return std::string.
9557 * parser-defs.h (copy_name): Change return type.
9558 * m2-exp.y: Update rules.
9559 (yylex): Update.
9560 * go-exp.y (lex_one_token): Update.
9561 Update rules.
9562 (classify_unsafe_function, classify_packaged_name)
9563 (classify_name, yylex): Update.
9564
189b8c2e
ST
95652019-04-19 Sergei Trofimovich <siarheit@google.com>
9566
9567 * configure.ac: add --enable-source-highlight switch.
9568 * configure: Regenerate.
9569 * top.c (print_gdb_version): plumb --enable-source-highlight
9570 status to "show configuration".
9571
8ecb59f8
TT
95722019-04-19 Tom Tromey <tromey@adacore.com>
9573
9574 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9575 Check ADA_TYPE_P.
9576 (empty_record, ada_template_to_fixed_record_type_1)
9577 (template_to_static_fixed_type)
9578 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9579 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9580 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9581 macros.
9582
62160ec9
TT
95832019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9584
9585 PR symtab/24423:
9586 * source.c (print_source_lines_base): Advance "iter" when a
9587 control character is seen.
9588
f2ae8bc8
PW
95892019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9590
9591 * inferior.h (struct infcall_suspend_state_deleter):
9592 Catch exception in destructor to avoid crash.
9593
d563b953
PW
95942019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9595
9596 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9597 close to the add_com "shell".
9598
dc34c897
TT
95992019-04-18 Tom Tromey <tromey@adacore.com>
9600
9601 * process-stratum-target.h (class process_stratum_target)
9602 <stratum>: Add "final".
9603
a12e5744
TT
96042019-04-17 Tom Tromey <tromey@adacore.com>
9605
9606 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9607 against nullptr before use.
9608
a7e559cc
AH
96092019-04-17 Alan Hayward <alan.hayward@arm.com>
9610
9611 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9612
c01660c6
AB
96132019-04-17 Jim Wilson <jimw@sifive.com>
9614 Andrew Burgess <andrew.burgess@embecosm.com>
9615
9616 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9617 code read might fail, assume 4-byte breakpoint in that case.
9618
4aa866af
LS
96192019-04-15 Leszek Swirski <leszeks@google.com>
9620
9621 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9622 rather than a hand-rolled POD check when checking for forced MEMORY
9623 classification.
9624
48574d91
AH
96252019-04-15 Alan Hayward <alan.hayward@arm.com>
9626
9627 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9628 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9629 function.
9630 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9631 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9632 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9633 declaration.
9634
4da037ef
AH
96352019-04-15 Alan Hayward <alan.hayward@arm.com>
9636
9637 * aarch64-linux-nat.c
9638 (aarch64_linux_nat_target::thread_architecture): Add override.
9639 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9640 each VQ.
9641
ccb8d7e8
AH
96422019-04-15 Alan Hayward <alan.hayward@arm.com>
9643
9644 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9645
35add35e
AB
96462019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9647
9648 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9649 target types of size 96-bits, add some additional comments, and
9650 check that the builtin type we found was the correct size.
9651
51196bbc
EZ
96522019-04-12 Eli Zaretskii <eliz@gnu.org>
9653
9654 * utils.c (prompt_for_continue): Don't restore the styling at the
9655 end, as applied_style has the wrong value. This fixes styling in
9656 long lists of file names that are interrupted by the "Continue?"
9657 prompt.
9658
62253a61
AB
96592019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9662 * c-lang.c (c_language_defn): Likewise.
9663 (cplus_language_defn): Likewise.
9664 (asm_language_defn): Likewise.
9665 (minimal_language_defn): Likewise.
9666 * d-lang.c (d_language_defn): Likewise.
9667 * f-lang.c (f_language_defn): Likewise.
9668 * go-lang.c (go_language_defn): Likewise.
9669 * language.c (unknown_language_defn): Likewise.
9670 (auto_language_defn): Likewise.
9671 * language.h (struct language_defn): Remove la_magic field.
9672 (LANG_MAGIC): Delete.
9673 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9674 * objc-lang.c (objc_language_defn): Likewise.
9675 * opencl-lang.c (opencl_language_defn): Likewise.
9676 * p-lang.c (pascal_language_defn): Likewise.
9677 * rust-lang.c (rust_language_defn): Likewise.
9678
a9158a86
AB
96792019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9680
9681 * riscv-tdep.c (riscv_type_align): New function.
9682 (riscv_type_alignment): Delete.
9683 (riscv_arg_location): Use 'type_align'.
9684 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9685
41077b66
AB
96862019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9687
9688 * gdbtypes.c (type_align): A struct with no non-static fields also
9689 has alignment of 1.
9690
9f0272f8
AB
96912019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9692
9693 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9694 component to 0.
9695 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9696 member.
9697 (riscv_struct_info::analyse): New implementation using new
9698 analyse_inner member function.
9699 (riscv_struct_info::field_offset): New member function.
9700 (riscv_struct_info::m_offsets): New member variable.
9701 (riscv_struct_info::analyse_inner): New private member function,
9702 takes the old implementation of riscv_struct_info::analyse but
9703 extended to track field offsets.
9704 (riscv_call_arg_struct): Update the struct folding special cases
9705 to handle cases where empty C++ structs, which are non-zero
9706 length, are found.
9707 (riscv_arg_location): Initialise the length of each location, a
9708 non-zero length now indicates the location is in use.
9709 (riscv_push_dummy_call): Allow for the first location having a
9710 non-zero offset when setting up arguments.
9711 (riscv_return_value): Likewise, but for return values.
9712
02cf60c7
TT
97132019-04-11 Tom Tromey <tromey@adacore.com>
9714
9715 * utils.c (internal_vproblem): Make "msg" const.
9716
68811f8f
AH
97172019-04-11 Alan Hayward <alan.hayward@arm.com>
9718
9719 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9720 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9721 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9722 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9723
3f52fdbc
KB
97242019-04-10 Kevin Buettner <kevinb@redhat.com>
9725
9726 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9727 function.
9728 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9729 of amd64_collect_native_gregset.
9730 (amd64_linux_nat_target::store_registers): Likewise.
9731
e9ad22ee
TT
97322019-04-10 Tom Tromey <tom@tromey.com>
9733
9734 * symtab.c (lookup_global_symbol_from_objfile)
9735 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9736 * objfiles.h (class separate_debug_iterator): New.
9737 (class separate_debug_range): New.
9738 (struct objfile) <separate_debug_objfiles>: New method.
9739 (objfile_separate_debug_iterate): Don't declare.
9740 * objfiles.c (separate_debug_iterator::operator++): Rename from
9741 objfile_separate_debug_iterate.
9742 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9743 iterator.
9744 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9745 iterator.
9746
ee371134
TT
97472019-04-10 Tom Tromey <tom@tromey.com>
9748
9749 * symfile.c (reread_symbols): Remove old comment.
9750 * objfiles.c (free_all_objfiles): Fix a typo.
9751
bf227d61
TT
97522019-04-10 Tom Tromey <tom@tromey.com>
9753
9754 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9755 * minsyms.c (lookup_minimal_symbol): Use foreach.
9756 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9757 (lookup_minimal_symbol_solib_trampoline): Likewise.
9758 * symfile.c (reread_symbols): Use foreach.
9759
8dc433a0
TT
97602019-04-09 Ivan Begert <ivanbegert@gmail.com>
9761 Tom Tromey <tromey@adacore.com>
9762
9763 PR rust/24414:
9764 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9765 (rust_lex_int_test): Change "value" to be LONGEST.
9766 (rust_lex_tests): Add test for long integer literal.
9767
9ab8741a
TT
97682019-04-09 Tom Tromey <tromey@adacore.com>
9769
9770 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9771 to bool.
9772 (extended_remote_target::attach): Update.
9773 (remote_target::remote_notice_new_inferior): Update.
9774 (remote_target::add_current_inferior_and_thread): Update.
9775 * inferior.c (exit_inferior_1): Use "false".
9776 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9777
e242fd12
SM
97782019-04-09 Simon Marchi <simon.marchi@efficios.com>
9779
9ca1957f 9780 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9781 the "start" command.
9782
2b0c8b01
KB
97832019-04-08 Kevin Buettner <kevinb@redhat.com>
9784
9785 * python/py-inferior.c (infpy_thread_from_thread_handle):
9786 Adjust comments to reflect renaming of thread_from_thread_handle
9787 to thread_from_handle. Adjust keywords. Fix type error message.
9788 (inferior_object_methods): Add thread_from_handle. Retain
9789 thread_from_thread_handle, but mark it as deprecated.
9790
50a82723
KB
97912019-04-08 Kevin Buettner <kevinb@redhat.com>
9792
9793 * gdbthread.h (find_thread_by_handle): Revise declaration.
9794 * thread.c (find_thread_by_handle): Likewise. Adjust
9795 implementation too.
9796 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9797 support for buffer objects as handles.
9798
cf63b016
KB
97992019-04-08 Kevin Buettner <kevinb@redhat.com>
9800
9801 * python/py-infthread.c (thpy_thread_handle): New function.
9802 (thread_object_methods): Register thpy_thread_handle.
9803
3d6c6204
KB
98042019-04-08 Kevin Buettner <kevinb@redhat.com>
9805
9806 * gdbthread.h (thread_to_thread_handle): Declare.
9807 * thread.c (gdbtypes.h): Include.
9808 (thread_to_thread_handle): New function.
9809
9810 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9811 (target_thread_info_to_thread_handle): Declare.
9812 * target.c (target_thread_info_to_thread_handle): New function.
9813 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9814 * target-delegates.c: Regenerate.
9815
9816 * linux-thread-db.c (class thread_db_target): Add method
9817 thread_info_to_thread_handle.
9818 (thread_db_target::thread_info_to_thread_handle): Define.
9819 * remote.c (class remote_target): Add new method
9820 thread_info_to_thread_handle.
9821 (remote_target::thread_info_to_thread_handle): Define.
9822
56be6ea8
PA
98232019-04-08 Pedro Alves <palves@redhat.com>
9824
9825 * common/common-exceptions.c (throw_exception): Don't create
9826 named object to throw; throw directly.
9827 (throw_it): Likewise. Don't initialize gdb_exception::message
9828 here, with new; pass FMT and AP to the ctor instead.
9829 * common/common-exceptions.h: Include <string>.
9830 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9831 const char *, va_list)): New ctor. Use std::make_shared.
9832 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9833 errors)): Delete.
9834 (gdb_exception_error::gdb_exception_error(enum errors, const char
9835 *, va_list)): New.
9836 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9837 Add assertion.
9838 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9839 errors)): Delete.
9840 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9841 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9842 Add assertion.
9843
eedc3f4f
TT
98442019-04-08 Tom Tromey <tom@tromey.com>
9845
9846 * valops.c (value_rtti_indirect_type): Replace throw_exception
9847 with throw.
9848 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9849 with throw.
9850 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9851 throw.
9852 * target.c (target_translate_tls_address): Replace throw_exception
9853 with throw.
9854 * stack.c (frame_apply_command_count): Replace throw_exception
9855 with throw.
9856 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9857 throw.
9858 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9859 with throw.
9860 * rs6000-tdep.c (rs6000_frame_cache)
9861 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9862 * remote.c: Replace throw_exception with throw.
9863 * record-full.c (record_full_message, record_full_wait_1)
9864 (record_full_restore): Replace throw_exception with throw.
9865 * record-btrace.c:
9866 (get_thread_current_frame_id, record_btrace_start_replaying)
9867 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9868 (cmd_record_btrace_start): Replace throw_exception with throw.
9869 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9870 throw.
9871 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9872 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9873 * linespec.c:
9874 (find_linespec_symbols): Replace throw_exception with throw.
9875 * infrun.c (displaced_step_prepare, resume): Replace
9876 throw_exception with throw.
9877 * infcmd.c (post_create_inferior): Replace throw_exception with
9878 throw.
9879 * inf-loop.c (inferior_event_handler): Replace throw_exception
9880 with throw.
9881 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9882 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9883 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9884 (get_prev_frame_always, get_frame_pc_if_available)
9885 (get_frame_address_in_block_if_available, get_frame_language):
9886 Replace throw_exception with throw.
9887 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9888 throw_exception with throw.
9889 * eval.c (fetch_subexp_value, evaluate_var_value)
9890 (evaluate_funcall, evaluate_subexp_standard): Replace
9891 throw_exception with throw.
9892 * dwarf2loc.c (call_site_find_chain)
9893 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9894 Replace throw_exception with throw.
9895 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9896 with throw.
9897 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9898 throw.
9899 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9900 * completer.c (complete_line_internal): Replace throw_exception
9901 with throw.
9902 * compile/compile-object-run.c (compile_object_run): Replace
9903 throw_exception with throw.
9904 * cli/cli-script.c (process_next_line): Replace throw_exception
9905 with throw.
9906 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9907 (btrace_enable, btrace_maint_update_pt_packets): Replace
9908 throw_exception with throw.
9909 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9910 throw_exception with throw.
9911 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9912 throw_exception with throw.
9913 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9914 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9915 * aarch64-tdep.c (aarch64_make_prologue_cache)
9916 (aarch64_make_stub_cache): Replace throw_exception with throw.
9917
26003a20
TT
99182019-04-08 Tom Tromey <tom@tromey.com>
9919
9920 * common/common-exceptions.c (throw_exception): Rename from
9921 throw_exception_cxx. Remove old copy. Make argument const.
9922 (throw_it): Create and throw exception objects directly.
9923 * common/common-exceptions.h (throw_exception): Make argument
9924 const.
9925 (struct gdb_exception_error): Add constructor.
9926 (struct gdb_exception_quit): Add constructor.
9927
d272eb37
TT
99282019-04-08 Tom Tromey <tom@tromey.com>
9929
9930 * common/common-exceptions.h (exception_rethrow): Don't declare.
9931 (TRY_SJLJ): Update comment.
9932 (TRY, CATCH, END_CATCH): Remove.
9933 * common/common-exceptions.c (exception_rethrow): Remove.
9934
230d2906
TT
99352019-04-08 Tom Tromey <tom@tromey.com>
9936
9937 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9938 Remove.
9939 (gdb_exception_error): Rename from
9940 gdb_exception_RETURN_MASK_ERROR.
9941 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9942 (gdb_quit_bad_alloc): Update.
9943 * aarch64-tdep.c: Update.
9944 * ada-lang.c: Update.
9945 * ada-typeprint.c: Update.
9946 * ada-valprint.c: Update.
9947 * amd64-tdep.c: Update.
9948 * arch-utils.c: Update.
9949 * break-catch-throw.c: Update.
9950 * breakpoint.c: Update.
9951 * btrace.c: Update.
9952 * c-varobj.c: Update.
9953 * cli/cli-cmds.c: Update.
9954 * cli/cli-interp.c: Update.
9955 * cli/cli-script.c: Update.
9956 * common/common-exceptions.c: Update.
9957 * common/new-op.c: Update.
9958 * common/selftest.c: Update.
9959 * compile/compile-c-symbols.c: Update.
9960 * compile/compile-cplus-symbols.c: Update.
9961 * compile/compile-object-load.c: Update.
9962 * compile/compile-object-run.c: Update.
9963 * completer.c: Update.
9964 * corelow.c: Update.
9965 * cp-abi.c: Update.
9966 * cp-support.c: Update.
9967 * cp-valprint.c: Update.
9968 * darwin-nat.c: Update.
9969 * disasm-selftests.c: Update.
9970 * dtrace-probe.c: Update.
9971 * dwarf-index-cache.c: Update.
9972 * dwarf-index-write.c: Update.
9973 * dwarf2-frame-tailcall.c: Update.
9974 * dwarf2-frame.c: Update.
9975 * dwarf2loc.c: Update.
9976 * dwarf2read.c: Update.
9977 * eval.c: Update.
9978 * event-loop.c: Update.
9979 * event-top.c: Update.
9980 * exec.c: Update.
9981 * f-valprint.c: Update.
9982 * fbsd-tdep.c: Update.
9983 * frame-unwind.c: Update.
9984 * frame.c: Update.
9985 * gdbtypes.c: Update.
9986 * gnu-v3-abi.c: Update.
9987 * guile/guile-internal.h: Update.
9988 * guile/scm-block.c: Update.
9989 * guile/scm-breakpoint.c: Update.
9990 * guile/scm-cmd.c: Update.
9991 * guile/scm-disasm.c: Update.
9992 * guile/scm-frame.c: Update.
9993 * guile/scm-lazy-string.c: Update.
9994 * guile/scm-math.c: Update.
9995 * guile/scm-param.c: Update.
9996 * guile/scm-ports.c: Update.
9997 * guile/scm-pretty-print.c: Update.
9998 * guile/scm-symbol.c: Update.
9999 * guile/scm-symtab.c: Update.
10000 * guile/scm-type.c: Update.
10001 * guile/scm-value.c: Update.
10002 * i386-linux-tdep.c: Update.
10003 * i386-tdep.c: Update.
10004 * inf-loop.c: Update.
10005 * infcall.c: Update.
10006 * infcmd.c: Update.
10007 * infrun.c: Update.
10008 * jit.c: Update.
10009 * language.c: Update.
10010 * linespec.c: Update.
10011 * linux-fork.c: Update.
10012 * linux-nat.c: Update.
10013 * linux-tdep.c: Update.
10014 * linux-thread-db.c: Update.
10015 * main.c: Update.
10016 * mi/mi-cmd-break.c: Update.
10017 * mi/mi-cmd-stack.c: Update.
10018 * mi/mi-interp.c: Update.
10019 * mi/mi-main.c: Update.
10020 * objc-lang.c: Update.
10021 * p-valprint.c: Update.
10022 * parse.c: Update.
10023 * ppc-linux-tdep.c: Update.
10024 * printcmd.c: Update.
10025 * python/py-arch.c: Update.
10026 * python/py-breakpoint.c: Update.
10027 * python/py-cmd.c: Update.
10028 * python/py-finishbreakpoint.c: Update.
10029 * python/py-frame.c: Update.
10030 * python/py-framefilter.c: Update.
10031 * python/py-gdb-readline.c: Update.
10032 * python/py-inferior.c: Update.
10033 * python/py-infthread.c: Update.
10034 * python/py-lazy-string.c: Update.
10035 * python/py-linetable.c: Update.
10036 * python/py-objfile.c: Update.
10037 * python/py-param.c: Update.
10038 * python/py-prettyprint.c: Update.
10039 * python/py-progspace.c: Update.
10040 * python/py-record-btrace.c: Update.
10041 * python/py-record.c: Update.
10042 * python/py-symbol.c: Update.
10043 * python/py-type.c: Update.
10044 * python/py-unwind.c: Update.
10045 * python/py-utils.c: Update.
10046 * python/py-value.c: Update.
10047 * python/python.c: Update.
10048 * record-btrace.c: Update.
10049 * record-full.c: Update.
10050 * remote-fileio.c: Update.
10051 * remote.c: Update.
10052 * riscv-tdep.c: Update.
10053 * rs6000-aix-tdep.c: Update.
10054 * rs6000-tdep.c: Update.
10055 * rust-exp.y: Update.
10056 * rust-lang.c: Update.
10057 * s390-tdep.c: Update.
10058 * selftest-arch.c: Update.
10059 * solib-dsbt.c: Update.
10060 * solib-frv.c: Update.
10061 * solib-spu.c: Update.
10062 * solib-svr4.c: Update.
10063 * solib.c: Update.
10064 * sparc64-linux-tdep.c: Update.
10065 * stack.c: Update.
10066 * symfile-mem.c: Update.
10067 * symmisc.c: Update.
10068 * target.c: Update.
10069 * thread.c: Update.
10070 * top.c: Update.
10071 * tracefile-tfile.c: Update.
10072 * tui/tui.c: Update.
10073 * typeprint.c: Update.
10074 * unittests/cli-utils-selftests.c: Update.
10075 * unittests/parse-connection-spec-selftests.c: Update.
10076 * valops.c: Update.
10077 * valprint.c: Update.
10078 * value.c: Update.
10079 * varobj.c: Update.
10080 * windows-nat.c: Update.
10081 * x86-linux-nat.c: Update.
10082 * xml-support.c: Update.
10083
a70b8144
TT
100842019-04-08 Tom Tromey <tom@tromey.com>
10085
10086 * xml-support.c: Use C++ exception handling.
10087 * x86-linux-nat.c: Use C++ exception handling.
10088 * windows-nat.c: Use C++ exception handling.
10089 * varobj.c: Use C++ exception handling.
10090 * value.c: Use C++ exception handling.
10091 * valprint.c: Use C++ exception handling.
10092 * valops.c: Use C++ exception handling.
10093 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10094 handling.
10095 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10096 * typeprint.c: Use C++ exception handling.
10097 * tui/tui.c: Use C++ exception handling.
10098 * tracefile-tfile.c: Use C++ exception handling.
10099 * top.c: Use C++ exception handling.
10100 * thread.c: Use C++ exception handling.
10101 * target.c: Use C++ exception handling.
10102 * symmisc.c: Use C++ exception handling.
10103 * symfile-mem.c: Use C++ exception handling.
10104 * stack.c: Use C++ exception handling.
10105 * sparc64-linux-tdep.c: Use C++ exception handling.
10106 * solib.c: Use C++ exception handling.
10107 * solib-svr4.c: Use C++ exception handling.
10108 * solib-spu.c: Use C++ exception handling.
10109 * solib-frv.c: Use C++ exception handling.
10110 * solib-dsbt.c: Use C++ exception handling.
10111 * selftest-arch.c: Use C++ exception handling.
10112 * s390-tdep.c: Use C++ exception handling.
10113 * rust-lang.c: Use C++ exception handling.
10114 * rust-exp.y: Use C++ exception handling.
10115 * rs6000-tdep.c: Use C++ exception handling.
10116 * rs6000-aix-tdep.c: Use C++ exception handling.
10117 * riscv-tdep.c: Use C++ exception handling.
10118 * remote.c: Use C++ exception handling.
10119 * remote-fileio.c: Use C++ exception handling.
10120 * record-full.c: Use C++ exception handling.
10121 * record-btrace.c: Use C++ exception handling.
10122 * python/python.c: Use C++ exception handling.
10123 * python/py-value.c: Use C++ exception handling.
10124 * python/py-utils.c: Use C++ exception handling.
10125 * python/py-unwind.c: Use C++ exception handling.
10126 * python/py-type.c: Use C++ exception handling.
10127 * python/py-symbol.c: Use C++ exception handling.
10128 * python/py-record.c: Use C++ exception handling.
10129 * python/py-record-btrace.c: Use C++ exception handling.
10130 * python/py-progspace.c: Use C++ exception handling.
10131 * python/py-prettyprint.c: Use C++ exception handling.
10132 * python/py-param.c: Use C++ exception handling.
10133 * python/py-objfile.c: Use C++ exception handling.
10134 * python/py-linetable.c: Use C++ exception handling.
10135 * python/py-lazy-string.c: Use C++ exception handling.
10136 * python/py-infthread.c: Use C++ exception handling.
10137 * python/py-inferior.c: Use C++ exception handling.
10138 * python/py-gdb-readline.c: Use C++ exception handling.
10139 * python/py-framefilter.c: Use C++ exception handling.
10140 * python/py-frame.c: Use C++ exception handling.
10141 * python/py-finishbreakpoint.c: Use C++ exception handling.
10142 * python/py-cmd.c: Use C++ exception handling.
10143 * python/py-breakpoint.c: Use C++ exception handling.
10144 * python/py-arch.c: Use C++ exception handling.
10145 * printcmd.c: Use C++ exception handling.
10146 * ppc-linux-tdep.c: Use C++ exception handling.
10147 * parse.c: Use C++ exception handling.
10148 * p-valprint.c: Use C++ exception handling.
10149 * objc-lang.c: Use C++ exception handling.
10150 * mi/mi-main.c: Use C++ exception handling.
10151 * mi/mi-interp.c: Use C++ exception handling.
10152 * mi/mi-cmd-stack.c: Use C++ exception handling.
10153 * mi/mi-cmd-break.c: Use C++ exception handling.
10154 * main.c: Use C++ exception handling.
10155 * linux-thread-db.c: Use C++ exception handling.
10156 * linux-tdep.c: Use C++ exception handling.
10157 * linux-nat.c: Use C++ exception handling.
10158 * linux-fork.c: Use C++ exception handling.
10159 * linespec.c: Use C++ exception handling.
10160 * language.c: Use C++ exception handling.
10161 * jit.c: Use C++ exception handling.
10162 * infrun.c: Use C++ exception handling.
10163 * infcmd.c: Use C++ exception handling.
10164 * infcall.c: Use C++ exception handling.
10165 * inf-loop.c: Use C++ exception handling.
10166 * i386-tdep.c: Use C++ exception handling.
10167 * i386-linux-tdep.c: Use C++ exception handling.
10168 * guile/scm-value.c: Use C++ exception handling.
10169 * guile/scm-type.c: Use C++ exception handling.
10170 * guile/scm-symtab.c: Use C++ exception handling.
10171 * guile/scm-symbol.c: Use C++ exception handling.
10172 * guile/scm-pretty-print.c: Use C++ exception handling.
10173 * guile/scm-ports.c: Use C++ exception handling.
10174 * guile/scm-param.c: Use C++ exception handling.
10175 * guile/scm-math.c: Use C++ exception handling.
10176 * guile/scm-lazy-string.c: Use C++ exception handling.
10177 * guile/scm-frame.c: Use C++ exception handling.
10178 * guile/scm-disasm.c: Use C++ exception handling.
10179 * guile/scm-cmd.c: Use C++ exception handling.
10180 * guile/scm-breakpoint.c: Use C++ exception handling.
10181 * guile/scm-block.c: Use C++ exception handling.
10182 * guile/guile-internal.h: Use C++ exception handling.
10183 * gnu-v3-abi.c: Use C++ exception handling.
10184 * gdbtypes.c: Use C++ exception handling.
10185 * frame.c: Use C++ exception handling.
10186 * frame-unwind.c: Use C++ exception handling.
10187 * fbsd-tdep.c: Use C++ exception handling.
10188 * f-valprint.c: Use C++ exception handling.
10189 * exec.c: Use C++ exception handling.
10190 * event-top.c: Use C++ exception handling.
10191 * event-loop.c: Use C++ exception handling.
10192 * eval.c: Use C++ exception handling.
10193 * dwarf2read.c: Use C++ exception handling.
10194 * dwarf2loc.c: Use C++ exception handling.
10195 * dwarf2-frame.c: Use C++ exception handling.
10196 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10197 * dwarf-index-write.c: Use C++ exception handling.
10198 * dwarf-index-cache.c: Use C++ exception handling.
10199 * dtrace-probe.c: Use C++ exception handling.
10200 * disasm-selftests.c: Use C++ exception handling.
10201 * darwin-nat.c: Use C++ exception handling.
10202 * cp-valprint.c: Use C++ exception handling.
10203 * cp-support.c: Use C++ exception handling.
10204 * cp-abi.c: Use C++ exception handling.
10205 * corelow.c: Use C++ exception handling.
10206 * completer.c: Use C++ exception handling.
10207 * compile/compile-object-run.c: Use C++ exception handling.
10208 * compile/compile-object-load.c: Use C++ exception handling.
10209 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10210 * compile/compile-c-symbols.c: Use C++ exception handling.
10211 * common/selftest.c: Use C++ exception handling.
10212 * common/new-op.c: Use C++ exception handling.
10213 * cli/cli-script.c: Use C++ exception handling.
10214 * cli/cli-interp.c: Use C++ exception handling.
10215 * cli/cli-cmds.c: Use C++ exception handling.
10216 * c-varobj.c: Use C++ exception handling.
10217 * btrace.c: Use C++ exception handling.
10218 * breakpoint.c: Use C++ exception handling.
10219 * break-catch-throw.c: Use C++ exception handling.
10220 * arch-utils.c: Use C++ exception handling.
10221 * amd64-tdep.c: Use C++ exception handling.
10222 * ada-valprint.c: Use C++ exception handling.
10223 * ada-typeprint.c: Use C++ exception handling.
10224 * ada-lang.c: Use C++ exception handling.
10225 * aarch64-tdep.c: Use C++ exception handling.
10226
3d6e9d23
TT
102272019-04-08 Tom Tromey <tom@tromey.com>
10228
10229 * xml-support.c (gdb_xml_parser::parse): Update.
10230 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10231 * value.c (show_convenience): Update.
10232 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10233 (test_parse_flags_qcs): Update.
10234 * thread.c (thr_try_catch_cmd): Update.
10235 * target.c (target_translate_tls_address): Update.
10236 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10237 (info_frame_command_core, frame_apply_command_count): Update.
10238 * rust-exp.y (rust_lex_exception_test): Update.
10239 * riscv-tdep.c (riscv_print_one_register_info): Update.
10240 * remote.c (remote_target::enable_btrace): Update.
10241 * record-btrace.c (record_btrace_enable_warn): Update.
10242 * python/py-utils.c (gdbpy_convert_exception): Update.
10243 * printcmd.c (do_one_display, print_variable_and_value): Update.
10244 * mi/mi-main.c (mi_print_exception): Update.
10245 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10246 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10247 * linux-nat.c (linux_nat_target::attach): Update.
10248 * linux-fork.c (class scoped_switch_fork_info): Update.
10249 * infrun.c (displaced_step_prepare): Update.
10250 * infcall.c (call_function_by_hand_dummy): Update.
10251 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10252 * gnu-v3-abi.c (print_one_vtable): Update.
10253 * frame.c (get_prev_frame_always): Update.
10254 * f-valprint.c (info_common_command_for_block): Update.
10255 * exec.c (try_open_exec_file): Update.
10256 * exceptions.c (print_exception, exception_print)
10257 (exception_fprintf, exception_print_same): Update.
10258 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10259 * dwarf-index-cache.c (index_cache::store)
10260 (index_cache::lookup_gdb_index): Update.
10261 * darwin-nat.c (maybe_cache_shell): Update.
10262 * cp-valprint.c (cp_print_value_fields): Update.
10263 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10264 (gcc_cplus_symbol_address): Update.
10265 * compile/compile-c-symbols.c (gcc_convert_symbol)
10266 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10267 * common/selftest.c: Update.
10268 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10269 a std::string.
10270 (exception_try_scope_entry, exception_try_scope_exit): Don't
10271 declare.
10272 (struct exception_try_scope): Remove.
10273 (TRY): Don't use exception_try_scope.
10274 (struct gdb_exception): Add constructor, operator=.
10275 <what>: New method.
10276 (struct gdb_exception_RETURN_MASK_ALL)
10277 (struct gdb_exception_RETURN_MASK_ERROR)
10278 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10279 (struct gdb_quit_bad_alloc): Update.
10280 * common/common-exceptions.c (exception_none): Change
10281 initializer.
10282 (struct catcher) <state, exception>: Initialize inline.
10283 <prev>: Remove member.
10284 (current_catcher): Remove.
10285 (catchers): New global.
10286 (exceptions_state_mc_init): Simplify.
10287 (catcher_pop): Remove.
10288 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10289 (try_scope_depth, exception_try_scope_entry)
10290 (exception_try_scope_exit): Remove.
10291 (throw_exception_sjlj): Update.
10292 (exception_messages, exception_messages_size): Remove.
10293 (throw_it): Simplify.
10294 (gdb_exception_sliced_copy): Remove.
10295 (throw_exception_cxx): Update.
10296 * cli/cli-script.c (script_from_file): Update.
10297 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10298 Update.
10299 * ada-valprint.c (ada_val_print): Update.
10300 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10301 (create_excep_cond_exprs): Update.
10302
c5c10118
TT
103032019-04-08 Tom Tromey <tom@tromey.com>
10304
10305 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10306 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10307 (TRY, CATCH, END_CATCH): Remove some definitions.
10308 * common/common-exceptions.c: Don't use GDB_XCPT.
10309 (catcher_list_size): Remove.
10310 (throw_exception, throw_it): Simplify.
10311
4de283e4
TT
103122019-04-05 Tom Tromey <tom@tromey.com>
10313
10314 Revert the header-sorting patch.
10315 * ft32-tdep.c: Revert.
10316 * frv-tdep.c: Revert.
10317 * frv-linux-tdep.c: Revert.
10318 * frame.c: Revert.
10319 * frame-unwind.c: Revert.
10320 * frame-base.c: Revert.
10321 * fork-child.c: Revert.
10322 * findvar.c: Revert.
10323 * findcmd.c: Revert.
10324 * filesystem.c: Revert.
10325 * filename-seen-cache.h: Revert.
10326 * filename-seen-cache.c: Revert.
10327 * fbsd-tdep.c: Revert.
10328 * fbsd-nat.h: Revert.
10329 * fbsd-nat.c: Revert.
10330 * f-valprint.c: Revert.
10331 * f-typeprint.c: Revert.
10332 * f-lang.c: Revert.
10333 * extension.h: Revert.
10334 * extension.c: Revert.
10335 * extension-priv.h: Revert.
10336 * expprint.c: Revert.
10337 * exec.h: Revert.
10338 * exec.c: Revert.
10339 * exceptions.c: Revert.
10340 * event-top.c: Revert.
10341 * event-loop.c: Revert.
10342 * eval.c: Revert.
10343 * elfread.c: Revert.
10344 * dwarf2read.h: Revert.
10345 * dwarf2read.c: Revert.
10346 * dwarf2loc.c: Revert.
10347 * dwarf2expr.h: Revert.
10348 * dwarf2expr.c: Revert.
10349 * dwarf2-frame.c: Revert.
10350 * dwarf2-frame-tailcall.c: Revert.
10351 * dwarf-index-write.h: Revert.
10352 * dwarf-index-write.c: Revert.
10353 * dwarf-index-common.c: Revert.
10354 * dwarf-index-cache.h: Revert.
10355 * dwarf-index-cache.c: Revert.
10356 * dummy-frame.c: Revert.
10357 * dtrace-probe.c: Revert.
10358 * disasm.h: Revert.
10359 * disasm.c: Revert.
10360 * disasm-selftests.c: Revert.
10361 * dictionary.c: Revert.
10362 * dicos-tdep.c: Revert.
10363 * demangle.c: Revert.
10364 * dcache.h: Revert.
10365 * dcache.c: Revert.
10366 * darwin-nat.h: Revert.
10367 * darwin-nat.c: Revert.
10368 * darwin-nat-info.c: Revert.
10369 * d-valprint.c: Revert.
10370 * d-namespace.c: Revert.
10371 * d-lang.c: Revert.
10372 * ctf.c: Revert.
10373 * csky-tdep.c: Revert.
10374 * csky-linux-tdep.c: Revert.
10375 * cris-tdep.c: Revert.
10376 * cris-linux-tdep.c: Revert.
10377 * cp-valprint.c: Revert.
10378 * cp-support.c: Revert.
10379 * cp-namespace.c: Revert.
10380 * cp-abi.c: Revert.
10381 * corelow.c: Revert.
10382 * corefile.c: Revert.
10383 * continuations.c: Revert.
10384 * completer.h: Revert.
10385 * completer.c: Revert.
10386 * complaints.c: Revert.
10387 * coffread.c: Revert.
10388 * coff-pe-read.c: Revert.
10389 * cli-out.h: Revert.
10390 * cli-out.c: Revert.
10391 * charset.c: Revert.
10392 * c-varobj.c: Revert.
10393 * c-valprint.c: Revert.
10394 * c-typeprint.c: Revert.
10395 * c-lang.c: Revert.
10396 * buildsym.c: Revert.
10397 * buildsym-legacy.c: Revert.
10398 * build-id.h: Revert.
10399 * build-id.c: Revert.
10400 * btrace.c: Revert.
10401 * bsd-uthread.c: Revert.
10402 * breakpoint.h: Revert.
10403 * breakpoint.c: Revert.
10404 * break-catch-throw.c: Revert.
10405 * break-catch-syscall.c: Revert.
10406 * break-catch-sig.c: Revert.
10407 * blockframe.c: Revert.
10408 * block.c: Revert.
10409 * bfin-tdep.c: Revert.
10410 * bfin-linux-tdep.c: Revert.
10411 * bfd-target.c: Revert.
10412 * bcache.c: Revert.
10413 * ax-general.c: Revert.
10414 * ax-gdb.h: Revert.
10415 * ax-gdb.c: Revert.
10416 * avr-tdep.c: Revert.
10417 * auxv.c: Revert.
10418 * auto-load.c: Revert.
10419 * arm-wince-tdep.c: Revert.
10420 * arm-tdep.c: Revert.
10421 * arm-symbian-tdep.c: Revert.
10422 * arm-pikeos-tdep.c: Revert.
10423 * arm-obsd-tdep.c: Revert.
10424 * arm-nbsd-tdep.c: Revert.
10425 * arm-nbsd-nat.c: Revert.
10426 * arm-linux-tdep.c: Revert.
10427 * arm-linux-nat.c: Revert.
10428 * arm-fbsd-tdep.c: Revert.
10429 * arm-fbsd-nat.c: Revert.
10430 * arm-bsd-tdep.c: Revert.
10431 * arch-utils.c: Revert.
10432 * arc-tdep.c: Revert.
10433 * arc-newlib-tdep.c: Revert.
10434 * annotate.h: Revert.
10435 * annotate.c: Revert.
10436 * amd64-windows-tdep.c: Revert.
10437 * amd64-windows-nat.c: Revert.
10438 * amd64-tdep.c: Revert.
10439 * amd64-sol2-tdep.c: Revert.
10440 * amd64-obsd-tdep.c: Revert.
10441 * amd64-obsd-nat.c: Revert.
10442 * amd64-nbsd-tdep.c: Revert.
10443 * amd64-nbsd-nat.c: Revert.
10444 * amd64-nat.c: Revert.
10445 * amd64-linux-tdep.c: Revert.
10446 * amd64-linux-nat.c: Revert.
10447 * amd64-fbsd-tdep.c: Revert.
10448 * amd64-fbsd-nat.c: Revert.
10449 * amd64-dicos-tdep.c: Revert.
10450 * amd64-darwin-tdep.c: Revert.
10451 * amd64-bsd-nat.c: Revert.
10452 * alpha-tdep.c: Revert.
10453 * alpha-obsd-tdep.c: Revert.
10454 * alpha-nbsd-tdep.c: Revert.
10455 * alpha-mdebug-tdep.c: Revert.
10456 * alpha-linux-tdep.c: Revert.
10457 * alpha-linux-nat.c: Revert.
10458 * alpha-bsd-tdep.c: Revert.
10459 * alpha-bsd-nat.c: Revert.
10460 * aix-thread.c: Revert.
10461 * agent.c: Revert.
10462 * addrmap.c: Revert.
10463 * ada-varobj.c: Revert.
10464 * ada-valprint.c: Revert.
10465 * ada-typeprint.c: Revert.
10466 * ada-tasks.c: Revert.
10467 * ada-lang.c: Revert.
10468 * aarch64-tdep.c: Revert.
10469 * aarch64-ravenscar-thread.c: Revert.
10470 * aarch64-newlib-tdep.c: Revert.
10471 * aarch64-linux-tdep.c: Revert.
10472 * aarch64-linux-nat.c: Revert.
10473 * aarch64-fbsd-tdep.c: Revert.
10474 * aarch64-fbsd-nat.c: Revert.
10475 * aarch32-linux-nat.c: Revert.
10476
d55e5aa6
TT
104772019-04-05 Tom Tromey <tom@tromey.com>
10478
10479 * ft32-tdep.c: Sort headers.
10480 * frv-tdep.c: Sort headers.
10481 * frv-linux-tdep.c: Sort headers.
10482 * frame.c: Sort headers.
10483 * frame-unwind.c: Sort headers.
10484 * frame-base.c: Sort headers.
10485 * fork-child.c: Sort headers.
10486 * findvar.c: Sort headers.
10487 * findcmd.c: Sort headers.
10488 * filesystem.c: Sort headers.
10489 * filename-seen-cache.h: Sort headers.
10490 * filename-seen-cache.c: Sort headers.
10491 * fbsd-tdep.c: Sort headers.
10492 * fbsd-nat.h: Sort headers.
10493 * fbsd-nat.c: Sort headers.
10494 * f-valprint.c: Sort headers.
10495 * f-typeprint.c: Sort headers.
10496 * f-lang.c: Sort headers.
10497 * extension.h: Sort headers.
10498 * extension.c: Sort headers.
10499 * extension-priv.h: Sort headers.
10500 * expprint.c: Sort headers.
10501 * exec.h: Sort headers.
10502 * exec.c: Sort headers.
10503 * exceptions.c: Sort headers.
10504 * event-top.c: Sort headers.
10505 * event-loop.c: Sort headers.
10506 * eval.c: Sort headers.
10507 * elfread.c: Sort headers.
10508 * dwarf2read.h: Sort headers.
10509 * dwarf2read.c: Sort headers.
10510 * dwarf2loc.c: Sort headers.
10511 * dwarf2expr.h: Sort headers.
10512 * dwarf2expr.c: Sort headers.
10513 * dwarf2-frame.c: Sort headers.
10514 * dwarf2-frame-tailcall.c: Sort headers.
10515 * dwarf-index-write.h: Sort headers.
10516 * dwarf-index-write.c: Sort headers.
10517 * dwarf-index-common.c: Sort headers.
10518 * dwarf-index-cache.h: Sort headers.
10519 * dwarf-index-cache.c: Sort headers.
10520 * dummy-frame.c: Sort headers.
10521 * dtrace-probe.c: Sort headers.
10522 * disasm.h: Sort headers.
10523 * disasm.c: Sort headers.
10524 * disasm-selftests.c: Sort headers.
10525 * dictionary.c: Sort headers.
10526 * dicos-tdep.c: Sort headers.
10527 * demangle.c: Sort headers.
10528 * dcache.h: Sort headers.
10529 * dcache.c: Sort headers.
10530 * darwin-nat.h: Sort headers.
10531 * darwin-nat.c: Sort headers.
10532 * darwin-nat-info.c: Sort headers.
10533 * d-valprint.c: Sort headers.
10534 * d-namespace.c: Sort headers.
10535 * d-lang.c: Sort headers.
10536 * ctf.c: Sort headers.
10537 * csky-tdep.c: Sort headers.
10538 * csky-linux-tdep.c: Sort headers.
10539 * cris-tdep.c: Sort headers.
10540 * cris-linux-tdep.c: Sort headers.
10541 * cp-valprint.c: Sort headers.
10542 * cp-support.c: Sort headers.
10543 * cp-namespace.c: Sort headers.
10544 * cp-abi.c: Sort headers.
10545 * corelow.c: Sort headers.
10546 * corefile.c: Sort headers.
10547 * continuations.c: Sort headers.
10548 * completer.h: Sort headers.
10549 * completer.c: Sort headers.
10550 * complaints.c: Sort headers.
10551 * coffread.c: Sort headers.
10552 * coff-pe-read.c: Sort headers.
10553 * cli-out.h: Sort headers.
10554 * cli-out.c: Sort headers.
10555 * charset.c: Sort headers.
10556 * c-varobj.c: Sort headers.
10557 * c-valprint.c: Sort headers.
10558 * c-typeprint.c: Sort headers.
10559 * c-lang.c: Sort headers.
10560 * buildsym.c: Sort headers.
10561 * buildsym-legacy.c: Sort headers.
10562 * build-id.h: Sort headers.
10563 * build-id.c: Sort headers.
10564 * btrace.c: Sort headers.
10565 * bsd-uthread.c: Sort headers.
10566 * breakpoint.h: Sort headers.
10567 * breakpoint.c: Sort headers.
10568 * break-catch-throw.c: Sort headers.
10569 * break-catch-syscall.c: Sort headers.
10570 * break-catch-sig.c: Sort headers.
10571 * blockframe.c: Sort headers.
10572 * block.c: Sort headers.
10573 * bfin-tdep.c: Sort headers.
10574 * bfin-linux-tdep.c: Sort headers.
10575 * bfd-target.c: Sort headers.
10576 * bcache.c: Sort headers.
10577 * ax-general.c: Sort headers.
10578 * ax-gdb.h: Sort headers.
10579 * ax-gdb.c: Sort headers.
10580 * avr-tdep.c: Sort headers.
10581 * auxv.c: Sort headers.
10582 * auto-load.c: Sort headers.
10583 * arm-wince-tdep.c: Sort headers.
10584 * arm-tdep.c: Sort headers.
10585 * arm-symbian-tdep.c: Sort headers.
10586 * arm-pikeos-tdep.c: Sort headers.
10587 * arm-obsd-tdep.c: Sort headers.
10588 * arm-nbsd-tdep.c: Sort headers.
10589 * arm-nbsd-nat.c: Sort headers.
10590 * arm-linux-tdep.c: Sort headers.
10591 * arm-linux-nat.c: Sort headers.
10592 * arm-fbsd-tdep.c: Sort headers.
10593 * arm-fbsd-nat.c: Sort headers.
10594 * arm-bsd-tdep.c: Sort headers.
10595 * arch-utils.c: Sort headers.
10596 * arc-tdep.c: Sort headers.
10597 * arc-newlib-tdep.c: Sort headers.
10598 * annotate.h: Sort headers.
10599 * annotate.c: Sort headers.
10600 * amd64-windows-tdep.c: Sort headers.
10601 * amd64-windows-nat.c: Sort headers.
10602 * amd64-tdep.c: Sort headers.
10603 * amd64-sol2-tdep.c: Sort headers.
10604 * amd64-obsd-tdep.c: Sort headers.
10605 * amd64-obsd-nat.c: Sort headers.
10606 * amd64-nbsd-tdep.c: Sort headers.
10607 * amd64-nbsd-nat.c: Sort headers.
10608 * amd64-nat.c: Sort headers.
10609 * amd64-linux-tdep.c: Sort headers.
10610 * amd64-linux-nat.c: Sort headers.
10611 * amd64-fbsd-tdep.c: Sort headers.
10612 * amd64-fbsd-nat.c: Sort headers.
10613 * amd64-dicos-tdep.c: Sort headers.
10614 * amd64-darwin-tdep.c: Sort headers.
10615 * amd64-bsd-nat.c: Sort headers.
10616 * alpha-tdep.c: Sort headers.
10617 * alpha-obsd-tdep.c: Sort headers.
10618 * alpha-nbsd-tdep.c: Sort headers.
10619 * alpha-mdebug-tdep.c: Sort headers.
10620 * alpha-linux-tdep.c: Sort headers.
10621 * alpha-linux-nat.c: Sort headers.
10622 * alpha-bsd-tdep.c: Sort headers.
10623 * alpha-bsd-nat.c: Sort headers.
10624 * aix-thread.c: Sort headers.
10625 * agent.c: Sort headers.
10626 * addrmap.c: Sort headers.
10627 * ada-varobj.c: Sort headers.
10628 * ada-valprint.c: Sort headers.
10629 * ada-typeprint.c: Sort headers.
10630 * ada-tasks.c: Sort headers.
10631 * ada-lang.c: Sort headers.
10632 * aarch64-tdep.c: Sort headers.
10633 * aarch64-ravenscar-thread.c: Sort headers.
10634 * aarch64-newlib-tdep.c: Sort headers.
10635 * aarch64-linux-tdep.c: Sort headers.
10636 * aarch64-linux-nat.c: Sort headers.
10637 * aarch64-fbsd-tdep.c: Sort headers.
10638 * aarch64-fbsd-nat.c: Sort headers.
10639 * aarch32-linux-nat.c: Sort headers.
10640
699bd4cf
TT
106412019-04-04 Tom Tromey <tom@tromey.com>
10642
10643 * varobj.c (varobj_create): Update.
10644 * rust-exp.y (struct rust_parser) <update_innermost_block,
10645 lookup_symbol>: New methods.
10646 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10647 Rename.
10648 (rust_parser::rust_lookup_type)
10649 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10650 * printcmd.c (display_command, do_one_display): Update.
10651 * parser-defs.h (struct parser_state) <parser_state>: Add
10652 "tracker" parameter.
10653 (block_tracker): New member.
10654 (class innermost_block_tracker) <innermost_block_tracker>: Add
10655 "types" parameter.
10656 <reset>: Remove method.
10657 (innermost_block): Don't declare.
10658 (null_post_parser): Update.
10659 * parse.c (innermost_block): Remove global.
10660 (write_dollar_variable): Update.
10661 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10662 Remove "tracker_types" parameter.
10663 (parse_expression): Add "tracker" parameter.
10664 (parse_expression_for_completion): Update.
10665 (null_post_parser): Add "tracker" parameter.
10666 * p-exp.y: Update rules.
10667 * m2-exp.y: Update rules.
10668 * language.h (struct language_defn) <la_post_parser>: Add
10669 "tracker" parameter.
10670 * go-exp.y: Update rules.
10671 * f-exp.y: Update rules.
10672 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10673 parameter.
10674 * d-exp.y: Update rules.
10675 * c-exp.y: Update rules.
10676 * breakpoint.c (set_breakpoint_condition): Create an
10677 innermost_block_tracker.
10678 (watch_command_1): Likewise.
10679 * ada-lang.c (resolve): Add "tracker" parameter.
10680 (resolve_subexp): Likewise.
10681 * ada-exp.y (write_var_from_sym): Update.
10682
dac43e32
TT
106832019-04-04 Tom Tromey <tom@tromey.com>
10684
10685 * type-stack.h: New file.
10686 * type-stack.c: New file.
10687 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10688 type-stack.h.
10689 (insert_into_type_stack, insert_type, push_type, push_type_int)
10690 (insert_type_address_space, pop_type, pop_type_int)
10691 (pop_typelist, pop_type_stack, append_type_stack)
10692 (push_type_stack, get_type_stack, push_typelist)
10693 (follow_type_instance_flags, follow_types): Don't declare.
10694 * parse.c (type_stack): Remove global.
10695 (parse_exp_in_context): Update.
10696 (insert_into_type_stack, insert_type, push_type, push_type_int)
10697 (insert_type_address_space, pop_type, pop_type_int)
10698 (pop_typelist, pop_type_stack, append_type_stack)
10699 (push_type_stack, get_type_stack, push_typelist)
10700 (follow_type_instance_flags, follow_types): Remove (moved to
10701 type-stack.c).
10702 * f-exp.y (type_stack): New global.
10703 Update rules.
10704 (push_kind_type, f_parse): Update.
10705 * d-exp.y (type_stack): New global.
10706 Update rules.
10707 (d_parse): Update.
10708 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10709 Update rules.
10710 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10711 (HFILES_NO_SRCDIR): Add type-stack.h.
10712
2a612529
TT
107132019-04-04 Tom Tromey <tom@tromey.com>
10714
10715 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10716 (rust_parser::convert_ast_to_expression, rust_parse)
10717 (rust_lex_test_completion, rust_lex_tests): Update.
10718 * parser-defs.h (struct expr_completion_state): New.
10719 (struct parser_state) <parser_state>: Add completion parameter.
10720 <mark_struct_expression, mark_completion_tag>: New methods.
10721 <parse_completion, m_completion_state>: New members.
10722 (prefixify_expression, null_post_parser): Update.
10723 (mark_struct_expression, mark_completion_tag): Don't declare.
10724 * parse.c (parse_completion, expout_last_struct)
10725 (expout_tag_completion_type, expout_completion_name): Remove
10726 globals.
10727 (parser_state::mark_struct_expression)
10728 (parser_state::mark_completion_tag): Now methods.
10729 (prefixify_expression): Add last_struct parameter.
10730 (prefixify_subexp): Likewise.
10731 (parse_exp_1): Update.
10732 (parse_exp_in_context): Add cstate parameter. Update.
10733 (parse_expression_for_completion): Create an
10734 expr_completion_state.
10735 (null_post_parser): Add "completion" parameter.
10736 * p-exp.y: Update rules.
10737 (yylex): Update.
10738 * language.h (struct language_defn) <la_post_parser>: Add
10739 "completing" parameter.
10740 * go-exp.y: Update rules.
10741 (lex_one_token): Update.
10742 * expression.h (parse_completion): Don't declare.
10743 * d-exp.y: Update rules.
10744 (lex_one_token): Update rules.
10745 * c-exp.y: Update rules.
10746 (lex_one_token): Update.
10747 * ada-lang.c (resolve): Add "parse_completion" parameter.
10748 (resolve_subexp): Likewise.
10749 (ada_resolve_function): Likewise.
10750
43476f0b
TT
107512019-04-04 Tom Tromey <tom@tromey.com>
10752
10753 * parser-defs.h (struct parser_state) <start_arglist,
10754 end_arglist>: New methods.
10755 <arglist_len, m_funcall_chain>: New members.
10756 (arglist_len, start_arglist, end_arglist): Don't declare.
10757 * parse.c (arglist_len, funcall_chain): Remove global.
10758 (start_arglist, end_arglist): Remove functions.
10759 (parse_exp_in_context): Update.
10760 * p-exp.y: Update rules.
10761 * m2-exp.y: Update rules.
10762 * go-exp.y: Update rules.
10763 * f-exp.y: Update rules.
10764 * d-exp.y: Update rules.
10765 * c-exp.y: Update rules.
10766
5776fca3
TT
107672019-04-04 Tom Tromey <tom@tromey.com>
10768
10769 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10770 lex_operator, push_back>: New methods.
10771 Update all rules.
10772 (rust_parser::lex_hex, lex_escape): Rename and update.
10773 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10774 (rust_parser::lex_operator): Rename and update.
10775 (rust_parser::lex_number, rustyylex, rustyyerror)
10776 (rust_lex_test_init, rust_lex_test_sequence)
10777 (rust_lex_test_push_back, rust_lex_tests): Update.
10778 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10779 parameter.
10780 <lexptr, prev_lexptr>: New members.
10781 (lexptr, prev_lexptr): Don't declare.
10782 * parse.c (lexptr, prev_lexptr): Remove globals.
10783 (parse_exp_in_context): Update.
10784 * p-exp.y (yylex, yyerror): Update.
10785 * m2-exp.y (parse_number, yylex, yyerror): Update.
10786 * go-exp.y (lex_one_token, yyerror): Update.
10787 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10788 * d-exp.y (lex_one_token, yyerror): Update.
10789 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10790 (lex_one_token, yyerror): Update.
10791 * ada-lex.l (YY_INPUT): Update.
10792 (rewind_to_char): Update.
10793 * ada-exp.y (yyerror): Update.
10794
8621b685
TT
107952019-04-04 Tom Tromey <tom@tromey.com>
10796
10797 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10798 * parser-defs.h (struct parser_state) <parser_state>: Add new
10799 parameter.
10800 <comma_terminates>: New member.
10801 (comma_terminates): Don't declare global.
10802 * parse.c (comma_terminates): Remove global.
10803 (parse_exp_in_context): Update.
10804 * p-exp.y (yylex): Update.
10805 * m2-exp.y (yylex): Update.
10806 * go-exp.y (lex_one_token): Update.
10807 * f-exp.y (yylex): Update.
10808 * d-exp.y (lex_one_token): Update.
10809 * c-exp.y (lex_one_token): Update.
10810 * ada-lex.l: Update.
10811
28aaf3fd
TT
108122019-04-04 Tom Tromey <tom@tromey.com>
10813
10814 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10815 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10816 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10817 * parser-defs.h (paren_depth): Don't declare.
10818 * parse.c (paren_depth): Remove global.
10819 (parse_exp_in_context): Update.
10820 * p-exp.y (paren_depth): New global.
10821 (pascal_parse): Initialize it.
10822 * m2-exp.y (paren_depth): New global.
10823 (m2_parse): Initialize it.
10824 * go-exp.y (paren_depth): New global.
10825 (go_parse): Initialize it.
10826 * f-exp.y (paren_depth): New global.
10827 (f_parse): Initialize it.
10828 * d-exp.y (paren_depth): New global.
10829 (d_parse): Initialize it.
10830 * c-exp.y (paren_depth): New global.
10831 (c_parse): Initialize it.
10832 * ada-lex.l (paren_depth): New global.
10833 (lexer_init): Initialize it.
10834
1e58a4a4
TT
108352019-04-04 Tom Tromey <tom@tromey.com>
10836
10837 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10838 (rust_parser::convert_ast_to_type)
10839 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10840 * parser-defs.h (struct parser_state) <parser_state>: Add
10841 parameters. Initialize new members.
10842 <expression_context_block, expression_context_pc>: New members.
10843 * parse.c (expression_context_block, expression_context_pc):
10844 Remove globals.
10845 (parse_exp_in_context): Update.
10846 * p-exp.y: Update all rules.
10847 (yylex): Update.
10848 * m2-exp.y: Update all rules.
10849 (yylex): Update.
10850 * go-exp.y (yylex): Update.
10851 * f-exp.y (yylex): Update.
10852 * d-exp.y: Update all rules.
10853 (yylex): Update.
10854 * c-exp.y: Update all rules.
10855 (lex_one_token, classify_name, yylex, c_parse): Update.
10856 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10857
37eedb39
TT
108582019-04-04 Tom Tromey <tom@tromey.com>
10859
10860 * gdbarch.h, gdbarch.c: Rebuild.
10861 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10862 * stap-probe.h:
10863 (struct stap_parse_info): Replace "parser_state" with
10864 "expr_builder".
10865 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10866 (parser_state): New class.
10867 * parse.c (expr_builder): Rename.
10868 (expr_builder::release): Rename.
10869 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10870 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10871 (write_exp_elt_longcst, write_exp_elt_floatcst)
10872 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10873 (write_exp_string_vector, write_exp_bitstring)
10874 (write_exp_msymbol, mark_struct_expression)
10875 (write_dollar_variable)
10876 (insert_type_address_space, increase_expout_size): Replace
10877 "parser_state" with "expr_builder".
10878 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10879 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10880 "parser_state" with "expr_builder".
10881
73923d7e
TT
108822019-04-04 Tom Tromey <tom@tromey.com>
10883
10884 * rust-exp.y: Replace "parse_language" with method call.
10885 * p-exp.y:
10886 (yylex): Replace "parse_language" with method call.
10887 * m2-exp.y:
10888 (yylex): Replace "parse_language" with method call.
10889 * go-exp.y (classify_name): Replace "parse_language" with method
10890 call.
10891 * f-exp.y (yylex): Replace "parse_language" with method call.
10892 * d-exp.y (lex_one_token): Replace "parse_language" with method
10893 call.
10894 * c-exp.y:
10895 (lex_one_token, classify_name, yylex): Replace "parse_language"
10896 with method call.
10897 * ada-exp.y (find_primitive_type, type_char)
10898 (type_system_address): Replace "parse_language" with method call.
10899
fa9f5be6
TT
109002019-04-04 Tom Tromey <tom@tromey.com>
10901
10902 * rust-exp.y: Replace "parse_gdbarch" with method call.
10903 * parse.c (write_dollar_variable, insert_type_address_space):
10904 Replace "parse_gdbarch" with method call.
10905 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10906 call.
10907 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10908 call.
10909 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10910 "parse_gdbarch" with method call.
10911 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10912 with method call.
10913 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10914 "parse_gdbarch" with method call.
10915 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10916 "parse_gdbarch" with method call.
10917 * c-exp.y (parse_type, parse_number, classify_name): Replace
10918 "parse_gdbarch" with method call.
10919 * ada-lex.l: Replace "parse_gdbarch" with method call.
10920 * ada-exp.y (parse_type, find_primitive_type, type_char)
10921 (type_system_address): Replace "parse_gdbarch" with method call.
10922
1201a264
TT
109232019-04-04 Tom Tromey <tom@tromey.com>
10924
10925 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10926 * stap-probe.c (stap_parse_argument): Update.
10927 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10928 initial_size parameter.
10929 * rust-exp.y (rust_lex_tests): Update.
10930 * parse.c (parser_state): Update.
10931 (parse_exp_in_context): Update.
10932 * parser-defs.h (struct parser_state) <parser_state>: Remove
10933 "initial_size" parameter.
10934
e3980ce2
TT
109352019-04-04 Tom Tromey <tom@tromey.com>
10936
10937 * parser-defs.h (increase_expout_size): Don't declare.
10938 * parse.c (increase_expout_size): Now static.
10939
e9f8e3f1
TS
109402019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10941
10942 * gnu-nat.c (gnu_nat_target::wait): Fix
10943 target_waitstatus_to_string call.
10944
d7df6549
AB
109452019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * eval.c (evaluate_subexp_standard): Handle internal functions
10948 during Fortran function call handling.
10949
8bdc1658
AB
109502019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * NEWS: Mention new internal functions.
10953 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10954 (read_base_type): Use dwarf2_init_complex_target_type.
10955 * value.c (creal_internal_fn): New function.
10956 (cimag_internal_fn): New function.
10957 (_initialize_values): Register new internal functions.
10958
c29705b7
PW
109592019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10960
10961 * infrun.c (stop_all_threads): If debug_infrun, always
10962 trace the wait status after wait_one, using
10963 target_waitstatus_to_string and target_pid_to_str.
10964 (handle_inferior_event): Replace various trace of
10965 wait status kind by a single trace.
10966 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10967 wait status kind image by target_waitstatus_to_string.
10968 * target/waitstatus.c (target_waitstatus_to_string): Fix
10969 obsolete comment.
10970
05caa1d2
TT
109712019-04-01 Tom Tromey <tromey@adacore.com>
10972
10973 PR symtab/23331:
10974 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10975
9d1447e0
SDJ
109762019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10977 Pedro Alves <palves@redhat.com>
10978
10979 * top.c (quit_force): Call 'finalize_values'.
10980 * value.c (finalize_values): New function.
10981 * value.h (finalize_values): Declare.
10982
7734102d
EZ
109832019-03-30 Eli Zaretskii <eliz@gnu.org>
10984
10985 * NEWS: Announce $_gdb_major and $_gdb_minor.
10986
10987 * top.c (init_gdb_version_vars): New function.
10988 (gdb_init): Call init_gdb_version_vars.
10989
188e1fa9
TT
109902019-03-29 Tom Tromey <tromey@adacore.com>
10991
10992 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10993 help text. Remove dead code.
10994
2880242d
KS
109952019-03-29 Keith Seitz <keiths@redhat.com>
10996
10997 From Siddhesh Poyarekar:
10998 * f-lang.h (f77_get_upperbound): Return LONGEST.
10999 (f77_get_lowerbound): Likewise.
11000 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11001 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11002 print them.
11003 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11004 plongest to format print it.
11005 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11006 (f77_get_upperbound): Likewise.
11007 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11008 LOWER_BOUND to LONGEST.
11009 (f77_create_arrayprint_offset_tbl): Likewise.
11010
cc1defb1
KS
110112019-03-29 Keith Seitz <keiths@redhat.com>
11012
11013 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11014 %s/pulongest for TYPE_LENGTH instead of %d in format
11015 strings.
11016 * ada-typerint.c (ada_print_type): Likewise.
11017 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11018 * compile/compile-c-support.c (generate_register_struct): Likewise.
11019 * gdbtypes.c (recursive_dump_type): Likewise.
11020 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11021 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11022 instead of %d in format strings.
11023 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11024 to std::min to ULONGEST.
11025 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11026 instead of %d in format strings.
11027 * tracepoint.c (info_scope_command): Likewise.
11028 * typeprint.c (print_offset_data::update)
11029 (print_offset_data::finish): Likewise.
11030 * xtensa-tdep.c (xtensa_store_return_value)
11031 (xtensa_push_dummy_call): Likewise.
11032
e432ccf1
JT
110332019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11034
11035 * windows-nat.c (display_selector): Fixed format specifications
11036 for 64-bit Cygwin.
11037
65d2b333
PW
110382019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11039
11040 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11041
f489207e
SL
110422019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11043
11044 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11045 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11046 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11047 (nios2_linux_init_abi): Install it.
11048
bffa1015
AH
110492019-03-28 Alan Hayward <alan.hayward@arm.com>
11050
11051 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11052
fc96163a
AH
110532019-03-28 Alan Hayward <alan.hayward@arm.com>
11054
11055 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11056
20dc7e9b
PW
110572019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11058 Tom Tromey <tromey@adacore.com>
11059
11060 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11061
7f5331a8
JB
110622019-03-26 Joel Brobecker <brobecker@adacore.com>
11063
11064 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11065 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11066 method to compute the bounds of range types. Also print "[evaluated]"
11067 if the bounds' values come from a dynamic evaluation.
11068
18c77628
AB
110692019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11070
11071 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11072 whitespace when pretty printing is on.
11073
53c973f2
AH
110742019-03-26 Alan Hayward <alan.hayward@arm.com>
11075
e79be6e5 11076 * ppc-linux-nat.c: Add include.
53c973f2 11077
d851aa71
AH
110782019-03-26 Alan Hayward <alan.hayward@arm.com>
11079
e79be6e5 11080 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11081
2fe7bab7
AH
110822019-03-26 Alan Hayward <alan.hayward@arm.com>
11083
e79be6e5 11084 * arm-linux-nat.c: Add include.
2fe7bab7 11085
068ef30e
SM
110862019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11087
11088 * source-cache.c (source_cache::get_source_lines): Re-read
11089 fullname after calling open_source_file.
11090
81a24d04
JB
110912019-03-25 John Baldwin <jhb@FreeBSD.org>
11092
11093 * NEWS: Mention TLS support for FreeBSD.
11094
79e7ae11
TT
110952019-03-25 Tom Tromey <tromey@adacore.com>
11096
11097 * minsyms.c (BUNCH_SIZE): Update comment.
11098 (~minimal_symbol_reader): Remove old comment.
11099 (compact_minimal_symbols): Update comment.
11100 (minimal_symbol_reader::install): Remove old comment. Update
11101 other comments.
11102
d45963c2
AH
111032019-03-25 Alan Hayward <alan.hayward@arm.com>
11104
11105 * s390-linux-nat.c: Add include.
11106
0f83012e
AH
111072019-03-25 Alan Hayward <alan.hayward@arm.com>
11108
11109 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11110 Call linux_get_hwcap.
11111 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11112 Likewise.
11113 (aarch64_linux_get_hwcap): Remove function.
11114 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11115 declaration.
11116 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11117 linux_get_hwcap.
11118 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11119 * linux-tdep.c (linux_get_hwcap): Add function.
11120 (linux_get_hwcap2): Likewise.
11121 * linux-tdep.h (linux_get_hwcap): Add declaration.
11122 (linux_get_hwcap2): Likewise.
11123 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11124 (ppc_linux_get_hwcap2): Likewise.
11125 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11126 linux_get_hwcap.
11127 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11128 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11129 (ppc_linux_nat_target::read_description): Likewise.
11130 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11131 * s390-linux-nat.c: Likewise.
11132 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11133
6640a367
TT
111342019-03-24 Tom Tromey <tom@tromey.com>
11135
11136 * ada-lang.c (standard_lookup): Simplify initialization.
11137 (ada_lookup_symbol_nonlocal): Simplify return.
11138 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11139 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11140 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11141 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11142 initialization.
11143 * solib.c (solib_global_lookup): Simplify.
11144 * symtab.c (null_block_symbol): Remove.
11145 (symbol_cache_lookup): Simplify returns.
11146 (lookup_language_this): Simplify returns.
11147 (lookup_symbol_aux): Simplify return.
11148 (lookup_local_symbol): Simplify returns.
11149 (lookup_global_symbol_from_objfile): Simplify return.
11150 (lookup_symbol_in_objfile_symtabs)
11151 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11152 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11153 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11154 * cp-namespace.c (cp_lookup_bare_symbol)
11155 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11156 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11157 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11158 (cp_lookup_symbol_via_imports): Simplify initialization.
11159 (find_symbol_in_baseclass): Likewise.
11160 * symtab.h (null_block_symbol): Remove.
11161 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11162 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11163 (d_lookup_symbol_module): Likewise.
11164 (find_symbol_in_baseclass): Simplify initialization.
11165
a930ebcd
TT
111662019-03-24 Tom Tromey <tom@tromey.com>
11167
11168 * expression.h: Don't include symtab.h.
11169 (struct block): Forward declare.
11170
582942f4
TT
111712019-03-24 Tom Tromey <tom@tromey.com>
11172
11173 * c-exp.y (typebase): Remove casts.
11174 * gdbtypes.c (lookup_unsigned_typename, )
11175 (lookup_signed_typename): Remove cast.
11176 * eval.c (parse_to_comma_and_eval): Remove cast.
11177 * parse.c (write_dollar_variable): Remove cast.
11178 * block.h (struct block) <superblock>: Now const.
11179 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11180 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11181 (map_block): Make "block" const.
11182 * symfile.h (struct quick_symbol_functions)
11183 <map_matching_symbols>: Constify block argument to "callback".
11184 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11185 const.
11186 (find_pc_sect_compunit_symtab): Make "b" const.
11187 (find_symbol_at_address): Likewise.
11188 (search_symbols): Likewise.
11189 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11190 (dw2_debug_names_lookup_symbol): Likewise.
11191 (dw2_map_matching_symbols): Update.
11192 * p-valprint.c (pascal_val_print): Remove "block".
11193 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11194 (aux_add_nonlocal_symbols): Make "block" const.
11195 (resolve_subexp): Remove cast.
11196 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11197 const.
11198 (iterate_over_file_blocks): Likewise.
11199 * f-exp.y (%union) <bval>: Remove.
11200 * coffread.c (patch_opaque_types): Make "b" const.
11201 * spu-tdep.c (spu_catch_start): Make "block" const.
11202 * c-valprint.c (print_unpacked_pointer): Remove "block".
11203 * symmisc.c (dump_symtab_1): Make "b" const.
11204 (block_depth): Make "block" const.
11205 * d-exp.y (%union) <bval>: Remove.
11206 * cp-support.h (cp_lookup_rtti_type): Update.
11207 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11208 * psymtab.c (psym_lookup_symbol): Make "block" const.
11209 (maintenance_check_psymtabs): Make "b" const.
11210 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11211 (enumerate_locals, enumerate_args): Update.
11212 * python/py-symtab.c (stpy_global_block): Make "block" const.
11213 (stpy_static_block): Likewise.
11214 * inline-frame.c (block_starting_point_at): Make "new_block"
11215 const.
11216 * block.c (find_block_in_blockvector): Make return type const.
11217 (blockvector_for_pc_sect): Make "b" const.
11218 (find_block_in_blockvector): Make "b" const.
11219
7ad417dd
TT
112202019-03-23 Tom Tromey <tom@tromey.com>
11221
11222 * varobj.c (varobj_create): Update.
11223 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11224 * printcmd.c (display_command, do_one_display): Don't reset
11225 innermost_block.
11226 * parser-defs.h (enum innermost_block_tracker_type): Move to
11227 expression.h.
11228 (innermost_block): Update comment.
11229 * parse.c (parse_exp_1): Add tracker_types parameter.
11230 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11231 tracker_types parameter. Reset innermost_block.
11232 (parse_exp_in_context): Remove.
11233 (parse_expression_for_completion): Update.
11234 * objfiles.c (~objfile): Don't reset expression_context_block or
11235 innermost_block.
11236 * expression.h (enum innermost_block_tracker_type): Move from
11237 parser-defs.h.
11238 (parse_exp_1): Add tracker_types parameter.
11239 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11240 reset innermost_block.
11241
b366c208
TT
112422019-03-23 Tom Tromey <tom@tromey.com>
11243
11244 * objfiles.h: Include bcache.h.
11245
9bb9b2f9
TT
112462019-03-23 Tom Tromey <tom@tromey.com>
11247
11248 * linespec.c (get_current_search_block): Use
11249 scoped_restore_current_language.
11250 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11251
59c28372
AH
112522019-03-22 Alan Hayward <alan.hayward@arm.com>
11253 Jiong Wang <jiong.wang@arm.com>
11254
11255 * aarch64-linux-tdep.c
11256 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11257 section.
11258 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11259
17e116a7
AH
112602019-03-22 Alan Hayward <alan.hayward@arm.com>
11261 Jiong Wang <jiong.wang@arm.com>
11262
11263 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11264 instructions.
11265 (aarch64_analyze_prologue_test): Add PACIASP test.
11266 (aarch64_prologue_prev_register): Unmask PC value.
11267
11e1b75f
AH
112682019-03-22 Alan Hayward <alan.hayward@arm.com>
11269 Jiong Wang <jiong.wang@arm.com>
11270
11271 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11272 (aarch64_dwarf2_prev_register): Unmask PC value.
11273 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11274 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11275 DW_CFA_AARCH64_negate_ra_state.
11276 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11277
34dcc7cf
AH
112782019-03-22 Alan Hayward <alan.hayward@arm.com>
11279 Jiong Wang <jiong.wang@arm.com>
11280
11281 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11282 registers.
11283 (aarch64_pseudo_register_name): Likewise.
11284 (aarch64_pseudo_register_type): Likewise.
11285 (aarch64_pseudo_register_reggroup_p): Likewise.
11286 (aarch64_gdbarch_init): Add pauth registers.
11287 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11288 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11289 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11290 (struct gdbarch_tdep): Add regnum for ra_state.
11291
1ef53e6b
AH
112922019-03-22 Alan Hayward <alan.hayward@arm.com>
11293 Jiong Wang <jiong.wang@arm.com>
11294
11295 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11296
76bed0fd
AH
112972019-03-22 Alan Hayward <alan.hayward@arm.com>
11298 Jiong Wang <jiong.wang@arm.com>
11299
11300 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11301 function.
11302 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11303 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11304 (aarch64_gdbarch_init): Add puth registers.
11305 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11306 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11307 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11308
ee4fbcfa
AH
113092019-03-22 Alan Hayward <alan.hayward@arm.com>
11310 Jiong Wang <jiong.wang@arm.com>
11311
11312 * aarch64-linux-nat.c
11313 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11314 * aarch64-linux-tdep.c
11315 (aarch64_linux_core_read_description): Likewise.
11316 (aarch64_linux_get_hwcap): New function.
11317 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11318 (aarch64_linux_get_hwcap): New declaration.
11319
6dc0ebde
AH
113202019-03-22 Alan Hayward <alan.hayward@arm.com>
11321 Jiong Wang <jiong.wang@arm.com>
11322
11323 * aarch64-linux-nat.c
11324 (aarch64_linux_nat_target::read_description): Add pauth param.
11325 * aarch64-linux-tdep.c
11326 (aarch64_linux_core_read_description): Likewise.
11327 * aarch64-tdep.c (struct target_desc): Add in pauth.
11328 (aarch64_read_description): Add pauth param.
11329 (aarch64_gdbarch_init): Likewise.
11330 * aarch64-tdep.h (aarch64_read_description): Likewise.
11331 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11332 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11333 * features/Makefile: Add new files.
11334 * features/aarch64-pauth.c: New file.
11335 * features/aarch64-pauth.xml: New file.
11336
595915c1
TT
113372019-03-20 Tom Tromey <tromey@adacore.com>
11338
11339 * infrun.c (handle_inferior_event): Rename from
11340 handle_inferior_event_1. Create a scoped_value_mark.
11341 (handle_inferior_event): Remove.
11342
4c7d57e7
TT
113432019-03-19 Tom Tromey <tromey@adacore.com>
11344
11345 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11346 * infrun.h (print_stop_event): Add "displays" parameter.
11347 * infrun.c (print_stop_event): Add "displays" parameter.
11348
cb246234
PA
113492019-03-19 Pedro Alves <palves@redhat.com>
11350
11351 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11352 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11353 to -1. Fix TABs vs spaces.
11354 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11355 * tui/tui-out.h (tui_ui_out) Add intro comments.
11356 <m_line, m_start_of_line>: In-class initialize, and add describing
11357 comment.
11358
3a0e45b2
AH
113592019-03-18 Alan Hayward <alan.hayward@arm.com>
11360
11361 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11362 variable names.
11363 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11364
5371b850
PA
113652019-03-18 Pedro Alves <palves@redhat.com>
11366 Eli Zaretskii <eliz@gnu.org>
11367
11368 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11369 m_line and m_start_of_line.
11370
b17c4cd0
EZ
113712019-03-18 Eli Zaretskii <eliz@gnu.org>
11372
11373 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11374 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11375 it returns a newline. This fixes a regression in TU mode, whereby
11376 the next line is output on the same screen line as the user input.
11377
4bd56d18
TT
113782019-03-18 Tom Tromey <tromey@adacore.com>
11379
11380 * minsyms.c (minimal_symbol_reader::install): Remove call to
11381 obstack_blank.
11382
55c10aca
PA
113832019-03-18 Pedro Alves <palves@redhat.com>
11384
11385 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11386 New globals.
11387 (apply_style): New, factored out from ...
11388 (apply_ansi_escape): ... this. Handle reverse video mode.
11389 (tui_set_reverse_mode): New function.
11390 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11391 * tui/tui-winsource.c (tui_show_source_line): Use
11392 tui_set_reverse_mode instead of setting A_STANDOUT.
11393 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11394 New setter methods.
11395
647bb750
HD
113962019-03-18 Hannes Domani <ssbssa@yahoo.de>
11397
11398 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11399 Handle tabs.
11400
bff8c71f
TT
114012019-03-18 Tom Tromey <tromey@adacore.com>
11402
11403 * ada-lang.c (empty_array): Add "high" parameter.
11404 (ada_evaluate_subexp): Update.
11405
58785d98
ST
114062019-03-17 Sergei Trofimovich <siarheit@google.com>
11407
11408 * unittests/string_view-selftests.c: Define
11409 _initialize_string_view_selftests unconditionally.
11410
d4cbef22
ВМ
114112019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11412
11413 PR gdb/24350
11414 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11415
fce4c071
ВМ
114162019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11417
11418 PR gdb/24351
11419 * windows-nat.c (display_selector): Fix format specifiers.
11420
f7f0a123
EZ
114212019-03-17 Eli Zaretskii <eliz@gnu.org>
11422
11423 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11424 tui_refill_source_window instead of tui_refresh_win, to update the
11425 current execution line. This fixes redisplay of the current line
11426 when stepping through the code with "next" or "step".
11427
ab42892f
EZ
114282019-03-16 Eli Zaretskii <eliz@gnu.org>
11429
11430 * source-cache.c (source_cache::get_source_lines): Call
11431 find_source_lines to initialize s->nlines. This fixes vertical
11432 scrolling of TUI source window when the DOWN arrow is pressed.
11433
8d8c087f
PW
114342019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11435
11436 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11437 linux-thread-db.c (_initialize_thread_db): Likewise.
11438
798e1c30
EZ
114392019-03-16 Eli Zaretskii <eliz@gnu.org>
11440
11441 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11442 wclrtoeol in tui_show_source_line". This reverts changes made in
11443 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11444
eefba3da
TT
114452019-03-15 Tom Tromey <tom@tromey.com>
11446
11447 * symtab.h (struct minimal_symbol): Derive from
11448 general_symbol_info.
11449 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11450 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11451 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11452 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11453 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11454 (MSYMBOL_SEARCH_NAME): Update.
11455 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11456 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11457 * minsyms.c (minimal_symbol_reader::record_full): Update.
11458
0de2420c
TT
114592019-03-15 Tom Tromey <tom@tromey.com>
11460
11461 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11462
042d75e4
TT
114632019-03-15 Tom Tromey <tom@tromey.com>
11464
11465 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11466 unique_xmalloc_ptr.
11467 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11468 Update.
11469 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11470 (build_minimal_symbol_hash_tables)
11471 (minimal_symbol_reader::install): Update.
11472
db92718b
TT
114732019-03-15 Tom Tromey <tom@tromey.com>
11474
11475 * symtab.c (create_demangled_names_hash): Update.
11476 (symbol_set_names): Update.
11477 * objfiles.h (struct objfile_per_bfd_storage)
11478 <demangled_names_hash>: Now an htab_up.
11479 * objfiles.c (objfile_per_bfd_storage): Simplify.
11480
d6797f46
TT
114812019-03-15 Tom Tromey <tom@tromey.com>
11482
11483 * objfiles.h (struct objfile_per_bfd_storage): Declare
11484 destructor.
11485 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11486 New.
11487 (get_objfile_bfd_data): Use new. Don't initialize
11488 language_of_main.
11489 (free_objfile_per_bfd_storage): Remove.
11490 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11491
741d7538
TT
114922019-03-15 Tom Tromey <tom@tromey.com>
11493
11494 * symfile.c (reread_symbols): Update.
11495 * objfiles.c (objfile::objfile): Update.
11496 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11497 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11498 comment.
11499 (minimal_symbol_reader::install): Update.
11500 (terminate_minimal_symbol_table): Remove.
11501 * jit.c (jit_object_close_impl): Update.
11502
788c80d1
TT
115032019-03-15 Tom Tromey <tom@tromey.com>
11504
11505 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11506 initializations.
11507
1b7a07cb
TT
115082019-03-15 Tom Tromey <tom@tromey.com>
11509
11510 * objfiles.h (struct objfile_per_bfd_storage)
11511 <demangled_hash_languages>: Now a bitset.
11512 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11513 (lookup_minimal_symbol): Update.
11514
3db066bc
TT
115152019-03-15 Tom Tromey <tom@tromey.com>
11516
11517 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11518 Don't return the symbol.
11519 * coffread.c (record_minimal_symbol): Use record_full.
11520
3fff2c37
EZ
115212019-03-14 Eli Zaretskii <eliz@gnu.org>
11522
11523 The MS-Windows port of ncurses fails to switch to a color pair if
11524 one or both of the colors are the implicit default colors. This
11525 change records the default colors when TUI is initialized, and
11526 then specifies them explicitly when a color pair uses the default
11527 colors. This allows color styling in TUI mode on MS-Windows.
11528
11529 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11530 ncurses_norm_attr.
11531 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11532 colors in ncurses_norm_attr.
11533 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11534 "none", replace it with the default color recorded in
11535 ncurses_norm_attr.
11536
3b336828
TT
115372019-03-14 Tom Tromey <tromey@adacore.com>
11538
11539 * source-cache.h (class source_cache) <get_source_lines>: Return
11540 std::string.
11541 * source-cache.c (source_cache::extract_lines): Handle case where
11542 first_pos==npos. Return std::string.
11543 (source_cache::get_source_lines): Update.
11544
d085f989
TT
115452019-03-14 Tom Tromey <tromey@adacore.com>
11546
11547 * NEWS: Add item for "style sources" commands.
11548 * source-cache.c (source_cache::get_source_lines): Check
11549 source_styling.
11550 * cli/cli-style.c (source_styling): New global.
11551 (_initialize_cli_style): Add "style sources" commands.
11552 (show_style_sources): New function.
11553 * cli/cli-style.h (source_styling): Declare.
11554
6f11e682
TT
115552019-03-14 Pedro Alves <palves@redhat.com>
11556 Tom Tromey <tromey@adacore.com>
11557
11558 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11559 * tui/tui-winsource.c (tui_refill_source_window): New function,
11560 from...
11561 (tui_horizontal_source_scroll): ... here. Move some logic.
11562 * cli/cli-style.c (set_style_enabled): Notify new observable.
11563 * tui/tui-hooks.c (tui_redisplay_source): New function.
11564 (tui_attach_detach_observers): Attach or detach
11565 tui_redisplay_source.
11566 * observable.h (source_styling_changed): New observable.
11567 * observable.c: Define source_styling_changed observable.
11568
a068643d
TT
115692019-03-13 Tom Tromey <tromey@adacore.com>
11570
11571 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11572 (i386_gnu_nat_target::store_registers): Update.
11573 * target-debug.h (target_debug_print_std_string): New macro.
11574 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11575 * windows-tdep.c (display_one_tib): Update.
11576 * tui/tui-stack.c (tui_make_status_line): Update.
11577 * top.c (print_inferior_quit_action): Update.
11578 * thread.c (thr_try_catch_cmd): Update.
11579 (add_thread_with_info): Update.
11580 (thread_target_id_str): Update.
11581 (thr_try_catch_cmd): Update.
11582 (thread_command): Update.
11583 (thread_find_command): Update.
11584 * record-btrace.c (record_btrace_target::info_record)
11585 (record_btrace_resume_thread, record_btrace_target::resume)
11586 (record_btrace_cancel_resume, record_btrace_step_thread)
11587 (record_btrace_target::wait, record_btrace_target::wait)
11588 (record_btrace_target::wait, record_btrace_target::stop): Update.
11589 * progspace.c (print_program_space): Update.
11590 * process-stratum-target.c
11591 (process_stratum_target::thread_address_space): Update.
11592 * linux-fork.c (linux_fork_mourn_inferior)
11593 (detach_checkpoint_command, info_checkpoints_command)
11594 (linux_fork_context): Update.
11595 (linux_fork_detach): Update.
11596 (class scoped_switch_fork_info): Update.
11597 (delete_checkpoint_command): Update.
11598 * infrun.c (follow_fork_inferior): Update.
11599 (follow_fork_inferior): Update.
11600 (proceed_after_vfork_done): Update.
11601 (handle_vfork_child_exec_or_exit): Update.
11602 (follow_exec): Update.
11603 (displaced_step_prepare_throw): Update.
11604 (displaced_step_restore): Update.
11605 (start_step_over): Update.
11606 (resume_1): Update.
11607 (clear_proceed_status_thread): Update.
11608 (proceed): Update.
11609 (print_target_wait_results): Update.
11610 (do_target_wait): Update.
11611 (context_switch): Update.
11612 (stop_all_threads): Update.
11613 (restart_threads): Update.
11614 (finish_step_over): Update.
11615 (handle_signal_stop): Update.
11616 (switch_back_to_stepped_thread): Update.
11617 (keep_going_pass_signal): Update.
11618 (print_exited_reason): Update.
11619 (normal_stop): Update.
11620 * inferior.c (inferior_pid_to_str): Change return type.
11621 (print_selected_inferior): Update.
11622 (add_inferior): Update.
11623 (detach_inferior): Update.
11624 * dummy-frame.c (fprint_dummy_frames): Update.
11625 * dcache.c (dcache_info_1): Update.
11626 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11627 (btrace_fetch, btrace_clear): Update.
11628 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11629 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11630 type.
11631 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11632 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11633 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11634 * gdbarch.c, gdbarch.h: Rebuild.
11635 * gdbarch.sh (core_pid_to_str): Change return type.
11636 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11637 return type.
11638 (windows_nat_target::pid_to_str): Change return type.
11639 (windows_delete_thread): Update.
11640 (windows_nat_target::attach): Update.
11641 (windows_nat_target::files_info): Update.
11642 * target-delegates.c: Rebuild.
11643 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11644 return type.
11645 (sol_thread_target::pid_to_str): Change return type.
11646 * remote.c (class remote_target) <pid_to_str>: Change return
11647 type.
11648 (remote_target::pid_to_str): Change return type.
11649 (extended_remote_target::attach, remote_target::remote_stop_ns)
11650 (remote_target::remote_notif_remove_queued_reply)
11651 (remote_target::push_stop_reply, remote_target::disable_btrace):
11652 Update.
11653 (extended_remote_target::attach): Update.
11654 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11655 type.
11656 (gdbsim_target::pid_to_str): Change return type.
11657 * ravenscar-thread.c (struct ravenscar_thread_target)
11658 <pid_to_str>: Change return type.
11659 (ravenscar_thread_target::pid_to_str): Change return type.
11660 * procfs.c (class procfs_target) <pid_to_str>: Change return
11661 type.
11662 (procfs_target::pid_to_str): Change return type.
11663 (procfs_target::attach): Update.
11664 (procfs_target::detach): Update.
11665 (procfs_target::fetch_registers): Update.
11666 (procfs_target::store_registers): Update.
11667 (procfs_target::wait): Update.
11668 (procfs_target::files_info): Update.
11669 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11670 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11671 return type.
11672 (nto_procfs_target::pid_to_str): Change return type.
11673 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11674 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11675 return type.
11676 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11677 (exit_lwp): Update.
11678 (attach_proc_task_lwp_callback, get_detach_signal)
11679 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11680 (linux_nat_target::resume, wait_lwp, stop_callback)
11681 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11682 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11683 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11684 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11685 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11686 type.
11687 (inf_ptrace_target::attach): Update.
11688 (inf_ptrace_target::files_info): Update.
11689 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11690 type.
11691 (go32_nat_target::pid_to_str): Change return type.
11692 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11693 (gnu_nat_target::wait): Update.
11694 (gnu_nat_target::wait): Update.
11695 (gnu_nat_target::resume): Update.
11696 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11697 (fbsd_nat_target::wait): Update.
11698 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11699 type.
11700 (darwin_nat_target::attach): Update.
11701 * corelow.c (class core_target) <pid_to_str>: Change return type.
11702 (core_target::pid_to_str): Change return type.
11703 * target.c (normal_pid_to_str): Change return type.
11704 (default_pid_to_str): Likewise.
11705 (target_pid_to_str): Change return type.
11706 (target_translate_tls_address): Update.
11707 (target_announce_detach): Update.
11708 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11709 return type.
11710 (bsd_uthread_target::pid_to_str): Change return type.
11711 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11712 type.
11713 (bsd_kvm_target::pid_to_str): Change return type.
11714 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11715 return type.
11716 (aix_thread_target::pid_to_str): Change return type.
11717 * target.h (struct target_ops) <pid_to_str>: Change return type.
11718 (target_pid_to_str, normal_pid_to_str): Likewise.
11719 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11720 type.
11721 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11722 type.
11723 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11724 return type.
11725 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11726 type.
11727 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11728 type.
11729 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11730 return type.
11731
b4be1b06
SM
117322019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11733
11734 * NEWS: Mention that the new default MI version is 3. Mention
11735 changes to the output of commands and events that deal with
11736 multi-location breakpoints.
11737 * breakpoint.c: Include "mi/mi-out.h".
11738 (print_one_breakpoint): Change output syntax if using MI version
11739 >= 3.
11740 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11741 New.
11742 (mi_multi_location_breakpoint_output_fixed): New.
11743 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11744 (mi_cmd_fix_multi_location_breakpoint_output): New.
11745 (mi_multi_location_breakpoint_output_fixed): New.
11746 * mi/mi-cmds.c (mi_cmds): Register command
11747 -fix-multi-location-breakpoint-output.
11748 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11749 interpreter "mi".
11750
8e5e5494
SM
117512019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11752
11753 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11754 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11755 instantiate mi_ui_out based on interpreter name.
11756 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11757 * mi/mi-main.c (mi_load_progress): Likewise.
11758
197df35e
JB
117592019-03-12 John Baldwin <jhb@FreeBSD.org>
11760
11761 * NEWS: Combine separate "New targets" sections for 8.3.
11762
8399425f
JB
117632019-03-12 John Baldwin <jhb@FreeBSD.org>
11764
11765 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11766 (ppcfbsd_init_abi): Install gdbarch
11767 "fetch_tls_load_module_address" and "get_thread_local_address"
11768 methods.
11769
b0f87ed0
JB
117702019-03-12 John Baldwin <jhb@FreeBSD.org>
11771
11772 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11773 (riscv_fbsd_init_abi): Install gdbarch
11774 "fetch_tls_load_module_address" and "get_thread_local_address"
11775 methods.
11776
ce25aa57
JB
117772019-03-12 John Baldwin <jhb@FreeBSD.org>
11778
11779 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11780 (i386fbsd_init_abi): Install gdbarch
11781 "fetch_tls_load_module_address" and "get_thread_local_address"
11782 methods.
11783
f5424cfa
JB
117842019-03-12 John Baldwin <jhb@FreeBSD.org>
11785
11786 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11787 (amd64fbsd_init_abi): Install gdbarch
11788 "fetch_tls_load_module_address" and "get_thread_local_address"
11789 methods.
11790
945f3901
JB
117912019-03-12 John Baldwin <jhb@FreeBSD.org>
11792
11793 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11794 (struct fbsd_pspace_data): New type.
11795 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11796 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11797 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11798 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11799 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11800
ef0bd204
JB
118012019-03-12 John Baldwin <jhb@FreeBSD.org>
11802
11803 * gdbtypes.c (lookup_struct_elt): New function.
11804 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11805 * gdbtypes.h (struct struct_elt): New type.
11806 (lookup_struct_elt): New prototype.
11807
36c53a02
JB
118082019-03-12 John Baldwin <jhb@FreeBSD.org>
11809
11810 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11811 remove disabled code block.
11812
6e056c81
JB
118132019-03-12 John Baldwin <jhb@FreeBSD.org>
11814
11815 * gdbarch.sh (get_thread_local_address): New method.
11816 * gdbarch.h, gdbarch.c: Regenerate.
11817 * target.c (target_translate_tls_address): Use
11818 gdbarch_get_thread_local_address if present instead of
11819 target::get_thread_local_address.
11820
cd250a18
JB
118212019-03-12 John Baldwin <jhb@FreeBSD.org>
11822
11823 * target.h (target::get_thread_local_address): Update comment.
11824
df22c1e5
JB
118252019-03-12 John Baldwin <jhb@FreeBSD.org>
11826
11827 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11828 objfile->separate_debug_objfile_backlink if not NULL.
11829
dd6876c9
JB
118302019-03-12 John Baldwin <jhb@FreeBSD.org>
11831
11832 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11833 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11834 (amd64bsd_store_inferior_registers): Likewise.
11835 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11836 Enable segment base registers.
11837 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11838 PT_GETFSBASE and PT_GETGSBASE.
11839 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11840 PT_SETGSBASE.
11841 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11842 segment base registers.
11843 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11844
1163a4b7
JB
118452019-03-12 John Baldwin <jhb@FreeBSD.org>
11846
11847 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11848 Update calls to i386_target_description to add 'segments'
11849 parameter.
11850 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11851 add segment base registers.
11852 * arch/i386.c (i386_create_target_description): Add 'segments'
11853 parameter to enable segment base registers.
11854 * arch/i386.h (i386_create_target_description): Likewise.
11855 * features/i386/32bit-segments.xml: New file.
11856 * features/i386/32bit-segments.c: Generate.
11857 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11858 call to i386_target_description to add 'segments' parameter.
11859 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11860 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11861 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11862 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11863 if feature is present.
11864 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11865 Add 'segments' parameter to call to i386_target_description.
11866 (i386_target_description): Add 'segments' parameter to enable
11867 segment base registers.
11868 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11869 to call to i386_target_description.
11870 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11871 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11872 Define I386_NUM_REGS.
11873 (i386_target_description): Add 'segments' parameter to enable
11874 segment base registers.
11875
3a350822
EZ
118762019-03-12 Eli Zaretskii <eliz@gnu.org>
11877
11878 PR/24325
11879 * source-cache.c: #undef open and close, to avoid unresolved
11880 externals during linking.
11881
ffdd69cf
TT
118822019-03-12 Tom Tromey <tromey@adacore.com>
11883
11884 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11885 const. Add initializers.
11886 (_initialize_remote): Don't initialize ptid globals.
11887
ec148c57
PA
118882019-03-12 Pedro Alves <palves@redhat.com>
11889
11890 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11891
32764270
PA
118922019-03-12 Pedro Alves <palves@redhat.com>
11893
11894 * cp-name-parser.y (main): Remove unused 'len' variable.
11895
17547186
TT
118962019-03-12 Tom Tromey <tromey@adacore.com>
11897
11898 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11899 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11900
d3a70e03
TT
119012019-03-12 Tom Tromey <tromey@adacore.com>
11902
11903 * linux-nat.c (iterate_over_lwps): Update.
11904 (stop_callback): Remove parameter.
11905 (stop_wait_callback, detach_callback, resume_set_callback)
11906 (select_singlestep_lwp_callback, set_ignore_sigint)
11907 (status_callback, resumed_callback, resume_clear_callback)
11908 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11909 data parameter.
11910 (linux_nat_target::detach, linux_nat_target::resume)
11911 (linux_stop_and_wait_all_lwps, select_event_lwp)
11912 (linux_nat_filter_event, linux_nat_wait_1)
11913 (linux_nat_target::kill, linux_nat_target::stop)
11914 (linux_nat_target::stop): Update.
11915 (linux_nat_resume_callback): Change type.
11916 (resume_stopped_resumed_lwps, count_events_callback)
11917 (select_event_lwp_callback): Likewise.
11918 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11919 * arm-linux-nat.c (struct update_registers_data): Remove.
11920 (update_registers_callback): Change type.
11921 (arm_linux_insert_hw_breakpoint1): Update.
11922 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11923 parameter.
11924 (x86_linux_dr_set_addr): Update.
11925 (x86_linux_dr_set_control): Update.
11926 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11927 (iterate_over_lwps): Use gdb::function_view.
11928 * nat/aarch64-linux-hw-point.c (struct
11929 aarch64_dr_update_callback_param): Remove.
11930 (debug_reg_change_callback): Change type.
11931 (aarch64_notify_debug_reg_change): Update.
11932 * s390-linux-nat.c (s390_refresh_per_info): Update.
11933
82cb27ff
TT
119342019-03-11 Tom Tromey <tromey@adacore.com>
11935
11936 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11937 redundant assignment to "this_cu".
11938
568c0683
SM
119392019-03-08 Simon Marchi <simon.marchi@efficios.com>
11940
11941 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11942
f09ce22d
SM
119432019-03-08 Simon Marchi <simon.marchi@efficios.com>
11944
11945 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11946 from...
11947 (rank_one_type): ... this.
11948
595f96a9
SM
119492019-03-08 Simon Marchi <simon.marchi@efficios.com>
11950
11951 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11952 from...
11953 (rank_one_type): ... this.
11954
2598a94b
SM
119552019-03-08 Simon Marchi <simon.marchi@efficios.com>
11956
11957 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11958 from...
11959 (rank_one_type): ... this.
11960
7f17b20d
SM
119612019-03-08 Simon Marchi <simon.marchi@efficios.com>
11962
11963 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11964 from...
11965 (rank_one_type): ... this.
11966
2c509035
SM
119672019-03-08 Simon Marchi <simon.marchi@efficios.com>
11968
11969 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11970 from...
11971 (rank_one_type): ... this.
11972
0dd322dc
SM
119732019-03-08 Simon Marchi <simon.marchi@efficios.com>
11974
11975 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11976 from...
11977 (rank_one_type): ... this.
11978
41ea4728
SM
119792019-03-08 Simon Marchi <simon.marchi@efficios.com>
11980
11981 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11982 from...
11983 (rank_one_type): ... this.
11984
793cd1d2
SM
119852019-03-08 Simon Marchi <simon.marchi@efficios.com>
11986
11987 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11988 from...
11989 (rank_one_type): ... this.
11990
34910087
SM
119912019-03-08 Simon Marchi <simon.marchi@efficios.com>
11992
11993 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11994 from...
11995 (rank_one_type): ... this.
11996
f1f832d6
SM
119972019-03-08 Simon Marchi <simon.marchi@efficios.com>
11998
11999 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12000 from...
12001 (rank_one_type): ... this.
12002
b9f4512f
SM
120032019-03-08 Simon Marchi <simon.marchi@efficios.com>
12004
12005 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12006 from...
12007 (rank_one_type): ... this.
12008
9293fc63
SM
120092019-03-08 Simon Marchi <simon.marchi@efficios.com>
12010
12011 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12012 from...
12013 (rank_one_type): ... this.
12014
e3abbe7e
PW
120152019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12016
12017 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12018 inferior-events' shows the example events.
12019
e4adb939
EZ
120202019-03-08 Eli Zaretskii <eliz@gnu.org>
12021
12022 Support styling on native MS-Windows console
12023
12024 PR/24315
12025 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12026 on MS-Windows if $TERM is not defined.
12027
12028 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12029
12030 * posix-hdep.c (gdb_console_fputs):
12031 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12032 functions.
12033 * ui-file.h (gdb_console_fputs): Add prototype.
12034
12035 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12036 back to fputs only if the former returns zero.
12037
25629dfd
TT
120382019-03-07 Tom Tromey <tom@tromey.com>
12039
12040 * symmisc.c (print_symbol_bcache_statistics): Update.
12041 (print_objfile_statistics): Update.
12042 * symfile.c (allocate_symtab): Update.
12043 * stabsread.c: Don't include bcache.h.
12044 * psymtab.h (struct psymbol_bcache): Don't declare.
12045 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12046 (psymbol_bcache_init, psymbol_bcache_free)
12047 (psymbol_bcache_get_bcache): Don't declare.
12048 * psymtab.c (struct psymbol_bcache): Remove.
12049 (psymtab_storage::psymtab_storage): Update.
12050 (psymtab_storage::~psymtab_storage): Update.
12051 (psymbol_bcache_init, psymbol_bcache_free)
12052 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12053 (add_psymbol_to_bcache): Update.
12054 (allocate_psymtab): Update.
12055 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12056 macro_cache>: No longer pointers.
12057 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12058 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12059 * macrotab.c (macro_bcache): Update.
12060 * macroexp.c: Don't include bcache.h.
12061 * gdbtypes.c (check_types_worklist): Update.
12062 (types_deeply_equal): Remove TRY/CATCH. Update.
12063 * elfread.c (elf_symtab_read): Update.
12064 * dwarf2read.c: Don't include bcache.h.
12065 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12066 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12067 (print_bcache_statistics, bcache_memory_used): Don't declare.
12068 (struct bcache): Move from bcache.c. Add constructor, destructor,
12069 methods. Rename all data members.
12070 * bcache.c (struct bcache): Move to bcache.h.
12071 (bcache::expand_hash_table): Rename from expand_hash_table.
12072 (bcache): Remove.
12073 (bcache::insert): Rename from bcache_full.
12074 (bcache::compare): Rename from bcache_compare.
12075 (bcache_xmalloc): Remove.
12076 (bcache::~bcache): Rename from bcache_xfree.
12077 (bcache::print_statistics): Rename from print_bcache_statistics.
12078 (bcache::memory_used): Rename from bcache_memory_used.
12079
fe726667
PA
120802019-03-07 Pedro Alves <palves@redhat.com>
12081
12082 * infrun.c (normal_stop): Also check for
12083 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12084
7584bb30
AB
120852019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12086
12087 * f-lang.c (value_from_host_double): Moved to...
12088 * value.c (value_from_host_double): ...here.
12089 * value.h (value_from_host_double): Declare.
12090 * guile/scm-math.c (vlscm_convert_typed_number): Use
12091 value_from_host_double.
12092 (vlscm_convert_number): Likewise.
12093 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12094 * python/py-value.c (convert_value_from_python): Likewise.
12095
a7b1986e
TT
120962019-03-06 Tom Tromey <tom@tromey.com>
12097
12098 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12099
0ccf4211
TT
121002019-03-06 Tom Tromey <tom@tromey.com>
12101
12102 * utils.h (free_current_contents): Don't declare.
12103 * utils.c (free_current_contents): Remove.
12104
fe7b42e5
TT
121052019-03-06 Tom Tromey <tom@tromey.com>
12106
12107 * top.c (quit_force): Update.
12108 * main.c (captured_command_loop): Update.
12109 * common/new-op.c (operator new): Update.
12110 * common/common-exceptions.c (struct catcher)
12111 <save_cleanup_chain>: Remove member.
12112 (exceptions_state_mc_init): Update.
12113 (exception_try_scope_entry): Return nullptr.
12114 (exception_try_scope_exit, exception_rethrow)
12115 (throw_exception_sjlj, throw_exception_cxx): Update.
12116 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12117 (all_cleanups, do_cleanups, discard_cleanups)
12118 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12119 (restore_cleanups, restore_final_cleanups): Don't declare.
12120 (do_final_cleanups): Remove parameter.
12121 * common/cleanups.c (cleanup_chain, make_cleanup)
12122 (make_cleanup_dtor, all_cleanups, do_cleanups)
12123 (discard_my_cleanups, discard_cleanups)
12124 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12125 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12126 (null_cleanup): Remove.
12127 (do_final_cleanups): Remove parameter.
12128
c6321f19
TT
121292019-03-06 Tom Tromey <tom@tromey.com>
12130
12131 * remote.c (remote_target::remote_parse_stop_reply): Use
12132 unique_xmalloc_ptr.
12133
61b30099
TT
121342019-03-06 Tom Tromey <tom@tromey.com>
12135
12136 * stabsread.c (struct stabs_field_info): Rename from field_info.
12137 <list, fnlist>: Add initializers.
12138 <obstack>: New member.
12139 (read_member_functions, read_struct_fields, read_baseclasses):
12140 Allocate on obstack. Don't use cleanups.
12141 (read_one_struct_field, read_member_functions, read_struct_fields)
12142 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12143 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12144 (read_struct_type): Update.
12145
6cceac94
TT
121462019-03-06 Tom Tromey <tom@tromey.com>
12147
12148 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12149 * common/filestuff.h (make_cleanup_close): Don't declare.
12150 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12151 Remove.
12152
72412762
TT
121532019-03-06 Tom Tromey <tom@tromey.com>
12154
12155 * solib-aix.c: Use make_scope_exit.
12156
2b6ff1c0
TT
121572019-03-06 Tom Tromey <tom@tromey.com>
12158
12159 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12160 Use make_scope_exit.
12161
d01c5877
TT
121622019-03-06 Tom Tromey <tom@tromey.com>
12163
12164 * solib-svr4.c (disable_probes_interface): Remove parameter.
12165 (svr4_handle_solib_event): Use make_scope_exit.
12166
32603266
TT
121672019-03-06 Tom Tromey <tom@tromey.com>
12168
12169 * remote.c (struct stop_reply_deleter): Remove.
12170 (stop_reply_up): Update.
12171 (struct stop_reply): Derive from notif_event. Don't typedef.
12172 <regcache>: Now a std::vector.
12173 (stop_reply_xfree): Remove.
12174 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12175 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12176 (remote_target::discard_pending_stop_replies): Use delete.
12177 (remote_target::remote_parse_stop_reply): Update.
12178 (remote_target::process_stop_reply): Update.
12179 * remote-notif.h (struct notif_event): Add virtual destructor.
12180 Remove "dtr" member.
12181 (struct notif_client) <alloc_event>: Return a unique_ptr.
12182 (notif_event_xfree): Don't declare.
12183 (notif_event_up): New typedef.
12184 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12185 (notif_event_xfree, do_notif_event_xfree): Remove.
12186 (remote_notif_state_xfree): Update.
12187
9799571e
TT
121882019-03-06 Tom Tromey <tom@tromey.com>
12189
12190 * infrun.c (displaced_step_clear_cleanup): Now a
12191 forward_scope_exit type.
12192 (displaced_step_prepare_throw): Update.
12193 (displaced_step_fixup): Update.
12194
09e3c4ca
TT
121952019-03-06 Tom Tromey <tom@tromey.com>
12196
12197 * inferior.h (class inferior): Update comment.
12198 * gdbthread.h (class thread_info): Update comment.
12199
e2a03548
TT
122002019-03-06 Joel Brobecker <brobecker@adacore.com>
12201 Tom Tromey <tom@tromey.com>
12202
12203 * stabsread.h (struct stab_section_list): Remove.
12204 (coffstab_build_psymtabs): Update.
12205 * dbxread.c (symbuf_sections): Now a std::vector.
12206 (sect_idx): New global.
12207 (fill_symbuf): Update.
12208 (coffstab_build_psymtabs): Change type of stabsects parameter.
12209 Update.
12210 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12211 std::vector.
12212 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12213 (coff_locate_sections): Update.
12214 (coff_symfile_read): Remove cleanups. Update.
12215 (init_stringtab): Add storage parameter.
12216 (free_stringtab, free_stringtab_cleanup): Remove.
12217 (init_lineno): Add storage parameter.
12218 (free_linetab, free_linetab_cleanup): Remove.
12219
b7e60d85
PA
122202019-03-06 Pedro Alves <palves@redhat.com>
12221
12222 * linux-fork.c (fork_info::clobber_regs): Delete.
12223 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12224 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12225 comment. Adjust.
12226 (scoped_switch_fork_info::scoped_switch_fork_info)
12227 (checkpoint_command, linux_fork_context): Adjust
12228 fork_save_infrun_state calls.
12229
e52c971f
PA
122302019-03-06 Pedro Alves <palves@redhat.com>
12231
12232 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12233 (inf_has_multiple_threads): Return 'bool' and rewrite using
12234 inferior_info::threads().
12235
06974e6c
PA
122362019-03-06 Pedro Alves <palves@redhat.com>
12237
12238 * linux-fork.c: Include <list>.
12239 (fork_list): Now a std::list instance.
12240 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12241 (forks_exist_p, find_last_fork): Adjust.
12242 (new_fork): Delete.
12243 (one_fork_p): New.
12244 (add_fork): Adjust.
12245 (free_fork): Delete, folded into fork_info::~fork_info().
12246 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12247 Adjust.
12248 (init_fork_list): Delete.
12249 (linux_fork_killall, linux_fork_mourn_inferior)
12250 (linux_fork_detach, info_checkpoints_command): Adjust.
12251 (_initialize_linux_fork): No longer call init_fork_list.
12252
72f31aea
PA
122532019-03-06 Pedro Alves <palves@redhat.com>
12254
12255 * linux-fork.c (new_fork): New, split out of ...
12256 (add_fork): ... this. Return void. Move "first fork" special
12257 case from here, to ...
12258 (checkpoint_command): ... here.
12259 * linux-linux.h (add_fork): Return void.
12260
efbecbc1
AB
122612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12262
12263 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12264
0841c79a
AB
122652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12266 Chris January <chris.january@arm.com>
12267 David Lecomber <david.lecomber@arm.com>
12268
12269 * f-exp.y: New token, UNOP_INTRINSIC.
12270 (exp): New pattern using UNOP_INTRINSIC token.
12271 (f77_keywords): Add 'abs' keyword.
12272 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12273 (value_from_host_double): New function.
12274 (evaluate_subexp_f): Support UNOP_ABS.
12275
4a270568
AB
122762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12277
12278 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12279 types.
12280
067630bd
AB
122812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12282
12283 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12284 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12285 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12286
3be47f7a
AB
122872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12288
12289 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12290
4d00f5d8
AB
122912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12292 Chris January <chris.january@arm.com>
12293
12294 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12295 * f-exp.y: Define 'KIND' token.
12296 (exp): New pattern for KIND expressions.
12297 (ptype): Handle types with a kind extension.
12298 (direct_abs_decl): Extend to spot kind extensions.
12299 (f77_keywords): Add 'kind' to the list.
12300 (push_kind_type): New function.
12301 (convert_to_kind_type): New function.
12302 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12303 * parse.c (operator_length_standard): Likewise.
12304 * parser-defs.h (enum type_pieces): Add tp_kind.
12305 * std-operator.def: Add UNOP_KIND.
12306
e454224f
AB
123072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12308
12309 * f-exp.y (f_parse): Set yydebug.
12310
9dad4a58
AB
123112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12312
12313 * f-lang.c (evaluate_subexp_f): New function.
12314 (exp_descriptor_f): New global.
12315 (f_language_defn): Use exp_descriptor_f instead of
12316 exp_descriptor_standard.
12317
c8f91604
AB
123182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12319
12320 * f-exp.y (struct token): Add comments.
12321 (dot_ops): Remove uppercase versions and the end marker.
12322 (f77_keywords): Likewise.
12323 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12324 entries in the dot_ops array are case insensitive, and use
12325 strncasecmp to compare strings. Also some whitespace cleanup in
12326 this area. Similar for the f77_keywords array, except entries in
12327 this list might be case sensitive.
12328
dd9f2c76
AB
123292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12330
12331 * f-exp.y (struct f77_boolean_val): Add comments.
12332 (boolean_values): Remove uppercase versions, and end marker.
12333 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12334 and use strncasecmp to achieve case insensitivity. Additionally,
12335 perform whitespace cleanup around this code.
12336
67a3048c
TT
123372019-03-06 Tom Tromey <tromey@adacore.com>
12338
12339 * remote-sim.c (gdbsim_target_open): Use result of
12340 gdb_argv::release.
12341
aa3cfbda
RB
123422019-03-06 Richard Bunt <richard.bunt@arm.com>
12343 Dirk Schubert <dirk.schubert@arm.com>
12344 Chris January <chris.january@arm.com>
12345
12346 * eval.c (evaluate_subexp_standard): Call Fortran argument
12347 wrapping logic.
12348 * f-lang.c (struct value): A value which can be passed into a
12349 Fortran function call.
12350 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12351 where appropriate.
12352 (struct type): Value ready for a Fortran function call.
12353 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12354 is needed.
12355 * f-lang.h (fortran_argument_convert): Declaration.
12356 (fortran_preserve_arg_pointer): Declaration.
12357 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12358
ea38e5df
TT
123592019-03-05 Tom Tromey <tromey@adacore.com>
12360
12361 * python/py-prettyprint.c (print_string_repr): Remove #if.
12362 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12363
06b5b831
TT
123642019-03-05 Tom Tromey <tromey@adacore.com>
12365
12366 * target.c (the_dummy_target): Move later. Change type to
12367 "dummy_target".
12368 (initialize_targets): Don't initialize the_dummy_target.
12369
edbd9e45
TT
123702019-03-05 Tom Tromey <tromey@adacore.com>
12371
12372 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12373 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12374
c119e040
TT
123752019-03-05 Tom Tromey <tromey@adacore.com>
12376
12377 * windows-nat.c (windows_nat_target::attach)
12378 (windows_nat_target::detach): Don't call gdb_flush.
12379 * valprint.c (generic_val_print, val_print, val_print_string):
12380 Don't call gdb_flush.
12381 * utils.c (defaulted_query): Don't call gdb_flush.
12382 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12383 * target.c (target_announce_detach): Don't call gdb_flush.
12384 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12385 * remote.c (extended_remote_target::attach): Don't call
12386 gdb_flush.
12387 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12388 * printcmd.c (do_examine): Don't call gdb_flush.
12389 (info_display_command): Don't call gdb_flush.
12390 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12391 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12392 * memattr.c (info_mem_command): Don't call gdb_flush.
12393 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12394 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12395 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12396 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12397 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12398 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12399 (gnu_nat_target::detach): Don't call gdb_flush.
12400 * f-valprint.c (f_val_print): Don't call gdb_flush.
12401 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12402 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12403 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12404 gdb_flush.
12405 * c-valprint.c (c_val_print): Don't call gdb_flush.
12406 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12407
895dafa6
TT
124082019-03-05 Tom Tromey <tromey@adacore.com>
12409
12410 * varobj.c (update_dynamic_varobj_children): Update.
12411 (install_default_visualizer): Use reset, not release.
12412 * value.c (set_internalvar): Update.
12413 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12414 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12415 ATTRIBUTE_UNUSED_RESULT.
12416
88a774b9
TT
124172019-03-05 Tom Tromey <tromey@adacore.com>
12418
12419 * remote.c (class scoped_remote_fd) <release>: Add
12420 ATTRIBUTE_UNUSED_RESULT.
12421
4e4a8b93
TT
124222019-03-05 Tom Tromey <tromey@adacore.com>
12423
12424 * macroexp.c (struct macro_buffer) <release>: Add
12425 ATTRIBUTE_UNUSED_RESULT.
12426
083eef1f
TT
124272019-03-05 Tom Tromey <tromey@adacore.com>
12428
12429 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12430 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12431 ATTRIBUTE_UNUSED_RESULT.
12432
3cabd438
TT
124332019-03-05 Tom Tromey <tromey@adacore.com>
12434
12435 * common/scoped_fd.h (class scoped_fd) <release>: Add
12436 ATTRIBUTE_UNUSED_RESULT.
12437
41e3300a
TT
124382019-03-05 Tom Tromey <tromey@adacore.com>
12439
12440 * parser-defs.h (struct parser_state) <release>: Add
12441 ATTRIBUTE_UNUSED_RESULT.
12442
18cb7c9f
TT
124432019-03-05 Tom Tromey <tromey@adacore.com>
12444
12445 * utils.h (class gdb_argv) <release>: Add
12446 ATTRIBUTE_UNUSED_RESULT.
12447 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12448
41fa577f
EZ
124492019-03-02 Eli Zaretskii <eliz@gnu.org>
12450
a6a4b2c6
EZ
12451 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12452 for-loop range, to avoid compiler warnings.
12453
12454 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12455 avoid compiler warnings about unused variables.
12456
742a7df5
EZ
12457 * NEWS: Mention end of support for native debugging on MS-Windows
12458 before XP.
12459
41fa577f
EZ
12460 PR gdb/24292
12461 * common/netstuff.c:
12462 * gdbserver/gdbreplay.c
12463 * gdbserver/remote-utils.c:
12464 * ser-tcp.c:
12465 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12466 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12467 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12468 'getaddrinfo' and 'freeaddrinfo' were not available before
12469 Windows XP, and mingw.org's MinGW headers by default define
12470 _WIN32_WINNT to 0x500.
12471
827f438f
GB
124722019-03-01 Gary Benson <gbenson@redhat.com>
12473
12474 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12475
92137da0
RO
124762019-02-28 Brian Vandenberg <phantall@gmail.com>
12477 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12478
12479 PR gdb/8527
12480 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12481 set_sigint_trap, clear_sigint_trap.
12482
799efbe8
PW
124832019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12484
12485 * target.c (target_detach): Clear the regcache and the
12486 frame cache.
12487
8ed25214
PA
124882019-02-27 Pedro Alves <palves@redhat.com>
12489
12490 * utils.c (set_screen_size): When we cap the height/width sizes,
12491 tweak the corresponding command variable to show "unlimited":
12492
23031e31
SJ
124932019-02-27 Saagar Jha <saagar@saagarjha.com>
12494 Pedro Alves <palves@redhat.com>
12495
12496 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12497 before calling rl_set_screen_size.
12498
6c28e44a
TT
124992019-02-27 Tom Tromey <tromey@adacore.com>
12500
12501 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12502 define.
12503 * python/py-value.c: Remove Python 2.4 workaround.
12504 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12505 workaround.
12506 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12507 Python 2.4 workaround.
12508 * python/python-internal.h: Remove Python 2.4 comment.
12509 (Py_ssize_t): Don't define.
12510 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12511 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12512 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12513 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12514 * python/python.c (do_start_initialization): Remove Python 2.4
12515 workaround.
12516 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12517 (print_children): Remove Python 2.4 workaround.
12518 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12519 workaround.
12520 (CHARBUFFERPROC_NAME): Remove.
12521 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12522 Python 2.4 workaround.
12523
2c3fc25d 125242019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12525
2c3fc25d
KB
12526 * NEWS: Note minimum Python version.
12527
6ca62222
KB
125282019-02-27 Kevin Buettner <kevinb@redhat.com>
12529
12530 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12531 code from these functions. Remove corresponding ifdefs. Use
12532 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12533 Remove gotos and target of gotos.
12534 (infpy_search_memory): Likewise.
12535
f4bc7d2c
AB
125362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12537
12538 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12539 (hppa_gdbarch_init): Don't register deleted functions with
12540 gdbarch.
12541
9734a586
AB
125422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12543
12544 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12545 (h8300_unwind_sp): Delete.
12546 (h8300_dummy_id): Delete.
12547 (h8300_gdbarch_init): Don't register deleted functions with
12548 gdbarch.
12549
68b867f3
AB
125502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12551
12552 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12553 (ft32_unwind_pc): Delete.
12554 (ft32_unwind_sp): Delete.
12555 (ft32_gdbarch_init): Don't register deleted functions with
12556 gdbarch.
12557
2fbe7ad0
AB
125582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12559
12560 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12561 (frv_unwind_pc): Delete.
12562 (frv_unwind_sp): Delete.
12563 (frv_gdbarch_init): Don't register deleted functions with
12564 gdbarch.
12565
76055cbe
AB
125662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12567
12568 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12569 (riscv_unwind_pc): Delete.
12570 (riscv_unwind_sp): Delete.
12571 (riscv_gdbarch_init): Don't register deleted functions with
12572 gdbarch.
12573
4133e5a1
AB
125742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12575
12576 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12577 (csky_unwind_pc): Delete.
12578 (csky_unwind_sp): Delete.
12579 (csky_gdbarch_init): Don't register deleted functions with
12580 gdbarch.
12581
8010f576
AB
125822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12585 (cris_unwind_pc): Delete.
12586 (cris_unwind_sp): Delete.
12587 (cris_gdbarch_init): Don't register deleted functions with
12588 gdbarch.
12589
b56bf084
AB
125902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12591
12592 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12593 (bfin_unwind_pc): Delete.
12594 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12595
a19a650f
AB
125962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12597
12598 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12599 (arm_unwind_pc): Delete.
12600 (arm_unwind_sp): Delete.
12601 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12602
f8278c3c
AB
126032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12604
12605 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12606 (arc_unwind_pc): Delete.
12607 (arc_unwind_sp): Delete.
12608 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12609
480e46cf
AB
126102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12611
12612 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12613 (alpha_unwind_pc): Delete.
12614 (alpha_gdbarch_init): Don't register deleted functions with
12615 gdbarch.
12616
7a995095
AB
126172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12618
12619 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12620 (aarch64_unwind_pc): Delete.
12621 (aarch64_unwind_sp): Delete.
12622 (aarch64_gdbarch_init): Don't register deleted functions with
12623 gdbarch.
12624
bf9a735e
AB
126252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12626
12627 * gdbtypes.c (type_align): Don't consider static members when
12628 computing structure alignment.
12629
5561fc30
AB
126302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12631
12632 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12633 return 0 for other types.
12634 * arch-utils.c (default_type_align): Always return 0.
12635 * gdbarch.h: Regenerate.
12636 * gdbarch.sh (type_align): Extend comment.
12637 * gdbtypes.c (type_align): Add additional comments, always call
12638 gdbarch_type_align before applying the default rules.
12639 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12640 generic code will then apply a suitable default.
12641 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12642 types, return 0 for other types.
12643
9335e75a
JB
126442019-02-27 Joel Brobecker <brobecker@adacore.com>
12645
12646 * NEWS: Create a new section for the next release branch.
12647 Rename the section of the current branch, now that it has
12648 been cut.
12649
3d34d8de
JB
126502019-02-27 Joel Brobecker <brobecker@adacore.com>
12651
12652 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12653 * version.in: Bump version to 8.3.50.DATE-git.
12654
143420fb
SM
126552019-02-26 Simon Marchi <simon.marchi@efficios.com>
12656
12657 * aix-thread.c (ptid_cmp): Remove unused variable.
12658 (get_signaled_thread): Likewise.
12659 (store_regs_user_thread): Likewise.
12660 (store_regs_kernel_thread): Likewise.
12661 (fetch_regs_kernel_thread): Remove shadowed variable.
12662
172fb711
AB
126632019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12664
12665 * features/riscv/32bit-cpu.xml: Add register numbers.
12666 * features/riscv/32bit-fpu.c: Regenerate.
12667 * features/riscv/32bit-fpu.xml: Add register numbers.
12668 * features/riscv/64bit-cpu.xml: Add register numbers.
12669 * features/riscv/64bit-fpu.c: Regenerate.
12670 * features/riscv/64bit-fpu.xml: Add register numbers.
12671
26c89782
KB
126722019-02-26 Kevin Buettner <kevinb@redhat.com>
12673
af54ade9 12674 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12675 * python/py-value.c (convert_buffer_and_type_to_value): New
12676 function.
12677 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12678 Add support for handling an optional second argument. Call
12679 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12680 * python/python-internal.h (Py_buffer_deleter): New struct.
12681 (Py_buffer_up): New typedef.
12682
0f58c9e8
JB
126832019-02-25 John Baldwin <jhb@FreeBSD.org>
12684
12685 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12686 instead of releasing ownership.
12687
0a0f4c01
JR
126882019-02-25 Jordan Rupprecht <rupprecht@google.com>
12689
12690 * dwarf2read.c (open_and_init_dwp_file): Call
12691 elf_numsections instead of bfd_count_sections to initialize
12692 dwp_file->num_sections.
12693
cd5a152c
TT
126942019-02-25 Tom Tromey <tromey@adacore.com>
12695
12696 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12697
8a6a8513
SDJ
126982019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12699
12700 * gcore.in: Add '--readnever' option when invoking GDB.
12701
04dcda9c
SM
127022019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12703
12704 * MAINTAINERS: Update my email address.
12705
07bc701d
SM
127062019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12707
12708 * build-id.c (build_id_to_debug_bfd_1): New function.
12709 (build_id_to_debug_bfd): Look for separate debug file in
12710 sysroot.
12711
c6f4a5d0
AB
127122019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12713
12714 * gdbarch.sh: Update the copyright year range that is placed into
12715 generated files.
12716
9600246d
KS
127172019-02-22 Keith Seitz <keiths@redhat.com>
12718
12719 PR symtab/23853
12720 * linespec.c (create_sals_line_offset): Search for the default
12721 symtab's filename instead of its fullname.
12722
7557a514
AH
127232019-02-21 Alan Hayward <alan.hayward@arm.com>
12724
12725 * NEWS: Update style defaults.
12726
ee2bcb0c
AH
127272019-02-21 Alan Hayward <alan.hayward@arm.com>
12728
12729 * main.c (captured_main_1): Disable styling in batch mode.
12730
0c95f9ed
TT
127312019-02-20 Tom Tromey <tom@tromey.com>
12732
12733 * symtab.c (symtab_symbol_info): Fix typos.
12734
c763b894
TT
127352019-02-20 Tom Tromey <tromey@adacore.com>
12736
12737 * findcmd.c (_initialize_mem_search): Use upper case for
12738 metasyntactic variables.
12739
0ef8a082
AH
127402019-02-20 Alan Hayward <alan.hayward@arm.com>
12741
12742 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12743 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12744
6caa91b6
SM
127452019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12746
12747 * top.h (source_file_name): Change to std::string.
12748 * top.c (source_file_name): Likewise.
12749 (command_line_input): Adjust.
12750 * cli/cli-script.c (script_from_file): Adjust.
12751
98814c6c
TT
127522019-02-19 Tom Tromey <tromey@adacore.com>
12753
12754 * ravenscar-thread.c
12755 (ravenscar_thread_target::update_thread_list): Don't call
12756 ada_build_task_list.
12757 * ada-lang.h (ada_build_task_list): Don't declare.
12758 * ada-tasks.c (struct ada_tasks_inferior_data)
12759 <task_list_valid_p>: Now bool.
12760 (read_known_tasks, ada_task_list_changed)
12761 (ada_tasks_invalidate_inferior_data): Update.
12762 (read_known_tasks_array): Return bool.
12763 (read_known_tasks_list): Likewise.
12764 (read_known_tasks): Return void.
12765 (ada_build_task_list): Now static.
12766
70cd633e
AB
127672019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12768
12769 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12770 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12771
040b3e95
PW
127722019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12773
12774 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12775 variant for ada_tasks_pspace_data_handle and
12776 ada_tasks_inferior_data_handle.
12777 (ada_tasks_pspace_data_cleanup): New function.
12778 (ada_tasks_inferior_data_cleanup): New function.
12779
9409233b
TT
127802019-02-17 Tom Tromey <tom@tromey.com>
12781
12782 * macrotab.h (macro_source_fullname): Return a std::string.
12783 * macrotab.c (macro_include, check_for_redefinition)
12784 (macro_undef, macro_lookup_definition, foreach_macro)
12785 (foreach_macro_in_scope): Update.
12786 (macro_source_fullname): Return a std::string.
12787 * macrocmd.c (show_pp_source_pos): Update.
12788
6506371f
TT
127892019-02-17 Tom Tromey <tom@tromey.com>
12790
12791 * macrocmd.c (show_pp_source_pos): Style the file names.
12792
0c820d67
TT
127932019-02-17 Tom Tromey <tom@tromey.com>
12794
12795 PR tui/24197:
12796 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12797
a0087920
TT
127982019-02-17 Tom Tromey <tom@tromey.com>
12799
12800 * ada-lang.c (user_select_syms): Use filtered printing.
12801 * utils.c (wrap_style): New global.
12802 (desired_style): Remove.
12803 (emit_style_escape): Add stream parameter.
12804 (set_output_style, reset_terminal_style, prompt_for_continue):
12805 Update.
12806 (flush_wrap_buffer): Only flush gdb_stdout.
12807 (wrap_here): Set wrap_style.
12808 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12809 treat escape sequences as a character. Change when wrap buffer is
12810 flushed.
12811 (fputs_styled): Do not set the output style when the default is
12812 requested.
12813 * ui-style.h (struct ui_file_style) <is_default>: New method.
12814 * source.c (print_source_lines_base): Emit escape sequences in one
12815 piece.
12816
75ba10dc
JB
128172019-02-17 Joel Brobecker <brobecker@adacore.com>
12818
12819 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12820 integers and enumeration types.
12821
a2cd4f14
JB
128222019-02-17 Joel Brobecker <brobecker@adacore.com>
12823
12824 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12825 instead of lookup_symbol_in_language
12826 (do_exact_match): New function.
12827 (ada_get_symbol_name_matcher): Return do_exact_match when
12828 doing a verbatim match.
12829
485b851b
TT
128302019-02-15 Tom Tromey <tromey@adacore.com>
12831
12832 * ravenscar-thread.c (ravenscar_thread_target::resume)
12833 (ravenscar_thread_target::wait): Special case wildcard requests.
12834
0b790b1e
TT
128352019-02-15 Tom Tromey <tromey@adacore.com>
12836
12837 * ravenscar-thread.c (base_ptid): Remove.
12838 (struct ravenscar_thread_target) <close>: New method.
12839 <m_base_ptid>: New member.
12840 <update_inferior_ptid, active_task, task_is_currently_active,
12841 runtime_initialized>: Declare methods.
12842 <ravenscar_thread_target>: Add constructor.
12843 (ravenscar_thread_target::task_is_currently_active)
12844 (ravenscar_thread_target::update_inferior_ptid)
12845 (ravenscar_runtime_initialized): Rename. Now methods.
12846 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12847 (ravenscar_thread_target::update_thread_list): Update.
12848 (ravenscar_thread_target::active_task): Now method.
12849 (ravenscar_thread_target::store_registers)
12850 (ravenscar_thread_target::prepare_to_store)
12851 (ravenscar_thread_target::prepare_to_store)
12852 (ravenscar_thread_target::mourn_inferior): Update.
12853 (ravenscar_inferior_created): Use "new" to create target.
12854 (ravenscar_thread_target::get_ada_task_ptid): Update.
12855 (_initialize_ravenscar): Don't initialize base_ptid.
12856 (ravenscar_ops): Remove global.
12857
dea57a62
TT
128582019-02-15 Tom Tromey <tromey@adacore.com>
12859
12860 * target.h (push_target): Declare new overload.
12861 * target.c (push_target): New overload, taking an rvalue reference.
12862 * remote.c (remote_target::open_1): Use push_target overload.
12863 * corelow.c (core_target_open): Use push_target overload.
12864
989f3c58
TT
128652019-02-15 Tom Tromey <tromey@adacore.com>
12866
12867 * ravenscar-thread.c (is_ravenscar_task)
12868 (ravenscar_task_is_currently_active): Return bool.
12869 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12870 (_initialize_ravenscar): Remove "(void)".
12871 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12872 Return bool.
12873
6cbcc006
TT
128742019-02-15 Tom Tromey <tromey@adacore.com>
12875
12876 * ravenscar-thread.c (ravenscar_runtime_initializer)
12877 (has_ravenscar_runtime, get_running_thread_id)
12878 (ravenscar_thread_target::resume): Fix indentation.
12879
7657f14d
TT
128802019-02-15 Tom Tromey <tromey@adacore.com>
12881
12882 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12883 from ravenscar_arch_ops.
12884 (sparc_ravenscar_ops::fetch_registers)
12885 (sparc_ravenscar_ops::store_registers): Now methods.
12886 (sparc_ravenscar_prepare_to_store): Remove.
12887 (sparc_ravenscar_ops): Redefine.
12888 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12889 methods and destructor. Remove members.
12890 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12891 (ravenscar_thread_target::store_registers)
12892 (ravenscar_thread_target::prepare_to_store): Update.
12893 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12894 Remove.
12895 (struct ppc_ravenscar_powerpc_ops): Derive from
12896 ravenscar_arch_ops.
12897 (ppc_ravenscar_powerpc_ops::fetch_registers)
12898 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12899 (ppc_ravenscar_powerpc_ops): Redefine.
12900 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12901 (ppc_ravenscar_e500_ops::fetch_registers)
12902 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12903 (ppc_ravenscar_e500_ops): Redefine.
12904 * aarch64-ravenscar-thread.c
12905 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12906 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12907 (aarch64_ravenscar_fetch_registers)
12908 (aarch64_ravenscar_store_registers): Now methods.
12909 (aarch64_ravenscar_ops): Redefine.
12910
5b6ea500
TT
129112019-02-15 Tom Tromey <tromey@adacore.com>
12912
12913 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12914 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12915 (ravenscar_thread_target::stopped_by_watchpoint)
12916 (ravenscar_thread_target::stopped_data_address)
12917 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12918
e397fd39
TT
129192019-02-15 Tom Tromey <tromey@adacore.com>
12920
12921 * ravenscar-thread.c: Fix some typos.
12922
cc12f4a8
TT
129232019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12924 Tom Tromey <tromey@adacore.com>
12925
12926 * ada-lang.c (ada_exception_sal): Change addr_string to a
12927 std::string.
12928 (create_ada_exception_catchpoint): Update.
12929
5f486660
TT
129302019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12931 Tom Tromey <tromey@adacore.com>
12932
12933 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12934 (bp_location_ops): Remove.
12935 (base_breakpoint_allocate_location): Update.
12936 (free_bp_location): Update.
12937 * ada-lang.c (class ada_catchpoint_location)
12938 <ada_catchpoint_location>: Remove ops parameter.
12939 (ada_catchpoint_location_dtor): Remove.
12940 (ada_catchpoint_location_ops): Remove.
12941 (allocate_location_exception): Update.
12942 * breakpoint.h (struct bp_location_ops): Remove.
12943 (class bp_location) <bp_location>: Remove bp_location_ops
12944 parameter.
12945 <~bp_location>: Add destructor.
12946 <ops>: Remove.
12947
b671c7fb
TS
129482019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12949 Pedro Alves <palves@redhat.com>
12950
12951 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12952 'PATH_MAX'.
12953
8071c5ce
DM
129542019-02-14 David Michael <fedora.dm0@gmail.com>
12955 Samuel Thibault <samuel.thibault@gnu.org>
12956 Thomas Schwinge <thomas@codesourcery.com>
12957
12958 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12959 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12960
b1041ae0
TS
129612019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12962
924514e1
TS
12963 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12964 (check_empty): Use "const char *".
12965
c29ee8d4
TS
12966 * gnu-nat.c (gnu_nat_target::detach): Instead of
12967 'detach_inferior (pid)' call
12968 'detach_inferior (find_inferior_pid (pid))'.
12969
6c6ef69f
TS
12970 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12971 'nat/fork-inferior.o'.
12972 * gnu-nat.c: #include "nat/fork-inferior.h".
12973
2d0a338c
TS
12974 * gnu-nat.c (gnu_nat_target::detach): Instead of
12975 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12976 * gnu-nat.h: #include "inf-child.h".
12977 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12978 'i386_gnu_nat_target::fetch_registers'.
12979 (gnu_store_registers): Rename/move to
12980 'i386_gnu_nat_target::store_registers'.
12981
cabb5f06
TS
12982 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12983 * gnu-nat.h (mach_thread_info): New function.
12984 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12985
b1041ae0
TS
12986 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12987
2988d01e
KF
129882019-02-14 Frederic Konrad <konrad@adacore.com>
12989
12990 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12991
c559d709
JB
129922019-02-14 Joel Brobecker <brobecker@adacore.com>
12993
12994 * windows-nat.c (windows_add_thread): Add new parameter
12995 "main_thread_p" with default value set to false. Update
12996 function documentation as well as all callers.
12997 (windows_delete_thread): Likewise.
12998 (fake_create_process): Update call to windows_add_thread.
12999 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13000 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13001 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13002 call to windows_delete_thread.
13003
007024cc
SM
130042019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13005
13006 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13007
f62318e9
JB
130082019-02-12 John Baldwin <jhb@FreeBSD.org>
13009
13010 * symfile.c (find_separate_debug_file): Use canonical path of
13011 sysroot with child_path instead of gdb_sysroot if it is valid.
13012
cd4b7848
JB
130132019-02-12 John Baldwin <jhb@FreeBSD.org>
13014
13015 * symfile.c (find_separate_debug_file): Use child_path to
13016 determine if an object file is under a sysroot.
13017
efac4bfe
JB
130182019-02-12 John Baldwin <jhb@FreeBSD.org>
13019
13020 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13021 unittests/child-path-selftests.c.
13022 * common/pathstuff.c (child_path): New function.
13023 * common/pathstuff.h (child_path): New prototype.
13024 * unittests/child-path-selftests.c: New file.
13025
402d2bfe
JB
130262019-02-12 John Baldwin <jhb@FreeBSD.org>
13027
13028 * symfile.c (find_separate_debug_file): Look for separate debug
13029 files in debug directories under the sysroot.
13030
1ed9f74e
PW
130312019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13032
13033 * symtab.h (struct minimal_symbol data_p): New const method.
13034 (struct minimal_symbol text_p): Likewise.
13035 * symtab.c (output_source_filename): Use file name style
13036 to print file name.
13037 (print_symbol_info): Likewise.
13038 (print_msymbol_info): Use address style to print addresses.
13039 Use function name style to print executable text symbols.
13040 (expand_symtab_containing_pc): Use data_p.
13041 (find_pc_sect_compunit_symtab): Likewise.
13042
2636d81d
PW
130432019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13044
13045 * breakpoint.c (describe_other_breakpoints): Use address style
13046 to print addresses.
13047 (say_where): Likewise.
13048
ac8c53cc
PW
130492019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13050
13051 * ada-typeprint.c (print_func_type): Print function name
13052 style to print function name.
13053 * c-typeprint.c (c_print_type_1): Likewise.
13054
ea638c43
AH
130552019-02-11 Alan Hayward <alan.hayward@arm.com>
13056
13057 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13058 for execve.
13059
ab759ca8
PW
130602019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13061
13062 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13063 type_stack.
13064
aff29d1c
JB
130652019-02-10 Joel Brobecker <brobecker@adacore.com>
13066
13067 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13068 TYPE_CODE_REF types.
13069
617126bc
JW
130702019-02-08 Jim Wilson <jimw@sifive.com>
13071
13072 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13073 (riscv_linux_fregset): New.
13074 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13075
46e3ed7f
TT
130762019-02-07 Tom Tromey <tom@tromey.com>
13077
13078 * thread.c (thread_cancel_execution_command): Update.
13079 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13080 methods.
13081 (struct thread_fsm_ops): Remove.
13082 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13083 (thread_fsm_should_stop, thread_fsm_return_value)
13084 (thread_fsm_set_finished, thread_fsm_finished_p)
13085 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13086 Don't declare.
13087 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13088 * infrun.c (clear_proceed_status_thread)
13089 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13090 (print_stop_event): Update.
13091 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13092 Add constructor.
13093 (step_command_fsm_ops): Remove.
13094 (new_step_command_fsm): Remove.
13095 (step_1): Update.
13096 (step_command_fsm::should_stop): Rename from
13097 step_command_fsm_should_stop.
13098 (step_command_fsm::clean_up): Rename from
13099 step_command_fsm_clean_up.
13100 (step_command_fsm::do_async_reply_reason): Rename from
13101 step_command_fsm_async_reply_reason.
13102 (struct until_next_fsm): Inherit from thread_fsm. Add
13103 constructor.
13104 (until_next_fsm_ops): Remove.
13105 (new_until_next_fsm): Remove.
13106 (until_next_fsm::should_stop): Rename from
13107 until_next_fsm_should_stop.
13108 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13109 (until_next_fsm::do_async_reply_reason): Rename from
13110 until_next_fsm_async_reply_reason.
13111 (struct finish_command_fsm): Inherit from thread_fsm. Add
13112 constructor. Change type of breakpoint.
13113 (finish_command_fsm_ops): Remove.
13114 (new_finish_command_fsm): Remove.
13115 (finish_command_fsm::should_stop): Rename from
13116 finish_command_fsm_should_stop.
13117 (finish_command_fsm::clean_up): Rename from
13118 finish_command_fsm_clean_up.
13119 (finish_command_fsm::return_value): Rename from
13120 finish_command_fsm_return_value.
13121 (finish_command_fsm::do_async_reply_reason): Rename from
13122 finish_command_fsm_async_reply_reason.
13123 (finish_command): Update.
13124 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13125 Add constructor.
13126 (call_thread_fsm_ops): Remove.
13127 (call_thread_fsm::call_thread_fsm): Rename from
13128 new_call_thread_fsm.
13129 (call_thread_fsm::should_stop): Rename from
13130 call_thread_fsm_should_stop.
13131 (call_thread_fsm::should_notify_stop): Rename from
13132 call_thread_fsm_should_notify_stop.
13133 (run_inferior_call, call_function_by_hand_dummy): Update.
13134 * cli/cli-interp.c (should_print_stop_to_console): Update.
13135 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13136 Add constructor. Change type of location_breakpoint,
13137 caller_breakpoint.
13138 (until_break_fsm_ops): Remove.
13139 (new_until_break_fsm): Remove.
13140 (until_break_fsm::should_stop): Rename from
13141 until_break_fsm_should_stop.
13142 (until_break_fsm::clean_up): Rename from
13143 until_break_fsm_clean_up.
13144 (until_break_fsm::do_async_reply_reason): Rename from
13145 until_break_fsm_async_reply_reason.
13146 (until_break_command): Update.
13147 * thread-fsm.c: Remove.
13148 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13149
1a5c2598
TT
131502019-02-07 Tom Tromey <tom@tromey.com>
13151
13152 * yy-remap.h: Add include guard.
13153 * xtensa-tdep.h: Add include guard.
13154 * xcoffread.h: Rename include guard.
13155 * varobj-iter.h: Add include guard.
13156 * tui/tui.h: Rename include guard.
13157 * tui/tui-winsource.h: Rename include guard.
13158 * tui/tui-wingeneral.h: Rename include guard.
13159 * tui/tui-windata.h: Rename include guard.
13160 * tui/tui-win.h: Rename include guard.
13161 * tui/tui-stack.h: Rename include guard.
13162 * tui/tui-source.h: Rename include guard.
13163 * tui/tui-regs.h: Rename include guard.
13164 * tui/tui-out.h: Rename include guard.
13165 * tui/tui-layout.h: Rename include guard.
13166 * tui/tui-io.h: Rename include guard.
13167 * tui/tui-hooks.h: Rename include guard.
13168 * tui/tui-file.h: Rename include guard.
13169 * tui/tui-disasm.h: Rename include guard.
13170 * tui/tui-data.h: Rename include guard.
13171 * tui/tui-command.h: Rename include guard.
13172 * tic6x-tdep.h: Add include guard.
13173 * target/waitstatus.h: Rename include guard.
13174 * target/wait.h: Rename include guard.
13175 * target/target.h: Rename include guard.
13176 * target/resume.h: Rename include guard.
13177 * target-float.h: Rename include guard.
13178 * stabsread.h: Add include guard.
13179 * rs6000-tdep.h: Add include guard.
13180 * riscv-fbsd-tdep.h: Add include guard.
13181 * regformats/regdef.h: Rename include guard.
13182 * record.h: Rename include guard.
13183 * python/python.h: Rename include guard.
13184 * python/python-internal.h: Rename include guard.
13185 * python/py-stopevent.h: Rename include guard.
13186 * python/py-ref.h: Rename include guard.
13187 * python/py-record.h: Rename include guard.
13188 * python/py-record-full.h: Rename include guard.
13189 * python/py-record-btrace.h: Rename include guard.
13190 * python/py-instruction.h: Rename include guard.
13191 * python/py-events.h: Rename include guard.
13192 * python/py-event.h: Rename include guard.
13193 * procfs.h: Add include guard.
13194 * proc-utils.h: Add include guard.
13195 * p-lang.h: Add include guard.
13196 * or1k-tdep.h: Rename include guard.
13197 * observable.h: Rename include guard.
13198 * nto-tdep.h: Rename include guard.
13199 * nat/x86-linux.h: Rename include guard.
13200 * nat/x86-linux-dregs.h: Rename include guard.
13201 * nat/x86-gcc-cpuid.h: Add include guard.
13202 * nat/x86-dregs.h: Rename include guard.
13203 * nat/x86-cpuid.h: Rename include guard.
13204 * nat/ppc-linux.h: Rename include guard.
13205 * nat/mips-linux-watch.h: Rename include guard.
13206 * nat/linux-waitpid.h: Rename include guard.
13207 * nat/linux-ptrace.h: Rename include guard.
13208 * nat/linux-procfs.h: Rename include guard.
13209 * nat/linux-osdata.h: Rename include guard.
13210 * nat/linux-nat.h: Rename include guard.
13211 * nat/linux-namespaces.h: Rename include guard.
13212 * nat/linux-btrace.h: Rename include guard.
13213 * nat/glibc_thread_db.h: Rename include guard.
13214 * nat/gdb_thread_db.h: Rename include guard.
13215 * nat/gdb_ptrace.h: Rename include guard.
13216 * nat/fork-inferior.h: Rename include guard.
13217 * nat/amd64-linux-siginfo.h: Rename include guard.
13218 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13219 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13220 * nat/aarch64-linux.h: Rename include guard.
13221 * nat/aarch64-linux-hw-point.h: Rename include guard.
13222 * mn10300-tdep.h: Add include guard.
13223 * mips-linux-tdep.h: Add include guard.
13224 * mi/mi-parse.h: Rename include guard.
13225 * mi/mi-out.h: Rename include guard.
13226 * mi/mi-main.h: Rename include guard.
13227 * mi/mi-interp.h: Rename include guard.
13228 * mi/mi-getopt.h: Rename include guard.
13229 * mi/mi-console.h: Rename include guard.
13230 * mi/mi-common.h: Rename include guard.
13231 * mi/mi-cmds.h: Rename include guard.
13232 * mi/mi-cmd-break.h: Rename include guard.
13233 * m2-lang.h: Add include guard.
13234 * location.h: Rename include guard.
13235 * linux-record.h: Rename include guard.
13236 * linux-nat.h: Add include guard.
13237 * linux-fork.h: Add include guard.
13238 * i386-darwin-tdep.h: Rename include guard.
13239 * hppa-linux-offsets.h: Add include guard.
13240 * guile/guile.h: Rename include guard.
13241 * guile/guile-internal.h: Rename include guard.
13242 * gnu-nat.h: Rename include guard.
13243 * gdb-stabs.h: Rename include guard.
13244 * frv-tdep.h: Add include guard.
13245 * f-lang.h: Add include guard.
13246 * event-loop.h: Add include guard.
13247 * darwin-nat.h: Rename include guard.
13248 * cp-abi.h: Rename include guard.
13249 * config/sparc/nm-sol2.h: Rename include guard.
13250 * config/nm-nto.h: Rename include guard.
13251 * config/nm-linux.h: Add include guard.
13252 * config/i386/nm-i386gnu.h: Rename include guard.
13253 * config/djgpp/nl_types.h: Rename include guard.
13254 * config/djgpp/langinfo.h: Rename include guard.
13255 * compile/gcc-cp-plugin.h: Add include guard.
13256 * compile/gcc-c-plugin.h: Add include guard.
13257 * compile/compile.h: Rename include guard.
13258 * compile/compile-object-run.h: Rename include guard.
13259 * compile/compile-object-load.h: Rename include guard.
13260 * compile/compile-internal.h: Rename include guard.
13261 * compile/compile-cplus.h: Rename include guard.
13262 * compile/compile-c.h: Rename include guard.
13263 * common/xml-utils.h: Rename include guard.
13264 * common/x86-xstate.h: Rename include guard.
13265 * common/version.h: Rename include guard.
13266 * common/vec.h: Rename include guard.
13267 * common/tdesc.h: Rename include guard.
13268 * common/selftest.h: Rename include guard.
13269 * common/scoped_restore.h: Rename include guard.
13270 * common/scoped_mmap.h: Rename include guard.
13271 * common/scoped_fd.h: Rename include guard.
13272 * common/safe-iterator.h: Rename include guard.
13273 * common/run-time-clock.h: Rename include guard.
13274 * common/refcounted-object.h: Rename include guard.
13275 * common/queue.h: Rename include guard.
13276 * common/ptid.h: Rename include guard.
13277 * common/print-utils.h: Rename include guard.
13278 * common/preprocessor.h: Rename include guard.
13279 * common/pathstuff.h: Rename include guard.
13280 * common/observable.h: Rename include guard.
13281 * common/netstuff.h: Rename include guard.
13282 * common/job-control.h: Rename include guard.
13283 * common/host-defs.h: Rename include guard.
13284 * common/gdb_wait.h: Rename include guard.
13285 * common/gdb_vecs.h: Rename include guard.
13286 * common/gdb_unlinker.h: Rename include guard.
13287 * common/gdb_unique_ptr.h: Rename include guard.
13288 * common/gdb_tilde_expand.h: Rename include guard.
13289 * common/gdb_sys_time.h: Rename include guard.
13290 * common/gdb_string_view.h: Rename include guard.
13291 * common/gdb_splay_tree.h: Rename include guard.
13292 * common/gdb_setjmp.h: Rename include guard.
13293 * common/gdb_ref_ptr.h: Rename include guard.
13294 * common/gdb_optional.h: Rename include guard.
13295 * common/gdb_locale.h: Rename include guard.
13296 * common/gdb_assert.h: Rename include guard.
13297 * common/filtered-iterator.h: Rename include guard.
13298 * common/filestuff.h: Rename include guard.
13299 * common/fileio.h: Rename include guard.
13300 * common/environ.h: Rename include guard.
13301 * common/common-utils.h: Rename include guard.
13302 * common/common-types.h: Rename include guard.
13303 * common/common-regcache.h: Rename include guard.
13304 * common/common-inferior.h: Rename include guard.
13305 * common/common-gdbthread.h: Rename include guard.
13306 * common/common-exceptions.h: Rename include guard.
13307 * common/common-defs.h: Rename include guard.
13308 * common/common-debug.h: Rename include guard.
13309 * common/cleanups.h: Rename include guard.
13310 * common/buffer.h: Rename include guard.
13311 * common/btrace-common.h: Rename include guard.
13312 * common/break-common.h: Rename include guard.
13313 * cli/cli-utils.h: Rename include guard.
13314 * cli/cli-style.h: Rename include guard.
13315 * cli/cli-setshow.h: Rename include guard.
13316 * cli/cli-script.h: Rename include guard.
13317 * cli/cli-interp.h: Rename include guard.
13318 * cli/cli-decode.h: Rename include guard.
13319 * cli/cli-cmds.h: Rename include guard.
13320 * charset-list.h: Add include guard.
13321 * buildsym-legacy.h: Rename include guard.
13322 * bfin-tdep.h: Add include guard.
13323 * ax.h: Rename include guard.
13324 * arm-linux-tdep.h: Add include guard.
13325 * arm-fbsd-tdep.h: Add include guard.
13326 * arch/xtensa.h: Rename include guard.
13327 * arch/tic6x.h: Add include guard.
13328 * arch/i386.h: Add include guard.
13329 * arch/arm.h: Rename include guard.
13330 * arch/arm-linux.h: Rename include guard.
13331 * arch/arm-get-next-pcs.h: Rename include guard.
13332 * arch/amd64.h: Add include guard.
13333 * arch/aarch64-insn.h: Rename include guard.
13334 * arch-utils.h: Rename include guard.
13335 * annotate.h: Add include guard.
13336 * amd64-darwin-tdep.h: Rename include guard.
13337 * aarch64-linux-tdep.h: Add include guard.
13338 * aarch64-fbsd-tdep.h: Add include guard.
13339 * aarch32-linux-nat.h: Add include guard.
13340
ab9268d2
PW
133412019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13342
13343 * macrotab.c (macro_define_internal): New function that
13344 factorizes macro_define_object_internal and macro_define_function
13345 code.
13346 (macro_define_object_internal): Use macro_define_internal.
13347 (macro_define_function): Likewise.
13348
bb0da2b4
PW
133492019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13350
13351 * macrocmd.c (extract_identifier): Return
13352 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13353 callers.
13354
424eb552
JB
133552019-02-06 John Baldwin <jhb@FreeBSD.org>
13356
13357 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13358
1688cb29
TT
133592019-02-05 Tom Tromey <tom@tromey.com>
13360
13361 * target.c (target_stack::unpush): Move assertion earlier.
13362
b5eba2d8
TT
133632019-01-30 Tom Tromey <tom@tromey.com>
13364
13365 PR python/23615:
13366 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13367 (gdbpy_parse_and_eval): Likewise.
13368 * python/python-internal.h (gdbpy_allow_threads): New class.
13369
7054e2ff
JB
133702019-01-28 John Baldwin <jhb@FreeBSD.org>
13371
13372 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13373 (aarch64_fbsd_fpregmap): Move earlier.
13374 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13375 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13376 instead of individual calls to trad_frame_set_reg_addr.
13377 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13378 earlier.
13379 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13380 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13381 instead of individual calls to trad_frame_set_reg_addr.
13382
36c25ffa
AH
133832019-01-28 Alan Hayward <alan.hayward@arm.com>
13384
13385 * CONTRIBUTE: Replace contribution list with wiki link.
13386
a0707f3c
TT
133872019-01-25 Tom Tromey <tom@tromey.com>
13388
13389 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13390
0747795c
TT
133912019-01-25 Tom Tromey <tom@tromey.com>
13392
13393 * xtensa-linux-nat.c: Fix common/ includes.
13394 * xml-support.h: Fix common/ includes.
13395 * xml-support.c: Fix common/ includes.
13396 * x86-linux-nat.c: Fix common/ includes.
13397 * windows-nat.c: Fix common/ includes.
13398 * varobj.h: Fix common/ includes.
13399 * varobj.c: Fix common/ includes.
13400 * value.c: Fix common/ includes.
13401 * valops.c: Fix common/ includes.
13402 * utils.c: Fix common/ includes.
13403 * unittests/xml-utils-selftests.c: Fix common/ includes.
13404 * unittests/utils-selftests.c: Fix common/ includes.
13405 * unittests/unpack-selftests.c: Fix common/ includes.
13406 * unittests/tracepoint-selftests.c: Fix common/ includes.
13407 * unittests/style-selftests.c: Fix common/ includes.
13408 * unittests/string_view-selftests.c: Fix common/ includes.
13409 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13410 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13411 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13412 * unittests/rsp-low-selftests.c: Fix common/ includes.
13413 * unittests/parse-connection-spec-selftests.c: Fix common/
13414 includes.
13415 * unittests/optional-selftests.c: Fix common/ includes.
13416 * unittests/offset-type-selftests.c: Fix common/ includes.
13417 * unittests/observable-selftests.c: Fix common/ includes.
13418 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13419 * unittests/memrange-selftests.c: Fix common/ includes.
13420 * unittests/memory-map-selftests.c: Fix common/ includes.
13421 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13422 * unittests/function-view-selftests.c: Fix common/ includes.
13423 * unittests/environ-selftests.c: Fix common/ includes.
13424 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13425 * unittests/common-utils-selftests.c: Fix common/ includes.
13426 * unittests/cli-utils-selftests.c: Fix common/ includes.
13427 * unittests/array-view-selftests.c: Fix common/ includes.
13428 * ui-file.c: Fix common/ includes.
13429 * tui/tui-io.c: Fix common/ includes.
13430 * tracepoint.h: Fix common/ includes.
13431 * tracepoint.c: Fix common/ includes.
13432 * tracefile-tfile.c: Fix common/ includes.
13433 * top.h: Fix common/ includes.
13434 * top.c: Fix common/ includes.
13435 * thread.c: Fix common/ includes.
13436 * target/waitstatus.h: Fix common/ includes.
13437 * target/waitstatus.c: Fix common/ includes.
13438 * target.h: Fix common/ includes.
13439 * target.c: Fix common/ includes.
13440 * target-memory.c: Fix common/ includes.
13441 * target-descriptions.c: Fix common/ includes.
13442 * symtab.h: Fix common/ includes.
13443 * symfile.c: Fix common/ includes.
13444 * stap-probe.c: Fix common/ includes.
13445 * spu-linux-nat.c: Fix common/ includes.
13446 * sparc-nat.c: Fix common/ includes.
13447 * source.c: Fix common/ includes.
13448 * solib.c: Fix common/ includes.
13449 * solib-target.c: Fix common/ includes.
13450 * ser-unix.c: Fix common/ includes.
13451 * ser-tcp.c: Fix common/ includes.
13452 * ser-pipe.c: Fix common/ includes.
13453 * ser-base.c: Fix common/ includes.
13454 * selftest-arch.c: Fix common/ includes.
13455 * s12z-tdep.c: Fix common/ includes.
13456 * rust-exp.y: Fix common/ includes.
13457 * rs6000-aix-tdep.c: Fix common/ includes.
13458 * riscv-tdep.c: Fix common/ includes.
13459 * remote.c: Fix common/ includes.
13460 * remote-notif.h: Fix common/ includes.
13461 * remote-fileio.h: Fix common/ includes.
13462 * remote-fileio.c: Fix common/ includes.
13463 * regcache.h: Fix common/ includes.
13464 * regcache.c: Fix common/ includes.
13465 * record-btrace.c: Fix common/ includes.
13466 * python/python.c: Fix common/ includes.
13467 * python/py-type.c: Fix common/ includes.
13468 * python/py-inferior.c: Fix common/ includes.
13469 * progspace.h: Fix common/ includes.
13470 * producer.c: Fix common/ includes.
13471 * procfs.c: Fix common/ includes.
13472 * proc-api.c: Fix common/ includes.
13473 * printcmd.c: Fix common/ includes.
13474 * ppc-linux-nat.c: Fix common/ includes.
13475 * parser-defs.h: Fix common/ includes.
13476 * osdata.c: Fix common/ includes.
13477 * obsd-nat.c: Fix common/ includes.
13478 * nat/x86-linux.c: Fix common/ includes.
13479 * nat/x86-linux-dregs.c: Fix common/ includes.
13480 * nat/x86-dregs.h: Fix common/ includes.
13481 * nat/x86-dregs.c: Fix common/ includes.
13482 * nat/ppc-linux.c: Fix common/ includes.
13483 * nat/mips-linux-watch.h: Fix common/ includes.
13484 * nat/mips-linux-watch.c: Fix common/ includes.
13485 * nat/linux-waitpid.c: Fix common/ includes.
13486 * nat/linux-ptrace.h: Fix common/ includes.
13487 * nat/linux-ptrace.c: Fix common/ includes.
13488 * nat/linux-procfs.c: Fix common/ includes.
13489 * nat/linux-personality.c: Fix common/ includes.
13490 * nat/linux-osdata.c: Fix common/ includes.
13491 * nat/linux-namespaces.c: Fix common/ includes.
13492 * nat/linux-btrace.h: Fix common/ includes.
13493 * nat/linux-btrace.c: Fix common/ includes.
13494 * nat/fork-inferior.c: Fix common/ includes.
13495 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13496 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13497 * nat/aarch64-linux.c: Fix common/ includes.
13498 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13499 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13500 * namespace.h: Fix common/ includes.
13501 * mips-linux-tdep.c: Fix common/ includes.
13502 * minsyms.c: Fix common/ includes.
13503 * mi/mi-parse.h: Fix common/ includes.
13504 * mi/mi-main.c: Fix common/ includes.
13505 * mi/mi-cmd-env.c: Fix common/ includes.
13506 * memrange.h: Fix common/ includes.
13507 * memattr.c: Fix common/ includes.
13508 * maint.h: Fix common/ includes.
13509 * maint.c: Fix common/ includes.
13510 * main.c: Fix common/ includes.
13511 * machoread.c: Fix common/ includes.
13512 * location.c: Fix common/ includes.
13513 * linux-thread-db.c: Fix common/ includes.
13514 * linux-nat.c: Fix common/ includes.
13515 * linux-fork.c: Fix common/ includes.
13516 * inline-frame.c: Fix common/ includes.
13517 * infrun.c: Fix common/ includes.
13518 * inflow.c: Fix common/ includes.
13519 * inferior.h: Fix common/ includes.
13520 * inferior.c: Fix common/ includes.
13521 * infcmd.c: Fix common/ includes.
13522 * inf-ptrace.c: Fix common/ includes.
13523 * inf-child.c: Fix common/ includes.
13524 * ia64-linux-nat.c: Fix common/ includes.
13525 * i387-tdep.c: Fix common/ includes.
13526 * i386-tdep.c: Fix common/ includes.
13527 * i386-linux-tdep.c: Fix common/ includes.
13528 * i386-linux-nat.c: Fix common/ includes.
13529 * i386-go32-tdep.c: Fix common/ includes.
13530 * i386-fbsd-tdep.c: Fix common/ includes.
13531 * i386-fbsd-nat.c: Fix common/ includes.
13532 * guile/scm-type.c: Fix common/ includes.
13533 * guile/guile.c: Fix common/ includes.
13534 * go32-nat.c: Fix common/ includes.
13535 * gnu-nat.c: Fix common/ includes.
13536 * gdbthread.h: Fix common/ includes.
13537 * gdbarch-selftests.c: Fix common/ includes.
13538 * gdb_usleep.c: Fix common/ includes.
13539 * gdb_select.h: Fix common/ includes.
13540 * gdb_bfd.c: Fix common/ includes.
13541 * gcore.c: Fix common/ includes.
13542 * fork-child.c: Fix common/ includes.
13543 * findvar.c: Fix common/ includes.
13544 * fbsd-nat.c: Fix common/ includes.
13545 * event-top.c: Fix common/ includes.
13546 * event-loop.c: Fix common/ includes.
13547 * dwarf2read.c: Fix common/ includes.
13548 * dwarf2loc.c: Fix common/ includes.
13549 * dwarf2-frame.c: Fix common/ includes.
13550 * dwarf-index-cache.c: Fix common/ includes.
13551 * dtrace-probe.c: Fix common/ includes.
13552 * disasm-selftests.c: Fix common/ includes.
13553 * defs.h: Fix common/ includes.
13554 * csky-tdep.c: Fix common/ includes.
13555 * cp-valprint.c: Fix common/ includes.
13556 * cp-support.h: Fix common/ includes.
13557 * cp-support.c: Fix common/ includes.
13558 * corelow.c: Fix common/ includes.
13559 * completer.h: Fix common/ includes.
13560 * completer.c: Fix common/ includes.
13561 * compile/compile.c: Fix common/ includes.
13562 * compile/compile-loc2c.c: Fix common/ includes.
13563 * compile/compile-cplus-types.c: Fix common/ includes.
13564 * compile/compile-cplus-symbols.c: Fix common/ includes.
13565 * command.h: Fix common/ includes.
13566 * cli/cli-dump.c: Fix common/ includes.
13567 * cli/cli-cmds.c: Fix common/ includes.
13568 * charset.c: Fix common/ includes.
13569 * build-id.c: Fix common/ includes.
13570 * btrace.h: Fix common/ includes.
13571 * btrace.c: Fix common/ includes.
13572 * breakpoint.h: Fix common/ includes.
13573 * breakpoint.c: Fix common/ includes.
13574 * ax.h:
13575 (enum agent_op): Fix common/ includes.
13576 * ax-general.c (struct aop_map): Fix common/ includes.
13577 * ax-gdb.c: Fix common/ includes.
13578 * auxv.c: Fix common/ includes.
13579 * auto-load.c: Fix common/ includes.
13580 * arm-tdep.c: Fix common/ includes.
13581 * arch/riscv.c: Fix common/ includes.
13582 * arch/ppc-linux-common.c: Fix common/ includes.
13583 * arch/i386.c: Fix common/ includes.
13584 * arch/arm.c: Fix common/ includes.
13585 * arch/arm-linux.c: Fix common/ includes.
13586 * arch/arm-get-next-pcs.c: Fix common/ includes.
13587 * arch/amd64.c: Fix common/ includes.
13588 * arch/aarch64.c: Fix common/ includes.
13589 * arch/aarch64-insn.c: Fix common/ includes.
13590 * arch-utils.c: Fix common/ includes.
13591 * amd64-windows-tdep.c: Fix common/ includes.
13592 * amd64-tdep.c: Fix common/ includes.
13593 * amd64-sol2-tdep.c: Fix common/ includes.
13594 * amd64-obsd-tdep.c: Fix common/ includes.
13595 * amd64-nbsd-tdep.c: Fix common/ includes.
13596 * amd64-linux-tdep.c: Fix common/ includes.
13597 * amd64-linux-nat.c: Fix common/ includes.
13598 * amd64-fbsd-tdep.c: Fix common/ includes.
13599 * amd64-fbsd-nat.c: Fix common/ includes.
13600 * amd64-dicos-tdep.c: Fix common/ includes.
13601 * amd64-darwin-tdep.c: Fix common/ includes.
13602 * agent.c: Fix common/ includes.
13603 * ada-lang.h: Fix common/ includes.
13604 * ada-lang.c: Fix common/ includes.
13605 * aarch64-tdep.c: Fix common/ includes.
13606
2f5c153e
TT
136072019-01-25 Tom Tromey <tom@tromey.com>
13608
13609 * common/create-version.sh: Use common/version.h.
13610
adc6a863
PA
136112019-01-24 Pedro Alves <palves@redhat.com>
13612
13613 * infrun.c (signal_stop, signal_print, signal_program)
13614 (signal_catch, signal_pass): Now arrays instead of pointers.
13615 (update_signals_program_target, do_target_resume)
13616 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13617 * linux-nat.c (linux_nat_target::pass_signals)
13618 (linux_nat_target::create_inferior, linux_nat_target::attach):
13619 Adjust.
13620 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13621 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13622 * procfs.c (procfs_target::pass_signals): Adjust.
13623 * record-full.c (record_full_target::resume): Adjust.
13624 * remote.c (remote_target::pass_signals)
13625 (remote_target::program_signals): Adjust.
13626 * target-debug.h (target_debug_print_signals): Now takes a
13627 gdb::array_view as parameter. Adjust.
13628 * target.h (target_ops) <pass_signals, program_signals>: Replace
13629 pointer and length parameters with gdb::array_view.
13630 (target_pass_signals, target_program_signals): Likewise.
13631 * target-delegates.c: Regenerate.
13632
3046d67a
PA
136332019-01-24 Pedro Alves <palves@redhat.com>
13634
13635 * common/forward-scope-exit.h
13636 (forward_scope_exit::forward_scope_exit): Pass arguments to
13637 m_bind_function directly, instead of creating a std::bind and
13638 copying that.
13639
353229bf
AH
136402019-01-24 Alan Hayward <alan.hayward@arm.com>
13641
13642 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13643 for static members.
13644 (pass_in_v_vfp_candidate): Likewise.
13645
311dc83a
TT
136462019-01-23 Tom Tromey <tom@tromey.com>
13647 Pedro Alves <palves@redhat.com>
13648
13649 * regcache.c (class regcache_invalidator): Remove.
13650 (regcache::raw_write): Use make_scope_exit.
13651
296bd123
TT
136522019-01-23 Tom Tromey <tom@tromey.com>
13653
13654 * ui-out.h (class ui_out_emit_type): Update comment.
13655
979a0d13
TT
136562019-01-23 Tom Tromey <tom@tromey.com>
13657
13658 * infrun.c (fetch_inferior_event): Update comment.
13659
d238133d
TT
136602019-01-23 Tom Tromey <tom@tromey.com>
13661 Pedro Alves <palves@redhat.com>
13662
13663 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13664 parameter.
13665 (fetch_inferior_event): Use SCOPE_EXIT.
13666
13667
9885e6bb
TT
136682019-01-23 Tom Tromey <tom@tromey.com>
13669 Pedro Alves <palves@redhat.com>
13670
13671 * infrun.c (disable_thread_events): Delete.
13672 (stop_all_threads): Use SCOPE_EXIT.
13673
286526c1
TT
136742019-01-23 Tom Tromey <tom@tromey.com>
13675 Pedro Alves <palves@redhat.com>
13676
13677 * symfile.c: Include forward-scope-exit.h.
13678 (clear_symtab_users_cleanup): Replace forward declaration with
13679 a FORWARD_SCOPE_EXIT.
13680 (syms_from_objfile_1): Use the forward_scope_exit and
13681 gdb::optional instead of cleanup_function.
13682 (reread_symbols): Use the forward_scope_exit instead of
13683 cleanup_function.
13684 (clear_symtab_users_cleanup): Remove function.
13685
1db93f14
TT
136862019-01-23 Tom Tromey <tom@tromey.com>
13687 Pedro Alves <palves@redhat.com>
13688
13689 * linux-nat.c: Include scope-exit.h.
13690 (cleanup_target_stop): Remove.
13691 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13692 SCOPE_EXIT.
13693
2cc83d1e
TT
136942019-01-23 Tom Tromey <tom@tromey.com>
13695 Pedro Alves <palves@redhat.com>
13696
13697 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13698 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13699
694c6bf5
TT
137002019-01-23 Tom Tromey <tom@tromey.com>
13701 Andrew Burgess <andrew.burgess@embecosm.com>
13702 Pedro Alves <palves@redhat.com>
13703
13704 * infrun.c (fetch_inferior_event): Use scope_exit.
13705 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13706 * top.c (execute_command): Use scope_exit.
13707 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13708 * utils.c (do_bpstat_clear_actions_cleanup)
13709 (make_bpstat_clear_actions_cleanup): Remove.
13710
4c41382a
TT
137112019-01-23 Tom Tromey <tom@tromey.com>
13712 Pedro Alves <palves@redhat.com>
13713
13714 * infrun.c: Include "common/scope-exit.h"
13715 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13716 (wait_for_inferior): Use SCOPE_EXIT.
13717 (fetch_inferior_event): Use scope_exit.
13718
89f8fb50
TT
137192019-01-23 Tom Tromey <tom@tromey.com>
13720 Pedro Alves <palves@redhat.com>
13721
13722 * breakpoint.c (create_breakpoint): Remove cleanup.
13723
5419bdae
TT
137242019-01-23 Tom Tromey <tom@tromey.com>
13725 Andrew Burgess <andrew.burgess@embecosm.com>
13726 Pedro Alves <palves@redhat.com>
13727
e587ef42
PA
137282019-01-23 Pedro Alves <palves@redhat.com>
13729
13730 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13731
77f0e74c
PA
137322019-01-23 Pedro Alves <palves@redhat.com>
13733 Andrew Burgess <andrew.burgess@embecosm.com>
13734
13735 * gdbthread.h: Include "common/forward-scope-exit.h".
13736 (scoped_finish_thread_state): Redefine custom class in terms of
13737 forward_scope_exit.
13738
5b9b3e53
PA
137392019-01-23 Pedro Alves <palves@redhat.com>
13740 Andrew Burgess <andrew.burgess@embecosm.com>
13741
13742 * common/forward-scope-exit.h: New file.
13743
54b65c9b
PA
137442019-01-23 Pedro Alves <palves@redhat.com>
13745 Andrew Burgess <andrew.burgess@embecosm.com>
13746 Tom Tromey <tom@tromey.com>
13747
13748 * common/scope-exit.h: New file.
13749
cf08fb29
PA
137502019-01-23 Pedro Alves <palves@redhat.com>
13751
13752 * common/preprocessor.h (ESC): Rename to ...
13753 (ESC_PARENS): ... this.
13754 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13755 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13756
ae73e2e2
TT
137572019-01-23 Tom Tromey <tom@tromey.com>
13758
13759 * language.h (class scoped_switch_to_sym_language_if_auto):
13760 Initialize m_lang in both cases.
13761
6594e122
AH
137622019-01-23 Alan Hayward <alan.hayward@arm.com>
13763
13764 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13765 with XCNEW.
13766
a7c9855d
TT
137672019-01-22 Tom Tromey <tom@tromey.com>
13768
13769 * corelow.c: Do not include sys/file.h.
13770
93cc1d53
TT
137712019-01-22 Tom Tromey <tom@tromey.com>
13772
13773 * tui/tui-wingeneral.h: Include gdb_curses.h.
13774
38561778
TT
137752019-01-22 Tom Tromey <tom@tromey.com>
13776
13777 * source-cache.h (class source_cache) <get_source_lines,
13778 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13779
37b3ab5b
TT
137802019-01-22 Tom Tromey <tom@tromey.com>
13781
13782 * remote-fileio.h (struct remote_target): Declare.
13783
3fabc016
TT
137842019-01-22 Tom Tromey <tom@tromey.com>
13785
13786 * python/py-arch.c: Do not include py-ref.h.
13787 * python/py-bpevent.c: Do not include py-ref.h.
13788 * python/py-cmd.c: Do not include py-ref.h.
13789 * python/py-continueevent.c: Do not include py-ref.h.
13790 * python/py-event.h: Do not include py-ref.h.
13791 * python/py-evtregistry.c: Do not include py-ref.h.
13792 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13793 * python/py-frame.c: Do not include py-ref.h.
13794 * python/py-framefilter.c: Do not include py-ref.h.
13795 * python/py-function.c: Do not include py-ref.h.
13796 * python/py-infevents.c: Do not include py-ref.h.
13797 * python/py-linetable.c: Do not include py-ref.h.
13798 * python/py-objfile.c: Do not include py-ref.h.
13799 * python/py-param.c: Do not include py-ref.h.
13800 * python/py-prettyprint.c: Do not include py-ref.h.
13801 * python/py-progspace.c: Do not include py-ref.h.
13802 * python/py-symbol.c: Do not include py-ref.h.
13803 * python/py-symtab.c: Do not include py-ref.h.
13804 * python/py-type.c: Do not include py-ref.h.
13805 * python/py-unwind.c: Do not include py-ref.h.
13806 * python/py-utils.c: Do not include py-ref.h.
13807 * python/py-value.c: Do not include py-ref.h.
13808 * python/py-varobj.c: Do not include py-ref.h.
13809 * python/py-xmethods.c: Do not include py-ref.h.
13810 * python/python.c: Do not include py-ref.h.
13811 * varobj.c: Do not include py-ref.h.
13812
6b4d7774
TT
138132019-01-22 Tom Tromey <tom@tromey.com>
13814
13815 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13816 keyword for bcache.
13817
7af7e9b5
TT
138182019-01-22 Tom Tromey <tom@tromey.com>
13819
13820 * compile/compile-cplus-types.c: Remove a comment by #include.
13821
951d1049
TT
138222019-01-22 Tom Tromey <tom@tromey.com>
13823
13824 * compile/gcc-c-plugin.h: Include compile-internal.h.
13825
d65d5705
TT
138262019-01-22 Tom Tromey <tom@tromey.com>
13827
13828 * stabsread.c (EXTERN): Do not define.
13829 (symnum, next_symbol_text_func, processing_gcc_compilation)
13830 (within_function, global_sym_chain, global_stabs)
13831 (previous_stab_code, this_object_header_files)
13832 (n_this_object_header_files)
13833 (n_allocated_this_object_header_files): Define.
13834 * stabsread.h (EXTERN): Never define. Use "extern".
13835
b6fb1ee5
PW
138362019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13837
13838 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13839 history_value.
13840
be6d4f74
TT
138412019-01-21 Tom Tromey <tom@tromey.com>
13842
13843 * ui-out.c: Fix includes.
13844 * tui/tui-source.c: Fix includes.
13845 * target.c: Fix includes.
13846 * remote.c: Fix includes.
13847 * regcache.c: Fix includes.
13848 * python/py-block.c: Fix includes.
13849 * printcmd.c: Fix includes.
13850 * or1k-tdep.c: Fix includes.
13851 * mi/mi-main.c: Fix includes.
13852 * m32r-tdep.c: Fix includes.
13853 * csky-tdep.c: Fix includes.
13854 * compile/compile-cplus-types.c: Fix includes.
13855 * cli/cli-interp.c: Fix includes.
13856
73021deb
AH
138572019-01-21 Alan Hayward <alan.hayward@arm.com>
13858
13859 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13860 for padding.
13861
7932255d
TT
138622019-01-16 Tom Tromey <tom@tromey.com>
13863
13864 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13865 earlier.
13866 (struct objfile) <msymbols_range>: Move from top level.
13867 <msymbols>: New method.
13868 (class objfile_msymbols): Remove.
13869 * symtab.c (default_collect_symbol_completion_matches_break_on):
13870 Update.
13871 * symmisc.c (dump_msymbols): Update.
13872 * stabsread.c (scan_file_globals): Update.
13873 * objc-lang.c (info_selectors_command, info_classes_command)
13874 (find_methods): Update.
13875 * minsyms.c (find_solib_trampoline_target): Update.
13876 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13877 * coffread.c (coff_symfile_read): Update.
13878 * ada-lang.c (ada_lookup_simple_minsym)
13879 (ada_collect_symbol_completion_matches): Update.
13880
604b1bfb
TT
138812019-01-16 Tom Tromey <tom@tromey.com>
13882
13883 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13884 type. Remove no-argument constructor.
13885 <iterator::operator++>: Simplify.
13886 <begin>: Update.
13887 <end>: Use minimal_symbol_count.
13888
f252c6d5
TT
138892019-01-16 Tom Tromey <tom@tromey.com>
13890
13891 * objfiles.h (struct objfile) <psymtabs>: New method.
13892 (class objfile_psymtabs): Remove.
13893 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13894 typedef.
13895 <range>: New method.
13896 (require_partial_symbols): Change return type.
13897 * psymtab.c (require_partial_symbols)
13898 (psym_expand_symtabs_matching): Update.
13899 * mdebugread.c (parse_partial_symbols): Update.
13900 * dbxread.c (dbx_end_psymtab): Update.
13901
b669c953
TT
139022019-01-15 Tom Tromey <tom@tromey.com>
13903
13904 * symtab.c (lookup_objfile_from_block)
13905 (lookup_symbol_in_objfile_symtabs)
13906 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13907 (find_line_symtab, info_sources_command)
13908 (default_collect_symbol_completion_matches_break_on)
13909 (make_source_files_completion_list): Update.
13910 * symmisc.c (print_objfile_statistics, dump_objfile)
13911 (maintenance_print_symbols, maintenance_info_symtabs)
13912 (maintenance_check_symtabs, maintenance_info_line_tables):
13913 Update.
13914 * source.c (select_source_symtab)
13915 (forget_cached_source_info_for_objfile): Update.
13916 * objfiles.h (class objfile_compunits): Remove.
13917 (struct objfile) <compunits_range>: New typedef.
13918 (compunits): New method.
13919 * objfiles.c (objfile_relocate1): Update.
13920 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13921 * maint.c (count_symtabs_and_blocks): Update.
13922 * linespec.c (iterate_over_all_matching_symtabs): Update.
13923 * cp-support.c (add_symbol_overload_list_qualified): Update.
13924 * coffread.c (coff_symtab_read): Update.
13925 * ada-lang.c (add_nonlocal_symbols)
13926 (ada_collect_symbol_completion_matches)
13927 (ada_add_global_exceptions): Update.
13928
7e955d83
TT
139292019-01-15 Tom Tromey <tom@tromey.com>
13930
13931 * progspace.h (program_space) <objfiles_safe_range>: New
13932 typedef.
13933 <objfiles_safe>: New method.
13934 * objfiles.h (class all_objfiles_safe): Remove.
13935 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13936 * jit.c (jit_inferior_exit_hook): Update.
13937
2030c079
TT
139382019-01-17 Tom Tromey <tom@tromey.com>
13939
13940 * progspace.h (program_space) <objfiles_range>: New typedef.
13941 <objfiles>: New method.
13942 <objfiles_head>: Rename from objfiles.
13943 (object_files): Update.
13944 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13945 * guile/scm-pretty-print.c
13946 (ppscm_find_pretty_printer_from_objfiles): Update.
13947 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13948 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13949 Update.
13950 * python/py-progspace.c (pspy_get_objfiles): Update.
13951 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13952 Update.
13953 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13954 (objfpy_lookup_objfile_by_build_id): Update.
13955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13956 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13957 Update.
13958 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13959 (expand_symtab_containing_pc, lookup_objfile_from_block)
13960 (lookup_static_symbol, basic_lookup_transparent_type)
13961 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13962 (find_line_symtab, info_sources_command)
13963 (default_collect_symbol_completion_matches_break_on)
13964 (make_source_files_completion_list, find_main_name): Update.
13965 * symmisc.c (print_symbol_bcache_statistics)
13966 (print_objfile_statistics, maintenance_print_symbols)
13967 (maintenance_print_msymbols, maintenance_print_objfiles)
13968 (maintenance_info_symtabs, maintenance_check_symtabs)
13969 (maintenance_expand_symtabs, maintenance_info_line_tables):
13970 Update.
13971 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13972 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13973 (map_overlay_command, unmap_overlay_command)
13974 (simple_overlay_update, expand_symtabs_matching)
13975 (map_symbol_filenames): Update.
13976 * symfile-debug.c (set_debug_symfile): Update.
13977 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13978 Update.
13979 * source.c (select_source_symtab, forget_cached_source_info):
13980 Update.
13981 * solib.c (solib_read_symbols): Update.
13982 * solib-spu.c (append_ocl_sos): Update.
13983 * psymtab.c (maintenance_print_psymbols)
13984 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13985 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13986 * printcmd.c (info_symbol_command): Update.
13987 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13988 Update.
13989 * objfiles.h (class all_objfiles): Remove.
13990 * objfiles.c (have_partial_symbols, have_full_symbols)
13991 (have_minimal_symbols, qsort_cmp, update_section_map)
13992 (shared_objfile_contains_address_p)
13993 (default_iterate_over_objfiles_in_search_order): Update.
13994 * objc-lang.c (info_selectors_command, info_classes_command)
13995 (find_methods): Update.
13996 * minsyms.c (find_solib_trampoline_target): Update.
13997 * maint.c (maintenance_info_sections)
13998 (maintenance_translate_address, count_symtabs_and_blocks):
13999 Update.
14000 * main.c (captured_main_1): Update.
14001 * linux-thread-db.c (try_thread_db_load_from_pdir)
14002 (has_libpthread): Update.
14003 * linespec.c (iterate_over_all_matching_symtabs)
14004 (search_minsyms_for_name): Update.
14005 * jit.c (jit_find_objf_with_entry_addr): Update.
14006 * hppa-tdep.c (find_unwind_entry)
14007 (hppa_lookup_stub_minimal_symbol): Update.
14008 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14009 Update.
14010 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14011 (elf_gnu_ifunc_resolve_by_got): Update.
14012 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14013 * dwarf-index-write.c (save_gdb_index_command): Update.
14014 * cp-support.c (add_symbol_overload_list_qualified): Update.
14015 * breakpoint.c (create_overlay_event_breakpoint)
14016 (create_longjmp_master_breakpoint)
14017 (create_std_terminate_master_breakpoint)
14018 (create_exception_master_breakpoint): Update.
14019 * blockframe.c (find_pc_partial_function): Update.
14020 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14021 (ada_collect_symbol_completion_matches)
14022 (ada_add_global_exceptions): Update.
14023
776489e0
TT
140242019-01-17 Tom Tromey <tom@tromey.com>
14025
14026 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14027 declare VEC.
14028 (solib_target_parse_libraries): Change return type.
14029 (library_list_start_segment, library_list_start_section)
14030 (library_list_end_library, library_list_start_library); Update.
14031 (solib_target_free_library_list): Remove.
14032 (solib_target_parse_libraries): Remove cleanup. Change return
14033 type.
14034 (solib_target_current_sos): Update.
14035
6471e7d2
TT
140362019-01-17 Tom Tromey <tromey@bapiya>
14037
14038 * valprint.c: Replace "the the" with "the".
14039 * symtab.c: Replace "the the" with "the".
14040 * solib.c: Replace "the the" with "the".
14041 * solib-dsbt.c: Replace "the the" with "the".
14042 * linespec.c: Replace "the the" with "the".
14043 * dwarf2loc.h: Replace "the the" with "the".
14044 * amd64-windows-tdep.c: Replace "the the" with "the".
14045 * aarch64-tdep.c: Replace "the the" with "the".
14046
c24bdb02
KS
140472019-01-16 Keith Seitz <keiths@redhat.com>
14048
14049 PR gdb/23773
14050 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14051 <builder>: Rename to ..
14052 <m_builder>: ... this and make private.
14053 (dwarf2_cu::get_builder): New method. Change all users of
14054 `builder' to use this method.
14055 (dwarf2_start_symtab): Move to ...
14056 (dwarf2_cu::start_symtab): ... here. Update all callers
14057 (setup_type_unit_groups): Move to ...
14058 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14059 callers.
14060 (dwarf2_cu::reset_builder): New method.
14061 (process_full_compunit, process_full_type_unit): Use
14062 dwarf2_cu::reset_builder.
14063 (follow_die_offset): Record the ancestor CU if it is different
14064 from the followed DIE's CU.
14065 (follow_die_sig_1): Likewise.
14066
8d64371b
TT
140672019-01-15 Tom Tromey <tom@tromey.com>
14068
14069 * remote.c (class remote_state) <buf>: Now a char_vector.
14070 <buf_size>: Remove.
14071 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14072 parameter.
14073 (remote_target::getpkt_or_notif_sane_1)
14074 (remote_target::getpkt_sane)
14075 (remote_target::getpkt_or_notif_sane): Likewise.
14076 (class remote_target) <putpkt>: New overload.
14077 (remote_target::read_frame): Change type of "buf_p". Remove
14078 sizeof_p parameter.
14079 (packet_ok): New overload.
14080 (packet_check_result): New overload.
14081 Update all uses.
14082
bb277751
TT
140832019-01-14 Tom Tromey <tom@tromey.com>
14084
14085 * remote-notif.c (handle_notification, remote_notif_ack)
14086 (remote_notif_parse): Make "buf" const.
14087 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14088 const.
14089 (remote_notif_parse, remote_notif_ack, handle_notification):
14090 Likewise.
14091 * remote.c (remote_notif_stop_parse): Make "buf" const.
14092 (remote_target::remote_parse_stop_reply): Make "buf" const.
14093 (remote_notif_stop_ack): Make "buf" const.
14094
05be00a8
TT
140952019-01-14 Tom Tromey <tom@tromey.com>
14096
14097 * remote.c (remote_console_output): Make parameter const.
14098
491adeca
TT
140992019-01-14 Tom Tromey <tom@tromey.com>
14100
14101 * target-debug.h (target_debug_print_signals): Constify.
14102 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14103 * procfs.c (procfs_target::pass_signals): Update.
14104 * linux-nat.c (linux_nat_target::pass_signals): Update.
14105 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14106 * target-delegates.c: Rebuild.
14107 * remote.c (remote_target::program_signals): Update.
14108 (remote_target::pass_signals): Update.
14109 * target.c (target_pass_signals): Constify argument.
14110 (target_program_signals): Likewise.
14111 * target.h (struct target_ops) <pass_signals, program_signals>:
14112 Constify argument.
14113 (target_pass_signals, target_program_signals): Constify argument.
14114
bbd94648
TT
141152019-01-14 Tom Tromey <tom@tromey.com>
14116
14117 PR tui/28819:
14118 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14119
6f072a10
PFC
141202019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14121
14122 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14123 field.
14124 * rs6000-tdep.c: Include reggroups.h.
14125 (IS_V_ALIAS_PSEUDOREG): Define.
14126 (rs6000_register_name): Return names for the "vX" aliases.
14127 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14128 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14129 aliases. Call default_register_reggroup_p for all other
14130 pseudo-registers.
14131 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14132 New functions.
14133 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14134 Handle "vX" aliases.
14135 (v_alias_pseudo_register_collect): New function.
14136 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14137 (rs6000_gdbarch_init): Initialize "vX" aliases as
14138 pseudo-registers. Restore registration of
14139 rs6000_pseudo_register_reggroup_p with
14140 set_tdesc_pseudo_register_reggroup_p.
14141
1a782351
MF
141422019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14143
14144 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14145 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14146 set_gdbarch_num_pseudo_regs.
14147
d73cff18
PW
141482019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14149
14150 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14151 Remove arg prefixname, add do_set and do_show.
14152 Add member functions set_list and show_list.
14153 * cli/cli-style.c (class cli_style_option): Update accordingly.
14154 (style_set_list): Move to file scope.
14155 (style_show_list): Likewise.
14156 (set_style): Call help_list.
14157 (show_style): Call cmd_show_list.
14158 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14159 Update to use the new macro.
14160
60a90376
JB
141612019-10-12 Joel Brobecker <brobecker@adacore.com>
14162
14163 * ada-lang.c (_initialize_ada_language): Expand the help text
14164 for the "catch exception" command.
14165
9d7c67bf
PW
141662019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14167
14168 * symtab.c (matching_obj_sections): Initialize obj,
14169 declare it closer to its usage.
14170
7cf47dc4
TT
141712019-01-10 Tom Tromey <tom@tromey.com>
14172
14173 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14174 (basic_inf_threads_range): Remove.
14175 (inf_threads_range, inf_non_exited_threads_range)
14176 (safe_inf_threads_range): Use next_adapter.
14177
d3cb6808
KS
141782019-01-10 Keith Seitz <keiths@redhat.com>
14179
14180 PR gdb/23712
14181 PR symtab/23010
14182 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14183 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14184
63a20375
KS
141852019-01-10 Keith Seitz <keiths@redhat.com>
14186
14187 PR gdb/23712
14188 PR symtab/23010
14189 * dictionary.c (pending_to_vector): Remove.
14190 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14191 Remove _1 suffix, replacing functions of the same name. Update
14192 all callers.
14193 (dict_create_hashed, dict_create_hashed_expandable)
14194 (dict_create_linear, dict_create_linear_expandable, dict_free)
14195 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14196 Make functions static.
14197
b026f593
KS
141982019-01-10 Keith Seitz <keiths@redhat.com>
14199
14200 PR gdb/23712
14201 PR symtab/23010
14202 * dictionary.h (struct dictionary): Replace declaration with
14203 multidictionary.
14204 (dict_create_hashed, dict_create_hashed_expandable)
14205 (dict_create_linear, dict_create_linear_expandable)
14206 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14207 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14208 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14209 taking multidictionary argument.
14210 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14211 * block.h (struct block) <dict>: Change to multidictionary
14212 and rename `multidict'.
14213 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14214 symmisc.c: Update all dictionary references to multidictionary.
14215
c7748ee9
KS
142162019-01-10 Keith Seitz <keiths@redhat.com>
14217
14218 PR gdb/23712
14219 PR symtab/23010
14220 * dictionary.c: Include unordered_map.
14221 (pending_to_vector): New function.
14222 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14223 Rewrite the non-"_1" functions to take vector instead
14224 of linked list.
14225 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14226 "new" _1 versions of the same name.
14227 (multidictionary): Define.
14228 (std::hash<enum language): New definition.
14229 (collate_pending_symbols_by_language, mdict_create_hashed)
14230 (mdict_create_hashed_expandable, mdict_create_linear)
14231 (mdict_create_linear_expandable, mdict_free)
14232 (find_language_dictionary, create_new_language_dictionary)
14233 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14234 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14235 (mdict_size, mdict_empty): New functions.
14236 * dictionary.h (mdict_iterator): Define.
14237
67aa1f3c
PA
142382019-01-10 Pedro Alves <palves@redhat.com>
14239
14240 * breakpoint.c (read_uploaded_action)
14241 (create_tracepoint_from_upload): Adjust to use
14242 gdb::unique_xmalloc_ptr.
14243 * ctf.c (ctf_write_uploaded_tp):
14244 (SET_ARRAY_FIELD): Use emplace_back.
14245 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14246 * tracefile-tfile.c (tfile_write_uploaded_tp):
14247 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14248 gdb::unique_xmalloc_ptr.
14249 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14250 at_string, cond_string, cmd_strings>: Replace char pointers
14251 with gdb::unique_xmalloc_ptr.
14252
2f667667
PA
142532019-01-10 Pedro Alves <palves@redhat.com>
14254
14255 * solib-target.c (library_list_start_library): Don't xstrdup name.
14256
36cb7237
PA
142572019-01-10 Pedro Alves <palves@redhat.com>
14258
14259 * mdebugread.c (parse_partial_symbols): Use
14260 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14261
da584958
AB
142622019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14263
14264 * linux-fork.c (scoped_switch_fork_info)
14265 <~scoped_switch_fork_info>: Fix incorrect variable name.
14266
1ef8573c
AB
142672019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14268
14269 * linux-fork.c (scoped_switch_fork_info)
14270 <scoped_switch_fork_info>: Make explicit.
14271 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14272
8d7bcccb
TT
142732019-01-10 Tom Tromey <tom@tromey.com>
14274
14275 * objfiles.h (objfile::reset_psymtabs): Update.
14276 * objfiles.c (objfile::objfile): Update.
14277 * psymtab.h (psymtab_storage::obstack): Update.
14278 (psymtab_storage::m_obstack): Use gdb::optional.
14279 (class psymtab_storage): Update comment. Remove objfile
14280 parameter.
14281 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14282
b596a3c7
TT
142832019-01-10 Tom Tromey <tom@tromey.com>
14284
14285 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14286 <free_psymtabs>: Now private.
14287 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14288 (allocate_psymtab): Use new method.
14289
a9342b62
TT
142902019-01-10 Tom Tromey <tom@tromey.com>
14291
14292 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14293 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14294 * mdebugread.c (parse_partial_symbols): Use
14295 allocate_dependencies.
14296 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14297 allocate_dependencies.
14298 (process_psymtab_comp_unit_reader)
14299 (build_type_psymtab_dependencies): Likewise.
14300 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14301
5af70966
TT
143022019-01-10 Tom Tromey <tom@tromey.com>
14303
14304 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14305 PSYMBOL_SET_LANGUAGE.
14306 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14307
5923a04c
TT
143082019-01-10 Tom Tromey <tom@tromey.com>
14309
14310 * psymtab.h (psymtab_storage::obstack): New method.
14311 <m_obstack>: Rename from obstack; now private.
14312 * psymtab.c (psymtab_storage): Update.
14313 * dwarf2read.c (create_addrmap_from_index)
14314 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14315 Update.
14316
6d6a12bf
TT
143172019-01-10 Tom Tromey <tom@tromey.com>
14318
14319 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14320 * objfiles.h (objfile::reset_psymtabs): New method.
14321
d320c2b5
TT
143222019-01-10 Tom Tromey <tom@tromey.com>
14323
14324 * symmisc.c (print_symbol_bcache_statistics): Update.
14325 (print_objfile_statistics): Update.
14326 * symfile.c (reread_symbols): Update.
14327 * psymtab.h (class psymtab_storage): New.
14328 * psymtab.c (psymtab_storage): New constructor.
14329 (~psymtab_storage): New destructor.
14330 (require_partial_symbols): Update.
14331 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14332 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14333 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14334 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14335 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14336 (start_psymtab_common, end_psymtab_common)
14337 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14338 (allocate_psymtab): Update.
14339 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14340 Update.
14341 (dump_psymtab_addrmap, maintenance_print_psymbols)
14342 (maintenance_check_psymtabs): Update.
14343 (class objfile_psymtabs): Move to objfiles.h.
14344 * psympriv.h (discard_psymtab): Now inline.
14345 (psymtab_discarder::psymtab_discarder): Update.
14346 (psymtab_discarder::~psymtab_discarder): Update.
14347 (ALL_OBJFILE_PSYMTABS): Rewrite.
14348 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14349 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14350 Remove fields.
14351 <partial_symtabs>: New field.
14352 (class objfile_psymtabs): Move from psymtab.h. Update.
14353 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14354 psymbol_cache.
14355 (objfile::~objfile): Don't destroy psymbol_cache.
14356 * mdebugread.c (parse_partial_symbols): Update.
14357 * dwarf2read.c (create_addrmap_from_index)
14358 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14359 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14360 (add_partial_subprogram, dwarf2_ranges_read): Update.
14361 * dwarf-index-write.c (write_address_map)
14362 (write_one_signatured_type, recursively_write_psymbols)
14363 (class debug_names, class debug_names, write_psymtabs_to_index):
14364 Update.
14365
1d94a5a3
TT
143662019-01-10 Tom Tromey <tom@tromey.com>
14367
14368 * symtab.h (SYMBOL_SET_NAMES): Update.
14369 (symbol_set_names): Update.
14370 (MSYMBOL_SET_NAMES): Update.
14371 * symtab.c (symbol_set_names): Change argument to be an
14372 objfile_per_bfd_storage.
14373 * psymtab.c (add_psymbol_to_bcache): Update.
14374 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14375
0f14768a
TT
143762019-01-10 Tom Tromey <tom@tromey.com>
14377
14378 * symtab.c (create_demangled_names_hash): Change argument to be an
14379 objfile_per_bfd_storage.
14380 (symbol_set_names): Update.
14381
6eee24ce
TT
143822019-01-10 Tom Tromey <tom@tromey.com>
14383
14384 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14385 init_psymbol_list.
14386 * psymtab.c (init_psymbol_list): Do nothing if already called.
14387 * psympriv.h (init_psymbol_list): Add comment.
14388 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14389 init_psymbol_list.
14390 * dbxread.c (dbx_symfile_read): Unconditionally call
14391 init_psymbol_list.
14392
75aedd27
TT
143932019-01-10 Tom Tromey <tom@tromey.com>
14394
14395 * xcoffread.c (scan_xcoff_symtab): Update.
14396 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14397 "where".
14398 * mdebugread.c (parse_partial_symbols)
14399 (handle_psymbol_enumerators): Update.
14400 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14401 * dbxread.c (read_dbx_symtab): Update.
14402 * psympriv.h (psymbol_placement): New enum.
14403 (add_psymbol_to_list): Update.
14404
939652a5
TT
144052019-01-10 Tom Tromey <tom@tromey.com>
14406
14407 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14408 static_psymbols parameters.
14409 (scan_xcoff_symtab): Update.
14410 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14411 static_psymbols parameters.
14412 * psympriv.h (start_psymtab_common): Update.
14413 * mdebugread.c (parse_partial_symbols): Update.
14414 * dwarf2read.c (create_partial_symtab): Update.
14415 * dbxread.c (read_dbx_symtab): Update.
14416 (start_psymtab): Remove global_psymbols and static_psymbols
14417 parameters.
14418
baa62830
TT
144192019-01-10 Tom Tromey <tom@tromey.com>
14420
14421 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14422 * psymtab.c (allocate_psymtab): Add comment.
14423 * psympriv.h (allocate_psymtab): Add comment.
14424 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14425 initializations.
14426 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14427
0e8f53ba
TT
144282019-01-10 Tom Tromey <tom@tromey.com>
14429
14430 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14431 Don't declare.
14432 * mipsread.c: Include mdebugread.h.
14433 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14434 Declare.
14435 * elfread.c: Include mdebugread.h.
14436
b22a7c6a
TT
144372019-01-09 Tom Tromey <tom@tromey.com>
14438
14439 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14440 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14441 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14442 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14443 (psym_lookup_symbol, psym_find_last_source_symtab)
14444 (psym_forget_cached_source_info, psym_print_stats)
14445 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14446 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14447 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14448 (psym_find_compunit_symtab_by_address)
14449 (maintenance_print_psymbols, maintenance_info_psymtabs)
14450 (maintenance_check_psymtabs): Use ranged for.
14451 * psymtab.h (class objfile_psymtabs): New.
14452 (require_partial_symbols): Return objfile_psymtabs.
14453 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14454
3b9d3ac2
TT
144552019-01-09 Tom Tromey <tom@tromey.com>
14456
14457 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14458 (find_pc_mapped_section, list_overlays_command)
14459 (map_overlay_command, unmap_overlay_command)
14460 (simple_overlay_update): Use all_objfiles.
14461 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14462 * printcmd.c (info_symbol_command): Use all_objfiles.
14463 * objfiles.h (ALL_OBJSECTIONS): Remove.
14464 * maint.c (maintenance_translate_address): Use all_objfiles.
14465 * gcore.c (gcore_create_callback): Use all_objfiles.
14466 (objfile_find_memory_regions): Likewise.
14467
8b31193a
TT
144682019-01-09 Tom Tromey <tom@tromey.com>
14469
14470 * symtab.c (find_line_symtab, info_sources_command)
14471 (make_source_files_completion_list): Use objfile_compunits.
14472 * source.c (select_source_symtab): Use objfile_compunits.
14473 * objfiles.h (struct objfile): Update comment.
14474 (ALL_OBJFILES): Remove.
14475 (ALL_FILETABS): Remove.
14476 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14477 objfile_compunits.
14478
d5da8b3c
TT
144792019-01-09 Tom Tromey <tom@tromey.com>
14480
14481 * symmisc.c (print_objfile_statistics, dump_objfile)
14482 (maintenance_print_symbols): Use compunit_filetabs.
14483 * source.c (forget_cached_source_info_for_objfile): Use
14484 compunit_filetabs.
14485 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14486 (ALL_FILETABS): Use compunit_filetabs.
14487 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14488 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14489
5accd1a0
TT
144902019-01-09 Tom Tromey <tom@tromey.com>
14491
14492 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14493 (compunit_filetabs): New.
14494 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14495 compunit_filetabs.
14496 (info_sources_command, make_source_files_completion_list): Remove
14497 declaration.
14498 * symmisc.c (print_objfile_statistics, dump_objfile)
14499 (maintenance_print_symbols): Remove declaration.
14500 (maintenance_info_symtabs): Use compunit_filetabs.
14501 (maintenance_info_line_tables): Likewise.
14502 * source.c (select_source_symtab): Change local variable name.
14503 (forget_cached_source_info_for_objfile): Remove declaration.
14504 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14505 * objfiles.c (objfile_relocate1): Remove declaration.
14506 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14507 declaration.
14508 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14509 * coffread.c (coff_symtab_read): Remove declaration.
14510 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14511 compunit_filetabs.
14512
d8aeb77f
TT
145132019-01-09 Tom Tromey <tom@tromey.com>
14514
14515 * symtab.c (lookup_objfile_from_block)
14516 (find_pc_sect_compunit_symtab, search_symbols)
14517 (default_collect_symbol_completion_matches_break_on): Use
14518 objfile_compunits.
14519 * objfiles.h (ALL_COMPUNITS): Remove.
14520 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14521 * cp-support.c (add_symbol_overload_list_qualified): Use
14522 objfile_compunits.
14523 * ada-lang.c (ada_collect_symbol_completion_matches)
14524 (ada_add_global_exceptions): Use objfile_compunits.
14525
592553c4
TT
145262019-01-09 Tom Tromey <tom@tromey.com>
14527
14528 * source.c (select_source_symtab)
14529 (forget_cached_source_info_for_objfile): Remove declaration.
14530 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14531 declaration.
14532 * maint.c (count_symtabs_and_blocks): Remove declaration.
14533 * cp-support.c (add_symbol_overload_list_qualified): Remove
14534 declaration.
14535 * coffread.c (coff_symtab_read): Remove declaration.
14536 * symtab.c (lookup_symbol_in_objfile_symtabs)
14537 (basic_lookup_transparent_type_1): Use objfile_compunits.
14538 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14539 (info_sources_command, search_symbols)
14540 (default_collect_symbol_completion_matches_break_on)
14541 (make_source_files_completion_list): Remove declaration.
14542 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14543 (ada_collect_symbol_completion_matches)
14544 (ada_add_global_exceptions): Remove declaration.
14545 * linespec.c (iterate_over_all_matching_symtabs): Use
14546 objfile_compunits.
14547 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14548 (class objfile_compunits): New.
14549 (ALL_COMPUNITS): Use objfile_compunits.
14550 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14551 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14552 objfile_compunits.
14553 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14554
5325b9bf
TT
145552019-01-09 Tom Tromey <tom@tromey.com>
14556
14557 * symtab.c (search_symbols)
14558 (default_collect_symbol_completion_matches_break_on): Use
14559 objfile_msymbols.
14560 * ada-lang.c (ada_lookup_simple_minsym)
14561 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14562 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14563 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14564 objfile_msymbols.
14565 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14566 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14567 * objc-lang.c (find_methods): Use objfile_msymbols.
14568 (info_selectors_command, info_classes_command): Likewise.
14569 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14570 * objfiles.h (class objfile_msymbols): New.
14571 (ALL_OBJFILE_MSYMBOLS): Remove.
14572 (ALL_MSYMBOLS): Remove.
14573
cac85af2
TT
145742019-01-09 Tom Tromey <tom@tromey.com>
14575
14576 * common/next-iterator.h (next_adapter): Add Iterator template
14577 parameter.
14578 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14579 (class all_objfiles_safe): New.
14580 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14581 * objfiles.c (put_objfile_before): Update comment.
14582 (add_separate_debug_objfile): Likewise.
14583 (free_all_objfiles): Use all_objfiles_safe.
14584 (objfile_purge_solibs): Likewise.
14585
aed57c53
TT
145862019-01-09 Tom Tromey <tom@tromey.com>
14587
14588 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14589 (expand_symtab_containing_pc, lookup_static_symbol)
14590 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14591 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14592 all_objfiles.
14593 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14594 * breakpoint.c (create_overlay_event_breakpoint)
14595 (create_longjmp_master_breakpoint)
14596 (create_std_terminate_master_breakpoint)
14597 (create_exception_master_breakpoint): Use all_objfiles.
14598 * linux-thread-db.c (try_thread_db_load_from_pdir)
14599 (has_libpthread): Use all_objfiles.
14600 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14601 * linespec.c (iterate_over_all_matching_symtabs)
14602 (search_minsyms_for_name): Use all_objfiles.
14603 * maint.c (maintenance_info_sections): Use all_objfiles.
14604 * main.c (captured_main_1): Use all_objfiles.
14605 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14606 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14607 * guile/scm-pretty-print.c
14608 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14609 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14610 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14611 (maintenance_print_msymbols): Use all_objfiles.
14612 * source.c (select_source_symtab): Use all_objfiles.
14613 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14614 * symfile.c (remove_symbol_file_command)
14615 (expand_symtabs_matching, map_symbol_filenames): Use
14616 all_objfiles.
14617 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14618 all_objfiles.
14619 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14620 * objc-lang.c (find_methods): Use all_objfiles.
14621 * objfiles.c (have_partial_symbols, have_full_symbols)
14622 (have_minimal_symbols, qsort_cmp)
14623 (default_iterate_over_objfiles_in_search_order): Use
14624 all_objfiles.
14625 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14626 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14627 (maintenance_check_psymtabs): Use all_objfiles.
14628 (ALL_PSYMTABS): Remove.
14629 * compile/compile-object-run.c (do_module_cleanup): Use
14630 all_objfiles.
14631 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14632 * cp-support.c (add_symbol_overload_list_qualified): Use
14633 all_objfiles.
14634 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14635 Use all_objfiles.
14636 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14637 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14638 all_objfiles.
14639 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14640 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14641 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14642 Uses all_objfiles.
14643 * solib.c (solib_read_symbols): Use all_objfiles
14644
99d89cde
TT
146452019-01-09 Tom Tromey <tom@tromey.com>
14646
14647 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14648 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14649 all_objfiles.
14650 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14651 * symmisc.c (print_symbol_bcache_statistics)
14652 (print_objfile_statistics, maintenance_print_objfiles)
14653 (maintenance_info_symtabs, maintenance_check_symtabs)
14654 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14655 all_objfiles.
14656 * source.c (forget_cached_source_info): Use all_objfiles.
14657 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14658 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14659 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14660 * objfiles.c (update_section_map): Use all_objfiles.
14661 (shared_objfile_contains_address_p): Likewise.
14662 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14663 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14664
21708325
TT
146652019-01-09 Tom Tromey <tom@tromey.com>
14666
14667 * common/next-iterator.h: New file.
14668 * objfiles.h (class all_objfiles): New.
14669 (struct objfile_iterator): New.
14670
669e09f6
PW
146712019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14672
14673 * NEWS: Move the description of the changed "frame", "select-frame",
14674 and "info frame" commands to the Changed commands section.
14675
041be526
SM
146762019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14677
14678 * gdbtypes.c (check_stub_method_group): Remove handling of old
14679 mangling schemes.
14680 * linespec.c (find_methods): Likewise.
14681 * stabsread.c (read_member_functions): Likewise.
14682 * valops.c (search_struct_method): Likewise.
14683 (value_struct_elt_for_reference): Likewise.
14684 * NEWS: Mention this change.
14685
0e2a2133
AB
146862019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14687
14688 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14689 print_source_lines.
14690 * source.c (print_source_lines_base): Update line number check.
14691 (print_source_lines): New function.
14692 (source_lines_range::source_lines_range): New function.
14693 * source.h (class source_lines_range): New class.
14694 (print_source_lines): New declaration.
14695
1055a3b4
PW
146962019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14697
14698 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14699
cfeadda5
TT
147002019-01-08 Tom Tromey <tom@tromey.com>
14701 Simon Marchi <simon.marchi@ericsson.com>
14702
14703 PR gdb/24060
14704 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14705 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14706 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14707 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14708 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14709 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14710
583068ca
AB
147112019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14712
14713 * source.c (select_source_symtab): Move header comment to
14714 declaration in source.h.
14715 (forget_cached_source_info_for_objfile): Likewise.
14716 (forget_cached_source_info): Likewise.
14717 (identify_source_line): Likewise.
14718 * source.h (identify_source_line): Move declaration from symtab.h
14719 and add comment from source.c
14720 (print_source_lines): Likewise.
14721 (forget_cached_source_info_for_objfile): Likewise.
14722 (forget_cached_source_info): Likewise.
14723 (select_source_symtab): Likewise.
14724 (enum print_source_lines_flag): Move definition from symtab.h.
14725 * symtab.h (identify_source_line): Move declaration to source.h.
14726 (print_source_lines): Likewise.
14727 (forget_cached_source_info_for_objfile): Likewise.
14728 (forget_cached_source_info): Likewise.
14729 (select_source_symtab): Likewise.
14730 (enum print_source_lines_flag): Move definition to source.h.
14731 * tui/tui-hooks.c: Add 'source.h' include.
14732
ec98a4ad
AB
147332019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14734
14735 * source.c (print_source_lines_base): Handle requests to print
14736 reverse line number sequences, and guard against empty lines
14737 string.
14738
62ea19c1
AB
147392019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14740
14741 * source.c (print_source_lines_base): Fix skip of '\r' if next
14742 character is '\n'.
14743
9d30e1fd
TT
147442019-01-06 Tom Tromey <tom@tromey.com>
14745
14746 * c-exp.y (struct c_parse_state) <macro_original_text,
14747 expansion_obstack>: New member.
14748 (macro_original_text, expansion_obstack): Remove globals.
14749 (scan_macro_expansion, scanning_macro_expansion)
14750 (finished_macro_expansion): Update.
14751 (scan_macro_cleanup): Remove.
14752 (yylex, c_parse): Update.
14753
c65bac38
TT
147542019-01-06 Tom Tromey <tom@tromey.com>
14755
14756 * c-exp.y (struct c_parse_state) <strings>: New member.
14757 (operator_stoken): Update.
14758
02e12e38
TT
147592019-01-06 Tom Tromey <tom@tromey.com>
14760
14761 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14762 (union type_stack_elt) <typelist_val>: Now a pointer to
14763 std::vector.
14764 (type_stack_cleanup): Don't declare.
14765 (push_typelist): Update.
14766 * parse.c (pop_typelist): Return a std::vector.
14767 (push_typelist): Take a std::vector.
14768 (follow_types): Update. Do not free args.
14769 (type_stack_cleanup): Remove.
14770 * c-exp.y (struct c_parse_state): New.
14771 (cpstate): New global.
14772 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14773 (nonempty_typelist): Update.
14774 (func_mod): Create a new vector.
14775 (c_parse): Create a c_parse_state.
14776 (check_parameter_typelist): Do not delete params.
14777 (function_method): Update. Do not delete type_list.
14778
f097f5ad
TT
147792019-01-06 Tom Tromey <tom@tromey.com>
14780
14781 PR gdb/28155:
14782 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14783 check_typedef.
14784 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14785 (print_return_value): Likewise.
14786
d2adf9f1
TT
147872019-01-05 Tom Tromey <tom@tromey.com>
14788
14789 * contrib/cleanup_check.py: Remove.
14790 * contrib/gcc-with-excheck: Remove.
14791 * contrib/exsummary.py: Remove.
14792 * contrib/excheck.py: Remove.
14793
2eab46b1
JB
147942019-01-05 Joel Brobecker <brobecker@adacore.com>
14795
14796 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14797 NULL. Initialize tpprev to NULL instead of assigning it
14798 to NULL on the next statement.
14799 * windows-nat.c (windows_delete_thread): Remove check for
14800 main_thread_id before printing thread exit notifications.
14801 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14802 Remove thread ID check against main_thread_id.
14803 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14804 windows_delete_thread.
14805 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14806
48c5e7e2
TT
148072019-01-04 Tom Tromey <tom@tromey.com>
14808
14809 * compile/compile.c (_initialize_compile): Use upper case for
14810 metasyntactic variables.
14811 * symmisc.c (_initialize_symmisc): Use upper case for
14812 metasyntactic variables.
14813 * psymtab.c (_initialize_psymtab): Use upper case for
14814 metasyntactic variables.
14815 * demangle.c (demangle_command): Use upper case for metasyntactic
14816 variables.
14817 (_initialize_demangler): Likewise.
14818 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14819 variables.
14820
986041cd
TT
148212019-01-03 Tom Tromey <tom@tromey.com>
14822
14823 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14824
7c711119
TT
148252019-01-03 Tom Tromey <tom@tromey.com>
14826
14827 * python/py-symtab.c (salpy_str): Update.
14828 (struct salpy_sal_object) <symtab>: Now a PyObject.
14829 (salpy_dealloc): Update.
14830 (del_objfile_sal): Use gdbpy_ref.
14831
1b20edf0
TT
148322019-01-03 Tom Tromey <tom@tromey.com>
14833
14834 * python/py-type.c (convert_field): Use new_reference. Return
14835 gdbpy_ref.
14836 (make_fielditem): Return gdbpy_ref.
14837 (typy_fields): Update.
14838 (typy_getitem): Update.
14839 (field_name): Return gdbpy_ref. Use new_reference.
14840 (typy_iterator_iternext): Update.
14841
ea41325b
TT
148422019-01-03 Tom Tromey <tom@tromey.com>
14843
14844 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14845
2a3c71d6
TT
148462019-01-03 Tom Tromey <tom@tromey.com>
14847
14848 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14849 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14850 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14851 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14852 (pspy_set_type_printers): Likewise.
14853 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14854 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14855 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14856 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14857 (objfpy_set_type_printers): Likewise.
14858
5c329e6a
TT
148592019-01-03 Tom Tromey <tom@tromey.com>
14860
14861 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14862 (gdbpy_print_stack): Use gdbpy_err_fetch.
14863 * python/python-internal.h (class gdbpy_err_fetch): New class.
14864 (class gdbpy_enter) <m_error_type, m_error_value,
14865 m_error_traceback>: Remove.
14866 <m_error>: New member.
14867 (gdbpy_exception_to_string): Don't declare.
14868 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14869 * python/py-value.c (convert_value_from_python): Use
14870 gdbpy_err_fetch.
14871 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14872 gdbpy_exception_to_string.
14873 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14874 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14875 gdbpy_err_fetch.
14876
169bb27b
AB
148772019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14878
14879 * linux-nat.c (delete_lwp_cleanup): Delete.
14880 (struct lwp_deleter): New struct.
14881 (lwp_info_up): New typedef.
14882 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14883 lwp_info_up.
14884
a07c8880
AB
148852019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14886
14887 * linux-fork.c (class scoped_switch_fork_info): New class.
14888 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14889
26089c49
AB
148902019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14891
14892 * valops.c (find_overload_match): Remove use of null_cleanup, and
14893 calls to do_cleanups.
14894
06d3e5b0
AB
148952019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14896
14897 * compile/compile-cplus-types.c
14898 (compile_cplus_instance::decl_name): Handle changes to
14899 cp_func_name.
14900 * cp-support.c (cp_func_name): Update header comment, update
14901 return type.
14902 * cp-support.h (cp_func_name): Update return type in declaration.
14903 * valops.c (find_overload_match): Move temp_func local to top
14904 level of function and change its type. Use temp_func to hold and
14905 delete temporary string obtained from cp_func_name.
14906
66644cd3
AB
149072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14908
14909 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14910 gdb::char_vector, remove cleanup, and update uses of `msg`.
14911
592d8c0a
JW
149122019-01-03 Jim Wilson <jimw@sifive.com>
14913
14914 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14915
c55d06ec
TT
149162019-01-02 Tom Tromey <tom@tromey.com>
14917
14918 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14919 (tdesc_parse_xml): Remove cleanups.
14920 * target-descriptions.h (make_cleanup_free_target_description):
14921 Don't declare.
14922 (target_desc_deleter): New struct.
14923 (target_desc_up): New typedef.
14924 * target-descriptions.c (target_desc_deleter::operator()): Rename
14925 from free_target_description.
14926 (make_cleanup_free_target_description): Remove.
14927
3a6ae42d
TT
149282019-01-02 Tom Tromey <tom@tromey.com>
14929
14930 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14931 constructor, destructor.
14932 (linespec_parser): Remove typedef.
14933 (~linespec_parser): Rename from linespec_parser_delete.
14934 (linespec_lex_to_end, linespec_complete_label)
14935 (linespec_complete): Update.
14936 (decode_line_full): Remove cleanups.
14937 (decode_line_1): Update.
14938
61fd3e73
TT
149392019-01-02 Tom Tromey <tom@tromey.com>
14940
14941 * python/python-internal.h (inferior_to_inferior_object): Change
14942 return type.
14943 * python/py-exitedevent.c (create_exited_event_object): Update.
14944 * python/py-inferior.c (inferior_to_inferior_object): Return
14945 gdbpy_ref.
14946 (python_new_inferior, python_inferior_deleted)
14947 (thread_to_thread_object, delete_thread_object)
14948 (build_inferior_list, gdbpy_selected_inferior): Update.
14949 * python/py-infthread.c (create_thread_object): Update. Also fail
14950 if inferior_to_inferior_object fails.
14951
d20172fc
SM
149522019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14953
14954 * inferior.h (class inferior) <displaced_step_state>: New field.
14955 * infrun.h (struct displaced_step_state): Move here from
14956 infrun.c. Initialize fields, add constructor.
14957 <inf>: Remove field.
14958 <reset>: New method.
14959 * infrun.c (struct displaced_step_inferior_state): Move to
14960 infrun.h.
14961 (displaced_step_inferior_states): Remove.
14962 (get_displaced_stepping_state): Adust.
14963 (displaced_step_in_progress_any_inferior): Adjust.
14964 (displaced_step_in_progress_thread): Adjust.
14965 (displaced_step_in_progress): Adjust.
14966 (add_displaced_stepping_state): Remove.
14967 (get_displaced_step_closure_by_addr): Adjust.
14968 (remove_displaced_stepping_state): Remove.
14969 (infrun_inferior_exit): Call displaced_step_state.reset.
14970 (use_displaced_stepping): Don't check for NULL.
14971 (displaced_step_prepare_throw): Call
14972 get_displaced_stepping_state.
14973 (displaced_step_fixup): Don't check for NULL.
14974 (prepare_for_detach): Don't check for NULL.
14975
e3319240
PW
149762019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14977
14978 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14979 in case of call that did not complete.
14980
5d36dfb9
AU
149812019-01-02 Andrey Utkin <autkin@undo.io>
14982
14983 * symfile.c (find_separate_debug_file): Fix search of debug files for
14984 remote debuggee.
14985
8833fbf0
TT
149862019-01-02 Tom Tromey <tom@tromey.com>
14987
14988 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14989 indentation.
14990 * python/py-frame.c (frapy_older): Remove cast.
14991 (frapy_newer): Likewise.
14992 * python/py-breakpoint.c (local_setattro): Remove cast.
14993 * python/py-arch.c (archpy_name): Remove local variable.
14994 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14995
4ada3dfd
JB
149962019-01-02 Joel Brobecker <brobecker@adacore.com>
14997
14998 * unittests/basic_string_view/element_access/char/empty.cc:
14999 Fix year range in copyright header.
15000
113b7b81
AB
150012019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15002
15003 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15004 Delete.
15005 <operator==>: Update with for removed field.
15006 <hash>: Likewise.
15007 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15008 <isa_features>: ...this.
15009 <abi_features>: New field.
15010 (riscv_isa_flen): Update comment.
15011 (riscv_abi_xlen): New declaration.
15012 (riscv_abi_flen): New declaration.
15013 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15014 isa_features.
15015 (riscv_abi_xlen): New function.
15016 (riscv_isa_flen): Update to get answer from isa_features.
15017 (riscv_abi_flen): New function.
15018 (riscv_has_fp_abi): Update to get answer from abi_features.
15019 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15020 xlen and flen.
15021 (riscv_call_info) <xlen, flen>: Update comment.
15022 (riscv_call_arg_struct): Remove invalid assertions
15023 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15024 is removed.
15025 (riscv_gdbarch_init): Gather isa features and abi features
15026 separately, ensure both match on the gdbarch when reusing an old
15027 gdbarch. Relax an error check to allow 32-bit abi float to run on
15028 a target with 64-bit float hardware.
15029
b18ca514
PW
150302019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15031
15032 * source.c (search_command_helper): Stop reverse search
15033 when line 1 has been searched.
15034
ec70d8db
PW
150352019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15036
15037 * record-full.c (record_full_base_target::close): Rewrite
15038 record_full_core_buf_list free logic.
15039
5b38f9c1
PW
150402019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15041
15042 * break-catch-syscall.c (print_one_catch_syscall): xfree
15043 the last text.
15044
66d91b39
JB
150452019-01-01 Joel Brobecker <brobecker@adacore.com>
15046
15047 * top.c (print_gdb_version): Update Copyright year in version
15048 message.
15049
42a4f53d
JB
150502019-01-01 Joel Brobecker <brobecker@adacore.com>
15051
15052 Update copyright year range in all GDB files.
15053
7e955d83 150542019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15055
5bbd631d 15056 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15057
5bbd631d 15058For older changes see ChangeLog-2018.
c906108c
SS
15059\f
15060Local Variables:
15061mode: change-log
15062left-margin: 8
15063fill-column: 74
15064version-control: never
57da7796 15065coding: utf-8
c906108c 15066End:
5bbd631d 15067
This page took 2.963066 seconds and 4 git commands to generate.