5175ebcc2566e08832d34fbb7667aacc10ea03d5
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
4 and DW_AT_deleted attributes of a function.
5 (read_structure_type): Read the DW_AT_calling_convention attribute
6 of a type.
7 (is_valid_DW_AT_defaulted): New function.
8 (is_valid_DW_AT_calling_convention_for_type): New function.
9 * gdbtypes.h: Include dwarf2.h.
10 (struct fn_field)<defaulted>: New field to store the
11 DW_AT_defaulted attribute.
12 (struct fn_field)<is_deleted>: New field to store the
13 DW_AT_deleted attribute.
14 (struct cplus_struct_type)<calling_convention>: New field to store
15 the DW_AT_calling_convention attribute.
16 (TYPE_FN_FIELD_DEFAULTED): New macro.
17 (TYPE_FN_FIELD_DELETED): New macro.
18 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
19 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
20 to the .h file.
21 (print_cplus_stuff): Likewise.
22
23 2019-12-20 Tom Tromey <tom@tromey.com>
24
25 * tui/tui.c (tui_show_source): Remove.
26 * tui/tui.h (tui_show_source): Don't declare.
27 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
28 tui_show_source.
29
30 2019-12-20 Tom Tromey <tom@tromey.com>
31
32 * tui/tui-stack.h (tui_show_frame_info): Return bool.
33 * tui/tui-stack.c (tui_show_frame_info): Return bool.
34 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
35 Update.
36
37 2019-12-20 Tom Tromey <tom@tromey.com>
38
39 PR tui/18932:
40 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
41 Rename parameters. Handle the not-from-stack-frame case.
42 (from_stack, from_source_symtab): New globals.
43 (tui_before_prompt, tui_normal_stop): Update.
44 (tui_context_changed, tui_symtab_changed): New functions.
45 (tui_attach_detach_observers): Attach new observers.
46
47 2019-12-20 Tom Tromey <tom@tromey.com>
48
49 * source.c (struct current_source_location) <set, symtab, line>:
50 New methods.
51 <m_symtab, m_line>: Rename. Now private.
52 (get_current_source_symtab_and_line)
53 (set_default_source_symtab_and_line)
54 (set_current_source_symtab_and_line)
55 (clear_current_source_symtab_and_line, select_source_symtab)
56 (info_source_command, print_source_lines_base)
57 (info_line_command, search_command_helper): Update.
58 * observable.h (current_source_symtab_and_line_changed): Declare
59 observable.
60 * observable.c (current_source_symtab_and_line_changed): Define
61 observable.
62
63 2019-12-20 Tom Tromey <tom@tromey.com>
64
65 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
66 (tui_before_prompt, tui_normal_stop): Update.
67
68 2019-12-20 Tom Tromey <tom@tromey.com>
69
70 * tui/tui-winsource.c
71 (tui_source_window_base::update_source_window_as_is): Don't call
72 set_current_source_symtab_and_line.
73
74 2019-12-20 Tom Tromey <tom@tromey.com>
75
76 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
77 Take a symtab_and_line.
78 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
79 symtab_and_line.
80 (tui_show_frame_info): Update.
81
82 2019-12-20 Tom Tromey <tom@tromey.com>
83
84 * tui/tui-stack.c (tui_show_frame_info): Don't call
85 update_exec_info.
86
87 2019-12-20 Tom Tromey <tom@tromey.com>
88
89 * tui/tui.c (tui_enable): Call tui_display_main.
90
91 2019-12-20 Tom Tromey <tom@tromey.com>
92
93 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
94 get_current_source_symtab_and_line, and main_name.
95
96 2019-12-20 Tom Tromey <tom@tromey.com>
97
98 * tui/tui.c (tui_show_source): Update.
99 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
100 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
101 a symtab_symbol_info, not a separate symtab and line. Simplify.
102
103 2019-12-20 Tom Tromey <tom@tromey.com>
104
105 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
106 Simplify.
107
108 2019-12-20 Tom Tromey <tom@tromey.com>
109
110 * tui/tui-winsource.h (struct tui_source_window_base)
111 <set_contents, update_source_window_as_is, update_source_window>:
112 Take a sal, not a separate symtab and tui_line_or_address.
113 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
114 (tui_source_window_base::update_source_window_as_is): Take a sal,
115 not a separate symtab and tui_line_or_address.
116 (tui_update_source_windows_with_addr)
117 (tui_update_source_windows_with_line)
118 (tui_source_window_base::rerender)
119 (tui_source_window_base::refill): Update.
120 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
121 a sal, not a separate symtab and tui_line_or_address.
122 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
123 not a separate symtab and tui_line_or_address.
124 (tui_source_window::maybe_update): Update.
125 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
126 a sal, not a separate symtab and tui_line_or_address.
127 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
128 not a separate symtab and tui_line_or_address.
129 (tui_disasm_window::do_scroll_vertical)
130 (tui_disasm_window::maybe_update): Update.
131
132 2019-12-20 Tom Tromey <tom@tromey.com>
133
134 * tui/tui-winsource.c (tui_source_window_base::refill): Use
135 start_line_or_addr.
136 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
137 start_line_or_addr.
138 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
139 start_line_or_addr.
140
141 2019-12-20 Tom Tromey <tom@tromey.com>
142
143 * tui/tui-winsource.h (struct tui_source_window_base)
144 <set_contents>: Return bool.
145 * tui/tui-winsource.c
146 (tui_source_window_base::update_source_window_as_is): Update.
147 * tui/tui-source.h (struct tui_source_window) <set_contents>:
148 Return bool.
149 * tui/tui-source.c (tui_source_window::set_contents): Return
150 bool. Simplify.
151 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
152 Return bool.
153 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
154 bool.
155
156 2019-12-20 Tom Tromey <tom@tromey.com>
157
158 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
159 (tui_update_source_windows_with_line): Call update_source_window.
160 * tui/tui-source.h (struct tui_source_window)
161 <show_symtab_source>: Don't declare.
162 * tui/tui-source.c (tui_source_window::show_symtab_source):
163 Remove.
164
165 2019-12-20 Tom Tromey <tom@tromey.com>
166
167 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
168 update_source_window directly.
169 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
170 * tui/tui-disasm.c (tui_show_disassem): Remove.
171
172 2019-12-20 Tom Tromey <tom@tromey.com>
173
174 * tui/tui-winsource.c
175 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
176 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
177
178 2019-12-20 Tom Tromey <tom@tromey.com>
179
180 * tui/tui-winsource.h (struct tui_source_window_base)
181 <maybe_update>: Remove line_no and addr parameters.
182 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
183 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
184 Update.
185 * tui/tui-source.c (tui_source_window::maybe_update): Remove
186 line_no and addr parameters.
187 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
188 Update.
189 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
190 line_no and addr parameters.
191
192 2019-12-20 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
195 (tui_source_window_base::update_breakpoint_info): Remove asserts.
196
197 2019-12-20 Tom Tromey <tom@tromey.com>
198
199 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
200 tui_show_disassem.
201 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
202 declare.
203 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
204
205 2019-12-20 Tom Tromey <tom@tromey.com>
206
207 * tui/tui.h (tui_show_source): Remove parameters.
208 * tui/tui.c (tui_show_source): Remove parameters.
209 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
210
211 2019-12-20 Tom Tromey <tom@tromey.com>
212
213 * tui/tui.c (tui_show_source): Update.
214 * tui/tui-winsource.c (tui_display_main): Update.
215 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
216 to symtab.
217 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
218 to symtab.
219 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
220
221 2019-12-20 Tom Tromey <tom@tromey.com>
222
223 PR tui/23619:
224 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
225 (tui_redisplay_readline): Use rl_display_prompt.
226 (tui_prep_terminal): Update.
227
228 2019-12-19 Christian Biesinger <cbiesinger@google.com>
229
230 * configure: Regenerate.
231 * configure.ac: Quote variable arguments of test.
232 * gdbsupport/common.m4: Likewise.
233
234 2019-12-19 Christian Biesinger <cbiesinger@google.com>
235
236 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
237 2 to pow ().
238
239 2019-12-19 Christian Biesinger <cbiesinger@google.com>
240
241 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
242 log10 to double to fix Solaris 11 with gcc 5.5.
243
244 2019-12-19 Christian Biesinger <cbiesinger@google.com>
245
246 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
247 "sun" to "saddr_un".
248
249 2019-12-19 Tom Tromey <tromey@adacore.com>
250
251 * ui-out.h (enum class field_kind): Fix comment.
252
253 2019-12-11 Tom Tromey <tromey@adacore.com>
254
255 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
256
257 2019-12-18 Tom Tromey <tromey@adacore.com>
258
259 PR build/25268:
260 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
261 type on macOS. Add comment.
262
263 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
264
265 * c-lang.c (c_get_string, asm_language_defn): Remove space
266 before tab.
267
268 2019-12-18 Tom Tromey <tromey@adacore.com>
269
270 PR build/25250:
271 * ui-out.c (ui_out::vmessage): Update.
272 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
273 Rename.
274 (string_field): Update.
275 (signed_field): Update.
276
277 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
278
279 * top.c (print_gdb_configuration): Adjust indentation.
280
281 2019-12-17 Christian Biesinger <cbiesinger@google.com>
282
283 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
284
285 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
286
287 * tui/tui-layout.h (class tui_layout_base): Add virtual
288 destructor.
289
290 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
291
292 * infcmd.c (prepare_one_step): Step over skipped inline functions.
293 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
294 (process_event_stop_test): Keep stepping over skipped inline functions.
295
296 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
297
298 * jit.c (struct gdb_block) <next>: Remove field.
299 (struct gdb_symtab) <~gdb_symtab>: Remove.
300 <blocks>: Change type to std::forward_list<gdb_block>.
301 (compare_block): Remove.
302 (jit_block_open_impl): Adjust to std::forward_list. Place the new
303 block at the beginning, don't mind about sorting.
304 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
305 before using it.
306
307 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * jit.c (struct gdb_block): Add constructor, initialize
310 real_block and next fields.
311 <name>: Change type to gdb::unique_xmalloc_ptr.
312 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
313 (jit_block_open_impl): Allocate gdb_block with new.
314 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
315
316 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * jit.c: Include forward_list.
319 (struct gdb_symtab) <next>: Remove field.
320 (struct gdb_object) <symtabs>: Change type to
321 std::forward_list<gdb_symtab>.
322 (jit_object_open_impl): Allocate gdb_object with new.
323 (jit_symtab_open_impl): Adjust to std::forward_list.
324 (finalize_symtab): Don't delete symtab.
325 (jit_object_close_impl): Adjust to std::forward_list. Free
326 gdb_object with delete.
327
328 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * jit.c (struct gdb_symtab): Add constructor, destructor,
331 initialize fields.
332 <linetable>: Change type to unique_xmalloc_ptr.
333 <file_name>: Change type to std::string.
334 (jit_symtab_open_impl): Allocate gdb_symtab with new.
335 (jit_symtab_line_mapping_add_impl): Adjust.
336 (finalize_symtab): Adjust, call delete on stab.
337
338 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
341
342 2019-12-16 Tom Tromey <tromey@adacore.com>
343
344 * windows-nat.c (windows_nat_target::attach): Update.
345 * remote.c (extended_remote_target::attach): Update.
346 * procfs.c (procfs_target::attach): Update.
347 * nto-procfs.c (nto_procfs_target::attach): Update.
348 (nto_procfs_target::create_inferior): Update.
349 * inf-ptrace.c (inf_ptrace_target::attach): Update.
350 * gnu-nat.c (gnu_nat_target::attach): Update.
351 (gnu_nat_target::detach): Update.
352 * darwin-nat.c (darwin_nat_target::attach): Update.
353 * corefile.c (get_exec_file): Constify result. Remove extraneous
354 return.
355 * bsd-kvm.c (bsd_kvm_target_open): Update.
356 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
357
358 2019-12-16 Christian Biesinger <cbiesinger@google.com>
359
360 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
361 (we no longer need to include time.h before pathmax.h)
362
363 2019-12-15 Christian Biesinger <cbiesinger@google.com>
364
365 * ada-exp.y (write_ambiguous_var): Update.
366 * coffread.c (process_coff_symbol): Update.
367 * ctfread.c (ctf_add_enum_member_cb): Update.
368 (new_symbol): Update.
369 * dwarf2read.c (fixup_go_packaging): Update.
370 (new_symbol): Update.
371 * language.c (language_alloc_type_symbol): Update.
372 * mdebugread.c (new_symbol): Update.
373 * minsyms.c (minimal_symbol_reader::record_full): Update.
374 * psymtab.c (add_psymbol_to_bcache): Update.
375 * stabsread.c (define_symbol): Update.
376 (read_enum_type): Update.
377 * symtab.c (symbol_set_language): Make this a member function...
378 (general_symbol_info::set_language): ... here.
379 * symtab.h (struct general_symbol_info) <set_language>: New function.
380 (SYMBOL_SET_LANGUAGE): Remove.
381 (symbol_set_language): Remove.
382
383 2019-12-15 Christian Biesinger <cbiesinger@google.com>
384
385 * ada-lang.c (ada_add_block_symbols): Update.
386 (ada_collect_symbol_completion_matches): Update.
387 * ax-gdb.c (gen_expr): Update.
388 * block.c (block_lookup_symbol): Update.
389 (block_lookup_symbol_primary): Update.
390 (block_find_symbol): Update.
391 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
392 * dbxread.c (process_one_symbol): Update.
393 * dictionary.c (insert_symbol_hashed): Update.
394 (collate_pending_symbols_by_language): Update.
395 (mdict_add_symbol): Update.
396 * dwarf-index-write.c (write_psymbols): Update.
397 * dwarf2read.c (fixup_go_packaging): Update.
398 * findvar.c (read_var_value): Update.
399 * ft32-tdep.c (ft32_skip_prologue): Update.
400 * go-lang.c (go_symbol_package_name): Update.
401 * language.h (scoped_switch_to_sym_language_if_auto::
402 scoped_switch_to_sym_language_if_auto): Update.
403 * linespec.c (find_method): Update.
404 (find_label_symbols_in_block): Update.
405 * mdebugread.c (parse_symbol): Update.
406 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
407 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
408 (minimal_symbol_reader::install): Update.
409 * moxie-tdep.c (moxie_skip_prologue): Update.
410 * parse.c (parse_exp_in_context): Update.
411 * psymtab.c (psymbol_name_matches): Update.
412 (match_partial_symbol): Update.
413 (lookup_partial_symbol): Update.
414 (psymbol_hash): Update.
415 (psymbol_compare): Update.
416 * python/py-framefilter.c (extract_sym): Update.
417 (py_print_single_arg): Update.
418 * stabsread.c (define_symbol): Update.
419 * stack.c (print_frame_arg): Update.
420 (find_frame_funname): Update.
421 (info_frame_command_core): Update.
422 * symfile.c (set_initial_language): Update.
423 * symtab.c (symbol_set_demangled_name): Update.
424 (symbol_get_demangled_name): Update.
425 (symbol_set_language): Update.
426 (symbol_find_demangled_name): Update.
427 (symbol_set_names): Update.
428 (general_symbol_info::natural_name): Update.
429 (general_symbol_info::demangled_name): Update.
430 (general_symbol_info::search_name): Update.
431 (symbol_matches_search_name): Update.
432 (eq_symbol_entry): Update.
433 (iterate_over_symbols): Update.
434 (completion_list_add_symbol): Update.
435 (completion_list_add_msymbol): Update.
436 (completion_list_add_fields): Update.
437 * symtab.h (struct general_symbol_info) <language>: New function.
438 <language>: Rename to...
439 <m_language>: ...this.
440 (SYMBOL_LANGUAGE): Remove.
441 (MSYMBOL_LANGUAGE): Remove.
442 (struct symbol) <ctor>: Update.
443 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
444
445 2019-12-15 Christian Biesinger <cbiesinger@google.com>
446
447 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
448 set the language of sym.
449 * language.c (language_alloc_type_symbol): Likewise.
450
451 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
452
453 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
454 PR gdb/23613
455 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
456 * corelow.c: Include 'gdbsupport/pathstuff.h'.
457 (core_target_open): Use 'gdb_abspath'.
458 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
459 'current_directory == NULL' case.
460 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
461 explain what happens when 'current_directory' is NULL.
462 * go32-nat.c (go32_nat_target::wait): Check if
463 'current_directory' is NULL before call to 'chdir'.
464 * source.c (add_path): Use 'gdb_abspath'.
465 * top.c: Include 'gdbsupport/pathstuff.h'.
466 (init_history): Use 'gdb_abspath'.
467 (set_history_filename): Likewise.
468 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
469 (tfile_target_open): Use 'gdb_abspath'.
470
471 2019-12-13 Tom Tromey <tromey@adacore.com>
472
473 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
474 warning or error.
475
476 2019-12-13 Tom Tromey <tromey@adacore.com>
477
478 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
479
480 2019-12-13 Tom Tromey <tromey@adacore.com>
481
482 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
483
484 2019-12-13 Tom Tromey <tromey@adacore.com>
485
486 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
487
488 2019-12-13 Tom Tromey <tromey@adacore.com>
489
490 * gdbsupport/common-utils.c (string_printf, string_vprintf)
491 (string_vappendf): Add ARI comment.
492
493 2019-12-13 Tom Tromey <tromey@adacore.com>
494
495 * contrib/ari/gdb_ari.sh: Remove "fix" call for
496 floatformat_to_double.
497 * target-float.c (host_float_ops<T>::from_target): Add ARI
498 comment.
499
500 2019-12-13 Tom Tromey <tromey@adacore.com>
501
502 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
503 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
504 ARI marker to abort.
505 * event-top.c (handle_sigsegv): Add ARI marker to abort.
506
507 2019-12-13 Tom Tromey <tromey@adacore.com>
508
509 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
510
511 2019-12-13 Tom Tromey <tromey@adacore.com>
512
513 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
514
515 2019-12-13 Tom Tromey <tromey@adacore.com>
516
517 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
518 checks.
519
520 2019-12-13 Tom Tromey <tromey@adacore.com>
521
522 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
523 end>: No longer "const".
524
525 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
526
527 * jit.c: Fix indentation, replace spaces with tabs where
528 applicable.
529
530 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
531
532 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
533
534 2019-12-12 Tom Tromey <tom@tromey.com>
535
536 * objfiles.h (struct objfile) <partial_symtabs>: Now a
537 unique_ptr.
538
539 2019-12-12 Tom Tromey <tom@tromey.com>
540
541 * progspace.h (objfile_list): New typedef.
542 (class unwrapping_objfile_iterator)
543 (struct unwrapping_objfile_range): Newl
544 (struct program_space) <objfiles_range>: Change type.
545 <objfiles>: Change return type.
546 <add_objfile>: Change type of "objfile" parameter.
547 <objfiles_list>: Now a list of shared_ptr.
548 * progspace.c (program_space::add_objfile): Change type of
549 "objfile". Update.
550 (program_space::remove_objfile): Update.
551 * objfiles.h (struct objfile) <~objfile>: Make public.
552 * objfiles.c (objfile::make): Update.
553 (objfile::unlink): Don't call delete.
554
555 2019-12-12 Tom Tromey <tom@tromey.com>
556
557 * symfile.c (symbol_file_clear): Update.
558 * progspace.h (struct program_space) <free_all_objfiles>: Declare
559 method.
560 * progspace.c (program_space::free_all_objfiles): New method.
561 * objfiles.h (free_all_objfiles): Don't declare.
562 * objfiles.c (free_all_objfiles): Move to program_space.
563
564 2019-12-12 Tom Tromey <tom@tromey.com>
565
566 * progspace.c (program_space::add_objfile)
567 (program_space::remove_objfile): Update.
568 (program_space::multi_objfile_p): Remove.
569 * objfiles.h (struct objfile) <next>: Remove.
570 * objfiles.c (objfile::objfile): Update.
571 (put_objfile_before): Update.
572 (unlink_objfile): Update.
573 * progspace.h (object_files): Remove.
574 (struct program_space) <objfiles_head>: Remove.
575 <objfiles_list>: New member.
576 <objfiles_range, objfiles_safe_range>: Change type.
577 (objfiles): Change return type.
578 (objfiles_safe): Update.
579 (multi_objfile_p): Rewrite and inline.
580 (object_files): Remove macro.
581
582 2019-12-12 Tom Tromey <tom@tromey.com>
583
584 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
585 second constructor.
586 (basic_safe_range): New class.
587
588 2019-12-12 Tom Tromey <tom@tromey.com>
589
590 * progspace.c (program_space::multi_objfile_p): New method.
591 * printcmd.c (info_symbol_command): Update.
592 * maint.c (maintenance_translate_address): Update.
593 * objfiles.h (MULTI_OBJFILE_P): Remove.
594 * progspace.h (struct program_space) <multi_objfile_p>: New
595 method.
596
597 2019-12-12 Tom Tromey <tom@tromey.com>
598
599 * progspace.h (struct program_space) <remove_objfile>: Declare.
600 * progspace.c (program_space::remove_objfile): New method.
601 * objfiles.c (unlink_objfile): Remove.
602 (objfile::unlink): Call remove_objfile.
603 (objfile): Don't call unlink_objfile.
604
605 2019-12-12 Tom Tromey <tom@tromey.com>
606
607 * progspace.h (struct program_space) <add_objfile>: Declare
608 method.
609 * progspace.c (program_space::add_objfile): New method.
610 * objfiles.c (~objfile): Don't unlink objfile.
611 (put_objfile_before): Remove.
612 (add_separate_debug_objfile): Don't call put_objfile_before.
613 (objfile::make): Call add_objfile. Set new_objfiles_available on
614 the per-program-space data.
615
616 2019-12-12 Tom Tromey <tom@tromey.com>
617
618 * symfile.c (syms_from_objfile_1): Use objfile_up.
619 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
620 method.
621 (reread_symbols): Use objfile_up.
622 * solib.c (update_solib_list, reload_shared_libraries_1): Call
623 unlink method.
624 * objfiles.h (struct objfile) <~objfile>: Now private.
625 <unlink>: New method.
626 (struct objfile_deleter): New.
627 (objfile_up): New typedef.
628 * objfiles.c (objfile::unlink): New method.
629 (free_objfile_separate_debug, free_all_objfiles)
630 (objfile_purge_solibs): Use it.
631 * jit.c (jit_unregister_code): Remove.
632 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
633 objfile.
634 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
635 objfile.
636 * compile/compile-object-load.c (compile_object_load): Use
637 objfile_up.
638
639 2019-12-12 Tom Tromey <tom@tromey.com>
640
641 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
642 objfile::make.
643 * objfiles.h (struct objjfile) <make>: No longer inline.
644 (add_separate_debug_objfile): Don't declare.
645 * objfiles.c (add_separate_debug_objfile): Now static.
646 (objfile::make): Move from objfiles.h. Call
647 add_separate_debug_objfile. Add "parent" parameter.
648
649 2019-12-12 Tom Tromey <tom@tromey.com>
650
651 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
652 * objfiles.h (struct objfile): Make constructor private.
653 <make>: New static method.
654 * jit.c (jit_object_close_impl): Update.
655
656 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
657
658 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
659 gdb::byte_vector.
660
661 2019-12-12 Tom Tromey <tromey@adacore.com>
662
663 * xml-support.c (xml_fetch_content_from_file): Don't call
664 malloc_failure.
665 * utils.h (class gdb_argv): Remove malloc_failure comment.
666 * utils.c (gdb_argv::reset): Don't call malloc_failure.
667
668 2019-12-12 Tom Tromey <tromey@adacore.com>
669
670 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
671 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
672 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
673 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
674 * riscv-ravenscar-thread.c: New file.
675 * riscv-ravenscar-thread.h: New file.
676 * riscv-tdep.c (riscv_gdbarch_init): Call
677 register_riscv_ravenscar_ops.
678
679 2019-12-12 Tom Tromey <tromey@adacore.com>
680
681 * gdbsupport/thread-pool.c (set_thread_name): Use
682 ATTRIBUTE_UNUSED.
683
684 2019-12-12 Luis Machado <luis.machado@linaro.org>
685
686 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
687 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
688 macros.
689
690 2019-12-11 Tom Tromey <tom@tromey.com>
691
692 * tui/tui-win.c (tui_set_win_height_command): Call
693 tui_adjust_window_height.
694 (tui_adjust_win_heights, new_height_ok): Remove.
695 * tui/tui-layout.h (tui_adjust_window_height): Declare.
696 * tui/tui-layout.c (tui_adjust_window_height): New function.
697
698 2019-12-11 Tom Tromey <tom@tromey.com>
699
700 * tui/tui-win.c (tui_resize_all): Remove code, call
701 tui_apply_current_layout.
702
703 2019-12-11 Tom Tromey <tom@tromey.com>
704
705 * tui/tui-layout.h (tui_apply_current_layout): Declare.
706 * tui/tui-layout.c (standard_layouts, applied_layout): New
707 globals.
708 (tui_apply_current_layout): New function.
709 (show_layout): Set applied_layout. Call
710 tui_apply_current_layout.
711 (show_source_command, show_disasm_command)
712 (show_source_disasm_command, show_data)
713 (show_source_or_disasm_and_command): Remove.
714 (initialize_layouts): New function.
715 (_initialize_tui_layout): Call initialize_layouts.
716
717 2019-12-11 Tom Tromey <tom@tromey.com>
718
719 * tui/tui-layout.h (class tui_layout_base)
720 (class tui_layout_window, class tui_layout_split): New.
721 * tui/tui-layout.c (tui_get_window_by_name)
722 (tui_layout_window::clone, tui_layout_window::apply)
723 (tui_layout_window::get_sizes, tui_layout_window::add_split)
724 (tui_layout_split::add_window, tui_layout_split::clone)
725 (tui_layout_split::get_sizes)
726 (tui_layout_split::set_weights_from_heights)
727 (tui_layout_split::adjust_size, tui_layout_split::apply): New
728 functions.
729 (tui_layout_split::add_split, tui_layout_split::add_split)
730 (tui_layout_split::set_weights_from_heights)
731 (tui_layout_split::set_weights_from_heights): New functions.
732
733 2019-12-11 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
736 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
737 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
738 * tui/tui-data.h (struct tui_point): Remove.
739 (struct tui_gen_win_info) <origin>: Remove.
740 <x, y>: New fields.
741 * tui/tui-command.c (tui_cmd_window::resize): Update.
742
743 2019-12-11 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
746 Implement.
747 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
748 Implement.
749 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
750 method.
751 (struct tui_win_info) <min_height>: Implement.
752
753 2019-12-11 Tom Tromey <tom@tromey.com>
754
755 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
756 (struct tui_win_info) <can_box>: Update.
757
758 2019-12-11 Tom Tromey <tom@tromey.com>
759
760 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
761 method.
762 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
763 method.
764 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
765 method.
766 (struct tui_win_info) <max_height>: Now override.
767
768 2019-12-11 Joel Brobecker <brobecker@adacore.com>
769
770 * NEWS: Create a new section for the next release branch.
771 Rename the section of the current branch, now that it has
772 been cut.
773
774 2019-12-11 Joel Brobecker <brobecker@adacore.com>
775
776 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
777 * version.in: Bump version to 10.0.50.DATE-git.
778
779 2019-12-11 Tom Tromey <tromey@adacore.com>
780
781 PR build/25268:
782 * gdbsupport/thread-pool.c (set_thread_name): New function.
783 (thread_pool::set_thread_count): Don't call pthread_setname_np.
784 (thread_pool::thread_function): Call set_thread_name.
785
786 2019-12-11 Tom Tromey <tromey@adacore.com>
787
788 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
789 bfd_get_signed_8.
790
791 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
792
793 * NEWS: Document -raw-values option and the related setting commands.
794 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
795 only set it on when /r is given.
796 * valprint.c (value_print_option_defs): New element raw-values.
797 * Makefile.in: Add the new file.
798
799 2019-12-10 Christian Biesinger <cbiesinger@google.com>
800
801 * gdbsupport/safe-strerror.c: Supress the unused function warning
802 for select_strerror_r.
803
804 2019-12-10 Christian Biesinger <cbiesinger@google.com>
805
806 * config.in: Regenerate.
807 * configure: Regenerate.
808 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
809 safe_strerror instead of strerror.
810 * gdbsupport/common.m4: Don't check for strerror.
811 * gdbsupport/safe-strerror.c: Support both the glibc version
812 of strerror_r and the XSI version.
813
814 2019-12-10 Tom Tromey <tromey@adacore.com>
815
816 * ada-typeprint.c (print_choices): Use a single "?".
817 (print_variant_part): Print "?" if the discriminant name
818 is not known.
819
820 2019-12-10 George Barrett <bob@bob131.so>
821
822 Fix scripted probe breakpoints.
823 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
824 declaration forward.
825 (breakpoint_ops_for_event_location_type)
826 (breakpoint_ops_for_event_location): Add function definitions.
827 (break_command_1, trace_command): Use
828 breakpoint_ops_for_event_location.
829 * breakpoint.h (breakpoint_ops_for_event_location): Add function
830 declarations.
831 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
832 breakpoint_ops_for_event_location.
833 * python/py-breakpoint.c (bppy_init): Use
834 breakpoint_ops_for_event_location.
835
836 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
837
838 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
839 when ranking an lvalue argument for an rvalue parameter.
840
841 2019-12-08 Wataru Ashihara <wataash@wataash.com>
842
843 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
844 template argument for scoped_restore_tmpl from bool to int.
845
846 2019-12-07 Keith Seitz <keiths@redhat.com>
847
848 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
849 (build_id_to_debug_bfd): Make static, rewriting to use
850 build_id_to_bfd_suffix.
851 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
852 adding `suffix' parameter. Append SUFFIX to file names
853 when searching for matching files.
854 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
855 (build_id_to_exec_bfd): Likewise.
856 * build-id.h (build_id_to_debug_bfd): Clarify that function
857 searches for BFD of debug info file.
858 (build_id_to_exec_bfd): Declare.
859 * corelow.c: Include build-id.h.
860 (locate_exec_from_corefile_build_id): New function.
861 (core_target_open): If no executable BFD is found,
862 search for a core file BFD using build-id.
863
864 2019-12-06 Christian Biesinger <cbiesinger@google.com>
865
866 * bcache.c: Put in namespace gdb.
867 * bcache.h: Likewise.
868 * gdbtypes.c (check_types_worklist): Update.
869 (types_deeply_equal): Update.
870 * macrotab.c (struct macro_table) <bcache>: Update.
871 (new_macro_table): Update.
872 * macrotab.h (struct bcache): Put this forward declaration
873 inside namespace gdb.
874 (new_macro_table): Update.
875 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
876 Update.
877 <macro_cache>: Update.
878 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
879
880 2019-12-06 Tom de Vries <tdevries@suse.de>
881
882 PR symtab/24971
883 * block.c (best_symbol, better_symbol): New function.
884 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
885 decl.
886
887 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
888
889 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
890 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
891 for ranking see-through reference cases.
892
893 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
894 * stack.c (faas_command): Check a command is provided.
895 * thread.c (taas_command, tfaas_command): Likewise.
896
897 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
898 * inferior.c (prune_inferiors): Only call delete_inferior,
899 Do not modify the inferior list.
900
901 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * c-exp.y: Update calls to lookup_typename,
904 lookup_signed_typename and lookup_unsigned_typename.
905 * c-lang.c (evaluate_subexp_c): Likewise.
906 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
907 Likewise.
908 * eval.c (binop_promote): Likewise.
909 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
910 (lookup_unsigned_typename): Likewise.
911 (lookup_signed_typename): Likewise.
912 * gdbtypes.h (lookup_unsigned_typename): Likewise.
913 (lookup_signed_typename): Likewise.
914 (lookup_typename): Likewise.
915 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
916 lookup_typename, lookup_signed_typename,
917 lookup_unsigned_typename.
918 * m2-exp.y: Likewise.
919 * printcmd.c (printf_wide_c_string): Likewise.
920 (ui_printf): Likewise.
921 * python/py-type.c (typy_lookup_typename): Likewise.
922 * python/py-xmethods.c (python_xmethod_worker::invoke):
923 Likewise.
924 * rust-exp.y: Likewise.
925
926 2019-12-04 Christian Biesinger <cbiesinger@google.com>
927
928 * configure.nat (obsd64): Add missing files x86-nat.o and
929 nat/x86-dregs.o.
930
931 2019-12-04 Tom Tromey <tom@tromey.com>
932
933 * valprint.c (val_print_string): Use metadata_style.
934 * go-valprint.c (print_go_string): Use metadata style.
935 * p-valprint.c (pascal_object_print_static_field): Use metadata
936 style.
937 * cp-valprint.c (cp_print_static_field): Use metadata style.
938
939 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
940 Chris January <chris.january@arm.com>
941
942 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
943 tokens.
944 (typebase): New patterns for complex, single/double precision, and
945 single/double complex.
946 (f77_keywords): Change token for complex keyword, and add single,
947 double, and precision keywords.
948
949 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
952 "info io_registers".
953
954 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * regcache.c (cooked_read_test): Initialize thread list of
957 mock_inferior.
958
959 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
960
961 * aarch64-linux-tdep.c: Remove includes.
962
963 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
964
965 * aarch64-tdep.c: Remove includes.
966
967 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
968
969 * filtered-iterator.h (filtered_iterator) <operator==,
970 operator!=>: Compare wrapped iterators, not wrapped pointers.
971 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
972 unittests/filtered_iterator-selftests.c.
973 * unittests/filtered_iterator-selftests.c: New file.
974
975 2019-12-04 Tom Tromey <tromey@adacore.com>
976
977 * gdbtypes.c (create_range_type): Inherit endianity
978 from base type.
979
980 2019-12-04 Tom Tromey <tromey@adacore.com>
981
982 * ada-lang.c (decode_constrained_packed_array)
983 (ada_value_assign, value_assign_to_component): Update.
984 * dwarf2loc.c (rw_pieced_value, access_memory)
985 (dwarf2_compile_expr_to_ax): Update.
986 * dwarf2read.c (dwarf2_add_field): Update.
987 * eval.c (evaluate_subexp_standard): Update.
988 * gdbarch.c, gdbarch.h: Rebuild.
989 * gdbarch.sh (bits_big_endian): Remove.
990 * gdbtypes.h (union field_location): Update comment.
991 * target-descriptions.c (make_gdb_type): Update.
992 * valarith.c (value_bit_index): Update.
993 * value.c (struct value) <bitpos>: Update comment.
994 (unpack_bits_as_long, modify_field): Update.
995 * value.h (value_bitpos): Update comment.
996
997 2019-12-04 Tom Tromey <tromey@adacore.com>
998
999 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1000 endian-ness.
1001
1002 2019-12-04 Tom Tromey <tromey@adacore.com>
1003
1004 * dwarf2read.c (dwarf2_init_float_type)
1005 (dwarf2_init_complex_target_type): Add byte_order parameter.
1006 (read_base_type): Compute byte order earlier.
1007 * gdbtypes.c (init_float_type): Add byte_order parameter.
1008 * gdbtypes.h (init_float_type): Add byte_order parameter.
1009
1010 2019-12-04 Tom Tromey <tromey@adacore.com>
1011
1012 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1013
1014 2019-12-04 Tom Tromey <tromey@adacore.com>
1015
1016 * dwarf2read.c (process_structure_scope): Initialize
1017 "discr_offset".
1018
1019 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1022 add it into the search spec.
1023 (parse_max_results_option): New function.
1024 (mi_info_functions_or_variables): Parse -max-results flag and pass
1025 it to mi_symbol_info.
1026 (mi_cmd_symbol_info_modules): Likewise.
1027 (mi_cmd_symbol_info_types): Likewise.
1028 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1029 return type to bool, change result container into a set, and don't
1030 add new results if we have enough already.
1031 (global_symbol_searcher::add_matching_msymbols): Change return
1032 type to bool, and don't add new results if we have enough already.
1033 (sort_search_symbols_remove_dups): Delete.
1034 (global_symbol_searcher::search): Early exit from search loop when
1035 we have enough results. Use a std::set to collect the results
1036 from calling add_matching_symbols.
1037 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1038 member function.
1039 (global_symbol_searcher) <m_max_search_results>: New member
1040 variable.
1041 (global_symbol_searcher) <add_matching_symbols>: Update header
1042 comment and change return type to bool.
1043 (global_symbol_searcher) <add_matching_msymbols>: Update header
1044 comment and change return type to bool.
1045
1046 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * symtab.c (symbol_search::compare_search_syms): Update header
1049 comment.
1050 (global_symbol_searcher::is_suitable_msymbol): New function.
1051 (global_symbol_searcher::expand_symtabs): New function.
1052 (global_symbol_searcher::add_matching_symbols): New function.
1053 (global_symbol_searcher::add_matching_msymbols): New function.
1054 (global_symbol_searcher::search): Move most of the content
1055 into the new functions above, and call them as needed.
1056 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1057 function.
1058 (global_symbol_searcher) <add_matching_symbols>: New member
1059 function.
1060 (global_symbol_searcher) <add_matching_msymbols>: New member
1061 function.
1062 (global_symbol_searcher) <is_suitable_msymbol>: New member
1063 function.
1064
1065 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1066
1067 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1068 -symbol-info-module-variables entries.
1069 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1070 (mi_cmd_symbol_info_module_variables): Declare.
1071 * mi/mi-symbol-cmds.c
1072 (module_symbol_search_iterator): New typedef.
1073 (output_module_symbols_in_single_module_and_file): New function.
1074 (output_module_symbols_in_single_module): New function.
1075 (mi_info_module_functions_or_variables): New function.
1076 (mi_cmd_symbol_info_module_functions): New function.
1077 (mi_cmd_symbol_info_module_variables): New function.
1078 * NEWS: Mention new MI command.
1079
1080 2019-12-03 Christian Biesinger <cbiesinger@google.com>
1081
1082 * bcache.c (hash): Remove.
1083 (hash_continue): Remove.
1084 * bcache.h (hash): Remove.
1085 (hash_continue): Remove.
1086 (struct bcache) <ctor>: Update.
1087 * psymtab.c (psymbol_hash): Update.
1088 * stabsread.c (hashname): Update.
1089 * utils.h (fast_hash): Add an argument for a start value,
1090 defaulting to zero.
1091
1092 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1093 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1094 (destroy_block_symbol_cache): New function.
1095 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1096 (resize_symbol_cache): Likewise.
1097
1098 2019-12-02 Tom Tromey <tom@tromey.com>
1099
1100 * unittests/tui-selftests.c (run_tests): Make conditional.
1101 (_initialize_tui_selftest): Make conditional.
1102
1103 2019-12-02 Christian Biesinger <cbiesinger@google.com>
1104
1105 * aix-thread.c (debug_aix_thread): Change type to bool.
1106
1107 2019-12-02 Luis Machado <luis.machado@linaro.org>
1108
1109 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1110
1111 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * dwarf2read.c (read_tag_string_type): Read the fields required to
1114 make a dynamic string, and possibly create a dynamic range for the
1115 string.
1116 (attr_to_dynamic_prop): Setup is_reference based on the type of
1117 attribute being processed.
1118 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1119 (resolve_dynamic_array): Rename to...
1120 (resolve_dynamic_array_or_string): ...this, update header comment,
1121 and accept TYPE_CODE_STRING.
1122 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1123
1124 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1125
1126 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1127 of its implementation from...
1128 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1129 the new function.
1130
1131 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1134 create a range with stride where appropriate.
1135 * f-valprint.c: Include 'gdbarch.h'.
1136 (f77_print_array_1): Take the stride into account when walking the
1137 array. Also convert the stride into addressable units.
1138 * gdbtypes.c (create_range_type): Initialise the stride to
1139 constant zero.
1140 (create_range_type_with_stride): New function, initialise the
1141 range as normal, and then setup the stride.
1142 (has_static_range): Include the stride here. Also change the
1143 return type to bool.
1144 (create_array_type_with_stride): Consider the range stride if the
1145 array isn't given its own stride.
1146 (resolve_dynamic_range): Resolve the stride if needed.
1147 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1148 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1149 (TYPE_BIT_STRIDE): Define.
1150 (TYPE_ARRAY_BIT_STRIDE): Define.
1151 (create_range_type_with_stride): Declare.
1152 * valarith.c (value_subscripted_rvalue): Take range stride into
1153 account when walking the array.
1154
1155 2019-12-01 Tom Tromey <tom@tromey.com>
1156
1157 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1158 specially.
1159
1160 2019-12-01 Tom Tromey <tom@tromey.com>
1161
1162 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1163 \0.
1164 * unittests/tui-selftests.c: New file.
1165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1166
1167 2019-12-01 Tom Tromey <tom@tromey.com>
1168
1169 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1170
1171 2019-12-01 Tom Tromey <tom@tromey.com>
1172
1173 * NEWS: Document new settings.
1174 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1175 * tui/tui-win.c (_initialize_tui_win): Add border style
1176 observers.
1177 * tui/tui-io.h (tui_apply_style): Declare.
1178 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1179 longer static.
1180 (apply_ansi_escape, tui_set_reverse_mode): Update.
1181 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1182 Add "skip_intensity" parameter.
1183 <changed>: New member.
1184 <do_set_value>: Declare.
1185 (tui_border_style, tui_active_border_style): Declare.
1186 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1187 globals.
1188 (cli_style_option): Initialize "changed".
1189 (cli_style_option::do_set_value): New function.
1190 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1191 parameter. Update.
1192 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1193 (_initialize_cli_style): Update. Create TUI border style
1194 commands.
1195
1196 2019-12-01 Tom Tromey <tom@tromey.com>
1197
1198 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1199 parameter.
1200 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1201 parameter.
1202 * tui/tui-win.h (compact_source): Declare.
1203 * tui/tui-win.c (compact_source): New global.
1204 (tui_set_compact_source, tui_show_compact_source): New functions.
1205 (_initialize_tui_win): Add "compact-source" setting.
1206 * tui/tui-source.c (tui_source_window::set_contents): Handle
1207 compact_source setting.
1208 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1209 * NEWS: Document new setting.
1210
1211 2019-11-30 Tom Tromey <tom@tromey.com>
1212
1213 * dwarf2read.c (dwarf2_add_field): Include field offset when
1214 computing variant part length.
1215
1216 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1217 * NEWS: Mention define-prefix. Tell that command names can now
1218 contain a . character.
1219
1220 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1221
1222 * command.h (valid_cmd_char_p): Declare.
1223 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1224 the check of valid command char.
1225 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1226 valid_cmd_char_p.
1227 * cli/cli-script.c (validate_comname): Likewise.
1228 * completer.c (gdb_completer_command_word_break_characters):
1229 Do not remove . from the word break char, update comments.
1230 (complete_line_internal_1): Use valid_cmd_char_p.
1231 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1232 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1233
1234 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1235
1236 * cli/cli-script.c (do_define_command): Ensure a redefined
1237 prefix command is kept as a prefix command.
1238 (define_prefix_command): New function.
1239 (show_user_1): Report user defined prefixes.
1240 (_initialize_cli_script): Create the new 'define-prefix' command.
1241 Add completers for 'define' and 'document'.
1242 * top.c (execute_command): If command is a user-defined prefix only
1243 command, report the list of commands for this prefix command.
1244
1245 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1246
1247 * valops.c (find_oload_champ): Improve debug output.
1248
1249 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250
1251 * valops.c (find_oload_champ): Print part of debug messages
1252 before the badness vector is std::move'd.
1253
1254 2019-11-28 Tom Tromey <tom@tromey.com>
1255
1256 * value.c (creal_internal_fn): Fix comment.
1257
1258 2019-11-28 Tom Tromey <tom@tromey.com>
1259
1260 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1261 flag_bound_evaluated>: Now unsigned.
1262
1263 2019-11-28 Tom Tromey <tom@tromey.com>
1264
1265 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1266 declare.
1267
1268 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1269
1270 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1271 debug output.
1272 * jit.c (jit_unregister_code): Add debug print to match
1273 `jit_register_code`.
1274
1275 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1276
1277 * NEWS: Mention the new multithreaded symbol loading.
1278
1279 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1280
1281 * maint.c (n_worker_threads): Default to 0.
1282 (worker_threads_disabled): New function.
1283 * maint.h (worker_threads_disabled): New function.
1284 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1285 here if worker_threads_disabled () is true.
1286 (minimal_symbol_reader::install): Skip all threading if
1287 worker_threads_disabled () is true.
1288
1289 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1290
1291 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1292 hash code if possible.
1293 (add_minsym_to_demangled_hash_table): Likewise.
1294 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1295 on the background thread.
1296 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1297 Add these fields.
1298
1299 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1300
1301 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1302 of the mangled name on the background thread.
1303 * symtab.c (symbol_set_names): Allow passing in the hash of the
1304 linkage_name.
1305 * symtab.h (symbol_set_names): Likewise.
1306
1307 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1308
1309 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1310 physnames are computed for inherited DIEs.
1311
1312 2019-11-27 Tom Tromey <tromey@adacore.com>
1313
1314 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1315 backslashes.
1316 * cp-support.c: Remove unnecessary backslashes.
1317
1318 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1319
1320 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1321 with sym->set_linkage_name.
1322 * coffread.c (coff_read_enum_type): Likewise.
1323 * mdebugread.c (parse_symbol): Likewise.
1324 * stabsread.c (patch_block_stabs): Likewise.
1325 (define_symbol): Likewise.
1326 (read_enum_type): Likewise.
1327 (common_block_end): Likewise.
1328 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1329 function.
1330 (SYMBOL_SET_LINKAGE_NAME): Remove.
1331 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1332 with sym->set_linkage_name.
1333
1334 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1337 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1338 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1339 * NEWS: Mention new MI command.
1340
1341 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1344 '-symbol-info-types', and '-symbol-info-variables'.
1345 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1346 (mi_cmd_symbol_info_types): Declare.
1347 (mi_cmd_symbol_info_variables): Declare.
1348 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1349 (output_debug_symbol): New function.
1350 (output_nondebug_symbol): New function.
1351 (mi_symbol_info): New function.
1352 (mi_info_functions_or_variables): New function.
1353 (mi_cmd_symbol_info_functions): New function.
1354 (mi_cmd_symbol_info_types): New function.
1355 (mi_cmd_symbol_info_variables): New function.
1356 * NEWS: Mention new commands.
1357
1358 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * symtab.c (symbol_to_info_string): New function, most content
1361 moved from print_symbol_info, but updated to return a std::string.
1362 (print_symbol_info): Update to use symbol_to_info_string and print
1363 returned string.
1364 * symtab.h (symbol_to_info_string): Declare new function.
1365
1366 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * python/python.c (gdbpy_rbreak): Convert to using
1369 global_symbol_searcher.
1370 * symtab.c (file_matches): Convert return type to bool, change
1371 file list to std::vector, update header comment.
1372 (search_symbols): Rename to...
1373 (global_symbol_searcher::search): ...this and update now its
1374 a member function of global_symbol_searcher. Take account of the
1375 changes to file_matches.
1376 (symtab_symbol_info): Convert to using global_symbol_searcher.
1377 (rbreak_command): Likewise.
1378 (search_module_symbols): Likewise.
1379 * symtab.h (enum symbol_search): Update comment.
1380 (search_symbols): Remove declaration.
1381 (class global_symbol_searcher): New class.
1382
1383 2019-11-26 Tom Tromey <tromey@adacore.com>
1384
1385 * cp-support.c (_initialize_cp_support): Conditionally initialize
1386 gdb_demangle_attempt_core_dump.
1387
1388 2019-11-26 Tom Tromey <tom@tromey.com>
1389
1390 * python/py-function.c (fnpy_init): Update.
1391 * value.h (add_internal_function): Adjust declaration.
1392 * value.c (function_destroyer): Remove.
1393 (do_add_internal_function): Don't set destroyer or copy name.
1394 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1395 Set name_allocated.
1396 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1397 (cmdpy_init): Set name_allocated.
1398 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1399 member.
1400 (~cmd_list_element): Free "name" if needed.
1401
1402 2019-11-26 Tom Tromey <tom@tromey.com>
1403
1404 * value.h (add_internal_function): Add new overload. Move
1405 documentation from value.h.
1406 * value.c (do_add_internal_function): New function.
1407 (add_internal_function): Use it. Add new overload.
1408 (function_destroyer): Don't free doc.
1409 * python/py-function.c (fnpy_init): Update.
1410
1411 2019-11-26 Tom Tromey <tom@tromey.com>
1412
1413 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1414 (cmdpy_init): Set "doc_allocated".
1415
1416 2019-11-26 Tom Tromey <tom@tromey.com>
1417
1418 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1419 name of worker thread.
1420 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1421 pthread_setname_np.
1422 * configure, config.in: Rebuild.
1423
1424 2019-11-26 Tom Tromey <tom@tromey.com>
1425
1426 * python/python.c (class gdbpy_gil): New.
1427 (struct gdbpy_event): Add constructor, destructor, operator().
1428 (gdbpy_post_event): Use run_on_main_thread.
1429 (gdbpy_initialize_events): Remove.
1430 (do_start_initialization): Update.
1431
1432 2019-11-26 Tom Tromey <tom@tromey.com>
1433
1434 * NEWS: Add entry.
1435 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1436 commands. Call update_thread_pool_size.
1437 (update_thread_pool_size, maintenance_set_worker_threads): New
1438 functions.
1439 (n_worker_threads): New global.
1440
1441 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1442 Tom Tromey <tom@tromey.com>
1443
1444 * minsyms.c (minimal_symbol_reader::install): Use
1445 parallel_for_each.
1446 * gdbsupport/parallel-for.h: New file.
1447 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1448
1449 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1450 Tom Tromey <tom@tromey.com>
1451
1452 * gdbsupport/thread-pool.h: New file.
1453 * gdbsupport/thread-pool.c: New file.
1454 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1455 (HFILES_NO_SRCDIR): Add thread-pool.h.
1456
1457 2019-11-26 Tom Tromey <tom@tromey.com>
1458
1459 * event-top.h (thread_local_segv_handler): Declare.
1460 * event-top.c (thread_local_segv_handler): New global.
1461 (install_handle_sigsegv, handle_sigsegv): New functions.
1462 (async_init_signals): Install SIGSEGV handler.
1463 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1464 thread-local.
1465 (report_failed_demangle): New function.
1466 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1467 handler-setting code, instead use segv_handler. Run warning code
1468 on main thread.
1469
1470 2019-11-26 Tom Tromey <tom@tromey.com>
1471
1472 * run-on-main-thread.c: New file.
1473 * run-on-main-thread.h: New file.
1474 * unittests/main-thread-selftests.c: New file.
1475 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1476 main-thread-selftests.c.
1477 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1478 (COMMON_SFILES): Add run-on-main-thread.c.
1479
1480 2019-11-26 Tom Tromey <tom@tromey.com>
1481
1482 * main.c (setup_alternate_signal_stack): Remove.
1483 (captured_main_1): Use gdb::alternate_signal_stack.
1484 * gdbsupport/alt-stack.h: New file.
1485
1486 2019-11-26 Tom Tromey <tom@tromey.com>
1487
1488 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1489 Remove comment.
1490 (save_original_signals_state, restore_original_signals_state): Use
1491 gdb_sigmask.
1492 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1493 (_initialize_linux_nat): Use gdb_sigmask.
1494 * guile/guile.c (_initialize_guile): Use block_signals.
1495 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1496 * gdbsupport/gdb-sigmask.h: New file.
1497 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1498 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1499 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1500 pthread_sigmask.
1501 * configure, config.in: Rebuild.
1502 * gdbsupport/block-signals.h: New file.
1503
1504 2019-11-26 Tom Tromey <tom@tromey.com>
1505
1506 * acinclude.m4: Include ax_pthread.m4.
1507 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1508 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1509 (CLIBS): Use PTHREAD_LIBS.
1510 (aclocal_m4_deps): Add ax_pthread.m4.
1511 * config.in, configure: Rebuild.
1512 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1513
1514 2019-11-26 Tom Tromey <tom@tromey.com>
1515
1516 * symtab.h (struct minimal_symbol) <name_set>: New member.
1517 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1518 Don't call symbol_set_names.
1519 (minimal_symbol_reader::install): Call symbol_set_names.
1520
1521 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1522
1523 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1524 restore_active_ext_lang, as GIL is needed for (indirectly)
1525 called PyOS_InterruptOccurred.
1526
1527 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1528
1529 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1530 definition.
1531
1532 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * remote-sim.c (simulator_command): Make static, remove
1535 declaration.
1536
1537 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1538
1539 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1540 static.
1541 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1542 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1543 (main): Likewise.
1544 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1545 (main): Likewise.
1546 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1547 (main): Likewise.
1548 * unittests/basic_string_view/element_access/char/1.cc (test01):
1549 Likewise.
1550 (main): Likewise.
1551 * unittests/basic_string_view/element_access/char/empty.cc (main):
1552 Likewise.
1553 * unittests/basic_string_view/element_access/char/front_back.cc
1554 (test01): Likewise.
1555 (main): Likewise.
1556 * unittests/basic_string_view/inserters/char/2.cc (test05):
1557 Likewise.
1558 (main): Likewise.
1559 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1560 (test01): Likewise.
1561 (main): Likewise.
1562 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1563 (test01): Likewise.
1564 (main): Likewise.
1565 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1566 Likewise.
1567 * unittests/basic_string_view/operations/compare/char/1.cc
1568 (test01): Likewise.
1569 (main): Likewise.
1570 * unittests/basic_string_view/operations/compare/char/13650.cc
1571 (test01): Likewise.
1572 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1573 Likewise.
1574 (main): Likewise.
1575 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1576 Likewise.
1577 (main): Likewise.
1578 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1579 Likewise.
1580 (main): Likewise.
1581 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1582 Likewise.
1583 (main): Likewise.
1584 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1585 Likewise.
1586 (main): Likewise.
1587 * unittests/basic_string_view/operations/find/char/4.cc (main):
1588 Likewise.
1589 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1590 Likewise.
1591 (main): Likewise.
1592 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1593 Likewise.
1594 (main): Likewise.
1595 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1596 Likewise.
1597 (main): Likewise.
1598 * unittests/basic_string_view/operations/substr/char/1.cc
1599 (test01): Likewise.
1600 (main): Likewise.
1601 * unittests/basic_string_view/operators/char/2.cc (main):
1602 Likewise.
1603 * unittests/optional/assignment/1.cc (test): Likewise.
1604 * unittests/optional/assignment/2.cc (test): Likewise.
1605 * unittests/optional/assignment/3.cc (test): Likewise.
1606 * unittests/optional/assignment/4.cc (test): Likewise.
1607 * unittests/optional/assignment/5.cc (test): Likewise.
1608 * unittests/optional/assignment/6.cc (test): Likewise.
1609 * unittests/optional/assignment/7.cc (test): Likewise.
1610 * unittests/optional/cons/copy.cc (test): Likewise.
1611 * unittests/optional/cons/default.cc (test): Likewise.
1612 * unittests/optional/cons/move.cc (test): Likewise.
1613 * unittests/optional/cons/value.cc (test): Likewise.
1614 * unittests/optional/in_place.cc (test): Likewise.
1615 * unittests/optional/observers/1.cc (test): Likewise.
1616 * unittests/optional/observers/2.cc (test): Likewise.
1617
1618 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * tui-win.h (tui_set_var_cmd): Remove.
1621 * tui-win.c (tui_set_var_cmd): Make static.
1622
1623 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1624
1625 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1626 rbreak_command_wrapper): Remove.
1627 * symtab.c (rbreak_command_wrapper): Remove.
1628
1629 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1630
1631 * inferior.h (info_terminal_command): Remove declaration.
1632 * inflow.c (info_terminal_command): Make static.
1633
1634 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1635
1636 * inferior.c (exit_inferior_silent): Remove.
1637
1638 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1639
1640 * dictionary.c (dict_empty, mdict_empty): Remove.
1641 * dictionary.c (mdict_empty): Remove.
1642
1643 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1644
1645 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1646 (arc_insn_get_memory_offset): Likewise.
1647 (arc_insn_dump): Likewise.
1648 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1649 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1650 * dictionary.c (dict_iterator_next): Likewise.
1651 (dict_iter_match_first): Likewise.
1652 (dict_iter_match_next): Likewise.
1653 * f-lang.c (evaluate_subexp_f): Likewise.
1654 * hppa-tdep.c (hppa_read_pc): Likewise.
1655 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1656 * parse.c (write_exp_elt_msym): Likewise.
1657 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1658 * remote.c (remote_packet_size): Likewise.
1659 (remote_notif_stop_parse): Likewise.
1660 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1661 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1662 * source.c (prepare_path_for_appending): Likewise.
1663 * sparc64-linux-tdep.c
1664 (sparc64_linux_handle_segmentation_fault); Likewise.
1665 * stack.c (frame_selection_by_function_completer): Likewise.
1666
1667 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * completer.c (set_gdb_completion_word_break_characters):
1670 Remove.
1671
1672 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * dwarf-index-write.c: Include dwarf-index-write.h.
1675 * mi/mi-interp.c: Include mi/mi-interp.h.
1676
1677 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1678
1679 * aarch32-tdep.c: Include aarch32-tdep.h.
1680 * aarch32-tdep.h: Forward-declare struct target_desc.
1681
1682 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1683
1684 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1685 strerror.
1686 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1687 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1688
1689 2019-11-25 Tom de Vries <tdevries@suse.de>
1690
1691 * contrib/words.sh: Add -c option.
1692
1693 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1694
1695 * solib.c (solib_find_1): Change int to bool.
1696 (exec_file_find): Change int to bool.
1697 (solib_find): Change int to bool.
1698 (solib_read_symbols): Change int to bool.
1699 (solib_used): Change int to bool.
1700 (solib_add): Change int to bool.
1701 (info_sharedlibrary_command): Change int to bool.
1702 (solib_contains_address_p): Change int to bool.
1703 (solib_keep_data_in_core): Change int to bool.
1704 (in_solib_dynsym_resolve_code): Change int to bool.
1705 (reload_shared_libraries_1): Change int to bool.
1706 (gdb_sysroot_changed): Change int to bool.
1707 * solib.h (solib_read_symbols): Change int to bool.
1708 (solib_contains_address_p): Change int to bool.
1709 (solib_keep_data_in_core): Change int to bool.
1710 (in_solib_dynsym_resolve_code): Change int to bool.
1711 (libpthread_name_p): Change int to bool.
1712
1713 2019-11-25 Luis Machado <luis.machado@linaro.org>
1714
1715 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1716 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1717 (remote_packet_max_chars): New static global.
1718 (show_remote_packet_max_chars): New function.
1719 (remote_target::putpkt_binary): Adjust to use new
1720 remote_packet_max_chars option.
1721 (remote_target::getpkt_or_notif_sane_1): Likewise.
1722 (_initialize_remote): Register new remote-packet-max-chars option.
1723
1724 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1725
1726 * m68k-linux-nat.c: Include gdbarch.h.
1727
1728 2019-11-24 Tom Tromey <tom@tromey.com>
1729
1730 * symfile.c (read_symbols): Update.
1731 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1732 bool.
1733 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1734 (psym_lookup_symbol, psym_find_last_source_symtab)
1735 (psym_forget_cached_source_info, psym_print_stats)
1736 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1737 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1738 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1739 (psym_find_compunit_symtab_by_address)
1740 (maintenance_print_psymbols, maintenance_info_psymtabs)
1741 (maintenance_check_psymtabs): Update.
1742 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1743 bool.
1744
1745 2019-11-22 Tom Tromey <tom@tromey.com>
1746
1747 * observable.h: Update comments.
1748
1749 2019-11-22 Tom Tromey <tromey@adacore.com>
1750
1751 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1752 (print_ada_task_info): Don't try to fetch thread id if task is not
1753 alive.
1754
1755 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1756
1757 * ada-exp.y: Update.
1758 * ada-lang.c (sort_choices): Update.
1759 (ada_print_symbol_signature): Update.
1760 (resolve_subexp): Update.
1761 (ada_parse_renaming): Update.
1762 (ada_read_renaming_var_value): Update.
1763 (lesseq_defined_than): Update.
1764 (remove_extra_symbols): Update.
1765 (remove_irrelevant_renamings): Update.
1766 (ada_add_block_symbols): Update.
1767 (ada_collect_symbol_completion_matches): Update.
1768 (ada_is_renaming_symbol): Update.
1769 (aggregate_assign_from_choices): Update.
1770 (ada_evaluate_subexp): Update.
1771 (ada_has_this_exception_support): Update.
1772 (ada_is_non_standard_exception_sym): Update.
1773 (ada_add_exceptions_from_frame): Update.
1774 (ada_add_global_exceptions): Update.
1775 (ada_print_subexp): Update.
1776 * ax-gdb.c (gen_var_ref): Update.
1777 (gen_maybe_namespace_elt): Update.
1778 (gen_expr_for_cast): Update.
1779 (gen_expr): Update.
1780 * block.h: Update.
1781 * blockframe.c (find_pc_partial_function): Update.
1782 * breakpoint.c (print_breakpoint_location): Update.
1783 (update_static_tracepoint): Update.
1784 * btrace.c (ftrace_print_function_name): Update.
1785 (ftrace_function_switched): Update.
1786 * buildsym.c (find_symbol_in_list): Update.
1787 * c-exp.y: Update.
1788 * c-typeprint.c (c_print_typedef): Update.
1789 (c_type_print_template_args): Update.
1790 * cli/cli-cmds.c (edit_command): Update.
1791 (list_command): Update.
1792 (print_sal_location): Update.
1793 * coffread.c (patch_opaque_types): Update.
1794 (process_coff_symbol): Update.
1795 (coff_read_enum_type): Update.
1796 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1797 (convert_one_symbol): Update.
1798 (hash_symname): Update.
1799 (eq_symname): Update.
1800 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1801 * compile/compile-cplus-types.c (debug_print_scope): Update.
1802 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1803 * compile/compile-object-load.c (get_out_value_type): Update.
1804 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1805 (search_symbol_list): Update.
1806 (cp_lookup_symbol_imports_or_template): Update.
1807 * cp-support.c (overload_list_add_symbol): Update.
1808 * ctfread.c (psymtab_to_symtab): Update.
1809 * dbxread.c (cp_set_block_scope): Update.
1810 * dictionary.c (iter_match_first_hashed): Update.
1811 (iter_match_next_hashed): Update.
1812 (insert_symbol_hashed): Update.
1813 (iter_match_next_linear): Update.
1814 * dictionary.h: Update.
1815 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1816 (locexpr_describe_location_piece): Update.
1817 (locexpr_describe_location_1): Update.
1818 (locexpr_generate_c_location): Update.
1819 (loclist_describe_location): Update.
1820 (loclist_generate_c_location): Update.
1821 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1822 (read_func_scope): Update.
1823 (process_enumeration_scope): Update.
1824 (new_symbol): Update.
1825 (dwarf2_const_value): Update.
1826 (dwarf2_symbol_mark_computed): Update.
1827 * eval.c (evaluate_funcall): Update.
1828 (evaluate_subexp_standard): Update.
1829 * expprint.c (print_subexp_standard): Update.
1830 (dump_subexp_body_standard): Update.
1831 * f-valprint.c (info_common_command_for_block): Update.
1832 * findvar.c (get_hosting_frame): Update.
1833 (default_read_var_value): Update.
1834 * go-lang.c (go_symbol_package_name): Update.
1835 * guile/scm-block.c (bkscm_print_block_smob): Update.
1836 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1837 (gdbscm_symbol_name): Update.
1838 (gdbscm_symbol_linkage_name): Update.
1839 (gdbscm_symbol_print_name): Update.
1840 * infcall.c (get_function_name): Update.
1841 * infcmd.c (jump_command): Update.
1842 (finish_command): Update.
1843 * infrun.c (insert_exception_resume_breakpoint): Update.
1844 * linespec.c (canonicalize_linespec): Update.
1845 (create_sals_line_offset): Update.
1846 (convert_linespec_to_sals): Update.
1847 (complete_label): Update.
1848 (find_label_symbols_in_block): Update.
1849 * m2-typeprint.c (m2_print_typedef): Update.
1850 * mdebugread.c (mdebug_reg_to_regnum): Update.
1851 (parse_symbol): Update.
1852 (mylookup_symbol): Update.
1853 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1854 (list_args_or_locals): Update.
1855 * objc-lang.c (compare_selectors): Update.
1856 (info_selectors_command): Update.
1857 (compare_classes): Update.
1858 (info_classes_command): Update.
1859 (find_imps): Update.
1860 * p-typeprint.c (pascal_print_typedef): Update.
1861 * printcmd.c (build_address_symbolic): Update.
1862 (info_address_command): Update.
1863 (print_variable_and_value): Update.
1864 * python/py-framefilter.c (extract_sym): Update.
1865 (py_print_single_arg): Update.
1866 * python/py-symbol.c (sympy_str): Update.
1867 (sympy_get_name): Update.
1868 (sympy_get_linkage_name): Update.
1869 * python/python.c (gdbpy_rbreak): Update.
1870 * record-btrace.c (btrace_get_bfun_name): Update.
1871 (btrace_call_history): Update.
1872 * rust-lang.c (rust_print_typedef): Update.
1873 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1874 * stabsread.c (stab_reg_to_regnum): Update.
1875 (define_symbol): Update.
1876 (read_enum_type): Update.
1877 (common_block_end): Update.
1878 (cleanup_undefined_types_1): Update.
1879 (scan_file_globals): Update.
1880 * stack.c (print_frame_arg): Update.
1881 (print_frame_args): Update.
1882 (find_frame_funname): Update.
1883 (info_frame_command_core): Update.
1884 (iterate_over_block_locals): Update.
1885 (print_block_frame_labels): Update.
1886 (do_print_variable_and_value): Update.
1887 (iterate_over_block_arg_vars): Update.
1888 (return_command): Update.
1889 * symmisc.c (dump_symtab_1): Update.
1890 (print_symbol): Update.
1891 * symtab.c (eq_symbol_entry): Update.
1892 (symbol_cache_dump): Update.
1893 (lookup_language_this): Update.
1894 (find_pc_sect_line): Update.
1895 (skip_prologue_sal): Update.
1896 (symbol_search::compare_search_syms): Update.
1897 (treg_matches_sym_type_name): Update.
1898 (search_symbols): Update.
1899 (print_symbol_info): Update.
1900 (rbreak_command): Update.
1901 (completion_list_add_symbol): Update.
1902 (find_gnu_ifunc): Update.
1903 (get_symbol_address): Update.
1904 (search_module_symbols): Update.
1905 (info_module_subcommand): Update.
1906 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1907 (SYMBOL_LINKAGE_NAME): Remove.
1908 (SYMBOL_DEMANGLED_NAME): Remove.
1909 (SYMBOL_PRINT_NAME): Remove.
1910 (SYMBOL_SEARCH_NAME): Remove.
1911 * tracepoint.c (set_traceframe_context): Update.
1912 (validate_actionline): Update.
1913 (collection_list::collect_symbol): Update.
1914 (encode_actions_1): Update.
1915 (info_scope_command): Update.
1916 (print_one_static_tracepoint_marker): Update.
1917 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1918 * valops.c (address_of_variable): Update.
1919 (find_overload_match): Update.
1920 (find_oload_champ): Update.
1921
1922 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1923
1924 * ada-lang.c (ada_lookup_simple_minsym): Update.
1925 (ada_collect_symbol_completion_matches): Update.
1926 * ada-tasks.c (read_atcb): Update.
1927 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1928 (amd64_windows_skip_trampoline_code): Update.
1929 * arm-tdep.c (skip_prologue_function): Update.
1930 (arm_skip_stack_protector): Update.
1931 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1932 (arm_wince_skip_main_prologue): Update.
1933 * ax-gdb.c (gen_expr): Update.
1934 * block.c (call_site_for_pc): Update.
1935 * blockframe.c (find_pc_partial_function): Update.
1936 * breakpoint.c (set_breakpoint_location_function): Update.
1937 * btrace.c (ftrace_print_function_name): Update.
1938 (ftrace_function_switched): Update.
1939 * c-valprint.c (print_unpacked_pointer): Update.
1940 * coffread.c (coff_symfile_read): Update.
1941 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1942 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1943 * dwarf-index-write.c (write_psymbols): Update.
1944 * dwarf2loc.c (call_site_to_target_addr): Update.
1945 (func_verify_no_selftailcall): Update.
1946 (tailcall_dump): Update.
1947 (call_site_find_chain_1): Update.
1948 (dwarf_expr_reg_to_entry_parameter): Update.
1949 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1950 * eval.c (evaluate_funcall): Update.
1951 (evaluate_subexp_standard): Update.
1952 (evaluate_subexp_for_sizeof): Update.
1953 * expprint.c (print_subexp_standard): Update.
1954 (dump_subexp_body_standard): Update.
1955 * frame.c (get_prev_frame_always_1): Update.
1956 * frv-tdep.c (frv_skip_main_prologue): Update.
1957 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1958 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1959 (gnuv3_get_typename_from_type_info): Update.
1960 (gnuv3_skip_trampoline): Update.
1961 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1962 * i386-tdep.c (i386_skip_main_prologue): Update.
1963 (i386_pe_skip_trampoline_code): Update.
1964 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1965 * infcall.c (get_function_name): Update.
1966 * linespec.c (minsym_found): Update.
1967 * linux-fork.c (info_checkpoints_command): Update.
1968 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1969 (m32c_m16c_pointer_to_address): Update.
1970 * maint.c (maintenance_translate_address): Update.
1971 * minsyms.c (add_minsym_to_hash_table): Update.
1972 (add_minsym_to_demangled_hash_table): Update.
1973 (lookup_minimal_symbol_mangled): Update.
1974 (lookup_minimal_symbol_demangled): Update.
1975 (lookup_minimal_symbol_linkage): Update.
1976 (lookup_minimal_symbol_text): Update.
1977 (lookup_minimal_symbol_by_pc_name): Update.
1978 (minimal_symbol_is_less_than): Update.
1979 (compact_minimal_symbols): Update.
1980 (build_minimal_symbol_hash_tables): Update.
1981 (find_solib_trampoline_target): Update.
1982 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1983 (mips_skip_pic_trampoline_code): Update.
1984 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1985 * objc-lang.c (info_selectors_command): Update.
1986 (info_classes_command): Update.
1987 (find_methods): Update.
1988 (find_imps): Update.
1989 * p-valprint.c (pascal_val_print): Update.
1990 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1991 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1992 * printcmd.c (build_address_symbolic): Update.
1993 (info_symbol_command): Update.
1994 * psymtab.c (psymbol_name_matches): Update.
1995 (match_partial_symbol): Update.
1996 (lookup_partial_symbol): Update.
1997 (print_partial_symbols): Update.
1998 (sort_pst_symbols): Update.
1999 (maintenance_check_psymtabs): Update.
2000 * python/py-framefilter.c (py_print_frame): Update.
2001 * python/python.c (gdbpy_rbreak): Update.
2002 * record-btrace.c (btrace_get_bfun_name): Update.
2003 (btrace_call_history): Update.
2004 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2005 (rs6000_skip_trampoline_code): Update.
2006 * sol-thread.c (info_cb): Update.
2007 * stabsread.c (scan_file_globals): Update.
2008 * stack.c (find_frame_funname): Update.
2009 (info_frame_command_core): Update.
2010 * symmisc.c (dump_msymbols): Update.
2011 * symtab.c (symbol_natural_name): Rename to..,
2012 (general_symbol_info::natural_name): ...this.
2013 (symbol_demangled_name): Rename to...
2014 (general_symbol_info::demangled_name): ...this.
2015 (symbol_search_name): Rename to...
2016 (general_symbol_info::search_name): ...this.
2017 (symbol_matches_search_name): Update.
2018 (find_pc_sect_line): Update.
2019 (skip_prologue_sal): Update.
2020 (search_symbols): Update.
2021 (print_msymbol_info): Update.
2022 (rbreak_command): Update.
2023 (completion_list_add_msymbol): Update.
2024 (completion_list_objc_symbol): Update.
2025 (get_msymbol_address): Update.
2026 * symtab.h (struct general_symbol_info): Add member functions
2027 natural_name (), linkage_name (), print_name (), demangled_name (),
2028 and search_name ().
2029 (SYMBOL_NATURAL_NAME): Update.
2030 (symbol_natural_name): Move to a member function on general_symbol_info.
2031 (SYMBOL_DEMANGLED_NAME): Update.
2032 (symbol_demangled_name): Move to a member function on
2033 general_symbol_info.
2034 (SYMBOL_SEARCH_NAME): Update.
2035 (symbol_search_name): Move to a member function on general_symbol_info.
2036 (MSYMBOL_NATURAL_NAME): Remove.
2037 (MSYMBOL_LINKAGE_NAME): Remove.
2038 (MSYMBOL_PRINT_NAME): Remove.
2039 (MSYMBOL_DEMANGLED_NAME): Remove.
2040 (MSYMBOL_SEARCH_NAME): Remove.
2041 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2042
2043 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2044
2045 * symtab.c (create_demangled_names_hash): Use per_bfd->
2046 minimal_symbol_count for computing the initial size, if greater
2047 than our default size.
2048
2049 2019-11-22 Tom de Vries <tdevries@suse.de>
2050
2051 * contrib/words.sh: Improve words extraction.
2052
2053 2019-11-22 Tom de Vries <tdevries@suse.de>
2054
2055 * contrib/words.sh: Combine sed invocations.
2056
2057 2019-11-21 Christian Biesinger <cbiesinger@google.com>
2058
2059 * Makefile.in: Update.
2060 * demangle.c: Rename to...
2061 * gdb-demangle.c: ..this.
2062 (is_cplus_marker): Change return type to bool.
2063 (_initialize_demangler): Rename to...
2064 (_initialize_gdb_demangle): ...this.
2065 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2066 * symtab.h (demangle): Remove declaration; instead include
2067 gdb-demangle.h.
2068
2069 2019-11-21 Tom Tromey <tromey@adacore.com>
2070
2071 * gdbsupport/format.c (format_pieces): Parse %I64d.
2072 * unittests/format_pieces-selftests.c (test_windows_formats): New
2073 function.
2074 (run_tests): Call it.
2075
2076 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2077
2078 Byte reverse display of variables with DW_END_big, DW_END_little
2079 (DW_AT_endianity) dwarf attributes if different than the native
2080 byte order.
2081 * ada-lang.c (ada_value_binop):
2082 Use type_byte_order instead of gdbarch_byte_order.
2083 * ada-valprint.c (printstr):
2084 (ada_val_print_string):
2085 * ada-lang.c (value_pointer):
2086 (ada_value_binop):
2087 Use type_byte_order instead of gdbarch_byte_order.
2088 * c-lang.c (c_get_string):
2089 Use type_byte_order instead of gdbarch_byte_order.
2090 * c-valprint.c (c_val_print_array):
2091 Use type_byte_order instead of gdbarch_byte_order.
2092 * cp-valprint.c (cp_print_class_member):
2093 Use type_byte_order instead of gdbarch_byte_order.
2094 * dwarf2loc.c (rw_pieced_value):
2095 Use type_byte_order instead of gdbarch_byte_order.
2096 * dwarf2read.c (read_base_type): Handle DW_END_big,
2097 DW_END_little
2098 * f-lang.c (f_get_encoding):
2099 Use type_byte_order instead of gdbarch_byte_order.
2100 * findvar.c (default_read_var_value):
2101 Use type_byte_order instead of gdbarch_byte_order.
2102 * gdbtypes.c (check_types_equal):
2103 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2104 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2105 and TYPE_ENDIANITY_LITTLE if set.
2106 (type_byte_order): new function.
2107 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2108 (struct main_type) <flag_endianity_not_default>:
2109 New field.
2110 (type_byte_order): New function.
2111 * infcmd.c (default_print_one_register_info):
2112 Use type_byte_order instead of gdbarch_byte_order.
2113 * p-lang.c (pascal_printstr):
2114 Use type_byte_order instead of gdbarch_byte_order.
2115 * p-valprint.c (pascal_val_print):
2116 Use type_byte_order instead of gdbarch_byte_order.
2117 * printcmd.c (print_scalar_formatted):
2118 Use type_byte_order instead of gdbarch_byte_order.
2119 * solib-darwin.c (darwin_current_sos):
2120 Use type_byte_order instead of gdbarch_byte_order.
2121 * solib-svr4.c (solib_svr4_r_ldsomap):
2122 Use type_byte_order instead of gdbarch_byte_order.
2123 * stap-probe.c (stap_modify_semaphore):
2124 Use type_byte_order instead of gdbarch_byte_order.
2125 * target-float.c (target_float_same_format_p):
2126 Use type_byte_order instead of gdbarch_byte_order.
2127 * valarith.c (scalar_binop):
2128 (value_bit_index):
2129 Use type_byte_order instead of gdbarch_byte_order.
2130 * valops.c (value_cast):
2131 Use type_byte_order instead of gdbarch_byte_order.
2132 * valprint.c (generic_emit_char):
2133 (generic_printstr):
2134 (val_print_string):
2135 Use type_byte_order instead of gdbarch_byte_order.
2136 * value.c (unpack_long):
2137 (unpack_bits_as_long):
2138 (unpack_value_bitfield):
2139 (modify_field):
2140 (pack_long):
2141 (pack_unsigned_long):
2142 Use type_byte_order instead of gdbarch_byte_order.
2143 * findvar.c (unsigned_pointer_to_address):
2144 (signed_pointer_to_address):
2145 (unsigned_address_to_pointer):
2146 (address_to_signed_pointer):
2147 (default_read_var_value):
2148 (default_value_from_register):
2149 Use type_byte_order instead of gdbarch_byte_order.
2150 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2151 Use type_byte_order instead of gdbarch_byte_order.
2152 * riscv-tdep.c (riscv_print_one_register_info):
2153 Use type_byte_order instead of gdbarch_byte_order.
2154
2155 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2156
2157 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2158 (current_ui_gdb_stdin_ptr): Likewise.
2159 (current_ui_gdb_stderr_ptr): Likewise.
2160 (current_ui_gdb_stdlog_ptr): Likewise.
2161 (current_ui_current_uiout_ptr): Likewise.
2162 (gen_ret_current_ui_field_ptr): Remove.
2163
2164 2019-11-21 Tom de Vries <tdevries@suse.de>
2165
2166 PR gdb/24956
2167 * cli/cli-script.c (execute_control_command): Only switch to
2168 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2169
2170 2019-11-19 Tom Tromey <tom@tromey.com>
2171
2172 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2173 Now static. Change type of "name".
2174 (tui_set_win_height_command): Don't copy "arg".
2175 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2176 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2177
2178 2019-11-19 Ali Tamur <tamur@google.com>
2179
2180 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2181 "if (attr != nullptr)".
2182 (dwarf2_find_base_address): Likewise.
2183 (dwarf2_build_include_psymtabs): Likewise.
2184 (read_cutu_die_from_dwo): Likewise.
2185 (read_func_scope): Likewise.
2186 (read_call_site_scope): Likewise.
2187 (dwarf2_get_pc_bounds): Likewise.
2188 (dwarf2_record_block_ranges): Likewise.
2189 (dwarf2_add_field): Likewise.
2190 (dwarf2_add_member_fn): Likewise.
2191 (read_structure_type): Likewise.
2192 (read_enumeration_type): Likewise.
2193 (read_array_type): Likewise.
2194 (read_array_order): Likewise.
2195 (read_set_type): Likewise.
2196 (read_common_block): Likewise.
2197 (read_tag_reference_type): Likewise.
2198 (read_tag_string_type): Likewise.
2199 (read_subroutine_type): Likewise.
2200 (read_base_type): Likewise.
2201 (read_subrange_type): Likewise.
2202 (new_symbol): Likewise.
2203 (prepare_one_comp_unit): Likewise.
2204
2205 2019-11-19 Tom Tromey <tromey@adacore.com>
2206
2207 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2208 result in error when DebugActiveProcess fails.
2209
2210 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2211 Pedro Alves <palves@redhat.com>
2212
2213 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2214 * target.c (target_stack::push): Call 'unpush' if there's a
2215 target on top of the stack.
2216
2217 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2218
2219 * python/py-block.c (blpy_dealloc): Call tp_free.
2220 (blpy_block_syms_dealloc): Likewise.
2221 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2222 * python/py-inferior.c (infpy_dealloc): Likewise.
2223 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2224 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2225 * python/py-symbol.c (sympy_dealloc): Likewise.
2226 * python/py-symtab.c (stpy_dealloc): Likewise.
2227 * python/py-type.c (typy_iterator_dealloc): Likewise.
2228
2229 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2230
2231 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2232 constructor instead of using a class initializer.
2233
2234 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2235
2236 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2237 * configure: Regenerate.
2238 * configure.ac: Don't source common.host.
2239 * gdbsupport/common.host: Remove.
2240 * gdbsupport/mingw-strerror.c: Remove.
2241 * gdbsupport/posix-strerror.c: Rename to...
2242 * gdbsupport/safe-strerror.c: ...this.
2243
2244 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2245
2246 * maint.c (scoped_command_stats::print_time): Use localtime_r
2247 instead of localtime (provided through gnulib if necessary).
2248 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2249 of ctime.
2250
2251 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2252
2253 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2254 avoid compile errors.
2255
2256 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2257
2258 * config.in: Regenerate.
2259 * configure: Regenerate.
2260 * gdbsupport/common.m4: No longer check for strerror_r.
2261 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2262 POSIX version of strerror_r, now that gnulib provides it if
2263 necessary.
2264
2265 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2266
2267 * README (`configure' options): Update.
2268
2269 2019-11-14 Tom Tromey <tromey@adacore.com>
2270
2271 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2272 expected type for the RHS if the LHS is a convenience variable.
2273
2274 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2277 Provide explicit default and copy constructor.
2278
2279 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2280
2281 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2282 only call Py_INCREF (newbp) in the bppy_pending_object case.
2283
2284 2019-11-13 Tom Tromey <tromey@adacore.com>
2285
2286 PR build/25182:
2287 * psympriv.h (partial_symbol): Remove static assert.
2288 * symtab.h (general_symbol_info, symbol): Remove static assert.
2289
2290 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2291
2292 * gdbsupport/format.c (format_pieces::format_pieces): Support
2293 printf 'z' size modifier.
2294 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2295 * printcmd.c (ui_printf): Handle size_t_arg.
2296 * ui-out.c (ui_out::vmessage): Likewise.
2297 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2298 function.
2299 (run_tests): Call test_format_int_sizes.
2300
2301 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2302
2303 * ada-exp.y (write_ambiguous_var): Update.
2304 * buildsym.c (add_symbol_to_list): Update.
2305 * dwarf2read.c (read_variable): Update.
2306 (new_symbol): Update.
2307 * jit.c (finalize_symtab): Update.
2308 * language.c (language_alloc_type_symbol): Update.
2309 * symtab.c (fixup_symbol_section): Update.
2310 (initialize_objfile_symbol_1): Move code to...
2311 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2312 (allocate_symbol): Update.
2313 (allocate_template_symbol): Update.
2314 (get_symbol_address): Update.
2315 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2316 of having as a field, and add a constructor.
2317 (SYMBOL_VALUE): Update.
2318 (SYMBOL_VALUE_ADDRESS): Update.
2319 (SET_SYMBOL_VALUE_ADDRESS): Update.
2320 (SYMBOL_VALUE_BYTES): Update.
2321 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2322 (SYMBOL_BLOCK_VALUE): Update.
2323 (SYMBOL_VALUE_CHAIN): Update.
2324 (SYMBOL_LANGUAGE): Update.
2325 (SYMBOL_SECTION): Update.
2326 (SYMBOL_OBJ_SECTION): Update.
2327 (SYMBOL_SET_LANGUAGE): Update.
2328 (SYMBOL_SET_LINKAGE_NAME): Update.
2329 (SYMBOL_SET_NAMES): Update.
2330 (SYMBOL_NATURAL_NAME): Update.
2331 (SYMBOL_LINKAGE_NAME): Update.
2332 (SYMBOL_DEMANGLED_NAME): Update.
2333 (SYMBOL_SEARCH_NAME): Update.
2334 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2335 (struct symbol): Update.
2336 (struct template_symbol): Update.
2337 (struct rust_vtable_symbol): Update.
2338 * xcoffread.c (SYMBOL_DUP): Update.
2339
2340 2019-11-12 Tom Tromey <tom@tromey.com>
2341
2342 * tui/tui-layout.c (show_layout): Set current_layout.
2343 (show_source_disasm_command, show_data)
2344 (show_source_or_disasm_and_command): Don't set current_layout.
2345
2346 2019-11-12 Tom Tromey <tom@tromey.com>
2347
2348 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2349
2350 2019-11-12 Tom Tromey <tom@tromey.com>
2351
2352 * tui/tui-win.c (resize_message): New global.
2353 (show_tui_resize_message): New function.
2354 (tui_async_resize_screen): Print message if requested.
2355 (_initialize_tui_win): Add tui-resize-message setting.
2356 * NEWS: Add entry for new commands.
2357
2358 2019-11-11 Tom Tromey <tom@tromey.com>
2359
2360 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2361 functions.
2362
2363 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2364
2365 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2366
2367 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2370 function.
2371 * python/python-internal.h (gdbpy_lookup_static_symbols):
2372 Declare new function.
2373 * python/python.c (python_GdbMethods): Add
2374 gdb.lookup_static_symbols method.
2375 * NEWS: Mention gdb.lookup_static_symbols.
2376
2377 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2378
2379 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2380 static block of current object file first. Also fix typo in
2381 header comment.
2382
2383 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * stack.c (set_last_displayed_sal): Delete.
2386 (last_displayed_sal_valid): Delete.
2387 (last_displayed_pspace): Delete.
2388 (last_displayed_addr): Delete.
2389 (last_displayed_symtab): Delete.
2390 (last_displayed_line): Delete.
2391 (class last_displayed_symtab_info_type): New.
2392 (last_displayed_symtab_info): New static global variable.
2393 (print_frame_info): Call methods on last_displayed_symtab_info.
2394 (clear_last_displayed_sal): Update header comment, and make use of
2395 last_displayed_symtab_info.
2396 (last_displayed_sal_is_valid): Likewise.
2397 (get_last_displayed_pspace): Likewise.
2398 (get_last_displayed_addr): Likewise.
2399 (get_last_displayed_symtab): Likewise.
2400 (get_last_displayed_line): Likewise.
2401 (get_last_displayed_sal): Likewise.
2402 * stack.h (clear_last_displayed_sal): Update header comment.
2403 (last_displayed_sal_is_valid): Likewise.
2404 (get_last_displayed_pspace): Likewise.
2405 (get_last_displayed_addr): Likewise.
2406 (get_last_displayed_symtab): Likewise.
2407 (get_last_displayed_line): Likewise.
2408 (get_last_displayed_sal): Likewise.
2409
2410 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * stack.c (frame_show_address): Convert return type to bool.
2413 * stack.h (frame_show_address): Likewise, and update header
2414 comment.
2415
2416 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2417
2418 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2419 * unittests/vec-utils-selftests.c: New file.
2420 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2421
2422 2019-11-10 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2425 (tui_highlight_win): Likewise.
2426 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2427 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2428 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2429 Don't set can_highlight.
2430
2431 2019-11-10 Tom Tromey <tom@tromey.com>
2432
2433 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2434 Remove unused declaration.
2435
2436 2019-11-08 Tom Tromey <tromey@adacore.com>
2437
2438 * top.c (read_command_file): Update.
2439 (command_line_input): Make return type const.
2440 * python/py-gdb-readline.c: Update.
2441 * linespec.c (decode_line_2): Update.
2442 * defs.h (command_line_input): Make return type const.
2443 * cli/cli-script.c (read_next_line): Make return type const.
2444 * ada-lang.c (get_selections): Update.
2445
2446 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2447
2448 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2449 * mi/mi-main.c (output_cores): Likewise.
2450 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2451 (linux_xfer_osdata_modules): Likewise.
2452 * remote.c (register_remote_support_xml): Likewise.
2453 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2454 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2455
2456 2019-11-06 Tom Tromey <tom@tromey.com>
2457
2458 * tui/tui-interp.c: Don't include readline.h.
2459 * tui/tui-hooks.c: Don't include readline.h.
2460 * symmisc.c: Include tilde.h, not readline.h.
2461 * symfile.c: Include tilde.h, not readline.h.
2462 * source.c: Include tilde.h, not readline.h.
2463 * solib.c: Include tilde.h, not readline.h.
2464 * psymtab.c: Include tilde.h, not readline.h.
2465 * exec.c: Include tilde.h, not readline.h.
2466 * corelow.c: Include tilde.h, not readline.h.
2467 * cli/cli-dump.c: Include tilde.h, not readline.h.
2468 * cli/cli-cmds.c: Don't include readline.h.
2469
2470 2019-11-05 Tom Tromey <tom@tromey.com>
2471
2472 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2473 (tui_disassemble): Set addr_size.
2474 (tui_disasm_window::set_contents): Use addr_size.
2475
2476 2019-11-05 Tom Tromey <tom@tromey.com>
2477
2478 * rust-lang.c (rust_language_defn): Update.
2479 * python/py-value.c (valpy_string): Call c_get_string.
2480 * p-lang.c (pascal_language_defn): Update.
2481 * opencl-lang.c (opencl_language_defn): Update.
2482 * objc-lang.c (objc_language_defn): Update.
2483 * m2-lang.c (m2_language_defn): Update.
2484 * language.c (unknown_language_defn, auto_language_defn): Update.
2485 (default_get_string): Remove.
2486 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2487 * go-lang.c (go_language_defn): Update.
2488 * f-lang.c (f_language_defn): Update.
2489 * d-lang.c (d_language_defn): Update.
2490 * c-lang.c (c_language_defn, cplus_language_defn)
2491 (asm_language_defn, minimal_language_defn): Update.
2492 * ada-lang.c (ada_language_defn): Update.
2493 * language.h (struct language_defn) <la_get_string>: Remove.
2494 (LA_GET_STRING): Remove.
2495 (default_get_string): Don't declare.
2496
2497 2019-11-05 Tom Tromey <tom@tromey.com>
2498
2499 * tui/tui-source.h (struct tui_source_window): Inline
2500 constructor. Remove destructor.
2501 <style_changed, m_observable>: Move to superclass.
2502 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2503 (struct tui_source_window_base): Move private members to end.
2504 <style_changed, m_observable>: Move from tui_source_window.
2505 * tui/tui-winsource.c (tui_copy_source_line): Move from
2506 tui-source.c. Rename from copy_source_line. Add special handling
2507 for negative line number.
2508 (tui_source_window_base::style_changed): Move from
2509 tui_source_window.
2510 (tui_source_window_base): Register observer.
2511 (~tui_source_window_base): New.
2512 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2513 rename.
2514 (tui_source_window::set_contents): Use tui_copy_source_line.
2515 (tui_source_window::tui_source_window): Move to tui-source.h.
2516 (tui_source_window::~tui_source_window): Remove.
2517 (tui_source_window::style_changed): Move to superclass.
2518 * tui/tui-disasm.c (tui_disassemble): Create string file with
2519 styling, when possible. Add "addr_size" parameter.
2520 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2521 Don't compute maximum size.
2522 (len_without_escapes): New function
2523
2524 2019-11-05 Tom Tromey <tom@tromey.com>
2525
2526 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2527 std::string.
2528 * tui/tui-winsource.c (tui_show_source_line): Update.
2529 * tui/tui-source.c (tui_source_window::set_contents): Update.
2530 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2531
2532 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2533
2534 * symtab.h (gdb_static_assert): Put && operator at the beginning
2535 of the line instead of the end.
2536
2537 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2538
2539 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2540 and sizeof (symbol).
2541 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2542
2543 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2544
2545 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2546 * configure.host: Mark *-*-solaris2.10* obsolete.
2547 * configure.tgt: Mark Solaris < 11 obsolete.
2548 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2549 Update target triplet.
2550
2551 2019-11-01 Tom Tromey <tromey@adacore.com>
2552
2553 * utils.c (print_sys_errmsg): Simplify.
2554
2555 2019-11-01 Tom Tromey <tromey@adacore.com>
2556
2557 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2558
2559 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2560
2561 * configure: Regenerate.
2562 * configure.ac: Remove check for strerror_r.
2563 * gdbsupport/common.m4: Check for strerror_r.
2564
2565 2019-11-01 Luis Machado <luis.machado@linaro.org>
2566
2567 PR gdb/25124
2568
2569 * arm-tdep.c (arm_per_objfile): Rename to ...
2570 (arm_per_bfd): ... this.
2571 (arm_objfile_data_key): Rename to ...
2572 (arm_bfd_data_key): ... this.
2573 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2574 data.
2575 (arm_record_special_symbol): Likewise.
2576
2577 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2578
2579 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2580 end.
2581 * c-typeprint.c (c_print_typedef): Likewise.
2582 * f-typeprint.c (f_print_typedef): Likewise.
2583 * m2-typeprint.c (m2_print_typedef): Likewise.
2584 * p-typeprint.c (pascal_print_typedef): Likewise.
2585 * rust-lang.c (rust_print_typedef): Likewise.
2586 * symtab.c (print_symbol_info): Print a newline after calling
2587 typedef_print.
2588
2589 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2590
2591 * symtab.c (info_module_cmdlist): New variable.
2592 (info_module_command): New function.
2593 (search_module_symbols): New function.
2594 (info_module_subcommand): New function.
2595 (struct info_modules_var_func_options): New struct.
2596 (info_modules_var_func_options_defs): New variable.
2597 (make_info_modules_var_func_options_def_group): New function.
2598 (info_module_functions_command): New function.
2599 (info_module_variables_command): New function.
2600 (info_module_var_func_command_completer): New function.
2601 (_initialize_symtab): Register new 'info module functions' and
2602 'info module variables' commands.
2603 * symtab.h (typedef symbol_search_in_module): New typedef.
2604 (search_module_symbols): Declare new function.
2605 * NEWS: Mention new commands.
2606
2607 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2608
2609 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2610 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2611 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2612 MODULES_DOMAIN.
2613 (scan_partial_symbols): Only create partial module symbols for non
2614 declarations.
2615 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2616 and MODULES_DOMAIN.
2617 * symtab.c (search_domain_name): Likewise.
2618 (search_symbols): Likewise.
2619 (print_symbol_info): Likewise.
2620 (symtab_symbol_info): Likewise.
2621 (info_modules_command): New function.
2622 (_initialize_symtab): Register 'info modules' command.
2623 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2624 * NEWS: Mention new 'info modules' command.
2625
2626 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2627
2628 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2629 and $_gdb_maint_setting_str.
2630
2631 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2632
2633 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2634 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2635 (str_value_from_setting, gdb_setting_str_internal_fn)
2636 (gdb_maint_setting_str_internal_fn): New functions.
2637 (_initialize_cli_cmds): Define the new convenience functions.
2638 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2639 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2640
2641 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2642
2643 * agent.c (set_can_use_agent): When the setting is turned on,
2644 look up agent symbols if we don't have them yet.
2645 (agent_new_objfile): Don't look up agent symbols when the agent
2646 setting is off.
2647
2648 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2649
2650 * config.in: Regenerate.
2651
2652 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2653
2654 * configure: Regenerate.
2655 * configure.ac: Check for strerror_r.
2656 * gdbsupport/common-utils.h (safe_strerror): Change return value
2657 to const char * and document that this function is now threadsafe.
2658 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2659 thread_local and call strerror_r, if available.
2660 * utils.c (perror_string): Update.
2661 (print_sys_errmsg): Update.
2662
2663 2019-10-31 Luis Machado <luis.machado@linaro.org>
2664
2665 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2666 objfile_key.
2667 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2668 objfile to fetch per-bfd data.
2669 (arm_find_exidx_entry): Likewise.
2670
2671 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2672
2673 * gdbsupport/agent.c (debug_agent): Change type to bool.
2674 (use_agent): Likewise.
2675 (all_agent_symbols_look_up): Likewise.
2676 (agent_loaded_p): Change return value to bool.
2677 (agent_look_up_symbols): Update.
2678 (agent_capability_check): Change return value to bool.
2679 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2680 (debug_agent): Change type to bool.
2681 (use_agent): Likewise.
2682 (agent_capability_check): Change return value to bool.
2683
2684 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2685
2686 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2687 (build_minimal_symbol_hash_tables): Code to clear the table moved
2688 to clear_minimal_symbol_hash_tables.
2689 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2690 when needed.
2691
2692 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * infcmd.c: Remove includes.
2695 * infrun.c: Remove includes.
2696
2697 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2700 (grow_vect): Remove declaration.
2701 (ada_type_of_array): Remove declaration.
2702 (ada_update_initial_language): Remove declaration.
2703 (ada_fold_name): Remove declaration.
2704 (ada_fill_in_ada_prototype): Remove declaration.
2705 (user_select_syms): Remove declaration.
2706 (get_selections): Remove declaration.
2707 (ada_tag_type): Remove declaration.
2708 (ada_value_tag): Remove declaration.
2709 (ada_is_others_clause): Remove declaration.
2710 (ada_in_variant): Remove declaration.
2711 (ada_value_struct_elt): Remove declaration.
2712 (ada_attribute_name): Remove declaration.
2713 (ada_system_address_type): Remove declaration.
2714 * ada-lang.c (ada_watch_location_expression): Make static.
2715 (GROW_VECT): Move here from ada-lang.h.
2716 (grow_vect): Make static.
2717 (ada_update_initial_language): Make static.
2718 (ada_fold_name): Make static.
2719 (ada_type_of_array): Make static.
2720 (encoded_ordered_before): Move up.
2721 (sort_choices): Move up.
2722 (print_signatures): Move up.
2723 (ada_print_symbol_signature): Move up.
2724 (get_selections): Move up and make static.
2725 (user_select_syms): Move up and make static.
2726 (ada_value_struct_elt): Move up and make static.
2727 (ada_tag_type): Make static.
2728 (ada_value_tag): Make static.
2729 (ada_is_others_clause): Make static.
2730 (ada_in_variant): Make static.
2731 (ada_attribute_name): Make static.
2732
2733 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * ada-lang.c: Remove includes.
2736 * ada-typeprint.c: Remove includes.
2737 * ada-valprint.c: Remove includes.
2738
2739 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * addrmap.c: Add static assertions of type size, moved from
2742 _initialize_addrmap.
2743 (_initialize_addrmap): Remove.
2744
2745 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2746
2747 * coffread.c (record_minimal_symbol): Update.
2748 (process_coff_symbol): Update.
2749 * dbxread.c (read_dbx_symtab): Update.
2750 * dwarf2read.c (add_partial_symbol): Update.
2751 (fixup_go_packaging): Update.
2752 (load_partial_dies): Update.
2753 (new_symbol): Update.
2754 * elfread.c (record_minimal_symbol): Change signature to use
2755 gdb::string_view instead of name+len.
2756 (elf_symtab_read): Update.
2757 (elf_rel_plt_read): Update.
2758 * mdebugread.c (parse_partial_symbols): Update.
2759 (handle_psymbol_enumerators): Update.
2760 (new_symbol): Update.
2761 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2762 to use gdb::string_view instead of name+len.
2763 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2764 * psympriv.h (add_psymbol_to_list): Likewise.
2765 * psymtab.c (add_psymbol_to_bcache): Likewise.
2766 (add_psymbol_to_list): Likewise.
2767 * stabsread.c (define_symbol): Update.
2768 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2769 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2770 (symbol_set_names): Likewise.
2771 * xcoffread.c (scan_xcoff_symtab): Update.
2772
2773 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2774
2775 * symtab.h (symbol_set_names): Document that copy_name must be
2776 set to true for non-nullterminated strings.
2777 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2778 linkage_name if the entry was not found and we need to demangle.
2779
2780 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2781
2782 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2783 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2784 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2785 * gdbsupport/gdb_binary_search.h: New file.
2786
2787 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2788
2789 * NEWS: Mention new --with-system-gdbinit-dir option.
2790 * config.in: Regenerate.
2791 * configure: Regenerate.
2792 * configure.ac: Add new option --with-system-gdbinit-dir.
2793 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2794 for a ".gdb" suffix.
2795 * main.c (get_init_files): Change system_gdbinit argument to
2796 a vector and return the files in SYSTEM_GDBINIT_DIR in
2797 addition to SYSTEM_GDBINIT.
2798 (captured_main_1): Update.
2799 (print_gdb_help): Update.
2800 * top.c (print_gdb_configuration): Also print the value of
2801 SYSTEM_GDBINIT_DIR.
2802
2803 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2804
2805 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2806 that takes gdb::string_view arguments.
2807
2808 2019-10-26 Tom de Vries <tdevries@suse.de>
2809
2810 * aarch64-linux-tdep.c: Fix typos in comments.
2811 * aarch64-tdep.c: Same.
2812 * ada-lang.c: Same.
2813 * amd64-nat.c: Same.
2814 * arc-tdep.c: Same.
2815 * arch/aarch64-insn.c: Same.
2816 * block.c: Same.
2817 * breakpoint.h: Same.
2818 * btrace.h: Same.
2819 * c-varobj.c: Same.
2820 * cli/cli-decode.c: Same.
2821 * cli/cli-script.c: Same.
2822 * cli/cli-utils.h: Same.
2823 * coff-pe-read.c: Same.
2824 * coffread.c: Same.
2825 * compile/compile-cplus-symbols.c: Same.
2826 * compile/compile-object-run.c: Same.
2827 * completer.c: Same.
2828 * corelow.c: Same.
2829 * cp-support.c: Same.
2830 * demangle.c: Same.
2831 * dwarf-index-write.c: Same.
2832 * dwarf2-frame.c: Same.
2833 * dwarf2-frame.h: Same.
2834 * eval.c: Same.
2835 * frame-base.h: Same.
2836 * frame.h: Same.
2837 * gdbcmd.h: Same.
2838 * gdbtypes.h: Same.
2839 * gnu-nat.c: Same.
2840 * guile/scm-objfile.c: Same.
2841 * i386-tdep.c: Same.
2842 * i386-tdep.h: Same.
2843 * infcall.c: Same.
2844 * infcall.h: Same.
2845 * linux-nat.c: Same.
2846 * m68k-tdep.c: Same.
2847 * macroexp.c: Same.
2848 * memattr.c: Same.
2849 * mi/mi-cmd-disas.c: Same.
2850 * mi/mi-getopt.h: Same.
2851 * mi/mi-main.c: Same.
2852 * minsyms.c: Same.
2853 * nat/aarch64-sve-linux-sigcontext.h: Same.
2854 * objfiles.h: Same.
2855 * ppc-linux-nat.c: Same.
2856 * ppc-linux-tdep.c: Same.
2857 * ppc-tdep.h: Same.
2858 * progspace.h: Same.
2859 * prologue-value.h: Same.
2860 * python/py-evtregistry.c: Same.
2861 * python/py-instruction.h: Same.
2862 * record-btrace.c: Same.
2863 * record-full.c: Same.
2864 * remote.c: Same.
2865 * rs6000-tdep.c: Same.
2866 * ser-tcp.c: Same.
2867 * sol-thread.c: Same.
2868 * sparc-sol2-tdep.c: Same.
2869 * sparc64-tdep.c: Same.
2870 * stabsread.c: Same.
2871 * symfile.c: Same.
2872 * symtab.h: Same.
2873 * target.c: Same.
2874 * tracepoint.c: Same.
2875 * tui/tui-data.h: Same.
2876 * tui/tui-io.c: Same.
2877 * tui/tui-win.c: Same.
2878 * tui/tui.c: Same.
2879 * unittests/rsp-low-selftests.c: Same.
2880 * user-regs.h: Same.
2881 * utils.c: Same.
2882 * utils.h: Same.
2883 * valarith.c: Same.
2884 * valops.c: Same.
2885 * valprint.c: Same.
2886 * valprint.h: Same.
2887 * value.c: Same.
2888 * value.h: Same.
2889 * varobj.c: Same.
2890 * x86-nat.h: Same.
2891 * xtensa-tdep.c: Same.
2892
2893 2019-10-25 Ali Tamur <tamur@google.com>
2894
2895 * charset.c (find_charset_names): Reflect API change.
2896
2897 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2898
2899 * symtab.c (struct demangled_name_entry): Change demangled name
2900 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2901 part of the struct anymore.
2902 (symbol_set_names): No longer obstack allocate + copy the demangled
2903 name, just store the allocated name from bfd.
2904
2905 2019-10-25 Tom Tromey <tromey@adacore.com>
2906
2907 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2908 (bsearch_cie_cmp, add_cie): Remove.
2909 (find_cie): Reimplement.
2910 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2911 (dwarf2_build_frame_info): Update.
2912
2913 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2914
2915 PR gdb/25126
2916 * symfile.c (reread_symbols): Call forget_cached_source_info to
2917 clear the stale source cache.
2918
2919 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2920
2921 * configure: Regenerate.
2922 * configure.ac: Remove code that sets python_has_threads.
2923
2924 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2925
2926 * config.in: Regenerate.
2927 * configure: Regenerate.
2928 * configure.ac: Remove the code that uses sed to get the python
2929 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2930
2931 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2932
2933 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2934 error paths.
2935
2936 2019-10-23 Tom Tromey <tom@tromey.com>
2937
2938 * arc-tdep.c: Remove ".." from include.
2939 * frv-tdep.c: Remove ".." from include.
2940 * lm32-tdep.c: Remove ".." from include.
2941 * microblaze-tdep.c: Remove ".." from include.
2942 * or1k-tdep.h: Remove ".." from include.
2943 * s12z-tdep.c: Remove ".." from include.
2944 * Makefile.in (OPCODES_CFLAGS): Add comment.
2945 (TOP_CFLAGS): New variable.
2946 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2947
2948 2019-10-23 Tom Tromey <tom@tromey.com>
2949
2950 * Makefile.in (READLINE_DIR): Update.
2951
2952 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2953
2954 * infcall.c (call_function_by_hand_dummy): Fix the function
2955 comment. And extract out a code section into...
2956 (reserve_stack_space): ...this new function.
2957
2958 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2959
2960 * infcall.c (value_arg_coerce): Remove an unused parameter.
2961 (call_function_by_hand_dummy): Update the call to
2962 'value_arg_coerce'.
2963
2964 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965
2966 * infcall.c (call_function_by_hand_dummy): Refactor.
2967
2968 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2969
2970 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2971
2972 2019-10-23 Tom Tromey <tom@tromey.com>
2973
2974 * configure: Rebuild.
2975 * configure.ac: Don't check for sigprocmask.
2976 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2977
2978 2019-10-23 Tom Tromey <tom@tromey.com>
2979
2980 * configure: Rebuild.
2981 * acinclude.m4: Use m4_include, not sinclude.
2982
2983 2019-10-23 Tom de Vries <tdevries@suse.de>
2984
2985 PR breakpoints/24687
2986 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2987
2988 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2989
2990 * symtab.c (struct demangled_name_entry) <language>: Change from
2991 bitfield to regular variable.
2992
2993 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2994
2995 * symtab.c (struct demangled_name_entry): Add a constructor.
2996 (free_demangled_name_entry): New function to call the destructor
2997 for demangled_name_entry.
2998 (create_demangled_names_hash): Pass free_demangled_name_entry to
2999 htab_create_alloc.
3000 (symbol_set_names): Call placement new for demangled_name_entry.
3001 * utils.c: No longer include xxhash.h here, now that fast_hash
3002 is inlined in the header.
3003 * utils.h: Instead, include it here.
3004
3005 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3006
3007 * Makefile.in: Link with libxxhash.
3008 * config.in: Regenerate.
3009 * configure: Regenerate.
3010 * configure.ac: Search for libxxhash.
3011 * utils.c (fast_hash): Use xxhash if present.
3012
3013 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3014
3015 * utils.h (fast_hash): New function.
3016 * symtab.c (hash_demangled_name_entry): Call new function
3017 fast_hash.
3018
3019 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3020
3021 * symtab.c (struct demangled_name_entry): Change type of mangled
3022 to gdb::string_view. Also adds a constructor that takes the
3023 mangled name.
3024 (hash_demangled_name_entry): Update.
3025 (eq_demangled_name_entry): Update.
3026 (free_demangled_name_entry): New function to call the destructor
3027 now that this is not a POD anymore.
3028 (create_demangled_names_hash): Pass free_demangled_name_entry to
3029 htab_create_alloc.
3030 (symbol_set_names): Update.
3031
3032 2019-10-21 Ali Tamur <tamu@google.com>
3033
3034 * dwarf2read.c (dir_index): Change type.
3035 (file_name_index): Likewise.
3036 (line_header::include_dir_at): Change comment and implementation on
3037 whether it is DWARF 5.
3038 (line_header::is_valid_file_index): New function.
3039 (line_header::file_name_at): Change comment and implementation on
3040 whether it is DWARF 5.
3041 (line_header::file_names): Change to private field renamed as
3042 m_file_names and introduce a new accessor method.
3043 (line_header::file_names_size): New method.
3044 (line_header::include_dirs): Change to private field and rename as
3045 m_include_dirs.
3046 (dw2_get_file_names_reader): Define local var at a smaller scope and
3047 reflect API change.
3048 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3049 (process_structure_scope): Likewise.
3050 (line_header::add_include_dir): Change message and reflect renaming.
3051 (line_header::add_file_name): Likewise.
3052 (read_formatted_entries): Handle DW_FORM_data16.
3053 (dwarf_decode_line_header): Fix line header length calculation.
3054 (psymtab_include_file_name): Change comment and API.
3055 (lnp_state_machine::m_file): Update comment and reflect type change.
3056 (lnp_state_machine::record_line): Reflect type change.
3057 (dwarf_decode_lines): Reflect API change.
3058 (file_file_name): Likewise.
3059 (file_full_name): Likewise.
3060
3061 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3062
3063 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3064
3065 2019-10-21 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3068
3069 2019-10-21 Tom Tromey <tom@tromey.com>
3070
3071 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3072 NM_H. Use AC_CONFIG_LINKS.
3073 * configure: Rebuild.
3074 * Makefile.in (NM_H): New variable.
3075 (generated_files): Add NM_H. Remove gcore.
3076 (nm.h, stamp-nmh): New targets.
3077
3078 2019-10-20 Tom Tromey <tom@tromey.com>
3079
3080 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3081 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3082 obsolete comment.
3083 (put_objfile_before): Now static.
3084
3085 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3086
3087 * gdbsupport/common-utils.h (startswith): Change return type to
3088 bool.
3089
3090 2019-10-19 Christian Biesinger <cbiesinger@google.com>
3091
3092 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3093 * breakpoint.c (bp_locations_compare): Rename to...
3094 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3095 (update_global_location_list): Use std::sort instead of qsort.
3096 * buildsym.c (compare_line_numbers): Rename to...
3097 (lte_is_less_than): ...this, and change to std::sort semantics.
3098 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3099 instead of qsort.
3100 * disasm.c (compare_lines): Rename to...
3101 (line_is_less_than): ...this, and change to std::sort semantics.
3102 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3103 of qsort.
3104 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3105 (fde_is_less_than): ...this, and change to std::sort semantics.
3106 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3107 * mdebugread.c (compare_blocks):
3108 (block_is_less_than): ...this, and change to std::sort semantics.
3109 (sort_blocks): Call std::sort instead of qsort.
3110 * objfiles.c (qsort_cmp): Rename to...
3111 (sort_cmp): ...this, and change to std::sort semantics.
3112 (update_section_map): Call std::sort instead of qsort.
3113 * remote.c (compare_pnums): Remove.
3114 (map_regcache_remote_table): Call std::sort instead of qsort.
3115 * utils.c (compare_positive_ints): Remove.
3116 * utils.h (compare_positive_ints): Remove.
3117 * xcoffread.c (compare_lte): Remove.
3118 (arrange_linetable): Call std::sort instead of qsort.
3119
3120 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3121
3122 * symfile.c (init_entry_point_info): Fix typo.
3123 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3124
3125 2019-10-18 Tom de Vries <tdevries@suse.de>
3126
3127 * aarch64-tdep.c: Fix typos in comments.
3128 * ada-lang.c: Same.
3129 * ada-tasks.c: Same.
3130 * alpha-tdep.c: Same.
3131 * alpha-tdep.h: Same.
3132 * amd64-nat.c: Same.
3133 * amd64-windows-tdep.c: Same.
3134 * arc-tdep.c: Same.
3135 * arc-tdep.h: Same.
3136 * arch-utils.c: Same.
3137 * arm-nbsd-tdep.c: Same.
3138 * arm-tdep.c: Same.
3139 * ax-gdb.c: Same.
3140 * blockframe.c: Same.
3141 * btrace.c: Same.
3142 * c-varobj.c: Same.
3143 * coff-pe-read.c: Same.
3144 * coffread.c: Same.
3145 * cris-tdep.c: Same.
3146 * darwin-nat.c: Same.
3147 * dbxread.c: Same.
3148 * dcache.c: Same.
3149 * disasm.c: Same.
3150 * dtrace-probe.c: Same.
3151 * dwarf-index-write.c: Same.
3152 * dwarf2-frame-tailcall.c: Same.
3153 * dwarf2-frame.c: Same.
3154 * dwarf2read.c: Same.
3155 * eval.c: Same.
3156 * exceptions.c: Same.
3157 * fbsd-tdep.c: Same.
3158 * findvar.c: Same.
3159 * frame.c: Same.
3160 * frv-tdep.c: Same.
3161 * gnu-v3-abi.c: Same.
3162 * go32-nat.c: Same.
3163 * h8300-tdep.c: Same.
3164 * hppa-tdep.c: Same.
3165 * i386-linux-tdep.c: Same.
3166 * i386-tdep.c: Same.
3167 * ia64-libunwind-tdep.c: Same.
3168 * ia64-tdep.c: Same.
3169 * infcmd.c: Same.
3170 * infrun.c: Same.
3171 * linespec.c: Same.
3172 * linux-nat.c: Same.
3173 * linux-thread-db.c: Same.
3174 * machoread.c: Same.
3175 * mdebugread.c: Same.
3176 * mep-tdep.c: Same.
3177 * mn10300-tdep.c: Same.
3178 * namespace.c: Same.
3179 * objfiles.c: Same.
3180 * opencl-lang.c: Same.
3181 * or1k-tdep.c: Same.
3182 * osabi.c: Same.
3183 * ppc-linux-nat.c: Same.
3184 * ppc-linux-tdep.c: Same.
3185 * ppc-sysv-tdep.c: Same.
3186 * printcmd.c: Same.
3187 * procfs.c: Same.
3188 * record-btrace.c: Same.
3189 * record-full.c: Same.
3190 * remote-fileio.c: Same.
3191 * remote.c: Same.
3192 * rs6000-tdep.c: Same.
3193 * s12z-tdep.c: Same.
3194 * score-tdep.c: Same.
3195 * ser-base.c: Same.
3196 * ser-go32.c: Same.
3197 * skip.c: Same.
3198 * sol-thread.c: Same.
3199 * solib-svr4.c: Same.
3200 * solib.c: Same.
3201 * source.c: Same.
3202 * sparc-nat.c: Same.
3203 * sparc-sol2-tdep.c: Same.
3204 * sparc-tdep.c: Same.
3205 * sparc64-tdep.c: Same.
3206 * stabsread.c: Same.
3207 * stack.c: Same.
3208 * symfile.c: Same.
3209 * symtab.c: Same.
3210 * target-descriptions.c: Same.
3211 * target-float.c: Same.
3212 * thread.c: Same.
3213 * utils.c: Same.
3214 * valops.c: Same.
3215 * valprint.c: Same.
3216 * value.c: Same.
3217 * varobj.c: Same.
3218 * windows-nat.c: Same.
3219 * xcoffread.c: Same.
3220 * xstormy16-tdep.c: Same.
3221 * xtensa-tdep.c: Same.
3222
3223 2019-10-17 Tom Tromey <tromey@adacore.com>
3224
3225 * configure: Rebuild.
3226 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3227 in AC_CONFIG_FILES invocation.
3228 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3229 new-style config.status invocation.
3230
3231 2019-10-17 Tom de Vries <tdevries@suse.de>
3232
3233 * arm-nbsd-nat.c: Fix typos in comments.
3234 * arm-tdep.c: Same.
3235 * darwin-nat-info.c: Same.
3236 * dwarf2read.c: Same.
3237 * elfread.c: Same.
3238 * event-top.c: Same.
3239 * findvar.c: Same.
3240 * gdbtypes.c: Same.
3241 * hppa-tdep.c: Same.
3242 * i386-tdep.c: Same.
3243 * jit.c: Same.
3244 * main.c: Same.
3245 * mdebugread.c: Same.
3246 * moxie-tdep.c: Same.
3247 * nto-procfs.c: Same.
3248 * osabi.c: Same.
3249 * ppc-linux-tdep.c: Same.
3250 * remote.c: Same.
3251 * riscv-tdep.c: Same.
3252 * s390-tdep.c: Same.
3253 * sh-tdep.c: Same.
3254 * sparc-linux-tdep.c: Same.
3255 * sparc-nat.c: Same.
3256 * stack.c: Same.
3257 * target-descriptions.c: Same.
3258 * top.c: Same.
3259 * varobj.c: Same.
3260
3261 2019-10-16 Tom Tromey <tom@tromey.com>
3262
3263 * objfiles.h (struct objfile) <original_name>: Now const.
3264
3265 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3266
3267 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3268 pass on to sigsetjmp's second argument.
3269 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3270
3271 2019-10-16 Keith Seitz <keiths@redhat.com>
3272
3273 PR gdb/23567
3274 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3275 sections whose size is greater than the file size.
3276
3277 2019-10-16 Jim Wilson <jimw@sifive.com>
3278
3279 * riscv-tdep.c (riscv_gcc_target_options): New.
3280 (riscv_gnu_triplet_regexp): New.
3281 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3282 set_gdbarch_gnu_triplet_regexp.
3283
3284 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3285
3286 * Makefile.in: Add xml-builtin.h.
3287 * features/feature_to_c.sh: Add an include for xml-builtin.h
3288 to ensure that the compiler checks that the types match.
3289 * xml-builtin.h: New file.
3290 * xml-support.c (fetch_xml_builtin): Add missing const.
3291 * xml-support.h: Remove declaration of xml_builtins.
3292
3293 2019-10-16 Tom de Vries <tdevries@suse.de>
3294
3295 PR tdep/25096
3296 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3297 (amd64_classify_aggregate): ... here.
3298 (amd64_classify_aggregate_field): Handled fiels of nested structs
3299 recursively.
3300
3301 2019-10-16 Tom de Vries <tdevries@suse.de>
3302
3303 PR tdep/24104
3304 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3305 that handles 'theclass'.
3306
3307 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3308
3309 * linespec.c (decode_digits_ordinary): Update comment.
3310 * make-target-delegates: No longer need to handle VEC case.
3311 * memrange.c (normalize_mem_ranges): Update comment.
3312 * namespace.c (add_using_directive): Update comment.
3313 * objc-lang.c (uniquify_strings): Update comment.
3314 * ppc-linux-nat.c (struct thread_points): Update comment.
3315 * probe.h (find_probes_in_objfile): Update comment.
3316 * target.h (enum flash_preserve_mode): Update comment.
3317 * varobj.c (varobj_restrict_range): Update comment.
3318 * varobj.h (varobj_list_children): Update comment.
3319
3320 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * Makefile.in: Remove references to vec.h and vec.c.
3323 * aarch64-tdep.c: No longer include vec.h.
3324 * ada-lang.c: Likewise.
3325 * ada-lang.h: Likewise.
3326 * arm-tdep.c: Likewise.
3327 * ax.h: Likewise.
3328 * breakpoint.h: Likewise.
3329 * charset.c: Likewise.
3330 * cp-support.h: Likewise.
3331 * dtrace-probe.c: Likewise.
3332 * dwarf2read.c: Likewise.
3333 * extension.h: Likewise.
3334 * gdb_bfd.c: Likewise.
3335 * gdbsupport/gdb_vecs.h: Likewise.
3336 * gdbsupport/vec.c: Remove.
3337 * gdbsupport/vec.h: Remove.
3338 * gdbthread.h: Likewise.
3339 * guile/scm-type.c: Likewise.
3340 * inline-frame.c: Likewise.
3341 * machoread.c: Likewise.
3342 * memattr.c: Likewise.
3343 * memrange.h: Likewise.
3344 * namespace.h: Likewise.
3345 * nat/linux-btrace.h: Likewise.
3346 * osdata.c: Likewise.
3347 * parser-defs.h: Likewise.
3348 * progspace.h: Likewise.
3349 * python/py-type.c: Likewise.
3350 * record-btrace.c: Likewise.
3351 * rust-exp.y: Likewise.
3352 * solib-target.c: Likewise.
3353 * stap-probe.c: Likewise.
3354 * target-descriptions.c: Likewise.
3355 * target-memory.c: Likewise.
3356 * target.h: Likewise.
3357 * varobj.c: Likewise.
3358 * varobj.h: Likewise.
3359 * xml-support.h: Likewise.
3360
3361 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3364 Update for new std::vector based implementation.
3365 (process_psymtab_comp_unit_reader): Likewise.
3366 (scan_partial_symbols): Likewise.
3367 (recursively_compute_inclusions): Likewise.
3368 (compute_compunit_symtab_includes): Likewise.
3369 (process_imported_unit_die): Likewise.
3370 (queue_and_load_dwo_tu): Likewise.
3371 (follow_die_sig_1): Likewise.
3372 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3373 (typedef dwarf2_per_cu_ptr): Remove.
3374 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3375 function.
3376 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3377 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3378 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3379 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3380 std::vector.
3381
3382 2019-10-15 Tom Tromey <tromey@adacore.com>
3383
3384 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3385 TID.
3386
3387 2019-10-15 Tom Tromey <tromey@adacore.com>
3388
3389 * windows-nat.c (windows_nat_target::fetch_registers)
3390 (windows_nat_target::store_registers): Rename "pid" to "tid".
3391
3392 2019-10-15 Tom Tromey <tromey@adacore.com>
3393
3394 * gdbarch.h, gdbarch.c: Rebuild.
3395 * gdbarch.sh (gcc_target_options): Change return type to
3396 std::string.
3397 * compile/compile.c (get_args): Update.
3398 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3399 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3400 std::string.
3401 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3402 std::string.
3403 * arch-utils.c (default_gcc_target_options): Return std::string.
3404 * arch-utils.h (default_gcc_target_options): Return std::string.
3405 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3406
3407 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3408
3409 * breakpoint.c (breakpoint_chain): Make static.
3410 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3411 of accessing breakpoint_chain.
3412
3413 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3414
3415 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3416 to a gdb::function_view and return value to bool.
3417 * breakpoint.h (iterate_over_breakpoints): Likewise.
3418 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3419 (pop_dummy_frame): Update.
3420 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3421 (gdbscm_breakpoints): Update.
3422 * python/py-breakpoint.c (build_bp_list): Update.
3423 (gdbpy_breakpoints): Update.
3424 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3425 Update.
3426 (bpfinishpy_handle_stop): Update.
3427 (bpfinishpy_handle_exit): Update.
3428 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3429 (svr4_update_solib_event_breakpoints): Update.
3430
3431 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3432
3433 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3434 when unwrapping single-field structs.
3435
3436 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3437
3438 * dwarf2read.c: Remove includes.
3439
3440 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3441
3442 * ui-out.c (ui_out::call_do_message): Silence
3443 -Wformat-nonliteral warning.
3444
3445 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3446
3447 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3448 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3449 include: readline/tilde.h.
3450
3451 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3452
3453 * remote.c (remote_target::get_trace_status): Remove declaration of
3454 trace_regblock_size.
3455
3456 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3457
3458 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3459 (show_user): Remove declaration of cmdlist.
3460 * cli/cli-cmds.h (max_user_call_depth): Declare.
3461 * cli/cli-script.c (execute_user_command): Remove declaration
3462 of max_user_call_depth.
3463
3464 2019-10-11 Jim Wilson <jimw@sifive.com>
3465
3466 * gdbsupport/print-utils.h (pulongest): Fix comment.
3467 (plongest): Likewise.
3468 (phex): Add missing comment, mention leading zeros.
3469 (phex_nz): Add mention of no leading zeros to comment.
3470
3471 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3472 plongest instead of unsigned long long cast.
3473
3474 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3475
3476 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3477 for external_editor_command and gdbtk_test.
3478
3479 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3480
3481 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3482 * varobj.c (varobjdebug): Move comment to...
3483 * varobj.h (varobjdebug): ...here, and declare.
3484
3485 2019-10-09 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3488 erase_data_content.
3489
3490 2019-10-09 Tom Tromey <tom@tromey.com>
3491
3492 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3493 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3494 * tui/tui-command.c (tui_cmd_window::resize)
3495 (tui_refresh_cmd_win): Update.
3496 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3497 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3498 * tui/tui-data.c (~tui_gen_win_info): Remove.
3499 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3500 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3501 (tui_redisplay_readline, tui_mld_flush)
3502 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3503 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3504 (tui_data_window::erase_data_content)
3505 (tui_data_item_window::rerender)
3506 (tui_data_item_window::refresh_window): Update.
3507 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3508 (box_win, tui_gen_win_info::make_window)
3509 (tui_gen_win_info::make_visible): Update.
3510 (tui_delete_win): Remove.
3511 * tui/tui-winsource.c
3512 (tui_source_window_base::do_erase_source_content): Update.
3513 (tui_show_source_line, tui_source_window_base::update_tab_width)
3514 (tui_source_window_base::update_exec_info): Update.
3515 * tui/tui-data.h (struct curses_deleter): New.
3516 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3517 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3518
3519 2019-10-09 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3522
3523 2019-10-09 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3526 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3527
3528 2019-10-09 Tom Tromey <tom@tromey.com>
3529
3530 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3531 window height directly.
3532 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3533 declare.
3534 * tui/tui-layout.c (tui_default_win_height): Remove.
3535 (tui_default_win_viewport_height): Remove.
3536
3537 2019-10-09 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui.h: Remove comments.
3540
3541 2019-10-09 Tom de Vries <tdevries@suse.de>
3542
3543 * python/lib/gdb/printer/bound_registers.py: Use
3544 '^builtin_type_bound128' as regexp argument for
3545 add_builtin_pretty_printer.
3546
3547 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3548
3549 * guile/guile.c (guile_extension_script_ops): Remove forward
3550 declaration and mark as static.
3551 (guile_script_ops): Likewise.
3552 (extension_language_guile): Move further down in the file so
3553 it can reference the definitions for guile_{extension_,}script_ops.
3554
3555 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3556
3557 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3558 except SORTL, DFLTCC, and KDSA.
3559
3560 2019-10-08 Tom Tromey <tromey@adacore.com>
3561
3562 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3563 (struct safe_symbol_file_add_args): Remove.
3564
3565 2019-10-08 Tom Tromey <tromey@adacore.com>
3566
3567 * windows-nat.c: Don't include buildsym-legacy.h.
3568
3569 2019-10-08 Tom Tromey <tromey@adacore.com>
3570
3571 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3572
3573 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3574
3575 * gdbtypes.c (overload_debug): Move comment to header.
3576 * gdbtypes.h (overload_debug): Declare.
3577 * valops.c: Remove declaration of overload_debug, instead
3578 include gdbtypes.h.
3579
3580 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3581
3582 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3583 through _().
3584 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3585 move comment...
3586 * language.h (lang_frame_mismatch_warn): ... here. Also add
3587 declaration.
3588 * top.c (lang_frame_mismatch_warn): Remove declaration.
3589 (check_frame_language_change): Pass lang_frame_mismatch_warn
3590 through _().
3591
3592 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3593
3594 * c-lang.h (vtbl_ptr_name): Declare.
3595 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3596 it from the header.
3597 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3598
3599 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3600
3601 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3602 gdb_static_assert.
3603
3604 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3605
3606 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3607 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3608 * ctfread.c: New file.
3609 * ctfread.h: New file.
3610 * elfread.c: Include ctfread.h.
3611 (struct elfinfo text_p): New member ctfsect.
3612 (elf_locate_sections): Mark CTF section.
3613 (elf_symfile_read): Call elfctf_build_psymtabs.
3614 * Makefile.in (LIBCTF): Add.
3615 (CLIBS): Use it.
3616 (CDEPS): Likewise.
3617 (DIST): Add ctfread.c.
3618
3619 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * ctfread.c (struct nextfield): Renamed to ...
3622 (struct ctf_nextfield): ... this.
3623 (struct field_info): Renamed to ...
3624 (strut ctf_field_info): ... this.
3625 (attach_fields_to_type): Update for renamed structures.
3626 (ctf_add_member_cb): Likewise.
3627 (ctf_add_enum_member_cb): Likewise.
3628 (process_struct_members): Likewise.
3629 (process_enum_type): Likewise.
3630
3631 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3632
3633 * tracectf.h: Rename, was ctf.h.
3634 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3635 * tracefile.c: Likewise.
3636 * tracepoint.c: Remove unused include ctf.h.
3637 * mi/mi-main.c: Likewise.
3638 * Makefile.in Replace ctf.c with tracectf.c.
3639
3640 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3641
3642 * version.in: Change version number to "9.0.50.DATE-git".
3643
3644 2019-10-03 Tom Tromey <tom@tromey.com>
3645
3646 PR rust/24976:
3647 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3648
3649 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3652 cp_search_name_hash.
3653 * NEWS: Add entry about nested function support.
3654
3655 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3656 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3659 for nested static variables when searchin VAR_DOMAIN.
3660 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3661 global scope, update comment.
3662 (add_partial_subprogram): Call add_partial_subprogram recursively
3663 for nested subroutines when processinng Fortran.
3664 (load_partial_dies): Process the child entities of a subprogram
3665 when processing Fortran.
3666 (partial_die_parent_scope): Handle building scope
3667 for Fortran nested functions.
3668 (process_die): Record that nested functions have a scope.
3669 (new_symbol): Always record Fortran subprograms on the global
3670 symbol list.
3671 (determine_prefix): How to build the prefix for Fortran
3672 subprograms.
3673
3674 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3677 have just sent the thread a SIGSTOP and are waiting for it to
3678 arrive.
3679
3680 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 * btrace.c (btrace_add_pc): Remove whitespace before the template
3683 parameter in 'std::vector <...>'.
3684 (parse_xml_btrace_block): Likewise.
3685 (btrace_maint_decode_pt): Likewise.
3686 (btrace_maint_update_packets): Likewise.
3687 (btrace_maint_print_packets): Likewise.
3688 * btrace.h (struct btrace_maint_info): Likewise.
3689 * dwarf2read.c (struct type_unit_group): Likewise.
3690 (build_type_psymtabs_reader): Likewise.
3691 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3692 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3693 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3694
3695 2019-10-03 Tom de Vries <tdevries@suse.de>
3696
3697 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3698 the first line of the help text for set/show style metadata.
3699
3700 2019-10-02 Tom Tromey <tromey@adacore.com>
3701
3702 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3703 * gdbsupport/common-inferior.c: New file.
3704 * infcmd.c (startup_with_shell): Don't define.
3705 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3706 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3707 * inferior.h (startup_with_shell): Don't declare.
3708
3709 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3710
3711 * gdbsupport/gdb_assert.h: Include errors.h.
3712 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3713
3714 2019-10-02 Tom Tromey <tromey@adacore.com>
3715
3716 * NEWS: Add $_ada_exception entry.
3717 * ada-lang.c (struct ada_catchpoint): Add constructor.
3718 <m_kind>: New member.
3719 (allocate_location_exception, re_set_exception): Remove
3720 "ex" parameter.
3721 (should_stop_exception): Compute $_ada_exception.
3722 (check_status_exception, print_it_exception)
3723 (print_one_exception, print_mention_exception): Remove
3724 "ex" parameter.
3725 (allocate_location_catch_exception, re_set_catch_exception)
3726 (check_status_exception, print_it_catch_exception)
3727 (print_one_catch_exception, print_mention_catch_exception)
3728 (print_recreate_catch_exception)
3729 (allocate_location_catch_exception_unhandled)
3730 (re_set_catch_exception_unhandled)
3731 (check_status_exception, print_it_catch_exception_unhandled)
3732 (print_one_catch_exception_unhandled)
3733 (print_mention_catch_exception_unhandled)
3734 (print_recreate_catch_exception_unhandled)
3735 (allocate_location_catch_assert, re_set_catch_assert)
3736 (check_status_assert, print_it_catch_assert)
3737 (print_one_catch_assert, print_mention_catch_assert)
3738 (print_recreate_catch_assert)
3739 (allocate_location_catch_handlers, re_set_catch_handlers)
3740 (check_status_handlers, print_it_catch_handlers)
3741 (print_one_catch_handlers, print_mention_catch_handlers)
3742 (print_recreate_catch_handlers): Remove.
3743 (create_ada_exception_catchpoint): Update.
3744 (initialize_ada_catchpoint_ops): Update.
3745
3746 2019-10-02 Tom Tromey <tromey@adacore.com>
3747
3748 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3749 (create_excep_cond_exprs): Simplify exception string computation.
3750 (ada_exception_catchpoint_cond_string): Likewise.
3751
3752 2019-10-02 Tom Tromey <tromey@adacore.com>
3753
3754 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3755 * ada-lang.c (lesseq_defined_than): Handle
3756 LOC_STATIC.
3757 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3758 parameter.
3759 (dwarf2_has_info): Likewise.
3760 (new_symbol): Set maybe_copied on symbol when
3761 appropriate.
3762 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3763 parameter.
3764 <can_copy>: New member.
3765 * elfread.c (record_minimal_symbol): Set maybe_copied
3766 on symbol when appropriate.
3767 (elf_symfile_read): Update call to dwarf2_has_info.
3768 * minsyms.c (lookup_minimal_symbol_linkage): New
3769 function.
3770 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3771 * symtab.c (get_symbol_address, get_msymbol_address):
3772 New functions.
3773 * symtab.h (get_symbol_address, get_msymbol_address):
3774 Declare.
3775 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3776 maybe_copied.
3777 (struct symbol, struct minimal_symbol) <maybe_copied>:
3778 New member.
3779
3780 2019-10-02 Tom Tromey <tromey@adacore.com>
3781
3782 * source.c (struct current_source_location): New.
3783 (current_source_key): New global.
3784 (current_source_symtab, current_source_line)
3785 (current_source_pspace): Remove.
3786 (get_source_location): New function.
3787 (get_current_source_symtab_and_line)
3788 (set_default_source_symtab_and_line)
3789 (set_current_source_symtab_and_line)
3790 (clear_current_source_symtab_and_line, select_source_symtab)
3791 (info_source_command, print_source_lines_base)
3792 (info_line_command, search_command_helper, _initialize_source):
3793 Update.
3794
3795 2019-10-02 Tom Tromey <tromey@adacore.com>
3796
3797 * source.c (select_source_symtab): Don't call
3798 decode_line_with_current_source.
3799
3800 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * symtab.c (lookup_global_symbol): Search global block.
3803
3804 2019-10-02 Tom Tromey <tromey@adacore.com>
3805
3806 * coffread.c (process_coff_symbol): Update.
3807 * dwarf2read.c (var_decode_location, new_symbol): Update.
3808 * mdebugread.c (parse_symbol): Update.
3809 * objfiles.c (relocate_one_symbol): Update.
3810 * stabsread.c (define_symbol, fix_common_block)
3811 (scan_file_globals): Update.
3812 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3813 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3814 * xcoffread.c (process_xcoff_symbol): Update.
3815
3816 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3817
3818 * MAINTAINERS: Update my email address.
3819
3820 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3821
3822 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3823 std::vector.
3824 (build_type_psymtabs_reader): Update for std::vector.
3825 (build_type_psymtab_dependencies): Likewise.
3826 * dwarf2read.h: Remove use of DEF_VEC_P.
3827 (typedef sig_type_ptr): Delete.
3828
3829 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3830
3831 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3832 to std::vector.
3833 (btrace_maint_decode_pt): Likewise, and move allocation of the
3834 vector outside of the loop.
3835 (btrace_maint_update_packets): Update to handle change from VEC to
3836 std::vector.
3837 (btrace_maint_print_packets): Likewise.
3838 (maint_info_btrace_cmd): Likewise.
3839 * btrace.h: Remove use of DEF_VEC_O.
3840 (typedef btrace_pt_packet_s): Delete.
3841 (struct btrace_maint_info) <packets>: Change fromm VEC to
3842 std::vector.
3843 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3844
3845 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3846
3847 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3848 make accesses into the vector constant references.
3849 (btrace_add_pc): Update for std::vector.
3850 (btrace_stitch_bts): Likewise.
3851 (parse_xml_btrace_block): Likewise.
3852 (btrace_maint_update_packets): Likewise.
3853 (btrace_maint_print_packets): Likewise.
3854 (maint_info_btrace_cmd): Likewise.
3855 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3856 std::vector.
3857 (btrace_data::empty): Likewise.
3858 (btrace_data_append): Likewise.
3859 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3860 (typedef btrace_block_s): Delete.
3861 (struct btrace_block): Add constructor.
3862 (struct btrace_data_bts) <blocks>: Change to std::vector.
3863 * nat/linux-btrace.c (perf_event_read_bts): Update for
3864 std::vector.
3865 (linux_read_bts): Likewise.
3866
3867 2019-10-01 Tom Tromey <tom@tromey.com>
3868
3869 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3870
3871 2019-10-01 Tom Tromey <tom@tromey.com>
3872
3873 * stack.c (print_frame, info_frame_command_core): Use
3874 styled_string.
3875 * linux-thread-db.c (try_thread_db_load_1)
3876 (try_thread_db_load_from_pdir_1): Use styled_string.
3877 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3878 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3879 (maybe_print_unsupported_script_warning)
3880 (maybe_print_script_not_found_warning): Use styled_string.
3881 * ada-lang.c (user_select_syms): Use styled_string.
3882
3883 2019-10-01 Tom Tromey <tom@tromey.com>
3884
3885 * p-lang.c (pascal_printstr): Use metadata style.
3886 * value.c (show_convenience): Use metadata style.
3887 * valprint.c (valprint_check_validity, val_print_optimized_out)
3888 (val_print_not_saved, val_print_unavailable)
3889 (val_print_invalid_address, generic_val_print, val_print)
3890 (value_check_printable, val_print_array_elements): Use metadata
3891 style.
3892 * ui-out.h (class ui_out) <field_fmt>: New overload.
3893 <do_field_fmt>: Add style parameter.
3894 * ui-out.c (ui_out::field_fmt): New overload.
3895 * typeprint.c (type_print_unknown_return_type)
3896 (val_print_not_allocated, val_print_not_associated): Use metadata
3897 style.
3898 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3899 parameter.
3900 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3901 * tracepoint.c (tvariables_info_1): Use metadata style.
3902 * stack.c (print_frame_arg, print_frame_info, print_frame)
3903 (info_frame_command_core): Use metadata style.
3904 * skip.c (info_skip_command): Use metadata style.
3905 * rust-lang.c (rust_print_enum): Use metadata style.
3906 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3907 metadata style.
3908 * python/py-framefilter.c (py_print_single_arg): Use metadata
3909 style.
3910 * printcmd.c (do_one_display, print_variable_and_value): Use
3911 metadata style.
3912 * p-valprint.c (pascal_val_print)
3913 (pascal_object_print_value_fields): Use metadata style.
3914 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3915 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3916 parameter.
3917 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3918 * m2-valprint.c (m2_print_long_set): Use metadata style.
3919 * m2-typeprint.c (m2_print_type): Use metadata style.
3920 * infcmd.c (print_return_value_1): Use metadata style.
3921 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3922 * f-valprint.c (info_common_command_for_block): Use metadata
3923 style.
3924 * f-typeprint.c (f_type_print_base): Use metadata style.
3925 * expprint.c (print_subexp_standard): Use metadata style.
3926 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3927 * cli/cli-style.h (class cli_style_option): Add constructor.
3928 (metadata_style): Declare.
3929 * cli/cli-style.c (metadata_style): New global.
3930 (_initialize_cli_style): Register metadata style.
3931 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3932 parameter.
3933 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3934 * c-typeprint.c (c_type_print_base_struct_union)
3935 (c_type_print_base_1): Use metadata style.
3936 * breakpoint.c (watchpoint_value_print)
3937 (print_one_breakpoint_location): Use metadata style.
3938 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3939 style.
3940 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3941 style.
3942 * ada-valprint.c (val_print_packed_array_elements, printstr)
3943 (print_field_values, ada_val_print_ref, ada_val_print): Use
3944 metadata style.
3945 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3946 style.
3947 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3948 style.
3949 * ada-lang.c (user_select_syms): Use metadata style.
3950
3951 2019-10-01 Tom Tromey <tom@tromey.com>
3952
3953 * cli/cli-cmds.c (pwd_command): Style output.
3954
3955 2019-10-01 Pedro Alves <palves@redhat.com>
3956 Tom Tromey <tom@tromey.com>
3957
3958 * symtab.c (print_symbol_info): Use %ps.
3959 (print_msymbol_info): Use %ps.
3960 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3961 * printcmd.c (print_variable_and_value): Use %ps.
3962 * macrocmd.c (show_pp_source_pos): Use %ps.
3963 * infrun.c (print_exited_reason): Use ui_out::message.
3964 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3965 (describe_other_breakpoints): Use ui_out::message and new
3966 formats.
3967 (say_where): Use new formats.
3968 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3969 and new formats.
3970
3971 2019-10-01 Pedro Alves <palves@redhat.com>
3972 Tom Tromey <tom@tromey.com>
3973
3974 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3975 (test_gdb_formats): New function.
3976 (run_tests): Call it.
3977 (test_format_specifier): Update.
3978 * utils.h (fputs_filtered): Update comment.
3979 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3980 (fputs_styled_unfiltered): Declare.
3981 * utils.c (fputs_styled_unfiltered): New function.
3982 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3983 (vfprintf_filtered): Update.
3984 (vfprintf_unfiltered, vprintf_filtered): Update.
3985 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3986 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3987 disallow_ui_out_field>: New constants.
3988 (enum class field_kind): New.
3989 (struct base_field_s, struct signed_field_s): New.
3990 (signed_field): New function.
3991 (struct string_field_s): New.
3992 (string_field): New function.
3993 (struct styled_string_s): New.
3994 (styled_string): New function.
3995 (class ui_out) <message>: Add comment.
3996 <vmessage, call_do_message>: New methods.
3997 <do_message>: Add style parameter.
3998 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3999 methods.
4000 (ui_out::message): Rewrite.
4001 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4002 parameter.
4003 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4004 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4005 gdb_extensions parameter.
4006 (class format_piece): Add parameter to constructor.
4007 (n_int_args): New field.
4008 * gdbsupport/format.c (format_pieces::format_pieces): Add
4009 gdb_extensions parameter. Handle '*'.
4010 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4011 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4012 vfprintf_styled_no_gdbfmt.
4013 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4014 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4015 unfiltered output.
4016 * ui-style.h (struct ui_file_style) <ptr>: New method.
4017
4018 2019-10-01 Tom Tromey <tom@tromey.com>
4019
4020 * unittests/format_pieces-selftests.c: Update. Add final format.
4021 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4022 empty literal pieces.
4023
4024 2019-10-01 Tom Tromey <tom@tromey.com>
4025
4026 * ui-out.h (enum class ui_out_style_kind): Remove.
4027 (class ui_out) <field_string, field_stsream, do_field_string>:
4028 Change type of "style".
4029 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4030 (ui_out::field_string): Update.
4031 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4032 of "style".
4033 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4034 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4035 * stack.c (print_frame_arg, print_frame_info, print_frame):
4036 Update.
4037 * source.c (print_source_lines_base): Update.
4038 * solib.c (info_sharedlibrary_command): Update.
4039 * skip.c (info_skip_command): Update.
4040 * record-btrace.c (btrace_call_history_src_line)
4041 (btrace_call_history): Update.
4042 * python/py-framefilter.c (py_print_frame): Update.
4043 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4044 "style".
4045 * mi/mi-out.c (mi_ui_out::do_table_header)
4046 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4047 (mi_ui_out::do_field_string): Update.
4048 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4049 Update.
4050 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4051 "style".
4052 * cli-out.c (cli_ui_out::do_table_header)
4053 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4054 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4055 (cli_ui_out::do_field_fmt): Update.
4056 * breakpoint.c (print_breakpoint_location): Update.
4057 (update_static_tracepoint): Update.
4058
4059 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4060
4061 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4062 conversion of gdb_datadir.
4063 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4064 remove not needed c_str ().
4065
4066 2019-09-30 Ali Tamur <tamur@google.com>
4067
4068 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4069 (dwarf2_string_attr): Likewise.
4070
4071 2019-09-30 Ali Tamur <tamur@google.com>
4072
4073 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4074 (process_full_type_unit): Likewise.
4075 (dump_die_shallow): Likewise.
4076 (cu_debug_loc_section): Likewise.
4077
4078 2019-09-28 Christian Biesinger <cbiesinger@google.com>
4079
4080 * minsyms.c (compare_minimal_symbols): Rename to...
4081 (minimal_symbol_is_less_than): ...this, and adjust to STL
4082 conventions (return bool, take arguments as references)
4083 (minimal_symbol_reader::install): Call std::sort instead
4084 of qsort.
4085
4086 2019-09-29 Christian Biesinger <cbiesinger@google.com>
4087
4088 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4089 hash and why.
4090 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4091 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4092
4093 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4094
4095 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4096 * psympriv.h (add_psymbol_to_list): Move comment here and update
4097 it.
4098
4099 2019-09-29 Tom de Vries <tdevries@suse.de>
4100
4101 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4102 Use $tmpdir/$(basename "$output_file").dwz instead of
4103 "${output_file}.dwz".
4104
4105 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4106
4107 PR gdb/25045
4108 * hppa-linux-nat.c: Include gdbarch.h.
4109
4110 2019-09-26 Christian Biesinger <cbiesinger@google.com>
4111
4112 * blockframe.c (find_pc_partial_function): Change return type to bool.
4113 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4114 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4115 (stub_gnu_ifunc_resolve_name): Likewise.
4116 * symtab.c (compare_filenames_for_search): Likewise.
4117 (compare_glob_filenames_for_search): Likewise.
4118 (matching_obj_sections): Likewise.
4119 (symbol_matches_domain): Likewise.
4120 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4121 (find_line_pc): Change return type to bool.
4122 (find_line_pc_range): Likewise.
4123 (producer_is_realview): Likewise.
4124 * symtab.h (symbol_matches_domain): Likewise.
4125 (find_pc_partial_function): Likewise.
4126 (find_pc_line_pc_range): Likewise.
4127 (in_gnu_ifunc_stub): Likewise.
4128 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4129 (find_line_pc): Likewise.
4130 (find_line_pc_range): Likewise.
4131 (matching_obj_sections): Likewise.
4132 (find_line_symtab): Change out parameter to bool.
4133 (producer_is_realview): Change return type to bool.
4134 (compare_filenames_for_search): Likewise.
4135 (compare_glob_filenames_for_search): Likewise.
4136
4137 2019-09-26 Tom Tromey <tom@tromey.com>
4138
4139 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4140 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4141 * gdb_usleep.h: Remove.
4142 * gdb_usleep.c: Remove.
4143 * utils.c: Don't include gdb_usleep.h.
4144
4145 2019-09-26 Tom Tromey <tromey@adacore.com>
4146
4147 * python/py-type.c (type_to_type_object): Call check_typedef
4148 for stub types.
4149
4150 2019-09-26 Tom Tromey <tom@tromey.com>
4151
4152 * utils.h (initialize_utils): Don't declare.
4153 * top.c (gdb_init): Don't call initialize_utils.
4154 * utils.c (initialize_utils): Remove. Move contents...
4155 (_initialize_utils): ... here.
4156
4157 2019-09-25 Tom Tromey <tom@tromey.com>
4158
4159 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4160 * utils.h (make_hex_string): Don't declare.
4161 * utils.c (make_hex_string): Remove.
4162
4163 2019-09-24 Tom de Vries <tdevries@suse.de>
4164
4165 PR gdb/23815
4166 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4167 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4168
4169 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4170
4171 * NEWS: Mention new simulator port for PRU.
4172
4173 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4174
4175 * ada-exp.y (write_object_remaining): Update.
4176 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4177 and eliminate the static buffer.
4178 (ada_decode_symbol): Update.
4179 (ada_la_decode): Update.
4180 (ada_sniff_from_mangled_name): Update.
4181 (is_valid_name_for_wild_match): Update.
4182 (ada_lookup_name_info::matches): Update and simplify.
4183 (name_matches_regex): Update.
4184 (ada_add_global_exceptions): Update.
4185 * ada-lang.h (ada_decode): Update signature.
4186 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4187 * dwarf-index-write.c (debug_names::insert): Update.
4188
4189 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4190
4191 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4192 formatting.
4193
4194 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4195
4196 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4197 Change "nonzero" to "true" in documentation.
4198
4199 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4200
4201 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4202 (_initialize_darwin_solib): Don't set
4203 darwin_so_ops.lookup_lib_global_symbol.
4204 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4205 set_gdbarch_iterate_over_objfiles_in_search_order.
4206 (elf_lookup_lib_symbol): Rename to...
4207 (svr4_iterate_over_objfiles_in_search_order): this, and update
4208 to iterate semantics.
4209 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4210 * solib.c (solib_global_lookup): Remove.
4211 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4212 (solib_global_lookup): Remove.
4213 * symtab.c (lookup_global_or_static_symbol): Remove call to
4214 solib_global_lookup.
4215
4216 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4217
4218 * NEWS: Move entries about default MI version now being
4219 version 3, and about the GDB/MI fix for multi-location
4220 breakpoints to the "since GDB 8.3" section.
4221
4222 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4223
4224 GDB 8.3.1 released.
4225
4226 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4227
4228 * NEWS: Mention that Cell/B.E. debugging support was removed.
4229 * MAINTAINERS: Remove spu target.
4230
4231 * config/djgpp/fnchange.lst: Remove entries for removed files.
4232
4233 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4234 spu-multiarch.o, and spu-tdep.o.
4235 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4236 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4237 spu-multiarch.c, and spu-tdep.c.
4238 * spu-linux-nat.c: Remove file.
4239 * spu-multiarch.c: Remove file.
4240 * spu-tdep.c: Remove file.
4241 * spu-tdep.h: Remove file.
4242 * solib-spu.c: Remove file.
4243 * solib-spu.h: Remove file.
4244
4245 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4246 * configure.nat (spu-linux): Remove.
4247 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4248 solib-multiarch.o from gdb_target_obs.
4249 (spu*-*-*): Remove.
4250
4251 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4252 feature flag.
4253 (ppc_linux_no_features): Update.
4254 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4255 Cell/B.E. support.
4256 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4257 (tdesc_powerpc_cell64l): Likewise.
4258 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4259 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4260 Cell/B.E. support.
4261 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4262 Do not include "features/rs6000/powerpc-cell32l.c" or
4263 "features/rs6000/powerpc-cell64l.c".
4264 (ppc_linux_spu_section): Remove.
4265 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4266 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4267 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4268 (ppc_linux_spe_context_lookup): Remove.
4269 (ppc_linux_spe_context_inferior_created): Remove.
4270 (ppc_linux_spe_context_solib_loaded): Remove.
4271 (ppc_linux_spe_context_solib_unloaded): Remove.
4272 (ppc_linux_spe_context): Remove.
4273 (struct ppu2spu_cache): Remove.
4274 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4275 (struct ppu2spu_data): Remove.
4276 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4277 ppu2spu_unwind): Remove.
4278 (ppc_linux_init_abi): Remove Cell/B.E. support.
4279 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4280
4281 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4282 (rs6000/powerpc-cell64l-expedite): Likewise
4283 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4284 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4285 rs6000/powerpc-cell64l.xml.
4286 * features/rs6000/powerpc-cell32l.xml: Remove.
4287 * features/rs6000/powerpc-cell64l.xml: Likewise.
4288 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4289 * features/rs6000/powerpc-cell64l.c: Likewise.
4290 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4291 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4292 * regformats/reg-spu.dat: Remove.
4293
4294 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4295 * corelow.c (struct spuid_list): Remove.
4296 (add_to_spuid_list): Remove.
4297 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4298 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4299 (remote_protocol_features): Remove associated entries.
4300 (_initialize_remote): No longer initialize them.
4301 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4302 * linux-nat.c (SPUFS_MAGIC): Remove.
4303 (linux_proc_xfer_spu): Remove.
4304 (spu_enumerate_spu_ids): Remove.
4305 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4306 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4307 (linux_make_corefile_notes): No longer call it.
4308
4309 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4310 (cooked_write_test): Likewise.
4311
4312 2019-09-20 Tom Tromey <tom@tromey.com>
4313
4314 * NEWS: Mention case-sensitivity of TUI commands.
4315 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4316 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4317 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4318
4319 2019-09-20 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-source.c (tui_source_window::set_contents): Use
4322 make_unique_xstrdup.
4323 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4324 make_unique_xstrdup.
4325
4326 2019-09-20 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-data.c: Remove separator comments.
4329 * tui/tui-layout.c: Remove separator comments.
4330 * tui/tui-win.c: Remove separator comments.
4331 * tui/tui-wingeneral.c: Remove separator comments.
4332
4333 2019-09-20 Tom Tromey <tom@tromey.com>
4334
4335 * tui/tui.h (strcat_to_buf): Don't declare.
4336 * tui/tui.c (strcat_to_buf): Remove.
4337
4338 2019-09-20 Tom Tromey <tom@tromey.com>
4339
4340 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4341 from "fullname".
4342 * tui/tui-source.c (tui_source_window::set_contents)
4343 (tui_source_window::location_matches_p)
4344 (tui_source_window::maybe_update): Update.
4345
4346 2019-09-20 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4349 Update.
4350 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4351 prefix.
4352 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4353 (tui_data_window::line_from_reg_element_no)
4354 (tui_data_window::first_reg_element_no_inline)
4355 (tui_data_window::show_registers)
4356 (tui_data_window::show_register_group)
4357 (tui_data_window::display_registers_from)
4358 (tui_data_window::display_registers_from_line)
4359 (tui_data_window::first_data_item_displayed)
4360 (tui_data_window::delete_data_content_windows)
4361 (tui_data_window::erase_data_content)
4362 (tui_data_window::do_scroll_vertical)
4363 (tui_data_window::refresh_window)
4364 (tui_data_window::check_register_values): Update.
4365
4366 2019-09-20 Tom Tromey <tom@tromey.com>
4367
4368 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4369 (struct tui_locator_window) <full_name, proc_name>: Now
4370 std::string.
4371 * tui/tui-stack.c (tui_locator_window::make_status_line)
4372 (tui_locator_window::set_locator_fullname)
4373 (tui_locator_window::set_locator_info): Update.
4374 * tui/tui-source.c (tui_source_window::set_contents)
4375 (tui_source_window::showing_source_p): Update.
4376
4377 2019-09-20 Tom Tromey <tom@tromey.com>
4378
4379 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4380 Don't call tui_locator_win_info_ptr.
4381
4382 2019-09-20 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4385
4386 2019-09-20 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4389 height for locator.
4390 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4391 * tui/tui-layout.c (show_source_disasm_command, show_data)
4392 (show_source_or_disasm_and_command): Use 1 as height for locator.
4393
4394 2019-09-20 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui.c (tui_enable): Update.
4397 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4398 Update.
4399 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4400 Update.
4401 * tui/tui-data.c (win_resized): Now bool.
4402 (tui_win_resized): Return bool.
4403 (tui_set_win_resized_to): Accept a bool.
4404
4405 2019-09-20 Tom Tromey <tom@tromey.com>
4406
4407 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4408 Change type of "refresh_values_only".
4409 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4410 type of "refresh_values_only".
4411
4412 2019-09-20 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4415 std::string.
4416 (tui_disassemble): Add "pos" parameter.
4417 (tui_disasm_window::set_contents): Simplify.
4418
4419 2019-09-20 Tom Tromey <tom@tromey.com>
4420
4421 * tui/tui-winsource.h (struct tui_source_window_base)
4422 <show_source_content>: Now private.
4423 * tui/tui-winsource.c
4424 (tui_source_window_base::show_source_content): Don't handle empty
4425 content case.
4426
4427 2019-09-20 Tom Tromey <tom@tromey.com>
4428
4429 * tui/tui-layout.c (show_source_disasm_command)
4430 (show_source_or_disasm_and_command): Don't call
4431 show_source_content.
4432
4433 2019-09-20 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4436 Declare.
4437 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4438 from tui_make_status_line.
4439 (tui_locator_window::rerender): Update.
4440
4441 2019-09-20 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4444 (tui_locator_window::rerender): Update.
4445
4446 2019-09-20 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-winsource.h (struct tui_source_window_base)
4449 <~tui_source_window_base>: Don't declare.
4450 <fullname>: Remove.
4451 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4452 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4453 member.
4454 * tui/tui-source.c (tui_source_window::set_contents): Update.
4455 (tui_source_window::location_matches_p)
4456 (tui_source_window::maybe_update): Update.
4457
4458 2019-09-20 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-winsource.h (~tui_source_element): Remove.
4461 (tui_source_element): Update.
4462 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4463 * tui/tui-winsource.c (tui_show_source_line): Update.
4464 * tui/tui-source.c (tui_source_window::set_contents): Update.
4465 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4466
4467 2019-09-20 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4470 declare.
4471 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4472 tui_clear_source_windows_detail.
4473 * tui/tui-winsource.h (struct tui_source_window_base)
4474 <clear_detail>: Don't declare.
4475 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4476 Remove.
4477 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4478
4479 2019-09-20 Tom Tromey <tromey@adacore.com>
4480
4481 PR ada/24919:
4482 * block.c (contained_in): Fix final return value.
4483
4484 2019-09-20 Alan Modra <amodra@gmail.com>
4485
4486 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4487 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4488 (read_indirect_string_from_dwz): Use bfd accessor.
4489 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4490 * machoread.c (macho_symfile_read_all_oso): Likewise.
4491 * solib.c (solib_bfd_open): Likewise.
4492
4493 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4494
4495 * eval.c: Move declaration of overload_resolution to...
4496 * value.h: ...here.
4497
4498 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4499
4500 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4501 * arm-linux-tdep.c: Likewise.
4502 * arm-nbsd-nat.c: Likewise.
4503 * arm-tdep.h: Declare arm_apcs_32.
4504 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4505
4506 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4507
4508 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4509 * dwarf2read.h: Declare dwarf_always_disassemble.
4510
4511 2019-09-19 Tom de Vries <tdevries@suse.de>
4512
4513 PR gdb/25009
4514 * source-cache.c (source_cache::ensure): Catch exception thrown during
4515 construction of the highlighter.
4516
4517 2019-09-18 Alan Modra <amodra@gmail.com>
4518
4519 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4520 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4521 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4522 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4523 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4524 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4525 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4526 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4527 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4528 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4529 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4530 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4531 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4532 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4533 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4534 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4535 * mi/mi-interp.c: Update throughout for bfd section macro and
4536 function changes.
4537 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4538 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4539
4540 2019-09-18 Tom Tromey <tom@tromey.com>
4541
4542 * NEWS: Add entry.
4543 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4544 call rl_initialize.
4545 (tui_enable): Do not call rl_initialize.
4546
4547 2019-09-18 Christian Groessler <chris@groessler.org>
4548
4549 * alpha-linux-nat.c: Include gdbarch.h.
4550
4551 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4552
4553 * ui-file.c: Include cli/cli-style.h.
4554 (term_cli_styling): Remove cli_styling declaration.
4555
4556 2019-09-18 Alan Modra <amodra@gmail.com>
4557
4558 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4559 to bfd_asymbol_section.
4560
4561 2019-09-18 Alan Modra <amodra@gmail.com>
4562
4563 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4564 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4565 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4566
4567 2019-09-18 Alan Modra <amodra@gmail.com>
4568
4569 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4570 * spu-linux-nat.c (spu_bfd_open): Likewise.
4571
4572 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4573
4574 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4575 to bool to match definition in dwarf2read.c.
4576
4577 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4578
4579 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4580 (print_signatures): Likewise.
4581 (trust_pad_over_xvs): Likewise.
4582 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4583 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4584 * arm-linux-nat.c (arm_apcs_32): Likewise.
4585 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4586 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4587 * arm-tdep.c (arm_debug): Likewise.
4588 (arm_apcs_32): Likewise.
4589 * auto-load.c (debug_auto_load): Likewise.
4590 (auto_load_gdb_scripts): Likewise.
4591 (global_auto_load): Likewise.
4592 (auto_load_local_gdbinit): Likewise.
4593 (auto_load_local_gdbinit_loaded): Likewise.
4594 * auto-load.h (global_auto_load): Likewise.
4595 (auto_load_local_gdbinit): Likewise.
4596 (auto_load_local_gdbinit_loaded): Likewise.
4597 * breakpoint.c (disconnected_dprintf): Likewise.
4598 (breakpoint_proceeded): Likewise.
4599 (automatic_hardware_breakpoints): Likewise.
4600 (always_inserted_mode): Likewise.
4601 (target_exact_watchpoints): Likewise.
4602 (_initialize_breakpoint): Update.
4603 * breakpoint.h (target_exact_watchpoints): Change to bool.
4604 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4605 * cli/cli-cmds.c (trace_commands): Likewise.
4606 * cli/cli-cmds.h (trace_commands): Likewise.
4607 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4608 to bool*.
4609 * cli/cli-logging.c (logging_overwrite): Change to bool.
4610 (logging_redirect): Likewise.
4611 (debug_redirect): Likewise.
4612 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4613 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4614 to bool.
4615 <boolean_option_def>: Update.
4616 (struct flag_option_def): Change default type of Context to bool
4617 from int.
4618 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4619 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4620 (get_setshow_command_value_string): Likewise.
4621 * cli/cli-style.c (cli_styling): Change to bool.
4622 (source_styling): Likewise.
4623 * cli/cli-style.h (source_styling): Likewise.
4624 (cli_styling): Likewise.
4625 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4626 to bool.
4627 * command.h (var_types): Update comment.
4628 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4629 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4630 bool.
4631 (debug_compile_cplus_scopes): Likewise.
4632 * compile/compile-internal.h (compile_debug): Likewise.
4633 * compile/compile.c (compile_debug): Likewise.
4634 (struct compile_options) <raw>: Likewise.
4635 * cp-support.c (catch_demangler_crashes): Likewise.
4636 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4637 (usr_cmd_cris_dwarf2_cfi): Likewise.
4638 * csky-tdep.c (csky_debug): Likewise.
4639 * darwin-nat.c (enable_mach_exceptions): Likewise.
4640 * dcache.c (dcache_enabled_p): Likewise.
4641 * defs.h (info_verbose): Likewise.
4642 * demangle.c (demangle): Likewise.
4643 (asm_demangle): Likewise.
4644 * dwarf-index-cache.c (debug_index_cache): Likewise.
4645 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4646 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4647 * dwarf2read.c (check_physname): Likewise.
4648 (use_deprecated_index_sections): Likewise.
4649 (dwarf_always_disassemble): Likewise.
4650 * eval.c (overload_resolution): Likewise.
4651 * event-top.c (set_editing_cmd_var): Likewise.
4652 (exec_done_display_p): Likewise.
4653 * event-top.h (set_editing_cmd_var): Likewise.
4654 (exec_done_display_p): Likewise.
4655 * exec.c (write_files): Likewise.
4656 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4657 (debug_fbsd_nat): Likewise.
4658 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4659 Likewise.
4660 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4661 <backtrace_past_entry> Likewise.
4662 * gdb-demangle.h (demangle): Likewise.
4663 (asm_demangle): Likewise.
4664 * gdb_bfd.c (bfd_sharing): Likewise.
4665 * gdbcore.h (write_files): Likewise.
4666 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4667 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4668 * gdbthread.h (print_thread_events): Likewise.
4669 * gdbtypes.c (opaque_type_resolution): Likewise.
4670 (strict_type_checking): Likewise.
4671 * gnu-nat.c (gnu_debug_flag): Likewise.
4672 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4673 * guile/scm-param.c (pascm_variable): Add boolval.
4674 (add_setshow_generic): Update.
4675 (pascm_param_value): Update.
4676 (pascm_set_param_value_x): Update.
4677 * hppa-tdep.c (hppa_debug): Change to bool..
4678 * infcall.c (may_call_functions_p): Likewise.
4679 (coerce_float_to_double_p): Likewise.
4680 (unwind_on_signal_p): Likewise.
4681 (unwind_on_terminating_exception_p): Likewise.
4682 * infcmd.c (startup_with_shell): Likewise.
4683 * inferior.c (print_inferior_events): Likewise.
4684 * inferior.h (startup_with_shell): Likewise.
4685 (print_inferior_events): Likewise.
4686 * infrun.c (step_stop_if_no_debug): Likewise.
4687 (detach_fork): Likewise.
4688 (debug_displaced): Likewise.
4689 (disable_randomization): Likewise.
4690 (non_stop): Likewise.
4691 (non_stop_1): Likewise.
4692 (observer_mode): Likewise.
4693 (observer_mode_1): Likewise.
4694 (set_observer_mode): Update.
4695 (sched_multi): Change to bool.
4696 * infrun.h (debug_displaced): Likewise.
4697 (sched_multi): Likewise.
4698 (step_stop_if_no_debug): Likewise.
4699 (non_stop): Likewise.
4700 (disable_randomization): Likewise.
4701 * linux-tdep.c (use_coredump_filter): Likewise.
4702 (dump_excluded_mappings): Likewise.
4703 * linux-thread-db.c (auto_load_thread_db): Likewise.
4704 (check_thread_db_on_load): Likewise.
4705 * main.c (captured_main_1): Update.
4706 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4707 xx2_opt, boolean_opt>: Change to bool.
4708 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4709 * maint.c (maintenance_profile_p): Likewise.
4710 (per_command_time): Likewise.
4711 (per_command_space): Likewise.
4712 (per_command_symtab): Likewise.
4713 * memattr.c (inaccessible_by_default): Likewise.
4714 * mi/mi-main.c (mi_async): Likewise.
4715 (mi_async_1): Likewise.
4716 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4717 * nat/fork-inferior.h (startup_with_shell): Likewise.
4718 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4719 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4720 * nios2-tdep.c (nios2_debug): Likewise.
4721 * or1k-tdep.c (or1k_debug): Likewise.
4722 * parse.c (parser_debug): Likewise.
4723 * parser-defs.h (parser_debug): Likewise.
4724 * printcmd.c (print_symbol_filename): Likewise.
4725 * proc-api.c (procfs_trace): Likewise.
4726 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4727 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4728 (set_parameter_value): Update.
4729 (add_setshow_generic): Update.
4730 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4731 to bool*.
4732 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4733 int*.
4734 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4735 * record-btrace.c (record_btrace_target::store_registers): Update.
4736 * record-full.c (record_full_memory_query): Change to bool.
4737 (record_full_stop_at_limit): Likewise.
4738 * record-full.h (record_full_memory_query): Likewise.
4739 * remote-notif.c (notif_debug): Likewise.
4740 * remote-notif.h (notif_debug): Likewise.
4741 * remote.c (use_range_stepping): Likewise.
4742 (interrupt_on_connect): Likewise.
4743 (remote_break): Likewise.
4744 * ser-tcp.c (tcp_auto_retry): Likewise.
4745 * ser-unix.c (serial_hwflow): Likewise.
4746 * skip.c (debug_skip): Likewise.
4747 * solib-aix.c (solib_aix_debug): Likewise.
4748 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4749 (spu_auto_flush_cache_p): Likewise.
4750 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4751 Likewise.
4752 (struct info_print_options) <quiet>: Likewise.
4753 * symfile-debug.c (debug_symfile): Likewise.
4754 * symfile.c (auto_solib_add): Likewise.
4755 (separate_debug_file_debug): Likewise.
4756 * symfile.h (auto_solib_add): Likewise.
4757 (separate_debug_file_debug): Likewise.
4758 * symtab.c (basenames_may_differ): Likewise.
4759 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4760 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4761 (struct info_types_options) <quiet>: Likewise.
4762 * symtab.h (demangle): Likewise.
4763 (basenames_may_differ): Likewise.
4764 * target-dcache.c (stack_cache_enabled_1): Likewise.
4765 (code_cache_enabled_1): Likewise.
4766 * target.c (trust_readonly): Likewise.
4767 (may_write_registers): Likewise.
4768 (may_write_memory): Likewise.
4769 (may_insert_breakpoints): Likewise.
4770 (may_insert_tracepoints): Likewise.
4771 (may_insert_fast_tracepoints): Likewise.
4772 (may_stop): Likewise.
4773 (auto_connect_native_target): Likewise.
4774 (target_stop_and_wait): Update.
4775 (target_async_permitted): Change to bool.
4776 (target_async_permitted_1): Likewise.
4777 (may_write_registers_1): Likewise.
4778 (may_write_memory_1): Likewise.
4779 (may_insert_breakpoints_1): Likewise.
4780 (may_insert_tracepoints_1): Likewise.
4781 (may_insert_fast_tracepoints_1): Likewise.
4782 (may_stop_1): Likewise.
4783 * target.h (target_async_permitted): Likewise.
4784 (may_write_registers): Likewise.
4785 (may_write_memory): Likewise.
4786 (may_insert_breakpoints): Likewise.
4787 (may_insert_tracepoints): Likewise.
4788 (may_insert_fast_tracepoints): Likewise.
4789 (may_stop): Likewise.
4790 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4791 (make_thread_apply_all_options_def_group): Change argument from int*
4792 to bool*.
4793 (thread_apply_all_command): Update.
4794 (print_thread_events): Change to bool.
4795 * top.c (confirm): Likewise.
4796 (command_editing_p): Likewise.
4797 (history_expansion_p): Likewise.
4798 (write_history_p): Likewise.
4799 (info_verbose): Likewise.
4800 * top.h (confirm): Likewise.
4801 (history_expansion_p): Likewise.
4802 * tracepoint.c (disconnected_tracing): Likewise.
4803 (circular_trace_buffer): Likewise.
4804 * typeprint.c (print_methods): Likewise.
4805 (print_typedefs): Likewise.
4806 * utils.c (debug_timestamp): Likewise.
4807 (sevenbit_strings): Likewise.
4808 (pagination_enabled): Likewise.
4809 * utils.h (sevenbit_strings): Likewise.
4810 (pagination_enabled): Likewise.
4811 * valops.c (overload_resolution): Likewise.
4812 * valprint.h (struct value_print_options) <prettyformat_arrays,
4813 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4814 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4815 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4816 Likewise.
4817 * windows-nat.c (new_console): Likewise.
4818 (cygwin_exceptions): Likewise.
4819 (new_group): Likewise.
4820 (debug_exec): Likewise.
4821 (debug_events): Likewise.
4822 (debug_memory): Likewise.
4823 (debug_exceptions): Likewise.
4824 (useshell): Likewise.
4825 * windows-tdep.c (maint_display_all_tib): Likewise.
4826 * xml-support.c (debug_xml): Likewise.
4827
4828 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4829
4830 * source.c (prepare_path_for_appending): New function.
4831 (openp): Make use of new function.
4832 (find_and_open_source): Search for the compilation directory and
4833 source file as a relative path beneath the directory search path.
4834
4835 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 * source-cache.c (source_cache::get_line_charpos): Catch
4838 exceptions and return false, this matches the behaviour documented
4839 in the header file.
4840
4841 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4842
4843 * ada-tasks.c (info_task): Remove quoting of the task's name.
4844
4845 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4846
4847 * symfile.c (auto_solib_add): Replace comment with a reference
4848 to the header file.
4849
4850 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4851
4852 * NEWS: Mention that gdb can now be compiled with Python 3
4853 on Windows.
4854
4855 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4856
4857 * maint.c (maint_print_section_data::maint_print_section_data):
4858 Force use of 'float log10 (float)' by casting the argument to
4859 float.
4860
4861 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4862
4863 * maint.c: Add 'cmath' include.
4864 (struct maint_print_section_data): New structure.
4865 (print_section_index): New function.
4866 (print_bfd_section_info): Add header comment, small whitespace
4867 cleanup, and update to call new print_section_index function.
4868 (print_objfile_section_info): Likewise.
4869 (maint_obj_section_from_bfd_section): New function.
4870 (print_bfd_section_info_maybe_relocated): New function.
4871 (maintenance_info_sections): Add header comment, always use
4872 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4873
4874 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4875
4876 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4877 inner scope, add check that the objfile has psymtabs before
4878 checking psymtabs_addrmap.
4879 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4880
4881 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4882
4883 * NEWS: Announce that Ada task names are now shown at more places,
4884 and between quotes (except in info task output).
4885 * gdb/ada-tasks.c (task_to_str): New function.
4886 (display_current_task_id): Call task_to_str.
4887 (task_command_1): Likewise.
4888 (print_ada_task_info): In non-mi mode, Properly align headers and data
4889 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4890
4891 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4892
4893 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4894 prstatus.pr_lwp.pr_info instead of making it up.
4895
4896 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4897
4898 * auto-load.c (auto_load_expand_dir_vars): Update.
4899 * defs.h (gdb_datadir): Change to std::string.
4900 (python_libdir): Likewise.
4901 (relocate_gdb_directory): Change return type to std::string.
4902 * guile/guile.c (gdbscm_data_directory): Update.
4903 (initialize_scheme_side): Update.
4904 * jit.c (jit_reader_dir): Change to std::string.
4905 (jit_reader_load_command): Update.
4906 * main.c (gdb_datadir): Change to std::string.
4907 (python_libdir): Likewise.
4908 (set_gdb_data_directory): Update.
4909 (relocate_path): Change to return std::string.
4910 (relocate_gdb_directory): Change to return std::string.
4911 (relocate_gdbinit_path_maybe_in_datadir): Update.
4912 (captured_main_1): Update.
4913 * python/python.c (do_start_initialization): Update.
4914 * top.c (show_gdb_datadir): Update.
4915 * xml-syscall.c (xml_init_syscalls_info): Update.
4916 (init_syscalls_info): Update.
4917
4918 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4919
4920 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4921 out of get_init_files.
4922 (get_init_files): Update.
4923
4924 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4925
4926 * main.c (get_init_files): Change to use std::string.
4927 (captured_main_1): Update.
4928 (print_gdb_help): Update.
4929
4930 2019-09-11 Ali Tamur <tamur@google.com>
4931
4932 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4933 implementation.
4934
4935 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4936
4937 * dbxread.c (read_dbx_symtab): Update.
4938 * dwarf2read.c (load_partial_dies): Update.
4939 * mdebugread.c (parse_partial_symbols): Update.
4940 (handle_psymbol_enumerators): Update.
4941 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4942 * psymtab.c (add_psymbol_to_bcache): Likewise.
4943 (add_psymbol_to_list): Likewise.
4944 * symtab.c (symbol_set_names): Likewise.
4945 * symtab.h (symbol_set_names): Likewise.
4946 * xcoffread.c (scan_xcoff_symtab): Update.
4947
4948 2019-09-11 Tom Tromey <tom@tromey.com>
4949
4950 * symfile-mem.c (symbol_file_add_from_memory): Use
4951 bfd_set_filename.
4952 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4953 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4954
4955 2019-09-10 Tom Tromey <tromey@adacore.com>
4956
4957 * dwarf-index-write.c (write_psymbols): Extend error message.
4958 (debug_names::insert): Add Ada code.
4959 (debug_names::write_psymbols): Remove Ada check.
4960 (debug_names) <m_string_obstack>: New member.
4961 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4962 (gdb_index_symbol_name_matcher::matches): Remove.
4963 (mapped_index_base::find_name_components_bounds): Add "lang"
4964 parameter.
4965 (mapped_index_base::build_name_components): Also split names
4966 according to Ada syntax.
4967 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4968 type of "match_callback".
4969 (check_match, check_find_bounds_finds)
4970 (dw2_expand_symtabs_matching): Update.
4971 (dw2_debug_names_iterator): Add new constructor.
4972 (dw2_debug_names_map_matching_symbols): New function.
4973 (dw2_debug_names_expand_symtabs_matching): Update.
4974 (dwarf2_debug_names_functions): Use
4975 dw2_debug_names_map_matching_symbols.
4976
4977 2019-09-10 Tom Tromey <tromey@adacore.com>
4978
4979 * dwarf2read.c (dw2_get_file_names_reader): Add the
4980 CU's file name to the results.
4981
4982 2019-09-10 Tom Tromey <tromey@adacore.com>
4983
4984 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4985 map_matching_symbols. Update.
4986 * dwarf2read.c (dw2_map_matching_symbols): Update.
4987 * psymtab.c (match_partial_symbol): Change type; update.
4988 (psym_map_matching_symbols): Likewise.
4989 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4990 type; update.
4991 * symfile.h (struct quick_symbol_functions)
4992 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4993 Remove "match".
4994
4995 2019-09-10 Tom Tromey <tromey@adacore.com>
4996
4997 * psymtab.c (map_block): Remove.
4998 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4999 * symtab.c (iterate_over_symbols_terminated): New function.
5000 * symtab.c (iterate_over_symbols_terminated): Declare.
5001
5002 2019-09-10 Tom Tromey <tromey@adacore.com>
5003
5004 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5005 * language.h (struct language_defn) <la_iterate_over_symbols>:
5006 Return bool.
5007 * symtab.c (iterate_over_symbols): Return bool.
5008 * symtab.h (iterate_over_symbols): Return bool.
5009
5010 2019-09-10 Tom Tromey <tromey@adacore.com>
5011
5012 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5013 (add_nonlocal_symbols): Update.
5014 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5015 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5016 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5017 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5018 Change type of "callback". Remove "data".
5019
5020
5021 2019-09-09 Ali Tamur <tamur@google.com>
5022
5023 * dwarf2read.c (comp_unit_head): Update comment.
5024 (dwarf2_dwo_name): New function declaration.
5025 (dwarf_unit_type_name): New function declaration.
5026 (read_comp_unit_head): Add support for new compilation units,
5027 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5028 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5029 (currently named as "signature") in their header. Also clarify error
5030 messages.
5031 (lookup_dwo_id): New function. Returns the dwo id of the given
5032 compile unit.
5033 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5034 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5035 functions.
5036 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5037 (dwarf2_dwo_name): Get the dwo name if present.
5038 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5039 purposes.
5040
5041 2019-09-09 Tom Tromey <tom@tromey.com>
5042
5043 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5044
5045 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5046
5047 * python/python.c (do_start_initialization): Make progname_copy static,
5048 to avoid a leak report.
5049
5050 2019-09-08 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5053
5054 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5057 Change type to gdb::optional<block_enum>.
5058 (dw2_symtab_iter_init): Change block_index parameter type
5059 to gdb::optional<block_enum>.
5060 (dw2_lookup_symbol): Change block_index parameter
5061 type to block_enum.c
5062 (dw2_debug_names_lookup_symbol): Likewise.
5063 * psymtab.c (psym_lookup_symbol): Likewise.
5064 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5065 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5066 Likewise.
5067
5068 2019-09-06 Christian Biesinger <cbiesinger@google.com>
5069
5070 * defs.h (relocate_gdb_directory): Change int to bool in
5071 signature and rename flag to relocatable.
5072 * main.c (relocate_path): Likewise.
5073 (relocate_gdb_directory): Likewise.
5074
5075 2019-09-06 Alan Modra <amodra@gmail.com>
5076
5077 * coffread.c (coff_symfile_read): Constify filename variable.
5078 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5079 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5080 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5081 * solib.c (reload_shared_libraries_1): Likewise.
5082 * symfile.c (reread_symbols): Likewise.
5083 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5084 * solib-darwin.c (darwin_bfd_open): Likewise.
5085 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5086
5087 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5088
5089 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5090 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5091
5092 2019-09-03 Tom Tromey <tromey@adacore.com>
5093
5094 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5095 types.
5096 (has_negatives): Unbias a range type bound.
5097 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5098 * gdbtypes.c (operator==): Handle new field.
5099 (create_range_type): Add "bias" parameter.
5100 (create_static_range_type, resolve_dynamic_range): Update.
5101 * gdbtypes.h (struct range_bounds) <bias>: New member.
5102 (create_range_type): Add bias parameter.
5103 * printcmd.c (print_scalar_formatted): Unbias range types.
5104 * value.c (unpack_long): Unbias range types.
5105 (pack_long): Bias range types.
5106
5107 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5108
5109 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5110 probe arguments.
5111
5112 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5113
5114 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5115 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5116 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5117 (compile_probe_arg): Likewise.
5118 * probe.h (get_argument_count): Likewise.
5119 * solib-svr4.c (solib_event_probe_action): Likewise.
5120 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5121
5122 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5123
5124 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5125 code to here...
5126 (svr4_create_solib_event_breakpoints): ...from here.
5127
5128 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5129
5130 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5131 suffix from warning message.
5132
5133 2019-08-30 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-winsource.h (struct tui_source_window_base)
5136 <refresh_all>: Don't declare.
5137 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5138 Remove.
5139 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5140 tui_show_locator_content.
5141 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5142 declare.
5143 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5144 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5145 declare.
5146
5147 2019-08-30 Tom Tromey <tom@tromey.com>
5148
5149 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5150
5151 2019-08-30 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5154 Remove unnecessary forward declarations.
5155
5156 2019-08-30 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5159 rerender.
5160 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5161 tui_show_locator_content.
5162
5163 2019-08-30 Tom Tromey <tom@tromey.com>
5164
5165 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5166 (tui_locator_window::rerender): Rewrite using body of previous
5167 tui_show_locator_content.
5168
5169 2019-08-30 Tom Tromey <tom@tromey.com>
5170
5171 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5172 set_locator_fullname>: New methods.
5173 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5174 Rename from tui_set_locator_fullname.
5175 (tui_locator_window::set_locator_info): Rename from
5176 tui_set_locator_info. Return bool.
5177 (tui_update_locator_fullname, tui_show_frame_info): Update.
5178
5179 2019-08-30 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5182
5183 2019-08-30 Tom Tromey <tom@tromey.com>
5184
5185 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5186 call touchwin.
5187
5188 2019-08-30 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui-wingeneral.c (box_win): Assume win_info and
5191 win_info->handle cannot be NULL.
5192
5193 2019-08-30 Tom Tromey <tom@tromey.com>
5194
5195 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5196 refresh_window>: Declare.
5197 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5198 resize.
5199 (tui_data_item_window::rerender): Rename from
5200 tui_display_register.
5201 (tui_data_item_window::refresh_window): New method.
5202 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5203 no-op.
5204
5205 2019-08-30 Tom Tromey <tom@tromey.com>
5206
5207 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5208 regs_column_count, current_group>: Move later. Now private.
5209 <get_current_group>: New method.
5210 * tui/tui-regs.c (tui_reg_command): Update.
5211 * tui/tui-layout.c (tui_set_layout): Update.
5212
5213 2019-08-30 Tom Tromey <tom@tromey.com>
5214
5215 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5216 (tui_data_window::rerender): Don't call
5217 check_and_display_highlight_if_needed.
5218 (tui_data_window::refresh_all): Remove call to
5219 erase_data_content.
5220
5221 2019-08-30 Tom Tromey <tom@tromey.com>
5222
5223 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5224 (tui_data_window::display_registers_from)
5225 (tui_data_window::display_reg_element_at_line)
5226 (tui_data_window::display_registers_from_line): Remove checks of
5227 "empty".
5228
5229 2019-08-30 Tom Tromey <tom@tromey.com>
5230
5231 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5232 Don't declare.
5233 * tui/tui-regs.c (tui_data_window::show_registers): Call
5234 rerender.
5235 (tui_data_window::rerender): Rename from display_all_data.
5236 (tui_data_window::rerender): Remove old implementation.
5237
5238 2019-08-30 Tom Tromey <tom@tromey.com>
5239
5240 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5241 text.
5242 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5243
5244 2019-08-29 Bernhard Wodok <barto@gmx.net>
5245 Sergio Durigan Junior <sergiodj@redhat.com>
5246
5247 PR win32/24284
5248 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5249
5250 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5251
5252 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5253 when searching for types.
5254
5255 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * f-lang.c (f_language_defn): Use f_print_typedef.
5258 * f-lang.h (f_print_typedef): Declare.
5259 * f-typeprint.c (f_print_typedef): Define.
5260
5261 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5262
5263 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5264
5265 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * cli/cli-utils.c (info_print_options_defs): Delete.
5268 (make_info_print_options_def_group): Delete.
5269 (extract_info_print_options): Delete.
5270 (info_print_command_completer): Delete.
5271 (info_print_args_help): Add extra parameter, and optionally
5272 include text about -n flag.
5273 * cli/cli-utils.h (struct info_print_options): Delete.
5274 (extract_info_print_options): Delete declaration.
5275 (info_print_command_completer): Delete declaration.
5276 (info_print_args_help): Add extra parameter, extend header
5277 comment.
5278 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5279 search_symbols.
5280 * stack.c (struct info_print_options): New type.
5281 (info_print_options_defs): New file scoped variable.
5282 (make_info_print_options_def_group): New static function.
5283 (info_print_command_completer): New static function.
5284 (info_locals_command): Update to use new local functions.
5285 (info_args_command): Likewise.
5286 (_initialize_stack): Add extra parameter to calls to
5287 info_print_args_help.
5288 * symtab.c (search_symbols): Add extra parameter, use this to
5289 possibly excluse non-debug symbols.
5290 (symtab_symbol_info): Add extra parameter, which is passed on to
5291 search_symbols.
5292 (struct info_print_options): New type.
5293 (info_print_options_defs): New file scoped variable.
5294 (make_info_print_options_def_group): New static function.
5295 (info_print_command_completer): New static function.
5296 (info_variables_command): Update to use local functions, and pass
5297 extra parameter through to symtab_symbol_info.
5298 (info_functions_command): Likewise.
5299 (info_types_command): Pass additional argument through to
5300 symtab_symbol_info.
5301 (rbreak_command): Pass extra argument to search_symbols.
5302 (_initialize_symtab): Add extra arguments for calls to
5303 info_print_args_help, and update help text for 'info variables',
5304 'whereis', and 'info functions' commands.
5305 * symtab.h (search_symbols): Add extra argument to declaration.
5306 * NEWS: Mention new flags.
5307
5308 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5309
5310 * symtab.c (lookup_static_symbol): Call the new function (and move
5311 it down to be next to lookup_global_symbol).
5312 (struct global_sym_lookup_data): Add block_enum member and rename to...
5313 (struct global_or_static_sym_lookup_data): ...this.
5314 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5315 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5316 (lookup_symbol_global_or_static_iterator_cb): ...this.
5317 (lookup_global_or_static_symbol): New function.
5318 (lookup_global_symbol): Call new function.
5319
5320 2019-08-26 Tom de Vries <tdevries@suse.de>
5321
5322 PR c++/24852
5323 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5324 when pc_probe.prob == NULL.
5325
5326 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5329 variable symbol_linkage to symbol_linkage_.
5330
5331 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5332
5333 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5334 represent whether the symbol is static, dynamic, or we don't
5335 know.
5336
5337 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5338
5339 * gdb/rx-tdep.c (rx_register_names): New.
5340 (rx_register_name): Delete.
5341 (rx_psw_type): Delete.
5342 (rx_fpsw_type): Delete.
5343 (rx_register_type): Delete.
5344 (rx_gdbarch_init): Convert target-descriptions.
5345 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5346 * gdb/features/Makefile: Add rx.xml.
5347 * gdb/features/rx.xml: New.
5348 * gdb/features/rx.c: Generated.
5349 * gdb/NEWS: Mention target description support.
5350
5351 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5352
5353 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5354 *slot_ptr.
5355
5356 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5357
5358 * configure.ac: Don't check for 'dlfcn.h' (moved to
5359 gdbsupport/common.m4).
5360 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5361 'gdbsupport/'.
5362 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5363 * compile/compile-c-support.c: Include
5364 'gdbsupport/gdb-dlfcn.h'.
5365 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5366 * gdb-dlfcn.c: Move to...
5367 * gdbsupport/gdb-dlfcn.c: ... here.
5368 * gdb-dlfcn.h: Move to...
5369 * gdbsupport/gdb-dlfcn.h: ... here.
5370
5371 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5372
5373 * nios2-tdep.c (struct reg_value): Improve comments. Make
5374 the offset field signed.
5375
5376 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5377
5378 * python/lib/gdb/__init__.py (_execute_file): New function.
5379 * python/python.c (python_run_simple_file): Call gdb._execute_file
5380 on Windows.
5381
5382 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5385 all uses as this was never set to anything but a zero value.
5386
5387 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5388
5389 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5390
5391 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5392
5393 * tui/tui-data.h (tui_gen_win_info): Add an =default
5394 move constructor, required by some GCC versions.
5395
5396 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5397
5398 * go32-nat.c (go32_sysinfo): Add hygon_p.
5399
5400 2019-08-20 Tom Tromey <tom@tromey.com>
5401
5402 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5403 line_from_reg_element_no, first_reg_element_no_inline,
5404 display_all_data, delete_data_content_windows,
5405 erase_data_content>: Now private.
5406
5407 2019-08-20 Tom Tromey <tom@tromey.com>
5408
5409 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5410 (tui_unhighlight_win, tui_highlight_win)
5411 (tui_win_info::make_window): Update.
5412 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5413
5414 2019-08-20 Tom Tromey <tom@tromey.com>
5415
5416 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5417 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5418 (MAX_PID_WIDTH): Move to tui-stack.c.
5419 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5420 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5421 (MAX_PID_WIDTH): Move from tui-data.h.
5422
5423 2019-08-20 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5426 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5427 (box_win): Update.
5428 (tui_gen_win_info::make_window): Rename from tui_make_window.
5429 (tui_win_info::make_window): New method.
5430 (tui_gen_win_info::make_visible): Update.
5431 * tui/tui-source.c (tui_source_window::set_contents): Update.
5432 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5433 (tui_data_window::display_registers_from): Update.
5434 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5435 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5436 Declare.
5437 <can_box>: Remove.
5438 <title>: Remove.
5439 (struct tui_win_info) <make_window>: Declare.
5440 <can_box>: Now virtual.
5441 <title>: New member.
5442 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5443 * tui/tui-command.c (tui_cmd_window::resize): Update.
5444
5445 2019-08-20 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5448 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5449 (tui_data_window::check_register_values): Update.
5450
5451 2019-08-20 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-regs.h (struct tui_data_window): Use
5454 DISABLE_COPY_AND_ASSIGN.
5455 <regs_content>: Change type, removing unique_ptr.
5456 <tui_data_window>: Add move constructor.
5457 * tui/tui-regs.c (tui_data_window::show_registers)
5458 (tui_data_window::show_register_group)
5459 (tui_data_window::display_registers_from)
5460 (tui_data_window::display_registers_from)
5461 (tui_data_window::first_data_item_displayed)
5462 (tui_data_window::delete_data_content_windows)
5463 (tui_data_window::rerender, tui_data_window::refresh_window)
5464 (tui_data_window::check_register_values): Update.
5465
5466 2019-08-20 Tom Tromey <tom@tromey.com>
5467
5468 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5469 show_register_group>: Declare.
5470 (tui_show_register_group): Don't declare.
5471 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5472 tui_show_registers.
5473 (tui_data_window::show_register_group): Rename from
5474 tui_show_register_group.
5475 (tui_data_window::check_register_values, tui_reg_command):
5476 Update.
5477 * tui/tui-layout.c (tui_set_layout): Update.
5478
5479 2019-08-20 Tom Tromey <tom@tromey.com>
5480
5481 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5482 Declare.
5483 (tui_check_register_values): Don't declare.
5484 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5485 from tui_check_register_values.
5486 * tui/tui-hooks.c (tui_register_changed): Update.
5487
5488 2019-08-20 Tom Tromey <tom@tromey.com>
5489
5490 * tui/tui-regs.c (tui_reg_layout): Move later.
5491 (tui_show_registers): Don't enable TUI mode or change layout.
5492
5493 2019-08-20 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-regs.h (struct tui_data_item_window)
5496 <~tui_data_item_window>: Remove.
5497 <content>: Now a unique_xmalloc_ptr.
5498 * tui/tui-regs.c (tui_register_format): Return a
5499 unique_xmalloc_ptr.
5500 (tui_get_register): Update.
5501 (~tui_data_item_window): Remove.
5502 (tui_data_window::display_registers_from, tui_display_register):
5503 Update.
5504 * tui/tui-io.h (tui_expand_tabs): Update.
5505 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5506 Remove "col" parameter.
5507
5508 2019-08-20 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5511 field.
5512 * tui/tui-regs.c (~tui_data_item_window): Update.
5513
5514 2019-08-20 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5517 earlier.
5518
5519 2019-08-20 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5522
5523 2019-08-20 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-source.h (struct tui_source_window): Update.
5526 * tui/tui-regs.c (tui_show_registers): Update.
5527 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5528 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5529 (NO_REGS_STRING): Remove defines.
5530
5531 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5532
5533 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5534 unnecessary thread walk if remote doesn't support the packet.
5535
5536 2019-08-19 Tom Tromey <tromey@adacore.com>
5537
5538 * python/py-value.c (value_has_field): Fix indentation.
5539
5540 2019-08-19 Tom Tromey <tromey@adacore.com>
5541
5542 * printcmd.c (do_one_display, info_display_command): Update.
5543 * block.h (contained_in): Return bool. Add allow_nested
5544 parameter.
5545 * block.c (contained_in): Return bool. Add allow_nested
5546 parameter.
5547
5548 2019-08-19 Tom Tromey <tom@tromey.com>
5549
5550 * configure: Rebuild.
5551 * configure.ac: Disallow the combination of -static-libstdc++ and
5552 source highlight.
5553 * source-cache.c (get_language_name): Handle rust.
5554 (source_cache::get_source_lines): Ignore highlighting exceptions.
5555
5556 2019-08-16 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5559 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5560 (struct tui_source_window_base) <make_visible, refresh_window,
5561 resize>: Remove methods.
5562 <execution_info>: Remove field.
5563 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5564 (tui_show_source_line, tui_source_window_base)
5565 (~tui_source_window_base): Update.
5566 (tui_source_window_base::resize)
5567 (tui_source_window_base::make_visible)
5568 (tui_source_window_base::refresh_window): Remove.
5569 (tui_source_window_base::update_exec_info): Update.
5570 * tui/tui-source.c (tui_source_window::set_contents): Update.
5571 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5572
5573 2019-08-16 Tom Tromey <tom@tromey.com>
5574
5575 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5576 deprecated_query_hook.
5577
5578 2019-08-16 Tom Tromey <tom@tromey.com>
5579
5580 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5581 (tui_update_source_windows_with_line): Update.
5582 * tui/tui-source.h (struct tui_source_window)
5583 <show_symtab_source>: Declare.
5584 (tui_show_symtab_source): Don't declare.
5585 * tui/tui-source.c (tui_show_symtab_source): Rename from
5586 tui_show_symtab_source.
5587
5588 2019-08-16 Tom Tromey <tom@tromey.com>
5589
5590 * tui/tui-winsource.h (struct tui_source_window_base)
5591 <set_contents>: Declare.
5592 * tui/tui-winsource.c
5593 (tui_source_window_base::update_source_window_as_is): Update.
5594 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5595 Declare.
5596 (tui_set_source_content): Don't declare.
5597 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5598 tui_set_source_content.
5599 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5600 Declare.
5601 (tui_set_disassem_content): Don't declare.
5602 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5603 tui_set_disassem_content.
5604
5605 2019-08-16 Tom Tromey <tom@tromey.com>
5606
5607 * tui/tui-winsource.h (struct tui_source_window_base)
5608 <update_breakpoint_info>: Declare.
5609 (tui_update_breakpoint_info): Don't declare.
5610 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5611 (tui_update_all_breakpoint_info): Update.
5612 (tui_source_window_base::update_breakpoint_info): Rename from
5613 tui_update_breakpoint_info.
5614 (tui_source_window_base::update_exec_info): Update.
5615
5616 2019-08-16 Tom Tromey <tom@tromey.com>
5617
5618 * tui/tui-winsource.h (struct tui_source_window_base)
5619 <update_source_window>: Declare.
5620 (tui_update_source_window): Don't declare.
5621 * tui/tui-winsource.c
5622 (tui_source_window_base::update_source_window): Rename from
5623 tui_update_source_window.
5624 (tui_source_window_base::rerender): Update.
5625 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5626 * tui/tui-disasm.c (tui_show_disassem)
5627 (tui_show_disassem_and_update_source)
5628 (tui_disasm_window::maybe_update): Update.
5629
5630 2019-08-16 Tom Tromey <tom@tromey.com>
5631
5632 * tui/tui-winsource.h (struct tui_source_window_base)
5633 <update_source_window_as_is>: Declare.
5634 (tui_update_source_window_as_is): Don't declare.
5635 * tui/tui-winsource.c (tui_update_source_window): Update
5636 (tui_source_window_base::update_source_window_as_is): Rename from
5637 tui_update_source_window_as_is.
5638 (tui_source_window_base::refill): Update.
5639 * tui/tui-source.c (tui_show_symtab_source): Update.
5640 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5641 Update.
5642
5643 2019-08-16 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-winsource.h (tui_update_source_window)
5646 (tui_update_source_window_as_is): Remove "noerror" parameter.
5647 * tui/tui-winsource.c (tui_update_source_window)
5648 (tui_update_source_window_as_is): Remove "noerror" parameter.
5649 (tui_update_source_windows_with_addr)
5650 (tui_update_source_windows_with_line)
5651 (tui_source_window_base::rerender)
5652 (tui_source_window_base::refill): Update.
5653 * tui/tui-source.h (tui_set_source_content)
5654 (tui_show_symtab_source): Remove "noerror" parameter.
5655 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5656 parameter.
5657 (tui_show_symtab_source): Likewise.
5658 (tui_source_window::maybe_update): Update.
5659 * tui/tui-disasm.c (tui_show_disassem)
5660 (tui_show_disassem_and_update_source)
5661 (tui_disasm_window::do_scroll_vertical)
5662 (tui_disasm_window::maybe_update): Update.
5663
5664 2019-08-16 Tom Tromey <tom@tromey.com>
5665
5666 * tui/tui.c (tui_is_window_visible): Update.
5667 * tui/tui-wingeneral.c (tui_make_window)
5668 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5669 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5670 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5671 (tui_set_win_height_command, parse_scrolling_args): Update.
5672 * tui/tui-source.c (tui_source_window::style_changed): Update.
5673 * tui/tui-regs.c (tui_show_registers)
5674 (tui_data_window::first_data_item_displayed)
5675 (tui_data_window::delete_data_content_windows)
5676 (tui_check_register_values, tui_reg_command): Update.
5677 * tui/tui-disasm.c (tui_show_disassem): Update.
5678 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5679 method.
5680 <is_visible>: Remove field.
5681 * tui/tui-data.c (tui_next_win, tui_prev_win)
5682 (tui_delete_invisible_windows): Update.
5683
5684 2019-08-16 Tom Tromey <tom@tromey.com>
5685
5686 * tui/tui-winsource.h (struct tui_source_window_base)
5687 <m_has_locator>: Remove.
5688 * tui/tui-layout.c (show_source_disasm_command, show_data)
5689 (show_source_or_disasm_and_command): Update.
5690
5691 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5692
5693 * NEWS (Other MI changes): New subsection.
5694 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5695 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5696 * arch-utils.c (default_get_pc_address_flags): New function.
5697 * arch-utils.h (default_get_pc_address_flags): New declaration.
5698 * gdbarch.sh: Add get_pc_address_flags.
5699 * gdbarch.c: Regenerate.
5700 * gdbarch.h: Likewise.
5701 * stack.c (print_pc): New function.
5702 (print_frame_info) (print_frame): Call print_pc.
5703
5704 2019-08-16 Tom de Vries <tdevries@suse.de>
5705
5706 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5707 print_objfile_section_info.
5708
5709 2019-08-15 Tom Tromey <tom@tromey.com>
5710
5711 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5712 calling update_cmdwin_start_line.
5713 * tui/tui-winsource.h (struct tui_source_window_base)
5714 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5715 <rerender>: Declare.
5716 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5717 Call rerender.
5718 (tui_source_window_base::set_new_height): Remove.
5719 (tui_source_window_base::rerender): Rename from
5720 do_make_visible_with_new_height.
5721 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5722 resize method.
5723 (tui_win_info::make_invisible_and_set_new_height)
5724 (tui_win_info::make_visible_with_new_height): Remove.
5725 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5726 Declare.
5727 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5728 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5729 do_make_visible_with_new_height>: Don't declare.
5730 <rerender>: Declare.
5731 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5732 set_new_height.
5733 (tui_data_window::do_make_visible_with_new_height): Remove.
5734 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5735 call tui_show_locator_content.
5736 (tui_gen_win_info::resize): Call rerender.
5737 (show_source_or_disasm_and_command): Don't call
5738 tui_show_locator_content.
5739 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5740 method.
5741 (struct tui_win_info) <rerender>: Declare.
5742 <set_new_height, make_invisible_and_set_new_height,
5743 make_visible_with_new_height>: Don't declare.
5744 * tui/tui-data.c (tui_win_list::rerender): New method.
5745 * tui/tui-command.h (struct tui_cmd_window)
5746 <do_make_visible_with_new_height>: Don't declare.
5747 * tui/tui-command.c
5748 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5749
5750 2019-08-15 Tom Tromey <tromey@adacore.com>
5751
5752 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5753 * ada-lang.c (ada_enum_name): Likewise.
5754
5755 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5756
5757 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5758 leading underscore.
5759 (GdbOutputErrorFile): Likewise.
5760 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5761 accordingly.
5762 (execute_unwinders): Rename to have a leading underscore.
5763 (auto_load_packages): Likewise.
5764 (global scope): Adjust call to auto_load_packages accordingly.
5765 (GdbSetPythonDirectory): Likewise.
5766 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5767 instead of execute_unwinders.
5768
5769 2019-08-15 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5772 (show_data): Don't change window visibility.
5773 (tui_gen_win_info::resize): Remove special case for command
5774 window. Use wresize, when available.
5775 (show_source_or_disasm_and_command): Don't change window
5776 visibility.
5777 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5778 <make_visible>: New method.
5779 * tui/tui-command.c (tui_cmd_window::resize): New method.
5780
5781 2019-08-15 Tom Tromey <tom@tromey.com>
5782
5783 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5784 (struct tui_source_windows): New.
5785 * tui/tui-winsource.c (tui_display_main): Update.
5786 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5787 (new_height_ok, parse_scrolling_args): Update.
5788 * tui/tui-layout.c (show_layout, show_data): Update.
5789 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5790 (tui_add_to_source_windows): Don't declare.
5791 * tui/tui-data.c (source_windows, tui_source_windows)
5792 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5793
5794 2019-08-15 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5797 Rename from reset.
5798 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5799 * tui/tui-layout.c (show_source_disasm_command, show_data):
5800 Update.
5801 (tui_gen_win_info::resize): Rename.
5802 (show_source_or_disasm_and_command): Update.
5803 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5804 reset.
5805
5806 2019-08-15 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5809 * tui/tui-interp.c (tui_interp::init): Don't call
5810 tui_initialize_static_data.
5811 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5812
5813 2019-08-15 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5816 examine tui_win_list.
5817
5818 2019-08-15 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5821 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5822 tui_clear_source_content.
5823 (tui_clear_source_content): Remove.
5824 (tui_source_window_base::do_erase_source_content): Hoist call to
5825 content.clear().
5826 * tui/tui-stack.c (tui_show_frame_info): Don't call
5827 tui_clear_source_content.
5828
5829 2019-08-15 Tom Tromey <tom@tromey.com>
5830
5831 * tui/tui-winsource.h (struct tui_source_window_base)
5832 <do_erase_source_content>: New method.
5833 <erase_source_content>: New method.
5834 (tui_erase_source_content): Don't declare.
5835 * tui/tui-winsource.c (tui_clear_source_content): Update.
5836 (tui_source_window_base::do_erase_source_content): Rename from
5837 tui_erase_source_content.
5838 (tui_source_window_base::show_source_content): Update.
5839 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5840 * tui/tui-source.h (struct tui_source_window)
5841 <erase_source_content>: New method.
5842 * tui/tui-disasm.h (struct tui_disasm_window)
5843 <erase_source_content>: New method.
5844
5845 2019-08-15 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5848 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5849 constructor.
5850 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5851 * tui/tui-source.c (tui_set_source_content): Update.
5852 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5853
5854 2019-08-15 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5857 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5858 tui-source.c.
5859 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5860 Declare.
5861 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5862 method.
5863 (tui_source_window::maybe_update): Update.
5864
5865 2019-08-15 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5868 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5869 tui-disasm.c.
5870 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5871 Declare.
5872 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5873 method.
5874 (tui_disasm_window::maybe_update): Update.
5875
5876 2019-08-15 Tom Tromey <tom@tromey.com>
5877
5878 * tui/tui-winsource.h (struct tui_source_window_base)
5879 <maybe_update>: Declare.
5880 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5881 method.
5882 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5883 Declare.
5884 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5885 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5886 Declare.
5887 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5888
5889 2019-08-15 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5892
5893 2019-08-15 Tom Tromey <tom@tromey.com>
5894
5895 * tui/tui-wingeneral.c: Include tui-stack.h.
5896 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5897 (struct tui_locator_window): Move from tui-data.h.
5898 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5899 (tui_initialize_static_data): Move from tui-data.c.
5900 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5901 (struct tui_locator_window): Move to tui-stack.c.
5902 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5903 (tui_initialize_static_data): Move to tui-stack.c.
5904
5905 2019-08-15 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-layout.c (show_source_disasm_command)
5908 (show_source_or_disasm_and_command): Use make_visible method, not
5909 tui_make_window.
5910 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5911 Remove.
5912
5913 2019-08-15 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-wingeneral.h (tui_make_window): Update.
5916 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5917 parameter.
5918 (tui_gen_win_info::make_visible): Update.
5919 * tui/tui-regs.c (tui_data_window::display_registers_from):
5920 Update.
5921 * tui/tui-layout.c (show_source_disasm_command)
5922 (show_source_or_disasm_and_command): Update.
5923 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5924 (enum tui_box): Remove.
5925 (struct tui_win_info) <can_box>: New method.
5926 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5927 method.
5928
5929 2019-08-15 Tom de Vries <tdevries@suse.de>
5930
5931 * linux-nat-trad.c: Include gdbarch.h.
5932
5933 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5934
5935 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5936 register sizes.
5937
5938 2019-08-14 Tom Tromey <tromey@adacore.com>
5939
5940 * darwin-nat.c: Include gdbarch.h.
5941 * darwin-nat-info.c: Include gdbarch.h.
5942
5943 2019-08-13 Tom Tromey <tom@tromey.com>
5944
5945 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5946 Remove.
5947 * tui/tui-data.c (tui_initialize_static_data): Update.
5948
5949 2019-08-13 Tom Tromey <tom@tromey.com>
5950
5951 * tui/tui-winsource.h (struct tui_exec_info_window)
5952 <~tui_exec_info_window, maybe_allocate_content, get_content,
5953 m_content>: Remove.
5954 (struct tui_source_window_base) <set_exec_info_content,
5955 show_exec_info_content>: Don't declare.
5956 * tui/tui-winsource.c
5957 (tui_exec_info_window::maybe_allocate_content): Remove.
5958 (tui_source_window_base::update_exec_info): Rename from
5959 set_exec_info_content.
5960 (tui_source_window_base::show_exec_info_content)
5961 (tui_source_window_base::update_exec_info): Remove.
5962
5963 2019-08-13 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5966 declare.
5967 * tui/tui-winsource.c (tui_update_source_window_as_is)
5968 (tui_update_source_windows_with_addr, tui_erase_source_content):
5969 Update.
5970 (tui_clear_exec_info_content): Remove.
5971
5972 2019-08-13 Tom Tromey <tom@tromey.com>
5973
5974 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5975 declare.
5976 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5977 call tui_erase_exec_info_content.
5978 (tui_clear_exec_info_content): Rename from
5979 tui_erase_exec_info_content.
5980 (tui_clear_exec_info_content): Delete.
5981
5982 2019-08-13 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-winsource.h (struct tui_source_window_base)
5985 <show_exec_info_content>: Declare.
5986 (tui_show_exec_info_content): Don't declare.
5987 * tui/tui-winsource.c
5988 (tui_source_window_base::show_exec_info_content): Rename from
5989 tui_show_exec_info_content.
5990 (tui_source_window_base::update_exec_info): Update.
5991
5992 2019-08-13 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5995 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5996 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5997 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5998 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5999 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6000 ... here.
6001
6002 2019-08-13 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui-winsource.h (struct tui_source_window_base)
6005 <update_exec_info>: Declare.
6006 (tui_update_exec_info): Don't declare.
6007 * tui/tui-winsource.c (tui_update_source_window_as_is)
6008 (tui_source_window_base::refresh_all)
6009 (tui_update_all_breakpoint_info): Update.
6010 (tui_source_window_base::update_exec_info): Rename from
6011 tui_update_exec_info.
6012 * tui/tui-stack.c (tui_show_frame_info): Update.
6013
6014 2019-08-13 Tom Tromey <tom@tromey.com>
6015
6016 * tui/tui-winsource.h (struct tui_source_window_base)
6017 <set_exec_info_content>: Declare.
6018 (tui_set_exec_info_content): Don't declare.
6019 * tui/tui-winsource.c
6020 (tui_source_window_base::set_exec_info_content): Rename from
6021 tui_set_exec_info_content.
6022 (tui_update_exec_info): Update.
6023
6024 2019-08-13 Tom Tromey <tom@tromey.com>
6025
6026 * tui/tui-winsource.h (struct tui_source_window_base)
6027 <show_source_content>: Declare.
6028 (tui_show_source_content): Don't declare.
6029 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6030 (tui_source_window_base::show_source_content): Rename from
6031 tui_show_source_content.
6032 (tui_source_window_base::refresh_all): Update.
6033 * tui/tui-layout.c (show_source_disasm_command)
6034 (show_source_or_disasm_and_command): Update.
6035
6036 2019-08-13 Tom Tromey <tom@tromey.com>
6037
6038 * tui/tui-winsource.c (tui_erase_source_content)
6039 (tui_show_source_content, tui_source_window_base::refresh_all):
6040 Update.
6041 * tui/tui-wingeneral.h
6042 (tui_check_and_display_highlight_if_needed): Don't declare.
6043 * tui/tui-wingeneral.c
6044 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6045 check_and_display_highlight_if_needed.
6046 * tui/tui-win.c (tui_rehighlight_all)
6047 (tui_win_info::make_visible_with_new_height): Update.
6048 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6049 (tui_data_window::erase_data_content)
6050 (tui_data_window::display_all_data): Update.
6051 * tui/tui-data.h (struct tui_win_info)
6052 <check_and_display_highlight_if_needed>: Declare.
6053
6054 2019-08-13 Tom Tromey <tom@tromey.com>
6055
6056 * tui/tui-win.c (tui_resize_all): Call
6057 tui_delete_invisible_windows.
6058 * tui/tui-layout.c (show_layout): Call
6059 tui_delete_invisible_windows.
6060 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6061 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6062
6063 2019-08-13 Tom Tromey <tom@tromey.com>
6064
6065 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6066 tui_add_win_to_layout.
6067
6068 2019-08-13 Tom Tromey <tom@tromey.com>
6069
6070 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6071 * tui/tui-layout.c (tui_default_win_height): Now static.
6072
6073 2019-08-13 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6076 single switch.
6077 (show_source_disasm_command, show_source_or_disasm_and_command):
6078 Don't check current layout.
6079
6080 2019-08-13 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui-wingeneral.c (make_all_visible): Remove.
6083 (tui_make_all_invisible): Simplify.
6084 * tui/tui-layout.c (tui_make_all_invisible): Move from
6085 tui-wingeneral.c; simplify.
6086 (show_layout): Hoist call to tui_make_all_invisible.
6087 (show_data): Don't call tui_make_all_invisible.
6088
6089 2019-08-13 Tom Tromey <tom@tromey.com>
6090
6091 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6092 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6093
6094 2019-08-13 Tom Tromey <tom@tromey.com>
6095
6096 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6097 tui-data.c.
6098 (show_source_disasm_command, show_data)
6099 (show_source_or_disasm_and_command): Don't use
6100 tui_set_current_layout_to.
6101 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6102 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6103 tui-layout.c.
6104 (tui_set_current_layout_to): Remove.
6105
6106 2019-08-13 Tom Tromey <tom@tromey.com>
6107
6108 * tui/tui-layout.c (tui_set_layout): Update.
6109 * tui/tui-data.h (struct tui_layout_def): Remove.
6110 (tui_layout_def): Don't declare.
6111 * tui/tui-data.c (layout_def): Remove.
6112 (tui_layout_def): Remove.
6113
6114 2019-08-13 Tom Tromey <tom@tromey.com>
6115
6116 * tui/tui-winsource.h (struct tui_source_window_base)
6117 <clear_detail>: No longer "override".
6118 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6119 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6120 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6121 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6122 Remove.
6123 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6124
6125 2019-08-13 Tom Tromey <tromey@adacore.com>
6126
6127 * tracepoint.c: Don't include readline.h or history.h.
6128
6129 2019-08-12 Tom Tromey <tom@tromey.com>
6130
6131 * configure: Rebuild.
6132 * configure.ac: Check for readline 7.
6133 * NEWS: Mention readline 7 requirement.
6134 * README: Update.
6135
6136 2019-08-12 Tom Tromey <tom@tromey.com>
6137
6138 * mingw-hdep.c (gdb_select): Remove readline hack.
6139
6140 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6141
6142 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6143 when the function fails.
6144
6145 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6146
6147 * s390-tdep.c (s390_type_align): New function.
6148 (s390_gdbarch_init): Set it as type_align gdbarch method.
6149
6150 2019-08-09 Tom de Vries <tdevries@suse.de>
6151
6152 PR gdb/24591
6153 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6154 pc_low with relocation offset.
6155
6156 2019-08-07 Tom Tromey <tromey@adacore.com>
6157
6158 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6159 (print_frame_args): Update.
6160 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6161 Update.
6162 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6163 * frame.h (struct frame_arg): Add initializers.
6164 <error>: Now a unique_xmalloc_ptr.
6165
6166 2019-08-07 Alan Hayward <alan.hayward@arm.com>
6167
6168 * NEWS: Expand the Pointer Authentication entry.
6169 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6170 (aarch64_frame_unmask_lr): ... to this.
6171 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6172 Call aarch64_frame_unmask_lr.
6173 * frame.c (struct frame_info): Add "masked" variable.
6174 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6175 (fprint_frame): Check for masked pc.
6176 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6177 declarations.
6178 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6179 * stack.c (print_frame): Check for masked pc.
6180
6181 2019-08-06 Tom Tromey <tom@tromey.com>
6182
6183 * stabsread.c (patch_block_stabs, read_one_struct_field)
6184 (read_enum_type): Use obstack_strndup.
6185 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6186 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6187 * dwarf2read.c (guess_full_die_structure_name)
6188 (anonymous_struct_prefix): Use obstack_strndup.
6189 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6190 * c-exp.y (yylex): Use obstack_strndup.
6191 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6192 (write_var_or_type): Use obstack_strndup.
6193
6194 2019-08-06 Tom Tromey <tom@tromey.com>
6195
6196 * symfile.c (reread_symbols): Use obstack_strdup.
6197 * stabsread.c (read_type): Use obstack_strdup.
6198 * gdb_obstack.h (obstack_strdup): New overload.
6199 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6200 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6201 (dwarf2_canonicalize_name): Use obstack_strdup.
6202 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6203 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6204 Use obstack_strdup.
6205
6206 2019-08-06 Tom Tromey <tom@tromey.com>
6207
6208 * gdb_obstack.h (obstack_strdup): Define.
6209 * gdb_obstack.c (obstack_strdup): Don't define.
6210
6211 2019-08-06 Tom Tromey <tom@tromey.com>
6212
6213 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6214 obstack_strdup.
6215 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6216 obstack_strdup.
6217 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6218 * stabsread.c (common_block_start): Use obstack_strdup.
6219 * objfiles.c (set_objfile_main_name, objfile): Use
6220 obstack_strdup.
6221 * namespace.c (add_using_directive): Use obstack_strdup.
6222 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6223 * jit.c (finalize_symtab): Use obstack_strdup.
6224 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6225 (guess_partial_die_structure_name, partial_die_info::fixup)
6226 (dwarf2_name): Use obstack_strdup.
6227 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6228 obstack_strdup.
6229 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6230 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6231 obstack_strdup.
6232 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6233
6234 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6235
6236 * unittests/help-doc-selftests.c: New file.
6237 * Makefile.in: Add the new file.
6238
6239 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6240
6241 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6242 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6243 the full first line, except when FOR_VALUE_PREFIX. In this case,
6244 the trailing '.' is not output, and the first character is uppercased.
6245 (print_help_for_command): Update call to print_doc_line.
6246 (print_doc_of_command): Likewise.
6247 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6248 * cli/cli-option.c (append_indented_doc): Do not append newline.
6249 (build_help_option): Append newline after first appended_indented_doc
6250 only if a second call is done.
6251 (build_help): Append 2 new lines before each option, except the first
6252 one.
6253 * compile/compile.c (_initialize_compile): Add new lines after
6254 %OPTIONS%, when not at the end of the help.
6255 Change help doc or code
6256 producing the help doc to respect the invariants.
6257 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6258 Also removed the new line after 'Options:', as all other commands
6259 do not put an empty line between 'Options:' and the first option.
6260 * printcmd.c (_initialize_printcmd): Likewise.
6261 * stack.c (_initialize_stack): Likewise.
6262 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6263 incorrectly telling COMMAND is optional.
6264 * ada-lang.c (_initialize_ada_language): Change help doc or code
6265 producing the help doc to respect the invariants.
6266 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6267 * breakpoint.c (_initialize_breakpoint): Likewise.
6268 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6269 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6270 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6271 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6272 _initialize_cli_style): Likewise.
6273 * corelow.c (core_target_info): Likewise.
6274 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6275 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6276 * filesystem.c (_initialize_filesystem): Likewise.
6277 * frame.c (_initialize_frame): Likewise.
6278 * gnu-nat.c (add_task_commands): Likewise.
6279 * infcall.c (_initialize_infcall): Likewise.
6280 * infcmd.c (_initialize_infcmd): Likewise.
6281 * interps.c (_initialize_interpreter): Likewise.
6282 * language.c (_initialize_language): Likewise.
6283 * linux-fork.c (_initialize_linux_fork): Likewise.
6284 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6285 * maint.c (_initialize_maint_cmds): Likewise.
6286 * memattr.c (_initialize_mem): Likewise.
6287 * printcmd.c (_initialize_printcmd): Likewise.
6288 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6289 _RegEx): Likewise.
6290 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6291 * record-btrace.c (_initialize_record_btrace): Likewise.
6292 * record-full.c (_initialize_record_full): Likewise.
6293 * record.c (_initialize_record): Likewise.
6294 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6295 * regcache.c (_initialize_regcache): Likewise.
6296 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6297 _initialize_remote): Likewise.
6298 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6299 * serial.c (_initialize_serial): Likewise.
6300 * skip.c (_initialize_step_skip): Likewise.
6301 * source.c (_initialize_source): Likewise.
6302 * stack.c (_initialize_stack): Likewise.
6303 * symfile.c (_initialize_symfile): Likewise.
6304 * symtab.c (_initialize_symtab): Likewise.
6305 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6306 * top.c (init_main): Likewise.
6307 * tracefile-tfile.c (tfile_target_info): Likewise.
6308 * tracepoint.c (_initialize_tracepoint): Likewise.
6309 * tui/tui-win.c (_initialize_tui_win): Likewise.
6310 * utils.c (add_internal_problem_command): Likewise.
6311 * valprint.c (value_print_option_defs): Likewise.
6312
6313 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6314
6315 PR build/24886
6316 * configure.ac: Drop enable-libmcheck support.
6317 * configure, config.in: Rebuild.
6318 * libmcheck.m4: Remove.
6319 * acinclude.m4: Don't include it.
6320 * Makefile.in: Don't distribute it.
6321 * top.c (print_gdb_configuration): Don't mention it.
6322
6323 2019-08-06 Tom Tromey <tom@tromey.com>
6324
6325 * utils.c (set_output_style): Sometimes pass stream to
6326 emit_style_escape.
6327 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6328 * record-btrace.c (btrace_insn_history): Update.
6329 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6330 method.
6331 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6332 Update initializers.
6333 <m_uiout>: New field.
6334 <m_di>: Move lower.
6335 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6336 Remove "uiout" parameter.
6337 (dump_insns): Update.
6338 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6339 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6340
6341 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6342
6343 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6344 (error_in_psymtab_expansion): Likewise.
6345 (lookup_symbol_via_quick_fns): Likewise.
6346 (basic_lookup_transparent_type_quick): Likewise.
6347 (basic_lookup_transparent_type_1): Likewise.
6348
6349 2019-08-06 Tom Tromey <tromey@adacore.com>
6350
6351 * source.c (last_source_error): Now bool.
6352 (print_source_lines_base): Make "noprint" bool. Only open
6353 source file when last_source_visited changes.
6354
6355 2019-08-06 Tom Tromey <tromey@adacore.com>
6356
6357 * annotate.c (annotate_source_line): Use g_source_cache.
6358 * source-cache.c (source_cache::get_plain_source_lines): Change
6359 parameters. Populate m_offset_cache.
6360 (source_cache::ensure): New method.
6361 (source_cache::get_line_charpos): New method.
6362 (extract_lines): Move lower. Change parameters.
6363 (source_cache::get_source_lines): Move lower.
6364 * source-cache.h (class source_cache): Update comment.
6365 <get_line_charpos>: New method.
6366 <get_source_lines>: Update comment.
6367 <clear>: Clear m_offset_cache.
6368 <get_plain_source_lines>: Change parameters.
6369 <ensure>: New method
6370 <m_offset_cache>: New member.
6371 * source.c (forget_cached_source_info_for_objfile): Update.
6372 (info_source_command): Use g_source_cache.
6373 (find_source_lines, open_source_file_with_line_charpos): Remove.
6374 (print_source_lines_base, search_command_helper): Use g_source_cache.
6375 * source.h (open_source_file_with_line_charpos): Don't declare.
6376 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6377 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6378 Use g_source_cache.
6379
6380 2019-08-06 Tom Tromey <tromey@adacore.com>
6381
6382 * source-cache.c (source_cache::get_plain_source_lines):
6383 Remove "first_line" and "last_line" parameters.
6384 (source_cache::get_source_lines): Cache plain text.
6385 * source-cache.h (class source_cache)
6386 <get_plain_source_lines>: Update.
6387
6388 2019-08-06 Tom Tromey <tromey@adacore.com>
6389
6390 * source-cache.c (extract_lines): No longer a method.
6391 Changed type of parameter. Include final newline.
6392 (selftests::extract_lines_test): New function.
6393 (_initialize_source_cache): Likewise.
6394 * source-cache.h (class source_cache)
6395 <extract_lines>: Don't declare.
6396
6397 2019-08-06 Tom Tromey <tromey@adacore.com>
6398
6399 * breakpoint.c (init_breakpoint_sal): Update.
6400 (breakpoint): Update.
6401 * breakpoint.h (struct breakpoint) <filter>: Now a
6402 unique_xmalloc_ptr.
6403
6404 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6405
6406 * NEWS: Mention dictionary access on blocks.
6407 * python/py-block.c (blpy_getitem): New function.
6408 (block_object_as_mapping): New struct.
6409 (block_object_type): Use new struct for tp_as_mapping field.
6410
6411 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6412
6413 * objfiles.h (objfile): Add a comment describing partial symbols.
6414
6415 2019-08-05 Tom Tromey <tromey@adacore.com>
6416
6417 * compile/compile.c (_initialize_compile): Use _(), not N_().
6418 * thread.c (_initialize_thread): Use _(), not N_().
6419 * stack.c (_initialize_stack): Use _(), not N_().
6420 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6421
6422 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6423
6424 * dwarf2read.c (struct dw2_symtab_iterator):
6425 <want_specific_block>: Remove.
6426 <block_index>: Change type to gdb::optional.
6427 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6428 change type of BLOCK_INDEX parameter to gdb::optional.
6429 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6430 (dw2_lookup_symbol): Don't pass argument for
6431 WANT_SPECIFIC_BLOCK.
6432 (dw2_expand_symtabs_for_function): Don't pass argument for
6433 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6434 (class dw2_debug_names_iterator)
6435 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6436 parameter, change BLOCK_INDEX type to gdb::optional.
6437 <m_want_specific_block>: Remove.
6438 <m_block_index>: Change type to gdb::optional.
6439 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6440 gdb::optional. Re-write in function of gdb::optional.
6441 (dw2_debug_names_lookup_symbol): Don't pass argument for
6442 WANT_SPECIFIC_BLOCK.
6443 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6444 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6445 BLOCK_INDEX.
6446
6447 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6448
6449 * NEWS: Mention changes to "info sources" command.
6450
6451 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6452
6453 * symtab.c (filename_partial_match_opts): New struct type.
6454 (struct output_source_filename_data): New members
6455 regexp, c_regexp, partial_match.
6456 (output_source_filename): Use new members to decide to print file.
6457 (info_sources_option_defs): New variable.
6458 (make_info_sources_options_def_group, print_info_sources_header,
6459 info_sources_command_completer):
6460 New functions.
6461 (info_sources_command): Read new optional arguments.
6462 (_initialize_symtab): Update info sources help.
6463
6464 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6465
6466 * ada-lang.c (exception_support_info_v0): Renamed from...
6467 (default_exception_support_info): ... this. Create new
6468 definition for v1.
6469 (ada_has_this_exception_support): Look up catch_handlers_sym.
6470 (ada_exception_support_info_sniffer): Try v0 after default.
6471
6472 2019-08-01 Tom Tromey <tromey@adacore.com>
6473
6474 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6475 gdbarch.h.
6476
6477 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6478
6479 * s12z-tdep.c: Fix include path for s12z-opc.h.
6480
6481 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6482
6483 * NEWS: Require GNU make 3.82.
6484
6485 2019-07-16 Tom Tromey <tom@tromey.com>
6486
6487 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6488 declare.
6489
6490 2019-07-30 Tom Tromey <tromey@adacore.com>
6491
6492 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6493
6494 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6495
6496 * printcmd.c (print_address_symbolic): Print negative offsets.
6497 (build_address_symbolic): Force signed arithmetic when computing
6498 offset.
6499
6500 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6501
6502 PR/24474: Add a function to lookup static variables.
6503 * NEWS: Mention this new function.
6504 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6505 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6506 * python/python.c (python_GdbMethods): Add new function.
6507
6508 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6509
6510 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6511 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6512 (objfpy_lookup_static_symbol): New function.
6513 (objfile_object_methods): Add new functions.
6514
6515 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6516
6517 * NEWS: Mention 'set|show print frame-info'. Mention new
6518 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6519 backtrace argument. Mention that python frame filtering code
6520 is now consistent with what 'backtrace' command prints.
6521
6522 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6523
6524 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6525 comments.
6526 (print_frame_info_auto, print_frame_info_source_line,
6527 print_frame_info_location, print_frame_info_source_and_location,
6528 print_frame_info_location_and_address, print_frame_info_short_location):
6529 New declarations.
6530 (struct frame_print_options): New member print_frame_info.
6531 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6532 * stack.h (get_user_print_what_frame_info): New declaration.
6533 (frame_show_address): New declaration.
6534 * stack.c (print_frame_arguments_choices): New value 'presence'.
6535 (print_frame_info_auto, print_frame_info_source_line,
6536 print_frame_info_location, print_frame_info_source_and_location,
6537 print_frame_info_location_and_address, print_frame_info_short_location,
6538 print_frame_info_choices, print_frame_info_print_what): New definitions.
6539 (print_frame_args): Only print dots for args if print frame-arguments
6540 is 'presence'.
6541 (frame_print_option_defs): New element for "frame-info".
6542 (get_user_print_what_frame_info): New function.
6543 (frame_show_address): Make non static. Move comment to stack.h.
6544 (print_frame_info_to_print_what): New function.
6545 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6546 to decide what to print.
6547 (backtrace_command_1): Handle the new print_frame_arguments_presence
6548 value.
6549 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6550 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6551 (py_print_frame): In non-mi mode, use LOCATION as default for
6552 print_what, similarly to frame information printed directly by
6553 backtrace command. Handle frame-info user option in non MI mode.
6554
6555 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6556
6557 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6558 Add case for debugging 32-bit target on 64-bit host. Revise
6559 comment.
6560
6561 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6562
6563 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6564 instead of find_function_entry_range_from_pc.
6565
6566 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6567
6568 * stack.c (find_frame_funname): Remove code which preferred
6569 minsym over symtab sym in "certain pathological cases".
6570
6571 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6572 parameter. Change type of "do_demangle" to bool.
6573 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6574 Pass suitable "prefer_sym_over_minsym" flag to
6575 build_address_symbolic(). Don't output "+" for negative offsets.
6576 * printcmd.c (print_address_symbolic): Update invocation of
6577 build_address_symbolic to include a "prefer_sym_over_minsym"
6578 flag.
6579 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6580 Restrict cases in which use of minimal symbol is preferred to that
6581 of a found symbol. Update comments.
6582
6583 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6584 for entry pc when entry pc is out of range for that FDE.
6585
6586 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6587
6588 PR gdb/24839:
6589 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6590 type.
6591
6592 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6593
6594 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6595 this function's Python signature.
6596
6597
6598 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6599
6600 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6601 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6602 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6603 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6604 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6605
6606
6607 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6608
6609 * h8300-tdep.c (h8300_register_name_common): New.
6610 h8300_register_name): Use h8300_register_name_common.
6611 (h8300s_register_name): Likewise.
6612 (h8300sx_register_name): Likewise.
6613 (h8300h_register_nam): New.
6614 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6615
6616
6617 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6618
6619 * arm-tdep.c (arm_skip_cmse_entry): New function.
6620 (arm_is_sgstubs_section): New function.
6621 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6622
6623 2019-07-22 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6626 Don't self-assign.
6627
6628 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6631 type_print.
6632
6633 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6634
6635 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6636 so that GDB doesn't match any msymbols when searching in the
6637 TYPES_DOMAIN.
6638 (print_symbol_info): Print using typedef_print or type_print based
6639 on the type of the symbol. Add updated FIXME comment moved from...
6640 (_initialize_symtab): ... move and update FIXME comment to above.
6641
6642 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6643
6644 * NEWS: Mention adding -q option to "info types".
6645 * symtab.c (struct info_types_options): New struct.
6646 (info_types_options_defs): New variable.
6647 (make_info_types_options_def_group): New function.
6648 (info_types_command): Use gdb::option framework to parse options.
6649 (info_types_command_completer): New function.
6650 (_initialize_symtab): Extend the help text on "info types" and
6651 register command completer.
6652
6653 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6654
6655 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6656 (lookup_symbol_in_objfile): Change int to block_enum and add a
6657 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6658
6659 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6660
6661 * MAINTAINERS (Write After Approval): Add self.
6662
6663 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6666 instruction to the dummy code region.
6667
6668 2019-07-19 Tom Tromey <tromey@adacore.com>
6669
6670 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6671 (ARGSUSED, PARAMS, __func__): Remove rules.
6672
6673 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6674
6675 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6676 * features/arm/arm-with-iwmmxt.c: Remove.
6677 * features/arm/arm-with-iwmmxt.xml: Remove.
6678 * features/arm/arm-with-m-fpa-layout.c: Remove.
6679 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6680 * features/arm/arm-with-m-vfp-d16.c: Remove.
6681 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6682 * features/arm/arm-with-m.c: Remove.
6683 * features/arm/arm-with-m.xml: Remove.
6684 * features/arm/arm-with-neon.c: Remove.
6685 * features/arm/arm-with-neon.xml: Remove.
6686 * features/arm/arm-with-vfpv2.c: Remove.
6687 * features/arm/arm-with-vfpv2.xml: Remove.
6688 * features/arm/arm-with-vfpv3.c: Remove.
6689 * features/arm/arm-with-vfpv3.xml: Remove.
6690
6691 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6692
6693 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6694
6695 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6696
6697 * arch/aarch32.c (aarch32_create_target_description): Create
6698 target descriptions using features.
6699 * arch/arm.c (arm_create_target_description)
6700 (arm_create_mprofile_target_description): Likewise.
6701 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6702
6703 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6704
6705 * Makefile.in: Add new files.
6706 * aarch32-tdep.c: New file.
6707 * aarch32-tdep.h: New file.
6708 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6709 Call aarch32_read_description.
6710 * arch/aarch32.c: New file.
6711 * arch/aarch32.h: New file.
6712 * arch/arm.c (arm_create_target_description)
6713 (arm_create_mprofile_target_description): New function.
6714 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6715 (arm_create_target_description)
6716 (arm_create_mprofile_target_description): New declaration.
6717 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6718 read_description functions.
6719 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6720 Likewise.
6721 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6722 * arm-tdep.c (tdesc_arm_list): New variable.
6723 (arm_register_g_packet_guesses): Call create description functions.
6724 (arm_read_description) (arm_read_mprofile_description): New
6725 function.
6726 * arm-tdep.h (arm_read_description)
6727 (arm_read_mprofile_description): Add declaration.
6728 * configure.tgt: Add new files.
6729
6730 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6731
6732 * top.c (new_ui_command): Open specified terminal just once.
6733
6734 2019-07-18 Tom Tromey <tromey@adacore.com>
6735
6736 * symtab.c (main_name): Constify return type.
6737 * symfile.c (set_initial_language): Update.
6738 * symtab.h (main_name): Constify return type.
6739
6740 2019-07-17 Tom Tromey <tom@tromey.com>
6741
6742 * tui/tui-winsource.c (tui_update_source_window)
6743 (tui_update_source_window_as_is)
6744 (tui_update_source_windows_with_line): Remove return.
6745 * tui/tui-disasm.c (tui_show_disassem)
6746 (tui_show_disassem_and_update_source): Remove return.
6747 * tui/tui.c (tui_reset): Remove return.
6748 * tui/tui-wingeneral.c
6749 (tui_check_and_display_highlight_if_needed): Remove return.
6750
6751 2019-07-17 Tom Tromey <tom@tromey.com>
6752
6753 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6754
6755 2019-07-17 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-winsource.h (struct tui_exec_info_window)
6758 (struct tui_source_window_base): Move from tui-data.h.
6759 * tui/tui-winsource.c: Move many method definitions from
6760 elsewhere. Remove "structuring" comments.
6761 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6762 (tui_source_window_base::refresh_window): Move to
6763 tui-winsource.c.
6764 * tui/tui-win.c (tui_source_window_base::refresh_all)
6765 (tui_source_window_base::update_tab_width)
6766 (tui_source_window_base::set_new_height)
6767 (tui_source_window_base::do_make_visible_with_new_height): Move to
6768 tui-winsource.c.
6769 * tui/tui-source.h: Update.
6770 * tui/tui-source.c (tui_source_window_base::reset): Move to
6771 tui-winsource.c.
6772 * tui/tui-disasm.h: Update.
6773 * tui/tui-data.h (struct tui_exec_info_window): Move to
6774 tui-winsource.h.
6775 (struct tui_source_window_base): Likewise.
6776 * tui/tui-data.c (tui_source_window_base::clear_detail)
6777 (tui_source_window_base, ~tui_source_window_base): Move to
6778 tui-winsource.c.
6779
6780 2019-07-17 Tom Tromey <tom@tromey.com>
6781
6782 * tui/tui-win.c (tui_resize_all)
6783 (tui_source_window_base::update_tab_width)
6784 (tui_adjust_win_heights): Update.
6785 (tui_win_info::make_invisible_and_set_new_height): Rename from
6786 make_invisible_and_set_new_height.
6787 * tui/tui-data.h (struct tui_win_info)
6788 <make_invisible_and_set_new_height>: New method.
6789
6790 2019-07-17 Tom Tromey <tom@tromey.com>
6791
6792 * tui/tui.c: Update.
6793 * tui/tui-source.h (struct tui_source_window): Move from
6794 tui-data.h.
6795 * tui/tui-layout.c: Update.
6796 * tui/tui-disasm.c: Update.
6797 * tui/tui-data.h (struct tui_source_window): Move to
6798 tui-source.h.
6799
6800 2019-07-17 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6803 tui-data.h.
6804 * tui/tui-data.h (struct tui_disasm_window): Move to
6805 tui-disasm.h.
6806
6807 2019-07-17 Tom Tromey <tom@tromey.com>
6808
6809 * tui/tui-regs.h (struct tui_data_item_window): Move from
6810 tui-data.h.
6811 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6812 * tui/tui-data.h (struct tui_data_item_window): Move to
6813 tui-regs.h.
6814 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6815
6816 2019-07-17 Tom Tromey <tom@tromey.com>
6817
6818 * tui/tui.c: Update.
6819 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6820 (tui_cmd_window::max_height): Move to tui-command.c.
6821 * tui/tui-layout.c: Update.
6822 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6823 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6824 tui-command.c.
6825 * tui/tui-command.h (struct tui_cmd_window): Move from
6826 tui-data.h.
6827 * tui/tui-command.c: Remove "structuring" comments.
6828 (tui_cmd_window::clear_detail)
6829 (tui_cmd_window::do_make_visible_with_new_height)
6830 (tui_cmd_window::max_height): Move from elsewhere.
6831
6832 2019-07-17 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6835 Now static.
6836 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6837 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6838
6839 2019-07-17 Tom Tromey <tom@tromey.com>
6840
6841 * tui/tui.c: Update.
6842 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6843 tui-regs.c.
6844 * tui/tui-windata.h: Remove file.
6845 * tui/tui-windata.c: Remove file.
6846 * tui/tui-win.c (tui_data_window::set_new_height)
6847 (tui_data_window::do_make_visible_with_new_height): Move to
6848 tui-regs.c.
6849 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6850 * tui/tui-regs.c: Remove "structuring" comments.
6851 (tui_data_window::first_data_item_displayed)
6852 (tui_data_window::delete_data_content_windows)
6853 (tui_data_window::erase_data_content)
6854 (tui_data_window::display_all_data)
6855 (tui_data_window::refresh_all)
6856 (tui_data_window::do_scroll_vertical)
6857 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6858 (tui_data_window::do_make_visible_with_new_height)
6859 (tui_data_window::refresh_window): Move from elsewhere.
6860 (_initialize_tui_regs): Move to end of file.
6861 * tui/tui-layout.c: Update.
6862 * tui/tui-hooks.c: Update.
6863 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6864 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6865 tui-regs.c.
6866 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6867
6868 2019-07-17 Tom Tromey <tom@tromey.com>
6869
6870 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6871 seen.
6872
6873 2019-07-17 Tom Tromey <tom@tromey.com>
6874
6875 * tui/tui-win.c (tui_source_window_base::set_new_height)
6876 (tui_source_window_base::do_make_visible_with_new_height): Use
6877 m_has_locator field directly.
6878 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6879 method.
6880 (struct tui_source_window_base) <has_locator>: Likewise.
6881
6882 2019-07-17 Tom Tromey <tom@tromey.com>
6883
6884 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6885 Don't declare.
6886 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6887 Remove.
6888 * tui/tui-win.c (tui_source_window_base::set_new_height)
6889 (tui_source_window_base::set_new_height)
6890 (make_invisible_and_set_new_height)
6891 (tui_source_window_base::do_make_visible_with_new_height)
6892 (tui_source_window_base::do_make_visible_with_new_height):
6893 Update.
6894 * tui/tui-layout.c (show_source_disasm_command, show_data)
6895 (show_source_or_disasm_and_command): Update.
6896 * tui/tui-layout.c (show_layout): Update.
6897
6898 2019-07-17 Tom Tromey <tom@tromey.com>
6899
6900 * tui/tui-layout.c (make_data_window): Remove.
6901 (show_data): Unify creation and re-initialization cases.
6902
6903 2019-07-17 Tom Tromey <tom@tromey.com>
6904
6905 * tui/tui-layout.c (make_source_window, make_disasm_window):
6906 Remove.
6907 (show_data): Unify creation and re-initialization cases.
6908
6909 2019-07-17 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-layout.c (make_command_window): Remove.
6912 (show_source_disasm_command, show_source_or_disasm_and_command):
6913 Unify creation and re-initialization cases.
6914
6915 2019-07-17 Tom Tromey <tom@tromey.com>
6916
6917 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6918 creation and re-initialization cases.
6919
6920 2019-07-17 Tom Tromey <tom@tromey.com>
6921
6922 * tui/tui-regs.c (tui_get_register): Return void.
6923
6924 2019-07-17 Tom Tromey <tom@tromey.com>
6925
6926 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6927 Simplify.
6928
6929 2019-07-17 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6932 resetting.
6933
6934 2019-07-17 Tom Tromey <tom@tromey.com>
6935
6936 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6937 * tui/tui-regs.c (tui_reg_layout): New function.
6938 (tui_show_registers, tui_reg_command): Use it.
6939 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6940 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6941 parameters.
6942 (tui_layout_command): Remove.
6943
6944 2019-07-17 Tom Tromey <tom@tromey.com>
6945
6946 * tui/tui-layout.h (tui/tui-layout): Return void.
6947 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6948
6949 2019-07-17 Tom Tromey <tom@tromey.com>
6950
6951 * tui/tui-layout.c (show_source_disasm_command, show_data):
6952 Update.
6953 (reset_locator): Remove.
6954 (show_source_or_disasm_and_command): Update.
6955
6956 2019-07-17 Tom Tromey <tom@tromey.com>
6957
6958 * tui/tui-source.c (tui_source_window_base::reset): Remove
6959 win_type parameter.
6960 * tui/tui-layout.c (make_command_window, make_source_window)
6961 (make_disasm_window, make_data_window)
6962 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6963 (reset_locator, show_source_or_disasm_and_command): Update.
6964 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6965 win_type parameter.
6966 (struct tui_source_window_base) <reset>: Likewise.
6967
6968 2019-07-17 Tom Tromey <tom@tromey.com>
6969
6970 * tui/tui-layout.c (show_source_disasm_command): Use
6971 reset_locator.
6972 (reset_locator): New function.
6973 (init_and_make_win): Remove.
6974 (show_source_or_disasm_and_command): Use reset_locator.
6975
6976 2019-07-17 Tom Tromey <tom@tromey.com>
6977
6978 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6979 condition.
6980 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6981 Remove condition.
6982 * tui/tui-source.c (tui_source_window_base::reset): New method.
6983 * tui/tui-layout.c (make_command_window): Don't call
6984 init_and_make_win.
6985 (make_source_window, make_disasm_window): Don't call
6986 make_source_or_disasm_window.
6987 (make_data_window): Don't call init_and_make_win. Change calling
6988 convention.
6989 (show_source_disasm_command, show_data): Simplify.
6990 (make_source_or_disasm_window): Remove.
6991 (show_source_or_disasm_and_command): Simplify.
6992 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6993 (struct tui_source_window_base) <reset>: Likewise.
6994 <execution_info>: Remove initializer.
6995 * tui/tui-data.c (tui_source_window_base): Initialize
6996 execution_info.
6997
6998 2019-07-17 Tom Tromey <tom@tromey.com>
6999
7000 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7001 variable.
7002
7003 2019-07-17 Tom Tromey <tom@tromey.com>
7004
7005 * tui/tui.c (tui_rl_other_window): Update.
7006 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7007 superclass method first. Always iterate over regs_content.
7008 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7009 method.
7010 * tui/tui-win.c (tui_set_focus_command): Update.
7011
7012 2019-07-17 Tom Tromey <tom@tromey.com>
7013
7014 * tui/tui-win.c (tui_set_focus_command): Rename from
7015 tui_set_focus. Call tui_enable.
7016 (tui_set_focus_command): Remove.
7017
7018 2019-07-17 Tom Tromey <tom@tromey.com>
7019
7020 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7021 refresh_window.
7022 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7023 touchwin.
7024 (tui_data_window::refresh_window): Call refresh_window on data
7025 items. Always call superclass refresh_window.
7026 (tui_win_info::refresh): Remove.
7027 (tui_source_window_base::refresh_window): Update.
7028 (tui_refresh_all): Update.
7029 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7030 refresh_window.
7031 (show_source_or_disasm_and_command): Likewise.
7032 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7033 (struct tui_source_window_base) <refresh>: Likewise.
7034
7035 2019-07-17 Tom Tromey <tom@tromey.com>
7036
7037 * tui/tui-winsource.c (tui_clear_source_content)
7038 (tui_show_source_content): Update.
7039 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7040 whether content is empty.
7041 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7042 Remove.
7043
7044 2019-07-17 Tom Tromey <tom@tromey.com>
7045
7046 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7047 window's contents.
7048 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7049 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7050
7051 2019-07-17 Tom Tromey <tom@tromey.com>
7052
7053 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7054 (struct tui_data_item_window): Update.
7055
7056 2019-07-17 Tom Tromey <tom@tromey.com>
7057
7058 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7059 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7060 defines.
7061
7062 2019-07-17 Tom Tromey <tom@tromey.com>
7063
7064 * tui/tui-winsource.h (tui_erase_source_content)
7065 (tui_clear_source_content): Remove "display_prompt" parameter.
7066 * tui/tui-winsource.c (tui_update_source_window_as_is)
7067 (tui_update_source_windows_with_addr): Update.
7068 (tui_clear_source_content): Remove "display_prompt" parameter.
7069 (tui_erase_source_content): Likewise. Simplify.
7070 (tui_show_source_content): Update.
7071 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7072 * tui/tui-stack.c (tui_show_frame_info): Update.
7073 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7074 Remove defines.
7075
7076 2019-07-17 Tom Tromey <tom@tromey.com>
7077
7078 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7079 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7080 parameter.
7081 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7082 parameter.
7083
7084 2019-07-17 Tom Tromey <tom@tromey.com>
7085
7086 * tui/tui-winsource.c (tui_clear_source_content)
7087 (tui_show_source_content, tui_show_exec_info_content)
7088 (tui_clear_exec_info_content): Update.
7089 * tui/tui-stack.c (tui_show_locator_content): Update.
7090 (tui_show_frame_info): Update.
7091 * tui/tui-source.h (tui_source_window): Don't declare.
7092 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7093 from tui_source_is_displayed.
7094 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7095 Remove field.
7096 (struct tui_source_window_base) <content_in_use>: New field. Now
7097 bool.
7098 (struct tui_source_window) <showing_source_p>: New method.
7099 (TUI_SRC_WIN): Change cast.
7100 * tui/tui-data.c (tui_initialize_static_data): Update.
7101
7102 2019-07-17 Tom Tromey <tom@tromey.com>
7103
7104 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7105 location_matches_p.
7106 * tui/tui-source.c (tui_source_window::location_matches_p): New
7107 method.
7108 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7109 method.
7110 * tui/tui-data.h (struct tui_source_window_base)
7111 <location_matches_p>: New method.
7112 (struct tui_source_window, struct tui_disasm_window)
7113 <location_matches_p>: Likewise.
7114
7115 2019-07-17 Tom Tromey <tom@tromey.com>
7116
7117 * tui/tui-win.c (tui_set_win_height_command): Rename from
7118 tui_set_win_height.
7119 (tui_set_win_height_command): Remove.
7120
7121 2019-07-17 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-source.c (tui_source_window): New constructor. Add
7124 observer.
7125 (~tui_source_window): New destructor.
7126 (tui_source_window::style_changed): New method.
7127 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7128 (tui_attach_detach_observers): Update.
7129 * tui/tui-data.h (struct tui_source_window): Make constructor not
7130 inline. Add destructor.
7131 (struct tui_source_window) <style_changed>: New method.
7132 <m_observable>: New member.
7133
7134 2019-07-17 Tom Tromey <tom@tromey.com>
7135
7136 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7137 * tui/tui-win.c (tui_resize_all): Fix typo.
7138
7139 2019-07-17 Tom Tromey <tom@tromey.com>
7140
7141 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7142 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7143 (tui_refresh_all): Remove "list" parameter. Use foreach.
7144 * tui/tui-win.c (window_name_completer): Use foreach.
7145 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7146 (update_tab_width): Likewise.
7147 * tui/tui-layout.c (show_layout): Update.
7148 * tui/tui-data.h (class tui_window_iterator): New.
7149 (struct all_tui_windows): New.
7150 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7151
7152 2019-07-17 Tom Tromey <tom@tromey.com>
7153
7154 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7155 parameter. Don't reference globals.
7156 (tui_reg_command): Update.
7157
7158 2019-07-17 Tom Tromey <tom@tromey.com>
7159
7160 * tui/tui-regs.c (tui_show_registers): Simplify.
7161
7162 2019-07-17 Tom Tromey <tom@tromey.com>
7163
7164 * tui/tui-regs.c (tui_show_registers): Update.
7165 (tui_show_register_group): Add win_info parameter.
7166
7167 2019-07-17 Tom Tromey <tom@tromey.com>
7168
7169 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7170 Rename from tui_display_reg_element_at_line.
7171 (tui_data_window::display_registers_from_line): Update.
7172 * tui/tui-data.h (struct tui_data_window)
7173 <display_reg_element_at_line>: New method.
7174
7175 2019-07-17 Tom Tromey <tom@tromey.com>
7176
7177 * tui/tui-regs.h (tui_display_registers_from)
7178 (tui_display_registers_from_line): Don't declare.
7179 * tui/tui-windata.c (tui_data_window::display_all_data)
7180 (tui_data_window::refresh_all)
7181 (tui_data_window::do_scroll_vertical): Update.
7182 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7183 from tui_display_registers_from.
7184 (tui_display_reg_element_at_line): Update.
7185 (tui_data_window::display_registers_from_line): Rename from
7186 tui_display_registers_from_line.
7187 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7188 display_registers_from_line>: New methods.
7189
7190 2019-07-17 Tom Tromey <tom@tromey.com>
7191
7192 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7193 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7194 from tui_erase_data_content.
7195 (tui_data_window::display_all_data)
7196 (tui_data_window::refresh_all)
7197 (tui_data_window::do_scroll_vertical): Update.
7198 * tui/tui-regs.c (tui_show_registers): Update.
7199 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7200 New method.
7201
7202 2019-07-17 Tom Tromey <tom@tromey.com>
7203
7204 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7205 declare.
7206 * tui/tui-windata.c
7207 (tui_data_window::delete_data_content_windows): Rename from
7208 tui_delete_data_content_windows.
7209 (tui_data_window::display_all_data)
7210 (tui_data_window::do_scroll_vertical): Update.
7211 * tui/tui-data.h (struct tui_data_window)
7212 <delete_data_content_windows>: New method.
7213
7214 2019-07-17 Tom Tromey <tom@tromey.com>
7215
7216 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7217 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7218
7219 2019-07-17 Tom Tromey <tom@tromey.com>
7220
7221 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7222 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7223 from tui_display_all_data.
7224 * tui/tui-win.c
7225 (tui_data_window::do_make_visible_with_new_height): Update.
7226 * tui/tui-regs.c (tui_show_registers): Update.
7227 * tui/tui-layout.c (tui_set_layout): Update.
7228 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7229 method.
7230
7231 2019-07-17 Tom Tromey <tom@tromey.com>
7232
7233 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7234 * tui/tui-windata.c (tui_display_data_from): Remove.
7235 (tui_data_window::refresh_all): Update.
7236
7237 2019-07-17 Tom Tromey <tom@tromey.com>
7238
7239 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7240 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7241 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7242 tui_display_registers_from_line.
7243 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7244 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7245 "force_display" parameter.
7246
7247 2019-07-17 Tom Tromey <tom@tromey.com>
7248
7249 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7250 declare.
7251 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7252 Rename from tui_first_reg_element_no_inline.
7253 (tui_display_reg_element_at_line)
7254 (tui_display_registers_from_line): Update.
7255 * tui/tui-data.h (struct tui_data_window)
7256 <first_reg_element_no_inline>: New method.
7257
7258 2019-07-17 Tom Tromey <tom@tromey.com>
7259
7260 * tui/tui-windata.c (tui_display_data_from)
7261 (tui_data_window::do_scroll_vertical): Update.
7262 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7263 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7264 Rename from tui_line_from_reg_element_no.
7265 (tui_display_registers_from_line): Update.
7266 * tui/tui-data.h (struct tui_data_window)
7267 <line_from_reg_element_no>: New method.
7268
7269 2019-07-17 Tom Tromey <tom@tromey.com>
7270
7271 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7272 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7273 tui_last_regs_line_no.
7274 (tui_display_reg_element_at_line)
7275 (tui_display_registers_from_line): Update.
7276 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7277 method.
7278
7279 2019-07-17 Tom Tromey <tom@tromey.com>
7280
7281 PR tui/24722:
7282 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7283 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7284 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7285 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7286 (tui_update_breakpoint_info): Likewise.
7287 * tui/tui-hooks.c (tui_event_create_breakpoint)
7288 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7289 Update.
7290
7291 2019-07-17 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7294
7295 2019-07-17 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui-winsource.c (tui_update_source_window_as_is)
7298 (tui_update_source_windows_with_addr): Update.
7299 * tui/tui-source.h (tui_set_source_content)
7300 (tui_show_symtab_source): Add "win_info" parameter.
7301 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7302 parameter.
7303 (tui_show_symtab_source): Likewise.
7304
7305 2019-07-17 Tom Tromey <tom@tromey.com>
7306
7307 * tui/tui-wingeneral.c
7308 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7309
7310 2019-07-17 Tom Tromey <tom@tromey.com>
7311
7312 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7313 (struct tui_cmd_window) <can_scroll>: New method.
7314 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7315 method.
7316
7317 2019-07-17 Tom Tromey <tromey@adacore.com>
7318
7319 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7320 do_field_signed>: Rename. Change type of "value".
7321 * ui-out.c (ui_out::field_signed): Rename from field_int.
7322 Change type of "value".
7323 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7324 type of "value".
7325 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7326 do_field_int. Change type of "value".
7327 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7328 do_field_int. Change type of "value".
7329 * tracepoint.c (trace_status_mi, tfind_1)
7330 (print_one_static_tracepoint_marker): Update.
7331 * thread.c (print_thread_info_1, print_selected_thread_frame):
7332 Update.
7333 * stack.c (print_frame, print_frame_info): Update.
7334 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7335 Update.
7336 * source.c (print_source_lines_base): Update.
7337 * skip.c (info_skip_command): Update.
7338 * record-btrace.c (btrace_ui_out_decode_error)
7339 (btrace_call_history_src_line): Update.
7340 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7341 Update.
7342 * progspace.c (print_program_space): Update.
7343 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7344 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7345 do_field_int. Change type of "value".
7346 * mi/mi-out.c (mi_ui_out::do_table_begin)
7347 (mi_ui_out::do_table_header): Update.
7348 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7349 type of "value".
7350 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7351 (mi_cmd_data_list_changed_registers, output_register)
7352 (mi_cmd_data_read_memory, mi_load_progress)
7353 (mi_cmd_trace_frame_collected): Update.
7354 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7355 Update.
7356 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7357 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7358 (mi_cmd_var_list_children, varobj_update_one): Update.
7359 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7360 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7361 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7362 * inferior.c (print_inferior): Update.
7363 * gdb_bfd.c (print_one_bfd): Update.
7364 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7365 Update.
7366 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7367 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7368 do_field_int. Change type of "value".
7369 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7370 do_field_int. Change type of "value".
7371 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7372 (print_one_breakpoint_location, print_it_catch_fork)
7373 (print_one_catch_fork, print_it_catch_vfork)
7374 (print_one_catch_vfork, print_it_catch_solib)
7375 (print_it_catch_exec, print_it_ranged_breakpoint)
7376 (print_mention_watchpoint, print_mention_masked_watchpoint)
7377 (bkpt_print_it, update_static_tracepoint): Update.
7378 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7379 * break-catch-syscall.c (print_it_catch_syscall): Update.
7380 * ada-tasks.c (print_ada_task_info): Update.
7381 * ada-lang.c (print_it_exception, print_mention_exception):
7382 Update.
7383
7384 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7385
7386 PR breakpoints/24541
7387 * gdbarch.c: Regenerate.
7388 * gdbarch.h: Regenerate.
7389 * gdbarch.sh: Adjust return type and parameter types for
7390 'stap_adjust_register'.
7391 (i386_stap_adjust_register): Adjust signature and return new
7392 register name.
7393 * stap-probe.c (stap_parse_register_operand): Adjust use of
7394 'gdbarch_stap_adjust_register'.
7395
7396 2019-07-17 Tom Tromey <tromey@adacore.com>
7397
7398 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7399 declare VEC.
7400 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7401 std::vector.
7402 (struct s390_process_info): Add initializers.
7403 (s390_add_process): Use new.
7404 (s390_linux_nat_target::low_forget_process): Use delete.
7405 (s390_linux_nat_target::low_new_fork)
7406 (s390_linux_nat_target::stopped_by_watchpoint)
7407 (s390_linux_nat_target::low_prepare_to_resume)
7408 (s390_linux_nat_target::insert_watchpoint)
7409 (s390_linux_nat_target::insert_hw_breakpoint)
7410 (s390_linux_nat_target::remove_watchpoint)
7411 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7412
7413 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7414
7415 * aarch64-fbsd-nat.c: Include regcache.h.
7416 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7417 argument.
7418 (aarch64_fbsd_nat_target::fetch_registers)
7419 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7420 variable.
7421 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7422
7423 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7424
7425 * fbsd-nat.c: Include gdbarch.h.
7426
7427 2019-07-15 Tom Tromey <tromey@adacore.com>
7428
7429 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7430
7431 2019-07-15 Tom Tromey <tromey@adacore.com>
7432
7433 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7434 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7435 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7436 * cli-out.c (cli_ui_out::do_field_int): New method.
7437 * ui-out.c (ui_out::field_unsigned): New method.
7438 * symfile.c (generic_load): Use field_unsigned.
7439 (print_transfer_performance): Likewise.
7440 * record-btrace.c (ui_out_field_uint): Remove.
7441 (btrace_call_history_insn_range, btrace_call_history): Use
7442 field_unsigned.
7443 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7444 field_unsigned.
7445 * ui-out.h (class ui_out) <field_unsigned>: New method.
7446 <do_field_unsigned>: Likewise.
7447
7448 2019-07-15 Tom Tromey <tromey@adacore.com>
7449
7450 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7451 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7452 * target.c (flash_erase_command): Use field_string.
7453 * infrun.c (print_signal_received_reason): Use field_string.
7454 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7455 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7456 field_string.
7457 * ada-tasks.c (print_ada_task_info): Use field_string.
7458
7459 2019-07-15 Tom Tromey <tromey@adacore.com>
7460
7461 * target.c (flash_erase_command): Use field_core_addr.
7462 * symfile.c (generic_load): Use field_core_addr.
7463 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7464 Use field_core_addr.
7465 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7466 field_core_addr.
7467
7468 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7469
7470 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7471 value if its desired type is smaller than a CORE_ADDR and signed.
7472
7473 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7474
7475 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7476 of changes to field names, and use new is_reference field to
7477 decide if a property is a reference or not.
7478 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7479 field.
7480 (struct dwarf2_property_baton): Update header comment, rename
7481 'referenced_type' to 'property_type' and update comments.
7482 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7483 default property type, store in property baton, update to take
7484 accound of renamed field.
7485 (read_func_scope): Update call to attr_to_dynamic_prop.
7486 (read_array_type): Likewise.
7487 (dwarf2_per_cu_addr_sized_int_type): New function.
7488 (read_subrange_index_type): Move type finding code to
7489 dwarf2_per_cu_addr_sized_int_type.
7490 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7491 (dwarf2_per_cu_addr_type): New function.
7492 (set_die_type): Update calls to attr_to_dynamic_prop.
7493
7494 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7495
7496 * dwarf2read.c (read_subrange_index_type): New function.
7497 (read_subrange_type): Move code into new function and call it.
7498 * gdbtypes.c (create_range_type): Add some asserts.
7499
7500 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7501
7502 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7503 update return statements.
7504 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7505 declaration, and update comment to match.
7506 * gdbtypes.c (resolve_dynamic_array): Update call to
7507 dwarf2_evaluate_property to match new return type.
7508
7509 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7510
7511 * valarith.c (value_subscripted_rvalue): Change lowerbound
7512 parameter type from int to LONGEST.
7513 * value.h (value_subscripted_rvalue): Likewise in declaration.
7514
7515 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7516
7517 * cli/cli-utils.c (info_print_command_completer): New function.
7518 * cli/cli-utils.h: Add 'completer.h' include, and forward
7519 declaration for 'struct cmd_list_element'.
7520 (info_print_command_completer): Declare.
7521 * stack.c (_initialize_stack): Add completer for 'info locals' and
7522 'info args'.
7523 * symtab.c (_initialize_symtab): Add completer for 'info
7524 variables' and 'info functions'.
7525 * NEWS: Mention completion for additional info commands.
7526
7527 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7528
7529 * cli/cli-utils.c (extract_info_print_args): Delete.
7530 (extract_arg_maybe_quoted): Delete.
7531 (info_print_options_defs): New variable.
7532 (make_info_print_options_def_group): New function.
7533 (extract_info_print_options): Define new function.
7534 * cli/cli-utils.h (extract_info_print_args): Delete.
7535 (struct info_print_options): New structure.
7536 (extract_info_print_options): Declare new function.
7537 * stack.c (info_locals_command): Update to use new
7538 extract_info_print_options, also add a header comment.
7539 (info_args_command): Likewise.
7540 * symtab.c (info_variables_command): Likewise.
7541 (info_functions_command): Likewise.
7542
7543 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7544
7545 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7546 to extract string arguments.
7547 * common/common-utils.c (extract_string_maybe_quoted): New function.
7548 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7549
7550 2019-07-11 Tom Tromey <tromey@adacore.com>
7551
7552 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7553 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7554 * top.h (gdbinit): Don't declare.
7555 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7556 into...
7557 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7558 * top.c (gdb_init): Don't call init_cli_cmds.
7559 (gdbinit): Remove.
7560 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7561
7562 2019-07-11 Tom Tromey <tromey@adacore.com>
7563
7564 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7565 after it has been moved.
7566
7567 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7568
7569 * valops.c (value_must_coerce_to_target): Change return type to
7570 bool.
7571 * value.h (value_must_coerce_to_target): Likewise.
7572
7573 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * breakpoint.c (is_hardware_watchpoint): Remove
7576 forward-declaration.
7577 (is_masked_watchpoint): Change return type to bool.
7578 (is_tracepoint): Likewise.
7579 (is_breakpoint): Likewise.
7580 (is_hardware_watchpoint): Likewise.
7581 (is_watchpoint): Likewise.
7582 (is_no_memory_software_watchpoint): Likewise.
7583 (is_catchpoint): Likewise.
7584 (breakpoint_1): Make FILTER parameter's return type bool.
7585 is_masked_watchpoint): Change return type to bool.
7586 (save_breakpoints): Make FILTER parameter's return type bool.
7587 * breakpoint.h (is_breakpoint): Change return type to bool.
7588 (is_watchpoint): Likewise.
7589 (is_catchpoint): Likewise.
7590 (is_tracepoint): Likewise.
7591
7592 2019-07-10 Tom Tromey <tom@tromey.com>
7593
7594 * defs.h: Don't include gdbarch.h.
7595 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7596 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7597 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7598 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7599 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7600 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7601 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7602 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7603 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7604 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7605 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7606 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7607 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7608 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7609 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7610 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7611 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7612 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7613 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7614 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7615 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7616 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7617 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7618 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7619 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7620 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7621 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7622
7623 2019-07-10 Tom Tromey <tromey@adacore.com>
7624
7625 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7626 * breakpoint.c (init_ada_exception_breakpoint): Register as
7627 bp_catchpoint.
7628 (print_one_breakpoint_location, print_one_breakpoint): Use
7629 is_ada_exception_catchpoint.
7630 * ada-lang.c (class ada_catchpoint_location): Pass
7631 bp_loc_software_breakpoint to bp_location constructor.
7632 (is_ada_exception_catchpoint): New function.
7633
7634 2019-07-10 Tom Tromey <tromey@adacore.com>
7635
7636 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7637 VEC.
7638 (struct arm_exidx_entry): New method operator<.
7639 (struct arm_exidx_data) <section_maps>: Change type.
7640 (arm_exidx_data_free): Remove.
7641 (arm_exidx_data_key): Change type. Move lower.
7642 (arm_exidx_new_objfile): Update.
7643 (arm_compare_exidx_entries): Remove.
7644 (arm_find_exidx_entry, _initialize_arm_tdep)
7645
7646 2019-07-10 Tom Tromey <tromey@adacore.com>
7647
7648 * solib-spu.c (ocl_program_data_key): Change type.
7649 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7650 Update.
7651
7652 2019-07-10 Tom Tromey <tromey@adacore.com>
7653
7654 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7655 (struct solib_aix_inferior_data) <library_list>: Change type.
7656 (solib_aix_inferior_data_handle): Change type.
7657 (get_solib_aix_inferior_data): Update.
7658 (solib_aix_free_library_list): Remove.
7659 (library_list_start_library): Update.
7660 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7661 return type.
7662 (solib_aix_get_library_list)
7663 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7664 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7665
7666 2019-07-10 Tom Tromey <tromey@adacore.com>
7667
7668 * solib-dsbt.c (struct dsbt_info): Add initializers.
7669 (solib_dsbt_pspace_data): Change type.
7670 (dsbt_pspace_data_cleanup): Remove.
7671 (get_dsbt_info, _initialize_dsbt_solib): Update.
7672
7673 2019-07-10 Tom Tromey <tromey@adacore.com>
7674
7675 * spu-tdep.c (spu_overlay_data): Change type.
7676 (spu_get_overlay_table, spu_overlay_new_objfile)
7677 (_initialize_spu_tdep): Update.
7678
7679 2019-07-10 Tom Tromey <tromey@adacore.com>
7680
7681 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7682 destructor.
7683 (dbx_objfile_data_key): Change type and declare later.
7684 (DBX_SYMFILE_INFO): Rewrite.
7685 * dbxread.c (dbx_objfile_data_key): Change type.
7686 (dbx_symfile_init): Update.
7687 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7688 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7689 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7690
7691 2019-07-10 Tom Tromey <tromey@adacore.com>
7692
7693 * jit.c (jit_program_space_key): Change type. Move lower.
7694 (get_jit_program_space_data): Update.
7695 (jit_program_space_data_cleanup): Remove.
7696 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7697 Update.
7698 (struct jit_program_space_data): Add initializers.
7699
7700 2019-07-10 Tom Tromey <tromey@adacore.com>
7701
7702 * solib-darwin.c (struct darwin_info): Add initializers.
7703 (solib_darwin_pspace_data): Change type.
7704 (darwin_pspace_data_cleanup): Remove.
7705 (get_darwin_info, _initialize_darwin_solib): Update.
7706
7707 2019-07-10 Tom Tromey <tromey@adacore.com>
7708
7709 * remote-sim.c (struct sim_inferior_data): Add initializers,
7710 constructor, and destructor.
7711 (sim_inferior_data_key): Change type. Move lower.
7712 (check_for_duplicate_sim_descriptor): Update.
7713 (get_sim_inferior_data): Use new. Update.
7714 (~sim_inferior_data_cleanup): Rename from
7715 sim_inferior_data_cleanup. Simplify.
7716 (gdbsim_close_inferior, simulator_command)
7717 (sim_command_completer, _initialize_remote_sim): Update.
7718 (next_pid, INITIAL_PID): Move earlier.
7719
7720 2019-07-10 Tom Tromey <tromey@adacore.com>
7721
7722 * python/python-internal.h (create_thread_object): Return
7723 gdbpy_ref.
7724 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7725 * python/py-inferior.c (struct threadlist_entry): Add
7726 constructor.
7727 <thread_obj>: Now a gdbpy_ref.
7728 (thread_to_thread_object): Update.
7729 (add_thread_object): Use new.
7730 (delete_thread_object): Use delete.
7731 (infpy_threads): Update.
7732 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7733 GIL.
7734
7735 2019-07-10 Tom Tromey <tromey@adacore.com>
7736
7737 * valops.c (value_cast): Specialize error message for Ada.
7738
7739 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7740
7741 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7742
7743 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7744
7745 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7746 bpstat_should_step): Return bool, adjust comments.
7747 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7748 bpstat_should_step): Likewise.
7749
7750 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7751
7752 * features/Makefile: Use feature target descriptions for Arm.
7753 * features/arm/arm-core.c: Generate new file.
7754 * features/arm/arm-fpa.c: Likewise.
7755 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7756 * features/arm/arm-m-profile.c: Likewise.
7757 * features/arm/arm-vfpv2.c: Likewise.
7758 * features/arm/arm-vfpv3.c: Likewise.
7759 * features/arm/xscale-iwmmxt.c: Likewise.
7760 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7761
7762 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7763
7764 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7765 ptrace earlier.
7766
7767 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7768
7769 * features/aarch64-pauth.c: Regenerate.
7770
7771 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7772
7773 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7774 bool.
7775 (bpstat_what): Use false instead of 0.
7776
7777 2019-07-09 Pedro Alves <palves@redhat.com>
7778
7779 * break-catch-throw.c (is_exception_catchpoint): New.
7780 * breakpoint.c (print_one_breakpoint_location): New parameter
7781 'raw_loc'. Handle it. Use
7782 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7783 looking at the breakpoint's type.
7784 (print_one_breakpoint): If handling "maint info breakpoints", also
7785 print locations of exception catchpoints.
7786 * breakpoint.h (is_exception_catchpoint): Declare.
7787
7788 2019-07-09 Pedro Alves <palves@redhat.com>
7789
7790 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7791 "addr" field.
7792 (allocate_location_exception_catchpoint): New.
7793 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7794 (initialize_throw_catchpoint_ops): Install
7795 allocate_location_exception_catchpoint as allocate_location
7796 method.
7797 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7798 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7799 bp_loc_other.
7800 (breakpoint_address_is_meaningful): Delete.
7801 (bl_address_is_meaningful): New.
7802 (breakpoint_locations_match): Adjust comment.
7803 (bp_location_from_bp_type): New, factored out of...
7804 (bp_location::bp_location(breakpoint *)): ... this.
7805 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7806 factored out of...
7807 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7808 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7809 breakpoint_address_is_meaningful.
7810 (bp_locations_compare): Adjust comment.
7811 (update_global_location_list): Use bl_address_is_meaningful
7812 instead of breakpoint_address_is_meaningful.
7813 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7814 explicit.
7815 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7816 * python/py-breakpoint.c (bppy_get_location): No longer check
7817 whether location is null.
7818
7819 2019-07-09 Pedro Alves <palves@redhat.com>
7820
7821 PR c++/15468
7822 * breakpoint.c (print_one_breakpoint_location): Remove
7823 single-location assert.
7824
7825 2019-07-09 Tom Tromey <tom@tromey.com>
7826
7827 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7828 * configure: Rebuild.
7829 * configure.ac: Change common to gdbsupport.
7830 * gdbsupport: Rename from common.
7831 * acinclude.m4: Change common to gdbsupport.
7832 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7833 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7834 gdbsupport.
7835 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7836 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7837 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7838 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7839 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7840 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7841 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7842 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7843 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7844 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7845 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7846 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7847 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7848 coff-pe-read.c, command.h, compile/compile-c-support.c,
7849 compile/compile-c.h, compile/compile-cplus-symbols.c,
7850 compile/compile-cplus-types.c, compile/compile-cplus.h,
7851 compile/compile-loc2c.c, compile/compile.c, completer.c,
7852 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7853 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7854 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7855 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7856 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7857 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7858 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7859 features/aarch64-core.c, features/aarch64-fpu.c,
7860 features/aarch64-pauth.c, features/aarch64-sve.c,
7861 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7862 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7863 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7864 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7865 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7866 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7867 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7868 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7869 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7870 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7871 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7872 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7873 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7874 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7875 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7876 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7877 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7878 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7879 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7880 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7881 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7882 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7883 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7884 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7885 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7886 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7887 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7888 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7889 minsyms.c, mips-linux-tdep.c, namespace.h,
7890 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7891 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7892 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7893 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7894 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7895 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7896 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7897 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7898 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7899 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7900 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7901 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7902 procfs.c, producer.c, progspace.h, psymtab.h,
7903 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7904 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7905 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7906 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7907 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7908 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7909 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7910 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7911 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7912 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7913 target-memory.c, target.c, target.h, target/waitstatus.c,
7914 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7915 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7916 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7917 unittests/array-view-selftests.c,
7918 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7919 unittests/common-utils-selftests.c,
7920 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7921 unittests/format_pieces-selftests.c,
7922 unittests/function-view-selftests.c,
7923 unittests/lookup_name_info-selftests.c,
7924 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7925 unittests/mkdir-recursive-selftests.c,
7926 unittests/observable-selftests.c,
7927 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7928 unittests/parse-connection-spec-selftests.c,
7929 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7930 unittests/scoped_fd-selftests.c,
7931 unittests/scoped_mmap-selftests.c,
7932 unittests/scoped_restore-selftests.c,
7933 unittests/string_view-selftests.c, unittests/style-selftests.c,
7934 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7935 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7936 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7937 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7938 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7939 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7940
7941 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7942
7943 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7944 bool value.
7945 (decode_digits_ordinary): Set explicit_line field in sal.
7946 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7947 symtab_and_line that was set on an explicit line number in
7948 assembler code. Do always update the recorded symtab and line if
7949 we do skip the prologue.
7950
7951 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7952
7953 * breakpoint.c (set_breakpoint_location_function): Remove
7954 explicit_loc parameter.
7955 (momentary_breakpoint_from_master): Update call to
7956 set_breakpoint_location_function.
7957 (add_location_to_breakpoint): Likewise.
7958
7959 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7960
7961 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7962 required features based on default bfd type when no specific bfd
7963 is present.
7964
7965 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7966
7967 * NEWS: Mention that GDB printf and eval commands can now print
7968 C-style and Ada-style convenience var strings without
7969 calling the inferior.
7970 * printcmd.c (printf_c_string): Locally print GDB internal var
7971 instead of transiting via the inferior.
7972 (printf_wide_c_string): Likewise.
7973
7974 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7975
7976 PR breakpoints/25011
7977 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7978
7979 2019-07-04 Tom Tromey <tom@tromey.com>
7980
7981 PR tui/24724:
7982 * tui/tui-winsource.c (tui_clear_source_content): Update.
7983 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7984 (tui_update_breakpoint_info): Update.
7985 (tui_set_exec_info_content): Update.
7986 * tui/tui-source.c (tui_set_source_content_nil): Update.
7987 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7988 has_break.
7989 * tui/tui-data.h (enum tui_bp_flag): New.
7990 (tui_bp_flags): New enum flags type.
7991 (struct tui_source_element) <break_mode>: Change type. Rename
7992 from has_break.
7993 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7994 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7995 constants.
7996 * tui/tui-winsource.h: Fix comment.
7997
7998 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7999
8000 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8001 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8002 (store_fpregs_to_thread)
8003 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8004 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8005 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8006 (IWMMXT_REGS_SIZE): Add define.
8007 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8008 (fetch_vfp_regs, store_vfp_regs)
8009 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8010 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8011
8012 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8013
8014 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8015 defines.
8016 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8017 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8018 (ARM_INT_REGISTER_SIZE): ...to this.
8019 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8020 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8021 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8022 (arm_linux_collect_gregset, supply_nwfpe_register)
8023 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8024 defines.
8025 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8026 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8027 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8028 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8029 (arm_return_in_memory, arm_store_return_value)
8030 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8031 (arm_record_ld_st_multiple): Likewise.
8032 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8033 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8034
8035 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8036
8037 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8038 AARCH64_DISPLACED_MODIFIED_INSNS.
8039 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8040 (aarch64_displaced_step_copy_insn): Likewise.
8041 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8042 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8043 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8044 ARM_DISPLACED_MODIFIED_INSNS.
8045 * arm-tdep.c (arm_gdbarch_init): Likewise.
8046 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8047 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8048 (struct arm_displaced_step_closure): Use
8049 ARM_DISPLACED_MODIFIED_INSNS.
8050
8051 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8052
8053 * features/Makefile: Remove unused xml files.
8054 * features/aarch64.xml: Remove.
8055 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8056 * features/i386/amd64-avx-avx512.xml: Remove.
8057 * features/i386/amd64-avx-linux.xml: Remove.
8058 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8059 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8060 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8061 * features/i386/amd64-avx-mpx.xml: Remove.
8062 * features/i386/amd64-avx.xml: Remove.
8063 * features/i386/amd64-linux.xml: Remove.
8064 * features/i386/amd64-mpx-linux.xml: Remove.
8065 * features/i386/amd64-mpx.xml: Remove.
8066 * features/i386/amd64.xml: Remove.
8067 * features/i386/i386-avx-avx512-linux.xml: Remove.
8068 * features/i386/i386-avx-avx512.xml: Remove.
8069 * features/i386/i386-avx-linux.xml: Remove.
8070 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8071 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8072 * features/i386/i386-avx-mpx-linux.xml: Remove.
8073 * features/i386/i386-avx-mpx.xml: Remove.
8074 * features/i386/i386-avx.xml: Remove.
8075 * features/i386/i386-linux.xml: Remove.
8076 * features/i386/i386-mmx-linux.xml: Remove.
8077 * features/i386/i386-mmx.xml: Remove.
8078 * features/i386/i386-mpx-linux.xml: Remove.
8079 * features/i386/i386-mpx.xml: Remove.
8080 * features/i386/i386.xml: Remove.
8081 * features/i386/x32-avx-avx512-linux.xml: Remove.
8082 * features/i386/x32-avx-linux.xml: Remove.
8083 * features/i386/x32-linux.xml: Remove.
8084
8085 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8086
8087 * regformats/aarch64.dat: Remove.
8088 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8089 * regformats/i386/amd64-avx-linux.dat: Remove.
8090 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8091 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8092 * regformats/i386/amd64-linux.dat: Remove.
8093 * regformats/i386/amd64-mpx-linux.dat: Remove.
8094 * regformats/i386/amd64.dat: Remove.
8095 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8096 * regformats/i386/i386-avx-linux.dat: Remove.
8097 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8098 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8099 * regformats/i386/i386-linux.dat: Remove.
8100 * regformats/i386/i386-mmx-linux.dat: Remove.
8101 * regformats/i386/i386-mpx-linux.dat: Remove.
8102 * regformats/i386/i386.dat: Remove.
8103 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8104 * regformats/i386/x32-avx-linux.dat: Remove.
8105 * regformats/i386/x32-linux.dat: Remove.
8106
8107 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8108
8109 * aarch64-tdep.c: Remove xml self tests.
8110 * amd64-linux-tdep.c: Likewise.
8111 * amd64-tdep.c: Likewise.
8112 * i386-linux-tdep.c: Likewise.
8113 * i386-tdep.c: Likewise.
8114
8115 2019-07-03 Pedro Alves <palves@redhat.com>
8116
8117 PR cli/24732
8118 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8119 (pipe_cmd_option_defs): New.
8120 (make_pipe_cmd_options_def_group): New.
8121 (pipe_command): Use gdb::option::process_options.
8122 (pipe_command_completer): New function.
8123 (_initialize_cli_cmds): Install completer for "pipe" command.
8124
8125 2019-07-03 Pedro Alves <palves@redhat.com>
8126
8127 * cli/cli-option.c (union option_value) <string>: New field.
8128 (struct option_def_and_value): Add ctor, move ctor, dtor and
8129 use DISABLE_COPY_AND_ASSIGN.
8130 (option_def_and_value::clear_value): New.
8131 (parse_option, save_option_value_in_ctx, get_val_type_str)
8132 (add_setshow_cmds_for_options): Handle var_string.
8133 * cli-option.h (union option_def::var_address) <string>: New
8134 field.
8135 (struct string_option_def): New.
8136 * maint-test-options.c (struct test_options_opts): Add default
8137 ctor and use DISABLE_COPY_AND_ASSIGN.
8138 <string_opt>: New field.
8139 (test_options_opts::~test_options_opts): New.
8140 (test_options_opts::dump): Also dump "-string".
8141 (test_options_option_defs): Install "string.
8142
8143 2019-07-03 Pedro Alves <palves@redhat.com>
8144
8145 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8146 option_value with a null enumeration.
8147 (complete_options): Save the option values in the context.
8148 (save_option_value_in_ctx): New, factored out from ...
8149 (process_options): ... here.
8150 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8151 of the function.
8152 * maint-test-options.c (test_options_opts::dump): New, factored
8153 out from ...
8154 (maintenance_test_options_command_mode): ... here.
8155 (maintenance_test_options_command_completion_result): Delete.
8156 (maintenance_test_options_command_completion_text): Update
8157 comment.
8158 (maintenance_show_test_options_completion_result): Change
8159 prototype. Just print
8160 maintenance_test_options_command_completion_text.
8161 (save_completion_result): New.
8162 (maintenance_test_options_completer_mode): Pass options context to
8163 complete_options, and then save a dump.
8164 (_initialize_maint_test_options): Use add_cmd to install "maint
8165 show test-options-completion-result".
8166
8167 2019-07-03 Pedro Alves <palves@redhat.com>
8168
8169 * NEWS (New commands): Mention "with" and "maint with".
8170 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8171 (with_command, with_command_completer): New.
8172 (pipe_command): Adjust to new repeat_previous
8173 interface.
8174 (_initialize_cli_cmds): Install the "with" command and its "w"
8175 alias.
8176 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8177 declarations.
8178 * cli/cli-setshow.c (parse_cli_var_uinteger)
8179 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8180 argument strings for all var_types.
8181 (get_setshow_command_value_string): New, factored out from ...
8182 (do_show_command): ... this.
8183 * cli/cli-setshow.h: Include <string>.
8184 (get_setshow_command_value_string): Declare.
8185 * command.h (repeat_previous): Now returns const char *. Adjust
8186 comment.
8187 * maint.c: Include "cli/cli-cmds.h".
8188 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8189 (_initialize_maint_cmds): Register the "maintenance with" command.
8190 * top.c (repeat_previous): Move bits from pipe_command here:
8191 Return the saved command line, if any; error out if there's no
8192 command to relaunch.
8193
8194 2019-07-03 Pedro Alves <palves@redhat.com>
8195
8196 * NEWS (New commands): Mention "maint set/show test-settings"
8197 instead of "maint test-settings".
8198 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8199 (maintenance_test_settings_set_list): Rename to ...
8200 (maintenance_set_test_settings_list): ... this.
8201 (maintenance_test_settings_show_list): Rename to ...
8202 (maintenance_show_test_settings_list): ... this.
8203 (maintenance_test_settings_cmd): Delete.
8204 (maintenance_test_settings_set_cmd): ...
8205 (maintenance_set_test_settings_cmd): ... this.
8206 (maintenance_test_settings_show_cmd): ...
8207 (maintenance_show_test_settings_cmd): ... this.
8208 (maintenance_test_settings_show_value_cmd):
8209 (maintenance_show_test_settings_value_cmd): ... this.
8210 (_initialize_maint_test_settings): No longer install the "maint
8211 test-settings" prefix command. Rename "maint test-settings set"
8212 to "maint set test-settings", and "maint test-settings show" to
8213 "maint show test-settings". Adjust all subcommands.
8214
8215 2019-07-03 Pedro Alves <palves@redhat.com>
8216
8217 * maint-test-settings.c: Fix file's intro comment. Replace all
8218 references to "test-options" with references to "test-settings",
8219 in comments.
8220
8221 2019-07-03 Pedro Alves <palves@redhat.com>
8222
8223 * maint-test-settings.c (maintenance_test_settings_xxx)
8224 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8225 New.
8226 (maintenance_test_settings_enums): Use them.
8227 (maintenance_test_settings_enum): Default to
8228 maintenance_test_settings_xxx.
8229 (_initialize_maint_test_settings): Initialize
8230 MAINTENANCE_TEST_SETTINGS_FILENAME.
8231
8232 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8233
8234 * breakpoint.h (remove_breakpoints_inf): Change return type to
8235 void, move function documentation here.
8236 * breakpoint.c (remove_breakpoints_inf): Change return type to
8237 void, move function documentation to header.
8238
8239 2019-07-02 Pedro Alves <palves@redhat.com>
8240
8241 * NEWS (Completion improvements): Mention "info threads".
8242 * thread.c (struct info_threads_opts, info_threads_option_defs)
8243 (make_info_threads_options_def_group): New.
8244 (info_threads_command): Use gdb::option::process_options.
8245 (info_threads_command_completer): New.
8246 (_initialize_thread): Use gdb::option::build_help to build the
8247 help text for "info threads".
8248
8249 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8250
8251 * defs.h (generic_load): Move from here...
8252 * symfile.h (generic_load): ... to here. Rename name parameter
8253 to args.
8254 * symfile.c (generic_load): Add comment.
8255
8256 2019-07-01 Tom Tromey <tromey@adacore.com>
8257
8258 * dwarf2read.c
8259 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8260 declaration of without_params. Fix formatting.
8261
8262 2019-07-01 Tom Tromey <tromey@adacore.com>
8263
8264 * ada-exp.y (find_primitive_type): Update.
8265 * ada-lang.h (ada_lookup_symbol): Update.
8266 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8267 parameter.
8268 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8269
8270 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8271
8272 PR breakpoints/24541
8273 * gdbarch.c: Regenerate.
8274 * gdbarch.h: Regenerate.
8275 * gdbarch.sh: Add 'stap_adjust_register'.
8276 * i386-tdep.c: Include '<unordered_set>'.
8277 (i386_stap_adjust_register): New function.
8278 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8279 * stap-probe.c (stap_parse_register_operand): Call
8280 'gdbarch_stap_adjust_register'.
8281
8282 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8283
8284 PR python/24742
8285 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8286 * python/python.c (do_start_initialization): Use 'xmalloc'
8287 instead of 'PyMem_Malloc'.
8288
8289 2019-06-28 Tom Tromey <tromey@adacore.com>
8290
8291 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8292 for Ada.
8293
8294 2019-06-27 Tom Tromey <tromey@adacore.com>
8295
8296 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8297 objfile_key.
8298 (arm_find_mapping_symbol, arm_record_special_symbol)
8299 (_initialize_arm_tdep): Update.
8300 (arm_objfile_data_free): Remove.
8301
8302 2019-06-27 Tom Tromey <tromey@adacore.com>
8303
8304 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8305 to cp_print_static_field.
8306
8307 2019-06-26 Tom Tromey <tromey@adacore.com>
8308
8309 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8310 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8311 declare.
8312
8313 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8314
8315 * features/aarch64-core.c (create_feature_aarch64_core):
8316 Regenerate.
8317 * features/aarch64-core.xml: Add cpsr flags.
8318
8319 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8320
8321 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8322 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8323
8324 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8325
8326 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8327 field.
8328 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8329 use.
8330 (arm_record_special_symbol): Don't insert new symbol in sorted
8331 position, push it at the end.
8332
8333 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8334
8335 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8336 (arm_mapping_symbol_s): Remove.
8337 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8338 (arm_mapping_symbol_vec): New typedef.
8339 (struct arm_per_objfile): Add constructor.
8340 <section_maps>: Change type to
8341 std::unique_ptr<arm_mapping_symbol_vec[]>.
8342 (arm_compare_mapping_symbols): Remove.
8343 (arm_find_mapping_symbol): Adjust to section_maps type change.
8344 (arm_objfile_data_free): Call delete on arm_per_objfile.
8345 (arm_record_special_symbol): Adjust to section_maps type change.
8346 Allocate arm_per_objfile with new.
8347
8348 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8349
8350 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8351 with the command prefix.
8352
8353 2019-06-25 Tom Tromey <tom@tromey.com>
8354
8355 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8356 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8357
8358 2019-06-25 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8361 type.
8362 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8363 protected.
8364
8365 2019-06-25 Tom Tromey <tom@tromey.com>
8366
8367 * tui/tui-winsource.c
8368 (tui_source_window_base::set_is_exec_point_at): Add check against
8369 LOA_ADDRESS.
8370
8371 2019-06-25 Tom Tromey <tom@tromey.com>
8372
8373 * tui/tui-source.c (tui_set_source_content): Don't check before
8374 xfree.
8375 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8376
8377 2019-06-25 Tom Tromey <tom@tromey.com>
8378
8379 * tui/tui-winsource.h (tui_update_source_window_as_is)
8380 (tui_alloc_source_buffer, tui_line_is_displayed)
8381 (tui_addr_is_displayed): Change type of win_info.
8382 * tui/tui-winsource.c (tui_update_source_window_as_is)
8383 (tui_clear_source_content, tui_show_source_line)
8384 (tui_show_source_content, tui_source_window_base::refill)
8385 (tui_source_window_base::set_is_exec_point_at)
8386 (tui_source_window_base::set_is_exec_point_at)
8387 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8388 (tui_alloc_source_buffer, tui_line_is_displayed)
8389 (tui_addr_is_displayed): Change type of win_info. Update.
8390 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8391 (tui_source_window_base::do_make_visible_with_new_height):
8392 Update.
8393 * tui/tui-source.c (tui_set_source_content)
8394 (tui_set_source_content_nil)
8395 (tui_source_window::do_scroll_vertical): Update.
8396 * tui/tui-layout.c (show_layout): Update.
8397 * tui/tui-disasm.c (tui_set_disassem_content)
8398 (tui_disasm_window::do_scroll_vertical): Update.
8399 * tui/tui-data.h (tui_win_content): Remove.
8400 (struct tui_gen_win_info) <content, content_size>: Remove.
8401 (struct tui_source_element): Add initializers and destructor.
8402 (union tui_which_element, struct tui_win_element): Remove.
8403 (struct tui_source_window_base) <content>: New field.
8404 (struct tui_data_window): Remove destructor.
8405 (tui_alloc_content, tui_free_win_content)
8406 (tui_free_all_source_wins_content): Don't declare.
8407 * tui/tui-data.c (tui_initialize_static_data): Update.
8408 (init_content_element, tui_alloc_content): Remove.
8409 (~tui_gen_win_info): Update.
8410 (~tui_data_window, tui_free_all_source_wins_content)
8411 (tui_free_win_content, free_content, free_content_elements):
8412 Remove.
8413
8414 2019-06-25 Tom Tromey <tom@tromey.com>
8415
8416 * tui/tui-winsource.h (tui_clear_source_content)
8417 (tui_erase_source_content, tui_show_source_content): Change type
8418 of win_info.
8419 * tui/tui-winsource.c (tui_clear_source_content)
8420 (tui_erase_source_content, tui_show_source_content): Change type
8421 of win_info.
8422 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8423 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8424 win_info.
8425 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8426 win_info.
8427 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8428
8429 2019-06-25 Tom Tromey <tom@tromey.com>
8430
8431 * tui/tui-winsource.c (tui_clear_source_content)
8432 (tui_source_window_base::set_is_exec_point_at): Update.
8433 * tui/tui-source.c (tui_set_source_content_nil): Update.
8434 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8435 a bool.
8436 * tui/tui-data.c (init_content_element): Update.
8437
8438 2019-06-25 Tom Tromey <tom@tromey.com>
8439
8440 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8441 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8442 * tui/tui-layout.c (init_and_make_win): Update.
8443 * tui/tui.h (enum tui_win_type): Update.
8444 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8445 tui_win_is_auxillary.
8446 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8447 tui_win_is_auxillary.
8448
8449 2019-06-25 Tom Tromey <tom@tromey.com>
8450
8451 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8452 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8453 (tui_delete_data_content_windows, tui_display_all_data)
8454 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8455 Update.
8456 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8457 * tui/tui-regs.c (tui_last_regs_line_no)
8458 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8459 (tui_show_registers): Update.
8460 (tui_show_register_group): Return void. Update.
8461 (tui_display_registers_from, tui_display_reg_element_at_line)
8462 (tui_display_registers_from_line, tui_check_register_values):
8463 Update.
8464 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8465 member.
8466 (struct tui_data_window) <regs_content>: Now a std::vector.
8467 <regs_content_count>: Remove.
8468 (tui_add_content_elements, tui_free_data_content): Don't declare.
8469 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8470 (init_content_element): Remove DATA_WIN case. Add assert.
8471 (tui_add_content_elements): Remove.
8472 (tui_data_window): Update.
8473 (tui_free_data_content): Remove.
8474 (free_content_elements): Remove DATA_WIN case.
8475
8476 2019-06-25 Tom Tromey <tom@tromey.com>
8477
8478 * tui/tui-data.c (tui_data_item_window): Update.
8479 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8480 * tui/tui-windata.c (tui_display_all_data)
8481 (tui_display_data_from_line): Update.
8482 (tui_check_data_values): Remove.
8483 * tui/tui-regs.c (tui_show_register_group)
8484 (tui_display_reg_element_at_line): Update.
8485 * tui/tui-hooks.c (tui_register_changed)
8486 (tui_refresh_frame_and_register_information): Call
8487 tui_check_register_values.
8488 * tui/tui-data.h (struct tui_data_window) <data_content,
8489 data_content_count, data_type>: Remove.
8490 (enum tui_data_type): Remove.
8491
8492 * tui/tui-data.c (tui_data_window::clear_detail)
8493 (~tui_data_window): Update.
8494
8495 2019-06-25 Tom Tromey <tom@tromey.com>
8496
8497 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8498 declare.
8499 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8500 Rename from tui_first_data_item_displayed. Update.
8501 (tui_data_window::refresh_all)
8502 (tui_data_window::do_scroll_vertical): Update.
8503 * tui/tui-data.h (struct tui_data_window)
8504 <first_data_item_displayed>: Declare new method.
8505
8506 2019-06-25 Tom Tromey <tom@tromey.com>
8507
8508 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8509 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8510 contents...
8511 (tui_initialize_static_data): ...here.
8512
8513 2019-06-25 Tom Tromey <tom@tromey.com>
8514
8515 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8516 (tui_display_registers_from, tui_check_register_values): Update.
8517 (tui_display_register): Remove win_info parameter; update.
8518 (tui_get_register): Change type of parameters.
8519 * tui/tui-data.h (struct tui_data_element): Remove.
8520 (union tui_which_element) <data>: Remove.
8521 <data_window>: Change type.
8522 (struct tui_data_item_window): New.
8523 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8524 case. Add assert.
8525 (~tui_data_item_window): New destructor.
8526 (free_content_elements): Remove DATA_ITEM_WIN case.
8527
8528 2019-06-25 Tom Tromey <tom@tromey.com>
8529
8530 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8531 Remove.
8532
8533 2019-06-25 Tom Tromey <tom@tromey.com>
8534
8535 * tui/tui-data.h (struct tui_command_element): Remove.
8536 (union tui_which_element) <command>: Remove.
8537 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8538 assert.
8539 (free_content_elements): Remove CMD_WIN case.
8540
8541 2019-06-25 Tom Tromey <tom@tromey.com>
8542
8543 * tui/tui-layout.c (tui_set_layout): Update.
8544 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8545 * tui/tui-data.c (layout_def): Update.
8546
8547 2019-06-25 Tom Tromey <tom@tromey.com>
8548
8549 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8550 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8551 (tui_source_window_base::set_new_height): Update.
8552 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8553 Update.
8554 (tui_set_locator_fullname, tui_set_locator_info)
8555 (tui_show_frame_info): Update.
8556 * tui/tui-source.c (tui_set_source_content)
8557 (tui_source_is_displayed): Update.
8558 * tui/tui-layout.c (show_source_disasm_command, show_data)
8559 (show_source_or_disasm_and_command): Update.
8560 * tui/tui-disasm.c (tui_set_disassem_content)
8561 (tui_get_begin_asm_address): Update.
8562 * tui/tui-data.h (struct tui_locator_element): Remove.
8563 (union tui_which_element) <locator>: Remove.
8564 (struct tui_locator_window): New.
8565 (tui_locator_win_info_ptr): Change return type.
8566 * tui/tui-data.c (_locator): Change type.
8567 (tui_locator_win_info_ptr): Change return type.
8568 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8569 (tui_alloc_content): Add assert.
8570
8571 2019-06-25 Tom Tromey <tom@tromey.com>
8572
8573 * tui/tui-winsource.c
8574 (tui_exec_info_window::maybe_allocate_content): New method.
8575 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8576 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8577 (make_source_or_disasm_window): Add cast.
8578 * tui/tui-data.h (union tui_which_element) <simple_string>:
8579 Remove.
8580 (struct tui_source_info): New.
8581 (struct tui_source_window_base) <execution_info>: Change type.
8582 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8583 case, and add assert.
8584 (tui_alloc_content): Add assert.
8585
8586 2019-06-25 Tom Tromey <tom@tromey.com>
8587
8588 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8589 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8590 * tui/tui-data.c (tui_alloc_win_info): Remove.
8591
8592 2019-06-25 Tom Tromey <tom@tromey.com>
8593
8594 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8595 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8596 can_highlight.
8597
8598 2019-06-25 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8601 make_visible_with_new_height method.
8602 (tui_win_info::make_visible_with_new_height): New method.
8603 (tui_source_window_base::do_make_visible_with_new_height)
8604 (tui_data_window::do_make_visible_with_new_height)
8605 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8606 (make_visible_with_new_height): Remove.
8607 (tui_resize_all, tui_adjust_win_heights): Use
8608 make_visible_with_new_height method.
8609 * tui/tui-data.h (struct tui_win_info)
8610 <do_make_visible_with_new_height, make_visible_with_new_height>:
8611 New methods.
8612 (struct tui_source_window_base, struct tui_data_window)
8613 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8614 methods.
8615
8616 2019-06-25 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8619 method.
8620 (update_tab_width): Call update_tab_width method.
8621 * tui/tui-data.h (struct tui_win_info)
8622 (struct tui_source_window_base) <update_tab_width>: New methods.
8623
8624 2019-06-25 Tom Tromey <tom@tromey.com>
8625
8626 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8627 parameter.
8628 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8629 parameter.
8630 (tui_gen_win_info::make_visible): Update.
8631 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8632 parameter.
8633 * tui/tui-data.h (enum tui_box): New enum.
8634 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8635
8636 2019-06-25 Tom Tromey <tom@tromey.com>
8637
8638 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8639 init_and_make_win for EXEC_INFO_WIN.
8640 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8641 longer inline.
8642 (struct tui_win_info) <~tui_win_info>: Inline.
8643 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8644 Don't declare.
8645 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8646 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8647 Remove.
8648 (tui_initialize_static_data): Update.
8649 (~tui_gen_win_info): Handle more cleanup here.
8650 (~tui_source_window_base): Delete "execution_info".
8651 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8652
8653 2019-06-25 Tom Tromey <tom@tromey.com>
8654
8655 * tui/tui-layout.c (make_command_window): Don't set
8656 can_highlight.
8657 (show_source_disasm_command): Call the reset method.
8658 (show_data): Don't set can_highlight. Call the reset method.
8659 (tui_gen_win_info::reset): Rename from init_gen_win_info
8660 (init_and_make_win): Simplify. Return tui_gen_win_info.
8661 (show_source_or_disasm_and_command): Call the reset method.
8662 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8663 (struct tui_cmd_window): Set can_highlight.
8664
8665 2019-06-25 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8668 from make_visible.
8669 (tui_make_visible, tui_make_invisible): Rewrite.
8670 (tui_win_info::make_visible): Remove.
8671 (tui_source_window_base::make_visible): Update.
8672 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8673 method. Moved from...
8674 (struct tui_win_info) <make_visible>: ...here.
8675
8676 2019-06-25 Tom Tromey <tom@tromey.com>
8677
8678 * tui/tui-winsource.c
8679 (tui_source_window_base::do_scroll_horizontal): Remove direction
8680 parameter.
8681 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8682 direction parameter.
8683 * tui/tui-win.c (tui_win_info::forward_scroll)
8684 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8685 (tui_win_info::right_scroll): Update.
8686 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8687 direction parameter.
8688 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8689 direction parameter.
8690 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8691 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8692 Remove direction parameter.
8693 (struct tui_source_window_base, struct tui_source_window)
8694 (struct tui_disasm_window, struct tui_data_window)
8695 (struct tui_cmd_window): Update.
8696
8697 2019-06-25 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui-winsource.h (tui_set_exec_info_content)
8700 (tui_show_exec_info_content, tui_erase_exec_info_content)
8701 (tui_clear_exec_info_content, tui_update_exec_info): Change
8702 argument to tui_source_window_base.
8703 * tui/tui-winsource.c (tui_set_exec_info_content)
8704 (tui_show_exec_info_content, tui_erase_exec_info_content)
8705 (tui_clear_exec_info_content, tui_update_exec_info): Change
8706 argument to tui_source_window_base.
8707
8708 2019-06-25 Tom Tromey <tom@tromey.com>
8709
8710 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8711 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8712
8713 2019-06-25 Tom Tromey <tom@tromey.com>
8714
8715 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8716 check.
8717
8718 2019-06-25 Tom Tromey <tom@tromey.com>
8719
8720 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8721 type to void.
8722 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8723 type to void.
8724 * tui/tui-source.c (tui_set_source_content): Update.
8725 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8726
8727 2019-06-25 Tom Tromey <tom@tromey.com>
8728
8729 * tui/tui-win.c (window_name_completer, tui_set_focus)
8730 (tui_all_windows_info): Use name method.
8731 * tui/tui-data.h (struct tui_gen_win_info)
8732 (struct tui_source_window, struct tui_disasm_window)
8733 (struct tui_data_window, struct tui_cmd_window) <name>: New
8734 method.
8735 (tui_win_name): Don't declare.
8736 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8737 (tui_win_name): Remove.
8738
8739 2019-06-25 Tom Tromey <tom@tromey.com>
8740
8741 * tui/tui-winsource.h (tui_update_source_window)
8742 (tui_update_source_window_as_is): Change parameter type.
8743 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8744 to be a tui_source_window_base.
8745 (tui_update_source_window_as_is): Likewise.
8746 * tui/tui-win.c (make_visible_with_new_height): Update.
8747
8748 2019-06-25 Tom Tromey <tom@tromey.com>
8749
8750 * tui/tui-winsource.c (tui_erase_source_content)
8751 (tui_show_source_content, tui_show_exec_info_content)
8752 (tui_erase_exec_info_content): Use refresh_window method.
8753 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8754 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8755 from tui_refresh_win.
8756 (tui_data_window::refresh_window): New method.
8757 (tui_win_info::refresh, tui_source_window_base::refresh)
8758 (tui_refresh_all): Use refresh_window method.
8759 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8760 method.
8761 * tui/tui-regs.c (tui_display_register): Call refresh_window
8762 method.
8763 * tui/tui-layout.c (show_source_disasm_command)
8764 (show_source_or_disasm_and_command): Call refresh_window method.
8765 * tui/tui-data.h (struct tui_gen_win_info)
8766 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8767 New method.
8768
8769 2019-06-25 Tom Tromey <tom@tromey.com>
8770
8771 * tui/tui.c (tui_rl_other_window, tui_enable)
8772 (tui_is_window_visible, tui_get_command_dimension): Update.
8773 * tui/tui-winsource.c (tui_update_source_window_as_is)
8774 (tui_clear_source_content, tui_erase_source_content)
8775 (tui_show_source_line, tui_source_window_base::refill)
8776 (tui_source_window_base::do_scroll_horizontal)
8777 (tui_source_window_base::set_is_exec_point_at)
8778 (tui_update_breakpoint_info, tui_set_exec_info_content)
8779 (tui_alloc_source_buffer, tui_line_is_displayed)
8780 (tui_addr_is_displayed): Update.
8781 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8782 (tui_check_and_display_highlight_if_needed)
8783 (tui_win_info::make_visible, tui_win_info::refresh)
8784 (tui_refresh_all): Update.
8785 * tui/tui-windata.c (tui_first_data_item_displayed)
8786 (tui_delete_data_content_windows, tui_erase_data_content)
8787 (tui_display_all_data, tui_data_window::refresh_all)
8788 (tui_check_data_values): Update.
8789 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8790 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8791 (tui_win_info::backward_scroll, tui_refresh_all_win)
8792 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8793 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8794 (tui_source_window_base::set_new_height)
8795 (tui_data_window::set_new_height)
8796 (make_invisible_and_set_new_height)
8797 (make_visible_with_new_height, new_height_ok)
8798 (parse_scrolling_args): Update.
8799 * tui/tui-stack.c (tui_show_frame_info): Update.
8800 * tui/tui-source.c (tui_set_source_content)
8801 (tui_set_source_content_nil, tui_source_is_displayed)
8802 (tui_source_window::do_scroll_vertical): Update.
8803 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8804 (tui_display_registers_from, tui_display_reg_element_at_line)
8805 (tui_check_register_values, tui_reg_command): Update.
8806 * tui/tui-layout.c (tui_default_win_height)
8807 (show_source_disasm_command, show_data, init_and_make_win)
8808 (show_source_or_disasm_and_command): Update.
8809 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8810 (tui_redisplay_readline, tui_mld_flush)
8811 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8812 (tui_getc): Update.
8813 * tui/tui-disasm.c (tui_set_disassem_content)
8814 (tui_disasm_window::do_scroll_vertical): Update.
8815 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8816 Now virtual.
8817 (struct tui_win_info): Derive from tui_gen_win_info.
8818 <~tui_win_info>: Mark as override.
8819 <generic>: Remove member.
8820 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8821 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8822 (~tui_data_window, ~tui_win_info)
8823 (tui_free_all_source_wins_content): Update.
8824 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8825
8826 2019-06-25 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui-layout.c (init_and_make_win): Use new.
8829 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8830 destructor, initializers.
8831 (tui_alloc_generic_win_info): Don't declare.
8832 * tui/tui-data.c (_locator): Add argument to constructor.
8833 (source_win, disasm_win): New globals.
8834 (exec_info): Remove.
8835 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8836 Update.
8837 (tui_alloc_generic_win_info): Remove.
8838 (init_content_element): Use new.
8839 (tui_win_info::tui_win_info): Update.
8840 (free_content_elements) <case DATA_WIN>: Use delete.
8841
8842 2019-06-25 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8845 * tui/tui-windata.c (tui_first_data_item_displayed)
8846 (tui_delete_data_content_windows): Update.
8847 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8848 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8849 (tui_display_registers_from, tui_check_register_values): Update.
8850 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8851 pointer.
8852 * tui/tui-data.c (init_content_element): Update. Allocate the new
8853 window.
8854 (tui_free_data_content): Update.
8855 (free_content_elements) <case DATA_WIN>: Free the window.
8856
8857 2019-06-25 Tom Tromey <tom@tromey.com>
8858
8859 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8860 Update.
8861 * tui/tui-layout.c (make_command_window)
8862 (show_source_disasm_command, show_data, init_and_make_win)
8863 (show_source_or_disasm_and_command): Update.
8864 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8865 method.
8866 <can_highight, is_highlighted>: Now bool.
8867 (tui_set_win_highlight): Don't declare.
8868 * tui/tui-data.c (tui_set_win_highlight): Remove.
8869
8870 2019-06-25 Tom Tromey <tom@tromey.com>
8871
8872 * tui/tui-wingeneral.c (make_visible): Remove check of window
8873 type.
8874
8875 2019-06-25 Tom Tromey <tom@tromey.com>
8876
8877 * tui/tui-win.c (tui_win_info::max_height)
8878 (tui_cmd_window::max_height): New methods.
8879 (new_height_ok): Call max_height.
8880 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8881 <max_height>: New method.
8882
8883 2019-06-25 Tom Tromey <tom@tromey.com>
8884
8885 * tui/tui-win.c (tui_source_window_base::set_new_height)
8886 (tui_data_window::set_new_height): New methods.
8887 (make_invisible_and_set_new_height): Call set_new_height method.
8888 * tui/tui-data.h (struct tui_win_info)
8889 (struct tui_source_window_base, struct tui_data_window)
8890 <set_new_height>: New method.
8891
8892 2019-06-25 Tom Tromey <tom@tromey.com>
8893
8894 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8895 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8896 tui_refresh_data_win.
8897 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8898 method.
8899 (tui_refresh_all_win): Call the refresh_all method.
8900 (tui_set_focus): Likewise.
8901 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8902 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8903 Likewise.
8904
8905 2019-06-25 Tom Tromey <tom@tromey.com>
8906
8907 * tui/tui-winsource.h (tui_refill_source_window)
8908 (tui_set_is_exec_point_at): Don't declare.
8909 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8910 (tui_source_window_base::refill): Rename from
8911 tui_refill_source_window.
8912 (tui_source_window_base::do_scroll_horizontal): Update.
8913 (tui_source_window_base::set_is_exec_point_at): Rename from
8914 tui_set_is_exec_point_at.
8915 (tui_update_all_breakpoint_info): Update.
8916 * tui/tui-stack.c (tui_show_frame_info): Update.
8917 * tui/tui-layout.c (show_data): Add cast.
8918 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8919 * tui/tui-data.h (struct tui_source_window_base) <refill,
8920 set_is_exec_point_at>: New methods.
8921 (tui_source_windows, tui_add_to_source_windows): Update types.
8922 (tui_add_to_source_windows): Remove redundant declaration.
8923 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8924 (tui_source_windows): Change return type.
8925 (tui_clear_source_windows_detail): Update.
8926 (tui_add_to_source_windows): Change type of parameter.
8927 (tui_free_all_source_wins_content): Update.
8928
8929 2019-06-25 Tom Tromey <tom@tromey.com>
8930
8931 * tui/tui-wingeneral.c (tui_win_info::refresh)
8932 (tui_source_window_base::refresh): New methods.
8933 (tui_refresh_all): Call the refresh method.
8934 * tui/tui-data.h (struct tui_win_info)
8935 (struct tui_source_window_base) <refresh>: New method.
8936
8937 2019-06-25 Tom Tromey <tom@tromey.com>
8938
8939 * tui/tui.h (tui_is_window_visible): Return bool.
8940 * tui/tui.c (tui_is_window_visible): Return bool.
8941 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8942 (tui_make_visible, tui_make_invisible)
8943 (tui_win_info::make_visible)
8944 (tui_source_window_base::make_visible, make_all_visible)
8945 (tui_make_all_visible, tui_make_all_invisible): Update.
8946 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8947 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8948 bool.
8949 (struct tui_win_info, struct tui_source_window_base)
8950 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8951 * tui/tui-data.c (tui_init_generic_part): Update.
8952
8953 2019-06-25 Tom Tromey <tom@tromey.com>
8954
8955 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8956 (tui_source_window_base::make_visible): New methods.
8957 (make_all_visible): Make method call.
8958 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8959 (struct tui_source_window_base, struct tui_cmd_window): Override
8960 make_visible.
8961 (tui_win_is_source_type): Don't declare.
8962 * tui/tui-data.c (tui_win_is_source_type): Remove.
8963
8964 2019-06-25 Tom Tromey <tom@tromey.com>
8965
8966 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8967 NULL check.
8968
8969 2019-06-25 Tom Tromey <tom@tromey.com>
8970
8971 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8972 Inline constructor. Add initializers for members.
8973 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8974 constructors; now inline in class.
8975
8976 2019-06-25 Tom Tromey <tom@tromey.com>
8977
8978 * tui/tui-regs.c (tui_show_registers): Update.
8979 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8980 bool.
8981 * tui/tui-data.c (tui_data_window::clear_detail)
8982 (tui_data_window): Update.
8983
8984 2019-06-25 Tom Tromey <tom@tromey.com>
8985
8986 * tui/tui-windata.c (tui_display_all_data)
8987 (tui_display_data_from_line, tui_display_data_from)
8988 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8989 Update.
8990 * tui/tui-regs.c (tui_last_regs_line_no)
8991 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8992 (tui_show_registers, tui_show_register_group)
8993 (tui_display_registers_from, tui_display_reg_element_at_line)
8994 (tui_display_registers_from_line, tui_check_register_values)
8995 (tui_reg_next, tui_reg_prev): Update.
8996 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8997 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8998 tui_data_window.
8999 (struct tui_win_info) <detail>: Remove. Add new fields from
9000 tui_data_info.
9001 (TUI_DATA_WIN): Add cast.
9002 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9003 (~tui_data_window): Simplify.
9004
9005 2019-06-25 Tom Tromey <tom@tromey.com>
9006
9007 * tui/tui-layout.c (show_source_disasm_command)
9008 (show_source_or_disasm_and_command): Update.
9009 * tui/tui-io.c (update_cmdwin_start_line)
9010 (tui_redisplay_readline): Update.
9011 * tui/tui-data.h (struct tui_command_info): Remove.
9012 (struct tui_win_info) <detail>: Remove command_info member.
9013 (struct tui_data_window) <start_line>: New member, from
9014 tui_command_info.
9015 (TUI_CMD_WIN): Add casts.
9016
9017 2019-06-25 Tom Tromey <tom@tromey.com>
9018
9019 * tui/tui-winsource.c (tui_update_source_window)
9020 (tui_refill_source_window)
9021 (tui_source_window_base::do_scroll_horizontal)
9022 (tui_update_breakpoint_info, tui_set_exec_info_content)
9023 (tui_show_exec_info_content, tui_erase_exec_info_content)
9024 (tui_clear_exec_info_content): Update.
9025 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9026 Update.
9027 * tui/tui-win.c (make_invisible_and_set_new_height)
9028 (make_visible_with_new_height): Update.
9029 * tui/tui-source.c (tui_set_source_content)
9030 (tui_show_symtab_source): Update.
9031 * tui/tui-layout.c (extract_display_start_addr)
9032 (show_source_disasm_command, show_data)
9033 (make_source_or_disasm_window)
9034 (show_source_or_disasm_and_command): Update.
9035 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9036 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9037 "gdbarch".
9038 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9039 to tui_source_window_base.
9040 (struct tui_win_info) <detail>: Remove source_info member.
9041 (struct tui_source_window_base) <has_locator>: Inline.
9042 Move contents from tui_source_info; rename has_locator member to
9043 m_has_locator.
9044 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9045 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9046 header file.
9047 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9048 Simplify.
9049 (tui_free_all_source_wins_content): Cast to
9050 tui_source_window_base.
9051
9052 2019-06-25 Tom Tromey <tom@tromey.com>
9053
9054 * tui/tui-win.c (make_invisible_and_set_new_height)
9055 (make_visible_with_new_height): Call has_locator method.
9056 * tui/tui-layout.c (show_source_disasm_command, show_data)
9057 (show_source_or_disasm_and_command): Update for bool change.
9058 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9059 (tui_win_info) <has_locator>: New method.
9060 (struct tui_source_window_base) <has_locator>: New method.
9061 (tui_win_has_locator): Don't declare.
9062 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9063 from tui_win_has_locator.
9064 (tui_source_window_base): Use false, not FALSE.
9065
9066 2019-06-25 Tom Tromey <tom@tromey.com>
9067
9068 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9069 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9070 clear_detail method directly.
9071 (tui_clear_win_detail): Remove.
9072
9073 2019-06-25 Tom Tromey <tom@tromey.com>
9074
9075 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9076 "this", not TUI_DISASM_WIN.
9077
9078 2019-06-25 Tom Tromey <tom@tromey.com>
9079
9080 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9081 declare.
9082 * tui/tui-winsource.c
9083 (tui_source_window_base::do_scroll_horizontal): Rename from
9084 tui_horizontal_source_scroll.
9085 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9086 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9087 from tui_vertical_data_scroll.
9088 * tui/tui-win.h (tui_scroll): Don't declare.
9089 * tui/tui-win.c (tui_win_info::forward_scroll)
9090 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9091 (tui_win_info::right_scroll): Rename and update.
9092 (tui_scroll_forward_command, tui_scroll_backward_command)
9093 (tui_scroll_left_command, tui_scroll_right_command): Update.
9094 (tui_scroll): Remove.
9095 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9096 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9097 from tui_vertical_source_scroll.
9098 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9099 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9100 from tui_vertical_disassem_scroll.
9101 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9102 do_scroll_horizontal>: New methods.
9103 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9104 Likewise.
9105 (struct tui_source_window_base): Add do_scroll_horizontal.
9106 (struct tui_source_window, struct tui_disasm_window): Add
9107 do_scroll_vertical.
9108 (struct tui_data_window, struct tui_cmd_window): Add
9109 do_scroll_horizontal and do_scroll_vertical.
9110 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9111
9112 2019-06-25 Tom Tromey <tom@tromey.com>
9113
9114 * tui/tui-data.h (struct tui_source_window_base): New struct.
9115 (struct tui_source_window): Derive from tui_source_window_base.
9116 (struct tui_disasm_window): New struct.
9117 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9118 from tui_source_window::clear_detail.
9119 (tui_source_window_base): Rename from tui_source_window.
9120 (~tui_source_window_base): Rename from ~tui_source_window.
9121 (tui_alloc_win_info): Create a tui_disasm_window.
9122
9123 2019-06-25 Tom Tromey <tom@tromey.com>
9124
9125 * tui/tui-data.h (struct tui_source_window)
9126 (struct tui_data_window): Declare destructors.
9127 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9128 destructors.
9129 (tui_win_info): Simplify.
9130
9131 2019-06-25 Tom Tromey <tom@tromey.com>
9132
9133 * tui/tui-winsource.c (tui_display_main)
9134 (tui_update_source_windows_with_addr)
9135 (tui_update_all_breakpoint_info): Update.
9136 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9137 (new_height_ok, parse_scrolling_args): Update.
9138 * tui/tui-stack.c (tui_show_frame_info): Update.
9139 * tui/tui-data.h (struct tui_list): Remove.
9140 (tui_source_windows): Return a reference to a std::vector.
9141 * tui/tui-data.c (source_windows): Now a std::vector.
9142 (tui_source_windows): Change return type.
9143 (tui_clear_source_windows): Rewrite.
9144 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9145 (tui_free_all_source_wins_content): Rewrite.
9146
9147 2019-06-25 Tom Tromey <tom@tromey.com>
9148
9149 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9150 (struct tui_data_window, struct tui_cmd_window): Declare
9151 clear_detail method.
9152 * tui/tui-data.c (tui_source_window::clear_detail)
9153 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9154 methods.
9155 (tui_clear_win_detail): Simplify.
9156
9157 2019-06-25 Tom Tromey <tom@tromey.com>
9158
9159 * tui/tui-layout.c (make_source_window, make_disasm_window)
9160 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9161 Return the new window.
9162 (show_source_disasm_command, show_data)
9163 (show_source_or_disasm_and_command): Update.
9164
9165 2019-06-25 Tom Tromey <tom@tromey.com>
9166
9167 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9168 parameter. Return the new window.
9169 (show_source_disasm_command): Update and remove NULL check.
9170 (show_source_or_disasm_and_command): Update.
9171
9172 2019-06-25 Tom Tromey <tom@tromey.com>
9173
9174 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9175
9176 2019-06-25 Tom Tromey <tom@tromey.com>
9177
9178 * tui/tui-data.h (struct tui_win_info): Make constructor
9179 protected. Make destructor virtual. Add initializers.
9180 (tui_source_window, tui_data_window, tui_cmd_window): New
9181 classes.
9182 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9183 constructor. Add "type" parameter.
9184 (tui_source_window, tui_data_window, tui_cmd_window): New
9185 constructors.
9186 (tui_alloc_win_info): Instantiate the appropriate subclass.
9187
9188 2019-06-25 Tom Tromey <tom@tromey.com>
9189
9190 * tui/tui-win.c (tui_resize_all): Use delete.
9191 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9192 destructor.
9193 (tui_free_window): Don't declare.
9194 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9195 Update.
9196
9197 2019-06-25 Tom Tromey <tom@tromey.com>
9198
9199 * tui/tui-data.h (struct tui_win_info): Add constructor.
9200 * tui/tui-data.c (tui_alloc_win_info): Use new.
9201 (tui_free_window): Use delete.
9202
9203 2019-06-22 Tom Tromey <tom@tromey.com>
9204
9205 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9206 declare.
9207 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9208
9209 2019-06-22 Tom Tromey <tom@tromey.com>
9210
9211 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9212 declare.
9213 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9214
9215 2019-06-22 Tom de Vries <tdevries@suse.de>
9216
9217 * dwarf2read.c (create_addrmap_from_aranges)
9218 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9219 instead of '%zu'.
9220
9221 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9222
9223 * dwarf2read.h (dwarf2_section_info_def): Remove.
9224 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9225 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9226 std::vector<dwarf2_section_info>.
9227 (struct dwo_file) <~dwo_file>: Remove.
9228 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9229 types field.
9230 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9231 (dwarf2_read_debug_names): Likewise.
9232 (create_debug_types_hash_table): Change parameter type to
9233 array_view, adjust code accordingly.
9234 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9235 (partial_die_info::fixup): Likewise.
9236 (determine_prefix): Likewise.
9237 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9238
9239 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9240
9241 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9242 gdb_bfd_ref_ptr.
9243 <~dwo_file>: Remove call to gdb_bfd_unref.
9244 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9245 gdb_bfd_ref_ptr::get.
9246
9247 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9248
9249 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9250 type to htab_up.
9251 * dwarf2read.c (struct dwo_file): Initialize fields.
9252 <~dwo_file>: New.
9253 (free_dwo_file): Remove, move content to ~dwo_file.
9254 (struct dwo_file_deleter): Remove.
9255 (dwo_file_up>: Remove custom deleter.
9256 (free_dwo_files): Remove.
9257 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9258 dwo_files.
9259 (process_skeletonless_type_units): Call unique_ptr::get.
9260 (allocate_dwo_file_hash_table): Add deleter to created hash
9261 table. Change return type to htab_up.
9262 (lookup_dwo_file_slot): Don't memset dwo_file, call
9263 unique_ptr::get.
9264 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9265 (create_dwo_unit_in_dwp_v2): Likewise.
9266 (open_and_init_dwo_file): Likewise.
9267 (free_dwo_file_from_slot): Remove.
9268
9269 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9270
9271 * dwarf2read.h (struct dwarf2_section_info) <readin,
9272 is_virtual>: Change type to bool.
9273 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9274 true instead of 1.
9275
9276 2019-06-19 Tom Tromey <tom@tromey.com>
9277
9278 * tui/tui-data.h (tui_init_content_element): Don't declare.
9279
9280 2019-06-19 Tom Tromey <tom@tromey.com>
9281
9282 * tui/tui-data.h (tui_init_win_info): Don't declare.
9283
9284 2019-06-19 Tom de Vries <tdevries@suse.de>
9285
9286 * dwarf2read.h (abstract_to_concrete): Change type to
9287 std::unordered_map<sect_offset, std::vector<sect_offset>,
9288 gdb::hash_enum<sect_offset>>.
9289
9290 2019-06-19 Tom Tromey <tromey@adacore.com>
9291
9292 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9293 EVAL_AVOID_SIDE_EFFECTS specially.
9294
9295 2019-06-19 Tom Tromey <tromey@adacore.com>
9296
9297 * source-cache.c (highlighter): New global.
9298 (source_cache::get_source_lines): Create a highlighter on demand.
9299
9300 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9301
9302 * defs.h (deprecated_interactive_hook): Delete declaration.
9303 * interps.c (clear_interpreter_hooks): Remove use of
9304 deprecated_interactive_hook.
9305 * top.c (deprecated_interactive_hook): Delete definition.
9306 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9307
9308 2019-06-18 Tom de Vries <tdevries@suse.de>
9309
9310 PR gdb/24515
9311 * dwarf2read.h (abstract_to_concrete): Change type from
9312 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9313 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9314 * dwarf2read.c (read_variable): Update.
9315 (dwarf2_fetch_die_loc_sect_off): Update.
9316
9317 2019-06-17 Tom de Vries <tdevries@suse.de>
9318
9319 PR gdb/24617
9320 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9321 accessing parent[parent_len - 1].
9322
9323 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9324
9325 PR gdb/24364
9326 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9327 call dtrace_process_dof with NULL dof.
9328
9329 2019-06-16 Tom de Vries <tdevries@suse.de>
9330
9331 PR gdb/24445
9332 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9333
9334 2019-06-16 Tom Tromey <tom@tromey.com>
9335
9336 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9337 (make_all_visible): Use address of member.
9338
9339 2019-06-16 Tom Tromey <tom@tromey.com>
9340
9341 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9342 (tui_free_window, free_content, free_content_elements): Remove
9343 unnecessary cast.
9344 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9345 cast.
9346 * tui/tui-regs.c (tui_show_register_group)
9347 (tui_display_registers_from, tui_display_reg_element_at_line):
9348 Remove unnecessary cast.
9349
9350 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9351
9352 * linux-nat.c (normal_mask): Delete.
9353 (_initialize_linux_nat): Don't initialise normal_mask.
9354
9355 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9356
9357 PR gdb/24445
9358 * dwarf-index-write.h (write_psymtabs_to_index): Add
9359 dwz_basename parameter.
9360 * dwarf-index-write.c (write_gdbindex): Move file writing to
9361 write_gdbindex_1. Change return type void.
9362 (assert_file_size): Move up, remove filename parameter.
9363 (write_gdbindex_1): New function.
9364 (write_debug_names): Change return type to void, call
9365 assert_file_size.
9366 (struct index_wip_file): New struct.
9367 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9368 file logic to index_wip_file. Write index for dwz file if
9369 needed.
9370 (save_gdb_index_command): Pass basename of dwz file, if present.
9371 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9372 build-id of dwz file, if present.
9373 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9374 (dwarf2_get_dwz_file): Likewise.
9375 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9376 (dwarf2_get_dwz_file): Likewise.
9377
9378 2019-06-16 Tom Tromey <tom@tromey.com>
9379
9380 * coffread.c (process_coff_symbol): Use xstrdup.
9381 * value.c (create_internalvar): Use xstrdup.
9382
9383 2019-06-16 Tom Tromey <tom@tromey.com>
9384
9385 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9386 * breakpoint.c (stopin_command, stopat_command)
9387 (until_break_command, decode_location_default): Remove unnecessary
9388 cast.
9389 * utils.c (subset_compare): Remove unnecessary cast.
9390 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9391 cast.
9392 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9393 cast.
9394 * infcmd.c (path_command): Remove unnecessary cast.
9395 * coffread.c (decode_type): Remove unnecessary cast.
9396 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9397 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9398 * tui/tui-stack.c (tui_show_locator_content)
9399 (tui_show_frame_info): Remove unnecessary cast.
9400 * tui/tui-win.c (tui_scroll_forward_command)
9401 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9402 (parse_scrolling_args): Remove unnecessary cast.
9403 * tui/tui-data.c (init_win_info, tui_del_window)
9404 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9405 (free_content_elements): Remove unnecessary cast.
9406 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9407 unnecessary cast.
9408 * tui/tui-source.c (tui_set_source_content)
9409 (tui_vertical_source_scroll): Remove unnecessary cast.
9410 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9411 cast.
9412 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9413 * tui/tui-regs.c (tui_display_registers_from)
9414 (tui_display_register): Remove unnecessary cast.
9415 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9416 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9417 (make_visible): Remove unnecessary cast.
9418 * tui/tui-winsource.c (tui_erase_source_content)
9419 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9420 unnecessary cast.
9421 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9422 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9423 * stabsread.c (read_type, read_array_type, read_range_type):
9424 Remove unnecessary cast.
9425 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9426 (parse_symbol, parse_type, upgrade_type, parse_external)
9427 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9428 unnecessary cast.
9429 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9430
9431 2019-06-16 Tom Tromey <tom@tromey.com>
9432
9433 * tui/tui-data.c (tui_alloc_generic_win_info)
9434 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9435 checks.
9436
9437 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9438 Andrew Burgess <andrew.burgess@embecosm.com>
9439
9440 * f-typeprint.c (f_print_type): Don't return early for not
9441 associated or not allocated types.
9442 (f_type_print_varspec_suffix): Add print_rank parameter and print
9443 ranks of array types in case they dangling.
9444 (f_type_print_base): Add print_rank parameter.
9445
9446 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9447
9448 * NEWS: Mention new MI commands.
9449 * break-catch-throw.c (enum exception_event_kind): Move to
9450 breakpoint.h.
9451 (print_mention_exception_catchpoint): Output text as a single
9452 message.
9453 (catch_exception_command_1): Rename to...
9454 (catch_exception_event): ...this, make non-static, update header
9455 command, and change some parameter types.
9456 (catch_catch_command): Update for changes to
9457 catch_exception_command_1.
9458 (catch_throw_command): Likewise.
9459 (catch_rethrow_command): Likewise.
9460 * breakpoint.c (enum exception_event_kind): Delete.
9461 * breakpoint.h (enum exception_event_kind): Moved here from
9462 break-catch-throw.c.
9463 (catch_exception_event): Declare.
9464 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9465 (mi_cmd_catch_throw): New function.
9466 (mi_cmd_catch_rethrow): New function.
9467 (mi_cmd_catch_catch): New function.
9468 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9469 'catch-catch' entries.
9470 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9471 (mi_cmd_catch_rethrow): Declare.
9472 (mi_cmd_catch_catch): Declare.
9473
9474 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9475
9476 * annotate.c (annotate_source_line): Change return type to void,
9477 update implementation to match.
9478 * annotate.h (annotate_source_line): Change return type to void,
9479 update header comment.
9480 * stack.c (print_frame_info): Don't change what frame information
9481 is printed based on whether annotations are on or not.
9482
9483 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9484
9485 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9486 (annotate_source): Make static.
9487 (annotate_source_line): Moved from source.c and renamed from
9488 identify_source_line. Update the return type.
9489 * annotate.h (annotate_source): Delete declaration.
9490 (annotate_source_line): Declaration moved from source.h, and
9491 renamed from identify_source_line. Return type updated.
9492 * source.c (identify_source_line): Moved to annotate.c and renamed
9493 to annotate_source_line.
9494 (info_line_command): Remove check of annotation_level.
9495 * source.h (identify_source_line): Move declaration to annotate.h
9496 and rename to annotate_source_line.
9497 * stack.c: Add 'annotate.h' include.
9498 (print_frame_info): Remove check of annotation_level before
9499 calling annotate_source_line.
9500
9501 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9502
9503 * source-cache.c (source_cache::get_plain_source_lines): Use
9504 open_source_file_with_line_charpos instead of just
9505 open_source_file, remove call to find_source_lines.
9506 (source_cache::get_source_lines): Likewise.
9507 * source.c (find_source_lines): Make static.
9508 (get_filename_and_charpos): Renamed into...
9509 (open_source_file_with_line_charpos): ..this along with changes to
9510 return a scoped_fd, and some other minor clean ups.
9511 (identify_source_line): Use open_source_file_with_line_charpos.
9512 (search_command_helper): Use open_source_file_with_line_charpos
9513 instead of just open_source_file, remove call to
9514 find_source_lines.
9515 * source.h (open_source_file_with_line_charpos): Declare new
9516 function.
9517 (find_source_lines): Delete declaration.
9518
9519 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9520
9521 * source.c (get_filename_and_charpos): Remove fullname
9522 parameter.
9523 (identify_source_line): Update call to get_filename_and_charpos.
9524
9525 2019-06-14 Tom Tromey <tromey@adacore.com>
9526
9527 PR gdb/24502:
9528 * ui-style.h (skip_ansi_escape): Update comment.
9529 * ui-file.h (class no_terminal_escape_file): New class.
9530 * ui-file.c (no_terminal_escape_file::write)
9531 (no_terminal_escape_file::puts): New methods.
9532 * cli/cli-logging.c (handle_redirections): Use
9533 no_terminal_escape_file.
9534
9535 2019-06-14 Tom Tromey <tromey@adacore.com>
9536
9537 * NEWS: Move convenience variable news above Python news.
9538
9539 2019-06-14 Tom Tromey <tom@tromey.com>
9540
9541 * gnulib: Move directory to top-level.
9542 * configure.ac: Don't configure gnulib.
9543 * configure: Rebuild.
9544 * common/common-defs.h: Use new path to gnulib.
9545 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9546 (GNULIB_H): Remove.
9547 (INCGNU): Look in new gnulib location.
9548 (HFILES_NO_SRCDIR): Remove gnulib files.
9549 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9550 (generated_files): Remove GNULIB_H.
9551 ($(LIBGNU), all-lib): Remove targets.
9552 (distclean): Don't mention GNULIB_BUILDDIR.
9553 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9554
9555 2019-06-14 Tom Tromey <tromey@adacore.com>
9556
9557 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9558 Warn if symbol file does not provide any symbols.
9559
9560 2019-06-14 Tom Tromey <tromey@adacore.com>
9561
9562 * source.c (find_and_open_source): Respect basenames_may_differ.
9563
9564 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9565
9566 * annotate.c (annotate_breakpoints_invalid): Make use of
9567 scoped_restore_terminal_state.
9568 (annotate_frames_invalid): Likewise.
9569
9570 2019-06-14 Tom Tromey <tromey@adacore.com>
9571
9572 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9573 allow assignment to an internalvar.
9574
9575 2019-06-14 Tom Tromey <tromey@adacore.com>
9576
9577 * ada-lex.l: Allow "_" in attribute names.
9578
9579 2019-06-14 Tom Tromey <tromey@adacore.com>
9580
9581 PR gdb/24653:
9582 * regcache.c (registers_changed): Don't call alloca.
9583 * top.c (execute_command): Don't call alloca.
9584
9585 2019-06-13 Pedro Alves <palves@redhat.com>
9586
9587 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9588 'expression'. When parsing an expression, error out if there's
9589 junk after "unlimited".
9590 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9591 (do_set_command): Adjust calls to is_unlimited_literal.
9592
9593 2019-06-13 Pedro Alves <palves@redhat.com>
9594
9595 * compile/compile.c (make_compile_options_def_group): Add braces
9596 around array_view initializer.
9597 * thread.c (make_thread_apply_all_options_def_group)
9598 (make_thread_apply_all_options_def_group): Likewise.
9599
9600 2019-06-13 Pedro Alves <palves@redhat.com>
9601
9602 * NEWS (New commands): Mention "maint test-options
9603 require-delimiter", "maint test-options unknown-is-error", "maint
9604 test-options unknown-is-operand" and "maint show
9605 test-options-completion-result".
9606 (New command options, command completion): New section.
9607 (Completion improvements): New section.
9608 Mention that you can abbreviate "unlimited".
9609
9610 2019-06-13 Pedro Alves <palves@redhat.com>
9611
9612 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9613 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9614 * unittests/cli-utils-selftests.c (test_parse_flags)
9615 (test_parse_flags_qcs): Delete.
9616 (test_cli_utils): Don't call deleted functions.
9617
9618 2019-06-13 Pedro Alves <palves@redhat.com>
9619
9620 * thread.c: Include "cli/cli-option.h".
9621 (tp_array_compar_ascending): Global.
9622 (tp_array_compar): Delete function.
9623 (tp_array_compar_ascending, tp_array_compar_descending): New
9624 functions.
9625 (ascending_option_def, qcs_flag_option_def)
9626 (thr_qcs_flags_option_defs)
9627 (make_thread_apply_all_options_def_group)
9628 (make_thread_apply_options_def_group): New.
9629 (thread_apply_all_command): Use gdb::option::process_options.
9630 (thread_apply_command_completer)
9631 (thread_apply_all_command_completer): New.
9632 (thread_apply_command): Use gdb::option::process_options.
9633 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9634 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9635 to generate help text of "thread apply". Adjust "taas"'s help.
9636 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9637 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9638
9639 2019-06-13 Pedro Alves <palves@redhat.com>
9640
9641 * thread.c (thread_apply_command): Check for invalid TID with
9642 isdigit instead of !isalpha.
9643
9644 2019-06-13 Pedro Alves <palves@redhat.com>
9645
9646 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9647 (validate_flags_qcs): New.
9648 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9649 (validate_flags_qcs): Declare.
9650 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9651 (make_frame_apply_options_def_group): New.
9652 (frame_apply_command_count): Process options with
9653 gdb::option::process_options.
9654 (frame_apply_completer): New.
9655 (frame_apply_level_completer, frame_apply_all_completer)
9656 (frame_apply_completer): New.
9657 (_initialize_stack): Update help of "frame apply", "frame apply
9658 level", "frame apply all" and "faas" to mention supported options
9659 and install command completers.
9660 * stack.h (frame_apply_all_completer): Declare.
9661 * thread.c: Include "stack.h".
9662 (tfaas_command): Add "--".
9663 (_initialize_thread): Update help "tfaas" to mention supported
9664 options and install command completer.
9665
9666 2019-06-13 Pedro Alves <palves@redhat.com>
9667
9668 * completer.c (complete_nested_command_line): New.
9669 (gdb_completion_word_break_characters_throw): Add assertion.
9670 * completer.h (complete_nested_command_line): Declare.
9671
9672 2019-06-13 Pedro Alves <palves@redhat.com>
9673
9674 * stack.c (parse_backtrace_qualifiers): New.
9675 (backtrace_command): Use it.
9676 (backtrace_command_completer): Complete on qualifiers.
9677
9678 2019-06-13 Pedro Alves <palves@redhat.com>
9679
9680 * frame.c: Include "cli/cli-option.h.
9681 (user_set_backtrace_options): New.
9682 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9683 Delete.
9684 (get_prev_frame): Adjust.
9685 (boolean_option_def, uinteger_option_def)
9686 (set_backtrace_option_defs): New.
9687 (_initialize_frame): Adjust and use
9688 gdb::option::add_setshow_cmds_for_options to install "set
9689 backtrace past-main" and "set backtrace past-entry".
9690 * frame.h: Include "cli/cli-option.h".
9691 (struct frame_print_options): Forward declare.
9692 (print_frame_arguments_all, print_frame_arguments_scalars)
9693 (print_frame_arguments_none): Declare.
9694 (print_entry_values): Delete declaration.
9695 (struct frame_print_options, user_frame_print_options): New.
9696 (struct set_backtrace_options): New.
9697 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9698 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9699 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9700 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9701 (list_args_or_locals): Add frame_print_options parameter.
9702 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9703 * python/py-framefilter.c (enumerate_args): Pass down
9704 USER_FRAME_PRINT_OPTIONS.
9705 * stack.c: Include "cli/cli-option.h".
9706 (print_frame_arguments_all, print_frame_arguments_scalars)
9707 (print_frame_arguments_none): Declare.
9708 (print_raw_frame_arguments, print_entry_values): Delete.
9709 (user_frame_print_options): New.
9710 (boolean_option_def, enum_option_def, frame_print_option_defs):
9711 New.
9712 (struct backtrace_cmd_options): New.
9713 (bt_flag_option_def): New.
9714 (backtrace_command_option_defs): New.
9715 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9716 (print_frame_arg, read_frame_arg, print_frame_args)
9717 (print_frame_info, print_frame): Add frame_print_options parameter
9718 and use it.
9719 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9720 (backtrace_command_1): Add frame_print_options and
9721 backtrace_cmd_options parameters and use them.
9722 (make_backtrace_options_def_group): New.
9723 (backtrace_command): Process command options with
9724 gdb::option::process_options.
9725 (backtrace_command_completer): New.
9726 (_initialize_stack): Extend "backtrace"'s help to mention
9727 supported options. Install completer for "backtrace".
9728 Install some settings commands with add_setshow_cmds_for_options.
9729
9730 2019-06-13 Pedro Alves <palves@redhat.com>
9731
9732 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9733 and that "set/show print raw frame-arguments" are now deprecated.
9734
9735 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9736 command.
9737 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9738 * stack.c (_initialize_stack): Install "set/show print
9739 raw-frame-arguments", and deprecate "set/show print raw
9740 frame-arguments".
9741 * valprint.c (_initialize_valprint): Deprecate "set/show print
9742 raw".
9743
9744 2019-06-13 Pedro Alves <palves@redhat.com>
9745
9746 * compile/compile.c (struct compile_options): New.
9747 (compile_flag_option_def, compile_command_option_defs)
9748 (make_compile_options_def_group): New.
9749 (compile_file_command): Handle options with
9750 gdb::option::process_options.
9751 (compile_file_command_completer): New function.
9752 (compile_code_command): Handle options with
9753 gdb::option::process_options.
9754 (compile_code_command_completer): New function.
9755 (_initialize_compiler): Install completers for "compile code" and
9756 "compile file". Mention available options in "compile code" and
9757 "compile code"'s help.
9758 * completer.c (advance_to_completion_word): New, factored out from
9759 ...
9760 (advance_to_expression_complete_word_point): ... this.
9761 (advance_to_filename_complete_word_point): New.
9762 * completer.h (advance_to_filename_complete_word_point): New
9763 declaration.
9764
9765 2019-06-13 Pedro Alves <palves@redhat.com>
9766
9767 * compile/compile.c: Include "cli/cli-option.h".
9768 (compile_print_value): Scope data pointer is now a
9769 value_print_options pointer; adjust.
9770 (compile_print_command): Process options. Scope data pointer is
9771 now a value_print_options pointer; adjust.
9772 (_initialize_compile): Update "compile print"'s help to include
9773 supported options. Install a completer for "compile print".
9774 * cp-valprint.c (show_vtblprint, show_objectprint)
9775 (show_static_field_print): Delete.
9776 (_initialize_cp_valprint): Don't install "set print
9777 static-members", "set print vtbl", "set print object" here.
9778 * printcmd.c: Include "cli/cli-option.h" and
9779 "common/gdb_optional.h".
9780 (print_command_parse_format): Rework to fill in a
9781 value_print_options instead of a format_data.
9782 (print_value): Change parameter type from format_data pointer to
9783 value_print_options reference. Adjust.
9784 (print_command_1): Process options. Adjust to pass down a
9785 value_print_options.
9786 (print_command_completer): New.
9787 (_initialize_printcmd): Install print_command_completer as
9788 handle_brkchars completer for the "print" command. Update
9789 "print"'s help to include supported options.
9790 * valprint.c: Include "cli/cli-option.h".
9791 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9792 here from cp-valprint.c.
9793 (boolean_option_def, uinteger_option_def)
9794 (value_print_option_defs, make_value_print_options_def_group):
9795 New. Use gdb::option::add_setshow_cmds_for_options to install
9796 "set print elements", "set print null-stop", "set print repeats",
9797 "set print pretty", "set print union", "set print array", "set
9798 print address", "set print symbol", "set print array-indexes".
9799 * valprint.h: Include <string> and "cli/cli-option.h".
9800 (make_value_print_options_def_group): Declare.
9801 (print_value): Change parameter type from format_data pointer to
9802 value_print_options reference.
9803 (print_command_completer): Declare.
9804
9805 2019-06-13 Pedro Alves <palves@redhat.com>
9806
9807 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9808 (COMMON_SFILES): Add maint-test-settings.c.
9809 * cli/cli-decode.c (boolean_enums): New global, factored out from
9810 ...
9811 (add_setshow_boolean_cmd): ... here.
9812 * cli/cli-decode.h (boolean_enums): Declare.
9813 * cli/cli-option.c: New file.
9814 * cli/cli-option.h: New file.
9815 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9816 factored out from ...
9817 (parse_cli_boolean_value(const char *)): ... this.
9818 (is_unlimited_literal): Change parameter type to pointer to
9819 pointer. Adjust and advance ARG pointer.
9820 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9821 (parse_cli_var_enum): New, factored out from ...
9822 (do_set_command): ... this. Adjust.
9823 * cli/cli-setshow.h (parse_cli_boolean_value)
9824 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9825 (parse_cli_var_enum): Declare.
9826 * cli/cli-utils.c: Include "cli/cli-option.h".
9827 (get_ulongest): New.
9828 * cli/cli-utils.h (get_ulongest): Declare.
9829 (check_for_argument): New overloads.
9830 * maint-test-options.c: New file.
9831
9832 2019-06-13 Pedro Alves <palves@redhat.com>
9833
9834 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9835 parse a range if "-" is at the end of the string.
9836
9837 2019-06-13 Pedro Alves <palves@redhat.com>
9838
9839 * cli/cli-setshow.c (parse_auto_binary_operation)
9840 (parse_cli_boolean_value): Don't allow "o".
9841
9842 2019-06-13 Pedro Alves <palves@redhat.com>
9843
9844 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9845 * NEWS: Mention maint test-settings KIND.
9846 * maint-test-settings.c: New file.
9847
9848 2019-06-13 Pedro Alves <palves@redhat.com>
9849
9850 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9851 completer.
9852 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9853 "set" completers.
9854
9855 2019-06-13 Pedro Alves <palves@redhat.com>
9856
9857 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9858 after item.
9859
9860 2019-06-13 Pedro Alves <palves@redhat.com>
9861
9862 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9863
9864 2019-06-13 Pedro Alves <palves@redhat.com>
9865
9866 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9867 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9868 call.
9869 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9870 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9871 calls.
9872 (check_for_argument): Skip spaces after argument.
9873
9874 2019-06-13 Pedro Alves <palves@redhat.com>
9875
9876 * thread.c (thread_apply_command): Adjust TID parsing.
9877 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9878 detected before end of string.
9879 (tid_is_in_list): Error out if LIST is invalid.
9880
9881 2019-06-13 Pedro Alves <palves@redhat.com>
9882
9883 * completer.c (complete_line_internal_1): Rewind completion word
9884 point.
9885 (completion_tracker::advance_custom_word_point_by): Change
9886 parameter type to int.
9887 * completer.h (completion_tracker::advance_custom_word_point_by):
9888 Likewise.
9889
9890 2019-06-13 Pedro Alves <palves@redhat.com>
9891
9892 * completer.c (advance_to_completion_word): Handle delimiters.
9893
9894 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9895
9896 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9897
9898 2019-06-11 Tom Tromey <tom@tromey.com>
9899
9900 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9901 (xmalloc_failed): Move to alloc.c.
9902 * alloc.c: New file.
9903 * Makefile.in (COMMON_SFILES): Add alloc.c.
9904
9905 2019-06-11 Tom Tromey <tom@tromey.com>
9906
9907 * nat/linux-waitpid.c: Don't include server.h.
9908 (linux_debug): Remove.
9909 (my_waitpid): Update.
9910
9911 2019-06-11 Tom Tromey <tromey@adacore.com>
9912
9913 * infcall.c (_initialize_infcall): Remove trailing newline from
9914 help.
9915 * user-regs.c (_initialize_user_regs): Remove trailing newline
9916 from help.
9917 * typeprint.c (_initialize_typeprint): Remove trailing newline
9918 from help.
9919 * reverse.c (_initialize_reverse): Remove trailing newlines from
9920 help.
9921 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9922 from help.
9923 * language.c (add_set_language_command): Remove trailing newline
9924 from help.
9925 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9926 help.
9927 * disasm.c (_initialize_disasm): Remove trailing newline from
9928 help.
9929 * top.c (init_main): Remove trailing newline from help.
9930 * interps.c (_initialize_interpreter): Remove trailing newline
9931 from help.
9932 * btrace.c (_initialize_btrace): Remove trailing newlines from
9933 help.
9934 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9935 from help.
9936 * python/python.c (_initialize_python): Remove trailing newline
9937 from help.
9938 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9939 help.
9940 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9941 from help. Reformat some text.
9942 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9943 from help.
9944 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9945 newline from help.
9946
9947 2019-06-11 Tom Tromey <tromey@adacore.com>
9948
9949 * darwin-nat.c (darwin_decode_exception_message)
9950 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9951
9952 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9953
9954 * valops.c (value_slice): Check for not allocated or not
9955 associated values.
9956
9957 2019-06-10 Tom de Vries <tdevries@suse.de>
9958
9959 PR gdb/24618
9960 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9961 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9962 invalid.
9963
9964 2019-06-10 Tom de Vries <tdevries@suse.de>
9965
9966 PR gdb/24611
9967 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9968 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9969
9970 2019-06-10 Tom de Vries <tdevries@suse.de>
9971
9972 PR symtab/24545
9973 * symtab.c (struct demangled_name_entry): Add language field.
9974 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9975 static minimal symbol". Set and use language field.
9976
9977 2019-06-10 Tom Tromey <tromey@adacore.com>
9978
9979 * ada-lang.c (_initialize_ada_language): Update help text.
9980
9981 2019-06-10 Tom Tromey <tromey@adacore.com>
9982
9983 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9984 with a newline.
9985 * guile/guile.c (handle_boot_error): Don't end warning with a
9986 newline.
9987 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9988 warning with a newline.
9989 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9990 newline.
9991 (s12z_frame_cache): Likewise.
9992 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9993 a newline.
9994 * solib-svr4.c (disable_probes_interface): Don't end warning with
9995 a newline.
9996 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9997 newline.
9998 * python/python.c (do_finish_initialization): Don't end warning
9999 with a newline.
10000
10001 2019-06-10 Tom Tromey <tom@tromey.com>
10002
10003 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10004 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10005 gdbpy_enter.
10006
10007 2019-06-10 Tom Tromey <tromey@adacore.com>
10008
10009 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10010 data.
10011 (elf_new_init): Don't call stabsread_new_init.
10012 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10013 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10014 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10015
10016 2019-06-10 Tom de Vries <tdevries@suse.de>
10017
10018 PR symtab/16264
10019 PR symtab/24517
10020 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10021
10022 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10023
10024 * source.c (find_and_open_source): Also rewrite relative file
10025 names.
10026
10027 2019-04-26 Amos Bird <amosbird@gmail.com>
10028
10029 * annotate.c (annotate_thread_exited): Add "thread-exited"
10030 annotation.
10031
10032 2019-06-06 Tom Tromey <tromey@adacore.com>
10033
10034 * maint.h (class scoped_command_stats): Use
10035 DISABLE_COPY_AND_ASSIGN.
10036 <print_time>: New method.
10037 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10038 print_time.
10039 (scoped_command_stats::print_time): New method.
10040
10041 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10042
10043 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10044 instructions of lengths 6 or 8 bytes.
10045
10046 2019-06-04 Pedro Alves <palves@redhat.com>
10047
10048 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10049
10050 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10051 * breakpoint.c (condition_completer): Likewise.
10052 * cli/cli-dump.c (scan_expression): Likewise.
10053 * common/filestuff.c (mkdir_recursive): Likewise.
10054 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10055 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10056 (gdb_abspath): Likewise.
10057 * compile/compile-cplus-types.c
10058 (compile_cplus_instance::decl_name): Likewise.
10059 * completer.c (complete_explicit_location):
10060 (signal_completer, reg_or_group_completer_1): Likewise.
10061 * cp-support.c (cp_remove_params_if_any): Likewise.
10062 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10063 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10064 * infcmd.c (strip_bg_char): Likewise.
10065 * linespec.c (copy_token_string): Likewise.
10066 * mi/mi-main.c (output_cores): Likewise.
10067 * psymtab.c (psymtab_search_name):
10068 * symfile.c (test_set_ext_lang_command): Likewise.
10069 * target.c (target_fileio_read_stralloc): Likewise.
10070 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10071 * value.c (complete_internalvar): Likewise.
10072
10073 2019-06-04 Christian Biesinger <cbiesinger@google.com>
10074
10075 Add objfile property to gdb.Type.
10076 * NEWS: Mention Python API addition.
10077 * python/py-type.c (typy_get_objfile): New method.
10078
10079 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10080
10081 * NEWS: Mention the new set|show style [title|highlight].
10082 Mention changes to "show style", "help" and "apropos".
10083
10084 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10085
10086 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10087 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10088 instead of print_help_for_command.
10089 (print_doc_of_command): New function.
10090 (help_list): Add 'apropos -v word' suggestion.
10091 (print_help_for_command): Style the command name using title style.
10092 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10093 (_initialize_cli_cmds): Describe -v in apropos_command help.
10094
10095 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10096
10097 * cli/cli-style.h (cli_style_option): Add name in constructor,
10098 add m_name class member, add constructor with intensity,
10099 add name class function.
10100 (cli_style_option::add_setshow_commands): Remove name argument.
10101 (highlight_style, title_style): New styles.
10102 * cli/cli-style.c (do_show): New function that shows a style
10103 characteristic styling the style name with itself.
10104 (set_style_name): New function.
10105 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10106 Update all callers according to the changes in cli/cli-style.h.
10107 * utils.h (fputs_highlighted): New function.
10108 * utils.c (fputs_highlighted): Likewise.
10109
10110 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10111
10112 * NEWS: Mention new pipe command and new convenience variables.
10113
10114 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10115
10116 * cli/cli-cmds.c (pipe_command): New function.
10117 (_initialize_cli_cmds): Call add_com for pipe_command.
10118 Define | as an alias for pipe.
10119 (exit_status_set_internal_vars): New function.
10120 (shell_escape): Call exit_status_set_internal_vars.
10121 cli/cli-decode.c (find_command_name_length): Recognize | as
10122 a single character command.
10123
10124 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10125
10126 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10127 top.c (execute_command_to_ui_file): New function, mostly a copy
10128 of execute_command_to_string.
10129 (execute_command_to_string): Implement by calling
10130 execute_command_to_ui_file.
10131
10132 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10133
10134 * top.h (saved_command_line): Remove declaration.
10135 * top.c (previous_saved_command_line, previous_repeat_arguments):
10136 New variables.
10137 (saved_command_line): Make static, define together with other
10138 'repeat variables'.
10139 (dont_repeat): Clear repeat_arguments.
10140 (repeat_previous, get_saved_command_line, save_command_line):
10141 New functions.
10142 (gdb_init): Initialize saved_command_line
10143 and previous_saved_command_line.
10144 * main.c (captured_main_1): Remove saved_command_line initialization.
10145 * event-top.c (handle_line_of_input): Update to use
10146 the new 'repeat' related functions instead of direct access to
10147 saved_command_line.
10148 * command.h (repeat_previous, get_saved_command_line,
10149 save_command_line): New declarations.
10150 (dont_repeat): Add comment.
10151
10152 2019-05-30 Tom Tromey <tromey@adacore.com>
10153
10154 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10155 Fix comment.
10156 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10157
10158 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10159
10160 PR cli/24587
10161 * completer.c (complete): Initialize variable word.
10162
10163 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10164
10165 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10166 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10167 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10168 'body' is NULL to the outter 'if', protecting the '!is_define'
10169 situation as well.
10170
10171 2019-05-29 Tom Tromey <tromey@adacore.com>
10172
10173 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10174 (dwarf_unknown): New function.
10175 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10176 (dwarf_type_encoding_name): Use dwarf_unknown.
10177
10178 2019-05-29 Tom Tromey <tromey@adacore.com>
10179
10180 PR c++/20020:
10181 * cp-valprint.c (cp_print_value_fields): Call
10182 cp_print_static_field inside "try".
10183
10184 2019-05-29 Tom Tromey <tromey@adacore.com>
10185
10186 * inflow.c (struct terminal_info): Add default operator=.
10187 * configure: Rebuild.
10188 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10189 -Wdeprecated-copy-dtor, -Wredundant-move.
10190
10191 2019-05-29 Tom Tromey <tromey@adacore.com>
10192
10193 * NEWS: Add entry.
10194 * infcmd.c (print_return_value_1): Handle finish_print
10195 option.
10196 (show_print_finish): New function.
10197 (_initialize_infcmd): Add "set/show print finish" commands.
10198 * valprint.c (user_print_options): Initialize new member.
10199 * valprint.h (struct value_print_options) <finish_print>: New
10200 member.
10201
10202 2019-05-28 Tom Tromey <tromey@adacore.com>
10203
10204 * ada-lang.c (ada_remove_Xbn_suffix)
10205 (find_old_style_renaming_symbol)
10206 (parse_old_style_renaming): Remove.
10207 (ada_find_renaming_symbol): Don't call
10208 find_old_style_renaming_symbol.
10209 (ada_is_renaming_symbol): Rename from
10210 ada_find_renaming_symbol. Remove "block" parameter. Return
10211 bool. Now static.
10212 (ada_read_var_value): Update and simplify.
10213 * ada-exp.y (write_var_or_type): Remove old code.
10214
10215 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10216
10217 PR gdb/25010
10218 * event-top.c: Remove include comment.
10219 * inflow.c (class scoped_ignore_sigttou): Move from here...
10220 * inflow.h (class scoped_ignore_sigttou): ...to here.
10221 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10222 * top.c: Remove include comment.
10223
10224 2019-05-27 Tom Tromey <tom@tromey.com>
10225
10226 * NEWS: Fix typo.
10227
10228 2019-05-22 Tom Tromey <tromey@adacore.com>
10229
10230 * target.c (target_follow_exec): Constify parameter.
10231 * target-delegates.c: Rebuild.
10232 * remote.c (remote_target::follow_exec): Constify parameter.
10233 * infrun.c (follow_exec): Constify parameter.
10234 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10235 (target_follow_exec): Likewise.
10236
10237 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10238
10239 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10240 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10241
10242 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10243
10244 * NEWS: Add debugredirect and testsuite sections.
10245
10246 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10247
10248 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10249 target descriptions using exclusively floating point register name
10250 aliases.
10251
10252 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10253
10254 PR gdb/18644:
10255 * f-lang.c (build_fortran_types): Handle the case where
10256 gdbarch_floatformat_for_type returns a nullptr.
10257
10258 2019-05-21 Tom de Vries <tdevries@suse.de>
10259
10260 PR cli/24587
10261 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10262
10263 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10264
10265 PR gdb/18644:
10266 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10267 16-byte floats.
10268 * i386-tdep.c (i386_floatformat_for_type): Use
10269 floatformats_ia64_quad for the 16-byte floating point component
10270 within a fortran 32-byte complex number.
10271
10272 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10273
10274 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10275 delete default constructor.
10276 (find_partial_die): Update to return const struct.
10277 (partial_die_parent_scope): Move variable declaration into scope
10278 of its use and change its type to auto.
10279 (guess_partial_die_structure_name): Likewise.
10280 (partial_die_info::fixup): Likewise.
10281
10282 2019-05-17 Tom Tromey <tromey@adacore.com>
10283
10284 * source.c (find_and_open_source): Remove cast.
10285
10286 2019-05-17 Tom Tromey <tromey@adacore.com>
10287
10288 * annotate.c (annotate_source): Make "filename" const.
10289 * annotate.h (annotate_source): Use const.
10290
10291 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10292
10293 * disasm.c (set_disassembler_options): Send errors to stderr.
10294
10295 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10296
10297 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10298 (cli_interp_base::set_logging): Check debug_redirect.
10299 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10300 * cli/cli-logging.c (debug_redirect): Add static variable.
10301 (pop_output_files): Add default param.
10302 (handle_redirections): Print debug setting.
10303 (show_logging_command): Likewise.
10304 (_initialize_cli_logging): Add debugredirect command.
10305 * interps.c (current_interp_set_logging): Add debug_redirect
10306 parameter.
10307 * interps.h (set_logging): Add debug_redirect parameter.
10308 (current_interp_set_logging): Likewise.
10309 * mi/mi-common.h: Likewise.
10310 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10311
10312 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10313 Tom Tromey <tromey@adacore.com>
10314
10315 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10316 directly.
10317 * cli/cli-interp.h (make_logging_output): Remove declaration.
10318 * cli/cli-logging.c (make_logging_output): Remove function.
10319 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10320 directly.
10321 * ui-file.c (tee_file::tee_file): Remove bools.
10322 (tee_file::~tee_file): Remove deletes.
10323 * ui-file.h (tee_file): Remove bools.
10324
10325 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10326
10327 * mi/mi-cmds.h (mi_cmd_complete): New function.
10328 * mi/mi-main.c (mi_cmd_complete): Likewise.
10329 * mi/mi-cmds.c: Define new MI command -complete.
10330 * NEWS: Mention new -complete command.
10331
10332 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10333
10334 * completer.h (complete): New function.
10335 * completer.c (complete): Likewise.
10336 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10337 function defined in completer.h.
10338
10339 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10340
10341 * MAINTAINERS (Write After Approval): Add myself.
10342
10343 2019-05-17 Tom de Vries <tdevries@suse.de>
10344
10345 PR gdb/24094
10346 * dwarf2read.c (struct cu_partial_die_info): New struct.
10347 (find_partial_die): Return cu_partial_die_info.
10348 (partial_die_parent_scope, guess_partial_die_structure_name)
10349 (partial_die_info::fixup): Handle new return type of find_partial_die.
10350
10351 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10352
10353 PR breakpoints/24541
10354 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10355 "std::string", simplifying the algorithm.
10356
10357 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10358
10359 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10360 (stap_static_probe_ops::get_probes): Likewise.
10361
10362 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10363
10364 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10365 '-')" and "else if".
10366 (stap_parse_single_operand): Join checks for
10367 "gdbarch_stap_parse_special_token_p" and
10368 "gdbarch_stap_parse_special_token" in the same "if" statement.
10369 Invert check when verifying for operation on register
10370 displacement.
10371
10372 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10373
10374 * stap-probe.c (stap_get_opcode): Update comment.
10375 (stap_get_expected_argument_type): Likewise.
10376 (handle_stap_probe): Likewise.
10377
10378 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10379
10380 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10381 return type to 'bool'. Adjust comment. Use 'bool' when
10382 appropriate.
10383 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10384 * stap-probe.c (stap_parse_argument_1): Likewise.
10385 (stap_is_operator): Likewise.
10386 (stap_is_generic_prefix): Likewise.
10387 (stap_is_register_prefix): Likewise.
10388 (stap_is_register_indirection_prefix): Likewise.
10389 (stap_is_integer_prefix): Likewise.
10390 (stap_generic_check_suffix): Likewise.
10391 (stap_check_integer_suffix): Likewise.
10392 (stap_check_register_suffix): Likewise.
10393 (stap_check_register_indirection_suffix): Likewise.
10394 (stap_parse_register_operand): Likewise.
10395 (stap_parse_single_operand): Likewise.
10396 (stap_parse_argument_1): Likewise.
10397 (stap_probe::get_argument_count): Likewise.
10398 (stap_is_operator): Likewise.
10399
10400 2019-05-16 Tom Tromey <tromey@adacore.com>
10401
10402 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10403 keyword to foreach.
10404
10405 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * linux-thread-db.c (try_thread_db_load_1): Change return type
10408 to bool.
10409 (try_thread_db_load): Likewise.
10410 (try_thread_db_load_from_pdir_1): Likewise.
10411 (try_thread_db_load_from_pdir): Likewise.
10412 (try_thread_db_load_from_sdir): Likewise.
10413 (try_thread_db_load_from_dir): Likewise.
10414 (thread_db_load_search): Likewise.
10415 (has_libpthread): Likewise.
10416 (thread_db_load): Likewise.
10417
10418 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10419
10420 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10421 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10422 NULL, and complain/return if that's the case.
10423
10424 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10425
10426 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10427 (advance, posn, abstract_read_memory): New functions.
10428 [struct mem_read_abstraction]: New struct.
10429 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10430
10431 2019-05-14 Tom Tromey <tromey@adacore.com>
10432
10433 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10434 value is not lval_memory.
10435
10436 2019-05-14 Tom Tromey <tromey@adacore.com>
10437
10438 * solib.c (info_sharedlibrary_command): Style the file name.
10439
10440 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10441
10442 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10443 (aarch64_vnv_type): Likewise.
10444 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10445 * common/tdesc.c: Likewise.
10446 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10447 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10448 * features/aarch64-fpu.xml: Add ieee half view.
10449 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10450 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10451 * gdbtypes.h (struct builtin_type): Likewise.
10452 (struct objfile_type): Likewise.
10453
10454 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10455
10456 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10457 typo.
10458 * location.h (string_to_event_location): Likewise.
10459
10460 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10461
10462 GDB 8.3 released.
10463
10464 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10465
10466 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10467 New variable declaration.
10468 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10469 New variable.
10470 (print_one_breakpoint): Use ui_out::test_flags and new global
10471 variable to compute use_fixed_output.
10472 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10473 Remove.
10474 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10475 (mi_multi_location_breakpoint_output_fixed): Remove.
10476 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10477 new variable.
10478 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10479 fix_multi_location_breakpoint_output flag if version >= 3.
10480 * ui-out.h (enum ui_out_flag)
10481 <fix_multi_location_breakpoint_output>: New enumerator.
10482
10483 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10484
10485 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10486
10487 2019-05-10 Tom Tromey <tromey@adacore.com>
10488
10489 * ada-lang.c (catch_ada_completer): New function.
10490 (_initialize_ada_language): Use it.
10491
10492 2019-05-10 Tom Tromey <tromey@adacore.com>
10493
10494 * thread.c (print_thread_info): Make "requested_threads" const.
10495 * gdbthread.h (print_thread_info): Make "requested_threads"
10496 const.
10497 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10498 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10499
10500 2019-05-08 Tom Tromey <tom@tromey.com>
10501
10502 * gdbtypes.c (objfile_type_data): Change type.
10503 (objfile_type, _initialize_gdbtypes): Update.
10504
10505 2019-05-08 Tom Tromey <tom@tromey.com>
10506
10507 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10508 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10509 (_initialize_dwarf2_frame): Update.
10510
10511 2019-05-08 Tom Tromey <tom@tromey.com>
10512
10513 * objc-lang.c (objc_objfile_data): Change type.
10514 (find_methods): Update.
10515 (_initialize_objc_lang): Remove.
10516
10517 2019-05-08 Tom Tromey <tom@tromey.com>
10518
10519 * stabsread.c (rs6000_builtin_type_data): Change type.
10520 (rs6000_builtin_type, _initialize_stabsread): Update.
10521
10522 2019-05-08 Tom Tromey <tom@tromey.com>
10523
10524 * mips-tdep.c (mips_pdr_data): Remove.
10525 (_initialize_mips_tdep): Update.
10526
10527 2019-05-08 Tom Tromey <tom@tromey.com>
10528
10529 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10530 (hppa_init_objfile_priv_data, read_unwind_info)
10531 (find_unwind_entry, _initialize_hppa_tdep): Update.
10532
10533 2019-05-08 Tom Tromey <tom@tromey.com>
10534
10535 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10536 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10537 on obstack.
10538 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10539
10540 2019-05-08 Tom Tromey <tom@tromey.com>
10541
10542 * mdebugread.c (basic_type_data): Change type.
10543 (basic_type, _initialize_mdebugread): Update.
10544
10545 2019-05-08 Tom Tromey <tom@tromey.com>
10546
10547 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10548
10549 2019-05-08 Tom Tromey <tom@tromey.com>
10550
10551 * nto-tdep.c (nto_inferior_data_reg): Change type.
10552 (nto_inferior_data): Update.
10553 (nto_inferior_data_cleanup, nto_new_inferior_data)
10554 (_initialize_nto_tdep): Remove.
10555 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10556
10557 2019-05-08 Tom Tromey <tom@tromey.com>
10558
10559 * ada-lang.c (struct ada_inferior_data): Add initializers.
10560 (ada_inferior_data): Change type.
10561 (ada_inferior_data_cleanup): Remove.
10562 (get_ada_inferior_data, ada_inferior_exit)
10563 (struct ada_pspace_data): Add initializers, destructor.
10564 (ada_pspace_data_handle): Change type.
10565 (get_ada_pspace_data): Update.
10566 (ada_pspace_data_cleanup): Remove.
10567
10568 2019-05-08 Tom Tromey <tom@tromey.com>
10569
10570 * coffread.c (struct coff_symfile_info): Add initializers.
10571 (coff_objfile_data_key): Move lower. Change type.
10572 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10573 Update.
10574 (coff_free_info): Remove.
10575
10576 2019-05-08 Tom Tromey <tom@tromey.com>
10577
10578 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10579 (fbsd_pspace_data_handle): Move lower. Change type.
10580 (get_fbsd_pspace_data): Update.
10581 (fbsd_pspace_data_cleanup): Remove.
10582 (_initialize_fbsd_tdep): Update.
10583
10584 2019-05-08 Tom Tromey <tom@tromey.com>
10585
10586 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10587 (get_ada_tasks_pspace_data): Update.
10588 (ada_tasks_pspace_data_cleanup): Remove.
10589 (_initialize_tasks): Update.
10590 (ada_tasks_inferior_data_handle): Change type.
10591 (get_ada_tasks_inferior_data): Update.
10592 (ada_tasks_inferior_data_cleanup): Remove.
10593 (struct ada_tasks_pspace_data): Add initializers.
10594
10595 2019-05-08 Tom Tromey <tom@tromey.com>
10596
10597 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10598 * symfile-debug.c (debug_sym_get_probes): Change type.
10599 * stap-probe.c (handle_stap_probe):
10600 (stap_static_probe_ops::get_probes): Change type.
10601 * probe.h (class static_probe_ops) <get_probes>: Change type.
10602 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10603 (parse_probes_in_pspace): Update.
10604 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10605 Update.
10606 (any_static_probe_ops::get_probes): Change type.
10607 * elfread.c (elfread_data): New typedef.
10608 (probe_key): Change type.
10609 (elf_get_probes): Likewise. Update.
10610 (probe_key_free): Remove.
10611 (_initialize_elfread): Update.
10612 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10613 Change type.
10614 (dtrace_process_dof_probe, dtrace_process_dof)
10615 (dtrace_static_probe_ops::get_probe): Change type.
10616
10617 2019-05-08 Tom Tromey <tom@tromey.com>
10618
10619 * xcoffread.c (struct xcoff_symfile_info): Rename from
10620 coff_symfile_info. Add initializers.
10621 (xcoff_objfile_data_key): Move lower. Change type.
10622 (XCOFF_DATA): Rewrite.
10623 (xcoff_free_info): Remove.
10624 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10625 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10626 (xcoff_initial_scan): Update.
10627
10628 2019-05-08 Tom Tromey <tom@tromey.com>
10629
10630 * solib-svr4.c (struct svr4_info): Add initializers and
10631 destructor.
10632 <probes_table>: Now an htab_up.
10633 (solib_svr4_pspace_data): Change type.
10634 (free_probes_table): Simplify.
10635 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10636 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10637 (probes_table_remove_objfile_probes, register_solib_event_probe)
10638 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10639 (_initialize_svr4_solib): Update.
10640
10641 2019-05-08 Tom Tromey <tom@tromey.com>
10642
10643 * remote.c (remote_pspace_data): Change type.
10644 (remote_pspace_data_cleanup): Remove.
10645 (get_remote_exec_file, set_pspace_remote_exec_file)
10646 (_initialize_remote): Update.
10647
10648 2019-05-08 Tom Tromey <tom@tromey.com>
10649
10650 * breakpoint.c (breakpoint_objfile_key): Change type.
10651 (get_breakpoint_objfile_data): Update.
10652 (free_breakpoint_objfile_data): Remove.
10653 (_initialize_breakpoint): Update.
10654
10655 2019-05-08 Tom Tromey <tom@tromey.com>
10656
10657 * linux-tdep.c (struct linux_info): Add initializers.
10658 (linux_inferior_data): Move. Change type.
10659 (invalidate_linux_cache_inf): Update.
10660 (linux_inferior_data_cleanup): Remove.
10661 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10662
10663 2019-05-08 Tom Tromey <tom@tromey.com>
10664
10665 * auxv.c (auxv_inferior_data): Move. Change type.
10666 (auxv_inferior_data_cleanup): Remove.
10667 (invalidate_auxv_cache_inf): Rewrite.
10668 (get_auxv_inferior_data, _initialize_auxv): Update.
10669
10670 2019-05-08 Tom Tromey <tom@tromey.com>
10671
10672 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10673 (symfile_debug_objfile_data_key): Change type.
10674 (symfile_debug_installed, debug_qf_has_symbols)
10675 (debug_qf_find_last_source_symtab)
10676 (debug_qf_forget_cached_source_info)
10677 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10678 (debug_qf_print_stats, debug_qf_dump)
10679 (debug_qf_expand_symtabs_for_function)
10680 (debug_qf_expand_all_symtabs)
10681 (debug_qf_expand_symtabs_with_fullname)
10682 (debug_qf_map_matching_symbols)
10683 (debug_qf_expand_symtabs_matching)
10684 (debug_qf_find_pc_sect_compunit_symtab)
10685 (debug_qf_map_symbol_filenames)
10686 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10687 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10688 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10689 (debug_sym_read_linetable, debug_sym_relocate): Update.
10690 (symfile_debug_free_objfile): Remove.
10691 (install_symfile_debug_logging, _initialize_symfile_debug):
10692 Update.
10693
10694 2019-05-08 Tom Tromey <tom@tromey.com>
10695
10696 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10697 allocate_on_obstack.
10698 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10699 (get_dwarf2_per_objfile): Update.
10700 (set_dwarf2_per_objfile): Remove.
10701 (dwarf2_has_info, dwarf2_get_section_info): Update.
10702 (dwarf2_free_objfile): Remove.
10703 (_initialize_dwarf2_read): Update.
10704
10705 2019-05-08 Tom Tromey <tom@tromey.com>
10706
10707 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10708 initializers.
10709 <unsupported_script_warning_printed,
10710 script_not_found_warning_printed>: Now bool.
10711 (auto_load_pspace_data): Change type.
10712 (~auto_load_pspace_info): Rename from
10713 auto_load_pspace_data_cleanup.
10714 (get_auto_load_pspace_data, init_loaded_scripts_info)
10715 (clear_section_scripts, maybe_print_unsupported_script_warning)
10716 (maybe_print_script_not_found_warning, _initialize_auto_load):
10717 Update.
10718
10719 2019-05-08 Tom Tromey <tom@tromey.com>
10720
10721 * objfiles.c (objfile_pspace_info): Add destructor and
10722 initializers.
10723 (objfiles_pspace_data): Change type.
10724 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10725 (get_objfile_pspace_data): Update.
10726 (objfiles_bfd_data): Change type.
10727 (get_objfile_bfd_data): Update.
10728 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10729
10730 2019-05-08 Tom Tromey <tom@tromey.com>
10731
10732 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10733 Change type.
10734 (get_catch_syscall_inferior_data): Update.
10735 (catch_syscall_inferior_data_cleanup): Remove.
10736 (_initialize_break_catch_syscall): Update.
10737
10738 2019-05-08 Tom Tromey <tom@tromey.com>
10739
10740 * inflow.c (struct terminal_info): Add destructor and
10741 initializers.
10742 (inflow_inferior_data): Change type.
10743 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10744 (get_inflow_inferior_data, inflow_inferior_exit)
10745 (swap_terminal_info, _initialize_inflow): Update.
10746
10747 2019-05-08 Tom Tromey <tom@tromey.com>
10748
10749 * target-dcache.c (target_dcache_cleanup): Remove.
10750 (target_dcache_aspace_key): Change type.
10751 (target_dcache_init_p, target_dcache_invalidate)
10752 (target_dcache_get, target_dcache_get_or_init)
10753 (_initialize_target_dcache): Update.
10754 * dcache.h (struct dcache_deleter): New.
10755
10756 2019-05-08 Tom Tromey <tom@tromey.com>
10757
10758 * symtab.c (struct symbol_cache): Add destructor and
10759 initializers.
10760 (symbol_cache_key): Move. Change type.
10761 (make_symbol_cache, free_symbol_cache): Remove.
10762 (get_symbol_cache): Update.
10763 (symbol_cache_cleanup): Remove.
10764 (ALL_PSPACES, symbol_cache_flush)
10765 (maintenance_print_symbol_cache)
10766 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10767 Update.
10768
10769 2019-05-08 Tom Tromey <tom@tromey.com>
10770
10771 * symtab.c (struct main_info): Add destructor and initializers.
10772 (main_progspace_key): Move. Change type.
10773 (get_main_info): Update.
10774 (main_info_cleanup): Remove.
10775 (_initialize_symtab): Update.
10776
10777 2019-05-08 Tom Tromey <tom@tromey.com>
10778
10779 * registry.h (DECLARE_REGISTRY): Define the _key class.
10780
10781 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10782
10783 * NEWS: Merge two 'New commands' sections.
10784
10785 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10786
10787 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10788 parameter and use Ada language definition instead.
10789 (ada_val_print_ptr): Remove unused language parameter.
10790 (ada_val_print_num): Remove language parameter and use Ada language
10791 definition instead.
10792 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10793 parameter.
10794 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10795 parameter and use Ada language definition instead.
10796 (ada_val_print_1): Update all ada_val_print_xxx calls.
10797 Remove language parameter.
10798 (ada_val_print): Update ada_val_print_1 call.
10799
10800 2019-05-08 Tom Tromey <tromey@adacore.com>
10801
10802 * remote.c (remote_hw_watchpoint_limit)
10803 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10804 Now static.
10805
10806 2019-05-08 Tom Tromey <tromey@adacore.com>
10807
10808 * maint.c (_initialize_maint_cmds): Move initialization code to
10809 remote.c.
10810 (watchdog, show_watchdog): Move to remote.c.
10811 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10812 "watchdog" static.
10813 (_initialize_remote): Move initialization code from maint.c.
10814 * defs.h (watchdog): Don't declare.
10815
10816 2019-05-08 Tom Tromey <tromey@adacore.com>
10817
10818 * tui/tui-interp.c: Include main.h.
10819 * interps.c: Include main.h.
10820 * main.h (interpreter_p): Declare.
10821 * defs.h (interpreter_p): Don't declare.
10822
10823 2019-05-08 Tom Tromey <tromey@adacore.com>
10824
10825 * dwarf2loc.c: Include dwarf2read.h.
10826 * defs.h (read_unsigned_leb128): Don't declare.
10827 * dwarf2read.h (read_unsigned_leb128): Declare.
10828
10829 2019-05-08 Tom Tromey <tromey@adacore.com>
10830
10831 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10832 method.
10833
10834 2019-05-08 Tom Tromey <tromey@adacore.com>
10835
10836 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10837 when no wrap column is set.
10838
10839 2019-05-08 Tom Tromey <tromey@adacore.com>
10840
10841 * c-lang.c (c_get_string): Handle non-C-style arrays.
10842
10843 2019-05-08 Tom Tromey <tromey@adacore.com>
10844
10845 * typeprint.c (print_offset_data::update): Print the bit offset,
10846 not the number of bits remaining.
10847
10848 2019-05-08 Tom Tromey <tromey@adacore.com>
10849
10850 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10851 padding at end of comment.
10852
10853 2019-05-08 Tom Tromey <tromey@adacore.com>
10854
10855 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10856 Compare main types.
10857
10858 2019-05-06 Tom Tromey <tom@tromey.com>
10859
10860 * common/scoped_mmap.c: Include common-defs.h.
10861 * common/scoped_mmap.h: Don't include config.h.
10862
10863 2019-05-04 Tom Tromey <tom@tromey.com>
10864
10865 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10866 (struct aarch64_call_info): Add initializers.
10867 <si>: Now a std::vector.
10868 (pass_on_stack, aarch64_push_dummy_call): Update.
10869
10870 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10871 Tom Tromey <tom@tromey.com>
10872
10873 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10874 (ppc_threads): Now a std::vector. Now static.
10875 (hwdebug_find_thread_points_by_tid)
10876 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10877 Update.
10878
10879 2019-05-04 Tom Tromey <tom@tromey.com>
10880
10881 * arc-tdep.c (arc_tdesc_init): Return bool.
10882
10883 2019-05-04 Tom Tromey <tom@tromey.com>
10884
10885 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10886 Use gdb_assert_not_reached.
10887
10888 2019-05-04 Tom Tromey <tom@tromey.com>
10889
10890 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10891 "false".
10892
10893 2019-05-04 Tom Tromey <tom@tromey.com>
10894
10895 * arc-tdep.c (arc_tdesc_init): Use bool.
10896
10897 2019-05-04 Tom Tromey <tom@tromey.com>
10898
10899 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10900
10901 2019-05-04 Tom Tromey <tom@tromey.com>
10902
10903 * cli/cli-cmds.c (valid_command_p): Return bool.
10904
10905 2019-05-04 Tom Tromey <tom@tromey.com>
10906
10907 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10908 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10909
10910 2019-05-04 Raul Tambre <raul@tambre.ee>
10911
10912 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10913 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10914 operator for comparison.
10915
10916 2019-05-04 Tom Tromey <tom@tromey.com>
10917
10918 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10919 (lookup_partial_symbol, print_partial_symbols)
10920 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10921 (psymbol_compare): Update.
10922 (add_psymbol_to_bcache): Clear the entire psymbol.
10923 (maintenance_check_psymtabs): Update.
10924 * psympriv.h (struct partial_symbol): Don't derive from
10925 general_symbol_info.
10926 <obj_section, unrelocated_address, address,
10927 set_unrelocated_address>: Update.
10928 <ginfo>: New member.
10929 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10930 (debug_names::write_psymbols): Update.
10931
10932 2019-05-04 Tom de Vries <tdevries@suse.de>
10933
10934 * contrib/cc-with-tweaks.sh: Support -n arg.
10935
10936 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10937
10938 * corelow.c (core_target::detach): Ensure frame cache and
10939 register caches are cleared.
10940 inferior.c (exit_inferior_1): Likewise.
10941
10942 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10943 Tom Tromey <tom@tromey.com>
10944
10945 * dictionary.c (collate_pending_symbols_by_language): Remove
10946 "struct" from foreach.
10947 * symtab.c (lookup_global_symbol_from_objfile)
10948 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10949 foreach.
10950 * ser-tcp.c (net_open): Remove "struct" from foreach.
10951 * objfiles.c (objfile_relocate, objfile_rebase)
10952 (objfile_has_symbols): Remove "struct" from foreach.
10953 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10954 from foreach.
10955 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10956 foreach.
10957 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10958 "struct" from foreach.
10959 * ada-lang.c (create_excep_cond_exprs)
10960 (ada_exception_catchpoint_cond_string): Remove "struct" from
10961 foreach.
10962
10963 2019-05-03 Tom Tromey <tromey@adacore.com>
10964
10965 * ada-exp.y (convert_char_literal): Check suffix of each
10966 enumerator.
10967
10968 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10969
10970 PR ada/21406:
10971 * ada-exp.y (yywrap): Don't define.
10972 * ada-lex.l (%option): Add noyywrap
10973 (yywrap): Remove.
10974
10975 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10976
10977 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10978 _WIN32_WINNT to the XP level, unless already defined to a higher
10979 level.
10980
10981 * unittests/parse-connection-spec-selftests.c:
10982 * ser-tcp.c:
10983 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10984 override.
10985
10986 * symfile.c (find_separate_debug_file): Remove colon from the
10987 drive spec of DOS/Windows file names of the target, so that the
10988 file name produced from DEBUGDIR and the target's directory will
10989 be valid on DOS/Windows systems.
10990
10991 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10992
10993 * rust-lang.c (val_print_struct): Handle printing structures
10994 containing strings.
10995
10996 2019-05-02 Tom Tromey <tromey@adacore.com>
10997
10998 * valarith.c (_initialize_valarith): Remove.
10999
11000 2019-05-01 Tom Tromey <tromey@adacore.com>
11001
11002 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11003 bitfields.
11004
11005 2019-05-01 Tom Tromey <tromey@adacore.com>
11006
11007 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11008 for big-endian copies.
11009
11010 2019-04-30 Ali Tamur <tamur@google.com>
11011 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11012 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11013 (read_3_bytes): New function.
11014
11015 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11016
11017 * windows-nat.c (main_thread_id): Delete.
11018 (handle_output_debug_string): Replace main_thread_id by
11019 current_event.dwThreadId.
11020 (fake_create_process): Likewise.
11021 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11022 Do not set main_thread_id.
11023 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11024 current_event.dwThreadId.
11025 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11026
11027 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11028
11029 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11030 Use current_event.dwThreadId instead of main_thread_id.
11031
11032 2019-04-30 Tom Tromey <tromey@adacore.com>
11033
11034 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11035 (create_excep_cond_exprs): Iterate over program spaces.
11036 (ada_exception_catchpoint_cond_string): Examine all minimal
11037 symbols for exception types.
11038
11039 2019-04-30 Tom Tromey <tromey@adacore.com>
11040
11041 PR c++/24470:
11042 * dwarf2read.c (process_structure_scope): Handle case where type
11043 has template parameters but no symbol was created.
11044
11045 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11046 Chris January <chris.january@arm.com>
11047
11048 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11049 qualifier.
11050 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11051
11052 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11053
11054 * f-typeprint.c (f_print_type): Update rules for printing
11055 whitespace.
11056 (f_type_print_varspec_suffix): Likewise.
11057
11058 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11059 Chris January <chris.january@arm.com>
11060
11061 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11062 function arguments.
11063
11064 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11065
11066 * f-lang.c (build_fortran_types): Change name of void type to
11067 lower case.
11068 * f-typeprint.c (f_type_print_base): Print the name of the void
11069 type, rather than a fixed string.
11070 * f-valprint.c (f_decorations): Use lower case void string.
11071
11072 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11073 Chris January <chris.january@arm.com>
11074
11075 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11076 types for Fortran.
11077
11078 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11079 Chris January <chris.january@arm.com>
11080 David Lecomber <david.lecomber@arm.com>
11081
11082 * f-exp.y (BINOP_INTRINSIC): New token.
11083 (exp): New parser rule handling BINOP_INTRINSIC.
11084 (f77_keywords): Add new builtin procedures.
11085 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11086 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11087 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11088 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11089 (print_unop_subexp_f): New function.
11090 (print_binop_subexp_f): New function.
11091 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11092 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11093 (dump_subexp_body_f): Likewise.
11094 (operator_check_f): Likewise.
11095 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11096 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11097
11098 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11099
11100 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11101 UNOP_KIND.
11102 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11103 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11104 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11105 (operator_length_f): New fuction.
11106 (print_subexp_f): New function.
11107 (op_name_f): New function.
11108 (dump_subexp_body_f): New function.
11109 (operator_check_f): New function.
11110 (exp_descriptor_f): Replace standard expression handling functions
11111 with new functions.
11112 * gdb/fortran-operator.def: New file.
11113 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11114 * gdb/std-operator.def: Remove UNOP_KIND.
11115
11116 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11117
11118 * std-operator.def: Remove unbalanced, stray double quote
11119 character.
11120
11121 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11122 Chris January <chris.january@arm.com>
11123 Daniel Everett <daniel.everett@arm.com>
11124 Nick Forrington <nick.forrington@arm.com>
11125 Richard Bunt <richard.bunt@arm.com>
11126
11127 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11128 of depth when printing anonymous structs or unions.
11129 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11130 Don't print either the top-level value, or the children if the
11131 max-depth is exceeded.
11132 (ppscm_print_children): When printing the key of a map, allow one
11133 extra level of depth.
11134 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11135 print either the top-level value, or the children if the max-depth
11136 is exceeded.
11137 (print_children): When printing the key of a map, allow one extra
11138 level of depth.
11139 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11140 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11141 (user_print_options): Initialise max_depth field.
11142 (val_print_scalar_or_string_type_p): New function.
11143 (val_print): Check to see if the max depth has been reached.
11144 (val_print_check_max_depth): Define new function.
11145 (show_print_max_depth): New function.
11146 (_initialize_valprint): Add 'print max-depth' option.
11147 * valprint.h (struct value_print_options) <max_depth>: New field.
11148 (val_print_check_max_depth): Declare new function.
11149 * NEWS: Document new feature.
11150
11151 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11152
11153 * ada-lang.c (ada_language_defn): Initialise new field.
11154 * c-lang.c (c_is_string_type_p): New function.
11155 (c_language_defn): Initialise new field.
11156 (cplus_language_defn): Initialise new field.
11157 (asm_language_defn): Initialise new field.
11158 (minimal_language_defn): Initialise new field.
11159 * c-lang.h (c_is_string_type_p): Declare new function.
11160 * d-lang.c (d_language_defn): Initialise new field.
11161 * f-lang.c (f_is_string_type_p): New function.
11162 (f_language_defn): Initialise new field.
11163 * go-lang.c (go_is_string_type_p): New function.
11164 (go_language_defn): Initialise new field.
11165 * language.c (default_is_string_type_p): New function.
11166 (unknown_language_defn): Initialise new field.
11167 (auto_language_defn): Initialise new field.
11168 * language.h (struct language_defn) <la_is_string_type_p>: New
11169 member variable.
11170 (default_is_string_type_p): Declare new function.
11171 * m2-lang.c (m2_language_defn): Initialise new field.
11172 * objc-lang.c (objc_language_defn): Initialise new field.
11173 * opencl-lang.c (opencl_language_defn): Initialise new field.
11174 * p-lang.c (pascal_is_string_type_p): New function.
11175 (pascal_language_defn): Initialise new field.
11176 * rust-lang.c (rust_is_string_type_p): New function.
11177 (rust_language_defn): Initialise new field.
11178
11179 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11180
11181 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11182 New field.
11183 * ada-lang.c (ada_language_defn): Initialise new field.
11184 * c-lang.c (c_language_defn): Likewise.
11185 (cplus_language_defn): Likewise.
11186 (asm_language_defn): Likewise.
11187 (minimal_language_defn): Likewise.
11188 * d-lang.c (d_language_defn): Likewise.
11189 * f-lang.c (f_language_defn): Likewise.
11190 * go-lang.c (go_language_defn): Likewise.
11191 * language.c (unknown_language_defn): Likewise.
11192 (auto_language_defn): Likewise.
11193 * m2-lang.c (m2_language_defn): Likewise.
11194 * objc-lang.c (objc_language_defn): Likewise.
11195 * opencl-lang.c (opencl_language_defn): Likewise.
11196 * p-lang.c (pascal_language_defn): Likewise.
11197 * rust-lang.c (rust_language_defn): Likewise.
11198
11199 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11200
11201 * ada-lang.c (ada_is_character_type): Change return type to bool.
11202 (ada_is_string_type): Likewise.
11203 * ada-lang.h (ada_is_character_type): Update declaration
11204 (ada_is_string_type): Likewise.
11205
11206 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11207
11208 Support style in 'frame|thread apply'
11209
11210 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11211 * record.c (record_start, record_stop): Update callers of
11212 execute_command_to_string with false.
11213 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11214 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11215 methods.
11216 (class string_file): New constructor with term_out parameter.
11217 Override methods term_out and can_emit_style_escape. New member
11218 term_out.
11219 (class stdio_file): Override can_emit_style_escape.
11220 (class tee_file): Override term_out and can_emit_style_escape.
11221 * utils.h (can_emit_style_escape): Remove.
11222 * utils.c (can_emit_style_escape): Likewise.
11223 Update all callers of can_emit_style_escape (SOMESTREAM) to
11224 SOMESTREAM->can_emit_style_escape.
11225 * source-cache.c (source_cache::get_source_lines): Likewise.
11226 * stack.c (frame_apply_command_count): Call execute_command_to_string
11227 passing the term_out characteristic of the current gdb_stdout.
11228 * thread.c (thr_try_catch_cmd): Likewise.
11229 * top.c (execute_command_to_string): pass term_out parameter
11230 to construct the string_file for the command output.
11231 * ui-file.c (term_cli_styling): New function (most code moved
11232 from utils.c can_emit_style_escape).
11233 (string_file::string_file, string_file::can_emit_style_escape,
11234 stdio_file::can_emit_style_escape, tee_file::term_out,
11235 tee_file::can_emit_style_escape): New functions.
11236
11237 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11238
11239 * NEWS: Mention the new set|show may-call-functions.
11240 * infcall.c (may_call_functions_p): New variable.
11241 (show_may_call_functions_p): New function.
11242 (call_function_by_hand_dummy): Throws an error if not
11243 may-call-functions.
11244 (_initialize_infcall): Call add_setshow_boolean_cmd for
11245 may-call-functions.
11246
11247 2019-04-25 Keith Seitz <keiths@redhat.com>
11248
11249 PR c++/24367
11250 * cp-support.c (inspect_type): Don't attempt substitutions
11251 of symbol with the same name.
11252
11253 2019-04-25 Tom Tromey <tromey@adacore.com>
11254
11255 PR gdb/24475:
11256 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11257 static.
11258
11259 2019-04-25 Tom Tromey <tromey@adacore.com>
11260
11261 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11262 rvalue reference.
11263 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11264 (gdb_xml_parser::parse): Use std::move.
11265 * python/python-internal.h (gdbpy_convert_exception): Take a const
11266 reference.
11267 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11268 std::move.
11269 * python/py-utils.c (gdbpy_convert_exception): Take a const
11270 reference.
11271 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11272 Use std::move.
11273 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11274 Use std::move.
11275 * mi/mi-main.c (mi_print_exception): Take a const reference.
11276 * main.c (handle_command_errors): Take a const reference.
11277 * linespec.c (parse_linespec): Use std::move.
11278 * infcall.c (run_inferior_call): Use std::move.
11279 (call_function_by_hand_dummy): Use std::move.
11280 * exec.c (try_open_exec_file): Use std::move.
11281 * exceptions.h (exception_print, exception_fprintf)
11282 (exception_print_same): Update.
11283 * exceptions.c (print_exception, exception_print)
11284 (exception_fprintf, exception_print_same): Change parameters to
11285 const reference.
11286 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11287 * common/new-op.c: Use std::move.
11288 * common/common-exceptions.h (struct gdb_exception): Add move
11289 constructor.
11290 (struct gdb_exception_error, struct gdb_exception_quit, struct
11291 gdb_quit_bad_alloc): Change constructor to move constructor.
11292 (throw_exception): Change parameter to rvalue reference.
11293 * common/common-exceptions.c (throw_exception): Take rvalue
11294 reference.
11295 * cli/cli-interp.c (safe_execute_command): Use std::move.
11296 * breakpoint.c (insert_bp_location, location_to_sals): Use
11297 std::move.
11298
11299 2019-04-25 Tom Tromey <tromey@adacore.com>
11300
11301 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11302 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11303 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11304 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11305 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11306 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11307 guile/scm-value.c: Use unpack.
11308 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11309 gdbscm_gdb_exception.
11310 (gdbscm_throw_gdb_exception): Likewise.
11311 (struct gdbscm_gdb_exception): New.
11312 (unpack): New function.
11313 (gdbscm_wrap): Use unpack.
11314
11315 2019-04-25 Tom Tromey <tromey@adacore.com>
11316
11317 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11318 (gdb_rl_callback_handler): Use std::move.
11319 * common/common-exceptions.h (struct gdb_exception): Add move
11320 assignment operator.
11321 (throw_exception_sjlj): Change "exception" to const reference.
11322 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11323 (throw_exception_sjlj): Change "exception" to const reference.
11324
11325 2019-04-25 Tom Tromey <tromey@adacore.com>
11326
11327 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11328 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11329 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11330 Update.
11331 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11332 Update.
11333 * mi/mi-interp.c (mi_interp::exec): Update.
11334 * linespec.c (parse_linespec): Update.
11335 * infcall.c (run_inferior_call): Update.
11336 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11337 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11338 (gdbscm_lookup_global_symbol): Update.
11339 * guile/scm-param.c (gdbscm_parameter_value): Update.
11340 * guile/scm-frame.c (gdbscm_frame_read_register)
11341 (gdbscm_frame_read_var): Update.
11342 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11343 * exec.c (try_open_exec_file): Update.
11344 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11345 (gdb_rl_callback_handler): Update.
11346 * common/common-exceptions.h (exception_none): Don't declare.
11347 * common/common-exceptions.c (exception_none): Don't define.
11348 (struct catcher) <exception>: Update.
11349 * cli/cli-interp.c (safe_execute_command): Update.
11350 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11351
11352 2019-04-25 Ali Tamur <tamur@google.com>
11353
11354 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11355 (read_attribute_value): Likewise.
11356 (dwarf2_read_addr_index): Update comment.
11357 (read_str_index): Add DW_FORM_strx.
11358 (dwarf2_string_attr): Likewise.
11359 (dwarf2_const_value_attr): Likewise.
11360 (dump_die_shallow): Likewise.
11361 (dwarf2_fetch_constant_bytes): Likewise.
11362 (skip_form_bytes): Likewise.
11363 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11364
11365 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11366
11367 PR corefiles/11608
11368 PR corefiles/18187
11369 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11370 OFFSET. Verify if current mapping contains an ELF header.
11371 (linux_find_memory_regions_full): Adjust call to
11372 dump_mapping_p.
11373
11374 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11375 Kang Li <kanglictf@gmail.com>
11376
11377 PR gdb/21600
11378
11379 * dwarf2-frame.c (read_initial_length): Be consistent about using
11380 unsigned representation of length.
11381 (decode_frame_entry_1): Likewise. Check for wraparound of
11382 end pointer as well as buffer overflow.
11383
11384 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11385
11386 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11387 "vq".
11388
11389 2019-04-24 Tom Tromey <tromey@adacore.com>
11390
11391 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11392
11393 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11394
11395 * s12z-tdep.c (s12z_unwind_pc): Delete.
11396 (s12z_unwind_sp): Delete.
11397 (s12z_gdbarch_init): Don't register deleted functions with
11398 gdbarch.
11399
11400 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11401
11402 * rl78-tdep.c (rl78_unwind_sp): Delete.
11403 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11404
11405 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11406
11407 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11408 (xstormy16_unwind_pc): Delete.
11409 (xstormy16_dummy_id): Delete.
11410 (xstormy16_gdbarch_init): Don't register deleted functions with
11411 gdbarch.
11412
11413 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11414
11415 * vax-tdep.c (vax_unwind_pc): Delete.
11416 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11417
11418 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11419
11420 * v850-tdep.c (v850_unwind_sp): Delete.
11421 (v850_unwind_pc): Delete.
11422 (v850_dummy_id): Delete.
11423 (v850_gdbarch_init): Don't register deleted functions with
11424 gdbarch.
11425
11426 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11427
11428 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11429 (tilegx_unwind_pc): Delete.
11430 (tilegx_unwind_dummy_id): Delete.
11431 (tilegx_gdbarch_init): Don't register deleted functions with
11432 gdbarch.
11433
11434 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11435
11436 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11437 (tic6x_dummy_id): Delete.
11438 (tic6x_gdbarch_init): Don't register deleted functions with
11439 gdbarch.
11440
11441 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11442
11443 * sparc-tdep.c (sparc_unwind_pc): Delete.
11444 (sparc32_gdbarch_init): Don't register deleted function with
11445 gdbarch.
11446
11447 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11448
11449 * sh-tdep.c (sh_unwind_sp): Delete.
11450 (sh_unwind_pc): Delete.
11451 (sh_dummy_id): Delete.
11452 (sh_gdbarch_init): Don't register deleted functions with
11453 gdbarch.
11454
11455 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11456
11457 * score-tdep.c (score_unwind_sp): Delete.
11458 (score_unwind_pc): Delete.
11459 (score_dummy_id): Delete.
11460 (score_gdbarch_init): Don't register deleted functions with
11461 gdbarch.
11462
11463 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11464
11465 * rx-tdep.c (rx_unwind_pc): Delete.
11466 (rx_unwind_sp): Delete.
11467 (rx_dummy_id): Delete.
11468 (rx_gdbarch_init): Don't register deleted functions with
11469 gdbarch. Update comment.
11470
11471 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11472
11473 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11474 (rs6000_dummy_id): Delete.
11475 (rs6000_gdbarch_init): Don't register deleted functions with
11476 gdbarch.
11477
11478 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11479
11480 * or1k-tdep.c (or1k_dummy_id): Delete.
11481 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11482
11483 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11484
11485 * nios2-tdep.c (nios2_dummy_id): Delete.
11486 (nios2_unwind_sp): Delete.
11487 (nios2_gdbarch_init): Don't register deleted functions with
11488 gdbarch.
11489
11490 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11491
11492 * nds32-tdep.c (nds32_dummy_id): Delete.
11493 (nds32_unwind_pc): Delete.
11494 (nds32_unwind_sp): Delete.
11495 (nds32_gdbarch_init): Don't register deleted functions with
11496 gdbarch.
11497
11498 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11499
11500 * msp430-tdep.c (msp430_unwind_pc): Delete.
11501 (msp430_unwind_sp): Delete.
11502 (msp430_dummy_id): Delete.
11503 (msp430_gdbarch_init): Don't register deleted functions with
11504 gdbarch.
11505
11506 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11507
11508 * moxie-tdep.c (moxie_unwind_sp): Delete.
11509 (moxie_unwind_pc): Delete.
11510 (moxie_dummy_id): Delete.
11511 (moxie_gdbarch_init): Don't register deleted functions with
11512 gdbarch.
11513
11514 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11515
11516 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11517 (mn10300_unwind_pc): Delete.
11518 (mn10300_unwind_sp): Delete.
11519 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11520 mn10300_unwind_sp.
11521 (mn10300_frame_unwind_init): Don't register deleted functions with
11522 gdbarch.
11523
11524 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11525
11526 * mep-tdep.c (mep_unwind_pc): Delete.
11527 (mep_unwind_sp): Delete.
11528 (mep_dummy_id): Delete.
11529 (mep_gdbarch_init): Don't register deleted functions with
11530 gdbarch.
11531
11532 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11535 (m68hc11_unwind_sp): Delete.
11536 (m68hc11_gdbarch_init): Don't register deleted functions with
11537 gdbarch.
11538
11539 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11540
11541 * m32r-tdep.c (m32r_unwind_sp): Delete.
11542 (m32r_unwind_pc): Delete.
11543 (m32r_dummy_id): Delete.
11544 (m32r_gdbarch_init): Don't register deleted functions with
11545 gdbarch.
11546
11547 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11548
11549 * m32c-tdep.c (m32c_unwind_pc): Delete.
11550 (m32c_unwind_sp): Delete.
11551 (m32c_dummy_id): Delete.
11552 (m32c_gdbarch_init): Don't register deleted functions with
11553 gdbarch.
11554
11555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11556
11557 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11558 (lm32_unwind_pc): Delete.
11559 (lm32_dummy_id): Delete.
11560 (lm32_gdbarch_init): Don't register deleted functions with
11561 gdbarch.
11562
11563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11564
11565 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11566 (iq2000_unwind_pc): Delete.
11567 (iq2000_dummy_id): Delete.
11568 (iq2000_gdbarch_init): Don't register deleted functions with
11569 gdbarch.
11570
11571 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11572
11573 * nds32-tdep.c (nds32_type_align): Delete.
11574 (nds32_push_dummy_call): Use type_align instead.
11575
11576 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11577
11578 * arm-tdep.c (arm_type_align): Only handle vector override case.
11579 (arm_push_dummy_call): Use type_align.
11580 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11581
11582 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11585 case.
11586 (pass_on_stack): Use type_align.
11587 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11588 function.
11589
11590 2019-04-23 Tom Tromey <tromey@adacore.com>
11591
11592 * dwarf2read.c (line_header::file_name_at): Remove unused
11593 overload.
11594
11595 2019-04-23 Tom de Vries <tdevries@suse.de>
11596
11597 PR gdb/24438
11598 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11599 invocation.
11600
11601
11602 2019-03-27 Ali Tamur <tamur@google.com>
11603
11604 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11605 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11606 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11607 (dwarf_expr_context::get_addr_index): Likewise
11608 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11609 (symbol_needs_eval_context::get_addr_index): Likewise
11610 (disassemble_dwarf_expression): Add DW_OP_addrx
11611 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11612 (read_cutu_die_from_dwo): Update comment
11613 (skip_one_die): Add DW_FORM_addrx
11614 (read_attribute_value): Likewise
11615 (var_decode_location): Add DW_OP_addrx
11616 (dwarf2_const_value_attr): Add DW_FORM_addrx
11617 (dump_die_shallow): Likewise
11618 (dwarf2_fetch_constant_bytes): Likewise
11619 (decode_locdesc): Add DW_OP_addrx
11620 (skip_form_bytes): Add DW_FORM_addrx
11621
11622 2019-04-22 Ali Tamur <tamur@google.com>
11623
11624 * MAINTAINERS (Write After Approval): Add self.
11625
11626 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11627
11628 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11629 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11630 (open_symbol_file_object): Likewise.
11631 (svr4_default_sos): Add info parameter.
11632 (svr4_read_so_list): Likewise.
11633 (svr4_current_sos_direct): Adjust functions calls to pass down
11634 info.
11635 (svr4_current_sos_1): Add info parameter.
11636 (svr4_current_sos): Call get_svr4_info, pass info down to
11637 svr4_current_sos_1.
11638 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11639 get_svr4_info.
11640 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11641 get_svr4_info.
11642 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11643 to get_svr4_info.
11644 (probes_table_remove_objfile_probes): Likewise.
11645 (register_solib_event_probe): Add info parameter.
11646 (solist_update_incremental): Pass info parameter down to
11647 svr4_read_so_list.
11648 (disable_probes_interface): Add info parameter.
11649 (svr4_handle_solib_event): Pass current_program_space to
11650 get_svr4_info. Adjust disable_probes_interface cleanup.
11651 (svr4_create_probe_breakpoints): Add info parameter, pass it
11652 down to register_solib_event_probe.
11653 (svr4_create_solib_event_breakpoints): Add info parameter,
11654 pass it down to svr4_create_probe_breakpoints.
11655 (enable_break): Pass info down to
11656 svr4_create_solib_event_breakpoints.
11657 (svr4_solib_create_inferior_hook): Pass current_program_space to
11658 get_svr4_info.
11659 (svr4_clear_solib): Likewise.
11660
11661 2019-04-22 Pedro Alves <palves@redhat.com>
11662
11663 * solib-svr4.c (svr4_free_objfile_observer): New.
11664 (probe_and_action::objfile): New field.
11665 (probes_table_htab_remove_objfile_probes)
11666 (probes_table_remove_objfile_probes): New functions.
11667 (register_solib_event_probe): Add 'objfile' parameter. Store it
11668 in the new probe_and_action. Don't store the probe in 'lookup'.
11669 (svr4_create_probe_breakpoints): Pass objfile to
11670 register_solib_event_probe.
11671 (_initialize_svr4_solib): Register a free_objfile observer.
11672
11673 2019-04-19 Tom Tromey <tom@tromey.com>
11674
11675 * common/queue.h: Remove.
11676
11677 2019-04-19 Tom Tromey <tom@tromey.com>
11678
11679 * event-loop.c: Don't include "common/queue.h".
11680
11681 2019-04-19 Tom Tromey <tom@tromey.com>
11682
11683 * remote.c (remote_target): Use delete.
11684 * remote-notif.h: Include <list>, not "common/queue.h".
11685 (notif_client_p): Remove typedef.
11686 (remote_notif_state): Add constructor, destructor, initializer.
11687 <notif_queue>: Now a std::list.
11688 (remote_notif_state_xfree): Don't declare.
11689 * remote-notif.c (remote_notif_process, handle_notification)
11690 (remote_notif_state_allocate): Update.
11691 (~remote_notif_state): Rename from remote_notif_state_xfree.
11692
11693 2019-04-19 Tom Tromey <tom@tromey.com>
11694
11695 * symfile.c (reread_symbols): Update.
11696 * objfiles.c (objfile_register_static_link)
11697 (objfile_lookup_static_link): Update
11698 (~objfile) Don't delete static_links.
11699 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11700
11701 2019-04-19 Tom Tromey <tom@tromey.com>
11702
11703 * type-stack.h (struct type_stack) <insert>: Constify string.
11704 * type-stack.c (type_stack::insert): Constify string.
11705 * gdbtypes.h (lookup_template_type): Update.
11706 (address_space_name_to_int): Update.
11707 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11708 const.
11709 (lookup_template_type): Make name const.
11710 * c-exp.y: Update rules.
11711 (lex_one_token, classify_name, classify_inner_name)
11712 (c_print_token): Update.
11713 * p-exp.y: Update rules.
11714 (yylex): Update.
11715 * f-exp.y: Update rules.
11716 (yylex): Update.
11717 * d-exp.y: Update rules.
11718 (lex_one_token, classify_name, classify_inner_name): Update.
11719 * parse.c (write_dollar_variable, copy_name): Return std::string.
11720 * parser-defs.h (copy_name): Change return type.
11721 * m2-exp.y: Update rules.
11722 (yylex): Update.
11723 * go-exp.y (lex_one_token): Update.
11724 Update rules.
11725 (classify_unsafe_function, classify_packaged_name)
11726 (classify_name, yylex): Update.
11727
11728 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11729
11730 * configure.ac: add --enable-source-highlight switch.
11731 * configure: Regenerate.
11732 * top.c (print_gdb_version): plumb --enable-source-highlight
11733 status to "show configuration".
11734
11735 2019-04-19 Tom Tromey <tromey@adacore.com>
11736
11737 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11738 Check ADA_TYPE_P.
11739 (empty_record, ada_template_to_fixed_record_type_1)
11740 (template_to_static_fixed_type)
11741 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11742 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11743 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11744 macros.
11745
11746 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11747
11748 PR symtab/24423:
11749 * source.c (print_source_lines_base): Advance "iter" when a
11750 control character is seen.
11751
11752 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11753
11754 * inferior.h (struct infcall_suspend_state_deleter):
11755 Catch exception in destructor to avoid crash.
11756
11757 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11758
11759 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11760 close to the add_com "shell".
11761
11762 2019-04-18 Tom Tromey <tromey@adacore.com>
11763
11764 * process-stratum-target.h (class process_stratum_target)
11765 <stratum>: Add "final".
11766
11767 2019-04-17 Tom Tromey <tromey@adacore.com>
11768
11769 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11770 against nullptr before use.
11771
11772 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11773
11774 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11775
11776 2019-04-17 Jim Wilson <jimw@sifive.com>
11777 Andrew Burgess <andrew.burgess@embecosm.com>
11778
11779 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11780 code read might fail, assume 4-byte breakpoint in that case.
11781
11782 2019-04-15 Leszek Swirski <leszeks@google.com>
11783
11784 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11785 rather than a hand-rolled POD check when checking for forced MEMORY
11786 classification.
11787
11788 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11789
11790 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11791 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11792 function.
11793 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11794 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11795 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11796 declaration.
11797
11798 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11799
11800 * aarch64-linux-nat.c
11801 (aarch64_linux_nat_target::thread_architecture): Add override.
11802 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11803 each VQ.
11804
11805 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11806
11807 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11808
11809 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11810
11811 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11812 target types of size 96-bits, add some additional comments, and
11813 check that the builtin type we found was the correct size.
11814
11815 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11816
11817 * utils.c (prompt_for_continue): Don't restore the styling at the
11818 end, as applied_style has the wrong value. This fixes styling in
11819 long lists of file names that are interrupted by the "Continue?"
11820 prompt.
11821
11822 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11823
11824 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11825 * c-lang.c (c_language_defn): Likewise.
11826 (cplus_language_defn): Likewise.
11827 (asm_language_defn): Likewise.
11828 (minimal_language_defn): Likewise.
11829 * d-lang.c (d_language_defn): Likewise.
11830 * f-lang.c (f_language_defn): Likewise.
11831 * go-lang.c (go_language_defn): Likewise.
11832 * language.c (unknown_language_defn): Likewise.
11833 (auto_language_defn): Likewise.
11834 * language.h (struct language_defn): Remove la_magic field.
11835 (LANG_MAGIC): Delete.
11836 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11837 * objc-lang.c (objc_language_defn): Likewise.
11838 * opencl-lang.c (opencl_language_defn): Likewise.
11839 * p-lang.c (pascal_language_defn): Likewise.
11840 * rust-lang.c (rust_language_defn): Likewise.
11841
11842 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11843
11844 * riscv-tdep.c (riscv_type_align): New function.
11845 (riscv_type_alignment): Delete.
11846 (riscv_arg_location): Use 'type_align'.
11847 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11848
11849 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11850
11851 * gdbtypes.c (type_align): A struct with no non-static fields also
11852 has alignment of 1.
11853
11854 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11855
11856 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11857 component to 0.
11858 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11859 member.
11860 (riscv_struct_info::analyse): New implementation using new
11861 analyse_inner member function.
11862 (riscv_struct_info::field_offset): New member function.
11863 (riscv_struct_info::m_offsets): New member variable.
11864 (riscv_struct_info::analyse_inner): New private member function,
11865 takes the old implementation of riscv_struct_info::analyse but
11866 extended to track field offsets.
11867 (riscv_call_arg_struct): Update the struct folding special cases
11868 to handle cases where empty C++ structs, which are non-zero
11869 length, are found.
11870 (riscv_arg_location): Initialise the length of each location, a
11871 non-zero length now indicates the location is in use.
11872 (riscv_push_dummy_call): Allow for the first location having a
11873 non-zero offset when setting up arguments.
11874 (riscv_return_value): Likewise, but for return values.
11875
11876 2019-04-11 Tom Tromey <tromey@adacore.com>
11877
11878 * utils.c (internal_vproblem): Make "msg" const.
11879
11880 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11881
11882 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11883 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11884 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11885 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11886
11887 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11888
11889 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11890 function.
11891 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11892 of amd64_collect_native_gregset.
11893 (amd64_linux_nat_target::store_registers): Likewise.
11894
11895 2019-04-10 Tom Tromey <tom@tromey.com>
11896
11897 * symtab.c (lookup_global_symbol_from_objfile)
11898 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11899 * objfiles.h (class separate_debug_iterator): New.
11900 (class separate_debug_range): New.
11901 (struct objfile) <separate_debug_objfiles>: New method.
11902 (objfile_separate_debug_iterate): Don't declare.
11903 * objfiles.c (separate_debug_iterator::operator++): Rename from
11904 objfile_separate_debug_iterate.
11905 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11906 iterator.
11907 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11908 iterator.
11909
11910 2019-04-10 Tom Tromey <tom@tromey.com>
11911
11912 * symfile.c (reread_symbols): Remove old comment.
11913 * objfiles.c (free_all_objfiles): Fix a typo.
11914
11915 2019-04-10 Tom Tromey <tom@tromey.com>
11916
11917 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11918 * minsyms.c (lookup_minimal_symbol): Use foreach.
11919 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11920 (lookup_minimal_symbol_solib_trampoline): Likewise.
11921 * symfile.c (reread_symbols): Use foreach.
11922
11923 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11924 Tom Tromey <tromey@adacore.com>
11925
11926 PR rust/24414:
11927 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11928 (rust_lex_int_test): Change "value" to be LONGEST.
11929 (rust_lex_tests): Add test for long integer literal.
11930
11931 2019-04-09 Tom Tromey <tromey@adacore.com>
11932
11933 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11934 to bool.
11935 (extended_remote_target::attach): Update.
11936 (remote_target::remote_notice_new_inferior): Update.
11937 (remote_target::add_current_inferior_and_thread): Update.
11938 * inferior.c (exit_inferior_1): Use "false".
11939 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11940
11941 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11942
11943 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11944 the "start" command.
11945
11946 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11947
11948 * python/py-inferior.c (infpy_thread_from_thread_handle):
11949 Adjust comments to reflect renaming of thread_from_thread_handle
11950 to thread_from_handle. Adjust keywords. Fix type error message.
11951 (inferior_object_methods): Add thread_from_handle. Retain
11952 thread_from_thread_handle, but mark it as deprecated.
11953
11954 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11955
11956 * gdbthread.h (find_thread_by_handle): Revise declaration.
11957 * thread.c (find_thread_by_handle): Likewise. Adjust
11958 implementation too.
11959 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11960 support for buffer objects as handles.
11961
11962 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11963
11964 * python/py-infthread.c (thpy_thread_handle): New function.
11965 (thread_object_methods): Register thpy_thread_handle.
11966
11967 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11968
11969 * gdbthread.h (thread_to_thread_handle): Declare.
11970 * thread.c (gdbtypes.h): Include.
11971 (thread_to_thread_handle): New function.
11972
11973 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11974 (target_thread_info_to_thread_handle): Declare.
11975 * target.c (target_thread_info_to_thread_handle): New function.
11976 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11977 * target-delegates.c: Regenerate.
11978
11979 * linux-thread-db.c (class thread_db_target): Add method
11980 thread_info_to_thread_handle.
11981 (thread_db_target::thread_info_to_thread_handle): Define.
11982 * remote.c (class remote_target): Add new method
11983 thread_info_to_thread_handle.
11984 (remote_target::thread_info_to_thread_handle): Define.
11985
11986 2019-04-08 Pedro Alves <palves@redhat.com>
11987
11988 * common/common-exceptions.c (throw_exception): Don't create
11989 named object to throw; throw directly.
11990 (throw_it): Likewise. Don't initialize gdb_exception::message
11991 here, with new; pass FMT and AP to the ctor instead.
11992 * common/common-exceptions.h: Include <string>.
11993 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11994 const char *, va_list)): New ctor. Use std::make_shared.
11995 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11996 errors)): Delete.
11997 (gdb_exception_error::gdb_exception_error(enum errors, const char
11998 *, va_list)): New.
11999 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12000 Add assertion.
12001 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12002 errors)): Delete.
12003 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12004 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12005 Add assertion.
12006
12007 2019-04-08 Tom Tromey <tom@tromey.com>
12008
12009 * valops.c (value_rtti_indirect_type): Replace throw_exception
12010 with throw.
12011 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12012 with throw.
12013 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12014 throw.
12015 * target.c (target_translate_tls_address): Replace throw_exception
12016 with throw.
12017 * stack.c (frame_apply_command_count): Replace throw_exception
12018 with throw.
12019 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12020 throw.
12021 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12022 with throw.
12023 * rs6000-tdep.c (rs6000_frame_cache)
12024 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12025 * remote.c: Replace throw_exception with throw.
12026 * record-full.c (record_full_message, record_full_wait_1)
12027 (record_full_restore): Replace throw_exception with throw.
12028 * record-btrace.c:
12029 (get_thread_current_frame_id, record_btrace_start_replaying)
12030 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12031 (cmd_record_btrace_start): Replace throw_exception with throw.
12032 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12033 throw.
12034 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12035 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12036 * linespec.c:
12037 (find_linespec_symbols): Replace throw_exception with throw.
12038 * infrun.c (displaced_step_prepare, resume): Replace
12039 throw_exception with throw.
12040 * infcmd.c (post_create_inferior): Replace throw_exception with
12041 throw.
12042 * inf-loop.c (inferior_event_handler): Replace throw_exception
12043 with throw.
12044 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12045 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12046 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12047 (get_prev_frame_always, get_frame_pc_if_available)
12048 (get_frame_address_in_block_if_available, get_frame_language):
12049 Replace throw_exception with throw.
12050 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12051 throw_exception with throw.
12052 * eval.c (fetch_subexp_value, evaluate_var_value)
12053 (evaluate_funcall, evaluate_subexp_standard): Replace
12054 throw_exception with throw.
12055 * dwarf2loc.c (call_site_find_chain)
12056 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12057 Replace throw_exception with throw.
12058 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12059 with throw.
12060 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12061 throw.
12062 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12063 * completer.c (complete_line_internal): Replace throw_exception
12064 with throw.
12065 * compile/compile-object-run.c (compile_object_run): Replace
12066 throw_exception with throw.
12067 * cli/cli-script.c (process_next_line): Replace throw_exception
12068 with throw.
12069 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12070 (btrace_enable, btrace_maint_update_pt_packets): Replace
12071 throw_exception with throw.
12072 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12073 throw_exception with throw.
12074 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12075 throw_exception with throw.
12076 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12077 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12078 * aarch64-tdep.c (aarch64_make_prologue_cache)
12079 (aarch64_make_stub_cache): Replace throw_exception with throw.
12080
12081 2019-04-08 Tom Tromey <tom@tromey.com>
12082
12083 * common/common-exceptions.c (throw_exception): Rename from
12084 throw_exception_cxx. Remove old copy. Make argument const.
12085 (throw_it): Create and throw exception objects directly.
12086 * common/common-exceptions.h (throw_exception): Make argument
12087 const.
12088 (struct gdb_exception_error): Add constructor.
12089 (struct gdb_exception_quit): Add constructor.
12090
12091 2019-04-08 Tom Tromey <tom@tromey.com>
12092
12093 * common/common-exceptions.h (exception_rethrow): Don't declare.
12094 (TRY_SJLJ): Update comment.
12095 (TRY, CATCH, END_CATCH): Remove.
12096 * common/common-exceptions.c (exception_rethrow): Remove.
12097
12098 2019-04-08 Tom Tromey <tom@tromey.com>
12099
12100 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12101 Remove.
12102 (gdb_exception_error): Rename from
12103 gdb_exception_RETURN_MASK_ERROR.
12104 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12105 (gdb_quit_bad_alloc): Update.
12106 * aarch64-tdep.c: Update.
12107 * ada-lang.c: Update.
12108 * ada-typeprint.c: Update.
12109 * ada-valprint.c: Update.
12110 * amd64-tdep.c: Update.
12111 * arch-utils.c: Update.
12112 * break-catch-throw.c: Update.
12113 * breakpoint.c: Update.
12114 * btrace.c: Update.
12115 * c-varobj.c: Update.
12116 * cli/cli-cmds.c: Update.
12117 * cli/cli-interp.c: Update.
12118 * cli/cli-script.c: Update.
12119 * common/common-exceptions.c: Update.
12120 * common/new-op.c: Update.
12121 * common/selftest.c: Update.
12122 * compile/compile-c-symbols.c: Update.
12123 * compile/compile-cplus-symbols.c: Update.
12124 * compile/compile-object-load.c: Update.
12125 * compile/compile-object-run.c: Update.
12126 * completer.c: Update.
12127 * corelow.c: Update.
12128 * cp-abi.c: Update.
12129 * cp-support.c: Update.
12130 * cp-valprint.c: Update.
12131 * darwin-nat.c: Update.
12132 * disasm-selftests.c: Update.
12133 * dtrace-probe.c: Update.
12134 * dwarf-index-cache.c: Update.
12135 * dwarf-index-write.c: Update.
12136 * dwarf2-frame-tailcall.c: Update.
12137 * dwarf2-frame.c: Update.
12138 * dwarf2loc.c: Update.
12139 * dwarf2read.c: Update.
12140 * eval.c: Update.
12141 * event-loop.c: Update.
12142 * event-top.c: Update.
12143 * exec.c: Update.
12144 * f-valprint.c: Update.
12145 * fbsd-tdep.c: Update.
12146 * frame-unwind.c: Update.
12147 * frame.c: Update.
12148 * gdbtypes.c: Update.
12149 * gnu-v3-abi.c: Update.
12150 * guile/guile-internal.h: Update.
12151 * guile/scm-block.c: Update.
12152 * guile/scm-breakpoint.c: Update.
12153 * guile/scm-cmd.c: Update.
12154 * guile/scm-disasm.c: Update.
12155 * guile/scm-frame.c: Update.
12156 * guile/scm-lazy-string.c: Update.
12157 * guile/scm-math.c: Update.
12158 * guile/scm-param.c: Update.
12159 * guile/scm-ports.c: Update.
12160 * guile/scm-pretty-print.c: Update.
12161 * guile/scm-symbol.c: Update.
12162 * guile/scm-symtab.c: Update.
12163 * guile/scm-type.c: Update.
12164 * guile/scm-value.c: Update.
12165 * i386-linux-tdep.c: Update.
12166 * i386-tdep.c: Update.
12167 * inf-loop.c: Update.
12168 * infcall.c: Update.
12169 * infcmd.c: Update.
12170 * infrun.c: Update.
12171 * jit.c: Update.
12172 * language.c: Update.
12173 * linespec.c: Update.
12174 * linux-fork.c: Update.
12175 * linux-nat.c: Update.
12176 * linux-tdep.c: Update.
12177 * linux-thread-db.c: Update.
12178 * main.c: Update.
12179 * mi/mi-cmd-break.c: Update.
12180 * mi/mi-cmd-stack.c: Update.
12181 * mi/mi-interp.c: Update.
12182 * mi/mi-main.c: Update.
12183 * objc-lang.c: Update.
12184 * p-valprint.c: Update.
12185 * parse.c: Update.
12186 * ppc-linux-tdep.c: Update.
12187 * printcmd.c: Update.
12188 * python/py-arch.c: Update.
12189 * python/py-breakpoint.c: Update.
12190 * python/py-cmd.c: Update.
12191 * python/py-finishbreakpoint.c: Update.
12192 * python/py-frame.c: Update.
12193 * python/py-framefilter.c: Update.
12194 * python/py-gdb-readline.c: Update.
12195 * python/py-inferior.c: Update.
12196 * python/py-infthread.c: Update.
12197 * python/py-lazy-string.c: Update.
12198 * python/py-linetable.c: Update.
12199 * python/py-objfile.c: Update.
12200 * python/py-param.c: Update.
12201 * python/py-prettyprint.c: Update.
12202 * python/py-progspace.c: Update.
12203 * python/py-record-btrace.c: Update.
12204 * python/py-record.c: Update.
12205 * python/py-symbol.c: Update.
12206 * python/py-type.c: Update.
12207 * python/py-unwind.c: Update.
12208 * python/py-utils.c: Update.
12209 * python/py-value.c: Update.
12210 * python/python.c: Update.
12211 * record-btrace.c: Update.
12212 * record-full.c: Update.
12213 * remote-fileio.c: Update.
12214 * remote.c: Update.
12215 * riscv-tdep.c: Update.
12216 * rs6000-aix-tdep.c: Update.
12217 * rs6000-tdep.c: Update.
12218 * rust-exp.y: Update.
12219 * rust-lang.c: Update.
12220 * s390-tdep.c: Update.
12221 * selftest-arch.c: Update.
12222 * solib-dsbt.c: Update.
12223 * solib-frv.c: Update.
12224 * solib-spu.c: Update.
12225 * solib-svr4.c: Update.
12226 * solib.c: Update.
12227 * sparc64-linux-tdep.c: Update.
12228 * stack.c: Update.
12229 * symfile-mem.c: Update.
12230 * symmisc.c: Update.
12231 * target.c: Update.
12232 * thread.c: Update.
12233 * top.c: Update.
12234 * tracefile-tfile.c: Update.
12235 * tui/tui.c: Update.
12236 * typeprint.c: Update.
12237 * unittests/cli-utils-selftests.c: Update.
12238 * unittests/parse-connection-spec-selftests.c: Update.
12239 * valops.c: Update.
12240 * valprint.c: Update.
12241 * value.c: Update.
12242 * varobj.c: Update.
12243 * windows-nat.c: Update.
12244 * x86-linux-nat.c: Update.
12245 * xml-support.c: Update.
12246
12247 2019-04-08 Tom Tromey <tom@tromey.com>
12248
12249 * xml-support.c: Use C++ exception handling.
12250 * x86-linux-nat.c: Use C++ exception handling.
12251 * windows-nat.c: Use C++ exception handling.
12252 * varobj.c: Use C++ exception handling.
12253 * value.c: Use C++ exception handling.
12254 * valprint.c: Use C++ exception handling.
12255 * valops.c: Use C++ exception handling.
12256 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12257 handling.
12258 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12259 * typeprint.c: Use C++ exception handling.
12260 * tui/tui.c: Use C++ exception handling.
12261 * tracefile-tfile.c: Use C++ exception handling.
12262 * top.c: Use C++ exception handling.
12263 * thread.c: Use C++ exception handling.
12264 * target.c: Use C++ exception handling.
12265 * symmisc.c: Use C++ exception handling.
12266 * symfile-mem.c: Use C++ exception handling.
12267 * stack.c: Use C++ exception handling.
12268 * sparc64-linux-tdep.c: Use C++ exception handling.
12269 * solib.c: Use C++ exception handling.
12270 * solib-svr4.c: Use C++ exception handling.
12271 * solib-spu.c: Use C++ exception handling.
12272 * solib-frv.c: Use C++ exception handling.
12273 * solib-dsbt.c: Use C++ exception handling.
12274 * selftest-arch.c: Use C++ exception handling.
12275 * s390-tdep.c: Use C++ exception handling.
12276 * rust-lang.c: Use C++ exception handling.
12277 * rust-exp.y: Use C++ exception handling.
12278 * rs6000-tdep.c: Use C++ exception handling.
12279 * rs6000-aix-tdep.c: Use C++ exception handling.
12280 * riscv-tdep.c: Use C++ exception handling.
12281 * remote.c: Use C++ exception handling.
12282 * remote-fileio.c: Use C++ exception handling.
12283 * record-full.c: Use C++ exception handling.
12284 * record-btrace.c: Use C++ exception handling.
12285 * python/python.c: Use C++ exception handling.
12286 * python/py-value.c: Use C++ exception handling.
12287 * python/py-utils.c: Use C++ exception handling.
12288 * python/py-unwind.c: Use C++ exception handling.
12289 * python/py-type.c: Use C++ exception handling.
12290 * python/py-symbol.c: Use C++ exception handling.
12291 * python/py-record.c: Use C++ exception handling.
12292 * python/py-record-btrace.c: Use C++ exception handling.
12293 * python/py-progspace.c: Use C++ exception handling.
12294 * python/py-prettyprint.c: Use C++ exception handling.
12295 * python/py-param.c: Use C++ exception handling.
12296 * python/py-objfile.c: Use C++ exception handling.
12297 * python/py-linetable.c: Use C++ exception handling.
12298 * python/py-lazy-string.c: Use C++ exception handling.
12299 * python/py-infthread.c: Use C++ exception handling.
12300 * python/py-inferior.c: Use C++ exception handling.
12301 * python/py-gdb-readline.c: Use C++ exception handling.
12302 * python/py-framefilter.c: Use C++ exception handling.
12303 * python/py-frame.c: Use C++ exception handling.
12304 * python/py-finishbreakpoint.c: Use C++ exception handling.
12305 * python/py-cmd.c: Use C++ exception handling.
12306 * python/py-breakpoint.c: Use C++ exception handling.
12307 * python/py-arch.c: Use C++ exception handling.
12308 * printcmd.c: Use C++ exception handling.
12309 * ppc-linux-tdep.c: Use C++ exception handling.
12310 * parse.c: Use C++ exception handling.
12311 * p-valprint.c: Use C++ exception handling.
12312 * objc-lang.c: Use C++ exception handling.
12313 * mi/mi-main.c: Use C++ exception handling.
12314 * mi/mi-interp.c: Use C++ exception handling.
12315 * mi/mi-cmd-stack.c: Use C++ exception handling.
12316 * mi/mi-cmd-break.c: Use C++ exception handling.
12317 * main.c: Use C++ exception handling.
12318 * linux-thread-db.c: Use C++ exception handling.
12319 * linux-tdep.c: Use C++ exception handling.
12320 * linux-nat.c: Use C++ exception handling.
12321 * linux-fork.c: Use C++ exception handling.
12322 * linespec.c: Use C++ exception handling.
12323 * language.c: Use C++ exception handling.
12324 * jit.c: Use C++ exception handling.
12325 * infrun.c: Use C++ exception handling.
12326 * infcmd.c: Use C++ exception handling.
12327 * infcall.c: Use C++ exception handling.
12328 * inf-loop.c: Use C++ exception handling.
12329 * i386-tdep.c: Use C++ exception handling.
12330 * i386-linux-tdep.c: Use C++ exception handling.
12331 * guile/scm-value.c: Use C++ exception handling.
12332 * guile/scm-type.c: Use C++ exception handling.
12333 * guile/scm-symtab.c: Use C++ exception handling.
12334 * guile/scm-symbol.c: Use C++ exception handling.
12335 * guile/scm-pretty-print.c: Use C++ exception handling.
12336 * guile/scm-ports.c: Use C++ exception handling.
12337 * guile/scm-param.c: Use C++ exception handling.
12338 * guile/scm-math.c: Use C++ exception handling.
12339 * guile/scm-lazy-string.c: Use C++ exception handling.
12340 * guile/scm-frame.c: Use C++ exception handling.
12341 * guile/scm-disasm.c: Use C++ exception handling.
12342 * guile/scm-cmd.c: Use C++ exception handling.
12343 * guile/scm-breakpoint.c: Use C++ exception handling.
12344 * guile/scm-block.c: Use C++ exception handling.
12345 * guile/guile-internal.h: Use C++ exception handling.
12346 * gnu-v3-abi.c: Use C++ exception handling.
12347 * gdbtypes.c: Use C++ exception handling.
12348 * frame.c: Use C++ exception handling.
12349 * frame-unwind.c: Use C++ exception handling.
12350 * fbsd-tdep.c: Use C++ exception handling.
12351 * f-valprint.c: Use C++ exception handling.
12352 * exec.c: Use C++ exception handling.
12353 * event-top.c: Use C++ exception handling.
12354 * event-loop.c: Use C++ exception handling.
12355 * eval.c: Use C++ exception handling.
12356 * dwarf2read.c: Use C++ exception handling.
12357 * dwarf2loc.c: Use C++ exception handling.
12358 * dwarf2-frame.c: Use C++ exception handling.
12359 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12360 * dwarf-index-write.c: Use C++ exception handling.
12361 * dwarf-index-cache.c: Use C++ exception handling.
12362 * dtrace-probe.c: Use C++ exception handling.
12363 * disasm-selftests.c: Use C++ exception handling.
12364 * darwin-nat.c: Use C++ exception handling.
12365 * cp-valprint.c: Use C++ exception handling.
12366 * cp-support.c: Use C++ exception handling.
12367 * cp-abi.c: Use C++ exception handling.
12368 * corelow.c: Use C++ exception handling.
12369 * completer.c: Use C++ exception handling.
12370 * compile/compile-object-run.c: Use C++ exception handling.
12371 * compile/compile-object-load.c: Use C++ exception handling.
12372 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12373 * compile/compile-c-symbols.c: Use C++ exception handling.
12374 * common/selftest.c: Use C++ exception handling.
12375 * common/new-op.c: Use C++ exception handling.
12376 * cli/cli-script.c: Use C++ exception handling.
12377 * cli/cli-interp.c: Use C++ exception handling.
12378 * cli/cli-cmds.c: Use C++ exception handling.
12379 * c-varobj.c: Use C++ exception handling.
12380 * btrace.c: Use C++ exception handling.
12381 * breakpoint.c: Use C++ exception handling.
12382 * break-catch-throw.c: Use C++ exception handling.
12383 * arch-utils.c: Use C++ exception handling.
12384 * amd64-tdep.c: Use C++ exception handling.
12385 * ada-valprint.c: Use C++ exception handling.
12386 * ada-typeprint.c: Use C++ exception handling.
12387 * ada-lang.c: Use C++ exception handling.
12388 * aarch64-tdep.c: Use C++ exception handling.
12389
12390 2019-04-08 Tom Tromey <tom@tromey.com>
12391
12392 * xml-support.c (gdb_xml_parser::parse): Update.
12393 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12394 * value.c (show_convenience): Update.
12395 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12396 (test_parse_flags_qcs): Update.
12397 * thread.c (thr_try_catch_cmd): Update.
12398 * target.c (target_translate_tls_address): Update.
12399 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12400 (info_frame_command_core, frame_apply_command_count): Update.
12401 * rust-exp.y (rust_lex_exception_test): Update.
12402 * riscv-tdep.c (riscv_print_one_register_info): Update.
12403 * remote.c (remote_target::enable_btrace): Update.
12404 * record-btrace.c (record_btrace_enable_warn): Update.
12405 * python/py-utils.c (gdbpy_convert_exception): Update.
12406 * printcmd.c (do_one_display, print_variable_and_value): Update.
12407 * mi/mi-main.c (mi_print_exception): Update.
12408 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12409 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12410 * linux-nat.c (linux_nat_target::attach): Update.
12411 * linux-fork.c (class scoped_switch_fork_info): Update.
12412 * infrun.c (displaced_step_prepare): Update.
12413 * infcall.c (call_function_by_hand_dummy): Update.
12414 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12415 * gnu-v3-abi.c (print_one_vtable): Update.
12416 * frame.c (get_prev_frame_always): Update.
12417 * f-valprint.c (info_common_command_for_block): Update.
12418 * exec.c (try_open_exec_file): Update.
12419 * exceptions.c (print_exception, exception_print)
12420 (exception_fprintf, exception_print_same): Update.
12421 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12422 * dwarf-index-cache.c (index_cache::store)
12423 (index_cache::lookup_gdb_index): Update.
12424 * darwin-nat.c (maybe_cache_shell): Update.
12425 * cp-valprint.c (cp_print_value_fields): Update.
12426 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12427 (gcc_cplus_symbol_address): Update.
12428 * compile/compile-c-symbols.c (gcc_convert_symbol)
12429 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12430 * common/selftest.c: Update.
12431 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12432 a std::string.
12433 (exception_try_scope_entry, exception_try_scope_exit): Don't
12434 declare.
12435 (struct exception_try_scope): Remove.
12436 (TRY): Don't use exception_try_scope.
12437 (struct gdb_exception): Add constructor, operator=.
12438 <what>: New method.
12439 (struct gdb_exception_RETURN_MASK_ALL)
12440 (struct gdb_exception_RETURN_MASK_ERROR)
12441 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12442 (struct gdb_quit_bad_alloc): Update.
12443 * common/common-exceptions.c (exception_none): Change
12444 initializer.
12445 (struct catcher) <state, exception>: Initialize inline.
12446 <prev>: Remove member.
12447 (current_catcher): Remove.
12448 (catchers): New global.
12449 (exceptions_state_mc_init): Simplify.
12450 (catcher_pop): Remove.
12451 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12452 (try_scope_depth, exception_try_scope_entry)
12453 (exception_try_scope_exit): Remove.
12454 (throw_exception_sjlj): Update.
12455 (exception_messages, exception_messages_size): Remove.
12456 (throw_it): Simplify.
12457 (gdb_exception_sliced_copy): Remove.
12458 (throw_exception_cxx): Update.
12459 * cli/cli-script.c (script_from_file): Update.
12460 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12461 Update.
12462 * ada-valprint.c (ada_val_print): Update.
12463 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12464 (create_excep_cond_exprs): Update.
12465
12466 2019-04-08 Tom Tromey <tom@tromey.com>
12467
12468 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12469 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12470 (TRY, CATCH, END_CATCH): Remove some definitions.
12471 * common/common-exceptions.c: Don't use GDB_XCPT.
12472 (catcher_list_size): Remove.
12473 (throw_exception, throw_it): Simplify.
12474
12475 2019-04-05 Tom Tromey <tom@tromey.com>
12476
12477 Revert the header-sorting patch.
12478 * ft32-tdep.c: Revert.
12479 * frv-tdep.c: Revert.
12480 * frv-linux-tdep.c: Revert.
12481 * frame.c: Revert.
12482 * frame-unwind.c: Revert.
12483 * frame-base.c: Revert.
12484 * fork-child.c: Revert.
12485 * findvar.c: Revert.
12486 * findcmd.c: Revert.
12487 * filesystem.c: Revert.
12488 * filename-seen-cache.h: Revert.
12489 * filename-seen-cache.c: Revert.
12490 * fbsd-tdep.c: Revert.
12491 * fbsd-nat.h: Revert.
12492 * fbsd-nat.c: Revert.
12493 * f-valprint.c: Revert.
12494 * f-typeprint.c: Revert.
12495 * f-lang.c: Revert.
12496 * extension.h: Revert.
12497 * extension.c: Revert.
12498 * extension-priv.h: Revert.
12499 * expprint.c: Revert.
12500 * exec.h: Revert.
12501 * exec.c: Revert.
12502 * exceptions.c: Revert.
12503 * event-top.c: Revert.
12504 * event-loop.c: Revert.
12505 * eval.c: Revert.
12506 * elfread.c: Revert.
12507 * dwarf2read.h: Revert.
12508 * dwarf2read.c: Revert.
12509 * dwarf2loc.c: Revert.
12510 * dwarf2expr.h: Revert.
12511 * dwarf2expr.c: Revert.
12512 * dwarf2-frame.c: Revert.
12513 * dwarf2-frame-tailcall.c: Revert.
12514 * dwarf-index-write.h: Revert.
12515 * dwarf-index-write.c: Revert.
12516 * dwarf-index-common.c: Revert.
12517 * dwarf-index-cache.h: Revert.
12518 * dwarf-index-cache.c: Revert.
12519 * dummy-frame.c: Revert.
12520 * dtrace-probe.c: Revert.
12521 * disasm.h: Revert.
12522 * disasm.c: Revert.
12523 * disasm-selftests.c: Revert.
12524 * dictionary.c: Revert.
12525 * dicos-tdep.c: Revert.
12526 * demangle.c: Revert.
12527 * dcache.h: Revert.
12528 * dcache.c: Revert.
12529 * darwin-nat.h: Revert.
12530 * darwin-nat.c: Revert.
12531 * darwin-nat-info.c: Revert.
12532 * d-valprint.c: Revert.
12533 * d-namespace.c: Revert.
12534 * d-lang.c: Revert.
12535 * ctf.c: Revert.
12536 * csky-tdep.c: Revert.
12537 * csky-linux-tdep.c: Revert.
12538 * cris-tdep.c: Revert.
12539 * cris-linux-tdep.c: Revert.
12540 * cp-valprint.c: Revert.
12541 * cp-support.c: Revert.
12542 * cp-namespace.c: Revert.
12543 * cp-abi.c: Revert.
12544 * corelow.c: Revert.
12545 * corefile.c: Revert.
12546 * continuations.c: Revert.
12547 * completer.h: Revert.
12548 * completer.c: Revert.
12549 * complaints.c: Revert.
12550 * coffread.c: Revert.
12551 * coff-pe-read.c: Revert.
12552 * cli-out.h: Revert.
12553 * cli-out.c: Revert.
12554 * charset.c: Revert.
12555 * c-varobj.c: Revert.
12556 * c-valprint.c: Revert.
12557 * c-typeprint.c: Revert.
12558 * c-lang.c: Revert.
12559 * buildsym.c: Revert.
12560 * buildsym-legacy.c: Revert.
12561 * build-id.h: Revert.
12562 * build-id.c: Revert.
12563 * btrace.c: Revert.
12564 * bsd-uthread.c: Revert.
12565 * breakpoint.h: Revert.
12566 * breakpoint.c: Revert.
12567 * break-catch-throw.c: Revert.
12568 * break-catch-syscall.c: Revert.
12569 * break-catch-sig.c: Revert.
12570 * blockframe.c: Revert.
12571 * block.c: Revert.
12572 * bfin-tdep.c: Revert.
12573 * bfin-linux-tdep.c: Revert.
12574 * bfd-target.c: Revert.
12575 * bcache.c: Revert.
12576 * ax-general.c: Revert.
12577 * ax-gdb.h: Revert.
12578 * ax-gdb.c: Revert.
12579 * avr-tdep.c: Revert.
12580 * auxv.c: Revert.
12581 * auto-load.c: Revert.
12582 * arm-wince-tdep.c: Revert.
12583 * arm-tdep.c: Revert.
12584 * arm-symbian-tdep.c: Revert.
12585 * arm-pikeos-tdep.c: Revert.
12586 * arm-obsd-tdep.c: Revert.
12587 * arm-nbsd-tdep.c: Revert.
12588 * arm-nbsd-nat.c: Revert.
12589 * arm-linux-tdep.c: Revert.
12590 * arm-linux-nat.c: Revert.
12591 * arm-fbsd-tdep.c: Revert.
12592 * arm-fbsd-nat.c: Revert.
12593 * arm-bsd-tdep.c: Revert.
12594 * arch-utils.c: Revert.
12595 * arc-tdep.c: Revert.
12596 * arc-newlib-tdep.c: Revert.
12597 * annotate.h: Revert.
12598 * annotate.c: Revert.
12599 * amd64-windows-tdep.c: Revert.
12600 * amd64-windows-nat.c: Revert.
12601 * amd64-tdep.c: Revert.
12602 * amd64-sol2-tdep.c: Revert.
12603 * amd64-obsd-tdep.c: Revert.
12604 * amd64-obsd-nat.c: Revert.
12605 * amd64-nbsd-tdep.c: Revert.
12606 * amd64-nbsd-nat.c: Revert.
12607 * amd64-nat.c: Revert.
12608 * amd64-linux-tdep.c: Revert.
12609 * amd64-linux-nat.c: Revert.
12610 * amd64-fbsd-tdep.c: Revert.
12611 * amd64-fbsd-nat.c: Revert.
12612 * amd64-dicos-tdep.c: Revert.
12613 * amd64-darwin-tdep.c: Revert.
12614 * amd64-bsd-nat.c: Revert.
12615 * alpha-tdep.c: Revert.
12616 * alpha-obsd-tdep.c: Revert.
12617 * alpha-nbsd-tdep.c: Revert.
12618 * alpha-mdebug-tdep.c: Revert.
12619 * alpha-linux-tdep.c: Revert.
12620 * alpha-linux-nat.c: Revert.
12621 * alpha-bsd-tdep.c: Revert.
12622 * alpha-bsd-nat.c: Revert.
12623 * aix-thread.c: Revert.
12624 * agent.c: Revert.
12625 * addrmap.c: Revert.
12626 * ada-varobj.c: Revert.
12627 * ada-valprint.c: Revert.
12628 * ada-typeprint.c: Revert.
12629 * ada-tasks.c: Revert.
12630 * ada-lang.c: Revert.
12631 * aarch64-tdep.c: Revert.
12632 * aarch64-ravenscar-thread.c: Revert.
12633 * aarch64-newlib-tdep.c: Revert.
12634 * aarch64-linux-tdep.c: Revert.
12635 * aarch64-linux-nat.c: Revert.
12636 * aarch64-fbsd-tdep.c: Revert.
12637 * aarch64-fbsd-nat.c: Revert.
12638 * aarch32-linux-nat.c: Revert.
12639
12640 2019-04-05 Tom Tromey <tom@tromey.com>
12641
12642 * ft32-tdep.c: Sort headers.
12643 * frv-tdep.c: Sort headers.
12644 * frv-linux-tdep.c: Sort headers.
12645 * frame.c: Sort headers.
12646 * frame-unwind.c: Sort headers.
12647 * frame-base.c: Sort headers.
12648 * fork-child.c: Sort headers.
12649 * findvar.c: Sort headers.
12650 * findcmd.c: Sort headers.
12651 * filesystem.c: Sort headers.
12652 * filename-seen-cache.h: Sort headers.
12653 * filename-seen-cache.c: Sort headers.
12654 * fbsd-tdep.c: Sort headers.
12655 * fbsd-nat.h: Sort headers.
12656 * fbsd-nat.c: Sort headers.
12657 * f-valprint.c: Sort headers.
12658 * f-typeprint.c: Sort headers.
12659 * f-lang.c: Sort headers.
12660 * extension.h: Sort headers.
12661 * extension.c: Sort headers.
12662 * extension-priv.h: Sort headers.
12663 * expprint.c: Sort headers.
12664 * exec.h: Sort headers.
12665 * exec.c: Sort headers.
12666 * exceptions.c: Sort headers.
12667 * event-top.c: Sort headers.
12668 * event-loop.c: Sort headers.
12669 * eval.c: Sort headers.
12670 * elfread.c: Sort headers.
12671 * dwarf2read.h: Sort headers.
12672 * dwarf2read.c: Sort headers.
12673 * dwarf2loc.c: Sort headers.
12674 * dwarf2expr.h: Sort headers.
12675 * dwarf2expr.c: Sort headers.
12676 * dwarf2-frame.c: Sort headers.
12677 * dwarf2-frame-tailcall.c: Sort headers.
12678 * dwarf-index-write.h: Sort headers.
12679 * dwarf-index-write.c: Sort headers.
12680 * dwarf-index-common.c: Sort headers.
12681 * dwarf-index-cache.h: Sort headers.
12682 * dwarf-index-cache.c: Sort headers.
12683 * dummy-frame.c: Sort headers.
12684 * dtrace-probe.c: Sort headers.
12685 * disasm.h: Sort headers.
12686 * disasm.c: Sort headers.
12687 * disasm-selftests.c: Sort headers.
12688 * dictionary.c: Sort headers.
12689 * dicos-tdep.c: Sort headers.
12690 * demangle.c: Sort headers.
12691 * dcache.h: Sort headers.
12692 * dcache.c: Sort headers.
12693 * darwin-nat.h: Sort headers.
12694 * darwin-nat.c: Sort headers.
12695 * darwin-nat-info.c: Sort headers.
12696 * d-valprint.c: Sort headers.
12697 * d-namespace.c: Sort headers.
12698 * d-lang.c: Sort headers.
12699 * ctf.c: Sort headers.
12700 * csky-tdep.c: Sort headers.
12701 * csky-linux-tdep.c: Sort headers.
12702 * cris-tdep.c: Sort headers.
12703 * cris-linux-tdep.c: Sort headers.
12704 * cp-valprint.c: Sort headers.
12705 * cp-support.c: Sort headers.
12706 * cp-namespace.c: Sort headers.
12707 * cp-abi.c: Sort headers.
12708 * corelow.c: Sort headers.
12709 * corefile.c: Sort headers.
12710 * continuations.c: Sort headers.
12711 * completer.h: Sort headers.
12712 * completer.c: Sort headers.
12713 * complaints.c: Sort headers.
12714 * coffread.c: Sort headers.
12715 * coff-pe-read.c: Sort headers.
12716 * cli-out.h: Sort headers.
12717 * cli-out.c: Sort headers.
12718 * charset.c: Sort headers.
12719 * c-varobj.c: Sort headers.
12720 * c-valprint.c: Sort headers.
12721 * c-typeprint.c: Sort headers.
12722 * c-lang.c: Sort headers.
12723 * buildsym.c: Sort headers.
12724 * buildsym-legacy.c: Sort headers.
12725 * build-id.h: Sort headers.
12726 * build-id.c: Sort headers.
12727 * btrace.c: Sort headers.
12728 * bsd-uthread.c: Sort headers.
12729 * breakpoint.h: Sort headers.
12730 * breakpoint.c: Sort headers.
12731 * break-catch-throw.c: Sort headers.
12732 * break-catch-syscall.c: Sort headers.
12733 * break-catch-sig.c: Sort headers.
12734 * blockframe.c: Sort headers.
12735 * block.c: Sort headers.
12736 * bfin-tdep.c: Sort headers.
12737 * bfin-linux-tdep.c: Sort headers.
12738 * bfd-target.c: Sort headers.
12739 * bcache.c: Sort headers.
12740 * ax-general.c: Sort headers.
12741 * ax-gdb.h: Sort headers.
12742 * ax-gdb.c: Sort headers.
12743 * avr-tdep.c: Sort headers.
12744 * auxv.c: Sort headers.
12745 * auto-load.c: Sort headers.
12746 * arm-wince-tdep.c: Sort headers.
12747 * arm-tdep.c: Sort headers.
12748 * arm-symbian-tdep.c: Sort headers.
12749 * arm-pikeos-tdep.c: Sort headers.
12750 * arm-obsd-tdep.c: Sort headers.
12751 * arm-nbsd-tdep.c: Sort headers.
12752 * arm-nbsd-nat.c: Sort headers.
12753 * arm-linux-tdep.c: Sort headers.
12754 * arm-linux-nat.c: Sort headers.
12755 * arm-fbsd-tdep.c: Sort headers.
12756 * arm-fbsd-nat.c: Sort headers.
12757 * arm-bsd-tdep.c: Sort headers.
12758 * arch-utils.c: Sort headers.
12759 * arc-tdep.c: Sort headers.
12760 * arc-newlib-tdep.c: Sort headers.
12761 * annotate.h: Sort headers.
12762 * annotate.c: Sort headers.
12763 * amd64-windows-tdep.c: Sort headers.
12764 * amd64-windows-nat.c: Sort headers.
12765 * amd64-tdep.c: Sort headers.
12766 * amd64-sol2-tdep.c: Sort headers.
12767 * amd64-obsd-tdep.c: Sort headers.
12768 * amd64-obsd-nat.c: Sort headers.
12769 * amd64-nbsd-tdep.c: Sort headers.
12770 * amd64-nbsd-nat.c: Sort headers.
12771 * amd64-nat.c: Sort headers.
12772 * amd64-linux-tdep.c: Sort headers.
12773 * amd64-linux-nat.c: Sort headers.
12774 * amd64-fbsd-tdep.c: Sort headers.
12775 * amd64-fbsd-nat.c: Sort headers.
12776 * amd64-dicos-tdep.c: Sort headers.
12777 * amd64-darwin-tdep.c: Sort headers.
12778 * amd64-bsd-nat.c: Sort headers.
12779 * alpha-tdep.c: Sort headers.
12780 * alpha-obsd-tdep.c: Sort headers.
12781 * alpha-nbsd-tdep.c: Sort headers.
12782 * alpha-mdebug-tdep.c: Sort headers.
12783 * alpha-linux-tdep.c: Sort headers.
12784 * alpha-linux-nat.c: Sort headers.
12785 * alpha-bsd-tdep.c: Sort headers.
12786 * alpha-bsd-nat.c: Sort headers.
12787 * aix-thread.c: Sort headers.
12788 * agent.c: Sort headers.
12789 * addrmap.c: Sort headers.
12790 * ada-varobj.c: Sort headers.
12791 * ada-valprint.c: Sort headers.
12792 * ada-typeprint.c: Sort headers.
12793 * ada-tasks.c: Sort headers.
12794 * ada-lang.c: Sort headers.
12795 * aarch64-tdep.c: Sort headers.
12796 * aarch64-ravenscar-thread.c: Sort headers.
12797 * aarch64-newlib-tdep.c: Sort headers.
12798 * aarch64-linux-tdep.c: Sort headers.
12799 * aarch64-linux-nat.c: Sort headers.
12800 * aarch64-fbsd-tdep.c: Sort headers.
12801 * aarch64-fbsd-nat.c: Sort headers.
12802 * aarch32-linux-nat.c: Sort headers.
12803
12804 2019-04-04 Tom Tromey <tom@tromey.com>
12805
12806 * varobj.c (varobj_create): Update.
12807 * rust-exp.y (struct rust_parser) <update_innermost_block,
12808 lookup_symbol>: New methods.
12809 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12810 Rename.
12811 (rust_parser::rust_lookup_type)
12812 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12813 * printcmd.c (display_command, do_one_display): Update.
12814 * parser-defs.h (struct parser_state) <parser_state>: Add
12815 "tracker" parameter.
12816 (block_tracker): New member.
12817 (class innermost_block_tracker) <innermost_block_tracker>: Add
12818 "types" parameter.
12819 <reset>: Remove method.
12820 (innermost_block): Don't declare.
12821 (null_post_parser): Update.
12822 * parse.c (innermost_block): Remove global.
12823 (write_dollar_variable): Update.
12824 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12825 Remove "tracker_types" parameter.
12826 (parse_expression): Add "tracker" parameter.
12827 (parse_expression_for_completion): Update.
12828 (null_post_parser): Add "tracker" parameter.
12829 * p-exp.y: Update rules.
12830 * m2-exp.y: Update rules.
12831 * language.h (struct language_defn) <la_post_parser>: Add
12832 "tracker" parameter.
12833 * go-exp.y: Update rules.
12834 * f-exp.y: Update rules.
12835 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12836 parameter.
12837 * d-exp.y: Update rules.
12838 * c-exp.y: Update rules.
12839 * breakpoint.c (set_breakpoint_condition): Create an
12840 innermost_block_tracker.
12841 (watch_command_1): Likewise.
12842 * ada-lang.c (resolve): Add "tracker" parameter.
12843 (resolve_subexp): Likewise.
12844 * ada-exp.y (write_var_from_sym): Update.
12845
12846 2019-04-04 Tom Tromey <tom@tromey.com>
12847
12848 * type-stack.h: New file.
12849 * type-stack.c: New file.
12850 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12851 type-stack.h.
12852 (insert_into_type_stack, insert_type, push_type, push_type_int)
12853 (insert_type_address_space, pop_type, pop_type_int)
12854 (pop_typelist, pop_type_stack, append_type_stack)
12855 (push_type_stack, get_type_stack, push_typelist)
12856 (follow_type_instance_flags, follow_types): Don't declare.
12857 * parse.c (type_stack): Remove global.
12858 (parse_exp_in_context): Update.
12859 (insert_into_type_stack, insert_type, push_type, push_type_int)
12860 (insert_type_address_space, pop_type, pop_type_int)
12861 (pop_typelist, pop_type_stack, append_type_stack)
12862 (push_type_stack, get_type_stack, push_typelist)
12863 (follow_type_instance_flags, follow_types): Remove (moved to
12864 type-stack.c).
12865 * f-exp.y (type_stack): New global.
12866 Update rules.
12867 (push_kind_type, f_parse): Update.
12868 * d-exp.y (type_stack): New global.
12869 Update rules.
12870 (d_parse): Update.
12871 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12872 Update rules.
12873 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12874 (HFILES_NO_SRCDIR): Add type-stack.h.
12875
12876 2019-04-04 Tom Tromey <tom@tromey.com>
12877
12878 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12879 (rust_parser::convert_ast_to_expression, rust_parse)
12880 (rust_lex_test_completion, rust_lex_tests): Update.
12881 * parser-defs.h (struct expr_completion_state): New.
12882 (struct parser_state) <parser_state>: Add completion parameter.
12883 <mark_struct_expression, mark_completion_tag>: New methods.
12884 <parse_completion, m_completion_state>: New members.
12885 (prefixify_expression, null_post_parser): Update.
12886 (mark_struct_expression, mark_completion_tag): Don't declare.
12887 * parse.c (parse_completion, expout_last_struct)
12888 (expout_tag_completion_type, expout_completion_name): Remove
12889 globals.
12890 (parser_state::mark_struct_expression)
12891 (parser_state::mark_completion_tag): Now methods.
12892 (prefixify_expression): Add last_struct parameter.
12893 (prefixify_subexp): Likewise.
12894 (parse_exp_1): Update.
12895 (parse_exp_in_context): Add cstate parameter. Update.
12896 (parse_expression_for_completion): Create an
12897 expr_completion_state.
12898 (null_post_parser): Add "completion" parameter.
12899 * p-exp.y: Update rules.
12900 (yylex): Update.
12901 * language.h (struct language_defn) <la_post_parser>: Add
12902 "completing" parameter.
12903 * go-exp.y: Update rules.
12904 (lex_one_token): Update.
12905 * expression.h (parse_completion): Don't declare.
12906 * d-exp.y: Update rules.
12907 (lex_one_token): Update rules.
12908 * c-exp.y: Update rules.
12909 (lex_one_token): Update.
12910 * ada-lang.c (resolve): Add "parse_completion" parameter.
12911 (resolve_subexp): Likewise.
12912 (ada_resolve_function): Likewise.
12913
12914 2019-04-04 Tom Tromey <tom@tromey.com>
12915
12916 * parser-defs.h (struct parser_state) <start_arglist,
12917 end_arglist>: New methods.
12918 <arglist_len, m_funcall_chain>: New members.
12919 (arglist_len, start_arglist, end_arglist): Don't declare.
12920 * parse.c (arglist_len, funcall_chain): Remove global.
12921 (start_arglist, end_arglist): Remove functions.
12922 (parse_exp_in_context): Update.
12923 * p-exp.y: Update rules.
12924 * m2-exp.y: Update rules.
12925 * go-exp.y: Update rules.
12926 * f-exp.y: Update rules.
12927 * d-exp.y: Update rules.
12928 * c-exp.y: Update rules.
12929
12930 2019-04-04 Tom Tromey <tom@tromey.com>
12931
12932 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12933 lex_operator, push_back>: New methods.
12934 Update all rules.
12935 (rust_parser::lex_hex, lex_escape): Rename and update.
12936 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12937 (rust_parser::lex_operator): Rename and update.
12938 (rust_parser::lex_number, rustyylex, rustyyerror)
12939 (rust_lex_test_init, rust_lex_test_sequence)
12940 (rust_lex_test_push_back, rust_lex_tests): Update.
12941 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12942 parameter.
12943 <lexptr, prev_lexptr>: New members.
12944 (lexptr, prev_lexptr): Don't declare.
12945 * parse.c (lexptr, prev_lexptr): Remove globals.
12946 (parse_exp_in_context): Update.
12947 * p-exp.y (yylex, yyerror): Update.
12948 * m2-exp.y (parse_number, yylex, yyerror): Update.
12949 * go-exp.y (lex_one_token, yyerror): Update.
12950 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12951 * d-exp.y (lex_one_token, yyerror): Update.
12952 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12953 (lex_one_token, yyerror): Update.
12954 * ada-lex.l (YY_INPUT): Update.
12955 (rewind_to_char): Update.
12956 * ada-exp.y (yyerror): Update.
12957
12958 2019-04-04 Tom Tromey <tom@tromey.com>
12959
12960 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12961 * parser-defs.h (struct parser_state) <parser_state>: Add new
12962 parameter.
12963 <comma_terminates>: New member.
12964 (comma_terminates): Don't declare global.
12965 * parse.c (comma_terminates): Remove global.
12966 (parse_exp_in_context): Update.
12967 * p-exp.y (yylex): Update.
12968 * m2-exp.y (yylex): Update.
12969 * go-exp.y (lex_one_token): Update.
12970 * f-exp.y (yylex): Update.
12971 * d-exp.y (lex_one_token): Update.
12972 * c-exp.y (lex_one_token): Update.
12973 * ada-lex.l: Update.
12974
12975 2019-04-04 Tom Tromey <tom@tromey.com>
12976
12977 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12978 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12979 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12980 * parser-defs.h (paren_depth): Don't declare.
12981 * parse.c (paren_depth): Remove global.
12982 (parse_exp_in_context): Update.
12983 * p-exp.y (paren_depth): New global.
12984 (pascal_parse): Initialize it.
12985 * m2-exp.y (paren_depth): New global.
12986 (m2_parse): Initialize it.
12987 * go-exp.y (paren_depth): New global.
12988 (go_parse): Initialize it.
12989 * f-exp.y (paren_depth): New global.
12990 (f_parse): Initialize it.
12991 * d-exp.y (paren_depth): New global.
12992 (d_parse): Initialize it.
12993 * c-exp.y (paren_depth): New global.
12994 (c_parse): Initialize it.
12995 * ada-lex.l (paren_depth): New global.
12996 (lexer_init): Initialize it.
12997
12998 2019-04-04 Tom Tromey <tom@tromey.com>
12999
13000 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13001 (rust_parser::convert_ast_to_type)
13002 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13003 * parser-defs.h (struct parser_state) <parser_state>: Add
13004 parameters. Initialize new members.
13005 <expression_context_block, expression_context_pc>: New members.
13006 * parse.c (expression_context_block, expression_context_pc):
13007 Remove globals.
13008 (parse_exp_in_context): Update.
13009 * p-exp.y: Update all rules.
13010 (yylex): Update.
13011 * m2-exp.y: Update all rules.
13012 (yylex): Update.
13013 * go-exp.y (yylex): Update.
13014 * f-exp.y (yylex): Update.
13015 * d-exp.y: Update all rules.
13016 (yylex): Update.
13017 * c-exp.y: Update all rules.
13018 (lex_one_token, classify_name, yylex, c_parse): Update.
13019 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13020
13021 2019-04-04 Tom Tromey <tom@tromey.com>
13022
13023 * gdbarch.h, gdbarch.c: Rebuild.
13024 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13025 * stap-probe.h:
13026 (struct stap_parse_info): Replace "parser_state" with
13027 "expr_builder".
13028 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13029 (parser_state): New class.
13030 * parse.c (expr_builder): Rename.
13031 (expr_builder::release): Rename.
13032 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13033 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13034 (write_exp_elt_longcst, write_exp_elt_floatcst)
13035 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13036 (write_exp_string_vector, write_exp_bitstring)
13037 (write_exp_msymbol, mark_struct_expression)
13038 (write_dollar_variable)
13039 (insert_type_address_space, increase_expout_size): Replace
13040 "parser_state" with "expr_builder".
13041 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13042 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13043 "parser_state" with "expr_builder".
13044
13045 2019-04-04 Tom Tromey <tom@tromey.com>
13046
13047 * rust-exp.y: Replace "parse_language" with method call.
13048 * p-exp.y:
13049 (yylex): Replace "parse_language" with method call.
13050 * m2-exp.y:
13051 (yylex): Replace "parse_language" with method call.
13052 * go-exp.y (classify_name): Replace "parse_language" with method
13053 call.
13054 * f-exp.y (yylex): Replace "parse_language" with method call.
13055 * d-exp.y (lex_one_token): Replace "parse_language" with method
13056 call.
13057 * c-exp.y:
13058 (lex_one_token, classify_name, yylex): Replace "parse_language"
13059 with method call.
13060 * ada-exp.y (find_primitive_type, type_char)
13061 (type_system_address): Replace "parse_language" with method call.
13062
13063 2019-04-04 Tom Tromey <tom@tromey.com>
13064
13065 * rust-exp.y: Replace "parse_gdbarch" with method call.
13066 * parse.c (write_dollar_variable, insert_type_address_space):
13067 Replace "parse_gdbarch" with method call.
13068 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13069 call.
13070 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13071 call.
13072 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13073 "parse_gdbarch" with method call.
13074 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13075 with method call.
13076 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13077 "parse_gdbarch" with method call.
13078 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13079 "parse_gdbarch" with method call.
13080 * c-exp.y (parse_type, parse_number, classify_name): Replace
13081 "parse_gdbarch" with method call.
13082 * ada-lex.l: Replace "parse_gdbarch" with method call.
13083 * ada-exp.y (parse_type, find_primitive_type, type_char)
13084 (type_system_address): Replace "parse_gdbarch" with method call.
13085
13086 2019-04-04 Tom Tromey <tom@tromey.com>
13087
13088 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13089 * stap-probe.c (stap_parse_argument): Update.
13090 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13091 initial_size parameter.
13092 * rust-exp.y (rust_lex_tests): Update.
13093 * parse.c (parser_state): Update.
13094 (parse_exp_in_context): Update.
13095 * parser-defs.h (struct parser_state) <parser_state>: Remove
13096 "initial_size" parameter.
13097
13098 2019-04-04 Tom Tromey <tom@tromey.com>
13099
13100 * parser-defs.h (increase_expout_size): Don't declare.
13101 * parse.c (increase_expout_size): Now static.
13102
13103 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13104
13105 * gnu-nat.c (gnu_nat_target::wait): Fix
13106 target_waitstatus_to_string call.
13107
13108 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13109
13110 * eval.c (evaluate_subexp_standard): Handle internal functions
13111 during Fortran function call handling.
13112
13113 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13114
13115 * NEWS: Mention new internal functions.
13116 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13117 (read_base_type): Use dwarf2_init_complex_target_type.
13118 * value.c (creal_internal_fn): New function.
13119 (cimag_internal_fn): New function.
13120 (_initialize_values): Register new internal functions.
13121
13122 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13123
13124 * infrun.c (stop_all_threads): If debug_infrun, always
13125 trace the wait status after wait_one, using
13126 target_waitstatus_to_string and target_pid_to_str.
13127 (handle_inferior_event): Replace various trace of
13128 wait status kind by a single trace.
13129 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13130 wait status kind image by target_waitstatus_to_string.
13131 * target/waitstatus.c (target_waitstatus_to_string): Fix
13132 obsolete comment.
13133
13134 2019-04-01 Tom Tromey <tromey@adacore.com>
13135
13136 PR symtab/23331:
13137 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13138
13139 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13140 Pedro Alves <palves@redhat.com>
13141
13142 * top.c (quit_force): Call 'finalize_values'.
13143 * value.c (finalize_values): New function.
13144 * value.h (finalize_values): Declare.
13145
13146 2019-03-30 Eli Zaretskii <eliz@gnu.org>
13147
13148 * NEWS: Announce $_gdb_major and $_gdb_minor.
13149
13150 * top.c (init_gdb_version_vars): New function.
13151 (gdb_init): Call init_gdb_version_vars.
13152
13153 2019-03-29 Tom Tromey <tromey@adacore.com>
13154
13155 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13156 help text. Remove dead code.
13157
13158 2019-03-29 Keith Seitz <keiths@redhat.com>
13159
13160 From Siddhesh Poyarekar:
13161 * f-lang.h (f77_get_upperbound): Return LONGEST.
13162 (f77_get_lowerbound): Likewise.
13163 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13164 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13165 print them.
13166 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13167 plongest to format print it.
13168 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13169 (f77_get_upperbound): Likewise.
13170 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13171 LOWER_BOUND to LONGEST.
13172 (f77_create_arrayprint_offset_tbl): Likewise.
13173
13174 2019-03-29 Keith Seitz <keiths@redhat.com>
13175
13176 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13177 %s/pulongest for TYPE_LENGTH instead of %d in format
13178 strings.
13179 * ada-typerint.c (ada_print_type): Likewise.
13180 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13181 * compile/compile-c-support.c (generate_register_struct): Likewise.
13182 * gdbtypes.c (recursive_dump_type): Likewise.
13183 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13184 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13185 instead of %d in format strings.
13186 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13187 to std::min to ULONGEST.
13188 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13189 instead of %d in format strings.
13190 * tracepoint.c (info_scope_command): Likewise.
13191 * typeprint.c (print_offset_data::update)
13192 (print_offset_data::finish): Likewise.
13193 * xtensa-tdep.c (xtensa_store_return_value)
13194 (xtensa_push_dummy_call): Likewise.
13195
13196 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13197
13198 * windows-nat.c (display_selector): Fixed format specifications
13199 for 64-bit Cygwin.
13200
13201 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13202
13203 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13204
13205 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13206
13207 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13208 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13209 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13210 (nios2_linux_init_abi): Install it.
13211
13212 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13213
13214 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13215
13216 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13217
13218 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13219
13220 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13221 Tom Tromey <tromey@adacore.com>
13222
13223 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13224
13225 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13226
13227 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13228 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13229 method to compute the bounds of range types. Also print "[evaluated]"
13230 if the bounds' values come from a dynamic evaluation.
13231
13232 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13233
13234 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13235 whitespace when pretty printing is on.
13236
13237 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13238
13239 * ppc-linux-nat.c: Add include.
13240
13241 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13242
13243 * NEWS: Mention AArch64 Pointer Authentication.
13244
13245 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13246
13247 * arm-linux-nat.c: Add include.
13248
13249 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13250
13251 * source-cache.c (source_cache::get_source_lines): Re-read
13252 fullname after calling open_source_file.
13253
13254 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13255
13256 * NEWS: Mention TLS support for FreeBSD.
13257
13258 2019-03-25 Tom Tromey <tromey@adacore.com>
13259
13260 * minsyms.c (BUNCH_SIZE): Update comment.
13261 (~minimal_symbol_reader): Remove old comment.
13262 (compact_minimal_symbols): Update comment.
13263 (minimal_symbol_reader::install): Remove old comment. Update
13264 other comments.
13265
13266 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13267
13268 * s390-linux-nat.c: Add include.
13269
13270 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13271
13272 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13273 Call linux_get_hwcap.
13274 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13275 Likewise.
13276 (aarch64_linux_get_hwcap): Remove function.
13277 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13278 declaration.
13279 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13280 linux_get_hwcap.
13281 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13282 * linux-tdep.c (linux_get_hwcap): Add function.
13283 (linux_get_hwcap2): Likewise.
13284 * linux-tdep.h (linux_get_hwcap): Add declaration.
13285 (linux_get_hwcap2): Likewise.
13286 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13287 (ppc_linux_get_hwcap2): Likewise.
13288 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13289 linux_get_hwcap.
13290 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13291 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13292 (ppc_linux_nat_target::read_description): Likewise.
13293 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13294 * s390-linux-nat.c: Likewise.
13295 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13296
13297 2019-03-24 Tom Tromey <tom@tromey.com>
13298
13299 * ada-lang.c (standard_lookup): Simplify initialization.
13300 (ada_lookup_symbol_nonlocal): Simplify return.
13301 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13302 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13303 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13304 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13305 initialization.
13306 * solib.c (solib_global_lookup): Simplify.
13307 * symtab.c (null_block_symbol): Remove.
13308 (symbol_cache_lookup): Simplify returns.
13309 (lookup_language_this): Simplify returns.
13310 (lookup_symbol_aux): Simplify return.
13311 (lookup_local_symbol): Simplify returns.
13312 (lookup_global_symbol_from_objfile): Simplify return.
13313 (lookup_symbol_in_objfile_symtabs)
13314 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13315 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13316 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13317 * cp-namespace.c (cp_lookup_bare_symbol)
13318 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13319 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13320 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13321 (cp_lookup_symbol_via_imports): Simplify initialization.
13322 (find_symbol_in_baseclass): Likewise.
13323 * symtab.h (null_block_symbol): Remove.
13324 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13325 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13326 (d_lookup_symbol_module): Likewise.
13327 (find_symbol_in_baseclass): Simplify initialization.
13328
13329 2019-03-24 Tom Tromey <tom@tromey.com>
13330
13331 * expression.h: Don't include symtab.h.
13332 (struct block): Forward declare.
13333
13334 2019-03-24 Tom Tromey <tom@tromey.com>
13335
13336 * c-exp.y (typebase): Remove casts.
13337 * gdbtypes.c (lookup_unsigned_typename, )
13338 (lookup_signed_typename): Remove cast.
13339 * eval.c (parse_to_comma_and_eval): Remove cast.
13340 * parse.c (write_dollar_variable): Remove cast.
13341 * block.h (struct block) <superblock>: Now const.
13342 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13343 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13344 (map_block): Make "block" const.
13345 * symfile.h (struct quick_symbol_functions)
13346 <map_matching_symbols>: Constify block argument to "callback".
13347 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13348 const.
13349 (find_pc_sect_compunit_symtab): Make "b" const.
13350 (find_symbol_at_address): Likewise.
13351 (search_symbols): Likewise.
13352 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13353 (dw2_debug_names_lookup_symbol): Likewise.
13354 (dw2_map_matching_symbols): Update.
13355 * p-valprint.c (pascal_val_print): Remove "block".
13356 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13357 (aux_add_nonlocal_symbols): Make "block" const.
13358 (resolve_subexp): Remove cast.
13359 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13360 const.
13361 (iterate_over_file_blocks): Likewise.
13362 * f-exp.y (%union) <bval>: Remove.
13363 * coffread.c (patch_opaque_types): Make "b" const.
13364 * spu-tdep.c (spu_catch_start): Make "block" const.
13365 * c-valprint.c (print_unpacked_pointer): Remove "block".
13366 * symmisc.c (dump_symtab_1): Make "b" const.
13367 (block_depth): Make "block" const.
13368 * d-exp.y (%union) <bval>: Remove.
13369 * cp-support.h (cp_lookup_rtti_type): Update.
13370 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13371 * psymtab.c (psym_lookup_symbol): Make "block" const.
13372 (maintenance_check_psymtabs): Make "b" const.
13373 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13374 (enumerate_locals, enumerate_args): Update.
13375 * python/py-symtab.c (stpy_global_block): Make "block" const.
13376 (stpy_static_block): Likewise.
13377 * inline-frame.c (block_starting_point_at): Make "new_block"
13378 const.
13379 * block.c (find_block_in_blockvector): Make return type const.
13380 (blockvector_for_pc_sect): Make "b" const.
13381 (find_block_in_blockvector): Make "b" const.
13382
13383 2019-03-23 Tom Tromey <tom@tromey.com>
13384
13385 * varobj.c (varobj_create): Update.
13386 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13387 * printcmd.c (display_command, do_one_display): Don't reset
13388 innermost_block.
13389 * parser-defs.h (enum innermost_block_tracker_type): Move to
13390 expression.h.
13391 (innermost_block): Update comment.
13392 * parse.c (parse_exp_1): Add tracker_types parameter.
13393 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13394 tracker_types parameter. Reset innermost_block.
13395 (parse_exp_in_context): Remove.
13396 (parse_expression_for_completion): Update.
13397 * objfiles.c (~objfile): Don't reset expression_context_block or
13398 innermost_block.
13399 * expression.h (enum innermost_block_tracker_type): Move from
13400 parser-defs.h.
13401 (parse_exp_1): Add tracker_types parameter.
13402 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13403 reset innermost_block.
13404
13405 2019-03-23 Tom Tromey <tom@tromey.com>
13406
13407 * objfiles.h: Include bcache.h.
13408
13409 2019-03-23 Tom Tromey <tom@tromey.com>
13410
13411 * linespec.c (get_current_search_block): Use
13412 scoped_restore_current_language.
13413 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13414
13415 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13416 Jiong Wang <jiong.wang@arm.com>
13417
13418 * aarch64-linux-tdep.c
13419 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13420 section.
13421 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13422
13423 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13424 Jiong Wang <jiong.wang@arm.com>
13425
13426 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13427 instructions.
13428 (aarch64_analyze_prologue_test): Add PACIASP test.
13429 (aarch64_prologue_prev_register): Unmask PC value.
13430
13431 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13432 Jiong Wang <jiong.wang@arm.com>
13433
13434 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13435 (aarch64_dwarf2_prev_register): Unmask PC value.
13436 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13437 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13438 DW_CFA_AARCH64_negate_ra_state.
13439 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13440
13441 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13442 Jiong Wang <jiong.wang@arm.com>
13443
13444 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13445 registers.
13446 (aarch64_pseudo_register_name): Likewise.
13447 (aarch64_pseudo_register_type): Likewise.
13448 (aarch64_pseudo_register_reggroup_p): Likewise.
13449 (aarch64_gdbarch_init): Add pauth registers.
13450 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13451 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13452 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13453 (struct gdbarch_tdep): Add regnum for ra_state.
13454
13455 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13456 Jiong Wang <jiong.wang@arm.com>
13457
13458 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13459
13460 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13461 Jiong Wang <jiong.wang@arm.com>
13462
13463 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13464 function.
13465 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13466 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13467 (aarch64_gdbarch_init): Add puth registers.
13468 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13469 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13470 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13471
13472 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13473 Jiong Wang <jiong.wang@arm.com>
13474
13475 * aarch64-linux-nat.c
13476 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13477 * aarch64-linux-tdep.c
13478 (aarch64_linux_core_read_description): Likewise.
13479 (aarch64_linux_get_hwcap): New function.
13480 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13481 (aarch64_linux_get_hwcap): New declaration.
13482
13483 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13484 Jiong Wang <jiong.wang@arm.com>
13485
13486 * aarch64-linux-nat.c
13487 (aarch64_linux_nat_target::read_description): Add pauth param.
13488 * aarch64-linux-tdep.c
13489 (aarch64_linux_core_read_description): Likewise.
13490 * aarch64-tdep.c (struct target_desc): Add in pauth.
13491 (aarch64_read_description): Add pauth param.
13492 (aarch64_gdbarch_init): Likewise.
13493 * aarch64-tdep.h (aarch64_read_description): Likewise.
13494 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13495 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13496 * features/Makefile: Add new files.
13497 * features/aarch64-pauth.c: New file.
13498 * features/aarch64-pauth.xml: New file.
13499
13500 2019-03-20 Tom Tromey <tromey@adacore.com>
13501
13502 * infrun.c (handle_inferior_event): Rename from
13503 handle_inferior_event_1. Create a scoped_value_mark.
13504 (handle_inferior_event): Remove.
13505
13506 2019-03-19 Tom Tromey <tromey@adacore.com>
13507
13508 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13509 * infrun.h (print_stop_event): Add "displays" parameter.
13510 * infrun.c (print_stop_event): Add "displays" parameter.
13511
13512 2019-03-19 Pedro Alves <palves@redhat.com>
13513
13514 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13515 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13516 to -1. Fix TABs vs spaces.
13517 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13518 * tui/tui-out.h (tui_ui_out) Add intro comments.
13519 <m_line, m_start_of_line>: In-class initialize, and add describing
13520 comment.
13521
13522 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13523
13524 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13525 variable names.
13526 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13527
13528 2019-03-18 Pedro Alves <palves@redhat.com>
13529 Eli Zaretskii <eliz@gnu.org>
13530
13531 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13532 m_line and m_start_of_line.
13533
13534 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13535
13536 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13537 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13538 it returns a newline. This fixes a regression in TU mode, whereby
13539 the next line is output on the same screen line as the user input.
13540
13541 2019-03-18 Tom Tromey <tromey@adacore.com>
13542
13543 * minsyms.c (minimal_symbol_reader::install): Remove call to
13544 obstack_blank.
13545
13546 2019-03-18 Pedro Alves <palves@redhat.com>
13547
13548 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13549 New globals.
13550 (apply_style): New, factored out from ...
13551 (apply_ansi_escape): ... this. Handle reverse video mode.
13552 (tui_set_reverse_mode): New function.
13553 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13554 * tui/tui-winsource.c (tui_show_source_line): Use
13555 tui_set_reverse_mode instead of setting A_STANDOUT.
13556 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13557 New setter methods.
13558
13559 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13560
13561 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13562 Handle tabs.
13563
13564 2019-03-18 Tom Tromey <tromey@adacore.com>
13565
13566 * ada-lang.c (empty_array): Add "high" parameter.
13567 (ada_evaluate_subexp): Update.
13568
13569 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13570
13571 * unittests/string_view-selftests.c: Define
13572 _initialize_string_view_selftests unconditionally.
13573
13574 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13575
13576 PR gdb/24350
13577 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13578
13579 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13580
13581 PR gdb/24351
13582 * windows-nat.c (display_selector): Fix format specifiers.
13583
13584 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13585
13586 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13587 tui_refill_source_window instead of tui_refresh_win, to update the
13588 current execution line. This fixes redisplay of the current line
13589 when stepping through the code with "next" or "step".
13590
13591 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13592
13593 * source-cache.c (source_cache::get_source_lines): Call
13594 find_source_lines to initialize s->nlines. This fixes vertical
13595 scrolling of TUI source window when the DOWN arrow is pressed.
13596
13597 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13598
13599 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13600 linux-thread-db.c (_initialize_thread_db): Likewise.
13601
13602 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13603
13604 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13605 wclrtoeol in tui_show_source_line". This reverts changes made in
13606 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13607
13608 2019-03-15 Tom Tromey <tom@tromey.com>
13609
13610 * symtab.h (struct minimal_symbol): Derive from
13611 general_symbol_info.
13612 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13613 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13614 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13615 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13616 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13617 (MSYMBOL_SEARCH_NAME): Update.
13618 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13619 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13620 * minsyms.c (minimal_symbol_reader::record_full): Update.
13621
13622 2019-03-15 Tom Tromey <tom@tromey.com>
13623
13624 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13625
13626 2019-03-15 Tom Tromey <tom@tromey.com>
13627
13628 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13629 unique_xmalloc_ptr.
13630 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13631 Update.
13632 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13633 (build_minimal_symbol_hash_tables)
13634 (minimal_symbol_reader::install): Update.
13635
13636 2019-03-15 Tom Tromey <tom@tromey.com>
13637
13638 * symtab.c (create_demangled_names_hash): Update.
13639 (symbol_set_names): Update.
13640 * objfiles.h (struct objfile_per_bfd_storage)
13641 <demangled_names_hash>: Now an htab_up.
13642 * objfiles.c (objfile_per_bfd_storage): Simplify.
13643
13644 2019-03-15 Tom Tromey <tom@tromey.com>
13645
13646 * objfiles.h (struct objfile_per_bfd_storage): Declare
13647 destructor.
13648 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13649 New.
13650 (get_objfile_bfd_data): Use new. Don't initialize
13651 language_of_main.
13652 (free_objfile_per_bfd_storage): Remove.
13653 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13654
13655 2019-03-15 Tom Tromey <tom@tromey.com>
13656
13657 * symfile.c (reread_symbols): Update.
13658 * objfiles.c (objfile::objfile): Update.
13659 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13660 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13661 comment.
13662 (minimal_symbol_reader::install): Update.
13663 (terminate_minimal_symbol_table): Remove.
13664 * jit.c (jit_object_close_impl): Update.
13665
13666 2019-03-15 Tom Tromey <tom@tromey.com>
13667
13668 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13669 initializations.
13670
13671 2019-03-15 Tom Tromey <tom@tromey.com>
13672
13673 * objfiles.h (struct objfile_per_bfd_storage)
13674 <demangled_hash_languages>: Now a bitset.
13675 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13676 (lookup_minimal_symbol): Update.
13677
13678 2019-03-15 Tom Tromey <tom@tromey.com>
13679
13680 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13681 Don't return the symbol.
13682 * coffread.c (record_minimal_symbol): Use record_full.
13683
13684 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13685
13686 The MS-Windows port of ncurses fails to switch to a color pair if
13687 one or both of the colors are the implicit default colors. This
13688 change records the default colors when TUI is initialized, and
13689 then specifies them explicitly when a color pair uses the default
13690 colors. This allows color styling in TUI mode on MS-Windows.
13691
13692 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13693 ncurses_norm_attr.
13694 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13695 colors in ncurses_norm_attr.
13696 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13697 "none", replace it with the default color recorded in
13698 ncurses_norm_attr.
13699
13700 2019-03-14 Tom Tromey <tromey@adacore.com>
13701
13702 * source-cache.h (class source_cache) <get_source_lines>: Return
13703 std::string.
13704 * source-cache.c (source_cache::extract_lines): Handle case where
13705 first_pos==npos. Return std::string.
13706 (source_cache::get_source_lines): Update.
13707
13708 2019-03-14 Tom Tromey <tromey@adacore.com>
13709
13710 * NEWS: Add item for "style sources" commands.
13711 * source-cache.c (source_cache::get_source_lines): Check
13712 source_styling.
13713 * cli/cli-style.c (source_styling): New global.
13714 (_initialize_cli_style): Add "style sources" commands.
13715 (show_style_sources): New function.
13716 * cli/cli-style.h (source_styling): Declare.
13717
13718 2019-03-14 Pedro Alves <palves@redhat.com>
13719 Tom Tromey <tromey@adacore.com>
13720
13721 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13722 * tui/tui-winsource.c (tui_refill_source_window): New function,
13723 from...
13724 (tui_horizontal_source_scroll): ... here. Move some logic.
13725 * cli/cli-style.c (set_style_enabled): Notify new observable.
13726 * tui/tui-hooks.c (tui_redisplay_source): New function.
13727 (tui_attach_detach_observers): Attach or detach
13728 tui_redisplay_source.
13729 * observable.h (source_styling_changed): New observable.
13730 * observable.c: Define source_styling_changed observable.
13731
13732 2019-03-13 Tom Tromey <tromey@adacore.com>
13733
13734 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13735 (i386_gnu_nat_target::store_registers): Update.
13736 * target-debug.h (target_debug_print_std_string): New macro.
13737 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13738 * windows-tdep.c (display_one_tib): Update.
13739 * tui/tui-stack.c (tui_make_status_line): Update.
13740 * top.c (print_inferior_quit_action): Update.
13741 * thread.c (thr_try_catch_cmd): Update.
13742 (add_thread_with_info): Update.
13743 (thread_target_id_str): Update.
13744 (thr_try_catch_cmd): Update.
13745 (thread_command): Update.
13746 (thread_find_command): Update.
13747 * record-btrace.c (record_btrace_target::info_record)
13748 (record_btrace_resume_thread, record_btrace_target::resume)
13749 (record_btrace_cancel_resume, record_btrace_step_thread)
13750 (record_btrace_target::wait, record_btrace_target::wait)
13751 (record_btrace_target::wait, record_btrace_target::stop): Update.
13752 * progspace.c (print_program_space): Update.
13753 * process-stratum-target.c
13754 (process_stratum_target::thread_address_space): Update.
13755 * linux-fork.c (linux_fork_mourn_inferior)
13756 (detach_checkpoint_command, info_checkpoints_command)
13757 (linux_fork_context): Update.
13758 (linux_fork_detach): Update.
13759 (class scoped_switch_fork_info): Update.
13760 (delete_checkpoint_command): Update.
13761 * infrun.c (follow_fork_inferior): Update.
13762 (follow_fork_inferior): Update.
13763 (proceed_after_vfork_done): Update.
13764 (handle_vfork_child_exec_or_exit): Update.
13765 (follow_exec): Update.
13766 (displaced_step_prepare_throw): Update.
13767 (displaced_step_restore): Update.
13768 (start_step_over): Update.
13769 (resume_1): Update.
13770 (clear_proceed_status_thread): Update.
13771 (proceed): Update.
13772 (print_target_wait_results): Update.
13773 (do_target_wait): Update.
13774 (context_switch): Update.
13775 (stop_all_threads): Update.
13776 (restart_threads): Update.
13777 (finish_step_over): Update.
13778 (handle_signal_stop): Update.
13779 (switch_back_to_stepped_thread): Update.
13780 (keep_going_pass_signal): Update.
13781 (print_exited_reason): Update.
13782 (normal_stop): Update.
13783 * inferior.c (inferior_pid_to_str): Change return type.
13784 (print_selected_inferior): Update.
13785 (add_inferior): Update.
13786 (detach_inferior): Update.
13787 * dummy-frame.c (fprint_dummy_frames): Update.
13788 * dcache.c (dcache_info_1): Update.
13789 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13790 (btrace_fetch, btrace_clear): Update.
13791 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13792 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13793 type.
13794 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13795 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13796 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13797 * gdbarch.c, gdbarch.h: Rebuild.
13798 * gdbarch.sh (core_pid_to_str): Change return type.
13799 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13800 return type.
13801 (windows_nat_target::pid_to_str): Change return type.
13802 (windows_delete_thread): Update.
13803 (windows_nat_target::attach): Update.
13804 (windows_nat_target::files_info): Update.
13805 * target-delegates.c: Rebuild.
13806 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13807 return type.
13808 (sol_thread_target::pid_to_str): Change return type.
13809 * remote.c (class remote_target) <pid_to_str>: Change return
13810 type.
13811 (remote_target::pid_to_str): Change return type.
13812 (extended_remote_target::attach, remote_target::remote_stop_ns)
13813 (remote_target::remote_notif_remove_queued_reply)
13814 (remote_target::push_stop_reply, remote_target::disable_btrace):
13815 Update.
13816 (extended_remote_target::attach): Update.
13817 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13818 type.
13819 (gdbsim_target::pid_to_str): Change return type.
13820 * ravenscar-thread.c (struct ravenscar_thread_target)
13821 <pid_to_str>: Change return type.
13822 (ravenscar_thread_target::pid_to_str): Change return type.
13823 * procfs.c (class procfs_target) <pid_to_str>: Change return
13824 type.
13825 (procfs_target::pid_to_str): Change return type.
13826 (procfs_target::attach): Update.
13827 (procfs_target::detach): Update.
13828 (procfs_target::fetch_registers): Update.
13829 (procfs_target::store_registers): Update.
13830 (procfs_target::wait): Update.
13831 (procfs_target::files_info): Update.
13832 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13833 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13834 return type.
13835 (nto_procfs_target::pid_to_str): Change return type.
13836 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13837 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13838 return type.
13839 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13840 (exit_lwp): Update.
13841 (attach_proc_task_lwp_callback, get_detach_signal)
13842 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13843 (linux_nat_target::resume, wait_lwp, stop_callback)
13844 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13845 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13846 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13847 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13848 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13849 type.
13850 (inf_ptrace_target::attach): Update.
13851 (inf_ptrace_target::files_info): Update.
13852 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13853 type.
13854 (go32_nat_target::pid_to_str): Change return type.
13855 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13856 (gnu_nat_target::wait): Update.
13857 (gnu_nat_target::wait): Update.
13858 (gnu_nat_target::resume): Update.
13859 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13860 (fbsd_nat_target::wait): Update.
13861 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13862 type.
13863 (darwin_nat_target::attach): Update.
13864 * corelow.c (class core_target) <pid_to_str>: Change return type.
13865 (core_target::pid_to_str): Change return type.
13866 * target.c (normal_pid_to_str): Change return type.
13867 (default_pid_to_str): Likewise.
13868 (target_pid_to_str): Change return type.
13869 (target_translate_tls_address): Update.
13870 (target_announce_detach): Update.
13871 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13872 return type.
13873 (bsd_uthread_target::pid_to_str): Change return type.
13874 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13875 type.
13876 (bsd_kvm_target::pid_to_str): Change return type.
13877 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13878 return type.
13879 (aix_thread_target::pid_to_str): Change return type.
13880 * target.h (struct target_ops) <pid_to_str>: Change return type.
13881 (target_pid_to_str, normal_pid_to_str): Likewise.
13882 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13883 type.
13884 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13885 type.
13886 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13887 return type.
13888 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13889 type.
13890 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13891 type.
13892 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13893 return type.
13894
13895 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13896
13897 * NEWS: Mention that the new default MI version is 3. Mention
13898 changes to the output of commands and events that deal with
13899 multi-location breakpoints.
13900 * breakpoint.c: Include "mi/mi-out.h".
13901 (print_one_breakpoint): Change output syntax if using MI version
13902 >= 3.
13903 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13904 New.
13905 (mi_multi_location_breakpoint_output_fixed): New.
13906 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13907 (mi_cmd_fix_multi_location_breakpoint_output): New.
13908 (mi_multi_location_breakpoint_output_fixed): New.
13909 * mi/mi-cmds.c (mi_cmds): Register command
13910 -fix-multi-location-breakpoint-output.
13911 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13912 interpreter "mi".
13913
13914 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13915
13916 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13917 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13918 instantiate mi_ui_out based on interpreter name.
13919 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13920 * mi/mi-main.c (mi_load_progress): Likewise.
13921
13922 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13923
13924 * NEWS: Combine separate "New targets" sections for 8.3.
13925
13926 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13927
13928 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13929 (ppcfbsd_init_abi): Install gdbarch
13930 "fetch_tls_load_module_address" and "get_thread_local_address"
13931 methods.
13932
13933 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13934
13935 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13936 (riscv_fbsd_init_abi): Install gdbarch
13937 "fetch_tls_load_module_address" and "get_thread_local_address"
13938 methods.
13939
13940 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13941
13942 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13943 (i386fbsd_init_abi): Install gdbarch
13944 "fetch_tls_load_module_address" and "get_thread_local_address"
13945 methods.
13946
13947 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13948
13949 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13950 (amd64fbsd_init_abi): Install gdbarch
13951 "fetch_tls_load_module_address" and "get_thread_local_address"
13952 methods.
13953
13954 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13955
13956 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13957 (struct fbsd_pspace_data): New type.
13958 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13959 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13960 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13961 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13962 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13963
13964 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13965
13966 * gdbtypes.c (lookup_struct_elt): New function.
13967 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13968 * gdbtypes.h (struct struct_elt): New type.
13969 (lookup_struct_elt): New prototype.
13970
13971 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13972
13973 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13974 remove disabled code block.
13975
13976 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13977
13978 * gdbarch.sh (get_thread_local_address): New method.
13979 * gdbarch.h, gdbarch.c: Regenerate.
13980 * target.c (target_translate_tls_address): Use
13981 gdbarch_get_thread_local_address if present instead of
13982 target::get_thread_local_address.
13983
13984 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13985
13986 * target.h (target::get_thread_local_address): Update comment.
13987
13988 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13989
13990 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13991 objfile->separate_debug_objfile_backlink if not NULL.
13992
13993 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13994
13995 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13996 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13997 (amd64bsd_store_inferior_registers): Likewise.
13998 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13999 Enable segment base registers.
14000 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14001 PT_GETFSBASE and PT_GETGSBASE.
14002 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14003 PT_SETGSBASE.
14004 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14005 segment base registers.
14006 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14007
14008 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14009
14010 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14011 Update calls to i386_target_description to add 'segments'
14012 parameter.
14013 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14014 add segment base registers.
14015 * arch/i386.c (i386_create_target_description): Add 'segments'
14016 parameter to enable segment base registers.
14017 * arch/i386.h (i386_create_target_description): Likewise.
14018 * features/i386/32bit-segments.xml: New file.
14019 * features/i386/32bit-segments.c: Generate.
14020 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14021 call to i386_target_description to add 'segments' parameter.
14022 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14023 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14024 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14025 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14026 if feature is present.
14027 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14028 Add 'segments' parameter to call to i386_target_description.
14029 (i386_target_description): Add 'segments' parameter to enable
14030 segment base registers.
14031 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14032 to call to i386_target_description.
14033 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14034 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14035 Define I386_NUM_REGS.
14036 (i386_target_description): Add 'segments' parameter to enable
14037 segment base registers.
14038
14039 2019-03-12 Eli Zaretskii <eliz@gnu.org>
14040
14041 PR/24325
14042 * source-cache.c: #undef open and close, to avoid unresolved
14043 externals during linking.
14044
14045 2019-03-12 Tom Tromey <tromey@adacore.com>
14046
14047 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14048 const. Add initializers.
14049 (_initialize_remote): Don't initialize ptid globals.
14050
14051 2019-03-12 Pedro Alves <palves@redhat.com>
14052
14053 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14054
14055 2019-03-12 Pedro Alves <palves@redhat.com>
14056
14057 * cp-name-parser.y (main): Remove unused 'len' variable.
14058
14059 2019-03-12 Tom Tromey <tromey@adacore.com>
14060
14061 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14062 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14063
14064 2019-03-12 Tom Tromey <tromey@adacore.com>
14065
14066 * linux-nat.c (iterate_over_lwps): Update.
14067 (stop_callback): Remove parameter.
14068 (stop_wait_callback, detach_callback, resume_set_callback)
14069 (select_singlestep_lwp_callback, set_ignore_sigint)
14070 (status_callback, resumed_callback, resume_clear_callback)
14071 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14072 data parameter.
14073 (linux_nat_target::detach, linux_nat_target::resume)
14074 (linux_stop_and_wait_all_lwps, select_event_lwp)
14075 (linux_nat_filter_event, linux_nat_wait_1)
14076 (linux_nat_target::kill, linux_nat_target::stop)
14077 (linux_nat_target::stop): Update.
14078 (linux_nat_resume_callback): Change type.
14079 (resume_stopped_resumed_lwps, count_events_callback)
14080 (select_event_lwp_callback): Likewise.
14081 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14082 * arm-linux-nat.c (struct update_registers_data): Remove.
14083 (update_registers_callback): Change type.
14084 (arm_linux_insert_hw_breakpoint1): Update.
14085 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14086 parameter.
14087 (x86_linux_dr_set_addr): Update.
14088 (x86_linux_dr_set_control): Update.
14089 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14090 (iterate_over_lwps): Use gdb::function_view.
14091 * nat/aarch64-linux-hw-point.c (struct
14092 aarch64_dr_update_callback_param): Remove.
14093 (debug_reg_change_callback): Change type.
14094 (aarch64_notify_debug_reg_change): Update.
14095 * s390-linux-nat.c (s390_refresh_per_info): Update.
14096
14097 2019-03-11 Tom Tromey <tromey@adacore.com>
14098
14099 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14100 redundant assignment to "this_cu".
14101
14102 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14103
14104 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14105
14106 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14107
14108 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14109 from...
14110 (rank_one_type): ... this.
14111
14112 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14113
14114 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14115 from...
14116 (rank_one_type): ... this.
14117
14118 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14119
14120 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14121 from...
14122 (rank_one_type): ... this.
14123
14124 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14125
14126 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14127 from...
14128 (rank_one_type): ... this.
14129
14130 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14131
14132 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14133 from...
14134 (rank_one_type): ... this.
14135
14136 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14137
14138 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14139 from...
14140 (rank_one_type): ... this.
14141
14142 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14143
14144 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14145 from...
14146 (rank_one_type): ... this.
14147
14148 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14149
14150 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14151 from...
14152 (rank_one_type): ... this.
14153
14154 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14155
14156 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14157 from...
14158 (rank_one_type): ... this.
14159
14160 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14161
14162 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14163 from...
14164 (rank_one_type): ... this.
14165
14166 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14167
14168 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14169 from...
14170 (rank_one_type): ... this.
14171
14172 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14173
14174 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14175 from...
14176 (rank_one_type): ... this.
14177
14178 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14179
14180 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14181 inferior-events' shows the example events.
14182
14183 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14184
14185 Support styling on native MS-Windows console
14186
14187 PR/24315
14188 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14189 on MS-Windows if $TERM is not defined.
14190
14191 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14192
14193 * posix-hdep.c (gdb_console_fputs):
14194 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14195 functions.
14196 * ui-file.h (gdb_console_fputs): Add prototype.
14197
14198 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14199 back to fputs only if the former returns zero.
14200
14201 2019-03-07 Tom Tromey <tom@tromey.com>
14202
14203 * symmisc.c (print_symbol_bcache_statistics): Update.
14204 (print_objfile_statistics): Update.
14205 * symfile.c (allocate_symtab): Update.
14206 * stabsread.c: Don't include bcache.h.
14207 * psymtab.h (struct psymbol_bcache): Don't declare.
14208 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14209 (psymbol_bcache_init, psymbol_bcache_free)
14210 (psymbol_bcache_get_bcache): Don't declare.
14211 * psymtab.c (struct psymbol_bcache): Remove.
14212 (psymtab_storage::psymtab_storage): Update.
14213 (psymtab_storage::~psymtab_storage): Update.
14214 (psymbol_bcache_init, psymbol_bcache_free)
14215 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14216 (add_psymbol_to_bcache): Update.
14217 (allocate_psymtab): Update.
14218 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14219 macro_cache>: No longer pointers.
14220 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14221 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14222 * macrotab.c (macro_bcache): Update.
14223 * macroexp.c: Don't include bcache.h.
14224 * gdbtypes.c (check_types_worklist): Update.
14225 (types_deeply_equal): Remove TRY/CATCH. Update.
14226 * elfread.c (elf_symtab_read): Update.
14227 * dwarf2read.c: Don't include bcache.h.
14228 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14229 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14230 (print_bcache_statistics, bcache_memory_used): Don't declare.
14231 (struct bcache): Move from bcache.c. Add constructor, destructor,
14232 methods. Rename all data members.
14233 * bcache.c (struct bcache): Move to bcache.h.
14234 (bcache::expand_hash_table): Rename from expand_hash_table.
14235 (bcache): Remove.
14236 (bcache::insert): Rename from bcache_full.
14237 (bcache::compare): Rename from bcache_compare.
14238 (bcache_xmalloc): Remove.
14239 (bcache::~bcache): Rename from bcache_xfree.
14240 (bcache::print_statistics): Rename from print_bcache_statistics.
14241 (bcache::memory_used): Rename from bcache_memory_used.
14242
14243 2019-03-07 Pedro Alves <palves@redhat.com>
14244
14245 * infrun.c (normal_stop): Also check for
14246 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14247
14248 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14249
14250 * f-lang.c (value_from_host_double): Moved to...
14251 * value.c (value_from_host_double): ...here.
14252 * value.h (value_from_host_double): Declare.
14253 * guile/scm-math.c (vlscm_convert_typed_number): Use
14254 value_from_host_double.
14255 (vlscm_convert_number): Likewise.
14256 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14257 * python/py-value.c (convert_value_from_python): Likewise.
14258
14259 2019-03-06 Tom Tromey <tom@tromey.com>
14260
14261 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14262
14263 2019-03-06 Tom Tromey <tom@tromey.com>
14264
14265 * utils.h (free_current_contents): Don't declare.
14266 * utils.c (free_current_contents): Remove.
14267
14268 2019-03-06 Tom Tromey <tom@tromey.com>
14269
14270 * top.c (quit_force): Update.
14271 * main.c (captured_command_loop): Update.
14272 * common/new-op.c (operator new): Update.
14273 * common/common-exceptions.c (struct catcher)
14274 <save_cleanup_chain>: Remove member.
14275 (exceptions_state_mc_init): Update.
14276 (exception_try_scope_entry): Return nullptr.
14277 (exception_try_scope_exit, exception_rethrow)
14278 (throw_exception_sjlj, throw_exception_cxx): Update.
14279 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14280 (all_cleanups, do_cleanups, discard_cleanups)
14281 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14282 (restore_cleanups, restore_final_cleanups): Don't declare.
14283 (do_final_cleanups): Remove parameter.
14284 * common/cleanups.c (cleanup_chain, make_cleanup)
14285 (make_cleanup_dtor, all_cleanups, do_cleanups)
14286 (discard_my_cleanups, discard_cleanups)
14287 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14288 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14289 (null_cleanup): Remove.
14290 (do_final_cleanups): Remove parameter.
14291
14292 2019-03-06 Tom Tromey <tom@tromey.com>
14293
14294 * remote.c (remote_target::remote_parse_stop_reply): Use
14295 unique_xmalloc_ptr.
14296
14297 2019-03-06 Tom Tromey <tom@tromey.com>
14298
14299 * stabsread.c (struct stabs_field_info): Rename from field_info.
14300 <list, fnlist>: Add initializers.
14301 <obstack>: New member.
14302 (read_member_functions, read_struct_fields, read_baseclasses):
14303 Allocate on obstack. Don't use cleanups.
14304 (read_one_struct_field, read_member_functions, read_struct_fields)
14305 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14306 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14307 (read_struct_type): Update.
14308
14309 2019-03-06 Tom Tromey <tom@tromey.com>
14310
14311 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14312 * common/filestuff.h (make_cleanup_close): Don't declare.
14313 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14314 Remove.
14315
14316 2019-03-06 Tom Tromey <tom@tromey.com>
14317
14318 * solib-aix.c: Use make_scope_exit.
14319
14320 2019-03-06 Tom Tromey <tom@tromey.com>
14321
14322 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14323 Use make_scope_exit.
14324
14325 2019-03-06 Tom Tromey <tom@tromey.com>
14326
14327 * solib-svr4.c (disable_probes_interface): Remove parameter.
14328 (svr4_handle_solib_event): Use make_scope_exit.
14329
14330 2019-03-06 Tom Tromey <tom@tromey.com>
14331
14332 * remote.c (struct stop_reply_deleter): Remove.
14333 (stop_reply_up): Update.
14334 (struct stop_reply): Derive from notif_event. Don't typedef.
14335 <regcache>: Now a std::vector.
14336 (stop_reply_xfree): Remove.
14337 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14338 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14339 (remote_target::discard_pending_stop_replies): Use delete.
14340 (remote_target::remote_parse_stop_reply): Update.
14341 (remote_target::process_stop_reply): Update.
14342 * remote-notif.h (struct notif_event): Add virtual destructor.
14343 Remove "dtr" member.
14344 (struct notif_client) <alloc_event>: Return a unique_ptr.
14345 (notif_event_xfree): Don't declare.
14346 (notif_event_up): New typedef.
14347 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14348 (notif_event_xfree, do_notif_event_xfree): Remove.
14349 (remote_notif_state_xfree): Update.
14350
14351 2019-03-06 Tom Tromey <tom@tromey.com>
14352
14353 * infrun.c (displaced_step_clear_cleanup): Now a
14354 forward_scope_exit type.
14355 (displaced_step_prepare_throw): Update.
14356 (displaced_step_fixup): Update.
14357
14358 2019-03-06 Tom Tromey <tom@tromey.com>
14359
14360 * inferior.h (class inferior): Update comment.
14361 * gdbthread.h (class thread_info): Update comment.
14362
14363 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14364 Tom Tromey <tom@tromey.com>
14365
14366 * stabsread.h (struct stab_section_list): Remove.
14367 (coffstab_build_psymtabs): Update.
14368 * dbxread.c (symbuf_sections): Now a std::vector.
14369 (sect_idx): New global.
14370 (fill_symbuf): Update.
14371 (coffstab_build_psymtabs): Change type of stabsects parameter.
14372 Update.
14373 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14374 std::vector.
14375 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14376 (coff_locate_sections): Update.
14377 (coff_symfile_read): Remove cleanups. Update.
14378 (init_stringtab): Add storage parameter.
14379 (free_stringtab, free_stringtab_cleanup): Remove.
14380 (init_lineno): Add storage parameter.
14381 (free_linetab, free_linetab_cleanup): Remove.
14382
14383 2019-03-06 Pedro Alves <palves@redhat.com>
14384
14385 * linux-fork.c (fork_info::clobber_regs): Delete.
14386 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14387 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14388 comment. Adjust.
14389 (scoped_switch_fork_info::scoped_switch_fork_info)
14390 (checkpoint_command, linux_fork_context): Adjust
14391 fork_save_infrun_state calls.
14392
14393 2019-03-06 Pedro Alves <palves@redhat.com>
14394
14395 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14396 (inf_has_multiple_threads): Return 'bool' and rewrite using
14397 inferior_info::threads().
14398
14399 2019-03-06 Pedro Alves <palves@redhat.com>
14400
14401 * linux-fork.c: Include <list>.
14402 (fork_list): Now a std::list instance.
14403 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14404 (forks_exist_p, find_last_fork): Adjust.
14405 (new_fork): Delete.
14406 (one_fork_p): New.
14407 (add_fork): Adjust.
14408 (free_fork): Delete, folded into fork_info::~fork_info().
14409 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14410 Adjust.
14411 (init_fork_list): Delete.
14412 (linux_fork_killall, linux_fork_mourn_inferior)
14413 (linux_fork_detach, info_checkpoints_command): Adjust.
14414 (_initialize_linux_fork): No longer call init_fork_list.
14415
14416 2019-03-06 Pedro Alves <palves@redhat.com>
14417
14418 * linux-fork.c (new_fork): New, split out of ...
14419 (add_fork): ... this. Return void. Move "first fork" special
14420 case from here, to ...
14421 (checkpoint_command): ... here.
14422 * linux-linux.h (add_fork): Return void.
14423
14424 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14425
14426 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14427
14428 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14429 Chris January <chris.january@arm.com>
14430 David Lecomber <david.lecomber@arm.com>
14431
14432 * f-exp.y: New token, UNOP_INTRINSIC.
14433 (exp): New pattern using UNOP_INTRINSIC token.
14434 (f77_keywords): Add 'abs' keyword.
14435 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14436 (value_from_host_double): New function.
14437 (evaluate_subexp_f): Support UNOP_ABS.
14438
14439 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14440
14441 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14442 types.
14443
14444 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14445
14446 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14447 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14448 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14449
14450 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14451
14452 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14453
14454 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14455 Chris January <chris.january@arm.com>
14456
14457 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14458 * f-exp.y: Define 'KIND' token.
14459 (exp): New pattern for KIND expressions.
14460 (ptype): Handle types with a kind extension.
14461 (direct_abs_decl): Extend to spot kind extensions.
14462 (f77_keywords): Add 'kind' to the list.
14463 (push_kind_type): New function.
14464 (convert_to_kind_type): New function.
14465 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14466 * parse.c (operator_length_standard): Likewise.
14467 * parser-defs.h (enum type_pieces): Add tp_kind.
14468 * std-operator.def: Add UNOP_KIND.
14469
14470 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14471
14472 * f-exp.y (f_parse): Set yydebug.
14473
14474 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14475
14476 * f-lang.c (evaluate_subexp_f): New function.
14477 (exp_descriptor_f): New global.
14478 (f_language_defn): Use exp_descriptor_f instead of
14479 exp_descriptor_standard.
14480
14481 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14482
14483 * f-exp.y (struct token): Add comments.
14484 (dot_ops): Remove uppercase versions and the end marker.
14485 (f77_keywords): Likewise.
14486 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14487 entries in the dot_ops array are case insensitive, and use
14488 strncasecmp to compare strings. Also some whitespace cleanup in
14489 this area. Similar for the f77_keywords array, except entries in
14490 this list might be case sensitive.
14491
14492 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14493
14494 * f-exp.y (struct f77_boolean_val): Add comments.
14495 (boolean_values): Remove uppercase versions, and end marker.
14496 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14497 and use strncasecmp to achieve case insensitivity. Additionally,
14498 perform whitespace cleanup around this code.
14499
14500 2019-03-06 Tom Tromey <tromey@adacore.com>
14501
14502 * remote-sim.c (gdbsim_target_open): Use result of
14503 gdb_argv::release.
14504
14505 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14506 Dirk Schubert <dirk.schubert@arm.com>
14507 Chris January <chris.january@arm.com>
14508
14509 * eval.c (evaluate_subexp_standard): Call Fortran argument
14510 wrapping logic.
14511 * f-lang.c (struct value): A value which can be passed into a
14512 Fortran function call.
14513 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14514 where appropriate.
14515 (struct type): Value ready for a Fortran function call.
14516 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14517 is needed.
14518 * f-lang.h (fortran_argument_convert): Declaration.
14519 (fortran_preserve_arg_pointer): Declaration.
14520 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14521
14522 2019-03-05 Tom Tromey <tromey@adacore.com>
14523
14524 * python/py-prettyprint.c (print_string_repr): Remove #if.
14525 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14526
14527 2019-03-05 Tom Tromey <tromey@adacore.com>
14528
14529 * target.c (the_dummy_target): Move later. Change type to
14530 "dummy_target".
14531 (initialize_targets): Don't initialize the_dummy_target.
14532
14533 2019-03-05 Tom Tromey <tromey@adacore.com>
14534
14535 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14536 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14537
14538 2019-03-05 Tom Tromey <tromey@adacore.com>
14539
14540 * windows-nat.c (windows_nat_target::attach)
14541 (windows_nat_target::detach): Don't call gdb_flush.
14542 * valprint.c (generic_val_print, val_print, val_print_string):
14543 Don't call gdb_flush.
14544 * utils.c (defaulted_query): Don't call gdb_flush.
14545 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14546 * target.c (target_announce_detach): Don't call gdb_flush.
14547 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14548 * remote.c (extended_remote_target::attach): Don't call
14549 gdb_flush.
14550 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14551 * printcmd.c (do_examine): Don't call gdb_flush.
14552 (info_display_command): Don't call gdb_flush.
14553 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14554 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14555 * memattr.c (info_mem_command): Don't call gdb_flush.
14556 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14557 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14558 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14559 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14560 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14561 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14562 (gnu_nat_target::detach): Don't call gdb_flush.
14563 * f-valprint.c (f_val_print): Don't call gdb_flush.
14564 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14565 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14566 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14567 gdb_flush.
14568 * c-valprint.c (c_val_print): Don't call gdb_flush.
14569 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14570
14571 2019-03-05 Tom Tromey <tromey@adacore.com>
14572
14573 * varobj.c (update_dynamic_varobj_children): Update.
14574 (install_default_visualizer): Use reset, not release.
14575 * value.c (set_internalvar): Update.
14576 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14577 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14578 ATTRIBUTE_UNUSED_RESULT.
14579
14580 2019-03-05 Tom Tromey <tromey@adacore.com>
14581
14582 * remote.c (class scoped_remote_fd) <release>: Add
14583 ATTRIBUTE_UNUSED_RESULT.
14584
14585 2019-03-05 Tom Tromey <tromey@adacore.com>
14586
14587 * macroexp.c (struct macro_buffer) <release>: Add
14588 ATTRIBUTE_UNUSED_RESULT.
14589
14590 2019-03-05 Tom Tromey <tromey@adacore.com>
14591
14592 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14593 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14594 ATTRIBUTE_UNUSED_RESULT.
14595
14596 2019-03-05 Tom Tromey <tromey@adacore.com>
14597
14598 * common/scoped_fd.h (class scoped_fd) <release>: Add
14599 ATTRIBUTE_UNUSED_RESULT.
14600
14601 2019-03-05 Tom Tromey <tromey@adacore.com>
14602
14603 * parser-defs.h (struct parser_state) <release>: Add
14604 ATTRIBUTE_UNUSED_RESULT.
14605
14606 2019-03-05 Tom Tromey <tromey@adacore.com>
14607
14608 * utils.h (class gdb_argv) <release>: Add
14609 ATTRIBUTE_UNUSED_RESULT.
14610 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14611
14612 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14613
14614 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14615 for-loop range, to avoid compiler warnings.
14616
14617 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14618 avoid compiler warnings about unused variables.
14619
14620 * NEWS: Mention end of support for native debugging on MS-Windows
14621 before XP.
14622
14623 PR gdb/24292
14624 * common/netstuff.c:
14625 * gdbserver/gdbreplay.c
14626 * gdbserver/remote-utils.c:
14627 * ser-tcp.c:
14628 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14629 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14630 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14631 'getaddrinfo' and 'freeaddrinfo' were not available before
14632 Windows XP, and mingw.org's MinGW headers by default define
14633 _WIN32_WINNT to 0x500.
14634
14635 2019-03-01 Gary Benson <gbenson@redhat.com>
14636
14637 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14638
14639 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14640 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14641
14642 PR gdb/8527
14643 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14644 set_sigint_trap, clear_sigint_trap.
14645
14646 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14647
14648 * target.c (target_detach): Clear the regcache and the
14649 frame cache.
14650
14651 2019-02-27 Pedro Alves <palves@redhat.com>
14652
14653 * utils.c (set_screen_size): When we cap the height/width sizes,
14654 tweak the corresponding command variable to show "unlimited":
14655
14656 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14657 Pedro Alves <palves@redhat.com>
14658
14659 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14660 before calling rl_set_screen_size.
14661
14662 2019-02-27 Tom Tromey <tromey@adacore.com>
14663
14664 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14665 define.
14666 * python/py-value.c: Remove Python 2.4 workaround.
14667 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14668 workaround.
14669 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14670 Python 2.4 workaround.
14671 * python/python-internal.h: Remove Python 2.4 comment.
14672 (Py_ssize_t): Don't define.
14673 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14674 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14675 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14676 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14677 * python/python.c (do_start_initialization): Remove Python 2.4
14678 workaround.
14679 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14680 (print_children): Remove Python 2.4 workaround.
14681 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14682 workaround.
14683 (CHARBUFFERPROC_NAME): Remove.
14684 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14685 Python 2.4 workaround.
14686
14687 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14688
14689 * NEWS: Note minimum Python version.
14690
14691 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14692
14693 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14694 code from these functions. Remove corresponding ifdefs. Use
14695 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14696 Remove gotos and target of gotos.
14697 (infpy_search_memory): Likewise.
14698
14699 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14700
14701 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14702 (hppa_gdbarch_init): Don't register deleted functions with
14703 gdbarch.
14704
14705 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14706
14707 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14708 (h8300_unwind_sp): Delete.
14709 (h8300_dummy_id): Delete.
14710 (h8300_gdbarch_init): Don't register deleted functions with
14711 gdbarch.
14712
14713 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14714
14715 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14716 (ft32_unwind_pc): Delete.
14717 (ft32_unwind_sp): Delete.
14718 (ft32_gdbarch_init): Don't register deleted functions with
14719 gdbarch.
14720
14721 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14722
14723 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14724 (frv_unwind_pc): Delete.
14725 (frv_unwind_sp): Delete.
14726 (frv_gdbarch_init): Don't register deleted functions with
14727 gdbarch.
14728
14729 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14730
14731 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14732 (riscv_unwind_pc): Delete.
14733 (riscv_unwind_sp): Delete.
14734 (riscv_gdbarch_init): Don't register deleted functions with
14735 gdbarch.
14736
14737 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14738
14739 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14740 (csky_unwind_pc): Delete.
14741 (csky_unwind_sp): Delete.
14742 (csky_gdbarch_init): Don't register deleted functions with
14743 gdbarch.
14744
14745 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14746
14747 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14748 (cris_unwind_pc): Delete.
14749 (cris_unwind_sp): Delete.
14750 (cris_gdbarch_init): Don't register deleted functions with
14751 gdbarch.
14752
14753 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14754
14755 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14756 (bfin_unwind_pc): Delete.
14757 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14758
14759 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14760
14761 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14762 (arm_unwind_pc): Delete.
14763 (arm_unwind_sp): Delete.
14764 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14765
14766 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14767
14768 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14769 (arc_unwind_pc): Delete.
14770 (arc_unwind_sp): Delete.
14771 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14772
14773 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14774
14775 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14776 (alpha_unwind_pc): Delete.
14777 (alpha_gdbarch_init): Don't register deleted functions with
14778 gdbarch.
14779
14780 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14781
14782 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14783 (aarch64_unwind_pc): Delete.
14784 (aarch64_unwind_sp): Delete.
14785 (aarch64_gdbarch_init): Don't register deleted functions with
14786 gdbarch.
14787
14788 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14789
14790 * gdbtypes.c (type_align): Don't consider static members when
14791 computing structure alignment.
14792
14793 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14794
14795 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14796 return 0 for other types.
14797 * arch-utils.c (default_type_align): Always return 0.
14798 * gdbarch.h: Regenerate.
14799 * gdbarch.sh (type_align): Extend comment.
14800 * gdbtypes.c (type_align): Add additional comments, always call
14801 gdbarch_type_align before applying the default rules.
14802 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14803 generic code will then apply a suitable default.
14804 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14805 types, return 0 for other types.
14806
14807 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14808
14809 * NEWS: Create a new section for the next release branch.
14810 Rename the section of the current branch, now that it has
14811 been cut.
14812
14813 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14814
14815 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14816 * version.in: Bump version to 8.3.50.DATE-git.
14817
14818 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14819
14820 * aix-thread.c (ptid_cmp): Remove unused variable.
14821 (get_signaled_thread): Likewise.
14822 (store_regs_user_thread): Likewise.
14823 (store_regs_kernel_thread): Likewise.
14824 (fetch_regs_kernel_thread): Remove shadowed variable.
14825
14826 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14827
14828 * features/riscv/32bit-cpu.xml: Add register numbers.
14829 * features/riscv/32bit-fpu.c: Regenerate.
14830 * features/riscv/32bit-fpu.xml: Add register numbers.
14831 * features/riscv/64bit-cpu.xml: Add register numbers.
14832 * features/riscv/64bit-fpu.c: Regenerate.
14833 * features/riscv/64bit-fpu.xml: Add register numbers.
14834
14835 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14836
14837 * NEWS: Mention two argument form of gdb.Value constructor.
14838 * python/py-value.c (convert_buffer_and_type_to_value): New
14839 function.
14840 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14841 Add support for handling an optional second argument. Call
14842 convert_buffer_and_type_to_value as appropriate.
14843 * python/python-internal.h (Py_buffer_deleter): New struct.
14844 (Py_buffer_up): New typedef.
14845
14846 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14847
14848 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14849 instead of releasing ownership.
14850
14851 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14852
14853 * dwarf2read.c (open_and_init_dwp_file): Call
14854 elf_numsections instead of bfd_count_sections to initialize
14855 dwp_file->num_sections.
14856
14857 2019-02-25 Tom Tromey <tromey@adacore.com>
14858
14859 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14860
14861 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14862
14863 * gcore.in: Add '--readnever' option when invoking GDB.
14864
14865 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14866
14867 * MAINTAINERS: Update my email address.
14868
14869 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14870
14871 * build-id.c (build_id_to_debug_bfd_1): New function.
14872 (build_id_to_debug_bfd): Look for separate debug file in
14873 sysroot.
14874
14875 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14876
14877 * gdbarch.sh: Update the copyright year range that is placed into
14878 generated files.
14879
14880 2019-02-22 Keith Seitz <keiths@redhat.com>
14881
14882 PR symtab/23853
14883 * linespec.c (create_sals_line_offset): Search for the default
14884 symtab's filename instead of its fullname.
14885
14886 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14887
14888 * NEWS: Update style defaults.
14889
14890 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14891
14892 * main.c (captured_main_1): Disable styling in batch mode.
14893
14894 2019-02-20 Tom Tromey <tom@tromey.com>
14895
14896 * symtab.c (symtab_symbol_info): Fix typos.
14897
14898 2019-02-20 Tom Tromey <tromey@adacore.com>
14899
14900 * findcmd.c (_initialize_mem_search): Use upper case for
14901 metasyntactic variables.
14902
14903 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14904
14905 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14906 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14907
14908 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14909
14910 * top.h (source_file_name): Change to std::string.
14911 * top.c (source_file_name): Likewise.
14912 (command_line_input): Adjust.
14913 * cli/cli-script.c (script_from_file): Adjust.
14914
14915 2019-02-19 Tom Tromey <tromey@adacore.com>
14916
14917 * ravenscar-thread.c
14918 (ravenscar_thread_target::update_thread_list): Don't call
14919 ada_build_task_list.
14920 * ada-lang.h (ada_build_task_list): Don't declare.
14921 * ada-tasks.c (struct ada_tasks_inferior_data)
14922 <task_list_valid_p>: Now bool.
14923 (read_known_tasks, ada_task_list_changed)
14924 (ada_tasks_invalidate_inferior_data): Update.
14925 (read_known_tasks_array): Return bool.
14926 (read_known_tasks_list): Likewise.
14927 (read_known_tasks): Return void.
14928 (ada_build_task_list): Now static.
14929
14930 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14931
14932 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14933 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14934
14935 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14936
14937 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14938 variant for ada_tasks_pspace_data_handle and
14939 ada_tasks_inferior_data_handle.
14940 (ada_tasks_pspace_data_cleanup): New function.
14941 (ada_tasks_inferior_data_cleanup): New function.
14942
14943 2019-02-17 Tom Tromey <tom@tromey.com>
14944
14945 * macrotab.h (macro_source_fullname): Return a std::string.
14946 * macrotab.c (macro_include, check_for_redefinition)
14947 (macro_undef, macro_lookup_definition, foreach_macro)
14948 (foreach_macro_in_scope): Update.
14949 (macro_source_fullname): Return a std::string.
14950 * macrocmd.c (show_pp_source_pos): Update.
14951
14952 2019-02-17 Tom Tromey <tom@tromey.com>
14953
14954 * macrocmd.c (show_pp_source_pos): Style the file names.
14955
14956 2019-02-17 Tom Tromey <tom@tromey.com>
14957
14958 PR tui/24197:
14959 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14960
14961 2019-02-17 Tom Tromey <tom@tromey.com>
14962
14963 * ada-lang.c (user_select_syms): Use filtered printing.
14964 * utils.c (wrap_style): New global.
14965 (desired_style): Remove.
14966 (emit_style_escape): Add stream parameter.
14967 (set_output_style, reset_terminal_style, prompt_for_continue):
14968 Update.
14969 (flush_wrap_buffer): Only flush gdb_stdout.
14970 (wrap_here): Set wrap_style.
14971 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14972 treat escape sequences as a character. Change when wrap buffer is
14973 flushed.
14974 (fputs_styled): Do not set the output style when the default is
14975 requested.
14976 * ui-style.h (struct ui_file_style) <is_default>: New method.
14977 * source.c (print_source_lines_base): Emit escape sequences in one
14978 piece.
14979
14980 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14981
14982 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14983 integers and enumeration types.
14984
14985 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14986
14987 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14988 instead of lookup_symbol_in_language
14989 (do_exact_match): New function.
14990 (ada_get_symbol_name_matcher): Return do_exact_match when
14991 doing a verbatim match.
14992
14993 2019-02-15 Tom Tromey <tromey@adacore.com>
14994
14995 * ravenscar-thread.c (ravenscar_thread_target::resume)
14996 (ravenscar_thread_target::wait): Special case wildcard requests.
14997
14998 2019-02-15 Tom Tromey <tromey@adacore.com>
14999
15000 * ravenscar-thread.c (base_ptid): Remove.
15001 (struct ravenscar_thread_target) <close>: New method.
15002 <m_base_ptid>: New member.
15003 <update_inferior_ptid, active_task, task_is_currently_active,
15004 runtime_initialized>: Declare methods.
15005 <ravenscar_thread_target>: Add constructor.
15006 (ravenscar_thread_target::task_is_currently_active)
15007 (ravenscar_thread_target::update_inferior_ptid)
15008 (ravenscar_runtime_initialized): Rename. Now methods.
15009 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15010 (ravenscar_thread_target::update_thread_list): Update.
15011 (ravenscar_thread_target::active_task): Now method.
15012 (ravenscar_thread_target::store_registers)
15013 (ravenscar_thread_target::prepare_to_store)
15014 (ravenscar_thread_target::prepare_to_store)
15015 (ravenscar_thread_target::mourn_inferior): Update.
15016 (ravenscar_inferior_created): Use "new" to create target.
15017 (ravenscar_thread_target::get_ada_task_ptid): Update.
15018 (_initialize_ravenscar): Don't initialize base_ptid.
15019 (ravenscar_ops): Remove global.
15020
15021 2019-02-15 Tom Tromey <tromey@adacore.com>
15022
15023 * target.h (push_target): Declare new overload.
15024 * target.c (push_target): New overload, taking an rvalue reference.
15025 * remote.c (remote_target::open_1): Use push_target overload.
15026 * corelow.c (core_target_open): Use push_target overload.
15027
15028 2019-02-15 Tom Tromey <tromey@adacore.com>
15029
15030 * ravenscar-thread.c (is_ravenscar_task)
15031 (ravenscar_task_is_currently_active): Return bool.
15032 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15033 (_initialize_ravenscar): Remove "(void)".
15034 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15035 Return bool.
15036
15037 2019-02-15 Tom Tromey <tromey@adacore.com>
15038
15039 * ravenscar-thread.c (ravenscar_runtime_initializer)
15040 (has_ravenscar_runtime, get_running_thread_id)
15041 (ravenscar_thread_target::resume): Fix indentation.
15042
15043 2019-02-15 Tom Tromey <tromey@adacore.com>
15044
15045 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15046 from ravenscar_arch_ops.
15047 (sparc_ravenscar_ops::fetch_registers)
15048 (sparc_ravenscar_ops::store_registers): Now methods.
15049 (sparc_ravenscar_prepare_to_store): Remove.
15050 (sparc_ravenscar_ops): Redefine.
15051 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15052 methods and destructor. Remove members.
15053 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15054 (ravenscar_thread_target::store_registers)
15055 (ravenscar_thread_target::prepare_to_store): Update.
15056 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15057 Remove.
15058 (struct ppc_ravenscar_powerpc_ops): Derive from
15059 ravenscar_arch_ops.
15060 (ppc_ravenscar_powerpc_ops::fetch_registers)
15061 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15062 (ppc_ravenscar_powerpc_ops): Redefine.
15063 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15064 (ppc_ravenscar_e500_ops::fetch_registers)
15065 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15066 (ppc_ravenscar_e500_ops): Redefine.
15067 * aarch64-ravenscar-thread.c
15068 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15069 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15070 (aarch64_ravenscar_fetch_registers)
15071 (aarch64_ravenscar_store_registers): Now methods.
15072 (aarch64_ravenscar_ops): Redefine.
15073
15074 2019-02-15 Tom Tromey <tromey@adacore.com>
15075
15076 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15077 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15078 (ravenscar_thread_target::stopped_by_watchpoint)
15079 (ravenscar_thread_target::stopped_data_address)
15080 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15081
15082 2019-02-15 Tom Tromey <tromey@adacore.com>
15083
15084 * ravenscar-thread.c: Fix some typos.
15085
15086 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15087 Tom Tromey <tromey@adacore.com>
15088
15089 * ada-lang.c (ada_exception_sal): Change addr_string to a
15090 std::string.
15091 (create_ada_exception_catchpoint): Update.
15092
15093 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15094 Tom Tromey <tromey@adacore.com>
15095
15096 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15097 (bp_location_ops): Remove.
15098 (base_breakpoint_allocate_location): Update.
15099 (free_bp_location): Update.
15100 * ada-lang.c (class ada_catchpoint_location)
15101 <ada_catchpoint_location>: Remove ops parameter.
15102 (ada_catchpoint_location_dtor): Remove.
15103 (ada_catchpoint_location_ops): Remove.
15104 (allocate_location_exception): Update.
15105 * breakpoint.h (struct bp_location_ops): Remove.
15106 (class bp_location) <bp_location>: Remove bp_location_ops
15107 parameter.
15108 <~bp_location>: Add destructor.
15109 <ops>: Remove.
15110
15111 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15112 Pedro Alves <palves@redhat.com>
15113
15114 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15115 'PATH_MAX'.
15116
15117 2019-02-14 David Michael <fedora.dm0@gmail.com>
15118 Samuel Thibault <samuel.thibault@gnu.org>
15119 Thomas Schwinge <thomas@codesourcery.com>
15120
15121 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15122 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15123
15124 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15125
15126 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15127 (check_empty): Use "const char *".
15128
15129 * gnu-nat.c (gnu_nat_target::detach): Instead of
15130 'detach_inferior (pid)' call
15131 'detach_inferior (find_inferior_pid (pid))'.
15132
15133 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15134 'nat/fork-inferior.o'.
15135 * gnu-nat.c: #include "nat/fork-inferior.h".
15136
15137 * gnu-nat.c (gnu_nat_target::detach): Instead of
15138 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15139 * gnu-nat.h: #include "inf-child.h".
15140 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15141 'i386_gnu_nat_target::fetch_registers'.
15142 (gnu_store_registers): Rename/move to
15143 'i386_gnu_nat_target::store_registers'.
15144
15145 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15146 * gnu-nat.h (mach_thread_info): New function.
15147 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15148
15149 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15150
15151 2019-02-14 Frederic Konrad <konrad@adacore.com>
15152
15153 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15154
15155 2019-02-14 Joel Brobecker <brobecker@adacore.com>
15156
15157 * windows-nat.c (windows_add_thread): Add new parameter
15158 "main_thread_p" with default value set to false. Update
15159 function documentation as well as all callers.
15160 (windows_delete_thread): Likewise.
15161 (fake_create_process): Update call to windows_add_thread.
15162 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15163 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15164 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15165 call to windows_delete_thread.
15166
15167 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15168
15169 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15170
15171 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15172
15173 * symfile.c (find_separate_debug_file): Use canonical path of
15174 sysroot with child_path instead of gdb_sysroot if it is valid.
15175
15176 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15177
15178 * symfile.c (find_separate_debug_file): Use child_path to
15179 determine if an object file is under a sysroot.
15180
15181 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15182
15183 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15184 unittests/child-path-selftests.c.
15185 * common/pathstuff.c (child_path): New function.
15186 * common/pathstuff.h (child_path): New prototype.
15187 * unittests/child-path-selftests.c: New file.
15188
15189 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15190
15191 * symfile.c (find_separate_debug_file): Look for separate debug
15192 files in debug directories under the sysroot.
15193
15194 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15195
15196 * symtab.h (struct minimal_symbol data_p): New const method.
15197 (struct minimal_symbol text_p): Likewise.
15198 * symtab.c (output_source_filename): Use file name style
15199 to print file name.
15200 (print_symbol_info): Likewise.
15201 (print_msymbol_info): Use address style to print addresses.
15202 Use function name style to print executable text symbols.
15203 (expand_symtab_containing_pc): Use data_p.
15204 (find_pc_sect_compunit_symtab): Likewise.
15205
15206 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15207
15208 * breakpoint.c (describe_other_breakpoints): Use address style
15209 to print addresses.
15210 (say_where): Likewise.
15211
15212 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15213
15214 * ada-typeprint.c (print_func_type): Print function name
15215 style to print function name.
15216 * c-typeprint.c (c_print_type_1): Likewise.
15217
15218 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15219
15220 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15221 for execve.
15222
15223 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15224
15225 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15226 type_stack.
15227
15228 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15229
15230 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15231 TYPE_CODE_REF types.
15232
15233 2019-02-08 Jim Wilson <jimw@sifive.com>
15234
15235 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15236 (riscv_linux_fregset): New.
15237 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15238
15239 2019-02-07 Tom Tromey <tom@tromey.com>
15240
15241 * thread.c (thread_cancel_execution_command): Update.
15242 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15243 methods.
15244 (struct thread_fsm_ops): Remove.
15245 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15246 (thread_fsm_should_stop, thread_fsm_return_value)
15247 (thread_fsm_set_finished, thread_fsm_finished_p)
15248 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15249 Don't declare.
15250 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15251 * infrun.c (clear_proceed_status_thread)
15252 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15253 (print_stop_event): Update.
15254 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15255 Add constructor.
15256 (step_command_fsm_ops): Remove.
15257 (new_step_command_fsm): Remove.
15258 (step_1): Update.
15259 (step_command_fsm::should_stop): Rename from
15260 step_command_fsm_should_stop.
15261 (step_command_fsm::clean_up): Rename from
15262 step_command_fsm_clean_up.
15263 (step_command_fsm::do_async_reply_reason): Rename from
15264 step_command_fsm_async_reply_reason.
15265 (struct until_next_fsm): Inherit from thread_fsm. Add
15266 constructor.
15267 (until_next_fsm_ops): Remove.
15268 (new_until_next_fsm): Remove.
15269 (until_next_fsm::should_stop): Rename from
15270 until_next_fsm_should_stop.
15271 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15272 (until_next_fsm::do_async_reply_reason): Rename from
15273 until_next_fsm_async_reply_reason.
15274 (struct finish_command_fsm): Inherit from thread_fsm. Add
15275 constructor. Change type of breakpoint.
15276 (finish_command_fsm_ops): Remove.
15277 (new_finish_command_fsm): Remove.
15278 (finish_command_fsm::should_stop): Rename from
15279 finish_command_fsm_should_stop.
15280 (finish_command_fsm::clean_up): Rename from
15281 finish_command_fsm_clean_up.
15282 (finish_command_fsm::return_value): Rename from
15283 finish_command_fsm_return_value.
15284 (finish_command_fsm::do_async_reply_reason): Rename from
15285 finish_command_fsm_async_reply_reason.
15286 (finish_command): Update.
15287 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15288 Add constructor.
15289 (call_thread_fsm_ops): Remove.
15290 (call_thread_fsm::call_thread_fsm): Rename from
15291 new_call_thread_fsm.
15292 (call_thread_fsm::should_stop): Rename from
15293 call_thread_fsm_should_stop.
15294 (call_thread_fsm::should_notify_stop): Rename from
15295 call_thread_fsm_should_notify_stop.
15296 (run_inferior_call, call_function_by_hand_dummy): Update.
15297 * cli/cli-interp.c (should_print_stop_to_console): Update.
15298 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15299 Add constructor. Change type of location_breakpoint,
15300 caller_breakpoint.
15301 (until_break_fsm_ops): Remove.
15302 (new_until_break_fsm): Remove.
15303 (until_break_fsm::should_stop): Rename from
15304 until_break_fsm_should_stop.
15305 (until_break_fsm::clean_up): Rename from
15306 until_break_fsm_clean_up.
15307 (until_break_fsm::do_async_reply_reason): Rename from
15308 until_break_fsm_async_reply_reason.
15309 (until_break_command): Update.
15310 * thread-fsm.c: Remove.
15311 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15312
15313 2019-02-07 Tom Tromey <tom@tromey.com>
15314
15315 * yy-remap.h: Add include guard.
15316 * xtensa-tdep.h: Add include guard.
15317 * xcoffread.h: Rename include guard.
15318 * varobj-iter.h: Add include guard.
15319 * tui/tui.h: Rename include guard.
15320 * tui/tui-winsource.h: Rename include guard.
15321 * tui/tui-wingeneral.h: Rename include guard.
15322 * tui/tui-windata.h: Rename include guard.
15323 * tui/tui-win.h: Rename include guard.
15324 * tui/tui-stack.h: Rename include guard.
15325 * tui/tui-source.h: Rename include guard.
15326 * tui/tui-regs.h: Rename include guard.
15327 * tui/tui-out.h: Rename include guard.
15328 * tui/tui-layout.h: Rename include guard.
15329 * tui/tui-io.h: Rename include guard.
15330 * tui/tui-hooks.h: Rename include guard.
15331 * tui/tui-file.h: Rename include guard.
15332 * tui/tui-disasm.h: Rename include guard.
15333 * tui/tui-data.h: Rename include guard.
15334 * tui/tui-command.h: Rename include guard.
15335 * tic6x-tdep.h: Add include guard.
15336 * target/waitstatus.h: Rename include guard.
15337 * target/wait.h: Rename include guard.
15338 * target/target.h: Rename include guard.
15339 * target/resume.h: Rename include guard.
15340 * target-float.h: Rename include guard.
15341 * stabsread.h: Add include guard.
15342 * rs6000-tdep.h: Add include guard.
15343 * riscv-fbsd-tdep.h: Add include guard.
15344 * regformats/regdef.h: Rename include guard.
15345 * record.h: Rename include guard.
15346 * python/python.h: Rename include guard.
15347 * python/python-internal.h: Rename include guard.
15348 * python/py-stopevent.h: Rename include guard.
15349 * python/py-ref.h: Rename include guard.
15350 * python/py-record.h: Rename include guard.
15351 * python/py-record-full.h: Rename include guard.
15352 * python/py-record-btrace.h: Rename include guard.
15353 * python/py-instruction.h: Rename include guard.
15354 * python/py-events.h: Rename include guard.
15355 * python/py-event.h: Rename include guard.
15356 * procfs.h: Add include guard.
15357 * proc-utils.h: Add include guard.
15358 * p-lang.h: Add include guard.
15359 * or1k-tdep.h: Rename include guard.
15360 * observable.h: Rename include guard.
15361 * nto-tdep.h: Rename include guard.
15362 * nat/x86-linux.h: Rename include guard.
15363 * nat/x86-linux-dregs.h: Rename include guard.
15364 * nat/x86-gcc-cpuid.h: Add include guard.
15365 * nat/x86-dregs.h: Rename include guard.
15366 * nat/x86-cpuid.h: Rename include guard.
15367 * nat/ppc-linux.h: Rename include guard.
15368 * nat/mips-linux-watch.h: Rename include guard.
15369 * nat/linux-waitpid.h: Rename include guard.
15370 * nat/linux-ptrace.h: Rename include guard.
15371 * nat/linux-procfs.h: Rename include guard.
15372 * nat/linux-osdata.h: Rename include guard.
15373 * nat/linux-nat.h: Rename include guard.
15374 * nat/linux-namespaces.h: Rename include guard.
15375 * nat/linux-btrace.h: Rename include guard.
15376 * nat/glibc_thread_db.h: Rename include guard.
15377 * nat/gdb_thread_db.h: Rename include guard.
15378 * nat/gdb_ptrace.h: Rename include guard.
15379 * nat/fork-inferior.h: Rename include guard.
15380 * nat/amd64-linux-siginfo.h: Rename include guard.
15381 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15382 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15383 * nat/aarch64-linux.h: Rename include guard.
15384 * nat/aarch64-linux-hw-point.h: Rename include guard.
15385 * mn10300-tdep.h: Add include guard.
15386 * mips-linux-tdep.h: Add include guard.
15387 * mi/mi-parse.h: Rename include guard.
15388 * mi/mi-out.h: Rename include guard.
15389 * mi/mi-main.h: Rename include guard.
15390 * mi/mi-interp.h: Rename include guard.
15391 * mi/mi-getopt.h: Rename include guard.
15392 * mi/mi-console.h: Rename include guard.
15393 * mi/mi-common.h: Rename include guard.
15394 * mi/mi-cmds.h: Rename include guard.
15395 * mi/mi-cmd-break.h: Rename include guard.
15396 * m2-lang.h: Add include guard.
15397 * location.h: Rename include guard.
15398 * linux-record.h: Rename include guard.
15399 * linux-nat.h: Add include guard.
15400 * linux-fork.h: Add include guard.
15401 * i386-darwin-tdep.h: Rename include guard.
15402 * hppa-linux-offsets.h: Add include guard.
15403 * guile/guile.h: Rename include guard.
15404 * guile/guile-internal.h: Rename include guard.
15405 * gnu-nat.h: Rename include guard.
15406 * gdb-stabs.h: Rename include guard.
15407 * frv-tdep.h: Add include guard.
15408 * f-lang.h: Add include guard.
15409 * event-loop.h: Add include guard.
15410 * darwin-nat.h: Rename include guard.
15411 * cp-abi.h: Rename include guard.
15412 * config/sparc/nm-sol2.h: Rename include guard.
15413 * config/nm-nto.h: Rename include guard.
15414 * config/nm-linux.h: Add include guard.
15415 * config/i386/nm-i386gnu.h: Rename include guard.
15416 * config/djgpp/nl_types.h: Rename include guard.
15417 * config/djgpp/langinfo.h: Rename include guard.
15418 * compile/gcc-cp-plugin.h: Add include guard.
15419 * compile/gcc-c-plugin.h: Add include guard.
15420 * compile/compile.h: Rename include guard.
15421 * compile/compile-object-run.h: Rename include guard.
15422 * compile/compile-object-load.h: Rename include guard.
15423 * compile/compile-internal.h: Rename include guard.
15424 * compile/compile-cplus.h: Rename include guard.
15425 * compile/compile-c.h: Rename include guard.
15426 * common/xml-utils.h: Rename include guard.
15427 * common/x86-xstate.h: Rename include guard.
15428 * common/version.h: Rename include guard.
15429 * common/vec.h: Rename include guard.
15430 * common/tdesc.h: Rename include guard.
15431 * common/selftest.h: Rename include guard.
15432 * common/scoped_restore.h: Rename include guard.
15433 * common/scoped_mmap.h: Rename include guard.
15434 * common/scoped_fd.h: Rename include guard.
15435 * common/safe-iterator.h: Rename include guard.
15436 * common/run-time-clock.h: Rename include guard.
15437 * common/refcounted-object.h: Rename include guard.
15438 * common/queue.h: Rename include guard.
15439 * common/ptid.h: Rename include guard.
15440 * common/print-utils.h: Rename include guard.
15441 * common/preprocessor.h: Rename include guard.
15442 * common/pathstuff.h: Rename include guard.
15443 * common/observable.h: Rename include guard.
15444 * common/netstuff.h: Rename include guard.
15445 * common/job-control.h: Rename include guard.
15446 * common/host-defs.h: Rename include guard.
15447 * common/gdb_wait.h: Rename include guard.
15448 * common/gdb_vecs.h: Rename include guard.
15449 * common/gdb_unlinker.h: Rename include guard.
15450 * common/gdb_unique_ptr.h: Rename include guard.
15451 * common/gdb_tilde_expand.h: Rename include guard.
15452 * common/gdb_sys_time.h: Rename include guard.
15453 * common/gdb_string_view.h: Rename include guard.
15454 * common/gdb_splay_tree.h: Rename include guard.
15455 * common/gdb_setjmp.h: Rename include guard.
15456 * common/gdb_ref_ptr.h: Rename include guard.
15457 * common/gdb_optional.h: Rename include guard.
15458 * common/gdb_locale.h: Rename include guard.
15459 * common/gdb_assert.h: Rename include guard.
15460 * common/filtered-iterator.h: Rename include guard.
15461 * common/filestuff.h: Rename include guard.
15462 * common/fileio.h: Rename include guard.
15463 * common/environ.h: Rename include guard.
15464 * common/common-utils.h: Rename include guard.
15465 * common/common-types.h: Rename include guard.
15466 * common/common-regcache.h: Rename include guard.
15467 * common/common-inferior.h: Rename include guard.
15468 * common/common-gdbthread.h: Rename include guard.
15469 * common/common-exceptions.h: Rename include guard.
15470 * common/common-defs.h: Rename include guard.
15471 * common/common-debug.h: Rename include guard.
15472 * common/cleanups.h: Rename include guard.
15473 * common/buffer.h: Rename include guard.
15474 * common/btrace-common.h: Rename include guard.
15475 * common/break-common.h: Rename include guard.
15476 * cli/cli-utils.h: Rename include guard.
15477 * cli/cli-style.h: Rename include guard.
15478 * cli/cli-setshow.h: Rename include guard.
15479 * cli/cli-script.h: Rename include guard.
15480 * cli/cli-interp.h: Rename include guard.
15481 * cli/cli-decode.h: Rename include guard.
15482 * cli/cli-cmds.h: Rename include guard.
15483 * charset-list.h: Add include guard.
15484 * buildsym-legacy.h: Rename include guard.
15485 * bfin-tdep.h: Add include guard.
15486 * ax.h: Rename include guard.
15487 * arm-linux-tdep.h: Add include guard.
15488 * arm-fbsd-tdep.h: Add include guard.
15489 * arch/xtensa.h: Rename include guard.
15490 * arch/tic6x.h: Add include guard.
15491 * arch/i386.h: Add include guard.
15492 * arch/arm.h: Rename include guard.
15493 * arch/arm-linux.h: Rename include guard.
15494 * arch/arm-get-next-pcs.h: Rename include guard.
15495 * arch/amd64.h: Add include guard.
15496 * arch/aarch64-insn.h: Rename include guard.
15497 * arch-utils.h: Rename include guard.
15498 * annotate.h: Add include guard.
15499 * amd64-darwin-tdep.h: Rename include guard.
15500 * aarch64-linux-tdep.h: Add include guard.
15501 * aarch64-fbsd-tdep.h: Add include guard.
15502 * aarch32-linux-nat.h: Add include guard.
15503
15504 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15505
15506 * macrotab.c (macro_define_internal): New function that
15507 factorizes macro_define_object_internal and macro_define_function
15508 code.
15509 (macro_define_object_internal): Use macro_define_internal.
15510 (macro_define_function): Likewise.
15511
15512 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15513
15514 * macrocmd.c (extract_identifier): Return
15515 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15516 callers.
15517
15518 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15519
15520 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15521
15522 2019-02-05 Tom Tromey <tom@tromey.com>
15523
15524 * target.c (target_stack::unpush): Move assertion earlier.
15525
15526 2019-01-30 Tom Tromey <tom@tromey.com>
15527
15528 PR python/23615:
15529 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15530 (gdbpy_parse_and_eval): Likewise.
15531 * python/python-internal.h (gdbpy_allow_threads): New class.
15532
15533 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15534
15535 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15536 (aarch64_fbsd_fpregmap): Move earlier.
15537 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15538 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15539 instead of individual calls to trad_frame_set_reg_addr.
15540 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15541 earlier.
15542 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15543 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15544 instead of individual calls to trad_frame_set_reg_addr.
15545
15546 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15547
15548 * CONTRIBUTE: Replace contribution list with wiki link.
15549
15550 2019-01-25 Tom Tromey <tom@tromey.com>
15551
15552 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15553
15554 2019-01-25 Tom Tromey <tom@tromey.com>
15555
15556 * xtensa-linux-nat.c: Fix common/ includes.
15557 * xml-support.h: Fix common/ includes.
15558 * xml-support.c: Fix common/ includes.
15559 * x86-linux-nat.c: Fix common/ includes.
15560 * windows-nat.c: Fix common/ includes.
15561 * varobj.h: Fix common/ includes.
15562 * varobj.c: Fix common/ includes.
15563 * value.c: Fix common/ includes.
15564 * valops.c: Fix common/ includes.
15565 * utils.c: Fix common/ includes.
15566 * unittests/xml-utils-selftests.c: Fix common/ includes.
15567 * unittests/utils-selftests.c: Fix common/ includes.
15568 * unittests/unpack-selftests.c: Fix common/ includes.
15569 * unittests/tracepoint-selftests.c: Fix common/ includes.
15570 * unittests/style-selftests.c: Fix common/ includes.
15571 * unittests/string_view-selftests.c: Fix common/ includes.
15572 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15573 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15574 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15575 * unittests/rsp-low-selftests.c: Fix common/ includes.
15576 * unittests/parse-connection-spec-selftests.c: Fix common/
15577 includes.
15578 * unittests/optional-selftests.c: Fix common/ includes.
15579 * unittests/offset-type-selftests.c: Fix common/ includes.
15580 * unittests/observable-selftests.c: Fix common/ includes.
15581 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15582 * unittests/memrange-selftests.c: Fix common/ includes.
15583 * unittests/memory-map-selftests.c: Fix common/ includes.
15584 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15585 * unittests/function-view-selftests.c: Fix common/ includes.
15586 * unittests/environ-selftests.c: Fix common/ includes.
15587 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15588 * unittests/common-utils-selftests.c: Fix common/ includes.
15589 * unittests/cli-utils-selftests.c: Fix common/ includes.
15590 * unittests/array-view-selftests.c: Fix common/ includes.
15591 * ui-file.c: Fix common/ includes.
15592 * tui/tui-io.c: Fix common/ includes.
15593 * tracepoint.h: Fix common/ includes.
15594 * tracepoint.c: Fix common/ includes.
15595 * tracefile-tfile.c: Fix common/ includes.
15596 * top.h: Fix common/ includes.
15597 * top.c: Fix common/ includes.
15598 * thread.c: Fix common/ includes.
15599 * target/waitstatus.h: Fix common/ includes.
15600 * target/waitstatus.c: Fix common/ includes.
15601 * target.h: Fix common/ includes.
15602 * target.c: Fix common/ includes.
15603 * target-memory.c: Fix common/ includes.
15604 * target-descriptions.c: Fix common/ includes.
15605 * symtab.h: Fix common/ includes.
15606 * symfile.c: Fix common/ includes.
15607 * stap-probe.c: Fix common/ includes.
15608 * spu-linux-nat.c: Fix common/ includes.
15609 * sparc-nat.c: Fix common/ includes.
15610 * source.c: Fix common/ includes.
15611 * solib.c: Fix common/ includes.
15612 * solib-target.c: Fix common/ includes.
15613 * ser-unix.c: Fix common/ includes.
15614 * ser-tcp.c: Fix common/ includes.
15615 * ser-pipe.c: Fix common/ includes.
15616 * ser-base.c: Fix common/ includes.
15617 * selftest-arch.c: Fix common/ includes.
15618 * s12z-tdep.c: Fix common/ includes.
15619 * rust-exp.y: Fix common/ includes.
15620 * rs6000-aix-tdep.c: Fix common/ includes.
15621 * riscv-tdep.c: Fix common/ includes.
15622 * remote.c: Fix common/ includes.
15623 * remote-notif.h: Fix common/ includes.
15624 * remote-fileio.h: Fix common/ includes.
15625 * remote-fileio.c: Fix common/ includes.
15626 * regcache.h: Fix common/ includes.
15627 * regcache.c: Fix common/ includes.
15628 * record-btrace.c: Fix common/ includes.
15629 * python/python.c: Fix common/ includes.
15630 * python/py-type.c: Fix common/ includes.
15631 * python/py-inferior.c: Fix common/ includes.
15632 * progspace.h: Fix common/ includes.
15633 * producer.c: Fix common/ includes.
15634 * procfs.c: Fix common/ includes.
15635 * proc-api.c: Fix common/ includes.
15636 * printcmd.c: Fix common/ includes.
15637 * ppc-linux-nat.c: Fix common/ includes.
15638 * parser-defs.h: Fix common/ includes.
15639 * osdata.c: Fix common/ includes.
15640 * obsd-nat.c: Fix common/ includes.
15641 * nat/x86-linux.c: Fix common/ includes.
15642 * nat/x86-linux-dregs.c: Fix common/ includes.
15643 * nat/x86-dregs.h: Fix common/ includes.
15644 * nat/x86-dregs.c: Fix common/ includes.
15645 * nat/ppc-linux.c: Fix common/ includes.
15646 * nat/mips-linux-watch.h: Fix common/ includes.
15647 * nat/mips-linux-watch.c: Fix common/ includes.
15648 * nat/linux-waitpid.c: Fix common/ includes.
15649 * nat/linux-ptrace.h: Fix common/ includes.
15650 * nat/linux-ptrace.c: Fix common/ includes.
15651 * nat/linux-procfs.c: Fix common/ includes.
15652 * nat/linux-personality.c: Fix common/ includes.
15653 * nat/linux-osdata.c: Fix common/ includes.
15654 * nat/linux-namespaces.c: Fix common/ includes.
15655 * nat/linux-btrace.h: Fix common/ includes.
15656 * nat/linux-btrace.c: Fix common/ includes.
15657 * nat/fork-inferior.c: Fix common/ includes.
15658 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15659 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15660 * nat/aarch64-linux.c: Fix common/ includes.
15661 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15662 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15663 * namespace.h: Fix common/ includes.
15664 * mips-linux-tdep.c: Fix common/ includes.
15665 * minsyms.c: Fix common/ includes.
15666 * mi/mi-parse.h: Fix common/ includes.
15667 * mi/mi-main.c: Fix common/ includes.
15668 * mi/mi-cmd-env.c: Fix common/ includes.
15669 * memrange.h: Fix common/ includes.
15670 * memattr.c: Fix common/ includes.
15671 * maint.h: Fix common/ includes.
15672 * maint.c: Fix common/ includes.
15673 * main.c: Fix common/ includes.
15674 * machoread.c: Fix common/ includes.
15675 * location.c: Fix common/ includes.
15676 * linux-thread-db.c: Fix common/ includes.
15677 * linux-nat.c: Fix common/ includes.
15678 * linux-fork.c: Fix common/ includes.
15679 * inline-frame.c: Fix common/ includes.
15680 * infrun.c: Fix common/ includes.
15681 * inflow.c: Fix common/ includes.
15682 * inferior.h: Fix common/ includes.
15683 * inferior.c: Fix common/ includes.
15684 * infcmd.c: Fix common/ includes.
15685 * inf-ptrace.c: Fix common/ includes.
15686 * inf-child.c: Fix common/ includes.
15687 * ia64-linux-nat.c: Fix common/ includes.
15688 * i387-tdep.c: Fix common/ includes.
15689 * i386-tdep.c: Fix common/ includes.
15690 * i386-linux-tdep.c: Fix common/ includes.
15691 * i386-linux-nat.c: Fix common/ includes.
15692 * i386-go32-tdep.c: Fix common/ includes.
15693 * i386-fbsd-tdep.c: Fix common/ includes.
15694 * i386-fbsd-nat.c: Fix common/ includes.
15695 * guile/scm-type.c: Fix common/ includes.
15696 * guile/guile.c: Fix common/ includes.
15697 * go32-nat.c: Fix common/ includes.
15698 * gnu-nat.c: Fix common/ includes.
15699 * gdbthread.h: Fix common/ includes.
15700 * gdbarch-selftests.c: Fix common/ includes.
15701 * gdb_usleep.c: Fix common/ includes.
15702 * gdb_select.h: Fix common/ includes.
15703 * gdb_bfd.c: Fix common/ includes.
15704 * gcore.c: Fix common/ includes.
15705 * fork-child.c: Fix common/ includes.
15706 * findvar.c: Fix common/ includes.
15707 * fbsd-nat.c: Fix common/ includes.
15708 * event-top.c: Fix common/ includes.
15709 * event-loop.c: Fix common/ includes.
15710 * dwarf2read.c: Fix common/ includes.
15711 * dwarf2loc.c: Fix common/ includes.
15712 * dwarf2-frame.c: Fix common/ includes.
15713 * dwarf-index-cache.c: Fix common/ includes.
15714 * dtrace-probe.c: Fix common/ includes.
15715 * disasm-selftests.c: Fix common/ includes.
15716 * defs.h: Fix common/ includes.
15717 * csky-tdep.c: Fix common/ includes.
15718 * cp-valprint.c: Fix common/ includes.
15719 * cp-support.h: Fix common/ includes.
15720 * cp-support.c: Fix common/ includes.
15721 * corelow.c: Fix common/ includes.
15722 * completer.h: Fix common/ includes.
15723 * completer.c: Fix common/ includes.
15724 * compile/compile.c: Fix common/ includes.
15725 * compile/compile-loc2c.c: Fix common/ includes.
15726 * compile/compile-cplus-types.c: Fix common/ includes.
15727 * compile/compile-cplus-symbols.c: Fix common/ includes.
15728 * command.h: Fix common/ includes.
15729 * cli/cli-dump.c: Fix common/ includes.
15730 * cli/cli-cmds.c: Fix common/ includes.
15731 * charset.c: Fix common/ includes.
15732 * build-id.c: Fix common/ includes.
15733 * btrace.h: Fix common/ includes.
15734 * btrace.c: Fix common/ includes.
15735 * breakpoint.h: Fix common/ includes.
15736 * breakpoint.c: Fix common/ includes.
15737 * ax.h:
15738 (enum agent_op): Fix common/ includes.
15739 * ax-general.c (struct aop_map): Fix common/ includes.
15740 * ax-gdb.c: Fix common/ includes.
15741 * auxv.c: Fix common/ includes.
15742 * auto-load.c: Fix common/ includes.
15743 * arm-tdep.c: Fix common/ includes.
15744 * arch/riscv.c: Fix common/ includes.
15745 * arch/ppc-linux-common.c: Fix common/ includes.
15746 * arch/i386.c: Fix common/ includes.
15747 * arch/arm.c: Fix common/ includes.
15748 * arch/arm-linux.c: Fix common/ includes.
15749 * arch/arm-get-next-pcs.c: Fix common/ includes.
15750 * arch/amd64.c: Fix common/ includes.
15751 * arch/aarch64.c: Fix common/ includes.
15752 * arch/aarch64-insn.c: Fix common/ includes.
15753 * arch-utils.c: Fix common/ includes.
15754 * amd64-windows-tdep.c: Fix common/ includes.
15755 * amd64-tdep.c: Fix common/ includes.
15756 * amd64-sol2-tdep.c: Fix common/ includes.
15757 * amd64-obsd-tdep.c: Fix common/ includes.
15758 * amd64-nbsd-tdep.c: Fix common/ includes.
15759 * amd64-linux-tdep.c: Fix common/ includes.
15760 * amd64-linux-nat.c: Fix common/ includes.
15761 * amd64-fbsd-tdep.c: Fix common/ includes.
15762 * amd64-fbsd-nat.c: Fix common/ includes.
15763 * amd64-dicos-tdep.c: Fix common/ includes.
15764 * amd64-darwin-tdep.c: Fix common/ includes.
15765 * agent.c: Fix common/ includes.
15766 * ada-lang.h: Fix common/ includes.
15767 * ada-lang.c: Fix common/ includes.
15768 * aarch64-tdep.c: Fix common/ includes.
15769
15770 2019-01-25 Tom Tromey <tom@tromey.com>
15771
15772 * common/create-version.sh: Use common/version.h.
15773
15774 2019-01-24 Pedro Alves <palves@redhat.com>
15775
15776 * infrun.c (signal_stop, signal_print, signal_program)
15777 (signal_catch, signal_pass): Now arrays instead of pointers.
15778 (update_signals_program_target, do_target_resume)
15779 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15780 * linux-nat.c (linux_nat_target::pass_signals)
15781 (linux_nat_target::create_inferior, linux_nat_target::attach):
15782 Adjust.
15783 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15784 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15785 * procfs.c (procfs_target::pass_signals): Adjust.
15786 * record-full.c (record_full_target::resume): Adjust.
15787 * remote.c (remote_target::pass_signals)
15788 (remote_target::program_signals): Adjust.
15789 * target-debug.h (target_debug_print_signals): Now takes a
15790 gdb::array_view as parameter. Adjust.
15791 * target.h (target_ops) <pass_signals, program_signals>: Replace
15792 pointer and length parameters with gdb::array_view.
15793 (target_pass_signals, target_program_signals): Likewise.
15794 * target-delegates.c: Regenerate.
15795
15796 2019-01-24 Pedro Alves <palves@redhat.com>
15797
15798 * common/forward-scope-exit.h
15799 (forward_scope_exit::forward_scope_exit): Pass arguments to
15800 m_bind_function directly, instead of creating a std::bind and
15801 copying that.
15802
15803 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15804
15805 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15806 for static members.
15807 (pass_in_v_vfp_candidate): Likewise.
15808
15809 2019-01-23 Tom Tromey <tom@tromey.com>
15810 Pedro Alves <palves@redhat.com>
15811
15812 * regcache.c (class regcache_invalidator): Remove.
15813 (regcache::raw_write): Use make_scope_exit.
15814
15815 2019-01-23 Tom Tromey <tom@tromey.com>
15816
15817 * ui-out.h (class ui_out_emit_type): Update comment.
15818
15819 2019-01-23 Tom Tromey <tom@tromey.com>
15820
15821 * infrun.c (fetch_inferior_event): Update comment.
15822
15823 2019-01-23 Tom Tromey <tom@tromey.com>
15824 Pedro Alves <palves@redhat.com>
15825
15826 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15827 parameter.
15828 (fetch_inferior_event): Use SCOPE_EXIT.
15829
15830
15831 2019-01-23 Tom Tromey <tom@tromey.com>
15832 Pedro Alves <palves@redhat.com>
15833
15834 * infrun.c (disable_thread_events): Delete.
15835 (stop_all_threads): Use SCOPE_EXIT.
15836
15837 2019-01-23 Tom Tromey <tom@tromey.com>
15838 Pedro Alves <palves@redhat.com>
15839
15840 * symfile.c: Include forward-scope-exit.h.
15841 (clear_symtab_users_cleanup): Replace forward declaration with
15842 a FORWARD_SCOPE_EXIT.
15843 (syms_from_objfile_1): Use the forward_scope_exit and
15844 gdb::optional instead of cleanup_function.
15845 (reread_symbols): Use the forward_scope_exit instead of
15846 cleanup_function.
15847 (clear_symtab_users_cleanup): Remove function.
15848
15849 2019-01-23 Tom Tromey <tom@tromey.com>
15850 Pedro Alves <palves@redhat.com>
15851
15852 * linux-nat.c: Include scope-exit.h.
15853 (cleanup_target_stop): Remove.
15854 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15855 SCOPE_EXIT.
15856
15857 2019-01-23 Tom Tromey <tom@tromey.com>
15858 Pedro Alves <palves@redhat.com>
15859
15860 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15861 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15862
15863 2019-01-23 Tom Tromey <tom@tromey.com>
15864 Andrew Burgess <andrew.burgess@embecosm.com>
15865 Pedro Alves <palves@redhat.com>
15866
15867 * infrun.c (fetch_inferior_event): Use scope_exit.
15868 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15869 * top.c (execute_command): Use scope_exit.
15870 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15871 * utils.c (do_bpstat_clear_actions_cleanup)
15872 (make_bpstat_clear_actions_cleanup): Remove.
15873
15874 2019-01-23 Tom Tromey <tom@tromey.com>
15875 Pedro Alves <palves@redhat.com>
15876
15877 * infrun.c: Include "common/scope-exit.h"
15878 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15879 (wait_for_inferior): Use SCOPE_EXIT.
15880 (fetch_inferior_event): Use scope_exit.
15881
15882 2019-01-23 Tom Tromey <tom@tromey.com>
15883 Pedro Alves <palves@redhat.com>
15884
15885 * breakpoint.c (create_breakpoint): Remove cleanup.
15886
15887 2019-01-23 Tom Tromey <tom@tromey.com>
15888 Andrew Burgess <andrew.burgess@embecosm.com>
15889 Pedro Alves <palves@redhat.com>
15890
15891 2019-01-23 Pedro Alves <palves@redhat.com>
15892
15893 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15894
15895 2019-01-23 Pedro Alves <palves@redhat.com>
15896 Andrew Burgess <andrew.burgess@embecosm.com>
15897
15898 * gdbthread.h: Include "common/forward-scope-exit.h".
15899 (scoped_finish_thread_state): Redefine custom class in terms of
15900 forward_scope_exit.
15901
15902 2019-01-23 Pedro Alves <palves@redhat.com>
15903 Andrew Burgess <andrew.burgess@embecosm.com>
15904
15905 * common/forward-scope-exit.h: New file.
15906
15907 2019-01-23 Pedro Alves <palves@redhat.com>
15908 Andrew Burgess <andrew.burgess@embecosm.com>
15909 Tom Tromey <tom@tromey.com>
15910
15911 * common/scope-exit.h: New file.
15912
15913 2019-01-23 Pedro Alves <palves@redhat.com>
15914
15915 * common/preprocessor.h (ESC): Rename to ...
15916 (ESC_PARENS): ... this.
15917 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15918 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15919
15920 2019-01-23 Tom Tromey <tom@tromey.com>
15921
15922 * language.h (class scoped_switch_to_sym_language_if_auto):
15923 Initialize m_lang in both cases.
15924
15925 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15926
15927 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15928 with XCNEW.
15929
15930 2019-01-22 Tom Tromey <tom@tromey.com>
15931
15932 * corelow.c: Do not include sys/file.h.
15933
15934 2019-01-22 Tom Tromey <tom@tromey.com>
15935
15936 * tui/tui-wingeneral.h: Include gdb_curses.h.
15937
15938 2019-01-22 Tom Tromey <tom@tromey.com>
15939
15940 * source-cache.h (class source_cache) <get_source_lines,
15941 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15942
15943 2019-01-22 Tom Tromey <tom@tromey.com>
15944
15945 * remote-fileio.h (struct remote_target): Declare.
15946
15947 2019-01-22 Tom Tromey <tom@tromey.com>
15948
15949 * python/py-arch.c: Do not include py-ref.h.
15950 * python/py-bpevent.c: Do not include py-ref.h.
15951 * python/py-cmd.c: Do not include py-ref.h.
15952 * python/py-continueevent.c: Do not include py-ref.h.
15953 * python/py-event.h: Do not include py-ref.h.
15954 * python/py-evtregistry.c: Do not include py-ref.h.
15955 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15956 * python/py-frame.c: Do not include py-ref.h.
15957 * python/py-framefilter.c: Do not include py-ref.h.
15958 * python/py-function.c: Do not include py-ref.h.
15959 * python/py-infevents.c: Do not include py-ref.h.
15960 * python/py-linetable.c: Do not include py-ref.h.
15961 * python/py-objfile.c: Do not include py-ref.h.
15962 * python/py-param.c: Do not include py-ref.h.
15963 * python/py-prettyprint.c: Do not include py-ref.h.
15964 * python/py-progspace.c: Do not include py-ref.h.
15965 * python/py-symbol.c: Do not include py-ref.h.
15966 * python/py-symtab.c: Do not include py-ref.h.
15967 * python/py-type.c: Do not include py-ref.h.
15968 * python/py-unwind.c: Do not include py-ref.h.
15969 * python/py-utils.c: Do not include py-ref.h.
15970 * python/py-value.c: Do not include py-ref.h.
15971 * python/py-varobj.c: Do not include py-ref.h.
15972 * python/py-xmethods.c: Do not include py-ref.h.
15973 * python/python.c: Do not include py-ref.h.
15974 * varobj.c: Do not include py-ref.h.
15975
15976 2019-01-22 Tom Tromey <tom@tromey.com>
15977
15978 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15979 keyword for bcache.
15980
15981 2019-01-22 Tom Tromey <tom@tromey.com>
15982
15983 * compile/compile-cplus-types.c: Remove a comment by #include.
15984
15985 2019-01-22 Tom Tromey <tom@tromey.com>
15986
15987 * compile/gcc-c-plugin.h: Include compile-internal.h.
15988
15989 2019-01-22 Tom Tromey <tom@tromey.com>
15990
15991 * stabsread.c (EXTERN): Do not define.
15992 (symnum, next_symbol_text_func, processing_gcc_compilation)
15993 (within_function, global_sym_chain, global_stabs)
15994 (previous_stab_code, this_object_header_files)
15995 (n_this_object_header_files)
15996 (n_allocated_this_object_header_files): Define.
15997 * stabsread.h (EXTERN): Never define. Use "extern".
15998
15999 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16000
16001 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16002 history_value.
16003
16004 2019-01-21 Tom Tromey <tom@tromey.com>
16005
16006 * ui-out.c: Fix includes.
16007 * tui/tui-source.c: Fix includes.
16008 * target.c: Fix includes.
16009 * remote.c: Fix includes.
16010 * regcache.c: Fix includes.
16011 * python/py-block.c: Fix includes.
16012 * printcmd.c: Fix includes.
16013 * or1k-tdep.c: Fix includes.
16014 * mi/mi-main.c: Fix includes.
16015 * m32r-tdep.c: Fix includes.
16016 * csky-tdep.c: Fix includes.
16017 * compile/compile-cplus-types.c: Fix includes.
16018 * cli/cli-interp.c: Fix includes.
16019
16020 2019-01-21 Alan Hayward <alan.hayward@arm.com>
16021
16022 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16023 for padding.
16024
16025 2019-01-16 Tom Tromey <tom@tromey.com>
16026
16027 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16028 earlier.
16029 (struct objfile) <msymbols_range>: Move from top level.
16030 <msymbols>: New method.
16031 (class objfile_msymbols): Remove.
16032 * symtab.c (default_collect_symbol_completion_matches_break_on):
16033 Update.
16034 * symmisc.c (dump_msymbols): Update.
16035 * stabsread.c (scan_file_globals): Update.
16036 * objc-lang.c (info_selectors_command, info_classes_command)
16037 (find_methods): Update.
16038 * minsyms.c (find_solib_trampoline_target): Update.
16039 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16040 * coffread.c (coff_symfile_read): Update.
16041 * ada-lang.c (ada_lookup_simple_minsym)
16042 (ada_collect_symbol_completion_matches): Update.
16043
16044 2019-01-16 Tom Tromey <tom@tromey.com>
16045
16046 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16047 type. Remove no-argument constructor.
16048 <iterator::operator++>: Simplify.
16049 <begin>: Update.
16050 <end>: Use minimal_symbol_count.
16051
16052 2019-01-16 Tom Tromey <tom@tromey.com>
16053
16054 * objfiles.h (struct objfile) <psymtabs>: New method.
16055 (class objfile_psymtabs): Remove.
16056 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16057 typedef.
16058 <range>: New method.
16059 (require_partial_symbols): Change return type.
16060 * psymtab.c (require_partial_symbols)
16061 (psym_expand_symtabs_matching): Update.
16062 * mdebugread.c (parse_partial_symbols): Update.
16063 * dbxread.c (dbx_end_psymtab): Update.
16064
16065 2019-01-15 Tom Tromey <tom@tromey.com>
16066
16067 * symtab.c (lookup_objfile_from_block)
16068 (lookup_symbol_in_objfile_symtabs)
16069 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16070 (find_line_symtab, info_sources_command)
16071 (default_collect_symbol_completion_matches_break_on)
16072 (make_source_files_completion_list): Update.
16073 * symmisc.c (print_objfile_statistics, dump_objfile)
16074 (maintenance_print_symbols, maintenance_info_symtabs)
16075 (maintenance_check_symtabs, maintenance_info_line_tables):
16076 Update.
16077 * source.c (select_source_symtab)
16078 (forget_cached_source_info_for_objfile): Update.
16079 * objfiles.h (class objfile_compunits): Remove.
16080 (struct objfile) <compunits_range>: New typedef.
16081 (compunits): New method.
16082 * objfiles.c (objfile_relocate1): Update.
16083 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16084 * maint.c (count_symtabs_and_blocks): Update.
16085 * linespec.c (iterate_over_all_matching_symtabs): Update.
16086 * cp-support.c (add_symbol_overload_list_qualified): Update.
16087 * coffread.c (coff_symtab_read): Update.
16088 * ada-lang.c (add_nonlocal_symbols)
16089 (ada_collect_symbol_completion_matches)
16090 (ada_add_global_exceptions): Update.
16091
16092 2019-01-15 Tom Tromey <tom@tromey.com>
16093
16094 * progspace.h (program_space) <objfiles_safe_range>: New
16095 typedef.
16096 <objfiles_safe>: New method.
16097 * objfiles.h (class all_objfiles_safe): Remove.
16098 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16099 * jit.c (jit_inferior_exit_hook): Update.
16100
16101 2019-01-17 Tom Tromey <tom@tromey.com>
16102
16103 * progspace.h (program_space) <objfiles_range>: New typedef.
16104 <objfiles>: New method.
16105 <objfiles_head>: Rename from objfiles.
16106 (object_files): Update.
16107 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16108 * guile/scm-pretty-print.c
16109 (ppscm_find_pretty_printer_from_objfiles): Update.
16110 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16111 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16112 Update.
16113 * python/py-progspace.c (pspy_get_objfiles): Update.
16114 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16115 Update.
16116 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16117 (objfpy_lookup_objfile_by_build_id): Update.
16118 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16119 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16120 Update.
16121 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16122 (expand_symtab_containing_pc, lookup_objfile_from_block)
16123 (lookup_static_symbol, basic_lookup_transparent_type)
16124 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16125 (find_line_symtab, info_sources_command)
16126 (default_collect_symbol_completion_matches_break_on)
16127 (make_source_files_completion_list, find_main_name): Update.
16128 * symmisc.c (print_symbol_bcache_statistics)
16129 (print_objfile_statistics, maintenance_print_symbols)
16130 (maintenance_print_msymbols, maintenance_print_objfiles)
16131 (maintenance_info_symtabs, maintenance_check_symtabs)
16132 (maintenance_expand_symtabs, maintenance_info_line_tables):
16133 Update.
16134 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16135 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16136 (map_overlay_command, unmap_overlay_command)
16137 (simple_overlay_update, expand_symtabs_matching)
16138 (map_symbol_filenames): Update.
16139 * symfile-debug.c (set_debug_symfile): Update.
16140 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16141 Update.
16142 * source.c (select_source_symtab, forget_cached_source_info):
16143 Update.
16144 * solib.c (solib_read_symbols): Update.
16145 * solib-spu.c (append_ocl_sos): Update.
16146 * psymtab.c (maintenance_print_psymbols)
16147 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16148 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16149 * printcmd.c (info_symbol_command): Update.
16150 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16151 Update.
16152 * objfiles.h (class all_objfiles): Remove.
16153 * objfiles.c (have_partial_symbols, have_full_symbols)
16154 (have_minimal_symbols, qsort_cmp, update_section_map)
16155 (shared_objfile_contains_address_p)
16156 (default_iterate_over_objfiles_in_search_order): Update.
16157 * objc-lang.c (info_selectors_command, info_classes_command)
16158 (find_methods): Update.
16159 * minsyms.c (find_solib_trampoline_target): Update.
16160 * maint.c (maintenance_info_sections)
16161 (maintenance_translate_address, count_symtabs_and_blocks):
16162 Update.
16163 * main.c (captured_main_1): Update.
16164 * linux-thread-db.c (try_thread_db_load_from_pdir)
16165 (has_libpthread): Update.
16166 * linespec.c (iterate_over_all_matching_symtabs)
16167 (search_minsyms_for_name): Update.
16168 * jit.c (jit_find_objf_with_entry_addr): Update.
16169 * hppa-tdep.c (find_unwind_entry)
16170 (hppa_lookup_stub_minimal_symbol): Update.
16171 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16172 Update.
16173 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16174 (elf_gnu_ifunc_resolve_by_got): Update.
16175 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16176 * dwarf-index-write.c (save_gdb_index_command): Update.
16177 * cp-support.c (add_symbol_overload_list_qualified): Update.
16178 * breakpoint.c (create_overlay_event_breakpoint)
16179 (create_longjmp_master_breakpoint)
16180 (create_std_terminate_master_breakpoint)
16181 (create_exception_master_breakpoint): Update.
16182 * blockframe.c (find_pc_partial_function): Update.
16183 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16184 (ada_collect_symbol_completion_matches)
16185 (ada_add_global_exceptions): Update.
16186
16187 2019-01-17 Tom Tromey <tom@tromey.com>
16188
16189 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16190 declare VEC.
16191 (solib_target_parse_libraries): Change return type.
16192 (library_list_start_segment, library_list_start_section)
16193 (library_list_end_library, library_list_start_library); Update.
16194 (solib_target_free_library_list): Remove.
16195 (solib_target_parse_libraries): Remove cleanup. Change return
16196 type.
16197 (solib_target_current_sos): Update.
16198
16199 2019-01-17 Tom Tromey <tromey@bapiya>
16200
16201 * valprint.c: Replace "the the" with "the".
16202 * symtab.c: Replace "the the" with "the".
16203 * solib.c: Replace "the the" with "the".
16204 * solib-dsbt.c: Replace "the the" with "the".
16205 * linespec.c: Replace "the the" with "the".
16206 * dwarf2loc.h: Replace "the the" with "the".
16207 * amd64-windows-tdep.c: Replace "the the" with "the".
16208 * aarch64-tdep.c: Replace "the the" with "the".
16209
16210 2019-01-16 Keith Seitz <keiths@redhat.com>
16211
16212 PR gdb/23773
16213 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16214 <builder>: Rename to ..
16215 <m_builder>: ... this and make private.
16216 (dwarf2_cu::get_builder): New method. Change all users of
16217 `builder' to use this method.
16218 (dwarf2_start_symtab): Move to ...
16219 (dwarf2_cu::start_symtab): ... here. Update all callers
16220 (setup_type_unit_groups): Move to ...
16221 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16222 callers.
16223 (dwarf2_cu::reset_builder): New method.
16224 (process_full_compunit, process_full_type_unit): Use
16225 dwarf2_cu::reset_builder.
16226 (follow_die_offset): Record the ancestor CU if it is different
16227 from the followed DIE's CU.
16228 (follow_die_sig_1): Likewise.
16229
16230 2019-01-15 Tom Tromey <tom@tromey.com>
16231
16232 * remote.c (class remote_state) <buf>: Now a char_vector.
16233 <buf_size>: Remove.
16234 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16235 parameter.
16236 (remote_target::getpkt_or_notif_sane_1)
16237 (remote_target::getpkt_sane)
16238 (remote_target::getpkt_or_notif_sane): Likewise.
16239 (class remote_target) <putpkt>: New overload.
16240 (remote_target::read_frame): Change type of "buf_p". Remove
16241 sizeof_p parameter.
16242 (packet_ok): New overload.
16243 (packet_check_result): New overload.
16244 Update all uses.
16245
16246 2019-01-14 Tom Tromey <tom@tromey.com>
16247
16248 * remote-notif.c (handle_notification, remote_notif_ack)
16249 (remote_notif_parse): Make "buf" const.
16250 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16251 const.
16252 (remote_notif_parse, remote_notif_ack, handle_notification):
16253 Likewise.
16254 * remote.c (remote_notif_stop_parse): Make "buf" const.
16255 (remote_target::remote_parse_stop_reply): Make "buf" const.
16256 (remote_notif_stop_ack): Make "buf" const.
16257
16258 2019-01-14 Tom Tromey <tom@tromey.com>
16259
16260 * remote.c (remote_console_output): Make parameter const.
16261
16262 2019-01-14 Tom Tromey <tom@tromey.com>
16263
16264 * target-debug.h (target_debug_print_signals): Constify.
16265 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16266 * procfs.c (procfs_target::pass_signals): Update.
16267 * linux-nat.c (linux_nat_target::pass_signals): Update.
16268 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16269 * target-delegates.c: Rebuild.
16270 * remote.c (remote_target::program_signals): Update.
16271 (remote_target::pass_signals): Update.
16272 * target.c (target_pass_signals): Constify argument.
16273 (target_program_signals): Likewise.
16274 * target.h (struct target_ops) <pass_signals, program_signals>:
16275 Constify argument.
16276 (target_pass_signals, target_program_signals): Constify argument.
16277
16278 2019-01-14 Tom Tromey <tom@tromey.com>
16279
16280 PR tui/28819:
16281 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16282
16283 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16284
16285 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16286 field.
16287 * rs6000-tdep.c: Include reggroups.h.
16288 (IS_V_ALIAS_PSEUDOREG): Define.
16289 (rs6000_register_name): Return names for the "vX" aliases.
16290 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16291 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16292 aliases. Call default_register_reggroup_p for all other
16293 pseudo-registers.
16294 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16295 New functions.
16296 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16297 Handle "vX" aliases.
16298 (v_alias_pseudo_register_collect): New function.
16299 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16300 (rs6000_gdbarch_init): Initialize "vX" aliases as
16301 pseudo-registers. Restore registration of
16302 rs6000_pseudo_register_reggroup_p with
16303 set_tdesc_pseudo_register_reggroup_p.
16304
16305 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16306
16307 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16308 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16309 set_gdbarch_num_pseudo_regs.
16310
16311 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16312
16313 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16314 Remove arg prefixname, add do_set and do_show.
16315 Add member functions set_list and show_list.
16316 * cli/cli-style.c (class cli_style_option): Update accordingly.
16317 (style_set_list): Move to file scope.
16318 (style_show_list): Likewise.
16319 (set_style): Call help_list.
16320 (show_style): Call cmd_show_list.
16321 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16322 Update to use the new macro.
16323
16324 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16325
16326 * ada-lang.c (_initialize_ada_language): Expand the help text
16327 for the "catch exception" command.
16328
16329 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16330
16331 * symtab.c (matching_obj_sections): Initialize obj,
16332 declare it closer to its usage.
16333
16334 2019-01-10 Tom Tromey <tom@tromey.com>
16335
16336 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16337 (basic_inf_threads_range): Remove.
16338 (inf_threads_range, inf_non_exited_threads_range)
16339 (safe_inf_threads_range): Use next_adapter.
16340
16341 2019-01-10 Keith Seitz <keiths@redhat.com>
16342
16343 PR gdb/23712
16344 PR symtab/23010
16345 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16346 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16347
16348 2019-01-10 Keith Seitz <keiths@redhat.com>
16349
16350 PR gdb/23712
16351 PR symtab/23010
16352 * dictionary.c (pending_to_vector): Remove.
16353 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16354 Remove _1 suffix, replacing functions of the same name. Update
16355 all callers.
16356 (dict_create_hashed, dict_create_hashed_expandable)
16357 (dict_create_linear, dict_create_linear_expandable, dict_free)
16358 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16359 Make functions static.
16360
16361 2019-01-10 Keith Seitz <keiths@redhat.com>
16362
16363 PR gdb/23712
16364 PR symtab/23010
16365 * dictionary.h (struct dictionary): Replace declaration with
16366 multidictionary.
16367 (dict_create_hashed, dict_create_hashed_expandable)
16368 (dict_create_linear, dict_create_linear_expandable)
16369 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16370 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16371 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16372 taking multidictionary argument.
16373 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16374 * block.h (struct block) <dict>: Change to multidictionary
16375 and rename `multidict'.
16376 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16377 symmisc.c: Update all dictionary references to multidictionary.
16378
16379 2019-01-10 Keith Seitz <keiths@redhat.com>
16380
16381 PR gdb/23712
16382 PR symtab/23010
16383 * dictionary.c: Include unordered_map.
16384 (pending_to_vector): New function.
16385 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16386 Rewrite the non-"_1" functions to take vector instead
16387 of linked list.
16388 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16389 "new" _1 versions of the same name.
16390 (multidictionary): Define.
16391 (std::hash<enum language): New definition.
16392 (collate_pending_symbols_by_language, mdict_create_hashed)
16393 (mdict_create_hashed_expandable, mdict_create_linear)
16394 (mdict_create_linear_expandable, mdict_free)
16395 (find_language_dictionary, create_new_language_dictionary)
16396 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16397 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16398 (mdict_size, mdict_empty): New functions.
16399 * dictionary.h (mdict_iterator): Define.
16400
16401 2019-01-10 Pedro Alves <palves@redhat.com>
16402
16403 * breakpoint.c (read_uploaded_action)
16404 (create_tracepoint_from_upload): Adjust to use
16405 gdb::unique_xmalloc_ptr.
16406 * ctf.c (ctf_write_uploaded_tp):
16407 (SET_ARRAY_FIELD): Use emplace_back.
16408 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16409 * tracefile-tfile.c (tfile_write_uploaded_tp):
16410 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16411 gdb::unique_xmalloc_ptr.
16412 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16413 at_string, cond_string, cmd_strings>: Replace char pointers
16414 with gdb::unique_xmalloc_ptr.
16415
16416 2019-01-10 Pedro Alves <palves@redhat.com>
16417
16418 * solib-target.c (library_list_start_library): Don't xstrdup name.
16419
16420 2019-01-10 Pedro Alves <palves@redhat.com>
16421
16422 * mdebugread.c (parse_partial_symbols): Use
16423 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16424
16425 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16426
16427 * linux-fork.c (scoped_switch_fork_info)
16428 <~scoped_switch_fork_info>: Fix incorrect variable name.
16429
16430 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16431
16432 * linux-fork.c (scoped_switch_fork_info)
16433 <scoped_switch_fork_info>: Make explicit.
16434 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16435
16436 2019-01-10 Tom Tromey <tom@tromey.com>
16437
16438 * objfiles.h (objfile::reset_psymtabs): Update.
16439 * objfiles.c (objfile::objfile): Update.
16440 * psymtab.h (psymtab_storage::obstack): Update.
16441 (psymtab_storage::m_obstack): Use gdb::optional.
16442 (class psymtab_storage): Update comment. Remove objfile
16443 parameter.
16444 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16445
16446 2019-01-10 Tom Tromey <tom@tromey.com>
16447
16448 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16449 <free_psymtabs>: Now private.
16450 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16451 (allocate_psymtab): Use new method.
16452
16453 2019-01-10 Tom Tromey <tom@tromey.com>
16454
16455 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16456 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16457 * mdebugread.c (parse_partial_symbols): Use
16458 allocate_dependencies.
16459 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16460 allocate_dependencies.
16461 (process_psymtab_comp_unit_reader)
16462 (build_type_psymtab_dependencies): Likewise.
16463 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16464
16465 2019-01-10 Tom Tromey <tom@tromey.com>
16466
16467 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16468 PSYMBOL_SET_LANGUAGE.
16469 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16470
16471 2019-01-10 Tom Tromey <tom@tromey.com>
16472
16473 * psymtab.h (psymtab_storage::obstack): New method.
16474 <m_obstack>: Rename from obstack; now private.
16475 * psymtab.c (psymtab_storage): Update.
16476 * dwarf2read.c (create_addrmap_from_index)
16477 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16478 Update.
16479
16480 2019-01-10 Tom Tromey <tom@tromey.com>
16481
16482 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16483 * objfiles.h (objfile::reset_psymtabs): New method.
16484
16485 2019-01-10 Tom Tromey <tom@tromey.com>
16486
16487 * symmisc.c (print_symbol_bcache_statistics): Update.
16488 (print_objfile_statistics): Update.
16489 * symfile.c (reread_symbols): Update.
16490 * psymtab.h (class psymtab_storage): New.
16491 * psymtab.c (psymtab_storage): New constructor.
16492 (~psymtab_storage): New destructor.
16493 (require_partial_symbols): Update.
16494 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16495 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16496 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16497 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16498 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16499 (start_psymtab_common, end_psymtab_common)
16500 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16501 (allocate_psymtab): Update.
16502 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16503 Update.
16504 (dump_psymtab_addrmap, maintenance_print_psymbols)
16505 (maintenance_check_psymtabs): Update.
16506 (class objfile_psymtabs): Move to objfiles.h.
16507 * psympriv.h (discard_psymtab): Now inline.
16508 (psymtab_discarder::psymtab_discarder): Update.
16509 (psymtab_discarder::~psymtab_discarder): Update.
16510 (ALL_OBJFILE_PSYMTABS): Rewrite.
16511 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16512 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16513 Remove fields.
16514 <partial_symtabs>: New field.
16515 (class objfile_psymtabs): Move from psymtab.h. Update.
16516 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16517 psymbol_cache.
16518 (objfile::~objfile): Don't destroy psymbol_cache.
16519 * mdebugread.c (parse_partial_symbols): Update.
16520 * dwarf2read.c (create_addrmap_from_index)
16521 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16522 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16523 (add_partial_subprogram, dwarf2_ranges_read): Update.
16524 * dwarf-index-write.c (write_address_map)
16525 (write_one_signatured_type, recursively_write_psymbols)
16526 (class debug_names, class debug_names, write_psymtabs_to_index):
16527 Update.
16528
16529 2019-01-10 Tom Tromey <tom@tromey.com>
16530
16531 * symtab.h (SYMBOL_SET_NAMES): Update.
16532 (symbol_set_names): Update.
16533 (MSYMBOL_SET_NAMES): Update.
16534 * symtab.c (symbol_set_names): Change argument to be an
16535 objfile_per_bfd_storage.
16536 * psymtab.c (add_psymbol_to_bcache): Update.
16537 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16538
16539 2019-01-10 Tom Tromey <tom@tromey.com>
16540
16541 * symtab.c (create_demangled_names_hash): Change argument to be an
16542 objfile_per_bfd_storage.
16543 (symbol_set_names): Update.
16544
16545 2019-01-10 Tom Tromey <tom@tromey.com>
16546
16547 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16548 init_psymbol_list.
16549 * psymtab.c (init_psymbol_list): Do nothing if already called.
16550 * psympriv.h (init_psymbol_list): Add comment.
16551 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16552 init_psymbol_list.
16553 * dbxread.c (dbx_symfile_read): Unconditionally call
16554 init_psymbol_list.
16555
16556 2019-01-10 Tom Tromey <tom@tromey.com>
16557
16558 * xcoffread.c (scan_xcoff_symtab): Update.
16559 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16560 "where".
16561 * mdebugread.c (parse_partial_symbols)
16562 (handle_psymbol_enumerators): Update.
16563 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16564 * dbxread.c (read_dbx_symtab): Update.
16565 * psympriv.h (psymbol_placement): New enum.
16566 (add_psymbol_to_list): Update.
16567
16568 2019-01-10 Tom Tromey <tom@tromey.com>
16569
16570 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16571 static_psymbols parameters.
16572 (scan_xcoff_symtab): Update.
16573 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16574 static_psymbols parameters.
16575 * psympriv.h (start_psymtab_common): Update.
16576 * mdebugread.c (parse_partial_symbols): Update.
16577 * dwarf2read.c (create_partial_symtab): Update.
16578 * dbxread.c (read_dbx_symtab): Update.
16579 (start_psymtab): Remove global_psymbols and static_psymbols
16580 parameters.
16581
16582 2019-01-10 Tom Tromey <tom@tromey.com>
16583
16584 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16585 * psymtab.c (allocate_psymtab): Add comment.
16586 * psympriv.h (allocate_psymtab): Add comment.
16587 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16588 initializations.
16589 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16590
16591 2019-01-10 Tom Tromey <tom@tromey.com>
16592
16593 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16594 Don't declare.
16595 * mipsread.c: Include mdebugread.h.
16596 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16597 Declare.
16598 * elfread.c: Include mdebugread.h.
16599
16600 2019-01-09 Tom Tromey <tom@tromey.com>
16601
16602 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16603 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16604 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16605 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16606 (psym_lookup_symbol, psym_find_last_source_symtab)
16607 (psym_forget_cached_source_info, psym_print_stats)
16608 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16609 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16610 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16611 (psym_find_compunit_symtab_by_address)
16612 (maintenance_print_psymbols, maintenance_info_psymtabs)
16613 (maintenance_check_psymtabs): Use ranged for.
16614 * psymtab.h (class objfile_psymtabs): New.
16615 (require_partial_symbols): Return objfile_psymtabs.
16616 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16617
16618 2019-01-09 Tom Tromey <tom@tromey.com>
16619
16620 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16621 (find_pc_mapped_section, list_overlays_command)
16622 (map_overlay_command, unmap_overlay_command)
16623 (simple_overlay_update): Use all_objfiles.
16624 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16625 * printcmd.c (info_symbol_command): Use all_objfiles.
16626 * objfiles.h (ALL_OBJSECTIONS): Remove.
16627 * maint.c (maintenance_translate_address): Use all_objfiles.
16628 * gcore.c (gcore_create_callback): Use all_objfiles.
16629 (objfile_find_memory_regions): Likewise.
16630
16631 2019-01-09 Tom Tromey <tom@tromey.com>
16632
16633 * symtab.c (find_line_symtab, info_sources_command)
16634 (make_source_files_completion_list): Use objfile_compunits.
16635 * source.c (select_source_symtab): Use objfile_compunits.
16636 * objfiles.h (struct objfile): Update comment.
16637 (ALL_OBJFILES): Remove.
16638 (ALL_FILETABS): Remove.
16639 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16640 objfile_compunits.
16641
16642 2019-01-09 Tom Tromey <tom@tromey.com>
16643
16644 * symmisc.c (print_objfile_statistics, dump_objfile)
16645 (maintenance_print_symbols): Use compunit_filetabs.
16646 * source.c (forget_cached_source_info_for_objfile): Use
16647 compunit_filetabs.
16648 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16649 (ALL_FILETABS): Use compunit_filetabs.
16650 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16651 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16652
16653 2019-01-09 Tom Tromey <tom@tromey.com>
16654
16655 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16656 (compunit_filetabs): New.
16657 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16658 compunit_filetabs.
16659 (info_sources_command, make_source_files_completion_list): Remove
16660 declaration.
16661 * symmisc.c (print_objfile_statistics, dump_objfile)
16662 (maintenance_print_symbols): Remove declaration.
16663 (maintenance_info_symtabs): Use compunit_filetabs.
16664 (maintenance_info_line_tables): Likewise.
16665 * source.c (select_source_symtab): Change local variable name.
16666 (forget_cached_source_info_for_objfile): Remove declaration.
16667 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16668 * objfiles.c (objfile_relocate1): Remove declaration.
16669 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16670 declaration.
16671 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16672 * coffread.c (coff_symtab_read): Remove declaration.
16673 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16674 compunit_filetabs.
16675
16676 2019-01-09 Tom Tromey <tom@tromey.com>
16677
16678 * symtab.c (lookup_objfile_from_block)
16679 (find_pc_sect_compunit_symtab, search_symbols)
16680 (default_collect_symbol_completion_matches_break_on): Use
16681 objfile_compunits.
16682 * objfiles.h (ALL_COMPUNITS): Remove.
16683 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16684 * cp-support.c (add_symbol_overload_list_qualified): Use
16685 objfile_compunits.
16686 * ada-lang.c (ada_collect_symbol_completion_matches)
16687 (ada_add_global_exceptions): Use objfile_compunits.
16688
16689 2019-01-09 Tom Tromey <tom@tromey.com>
16690
16691 * source.c (select_source_symtab)
16692 (forget_cached_source_info_for_objfile): Remove declaration.
16693 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16694 declaration.
16695 * maint.c (count_symtabs_and_blocks): Remove declaration.
16696 * cp-support.c (add_symbol_overload_list_qualified): Remove
16697 declaration.
16698 * coffread.c (coff_symtab_read): Remove declaration.
16699 * symtab.c (lookup_symbol_in_objfile_symtabs)
16700 (basic_lookup_transparent_type_1): Use objfile_compunits.
16701 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16702 (info_sources_command, search_symbols)
16703 (default_collect_symbol_completion_matches_break_on)
16704 (make_source_files_completion_list): Remove declaration.
16705 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16706 (ada_collect_symbol_completion_matches)
16707 (ada_add_global_exceptions): Remove declaration.
16708 * linespec.c (iterate_over_all_matching_symtabs): Use
16709 objfile_compunits.
16710 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16711 (class objfile_compunits): New.
16712 (ALL_COMPUNITS): Use objfile_compunits.
16713 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16714 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16715 objfile_compunits.
16716 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16717
16718 2019-01-09 Tom Tromey <tom@tromey.com>
16719
16720 * symtab.c (search_symbols)
16721 (default_collect_symbol_completion_matches_break_on): Use
16722 objfile_msymbols.
16723 * ada-lang.c (ada_lookup_simple_minsym)
16724 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16725 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16726 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16727 objfile_msymbols.
16728 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16729 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16730 * objc-lang.c (find_methods): Use objfile_msymbols.
16731 (info_selectors_command, info_classes_command): Likewise.
16732 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16733 * objfiles.h (class objfile_msymbols): New.
16734 (ALL_OBJFILE_MSYMBOLS): Remove.
16735 (ALL_MSYMBOLS): Remove.
16736
16737 2019-01-09 Tom Tromey <tom@tromey.com>
16738
16739 * common/next-iterator.h (next_adapter): Add Iterator template
16740 parameter.
16741 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16742 (class all_objfiles_safe): New.
16743 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16744 * objfiles.c (put_objfile_before): Update comment.
16745 (add_separate_debug_objfile): Likewise.
16746 (free_all_objfiles): Use all_objfiles_safe.
16747 (objfile_purge_solibs): Likewise.
16748
16749 2019-01-09 Tom Tromey <tom@tromey.com>
16750
16751 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16752 (expand_symtab_containing_pc, lookup_static_symbol)
16753 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16754 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16755 all_objfiles.
16756 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16757 * breakpoint.c (create_overlay_event_breakpoint)
16758 (create_longjmp_master_breakpoint)
16759 (create_std_terminate_master_breakpoint)
16760 (create_exception_master_breakpoint): Use all_objfiles.
16761 * linux-thread-db.c (try_thread_db_load_from_pdir)
16762 (has_libpthread): Use all_objfiles.
16763 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16764 * linespec.c (iterate_over_all_matching_symtabs)
16765 (search_minsyms_for_name): Use all_objfiles.
16766 * maint.c (maintenance_info_sections): Use all_objfiles.
16767 * main.c (captured_main_1): Use all_objfiles.
16768 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16769 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16770 * guile/scm-pretty-print.c
16771 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16772 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16773 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16774 (maintenance_print_msymbols): Use all_objfiles.
16775 * source.c (select_source_symtab): Use all_objfiles.
16776 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16777 * symfile.c (remove_symbol_file_command)
16778 (expand_symtabs_matching, map_symbol_filenames): Use
16779 all_objfiles.
16780 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16781 all_objfiles.
16782 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16783 * objc-lang.c (find_methods): Use all_objfiles.
16784 * objfiles.c (have_partial_symbols, have_full_symbols)
16785 (have_minimal_symbols, qsort_cmp)
16786 (default_iterate_over_objfiles_in_search_order): Use
16787 all_objfiles.
16788 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16789 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16790 (maintenance_check_psymtabs): Use all_objfiles.
16791 (ALL_PSYMTABS): Remove.
16792 * compile/compile-object-run.c (do_module_cleanup): Use
16793 all_objfiles.
16794 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16795 * cp-support.c (add_symbol_overload_list_qualified): Use
16796 all_objfiles.
16797 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16798 Use all_objfiles.
16799 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16800 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16801 all_objfiles.
16802 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16803 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16804 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16805 Uses all_objfiles.
16806 * solib.c (solib_read_symbols): Use all_objfiles
16807
16808 2019-01-09 Tom Tromey <tom@tromey.com>
16809
16810 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16811 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16812 all_objfiles.
16813 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16814 * symmisc.c (print_symbol_bcache_statistics)
16815 (print_objfile_statistics, maintenance_print_objfiles)
16816 (maintenance_info_symtabs, maintenance_check_symtabs)
16817 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16818 all_objfiles.
16819 * source.c (forget_cached_source_info): Use all_objfiles.
16820 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16821 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16822 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16823 * objfiles.c (update_section_map): Use all_objfiles.
16824 (shared_objfile_contains_address_p): Likewise.
16825 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16826 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16827
16828 2019-01-09 Tom Tromey <tom@tromey.com>
16829
16830 * common/next-iterator.h: New file.
16831 * objfiles.h (class all_objfiles): New.
16832 (struct objfile_iterator): New.
16833
16834 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16835
16836 * NEWS: Move the description of the changed "frame", "select-frame",
16837 and "info frame" commands to the Changed commands section.
16838
16839 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16840
16841 * gdbtypes.c (check_stub_method_group): Remove handling of old
16842 mangling schemes.
16843 * linespec.c (find_methods): Likewise.
16844 * stabsread.c (read_member_functions): Likewise.
16845 * valops.c (search_struct_method): Likewise.
16846 (value_struct_elt_for_reference): Likewise.
16847 * NEWS: Mention this change.
16848
16849 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16850
16851 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16852 print_source_lines.
16853 * source.c (print_source_lines_base): Update line number check.
16854 (print_source_lines): New function.
16855 (source_lines_range::source_lines_range): New function.
16856 * source.h (class source_lines_range): New class.
16857 (print_source_lines): New declaration.
16858
16859 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16860
16861 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16862
16863 2019-01-08 Tom Tromey <tom@tromey.com>
16864 Simon Marchi <simon.marchi@ericsson.com>
16865
16866 PR gdb/24060
16867 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16868 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16869 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16870 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16871 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16872 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16873
16874 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16875
16876 * source.c (select_source_symtab): Move header comment to
16877 declaration in source.h.
16878 (forget_cached_source_info_for_objfile): Likewise.
16879 (forget_cached_source_info): Likewise.
16880 (identify_source_line): Likewise.
16881 * source.h (identify_source_line): Move declaration from symtab.h
16882 and add comment from source.c
16883 (print_source_lines): Likewise.
16884 (forget_cached_source_info_for_objfile): Likewise.
16885 (forget_cached_source_info): Likewise.
16886 (select_source_symtab): Likewise.
16887 (enum print_source_lines_flag): Move definition from symtab.h.
16888 * symtab.h (identify_source_line): Move declaration to source.h.
16889 (print_source_lines): Likewise.
16890 (forget_cached_source_info_for_objfile): Likewise.
16891 (forget_cached_source_info): Likewise.
16892 (select_source_symtab): Likewise.
16893 (enum print_source_lines_flag): Move definition to source.h.
16894 * tui/tui-hooks.c: Add 'source.h' include.
16895
16896 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16897
16898 * source.c (print_source_lines_base): Handle requests to print
16899 reverse line number sequences, and guard against empty lines
16900 string.
16901
16902 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16903
16904 * source.c (print_source_lines_base): Fix skip of '\r' if next
16905 character is '\n'.
16906
16907 2019-01-06 Tom Tromey <tom@tromey.com>
16908
16909 * c-exp.y (struct c_parse_state) <macro_original_text,
16910 expansion_obstack>: New member.
16911 (macro_original_text, expansion_obstack): Remove globals.
16912 (scan_macro_expansion, scanning_macro_expansion)
16913 (finished_macro_expansion): Update.
16914 (scan_macro_cleanup): Remove.
16915 (yylex, c_parse): Update.
16916
16917 2019-01-06 Tom Tromey <tom@tromey.com>
16918
16919 * c-exp.y (struct c_parse_state) <strings>: New member.
16920 (operator_stoken): Update.
16921
16922 2019-01-06 Tom Tromey <tom@tromey.com>
16923
16924 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16925 (union type_stack_elt) <typelist_val>: Now a pointer to
16926 std::vector.
16927 (type_stack_cleanup): Don't declare.
16928 (push_typelist): Update.
16929 * parse.c (pop_typelist): Return a std::vector.
16930 (push_typelist): Take a std::vector.
16931 (follow_types): Update. Do not free args.
16932 (type_stack_cleanup): Remove.
16933 * c-exp.y (struct c_parse_state): New.
16934 (cpstate): New global.
16935 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16936 (nonempty_typelist): Update.
16937 (func_mod): Create a new vector.
16938 (c_parse): Create a c_parse_state.
16939 (check_parameter_typelist): Do not delete params.
16940 (function_method): Update. Do not delete type_list.
16941
16942 2019-01-06 Tom Tromey <tom@tromey.com>
16943
16944 PR gdb/28155:
16945 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16946 check_typedef.
16947 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16948 (print_return_value): Likewise.
16949
16950 2019-01-05 Tom Tromey <tom@tromey.com>
16951
16952 * contrib/cleanup_check.py: Remove.
16953 * contrib/gcc-with-excheck: Remove.
16954 * contrib/exsummary.py: Remove.
16955 * contrib/excheck.py: Remove.
16956
16957 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16958
16959 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16960 NULL. Initialize tpprev to NULL instead of assigning it
16961 to NULL on the next statement.
16962 * windows-nat.c (windows_delete_thread): Remove check for
16963 main_thread_id before printing thread exit notifications.
16964 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16965 Remove thread ID check against main_thread_id.
16966 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16967 windows_delete_thread.
16968 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16969
16970 2019-01-04 Tom Tromey <tom@tromey.com>
16971
16972 * compile/compile.c (_initialize_compile): Use upper case for
16973 metasyntactic variables.
16974 * symmisc.c (_initialize_symmisc): Use upper case for
16975 metasyntactic variables.
16976 * psymtab.c (_initialize_psymtab): Use upper case for
16977 metasyntactic variables.
16978 * demangle.c (demangle_command): Use upper case for metasyntactic
16979 variables.
16980 (_initialize_demangler): Likewise.
16981 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16982 variables.
16983
16984 2019-01-03 Tom Tromey <tom@tromey.com>
16985
16986 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16987
16988 2019-01-03 Tom Tromey <tom@tromey.com>
16989
16990 * python/py-symtab.c (salpy_str): Update.
16991 (struct salpy_sal_object) <symtab>: Now a PyObject.
16992 (salpy_dealloc): Update.
16993 (del_objfile_sal): Use gdbpy_ref.
16994
16995 2019-01-03 Tom Tromey <tom@tromey.com>
16996
16997 * python/py-type.c (convert_field): Use new_reference. Return
16998 gdbpy_ref.
16999 (make_fielditem): Return gdbpy_ref.
17000 (typy_fields): Update.
17001 (typy_getitem): Update.
17002 (field_name): Return gdbpy_ref. Use new_reference.
17003 (typy_iterator_iternext): Update.
17004
17005 2019-01-03 Tom Tromey <tom@tromey.com>
17006
17007 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17008
17009 2019-01-03 Tom Tromey <tom@tromey.com>
17010
17011 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17012 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17013 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17014 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17015 (pspy_set_type_printers): Likewise.
17016 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17017 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17018 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17019 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17020 (objfpy_set_type_printers): Likewise.
17021
17022 2019-01-03 Tom Tromey <tom@tromey.com>
17023
17024 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17025 (gdbpy_print_stack): Use gdbpy_err_fetch.
17026 * python/python-internal.h (class gdbpy_err_fetch): New class.
17027 (class gdbpy_enter) <m_error_type, m_error_value,
17028 m_error_traceback>: Remove.
17029 <m_error>: New member.
17030 (gdbpy_exception_to_string): Don't declare.
17031 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17032 * python/py-value.c (convert_value_from_python): Use
17033 gdbpy_err_fetch.
17034 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17035 gdbpy_exception_to_string.
17036 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17037 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17038 gdbpy_err_fetch.
17039
17040 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17041
17042 * linux-nat.c (delete_lwp_cleanup): Delete.
17043 (struct lwp_deleter): New struct.
17044 (lwp_info_up): New typedef.
17045 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17046 lwp_info_up.
17047
17048 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17049
17050 * linux-fork.c (class scoped_switch_fork_info): New class.
17051 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17052
17053 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17054
17055 * valops.c (find_overload_match): Remove use of null_cleanup, and
17056 calls to do_cleanups.
17057
17058 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17059
17060 * compile/compile-cplus-types.c
17061 (compile_cplus_instance::decl_name): Handle changes to
17062 cp_func_name.
17063 * cp-support.c (cp_func_name): Update header comment, update
17064 return type.
17065 * cp-support.h (cp_func_name): Update return type in declaration.
17066 * valops.c (find_overload_match): Move temp_func local to top
17067 level of function and change its type. Use temp_func to hold and
17068 delete temporary string obtained from cp_func_name.
17069
17070 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17071
17072 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17073 gdb::char_vector, remove cleanup, and update uses of `msg`.
17074
17075 2019-01-03 Jim Wilson <jimw@sifive.com>
17076
17077 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17078
17079 2019-01-02 Tom Tromey <tom@tromey.com>
17080
17081 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17082 (tdesc_parse_xml): Remove cleanups.
17083 * target-descriptions.h (make_cleanup_free_target_description):
17084 Don't declare.
17085 (target_desc_deleter): New struct.
17086 (target_desc_up): New typedef.
17087 * target-descriptions.c (target_desc_deleter::operator()): Rename
17088 from free_target_description.
17089 (make_cleanup_free_target_description): Remove.
17090
17091 2019-01-02 Tom Tromey <tom@tromey.com>
17092
17093 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17094 constructor, destructor.
17095 (linespec_parser): Remove typedef.
17096 (~linespec_parser): Rename from linespec_parser_delete.
17097 (linespec_lex_to_end, linespec_complete_label)
17098 (linespec_complete): Update.
17099 (decode_line_full): Remove cleanups.
17100 (decode_line_1): Update.
17101
17102 2019-01-02 Tom Tromey <tom@tromey.com>
17103
17104 * python/python-internal.h (inferior_to_inferior_object): Change
17105 return type.
17106 * python/py-exitedevent.c (create_exited_event_object): Update.
17107 * python/py-inferior.c (inferior_to_inferior_object): Return
17108 gdbpy_ref.
17109 (python_new_inferior, python_inferior_deleted)
17110 (thread_to_thread_object, delete_thread_object)
17111 (build_inferior_list, gdbpy_selected_inferior): Update.
17112 * python/py-infthread.c (create_thread_object): Update. Also fail
17113 if inferior_to_inferior_object fails.
17114
17115 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17116
17117 * inferior.h (class inferior) <displaced_step_state>: New field.
17118 * infrun.h (struct displaced_step_state): Move here from
17119 infrun.c. Initialize fields, add constructor.
17120 <inf>: Remove field.
17121 <reset>: New method.
17122 * infrun.c (struct displaced_step_inferior_state): Move to
17123 infrun.h.
17124 (displaced_step_inferior_states): Remove.
17125 (get_displaced_stepping_state): Adust.
17126 (displaced_step_in_progress_any_inferior): Adjust.
17127 (displaced_step_in_progress_thread): Adjust.
17128 (displaced_step_in_progress): Adjust.
17129 (add_displaced_stepping_state): Remove.
17130 (get_displaced_step_closure_by_addr): Adjust.
17131 (remove_displaced_stepping_state): Remove.
17132 (infrun_inferior_exit): Call displaced_step_state.reset.
17133 (use_displaced_stepping): Don't check for NULL.
17134 (displaced_step_prepare_throw): Call
17135 get_displaced_stepping_state.
17136 (displaced_step_fixup): Don't check for NULL.
17137 (prepare_for_detach): Don't check for NULL.
17138
17139 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17140
17141 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17142 in case of call that did not complete.
17143
17144 2019-01-02 Andrey Utkin <autkin@undo.io>
17145
17146 * symfile.c (find_separate_debug_file): Fix search of debug files for
17147 remote debuggee.
17148
17149 2019-01-02 Tom Tromey <tom@tromey.com>
17150
17151 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17152 indentation.
17153 * python/py-frame.c (frapy_older): Remove cast.
17154 (frapy_newer): Likewise.
17155 * python/py-breakpoint.c (local_setattro): Remove cast.
17156 * python/py-arch.c (archpy_name): Remove local variable.
17157 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17158
17159 2019-01-02 Joel Brobecker <brobecker@adacore.com>
17160
17161 * unittests/basic_string_view/element_access/char/empty.cc:
17162 Fix year range in copyright header.
17163
17164 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17165
17166 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17167 Delete.
17168 <operator==>: Update with for removed field.
17169 <hash>: Likewise.
17170 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17171 <isa_features>: ...this.
17172 <abi_features>: New field.
17173 (riscv_isa_flen): Update comment.
17174 (riscv_abi_xlen): New declaration.
17175 (riscv_abi_flen): New declaration.
17176 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17177 isa_features.
17178 (riscv_abi_xlen): New function.
17179 (riscv_isa_flen): Update to get answer from isa_features.
17180 (riscv_abi_flen): New function.
17181 (riscv_has_fp_abi): Update to get answer from abi_features.
17182 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17183 xlen and flen.
17184 (riscv_call_info) <xlen, flen>: Update comment.
17185 (riscv_call_arg_struct): Remove invalid assertions
17186 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17187 is removed.
17188 (riscv_gdbarch_init): Gather isa features and abi features
17189 separately, ensure both match on the gdbarch when reusing an old
17190 gdbarch. Relax an error check to allow 32-bit abi float to run on
17191 a target with 64-bit float hardware.
17192
17193 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17194
17195 * source.c (search_command_helper): Stop reverse search
17196 when line 1 has been searched.
17197
17198 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17199
17200 * record-full.c (record_full_base_target::close): Rewrite
17201 record_full_core_buf_list free logic.
17202
17203 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17204
17205 * break-catch-syscall.c (print_one_catch_syscall): xfree
17206 the last text.
17207
17208 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17209
17210 * top.c (print_gdb_version): Update Copyright year in version
17211 message.
17212
17213 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17214
17215 Update copyright year range in all GDB files.
17216
17217 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17218
17219 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17220
17221 For older changes see ChangeLog-2018.
17222 \f
17223 Local Variables:
17224 mode: change-log
17225 left-margin: 8
17226 fill-column: 74
17227 version-control: never
17228 coding: utf-8
17229 End:
17230
This page took 0.597575 seconds and 4 git commands to generate.