b58e4f54d5b43d715918538d5000d658eccb10c0
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-20 Weimin Pan <weimin.pan@oracle.com>
2 * ctfread.c (ctf_file_key): Change type to objfile_key.
3 (struct ctf_context): Remove typedef.
4 (get_objfile_text_range): Use ANOFFSET to get text base.
5
6 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7
8 * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
9 New function.
10 (read_subroutine_type): Validate the parsed
11 DW_AT_calling_convention value before assigning it to a
12 subroutine's calling_convention attribute.
13 * gdbtypes.h (struct func_type) <calling_convention>: Use
14 an enum bitfield as its type, instead of plain unsigned.
15
16 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17
18 PR gdb/25054
19 * infcall.c (call_function_by_hand_dummy): Update the argument-
20 passing section for call-by-value parameters.
21 (struct destructor_info): New struct.
22 (call_destructors): New auxiliary function.
23
24 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
25
26 * gnu-v3-abi.c (enum definition_style): New enum type.
27 (get_def_style): New function.
28 (is_user_provided_def): New function.
29 (is_implicit_def): New function.
30 (is_copy_or_move_constructor_type): New function.
31 (is_copy_constructor_type): New function.
32 (is_move_constructor_type): New function.
33 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
34 for a given type.
35
36 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
37
38 * language.h (struct language_pass_by_ref_info): New struct.
39 (struct language_defn)<la_pass_by_reference>: Change the signature
40 to return a language_pass_by_ref_info instead of an int.
41 (language_pass_by_reference): Ditto.
42 (default_pass_by_reference): Ditto.
43 Adjust the users listed below.
44 * arch-utils.c (default_return_in_first_hidden_param_p):
45 Update.
46 * cp-abi.c (cp_pass_by_reference): Update.
47 * cp-abi.h (cp_pass_by_reference): Update declaration.
48 (struct cp_abi_ops)<pass_by_reference>: Update.
49 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
50 * infcall.c (call_function_by_hand_dummy): Update.
51 * language.c (language_pass_by_reference): Update.
52 (default_pass_by_reference): Update.
53 * tic6x-tdep.c (tic6x_return_value): Update.
54
55 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
56
57 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
58 and DW_AT_deleted attributes of a function.
59 (read_structure_type): Read the DW_AT_calling_convention attribute
60 of a type.
61 (is_valid_DW_AT_defaulted): New function.
62 (is_valid_DW_AT_calling_convention_for_type): New function.
63 * gdbtypes.h: Include dwarf2.h.
64 (struct fn_field)<defaulted>: New field to store the
65 DW_AT_defaulted attribute.
66 (struct fn_field)<is_deleted>: New field to store the
67 DW_AT_deleted attribute.
68 (struct cplus_struct_type)<calling_convention>: New field to store
69 the DW_AT_calling_convention attribute.
70 (TYPE_FN_FIELD_DEFAULTED): New macro.
71 (TYPE_FN_FIELD_DELETED): New macro.
72 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
73 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
74 to the .h file.
75 (print_cplus_stuff): Likewise.
76
77 2019-12-20 Tom Tromey <tom@tromey.com>
78
79 * tui/tui.c (tui_show_source): Remove.
80 * tui/tui.h (tui_show_source): Don't declare.
81 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
82 tui_show_source.
83
84 2019-12-20 Tom Tromey <tom@tromey.com>
85
86 * tui/tui-stack.h (tui_show_frame_info): Return bool.
87 * tui/tui-stack.c (tui_show_frame_info): Return bool.
88 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
89 Update.
90
91 2019-12-20 Tom Tromey <tom@tromey.com>
92
93 PR tui/18932:
94 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
95 Rename parameters. Handle the not-from-stack-frame case.
96 (from_stack, from_source_symtab): New globals.
97 (tui_before_prompt, tui_normal_stop): Update.
98 (tui_context_changed, tui_symtab_changed): New functions.
99 (tui_attach_detach_observers): Attach new observers.
100
101 2019-12-20 Tom Tromey <tom@tromey.com>
102
103 * source.c (struct current_source_location) <set, symtab, line>:
104 New methods.
105 <m_symtab, m_line>: Rename. Now private.
106 (get_current_source_symtab_and_line)
107 (set_default_source_symtab_and_line)
108 (set_current_source_symtab_and_line)
109 (clear_current_source_symtab_and_line, select_source_symtab)
110 (info_source_command, print_source_lines_base)
111 (info_line_command, search_command_helper): Update.
112 * observable.h (current_source_symtab_and_line_changed): Declare
113 observable.
114 * observable.c (current_source_symtab_and_line_changed): Define
115 observable.
116
117 2019-12-20 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
120 (tui_before_prompt, tui_normal_stop): Update.
121
122 2019-12-20 Tom Tromey <tom@tromey.com>
123
124 * tui/tui-winsource.c
125 (tui_source_window_base::update_source_window_as_is): Don't call
126 set_current_source_symtab_and_line.
127
128 2019-12-20 Tom Tromey <tom@tromey.com>
129
130 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
131 Take a symtab_and_line.
132 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
133 symtab_and_line.
134 (tui_show_frame_info): Update.
135
136 2019-12-20 Tom Tromey <tom@tromey.com>
137
138 * tui/tui-stack.c (tui_show_frame_info): Don't call
139 update_exec_info.
140
141 2019-12-20 Tom Tromey <tom@tromey.com>
142
143 * tui/tui.c (tui_enable): Call tui_display_main.
144
145 2019-12-20 Tom Tromey <tom@tromey.com>
146
147 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
148 get_current_source_symtab_and_line, and main_name.
149
150 2019-12-20 Tom Tromey <tom@tromey.com>
151
152 * tui/tui.c (tui_show_source): Update.
153 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
154 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
155 a symtab_symbol_info, not a separate symtab and line. Simplify.
156
157 2019-12-20 Tom Tromey <tom@tromey.com>
158
159 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
160 Simplify.
161
162 2019-12-20 Tom Tromey <tom@tromey.com>
163
164 * tui/tui-winsource.h (struct tui_source_window_base)
165 <set_contents, update_source_window_as_is, update_source_window>:
166 Take a sal, not a separate symtab and tui_line_or_address.
167 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
168 (tui_source_window_base::update_source_window_as_is): Take a sal,
169 not a separate symtab and tui_line_or_address.
170 (tui_update_source_windows_with_addr)
171 (tui_update_source_windows_with_line)
172 (tui_source_window_base::rerender)
173 (tui_source_window_base::refill): Update.
174 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
175 a sal, not a separate symtab and tui_line_or_address.
176 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
177 not a separate symtab and tui_line_or_address.
178 (tui_source_window::maybe_update): Update.
179 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
180 a sal, not a separate symtab and tui_line_or_address.
181 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
182 not a separate symtab and tui_line_or_address.
183 (tui_disasm_window::do_scroll_vertical)
184 (tui_disasm_window::maybe_update): Update.
185
186 2019-12-20 Tom Tromey <tom@tromey.com>
187
188 * tui/tui-winsource.c (tui_source_window_base::refill): Use
189 start_line_or_addr.
190 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
191 start_line_or_addr.
192 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
193 start_line_or_addr.
194
195 2019-12-20 Tom Tromey <tom@tromey.com>
196
197 * tui/tui-winsource.h (struct tui_source_window_base)
198 <set_contents>: Return bool.
199 * tui/tui-winsource.c
200 (tui_source_window_base::update_source_window_as_is): Update.
201 * tui/tui-source.h (struct tui_source_window) <set_contents>:
202 Return bool.
203 * tui/tui-source.c (tui_source_window::set_contents): Return
204 bool. Simplify.
205 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
206 Return bool.
207 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
208 bool.
209
210 2019-12-20 Tom Tromey <tom@tromey.com>
211
212 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
213 (tui_update_source_windows_with_line): Call update_source_window.
214 * tui/tui-source.h (struct tui_source_window)
215 <show_symtab_source>: Don't declare.
216 * tui/tui-source.c (tui_source_window::show_symtab_source):
217 Remove.
218
219 2019-12-20 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
222 update_source_window directly.
223 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
224 * tui/tui-disasm.c (tui_show_disassem): Remove.
225
226 2019-12-20 Tom Tromey <tom@tromey.com>
227
228 * tui/tui-winsource.c
229 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
230 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
231
232 2019-12-20 Tom Tromey <tom@tromey.com>
233
234 * tui/tui-winsource.h (struct tui_source_window_base)
235 <maybe_update>: Remove line_no and addr parameters.
236 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
237 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
238 Update.
239 * tui/tui-source.c (tui_source_window::maybe_update): Remove
240 line_no and addr parameters.
241 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
242 Update.
243 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
244 line_no and addr parameters.
245
246 2019-12-20 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
249 (tui_source_window_base::update_breakpoint_info): Remove asserts.
250
251 2019-12-20 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
254 tui_show_disassem.
255 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
256 declare.
257 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
258
259 2019-12-20 Tom Tromey <tom@tromey.com>
260
261 * tui/tui.h (tui_show_source): Remove parameters.
262 * tui/tui.c (tui_show_source): Remove parameters.
263 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
264
265 2019-12-20 Tom Tromey <tom@tromey.com>
266
267 * tui/tui.c (tui_show_source): Update.
268 * tui/tui-winsource.c (tui_display_main): Update.
269 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
270 to symtab.
271 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
272 to symtab.
273 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
274
275 2019-12-20 Tom Tromey <tom@tromey.com>
276
277 PR tui/23619:
278 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
279 (tui_redisplay_readline): Use rl_display_prompt.
280 (tui_prep_terminal): Update.
281
282 2019-12-19 Christian Biesinger <cbiesinger@google.com>
283
284 * configure: Regenerate.
285 * configure.ac: Quote variable arguments of test.
286 * gdbsupport/common.m4: Likewise.
287
288 2019-12-19 Christian Biesinger <cbiesinger@google.com>
289
290 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
291 2 to pow ().
292
293 2019-12-19 Christian Biesinger <cbiesinger@google.com>
294
295 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
296 log10 to double to fix Solaris 11 with gcc 5.5.
297
298 2019-12-19 Christian Biesinger <cbiesinger@google.com>
299
300 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
301 "sun" to "saddr_un".
302
303 2019-12-19 Tom Tromey <tromey@adacore.com>
304
305 * ui-out.h (enum class field_kind): Fix comment.
306
307 2019-12-11 Tom Tromey <tromey@adacore.com>
308
309 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
310
311 2019-12-18 Tom Tromey <tromey@adacore.com>
312
313 PR build/25268:
314 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
315 type on macOS. Add comment.
316
317 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
318
319 * c-lang.c (c_get_string, asm_language_defn): Remove space
320 before tab.
321
322 2019-12-18 Tom Tromey <tromey@adacore.com>
323
324 PR build/25250:
325 * ui-out.c (ui_out::vmessage): Update.
326 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
327 Rename.
328 (string_field): Update.
329 (signed_field): Update.
330
331 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
332
333 * top.c (print_gdb_configuration): Adjust indentation.
334
335 2019-12-17 Christian Biesinger <cbiesinger@google.com>
336
337 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
338
339 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * tui/tui-layout.h (class tui_layout_base): Add virtual
342 destructor.
343
344 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
345
346 * infcmd.c (prepare_one_step): Step over skipped inline functions.
347 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
348 (process_event_stop_test): Keep stepping over skipped inline functions.
349
350 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * jit.c (struct gdb_block) <next>: Remove field.
353 (struct gdb_symtab) <~gdb_symtab>: Remove.
354 <blocks>: Change type to std::forward_list<gdb_block>.
355 (compare_block): Remove.
356 (jit_block_open_impl): Adjust to std::forward_list. Place the new
357 block at the beginning, don't mind about sorting.
358 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
359 before using it.
360
361 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * jit.c (struct gdb_block): Add constructor, initialize
364 real_block and next fields.
365 <name>: Change type to gdb::unique_xmalloc_ptr.
366 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
367 (jit_block_open_impl): Allocate gdb_block with new.
368 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
369
370 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * jit.c: Include forward_list.
373 (struct gdb_symtab) <next>: Remove field.
374 (struct gdb_object) <symtabs>: Change type to
375 std::forward_list<gdb_symtab>.
376 (jit_object_open_impl): Allocate gdb_object with new.
377 (jit_symtab_open_impl): Adjust to std::forward_list.
378 (finalize_symtab): Don't delete symtab.
379 (jit_object_close_impl): Adjust to std::forward_list. Free
380 gdb_object with delete.
381
382 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * jit.c (struct gdb_symtab): Add constructor, destructor,
385 initialize fields.
386 <linetable>: Change type to unique_xmalloc_ptr.
387 <file_name>: Change type to std::string.
388 (jit_symtab_open_impl): Allocate gdb_symtab with new.
389 (jit_symtab_line_mapping_add_impl): Adjust.
390 (finalize_symtab): Adjust, call delete on stab.
391
392 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
393
394 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
395
396 2019-12-16 Tom Tromey <tromey@adacore.com>
397
398 * windows-nat.c (windows_nat_target::attach): Update.
399 * remote.c (extended_remote_target::attach): Update.
400 * procfs.c (procfs_target::attach): Update.
401 * nto-procfs.c (nto_procfs_target::attach): Update.
402 (nto_procfs_target::create_inferior): Update.
403 * inf-ptrace.c (inf_ptrace_target::attach): Update.
404 * gnu-nat.c (gnu_nat_target::attach): Update.
405 (gnu_nat_target::detach): Update.
406 * darwin-nat.c (darwin_nat_target::attach): Update.
407 * corefile.c (get_exec_file): Constify result. Remove extraneous
408 return.
409 * bsd-kvm.c (bsd_kvm_target_open): Update.
410 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
411
412 2019-12-16 Christian Biesinger <cbiesinger@google.com>
413
414 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
415 (we no longer need to include time.h before pathmax.h)
416
417 2019-12-15 Christian Biesinger <cbiesinger@google.com>
418
419 * ada-exp.y (write_ambiguous_var): Update.
420 * coffread.c (process_coff_symbol): Update.
421 * ctfread.c (ctf_add_enum_member_cb): Update.
422 (new_symbol): Update.
423 * dwarf2read.c (fixup_go_packaging): Update.
424 (new_symbol): Update.
425 * language.c (language_alloc_type_symbol): Update.
426 * mdebugread.c (new_symbol): Update.
427 * minsyms.c (minimal_symbol_reader::record_full): Update.
428 * psymtab.c (add_psymbol_to_bcache): Update.
429 * stabsread.c (define_symbol): Update.
430 (read_enum_type): Update.
431 * symtab.c (symbol_set_language): Make this a member function...
432 (general_symbol_info::set_language): ... here.
433 * symtab.h (struct general_symbol_info) <set_language>: New function.
434 (SYMBOL_SET_LANGUAGE): Remove.
435 (symbol_set_language): Remove.
436
437 2019-12-15 Christian Biesinger <cbiesinger@google.com>
438
439 * ada-lang.c (ada_add_block_symbols): Update.
440 (ada_collect_symbol_completion_matches): Update.
441 * ax-gdb.c (gen_expr): Update.
442 * block.c (block_lookup_symbol): Update.
443 (block_lookup_symbol_primary): Update.
444 (block_find_symbol): Update.
445 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
446 * dbxread.c (process_one_symbol): Update.
447 * dictionary.c (insert_symbol_hashed): Update.
448 (collate_pending_symbols_by_language): Update.
449 (mdict_add_symbol): Update.
450 * dwarf-index-write.c (write_psymbols): Update.
451 * dwarf2read.c (fixup_go_packaging): Update.
452 * findvar.c (read_var_value): Update.
453 * ft32-tdep.c (ft32_skip_prologue): Update.
454 * go-lang.c (go_symbol_package_name): Update.
455 * language.h (scoped_switch_to_sym_language_if_auto::
456 scoped_switch_to_sym_language_if_auto): Update.
457 * linespec.c (find_method): Update.
458 (find_label_symbols_in_block): Update.
459 * mdebugread.c (parse_symbol): Update.
460 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
461 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
462 (minimal_symbol_reader::install): Update.
463 * moxie-tdep.c (moxie_skip_prologue): Update.
464 * parse.c (parse_exp_in_context): Update.
465 * psymtab.c (psymbol_name_matches): Update.
466 (match_partial_symbol): Update.
467 (lookup_partial_symbol): Update.
468 (psymbol_hash): Update.
469 (psymbol_compare): Update.
470 * python/py-framefilter.c (extract_sym): Update.
471 (py_print_single_arg): Update.
472 * stabsread.c (define_symbol): Update.
473 * stack.c (print_frame_arg): Update.
474 (find_frame_funname): Update.
475 (info_frame_command_core): Update.
476 * symfile.c (set_initial_language): Update.
477 * symtab.c (symbol_set_demangled_name): Update.
478 (symbol_get_demangled_name): Update.
479 (symbol_set_language): Update.
480 (symbol_find_demangled_name): Update.
481 (symbol_set_names): Update.
482 (general_symbol_info::natural_name): Update.
483 (general_symbol_info::demangled_name): Update.
484 (general_symbol_info::search_name): Update.
485 (symbol_matches_search_name): Update.
486 (eq_symbol_entry): Update.
487 (iterate_over_symbols): Update.
488 (completion_list_add_symbol): Update.
489 (completion_list_add_msymbol): Update.
490 (completion_list_add_fields): Update.
491 * symtab.h (struct general_symbol_info) <language>: New function.
492 <language>: Rename to...
493 <m_language>: ...this.
494 (SYMBOL_LANGUAGE): Remove.
495 (MSYMBOL_LANGUAGE): Remove.
496 (struct symbol) <ctor>: Update.
497 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
498
499 2019-12-15 Christian Biesinger <cbiesinger@google.com>
500
501 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
502 set the language of sym.
503 * language.c (language_alloc_type_symbol): Likewise.
504
505 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
506
507 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
508 PR gdb/23613
509 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
510 * corelow.c: Include 'gdbsupport/pathstuff.h'.
511 (core_target_open): Use 'gdb_abspath'.
512 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
513 'current_directory == NULL' case.
514 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
515 explain what happens when 'current_directory' is NULL.
516 * go32-nat.c (go32_nat_target::wait): Check if
517 'current_directory' is NULL before call to 'chdir'.
518 * source.c (add_path): Use 'gdb_abspath'.
519 * top.c: Include 'gdbsupport/pathstuff.h'.
520 (init_history): Use 'gdb_abspath'.
521 (set_history_filename): Likewise.
522 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
523 (tfile_target_open): Use 'gdb_abspath'.
524
525 2019-12-13 Tom Tromey <tromey@adacore.com>
526
527 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
528 warning or error.
529
530 2019-12-13 Tom Tromey <tromey@adacore.com>
531
532 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
533
534 2019-12-13 Tom Tromey <tromey@adacore.com>
535
536 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
537
538 2019-12-13 Tom Tromey <tromey@adacore.com>
539
540 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
541
542 2019-12-13 Tom Tromey <tromey@adacore.com>
543
544 * gdbsupport/common-utils.c (string_printf, string_vprintf)
545 (string_vappendf): Add ARI comment.
546
547 2019-12-13 Tom Tromey <tromey@adacore.com>
548
549 * contrib/ari/gdb_ari.sh: Remove "fix" call for
550 floatformat_to_double.
551 * target-float.c (host_float_ops<T>::from_target): Add ARI
552 comment.
553
554 2019-12-13 Tom Tromey <tromey@adacore.com>
555
556 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
557 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
558 ARI marker to abort.
559 * event-top.c (handle_sigsegv): Add ARI marker to abort.
560
561 2019-12-13 Tom Tromey <tromey@adacore.com>
562
563 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
564
565 2019-12-13 Tom Tromey <tromey@adacore.com>
566
567 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
568
569 2019-12-13 Tom Tromey <tromey@adacore.com>
570
571 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
572 checks.
573
574 2019-12-13 Tom Tromey <tromey@adacore.com>
575
576 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
577 end>: No longer "const".
578
579 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
580
581 * jit.c: Fix indentation, replace spaces with tabs where
582 applicable.
583
584 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
585
586 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
587
588 2019-12-12 Tom Tromey <tom@tromey.com>
589
590 * objfiles.h (struct objfile) <partial_symtabs>: Now a
591 unique_ptr.
592
593 2019-12-12 Tom Tromey <tom@tromey.com>
594
595 * progspace.h (objfile_list): New typedef.
596 (class unwrapping_objfile_iterator)
597 (struct unwrapping_objfile_range): Newl
598 (struct program_space) <objfiles_range>: Change type.
599 <objfiles>: Change return type.
600 <add_objfile>: Change type of "objfile" parameter.
601 <objfiles_list>: Now a list of shared_ptr.
602 * progspace.c (program_space::add_objfile): Change type of
603 "objfile". Update.
604 (program_space::remove_objfile): Update.
605 * objfiles.h (struct objfile) <~objfile>: Make public.
606 * objfiles.c (objfile::make): Update.
607 (objfile::unlink): Don't call delete.
608
609 2019-12-12 Tom Tromey <tom@tromey.com>
610
611 * symfile.c (symbol_file_clear): Update.
612 * progspace.h (struct program_space) <free_all_objfiles>: Declare
613 method.
614 * progspace.c (program_space::free_all_objfiles): New method.
615 * objfiles.h (free_all_objfiles): Don't declare.
616 * objfiles.c (free_all_objfiles): Move to program_space.
617
618 2019-12-12 Tom Tromey <tom@tromey.com>
619
620 * progspace.c (program_space::add_objfile)
621 (program_space::remove_objfile): Update.
622 (program_space::multi_objfile_p): Remove.
623 * objfiles.h (struct objfile) <next>: Remove.
624 * objfiles.c (objfile::objfile): Update.
625 (put_objfile_before): Update.
626 (unlink_objfile): Update.
627 * progspace.h (object_files): Remove.
628 (struct program_space) <objfiles_head>: Remove.
629 <objfiles_list>: New member.
630 <objfiles_range, objfiles_safe_range>: Change type.
631 (objfiles): Change return type.
632 (objfiles_safe): Update.
633 (multi_objfile_p): Rewrite and inline.
634 (object_files): Remove macro.
635
636 2019-12-12 Tom Tromey <tom@tromey.com>
637
638 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
639 second constructor.
640 (basic_safe_range): New class.
641
642 2019-12-12 Tom Tromey <tom@tromey.com>
643
644 * progspace.c (program_space::multi_objfile_p): New method.
645 * printcmd.c (info_symbol_command): Update.
646 * maint.c (maintenance_translate_address): Update.
647 * objfiles.h (MULTI_OBJFILE_P): Remove.
648 * progspace.h (struct program_space) <multi_objfile_p>: New
649 method.
650
651 2019-12-12 Tom Tromey <tom@tromey.com>
652
653 * progspace.h (struct program_space) <remove_objfile>: Declare.
654 * progspace.c (program_space::remove_objfile): New method.
655 * objfiles.c (unlink_objfile): Remove.
656 (objfile::unlink): Call remove_objfile.
657 (objfile): Don't call unlink_objfile.
658
659 2019-12-12 Tom Tromey <tom@tromey.com>
660
661 * progspace.h (struct program_space) <add_objfile>: Declare
662 method.
663 * progspace.c (program_space::add_objfile): New method.
664 * objfiles.c (~objfile): Don't unlink objfile.
665 (put_objfile_before): Remove.
666 (add_separate_debug_objfile): Don't call put_objfile_before.
667 (objfile::make): Call add_objfile. Set new_objfiles_available on
668 the per-program-space data.
669
670 2019-12-12 Tom Tromey <tom@tromey.com>
671
672 * symfile.c (syms_from_objfile_1): Use objfile_up.
673 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
674 method.
675 (reread_symbols): Use objfile_up.
676 * solib.c (update_solib_list, reload_shared_libraries_1): Call
677 unlink method.
678 * objfiles.h (struct objfile) <~objfile>: Now private.
679 <unlink>: New method.
680 (struct objfile_deleter): New.
681 (objfile_up): New typedef.
682 * objfiles.c (objfile::unlink): New method.
683 (free_objfile_separate_debug, free_all_objfiles)
684 (objfile_purge_solibs): Use it.
685 * jit.c (jit_unregister_code): Remove.
686 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
687 objfile.
688 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
689 objfile.
690 * compile/compile-object-load.c (compile_object_load): Use
691 objfile_up.
692
693 2019-12-12 Tom Tromey <tom@tromey.com>
694
695 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
696 objfile::make.
697 * objfiles.h (struct objjfile) <make>: No longer inline.
698 (add_separate_debug_objfile): Don't declare.
699 * objfiles.c (add_separate_debug_objfile): Now static.
700 (objfile::make): Move from objfiles.h. Call
701 add_separate_debug_objfile. Add "parent" parameter.
702
703 2019-12-12 Tom Tromey <tom@tromey.com>
704
705 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
706 * objfiles.h (struct objfile): Make constructor private.
707 <make>: New static method.
708 * jit.c (jit_object_close_impl): Update.
709
710 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
713 gdb::byte_vector.
714
715 2019-12-12 Tom Tromey <tromey@adacore.com>
716
717 * xml-support.c (xml_fetch_content_from_file): Don't call
718 malloc_failure.
719 * utils.h (class gdb_argv): Remove malloc_failure comment.
720 * utils.c (gdb_argv::reset): Don't call malloc_failure.
721
722 2019-12-12 Tom Tromey <tromey@adacore.com>
723
724 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
725 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
726 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
727 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
728 * riscv-ravenscar-thread.c: New file.
729 * riscv-ravenscar-thread.h: New file.
730 * riscv-tdep.c (riscv_gdbarch_init): Call
731 register_riscv_ravenscar_ops.
732
733 2019-12-12 Tom Tromey <tromey@adacore.com>
734
735 * gdbsupport/thread-pool.c (set_thread_name): Use
736 ATTRIBUTE_UNUSED.
737
738 2019-12-12 Luis Machado <luis.machado@linaro.org>
739
740 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
741 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
742 macros.
743
744 2019-12-11 Tom Tromey <tom@tromey.com>
745
746 * tui/tui-win.c (tui_set_win_height_command): Call
747 tui_adjust_window_height.
748 (tui_adjust_win_heights, new_height_ok): Remove.
749 * tui/tui-layout.h (tui_adjust_window_height): Declare.
750 * tui/tui-layout.c (tui_adjust_window_height): New function.
751
752 2019-12-11 Tom Tromey <tom@tromey.com>
753
754 * tui/tui-win.c (tui_resize_all): Remove code, call
755 tui_apply_current_layout.
756
757 2019-12-11 Tom Tromey <tom@tromey.com>
758
759 * tui/tui-layout.h (tui_apply_current_layout): Declare.
760 * tui/tui-layout.c (standard_layouts, applied_layout): New
761 globals.
762 (tui_apply_current_layout): New function.
763 (show_layout): Set applied_layout. Call
764 tui_apply_current_layout.
765 (show_source_command, show_disasm_command)
766 (show_source_disasm_command, show_data)
767 (show_source_or_disasm_and_command): Remove.
768 (initialize_layouts): New function.
769 (_initialize_tui_layout): Call initialize_layouts.
770
771 2019-12-11 Tom Tromey <tom@tromey.com>
772
773 * tui/tui-layout.h (class tui_layout_base)
774 (class tui_layout_window, class tui_layout_split): New.
775 * tui/tui-layout.c (tui_get_window_by_name)
776 (tui_layout_window::clone, tui_layout_window::apply)
777 (tui_layout_window::get_sizes, tui_layout_window::add_split)
778 (tui_layout_split::add_window, tui_layout_split::clone)
779 (tui_layout_split::get_sizes)
780 (tui_layout_split::set_weights_from_heights)
781 (tui_layout_split::adjust_size, tui_layout_split::apply): New
782 functions.
783 (tui_layout_split::add_split, tui_layout_split::add_split)
784 (tui_layout_split::set_weights_from_heights)
785 (tui_layout_split::set_weights_from_heights): New functions.
786
787 2019-12-11 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
790 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
791 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
792 * tui/tui-data.h (struct tui_point): Remove.
793 (struct tui_gen_win_info) <origin>: Remove.
794 <x, y>: New fields.
795 * tui/tui-command.c (tui_cmd_window::resize): Update.
796
797 2019-12-11 Tom Tromey <tom@tromey.com>
798
799 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
800 Implement.
801 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
802 Implement.
803 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
804 method.
805 (struct tui_win_info) <min_height>: Implement.
806
807 2019-12-11 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
810 (struct tui_win_info) <can_box>: Update.
811
812 2019-12-11 Tom Tromey <tom@tromey.com>
813
814 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
815 method.
816 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
817 method.
818 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
819 method.
820 (struct tui_win_info) <max_height>: Now override.
821
822 2019-12-11 Joel Brobecker <brobecker@adacore.com>
823
824 * NEWS: Create a new section for the next release branch.
825 Rename the section of the current branch, now that it has
826 been cut.
827
828 2019-12-11 Joel Brobecker <brobecker@adacore.com>
829
830 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
831 * version.in: Bump version to 10.0.50.DATE-git.
832
833 2019-12-11 Tom Tromey <tromey@adacore.com>
834
835 PR build/25268:
836 * gdbsupport/thread-pool.c (set_thread_name): New function.
837 (thread_pool::set_thread_count): Don't call pthread_setname_np.
838 (thread_pool::thread_function): Call set_thread_name.
839
840 2019-12-11 Tom Tromey <tromey@adacore.com>
841
842 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
843 bfd_get_signed_8.
844
845 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
846
847 * NEWS: Document -raw-values option and the related setting commands.
848 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
849 only set it on when /r is given.
850 * valprint.c (value_print_option_defs): New element raw-values.
851 * Makefile.in: Add the new file.
852
853 2019-12-10 Christian Biesinger <cbiesinger@google.com>
854
855 * gdbsupport/safe-strerror.c: Supress the unused function warning
856 for select_strerror_r.
857
858 2019-12-10 Christian Biesinger <cbiesinger@google.com>
859
860 * config.in: Regenerate.
861 * configure: Regenerate.
862 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
863 safe_strerror instead of strerror.
864 * gdbsupport/common.m4: Don't check for strerror.
865 * gdbsupport/safe-strerror.c: Support both the glibc version
866 of strerror_r and the XSI version.
867
868 2019-12-10 Tom Tromey <tromey@adacore.com>
869
870 * ada-typeprint.c (print_choices): Use a single "?".
871 (print_variant_part): Print "?" if the discriminant name
872 is not known.
873
874 2019-12-10 George Barrett <bob@bob131.so>
875
876 Fix scripted probe breakpoints.
877 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
878 declaration forward.
879 (breakpoint_ops_for_event_location_type)
880 (breakpoint_ops_for_event_location): Add function definitions.
881 (break_command_1, trace_command): Use
882 breakpoint_ops_for_event_location.
883 * breakpoint.h (breakpoint_ops_for_event_location): Add function
884 declarations.
885 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
886 breakpoint_ops_for_event_location.
887 * python/py-breakpoint.c (bppy_init): Use
888 breakpoint_ops_for_event_location.
889
890 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
891
892 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
893 when ranking an lvalue argument for an rvalue parameter.
894
895 2019-12-08 Wataru Ashihara <wataash@wataash.com>
896
897 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
898 template argument for scoped_restore_tmpl from bool to int.
899
900 2019-12-07 Keith Seitz <keiths@redhat.com>
901
902 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
903 (build_id_to_debug_bfd): Make static, rewriting to use
904 build_id_to_bfd_suffix.
905 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
906 adding `suffix' parameter. Append SUFFIX to file names
907 when searching for matching files.
908 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
909 (build_id_to_exec_bfd): Likewise.
910 * build-id.h (build_id_to_debug_bfd): Clarify that function
911 searches for BFD of debug info file.
912 (build_id_to_exec_bfd): Declare.
913 * corelow.c: Include build-id.h.
914 (locate_exec_from_corefile_build_id): New function.
915 (core_target_open): If no executable BFD is found,
916 search for a core file BFD using build-id.
917
918 2019-12-06 Christian Biesinger <cbiesinger@google.com>
919
920 * bcache.c: Put in namespace gdb.
921 * bcache.h: Likewise.
922 * gdbtypes.c (check_types_worklist): Update.
923 (types_deeply_equal): Update.
924 * macrotab.c (struct macro_table) <bcache>: Update.
925 (new_macro_table): Update.
926 * macrotab.h (struct bcache): Put this forward declaration
927 inside namespace gdb.
928 (new_macro_table): Update.
929 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
930 Update.
931 <macro_cache>: Update.
932 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
933
934 2019-12-06 Tom de Vries <tdevries@suse.de>
935
936 PR symtab/24971
937 * block.c (best_symbol, better_symbol): New function.
938 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
939 decl.
940
941 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
944 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
945 for ranking see-through reference cases.
946
947 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
948 * stack.c (faas_command): Check a command is provided.
949 * thread.c (taas_command, tfaas_command): Likewise.
950
951 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
952 * inferior.c (prune_inferiors): Only call delete_inferior,
953 Do not modify the inferior list.
954
955 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
956
957 * c-exp.y: Update calls to lookup_typename,
958 lookup_signed_typename and lookup_unsigned_typename.
959 * c-lang.c (evaluate_subexp_c): Likewise.
960 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
961 Likewise.
962 * eval.c (binop_promote): Likewise.
963 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
964 (lookup_unsigned_typename): Likewise.
965 (lookup_signed_typename): Likewise.
966 * gdbtypes.h (lookup_unsigned_typename): Likewise.
967 (lookup_signed_typename): Likewise.
968 (lookup_typename): Likewise.
969 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
970 lookup_typename, lookup_signed_typename,
971 lookup_unsigned_typename.
972 * m2-exp.y: Likewise.
973 * printcmd.c (printf_wide_c_string): Likewise.
974 (ui_printf): Likewise.
975 * python/py-type.c (typy_lookup_typename): Likewise.
976 * python/py-xmethods.c (python_xmethod_worker::invoke):
977 Likewise.
978 * rust-exp.y: Likewise.
979
980 2019-12-04 Christian Biesinger <cbiesinger@google.com>
981
982 * configure.nat (obsd64): Add missing files x86-nat.o and
983 nat/x86-dregs.o.
984
985 2019-12-04 Tom Tromey <tom@tromey.com>
986
987 * valprint.c (val_print_string): Use metadata_style.
988 * go-valprint.c (print_go_string): Use metadata style.
989 * p-valprint.c (pascal_object_print_static_field): Use metadata
990 style.
991 * cp-valprint.c (cp_print_static_field): Use metadata style.
992
993 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
994 Chris January <chris.january@arm.com>
995
996 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
997 tokens.
998 (typebase): New patterns for complex, single/double precision, and
999 single/double complex.
1000 (f77_keywords): Change token for complex keyword, and add single,
1001 double, and precision keywords.
1002
1003 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1004
1005 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
1006 "info io_registers".
1007
1008 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * regcache.c (cooked_read_test): Initialize thread list of
1011 mock_inferior.
1012
1013 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * aarch64-linux-tdep.c: Remove includes.
1016
1017 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * aarch64-tdep.c: Remove includes.
1020
1021 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
1022
1023 * filtered-iterator.h (filtered_iterator) <operator==,
1024 operator!=>: Compare wrapped iterators, not wrapped pointers.
1025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1026 unittests/filtered_iterator-selftests.c.
1027 * unittests/filtered_iterator-selftests.c: New file.
1028
1029 2019-12-04 Tom Tromey <tromey@adacore.com>
1030
1031 * gdbtypes.c (create_range_type): Inherit endianity
1032 from base type.
1033
1034 2019-12-04 Tom Tromey <tromey@adacore.com>
1035
1036 * ada-lang.c (decode_constrained_packed_array)
1037 (ada_value_assign, value_assign_to_component): Update.
1038 * dwarf2loc.c (rw_pieced_value, access_memory)
1039 (dwarf2_compile_expr_to_ax): Update.
1040 * dwarf2read.c (dwarf2_add_field): Update.
1041 * eval.c (evaluate_subexp_standard): Update.
1042 * gdbarch.c, gdbarch.h: Rebuild.
1043 * gdbarch.sh (bits_big_endian): Remove.
1044 * gdbtypes.h (union field_location): Update comment.
1045 * target-descriptions.c (make_gdb_type): Update.
1046 * valarith.c (value_bit_index): Update.
1047 * value.c (struct value) <bitpos>: Update comment.
1048 (unpack_bits_as_long, modify_field): Update.
1049 * value.h (value_bitpos): Update comment.
1050
1051 2019-12-04 Tom Tromey <tromey@adacore.com>
1052
1053 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1054 endian-ness.
1055
1056 2019-12-04 Tom Tromey <tromey@adacore.com>
1057
1058 * dwarf2read.c (dwarf2_init_float_type)
1059 (dwarf2_init_complex_target_type): Add byte_order parameter.
1060 (read_base_type): Compute byte order earlier.
1061 * gdbtypes.c (init_float_type): Add byte_order parameter.
1062 * gdbtypes.h (init_float_type): Add byte_order parameter.
1063
1064 2019-12-04 Tom Tromey <tromey@adacore.com>
1065
1066 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1067
1068 2019-12-04 Tom Tromey <tromey@adacore.com>
1069
1070 * dwarf2read.c (process_structure_scope): Initialize
1071 "discr_offset".
1072
1073 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1074
1075 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1076 add it into the search spec.
1077 (parse_max_results_option): New function.
1078 (mi_info_functions_or_variables): Parse -max-results flag and pass
1079 it to mi_symbol_info.
1080 (mi_cmd_symbol_info_modules): Likewise.
1081 (mi_cmd_symbol_info_types): Likewise.
1082 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1083 return type to bool, change result container into a set, and don't
1084 add new results if we have enough already.
1085 (global_symbol_searcher::add_matching_msymbols): Change return
1086 type to bool, and don't add new results if we have enough already.
1087 (sort_search_symbols_remove_dups): Delete.
1088 (global_symbol_searcher::search): Early exit from search loop when
1089 we have enough results. Use a std::set to collect the results
1090 from calling add_matching_symbols.
1091 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1092 member function.
1093 (global_symbol_searcher) <m_max_search_results>: New member
1094 variable.
1095 (global_symbol_searcher) <add_matching_symbols>: Update header
1096 comment and change return type to bool.
1097 (global_symbol_searcher) <add_matching_msymbols>: Update header
1098 comment and change return type to bool.
1099
1100 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1101
1102 * symtab.c (symbol_search::compare_search_syms): Update header
1103 comment.
1104 (global_symbol_searcher::is_suitable_msymbol): New function.
1105 (global_symbol_searcher::expand_symtabs): New function.
1106 (global_symbol_searcher::add_matching_symbols): New function.
1107 (global_symbol_searcher::add_matching_msymbols): New function.
1108 (global_symbol_searcher::search): Move most of the content
1109 into the new functions above, and call them as needed.
1110 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1111 function.
1112 (global_symbol_searcher) <add_matching_symbols>: New member
1113 function.
1114 (global_symbol_searcher) <add_matching_msymbols>: New member
1115 function.
1116 (global_symbol_searcher) <is_suitable_msymbol>: New member
1117 function.
1118
1119 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1122 -symbol-info-module-variables entries.
1123 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1124 (mi_cmd_symbol_info_module_variables): Declare.
1125 * mi/mi-symbol-cmds.c
1126 (module_symbol_search_iterator): New typedef.
1127 (output_module_symbols_in_single_module_and_file): New function.
1128 (output_module_symbols_in_single_module): New function.
1129 (mi_info_module_functions_or_variables): New function.
1130 (mi_cmd_symbol_info_module_functions): New function.
1131 (mi_cmd_symbol_info_module_variables): New function.
1132 * NEWS: Mention new MI command.
1133
1134 2019-12-03 Christian Biesinger <cbiesinger@google.com>
1135
1136 * bcache.c (hash): Remove.
1137 (hash_continue): Remove.
1138 * bcache.h (hash): Remove.
1139 (hash_continue): Remove.
1140 (struct bcache) <ctor>: Update.
1141 * psymtab.c (psymbol_hash): Update.
1142 * stabsread.c (hashname): Update.
1143 * utils.h (fast_hash): Add an argument for a start value,
1144 defaulting to zero.
1145
1146 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1147 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1148 (destroy_block_symbol_cache): New function.
1149 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1150 (resize_symbol_cache): Likewise.
1151
1152 2019-12-02 Tom Tromey <tom@tromey.com>
1153
1154 * unittests/tui-selftests.c (run_tests): Make conditional.
1155 (_initialize_tui_selftest): Make conditional.
1156
1157 2019-12-02 Christian Biesinger <cbiesinger@google.com>
1158
1159 * aix-thread.c (debug_aix_thread): Change type to bool.
1160
1161 2019-12-02 Luis Machado <luis.machado@linaro.org>
1162
1163 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1164
1165 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1166
1167 * dwarf2read.c (read_tag_string_type): Read the fields required to
1168 make a dynamic string, and possibly create a dynamic range for the
1169 string.
1170 (attr_to_dynamic_prop): Setup is_reference based on the type of
1171 attribute being processed.
1172 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1173 (resolve_dynamic_array): Rename to...
1174 (resolve_dynamic_array_or_string): ...this, update header comment,
1175 and accept TYPE_CODE_STRING.
1176 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1177
1178 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1179
1180 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1181 of its implementation from...
1182 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1183 the new function.
1184
1185 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1188 create a range with stride where appropriate.
1189 * f-valprint.c: Include 'gdbarch.h'.
1190 (f77_print_array_1): Take the stride into account when walking the
1191 array. Also convert the stride into addressable units.
1192 * gdbtypes.c (create_range_type): Initialise the stride to
1193 constant zero.
1194 (create_range_type_with_stride): New function, initialise the
1195 range as normal, and then setup the stride.
1196 (has_static_range): Include the stride here. Also change the
1197 return type to bool.
1198 (create_array_type_with_stride): Consider the range stride if the
1199 array isn't given its own stride.
1200 (resolve_dynamic_range): Resolve the stride if needed.
1201 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1202 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1203 (TYPE_BIT_STRIDE): Define.
1204 (TYPE_ARRAY_BIT_STRIDE): Define.
1205 (create_range_type_with_stride): Declare.
1206 * valarith.c (value_subscripted_rvalue): Take range stride into
1207 account when walking the array.
1208
1209 2019-12-01 Tom Tromey <tom@tromey.com>
1210
1211 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1212 specially.
1213
1214 2019-12-01 Tom Tromey <tom@tromey.com>
1215
1216 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1217 \0.
1218 * unittests/tui-selftests.c: New file.
1219 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1220
1221 2019-12-01 Tom Tromey <tom@tromey.com>
1222
1223 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1224
1225 2019-12-01 Tom Tromey <tom@tromey.com>
1226
1227 * NEWS: Document new settings.
1228 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1229 * tui/tui-win.c (_initialize_tui_win): Add border style
1230 observers.
1231 * tui/tui-io.h (tui_apply_style): Declare.
1232 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1233 longer static.
1234 (apply_ansi_escape, tui_set_reverse_mode): Update.
1235 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1236 Add "skip_intensity" parameter.
1237 <changed>: New member.
1238 <do_set_value>: Declare.
1239 (tui_border_style, tui_active_border_style): Declare.
1240 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1241 globals.
1242 (cli_style_option): Initialize "changed".
1243 (cli_style_option::do_set_value): New function.
1244 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1245 parameter. Update.
1246 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1247 (_initialize_cli_style): Update. Create TUI border style
1248 commands.
1249
1250 2019-12-01 Tom Tromey <tom@tromey.com>
1251
1252 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1253 parameter.
1254 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1255 parameter.
1256 * tui/tui-win.h (compact_source): Declare.
1257 * tui/tui-win.c (compact_source): New global.
1258 (tui_set_compact_source, tui_show_compact_source): New functions.
1259 (_initialize_tui_win): Add "compact-source" setting.
1260 * tui/tui-source.c (tui_source_window::set_contents): Handle
1261 compact_source setting.
1262 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1263 * NEWS: Document new setting.
1264
1265 2019-11-30 Tom Tromey <tom@tromey.com>
1266
1267 * dwarf2read.c (dwarf2_add_field): Include field offset when
1268 computing variant part length.
1269
1270 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1271 * NEWS: Mention define-prefix. Tell that command names can now
1272 contain a . character.
1273
1274 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1275
1276 * command.h (valid_cmd_char_p): Declare.
1277 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1278 the check of valid command char.
1279 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1280 valid_cmd_char_p.
1281 * cli/cli-script.c (validate_comname): Likewise.
1282 * completer.c (gdb_completer_command_word_break_characters):
1283 Do not remove . from the word break char, update comments.
1284 (complete_line_internal_1): Use valid_cmd_char_p.
1285 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1286 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1287
1288 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1289
1290 * cli/cli-script.c (do_define_command): Ensure a redefined
1291 prefix command is kept as a prefix command.
1292 (define_prefix_command): New function.
1293 (show_user_1): Report user defined prefixes.
1294 (_initialize_cli_script): Create the new 'define-prefix' command.
1295 Add completers for 'define' and 'document'.
1296 * top.c (execute_command): If command is a user-defined prefix only
1297 command, report the list of commands for this prefix command.
1298
1299 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1300
1301 * valops.c (find_oload_champ): Improve debug output.
1302
1303 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1304
1305 * valops.c (find_oload_champ): Print part of debug messages
1306 before the badness vector is std::move'd.
1307
1308 2019-11-28 Tom Tromey <tom@tromey.com>
1309
1310 * value.c (creal_internal_fn): Fix comment.
1311
1312 2019-11-28 Tom Tromey <tom@tromey.com>
1313
1314 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1315 flag_bound_evaluated>: Now unsigned.
1316
1317 2019-11-28 Tom Tromey <tom@tromey.com>
1318
1319 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1320 declare.
1321
1322 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1323
1324 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1325 debug output.
1326 * jit.c (jit_unregister_code): Add debug print to match
1327 `jit_register_code`.
1328
1329 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1330
1331 * NEWS: Mention the new multithreaded symbol loading.
1332
1333 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1334
1335 * maint.c (n_worker_threads): Default to 0.
1336 (worker_threads_disabled): New function.
1337 * maint.h (worker_threads_disabled): New function.
1338 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1339 here if worker_threads_disabled () is true.
1340 (minimal_symbol_reader::install): Skip all threading if
1341 worker_threads_disabled () is true.
1342
1343 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1344
1345 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1346 hash code if possible.
1347 (add_minsym_to_demangled_hash_table): Likewise.
1348 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1349 on the background thread.
1350 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1351 Add these fields.
1352
1353 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1354
1355 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1356 of the mangled name on the background thread.
1357 * symtab.c (symbol_set_names): Allow passing in the hash of the
1358 linkage_name.
1359 * symtab.h (symbol_set_names): Likewise.
1360
1361 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1362
1363 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1364 physnames are computed for inherited DIEs.
1365
1366 2019-11-27 Tom Tromey <tromey@adacore.com>
1367
1368 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1369 backslashes.
1370 * cp-support.c: Remove unnecessary backslashes.
1371
1372 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1373
1374 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1375 with sym->set_linkage_name.
1376 * coffread.c (coff_read_enum_type): Likewise.
1377 * mdebugread.c (parse_symbol): Likewise.
1378 * stabsread.c (patch_block_stabs): Likewise.
1379 (define_symbol): Likewise.
1380 (read_enum_type): Likewise.
1381 (common_block_end): Likewise.
1382 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1383 function.
1384 (SYMBOL_SET_LINKAGE_NAME): Remove.
1385 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1386 with sym->set_linkage_name.
1387
1388 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1391 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1392 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1393 * NEWS: Mention new MI command.
1394
1395 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1398 '-symbol-info-types', and '-symbol-info-variables'.
1399 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1400 (mi_cmd_symbol_info_types): Declare.
1401 (mi_cmd_symbol_info_variables): Declare.
1402 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1403 (output_debug_symbol): New function.
1404 (output_nondebug_symbol): New function.
1405 (mi_symbol_info): New function.
1406 (mi_info_functions_or_variables): New function.
1407 (mi_cmd_symbol_info_functions): New function.
1408 (mi_cmd_symbol_info_types): New function.
1409 (mi_cmd_symbol_info_variables): New function.
1410 * NEWS: Mention new commands.
1411
1412 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * symtab.c (symbol_to_info_string): New function, most content
1415 moved from print_symbol_info, but updated to return a std::string.
1416 (print_symbol_info): Update to use symbol_to_info_string and print
1417 returned string.
1418 * symtab.h (symbol_to_info_string): Declare new function.
1419
1420 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * python/python.c (gdbpy_rbreak): Convert to using
1423 global_symbol_searcher.
1424 * symtab.c (file_matches): Convert return type to bool, change
1425 file list to std::vector, update header comment.
1426 (search_symbols): Rename to...
1427 (global_symbol_searcher::search): ...this and update now its
1428 a member function of global_symbol_searcher. Take account of the
1429 changes to file_matches.
1430 (symtab_symbol_info): Convert to using global_symbol_searcher.
1431 (rbreak_command): Likewise.
1432 (search_module_symbols): Likewise.
1433 * symtab.h (enum symbol_search): Update comment.
1434 (search_symbols): Remove declaration.
1435 (class global_symbol_searcher): New class.
1436
1437 2019-11-26 Tom Tromey <tromey@adacore.com>
1438
1439 * cp-support.c (_initialize_cp_support): Conditionally initialize
1440 gdb_demangle_attempt_core_dump.
1441
1442 2019-11-26 Tom Tromey <tom@tromey.com>
1443
1444 * python/py-function.c (fnpy_init): Update.
1445 * value.h (add_internal_function): Adjust declaration.
1446 * value.c (function_destroyer): Remove.
1447 (do_add_internal_function): Don't set destroyer or copy name.
1448 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1449 Set name_allocated.
1450 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1451 (cmdpy_init): Set name_allocated.
1452 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1453 member.
1454 (~cmd_list_element): Free "name" if needed.
1455
1456 2019-11-26 Tom Tromey <tom@tromey.com>
1457
1458 * value.h (add_internal_function): Add new overload. Move
1459 documentation from value.h.
1460 * value.c (do_add_internal_function): New function.
1461 (add_internal_function): Use it. Add new overload.
1462 (function_destroyer): Don't free doc.
1463 * python/py-function.c (fnpy_init): Update.
1464
1465 2019-11-26 Tom Tromey <tom@tromey.com>
1466
1467 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1468 (cmdpy_init): Set "doc_allocated".
1469
1470 2019-11-26 Tom Tromey <tom@tromey.com>
1471
1472 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1473 name of worker thread.
1474 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1475 pthread_setname_np.
1476 * configure, config.in: Rebuild.
1477
1478 2019-11-26 Tom Tromey <tom@tromey.com>
1479
1480 * python/python.c (class gdbpy_gil): New.
1481 (struct gdbpy_event): Add constructor, destructor, operator().
1482 (gdbpy_post_event): Use run_on_main_thread.
1483 (gdbpy_initialize_events): Remove.
1484 (do_start_initialization): Update.
1485
1486 2019-11-26 Tom Tromey <tom@tromey.com>
1487
1488 * NEWS: Add entry.
1489 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1490 commands. Call update_thread_pool_size.
1491 (update_thread_pool_size, maintenance_set_worker_threads): New
1492 functions.
1493 (n_worker_threads): New global.
1494
1495 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1496 Tom Tromey <tom@tromey.com>
1497
1498 * minsyms.c (minimal_symbol_reader::install): Use
1499 parallel_for_each.
1500 * gdbsupport/parallel-for.h: New file.
1501 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1502
1503 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1504 Tom Tromey <tom@tromey.com>
1505
1506 * gdbsupport/thread-pool.h: New file.
1507 * gdbsupport/thread-pool.c: New file.
1508 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1509 (HFILES_NO_SRCDIR): Add thread-pool.h.
1510
1511 2019-11-26 Tom Tromey <tom@tromey.com>
1512
1513 * event-top.h (thread_local_segv_handler): Declare.
1514 * event-top.c (thread_local_segv_handler): New global.
1515 (install_handle_sigsegv, handle_sigsegv): New functions.
1516 (async_init_signals): Install SIGSEGV handler.
1517 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1518 thread-local.
1519 (report_failed_demangle): New function.
1520 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1521 handler-setting code, instead use segv_handler. Run warning code
1522 on main thread.
1523
1524 2019-11-26 Tom Tromey <tom@tromey.com>
1525
1526 * run-on-main-thread.c: New file.
1527 * run-on-main-thread.h: New file.
1528 * unittests/main-thread-selftests.c: New file.
1529 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1530 main-thread-selftests.c.
1531 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1532 (COMMON_SFILES): Add run-on-main-thread.c.
1533
1534 2019-11-26 Tom Tromey <tom@tromey.com>
1535
1536 * main.c (setup_alternate_signal_stack): Remove.
1537 (captured_main_1): Use gdb::alternate_signal_stack.
1538 * gdbsupport/alt-stack.h: New file.
1539
1540 2019-11-26 Tom Tromey <tom@tromey.com>
1541
1542 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1543 Remove comment.
1544 (save_original_signals_state, restore_original_signals_state): Use
1545 gdb_sigmask.
1546 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1547 (_initialize_linux_nat): Use gdb_sigmask.
1548 * guile/guile.c (_initialize_guile): Use block_signals.
1549 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1550 * gdbsupport/gdb-sigmask.h: New file.
1551 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1552 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1553 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1554 pthread_sigmask.
1555 * configure, config.in: Rebuild.
1556 * gdbsupport/block-signals.h: New file.
1557
1558 2019-11-26 Tom Tromey <tom@tromey.com>
1559
1560 * acinclude.m4: Include ax_pthread.m4.
1561 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1562 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1563 (CLIBS): Use PTHREAD_LIBS.
1564 (aclocal_m4_deps): Add ax_pthread.m4.
1565 * config.in, configure: Rebuild.
1566 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1567
1568 2019-11-26 Tom Tromey <tom@tromey.com>
1569
1570 * symtab.h (struct minimal_symbol) <name_set>: New member.
1571 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1572 Don't call symbol_set_names.
1573 (minimal_symbol_reader::install): Call symbol_set_names.
1574
1575 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1576
1577 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1578 restore_active_ext_lang, as GIL is needed for (indirectly)
1579 called PyOS_InterruptOccurred.
1580
1581 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1582
1583 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1584 definition.
1585
1586 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1587
1588 * remote-sim.c (simulator_command): Make static, remove
1589 declaration.
1590
1591 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1594 static.
1595 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1596 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1597 (main): Likewise.
1598 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1599 (main): Likewise.
1600 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1601 (main): Likewise.
1602 * unittests/basic_string_view/element_access/char/1.cc (test01):
1603 Likewise.
1604 (main): Likewise.
1605 * unittests/basic_string_view/element_access/char/empty.cc (main):
1606 Likewise.
1607 * unittests/basic_string_view/element_access/char/front_back.cc
1608 (test01): Likewise.
1609 (main): Likewise.
1610 * unittests/basic_string_view/inserters/char/2.cc (test05):
1611 Likewise.
1612 (main): Likewise.
1613 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1614 (test01): Likewise.
1615 (main): Likewise.
1616 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1617 (test01): Likewise.
1618 (main): Likewise.
1619 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1620 Likewise.
1621 * unittests/basic_string_view/operations/compare/char/1.cc
1622 (test01): Likewise.
1623 (main): Likewise.
1624 * unittests/basic_string_view/operations/compare/char/13650.cc
1625 (test01): Likewise.
1626 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1627 Likewise.
1628 (main): Likewise.
1629 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1630 Likewise.
1631 (main): Likewise.
1632 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1633 Likewise.
1634 (main): Likewise.
1635 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1636 Likewise.
1637 (main): Likewise.
1638 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1639 Likewise.
1640 (main): Likewise.
1641 * unittests/basic_string_view/operations/find/char/4.cc (main):
1642 Likewise.
1643 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1644 Likewise.
1645 (main): Likewise.
1646 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1647 Likewise.
1648 (main): Likewise.
1649 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1650 Likewise.
1651 (main): Likewise.
1652 * unittests/basic_string_view/operations/substr/char/1.cc
1653 (test01): Likewise.
1654 (main): Likewise.
1655 * unittests/basic_string_view/operators/char/2.cc (main):
1656 Likewise.
1657 * unittests/optional/assignment/1.cc (test): Likewise.
1658 * unittests/optional/assignment/2.cc (test): Likewise.
1659 * unittests/optional/assignment/3.cc (test): Likewise.
1660 * unittests/optional/assignment/4.cc (test): Likewise.
1661 * unittests/optional/assignment/5.cc (test): Likewise.
1662 * unittests/optional/assignment/6.cc (test): Likewise.
1663 * unittests/optional/assignment/7.cc (test): Likewise.
1664 * unittests/optional/cons/copy.cc (test): Likewise.
1665 * unittests/optional/cons/default.cc (test): Likewise.
1666 * unittests/optional/cons/move.cc (test): Likewise.
1667 * unittests/optional/cons/value.cc (test): Likewise.
1668 * unittests/optional/in_place.cc (test): Likewise.
1669 * unittests/optional/observers/1.cc (test): Likewise.
1670 * unittests/optional/observers/2.cc (test): Likewise.
1671
1672 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * tui-win.h (tui_set_var_cmd): Remove.
1675 * tui-win.c (tui_set_var_cmd): Make static.
1676
1677 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1678
1679 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1680 rbreak_command_wrapper): Remove.
1681 * symtab.c (rbreak_command_wrapper): Remove.
1682
1683 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * inferior.h (info_terminal_command): Remove declaration.
1686 * inflow.c (info_terminal_command): Make static.
1687
1688 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * inferior.c (exit_inferior_silent): Remove.
1691
1692 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * dictionary.c (dict_empty, mdict_empty): Remove.
1695 * dictionary.c (mdict_empty): Remove.
1696
1697 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1700 (arc_insn_get_memory_offset): Likewise.
1701 (arc_insn_dump): Likewise.
1702 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1703 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1704 * dictionary.c (dict_iterator_next): Likewise.
1705 (dict_iter_match_first): Likewise.
1706 (dict_iter_match_next): Likewise.
1707 * f-lang.c (evaluate_subexp_f): Likewise.
1708 * hppa-tdep.c (hppa_read_pc): Likewise.
1709 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1710 * parse.c (write_exp_elt_msym): Likewise.
1711 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1712 * remote.c (remote_packet_size): Likewise.
1713 (remote_notif_stop_parse): Likewise.
1714 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1715 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1716 * source.c (prepare_path_for_appending): Likewise.
1717 * sparc64-linux-tdep.c
1718 (sparc64_linux_handle_segmentation_fault); Likewise.
1719 * stack.c (frame_selection_by_function_completer): Likewise.
1720
1721 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1722
1723 * completer.c (set_gdb_completion_word_break_characters):
1724 Remove.
1725
1726 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1727
1728 * dwarf-index-write.c: Include dwarf-index-write.h.
1729 * mi/mi-interp.c: Include mi/mi-interp.h.
1730
1731 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1732
1733 * aarch32-tdep.c: Include aarch32-tdep.h.
1734 * aarch32-tdep.h: Forward-declare struct target_desc.
1735
1736 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1737
1738 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1739 strerror.
1740 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1741 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1742
1743 2019-11-25 Tom de Vries <tdevries@suse.de>
1744
1745 * contrib/words.sh: Add -c option.
1746
1747 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1748
1749 * solib.c (solib_find_1): Change int to bool.
1750 (exec_file_find): Change int to bool.
1751 (solib_find): Change int to bool.
1752 (solib_read_symbols): Change int to bool.
1753 (solib_used): Change int to bool.
1754 (solib_add): Change int to bool.
1755 (info_sharedlibrary_command): Change int to bool.
1756 (solib_contains_address_p): Change int to bool.
1757 (solib_keep_data_in_core): Change int to bool.
1758 (in_solib_dynsym_resolve_code): Change int to bool.
1759 (reload_shared_libraries_1): Change int to bool.
1760 (gdb_sysroot_changed): Change int to bool.
1761 * solib.h (solib_read_symbols): Change int to bool.
1762 (solib_contains_address_p): Change int to bool.
1763 (solib_keep_data_in_core): Change int to bool.
1764 (in_solib_dynsym_resolve_code): Change int to bool.
1765 (libpthread_name_p): Change int to bool.
1766
1767 2019-11-25 Luis Machado <luis.machado@linaro.org>
1768
1769 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1770 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1771 (remote_packet_max_chars): New static global.
1772 (show_remote_packet_max_chars): New function.
1773 (remote_target::putpkt_binary): Adjust to use new
1774 remote_packet_max_chars option.
1775 (remote_target::getpkt_or_notif_sane_1): Likewise.
1776 (_initialize_remote): Register new remote-packet-max-chars option.
1777
1778 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * m68k-linux-nat.c: Include gdbarch.h.
1781
1782 2019-11-24 Tom Tromey <tom@tromey.com>
1783
1784 * symfile.c (read_symbols): Update.
1785 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1786 bool.
1787 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1788 (psym_lookup_symbol, psym_find_last_source_symtab)
1789 (psym_forget_cached_source_info, psym_print_stats)
1790 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1791 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1792 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1793 (psym_find_compunit_symtab_by_address)
1794 (maintenance_print_psymbols, maintenance_info_psymtabs)
1795 (maintenance_check_psymtabs): Update.
1796 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1797 bool.
1798
1799 2019-11-22 Tom Tromey <tom@tromey.com>
1800
1801 * observable.h: Update comments.
1802
1803 2019-11-22 Tom Tromey <tromey@adacore.com>
1804
1805 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1806 (print_ada_task_info): Don't try to fetch thread id if task is not
1807 alive.
1808
1809 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1810
1811 * ada-exp.y: Update.
1812 * ada-lang.c (sort_choices): Update.
1813 (ada_print_symbol_signature): Update.
1814 (resolve_subexp): Update.
1815 (ada_parse_renaming): Update.
1816 (ada_read_renaming_var_value): Update.
1817 (lesseq_defined_than): Update.
1818 (remove_extra_symbols): Update.
1819 (remove_irrelevant_renamings): Update.
1820 (ada_add_block_symbols): Update.
1821 (ada_collect_symbol_completion_matches): Update.
1822 (ada_is_renaming_symbol): Update.
1823 (aggregate_assign_from_choices): Update.
1824 (ada_evaluate_subexp): Update.
1825 (ada_has_this_exception_support): Update.
1826 (ada_is_non_standard_exception_sym): Update.
1827 (ada_add_exceptions_from_frame): Update.
1828 (ada_add_global_exceptions): Update.
1829 (ada_print_subexp): Update.
1830 * ax-gdb.c (gen_var_ref): Update.
1831 (gen_maybe_namespace_elt): Update.
1832 (gen_expr_for_cast): Update.
1833 (gen_expr): Update.
1834 * block.h: Update.
1835 * blockframe.c (find_pc_partial_function): Update.
1836 * breakpoint.c (print_breakpoint_location): Update.
1837 (update_static_tracepoint): Update.
1838 * btrace.c (ftrace_print_function_name): Update.
1839 (ftrace_function_switched): Update.
1840 * buildsym.c (find_symbol_in_list): Update.
1841 * c-exp.y: Update.
1842 * c-typeprint.c (c_print_typedef): Update.
1843 (c_type_print_template_args): Update.
1844 * cli/cli-cmds.c (edit_command): Update.
1845 (list_command): Update.
1846 (print_sal_location): Update.
1847 * coffread.c (patch_opaque_types): Update.
1848 (process_coff_symbol): Update.
1849 (coff_read_enum_type): Update.
1850 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1851 (convert_one_symbol): Update.
1852 (hash_symname): Update.
1853 (eq_symname): Update.
1854 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1855 * compile/compile-cplus-types.c (debug_print_scope): Update.
1856 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1857 * compile/compile-object-load.c (get_out_value_type): Update.
1858 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1859 (search_symbol_list): Update.
1860 (cp_lookup_symbol_imports_or_template): Update.
1861 * cp-support.c (overload_list_add_symbol): Update.
1862 * ctfread.c (psymtab_to_symtab): Update.
1863 * dbxread.c (cp_set_block_scope): Update.
1864 * dictionary.c (iter_match_first_hashed): Update.
1865 (iter_match_next_hashed): Update.
1866 (insert_symbol_hashed): Update.
1867 (iter_match_next_linear): Update.
1868 * dictionary.h: Update.
1869 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1870 (locexpr_describe_location_piece): Update.
1871 (locexpr_describe_location_1): Update.
1872 (locexpr_generate_c_location): Update.
1873 (loclist_describe_location): Update.
1874 (loclist_generate_c_location): Update.
1875 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1876 (read_func_scope): Update.
1877 (process_enumeration_scope): Update.
1878 (new_symbol): Update.
1879 (dwarf2_const_value): Update.
1880 (dwarf2_symbol_mark_computed): Update.
1881 * eval.c (evaluate_funcall): Update.
1882 (evaluate_subexp_standard): Update.
1883 * expprint.c (print_subexp_standard): Update.
1884 (dump_subexp_body_standard): Update.
1885 * f-valprint.c (info_common_command_for_block): Update.
1886 * findvar.c (get_hosting_frame): Update.
1887 (default_read_var_value): Update.
1888 * go-lang.c (go_symbol_package_name): Update.
1889 * guile/scm-block.c (bkscm_print_block_smob): Update.
1890 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1891 (gdbscm_symbol_name): Update.
1892 (gdbscm_symbol_linkage_name): Update.
1893 (gdbscm_symbol_print_name): Update.
1894 * infcall.c (get_function_name): Update.
1895 * infcmd.c (jump_command): Update.
1896 (finish_command): Update.
1897 * infrun.c (insert_exception_resume_breakpoint): Update.
1898 * linespec.c (canonicalize_linespec): Update.
1899 (create_sals_line_offset): Update.
1900 (convert_linespec_to_sals): Update.
1901 (complete_label): Update.
1902 (find_label_symbols_in_block): Update.
1903 * m2-typeprint.c (m2_print_typedef): Update.
1904 * mdebugread.c (mdebug_reg_to_regnum): Update.
1905 (parse_symbol): Update.
1906 (mylookup_symbol): Update.
1907 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1908 (list_args_or_locals): Update.
1909 * objc-lang.c (compare_selectors): Update.
1910 (info_selectors_command): Update.
1911 (compare_classes): Update.
1912 (info_classes_command): Update.
1913 (find_imps): Update.
1914 * p-typeprint.c (pascal_print_typedef): Update.
1915 * printcmd.c (build_address_symbolic): Update.
1916 (info_address_command): Update.
1917 (print_variable_and_value): Update.
1918 * python/py-framefilter.c (extract_sym): Update.
1919 (py_print_single_arg): Update.
1920 * python/py-symbol.c (sympy_str): Update.
1921 (sympy_get_name): Update.
1922 (sympy_get_linkage_name): Update.
1923 * python/python.c (gdbpy_rbreak): Update.
1924 * record-btrace.c (btrace_get_bfun_name): Update.
1925 (btrace_call_history): Update.
1926 * rust-lang.c (rust_print_typedef): Update.
1927 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1928 * stabsread.c (stab_reg_to_regnum): Update.
1929 (define_symbol): Update.
1930 (read_enum_type): Update.
1931 (common_block_end): Update.
1932 (cleanup_undefined_types_1): Update.
1933 (scan_file_globals): Update.
1934 * stack.c (print_frame_arg): Update.
1935 (print_frame_args): Update.
1936 (find_frame_funname): Update.
1937 (info_frame_command_core): Update.
1938 (iterate_over_block_locals): Update.
1939 (print_block_frame_labels): Update.
1940 (do_print_variable_and_value): Update.
1941 (iterate_over_block_arg_vars): Update.
1942 (return_command): Update.
1943 * symmisc.c (dump_symtab_1): Update.
1944 (print_symbol): Update.
1945 * symtab.c (eq_symbol_entry): Update.
1946 (symbol_cache_dump): Update.
1947 (lookup_language_this): Update.
1948 (find_pc_sect_line): Update.
1949 (skip_prologue_sal): Update.
1950 (symbol_search::compare_search_syms): Update.
1951 (treg_matches_sym_type_name): Update.
1952 (search_symbols): Update.
1953 (print_symbol_info): Update.
1954 (rbreak_command): Update.
1955 (completion_list_add_symbol): Update.
1956 (find_gnu_ifunc): Update.
1957 (get_symbol_address): Update.
1958 (search_module_symbols): Update.
1959 (info_module_subcommand): Update.
1960 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1961 (SYMBOL_LINKAGE_NAME): Remove.
1962 (SYMBOL_DEMANGLED_NAME): Remove.
1963 (SYMBOL_PRINT_NAME): Remove.
1964 (SYMBOL_SEARCH_NAME): Remove.
1965 * tracepoint.c (set_traceframe_context): Update.
1966 (validate_actionline): Update.
1967 (collection_list::collect_symbol): Update.
1968 (encode_actions_1): Update.
1969 (info_scope_command): Update.
1970 (print_one_static_tracepoint_marker): Update.
1971 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1972 * valops.c (address_of_variable): Update.
1973 (find_overload_match): Update.
1974 (find_oload_champ): Update.
1975
1976 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1977
1978 * ada-lang.c (ada_lookup_simple_minsym): Update.
1979 (ada_collect_symbol_completion_matches): Update.
1980 * ada-tasks.c (read_atcb): Update.
1981 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1982 (amd64_windows_skip_trampoline_code): Update.
1983 * arm-tdep.c (skip_prologue_function): Update.
1984 (arm_skip_stack_protector): Update.
1985 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1986 (arm_wince_skip_main_prologue): Update.
1987 * ax-gdb.c (gen_expr): Update.
1988 * block.c (call_site_for_pc): Update.
1989 * blockframe.c (find_pc_partial_function): Update.
1990 * breakpoint.c (set_breakpoint_location_function): Update.
1991 * btrace.c (ftrace_print_function_name): Update.
1992 (ftrace_function_switched): Update.
1993 * c-valprint.c (print_unpacked_pointer): Update.
1994 * coffread.c (coff_symfile_read): Update.
1995 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1996 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1997 * dwarf-index-write.c (write_psymbols): Update.
1998 * dwarf2loc.c (call_site_to_target_addr): Update.
1999 (func_verify_no_selftailcall): Update.
2000 (tailcall_dump): Update.
2001 (call_site_find_chain_1): Update.
2002 (dwarf_expr_reg_to_entry_parameter): Update.
2003 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2004 * eval.c (evaluate_funcall): Update.
2005 (evaluate_subexp_standard): Update.
2006 (evaluate_subexp_for_sizeof): Update.
2007 * expprint.c (print_subexp_standard): Update.
2008 (dump_subexp_body_standard): Update.
2009 * frame.c (get_prev_frame_always_1): Update.
2010 * frv-tdep.c (frv_skip_main_prologue): Update.
2011 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2012 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2013 (gnuv3_get_typename_from_type_info): Update.
2014 (gnuv3_skip_trampoline): Update.
2015 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2016 * i386-tdep.c (i386_skip_main_prologue): Update.
2017 (i386_pe_skip_trampoline_code): Update.
2018 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2019 * infcall.c (get_function_name): Update.
2020 * linespec.c (minsym_found): Update.
2021 * linux-fork.c (info_checkpoints_command): Update.
2022 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2023 (m32c_m16c_pointer_to_address): Update.
2024 * maint.c (maintenance_translate_address): Update.
2025 * minsyms.c (add_minsym_to_hash_table): Update.
2026 (add_minsym_to_demangled_hash_table): Update.
2027 (lookup_minimal_symbol_mangled): Update.
2028 (lookup_minimal_symbol_demangled): Update.
2029 (lookup_minimal_symbol_linkage): Update.
2030 (lookup_minimal_symbol_text): Update.
2031 (lookup_minimal_symbol_by_pc_name): Update.
2032 (minimal_symbol_is_less_than): Update.
2033 (compact_minimal_symbols): Update.
2034 (build_minimal_symbol_hash_tables): Update.
2035 (find_solib_trampoline_target): Update.
2036 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2037 (mips_skip_pic_trampoline_code): Update.
2038 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2039 * objc-lang.c (info_selectors_command): Update.
2040 (info_classes_command): Update.
2041 (find_methods): Update.
2042 (find_imps): Update.
2043 * p-valprint.c (pascal_val_print): Update.
2044 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2045 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2046 * printcmd.c (build_address_symbolic): Update.
2047 (info_symbol_command): Update.
2048 * psymtab.c (psymbol_name_matches): Update.
2049 (match_partial_symbol): Update.
2050 (lookup_partial_symbol): Update.
2051 (print_partial_symbols): Update.
2052 (sort_pst_symbols): Update.
2053 (maintenance_check_psymtabs): Update.
2054 * python/py-framefilter.c (py_print_frame): Update.
2055 * python/python.c (gdbpy_rbreak): Update.
2056 * record-btrace.c (btrace_get_bfun_name): Update.
2057 (btrace_call_history): Update.
2058 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2059 (rs6000_skip_trampoline_code): Update.
2060 * sol-thread.c (info_cb): Update.
2061 * stabsread.c (scan_file_globals): Update.
2062 * stack.c (find_frame_funname): Update.
2063 (info_frame_command_core): Update.
2064 * symmisc.c (dump_msymbols): Update.
2065 * symtab.c (symbol_natural_name): Rename to..,
2066 (general_symbol_info::natural_name): ...this.
2067 (symbol_demangled_name): Rename to...
2068 (general_symbol_info::demangled_name): ...this.
2069 (symbol_search_name): Rename to...
2070 (general_symbol_info::search_name): ...this.
2071 (symbol_matches_search_name): Update.
2072 (find_pc_sect_line): Update.
2073 (skip_prologue_sal): Update.
2074 (search_symbols): Update.
2075 (print_msymbol_info): Update.
2076 (rbreak_command): Update.
2077 (completion_list_add_msymbol): Update.
2078 (completion_list_objc_symbol): Update.
2079 (get_msymbol_address): Update.
2080 * symtab.h (struct general_symbol_info): Add member functions
2081 natural_name (), linkage_name (), print_name (), demangled_name (),
2082 and search_name ().
2083 (SYMBOL_NATURAL_NAME): Update.
2084 (symbol_natural_name): Move to a member function on general_symbol_info.
2085 (SYMBOL_DEMANGLED_NAME): Update.
2086 (symbol_demangled_name): Move to a member function on
2087 general_symbol_info.
2088 (SYMBOL_SEARCH_NAME): Update.
2089 (symbol_search_name): Move to a member function on general_symbol_info.
2090 (MSYMBOL_NATURAL_NAME): Remove.
2091 (MSYMBOL_LINKAGE_NAME): Remove.
2092 (MSYMBOL_PRINT_NAME): Remove.
2093 (MSYMBOL_DEMANGLED_NAME): Remove.
2094 (MSYMBOL_SEARCH_NAME): Remove.
2095 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2096
2097 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2098
2099 * symtab.c (create_demangled_names_hash): Use per_bfd->
2100 minimal_symbol_count for computing the initial size, if greater
2101 than our default size.
2102
2103 2019-11-22 Tom de Vries <tdevries@suse.de>
2104
2105 * contrib/words.sh: Improve words extraction.
2106
2107 2019-11-22 Tom de Vries <tdevries@suse.de>
2108
2109 * contrib/words.sh: Combine sed invocations.
2110
2111 2019-11-21 Christian Biesinger <cbiesinger@google.com>
2112
2113 * Makefile.in: Update.
2114 * demangle.c: Rename to...
2115 * gdb-demangle.c: ..this.
2116 (is_cplus_marker): Change return type to bool.
2117 (_initialize_demangler): Rename to...
2118 (_initialize_gdb_demangle): ...this.
2119 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2120 * symtab.h (demangle): Remove declaration; instead include
2121 gdb-demangle.h.
2122
2123 2019-11-21 Tom Tromey <tromey@adacore.com>
2124
2125 * gdbsupport/format.c (format_pieces): Parse %I64d.
2126 * unittests/format_pieces-selftests.c (test_windows_formats): New
2127 function.
2128 (run_tests): Call it.
2129
2130 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2131
2132 Byte reverse display of variables with DW_END_big, DW_END_little
2133 (DW_AT_endianity) dwarf attributes if different than the native
2134 byte order.
2135 * ada-lang.c (ada_value_binop):
2136 Use type_byte_order instead of gdbarch_byte_order.
2137 * ada-valprint.c (printstr):
2138 (ada_val_print_string):
2139 * ada-lang.c (value_pointer):
2140 (ada_value_binop):
2141 Use type_byte_order instead of gdbarch_byte_order.
2142 * c-lang.c (c_get_string):
2143 Use type_byte_order instead of gdbarch_byte_order.
2144 * c-valprint.c (c_val_print_array):
2145 Use type_byte_order instead of gdbarch_byte_order.
2146 * cp-valprint.c (cp_print_class_member):
2147 Use type_byte_order instead of gdbarch_byte_order.
2148 * dwarf2loc.c (rw_pieced_value):
2149 Use type_byte_order instead of gdbarch_byte_order.
2150 * dwarf2read.c (read_base_type): Handle DW_END_big,
2151 DW_END_little
2152 * f-lang.c (f_get_encoding):
2153 Use type_byte_order instead of gdbarch_byte_order.
2154 * findvar.c (default_read_var_value):
2155 Use type_byte_order instead of gdbarch_byte_order.
2156 * gdbtypes.c (check_types_equal):
2157 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2158 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2159 and TYPE_ENDIANITY_LITTLE if set.
2160 (type_byte_order): new function.
2161 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2162 (struct main_type) <flag_endianity_not_default>:
2163 New field.
2164 (type_byte_order): New function.
2165 * infcmd.c (default_print_one_register_info):
2166 Use type_byte_order instead of gdbarch_byte_order.
2167 * p-lang.c (pascal_printstr):
2168 Use type_byte_order instead of gdbarch_byte_order.
2169 * p-valprint.c (pascal_val_print):
2170 Use type_byte_order instead of gdbarch_byte_order.
2171 * printcmd.c (print_scalar_formatted):
2172 Use type_byte_order instead of gdbarch_byte_order.
2173 * solib-darwin.c (darwin_current_sos):
2174 Use type_byte_order instead of gdbarch_byte_order.
2175 * solib-svr4.c (solib_svr4_r_ldsomap):
2176 Use type_byte_order instead of gdbarch_byte_order.
2177 * stap-probe.c (stap_modify_semaphore):
2178 Use type_byte_order instead of gdbarch_byte_order.
2179 * target-float.c (target_float_same_format_p):
2180 Use type_byte_order instead of gdbarch_byte_order.
2181 * valarith.c (scalar_binop):
2182 (value_bit_index):
2183 Use type_byte_order instead of gdbarch_byte_order.
2184 * valops.c (value_cast):
2185 Use type_byte_order instead of gdbarch_byte_order.
2186 * valprint.c (generic_emit_char):
2187 (generic_printstr):
2188 (val_print_string):
2189 Use type_byte_order instead of gdbarch_byte_order.
2190 * value.c (unpack_long):
2191 (unpack_bits_as_long):
2192 (unpack_value_bitfield):
2193 (modify_field):
2194 (pack_long):
2195 (pack_unsigned_long):
2196 Use type_byte_order instead of gdbarch_byte_order.
2197 * findvar.c (unsigned_pointer_to_address):
2198 (signed_pointer_to_address):
2199 (unsigned_address_to_pointer):
2200 (address_to_signed_pointer):
2201 (default_read_var_value):
2202 (default_value_from_register):
2203 Use type_byte_order instead of gdbarch_byte_order.
2204 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2205 Use type_byte_order instead of gdbarch_byte_order.
2206 * riscv-tdep.c (riscv_print_one_register_info):
2207 Use type_byte_order instead of gdbarch_byte_order.
2208
2209 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2212 (current_ui_gdb_stdin_ptr): Likewise.
2213 (current_ui_gdb_stderr_ptr): Likewise.
2214 (current_ui_gdb_stdlog_ptr): Likewise.
2215 (current_ui_current_uiout_ptr): Likewise.
2216 (gen_ret_current_ui_field_ptr): Remove.
2217
2218 2019-11-21 Tom de Vries <tdevries@suse.de>
2219
2220 PR gdb/24956
2221 * cli/cli-script.c (execute_control_command): Only switch to
2222 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2223
2224 2019-11-19 Tom Tromey <tom@tromey.com>
2225
2226 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2227 Now static. Change type of "name".
2228 (tui_set_win_height_command): Don't copy "arg".
2229 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2230 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2231
2232 2019-11-19 Ali Tamur <tamur@google.com>
2233
2234 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2235 "if (attr != nullptr)".
2236 (dwarf2_find_base_address): Likewise.
2237 (dwarf2_build_include_psymtabs): Likewise.
2238 (read_cutu_die_from_dwo): Likewise.
2239 (read_func_scope): Likewise.
2240 (read_call_site_scope): Likewise.
2241 (dwarf2_get_pc_bounds): Likewise.
2242 (dwarf2_record_block_ranges): Likewise.
2243 (dwarf2_add_field): Likewise.
2244 (dwarf2_add_member_fn): Likewise.
2245 (read_structure_type): Likewise.
2246 (read_enumeration_type): Likewise.
2247 (read_array_type): Likewise.
2248 (read_array_order): Likewise.
2249 (read_set_type): Likewise.
2250 (read_common_block): Likewise.
2251 (read_tag_reference_type): Likewise.
2252 (read_tag_string_type): Likewise.
2253 (read_subroutine_type): Likewise.
2254 (read_base_type): Likewise.
2255 (read_subrange_type): Likewise.
2256 (new_symbol): Likewise.
2257 (prepare_one_comp_unit): Likewise.
2258
2259 2019-11-19 Tom Tromey <tromey@adacore.com>
2260
2261 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2262 result in error when DebugActiveProcess fails.
2263
2264 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2265 Pedro Alves <palves@redhat.com>
2266
2267 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2268 * target.c (target_stack::push): Call 'unpush' if there's a
2269 target on top of the stack.
2270
2271 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2272
2273 * python/py-block.c (blpy_dealloc): Call tp_free.
2274 (blpy_block_syms_dealloc): Likewise.
2275 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2276 * python/py-inferior.c (infpy_dealloc): Likewise.
2277 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2278 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2279 * python/py-symbol.c (sympy_dealloc): Likewise.
2280 * python/py-symtab.c (stpy_dealloc): Likewise.
2281 * python/py-type.c (typy_iterator_dealloc): Likewise.
2282
2283 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2284
2285 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2286 constructor instead of using a class initializer.
2287
2288 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2289
2290 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2291 * configure: Regenerate.
2292 * configure.ac: Don't source common.host.
2293 * gdbsupport/common.host: Remove.
2294 * gdbsupport/mingw-strerror.c: Remove.
2295 * gdbsupport/posix-strerror.c: Rename to...
2296 * gdbsupport/safe-strerror.c: ...this.
2297
2298 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2299
2300 * maint.c (scoped_command_stats::print_time): Use localtime_r
2301 instead of localtime (provided through gnulib if necessary).
2302 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2303 of ctime.
2304
2305 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2306
2307 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2308 avoid compile errors.
2309
2310 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2311
2312 * config.in: Regenerate.
2313 * configure: Regenerate.
2314 * gdbsupport/common.m4: No longer check for strerror_r.
2315 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2316 POSIX version of strerror_r, now that gnulib provides it if
2317 necessary.
2318
2319 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2320
2321 * README (`configure' options): Update.
2322
2323 2019-11-14 Tom Tromey <tromey@adacore.com>
2324
2325 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2326 expected type for the RHS if the LHS is a convenience variable.
2327
2328 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2329
2330 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2331 Provide explicit default and copy constructor.
2332
2333 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2334
2335 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2336 only call Py_INCREF (newbp) in the bppy_pending_object case.
2337
2338 2019-11-13 Tom Tromey <tromey@adacore.com>
2339
2340 PR build/25182:
2341 * psympriv.h (partial_symbol): Remove static assert.
2342 * symtab.h (general_symbol_info, symbol): Remove static assert.
2343
2344 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * gdbsupport/format.c (format_pieces::format_pieces): Support
2347 printf 'z' size modifier.
2348 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2349 * printcmd.c (ui_printf): Handle size_t_arg.
2350 * ui-out.c (ui_out::vmessage): Likewise.
2351 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2352 function.
2353 (run_tests): Call test_format_int_sizes.
2354
2355 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2356
2357 * ada-exp.y (write_ambiguous_var): Update.
2358 * buildsym.c (add_symbol_to_list): Update.
2359 * dwarf2read.c (read_variable): Update.
2360 (new_symbol): Update.
2361 * jit.c (finalize_symtab): Update.
2362 * language.c (language_alloc_type_symbol): Update.
2363 * symtab.c (fixup_symbol_section): Update.
2364 (initialize_objfile_symbol_1): Move code to...
2365 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2366 (allocate_symbol): Update.
2367 (allocate_template_symbol): Update.
2368 (get_symbol_address): Update.
2369 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2370 of having as a field, and add a constructor.
2371 (SYMBOL_VALUE): Update.
2372 (SYMBOL_VALUE_ADDRESS): Update.
2373 (SET_SYMBOL_VALUE_ADDRESS): Update.
2374 (SYMBOL_VALUE_BYTES): Update.
2375 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2376 (SYMBOL_BLOCK_VALUE): Update.
2377 (SYMBOL_VALUE_CHAIN): Update.
2378 (SYMBOL_LANGUAGE): Update.
2379 (SYMBOL_SECTION): Update.
2380 (SYMBOL_OBJ_SECTION): Update.
2381 (SYMBOL_SET_LANGUAGE): Update.
2382 (SYMBOL_SET_LINKAGE_NAME): Update.
2383 (SYMBOL_SET_NAMES): Update.
2384 (SYMBOL_NATURAL_NAME): Update.
2385 (SYMBOL_LINKAGE_NAME): Update.
2386 (SYMBOL_DEMANGLED_NAME): Update.
2387 (SYMBOL_SEARCH_NAME): Update.
2388 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2389 (struct symbol): Update.
2390 (struct template_symbol): Update.
2391 (struct rust_vtable_symbol): Update.
2392 * xcoffread.c (SYMBOL_DUP): Update.
2393
2394 2019-11-12 Tom Tromey <tom@tromey.com>
2395
2396 * tui/tui-layout.c (show_layout): Set current_layout.
2397 (show_source_disasm_command, show_data)
2398 (show_source_or_disasm_and_command): Don't set current_layout.
2399
2400 2019-11-12 Tom Tromey <tom@tromey.com>
2401
2402 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2403
2404 2019-11-12 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-win.c (resize_message): New global.
2407 (show_tui_resize_message): New function.
2408 (tui_async_resize_screen): Print message if requested.
2409 (_initialize_tui_win): Add tui-resize-message setting.
2410 * NEWS: Add entry for new commands.
2411
2412 2019-11-11 Tom Tromey <tom@tromey.com>
2413
2414 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2415 functions.
2416
2417 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2418
2419 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2420
2421 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2424 function.
2425 * python/python-internal.h (gdbpy_lookup_static_symbols):
2426 Declare new function.
2427 * python/python.c (python_GdbMethods): Add
2428 gdb.lookup_static_symbols method.
2429 * NEWS: Mention gdb.lookup_static_symbols.
2430
2431 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2434 static block of current object file first. Also fix typo in
2435 header comment.
2436
2437 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * stack.c (set_last_displayed_sal): Delete.
2440 (last_displayed_sal_valid): Delete.
2441 (last_displayed_pspace): Delete.
2442 (last_displayed_addr): Delete.
2443 (last_displayed_symtab): Delete.
2444 (last_displayed_line): Delete.
2445 (class last_displayed_symtab_info_type): New.
2446 (last_displayed_symtab_info): New static global variable.
2447 (print_frame_info): Call methods on last_displayed_symtab_info.
2448 (clear_last_displayed_sal): Update header comment, and make use of
2449 last_displayed_symtab_info.
2450 (last_displayed_sal_is_valid): Likewise.
2451 (get_last_displayed_pspace): Likewise.
2452 (get_last_displayed_addr): Likewise.
2453 (get_last_displayed_symtab): Likewise.
2454 (get_last_displayed_line): Likewise.
2455 (get_last_displayed_sal): Likewise.
2456 * stack.h (clear_last_displayed_sal): Update header comment.
2457 (last_displayed_sal_is_valid): Likewise.
2458 (get_last_displayed_pspace): Likewise.
2459 (get_last_displayed_addr): Likewise.
2460 (get_last_displayed_symtab): Likewise.
2461 (get_last_displayed_line): Likewise.
2462 (get_last_displayed_sal): Likewise.
2463
2464 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * stack.c (frame_show_address): Convert return type to bool.
2467 * stack.h (frame_show_address): Likewise, and update header
2468 comment.
2469
2470 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2473 * unittests/vec-utils-selftests.c: New file.
2474 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2475
2476 2019-11-10 Tom Tromey <tom@tromey.com>
2477
2478 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2479 (tui_highlight_win): Likewise.
2480 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2481 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2482 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2483 Don't set can_highlight.
2484
2485 2019-11-10 Tom Tromey <tom@tromey.com>
2486
2487 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2488 Remove unused declaration.
2489
2490 2019-11-08 Tom Tromey <tromey@adacore.com>
2491
2492 * top.c (read_command_file): Update.
2493 (command_line_input): Make return type const.
2494 * python/py-gdb-readline.c: Update.
2495 * linespec.c (decode_line_2): Update.
2496 * defs.h (command_line_input): Make return type const.
2497 * cli/cli-script.c (read_next_line): Make return type const.
2498 * ada-lang.c (get_selections): Update.
2499
2500 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2501
2502 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2503 * mi/mi-main.c (output_cores): Likewise.
2504 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2505 (linux_xfer_osdata_modules): Likewise.
2506 * remote.c (register_remote_support_xml): Likewise.
2507 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2508 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2509
2510 2019-11-06 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-interp.c: Don't include readline.h.
2513 * tui/tui-hooks.c: Don't include readline.h.
2514 * symmisc.c: Include tilde.h, not readline.h.
2515 * symfile.c: Include tilde.h, not readline.h.
2516 * source.c: Include tilde.h, not readline.h.
2517 * solib.c: Include tilde.h, not readline.h.
2518 * psymtab.c: Include tilde.h, not readline.h.
2519 * exec.c: Include tilde.h, not readline.h.
2520 * corelow.c: Include tilde.h, not readline.h.
2521 * cli/cli-dump.c: Include tilde.h, not readline.h.
2522 * cli/cli-cmds.c: Don't include readline.h.
2523
2524 2019-11-05 Tom Tromey <tom@tromey.com>
2525
2526 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2527 (tui_disassemble): Set addr_size.
2528 (tui_disasm_window::set_contents): Use addr_size.
2529
2530 2019-11-05 Tom Tromey <tom@tromey.com>
2531
2532 * rust-lang.c (rust_language_defn): Update.
2533 * python/py-value.c (valpy_string): Call c_get_string.
2534 * p-lang.c (pascal_language_defn): Update.
2535 * opencl-lang.c (opencl_language_defn): Update.
2536 * objc-lang.c (objc_language_defn): Update.
2537 * m2-lang.c (m2_language_defn): Update.
2538 * language.c (unknown_language_defn, auto_language_defn): Update.
2539 (default_get_string): Remove.
2540 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2541 * go-lang.c (go_language_defn): Update.
2542 * f-lang.c (f_language_defn): Update.
2543 * d-lang.c (d_language_defn): Update.
2544 * c-lang.c (c_language_defn, cplus_language_defn)
2545 (asm_language_defn, minimal_language_defn): Update.
2546 * ada-lang.c (ada_language_defn): Update.
2547 * language.h (struct language_defn) <la_get_string>: Remove.
2548 (LA_GET_STRING): Remove.
2549 (default_get_string): Don't declare.
2550
2551 2019-11-05 Tom Tromey <tom@tromey.com>
2552
2553 * tui/tui-source.h (struct tui_source_window): Inline
2554 constructor. Remove destructor.
2555 <style_changed, m_observable>: Move to superclass.
2556 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2557 (struct tui_source_window_base): Move private members to end.
2558 <style_changed, m_observable>: Move from tui_source_window.
2559 * tui/tui-winsource.c (tui_copy_source_line): Move from
2560 tui-source.c. Rename from copy_source_line. Add special handling
2561 for negative line number.
2562 (tui_source_window_base::style_changed): Move from
2563 tui_source_window.
2564 (tui_source_window_base): Register observer.
2565 (~tui_source_window_base): New.
2566 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2567 rename.
2568 (tui_source_window::set_contents): Use tui_copy_source_line.
2569 (tui_source_window::tui_source_window): Move to tui-source.h.
2570 (tui_source_window::~tui_source_window): Remove.
2571 (tui_source_window::style_changed): Move to superclass.
2572 * tui/tui-disasm.c (tui_disassemble): Create string file with
2573 styling, when possible. Add "addr_size" parameter.
2574 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2575 Don't compute maximum size.
2576 (len_without_escapes): New function
2577
2578 2019-11-05 Tom Tromey <tom@tromey.com>
2579
2580 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2581 std::string.
2582 * tui/tui-winsource.c (tui_show_source_line): Update.
2583 * tui/tui-source.c (tui_source_window::set_contents): Update.
2584 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2585
2586 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2587
2588 * symtab.h (gdb_static_assert): Put && operator at the beginning
2589 of the line instead of the end.
2590
2591 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2592
2593 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2594 and sizeof (symbol).
2595 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2596
2597 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2598
2599 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2600 * configure.host: Mark *-*-solaris2.10* obsolete.
2601 * configure.tgt: Mark Solaris < 11 obsolete.
2602 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2603 Update target triplet.
2604
2605 2019-11-01 Tom Tromey <tromey@adacore.com>
2606
2607 * utils.c (print_sys_errmsg): Simplify.
2608
2609 2019-11-01 Tom Tromey <tromey@adacore.com>
2610
2611 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2612
2613 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2614
2615 * configure: Regenerate.
2616 * configure.ac: Remove check for strerror_r.
2617 * gdbsupport/common.m4: Check for strerror_r.
2618
2619 2019-11-01 Luis Machado <luis.machado@linaro.org>
2620
2621 PR gdb/25124
2622
2623 * arm-tdep.c (arm_per_objfile): Rename to ...
2624 (arm_per_bfd): ... this.
2625 (arm_objfile_data_key): Rename to ...
2626 (arm_bfd_data_key): ... this.
2627 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2628 data.
2629 (arm_record_special_symbol): Likewise.
2630
2631 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2634 end.
2635 * c-typeprint.c (c_print_typedef): Likewise.
2636 * f-typeprint.c (f_print_typedef): Likewise.
2637 * m2-typeprint.c (m2_print_typedef): Likewise.
2638 * p-typeprint.c (pascal_print_typedef): Likewise.
2639 * rust-lang.c (rust_print_typedef): Likewise.
2640 * symtab.c (print_symbol_info): Print a newline after calling
2641 typedef_print.
2642
2643 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2644
2645 * symtab.c (info_module_cmdlist): New variable.
2646 (info_module_command): New function.
2647 (search_module_symbols): New function.
2648 (info_module_subcommand): New function.
2649 (struct info_modules_var_func_options): New struct.
2650 (info_modules_var_func_options_defs): New variable.
2651 (make_info_modules_var_func_options_def_group): New function.
2652 (info_module_functions_command): New function.
2653 (info_module_variables_command): New function.
2654 (info_module_var_func_command_completer): New function.
2655 (_initialize_symtab): Register new 'info module functions' and
2656 'info module variables' commands.
2657 * symtab.h (typedef symbol_search_in_module): New typedef.
2658 (search_module_symbols): Declare new function.
2659 * NEWS: Mention new commands.
2660
2661 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2662
2663 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2664 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2665 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2666 MODULES_DOMAIN.
2667 (scan_partial_symbols): Only create partial module symbols for non
2668 declarations.
2669 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2670 and MODULES_DOMAIN.
2671 * symtab.c (search_domain_name): Likewise.
2672 (search_symbols): Likewise.
2673 (print_symbol_info): Likewise.
2674 (symtab_symbol_info): Likewise.
2675 (info_modules_command): New function.
2676 (_initialize_symtab): Register 'info modules' command.
2677 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2678 * NEWS: Mention new 'info modules' command.
2679
2680 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2681
2682 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2683 and $_gdb_maint_setting_str.
2684
2685 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2686
2687 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2688 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2689 (str_value_from_setting, gdb_setting_str_internal_fn)
2690 (gdb_maint_setting_str_internal_fn): New functions.
2691 (_initialize_cli_cmds): Define the new convenience functions.
2692 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2693 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2694
2695 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2696
2697 * agent.c (set_can_use_agent): When the setting is turned on,
2698 look up agent symbols if we don't have them yet.
2699 (agent_new_objfile): Don't look up agent symbols when the agent
2700 setting is off.
2701
2702 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2703
2704 * config.in: Regenerate.
2705
2706 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2707
2708 * configure: Regenerate.
2709 * configure.ac: Check for strerror_r.
2710 * gdbsupport/common-utils.h (safe_strerror): Change return value
2711 to const char * and document that this function is now threadsafe.
2712 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2713 thread_local and call strerror_r, if available.
2714 * utils.c (perror_string): Update.
2715 (print_sys_errmsg): Update.
2716
2717 2019-10-31 Luis Machado <luis.machado@linaro.org>
2718
2719 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2720 objfile_key.
2721 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2722 objfile to fetch per-bfd data.
2723 (arm_find_exidx_entry): Likewise.
2724
2725 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2726
2727 * gdbsupport/agent.c (debug_agent): Change type to bool.
2728 (use_agent): Likewise.
2729 (all_agent_symbols_look_up): Likewise.
2730 (agent_loaded_p): Change return value to bool.
2731 (agent_look_up_symbols): Update.
2732 (agent_capability_check): Change return value to bool.
2733 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2734 (debug_agent): Change type to bool.
2735 (use_agent): Likewise.
2736 (agent_capability_check): Change return value to bool.
2737
2738 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2739
2740 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2741 (build_minimal_symbol_hash_tables): Code to clear the table moved
2742 to clear_minimal_symbol_hash_tables.
2743 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2744 when needed.
2745
2746 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2747
2748 * infcmd.c: Remove includes.
2749 * infrun.c: Remove includes.
2750
2751 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2752
2753 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2754 (grow_vect): Remove declaration.
2755 (ada_type_of_array): Remove declaration.
2756 (ada_update_initial_language): Remove declaration.
2757 (ada_fold_name): Remove declaration.
2758 (ada_fill_in_ada_prototype): Remove declaration.
2759 (user_select_syms): Remove declaration.
2760 (get_selections): Remove declaration.
2761 (ada_tag_type): Remove declaration.
2762 (ada_value_tag): Remove declaration.
2763 (ada_is_others_clause): Remove declaration.
2764 (ada_in_variant): Remove declaration.
2765 (ada_value_struct_elt): Remove declaration.
2766 (ada_attribute_name): Remove declaration.
2767 (ada_system_address_type): Remove declaration.
2768 * ada-lang.c (ada_watch_location_expression): Make static.
2769 (GROW_VECT): Move here from ada-lang.h.
2770 (grow_vect): Make static.
2771 (ada_update_initial_language): Make static.
2772 (ada_fold_name): Make static.
2773 (ada_type_of_array): Make static.
2774 (encoded_ordered_before): Move up.
2775 (sort_choices): Move up.
2776 (print_signatures): Move up.
2777 (ada_print_symbol_signature): Move up.
2778 (get_selections): Move up and make static.
2779 (user_select_syms): Move up and make static.
2780 (ada_value_struct_elt): Move up and make static.
2781 (ada_tag_type): Make static.
2782 (ada_value_tag): Make static.
2783 (ada_is_others_clause): Make static.
2784 (ada_in_variant): Make static.
2785 (ada_attribute_name): Make static.
2786
2787 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * ada-lang.c: Remove includes.
2790 * ada-typeprint.c: Remove includes.
2791 * ada-valprint.c: Remove includes.
2792
2793 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2794
2795 * addrmap.c: Add static assertions of type size, moved from
2796 _initialize_addrmap.
2797 (_initialize_addrmap): Remove.
2798
2799 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2800
2801 * coffread.c (record_minimal_symbol): Update.
2802 (process_coff_symbol): Update.
2803 * dbxread.c (read_dbx_symtab): Update.
2804 * dwarf2read.c (add_partial_symbol): Update.
2805 (fixup_go_packaging): Update.
2806 (load_partial_dies): Update.
2807 (new_symbol): Update.
2808 * elfread.c (record_minimal_symbol): Change signature to use
2809 gdb::string_view instead of name+len.
2810 (elf_symtab_read): Update.
2811 (elf_rel_plt_read): Update.
2812 * mdebugread.c (parse_partial_symbols): Update.
2813 (handle_psymbol_enumerators): Update.
2814 (new_symbol): Update.
2815 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2816 to use gdb::string_view instead of name+len.
2817 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2818 * psympriv.h (add_psymbol_to_list): Likewise.
2819 * psymtab.c (add_psymbol_to_bcache): Likewise.
2820 (add_psymbol_to_list): Likewise.
2821 * stabsread.c (define_symbol): Update.
2822 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2823 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2824 (symbol_set_names): Likewise.
2825 * xcoffread.c (scan_xcoff_symtab): Update.
2826
2827 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2828
2829 * symtab.h (symbol_set_names): Document that copy_name must be
2830 set to true for non-nullterminated strings.
2831 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2832 linkage_name if the entry was not found and we need to demangle.
2833
2834 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2835
2836 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2837 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2838 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2839 * gdbsupport/gdb_binary_search.h: New file.
2840
2841 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2842
2843 * NEWS: Mention new --with-system-gdbinit-dir option.
2844 * config.in: Regenerate.
2845 * configure: Regenerate.
2846 * configure.ac: Add new option --with-system-gdbinit-dir.
2847 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2848 for a ".gdb" suffix.
2849 * main.c (get_init_files): Change system_gdbinit argument to
2850 a vector and return the files in SYSTEM_GDBINIT_DIR in
2851 addition to SYSTEM_GDBINIT.
2852 (captured_main_1): Update.
2853 (print_gdb_help): Update.
2854 * top.c (print_gdb_configuration): Also print the value of
2855 SYSTEM_GDBINIT_DIR.
2856
2857 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2858
2859 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2860 that takes gdb::string_view arguments.
2861
2862 2019-10-26 Tom de Vries <tdevries@suse.de>
2863
2864 * aarch64-linux-tdep.c: Fix typos in comments.
2865 * aarch64-tdep.c: Same.
2866 * ada-lang.c: Same.
2867 * amd64-nat.c: Same.
2868 * arc-tdep.c: Same.
2869 * arch/aarch64-insn.c: Same.
2870 * block.c: Same.
2871 * breakpoint.h: Same.
2872 * btrace.h: Same.
2873 * c-varobj.c: Same.
2874 * cli/cli-decode.c: Same.
2875 * cli/cli-script.c: Same.
2876 * cli/cli-utils.h: Same.
2877 * coff-pe-read.c: Same.
2878 * coffread.c: Same.
2879 * compile/compile-cplus-symbols.c: Same.
2880 * compile/compile-object-run.c: Same.
2881 * completer.c: Same.
2882 * corelow.c: Same.
2883 * cp-support.c: Same.
2884 * demangle.c: Same.
2885 * dwarf-index-write.c: Same.
2886 * dwarf2-frame.c: Same.
2887 * dwarf2-frame.h: Same.
2888 * eval.c: Same.
2889 * frame-base.h: Same.
2890 * frame.h: Same.
2891 * gdbcmd.h: Same.
2892 * gdbtypes.h: Same.
2893 * gnu-nat.c: Same.
2894 * guile/scm-objfile.c: Same.
2895 * i386-tdep.c: Same.
2896 * i386-tdep.h: Same.
2897 * infcall.c: Same.
2898 * infcall.h: Same.
2899 * linux-nat.c: Same.
2900 * m68k-tdep.c: Same.
2901 * macroexp.c: Same.
2902 * memattr.c: Same.
2903 * mi/mi-cmd-disas.c: Same.
2904 * mi/mi-getopt.h: Same.
2905 * mi/mi-main.c: Same.
2906 * minsyms.c: Same.
2907 * nat/aarch64-sve-linux-sigcontext.h: Same.
2908 * objfiles.h: Same.
2909 * ppc-linux-nat.c: Same.
2910 * ppc-linux-tdep.c: Same.
2911 * ppc-tdep.h: Same.
2912 * progspace.h: Same.
2913 * prologue-value.h: Same.
2914 * python/py-evtregistry.c: Same.
2915 * python/py-instruction.h: Same.
2916 * record-btrace.c: Same.
2917 * record-full.c: Same.
2918 * remote.c: Same.
2919 * rs6000-tdep.c: Same.
2920 * ser-tcp.c: Same.
2921 * sol-thread.c: Same.
2922 * sparc-sol2-tdep.c: Same.
2923 * sparc64-tdep.c: Same.
2924 * stabsread.c: Same.
2925 * symfile.c: Same.
2926 * symtab.h: Same.
2927 * target.c: Same.
2928 * tracepoint.c: Same.
2929 * tui/tui-data.h: Same.
2930 * tui/tui-io.c: Same.
2931 * tui/tui-win.c: Same.
2932 * tui/tui.c: Same.
2933 * unittests/rsp-low-selftests.c: Same.
2934 * user-regs.h: Same.
2935 * utils.c: Same.
2936 * utils.h: Same.
2937 * valarith.c: Same.
2938 * valops.c: Same.
2939 * valprint.c: Same.
2940 * valprint.h: Same.
2941 * value.c: Same.
2942 * value.h: Same.
2943 * varobj.c: Same.
2944 * x86-nat.h: Same.
2945 * xtensa-tdep.c: Same.
2946
2947 2019-10-25 Ali Tamur <tamur@google.com>
2948
2949 * charset.c (find_charset_names): Reflect API change.
2950
2951 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2952
2953 * symtab.c (struct demangled_name_entry): Change demangled name
2954 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2955 part of the struct anymore.
2956 (symbol_set_names): No longer obstack allocate + copy the demangled
2957 name, just store the allocated name from bfd.
2958
2959 2019-10-25 Tom Tromey <tromey@adacore.com>
2960
2961 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2962 (bsearch_cie_cmp, add_cie): Remove.
2963 (find_cie): Reimplement.
2964 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2965 (dwarf2_build_frame_info): Update.
2966
2967 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2968
2969 PR gdb/25126
2970 * symfile.c (reread_symbols): Call forget_cached_source_info to
2971 clear the stale source cache.
2972
2973 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2974
2975 * configure: Regenerate.
2976 * configure.ac: Remove code that sets python_has_threads.
2977
2978 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2979
2980 * config.in: Regenerate.
2981 * configure: Regenerate.
2982 * configure.ac: Remove the code that uses sed to get the python
2983 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2984
2985 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2988 error paths.
2989
2990 2019-10-23 Tom Tromey <tom@tromey.com>
2991
2992 * arc-tdep.c: Remove ".." from include.
2993 * frv-tdep.c: Remove ".." from include.
2994 * lm32-tdep.c: Remove ".." from include.
2995 * microblaze-tdep.c: Remove ".." from include.
2996 * or1k-tdep.h: Remove ".." from include.
2997 * s12z-tdep.c: Remove ".." from include.
2998 * Makefile.in (OPCODES_CFLAGS): Add comment.
2999 (TOP_CFLAGS): New variable.
3000 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
3001
3002 2019-10-23 Tom Tromey <tom@tromey.com>
3003
3004 * Makefile.in (READLINE_DIR): Update.
3005
3006 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3007
3008 * infcall.c (call_function_by_hand_dummy): Fix the function
3009 comment. And extract out a code section into...
3010 (reserve_stack_space): ...this new function.
3011
3012 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3013
3014 * infcall.c (value_arg_coerce): Remove an unused parameter.
3015 (call_function_by_hand_dummy): Update the call to
3016 'value_arg_coerce'.
3017
3018 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3019
3020 * infcall.c (call_function_by_hand_dummy): Refactor.
3021
3022 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3023
3024 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3025
3026 2019-10-23 Tom Tromey <tom@tromey.com>
3027
3028 * configure: Rebuild.
3029 * configure.ac: Don't check for sigprocmask.
3030 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3031
3032 2019-10-23 Tom Tromey <tom@tromey.com>
3033
3034 * configure: Rebuild.
3035 * acinclude.m4: Use m4_include, not sinclude.
3036
3037 2019-10-23 Tom de Vries <tdevries@suse.de>
3038
3039 PR breakpoints/24687
3040 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3041
3042 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3043
3044 * symtab.c (struct demangled_name_entry) <language>: Change from
3045 bitfield to regular variable.
3046
3047 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3048
3049 * symtab.c (struct demangled_name_entry): Add a constructor.
3050 (free_demangled_name_entry): New function to call the destructor
3051 for demangled_name_entry.
3052 (create_demangled_names_hash): Pass free_demangled_name_entry to
3053 htab_create_alloc.
3054 (symbol_set_names): Call placement new for demangled_name_entry.
3055 * utils.c: No longer include xxhash.h here, now that fast_hash
3056 is inlined in the header.
3057 * utils.h: Instead, include it here.
3058
3059 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3060
3061 * Makefile.in: Link with libxxhash.
3062 * config.in: Regenerate.
3063 * configure: Regenerate.
3064 * configure.ac: Search for libxxhash.
3065 * utils.c (fast_hash): Use xxhash if present.
3066
3067 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3068
3069 * utils.h (fast_hash): New function.
3070 * symtab.c (hash_demangled_name_entry): Call new function
3071 fast_hash.
3072
3073 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3074
3075 * symtab.c (struct demangled_name_entry): Change type of mangled
3076 to gdb::string_view. Also adds a constructor that takes the
3077 mangled name.
3078 (hash_demangled_name_entry): Update.
3079 (eq_demangled_name_entry): Update.
3080 (free_demangled_name_entry): New function to call the destructor
3081 now that this is not a POD anymore.
3082 (create_demangled_names_hash): Pass free_demangled_name_entry to
3083 htab_create_alloc.
3084 (symbol_set_names): Update.
3085
3086 2019-10-21 Ali Tamur <tamu@google.com>
3087
3088 * dwarf2read.c (dir_index): Change type.
3089 (file_name_index): Likewise.
3090 (line_header::include_dir_at): Change comment and implementation on
3091 whether it is DWARF 5.
3092 (line_header::is_valid_file_index): New function.
3093 (line_header::file_name_at): Change comment and implementation on
3094 whether it is DWARF 5.
3095 (line_header::file_names): Change to private field renamed as
3096 m_file_names and introduce a new accessor method.
3097 (line_header::file_names_size): New method.
3098 (line_header::include_dirs): Change to private field and rename as
3099 m_include_dirs.
3100 (dw2_get_file_names_reader): Define local var at a smaller scope and
3101 reflect API change.
3102 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3103 (process_structure_scope): Likewise.
3104 (line_header::add_include_dir): Change message and reflect renaming.
3105 (line_header::add_file_name): Likewise.
3106 (read_formatted_entries): Handle DW_FORM_data16.
3107 (dwarf_decode_line_header): Fix line header length calculation.
3108 (psymtab_include_file_name): Change comment and API.
3109 (lnp_state_machine::m_file): Update comment and reflect type change.
3110 (lnp_state_machine::record_line): Reflect type change.
3111 (dwarf_decode_lines): Reflect API change.
3112 (file_file_name): Likewise.
3113 (file_full_name): Likewise.
3114
3115 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3118
3119 2019-10-21 Tom Tromey <tom@tromey.com>
3120
3121 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3122
3123 2019-10-21 Tom Tromey <tom@tromey.com>
3124
3125 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3126 NM_H. Use AC_CONFIG_LINKS.
3127 * configure: Rebuild.
3128 * Makefile.in (NM_H): New variable.
3129 (generated_files): Add NM_H. Remove gcore.
3130 (nm.h, stamp-nmh): New targets.
3131
3132 2019-10-20 Tom Tromey <tom@tromey.com>
3133
3134 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3135 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3136 obsolete comment.
3137 (put_objfile_before): Now static.
3138
3139 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3140
3141 * gdbsupport/common-utils.h (startswith): Change return type to
3142 bool.
3143
3144 2019-10-19 Christian Biesinger <cbiesinger@google.com>
3145
3146 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3147 * breakpoint.c (bp_locations_compare): Rename to...
3148 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3149 (update_global_location_list): Use std::sort instead of qsort.
3150 * buildsym.c (compare_line_numbers): Rename to...
3151 (lte_is_less_than): ...this, and change to std::sort semantics.
3152 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3153 instead of qsort.
3154 * disasm.c (compare_lines): Rename to...
3155 (line_is_less_than): ...this, and change to std::sort semantics.
3156 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3157 of qsort.
3158 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3159 (fde_is_less_than): ...this, and change to std::sort semantics.
3160 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3161 * mdebugread.c (compare_blocks):
3162 (block_is_less_than): ...this, and change to std::sort semantics.
3163 (sort_blocks): Call std::sort instead of qsort.
3164 * objfiles.c (qsort_cmp): Rename to...
3165 (sort_cmp): ...this, and change to std::sort semantics.
3166 (update_section_map): Call std::sort instead of qsort.
3167 * remote.c (compare_pnums): Remove.
3168 (map_regcache_remote_table): Call std::sort instead of qsort.
3169 * utils.c (compare_positive_ints): Remove.
3170 * utils.h (compare_positive_ints): Remove.
3171 * xcoffread.c (compare_lte): Remove.
3172 (arrange_linetable): Call std::sort instead of qsort.
3173
3174 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3175
3176 * symfile.c (init_entry_point_info): Fix typo.
3177 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3178
3179 2019-10-18 Tom de Vries <tdevries@suse.de>
3180
3181 * aarch64-tdep.c: Fix typos in comments.
3182 * ada-lang.c: Same.
3183 * ada-tasks.c: Same.
3184 * alpha-tdep.c: Same.
3185 * alpha-tdep.h: Same.
3186 * amd64-nat.c: Same.
3187 * amd64-windows-tdep.c: Same.
3188 * arc-tdep.c: Same.
3189 * arc-tdep.h: Same.
3190 * arch-utils.c: Same.
3191 * arm-nbsd-tdep.c: Same.
3192 * arm-tdep.c: Same.
3193 * ax-gdb.c: Same.
3194 * blockframe.c: Same.
3195 * btrace.c: Same.
3196 * c-varobj.c: Same.
3197 * coff-pe-read.c: Same.
3198 * coffread.c: Same.
3199 * cris-tdep.c: Same.
3200 * darwin-nat.c: Same.
3201 * dbxread.c: Same.
3202 * dcache.c: Same.
3203 * disasm.c: Same.
3204 * dtrace-probe.c: Same.
3205 * dwarf-index-write.c: Same.
3206 * dwarf2-frame-tailcall.c: Same.
3207 * dwarf2-frame.c: Same.
3208 * dwarf2read.c: Same.
3209 * eval.c: Same.
3210 * exceptions.c: Same.
3211 * fbsd-tdep.c: Same.
3212 * findvar.c: Same.
3213 * frame.c: Same.
3214 * frv-tdep.c: Same.
3215 * gnu-v3-abi.c: Same.
3216 * go32-nat.c: Same.
3217 * h8300-tdep.c: Same.
3218 * hppa-tdep.c: Same.
3219 * i386-linux-tdep.c: Same.
3220 * i386-tdep.c: Same.
3221 * ia64-libunwind-tdep.c: Same.
3222 * ia64-tdep.c: Same.
3223 * infcmd.c: Same.
3224 * infrun.c: Same.
3225 * linespec.c: Same.
3226 * linux-nat.c: Same.
3227 * linux-thread-db.c: Same.
3228 * machoread.c: Same.
3229 * mdebugread.c: Same.
3230 * mep-tdep.c: Same.
3231 * mn10300-tdep.c: Same.
3232 * namespace.c: Same.
3233 * objfiles.c: Same.
3234 * opencl-lang.c: Same.
3235 * or1k-tdep.c: Same.
3236 * osabi.c: Same.
3237 * ppc-linux-nat.c: Same.
3238 * ppc-linux-tdep.c: Same.
3239 * ppc-sysv-tdep.c: Same.
3240 * printcmd.c: Same.
3241 * procfs.c: Same.
3242 * record-btrace.c: Same.
3243 * record-full.c: Same.
3244 * remote-fileio.c: Same.
3245 * remote.c: Same.
3246 * rs6000-tdep.c: Same.
3247 * s12z-tdep.c: Same.
3248 * score-tdep.c: Same.
3249 * ser-base.c: Same.
3250 * ser-go32.c: Same.
3251 * skip.c: Same.
3252 * sol-thread.c: Same.
3253 * solib-svr4.c: Same.
3254 * solib.c: Same.
3255 * source.c: Same.
3256 * sparc-nat.c: Same.
3257 * sparc-sol2-tdep.c: Same.
3258 * sparc-tdep.c: Same.
3259 * sparc64-tdep.c: Same.
3260 * stabsread.c: Same.
3261 * stack.c: Same.
3262 * symfile.c: Same.
3263 * symtab.c: Same.
3264 * target-descriptions.c: Same.
3265 * target-float.c: Same.
3266 * thread.c: Same.
3267 * utils.c: Same.
3268 * valops.c: Same.
3269 * valprint.c: Same.
3270 * value.c: Same.
3271 * varobj.c: Same.
3272 * windows-nat.c: Same.
3273 * xcoffread.c: Same.
3274 * xstormy16-tdep.c: Same.
3275 * xtensa-tdep.c: Same.
3276
3277 2019-10-17 Tom Tromey <tromey@adacore.com>
3278
3279 * configure: Rebuild.
3280 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3281 in AC_CONFIG_FILES invocation.
3282 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3283 new-style config.status invocation.
3284
3285 2019-10-17 Tom de Vries <tdevries@suse.de>
3286
3287 * arm-nbsd-nat.c: Fix typos in comments.
3288 * arm-tdep.c: Same.
3289 * darwin-nat-info.c: Same.
3290 * dwarf2read.c: Same.
3291 * elfread.c: Same.
3292 * event-top.c: Same.
3293 * findvar.c: Same.
3294 * gdbtypes.c: Same.
3295 * hppa-tdep.c: Same.
3296 * i386-tdep.c: Same.
3297 * jit.c: Same.
3298 * main.c: Same.
3299 * mdebugread.c: Same.
3300 * moxie-tdep.c: Same.
3301 * nto-procfs.c: Same.
3302 * osabi.c: Same.
3303 * ppc-linux-tdep.c: Same.
3304 * remote.c: Same.
3305 * riscv-tdep.c: Same.
3306 * s390-tdep.c: Same.
3307 * sh-tdep.c: Same.
3308 * sparc-linux-tdep.c: Same.
3309 * sparc-nat.c: Same.
3310 * stack.c: Same.
3311 * target-descriptions.c: Same.
3312 * top.c: Same.
3313 * varobj.c: Same.
3314
3315 2019-10-16 Tom Tromey <tom@tromey.com>
3316
3317 * objfiles.h (struct objfile) <original_name>: Now const.
3318
3319 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3320
3321 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3322 pass on to sigsetjmp's second argument.
3323 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3324
3325 2019-10-16 Keith Seitz <keiths@redhat.com>
3326
3327 PR gdb/23567
3328 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3329 sections whose size is greater than the file size.
3330
3331 2019-10-16 Jim Wilson <jimw@sifive.com>
3332
3333 * riscv-tdep.c (riscv_gcc_target_options): New.
3334 (riscv_gnu_triplet_regexp): New.
3335 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3336 set_gdbarch_gnu_triplet_regexp.
3337
3338 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3339
3340 * Makefile.in: Add xml-builtin.h.
3341 * features/feature_to_c.sh: Add an include for xml-builtin.h
3342 to ensure that the compiler checks that the types match.
3343 * xml-builtin.h: New file.
3344 * xml-support.c (fetch_xml_builtin): Add missing const.
3345 * xml-support.h: Remove declaration of xml_builtins.
3346
3347 2019-10-16 Tom de Vries <tdevries@suse.de>
3348
3349 PR tdep/25096
3350 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3351 (amd64_classify_aggregate): ... here.
3352 (amd64_classify_aggregate_field): Handled fiels of nested structs
3353 recursively.
3354
3355 2019-10-16 Tom de Vries <tdevries@suse.de>
3356
3357 PR tdep/24104
3358 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3359 that handles 'theclass'.
3360
3361 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 * linespec.c (decode_digits_ordinary): Update comment.
3364 * make-target-delegates: No longer need to handle VEC case.
3365 * memrange.c (normalize_mem_ranges): Update comment.
3366 * namespace.c (add_using_directive): Update comment.
3367 * objc-lang.c (uniquify_strings): Update comment.
3368 * ppc-linux-nat.c (struct thread_points): Update comment.
3369 * probe.h (find_probes_in_objfile): Update comment.
3370 * target.h (enum flash_preserve_mode): Update comment.
3371 * varobj.c (varobj_restrict_range): Update comment.
3372 * varobj.h (varobj_list_children): Update comment.
3373
3374 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * Makefile.in: Remove references to vec.h and vec.c.
3377 * aarch64-tdep.c: No longer include vec.h.
3378 * ada-lang.c: Likewise.
3379 * ada-lang.h: Likewise.
3380 * arm-tdep.c: Likewise.
3381 * ax.h: Likewise.
3382 * breakpoint.h: Likewise.
3383 * charset.c: Likewise.
3384 * cp-support.h: Likewise.
3385 * dtrace-probe.c: Likewise.
3386 * dwarf2read.c: Likewise.
3387 * extension.h: Likewise.
3388 * gdb_bfd.c: Likewise.
3389 * gdbsupport/gdb_vecs.h: Likewise.
3390 * gdbsupport/vec.c: Remove.
3391 * gdbsupport/vec.h: Remove.
3392 * gdbthread.h: Likewise.
3393 * guile/scm-type.c: Likewise.
3394 * inline-frame.c: Likewise.
3395 * machoread.c: Likewise.
3396 * memattr.c: Likewise.
3397 * memrange.h: Likewise.
3398 * namespace.h: Likewise.
3399 * nat/linux-btrace.h: Likewise.
3400 * osdata.c: Likewise.
3401 * parser-defs.h: Likewise.
3402 * progspace.h: Likewise.
3403 * python/py-type.c: Likewise.
3404 * record-btrace.c: Likewise.
3405 * rust-exp.y: Likewise.
3406 * solib-target.c: Likewise.
3407 * stap-probe.c: Likewise.
3408 * target-descriptions.c: Likewise.
3409 * target-memory.c: Likewise.
3410 * target.h: Likewise.
3411 * varobj.c: Likewise.
3412 * varobj.h: Likewise.
3413 * xml-support.h: Likewise.
3414
3415 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3418 Update for new std::vector based implementation.
3419 (process_psymtab_comp_unit_reader): Likewise.
3420 (scan_partial_symbols): Likewise.
3421 (recursively_compute_inclusions): Likewise.
3422 (compute_compunit_symtab_includes): Likewise.
3423 (process_imported_unit_die): Likewise.
3424 (queue_and_load_dwo_tu): Likewise.
3425 (follow_die_sig_1): Likewise.
3426 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3427 (typedef dwarf2_per_cu_ptr): Remove.
3428 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3429 function.
3430 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3431 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3432 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3433 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3434 std::vector.
3435
3436 2019-10-15 Tom Tromey <tromey@adacore.com>
3437
3438 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3439 TID.
3440
3441 2019-10-15 Tom Tromey <tromey@adacore.com>
3442
3443 * windows-nat.c (windows_nat_target::fetch_registers)
3444 (windows_nat_target::store_registers): Rename "pid" to "tid".
3445
3446 2019-10-15 Tom Tromey <tromey@adacore.com>
3447
3448 * gdbarch.h, gdbarch.c: Rebuild.
3449 * gdbarch.sh (gcc_target_options): Change return type to
3450 std::string.
3451 * compile/compile.c (get_args): Update.
3452 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3453 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3454 std::string.
3455 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3456 std::string.
3457 * arch-utils.c (default_gcc_target_options): Return std::string.
3458 * arch-utils.h (default_gcc_target_options): Return std::string.
3459 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3460
3461 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3462
3463 * breakpoint.c (breakpoint_chain): Make static.
3464 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3465 of accessing breakpoint_chain.
3466
3467 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3468
3469 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3470 to a gdb::function_view and return value to bool.
3471 * breakpoint.h (iterate_over_breakpoints): Likewise.
3472 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3473 (pop_dummy_frame): Update.
3474 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3475 (gdbscm_breakpoints): Update.
3476 * python/py-breakpoint.c (build_bp_list): Update.
3477 (gdbpy_breakpoints): Update.
3478 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3479 Update.
3480 (bpfinishpy_handle_stop): Update.
3481 (bpfinishpy_handle_exit): Update.
3482 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3483 (svr4_update_solib_event_breakpoints): Update.
3484
3485 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3486
3487 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3488 when unwrapping single-field structs.
3489
3490 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * dwarf2read.c: Remove includes.
3493
3494 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3495
3496 * ui-out.c (ui_out::call_do_message): Silence
3497 -Wformat-nonliteral warning.
3498
3499 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3502 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3503 include: readline/tilde.h.
3504
3505 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3506
3507 * remote.c (remote_target::get_trace_status): Remove declaration of
3508 trace_regblock_size.
3509
3510 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3511
3512 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3513 (show_user): Remove declaration of cmdlist.
3514 * cli/cli-cmds.h (max_user_call_depth): Declare.
3515 * cli/cli-script.c (execute_user_command): Remove declaration
3516 of max_user_call_depth.
3517
3518 2019-10-11 Jim Wilson <jimw@sifive.com>
3519
3520 * gdbsupport/print-utils.h (pulongest): Fix comment.
3521 (plongest): Likewise.
3522 (phex): Add missing comment, mention leading zeros.
3523 (phex_nz): Add mention of no leading zeros to comment.
3524
3525 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3526 plongest instead of unsigned long long cast.
3527
3528 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3529
3530 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3531 for external_editor_command and gdbtk_test.
3532
3533 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3534
3535 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3536 * varobj.c (varobjdebug): Move comment to...
3537 * varobj.h (varobjdebug): ...here, and declare.
3538
3539 2019-10-09 Tom Tromey <tom@tromey.com>
3540
3541 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3542 erase_data_content.
3543
3544 2019-10-09 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3547 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3548 * tui/tui-command.c (tui_cmd_window::resize)
3549 (tui_refresh_cmd_win): Update.
3550 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3551 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3552 * tui/tui-data.c (~tui_gen_win_info): Remove.
3553 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3554 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3555 (tui_redisplay_readline, tui_mld_flush)
3556 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3557 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3558 (tui_data_window::erase_data_content)
3559 (tui_data_item_window::rerender)
3560 (tui_data_item_window::refresh_window): Update.
3561 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3562 (box_win, tui_gen_win_info::make_window)
3563 (tui_gen_win_info::make_visible): Update.
3564 (tui_delete_win): Remove.
3565 * tui/tui-winsource.c
3566 (tui_source_window_base::do_erase_source_content): Update.
3567 (tui_show_source_line, tui_source_window_base::update_tab_width)
3568 (tui_source_window_base::update_exec_info): Update.
3569 * tui/tui-data.h (struct curses_deleter): New.
3570 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3571 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3572
3573 2019-10-09 Tom Tromey <tom@tromey.com>
3574
3575 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3576
3577 2019-10-09 Tom Tromey <tom@tromey.com>
3578
3579 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3580 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3581
3582 2019-10-09 Tom Tromey <tom@tromey.com>
3583
3584 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3585 window height directly.
3586 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3587 declare.
3588 * tui/tui-layout.c (tui_default_win_height): Remove.
3589 (tui_default_win_viewport_height): Remove.
3590
3591 2019-10-09 Tom Tromey <tom@tromey.com>
3592
3593 * tui/tui.h: Remove comments.
3594
3595 2019-10-09 Tom de Vries <tdevries@suse.de>
3596
3597 * python/lib/gdb/printer/bound_registers.py: Use
3598 '^builtin_type_bound128' as regexp argument for
3599 add_builtin_pretty_printer.
3600
3601 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3602
3603 * guile/guile.c (guile_extension_script_ops): Remove forward
3604 declaration and mark as static.
3605 (guile_script_ops): Likewise.
3606 (extension_language_guile): Move further down in the file so
3607 it can reference the definitions for guile_{extension_,}script_ops.
3608
3609 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3610
3611 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3612 except SORTL, DFLTCC, and KDSA.
3613
3614 2019-10-08 Tom Tromey <tromey@adacore.com>
3615
3616 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3617 (struct safe_symbol_file_add_args): Remove.
3618
3619 2019-10-08 Tom Tromey <tromey@adacore.com>
3620
3621 * windows-nat.c: Don't include buildsym-legacy.h.
3622
3623 2019-10-08 Tom Tromey <tromey@adacore.com>
3624
3625 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3626
3627 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3628
3629 * gdbtypes.c (overload_debug): Move comment to header.
3630 * gdbtypes.h (overload_debug): Declare.
3631 * valops.c: Remove declaration of overload_debug, instead
3632 include gdbtypes.h.
3633
3634 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3635
3636 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3637 through _().
3638 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3639 move comment...
3640 * language.h (lang_frame_mismatch_warn): ... here. Also add
3641 declaration.
3642 * top.c (lang_frame_mismatch_warn): Remove declaration.
3643 (check_frame_language_change): Pass lang_frame_mismatch_warn
3644 through _().
3645
3646 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3647
3648 * c-lang.h (vtbl_ptr_name): Declare.
3649 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3650 it from the header.
3651 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3652
3653 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3654
3655 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3656 gdb_static_assert.
3657
3658 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3659
3660 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3661 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3662 * ctfread.c: New file.
3663 * ctfread.h: New file.
3664 * elfread.c: Include ctfread.h.
3665 (struct elfinfo text_p): New member ctfsect.
3666 (elf_locate_sections): Mark CTF section.
3667 (elf_symfile_read): Call elfctf_build_psymtabs.
3668 * Makefile.in (LIBCTF): Add.
3669 (CLIBS): Use it.
3670 (CDEPS): Likewise.
3671 (DIST): Add ctfread.c.
3672
3673 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3674
3675 * ctfread.c (struct nextfield): Renamed to ...
3676 (struct ctf_nextfield): ... this.
3677 (struct field_info): Renamed to ...
3678 (strut ctf_field_info): ... this.
3679 (attach_fields_to_type): Update for renamed structures.
3680 (ctf_add_member_cb): Likewise.
3681 (ctf_add_enum_member_cb): Likewise.
3682 (process_struct_members): Likewise.
3683 (process_enum_type): Likewise.
3684
3685 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3686
3687 * tracectf.h: Rename, was ctf.h.
3688 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3689 * tracefile.c: Likewise.
3690 * tracepoint.c: Remove unused include ctf.h.
3691 * mi/mi-main.c: Likewise.
3692 * Makefile.in Replace ctf.c with tracectf.c.
3693
3694 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3695
3696 * version.in: Change version number to "9.0.50.DATE-git".
3697
3698 2019-10-03 Tom Tromey <tom@tromey.com>
3699
3700 PR rust/24976:
3701 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3702
3703 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3704
3705 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3706 cp_search_name_hash.
3707 * NEWS: Add entry about nested function support.
3708
3709 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3710 Andrew Burgess <andrew.burgess@embecosm.com>
3711
3712 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3713 for nested static variables when searchin VAR_DOMAIN.
3714 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3715 global scope, update comment.
3716 (add_partial_subprogram): Call add_partial_subprogram recursively
3717 for nested subroutines when processinng Fortran.
3718 (load_partial_dies): Process the child entities of a subprogram
3719 when processing Fortran.
3720 (partial_die_parent_scope): Handle building scope
3721 for Fortran nested functions.
3722 (process_die): Record that nested functions have a scope.
3723 (new_symbol): Always record Fortran subprograms on the global
3724 symbol list.
3725 (determine_prefix): How to build the prefix for Fortran
3726 subprograms.
3727
3728 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3731 have just sent the thread a SIGSTOP and are waiting for it to
3732 arrive.
3733
3734 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3735
3736 * btrace.c (btrace_add_pc): Remove whitespace before the template
3737 parameter in 'std::vector <...>'.
3738 (parse_xml_btrace_block): Likewise.
3739 (btrace_maint_decode_pt): Likewise.
3740 (btrace_maint_update_packets): Likewise.
3741 (btrace_maint_print_packets): Likewise.
3742 * btrace.h (struct btrace_maint_info): Likewise.
3743 * dwarf2read.c (struct type_unit_group): Likewise.
3744 (build_type_psymtabs_reader): Likewise.
3745 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3746 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3747 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3748
3749 2019-10-03 Tom de Vries <tdevries@suse.de>
3750
3751 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3752 the first line of the help text for set/show style metadata.
3753
3754 2019-10-02 Tom Tromey <tromey@adacore.com>
3755
3756 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3757 * gdbsupport/common-inferior.c: New file.
3758 * infcmd.c (startup_with_shell): Don't define.
3759 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3760 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3761 * inferior.h (startup_with_shell): Don't declare.
3762
3763 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3764
3765 * gdbsupport/gdb_assert.h: Include errors.h.
3766 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3767
3768 2019-10-02 Tom Tromey <tromey@adacore.com>
3769
3770 * NEWS: Add $_ada_exception entry.
3771 * ada-lang.c (struct ada_catchpoint): Add constructor.
3772 <m_kind>: New member.
3773 (allocate_location_exception, re_set_exception): Remove
3774 "ex" parameter.
3775 (should_stop_exception): Compute $_ada_exception.
3776 (check_status_exception, print_it_exception)
3777 (print_one_exception, print_mention_exception): Remove
3778 "ex" parameter.
3779 (allocate_location_catch_exception, re_set_catch_exception)
3780 (check_status_exception, print_it_catch_exception)
3781 (print_one_catch_exception, print_mention_catch_exception)
3782 (print_recreate_catch_exception)
3783 (allocate_location_catch_exception_unhandled)
3784 (re_set_catch_exception_unhandled)
3785 (check_status_exception, print_it_catch_exception_unhandled)
3786 (print_one_catch_exception_unhandled)
3787 (print_mention_catch_exception_unhandled)
3788 (print_recreate_catch_exception_unhandled)
3789 (allocate_location_catch_assert, re_set_catch_assert)
3790 (check_status_assert, print_it_catch_assert)
3791 (print_one_catch_assert, print_mention_catch_assert)
3792 (print_recreate_catch_assert)
3793 (allocate_location_catch_handlers, re_set_catch_handlers)
3794 (check_status_handlers, print_it_catch_handlers)
3795 (print_one_catch_handlers, print_mention_catch_handlers)
3796 (print_recreate_catch_handlers): Remove.
3797 (create_ada_exception_catchpoint): Update.
3798 (initialize_ada_catchpoint_ops): Update.
3799
3800 2019-10-02 Tom Tromey <tromey@adacore.com>
3801
3802 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3803 (create_excep_cond_exprs): Simplify exception string computation.
3804 (ada_exception_catchpoint_cond_string): Likewise.
3805
3806 2019-10-02 Tom Tromey <tromey@adacore.com>
3807
3808 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3809 * ada-lang.c (lesseq_defined_than): Handle
3810 LOC_STATIC.
3811 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3812 parameter.
3813 (dwarf2_has_info): Likewise.
3814 (new_symbol): Set maybe_copied on symbol when
3815 appropriate.
3816 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3817 parameter.
3818 <can_copy>: New member.
3819 * elfread.c (record_minimal_symbol): Set maybe_copied
3820 on symbol when appropriate.
3821 (elf_symfile_read): Update call to dwarf2_has_info.
3822 * minsyms.c (lookup_minimal_symbol_linkage): New
3823 function.
3824 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3825 * symtab.c (get_symbol_address, get_msymbol_address):
3826 New functions.
3827 * symtab.h (get_symbol_address, get_msymbol_address):
3828 Declare.
3829 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3830 maybe_copied.
3831 (struct symbol, struct minimal_symbol) <maybe_copied>:
3832 New member.
3833
3834 2019-10-02 Tom Tromey <tromey@adacore.com>
3835
3836 * source.c (struct current_source_location): New.
3837 (current_source_key): New global.
3838 (current_source_symtab, current_source_line)
3839 (current_source_pspace): Remove.
3840 (get_source_location): New function.
3841 (get_current_source_symtab_and_line)
3842 (set_default_source_symtab_and_line)
3843 (set_current_source_symtab_and_line)
3844 (clear_current_source_symtab_and_line, select_source_symtab)
3845 (info_source_command, print_source_lines_base)
3846 (info_line_command, search_command_helper, _initialize_source):
3847 Update.
3848
3849 2019-10-02 Tom Tromey <tromey@adacore.com>
3850
3851 * source.c (select_source_symtab): Don't call
3852 decode_line_with_current_source.
3853
3854 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3855
3856 * symtab.c (lookup_global_symbol): Search global block.
3857
3858 2019-10-02 Tom Tromey <tromey@adacore.com>
3859
3860 * coffread.c (process_coff_symbol): Update.
3861 * dwarf2read.c (var_decode_location, new_symbol): Update.
3862 * mdebugread.c (parse_symbol): Update.
3863 * objfiles.c (relocate_one_symbol): Update.
3864 * stabsread.c (define_symbol, fix_common_block)
3865 (scan_file_globals): Update.
3866 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3867 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3868 * xcoffread.c (process_xcoff_symbol): Update.
3869
3870 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3871
3872 * MAINTAINERS: Update my email address.
3873
3874 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3877 std::vector.
3878 (build_type_psymtabs_reader): Update for std::vector.
3879 (build_type_psymtab_dependencies): Likewise.
3880 * dwarf2read.h: Remove use of DEF_VEC_P.
3881 (typedef sig_type_ptr): Delete.
3882
3883 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3884
3885 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3886 to std::vector.
3887 (btrace_maint_decode_pt): Likewise, and move allocation of the
3888 vector outside of the loop.
3889 (btrace_maint_update_packets): Update to handle change from VEC to
3890 std::vector.
3891 (btrace_maint_print_packets): Likewise.
3892 (maint_info_btrace_cmd): Likewise.
3893 * btrace.h: Remove use of DEF_VEC_O.
3894 (typedef btrace_pt_packet_s): Delete.
3895 (struct btrace_maint_info) <packets>: Change fromm VEC to
3896 std::vector.
3897 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3898
3899 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3900
3901 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3902 make accesses into the vector constant references.
3903 (btrace_add_pc): Update for std::vector.
3904 (btrace_stitch_bts): Likewise.
3905 (parse_xml_btrace_block): Likewise.
3906 (btrace_maint_update_packets): Likewise.
3907 (btrace_maint_print_packets): Likewise.
3908 (maint_info_btrace_cmd): Likewise.
3909 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3910 std::vector.
3911 (btrace_data::empty): Likewise.
3912 (btrace_data_append): Likewise.
3913 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3914 (typedef btrace_block_s): Delete.
3915 (struct btrace_block): Add constructor.
3916 (struct btrace_data_bts) <blocks>: Change to std::vector.
3917 * nat/linux-btrace.c (perf_event_read_bts): Update for
3918 std::vector.
3919 (linux_read_bts): Likewise.
3920
3921 2019-10-01 Tom Tromey <tom@tromey.com>
3922
3923 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3924
3925 2019-10-01 Tom Tromey <tom@tromey.com>
3926
3927 * stack.c (print_frame, info_frame_command_core): Use
3928 styled_string.
3929 * linux-thread-db.c (try_thread_db_load_1)
3930 (try_thread_db_load_from_pdir_1): Use styled_string.
3931 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3932 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3933 (maybe_print_unsupported_script_warning)
3934 (maybe_print_script_not_found_warning): Use styled_string.
3935 * ada-lang.c (user_select_syms): Use styled_string.
3936
3937 2019-10-01 Tom Tromey <tom@tromey.com>
3938
3939 * p-lang.c (pascal_printstr): Use metadata style.
3940 * value.c (show_convenience): Use metadata style.
3941 * valprint.c (valprint_check_validity, val_print_optimized_out)
3942 (val_print_not_saved, val_print_unavailable)
3943 (val_print_invalid_address, generic_val_print, val_print)
3944 (value_check_printable, val_print_array_elements): Use metadata
3945 style.
3946 * ui-out.h (class ui_out) <field_fmt>: New overload.
3947 <do_field_fmt>: Add style parameter.
3948 * ui-out.c (ui_out::field_fmt): New overload.
3949 * typeprint.c (type_print_unknown_return_type)
3950 (val_print_not_allocated, val_print_not_associated): Use metadata
3951 style.
3952 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3953 parameter.
3954 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3955 * tracepoint.c (tvariables_info_1): Use metadata style.
3956 * stack.c (print_frame_arg, print_frame_info, print_frame)
3957 (info_frame_command_core): Use metadata style.
3958 * skip.c (info_skip_command): Use metadata style.
3959 * rust-lang.c (rust_print_enum): Use metadata style.
3960 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3961 metadata style.
3962 * python/py-framefilter.c (py_print_single_arg): Use metadata
3963 style.
3964 * printcmd.c (do_one_display, print_variable_and_value): Use
3965 metadata style.
3966 * p-valprint.c (pascal_val_print)
3967 (pascal_object_print_value_fields): Use metadata style.
3968 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3969 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3970 parameter.
3971 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3972 * m2-valprint.c (m2_print_long_set): Use metadata style.
3973 * m2-typeprint.c (m2_print_type): Use metadata style.
3974 * infcmd.c (print_return_value_1): Use metadata style.
3975 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3976 * f-valprint.c (info_common_command_for_block): Use metadata
3977 style.
3978 * f-typeprint.c (f_type_print_base): Use metadata style.
3979 * expprint.c (print_subexp_standard): Use metadata style.
3980 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3981 * cli/cli-style.h (class cli_style_option): Add constructor.
3982 (metadata_style): Declare.
3983 * cli/cli-style.c (metadata_style): New global.
3984 (_initialize_cli_style): Register metadata style.
3985 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3986 parameter.
3987 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3988 * c-typeprint.c (c_type_print_base_struct_union)
3989 (c_type_print_base_1): Use metadata style.
3990 * breakpoint.c (watchpoint_value_print)
3991 (print_one_breakpoint_location): Use metadata style.
3992 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3993 style.
3994 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3995 style.
3996 * ada-valprint.c (val_print_packed_array_elements, printstr)
3997 (print_field_values, ada_val_print_ref, ada_val_print): Use
3998 metadata style.
3999 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
4000 style.
4001 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
4002 style.
4003 * ada-lang.c (user_select_syms): Use metadata style.
4004
4005 2019-10-01 Tom Tromey <tom@tromey.com>
4006
4007 * cli/cli-cmds.c (pwd_command): Style output.
4008
4009 2019-10-01 Pedro Alves <palves@redhat.com>
4010 Tom Tromey <tom@tromey.com>
4011
4012 * symtab.c (print_symbol_info): Use %ps.
4013 (print_msymbol_info): Use %ps.
4014 * symfile.c (symbol_file_add_with_addrs): Use %ps.
4015 * printcmd.c (print_variable_and_value): Use %ps.
4016 * macrocmd.c (show_pp_source_pos): Use %ps.
4017 * infrun.c (print_exited_reason): Use ui_out::message.
4018 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
4019 (describe_other_breakpoints): Use ui_out::message and new
4020 formats.
4021 (say_where): Use new formats.
4022 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4023 and new formats.
4024
4025 2019-10-01 Pedro Alves <palves@redhat.com>
4026 Tom Tromey <tom@tromey.com>
4027
4028 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4029 (test_gdb_formats): New function.
4030 (run_tests): Call it.
4031 (test_format_specifier): Update.
4032 * utils.h (fputs_filtered): Update comment.
4033 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4034 (fputs_styled_unfiltered): Declare.
4035 * utils.c (fputs_styled_unfiltered): New function.
4036 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4037 (vfprintf_filtered): Update.
4038 (vfprintf_unfiltered, vprintf_filtered): Update.
4039 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4040 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4041 disallow_ui_out_field>: New constants.
4042 (enum class field_kind): New.
4043 (struct base_field_s, struct signed_field_s): New.
4044 (signed_field): New function.
4045 (struct string_field_s): New.
4046 (string_field): New function.
4047 (struct styled_string_s): New.
4048 (styled_string): New function.
4049 (class ui_out) <message>: Add comment.
4050 <vmessage, call_do_message>: New methods.
4051 <do_message>: Add style parameter.
4052 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4053 methods.
4054 (ui_out::message): Rewrite.
4055 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4056 parameter.
4057 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4058 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4059 gdb_extensions parameter.
4060 (class format_piece): Add parameter to constructor.
4061 (n_int_args): New field.
4062 * gdbsupport/format.c (format_pieces::format_pieces): Add
4063 gdb_extensions parameter. Handle '*'.
4064 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4065 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4066 vfprintf_styled_no_gdbfmt.
4067 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4068 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4069 unfiltered output.
4070 * ui-style.h (struct ui_file_style) <ptr>: New method.
4071
4072 2019-10-01 Tom Tromey <tom@tromey.com>
4073
4074 * unittests/format_pieces-selftests.c: Update. Add final format.
4075 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4076 empty literal pieces.
4077
4078 2019-10-01 Tom Tromey <tom@tromey.com>
4079
4080 * ui-out.h (enum class ui_out_style_kind): Remove.
4081 (class ui_out) <field_string, field_stsream, do_field_string>:
4082 Change type of "style".
4083 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4084 (ui_out::field_string): Update.
4085 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4086 of "style".
4087 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4088 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4089 * stack.c (print_frame_arg, print_frame_info, print_frame):
4090 Update.
4091 * source.c (print_source_lines_base): Update.
4092 * solib.c (info_sharedlibrary_command): Update.
4093 * skip.c (info_skip_command): Update.
4094 * record-btrace.c (btrace_call_history_src_line)
4095 (btrace_call_history): Update.
4096 * python/py-framefilter.c (py_print_frame): Update.
4097 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4098 "style".
4099 * mi/mi-out.c (mi_ui_out::do_table_header)
4100 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4101 (mi_ui_out::do_field_string): Update.
4102 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4103 Update.
4104 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4105 "style".
4106 * cli-out.c (cli_ui_out::do_table_header)
4107 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4108 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4109 (cli_ui_out::do_field_fmt): Update.
4110 * breakpoint.c (print_breakpoint_location): Update.
4111 (update_static_tracepoint): Update.
4112
4113 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4114
4115 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4116 conversion of gdb_datadir.
4117 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4118 remove not needed c_str ().
4119
4120 2019-09-30 Ali Tamur <tamur@google.com>
4121
4122 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4123 (dwarf2_string_attr): Likewise.
4124
4125 2019-09-30 Ali Tamur <tamur@google.com>
4126
4127 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4128 (process_full_type_unit): Likewise.
4129 (dump_die_shallow): Likewise.
4130 (cu_debug_loc_section): Likewise.
4131
4132 2019-09-28 Christian Biesinger <cbiesinger@google.com>
4133
4134 * minsyms.c (compare_minimal_symbols): Rename to...
4135 (minimal_symbol_is_less_than): ...this, and adjust to STL
4136 conventions (return bool, take arguments as references)
4137 (minimal_symbol_reader::install): Call std::sort instead
4138 of qsort.
4139
4140 2019-09-29 Christian Biesinger <cbiesinger@google.com>
4141
4142 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4143 hash and why.
4144 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4145 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4146
4147 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4148
4149 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4150 * psympriv.h (add_psymbol_to_list): Move comment here and update
4151 it.
4152
4153 2019-09-29 Tom de Vries <tdevries@suse.de>
4154
4155 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4156 Use $tmpdir/$(basename "$output_file").dwz instead of
4157 "${output_file}.dwz".
4158
4159 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4160
4161 PR gdb/25045
4162 * hppa-linux-nat.c: Include gdbarch.h.
4163
4164 2019-09-26 Christian Biesinger <cbiesinger@google.com>
4165
4166 * blockframe.c (find_pc_partial_function): Change return type to bool.
4167 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4168 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4169 (stub_gnu_ifunc_resolve_name): Likewise.
4170 * symtab.c (compare_filenames_for_search): Likewise.
4171 (compare_glob_filenames_for_search): Likewise.
4172 (matching_obj_sections): Likewise.
4173 (symbol_matches_domain): Likewise.
4174 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4175 (find_line_pc): Change return type to bool.
4176 (find_line_pc_range): Likewise.
4177 (producer_is_realview): Likewise.
4178 * symtab.h (symbol_matches_domain): Likewise.
4179 (find_pc_partial_function): Likewise.
4180 (find_pc_line_pc_range): Likewise.
4181 (in_gnu_ifunc_stub): Likewise.
4182 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4183 (find_line_pc): Likewise.
4184 (find_line_pc_range): Likewise.
4185 (matching_obj_sections): Likewise.
4186 (find_line_symtab): Change out parameter to bool.
4187 (producer_is_realview): Change return type to bool.
4188 (compare_filenames_for_search): Likewise.
4189 (compare_glob_filenames_for_search): Likewise.
4190
4191 2019-09-26 Tom Tromey <tom@tromey.com>
4192
4193 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4194 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4195 * gdb_usleep.h: Remove.
4196 * gdb_usleep.c: Remove.
4197 * utils.c: Don't include gdb_usleep.h.
4198
4199 2019-09-26 Tom Tromey <tromey@adacore.com>
4200
4201 * python/py-type.c (type_to_type_object): Call check_typedef
4202 for stub types.
4203
4204 2019-09-26 Tom Tromey <tom@tromey.com>
4205
4206 * utils.h (initialize_utils): Don't declare.
4207 * top.c (gdb_init): Don't call initialize_utils.
4208 * utils.c (initialize_utils): Remove. Move contents...
4209 (_initialize_utils): ... here.
4210
4211 2019-09-25 Tom Tromey <tom@tromey.com>
4212
4213 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4214 * utils.h (make_hex_string): Don't declare.
4215 * utils.c (make_hex_string): Remove.
4216
4217 2019-09-24 Tom de Vries <tdevries@suse.de>
4218
4219 PR gdb/23815
4220 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4221 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4222
4223 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4224
4225 * NEWS: Mention new simulator port for PRU.
4226
4227 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4228
4229 * ada-exp.y (write_object_remaining): Update.
4230 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4231 and eliminate the static buffer.
4232 (ada_decode_symbol): Update.
4233 (ada_la_decode): Update.
4234 (ada_sniff_from_mangled_name): Update.
4235 (is_valid_name_for_wild_match): Update.
4236 (ada_lookup_name_info::matches): Update and simplify.
4237 (name_matches_regex): Update.
4238 (ada_add_global_exceptions): Update.
4239 * ada-lang.h (ada_decode): Update signature.
4240 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4241 * dwarf-index-write.c (debug_names::insert): Update.
4242
4243 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4244
4245 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4246 formatting.
4247
4248 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4249
4250 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4251 Change "nonzero" to "true" in documentation.
4252
4253 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4254
4255 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4256 (_initialize_darwin_solib): Don't set
4257 darwin_so_ops.lookup_lib_global_symbol.
4258 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4259 set_gdbarch_iterate_over_objfiles_in_search_order.
4260 (elf_lookup_lib_symbol): Rename to...
4261 (svr4_iterate_over_objfiles_in_search_order): this, and update
4262 to iterate semantics.
4263 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4264 * solib.c (solib_global_lookup): Remove.
4265 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4266 (solib_global_lookup): Remove.
4267 * symtab.c (lookup_global_or_static_symbol): Remove call to
4268 solib_global_lookup.
4269
4270 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4271
4272 * NEWS: Move entries about default MI version now being
4273 version 3, and about the GDB/MI fix for multi-location
4274 breakpoints to the "since GDB 8.3" section.
4275
4276 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4277
4278 GDB 8.3.1 released.
4279
4280 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4281
4282 * NEWS: Mention that Cell/B.E. debugging support was removed.
4283 * MAINTAINERS: Remove spu target.
4284
4285 * config/djgpp/fnchange.lst: Remove entries for removed files.
4286
4287 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4288 spu-multiarch.o, and spu-tdep.o.
4289 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4290 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4291 spu-multiarch.c, and spu-tdep.c.
4292 * spu-linux-nat.c: Remove file.
4293 * spu-multiarch.c: Remove file.
4294 * spu-tdep.c: Remove file.
4295 * spu-tdep.h: Remove file.
4296 * solib-spu.c: Remove file.
4297 * solib-spu.h: Remove file.
4298
4299 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4300 * configure.nat (spu-linux): Remove.
4301 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4302 solib-multiarch.o from gdb_target_obs.
4303 (spu*-*-*): Remove.
4304
4305 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4306 feature flag.
4307 (ppc_linux_no_features): Update.
4308 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4309 Cell/B.E. support.
4310 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4311 (tdesc_powerpc_cell64l): Likewise.
4312 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4313 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4314 Cell/B.E. support.
4315 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4316 Do not include "features/rs6000/powerpc-cell32l.c" or
4317 "features/rs6000/powerpc-cell64l.c".
4318 (ppc_linux_spu_section): Remove.
4319 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4320 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4321 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4322 (ppc_linux_spe_context_lookup): Remove.
4323 (ppc_linux_spe_context_inferior_created): Remove.
4324 (ppc_linux_spe_context_solib_loaded): Remove.
4325 (ppc_linux_spe_context_solib_unloaded): Remove.
4326 (ppc_linux_spe_context): Remove.
4327 (struct ppu2spu_cache): Remove.
4328 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4329 (struct ppu2spu_data): Remove.
4330 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4331 ppu2spu_unwind): Remove.
4332 (ppc_linux_init_abi): Remove Cell/B.E. support.
4333 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4334
4335 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4336 (rs6000/powerpc-cell64l-expedite): Likewise
4337 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4338 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4339 rs6000/powerpc-cell64l.xml.
4340 * features/rs6000/powerpc-cell32l.xml: Remove.
4341 * features/rs6000/powerpc-cell64l.xml: Likewise.
4342 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4343 * features/rs6000/powerpc-cell64l.c: Likewise.
4344 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4345 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4346 * regformats/reg-spu.dat: Remove.
4347
4348 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4349 * corelow.c (struct spuid_list): Remove.
4350 (add_to_spuid_list): Remove.
4351 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4352 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4353 (remote_protocol_features): Remove associated entries.
4354 (_initialize_remote): No longer initialize them.
4355 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4356 * linux-nat.c (SPUFS_MAGIC): Remove.
4357 (linux_proc_xfer_spu): Remove.
4358 (spu_enumerate_spu_ids): Remove.
4359 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4360 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4361 (linux_make_corefile_notes): No longer call it.
4362
4363 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4364 (cooked_write_test): Likewise.
4365
4366 2019-09-20 Tom Tromey <tom@tromey.com>
4367
4368 * NEWS: Mention case-sensitivity of TUI commands.
4369 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4370 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4371 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4372
4373 2019-09-20 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-source.c (tui_source_window::set_contents): Use
4376 make_unique_xstrdup.
4377 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4378 make_unique_xstrdup.
4379
4380 2019-09-20 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-data.c: Remove separator comments.
4383 * tui/tui-layout.c: Remove separator comments.
4384 * tui/tui-win.c: Remove separator comments.
4385 * tui/tui-wingeneral.c: Remove separator comments.
4386
4387 2019-09-20 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui.h (strcat_to_buf): Don't declare.
4390 * tui/tui.c (strcat_to_buf): Remove.
4391
4392 2019-09-20 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4395 from "fullname".
4396 * tui/tui-source.c (tui_source_window::set_contents)
4397 (tui_source_window::location_matches_p)
4398 (tui_source_window::maybe_update): Update.
4399
4400 2019-09-20 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4403 Update.
4404 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4405 prefix.
4406 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4407 (tui_data_window::line_from_reg_element_no)
4408 (tui_data_window::first_reg_element_no_inline)
4409 (tui_data_window::show_registers)
4410 (tui_data_window::show_register_group)
4411 (tui_data_window::display_registers_from)
4412 (tui_data_window::display_registers_from_line)
4413 (tui_data_window::first_data_item_displayed)
4414 (tui_data_window::delete_data_content_windows)
4415 (tui_data_window::erase_data_content)
4416 (tui_data_window::do_scroll_vertical)
4417 (tui_data_window::refresh_window)
4418 (tui_data_window::check_register_values): Update.
4419
4420 2019-09-20 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4423 (struct tui_locator_window) <full_name, proc_name>: Now
4424 std::string.
4425 * tui/tui-stack.c (tui_locator_window::make_status_line)
4426 (tui_locator_window::set_locator_fullname)
4427 (tui_locator_window::set_locator_info): Update.
4428 * tui/tui-source.c (tui_source_window::set_contents)
4429 (tui_source_window::showing_source_p): Update.
4430
4431 2019-09-20 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4434 Don't call tui_locator_win_info_ptr.
4435
4436 2019-09-20 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4439
4440 2019-09-20 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4443 height for locator.
4444 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4445 * tui/tui-layout.c (show_source_disasm_command, show_data)
4446 (show_source_or_disasm_and_command): Use 1 as height for locator.
4447
4448 2019-09-20 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui.c (tui_enable): Update.
4451 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4452 Update.
4453 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4454 Update.
4455 * tui/tui-data.c (win_resized): Now bool.
4456 (tui_win_resized): Return bool.
4457 (tui_set_win_resized_to): Accept a bool.
4458
4459 2019-09-20 Tom Tromey <tom@tromey.com>
4460
4461 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4462 Change type of "refresh_values_only".
4463 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4464 type of "refresh_values_only".
4465
4466 2019-09-20 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4469 std::string.
4470 (tui_disassemble): Add "pos" parameter.
4471 (tui_disasm_window::set_contents): Simplify.
4472
4473 2019-09-20 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-winsource.h (struct tui_source_window_base)
4476 <show_source_content>: Now private.
4477 * tui/tui-winsource.c
4478 (tui_source_window_base::show_source_content): Don't handle empty
4479 content case.
4480
4481 2019-09-20 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-layout.c (show_source_disasm_command)
4484 (show_source_or_disasm_and_command): Don't call
4485 show_source_content.
4486
4487 2019-09-20 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4490 Declare.
4491 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4492 from tui_make_status_line.
4493 (tui_locator_window::rerender): Update.
4494
4495 2019-09-20 Tom Tromey <tom@tromey.com>
4496
4497 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4498 (tui_locator_window::rerender): Update.
4499
4500 2019-09-20 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-winsource.h (struct tui_source_window_base)
4503 <~tui_source_window_base>: Don't declare.
4504 <fullname>: Remove.
4505 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4506 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4507 member.
4508 * tui/tui-source.c (tui_source_window::set_contents): Update.
4509 (tui_source_window::location_matches_p)
4510 (tui_source_window::maybe_update): Update.
4511
4512 2019-09-20 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-winsource.h (~tui_source_element): Remove.
4515 (tui_source_element): Update.
4516 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4517 * tui/tui-winsource.c (tui_show_source_line): Update.
4518 * tui/tui-source.c (tui_source_window::set_contents): Update.
4519 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4520
4521 2019-09-20 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4524 declare.
4525 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4526 tui_clear_source_windows_detail.
4527 * tui/tui-winsource.h (struct tui_source_window_base)
4528 <clear_detail>: Don't declare.
4529 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4530 Remove.
4531 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4532
4533 2019-09-20 Tom Tromey <tromey@adacore.com>
4534
4535 PR ada/24919:
4536 * block.c (contained_in): Fix final return value.
4537
4538 2019-09-20 Alan Modra <amodra@gmail.com>
4539
4540 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4541 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4542 (read_indirect_string_from_dwz): Use bfd accessor.
4543 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4544 * machoread.c (macho_symfile_read_all_oso): Likewise.
4545 * solib.c (solib_bfd_open): Likewise.
4546
4547 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4548
4549 * eval.c: Move declaration of overload_resolution to...
4550 * value.h: ...here.
4551
4552 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4553
4554 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4555 * arm-linux-tdep.c: Likewise.
4556 * arm-nbsd-nat.c: Likewise.
4557 * arm-tdep.h: Declare arm_apcs_32.
4558 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4559
4560 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4561
4562 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4563 * dwarf2read.h: Declare dwarf_always_disassemble.
4564
4565 2019-09-19 Tom de Vries <tdevries@suse.de>
4566
4567 PR gdb/25009
4568 * source-cache.c (source_cache::ensure): Catch exception thrown during
4569 construction of the highlighter.
4570
4571 2019-09-18 Alan Modra <amodra@gmail.com>
4572
4573 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4574 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4575 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4576 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4577 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4578 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4579 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4580 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4581 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4582 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4583 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4584 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4585 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4586 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4587 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4588 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4589 * mi/mi-interp.c: Update throughout for bfd section macro and
4590 function changes.
4591 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4592 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4593
4594 2019-09-18 Tom Tromey <tom@tromey.com>
4595
4596 * NEWS: Add entry.
4597 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4598 call rl_initialize.
4599 (tui_enable): Do not call rl_initialize.
4600
4601 2019-09-18 Christian Groessler <chris@groessler.org>
4602
4603 * alpha-linux-nat.c: Include gdbarch.h.
4604
4605 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4606
4607 * ui-file.c: Include cli/cli-style.h.
4608 (term_cli_styling): Remove cli_styling declaration.
4609
4610 2019-09-18 Alan Modra <amodra@gmail.com>
4611
4612 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4613 to bfd_asymbol_section.
4614
4615 2019-09-18 Alan Modra <amodra@gmail.com>
4616
4617 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4618 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4619 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4620
4621 2019-09-18 Alan Modra <amodra@gmail.com>
4622
4623 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4624 * spu-linux-nat.c (spu_bfd_open): Likewise.
4625
4626 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4627
4628 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4629 to bool to match definition in dwarf2read.c.
4630
4631 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4632
4633 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4634 (print_signatures): Likewise.
4635 (trust_pad_over_xvs): Likewise.
4636 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4637 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4638 * arm-linux-nat.c (arm_apcs_32): Likewise.
4639 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4640 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4641 * arm-tdep.c (arm_debug): Likewise.
4642 (arm_apcs_32): Likewise.
4643 * auto-load.c (debug_auto_load): Likewise.
4644 (auto_load_gdb_scripts): Likewise.
4645 (global_auto_load): Likewise.
4646 (auto_load_local_gdbinit): Likewise.
4647 (auto_load_local_gdbinit_loaded): Likewise.
4648 * auto-load.h (global_auto_load): Likewise.
4649 (auto_load_local_gdbinit): Likewise.
4650 (auto_load_local_gdbinit_loaded): Likewise.
4651 * breakpoint.c (disconnected_dprintf): Likewise.
4652 (breakpoint_proceeded): Likewise.
4653 (automatic_hardware_breakpoints): Likewise.
4654 (always_inserted_mode): Likewise.
4655 (target_exact_watchpoints): Likewise.
4656 (_initialize_breakpoint): Update.
4657 * breakpoint.h (target_exact_watchpoints): Change to bool.
4658 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4659 * cli/cli-cmds.c (trace_commands): Likewise.
4660 * cli/cli-cmds.h (trace_commands): Likewise.
4661 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4662 to bool*.
4663 * cli/cli-logging.c (logging_overwrite): Change to bool.
4664 (logging_redirect): Likewise.
4665 (debug_redirect): Likewise.
4666 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4667 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4668 to bool.
4669 <boolean_option_def>: Update.
4670 (struct flag_option_def): Change default type of Context to bool
4671 from int.
4672 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4673 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4674 (get_setshow_command_value_string): Likewise.
4675 * cli/cli-style.c (cli_styling): Change to bool.
4676 (source_styling): Likewise.
4677 * cli/cli-style.h (source_styling): Likewise.
4678 (cli_styling): Likewise.
4679 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4680 to bool.
4681 * command.h (var_types): Update comment.
4682 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4683 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4684 bool.
4685 (debug_compile_cplus_scopes): Likewise.
4686 * compile/compile-internal.h (compile_debug): Likewise.
4687 * compile/compile.c (compile_debug): Likewise.
4688 (struct compile_options) <raw>: Likewise.
4689 * cp-support.c (catch_demangler_crashes): Likewise.
4690 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4691 (usr_cmd_cris_dwarf2_cfi): Likewise.
4692 * csky-tdep.c (csky_debug): Likewise.
4693 * darwin-nat.c (enable_mach_exceptions): Likewise.
4694 * dcache.c (dcache_enabled_p): Likewise.
4695 * defs.h (info_verbose): Likewise.
4696 * demangle.c (demangle): Likewise.
4697 (asm_demangle): Likewise.
4698 * dwarf-index-cache.c (debug_index_cache): Likewise.
4699 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4700 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4701 * dwarf2read.c (check_physname): Likewise.
4702 (use_deprecated_index_sections): Likewise.
4703 (dwarf_always_disassemble): Likewise.
4704 * eval.c (overload_resolution): Likewise.
4705 * event-top.c (set_editing_cmd_var): Likewise.
4706 (exec_done_display_p): Likewise.
4707 * event-top.h (set_editing_cmd_var): Likewise.
4708 (exec_done_display_p): Likewise.
4709 * exec.c (write_files): Likewise.
4710 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4711 (debug_fbsd_nat): Likewise.
4712 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4713 Likewise.
4714 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4715 <backtrace_past_entry> Likewise.
4716 * gdb-demangle.h (demangle): Likewise.
4717 (asm_demangle): Likewise.
4718 * gdb_bfd.c (bfd_sharing): Likewise.
4719 * gdbcore.h (write_files): Likewise.
4720 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4721 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4722 * gdbthread.h (print_thread_events): Likewise.
4723 * gdbtypes.c (opaque_type_resolution): Likewise.
4724 (strict_type_checking): Likewise.
4725 * gnu-nat.c (gnu_debug_flag): Likewise.
4726 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4727 * guile/scm-param.c (pascm_variable): Add boolval.
4728 (add_setshow_generic): Update.
4729 (pascm_param_value): Update.
4730 (pascm_set_param_value_x): Update.
4731 * hppa-tdep.c (hppa_debug): Change to bool..
4732 * infcall.c (may_call_functions_p): Likewise.
4733 (coerce_float_to_double_p): Likewise.
4734 (unwind_on_signal_p): Likewise.
4735 (unwind_on_terminating_exception_p): Likewise.
4736 * infcmd.c (startup_with_shell): Likewise.
4737 * inferior.c (print_inferior_events): Likewise.
4738 * inferior.h (startup_with_shell): Likewise.
4739 (print_inferior_events): Likewise.
4740 * infrun.c (step_stop_if_no_debug): Likewise.
4741 (detach_fork): Likewise.
4742 (debug_displaced): Likewise.
4743 (disable_randomization): Likewise.
4744 (non_stop): Likewise.
4745 (non_stop_1): Likewise.
4746 (observer_mode): Likewise.
4747 (observer_mode_1): Likewise.
4748 (set_observer_mode): Update.
4749 (sched_multi): Change to bool.
4750 * infrun.h (debug_displaced): Likewise.
4751 (sched_multi): Likewise.
4752 (step_stop_if_no_debug): Likewise.
4753 (non_stop): Likewise.
4754 (disable_randomization): Likewise.
4755 * linux-tdep.c (use_coredump_filter): Likewise.
4756 (dump_excluded_mappings): Likewise.
4757 * linux-thread-db.c (auto_load_thread_db): Likewise.
4758 (check_thread_db_on_load): Likewise.
4759 * main.c (captured_main_1): Update.
4760 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4761 xx2_opt, boolean_opt>: Change to bool.
4762 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4763 * maint.c (maintenance_profile_p): Likewise.
4764 (per_command_time): Likewise.
4765 (per_command_space): Likewise.
4766 (per_command_symtab): Likewise.
4767 * memattr.c (inaccessible_by_default): Likewise.
4768 * mi/mi-main.c (mi_async): Likewise.
4769 (mi_async_1): Likewise.
4770 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4771 * nat/fork-inferior.h (startup_with_shell): Likewise.
4772 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4773 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4774 * nios2-tdep.c (nios2_debug): Likewise.
4775 * or1k-tdep.c (or1k_debug): Likewise.
4776 * parse.c (parser_debug): Likewise.
4777 * parser-defs.h (parser_debug): Likewise.
4778 * printcmd.c (print_symbol_filename): Likewise.
4779 * proc-api.c (procfs_trace): Likewise.
4780 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4781 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4782 (set_parameter_value): Update.
4783 (add_setshow_generic): Update.
4784 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4785 to bool*.
4786 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4787 int*.
4788 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4789 * record-btrace.c (record_btrace_target::store_registers): Update.
4790 * record-full.c (record_full_memory_query): Change to bool.
4791 (record_full_stop_at_limit): Likewise.
4792 * record-full.h (record_full_memory_query): Likewise.
4793 * remote-notif.c (notif_debug): Likewise.
4794 * remote-notif.h (notif_debug): Likewise.
4795 * remote.c (use_range_stepping): Likewise.
4796 (interrupt_on_connect): Likewise.
4797 (remote_break): Likewise.
4798 * ser-tcp.c (tcp_auto_retry): Likewise.
4799 * ser-unix.c (serial_hwflow): Likewise.
4800 * skip.c (debug_skip): Likewise.
4801 * solib-aix.c (solib_aix_debug): Likewise.
4802 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4803 (spu_auto_flush_cache_p): Likewise.
4804 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4805 Likewise.
4806 (struct info_print_options) <quiet>: Likewise.
4807 * symfile-debug.c (debug_symfile): Likewise.
4808 * symfile.c (auto_solib_add): Likewise.
4809 (separate_debug_file_debug): Likewise.
4810 * symfile.h (auto_solib_add): Likewise.
4811 (separate_debug_file_debug): Likewise.
4812 * symtab.c (basenames_may_differ): Likewise.
4813 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4814 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4815 (struct info_types_options) <quiet>: Likewise.
4816 * symtab.h (demangle): Likewise.
4817 (basenames_may_differ): Likewise.
4818 * target-dcache.c (stack_cache_enabled_1): Likewise.
4819 (code_cache_enabled_1): Likewise.
4820 * target.c (trust_readonly): Likewise.
4821 (may_write_registers): Likewise.
4822 (may_write_memory): Likewise.
4823 (may_insert_breakpoints): Likewise.
4824 (may_insert_tracepoints): Likewise.
4825 (may_insert_fast_tracepoints): Likewise.
4826 (may_stop): Likewise.
4827 (auto_connect_native_target): Likewise.
4828 (target_stop_and_wait): Update.
4829 (target_async_permitted): Change to bool.
4830 (target_async_permitted_1): Likewise.
4831 (may_write_registers_1): Likewise.
4832 (may_write_memory_1): Likewise.
4833 (may_insert_breakpoints_1): Likewise.
4834 (may_insert_tracepoints_1): Likewise.
4835 (may_insert_fast_tracepoints_1): Likewise.
4836 (may_stop_1): Likewise.
4837 * target.h (target_async_permitted): Likewise.
4838 (may_write_registers): Likewise.
4839 (may_write_memory): Likewise.
4840 (may_insert_breakpoints): Likewise.
4841 (may_insert_tracepoints): Likewise.
4842 (may_insert_fast_tracepoints): Likewise.
4843 (may_stop): Likewise.
4844 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4845 (make_thread_apply_all_options_def_group): Change argument from int*
4846 to bool*.
4847 (thread_apply_all_command): Update.
4848 (print_thread_events): Change to bool.
4849 * top.c (confirm): Likewise.
4850 (command_editing_p): Likewise.
4851 (history_expansion_p): Likewise.
4852 (write_history_p): Likewise.
4853 (info_verbose): Likewise.
4854 * top.h (confirm): Likewise.
4855 (history_expansion_p): Likewise.
4856 * tracepoint.c (disconnected_tracing): Likewise.
4857 (circular_trace_buffer): Likewise.
4858 * typeprint.c (print_methods): Likewise.
4859 (print_typedefs): Likewise.
4860 * utils.c (debug_timestamp): Likewise.
4861 (sevenbit_strings): Likewise.
4862 (pagination_enabled): Likewise.
4863 * utils.h (sevenbit_strings): Likewise.
4864 (pagination_enabled): Likewise.
4865 * valops.c (overload_resolution): Likewise.
4866 * valprint.h (struct value_print_options) <prettyformat_arrays,
4867 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4868 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4869 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4870 Likewise.
4871 * windows-nat.c (new_console): Likewise.
4872 (cygwin_exceptions): Likewise.
4873 (new_group): Likewise.
4874 (debug_exec): Likewise.
4875 (debug_events): Likewise.
4876 (debug_memory): Likewise.
4877 (debug_exceptions): Likewise.
4878 (useshell): Likewise.
4879 * windows-tdep.c (maint_display_all_tib): Likewise.
4880 * xml-support.c (debug_xml): Likewise.
4881
4882 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4883
4884 * source.c (prepare_path_for_appending): New function.
4885 (openp): Make use of new function.
4886 (find_and_open_source): Search for the compilation directory and
4887 source file as a relative path beneath the directory search path.
4888
4889 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * source-cache.c (source_cache::get_line_charpos): Catch
4892 exceptions and return false, this matches the behaviour documented
4893 in the header file.
4894
4895 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4896
4897 * ada-tasks.c (info_task): Remove quoting of the task's name.
4898
4899 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4900
4901 * symfile.c (auto_solib_add): Replace comment with a reference
4902 to the header file.
4903
4904 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4905
4906 * NEWS: Mention that gdb can now be compiled with Python 3
4907 on Windows.
4908
4909 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4910
4911 * maint.c (maint_print_section_data::maint_print_section_data):
4912 Force use of 'float log10 (float)' by casting the argument to
4913 float.
4914
4915 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4916
4917 * maint.c: Add 'cmath' include.
4918 (struct maint_print_section_data): New structure.
4919 (print_section_index): New function.
4920 (print_bfd_section_info): Add header comment, small whitespace
4921 cleanup, and update to call new print_section_index function.
4922 (print_objfile_section_info): Likewise.
4923 (maint_obj_section_from_bfd_section): New function.
4924 (print_bfd_section_info_maybe_relocated): New function.
4925 (maintenance_info_sections): Add header comment, always use
4926 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4927
4928 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4929
4930 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4931 inner scope, add check that the objfile has psymtabs before
4932 checking psymtabs_addrmap.
4933 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4934
4935 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4936
4937 * NEWS: Announce that Ada task names are now shown at more places,
4938 and between quotes (except in info task output).
4939 * gdb/ada-tasks.c (task_to_str): New function.
4940 (display_current_task_id): Call task_to_str.
4941 (task_command_1): Likewise.
4942 (print_ada_task_info): In non-mi mode, Properly align headers and data
4943 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4944
4945 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4946
4947 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4948 prstatus.pr_lwp.pr_info instead of making it up.
4949
4950 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4951
4952 * auto-load.c (auto_load_expand_dir_vars): Update.
4953 * defs.h (gdb_datadir): Change to std::string.
4954 (python_libdir): Likewise.
4955 (relocate_gdb_directory): Change return type to std::string.
4956 * guile/guile.c (gdbscm_data_directory): Update.
4957 (initialize_scheme_side): Update.
4958 * jit.c (jit_reader_dir): Change to std::string.
4959 (jit_reader_load_command): Update.
4960 * main.c (gdb_datadir): Change to std::string.
4961 (python_libdir): Likewise.
4962 (set_gdb_data_directory): Update.
4963 (relocate_path): Change to return std::string.
4964 (relocate_gdb_directory): Change to return std::string.
4965 (relocate_gdbinit_path_maybe_in_datadir): Update.
4966 (captured_main_1): Update.
4967 * python/python.c (do_start_initialization): Update.
4968 * top.c (show_gdb_datadir): Update.
4969 * xml-syscall.c (xml_init_syscalls_info): Update.
4970 (init_syscalls_info): Update.
4971
4972 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4973
4974 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4975 out of get_init_files.
4976 (get_init_files): Update.
4977
4978 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4979
4980 * main.c (get_init_files): Change to use std::string.
4981 (captured_main_1): Update.
4982 (print_gdb_help): Update.
4983
4984 2019-09-11 Ali Tamur <tamur@google.com>
4985
4986 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4987 implementation.
4988
4989 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4990
4991 * dbxread.c (read_dbx_symtab): Update.
4992 * dwarf2read.c (load_partial_dies): Update.
4993 * mdebugread.c (parse_partial_symbols): Update.
4994 (handle_psymbol_enumerators): Update.
4995 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4996 * psymtab.c (add_psymbol_to_bcache): Likewise.
4997 (add_psymbol_to_list): Likewise.
4998 * symtab.c (symbol_set_names): Likewise.
4999 * symtab.h (symbol_set_names): Likewise.
5000 * xcoffread.c (scan_xcoff_symtab): Update.
5001
5002 2019-09-11 Tom Tromey <tom@tromey.com>
5003
5004 * symfile-mem.c (symbol_file_add_from_memory): Use
5005 bfd_set_filename.
5006 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
5007 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
5008
5009 2019-09-10 Tom Tromey <tromey@adacore.com>
5010
5011 * dwarf-index-write.c (write_psymbols): Extend error message.
5012 (debug_names::insert): Add Ada code.
5013 (debug_names::write_psymbols): Remove Ada check.
5014 (debug_names) <m_string_obstack>: New member.
5015 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
5016 (gdb_index_symbol_name_matcher::matches): Remove.
5017 (mapped_index_base::find_name_components_bounds): Add "lang"
5018 parameter.
5019 (mapped_index_base::build_name_components): Also split names
5020 according to Ada syntax.
5021 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
5022 type of "match_callback".
5023 (check_match, check_find_bounds_finds)
5024 (dw2_expand_symtabs_matching): Update.
5025 (dw2_debug_names_iterator): Add new constructor.
5026 (dw2_debug_names_map_matching_symbols): New function.
5027 (dw2_debug_names_expand_symtabs_matching): Update.
5028 (dwarf2_debug_names_functions): Use
5029 dw2_debug_names_map_matching_symbols.
5030
5031 2019-09-10 Tom Tromey <tromey@adacore.com>
5032
5033 * dwarf2read.c (dw2_get_file_names_reader): Add the
5034 CU's file name to the results.
5035
5036 2019-09-10 Tom Tromey <tromey@adacore.com>
5037
5038 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5039 map_matching_symbols. Update.
5040 * dwarf2read.c (dw2_map_matching_symbols): Update.
5041 * psymtab.c (match_partial_symbol): Change type; update.
5042 (psym_map_matching_symbols): Likewise.
5043 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5044 type; update.
5045 * symfile.h (struct quick_symbol_functions)
5046 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5047 Remove "match".
5048
5049 2019-09-10 Tom Tromey <tromey@adacore.com>
5050
5051 * psymtab.c (map_block): Remove.
5052 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5053 * symtab.c (iterate_over_symbols_terminated): New function.
5054 * symtab.c (iterate_over_symbols_terminated): Declare.
5055
5056 2019-09-10 Tom Tromey <tromey@adacore.com>
5057
5058 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5059 * language.h (struct language_defn) <la_iterate_over_symbols>:
5060 Return bool.
5061 * symtab.c (iterate_over_symbols): Return bool.
5062 * symtab.h (iterate_over_symbols): Return bool.
5063
5064 2019-09-10 Tom Tromey <tromey@adacore.com>
5065
5066 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5067 (add_nonlocal_symbols): Update.
5068 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5069 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5070 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5071 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5072 Change type of "callback". Remove "data".
5073
5074
5075 2019-09-09 Ali Tamur <tamur@google.com>
5076
5077 * dwarf2read.c (comp_unit_head): Update comment.
5078 (dwarf2_dwo_name): New function declaration.
5079 (dwarf_unit_type_name): New function declaration.
5080 (read_comp_unit_head): Add support for new compilation units,
5081 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5082 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5083 (currently named as "signature") in their header. Also clarify error
5084 messages.
5085 (lookup_dwo_id): New function. Returns the dwo id of the given
5086 compile unit.
5087 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5088 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5089 functions.
5090 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5091 (dwarf2_dwo_name): Get the dwo name if present.
5092 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5093 purposes.
5094
5095 2019-09-09 Tom Tromey <tom@tromey.com>
5096
5097 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5098
5099 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5100
5101 * python/python.c (do_start_initialization): Make progname_copy static,
5102 to avoid a leak report.
5103
5104 2019-09-08 Tom Tromey <tom@tromey.com>
5105
5106 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5107
5108 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5111 Change type to gdb::optional<block_enum>.
5112 (dw2_symtab_iter_init): Change block_index parameter type
5113 to gdb::optional<block_enum>.
5114 (dw2_lookup_symbol): Change block_index parameter
5115 type to block_enum.c
5116 (dw2_debug_names_lookup_symbol): Likewise.
5117 * psymtab.c (psym_lookup_symbol): Likewise.
5118 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5119 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5120 Likewise.
5121
5122 2019-09-06 Christian Biesinger <cbiesinger@google.com>
5123
5124 * defs.h (relocate_gdb_directory): Change int to bool in
5125 signature and rename flag to relocatable.
5126 * main.c (relocate_path): Likewise.
5127 (relocate_gdb_directory): Likewise.
5128
5129 2019-09-06 Alan Modra <amodra@gmail.com>
5130
5131 * coffread.c (coff_symfile_read): Constify filename variable.
5132 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5133 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5134 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5135 * solib.c (reload_shared_libraries_1): Likewise.
5136 * symfile.c (reread_symbols): Likewise.
5137 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5138 * solib-darwin.c (darwin_bfd_open): Likewise.
5139 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5140
5141 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5142
5143 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5144 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5145
5146 2019-09-03 Tom Tromey <tromey@adacore.com>
5147
5148 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5149 types.
5150 (has_negatives): Unbias a range type bound.
5151 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5152 * gdbtypes.c (operator==): Handle new field.
5153 (create_range_type): Add "bias" parameter.
5154 (create_static_range_type, resolve_dynamic_range): Update.
5155 * gdbtypes.h (struct range_bounds) <bias>: New member.
5156 (create_range_type): Add bias parameter.
5157 * printcmd.c (print_scalar_formatted): Unbias range types.
5158 * value.c (unpack_long): Unbias range types.
5159 (pack_long): Bias range types.
5160
5161 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5162
5163 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5164 probe arguments.
5165
5166 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5167
5168 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5169 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5170 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5171 (compile_probe_arg): Likewise.
5172 * probe.h (get_argument_count): Likewise.
5173 * solib-svr4.c (solib_event_probe_action): Likewise.
5174 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5175
5176 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5177
5178 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5179 code to here...
5180 (svr4_create_solib_event_breakpoints): ...from here.
5181
5182 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5183
5184 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5185 suffix from warning message.
5186
5187 2019-08-30 Tom Tromey <tom@tromey.com>
5188
5189 * tui/tui-winsource.h (struct tui_source_window_base)
5190 <refresh_all>: Don't declare.
5191 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5192 Remove.
5193 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5194 tui_show_locator_content.
5195 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5196 declare.
5197 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5198 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5199 declare.
5200
5201 2019-08-30 Tom Tromey <tom@tromey.com>
5202
5203 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5204
5205 2019-08-30 Tom Tromey <tom@tromey.com>
5206
5207 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5208 Remove unnecessary forward declarations.
5209
5210 2019-08-30 Tom Tromey <tom@tromey.com>
5211
5212 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5213 rerender.
5214 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5215 tui_show_locator_content.
5216
5217 2019-08-30 Tom Tromey <tom@tromey.com>
5218
5219 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5220 (tui_locator_window::rerender): Rewrite using body of previous
5221 tui_show_locator_content.
5222
5223 2019-08-30 Tom Tromey <tom@tromey.com>
5224
5225 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5226 set_locator_fullname>: New methods.
5227 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5228 Rename from tui_set_locator_fullname.
5229 (tui_locator_window::set_locator_info): Rename from
5230 tui_set_locator_info. Return bool.
5231 (tui_update_locator_fullname, tui_show_frame_info): Update.
5232
5233 2019-08-30 Tom Tromey <tom@tromey.com>
5234
5235 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5236
5237 2019-08-30 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5240 call touchwin.
5241
5242 2019-08-30 Tom Tromey <tom@tromey.com>
5243
5244 * tui/tui-wingeneral.c (box_win): Assume win_info and
5245 win_info->handle cannot be NULL.
5246
5247 2019-08-30 Tom Tromey <tom@tromey.com>
5248
5249 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5250 refresh_window>: Declare.
5251 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5252 resize.
5253 (tui_data_item_window::rerender): Rename from
5254 tui_display_register.
5255 (tui_data_item_window::refresh_window): New method.
5256 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5257 no-op.
5258
5259 2019-08-30 Tom Tromey <tom@tromey.com>
5260
5261 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5262 regs_column_count, current_group>: Move later. Now private.
5263 <get_current_group>: New method.
5264 * tui/tui-regs.c (tui_reg_command): Update.
5265 * tui/tui-layout.c (tui_set_layout): Update.
5266
5267 2019-08-30 Tom Tromey <tom@tromey.com>
5268
5269 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5270 (tui_data_window::rerender): Don't call
5271 check_and_display_highlight_if_needed.
5272 (tui_data_window::refresh_all): Remove call to
5273 erase_data_content.
5274
5275 2019-08-30 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5278 (tui_data_window::display_registers_from)
5279 (tui_data_window::display_reg_element_at_line)
5280 (tui_data_window::display_registers_from_line): Remove checks of
5281 "empty".
5282
5283 2019-08-30 Tom Tromey <tom@tromey.com>
5284
5285 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5286 Don't declare.
5287 * tui/tui-regs.c (tui_data_window::show_registers): Call
5288 rerender.
5289 (tui_data_window::rerender): Rename from display_all_data.
5290 (tui_data_window::rerender): Remove old implementation.
5291
5292 2019-08-30 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5295 text.
5296 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5297
5298 2019-08-29 Bernhard Wodok <barto@gmx.net>
5299 Sergio Durigan Junior <sergiodj@redhat.com>
5300
5301 PR win32/24284
5302 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5303
5304 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5305
5306 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5307 when searching for types.
5308
5309 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * f-lang.c (f_language_defn): Use f_print_typedef.
5312 * f-lang.h (f_print_typedef): Declare.
5313 * f-typeprint.c (f_print_typedef): Define.
5314
5315 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5316
5317 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5318
5319 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5320
5321 * cli/cli-utils.c (info_print_options_defs): Delete.
5322 (make_info_print_options_def_group): Delete.
5323 (extract_info_print_options): Delete.
5324 (info_print_command_completer): Delete.
5325 (info_print_args_help): Add extra parameter, and optionally
5326 include text about -n flag.
5327 * cli/cli-utils.h (struct info_print_options): Delete.
5328 (extract_info_print_options): Delete declaration.
5329 (info_print_command_completer): Delete declaration.
5330 (info_print_args_help): Add extra parameter, extend header
5331 comment.
5332 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5333 search_symbols.
5334 * stack.c (struct info_print_options): New type.
5335 (info_print_options_defs): New file scoped variable.
5336 (make_info_print_options_def_group): New static function.
5337 (info_print_command_completer): New static function.
5338 (info_locals_command): Update to use new local functions.
5339 (info_args_command): Likewise.
5340 (_initialize_stack): Add extra parameter to calls to
5341 info_print_args_help.
5342 * symtab.c (search_symbols): Add extra parameter, use this to
5343 possibly excluse non-debug symbols.
5344 (symtab_symbol_info): Add extra parameter, which is passed on to
5345 search_symbols.
5346 (struct info_print_options): New type.
5347 (info_print_options_defs): New file scoped variable.
5348 (make_info_print_options_def_group): New static function.
5349 (info_print_command_completer): New static function.
5350 (info_variables_command): Update to use local functions, and pass
5351 extra parameter through to symtab_symbol_info.
5352 (info_functions_command): Likewise.
5353 (info_types_command): Pass additional argument through to
5354 symtab_symbol_info.
5355 (rbreak_command): Pass extra argument to search_symbols.
5356 (_initialize_symtab): Add extra arguments for calls to
5357 info_print_args_help, and update help text for 'info variables',
5358 'whereis', and 'info functions' commands.
5359 * symtab.h (search_symbols): Add extra argument to declaration.
5360 * NEWS: Mention new flags.
5361
5362 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5363
5364 * symtab.c (lookup_static_symbol): Call the new function (and move
5365 it down to be next to lookup_global_symbol).
5366 (struct global_sym_lookup_data): Add block_enum member and rename to...
5367 (struct global_or_static_sym_lookup_data): ...this.
5368 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5369 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5370 (lookup_symbol_global_or_static_iterator_cb): ...this.
5371 (lookup_global_or_static_symbol): New function.
5372 (lookup_global_symbol): Call new function.
5373
5374 2019-08-26 Tom de Vries <tdevries@suse.de>
5375
5376 PR c++/24852
5377 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5378 when pc_probe.prob == NULL.
5379
5380 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5381
5382 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5383 variable symbol_linkage to symbol_linkage_.
5384
5385 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5386
5387 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5388 represent whether the symbol is static, dynamic, or we don't
5389 know.
5390
5391 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5392
5393 * gdb/rx-tdep.c (rx_register_names): New.
5394 (rx_register_name): Delete.
5395 (rx_psw_type): Delete.
5396 (rx_fpsw_type): Delete.
5397 (rx_register_type): Delete.
5398 (rx_gdbarch_init): Convert target-descriptions.
5399 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5400 * gdb/features/Makefile: Add rx.xml.
5401 * gdb/features/rx.xml: New.
5402 * gdb/features/rx.c: Generated.
5403 * gdb/NEWS: Mention target description support.
5404
5405 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5406
5407 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5408 *slot_ptr.
5409
5410 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5411
5412 * configure.ac: Don't check for 'dlfcn.h' (moved to
5413 gdbsupport/common.m4).
5414 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5415 'gdbsupport/'.
5416 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5417 * compile/compile-c-support.c: Include
5418 'gdbsupport/gdb-dlfcn.h'.
5419 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5420 * gdb-dlfcn.c: Move to...
5421 * gdbsupport/gdb-dlfcn.c: ... here.
5422 * gdb-dlfcn.h: Move to...
5423 * gdbsupport/gdb-dlfcn.h: ... here.
5424
5425 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5426
5427 * nios2-tdep.c (struct reg_value): Improve comments. Make
5428 the offset field signed.
5429
5430 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5431
5432 * python/lib/gdb/__init__.py (_execute_file): New function.
5433 * python/python.c (python_run_simple_file): Call gdb._execute_file
5434 on Windows.
5435
5436 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5439 all uses as this was never set to anything but a zero value.
5440
5441 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5442
5443 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5444
5445 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5446
5447 * tui/tui-data.h (tui_gen_win_info): Add an =default
5448 move constructor, required by some GCC versions.
5449
5450 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5451
5452 * go32-nat.c (go32_sysinfo): Add hygon_p.
5453
5454 2019-08-20 Tom Tromey <tom@tromey.com>
5455
5456 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5457 line_from_reg_element_no, first_reg_element_no_inline,
5458 display_all_data, delete_data_content_windows,
5459 erase_data_content>: Now private.
5460
5461 2019-08-20 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5464 (tui_unhighlight_win, tui_highlight_win)
5465 (tui_win_info::make_window): Update.
5466 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5467
5468 2019-08-20 Tom Tromey <tom@tromey.com>
5469
5470 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5471 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5472 (MAX_PID_WIDTH): Move to tui-stack.c.
5473 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5474 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5475 (MAX_PID_WIDTH): Move from tui-data.h.
5476
5477 2019-08-20 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5480 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5481 (box_win): Update.
5482 (tui_gen_win_info::make_window): Rename from tui_make_window.
5483 (tui_win_info::make_window): New method.
5484 (tui_gen_win_info::make_visible): Update.
5485 * tui/tui-source.c (tui_source_window::set_contents): Update.
5486 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5487 (tui_data_window::display_registers_from): Update.
5488 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5489 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5490 Declare.
5491 <can_box>: Remove.
5492 <title>: Remove.
5493 (struct tui_win_info) <make_window>: Declare.
5494 <can_box>: Now virtual.
5495 <title>: New member.
5496 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5497 * tui/tui-command.c (tui_cmd_window::resize): Update.
5498
5499 2019-08-20 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5502 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5503 (tui_data_window::check_register_values): Update.
5504
5505 2019-08-20 Tom Tromey <tom@tromey.com>
5506
5507 * tui/tui-regs.h (struct tui_data_window): Use
5508 DISABLE_COPY_AND_ASSIGN.
5509 <regs_content>: Change type, removing unique_ptr.
5510 <tui_data_window>: Add move constructor.
5511 * tui/tui-regs.c (tui_data_window::show_registers)
5512 (tui_data_window::show_register_group)
5513 (tui_data_window::display_registers_from)
5514 (tui_data_window::display_registers_from)
5515 (tui_data_window::first_data_item_displayed)
5516 (tui_data_window::delete_data_content_windows)
5517 (tui_data_window::rerender, tui_data_window::refresh_window)
5518 (tui_data_window::check_register_values): Update.
5519
5520 2019-08-20 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5523 show_register_group>: Declare.
5524 (tui_show_register_group): Don't declare.
5525 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5526 tui_show_registers.
5527 (tui_data_window::show_register_group): Rename from
5528 tui_show_register_group.
5529 (tui_data_window::check_register_values, tui_reg_command):
5530 Update.
5531 * tui/tui-layout.c (tui_set_layout): Update.
5532
5533 2019-08-20 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5536 Declare.
5537 (tui_check_register_values): Don't declare.
5538 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5539 from tui_check_register_values.
5540 * tui/tui-hooks.c (tui_register_changed): Update.
5541
5542 2019-08-20 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui-regs.c (tui_reg_layout): Move later.
5545 (tui_show_registers): Don't enable TUI mode or change layout.
5546
5547 2019-08-20 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-regs.h (struct tui_data_item_window)
5550 <~tui_data_item_window>: Remove.
5551 <content>: Now a unique_xmalloc_ptr.
5552 * tui/tui-regs.c (tui_register_format): Return a
5553 unique_xmalloc_ptr.
5554 (tui_get_register): Update.
5555 (~tui_data_item_window): Remove.
5556 (tui_data_window::display_registers_from, tui_display_register):
5557 Update.
5558 * tui/tui-io.h (tui_expand_tabs): Update.
5559 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5560 Remove "col" parameter.
5561
5562 2019-08-20 Tom Tromey <tom@tromey.com>
5563
5564 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5565 field.
5566 * tui/tui-regs.c (~tui_data_item_window): Update.
5567
5568 2019-08-20 Tom Tromey <tom@tromey.com>
5569
5570 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5571 earlier.
5572
5573 2019-08-20 Tom Tromey <tom@tromey.com>
5574
5575 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5576
5577 2019-08-20 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-source.h (struct tui_source_window): Update.
5580 * tui/tui-regs.c (tui_show_registers): Update.
5581 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5582 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5583 (NO_REGS_STRING): Remove defines.
5584
5585 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5586
5587 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5588 unnecessary thread walk if remote doesn't support the packet.
5589
5590 2019-08-19 Tom Tromey <tromey@adacore.com>
5591
5592 * python/py-value.c (value_has_field): Fix indentation.
5593
5594 2019-08-19 Tom Tromey <tromey@adacore.com>
5595
5596 * printcmd.c (do_one_display, info_display_command): Update.
5597 * block.h (contained_in): Return bool. Add allow_nested
5598 parameter.
5599 * block.c (contained_in): Return bool. Add allow_nested
5600 parameter.
5601
5602 2019-08-19 Tom Tromey <tom@tromey.com>
5603
5604 * configure: Rebuild.
5605 * configure.ac: Disallow the combination of -static-libstdc++ and
5606 source highlight.
5607 * source-cache.c (get_language_name): Handle rust.
5608 (source_cache::get_source_lines): Ignore highlighting exceptions.
5609
5610 2019-08-16 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5613 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5614 (struct tui_source_window_base) <make_visible, refresh_window,
5615 resize>: Remove methods.
5616 <execution_info>: Remove field.
5617 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5618 (tui_show_source_line, tui_source_window_base)
5619 (~tui_source_window_base): Update.
5620 (tui_source_window_base::resize)
5621 (tui_source_window_base::make_visible)
5622 (tui_source_window_base::refresh_window): Remove.
5623 (tui_source_window_base::update_exec_info): Update.
5624 * tui/tui-source.c (tui_source_window::set_contents): Update.
5625 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5626
5627 2019-08-16 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5630 deprecated_query_hook.
5631
5632 2019-08-16 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5635 (tui_update_source_windows_with_line): Update.
5636 * tui/tui-source.h (struct tui_source_window)
5637 <show_symtab_source>: Declare.
5638 (tui_show_symtab_source): Don't declare.
5639 * tui/tui-source.c (tui_show_symtab_source): Rename from
5640 tui_show_symtab_source.
5641
5642 2019-08-16 Tom Tromey <tom@tromey.com>
5643
5644 * tui/tui-winsource.h (struct tui_source_window_base)
5645 <set_contents>: Declare.
5646 * tui/tui-winsource.c
5647 (tui_source_window_base::update_source_window_as_is): Update.
5648 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5649 Declare.
5650 (tui_set_source_content): Don't declare.
5651 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5652 tui_set_source_content.
5653 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5654 Declare.
5655 (tui_set_disassem_content): Don't declare.
5656 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5657 tui_set_disassem_content.
5658
5659 2019-08-16 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-winsource.h (struct tui_source_window_base)
5662 <update_breakpoint_info>: Declare.
5663 (tui_update_breakpoint_info): Don't declare.
5664 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5665 (tui_update_all_breakpoint_info): Update.
5666 (tui_source_window_base::update_breakpoint_info): Rename from
5667 tui_update_breakpoint_info.
5668 (tui_source_window_base::update_exec_info): Update.
5669
5670 2019-08-16 Tom Tromey <tom@tromey.com>
5671
5672 * tui/tui-winsource.h (struct tui_source_window_base)
5673 <update_source_window>: Declare.
5674 (tui_update_source_window): Don't declare.
5675 * tui/tui-winsource.c
5676 (tui_source_window_base::update_source_window): Rename from
5677 tui_update_source_window.
5678 (tui_source_window_base::rerender): Update.
5679 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5680 * tui/tui-disasm.c (tui_show_disassem)
5681 (tui_show_disassem_and_update_source)
5682 (tui_disasm_window::maybe_update): Update.
5683
5684 2019-08-16 Tom Tromey <tom@tromey.com>
5685
5686 * tui/tui-winsource.h (struct tui_source_window_base)
5687 <update_source_window_as_is>: Declare.
5688 (tui_update_source_window_as_is): Don't declare.
5689 * tui/tui-winsource.c (tui_update_source_window): Update
5690 (tui_source_window_base::update_source_window_as_is): Rename from
5691 tui_update_source_window_as_is.
5692 (tui_source_window_base::refill): Update.
5693 * tui/tui-source.c (tui_show_symtab_source): Update.
5694 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5695 Update.
5696
5697 2019-08-16 Tom Tromey <tom@tromey.com>
5698
5699 * tui/tui-winsource.h (tui_update_source_window)
5700 (tui_update_source_window_as_is): Remove "noerror" parameter.
5701 * tui/tui-winsource.c (tui_update_source_window)
5702 (tui_update_source_window_as_is): Remove "noerror" parameter.
5703 (tui_update_source_windows_with_addr)
5704 (tui_update_source_windows_with_line)
5705 (tui_source_window_base::rerender)
5706 (tui_source_window_base::refill): Update.
5707 * tui/tui-source.h (tui_set_source_content)
5708 (tui_show_symtab_source): Remove "noerror" parameter.
5709 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5710 parameter.
5711 (tui_show_symtab_source): Likewise.
5712 (tui_source_window::maybe_update): Update.
5713 * tui/tui-disasm.c (tui_show_disassem)
5714 (tui_show_disassem_and_update_source)
5715 (tui_disasm_window::do_scroll_vertical)
5716 (tui_disasm_window::maybe_update): Update.
5717
5718 2019-08-16 Tom Tromey <tom@tromey.com>
5719
5720 * tui/tui.c (tui_is_window_visible): Update.
5721 * tui/tui-wingeneral.c (tui_make_window)
5722 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5723 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5724 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5725 (tui_set_win_height_command, parse_scrolling_args): Update.
5726 * tui/tui-source.c (tui_source_window::style_changed): Update.
5727 * tui/tui-regs.c (tui_show_registers)
5728 (tui_data_window::first_data_item_displayed)
5729 (tui_data_window::delete_data_content_windows)
5730 (tui_check_register_values, tui_reg_command): Update.
5731 * tui/tui-disasm.c (tui_show_disassem): Update.
5732 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5733 method.
5734 <is_visible>: Remove field.
5735 * tui/tui-data.c (tui_next_win, tui_prev_win)
5736 (tui_delete_invisible_windows): Update.
5737
5738 2019-08-16 Tom Tromey <tom@tromey.com>
5739
5740 * tui/tui-winsource.h (struct tui_source_window_base)
5741 <m_has_locator>: Remove.
5742 * tui/tui-layout.c (show_source_disasm_command, show_data)
5743 (show_source_or_disasm_and_command): Update.
5744
5745 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5746
5747 * NEWS (Other MI changes): New subsection.
5748 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5749 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5750 * arch-utils.c (default_get_pc_address_flags): New function.
5751 * arch-utils.h (default_get_pc_address_flags): New declaration.
5752 * gdbarch.sh: Add get_pc_address_flags.
5753 * gdbarch.c: Regenerate.
5754 * gdbarch.h: Likewise.
5755 * stack.c (print_pc): New function.
5756 (print_frame_info) (print_frame): Call print_pc.
5757
5758 2019-08-16 Tom de Vries <tdevries@suse.de>
5759
5760 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5761 print_objfile_section_info.
5762
5763 2019-08-15 Tom Tromey <tom@tromey.com>
5764
5765 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5766 calling update_cmdwin_start_line.
5767 * tui/tui-winsource.h (struct tui_source_window_base)
5768 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5769 <rerender>: Declare.
5770 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5771 Call rerender.
5772 (tui_source_window_base::set_new_height): Remove.
5773 (tui_source_window_base::rerender): Rename from
5774 do_make_visible_with_new_height.
5775 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5776 resize method.
5777 (tui_win_info::make_invisible_and_set_new_height)
5778 (tui_win_info::make_visible_with_new_height): Remove.
5779 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5780 Declare.
5781 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5782 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5783 do_make_visible_with_new_height>: Don't declare.
5784 <rerender>: Declare.
5785 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5786 set_new_height.
5787 (tui_data_window::do_make_visible_with_new_height): Remove.
5788 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5789 call tui_show_locator_content.
5790 (tui_gen_win_info::resize): Call rerender.
5791 (show_source_or_disasm_and_command): Don't call
5792 tui_show_locator_content.
5793 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5794 method.
5795 (struct tui_win_info) <rerender>: Declare.
5796 <set_new_height, make_invisible_and_set_new_height,
5797 make_visible_with_new_height>: Don't declare.
5798 * tui/tui-data.c (tui_win_list::rerender): New method.
5799 * tui/tui-command.h (struct tui_cmd_window)
5800 <do_make_visible_with_new_height>: Don't declare.
5801 * tui/tui-command.c
5802 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5803
5804 2019-08-15 Tom Tromey <tromey@adacore.com>
5805
5806 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5807 * ada-lang.c (ada_enum_name): Likewise.
5808
5809 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5810
5811 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5812 leading underscore.
5813 (GdbOutputErrorFile): Likewise.
5814 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5815 accordingly.
5816 (execute_unwinders): Rename to have a leading underscore.
5817 (auto_load_packages): Likewise.
5818 (global scope): Adjust call to auto_load_packages accordingly.
5819 (GdbSetPythonDirectory): Likewise.
5820 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5821 instead of execute_unwinders.
5822
5823 2019-08-15 Tom Tromey <tom@tromey.com>
5824
5825 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5826 (show_data): Don't change window visibility.
5827 (tui_gen_win_info::resize): Remove special case for command
5828 window. Use wresize, when available.
5829 (show_source_or_disasm_and_command): Don't change window
5830 visibility.
5831 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5832 <make_visible>: New method.
5833 * tui/tui-command.c (tui_cmd_window::resize): New method.
5834
5835 2019-08-15 Tom Tromey <tom@tromey.com>
5836
5837 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5838 (struct tui_source_windows): New.
5839 * tui/tui-winsource.c (tui_display_main): Update.
5840 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5841 (new_height_ok, parse_scrolling_args): Update.
5842 * tui/tui-layout.c (show_layout, show_data): Update.
5843 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5844 (tui_add_to_source_windows): Don't declare.
5845 * tui/tui-data.c (source_windows, tui_source_windows)
5846 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5847
5848 2019-08-15 Tom Tromey <tom@tromey.com>
5849
5850 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5851 Rename from reset.
5852 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5853 * tui/tui-layout.c (show_source_disasm_command, show_data):
5854 Update.
5855 (tui_gen_win_info::resize): Rename.
5856 (show_source_or_disasm_and_command): Update.
5857 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5858 reset.
5859
5860 2019-08-15 Tom Tromey <tom@tromey.com>
5861
5862 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5863 * tui/tui-interp.c (tui_interp::init): Don't call
5864 tui_initialize_static_data.
5865 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5866
5867 2019-08-15 Tom Tromey <tom@tromey.com>
5868
5869 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5870 examine tui_win_list.
5871
5872 2019-08-15 Tom Tromey <tom@tromey.com>
5873
5874 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5875 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5876 tui_clear_source_content.
5877 (tui_clear_source_content): Remove.
5878 (tui_source_window_base::do_erase_source_content): Hoist call to
5879 content.clear().
5880 * tui/tui-stack.c (tui_show_frame_info): Don't call
5881 tui_clear_source_content.
5882
5883 2019-08-15 Tom Tromey <tom@tromey.com>
5884
5885 * tui/tui-winsource.h (struct tui_source_window_base)
5886 <do_erase_source_content>: New method.
5887 <erase_source_content>: New method.
5888 (tui_erase_source_content): Don't declare.
5889 * tui/tui-winsource.c (tui_clear_source_content): Update.
5890 (tui_source_window_base::do_erase_source_content): Rename from
5891 tui_erase_source_content.
5892 (tui_source_window_base::show_source_content): Update.
5893 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5894 * tui/tui-source.h (struct tui_source_window)
5895 <erase_source_content>: New method.
5896 * tui/tui-disasm.h (struct tui_disasm_window)
5897 <erase_source_content>: New method.
5898
5899 2019-08-15 Tom Tromey <tom@tromey.com>
5900
5901 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5902 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5903 constructor.
5904 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5905 * tui/tui-source.c (tui_set_source_content): Update.
5906 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5907
5908 2019-08-15 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5911 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5912 tui-source.c.
5913 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5914 Declare.
5915 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5916 method.
5917 (tui_source_window::maybe_update): Update.
5918
5919 2019-08-15 Tom Tromey <tom@tromey.com>
5920
5921 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5922 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5923 tui-disasm.c.
5924 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5925 Declare.
5926 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5927 method.
5928 (tui_disasm_window::maybe_update): Update.
5929
5930 2019-08-15 Tom Tromey <tom@tromey.com>
5931
5932 * tui/tui-winsource.h (struct tui_source_window_base)
5933 <maybe_update>: Declare.
5934 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5935 method.
5936 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5937 Declare.
5938 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5939 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5940 Declare.
5941 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5942
5943 2019-08-15 Tom Tromey <tom@tromey.com>
5944
5945 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5946
5947 2019-08-15 Tom Tromey <tom@tromey.com>
5948
5949 * tui/tui-wingeneral.c: Include tui-stack.h.
5950 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5951 (struct tui_locator_window): Move from tui-data.h.
5952 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5953 (tui_initialize_static_data): Move from tui-data.c.
5954 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5955 (struct tui_locator_window): Move to tui-stack.c.
5956 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5957 (tui_initialize_static_data): Move to tui-stack.c.
5958
5959 2019-08-15 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-layout.c (show_source_disasm_command)
5962 (show_source_or_disasm_and_command): Use make_visible method, not
5963 tui_make_window.
5964 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5965 Remove.
5966
5967 2019-08-15 Tom Tromey <tom@tromey.com>
5968
5969 * tui/tui-wingeneral.h (tui_make_window): Update.
5970 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5971 parameter.
5972 (tui_gen_win_info::make_visible): Update.
5973 * tui/tui-regs.c (tui_data_window::display_registers_from):
5974 Update.
5975 * tui/tui-layout.c (show_source_disasm_command)
5976 (show_source_or_disasm_and_command): Update.
5977 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5978 (enum tui_box): Remove.
5979 (struct tui_win_info) <can_box>: New method.
5980 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5981 method.
5982
5983 2019-08-15 Tom de Vries <tdevries@suse.de>
5984
5985 * linux-nat-trad.c: Include gdbarch.h.
5986
5987 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5988
5989 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5990 register sizes.
5991
5992 2019-08-14 Tom Tromey <tromey@adacore.com>
5993
5994 * darwin-nat.c: Include gdbarch.h.
5995 * darwin-nat-info.c: Include gdbarch.h.
5996
5997 2019-08-13 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
6000 Remove.
6001 * tui/tui-data.c (tui_initialize_static_data): Update.
6002
6003 2019-08-13 Tom Tromey <tom@tromey.com>
6004
6005 * tui/tui-winsource.h (struct tui_exec_info_window)
6006 <~tui_exec_info_window, maybe_allocate_content, get_content,
6007 m_content>: Remove.
6008 (struct tui_source_window_base) <set_exec_info_content,
6009 show_exec_info_content>: Don't declare.
6010 * tui/tui-winsource.c
6011 (tui_exec_info_window::maybe_allocate_content): Remove.
6012 (tui_source_window_base::update_exec_info): Rename from
6013 set_exec_info_content.
6014 (tui_source_window_base::show_exec_info_content)
6015 (tui_source_window_base::update_exec_info): Remove.
6016
6017 2019-08-13 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
6020 declare.
6021 * tui/tui-winsource.c (tui_update_source_window_as_is)
6022 (tui_update_source_windows_with_addr, tui_erase_source_content):
6023 Update.
6024 (tui_clear_exec_info_content): Remove.
6025
6026 2019-08-13 Tom Tromey <tom@tromey.com>
6027
6028 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6029 declare.
6030 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6031 call tui_erase_exec_info_content.
6032 (tui_clear_exec_info_content): Rename from
6033 tui_erase_exec_info_content.
6034 (tui_clear_exec_info_content): Delete.
6035
6036 2019-08-13 Tom Tromey <tom@tromey.com>
6037
6038 * tui/tui-winsource.h (struct tui_source_window_base)
6039 <show_exec_info_content>: Declare.
6040 (tui_show_exec_info_content): Don't declare.
6041 * tui/tui-winsource.c
6042 (tui_source_window_base::show_exec_info_content): Rename from
6043 tui_show_exec_info_content.
6044 (tui_source_window_base::update_exec_info): Update.
6045
6046 2019-08-13 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6049 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6050 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6051 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6052 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6053 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6054 ... here.
6055
6056 2019-08-13 Tom Tromey <tom@tromey.com>
6057
6058 * tui/tui-winsource.h (struct tui_source_window_base)
6059 <update_exec_info>: Declare.
6060 (tui_update_exec_info): Don't declare.
6061 * tui/tui-winsource.c (tui_update_source_window_as_is)
6062 (tui_source_window_base::refresh_all)
6063 (tui_update_all_breakpoint_info): Update.
6064 (tui_source_window_base::update_exec_info): Rename from
6065 tui_update_exec_info.
6066 * tui/tui-stack.c (tui_show_frame_info): Update.
6067
6068 2019-08-13 Tom Tromey <tom@tromey.com>
6069
6070 * tui/tui-winsource.h (struct tui_source_window_base)
6071 <set_exec_info_content>: Declare.
6072 (tui_set_exec_info_content): Don't declare.
6073 * tui/tui-winsource.c
6074 (tui_source_window_base::set_exec_info_content): Rename from
6075 tui_set_exec_info_content.
6076 (tui_update_exec_info): Update.
6077
6078 2019-08-13 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-winsource.h (struct tui_source_window_base)
6081 <show_source_content>: Declare.
6082 (tui_show_source_content): Don't declare.
6083 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6084 (tui_source_window_base::show_source_content): Rename from
6085 tui_show_source_content.
6086 (tui_source_window_base::refresh_all): Update.
6087 * tui/tui-layout.c (show_source_disasm_command)
6088 (show_source_or_disasm_and_command): Update.
6089
6090 2019-08-13 Tom Tromey <tom@tromey.com>
6091
6092 * tui/tui-winsource.c (tui_erase_source_content)
6093 (tui_show_source_content, tui_source_window_base::refresh_all):
6094 Update.
6095 * tui/tui-wingeneral.h
6096 (tui_check_and_display_highlight_if_needed): Don't declare.
6097 * tui/tui-wingeneral.c
6098 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6099 check_and_display_highlight_if_needed.
6100 * tui/tui-win.c (tui_rehighlight_all)
6101 (tui_win_info::make_visible_with_new_height): Update.
6102 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6103 (tui_data_window::erase_data_content)
6104 (tui_data_window::display_all_data): Update.
6105 * tui/tui-data.h (struct tui_win_info)
6106 <check_and_display_highlight_if_needed>: Declare.
6107
6108 2019-08-13 Tom Tromey <tom@tromey.com>
6109
6110 * tui/tui-win.c (tui_resize_all): Call
6111 tui_delete_invisible_windows.
6112 * tui/tui-layout.c (show_layout): Call
6113 tui_delete_invisible_windows.
6114 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6115 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6116
6117 2019-08-13 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6120 tui_add_win_to_layout.
6121
6122 2019-08-13 Tom Tromey <tom@tromey.com>
6123
6124 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6125 * tui/tui-layout.c (tui_default_win_height): Now static.
6126
6127 2019-08-13 Tom Tromey <tom@tromey.com>
6128
6129 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6130 single switch.
6131 (show_source_disasm_command, show_source_or_disasm_and_command):
6132 Don't check current layout.
6133
6134 2019-08-13 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui-wingeneral.c (make_all_visible): Remove.
6137 (tui_make_all_invisible): Simplify.
6138 * tui/tui-layout.c (tui_make_all_invisible): Move from
6139 tui-wingeneral.c; simplify.
6140 (show_layout): Hoist call to tui_make_all_invisible.
6141 (show_data): Don't call tui_make_all_invisible.
6142
6143 2019-08-13 Tom Tromey <tom@tromey.com>
6144
6145 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6146 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6147
6148 2019-08-13 Tom Tromey <tom@tromey.com>
6149
6150 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6151 tui-data.c.
6152 (show_source_disasm_command, show_data)
6153 (show_source_or_disasm_and_command): Don't use
6154 tui_set_current_layout_to.
6155 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6156 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6157 tui-layout.c.
6158 (tui_set_current_layout_to): Remove.
6159
6160 2019-08-13 Tom Tromey <tom@tromey.com>
6161
6162 * tui/tui-layout.c (tui_set_layout): Update.
6163 * tui/tui-data.h (struct tui_layout_def): Remove.
6164 (tui_layout_def): Don't declare.
6165 * tui/tui-data.c (layout_def): Remove.
6166 (tui_layout_def): Remove.
6167
6168 2019-08-13 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-winsource.h (struct tui_source_window_base)
6171 <clear_detail>: No longer "override".
6172 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6173 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6174 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6175 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6176 Remove.
6177 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6178
6179 2019-08-13 Tom Tromey <tromey@adacore.com>
6180
6181 * tracepoint.c: Don't include readline.h or history.h.
6182
6183 2019-08-12 Tom Tromey <tom@tromey.com>
6184
6185 * configure: Rebuild.
6186 * configure.ac: Check for readline 7.
6187 * NEWS: Mention readline 7 requirement.
6188 * README: Update.
6189
6190 2019-08-12 Tom Tromey <tom@tromey.com>
6191
6192 * mingw-hdep.c (gdb_select): Remove readline hack.
6193
6194 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6195
6196 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6197 when the function fails.
6198
6199 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6200
6201 * s390-tdep.c (s390_type_align): New function.
6202 (s390_gdbarch_init): Set it as type_align gdbarch method.
6203
6204 2019-08-09 Tom de Vries <tdevries@suse.de>
6205
6206 PR gdb/24591
6207 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6208 pc_low with relocation offset.
6209
6210 2019-08-07 Tom Tromey <tromey@adacore.com>
6211
6212 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6213 (print_frame_args): Update.
6214 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6215 Update.
6216 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6217 * frame.h (struct frame_arg): Add initializers.
6218 <error>: Now a unique_xmalloc_ptr.
6219
6220 2019-08-07 Alan Hayward <alan.hayward@arm.com>
6221
6222 * NEWS: Expand the Pointer Authentication entry.
6223 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6224 (aarch64_frame_unmask_lr): ... to this.
6225 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6226 Call aarch64_frame_unmask_lr.
6227 * frame.c (struct frame_info): Add "masked" variable.
6228 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6229 (fprint_frame): Check for masked pc.
6230 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6231 declarations.
6232 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6233 * stack.c (print_frame): Check for masked pc.
6234
6235 2019-08-06 Tom Tromey <tom@tromey.com>
6236
6237 * stabsread.c (patch_block_stabs, read_one_struct_field)
6238 (read_enum_type): Use obstack_strndup.
6239 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6240 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6241 * dwarf2read.c (guess_full_die_structure_name)
6242 (anonymous_struct_prefix): Use obstack_strndup.
6243 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6244 * c-exp.y (yylex): Use obstack_strndup.
6245 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6246 (write_var_or_type): Use obstack_strndup.
6247
6248 2019-08-06 Tom Tromey <tom@tromey.com>
6249
6250 * symfile.c (reread_symbols): Use obstack_strdup.
6251 * stabsread.c (read_type): Use obstack_strdup.
6252 * gdb_obstack.h (obstack_strdup): New overload.
6253 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6254 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6255 (dwarf2_canonicalize_name): Use obstack_strdup.
6256 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6257 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6258 Use obstack_strdup.
6259
6260 2019-08-06 Tom Tromey <tom@tromey.com>
6261
6262 * gdb_obstack.h (obstack_strdup): Define.
6263 * gdb_obstack.c (obstack_strdup): Don't define.
6264
6265 2019-08-06 Tom Tromey <tom@tromey.com>
6266
6267 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6268 obstack_strdup.
6269 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6270 obstack_strdup.
6271 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6272 * stabsread.c (common_block_start): Use obstack_strdup.
6273 * objfiles.c (set_objfile_main_name, objfile): Use
6274 obstack_strdup.
6275 * namespace.c (add_using_directive): Use obstack_strdup.
6276 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6277 * jit.c (finalize_symtab): Use obstack_strdup.
6278 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6279 (guess_partial_die_structure_name, partial_die_info::fixup)
6280 (dwarf2_name): Use obstack_strdup.
6281 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6282 obstack_strdup.
6283 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6284 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6285 obstack_strdup.
6286 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6287
6288 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6289
6290 * unittests/help-doc-selftests.c: New file.
6291 * Makefile.in: Add the new file.
6292
6293 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6294
6295 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6296 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6297 the full first line, except when FOR_VALUE_PREFIX. In this case,
6298 the trailing '.' is not output, and the first character is uppercased.
6299 (print_help_for_command): Update call to print_doc_line.
6300 (print_doc_of_command): Likewise.
6301 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6302 * cli/cli-option.c (append_indented_doc): Do not append newline.
6303 (build_help_option): Append newline after first appended_indented_doc
6304 only if a second call is done.
6305 (build_help): Append 2 new lines before each option, except the first
6306 one.
6307 * compile/compile.c (_initialize_compile): Add new lines after
6308 %OPTIONS%, when not at the end of the help.
6309 Change help doc or code
6310 producing the help doc to respect the invariants.
6311 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6312 Also removed the new line after 'Options:', as all other commands
6313 do not put an empty line between 'Options:' and the first option.
6314 * printcmd.c (_initialize_printcmd): Likewise.
6315 * stack.c (_initialize_stack): Likewise.
6316 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6317 incorrectly telling COMMAND is optional.
6318 * ada-lang.c (_initialize_ada_language): Change help doc or code
6319 producing the help doc to respect the invariants.
6320 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6321 * breakpoint.c (_initialize_breakpoint): Likewise.
6322 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6323 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6324 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6325 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6326 _initialize_cli_style): Likewise.
6327 * corelow.c (core_target_info): Likewise.
6328 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6329 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6330 * filesystem.c (_initialize_filesystem): Likewise.
6331 * frame.c (_initialize_frame): Likewise.
6332 * gnu-nat.c (add_task_commands): Likewise.
6333 * infcall.c (_initialize_infcall): Likewise.
6334 * infcmd.c (_initialize_infcmd): Likewise.
6335 * interps.c (_initialize_interpreter): Likewise.
6336 * language.c (_initialize_language): Likewise.
6337 * linux-fork.c (_initialize_linux_fork): Likewise.
6338 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6339 * maint.c (_initialize_maint_cmds): Likewise.
6340 * memattr.c (_initialize_mem): Likewise.
6341 * printcmd.c (_initialize_printcmd): Likewise.
6342 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6343 _RegEx): Likewise.
6344 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6345 * record-btrace.c (_initialize_record_btrace): Likewise.
6346 * record-full.c (_initialize_record_full): Likewise.
6347 * record.c (_initialize_record): Likewise.
6348 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6349 * regcache.c (_initialize_regcache): Likewise.
6350 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6351 _initialize_remote): Likewise.
6352 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6353 * serial.c (_initialize_serial): Likewise.
6354 * skip.c (_initialize_step_skip): Likewise.
6355 * source.c (_initialize_source): Likewise.
6356 * stack.c (_initialize_stack): Likewise.
6357 * symfile.c (_initialize_symfile): Likewise.
6358 * symtab.c (_initialize_symtab): Likewise.
6359 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6360 * top.c (init_main): Likewise.
6361 * tracefile-tfile.c (tfile_target_info): Likewise.
6362 * tracepoint.c (_initialize_tracepoint): Likewise.
6363 * tui/tui-win.c (_initialize_tui_win): Likewise.
6364 * utils.c (add_internal_problem_command): Likewise.
6365 * valprint.c (value_print_option_defs): Likewise.
6366
6367 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6368
6369 PR build/24886
6370 * configure.ac: Drop enable-libmcheck support.
6371 * configure, config.in: Rebuild.
6372 * libmcheck.m4: Remove.
6373 * acinclude.m4: Don't include it.
6374 * Makefile.in: Don't distribute it.
6375 * top.c (print_gdb_configuration): Don't mention it.
6376
6377 2019-08-06 Tom Tromey <tom@tromey.com>
6378
6379 * utils.c (set_output_style): Sometimes pass stream to
6380 emit_style_escape.
6381 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6382 * record-btrace.c (btrace_insn_history): Update.
6383 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6384 method.
6385 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6386 Update initializers.
6387 <m_uiout>: New field.
6388 <m_di>: Move lower.
6389 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6390 Remove "uiout" parameter.
6391 (dump_insns): Update.
6392 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6393 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6394
6395 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6396
6397 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6398 (error_in_psymtab_expansion): Likewise.
6399 (lookup_symbol_via_quick_fns): Likewise.
6400 (basic_lookup_transparent_type_quick): Likewise.
6401 (basic_lookup_transparent_type_1): Likewise.
6402
6403 2019-08-06 Tom Tromey <tromey@adacore.com>
6404
6405 * source.c (last_source_error): Now bool.
6406 (print_source_lines_base): Make "noprint" bool. Only open
6407 source file when last_source_visited changes.
6408
6409 2019-08-06 Tom Tromey <tromey@adacore.com>
6410
6411 * annotate.c (annotate_source_line): Use g_source_cache.
6412 * source-cache.c (source_cache::get_plain_source_lines): Change
6413 parameters. Populate m_offset_cache.
6414 (source_cache::ensure): New method.
6415 (source_cache::get_line_charpos): New method.
6416 (extract_lines): Move lower. Change parameters.
6417 (source_cache::get_source_lines): Move lower.
6418 * source-cache.h (class source_cache): Update comment.
6419 <get_line_charpos>: New method.
6420 <get_source_lines>: Update comment.
6421 <clear>: Clear m_offset_cache.
6422 <get_plain_source_lines>: Change parameters.
6423 <ensure>: New method
6424 <m_offset_cache>: New member.
6425 * source.c (forget_cached_source_info_for_objfile): Update.
6426 (info_source_command): Use g_source_cache.
6427 (find_source_lines, open_source_file_with_line_charpos): Remove.
6428 (print_source_lines_base, search_command_helper): Use g_source_cache.
6429 * source.h (open_source_file_with_line_charpos): Don't declare.
6430 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6431 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6432 Use g_source_cache.
6433
6434 2019-08-06 Tom Tromey <tromey@adacore.com>
6435
6436 * source-cache.c (source_cache::get_plain_source_lines):
6437 Remove "first_line" and "last_line" parameters.
6438 (source_cache::get_source_lines): Cache plain text.
6439 * source-cache.h (class source_cache)
6440 <get_plain_source_lines>: Update.
6441
6442 2019-08-06 Tom Tromey <tromey@adacore.com>
6443
6444 * source-cache.c (extract_lines): No longer a method.
6445 Changed type of parameter. Include final newline.
6446 (selftests::extract_lines_test): New function.
6447 (_initialize_source_cache): Likewise.
6448 * source-cache.h (class source_cache)
6449 <extract_lines>: Don't declare.
6450
6451 2019-08-06 Tom Tromey <tromey@adacore.com>
6452
6453 * breakpoint.c (init_breakpoint_sal): Update.
6454 (breakpoint): Update.
6455 * breakpoint.h (struct breakpoint) <filter>: Now a
6456 unique_xmalloc_ptr.
6457
6458 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6459
6460 * NEWS: Mention dictionary access on blocks.
6461 * python/py-block.c (blpy_getitem): New function.
6462 (block_object_as_mapping): New struct.
6463 (block_object_type): Use new struct for tp_as_mapping field.
6464
6465 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6466
6467 * objfiles.h (objfile): Add a comment describing partial symbols.
6468
6469 2019-08-05 Tom Tromey <tromey@adacore.com>
6470
6471 * compile/compile.c (_initialize_compile): Use _(), not N_().
6472 * thread.c (_initialize_thread): Use _(), not N_().
6473 * stack.c (_initialize_stack): Use _(), not N_().
6474 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6475
6476 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * dwarf2read.c (struct dw2_symtab_iterator):
6479 <want_specific_block>: Remove.
6480 <block_index>: Change type to gdb::optional.
6481 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6482 change type of BLOCK_INDEX parameter to gdb::optional.
6483 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6484 (dw2_lookup_symbol): Don't pass argument for
6485 WANT_SPECIFIC_BLOCK.
6486 (dw2_expand_symtabs_for_function): Don't pass argument for
6487 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6488 (class dw2_debug_names_iterator)
6489 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6490 parameter, change BLOCK_INDEX type to gdb::optional.
6491 <m_want_specific_block>: Remove.
6492 <m_block_index>: Change type to gdb::optional.
6493 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6494 gdb::optional. Re-write in function of gdb::optional.
6495 (dw2_debug_names_lookup_symbol): Don't pass argument for
6496 WANT_SPECIFIC_BLOCK.
6497 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6498 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6499 BLOCK_INDEX.
6500
6501 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6502
6503 * NEWS: Mention changes to "info sources" command.
6504
6505 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6506
6507 * symtab.c (filename_partial_match_opts): New struct type.
6508 (struct output_source_filename_data): New members
6509 regexp, c_regexp, partial_match.
6510 (output_source_filename): Use new members to decide to print file.
6511 (info_sources_option_defs): New variable.
6512 (make_info_sources_options_def_group, print_info_sources_header,
6513 info_sources_command_completer):
6514 New functions.
6515 (info_sources_command): Read new optional arguments.
6516 (_initialize_symtab): Update info sources help.
6517
6518 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6519
6520 * ada-lang.c (exception_support_info_v0): Renamed from...
6521 (default_exception_support_info): ... this. Create new
6522 definition for v1.
6523 (ada_has_this_exception_support): Look up catch_handlers_sym.
6524 (ada_exception_support_info_sniffer): Try v0 after default.
6525
6526 2019-08-01 Tom Tromey <tromey@adacore.com>
6527
6528 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6529 gdbarch.h.
6530
6531 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6532
6533 * s12z-tdep.c: Fix include path for s12z-opc.h.
6534
6535 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6536
6537 * NEWS: Require GNU make 3.82.
6538
6539 2019-07-16 Tom Tromey <tom@tromey.com>
6540
6541 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6542 declare.
6543
6544 2019-07-30 Tom Tromey <tromey@adacore.com>
6545
6546 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6547
6548 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6549
6550 * printcmd.c (print_address_symbolic): Print negative offsets.
6551 (build_address_symbolic): Force signed arithmetic when computing
6552 offset.
6553
6554 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6555
6556 PR/24474: Add a function to lookup static variables.
6557 * NEWS: Mention this new function.
6558 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6559 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6560 * python/python.c (python_GdbMethods): Add new function.
6561
6562 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6563
6564 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6565 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6566 (objfpy_lookup_static_symbol): New function.
6567 (objfile_object_methods): Add new functions.
6568
6569 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6570
6571 * NEWS: Mention 'set|show print frame-info'. Mention new
6572 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6573 backtrace argument. Mention that python frame filtering code
6574 is now consistent with what 'backtrace' command prints.
6575
6576 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6577
6578 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6579 comments.
6580 (print_frame_info_auto, print_frame_info_source_line,
6581 print_frame_info_location, print_frame_info_source_and_location,
6582 print_frame_info_location_and_address, print_frame_info_short_location):
6583 New declarations.
6584 (struct frame_print_options): New member print_frame_info.
6585 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6586 * stack.h (get_user_print_what_frame_info): New declaration.
6587 (frame_show_address): New declaration.
6588 * stack.c (print_frame_arguments_choices): New value 'presence'.
6589 (print_frame_info_auto, print_frame_info_source_line,
6590 print_frame_info_location, print_frame_info_source_and_location,
6591 print_frame_info_location_and_address, print_frame_info_short_location,
6592 print_frame_info_choices, print_frame_info_print_what): New definitions.
6593 (print_frame_args): Only print dots for args if print frame-arguments
6594 is 'presence'.
6595 (frame_print_option_defs): New element for "frame-info".
6596 (get_user_print_what_frame_info): New function.
6597 (frame_show_address): Make non static. Move comment to stack.h.
6598 (print_frame_info_to_print_what): New function.
6599 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6600 to decide what to print.
6601 (backtrace_command_1): Handle the new print_frame_arguments_presence
6602 value.
6603 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6604 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6605 (py_print_frame): In non-mi mode, use LOCATION as default for
6606 print_what, similarly to frame information printed directly by
6607 backtrace command. Handle frame-info user option in non MI mode.
6608
6609 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6610
6611 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6612 Add case for debugging 32-bit target on 64-bit host. Revise
6613 comment.
6614
6615 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6616
6617 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6618 instead of find_function_entry_range_from_pc.
6619
6620 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6621
6622 * stack.c (find_frame_funname): Remove code which preferred
6623 minsym over symtab sym in "certain pathological cases".
6624
6625 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6626 parameter. Change type of "do_demangle" to bool.
6627 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6628 Pass suitable "prefer_sym_over_minsym" flag to
6629 build_address_symbolic(). Don't output "+" for negative offsets.
6630 * printcmd.c (print_address_symbolic): Update invocation of
6631 build_address_symbolic to include a "prefer_sym_over_minsym"
6632 flag.
6633 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6634 Restrict cases in which use of minimal symbol is preferred to that
6635 of a found symbol. Update comments.
6636
6637 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6638 for entry pc when entry pc is out of range for that FDE.
6639
6640 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6641
6642 PR gdb/24839:
6643 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6644 type.
6645
6646 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6647
6648 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6649 this function's Python signature.
6650
6651
6652 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6653
6654 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6655 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6656 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6657 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6658 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6659
6660
6661 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6662
6663 * h8300-tdep.c (h8300_register_name_common): New.
6664 h8300_register_name): Use h8300_register_name_common.
6665 (h8300s_register_name): Likewise.
6666 (h8300sx_register_name): Likewise.
6667 (h8300h_register_nam): New.
6668 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6669
6670
6671 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6672
6673 * arm-tdep.c (arm_skip_cmse_entry): New function.
6674 (arm_is_sgstubs_section): New function.
6675 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6676
6677 2019-07-22 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6680 Don't self-assign.
6681
6682 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6685 type_print.
6686
6687 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6688
6689 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6690 so that GDB doesn't match any msymbols when searching in the
6691 TYPES_DOMAIN.
6692 (print_symbol_info): Print using typedef_print or type_print based
6693 on the type of the symbol. Add updated FIXME comment moved from...
6694 (_initialize_symtab): ... move and update FIXME comment to above.
6695
6696 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * NEWS: Mention adding -q option to "info types".
6699 * symtab.c (struct info_types_options): New struct.
6700 (info_types_options_defs): New variable.
6701 (make_info_types_options_def_group): New function.
6702 (info_types_command): Use gdb::option framework to parse options.
6703 (info_types_command_completer): New function.
6704 (_initialize_symtab): Extend the help text on "info types" and
6705 register command completer.
6706
6707 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6708
6709 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6710 (lookup_symbol_in_objfile): Change int to block_enum and add a
6711 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6712
6713 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6714
6715 * MAINTAINERS (Write After Approval): Add self.
6716
6717 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6720 instruction to the dummy code region.
6721
6722 2019-07-19 Tom Tromey <tromey@adacore.com>
6723
6724 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6725 (ARGSUSED, PARAMS, __func__): Remove rules.
6726
6727 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6728
6729 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6730 * features/arm/arm-with-iwmmxt.c: Remove.
6731 * features/arm/arm-with-iwmmxt.xml: Remove.
6732 * features/arm/arm-with-m-fpa-layout.c: Remove.
6733 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6734 * features/arm/arm-with-m-vfp-d16.c: Remove.
6735 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6736 * features/arm/arm-with-m.c: Remove.
6737 * features/arm/arm-with-m.xml: Remove.
6738 * features/arm/arm-with-neon.c: Remove.
6739 * features/arm/arm-with-neon.xml: Remove.
6740 * features/arm/arm-with-vfpv2.c: Remove.
6741 * features/arm/arm-with-vfpv2.xml: Remove.
6742 * features/arm/arm-with-vfpv3.c: Remove.
6743 * features/arm/arm-with-vfpv3.xml: Remove.
6744
6745 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6746
6747 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6748
6749 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6750
6751 * arch/aarch32.c (aarch32_create_target_description): Create
6752 target descriptions using features.
6753 * arch/arm.c (arm_create_target_description)
6754 (arm_create_mprofile_target_description): Likewise.
6755 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6756
6757 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6758
6759 * Makefile.in: Add new files.
6760 * aarch32-tdep.c: New file.
6761 * aarch32-tdep.h: New file.
6762 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6763 Call aarch32_read_description.
6764 * arch/aarch32.c: New file.
6765 * arch/aarch32.h: New file.
6766 * arch/arm.c (arm_create_target_description)
6767 (arm_create_mprofile_target_description): New function.
6768 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6769 (arm_create_target_description)
6770 (arm_create_mprofile_target_description): New declaration.
6771 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6772 read_description functions.
6773 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6774 Likewise.
6775 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6776 * arm-tdep.c (tdesc_arm_list): New variable.
6777 (arm_register_g_packet_guesses): Call create description functions.
6778 (arm_read_description) (arm_read_mprofile_description): New
6779 function.
6780 * arm-tdep.h (arm_read_description)
6781 (arm_read_mprofile_description): Add declaration.
6782 * configure.tgt: Add new files.
6783
6784 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6785
6786 * top.c (new_ui_command): Open specified terminal just once.
6787
6788 2019-07-18 Tom Tromey <tromey@adacore.com>
6789
6790 * symtab.c (main_name): Constify return type.
6791 * symfile.c (set_initial_language): Update.
6792 * symtab.h (main_name): Constify return type.
6793
6794 2019-07-17 Tom Tromey <tom@tromey.com>
6795
6796 * tui/tui-winsource.c (tui_update_source_window)
6797 (tui_update_source_window_as_is)
6798 (tui_update_source_windows_with_line): Remove return.
6799 * tui/tui-disasm.c (tui_show_disassem)
6800 (tui_show_disassem_and_update_source): Remove return.
6801 * tui/tui.c (tui_reset): Remove return.
6802 * tui/tui-wingeneral.c
6803 (tui_check_and_display_highlight_if_needed): Remove return.
6804
6805 2019-07-17 Tom Tromey <tom@tromey.com>
6806
6807 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6808
6809 2019-07-17 Tom Tromey <tom@tromey.com>
6810
6811 * tui/tui-winsource.h (struct tui_exec_info_window)
6812 (struct tui_source_window_base): Move from tui-data.h.
6813 * tui/tui-winsource.c: Move many method definitions from
6814 elsewhere. Remove "structuring" comments.
6815 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6816 (tui_source_window_base::refresh_window): Move to
6817 tui-winsource.c.
6818 * tui/tui-win.c (tui_source_window_base::refresh_all)
6819 (tui_source_window_base::update_tab_width)
6820 (tui_source_window_base::set_new_height)
6821 (tui_source_window_base::do_make_visible_with_new_height): Move to
6822 tui-winsource.c.
6823 * tui/tui-source.h: Update.
6824 * tui/tui-source.c (tui_source_window_base::reset): Move to
6825 tui-winsource.c.
6826 * tui/tui-disasm.h: Update.
6827 * tui/tui-data.h (struct tui_exec_info_window): Move to
6828 tui-winsource.h.
6829 (struct tui_source_window_base): Likewise.
6830 * tui/tui-data.c (tui_source_window_base::clear_detail)
6831 (tui_source_window_base, ~tui_source_window_base): Move to
6832 tui-winsource.c.
6833
6834 2019-07-17 Tom Tromey <tom@tromey.com>
6835
6836 * tui/tui-win.c (tui_resize_all)
6837 (tui_source_window_base::update_tab_width)
6838 (tui_adjust_win_heights): Update.
6839 (tui_win_info::make_invisible_and_set_new_height): Rename from
6840 make_invisible_and_set_new_height.
6841 * tui/tui-data.h (struct tui_win_info)
6842 <make_invisible_and_set_new_height>: New method.
6843
6844 2019-07-17 Tom Tromey <tom@tromey.com>
6845
6846 * tui/tui.c: Update.
6847 * tui/tui-source.h (struct tui_source_window): Move from
6848 tui-data.h.
6849 * tui/tui-layout.c: Update.
6850 * tui/tui-disasm.c: Update.
6851 * tui/tui-data.h (struct tui_source_window): Move to
6852 tui-source.h.
6853
6854 2019-07-17 Tom Tromey <tom@tromey.com>
6855
6856 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6857 tui-data.h.
6858 * tui/tui-data.h (struct tui_disasm_window): Move to
6859 tui-disasm.h.
6860
6861 2019-07-17 Tom Tromey <tom@tromey.com>
6862
6863 * tui/tui-regs.h (struct tui_data_item_window): Move from
6864 tui-data.h.
6865 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6866 * tui/tui-data.h (struct tui_data_item_window): Move to
6867 tui-regs.h.
6868 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6869
6870 2019-07-17 Tom Tromey <tom@tromey.com>
6871
6872 * tui/tui.c: Update.
6873 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6874 (tui_cmd_window::max_height): Move to tui-command.c.
6875 * tui/tui-layout.c: Update.
6876 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6877 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6878 tui-command.c.
6879 * tui/tui-command.h (struct tui_cmd_window): Move from
6880 tui-data.h.
6881 * tui/tui-command.c: Remove "structuring" comments.
6882 (tui_cmd_window::clear_detail)
6883 (tui_cmd_window::do_make_visible_with_new_height)
6884 (tui_cmd_window::max_height): Move from elsewhere.
6885
6886 2019-07-17 Tom Tromey <tom@tromey.com>
6887
6888 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6889 Now static.
6890 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6891 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6892
6893 2019-07-17 Tom Tromey <tom@tromey.com>
6894
6895 * tui/tui.c: Update.
6896 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6897 tui-regs.c.
6898 * tui/tui-windata.h: Remove file.
6899 * tui/tui-windata.c: Remove file.
6900 * tui/tui-win.c (tui_data_window::set_new_height)
6901 (tui_data_window::do_make_visible_with_new_height): Move to
6902 tui-regs.c.
6903 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6904 * tui/tui-regs.c: Remove "structuring" comments.
6905 (tui_data_window::first_data_item_displayed)
6906 (tui_data_window::delete_data_content_windows)
6907 (tui_data_window::erase_data_content)
6908 (tui_data_window::display_all_data)
6909 (tui_data_window::refresh_all)
6910 (tui_data_window::do_scroll_vertical)
6911 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6912 (tui_data_window::do_make_visible_with_new_height)
6913 (tui_data_window::refresh_window): Move from elsewhere.
6914 (_initialize_tui_regs): Move to end of file.
6915 * tui/tui-layout.c: Update.
6916 * tui/tui-hooks.c: Update.
6917 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6918 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6919 tui-regs.c.
6920 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6921
6922 2019-07-17 Tom Tromey <tom@tromey.com>
6923
6924 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6925 seen.
6926
6927 2019-07-17 Tom Tromey <tom@tromey.com>
6928
6929 * tui/tui-win.c (tui_source_window_base::set_new_height)
6930 (tui_source_window_base::do_make_visible_with_new_height): Use
6931 m_has_locator field directly.
6932 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6933 method.
6934 (struct tui_source_window_base) <has_locator>: Likewise.
6935
6936 2019-07-17 Tom Tromey <tom@tromey.com>
6937
6938 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6939 Don't declare.
6940 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6941 Remove.
6942 * tui/tui-win.c (tui_source_window_base::set_new_height)
6943 (tui_source_window_base::set_new_height)
6944 (make_invisible_and_set_new_height)
6945 (tui_source_window_base::do_make_visible_with_new_height)
6946 (tui_source_window_base::do_make_visible_with_new_height):
6947 Update.
6948 * tui/tui-layout.c (show_source_disasm_command, show_data)
6949 (show_source_or_disasm_and_command): Update.
6950 * tui/tui-layout.c (show_layout): Update.
6951
6952 2019-07-17 Tom Tromey <tom@tromey.com>
6953
6954 * tui/tui-layout.c (make_data_window): Remove.
6955 (show_data): Unify creation and re-initialization cases.
6956
6957 2019-07-17 Tom Tromey <tom@tromey.com>
6958
6959 * tui/tui-layout.c (make_source_window, make_disasm_window):
6960 Remove.
6961 (show_data): Unify creation and re-initialization cases.
6962
6963 2019-07-17 Tom Tromey <tom@tromey.com>
6964
6965 * tui/tui-layout.c (make_command_window): Remove.
6966 (show_source_disasm_command, show_source_or_disasm_and_command):
6967 Unify creation and re-initialization cases.
6968
6969 2019-07-17 Tom Tromey <tom@tromey.com>
6970
6971 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6972 creation and re-initialization cases.
6973
6974 2019-07-17 Tom Tromey <tom@tromey.com>
6975
6976 * tui/tui-regs.c (tui_get_register): Return void.
6977
6978 2019-07-17 Tom Tromey <tom@tromey.com>
6979
6980 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6981 Simplify.
6982
6983 2019-07-17 Tom Tromey <tom@tromey.com>
6984
6985 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6986 resetting.
6987
6988 2019-07-17 Tom Tromey <tom@tromey.com>
6989
6990 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6991 * tui/tui-regs.c (tui_reg_layout): New function.
6992 (tui_show_registers, tui_reg_command): Use it.
6993 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6994 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6995 parameters.
6996 (tui_layout_command): Remove.
6997
6998 2019-07-17 Tom Tromey <tom@tromey.com>
6999
7000 * tui/tui-layout.h (tui/tui-layout): Return void.
7001 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
7002
7003 2019-07-17 Tom Tromey <tom@tromey.com>
7004
7005 * tui/tui-layout.c (show_source_disasm_command, show_data):
7006 Update.
7007 (reset_locator): Remove.
7008 (show_source_or_disasm_and_command): Update.
7009
7010 2019-07-17 Tom Tromey <tom@tromey.com>
7011
7012 * tui/tui-source.c (tui_source_window_base::reset): Remove
7013 win_type parameter.
7014 * tui/tui-layout.c (make_command_window, make_source_window)
7015 (make_disasm_window, make_data_window)
7016 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
7017 (reset_locator, show_source_or_disasm_and_command): Update.
7018 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
7019 win_type parameter.
7020 (struct tui_source_window_base) <reset>: Likewise.
7021
7022 2019-07-17 Tom Tromey <tom@tromey.com>
7023
7024 * tui/tui-layout.c (show_source_disasm_command): Use
7025 reset_locator.
7026 (reset_locator): New function.
7027 (init_and_make_win): Remove.
7028 (show_source_or_disasm_and_command): Use reset_locator.
7029
7030 2019-07-17 Tom Tromey <tom@tromey.com>
7031
7032 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7033 condition.
7034 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7035 Remove condition.
7036 * tui/tui-source.c (tui_source_window_base::reset): New method.
7037 * tui/tui-layout.c (make_command_window): Don't call
7038 init_and_make_win.
7039 (make_source_window, make_disasm_window): Don't call
7040 make_source_or_disasm_window.
7041 (make_data_window): Don't call init_and_make_win. Change calling
7042 convention.
7043 (show_source_disasm_command, show_data): Simplify.
7044 (make_source_or_disasm_window): Remove.
7045 (show_source_or_disasm_and_command): Simplify.
7046 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7047 (struct tui_source_window_base) <reset>: Likewise.
7048 <execution_info>: Remove initializer.
7049 * tui/tui-data.c (tui_source_window_base): Initialize
7050 execution_info.
7051
7052 2019-07-17 Tom Tromey <tom@tromey.com>
7053
7054 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7055 variable.
7056
7057 2019-07-17 Tom Tromey <tom@tromey.com>
7058
7059 * tui/tui.c (tui_rl_other_window): Update.
7060 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7061 superclass method first. Always iterate over regs_content.
7062 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7063 method.
7064 * tui/tui-win.c (tui_set_focus_command): Update.
7065
7066 2019-07-17 Tom Tromey <tom@tromey.com>
7067
7068 * tui/tui-win.c (tui_set_focus_command): Rename from
7069 tui_set_focus. Call tui_enable.
7070 (tui_set_focus_command): Remove.
7071
7072 2019-07-17 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7075 refresh_window.
7076 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7077 touchwin.
7078 (tui_data_window::refresh_window): Call refresh_window on data
7079 items. Always call superclass refresh_window.
7080 (tui_win_info::refresh): Remove.
7081 (tui_source_window_base::refresh_window): Update.
7082 (tui_refresh_all): Update.
7083 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7084 refresh_window.
7085 (show_source_or_disasm_and_command): Likewise.
7086 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7087 (struct tui_source_window_base) <refresh>: Likewise.
7088
7089 2019-07-17 Tom Tromey <tom@tromey.com>
7090
7091 * tui/tui-winsource.c (tui_clear_source_content)
7092 (tui_show_source_content): Update.
7093 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7094 whether content is empty.
7095 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7096 Remove.
7097
7098 2019-07-17 Tom Tromey <tom@tromey.com>
7099
7100 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7101 window's contents.
7102 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7103 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7104
7105 2019-07-17 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7108 (struct tui_data_item_window): Update.
7109
7110 2019-07-17 Tom Tromey <tom@tromey.com>
7111
7112 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7113 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7114 defines.
7115
7116 2019-07-17 Tom Tromey <tom@tromey.com>
7117
7118 * tui/tui-winsource.h (tui_erase_source_content)
7119 (tui_clear_source_content): Remove "display_prompt" parameter.
7120 * tui/tui-winsource.c (tui_update_source_window_as_is)
7121 (tui_update_source_windows_with_addr): Update.
7122 (tui_clear_source_content): Remove "display_prompt" parameter.
7123 (tui_erase_source_content): Likewise. Simplify.
7124 (tui_show_source_content): Update.
7125 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7126 * tui/tui-stack.c (tui_show_frame_info): Update.
7127 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7128 Remove defines.
7129
7130 2019-07-17 Tom Tromey <tom@tromey.com>
7131
7132 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7133 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7134 parameter.
7135 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7136 parameter.
7137
7138 2019-07-17 Tom Tromey <tom@tromey.com>
7139
7140 * tui/tui-winsource.c (tui_clear_source_content)
7141 (tui_show_source_content, tui_show_exec_info_content)
7142 (tui_clear_exec_info_content): Update.
7143 * tui/tui-stack.c (tui_show_locator_content): Update.
7144 (tui_show_frame_info): Update.
7145 * tui/tui-source.h (tui_source_window): Don't declare.
7146 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7147 from tui_source_is_displayed.
7148 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7149 Remove field.
7150 (struct tui_source_window_base) <content_in_use>: New field. Now
7151 bool.
7152 (struct tui_source_window) <showing_source_p>: New method.
7153 (TUI_SRC_WIN): Change cast.
7154 * tui/tui-data.c (tui_initialize_static_data): Update.
7155
7156 2019-07-17 Tom Tromey <tom@tromey.com>
7157
7158 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7159 location_matches_p.
7160 * tui/tui-source.c (tui_source_window::location_matches_p): New
7161 method.
7162 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7163 method.
7164 * tui/tui-data.h (struct tui_source_window_base)
7165 <location_matches_p>: New method.
7166 (struct tui_source_window, struct tui_disasm_window)
7167 <location_matches_p>: Likewise.
7168
7169 2019-07-17 Tom Tromey <tom@tromey.com>
7170
7171 * tui/tui-win.c (tui_set_win_height_command): Rename from
7172 tui_set_win_height.
7173 (tui_set_win_height_command): Remove.
7174
7175 2019-07-17 Tom Tromey <tom@tromey.com>
7176
7177 * tui/tui-source.c (tui_source_window): New constructor. Add
7178 observer.
7179 (~tui_source_window): New destructor.
7180 (tui_source_window::style_changed): New method.
7181 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7182 (tui_attach_detach_observers): Update.
7183 * tui/tui-data.h (struct tui_source_window): Make constructor not
7184 inline. Add destructor.
7185 (struct tui_source_window) <style_changed>: New method.
7186 <m_observable>: New member.
7187
7188 2019-07-17 Tom Tromey <tom@tromey.com>
7189
7190 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7191 * tui/tui-win.c (tui_resize_all): Fix typo.
7192
7193 2019-07-17 Tom Tromey <tom@tromey.com>
7194
7195 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7196 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7197 (tui_refresh_all): Remove "list" parameter. Use foreach.
7198 * tui/tui-win.c (window_name_completer): Use foreach.
7199 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7200 (update_tab_width): Likewise.
7201 * tui/tui-layout.c (show_layout): Update.
7202 * tui/tui-data.h (class tui_window_iterator): New.
7203 (struct all_tui_windows): New.
7204 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7205
7206 2019-07-17 Tom Tromey <tom@tromey.com>
7207
7208 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7209 parameter. Don't reference globals.
7210 (tui_reg_command): Update.
7211
7212 2019-07-17 Tom Tromey <tom@tromey.com>
7213
7214 * tui/tui-regs.c (tui_show_registers): Simplify.
7215
7216 2019-07-17 Tom Tromey <tom@tromey.com>
7217
7218 * tui/tui-regs.c (tui_show_registers): Update.
7219 (tui_show_register_group): Add win_info parameter.
7220
7221 2019-07-17 Tom Tromey <tom@tromey.com>
7222
7223 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7224 Rename from tui_display_reg_element_at_line.
7225 (tui_data_window::display_registers_from_line): Update.
7226 * tui/tui-data.h (struct tui_data_window)
7227 <display_reg_element_at_line>: New method.
7228
7229 2019-07-17 Tom Tromey <tom@tromey.com>
7230
7231 * tui/tui-regs.h (tui_display_registers_from)
7232 (tui_display_registers_from_line): Don't declare.
7233 * tui/tui-windata.c (tui_data_window::display_all_data)
7234 (tui_data_window::refresh_all)
7235 (tui_data_window::do_scroll_vertical): Update.
7236 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7237 from tui_display_registers_from.
7238 (tui_display_reg_element_at_line): Update.
7239 (tui_data_window::display_registers_from_line): Rename from
7240 tui_display_registers_from_line.
7241 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7242 display_registers_from_line>: New methods.
7243
7244 2019-07-17 Tom Tromey <tom@tromey.com>
7245
7246 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7247 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7248 from tui_erase_data_content.
7249 (tui_data_window::display_all_data)
7250 (tui_data_window::refresh_all)
7251 (tui_data_window::do_scroll_vertical): Update.
7252 * tui/tui-regs.c (tui_show_registers): Update.
7253 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7254 New method.
7255
7256 2019-07-17 Tom Tromey <tom@tromey.com>
7257
7258 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7259 declare.
7260 * tui/tui-windata.c
7261 (tui_data_window::delete_data_content_windows): Rename from
7262 tui_delete_data_content_windows.
7263 (tui_data_window::display_all_data)
7264 (tui_data_window::do_scroll_vertical): Update.
7265 * tui/tui-data.h (struct tui_data_window)
7266 <delete_data_content_windows>: New method.
7267
7268 2019-07-17 Tom Tromey <tom@tromey.com>
7269
7270 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7271 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7272
7273 2019-07-17 Tom Tromey <tom@tromey.com>
7274
7275 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7276 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7277 from tui_display_all_data.
7278 * tui/tui-win.c
7279 (tui_data_window::do_make_visible_with_new_height): Update.
7280 * tui/tui-regs.c (tui_show_registers): Update.
7281 * tui/tui-layout.c (tui_set_layout): Update.
7282 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7283 method.
7284
7285 2019-07-17 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7288 * tui/tui-windata.c (tui_display_data_from): Remove.
7289 (tui_data_window::refresh_all): Update.
7290
7291 2019-07-17 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7294 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7295 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7296 tui_display_registers_from_line.
7297 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7298 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7299 "force_display" parameter.
7300
7301 2019-07-17 Tom Tromey <tom@tromey.com>
7302
7303 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7304 declare.
7305 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7306 Rename from tui_first_reg_element_no_inline.
7307 (tui_display_reg_element_at_line)
7308 (tui_display_registers_from_line): Update.
7309 * tui/tui-data.h (struct tui_data_window)
7310 <first_reg_element_no_inline>: New method.
7311
7312 2019-07-17 Tom Tromey <tom@tromey.com>
7313
7314 * tui/tui-windata.c (tui_display_data_from)
7315 (tui_data_window::do_scroll_vertical): Update.
7316 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7317 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7318 Rename from tui_line_from_reg_element_no.
7319 (tui_display_registers_from_line): Update.
7320 * tui/tui-data.h (struct tui_data_window)
7321 <line_from_reg_element_no>: New method.
7322
7323 2019-07-17 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7326 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7327 tui_last_regs_line_no.
7328 (tui_display_reg_element_at_line)
7329 (tui_display_registers_from_line): Update.
7330 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7331 method.
7332
7333 2019-07-17 Tom Tromey <tom@tromey.com>
7334
7335 PR tui/24722:
7336 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7337 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7338 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7339 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7340 (tui_update_breakpoint_info): Likewise.
7341 * tui/tui-hooks.c (tui_event_create_breakpoint)
7342 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7343 Update.
7344
7345 2019-07-17 Tom Tromey <tom@tromey.com>
7346
7347 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7348
7349 2019-07-17 Tom Tromey <tom@tromey.com>
7350
7351 * tui/tui-winsource.c (tui_update_source_window_as_is)
7352 (tui_update_source_windows_with_addr): Update.
7353 * tui/tui-source.h (tui_set_source_content)
7354 (tui_show_symtab_source): Add "win_info" parameter.
7355 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7356 parameter.
7357 (tui_show_symtab_source): Likewise.
7358
7359 2019-07-17 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-wingeneral.c
7362 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7363
7364 2019-07-17 Tom Tromey <tom@tromey.com>
7365
7366 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7367 (struct tui_cmd_window) <can_scroll>: New method.
7368 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7369 method.
7370
7371 2019-07-17 Tom Tromey <tromey@adacore.com>
7372
7373 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7374 do_field_signed>: Rename. Change type of "value".
7375 * ui-out.c (ui_out::field_signed): Rename from field_int.
7376 Change type of "value".
7377 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7378 type of "value".
7379 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7380 do_field_int. Change type of "value".
7381 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7382 do_field_int. Change type of "value".
7383 * tracepoint.c (trace_status_mi, tfind_1)
7384 (print_one_static_tracepoint_marker): Update.
7385 * thread.c (print_thread_info_1, print_selected_thread_frame):
7386 Update.
7387 * stack.c (print_frame, print_frame_info): Update.
7388 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7389 Update.
7390 * source.c (print_source_lines_base): Update.
7391 * skip.c (info_skip_command): Update.
7392 * record-btrace.c (btrace_ui_out_decode_error)
7393 (btrace_call_history_src_line): Update.
7394 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7395 Update.
7396 * progspace.c (print_program_space): Update.
7397 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7398 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7399 do_field_int. Change type of "value".
7400 * mi/mi-out.c (mi_ui_out::do_table_begin)
7401 (mi_ui_out::do_table_header): Update.
7402 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7403 type of "value".
7404 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7405 (mi_cmd_data_list_changed_registers, output_register)
7406 (mi_cmd_data_read_memory, mi_load_progress)
7407 (mi_cmd_trace_frame_collected): Update.
7408 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7409 Update.
7410 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7411 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7412 (mi_cmd_var_list_children, varobj_update_one): Update.
7413 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7414 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7415 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7416 * inferior.c (print_inferior): Update.
7417 * gdb_bfd.c (print_one_bfd): Update.
7418 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7419 Update.
7420 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7421 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7422 do_field_int. Change type of "value".
7423 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7424 do_field_int. Change type of "value".
7425 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7426 (print_one_breakpoint_location, print_it_catch_fork)
7427 (print_one_catch_fork, print_it_catch_vfork)
7428 (print_one_catch_vfork, print_it_catch_solib)
7429 (print_it_catch_exec, print_it_ranged_breakpoint)
7430 (print_mention_watchpoint, print_mention_masked_watchpoint)
7431 (bkpt_print_it, update_static_tracepoint): Update.
7432 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7433 * break-catch-syscall.c (print_it_catch_syscall): Update.
7434 * ada-tasks.c (print_ada_task_info): Update.
7435 * ada-lang.c (print_it_exception, print_mention_exception):
7436 Update.
7437
7438 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 PR breakpoints/24541
7441 * gdbarch.c: Regenerate.
7442 * gdbarch.h: Regenerate.
7443 * gdbarch.sh: Adjust return type and parameter types for
7444 'stap_adjust_register'.
7445 (i386_stap_adjust_register): Adjust signature and return new
7446 register name.
7447 * stap-probe.c (stap_parse_register_operand): Adjust use of
7448 'gdbarch_stap_adjust_register'.
7449
7450 2019-07-17 Tom Tromey <tromey@adacore.com>
7451
7452 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7453 declare VEC.
7454 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7455 std::vector.
7456 (struct s390_process_info): Add initializers.
7457 (s390_add_process): Use new.
7458 (s390_linux_nat_target::low_forget_process): Use delete.
7459 (s390_linux_nat_target::low_new_fork)
7460 (s390_linux_nat_target::stopped_by_watchpoint)
7461 (s390_linux_nat_target::low_prepare_to_resume)
7462 (s390_linux_nat_target::insert_watchpoint)
7463 (s390_linux_nat_target::insert_hw_breakpoint)
7464 (s390_linux_nat_target::remove_watchpoint)
7465 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7466
7467 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7468
7469 * aarch64-fbsd-nat.c: Include regcache.h.
7470 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7471 argument.
7472 (aarch64_fbsd_nat_target::fetch_registers)
7473 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7474 variable.
7475 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7476
7477 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7478
7479 * fbsd-nat.c: Include gdbarch.h.
7480
7481 2019-07-15 Tom Tromey <tromey@adacore.com>
7482
7483 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7484
7485 2019-07-15 Tom Tromey <tromey@adacore.com>
7486
7487 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7488 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7489 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7490 * cli-out.c (cli_ui_out::do_field_int): New method.
7491 * ui-out.c (ui_out::field_unsigned): New method.
7492 * symfile.c (generic_load): Use field_unsigned.
7493 (print_transfer_performance): Likewise.
7494 * record-btrace.c (ui_out_field_uint): Remove.
7495 (btrace_call_history_insn_range, btrace_call_history): Use
7496 field_unsigned.
7497 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7498 field_unsigned.
7499 * ui-out.h (class ui_out) <field_unsigned>: New method.
7500 <do_field_unsigned>: Likewise.
7501
7502 2019-07-15 Tom Tromey <tromey@adacore.com>
7503
7504 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7505 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7506 * target.c (flash_erase_command): Use field_string.
7507 * infrun.c (print_signal_received_reason): Use field_string.
7508 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7509 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7510 field_string.
7511 * ada-tasks.c (print_ada_task_info): Use field_string.
7512
7513 2019-07-15 Tom Tromey <tromey@adacore.com>
7514
7515 * target.c (flash_erase_command): Use field_core_addr.
7516 * symfile.c (generic_load): Use field_core_addr.
7517 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7518 Use field_core_addr.
7519 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7520 field_core_addr.
7521
7522 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7523
7524 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7525 value if its desired type is smaller than a CORE_ADDR and signed.
7526
7527 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7528
7529 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7530 of changes to field names, and use new is_reference field to
7531 decide if a property is a reference or not.
7532 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7533 field.
7534 (struct dwarf2_property_baton): Update header comment, rename
7535 'referenced_type' to 'property_type' and update comments.
7536 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7537 default property type, store in property baton, update to take
7538 accound of renamed field.
7539 (read_func_scope): Update call to attr_to_dynamic_prop.
7540 (read_array_type): Likewise.
7541 (dwarf2_per_cu_addr_sized_int_type): New function.
7542 (read_subrange_index_type): Move type finding code to
7543 dwarf2_per_cu_addr_sized_int_type.
7544 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7545 (dwarf2_per_cu_addr_type): New function.
7546 (set_die_type): Update calls to attr_to_dynamic_prop.
7547
7548 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7549
7550 * dwarf2read.c (read_subrange_index_type): New function.
7551 (read_subrange_type): Move code into new function and call it.
7552 * gdbtypes.c (create_range_type): Add some asserts.
7553
7554 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7555
7556 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7557 update return statements.
7558 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7559 declaration, and update comment to match.
7560 * gdbtypes.c (resolve_dynamic_array): Update call to
7561 dwarf2_evaluate_property to match new return type.
7562
7563 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7564
7565 * valarith.c (value_subscripted_rvalue): Change lowerbound
7566 parameter type from int to LONGEST.
7567 * value.h (value_subscripted_rvalue): Likewise in declaration.
7568
7569 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * cli/cli-utils.c (info_print_command_completer): New function.
7572 * cli/cli-utils.h: Add 'completer.h' include, and forward
7573 declaration for 'struct cmd_list_element'.
7574 (info_print_command_completer): Declare.
7575 * stack.c (_initialize_stack): Add completer for 'info locals' and
7576 'info args'.
7577 * symtab.c (_initialize_symtab): Add completer for 'info
7578 variables' and 'info functions'.
7579 * NEWS: Mention completion for additional info commands.
7580
7581 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 * cli/cli-utils.c (extract_info_print_args): Delete.
7584 (extract_arg_maybe_quoted): Delete.
7585 (info_print_options_defs): New variable.
7586 (make_info_print_options_def_group): New function.
7587 (extract_info_print_options): Define new function.
7588 * cli/cli-utils.h (extract_info_print_args): Delete.
7589 (struct info_print_options): New structure.
7590 (extract_info_print_options): Declare new function.
7591 * stack.c (info_locals_command): Update to use new
7592 extract_info_print_options, also add a header comment.
7593 (info_args_command): Likewise.
7594 * symtab.c (info_variables_command): Likewise.
7595 (info_functions_command): Likewise.
7596
7597 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7598
7599 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7600 to extract string arguments.
7601 * common/common-utils.c (extract_string_maybe_quoted): New function.
7602 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7603
7604 2019-07-11 Tom Tromey <tromey@adacore.com>
7605
7606 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7607 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7608 * top.h (gdbinit): Don't declare.
7609 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7610 into...
7611 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7612 * top.c (gdb_init): Don't call init_cli_cmds.
7613 (gdbinit): Remove.
7614 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7615
7616 2019-07-11 Tom Tromey <tromey@adacore.com>
7617
7618 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7619 after it has been moved.
7620
7621 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7622
7623 * valops.c (value_must_coerce_to_target): Change return type to
7624 bool.
7625 * value.h (value_must_coerce_to_target): Likewise.
7626
7627 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * breakpoint.c (is_hardware_watchpoint): Remove
7630 forward-declaration.
7631 (is_masked_watchpoint): Change return type to bool.
7632 (is_tracepoint): Likewise.
7633 (is_breakpoint): Likewise.
7634 (is_hardware_watchpoint): Likewise.
7635 (is_watchpoint): Likewise.
7636 (is_no_memory_software_watchpoint): Likewise.
7637 (is_catchpoint): Likewise.
7638 (breakpoint_1): Make FILTER parameter's return type bool.
7639 is_masked_watchpoint): Change return type to bool.
7640 (save_breakpoints): Make FILTER parameter's return type bool.
7641 * breakpoint.h (is_breakpoint): Change return type to bool.
7642 (is_watchpoint): Likewise.
7643 (is_catchpoint): Likewise.
7644 (is_tracepoint): Likewise.
7645
7646 2019-07-10 Tom Tromey <tom@tromey.com>
7647
7648 * defs.h: Don't include gdbarch.h.
7649 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7650 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7651 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7652 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7653 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7654 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7655 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7656 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7657 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7658 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7659 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7660 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7661 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7662 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7663 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7664 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7665 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7666 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7667 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7668 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7669 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7670 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7671 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7672 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7673 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7674 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7675 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7676
7677 2019-07-10 Tom Tromey <tromey@adacore.com>
7678
7679 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7680 * breakpoint.c (init_ada_exception_breakpoint): Register as
7681 bp_catchpoint.
7682 (print_one_breakpoint_location, print_one_breakpoint): Use
7683 is_ada_exception_catchpoint.
7684 * ada-lang.c (class ada_catchpoint_location): Pass
7685 bp_loc_software_breakpoint to bp_location constructor.
7686 (is_ada_exception_catchpoint): New function.
7687
7688 2019-07-10 Tom Tromey <tromey@adacore.com>
7689
7690 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7691 VEC.
7692 (struct arm_exidx_entry): New method operator<.
7693 (struct arm_exidx_data) <section_maps>: Change type.
7694 (arm_exidx_data_free): Remove.
7695 (arm_exidx_data_key): Change type. Move lower.
7696 (arm_exidx_new_objfile): Update.
7697 (arm_compare_exidx_entries): Remove.
7698 (arm_find_exidx_entry, _initialize_arm_tdep)
7699
7700 2019-07-10 Tom Tromey <tromey@adacore.com>
7701
7702 * solib-spu.c (ocl_program_data_key): Change type.
7703 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7704 Update.
7705
7706 2019-07-10 Tom Tromey <tromey@adacore.com>
7707
7708 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7709 (struct solib_aix_inferior_data) <library_list>: Change type.
7710 (solib_aix_inferior_data_handle): Change type.
7711 (get_solib_aix_inferior_data): Update.
7712 (solib_aix_free_library_list): Remove.
7713 (library_list_start_library): Update.
7714 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7715 return type.
7716 (solib_aix_get_library_list)
7717 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7718 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7719
7720 2019-07-10 Tom Tromey <tromey@adacore.com>
7721
7722 * solib-dsbt.c (struct dsbt_info): Add initializers.
7723 (solib_dsbt_pspace_data): Change type.
7724 (dsbt_pspace_data_cleanup): Remove.
7725 (get_dsbt_info, _initialize_dsbt_solib): Update.
7726
7727 2019-07-10 Tom Tromey <tromey@adacore.com>
7728
7729 * spu-tdep.c (spu_overlay_data): Change type.
7730 (spu_get_overlay_table, spu_overlay_new_objfile)
7731 (_initialize_spu_tdep): Update.
7732
7733 2019-07-10 Tom Tromey <tromey@adacore.com>
7734
7735 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7736 destructor.
7737 (dbx_objfile_data_key): Change type and declare later.
7738 (DBX_SYMFILE_INFO): Rewrite.
7739 * dbxread.c (dbx_objfile_data_key): Change type.
7740 (dbx_symfile_init): Update.
7741 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7742 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7743 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7744
7745 2019-07-10 Tom Tromey <tromey@adacore.com>
7746
7747 * jit.c (jit_program_space_key): Change type. Move lower.
7748 (get_jit_program_space_data): Update.
7749 (jit_program_space_data_cleanup): Remove.
7750 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7751 Update.
7752 (struct jit_program_space_data): Add initializers.
7753
7754 2019-07-10 Tom Tromey <tromey@adacore.com>
7755
7756 * solib-darwin.c (struct darwin_info): Add initializers.
7757 (solib_darwin_pspace_data): Change type.
7758 (darwin_pspace_data_cleanup): Remove.
7759 (get_darwin_info, _initialize_darwin_solib): Update.
7760
7761 2019-07-10 Tom Tromey <tromey@adacore.com>
7762
7763 * remote-sim.c (struct sim_inferior_data): Add initializers,
7764 constructor, and destructor.
7765 (sim_inferior_data_key): Change type. Move lower.
7766 (check_for_duplicate_sim_descriptor): Update.
7767 (get_sim_inferior_data): Use new. Update.
7768 (~sim_inferior_data_cleanup): Rename from
7769 sim_inferior_data_cleanup. Simplify.
7770 (gdbsim_close_inferior, simulator_command)
7771 (sim_command_completer, _initialize_remote_sim): Update.
7772 (next_pid, INITIAL_PID): Move earlier.
7773
7774 2019-07-10 Tom Tromey <tromey@adacore.com>
7775
7776 * python/python-internal.h (create_thread_object): Return
7777 gdbpy_ref.
7778 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7779 * python/py-inferior.c (struct threadlist_entry): Add
7780 constructor.
7781 <thread_obj>: Now a gdbpy_ref.
7782 (thread_to_thread_object): Update.
7783 (add_thread_object): Use new.
7784 (delete_thread_object): Use delete.
7785 (infpy_threads): Update.
7786 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7787 GIL.
7788
7789 2019-07-10 Tom Tromey <tromey@adacore.com>
7790
7791 * valops.c (value_cast): Specialize error message for Ada.
7792
7793 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7794
7795 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7796
7797 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7798
7799 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7800 bpstat_should_step): Return bool, adjust comments.
7801 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7802 bpstat_should_step): Likewise.
7803
7804 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7805
7806 * features/Makefile: Use feature target descriptions for Arm.
7807 * features/arm/arm-core.c: Generate new file.
7808 * features/arm/arm-fpa.c: Likewise.
7809 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7810 * features/arm/arm-m-profile.c: Likewise.
7811 * features/arm/arm-vfpv2.c: Likewise.
7812 * features/arm/arm-vfpv3.c: Likewise.
7813 * features/arm/xscale-iwmmxt.c: Likewise.
7814 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7815
7816 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7817
7818 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7819 ptrace earlier.
7820
7821 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7822
7823 * features/aarch64-pauth.c: Regenerate.
7824
7825 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7826
7827 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7828 bool.
7829 (bpstat_what): Use false instead of 0.
7830
7831 2019-07-09 Pedro Alves <palves@redhat.com>
7832
7833 * break-catch-throw.c (is_exception_catchpoint): New.
7834 * breakpoint.c (print_one_breakpoint_location): New parameter
7835 'raw_loc'. Handle it. Use
7836 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7837 looking at the breakpoint's type.
7838 (print_one_breakpoint): If handling "maint info breakpoints", also
7839 print locations of exception catchpoints.
7840 * breakpoint.h (is_exception_catchpoint): Declare.
7841
7842 2019-07-09 Pedro Alves <palves@redhat.com>
7843
7844 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7845 "addr" field.
7846 (allocate_location_exception_catchpoint): New.
7847 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7848 (initialize_throw_catchpoint_ops): Install
7849 allocate_location_exception_catchpoint as allocate_location
7850 method.
7851 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7852 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7853 bp_loc_other.
7854 (breakpoint_address_is_meaningful): Delete.
7855 (bl_address_is_meaningful): New.
7856 (breakpoint_locations_match): Adjust comment.
7857 (bp_location_from_bp_type): New, factored out of...
7858 (bp_location::bp_location(breakpoint *)): ... this.
7859 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7860 factored out of...
7861 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7862 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7863 breakpoint_address_is_meaningful.
7864 (bp_locations_compare): Adjust comment.
7865 (update_global_location_list): Use bl_address_is_meaningful
7866 instead of breakpoint_address_is_meaningful.
7867 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7868 explicit.
7869 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7870 * python/py-breakpoint.c (bppy_get_location): No longer check
7871 whether location is null.
7872
7873 2019-07-09 Pedro Alves <palves@redhat.com>
7874
7875 PR c++/15468
7876 * breakpoint.c (print_one_breakpoint_location): Remove
7877 single-location assert.
7878
7879 2019-07-09 Tom Tromey <tom@tromey.com>
7880
7881 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7882 * configure: Rebuild.
7883 * configure.ac: Change common to gdbsupport.
7884 * gdbsupport: Rename from common.
7885 * acinclude.m4: Change common to gdbsupport.
7886 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7887 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7888 gdbsupport.
7889 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7890 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7891 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7892 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7893 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7894 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7895 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7896 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7897 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7898 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7899 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7900 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7901 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7902 coff-pe-read.c, command.h, compile/compile-c-support.c,
7903 compile/compile-c.h, compile/compile-cplus-symbols.c,
7904 compile/compile-cplus-types.c, compile/compile-cplus.h,
7905 compile/compile-loc2c.c, compile/compile.c, completer.c,
7906 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7907 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7908 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7909 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7910 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7911 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7912 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7913 features/aarch64-core.c, features/aarch64-fpu.c,
7914 features/aarch64-pauth.c, features/aarch64-sve.c,
7915 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7916 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7917 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7918 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7919 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7920 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7921 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7922 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7923 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7924 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7925 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7926 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7927 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7928 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7929 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7930 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7931 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7932 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7933 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7934 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7935 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7936 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7937 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7938 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7939 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7940 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7941 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7942 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7943 minsyms.c, mips-linux-tdep.c, namespace.h,
7944 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7945 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7946 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7947 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7948 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7949 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7950 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7951 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7952 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7953 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7954 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7955 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7956 procfs.c, producer.c, progspace.h, psymtab.h,
7957 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7958 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7959 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7960 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7961 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7962 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7963 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7964 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7965 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7966 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7967 target-memory.c, target.c, target.h, target/waitstatus.c,
7968 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7969 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7970 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7971 unittests/array-view-selftests.c,
7972 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7973 unittests/common-utils-selftests.c,
7974 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7975 unittests/format_pieces-selftests.c,
7976 unittests/function-view-selftests.c,
7977 unittests/lookup_name_info-selftests.c,
7978 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7979 unittests/mkdir-recursive-selftests.c,
7980 unittests/observable-selftests.c,
7981 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7982 unittests/parse-connection-spec-selftests.c,
7983 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7984 unittests/scoped_fd-selftests.c,
7985 unittests/scoped_mmap-selftests.c,
7986 unittests/scoped_restore-selftests.c,
7987 unittests/string_view-selftests.c, unittests/style-selftests.c,
7988 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7989 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7990 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7991 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7992 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7993 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7994
7995 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7998 bool value.
7999 (decode_digits_ordinary): Set explicit_line field in sal.
8000 * symtab.c (skip_prologue_sal): Don't skip prologue for a
8001 symtab_and_line that was set on an explicit line number in
8002 assembler code. Do always update the recorded symtab and line if
8003 we do skip the prologue.
8004
8005 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8006
8007 * breakpoint.c (set_breakpoint_location_function): Remove
8008 explicit_loc parameter.
8009 (momentary_breakpoint_from_master): Update call to
8010 set_breakpoint_location_function.
8011 (add_location_to_breakpoint): Likewise.
8012
8013 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8014
8015 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
8016 required features based on default bfd type when no specific bfd
8017 is present.
8018
8019 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8020
8021 * NEWS: Mention that GDB printf and eval commands can now print
8022 C-style and Ada-style convenience var strings without
8023 calling the inferior.
8024 * printcmd.c (printf_c_string): Locally print GDB internal var
8025 instead of transiting via the inferior.
8026 (printf_wide_c_string): Likewise.
8027
8028 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8029
8030 PR breakpoints/25011
8031 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8032
8033 2019-07-04 Tom Tromey <tom@tromey.com>
8034
8035 PR tui/24724:
8036 * tui/tui-winsource.c (tui_clear_source_content): Update.
8037 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8038 (tui_update_breakpoint_info): Update.
8039 (tui_set_exec_info_content): Update.
8040 * tui/tui-source.c (tui_set_source_content_nil): Update.
8041 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8042 has_break.
8043 * tui/tui-data.h (enum tui_bp_flag): New.
8044 (tui_bp_flags): New enum flags type.
8045 (struct tui_source_element) <break_mode>: Change type. Rename
8046 from has_break.
8047 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8048 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8049 constants.
8050 * tui/tui-winsource.h: Fix comment.
8051
8052 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8053
8054 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8055 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8056 (store_fpregs_to_thread)
8057 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8058 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8059 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8060 (IWMMXT_REGS_SIZE): Add define.
8061 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8062 (fetch_vfp_regs, store_vfp_regs)
8063 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8064 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8065
8066 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8067
8068 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8069 defines.
8070 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8071 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8072 (ARM_INT_REGISTER_SIZE): ...to this.
8073 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8074 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8075 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8076 (arm_linux_collect_gregset, supply_nwfpe_register)
8077 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8078 defines.
8079 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8080 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8081 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8082 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8083 (arm_return_in_memory, arm_store_return_value)
8084 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8085 (arm_record_ld_st_multiple): Likewise.
8086 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8087 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8088
8089 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8090
8091 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8092 AARCH64_DISPLACED_MODIFIED_INSNS.
8093 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8094 (aarch64_displaced_step_copy_insn): Likewise.
8095 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8096 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8097 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8098 ARM_DISPLACED_MODIFIED_INSNS.
8099 * arm-tdep.c (arm_gdbarch_init): Likewise.
8100 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8101 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8102 (struct arm_displaced_step_closure): Use
8103 ARM_DISPLACED_MODIFIED_INSNS.
8104
8105 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8106
8107 * features/Makefile: Remove unused xml files.
8108 * features/aarch64.xml: Remove.
8109 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8110 * features/i386/amd64-avx-avx512.xml: Remove.
8111 * features/i386/amd64-avx-linux.xml: Remove.
8112 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8113 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8114 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8115 * features/i386/amd64-avx-mpx.xml: Remove.
8116 * features/i386/amd64-avx.xml: Remove.
8117 * features/i386/amd64-linux.xml: Remove.
8118 * features/i386/amd64-mpx-linux.xml: Remove.
8119 * features/i386/amd64-mpx.xml: Remove.
8120 * features/i386/amd64.xml: Remove.
8121 * features/i386/i386-avx-avx512-linux.xml: Remove.
8122 * features/i386/i386-avx-avx512.xml: Remove.
8123 * features/i386/i386-avx-linux.xml: Remove.
8124 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8125 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8126 * features/i386/i386-avx-mpx-linux.xml: Remove.
8127 * features/i386/i386-avx-mpx.xml: Remove.
8128 * features/i386/i386-avx.xml: Remove.
8129 * features/i386/i386-linux.xml: Remove.
8130 * features/i386/i386-mmx-linux.xml: Remove.
8131 * features/i386/i386-mmx.xml: Remove.
8132 * features/i386/i386-mpx-linux.xml: Remove.
8133 * features/i386/i386-mpx.xml: Remove.
8134 * features/i386/i386.xml: Remove.
8135 * features/i386/x32-avx-avx512-linux.xml: Remove.
8136 * features/i386/x32-avx-linux.xml: Remove.
8137 * features/i386/x32-linux.xml: Remove.
8138
8139 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8140
8141 * regformats/aarch64.dat: Remove.
8142 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8143 * regformats/i386/amd64-avx-linux.dat: Remove.
8144 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8145 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8146 * regformats/i386/amd64-linux.dat: Remove.
8147 * regformats/i386/amd64-mpx-linux.dat: Remove.
8148 * regformats/i386/amd64.dat: Remove.
8149 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8150 * regformats/i386/i386-avx-linux.dat: Remove.
8151 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8152 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8153 * regformats/i386/i386-linux.dat: Remove.
8154 * regformats/i386/i386-mmx-linux.dat: Remove.
8155 * regformats/i386/i386-mpx-linux.dat: Remove.
8156 * regformats/i386/i386.dat: Remove.
8157 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8158 * regformats/i386/x32-avx-linux.dat: Remove.
8159 * regformats/i386/x32-linux.dat: Remove.
8160
8161 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8162
8163 * aarch64-tdep.c: Remove xml self tests.
8164 * amd64-linux-tdep.c: Likewise.
8165 * amd64-tdep.c: Likewise.
8166 * i386-linux-tdep.c: Likewise.
8167 * i386-tdep.c: Likewise.
8168
8169 2019-07-03 Pedro Alves <palves@redhat.com>
8170
8171 PR cli/24732
8172 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8173 (pipe_cmd_option_defs): New.
8174 (make_pipe_cmd_options_def_group): New.
8175 (pipe_command): Use gdb::option::process_options.
8176 (pipe_command_completer): New function.
8177 (_initialize_cli_cmds): Install completer for "pipe" command.
8178
8179 2019-07-03 Pedro Alves <palves@redhat.com>
8180
8181 * cli/cli-option.c (union option_value) <string>: New field.
8182 (struct option_def_and_value): Add ctor, move ctor, dtor and
8183 use DISABLE_COPY_AND_ASSIGN.
8184 (option_def_and_value::clear_value): New.
8185 (parse_option, save_option_value_in_ctx, get_val_type_str)
8186 (add_setshow_cmds_for_options): Handle var_string.
8187 * cli-option.h (union option_def::var_address) <string>: New
8188 field.
8189 (struct string_option_def): New.
8190 * maint-test-options.c (struct test_options_opts): Add default
8191 ctor and use DISABLE_COPY_AND_ASSIGN.
8192 <string_opt>: New field.
8193 (test_options_opts::~test_options_opts): New.
8194 (test_options_opts::dump): Also dump "-string".
8195 (test_options_option_defs): Install "string.
8196
8197 2019-07-03 Pedro Alves <palves@redhat.com>
8198
8199 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8200 option_value with a null enumeration.
8201 (complete_options): Save the option values in the context.
8202 (save_option_value_in_ctx): New, factored out from ...
8203 (process_options): ... here.
8204 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8205 of the function.
8206 * maint-test-options.c (test_options_opts::dump): New, factored
8207 out from ...
8208 (maintenance_test_options_command_mode): ... here.
8209 (maintenance_test_options_command_completion_result): Delete.
8210 (maintenance_test_options_command_completion_text): Update
8211 comment.
8212 (maintenance_show_test_options_completion_result): Change
8213 prototype. Just print
8214 maintenance_test_options_command_completion_text.
8215 (save_completion_result): New.
8216 (maintenance_test_options_completer_mode): Pass options context to
8217 complete_options, and then save a dump.
8218 (_initialize_maint_test_options): Use add_cmd to install "maint
8219 show test-options-completion-result".
8220
8221 2019-07-03 Pedro Alves <palves@redhat.com>
8222
8223 * NEWS (New commands): Mention "with" and "maint with".
8224 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8225 (with_command, with_command_completer): New.
8226 (pipe_command): Adjust to new repeat_previous
8227 interface.
8228 (_initialize_cli_cmds): Install the "with" command and its "w"
8229 alias.
8230 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8231 declarations.
8232 * cli/cli-setshow.c (parse_cli_var_uinteger)
8233 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8234 argument strings for all var_types.
8235 (get_setshow_command_value_string): New, factored out from ...
8236 (do_show_command): ... this.
8237 * cli/cli-setshow.h: Include <string>.
8238 (get_setshow_command_value_string): Declare.
8239 * command.h (repeat_previous): Now returns const char *. Adjust
8240 comment.
8241 * maint.c: Include "cli/cli-cmds.h".
8242 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8243 (_initialize_maint_cmds): Register the "maintenance with" command.
8244 * top.c (repeat_previous): Move bits from pipe_command here:
8245 Return the saved command line, if any; error out if there's no
8246 command to relaunch.
8247
8248 2019-07-03 Pedro Alves <palves@redhat.com>
8249
8250 * NEWS (New commands): Mention "maint set/show test-settings"
8251 instead of "maint test-settings".
8252 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8253 (maintenance_test_settings_set_list): Rename to ...
8254 (maintenance_set_test_settings_list): ... this.
8255 (maintenance_test_settings_show_list): Rename to ...
8256 (maintenance_show_test_settings_list): ... this.
8257 (maintenance_test_settings_cmd): Delete.
8258 (maintenance_test_settings_set_cmd): ...
8259 (maintenance_set_test_settings_cmd): ... this.
8260 (maintenance_test_settings_show_cmd): ...
8261 (maintenance_show_test_settings_cmd): ... this.
8262 (maintenance_test_settings_show_value_cmd):
8263 (maintenance_show_test_settings_value_cmd): ... this.
8264 (_initialize_maint_test_settings): No longer install the "maint
8265 test-settings" prefix command. Rename "maint test-settings set"
8266 to "maint set test-settings", and "maint test-settings show" to
8267 "maint show test-settings". Adjust all subcommands.
8268
8269 2019-07-03 Pedro Alves <palves@redhat.com>
8270
8271 * maint-test-settings.c: Fix file's intro comment. Replace all
8272 references to "test-options" with references to "test-settings",
8273 in comments.
8274
8275 2019-07-03 Pedro Alves <palves@redhat.com>
8276
8277 * maint-test-settings.c (maintenance_test_settings_xxx)
8278 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8279 New.
8280 (maintenance_test_settings_enums): Use them.
8281 (maintenance_test_settings_enum): Default to
8282 maintenance_test_settings_xxx.
8283 (_initialize_maint_test_settings): Initialize
8284 MAINTENANCE_TEST_SETTINGS_FILENAME.
8285
8286 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8287
8288 * breakpoint.h (remove_breakpoints_inf): Change return type to
8289 void, move function documentation here.
8290 * breakpoint.c (remove_breakpoints_inf): Change return type to
8291 void, move function documentation to header.
8292
8293 2019-07-02 Pedro Alves <palves@redhat.com>
8294
8295 * NEWS (Completion improvements): Mention "info threads".
8296 * thread.c (struct info_threads_opts, info_threads_option_defs)
8297 (make_info_threads_options_def_group): New.
8298 (info_threads_command): Use gdb::option::process_options.
8299 (info_threads_command_completer): New.
8300 (_initialize_thread): Use gdb::option::build_help to build the
8301 help text for "info threads".
8302
8303 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8304
8305 * defs.h (generic_load): Move from here...
8306 * symfile.h (generic_load): ... to here. Rename name parameter
8307 to args.
8308 * symfile.c (generic_load): Add comment.
8309
8310 2019-07-01 Tom Tromey <tromey@adacore.com>
8311
8312 * dwarf2read.c
8313 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8314 declaration of without_params. Fix formatting.
8315
8316 2019-07-01 Tom Tromey <tromey@adacore.com>
8317
8318 * ada-exp.y (find_primitive_type): Update.
8319 * ada-lang.h (ada_lookup_symbol): Update.
8320 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8321 parameter.
8322 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8323
8324 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8325
8326 PR breakpoints/24541
8327 * gdbarch.c: Regenerate.
8328 * gdbarch.h: Regenerate.
8329 * gdbarch.sh: Add 'stap_adjust_register'.
8330 * i386-tdep.c: Include '<unordered_set>'.
8331 (i386_stap_adjust_register): New function.
8332 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8333 * stap-probe.c (stap_parse_register_operand): Call
8334 'gdbarch_stap_adjust_register'.
8335
8336 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8337
8338 PR python/24742
8339 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8340 * python/python.c (do_start_initialization): Use 'xmalloc'
8341 instead of 'PyMem_Malloc'.
8342
8343 2019-06-28 Tom Tromey <tromey@adacore.com>
8344
8345 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8346 for Ada.
8347
8348 2019-06-27 Tom Tromey <tromey@adacore.com>
8349
8350 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8351 objfile_key.
8352 (arm_find_mapping_symbol, arm_record_special_symbol)
8353 (_initialize_arm_tdep): Update.
8354 (arm_objfile_data_free): Remove.
8355
8356 2019-06-27 Tom Tromey <tromey@adacore.com>
8357
8358 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8359 to cp_print_static_field.
8360
8361 2019-06-26 Tom Tromey <tromey@adacore.com>
8362
8363 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8364 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8365 declare.
8366
8367 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8368
8369 * features/aarch64-core.c (create_feature_aarch64_core):
8370 Regenerate.
8371 * features/aarch64-core.xml: Add cpsr flags.
8372
8373 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8374
8375 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8376 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8377
8378 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8379
8380 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8381 field.
8382 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8383 use.
8384 (arm_record_special_symbol): Don't insert new symbol in sorted
8385 position, push it at the end.
8386
8387 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8388
8389 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8390 (arm_mapping_symbol_s): Remove.
8391 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8392 (arm_mapping_symbol_vec): New typedef.
8393 (struct arm_per_objfile): Add constructor.
8394 <section_maps>: Change type to
8395 std::unique_ptr<arm_mapping_symbol_vec[]>.
8396 (arm_compare_mapping_symbols): Remove.
8397 (arm_find_mapping_symbol): Adjust to section_maps type change.
8398 (arm_objfile_data_free): Call delete on arm_per_objfile.
8399 (arm_record_special_symbol): Adjust to section_maps type change.
8400 Allocate arm_per_objfile with new.
8401
8402 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8403
8404 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8405 with the command prefix.
8406
8407 2019-06-25 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8410 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8411
8412 2019-06-25 Tom Tromey <tom@tromey.com>
8413
8414 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8415 type.
8416 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8417 protected.
8418
8419 2019-06-25 Tom Tromey <tom@tromey.com>
8420
8421 * tui/tui-winsource.c
8422 (tui_source_window_base::set_is_exec_point_at): Add check against
8423 LOA_ADDRESS.
8424
8425 2019-06-25 Tom Tromey <tom@tromey.com>
8426
8427 * tui/tui-source.c (tui_set_source_content): Don't check before
8428 xfree.
8429 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8430
8431 2019-06-25 Tom Tromey <tom@tromey.com>
8432
8433 * tui/tui-winsource.h (tui_update_source_window_as_is)
8434 (tui_alloc_source_buffer, tui_line_is_displayed)
8435 (tui_addr_is_displayed): Change type of win_info.
8436 * tui/tui-winsource.c (tui_update_source_window_as_is)
8437 (tui_clear_source_content, tui_show_source_line)
8438 (tui_show_source_content, tui_source_window_base::refill)
8439 (tui_source_window_base::set_is_exec_point_at)
8440 (tui_source_window_base::set_is_exec_point_at)
8441 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8442 (tui_alloc_source_buffer, tui_line_is_displayed)
8443 (tui_addr_is_displayed): Change type of win_info. Update.
8444 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8445 (tui_source_window_base::do_make_visible_with_new_height):
8446 Update.
8447 * tui/tui-source.c (tui_set_source_content)
8448 (tui_set_source_content_nil)
8449 (tui_source_window::do_scroll_vertical): Update.
8450 * tui/tui-layout.c (show_layout): Update.
8451 * tui/tui-disasm.c (tui_set_disassem_content)
8452 (tui_disasm_window::do_scroll_vertical): Update.
8453 * tui/tui-data.h (tui_win_content): Remove.
8454 (struct tui_gen_win_info) <content, content_size>: Remove.
8455 (struct tui_source_element): Add initializers and destructor.
8456 (union tui_which_element, struct tui_win_element): Remove.
8457 (struct tui_source_window_base) <content>: New field.
8458 (struct tui_data_window): Remove destructor.
8459 (tui_alloc_content, tui_free_win_content)
8460 (tui_free_all_source_wins_content): Don't declare.
8461 * tui/tui-data.c (tui_initialize_static_data): Update.
8462 (init_content_element, tui_alloc_content): Remove.
8463 (~tui_gen_win_info): Update.
8464 (~tui_data_window, tui_free_all_source_wins_content)
8465 (tui_free_win_content, free_content, free_content_elements):
8466 Remove.
8467
8468 2019-06-25 Tom Tromey <tom@tromey.com>
8469
8470 * tui/tui-winsource.h (tui_clear_source_content)
8471 (tui_erase_source_content, tui_show_source_content): Change type
8472 of win_info.
8473 * tui/tui-winsource.c (tui_clear_source_content)
8474 (tui_erase_source_content, tui_show_source_content): Change type
8475 of win_info.
8476 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8477 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8478 win_info.
8479 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8480 win_info.
8481 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8482
8483 2019-06-25 Tom Tromey <tom@tromey.com>
8484
8485 * tui/tui-winsource.c (tui_clear_source_content)
8486 (tui_source_window_base::set_is_exec_point_at): Update.
8487 * tui/tui-source.c (tui_set_source_content_nil): Update.
8488 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8489 a bool.
8490 * tui/tui-data.c (init_content_element): Update.
8491
8492 2019-06-25 Tom Tromey <tom@tromey.com>
8493
8494 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8495 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8496 * tui/tui-layout.c (init_and_make_win): Update.
8497 * tui/tui.h (enum tui_win_type): Update.
8498 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8499 tui_win_is_auxillary.
8500 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8501 tui_win_is_auxillary.
8502
8503 2019-06-25 Tom Tromey <tom@tromey.com>
8504
8505 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8506 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8507 (tui_delete_data_content_windows, tui_display_all_data)
8508 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8509 Update.
8510 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8511 * tui/tui-regs.c (tui_last_regs_line_no)
8512 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8513 (tui_show_registers): Update.
8514 (tui_show_register_group): Return void. Update.
8515 (tui_display_registers_from, tui_display_reg_element_at_line)
8516 (tui_display_registers_from_line, tui_check_register_values):
8517 Update.
8518 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8519 member.
8520 (struct tui_data_window) <regs_content>: Now a std::vector.
8521 <regs_content_count>: Remove.
8522 (tui_add_content_elements, tui_free_data_content): Don't declare.
8523 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8524 (init_content_element): Remove DATA_WIN case. Add assert.
8525 (tui_add_content_elements): Remove.
8526 (tui_data_window): Update.
8527 (tui_free_data_content): Remove.
8528 (free_content_elements): Remove DATA_WIN case.
8529
8530 2019-06-25 Tom Tromey <tom@tromey.com>
8531
8532 * tui/tui-data.c (tui_data_item_window): Update.
8533 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8534 * tui/tui-windata.c (tui_display_all_data)
8535 (tui_display_data_from_line): Update.
8536 (tui_check_data_values): Remove.
8537 * tui/tui-regs.c (tui_show_register_group)
8538 (tui_display_reg_element_at_line): Update.
8539 * tui/tui-hooks.c (tui_register_changed)
8540 (tui_refresh_frame_and_register_information): Call
8541 tui_check_register_values.
8542 * tui/tui-data.h (struct tui_data_window) <data_content,
8543 data_content_count, data_type>: Remove.
8544 (enum tui_data_type): Remove.
8545
8546 * tui/tui-data.c (tui_data_window::clear_detail)
8547 (~tui_data_window): Update.
8548
8549 2019-06-25 Tom Tromey <tom@tromey.com>
8550
8551 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8552 declare.
8553 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8554 Rename from tui_first_data_item_displayed. Update.
8555 (tui_data_window::refresh_all)
8556 (tui_data_window::do_scroll_vertical): Update.
8557 * tui/tui-data.h (struct tui_data_window)
8558 <first_data_item_displayed>: Declare new method.
8559
8560 2019-06-25 Tom Tromey <tom@tromey.com>
8561
8562 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8563 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8564 contents...
8565 (tui_initialize_static_data): ...here.
8566
8567 2019-06-25 Tom Tromey <tom@tromey.com>
8568
8569 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8570 (tui_display_registers_from, tui_check_register_values): Update.
8571 (tui_display_register): Remove win_info parameter; update.
8572 (tui_get_register): Change type of parameters.
8573 * tui/tui-data.h (struct tui_data_element): Remove.
8574 (union tui_which_element) <data>: Remove.
8575 <data_window>: Change type.
8576 (struct tui_data_item_window): New.
8577 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8578 case. Add assert.
8579 (~tui_data_item_window): New destructor.
8580 (free_content_elements): Remove DATA_ITEM_WIN case.
8581
8582 2019-06-25 Tom Tromey <tom@tromey.com>
8583
8584 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8585 Remove.
8586
8587 2019-06-25 Tom Tromey <tom@tromey.com>
8588
8589 * tui/tui-data.h (struct tui_command_element): Remove.
8590 (union tui_which_element) <command>: Remove.
8591 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8592 assert.
8593 (free_content_elements): Remove CMD_WIN case.
8594
8595 2019-06-25 Tom Tromey <tom@tromey.com>
8596
8597 * tui/tui-layout.c (tui_set_layout): Update.
8598 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8599 * tui/tui-data.c (layout_def): Update.
8600
8601 2019-06-25 Tom Tromey <tom@tromey.com>
8602
8603 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8604 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8605 (tui_source_window_base::set_new_height): Update.
8606 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8607 Update.
8608 (tui_set_locator_fullname, tui_set_locator_info)
8609 (tui_show_frame_info): Update.
8610 * tui/tui-source.c (tui_set_source_content)
8611 (tui_source_is_displayed): Update.
8612 * tui/tui-layout.c (show_source_disasm_command, show_data)
8613 (show_source_or_disasm_and_command): Update.
8614 * tui/tui-disasm.c (tui_set_disassem_content)
8615 (tui_get_begin_asm_address): Update.
8616 * tui/tui-data.h (struct tui_locator_element): Remove.
8617 (union tui_which_element) <locator>: Remove.
8618 (struct tui_locator_window): New.
8619 (tui_locator_win_info_ptr): Change return type.
8620 * tui/tui-data.c (_locator): Change type.
8621 (tui_locator_win_info_ptr): Change return type.
8622 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8623 (tui_alloc_content): Add assert.
8624
8625 2019-06-25 Tom Tromey <tom@tromey.com>
8626
8627 * tui/tui-winsource.c
8628 (tui_exec_info_window::maybe_allocate_content): New method.
8629 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8630 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8631 (make_source_or_disasm_window): Add cast.
8632 * tui/tui-data.h (union tui_which_element) <simple_string>:
8633 Remove.
8634 (struct tui_source_info): New.
8635 (struct tui_source_window_base) <execution_info>: Change type.
8636 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8637 case, and add assert.
8638 (tui_alloc_content): Add assert.
8639
8640 2019-06-25 Tom Tromey <tom@tromey.com>
8641
8642 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8643 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8644 * tui/tui-data.c (tui_alloc_win_info): Remove.
8645
8646 2019-06-25 Tom Tromey <tom@tromey.com>
8647
8648 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8649 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8650 can_highlight.
8651
8652 2019-06-25 Tom Tromey <tom@tromey.com>
8653
8654 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8655 make_visible_with_new_height method.
8656 (tui_win_info::make_visible_with_new_height): New method.
8657 (tui_source_window_base::do_make_visible_with_new_height)
8658 (tui_data_window::do_make_visible_with_new_height)
8659 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8660 (make_visible_with_new_height): Remove.
8661 (tui_resize_all, tui_adjust_win_heights): Use
8662 make_visible_with_new_height method.
8663 * tui/tui-data.h (struct tui_win_info)
8664 <do_make_visible_with_new_height, make_visible_with_new_height>:
8665 New methods.
8666 (struct tui_source_window_base, struct tui_data_window)
8667 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8668 methods.
8669
8670 2019-06-25 Tom Tromey <tom@tromey.com>
8671
8672 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8673 method.
8674 (update_tab_width): Call update_tab_width method.
8675 * tui/tui-data.h (struct tui_win_info)
8676 (struct tui_source_window_base) <update_tab_width>: New methods.
8677
8678 2019-06-25 Tom Tromey <tom@tromey.com>
8679
8680 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8681 parameter.
8682 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8683 parameter.
8684 (tui_gen_win_info::make_visible): Update.
8685 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8686 parameter.
8687 * tui/tui-data.h (enum tui_box): New enum.
8688 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8689
8690 2019-06-25 Tom Tromey <tom@tromey.com>
8691
8692 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8693 init_and_make_win for EXEC_INFO_WIN.
8694 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8695 longer inline.
8696 (struct tui_win_info) <~tui_win_info>: Inline.
8697 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8698 Don't declare.
8699 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8700 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8701 Remove.
8702 (tui_initialize_static_data): Update.
8703 (~tui_gen_win_info): Handle more cleanup here.
8704 (~tui_source_window_base): Delete "execution_info".
8705 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8706
8707 2019-06-25 Tom Tromey <tom@tromey.com>
8708
8709 * tui/tui-layout.c (make_command_window): Don't set
8710 can_highlight.
8711 (show_source_disasm_command): Call the reset method.
8712 (show_data): Don't set can_highlight. Call the reset method.
8713 (tui_gen_win_info::reset): Rename from init_gen_win_info
8714 (init_and_make_win): Simplify. Return tui_gen_win_info.
8715 (show_source_or_disasm_and_command): Call the reset method.
8716 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8717 (struct tui_cmd_window): Set can_highlight.
8718
8719 2019-06-25 Tom Tromey <tom@tromey.com>
8720
8721 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8722 from make_visible.
8723 (tui_make_visible, tui_make_invisible): Rewrite.
8724 (tui_win_info::make_visible): Remove.
8725 (tui_source_window_base::make_visible): Update.
8726 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8727 method. Moved from...
8728 (struct tui_win_info) <make_visible>: ...here.
8729
8730 2019-06-25 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui-winsource.c
8733 (tui_source_window_base::do_scroll_horizontal): Remove direction
8734 parameter.
8735 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8736 direction parameter.
8737 * tui/tui-win.c (tui_win_info::forward_scroll)
8738 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8739 (tui_win_info::right_scroll): Update.
8740 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8741 direction parameter.
8742 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8743 direction parameter.
8744 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8745 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8746 Remove direction parameter.
8747 (struct tui_source_window_base, struct tui_source_window)
8748 (struct tui_disasm_window, struct tui_data_window)
8749 (struct tui_cmd_window): Update.
8750
8751 2019-06-25 Tom Tromey <tom@tromey.com>
8752
8753 * tui/tui-winsource.h (tui_set_exec_info_content)
8754 (tui_show_exec_info_content, tui_erase_exec_info_content)
8755 (tui_clear_exec_info_content, tui_update_exec_info): Change
8756 argument to tui_source_window_base.
8757 * tui/tui-winsource.c (tui_set_exec_info_content)
8758 (tui_show_exec_info_content, tui_erase_exec_info_content)
8759 (tui_clear_exec_info_content, tui_update_exec_info): Change
8760 argument to tui_source_window_base.
8761
8762 2019-06-25 Tom Tromey <tom@tromey.com>
8763
8764 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8765 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8766
8767 2019-06-25 Tom Tromey <tom@tromey.com>
8768
8769 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8770 check.
8771
8772 2019-06-25 Tom Tromey <tom@tromey.com>
8773
8774 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8775 type to void.
8776 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8777 type to void.
8778 * tui/tui-source.c (tui_set_source_content): Update.
8779 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8780
8781 2019-06-25 Tom Tromey <tom@tromey.com>
8782
8783 * tui/tui-win.c (window_name_completer, tui_set_focus)
8784 (tui_all_windows_info): Use name method.
8785 * tui/tui-data.h (struct tui_gen_win_info)
8786 (struct tui_source_window, struct tui_disasm_window)
8787 (struct tui_data_window, struct tui_cmd_window) <name>: New
8788 method.
8789 (tui_win_name): Don't declare.
8790 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8791 (tui_win_name): Remove.
8792
8793 2019-06-25 Tom Tromey <tom@tromey.com>
8794
8795 * tui/tui-winsource.h (tui_update_source_window)
8796 (tui_update_source_window_as_is): Change parameter type.
8797 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8798 to be a tui_source_window_base.
8799 (tui_update_source_window_as_is): Likewise.
8800 * tui/tui-win.c (make_visible_with_new_height): Update.
8801
8802 2019-06-25 Tom Tromey <tom@tromey.com>
8803
8804 * tui/tui-winsource.c (tui_erase_source_content)
8805 (tui_show_source_content, tui_show_exec_info_content)
8806 (tui_erase_exec_info_content): Use refresh_window method.
8807 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8808 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8809 from tui_refresh_win.
8810 (tui_data_window::refresh_window): New method.
8811 (tui_win_info::refresh, tui_source_window_base::refresh)
8812 (tui_refresh_all): Use refresh_window method.
8813 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8814 method.
8815 * tui/tui-regs.c (tui_display_register): Call refresh_window
8816 method.
8817 * tui/tui-layout.c (show_source_disasm_command)
8818 (show_source_or_disasm_and_command): Call refresh_window method.
8819 * tui/tui-data.h (struct tui_gen_win_info)
8820 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8821 New method.
8822
8823 2019-06-25 Tom Tromey <tom@tromey.com>
8824
8825 * tui/tui.c (tui_rl_other_window, tui_enable)
8826 (tui_is_window_visible, tui_get_command_dimension): Update.
8827 * tui/tui-winsource.c (tui_update_source_window_as_is)
8828 (tui_clear_source_content, tui_erase_source_content)
8829 (tui_show_source_line, tui_source_window_base::refill)
8830 (tui_source_window_base::do_scroll_horizontal)
8831 (tui_source_window_base::set_is_exec_point_at)
8832 (tui_update_breakpoint_info, tui_set_exec_info_content)
8833 (tui_alloc_source_buffer, tui_line_is_displayed)
8834 (tui_addr_is_displayed): Update.
8835 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8836 (tui_check_and_display_highlight_if_needed)
8837 (tui_win_info::make_visible, tui_win_info::refresh)
8838 (tui_refresh_all): Update.
8839 * tui/tui-windata.c (tui_first_data_item_displayed)
8840 (tui_delete_data_content_windows, tui_erase_data_content)
8841 (tui_display_all_data, tui_data_window::refresh_all)
8842 (tui_check_data_values): Update.
8843 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8844 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8845 (tui_win_info::backward_scroll, tui_refresh_all_win)
8846 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8847 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8848 (tui_source_window_base::set_new_height)
8849 (tui_data_window::set_new_height)
8850 (make_invisible_and_set_new_height)
8851 (make_visible_with_new_height, new_height_ok)
8852 (parse_scrolling_args): Update.
8853 * tui/tui-stack.c (tui_show_frame_info): Update.
8854 * tui/tui-source.c (tui_set_source_content)
8855 (tui_set_source_content_nil, tui_source_is_displayed)
8856 (tui_source_window::do_scroll_vertical): Update.
8857 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8858 (tui_display_registers_from, tui_display_reg_element_at_line)
8859 (tui_check_register_values, tui_reg_command): Update.
8860 * tui/tui-layout.c (tui_default_win_height)
8861 (show_source_disasm_command, show_data, init_and_make_win)
8862 (show_source_or_disasm_and_command): Update.
8863 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8864 (tui_redisplay_readline, tui_mld_flush)
8865 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8866 (tui_getc): Update.
8867 * tui/tui-disasm.c (tui_set_disassem_content)
8868 (tui_disasm_window::do_scroll_vertical): Update.
8869 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8870 Now virtual.
8871 (struct tui_win_info): Derive from tui_gen_win_info.
8872 <~tui_win_info>: Mark as override.
8873 <generic>: Remove member.
8874 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8875 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8876 (~tui_data_window, ~tui_win_info)
8877 (tui_free_all_source_wins_content): Update.
8878 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8879
8880 2019-06-25 Tom Tromey <tom@tromey.com>
8881
8882 * tui/tui-layout.c (init_and_make_win): Use new.
8883 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8884 destructor, initializers.
8885 (tui_alloc_generic_win_info): Don't declare.
8886 * tui/tui-data.c (_locator): Add argument to constructor.
8887 (source_win, disasm_win): New globals.
8888 (exec_info): Remove.
8889 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8890 Update.
8891 (tui_alloc_generic_win_info): Remove.
8892 (init_content_element): Use new.
8893 (tui_win_info::tui_win_info): Update.
8894 (free_content_elements) <case DATA_WIN>: Use delete.
8895
8896 2019-06-25 Tom Tromey <tom@tromey.com>
8897
8898 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8899 * tui/tui-windata.c (tui_first_data_item_displayed)
8900 (tui_delete_data_content_windows): Update.
8901 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8902 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8903 (tui_display_registers_from, tui_check_register_values): Update.
8904 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8905 pointer.
8906 * tui/tui-data.c (init_content_element): Update. Allocate the new
8907 window.
8908 (tui_free_data_content): Update.
8909 (free_content_elements) <case DATA_WIN>: Free the window.
8910
8911 2019-06-25 Tom Tromey <tom@tromey.com>
8912
8913 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8914 Update.
8915 * tui/tui-layout.c (make_command_window)
8916 (show_source_disasm_command, show_data, init_and_make_win)
8917 (show_source_or_disasm_and_command): Update.
8918 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8919 method.
8920 <can_highight, is_highlighted>: Now bool.
8921 (tui_set_win_highlight): Don't declare.
8922 * tui/tui-data.c (tui_set_win_highlight): Remove.
8923
8924 2019-06-25 Tom Tromey <tom@tromey.com>
8925
8926 * tui/tui-wingeneral.c (make_visible): Remove check of window
8927 type.
8928
8929 2019-06-25 Tom Tromey <tom@tromey.com>
8930
8931 * tui/tui-win.c (tui_win_info::max_height)
8932 (tui_cmd_window::max_height): New methods.
8933 (new_height_ok): Call max_height.
8934 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8935 <max_height>: New method.
8936
8937 2019-06-25 Tom Tromey <tom@tromey.com>
8938
8939 * tui/tui-win.c (tui_source_window_base::set_new_height)
8940 (tui_data_window::set_new_height): New methods.
8941 (make_invisible_and_set_new_height): Call set_new_height method.
8942 * tui/tui-data.h (struct tui_win_info)
8943 (struct tui_source_window_base, struct tui_data_window)
8944 <set_new_height>: New method.
8945
8946 2019-06-25 Tom Tromey <tom@tromey.com>
8947
8948 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8949 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8950 tui_refresh_data_win.
8951 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8952 method.
8953 (tui_refresh_all_win): Call the refresh_all method.
8954 (tui_set_focus): Likewise.
8955 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8956 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8957 Likewise.
8958
8959 2019-06-25 Tom Tromey <tom@tromey.com>
8960
8961 * tui/tui-winsource.h (tui_refill_source_window)
8962 (tui_set_is_exec_point_at): Don't declare.
8963 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8964 (tui_source_window_base::refill): Rename from
8965 tui_refill_source_window.
8966 (tui_source_window_base::do_scroll_horizontal): Update.
8967 (tui_source_window_base::set_is_exec_point_at): Rename from
8968 tui_set_is_exec_point_at.
8969 (tui_update_all_breakpoint_info): Update.
8970 * tui/tui-stack.c (tui_show_frame_info): Update.
8971 * tui/tui-layout.c (show_data): Add cast.
8972 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8973 * tui/tui-data.h (struct tui_source_window_base) <refill,
8974 set_is_exec_point_at>: New methods.
8975 (tui_source_windows, tui_add_to_source_windows): Update types.
8976 (tui_add_to_source_windows): Remove redundant declaration.
8977 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8978 (tui_source_windows): Change return type.
8979 (tui_clear_source_windows_detail): Update.
8980 (tui_add_to_source_windows): Change type of parameter.
8981 (tui_free_all_source_wins_content): Update.
8982
8983 2019-06-25 Tom Tromey <tom@tromey.com>
8984
8985 * tui/tui-wingeneral.c (tui_win_info::refresh)
8986 (tui_source_window_base::refresh): New methods.
8987 (tui_refresh_all): Call the refresh method.
8988 * tui/tui-data.h (struct tui_win_info)
8989 (struct tui_source_window_base) <refresh>: New method.
8990
8991 2019-06-25 Tom Tromey <tom@tromey.com>
8992
8993 * tui/tui.h (tui_is_window_visible): Return bool.
8994 * tui/tui.c (tui_is_window_visible): Return bool.
8995 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8996 (tui_make_visible, tui_make_invisible)
8997 (tui_win_info::make_visible)
8998 (tui_source_window_base::make_visible, make_all_visible)
8999 (tui_make_all_visible, tui_make_all_invisible): Update.
9000 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
9001 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
9002 bool.
9003 (struct tui_win_info, struct tui_source_window_base)
9004 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
9005 * tui/tui-data.c (tui_init_generic_part): Update.
9006
9007 2019-06-25 Tom Tromey <tom@tromey.com>
9008
9009 * tui/tui-wingeneral.c (tui_win_info::make_visible)
9010 (tui_source_window_base::make_visible): New methods.
9011 (make_all_visible): Make method call.
9012 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
9013 (struct tui_source_window_base, struct tui_cmd_window): Override
9014 make_visible.
9015 (tui_win_is_source_type): Don't declare.
9016 * tui/tui-data.c (tui_win_is_source_type): Remove.
9017
9018 2019-06-25 Tom Tromey <tom@tromey.com>
9019
9020 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9021 NULL check.
9022
9023 2019-06-25 Tom Tromey <tom@tromey.com>
9024
9025 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9026 Inline constructor. Add initializers for members.
9027 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9028 constructors; now inline in class.
9029
9030 2019-06-25 Tom Tromey <tom@tromey.com>
9031
9032 * tui/tui-regs.c (tui_show_registers): Update.
9033 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9034 bool.
9035 * tui/tui-data.c (tui_data_window::clear_detail)
9036 (tui_data_window): Update.
9037
9038 2019-06-25 Tom Tromey <tom@tromey.com>
9039
9040 * tui/tui-windata.c (tui_display_all_data)
9041 (tui_display_data_from_line, tui_display_data_from)
9042 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9043 Update.
9044 * tui/tui-regs.c (tui_last_regs_line_no)
9045 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9046 (tui_show_registers, tui_show_register_group)
9047 (tui_display_registers_from, tui_display_reg_element_at_line)
9048 (tui_display_registers_from_line, tui_check_register_values)
9049 (tui_reg_next, tui_reg_prev): Update.
9050 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9051 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9052 tui_data_window.
9053 (struct tui_win_info) <detail>: Remove. Add new fields from
9054 tui_data_info.
9055 (TUI_DATA_WIN): Add cast.
9056 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9057 (~tui_data_window): Simplify.
9058
9059 2019-06-25 Tom Tromey <tom@tromey.com>
9060
9061 * tui/tui-layout.c (show_source_disasm_command)
9062 (show_source_or_disasm_and_command): Update.
9063 * tui/tui-io.c (update_cmdwin_start_line)
9064 (tui_redisplay_readline): Update.
9065 * tui/tui-data.h (struct tui_command_info): Remove.
9066 (struct tui_win_info) <detail>: Remove command_info member.
9067 (struct tui_data_window) <start_line>: New member, from
9068 tui_command_info.
9069 (TUI_CMD_WIN): Add casts.
9070
9071 2019-06-25 Tom Tromey <tom@tromey.com>
9072
9073 * tui/tui-winsource.c (tui_update_source_window)
9074 (tui_refill_source_window)
9075 (tui_source_window_base::do_scroll_horizontal)
9076 (tui_update_breakpoint_info, tui_set_exec_info_content)
9077 (tui_show_exec_info_content, tui_erase_exec_info_content)
9078 (tui_clear_exec_info_content): Update.
9079 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9080 Update.
9081 * tui/tui-win.c (make_invisible_and_set_new_height)
9082 (make_visible_with_new_height): Update.
9083 * tui/tui-source.c (tui_set_source_content)
9084 (tui_show_symtab_source): Update.
9085 * tui/tui-layout.c (extract_display_start_addr)
9086 (show_source_disasm_command, show_data)
9087 (make_source_or_disasm_window)
9088 (show_source_or_disasm_and_command): Update.
9089 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9090 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9091 "gdbarch".
9092 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9093 to tui_source_window_base.
9094 (struct tui_win_info) <detail>: Remove source_info member.
9095 (struct tui_source_window_base) <has_locator>: Inline.
9096 Move contents from tui_source_info; rename has_locator member to
9097 m_has_locator.
9098 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9099 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9100 header file.
9101 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9102 Simplify.
9103 (tui_free_all_source_wins_content): Cast to
9104 tui_source_window_base.
9105
9106 2019-06-25 Tom Tromey <tom@tromey.com>
9107
9108 * tui/tui-win.c (make_invisible_and_set_new_height)
9109 (make_visible_with_new_height): Call has_locator method.
9110 * tui/tui-layout.c (show_source_disasm_command, show_data)
9111 (show_source_or_disasm_and_command): Update for bool change.
9112 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9113 (tui_win_info) <has_locator>: New method.
9114 (struct tui_source_window_base) <has_locator>: New method.
9115 (tui_win_has_locator): Don't declare.
9116 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9117 from tui_win_has_locator.
9118 (tui_source_window_base): Use false, not FALSE.
9119
9120 2019-06-25 Tom Tromey <tom@tromey.com>
9121
9122 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9123 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9124 clear_detail method directly.
9125 (tui_clear_win_detail): Remove.
9126
9127 2019-06-25 Tom Tromey <tom@tromey.com>
9128
9129 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9130 "this", not TUI_DISASM_WIN.
9131
9132 2019-06-25 Tom Tromey <tom@tromey.com>
9133
9134 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9135 declare.
9136 * tui/tui-winsource.c
9137 (tui_source_window_base::do_scroll_horizontal): Rename from
9138 tui_horizontal_source_scroll.
9139 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9140 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9141 from tui_vertical_data_scroll.
9142 * tui/tui-win.h (tui_scroll): Don't declare.
9143 * tui/tui-win.c (tui_win_info::forward_scroll)
9144 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9145 (tui_win_info::right_scroll): Rename and update.
9146 (tui_scroll_forward_command, tui_scroll_backward_command)
9147 (tui_scroll_left_command, tui_scroll_right_command): Update.
9148 (tui_scroll): Remove.
9149 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9150 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9151 from tui_vertical_source_scroll.
9152 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9153 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9154 from tui_vertical_disassem_scroll.
9155 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9156 do_scroll_horizontal>: New methods.
9157 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9158 Likewise.
9159 (struct tui_source_window_base): Add do_scroll_horizontal.
9160 (struct tui_source_window, struct tui_disasm_window): Add
9161 do_scroll_vertical.
9162 (struct tui_data_window, struct tui_cmd_window): Add
9163 do_scroll_horizontal and do_scroll_vertical.
9164 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9165
9166 2019-06-25 Tom Tromey <tom@tromey.com>
9167
9168 * tui/tui-data.h (struct tui_source_window_base): New struct.
9169 (struct tui_source_window): Derive from tui_source_window_base.
9170 (struct tui_disasm_window): New struct.
9171 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9172 from tui_source_window::clear_detail.
9173 (tui_source_window_base): Rename from tui_source_window.
9174 (~tui_source_window_base): Rename from ~tui_source_window.
9175 (tui_alloc_win_info): Create a tui_disasm_window.
9176
9177 2019-06-25 Tom Tromey <tom@tromey.com>
9178
9179 * tui/tui-data.h (struct tui_source_window)
9180 (struct tui_data_window): Declare destructors.
9181 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9182 destructors.
9183 (tui_win_info): Simplify.
9184
9185 2019-06-25 Tom Tromey <tom@tromey.com>
9186
9187 * tui/tui-winsource.c (tui_display_main)
9188 (tui_update_source_windows_with_addr)
9189 (tui_update_all_breakpoint_info): Update.
9190 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9191 (new_height_ok, parse_scrolling_args): Update.
9192 * tui/tui-stack.c (tui_show_frame_info): Update.
9193 * tui/tui-data.h (struct tui_list): Remove.
9194 (tui_source_windows): Return a reference to a std::vector.
9195 * tui/tui-data.c (source_windows): Now a std::vector.
9196 (tui_source_windows): Change return type.
9197 (tui_clear_source_windows): Rewrite.
9198 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9199 (tui_free_all_source_wins_content): Rewrite.
9200
9201 2019-06-25 Tom Tromey <tom@tromey.com>
9202
9203 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9204 (struct tui_data_window, struct tui_cmd_window): Declare
9205 clear_detail method.
9206 * tui/tui-data.c (tui_source_window::clear_detail)
9207 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9208 methods.
9209 (tui_clear_win_detail): Simplify.
9210
9211 2019-06-25 Tom Tromey <tom@tromey.com>
9212
9213 * tui/tui-layout.c (make_source_window, make_disasm_window)
9214 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9215 Return the new window.
9216 (show_source_disasm_command, show_data)
9217 (show_source_or_disasm_and_command): Update.
9218
9219 2019-06-25 Tom Tromey <tom@tromey.com>
9220
9221 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9222 parameter. Return the new window.
9223 (show_source_disasm_command): Update and remove NULL check.
9224 (show_source_or_disasm_and_command): Update.
9225
9226 2019-06-25 Tom Tromey <tom@tromey.com>
9227
9228 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9229
9230 2019-06-25 Tom Tromey <tom@tromey.com>
9231
9232 * tui/tui-data.h (struct tui_win_info): Make constructor
9233 protected. Make destructor virtual. Add initializers.
9234 (tui_source_window, tui_data_window, tui_cmd_window): New
9235 classes.
9236 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9237 constructor. Add "type" parameter.
9238 (tui_source_window, tui_data_window, tui_cmd_window): New
9239 constructors.
9240 (tui_alloc_win_info): Instantiate the appropriate subclass.
9241
9242 2019-06-25 Tom Tromey <tom@tromey.com>
9243
9244 * tui/tui-win.c (tui_resize_all): Use delete.
9245 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9246 destructor.
9247 (tui_free_window): Don't declare.
9248 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9249 Update.
9250
9251 2019-06-25 Tom Tromey <tom@tromey.com>
9252
9253 * tui/tui-data.h (struct tui_win_info): Add constructor.
9254 * tui/tui-data.c (tui_alloc_win_info): Use new.
9255 (tui_free_window): Use delete.
9256
9257 2019-06-22 Tom Tromey <tom@tromey.com>
9258
9259 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9260 declare.
9261 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9262
9263 2019-06-22 Tom Tromey <tom@tromey.com>
9264
9265 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9266 declare.
9267 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9268
9269 2019-06-22 Tom de Vries <tdevries@suse.de>
9270
9271 * dwarf2read.c (create_addrmap_from_aranges)
9272 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9273 instead of '%zu'.
9274
9275 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * dwarf2read.h (dwarf2_section_info_def): Remove.
9278 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9279 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9280 std::vector<dwarf2_section_info>.
9281 (struct dwo_file) <~dwo_file>: Remove.
9282 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9283 types field.
9284 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9285 (dwarf2_read_debug_names): Likewise.
9286 (create_debug_types_hash_table): Change parameter type to
9287 array_view, adjust code accordingly.
9288 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9289 (partial_die_info::fixup): Likewise.
9290 (determine_prefix): Likewise.
9291 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9292
9293 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9294
9295 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9296 gdb_bfd_ref_ptr.
9297 <~dwo_file>: Remove call to gdb_bfd_unref.
9298 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9299 gdb_bfd_ref_ptr::get.
9300
9301 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9302
9303 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9304 type to htab_up.
9305 * dwarf2read.c (struct dwo_file): Initialize fields.
9306 <~dwo_file>: New.
9307 (free_dwo_file): Remove, move content to ~dwo_file.
9308 (struct dwo_file_deleter): Remove.
9309 (dwo_file_up>: Remove custom deleter.
9310 (free_dwo_files): Remove.
9311 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9312 dwo_files.
9313 (process_skeletonless_type_units): Call unique_ptr::get.
9314 (allocate_dwo_file_hash_table): Add deleter to created hash
9315 table. Change return type to htab_up.
9316 (lookup_dwo_file_slot): Don't memset dwo_file, call
9317 unique_ptr::get.
9318 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9319 (create_dwo_unit_in_dwp_v2): Likewise.
9320 (open_and_init_dwo_file): Likewise.
9321 (free_dwo_file_from_slot): Remove.
9322
9323 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9324
9325 * dwarf2read.h (struct dwarf2_section_info) <readin,
9326 is_virtual>: Change type to bool.
9327 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9328 true instead of 1.
9329
9330 2019-06-19 Tom Tromey <tom@tromey.com>
9331
9332 * tui/tui-data.h (tui_init_content_element): Don't declare.
9333
9334 2019-06-19 Tom Tromey <tom@tromey.com>
9335
9336 * tui/tui-data.h (tui_init_win_info): Don't declare.
9337
9338 2019-06-19 Tom de Vries <tdevries@suse.de>
9339
9340 * dwarf2read.h (abstract_to_concrete): Change type to
9341 std::unordered_map<sect_offset, std::vector<sect_offset>,
9342 gdb::hash_enum<sect_offset>>.
9343
9344 2019-06-19 Tom Tromey <tromey@adacore.com>
9345
9346 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9347 EVAL_AVOID_SIDE_EFFECTS specially.
9348
9349 2019-06-19 Tom Tromey <tromey@adacore.com>
9350
9351 * source-cache.c (highlighter): New global.
9352 (source_cache::get_source_lines): Create a highlighter on demand.
9353
9354 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9355
9356 * defs.h (deprecated_interactive_hook): Delete declaration.
9357 * interps.c (clear_interpreter_hooks): Remove use of
9358 deprecated_interactive_hook.
9359 * top.c (deprecated_interactive_hook): Delete definition.
9360 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9361
9362 2019-06-18 Tom de Vries <tdevries@suse.de>
9363
9364 PR gdb/24515
9365 * dwarf2read.h (abstract_to_concrete): Change type from
9366 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9367 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9368 * dwarf2read.c (read_variable): Update.
9369 (dwarf2_fetch_die_loc_sect_off): Update.
9370
9371 2019-06-17 Tom de Vries <tdevries@suse.de>
9372
9373 PR gdb/24617
9374 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9375 accessing parent[parent_len - 1].
9376
9377 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9378
9379 PR gdb/24364
9380 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9381 call dtrace_process_dof with NULL dof.
9382
9383 2019-06-16 Tom de Vries <tdevries@suse.de>
9384
9385 PR gdb/24445
9386 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9387
9388 2019-06-16 Tom Tromey <tom@tromey.com>
9389
9390 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9391 (make_all_visible): Use address of member.
9392
9393 2019-06-16 Tom Tromey <tom@tromey.com>
9394
9395 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9396 (tui_free_window, free_content, free_content_elements): Remove
9397 unnecessary cast.
9398 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9399 cast.
9400 * tui/tui-regs.c (tui_show_register_group)
9401 (tui_display_registers_from, tui_display_reg_element_at_line):
9402 Remove unnecessary cast.
9403
9404 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * linux-nat.c (normal_mask): Delete.
9407 (_initialize_linux_nat): Don't initialise normal_mask.
9408
9409 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9410
9411 PR gdb/24445
9412 * dwarf-index-write.h (write_psymtabs_to_index): Add
9413 dwz_basename parameter.
9414 * dwarf-index-write.c (write_gdbindex): Move file writing to
9415 write_gdbindex_1. Change return type void.
9416 (assert_file_size): Move up, remove filename parameter.
9417 (write_gdbindex_1): New function.
9418 (write_debug_names): Change return type to void, call
9419 assert_file_size.
9420 (struct index_wip_file): New struct.
9421 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9422 file logic to index_wip_file. Write index for dwz file if
9423 needed.
9424 (save_gdb_index_command): Pass basename of dwz file, if present.
9425 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9426 build-id of dwz file, if present.
9427 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9428 (dwarf2_get_dwz_file): Likewise.
9429 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9430 (dwarf2_get_dwz_file): Likewise.
9431
9432 2019-06-16 Tom Tromey <tom@tromey.com>
9433
9434 * coffread.c (process_coff_symbol): Use xstrdup.
9435 * value.c (create_internalvar): Use xstrdup.
9436
9437 2019-06-16 Tom Tromey <tom@tromey.com>
9438
9439 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9440 * breakpoint.c (stopin_command, stopat_command)
9441 (until_break_command, decode_location_default): Remove unnecessary
9442 cast.
9443 * utils.c (subset_compare): Remove unnecessary cast.
9444 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9445 cast.
9446 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9447 cast.
9448 * infcmd.c (path_command): Remove unnecessary cast.
9449 * coffread.c (decode_type): Remove unnecessary cast.
9450 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9451 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9452 * tui/tui-stack.c (tui_show_locator_content)
9453 (tui_show_frame_info): Remove unnecessary cast.
9454 * tui/tui-win.c (tui_scroll_forward_command)
9455 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9456 (parse_scrolling_args): Remove unnecessary cast.
9457 * tui/tui-data.c (init_win_info, tui_del_window)
9458 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9459 (free_content_elements): Remove unnecessary cast.
9460 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9461 unnecessary cast.
9462 * tui/tui-source.c (tui_set_source_content)
9463 (tui_vertical_source_scroll): Remove unnecessary cast.
9464 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9465 cast.
9466 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9467 * tui/tui-regs.c (tui_display_registers_from)
9468 (tui_display_register): Remove unnecessary cast.
9469 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9470 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9471 (make_visible): Remove unnecessary cast.
9472 * tui/tui-winsource.c (tui_erase_source_content)
9473 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9474 unnecessary cast.
9475 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9476 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9477 * stabsread.c (read_type, read_array_type, read_range_type):
9478 Remove unnecessary cast.
9479 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9480 (parse_symbol, parse_type, upgrade_type, parse_external)
9481 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9482 unnecessary cast.
9483 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9484
9485 2019-06-16 Tom Tromey <tom@tromey.com>
9486
9487 * tui/tui-data.c (tui_alloc_generic_win_info)
9488 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9489 checks.
9490
9491 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9492 Andrew Burgess <andrew.burgess@embecosm.com>
9493
9494 * f-typeprint.c (f_print_type): Don't return early for not
9495 associated or not allocated types.
9496 (f_type_print_varspec_suffix): Add print_rank parameter and print
9497 ranks of array types in case they dangling.
9498 (f_type_print_base): Add print_rank parameter.
9499
9500 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9501
9502 * NEWS: Mention new MI commands.
9503 * break-catch-throw.c (enum exception_event_kind): Move to
9504 breakpoint.h.
9505 (print_mention_exception_catchpoint): Output text as a single
9506 message.
9507 (catch_exception_command_1): Rename to...
9508 (catch_exception_event): ...this, make non-static, update header
9509 command, and change some parameter types.
9510 (catch_catch_command): Update for changes to
9511 catch_exception_command_1.
9512 (catch_throw_command): Likewise.
9513 (catch_rethrow_command): Likewise.
9514 * breakpoint.c (enum exception_event_kind): Delete.
9515 * breakpoint.h (enum exception_event_kind): Moved here from
9516 break-catch-throw.c.
9517 (catch_exception_event): Declare.
9518 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9519 (mi_cmd_catch_throw): New function.
9520 (mi_cmd_catch_rethrow): New function.
9521 (mi_cmd_catch_catch): New function.
9522 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9523 'catch-catch' entries.
9524 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9525 (mi_cmd_catch_rethrow): Declare.
9526 (mi_cmd_catch_catch): Declare.
9527
9528 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9529
9530 * annotate.c (annotate_source_line): Change return type to void,
9531 update implementation to match.
9532 * annotate.h (annotate_source_line): Change return type to void,
9533 update header comment.
9534 * stack.c (print_frame_info): Don't change what frame information
9535 is printed based on whether annotations are on or not.
9536
9537 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9538
9539 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9540 (annotate_source): Make static.
9541 (annotate_source_line): Moved from source.c and renamed from
9542 identify_source_line. Update the return type.
9543 * annotate.h (annotate_source): Delete declaration.
9544 (annotate_source_line): Declaration moved from source.h, and
9545 renamed from identify_source_line. Return type updated.
9546 * source.c (identify_source_line): Moved to annotate.c and renamed
9547 to annotate_source_line.
9548 (info_line_command): Remove check of annotation_level.
9549 * source.h (identify_source_line): Move declaration to annotate.h
9550 and rename to annotate_source_line.
9551 * stack.c: Add 'annotate.h' include.
9552 (print_frame_info): Remove check of annotation_level before
9553 calling annotate_source_line.
9554
9555 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9556
9557 * source-cache.c (source_cache::get_plain_source_lines): Use
9558 open_source_file_with_line_charpos instead of just
9559 open_source_file, remove call to find_source_lines.
9560 (source_cache::get_source_lines): Likewise.
9561 * source.c (find_source_lines): Make static.
9562 (get_filename_and_charpos): Renamed into...
9563 (open_source_file_with_line_charpos): ..this along with changes to
9564 return a scoped_fd, and some other minor clean ups.
9565 (identify_source_line): Use open_source_file_with_line_charpos.
9566 (search_command_helper): Use open_source_file_with_line_charpos
9567 instead of just open_source_file, remove call to
9568 find_source_lines.
9569 * source.h (open_source_file_with_line_charpos): Declare new
9570 function.
9571 (find_source_lines): Delete declaration.
9572
9573 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9574
9575 * source.c (get_filename_and_charpos): Remove fullname
9576 parameter.
9577 (identify_source_line): Update call to get_filename_and_charpos.
9578
9579 2019-06-14 Tom Tromey <tromey@adacore.com>
9580
9581 PR gdb/24502:
9582 * ui-style.h (skip_ansi_escape): Update comment.
9583 * ui-file.h (class no_terminal_escape_file): New class.
9584 * ui-file.c (no_terminal_escape_file::write)
9585 (no_terminal_escape_file::puts): New methods.
9586 * cli/cli-logging.c (handle_redirections): Use
9587 no_terminal_escape_file.
9588
9589 2019-06-14 Tom Tromey <tromey@adacore.com>
9590
9591 * NEWS: Move convenience variable news above Python news.
9592
9593 2019-06-14 Tom Tromey <tom@tromey.com>
9594
9595 * gnulib: Move directory to top-level.
9596 * configure.ac: Don't configure gnulib.
9597 * configure: Rebuild.
9598 * common/common-defs.h: Use new path to gnulib.
9599 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9600 (GNULIB_H): Remove.
9601 (INCGNU): Look in new gnulib location.
9602 (HFILES_NO_SRCDIR): Remove gnulib files.
9603 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9604 (generated_files): Remove GNULIB_H.
9605 ($(LIBGNU), all-lib): Remove targets.
9606 (distclean): Don't mention GNULIB_BUILDDIR.
9607 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9608
9609 2019-06-14 Tom Tromey <tromey@adacore.com>
9610
9611 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9612 Warn if symbol file does not provide any symbols.
9613
9614 2019-06-14 Tom Tromey <tromey@adacore.com>
9615
9616 * source.c (find_and_open_source): Respect basenames_may_differ.
9617
9618 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9619
9620 * annotate.c (annotate_breakpoints_invalid): Make use of
9621 scoped_restore_terminal_state.
9622 (annotate_frames_invalid): Likewise.
9623
9624 2019-06-14 Tom Tromey <tromey@adacore.com>
9625
9626 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9627 allow assignment to an internalvar.
9628
9629 2019-06-14 Tom Tromey <tromey@adacore.com>
9630
9631 * ada-lex.l: Allow "_" in attribute names.
9632
9633 2019-06-14 Tom Tromey <tromey@adacore.com>
9634
9635 PR gdb/24653:
9636 * regcache.c (registers_changed): Don't call alloca.
9637 * top.c (execute_command): Don't call alloca.
9638
9639 2019-06-13 Pedro Alves <palves@redhat.com>
9640
9641 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9642 'expression'. When parsing an expression, error out if there's
9643 junk after "unlimited".
9644 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9645 (do_set_command): Adjust calls to is_unlimited_literal.
9646
9647 2019-06-13 Pedro Alves <palves@redhat.com>
9648
9649 * compile/compile.c (make_compile_options_def_group): Add braces
9650 around array_view initializer.
9651 * thread.c (make_thread_apply_all_options_def_group)
9652 (make_thread_apply_all_options_def_group): Likewise.
9653
9654 2019-06-13 Pedro Alves <palves@redhat.com>
9655
9656 * NEWS (New commands): Mention "maint test-options
9657 require-delimiter", "maint test-options unknown-is-error", "maint
9658 test-options unknown-is-operand" and "maint show
9659 test-options-completion-result".
9660 (New command options, command completion): New section.
9661 (Completion improvements): New section.
9662 Mention that you can abbreviate "unlimited".
9663
9664 2019-06-13 Pedro Alves <palves@redhat.com>
9665
9666 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9667 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9668 * unittests/cli-utils-selftests.c (test_parse_flags)
9669 (test_parse_flags_qcs): Delete.
9670 (test_cli_utils): Don't call deleted functions.
9671
9672 2019-06-13 Pedro Alves <palves@redhat.com>
9673
9674 * thread.c: Include "cli/cli-option.h".
9675 (tp_array_compar_ascending): Global.
9676 (tp_array_compar): Delete function.
9677 (tp_array_compar_ascending, tp_array_compar_descending): New
9678 functions.
9679 (ascending_option_def, qcs_flag_option_def)
9680 (thr_qcs_flags_option_defs)
9681 (make_thread_apply_all_options_def_group)
9682 (make_thread_apply_options_def_group): New.
9683 (thread_apply_all_command): Use gdb::option::process_options.
9684 (thread_apply_command_completer)
9685 (thread_apply_all_command_completer): New.
9686 (thread_apply_command): Use gdb::option::process_options.
9687 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9688 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9689 to generate help text of "thread apply". Adjust "taas"'s help.
9690 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9691 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9692
9693 2019-06-13 Pedro Alves <palves@redhat.com>
9694
9695 * thread.c (thread_apply_command): Check for invalid TID with
9696 isdigit instead of !isalpha.
9697
9698 2019-06-13 Pedro Alves <palves@redhat.com>
9699
9700 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9701 (validate_flags_qcs): New.
9702 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9703 (validate_flags_qcs): Declare.
9704 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9705 (make_frame_apply_options_def_group): New.
9706 (frame_apply_command_count): Process options with
9707 gdb::option::process_options.
9708 (frame_apply_completer): New.
9709 (frame_apply_level_completer, frame_apply_all_completer)
9710 (frame_apply_completer): New.
9711 (_initialize_stack): Update help of "frame apply", "frame apply
9712 level", "frame apply all" and "faas" to mention supported options
9713 and install command completers.
9714 * stack.h (frame_apply_all_completer): Declare.
9715 * thread.c: Include "stack.h".
9716 (tfaas_command): Add "--".
9717 (_initialize_thread): Update help "tfaas" to mention supported
9718 options and install command completer.
9719
9720 2019-06-13 Pedro Alves <palves@redhat.com>
9721
9722 * completer.c (complete_nested_command_line): New.
9723 (gdb_completion_word_break_characters_throw): Add assertion.
9724 * completer.h (complete_nested_command_line): Declare.
9725
9726 2019-06-13 Pedro Alves <palves@redhat.com>
9727
9728 * stack.c (parse_backtrace_qualifiers): New.
9729 (backtrace_command): Use it.
9730 (backtrace_command_completer): Complete on qualifiers.
9731
9732 2019-06-13 Pedro Alves <palves@redhat.com>
9733
9734 * frame.c: Include "cli/cli-option.h.
9735 (user_set_backtrace_options): New.
9736 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9737 Delete.
9738 (get_prev_frame): Adjust.
9739 (boolean_option_def, uinteger_option_def)
9740 (set_backtrace_option_defs): New.
9741 (_initialize_frame): Adjust and use
9742 gdb::option::add_setshow_cmds_for_options to install "set
9743 backtrace past-main" and "set backtrace past-entry".
9744 * frame.h: Include "cli/cli-option.h".
9745 (struct frame_print_options): Forward declare.
9746 (print_frame_arguments_all, print_frame_arguments_scalars)
9747 (print_frame_arguments_none): Declare.
9748 (print_entry_values): Delete declaration.
9749 (struct frame_print_options, user_frame_print_options): New.
9750 (struct set_backtrace_options): New.
9751 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9752 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9753 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9754 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9755 (list_args_or_locals): Add frame_print_options parameter.
9756 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9757 * python/py-framefilter.c (enumerate_args): Pass down
9758 USER_FRAME_PRINT_OPTIONS.
9759 * stack.c: Include "cli/cli-option.h".
9760 (print_frame_arguments_all, print_frame_arguments_scalars)
9761 (print_frame_arguments_none): Declare.
9762 (print_raw_frame_arguments, print_entry_values): Delete.
9763 (user_frame_print_options): New.
9764 (boolean_option_def, enum_option_def, frame_print_option_defs):
9765 New.
9766 (struct backtrace_cmd_options): New.
9767 (bt_flag_option_def): New.
9768 (backtrace_command_option_defs): New.
9769 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9770 (print_frame_arg, read_frame_arg, print_frame_args)
9771 (print_frame_info, print_frame): Add frame_print_options parameter
9772 and use it.
9773 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9774 (backtrace_command_1): Add frame_print_options and
9775 backtrace_cmd_options parameters and use them.
9776 (make_backtrace_options_def_group): New.
9777 (backtrace_command): Process command options with
9778 gdb::option::process_options.
9779 (backtrace_command_completer): New.
9780 (_initialize_stack): Extend "backtrace"'s help to mention
9781 supported options. Install completer for "backtrace".
9782 Install some settings commands with add_setshow_cmds_for_options.
9783
9784 2019-06-13 Pedro Alves <palves@redhat.com>
9785
9786 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9787 and that "set/show print raw frame-arguments" are now deprecated.
9788
9789 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9790 command.
9791 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9792 * stack.c (_initialize_stack): Install "set/show print
9793 raw-frame-arguments", and deprecate "set/show print raw
9794 frame-arguments".
9795 * valprint.c (_initialize_valprint): Deprecate "set/show print
9796 raw".
9797
9798 2019-06-13 Pedro Alves <palves@redhat.com>
9799
9800 * compile/compile.c (struct compile_options): New.
9801 (compile_flag_option_def, compile_command_option_defs)
9802 (make_compile_options_def_group): New.
9803 (compile_file_command): Handle options with
9804 gdb::option::process_options.
9805 (compile_file_command_completer): New function.
9806 (compile_code_command): Handle options with
9807 gdb::option::process_options.
9808 (compile_code_command_completer): New function.
9809 (_initialize_compiler): Install completers for "compile code" and
9810 "compile file". Mention available options in "compile code" and
9811 "compile code"'s help.
9812 * completer.c (advance_to_completion_word): New, factored out from
9813 ...
9814 (advance_to_expression_complete_word_point): ... this.
9815 (advance_to_filename_complete_word_point): New.
9816 * completer.h (advance_to_filename_complete_word_point): New
9817 declaration.
9818
9819 2019-06-13 Pedro Alves <palves@redhat.com>
9820
9821 * compile/compile.c: Include "cli/cli-option.h".
9822 (compile_print_value): Scope data pointer is now a
9823 value_print_options pointer; adjust.
9824 (compile_print_command): Process options. Scope data pointer is
9825 now a value_print_options pointer; adjust.
9826 (_initialize_compile): Update "compile print"'s help to include
9827 supported options. Install a completer for "compile print".
9828 * cp-valprint.c (show_vtblprint, show_objectprint)
9829 (show_static_field_print): Delete.
9830 (_initialize_cp_valprint): Don't install "set print
9831 static-members", "set print vtbl", "set print object" here.
9832 * printcmd.c: Include "cli/cli-option.h" and
9833 "common/gdb_optional.h".
9834 (print_command_parse_format): Rework to fill in a
9835 value_print_options instead of a format_data.
9836 (print_value): Change parameter type from format_data pointer to
9837 value_print_options reference. Adjust.
9838 (print_command_1): Process options. Adjust to pass down a
9839 value_print_options.
9840 (print_command_completer): New.
9841 (_initialize_printcmd): Install print_command_completer as
9842 handle_brkchars completer for the "print" command. Update
9843 "print"'s help to include supported options.
9844 * valprint.c: Include "cli/cli-option.h".
9845 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9846 here from cp-valprint.c.
9847 (boolean_option_def, uinteger_option_def)
9848 (value_print_option_defs, make_value_print_options_def_group):
9849 New. Use gdb::option::add_setshow_cmds_for_options to install
9850 "set print elements", "set print null-stop", "set print repeats",
9851 "set print pretty", "set print union", "set print array", "set
9852 print address", "set print symbol", "set print array-indexes".
9853 * valprint.h: Include <string> and "cli/cli-option.h".
9854 (make_value_print_options_def_group): Declare.
9855 (print_value): Change parameter type from format_data pointer to
9856 value_print_options reference.
9857 (print_command_completer): Declare.
9858
9859 2019-06-13 Pedro Alves <palves@redhat.com>
9860
9861 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9862 (COMMON_SFILES): Add maint-test-settings.c.
9863 * cli/cli-decode.c (boolean_enums): New global, factored out from
9864 ...
9865 (add_setshow_boolean_cmd): ... here.
9866 * cli/cli-decode.h (boolean_enums): Declare.
9867 * cli/cli-option.c: New file.
9868 * cli/cli-option.h: New file.
9869 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9870 factored out from ...
9871 (parse_cli_boolean_value(const char *)): ... this.
9872 (is_unlimited_literal): Change parameter type to pointer to
9873 pointer. Adjust and advance ARG pointer.
9874 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9875 (parse_cli_var_enum): New, factored out from ...
9876 (do_set_command): ... this. Adjust.
9877 * cli/cli-setshow.h (parse_cli_boolean_value)
9878 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9879 (parse_cli_var_enum): Declare.
9880 * cli/cli-utils.c: Include "cli/cli-option.h".
9881 (get_ulongest): New.
9882 * cli/cli-utils.h (get_ulongest): Declare.
9883 (check_for_argument): New overloads.
9884 * maint-test-options.c: New file.
9885
9886 2019-06-13 Pedro Alves <palves@redhat.com>
9887
9888 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9889 parse a range if "-" is at the end of the string.
9890
9891 2019-06-13 Pedro Alves <palves@redhat.com>
9892
9893 * cli/cli-setshow.c (parse_auto_binary_operation)
9894 (parse_cli_boolean_value): Don't allow "o".
9895
9896 2019-06-13 Pedro Alves <palves@redhat.com>
9897
9898 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9899 * NEWS: Mention maint test-settings KIND.
9900 * maint-test-settings.c: New file.
9901
9902 2019-06-13 Pedro Alves <palves@redhat.com>
9903
9904 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9905 completer.
9906 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9907 "set" completers.
9908
9909 2019-06-13 Pedro Alves <palves@redhat.com>
9910
9911 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9912 after item.
9913
9914 2019-06-13 Pedro Alves <palves@redhat.com>
9915
9916 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9917
9918 2019-06-13 Pedro Alves <palves@redhat.com>
9919
9920 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9921 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9922 call.
9923 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9924 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9925 calls.
9926 (check_for_argument): Skip spaces after argument.
9927
9928 2019-06-13 Pedro Alves <palves@redhat.com>
9929
9930 * thread.c (thread_apply_command): Adjust TID parsing.
9931 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9932 detected before end of string.
9933 (tid_is_in_list): Error out if LIST is invalid.
9934
9935 2019-06-13 Pedro Alves <palves@redhat.com>
9936
9937 * completer.c (complete_line_internal_1): Rewind completion word
9938 point.
9939 (completion_tracker::advance_custom_word_point_by): Change
9940 parameter type to int.
9941 * completer.h (completion_tracker::advance_custom_word_point_by):
9942 Likewise.
9943
9944 2019-06-13 Pedro Alves <palves@redhat.com>
9945
9946 * completer.c (advance_to_completion_word): Handle delimiters.
9947
9948 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9949
9950 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9951
9952 2019-06-11 Tom Tromey <tom@tromey.com>
9953
9954 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9955 (xmalloc_failed): Move to alloc.c.
9956 * alloc.c: New file.
9957 * Makefile.in (COMMON_SFILES): Add alloc.c.
9958
9959 2019-06-11 Tom Tromey <tom@tromey.com>
9960
9961 * nat/linux-waitpid.c: Don't include server.h.
9962 (linux_debug): Remove.
9963 (my_waitpid): Update.
9964
9965 2019-06-11 Tom Tromey <tromey@adacore.com>
9966
9967 * infcall.c (_initialize_infcall): Remove trailing newline from
9968 help.
9969 * user-regs.c (_initialize_user_regs): Remove trailing newline
9970 from help.
9971 * typeprint.c (_initialize_typeprint): Remove trailing newline
9972 from help.
9973 * reverse.c (_initialize_reverse): Remove trailing newlines from
9974 help.
9975 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9976 from help.
9977 * language.c (add_set_language_command): Remove trailing newline
9978 from help.
9979 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9980 help.
9981 * disasm.c (_initialize_disasm): Remove trailing newline from
9982 help.
9983 * top.c (init_main): Remove trailing newline from help.
9984 * interps.c (_initialize_interpreter): Remove trailing newline
9985 from help.
9986 * btrace.c (_initialize_btrace): Remove trailing newlines from
9987 help.
9988 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9989 from help.
9990 * python/python.c (_initialize_python): Remove trailing newline
9991 from help.
9992 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9993 help.
9994 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9995 from help. Reformat some text.
9996 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9997 from help.
9998 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9999 newline from help.
10000
10001 2019-06-11 Tom Tromey <tromey@adacore.com>
10002
10003 * darwin-nat.c (darwin_decode_exception_message)
10004 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
10005
10006 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
10007
10008 * valops.c (value_slice): Check for not allocated or not
10009 associated values.
10010
10011 2019-06-10 Tom de Vries <tdevries@suse.de>
10012
10013 PR gdb/24618
10014 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10015 sure an empty slot (defined by a 32-bit zero pair) is recognized as
10016 invalid.
10017
10018 2019-06-10 Tom de Vries <tdevries@suse.de>
10019
10020 PR gdb/24611
10021 * linespec.c (linespec_lexer_lex_string): Remove incorrect
10022 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10023
10024 2019-06-10 Tom de Vries <tdevries@suse.de>
10025
10026 PR symtab/24545
10027 * symtab.c (struct demangled_name_entry): Add language field.
10028 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10029 static minimal symbol". Set and use language field.
10030
10031 2019-06-10 Tom Tromey <tromey@adacore.com>
10032
10033 * ada-lang.c (_initialize_ada_language): Update help text.
10034
10035 2019-06-10 Tom Tromey <tromey@adacore.com>
10036
10037 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10038 with a newline.
10039 * guile/guile.c (handle_boot_error): Don't end warning with a
10040 newline.
10041 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10042 warning with a newline.
10043 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10044 newline.
10045 (s12z_frame_cache): Likewise.
10046 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10047 a newline.
10048 * solib-svr4.c (disable_probes_interface): Don't end warning with
10049 a newline.
10050 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10051 newline.
10052 * python/python.c (do_finish_initialization): Don't end warning
10053 with a newline.
10054
10055 2019-06-10 Tom Tromey <tom@tromey.com>
10056
10057 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10058 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10059 gdbpy_enter.
10060
10061 2019-06-10 Tom Tromey <tromey@adacore.com>
10062
10063 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10064 data.
10065 (elf_new_init): Don't call stabsread_new_init.
10066 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10067 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10068 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10069
10070 2019-06-10 Tom de Vries <tdevries@suse.de>
10071
10072 PR symtab/16264
10073 PR symtab/24517
10074 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10075
10076 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10077
10078 * source.c (find_and_open_source): Also rewrite relative file
10079 names.
10080
10081 2019-04-26 Amos Bird <amosbird@gmail.com>
10082
10083 * annotate.c (annotate_thread_exited): Add "thread-exited"
10084 annotation.
10085
10086 2019-06-06 Tom Tromey <tromey@adacore.com>
10087
10088 * maint.h (class scoped_command_stats): Use
10089 DISABLE_COPY_AND_ASSIGN.
10090 <print_time>: New method.
10091 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10092 print_time.
10093 (scoped_command_stats::print_time): New method.
10094
10095 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10096
10097 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10098 instructions of lengths 6 or 8 bytes.
10099
10100 2019-06-04 Pedro Alves <palves@redhat.com>
10101
10102 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10103
10104 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10105 * breakpoint.c (condition_completer): Likewise.
10106 * cli/cli-dump.c (scan_expression): Likewise.
10107 * common/filestuff.c (mkdir_recursive): Likewise.
10108 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10109 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10110 (gdb_abspath): Likewise.
10111 * compile/compile-cplus-types.c
10112 (compile_cplus_instance::decl_name): Likewise.
10113 * completer.c (complete_explicit_location):
10114 (signal_completer, reg_or_group_completer_1): Likewise.
10115 * cp-support.c (cp_remove_params_if_any): Likewise.
10116 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10117 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10118 * infcmd.c (strip_bg_char): Likewise.
10119 * linespec.c (copy_token_string): Likewise.
10120 * mi/mi-main.c (output_cores): Likewise.
10121 * psymtab.c (psymtab_search_name):
10122 * symfile.c (test_set_ext_lang_command): Likewise.
10123 * target.c (target_fileio_read_stralloc): Likewise.
10124 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10125 * value.c (complete_internalvar): Likewise.
10126
10127 2019-06-04 Christian Biesinger <cbiesinger@google.com>
10128
10129 Add objfile property to gdb.Type.
10130 * NEWS: Mention Python API addition.
10131 * python/py-type.c (typy_get_objfile): New method.
10132
10133 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10134
10135 * NEWS: Mention the new set|show style [title|highlight].
10136 Mention changes to "show style", "help" and "apropos".
10137
10138 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10139
10140 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10141 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10142 instead of print_help_for_command.
10143 (print_doc_of_command): New function.
10144 (help_list): Add 'apropos -v word' suggestion.
10145 (print_help_for_command): Style the command name using title style.
10146 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10147 (_initialize_cli_cmds): Describe -v in apropos_command help.
10148
10149 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10150
10151 * cli/cli-style.h (cli_style_option): Add name in constructor,
10152 add m_name class member, add constructor with intensity,
10153 add name class function.
10154 (cli_style_option::add_setshow_commands): Remove name argument.
10155 (highlight_style, title_style): New styles.
10156 * cli/cli-style.c (do_show): New function that shows a style
10157 characteristic styling the style name with itself.
10158 (set_style_name): New function.
10159 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10160 Update all callers according to the changes in cli/cli-style.h.
10161 * utils.h (fputs_highlighted): New function.
10162 * utils.c (fputs_highlighted): Likewise.
10163
10164 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10165
10166 * NEWS: Mention new pipe command and new convenience variables.
10167
10168 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10169
10170 * cli/cli-cmds.c (pipe_command): New function.
10171 (_initialize_cli_cmds): Call add_com for pipe_command.
10172 Define | as an alias for pipe.
10173 (exit_status_set_internal_vars): New function.
10174 (shell_escape): Call exit_status_set_internal_vars.
10175 cli/cli-decode.c (find_command_name_length): Recognize | as
10176 a single character command.
10177
10178 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10179
10180 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10181 top.c (execute_command_to_ui_file): New function, mostly a copy
10182 of execute_command_to_string.
10183 (execute_command_to_string): Implement by calling
10184 execute_command_to_ui_file.
10185
10186 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10187
10188 * top.h (saved_command_line): Remove declaration.
10189 * top.c (previous_saved_command_line, previous_repeat_arguments):
10190 New variables.
10191 (saved_command_line): Make static, define together with other
10192 'repeat variables'.
10193 (dont_repeat): Clear repeat_arguments.
10194 (repeat_previous, get_saved_command_line, save_command_line):
10195 New functions.
10196 (gdb_init): Initialize saved_command_line
10197 and previous_saved_command_line.
10198 * main.c (captured_main_1): Remove saved_command_line initialization.
10199 * event-top.c (handle_line_of_input): Update to use
10200 the new 'repeat' related functions instead of direct access to
10201 saved_command_line.
10202 * command.h (repeat_previous, get_saved_command_line,
10203 save_command_line): New declarations.
10204 (dont_repeat): Add comment.
10205
10206 2019-05-30 Tom Tromey <tromey@adacore.com>
10207
10208 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10209 Fix comment.
10210 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10211
10212 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10213
10214 PR cli/24587
10215 * completer.c (complete): Initialize variable word.
10216
10217 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10218
10219 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10220 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10221 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10222 'body' is NULL to the outter 'if', protecting the '!is_define'
10223 situation as well.
10224
10225 2019-05-29 Tom Tromey <tromey@adacore.com>
10226
10227 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10228 (dwarf_unknown): New function.
10229 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10230 (dwarf_type_encoding_name): Use dwarf_unknown.
10231
10232 2019-05-29 Tom Tromey <tromey@adacore.com>
10233
10234 PR c++/20020:
10235 * cp-valprint.c (cp_print_value_fields): Call
10236 cp_print_static_field inside "try".
10237
10238 2019-05-29 Tom Tromey <tromey@adacore.com>
10239
10240 * inflow.c (struct terminal_info): Add default operator=.
10241 * configure: Rebuild.
10242 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10243 -Wdeprecated-copy-dtor, -Wredundant-move.
10244
10245 2019-05-29 Tom Tromey <tromey@adacore.com>
10246
10247 * NEWS: Add entry.
10248 * infcmd.c (print_return_value_1): Handle finish_print
10249 option.
10250 (show_print_finish): New function.
10251 (_initialize_infcmd): Add "set/show print finish" commands.
10252 * valprint.c (user_print_options): Initialize new member.
10253 * valprint.h (struct value_print_options) <finish_print>: New
10254 member.
10255
10256 2019-05-28 Tom Tromey <tromey@adacore.com>
10257
10258 * ada-lang.c (ada_remove_Xbn_suffix)
10259 (find_old_style_renaming_symbol)
10260 (parse_old_style_renaming): Remove.
10261 (ada_find_renaming_symbol): Don't call
10262 find_old_style_renaming_symbol.
10263 (ada_is_renaming_symbol): Rename from
10264 ada_find_renaming_symbol. Remove "block" parameter. Return
10265 bool. Now static.
10266 (ada_read_var_value): Update and simplify.
10267 * ada-exp.y (write_var_or_type): Remove old code.
10268
10269 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10270
10271 PR gdb/25010
10272 * event-top.c: Remove include comment.
10273 * inflow.c (class scoped_ignore_sigttou): Move from here...
10274 * inflow.h (class scoped_ignore_sigttou): ...to here.
10275 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10276 * top.c: Remove include comment.
10277
10278 2019-05-27 Tom Tromey <tom@tromey.com>
10279
10280 * NEWS: Fix typo.
10281
10282 2019-05-22 Tom Tromey <tromey@adacore.com>
10283
10284 * target.c (target_follow_exec): Constify parameter.
10285 * target-delegates.c: Rebuild.
10286 * remote.c (remote_target::follow_exec): Constify parameter.
10287 * infrun.c (follow_exec): Constify parameter.
10288 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10289 (target_follow_exec): Likewise.
10290
10291 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10292
10293 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10294 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10295
10296 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10297
10298 * NEWS: Add debugredirect and testsuite sections.
10299
10300 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10301
10302 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10303 target descriptions using exclusively floating point register name
10304 aliases.
10305
10306 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 PR gdb/18644:
10309 * f-lang.c (build_fortran_types): Handle the case where
10310 gdbarch_floatformat_for_type returns a nullptr.
10311
10312 2019-05-21 Tom de Vries <tdevries@suse.de>
10313
10314 PR cli/24587
10315 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10316
10317 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10318
10319 PR gdb/18644:
10320 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10321 16-byte floats.
10322 * i386-tdep.c (i386_floatformat_for_type): Use
10323 floatformats_ia64_quad for the 16-byte floating point component
10324 within a fortran 32-byte complex number.
10325
10326 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10327
10328 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10329 delete default constructor.
10330 (find_partial_die): Update to return const struct.
10331 (partial_die_parent_scope): Move variable declaration into scope
10332 of its use and change its type to auto.
10333 (guess_partial_die_structure_name): Likewise.
10334 (partial_die_info::fixup): Likewise.
10335
10336 2019-05-17 Tom Tromey <tromey@adacore.com>
10337
10338 * source.c (find_and_open_source): Remove cast.
10339
10340 2019-05-17 Tom Tromey <tromey@adacore.com>
10341
10342 * annotate.c (annotate_source): Make "filename" const.
10343 * annotate.h (annotate_source): Use const.
10344
10345 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10346
10347 * disasm.c (set_disassembler_options): Send errors to stderr.
10348
10349 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10350
10351 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10352 (cli_interp_base::set_logging): Check debug_redirect.
10353 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10354 * cli/cli-logging.c (debug_redirect): Add static variable.
10355 (pop_output_files): Add default param.
10356 (handle_redirections): Print debug setting.
10357 (show_logging_command): Likewise.
10358 (_initialize_cli_logging): Add debugredirect command.
10359 * interps.c (current_interp_set_logging): Add debug_redirect
10360 parameter.
10361 * interps.h (set_logging): Add debug_redirect parameter.
10362 (current_interp_set_logging): Likewise.
10363 * mi/mi-common.h: Likewise.
10364 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10365
10366 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10367 Tom Tromey <tromey@adacore.com>
10368
10369 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10370 directly.
10371 * cli/cli-interp.h (make_logging_output): Remove declaration.
10372 * cli/cli-logging.c (make_logging_output): Remove function.
10373 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10374 directly.
10375 * ui-file.c (tee_file::tee_file): Remove bools.
10376 (tee_file::~tee_file): Remove deletes.
10377 * ui-file.h (tee_file): Remove bools.
10378
10379 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10380
10381 * mi/mi-cmds.h (mi_cmd_complete): New function.
10382 * mi/mi-main.c (mi_cmd_complete): Likewise.
10383 * mi/mi-cmds.c: Define new MI command -complete.
10384 * NEWS: Mention new -complete command.
10385
10386 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10387
10388 * completer.h (complete): New function.
10389 * completer.c (complete): Likewise.
10390 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10391 function defined in completer.h.
10392
10393 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10394
10395 * MAINTAINERS (Write After Approval): Add myself.
10396
10397 2019-05-17 Tom de Vries <tdevries@suse.de>
10398
10399 PR gdb/24094
10400 * dwarf2read.c (struct cu_partial_die_info): New struct.
10401 (find_partial_die): Return cu_partial_die_info.
10402 (partial_die_parent_scope, guess_partial_die_structure_name)
10403 (partial_die_info::fixup): Handle new return type of find_partial_die.
10404
10405 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10406
10407 PR breakpoints/24541
10408 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10409 "std::string", simplifying the algorithm.
10410
10411 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10412
10413 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10414 (stap_static_probe_ops::get_probes): Likewise.
10415
10416 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10417
10418 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10419 '-')" and "else if".
10420 (stap_parse_single_operand): Join checks for
10421 "gdbarch_stap_parse_special_token_p" and
10422 "gdbarch_stap_parse_special_token" in the same "if" statement.
10423 Invert check when verifying for operation on register
10424 displacement.
10425
10426 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10427
10428 * stap-probe.c (stap_get_opcode): Update comment.
10429 (stap_get_expected_argument_type): Likewise.
10430 (handle_stap_probe): Likewise.
10431
10432 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10433
10434 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10435 return type to 'bool'. Adjust comment. Use 'bool' when
10436 appropriate.
10437 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10438 * stap-probe.c (stap_parse_argument_1): Likewise.
10439 (stap_is_operator): Likewise.
10440 (stap_is_generic_prefix): Likewise.
10441 (stap_is_register_prefix): Likewise.
10442 (stap_is_register_indirection_prefix): Likewise.
10443 (stap_is_integer_prefix): Likewise.
10444 (stap_generic_check_suffix): Likewise.
10445 (stap_check_integer_suffix): Likewise.
10446 (stap_check_register_suffix): Likewise.
10447 (stap_check_register_indirection_suffix): Likewise.
10448 (stap_parse_register_operand): Likewise.
10449 (stap_parse_single_operand): Likewise.
10450 (stap_parse_argument_1): Likewise.
10451 (stap_probe::get_argument_count): Likewise.
10452 (stap_is_operator): Likewise.
10453
10454 2019-05-16 Tom Tromey <tromey@adacore.com>
10455
10456 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10457 keyword to foreach.
10458
10459 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * linux-thread-db.c (try_thread_db_load_1): Change return type
10462 to bool.
10463 (try_thread_db_load): Likewise.
10464 (try_thread_db_load_from_pdir_1): Likewise.
10465 (try_thread_db_load_from_pdir): Likewise.
10466 (try_thread_db_load_from_sdir): Likewise.
10467 (try_thread_db_load_from_dir): Likewise.
10468 (thread_db_load_search): Likewise.
10469 (has_libpthread): Likewise.
10470 (thread_db_load): Likewise.
10471
10472 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10473
10474 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10475 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10476 NULL, and complain/return if that's the case.
10477
10478 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10479
10480 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10481 (advance, posn, abstract_read_memory): New functions.
10482 [struct mem_read_abstraction]: New struct.
10483 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10484
10485 2019-05-14 Tom Tromey <tromey@adacore.com>
10486
10487 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10488 value is not lval_memory.
10489
10490 2019-05-14 Tom Tromey <tromey@adacore.com>
10491
10492 * solib.c (info_sharedlibrary_command): Style the file name.
10493
10494 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10495
10496 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10497 (aarch64_vnv_type): Likewise.
10498 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10499 * common/tdesc.c: Likewise.
10500 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10501 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10502 * features/aarch64-fpu.xml: Add ieee half view.
10503 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10504 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10505 * gdbtypes.h (struct builtin_type): Likewise.
10506 (struct objfile_type): Likewise.
10507
10508 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10509
10510 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10511 typo.
10512 * location.h (string_to_event_location): Likewise.
10513
10514 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10515
10516 GDB 8.3 released.
10517
10518 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10519
10520 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10521 New variable declaration.
10522 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10523 New variable.
10524 (print_one_breakpoint): Use ui_out::test_flags and new global
10525 variable to compute use_fixed_output.
10526 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10527 Remove.
10528 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10529 (mi_multi_location_breakpoint_output_fixed): Remove.
10530 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10531 new variable.
10532 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10533 fix_multi_location_breakpoint_output flag if version >= 3.
10534 * ui-out.h (enum ui_out_flag)
10535 <fix_multi_location_breakpoint_output>: New enumerator.
10536
10537 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10538
10539 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10540
10541 2019-05-10 Tom Tromey <tromey@adacore.com>
10542
10543 * ada-lang.c (catch_ada_completer): New function.
10544 (_initialize_ada_language): Use it.
10545
10546 2019-05-10 Tom Tromey <tromey@adacore.com>
10547
10548 * thread.c (print_thread_info): Make "requested_threads" const.
10549 * gdbthread.h (print_thread_info): Make "requested_threads"
10550 const.
10551 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10552 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10553
10554 2019-05-08 Tom Tromey <tom@tromey.com>
10555
10556 * gdbtypes.c (objfile_type_data): Change type.
10557 (objfile_type, _initialize_gdbtypes): Update.
10558
10559 2019-05-08 Tom Tromey <tom@tromey.com>
10560
10561 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10562 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10563 (_initialize_dwarf2_frame): Update.
10564
10565 2019-05-08 Tom Tromey <tom@tromey.com>
10566
10567 * objc-lang.c (objc_objfile_data): Change type.
10568 (find_methods): Update.
10569 (_initialize_objc_lang): Remove.
10570
10571 2019-05-08 Tom Tromey <tom@tromey.com>
10572
10573 * stabsread.c (rs6000_builtin_type_data): Change type.
10574 (rs6000_builtin_type, _initialize_stabsread): Update.
10575
10576 2019-05-08 Tom Tromey <tom@tromey.com>
10577
10578 * mips-tdep.c (mips_pdr_data): Remove.
10579 (_initialize_mips_tdep): Update.
10580
10581 2019-05-08 Tom Tromey <tom@tromey.com>
10582
10583 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10584 (hppa_init_objfile_priv_data, read_unwind_info)
10585 (find_unwind_entry, _initialize_hppa_tdep): Update.
10586
10587 2019-05-08 Tom Tromey <tom@tromey.com>
10588
10589 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10590 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10591 on obstack.
10592 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10593
10594 2019-05-08 Tom Tromey <tom@tromey.com>
10595
10596 * mdebugread.c (basic_type_data): Change type.
10597 (basic_type, _initialize_mdebugread): Update.
10598
10599 2019-05-08 Tom Tromey <tom@tromey.com>
10600
10601 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10602
10603 2019-05-08 Tom Tromey <tom@tromey.com>
10604
10605 * nto-tdep.c (nto_inferior_data_reg): Change type.
10606 (nto_inferior_data): Update.
10607 (nto_inferior_data_cleanup, nto_new_inferior_data)
10608 (_initialize_nto_tdep): Remove.
10609 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10610
10611 2019-05-08 Tom Tromey <tom@tromey.com>
10612
10613 * ada-lang.c (struct ada_inferior_data): Add initializers.
10614 (ada_inferior_data): Change type.
10615 (ada_inferior_data_cleanup): Remove.
10616 (get_ada_inferior_data, ada_inferior_exit)
10617 (struct ada_pspace_data): Add initializers, destructor.
10618 (ada_pspace_data_handle): Change type.
10619 (get_ada_pspace_data): Update.
10620 (ada_pspace_data_cleanup): Remove.
10621
10622 2019-05-08 Tom Tromey <tom@tromey.com>
10623
10624 * coffread.c (struct coff_symfile_info): Add initializers.
10625 (coff_objfile_data_key): Move lower. Change type.
10626 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10627 Update.
10628 (coff_free_info): Remove.
10629
10630 2019-05-08 Tom Tromey <tom@tromey.com>
10631
10632 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10633 (fbsd_pspace_data_handle): Move lower. Change type.
10634 (get_fbsd_pspace_data): Update.
10635 (fbsd_pspace_data_cleanup): Remove.
10636 (_initialize_fbsd_tdep): Update.
10637
10638 2019-05-08 Tom Tromey <tom@tromey.com>
10639
10640 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10641 (get_ada_tasks_pspace_data): Update.
10642 (ada_tasks_pspace_data_cleanup): Remove.
10643 (_initialize_tasks): Update.
10644 (ada_tasks_inferior_data_handle): Change type.
10645 (get_ada_tasks_inferior_data): Update.
10646 (ada_tasks_inferior_data_cleanup): Remove.
10647 (struct ada_tasks_pspace_data): Add initializers.
10648
10649 2019-05-08 Tom Tromey <tom@tromey.com>
10650
10651 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10652 * symfile-debug.c (debug_sym_get_probes): Change type.
10653 * stap-probe.c (handle_stap_probe):
10654 (stap_static_probe_ops::get_probes): Change type.
10655 * probe.h (class static_probe_ops) <get_probes>: Change type.
10656 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10657 (parse_probes_in_pspace): Update.
10658 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10659 Update.
10660 (any_static_probe_ops::get_probes): Change type.
10661 * elfread.c (elfread_data): New typedef.
10662 (probe_key): Change type.
10663 (elf_get_probes): Likewise. Update.
10664 (probe_key_free): Remove.
10665 (_initialize_elfread): Update.
10666 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10667 Change type.
10668 (dtrace_process_dof_probe, dtrace_process_dof)
10669 (dtrace_static_probe_ops::get_probe): Change type.
10670
10671 2019-05-08 Tom Tromey <tom@tromey.com>
10672
10673 * xcoffread.c (struct xcoff_symfile_info): Rename from
10674 coff_symfile_info. Add initializers.
10675 (xcoff_objfile_data_key): Move lower. Change type.
10676 (XCOFF_DATA): Rewrite.
10677 (xcoff_free_info): Remove.
10678 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10679 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10680 (xcoff_initial_scan): Update.
10681
10682 2019-05-08 Tom Tromey <tom@tromey.com>
10683
10684 * solib-svr4.c (struct svr4_info): Add initializers and
10685 destructor.
10686 <probes_table>: Now an htab_up.
10687 (solib_svr4_pspace_data): Change type.
10688 (free_probes_table): Simplify.
10689 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10690 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10691 (probes_table_remove_objfile_probes, register_solib_event_probe)
10692 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10693 (_initialize_svr4_solib): Update.
10694
10695 2019-05-08 Tom Tromey <tom@tromey.com>
10696
10697 * remote.c (remote_pspace_data): Change type.
10698 (remote_pspace_data_cleanup): Remove.
10699 (get_remote_exec_file, set_pspace_remote_exec_file)
10700 (_initialize_remote): Update.
10701
10702 2019-05-08 Tom Tromey <tom@tromey.com>
10703
10704 * breakpoint.c (breakpoint_objfile_key): Change type.
10705 (get_breakpoint_objfile_data): Update.
10706 (free_breakpoint_objfile_data): Remove.
10707 (_initialize_breakpoint): Update.
10708
10709 2019-05-08 Tom Tromey <tom@tromey.com>
10710
10711 * linux-tdep.c (struct linux_info): Add initializers.
10712 (linux_inferior_data): Move. Change type.
10713 (invalidate_linux_cache_inf): Update.
10714 (linux_inferior_data_cleanup): Remove.
10715 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10716
10717 2019-05-08 Tom Tromey <tom@tromey.com>
10718
10719 * auxv.c (auxv_inferior_data): Move. Change type.
10720 (auxv_inferior_data_cleanup): Remove.
10721 (invalidate_auxv_cache_inf): Rewrite.
10722 (get_auxv_inferior_data, _initialize_auxv): Update.
10723
10724 2019-05-08 Tom Tromey <tom@tromey.com>
10725
10726 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10727 (symfile_debug_objfile_data_key): Change type.
10728 (symfile_debug_installed, debug_qf_has_symbols)
10729 (debug_qf_find_last_source_symtab)
10730 (debug_qf_forget_cached_source_info)
10731 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10732 (debug_qf_print_stats, debug_qf_dump)
10733 (debug_qf_expand_symtabs_for_function)
10734 (debug_qf_expand_all_symtabs)
10735 (debug_qf_expand_symtabs_with_fullname)
10736 (debug_qf_map_matching_symbols)
10737 (debug_qf_expand_symtabs_matching)
10738 (debug_qf_find_pc_sect_compunit_symtab)
10739 (debug_qf_map_symbol_filenames)
10740 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10741 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10742 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10743 (debug_sym_read_linetable, debug_sym_relocate): Update.
10744 (symfile_debug_free_objfile): Remove.
10745 (install_symfile_debug_logging, _initialize_symfile_debug):
10746 Update.
10747
10748 2019-05-08 Tom Tromey <tom@tromey.com>
10749
10750 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10751 allocate_on_obstack.
10752 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10753 (get_dwarf2_per_objfile): Update.
10754 (set_dwarf2_per_objfile): Remove.
10755 (dwarf2_has_info, dwarf2_get_section_info): Update.
10756 (dwarf2_free_objfile): Remove.
10757 (_initialize_dwarf2_read): Update.
10758
10759 2019-05-08 Tom Tromey <tom@tromey.com>
10760
10761 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10762 initializers.
10763 <unsupported_script_warning_printed,
10764 script_not_found_warning_printed>: Now bool.
10765 (auto_load_pspace_data): Change type.
10766 (~auto_load_pspace_info): Rename from
10767 auto_load_pspace_data_cleanup.
10768 (get_auto_load_pspace_data, init_loaded_scripts_info)
10769 (clear_section_scripts, maybe_print_unsupported_script_warning)
10770 (maybe_print_script_not_found_warning, _initialize_auto_load):
10771 Update.
10772
10773 2019-05-08 Tom Tromey <tom@tromey.com>
10774
10775 * objfiles.c (objfile_pspace_info): Add destructor and
10776 initializers.
10777 (objfiles_pspace_data): Change type.
10778 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10779 (get_objfile_pspace_data): Update.
10780 (objfiles_bfd_data): Change type.
10781 (get_objfile_bfd_data): Update.
10782 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10783
10784 2019-05-08 Tom Tromey <tom@tromey.com>
10785
10786 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10787 Change type.
10788 (get_catch_syscall_inferior_data): Update.
10789 (catch_syscall_inferior_data_cleanup): Remove.
10790 (_initialize_break_catch_syscall): Update.
10791
10792 2019-05-08 Tom Tromey <tom@tromey.com>
10793
10794 * inflow.c (struct terminal_info): Add destructor and
10795 initializers.
10796 (inflow_inferior_data): Change type.
10797 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10798 (get_inflow_inferior_data, inflow_inferior_exit)
10799 (swap_terminal_info, _initialize_inflow): Update.
10800
10801 2019-05-08 Tom Tromey <tom@tromey.com>
10802
10803 * target-dcache.c (target_dcache_cleanup): Remove.
10804 (target_dcache_aspace_key): Change type.
10805 (target_dcache_init_p, target_dcache_invalidate)
10806 (target_dcache_get, target_dcache_get_or_init)
10807 (_initialize_target_dcache): Update.
10808 * dcache.h (struct dcache_deleter): New.
10809
10810 2019-05-08 Tom Tromey <tom@tromey.com>
10811
10812 * symtab.c (struct symbol_cache): Add destructor and
10813 initializers.
10814 (symbol_cache_key): Move. Change type.
10815 (make_symbol_cache, free_symbol_cache): Remove.
10816 (get_symbol_cache): Update.
10817 (symbol_cache_cleanup): Remove.
10818 (ALL_PSPACES, symbol_cache_flush)
10819 (maintenance_print_symbol_cache)
10820 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10821 Update.
10822
10823 2019-05-08 Tom Tromey <tom@tromey.com>
10824
10825 * symtab.c (struct main_info): Add destructor and initializers.
10826 (main_progspace_key): Move. Change type.
10827 (get_main_info): Update.
10828 (main_info_cleanup): Remove.
10829 (_initialize_symtab): Update.
10830
10831 2019-05-08 Tom Tromey <tom@tromey.com>
10832
10833 * registry.h (DECLARE_REGISTRY): Define the _key class.
10834
10835 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10836
10837 * NEWS: Merge two 'New commands' sections.
10838
10839 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10840
10841 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10842 parameter and use Ada language definition instead.
10843 (ada_val_print_ptr): Remove unused language parameter.
10844 (ada_val_print_num): Remove language parameter and use Ada language
10845 definition instead.
10846 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10847 parameter.
10848 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10849 parameter and use Ada language definition instead.
10850 (ada_val_print_1): Update all ada_val_print_xxx calls.
10851 Remove language parameter.
10852 (ada_val_print): Update ada_val_print_1 call.
10853
10854 2019-05-08 Tom Tromey <tromey@adacore.com>
10855
10856 * remote.c (remote_hw_watchpoint_limit)
10857 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10858 Now static.
10859
10860 2019-05-08 Tom Tromey <tromey@adacore.com>
10861
10862 * maint.c (_initialize_maint_cmds): Move initialization code to
10863 remote.c.
10864 (watchdog, show_watchdog): Move to remote.c.
10865 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10866 "watchdog" static.
10867 (_initialize_remote): Move initialization code from maint.c.
10868 * defs.h (watchdog): Don't declare.
10869
10870 2019-05-08 Tom Tromey <tromey@adacore.com>
10871
10872 * tui/tui-interp.c: Include main.h.
10873 * interps.c: Include main.h.
10874 * main.h (interpreter_p): Declare.
10875 * defs.h (interpreter_p): Don't declare.
10876
10877 2019-05-08 Tom Tromey <tromey@adacore.com>
10878
10879 * dwarf2loc.c: Include dwarf2read.h.
10880 * defs.h (read_unsigned_leb128): Don't declare.
10881 * dwarf2read.h (read_unsigned_leb128): Declare.
10882
10883 2019-05-08 Tom Tromey <tromey@adacore.com>
10884
10885 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10886 method.
10887
10888 2019-05-08 Tom Tromey <tromey@adacore.com>
10889
10890 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10891 when no wrap column is set.
10892
10893 2019-05-08 Tom Tromey <tromey@adacore.com>
10894
10895 * c-lang.c (c_get_string): Handle non-C-style arrays.
10896
10897 2019-05-08 Tom Tromey <tromey@adacore.com>
10898
10899 * typeprint.c (print_offset_data::update): Print the bit offset,
10900 not the number of bits remaining.
10901
10902 2019-05-08 Tom Tromey <tromey@adacore.com>
10903
10904 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10905 padding at end of comment.
10906
10907 2019-05-08 Tom Tromey <tromey@adacore.com>
10908
10909 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10910 Compare main types.
10911
10912 2019-05-06 Tom Tromey <tom@tromey.com>
10913
10914 * common/scoped_mmap.c: Include common-defs.h.
10915 * common/scoped_mmap.h: Don't include config.h.
10916
10917 2019-05-04 Tom Tromey <tom@tromey.com>
10918
10919 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10920 (struct aarch64_call_info): Add initializers.
10921 <si>: Now a std::vector.
10922 (pass_on_stack, aarch64_push_dummy_call): Update.
10923
10924 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10925 Tom Tromey <tom@tromey.com>
10926
10927 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10928 (ppc_threads): Now a std::vector. Now static.
10929 (hwdebug_find_thread_points_by_tid)
10930 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10931 Update.
10932
10933 2019-05-04 Tom Tromey <tom@tromey.com>
10934
10935 * arc-tdep.c (arc_tdesc_init): Return bool.
10936
10937 2019-05-04 Tom Tromey <tom@tromey.com>
10938
10939 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10940 Use gdb_assert_not_reached.
10941
10942 2019-05-04 Tom Tromey <tom@tromey.com>
10943
10944 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10945 "false".
10946
10947 2019-05-04 Tom Tromey <tom@tromey.com>
10948
10949 * arc-tdep.c (arc_tdesc_init): Use bool.
10950
10951 2019-05-04 Tom Tromey <tom@tromey.com>
10952
10953 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10954
10955 2019-05-04 Tom Tromey <tom@tromey.com>
10956
10957 * cli/cli-cmds.c (valid_command_p): Return bool.
10958
10959 2019-05-04 Tom Tromey <tom@tromey.com>
10960
10961 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10962 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10963
10964 2019-05-04 Raul Tambre <raul@tambre.ee>
10965
10966 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10967 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10968 operator for comparison.
10969
10970 2019-05-04 Tom Tromey <tom@tromey.com>
10971
10972 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10973 (lookup_partial_symbol, print_partial_symbols)
10974 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10975 (psymbol_compare): Update.
10976 (add_psymbol_to_bcache): Clear the entire psymbol.
10977 (maintenance_check_psymtabs): Update.
10978 * psympriv.h (struct partial_symbol): Don't derive from
10979 general_symbol_info.
10980 <obj_section, unrelocated_address, address,
10981 set_unrelocated_address>: Update.
10982 <ginfo>: New member.
10983 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10984 (debug_names::write_psymbols): Update.
10985
10986 2019-05-04 Tom de Vries <tdevries@suse.de>
10987
10988 * contrib/cc-with-tweaks.sh: Support -n arg.
10989
10990 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10991
10992 * corelow.c (core_target::detach): Ensure frame cache and
10993 register caches are cleared.
10994 inferior.c (exit_inferior_1): Likewise.
10995
10996 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10997 Tom Tromey <tom@tromey.com>
10998
10999 * dictionary.c (collate_pending_symbols_by_language): Remove
11000 "struct" from foreach.
11001 * symtab.c (lookup_global_symbol_from_objfile)
11002 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
11003 foreach.
11004 * ser-tcp.c (net_open): Remove "struct" from foreach.
11005 * objfiles.c (objfile_relocate, objfile_rebase)
11006 (objfile_has_symbols): Remove "struct" from foreach.
11007 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
11008 from foreach.
11009 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
11010 foreach.
11011 * darwin-nat.c (thread_info_from_private_thread_info): Remove
11012 "struct" from foreach.
11013 * ada-lang.c (create_excep_cond_exprs)
11014 (ada_exception_catchpoint_cond_string): Remove "struct" from
11015 foreach.
11016
11017 2019-05-03 Tom Tromey <tromey@adacore.com>
11018
11019 * ada-exp.y (convert_char_literal): Check suffix of each
11020 enumerator.
11021
11022 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11023
11024 PR ada/21406:
11025 * ada-exp.y (yywrap): Don't define.
11026 * ada-lex.l (%option): Add noyywrap
11027 (yywrap): Remove.
11028
11029 2019-05-03 Eli Zaretskii <eliz@gnu.org>
11030
11031 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11032 _WIN32_WINNT to the XP level, unless already defined to a higher
11033 level.
11034
11035 * unittests/parse-connection-spec-selftests.c:
11036 * ser-tcp.c:
11037 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11038 override.
11039
11040 * symfile.c (find_separate_debug_file): Remove colon from the
11041 drive spec of DOS/Windows file names of the target, so that the
11042 file name produced from DEBUGDIR and the target's directory will
11043 be valid on DOS/Windows systems.
11044
11045 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11046
11047 * rust-lang.c (val_print_struct): Handle printing structures
11048 containing strings.
11049
11050 2019-05-02 Tom Tromey <tromey@adacore.com>
11051
11052 * valarith.c (_initialize_valarith): Remove.
11053
11054 2019-05-01 Tom Tromey <tromey@adacore.com>
11055
11056 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11057 bitfields.
11058
11059 2019-05-01 Tom Tromey <tromey@adacore.com>
11060
11061 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11062 for big-endian copies.
11063
11064 2019-04-30 Ali Tamur <tamur@google.com>
11065 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11066 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11067 (read_3_bytes): New function.
11068
11069 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11070
11071 * windows-nat.c (main_thread_id): Delete.
11072 (handle_output_debug_string): Replace main_thread_id by
11073 current_event.dwThreadId.
11074 (fake_create_process): Likewise.
11075 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11076 Do not set main_thread_id.
11077 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11078 current_event.dwThreadId.
11079 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11080
11081 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11082
11083 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11084 Use current_event.dwThreadId instead of main_thread_id.
11085
11086 2019-04-30 Tom Tromey <tromey@adacore.com>
11087
11088 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11089 (create_excep_cond_exprs): Iterate over program spaces.
11090 (ada_exception_catchpoint_cond_string): Examine all minimal
11091 symbols for exception types.
11092
11093 2019-04-30 Tom Tromey <tromey@adacore.com>
11094
11095 PR c++/24470:
11096 * dwarf2read.c (process_structure_scope): Handle case where type
11097 has template parameters but no symbol was created.
11098
11099 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11100 Chris January <chris.january@arm.com>
11101
11102 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11103 qualifier.
11104 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11105
11106 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11107
11108 * f-typeprint.c (f_print_type): Update rules for printing
11109 whitespace.
11110 (f_type_print_varspec_suffix): Likewise.
11111
11112 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11113 Chris January <chris.january@arm.com>
11114
11115 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11116 function arguments.
11117
11118 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * f-lang.c (build_fortran_types): Change name of void type to
11121 lower case.
11122 * f-typeprint.c (f_type_print_base): Print the name of the void
11123 type, rather than a fixed string.
11124 * f-valprint.c (f_decorations): Use lower case void string.
11125
11126 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11127 Chris January <chris.january@arm.com>
11128
11129 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11130 types for Fortran.
11131
11132 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11133 Chris January <chris.january@arm.com>
11134 David Lecomber <david.lecomber@arm.com>
11135
11136 * f-exp.y (BINOP_INTRINSIC): New token.
11137 (exp): New parser rule handling BINOP_INTRINSIC.
11138 (f77_keywords): Add new builtin procedures.
11139 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11140 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11141 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11142 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11143 (print_unop_subexp_f): New function.
11144 (print_binop_subexp_f): New function.
11145 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11146 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11147 (dump_subexp_body_f): Likewise.
11148 (operator_check_f): Likewise.
11149 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11150 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11151
11152 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11153
11154 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11155 UNOP_KIND.
11156 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11157 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11158 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11159 (operator_length_f): New fuction.
11160 (print_subexp_f): New function.
11161 (op_name_f): New function.
11162 (dump_subexp_body_f): New function.
11163 (operator_check_f): New function.
11164 (exp_descriptor_f): Replace standard expression handling functions
11165 with new functions.
11166 * gdb/fortran-operator.def: New file.
11167 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11168 * gdb/std-operator.def: Remove UNOP_KIND.
11169
11170 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * std-operator.def: Remove unbalanced, stray double quote
11173 character.
11174
11175 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11176 Chris January <chris.january@arm.com>
11177 Daniel Everett <daniel.everett@arm.com>
11178 Nick Forrington <nick.forrington@arm.com>
11179 Richard Bunt <richard.bunt@arm.com>
11180
11181 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11182 of depth when printing anonymous structs or unions.
11183 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11184 Don't print either the top-level value, or the children if the
11185 max-depth is exceeded.
11186 (ppscm_print_children): When printing the key of a map, allow one
11187 extra level of depth.
11188 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11189 print either the top-level value, or the children if the max-depth
11190 is exceeded.
11191 (print_children): When printing the key of a map, allow one extra
11192 level of depth.
11193 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11194 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11195 (user_print_options): Initialise max_depth field.
11196 (val_print_scalar_or_string_type_p): New function.
11197 (val_print): Check to see if the max depth has been reached.
11198 (val_print_check_max_depth): Define new function.
11199 (show_print_max_depth): New function.
11200 (_initialize_valprint): Add 'print max-depth' option.
11201 * valprint.h (struct value_print_options) <max_depth>: New field.
11202 (val_print_check_max_depth): Declare new function.
11203 * NEWS: Document new feature.
11204
11205 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11206
11207 * ada-lang.c (ada_language_defn): Initialise new field.
11208 * c-lang.c (c_is_string_type_p): New function.
11209 (c_language_defn): Initialise new field.
11210 (cplus_language_defn): Initialise new field.
11211 (asm_language_defn): Initialise new field.
11212 (minimal_language_defn): Initialise new field.
11213 * c-lang.h (c_is_string_type_p): Declare new function.
11214 * d-lang.c (d_language_defn): Initialise new field.
11215 * f-lang.c (f_is_string_type_p): New function.
11216 (f_language_defn): Initialise new field.
11217 * go-lang.c (go_is_string_type_p): New function.
11218 (go_language_defn): Initialise new field.
11219 * language.c (default_is_string_type_p): New function.
11220 (unknown_language_defn): Initialise new field.
11221 (auto_language_defn): Initialise new field.
11222 * language.h (struct language_defn) <la_is_string_type_p>: New
11223 member variable.
11224 (default_is_string_type_p): Declare new function.
11225 * m2-lang.c (m2_language_defn): Initialise new field.
11226 * objc-lang.c (objc_language_defn): Initialise new field.
11227 * opencl-lang.c (opencl_language_defn): Initialise new field.
11228 * p-lang.c (pascal_is_string_type_p): New function.
11229 (pascal_language_defn): Initialise new field.
11230 * rust-lang.c (rust_is_string_type_p): New function.
11231 (rust_language_defn): Initialise new field.
11232
11233 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11234
11235 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11236 New field.
11237 * ada-lang.c (ada_language_defn): Initialise new field.
11238 * c-lang.c (c_language_defn): Likewise.
11239 (cplus_language_defn): Likewise.
11240 (asm_language_defn): Likewise.
11241 (minimal_language_defn): Likewise.
11242 * d-lang.c (d_language_defn): Likewise.
11243 * f-lang.c (f_language_defn): Likewise.
11244 * go-lang.c (go_language_defn): Likewise.
11245 * language.c (unknown_language_defn): Likewise.
11246 (auto_language_defn): Likewise.
11247 * m2-lang.c (m2_language_defn): Likewise.
11248 * objc-lang.c (objc_language_defn): Likewise.
11249 * opencl-lang.c (opencl_language_defn): Likewise.
11250 * p-lang.c (pascal_language_defn): Likewise.
11251 * rust-lang.c (rust_language_defn): Likewise.
11252
11253 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11254
11255 * ada-lang.c (ada_is_character_type): Change return type to bool.
11256 (ada_is_string_type): Likewise.
11257 * ada-lang.h (ada_is_character_type): Update declaration
11258 (ada_is_string_type): Likewise.
11259
11260 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11261
11262 Support style in 'frame|thread apply'
11263
11264 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11265 * record.c (record_start, record_stop): Update callers of
11266 execute_command_to_string with false.
11267 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11268 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11269 methods.
11270 (class string_file): New constructor with term_out parameter.
11271 Override methods term_out and can_emit_style_escape. New member
11272 term_out.
11273 (class stdio_file): Override can_emit_style_escape.
11274 (class tee_file): Override term_out and can_emit_style_escape.
11275 * utils.h (can_emit_style_escape): Remove.
11276 * utils.c (can_emit_style_escape): Likewise.
11277 Update all callers of can_emit_style_escape (SOMESTREAM) to
11278 SOMESTREAM->can_emit_style_escape.
11279 * source-cache.c (source_cache::get_source_lines): Likewise.
11280 * stack.c (frame_apply_command_count): Call execute_command_to_string
11281 passing the term_out characteristic of the current gdb_stdout.
11282 * thread.c (thr_try_catch_cmd): Likewise.
11283 * top.c (execute_command_to_string): pass term_out parameter
11284 to construct the string_file for the command output.
11285 * ui-file.c (term_cli_styling): New function (most code moved
11286 from utils.c can_emit_style_escape).
11287 (string_file::string_file, string_file::can_emit_style_escape,
11288 stdio_file::can_emit_style_escape, tee_file::term_out,
11289 tee_file::can_emit_style_escape): New functions.
11290
11291 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11292
11293 * NEWS: Mention the new set|show may-call-functions.
11294 * infcall.c (may_call_functions_p): New variable.
11295 (show_may_call_functions_p): New function.
11296 (call_function_by_hand_dummy): Throws an error if not
11297 may-call-functions.
11298 (_initialize_infcall): Call add_setshow_boolean_cmd for
11299 may-call-functions.
11300
11301 2019-04-25 Keith Seitz <keiths@redhat.com>
11302
11303 PR c++/24367
11304 * cp-support.c (inspect_type): Don't attempt substitutions
11305 of symbol with the same name.
11306
11307 2019-04-25 Tom Tromey <tromey@adacore.com>
11308
11309 PR gdb/24475:
11310 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11311 static.
11312
11313 2019-04-25 Tom Tromey <tromey@adacore.com>
11314
11315 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11316 rvalue reference.
11317 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11318 (gdb_xml_parser::parse): Use std::move.
11319 * python/python-internal.h (gdbpy_convert_exception): Take a const
11320 reference.
11321 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11322 std::move.
11323 * python/py-utils.c (gdbpy_convert_exception): Take a const
11324 reference.
11325 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11326 Use std::move.
11327 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11328 Use std::move.
11329 * mi/mi-main.c (mi_print_exception): Take a const reference.
11330 * main.c (handle_command_errors): Take a const reference.
11331 * linespec.c (parse_linespec): Use std::move.
11332 * infcall.c (run_inferior_call): Use std::move.
11333 (call_function_by_hand_dummy): Use std::move.
11334 * exec.c (try_open_exec_file): Use std::move.
11335 * exceptions.h (exception_print, exception_fprintf)
11336 (exception_print_same): Update.
11337 * exceptions.c (print_exception, exception_print)
11338 (exception_fprintf, exception_print_same): Change parameters to
11339 const reference.
11340 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11341 * common/new-op.c: Use std::move.
11342 * common/common-exceptions.h (struct gdb_exception): Add move
11343 constructor.
11344 (struct gdb_exception_error, struct gdb_exception_quit, struct
11345 gdb_quit_bad_alloc): Change constructor to move constructor.
11346 (throw_exception): Change parameter to rvalue reference.
11347 * common/common-exceptions.c (throw_exception): Take rvalue
11348 reference.
11349 * cli/cli-interp.c (safe_execute_command): Use std::move.
11350 * breakpoint.c (insert_bp_location, location_to_sals): Use
11351 std::move.
11352
11353 2019-04-25 Tom Tromey <tromey@adacore.com>
11354
11355 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11356 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11357 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11358 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11359 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11360 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11361 guile/scm-value.c: Use unpack.
11362 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11363 gdbscm_gdb_exception.
11364 (gdbscm_throw_gdb_exception): Likewise.
11365 (struct gdbscm_gdb_exception): New.
11366 (unpack): New function.
11367 (gdbscm_wrap): Use unpack.
11368
11369 2019-04-25 Tom Tromey <tromey@adacore.com>
11370
11371 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11372 (gdb_rl_callback_handler): Use std::move.
11373 * common/common-exceptions.h (struct gdb_exception): Add move
11374 assignment operator.
11375 (throw_exception_sjlj): Change "exception" to const reference.
11376 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11377 (throw_exception_sjlj): Change "exception" to const reference.
11378
11379 2019-04-25 Tom Tromey <tromey@adacore.com>
11380
11381 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11382 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11383 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11384 Update.
11385 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11386 Update.
11387 * mi/mi-interp.c (mi_interp::exec): Update.
11388 * linespec.c (parse_linespec): Update.
11389 * infcall.c (run_inferior_call): Update.
11390 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11391 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11392 (gdbscm_lookup_global_symbol): Update.
11393 * guile/scm-param.c (gdbscm_parameter_value): Update.
11394 * guile/scm-frame.c (gdbscm_frame_read_register)
11395 (gdbscm_frame_read_var): Update.
11396 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11397 * exec.c (try_open_exec_file): Update.
11398 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11399 (gdb_rl_callback_handler): Update.
11400 * common/common-exceptions.h (exception_none): Don't declare.
11401 * common/common-exceptions.c (exception_none): Don't define.
11402 (struct catcher) <exception>: Update.
11403 * cli/cli-interp.c (safe_execute_command): Update.
11404 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11405
11406 2019-04-25 Ali Tamur <tamur@google.com>
11407
11408 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11409 (read_attribute_value): Likewise.
11410 (dwarf2_read_addr_index): Update comment.
11411 (read_str_index): Add DW_FORM_strx.
11412 (dwarf2_string_attr): Likewise.
11413 (dwarf2_const_value_attr): Likewise.
11414 (dump_die_shallow): Likewise.
11415 (dwarf2_fetch_constant_bytes): Likewise.
11416 (skip_form_bytes): Likewise.
11417 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11418
11419 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11420
11421 PR corefiles/11608
11422 PR corefiles/18187
11423 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11424 OFFSET. Verify if current mapping contains an ELF header.
11425 (linux_find_memory_regions_full): Adjust call to
11426 dump_mapping_p.
11427
11428 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11429 Kang Li <kanglictf@gmail.com>
11430
11431 PR gdb/21600
11432
11433 * dwarf2-frame.c (read_initial_length): Be consistent about using
11434 unsigned representation of length.
11435 (decode_frame_entry_1): Likewise. Check for wraparound of
11436 end pointer as well as buffer overflow.
11437
11438 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11439
11440 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11441 "vq".
11442
11443 2019-04-24 Tom Tromey <tromey@adacore.com>
11444
11445 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11446
11447 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11448
11449 * s12z-tdep.c (s12z_unwind_pc): Delete.
11450 (s12z_unwind_sp): Delete.
11451 (s12z_gdbarch_init): Don't register deleted functions with
11452 gdbarch.
11453
11454 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11455
11456 * rl78-tdep.c (rl78_unwind_sp): Delete.
11457 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11458
11459 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11460
11461 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11462 (xstormy16_unwind_pc): Delete.
11463 (xstormy16_dummy_id): Delete.
11464 (xstormy16_gdbarch_init): Don't register deleted functions with
11465 gdbarch.
11466
11467 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11468
11469 * vax-tdep.c (vax_unwind_pc): Delete.
11470 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11471
11472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11473
11474 * v850-tdep.c (v850_unwind_sp): Delete.
11475 (v850_unwind_pc): Delete.
11476 (v850_dummy_id): Delete.
11477 (v850_gdbarch_init): Don't register deleted functions with
11478 gdbarch.
11479
11480 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11483 (tilegx_unwind_pc): Delete.
11484 (tilegx_unwind_dummy_id): Delete.
11485 (tilegx_gdbarch_init): Don't register deleted functions with
11486 gdbarch.
11487
11488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11489
11490 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11491 (tic6x_dummy_id): Delete.
11492 (tic6x_gdbarch_init): Don't register deleted functions with
11493 gdbarch.
11494
11495 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11496
11497 * sparc-tdep.c (sparc_unwind_pc): Delete.
11498 (sparc32_gdbarch_init): Don't register deleted function with
11499 gdbarch.
11500
11501 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11502
11503 * sh-tdep.c (sh_unwind_sp): Delete.
11504 (sh_unwind_pc): Delete.
11505 (sh_dummy_id): Delete.
11506 (sh_gdbarch_init): Don't register deleted functions with
11507 gdbarch.
11508
11509 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11510
11511 * score-tdep.c (score_unwind_sp): Delete.
11512 (score_unwind_pc): Delete.
11513 (score_dummy_id): Delete.
11514 (score_gdbarch_init): Don't register deleted functions with
11515 gdbarch.
11516
11517 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11518
11519 * rx-tdep.c (rx_unwind_pc): Delete.
11520 (rx_unwind_sp): Delete.
11521 (rx_dummy_id): Delete.
11522 (rx_gdbarch_init): Don't register deleted functions with
11523 gdbarch. Update comment.
11524
11525 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11526
11527 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11528 (rs6000_dummy_id): Delete.
11529 (rs6000_gdbarch_init): Don't register deleted functions with
11530 gdbarch.
11531
11532 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * or1k-tdep.c (or1k_dummy_id): Delete.
11535 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11536
11537 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11538
11539 * nios2-tdep.c (nios2_dummy_id): Delete.
11540 (nios2_unwind_sp): Delete.
11541 (nios2_gdbarch_init): Don't register deleted functions with
11542 gdbarch.
11543
11544 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11545
11546 * nds32-tdep.c (nds32_dummy_id): Delete.
11547 (nds32_unwind_pc): Delete.
11548 (nds32_unwind_sp): Delete.
11549 (nds32_gdbarch_init): Don't register deleted functions with
11550 gdbarch.
11551
11552 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11553
11554 * msp430-tdep.c (msp430_unwind_pc): Delete.
11555 (msp430_unwind_sp): Delete.
11556 (msp430_dummy_id): Delete.
11557 (msp430_gdbarch_init): Don't register deleted functions with
11558 gdbarch.
11559
11560 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11561
11562 * moxie-tdep.c (moxie_unwind_sp): Delete.
11563 (moxie_unwind_pc): Delete.
11564 (moxie_dummy_id): Delete.
11565 (moxie_gdbarch_init): Don't register deleted functions with
11566 gdbarch.
11567
11568 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11569
11570 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11571 (mn10300_unwind_pc): Delete.
11572 (mn10300_unwind_sp): Delete.
11573 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11574 mn10300_unwind_sp.
11575 (mn10300_frame_unwind_init): Don't register deleted functions with
11576 gdbarch.
11577
11578 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11579
11580 * mep-tdep.c (mep_unwind_pc): Delete.
11581 (mep_unwind_sp): Delete.
11582 (mep_dummy_id): Delete.
11583 (mep_gdbarch_init): Don't register deleted functions with
11584 gdbarch.
11585
11586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11587
11588 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11589 (m68hc11_unwind_sp): Delete.
11590 (m68hc11_gdbarch_init): Don't register deleted functions with
11591 gdbarch.
11592
11593 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11594
11595 * m32r-tdep.c (m32r_unwind_sp): Delete.
11596 (m32r_unwind_pc): Delete.
11597 (m32r_dummy_id): Delete.
11598 (m32r_gdbarch_init): Don't register deleted functions with
11599 gdbarch.
11600
11601 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11602
11603 * m32c-tdep.c (m32c_unwind_pc): Delete.
11604 (m32c_unwind_sp): Delete.
11605 (m32c_dummy_id): Delete.
11606 (m32c_gdbarch_init): Don't register deleted functions with
11607 gdbarch.
11608
11609 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11610
11611 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11612 (lm32_unwind_pc): Delete.
11613 (lm32_dummy_id): Delete.
11614 (lm32_gdbarch_init): Don't register deleted functions with
11615 gdbarch.
11616
11617 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11618
11619 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11620 (iq2000_unwind_pc): Delete.
11621 (iq2000_dummy_id): Delete.
11622 (iq2000_gdbarch_init): Don't register deleted functions with
11623 gdbarch.
11624
11625 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11626
11627 * nds32-tdep.c (nds32_type_align): Delete.
11628 (nds32_push_dummy_call): Use type_align instead.
11629
11630 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11631
11632 * arm-tdep.c (arm_type_align): Only handle vector override case.
11633 (arm_push_dummy_call): Use type_align.
11634 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11635
11636 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11637
11638 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11639 case.
11640 (pass_on_stack): Use type_align.
11641 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11642 function.
11643
11644 2019-04-23 Tom Tromey <tromey@adacore.com>
11645
11646 * dwarf2read.c (line_header::file_name_at): Remove unused
11647 overload.
11648
11649 2019-04-23 Tom de Vries <tdevries@suse.de>
11650
11651 PR gdb/24438
11652 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11653 invocation.
11654
11655
11656 2019-03-27 Ali Tamur <tamur@google.com>
11657
11658 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11659 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11660 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11661 (dwarf_expr_context::get_addr_index): Likewise
11662 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11663 (symbol_needs_eval_context::get_addr_index): Likewise
11664 (disassemble_dwarf_expression): Add DW_OP_addrx
11665 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11666 (read_cutu_die_from_dwo): Update comment
11667 (skip_one_die): Add DW_FORM_addrx
11668 (read_attribute_value): Likewise
11669 (var_decode_location): Add DW_OP_addrx
11670 (dwarf2_const_value_attr): Add DW_FORM_addrx
11671 (dump_die_shallow): Likewise
11672 (dwarf2_fetch_constant_bytes): Likewise
11673 (decode_locdesc): Add DW_OP_addrx
11674 (skip_form_bytes): Add DW_FORM_addrx
11675
11676 2019-04-22 Ali Tamur <tamur@google.com>
11677
11678 * MAINTAINERS (Write After Approval): Add self.
11679
11680 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11681
11682 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11683 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11684 (open_symbol_file_object): Likewise.
11685 (svr4_default_sos): Add info parameter.
11686 (svr4_read_so_list): Likewise.
11687 (svr4_current_sos_direct): Adjust functions calls to pass down
11688 info.
11689 (svr4_current_sos_1): Add info parameter.
11690 (svr4_current_sos): Call get_svr4_info, pass info down to
11691 svr4_current_sos_1.
11692 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11693 get_svr4_info.
11694 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11695 get_svr4_info.
11696 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11697 to get_svr4_info.
11698 (probes_table_remove_objfile_probes): Likewise.
11699 (register_solib_event_probe): Add info parameter.
11700 (solist_update_incremental): Pass info parameter down to
11701 svr4_read_so_list.
11702 (disable_probes_interface): Add info parameter.
11703 (svr4_handle_solib_event): Pass current_program_space to
11704 get_svr4_info. Adjust disable_probes_interface cleanup.
11705 (svr4_create_probe_breakpoints): Add info parameter, pass it
11706 down to register_solib_event_probe.
11707 (svr4_create_solib_event_breakpoints): Add info parameter,
11708 pass it down to svr4_create_probe_breakpoints.
11709 (enable_break): Pass info down to
11710 svr4_create_solib_event_breakpoints.
11711 (svr4_solib_create_inferior_hook): Pass current_program_space to
11712 get_svr4_info.
11713 (svr4_clear_solib): Likewise.
11714
11715 2019-04-22 Pedro Alves <palves@redhat.com>
11716
11717 * solib-svr4.c (svr4_free_objfile_observer): New.
11718 (probe_and_action::objfile): New field.
11719 (probes_table_htab_remove_objfile_probes)
11720 (probes_table_remove_objfile_probes): New functions.
11721 (register_solib_event_probe): Add 'objfile' parameter. Store it
11722 in the new probe_and_action. Don't store the probe in 'lookup'.
11723 (svr4_create_probe_breakpoints): Pass objfile to
11724 register_solib_event_probe.
11725 (_initialize_svr4_solib): Register a free_objfile observer.
11726
11727 2019-04-19 Tom Tromey <tom@tromey.com>
11728
11729 * common/queue.h: Remove.
11730
11731 2019-04-19 Tom Tromey <tom@tromey.com>
11732
11733 * event-loop.c: Don't include "common/queue.h".
11734
11735 2019-04-19 Tom Tromey <tom@tromey.com>
11736
11737 * remote.c (remote_target): Use delete.
11738 * remote-notif.h: Include <list>, not "common/queue.h".
11739 (notif_client_p): Remove typedef.
11740 (remote_notif_state): Add constructor, destructor, initializer.
11741 <notif_queue>: Now a std::list.
11742 (remote_notif_state_xfree): Don't declare.
11743 * remote-notif.c (remote_notif_process, handle_notification)
11744 (remote_notif_state_allocate): Update.
11745 (~remote_notif_state): Rename from remote_notif_state_xfree.
11746
11747 2019-04-19 Tom Tromey <tom@tromey.com>
11748
11749 * symfile.c (reread_symbols): Update.
11750 * objfiles.c (objfile_register_static_link)
11751 (objfile_lookup_static_link): Update
11752 (~objfile) Don't delete static_links.
11753 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11754
11755 2019-04-19 Tom Tromey <tom@tromey.com>
11756
11757 * type-stack.h (struct type_stack) <insert>: Constify string.
11758 * type-stack.c (type_stack::insert): Constify string.
11759 * gdbtypes.h (lookup_template_type): Update.
11760 (address_space_name_to_int): Update.
11761 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11762 const.
11763 (lookup_template_type): Make name const.
11764 * c-exp.y: Update rules.
11765 (lex_one_token, classify_name, classify_inner_name)
11766 (c_print_token): Update.
11767 * p-exp.y: Update rules.
11768 (yylex): Update.
11769 * f-exp.y: Update rules.
11770 (yylex): Update.
11771 * d-exp.y: Update rules.
11772 (lex_one_token, classify_name, classify_inner_name): Update.
11773 * parse.c (write_dollar_variable, copy_name): Return std::string.
11774 * parser-defs.h (copy_name): Change return type.
11775 * m2-exp.y: Update rules.
11776 (yylex): Update.
11777 * go-exp.y (lex_one_token): Update.
11778 Update rules.
11779 (classify_unsafe_function, classify_packaged_name)
11780 (classify_name, yylex): Update.
11781
11782 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11783
11784 * configure.ac: add --enable-source-highlight switch.
11785 * configure: Regenerate.
11786 * top.c (print_gdb_version): plumb --enable-source-highlight
11787 status to "show configuration".
11788
11789 2019-04-19 Tom Tromey <tromey@adacore.com>
11790
11791 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11792 Check ADA_TYPE_P.
11793 (empty_record, ada_template_to_fixed_record_type_1)
11794 (template_to_static_fixed_type)
11795 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11796 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11797 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11798 macros.
11799
11800 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11801
11802 PR symtab/24423:
11803 * source.c (print_source_lines_base): Advance "iter" when a
11804 control character is seen.
11805
11806 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11807
11808 * inferior.h (struct infcall_suspend_state_deleter):
11809 Catch exception in destructor to avoid crash.
11810
11811 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11812
11813 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11814 close to the add_com "shell".
11815
11816 2019-04-18 Tom Tromey <tromey@adacore.com>
11817
11818 * process-stratum-target.h (class process_stratum_target)
11819 <stratum>: Add "final".
11820
11821 2019-04-17 Tom Tromey <tromey@adacore.com>
11822
11823 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11824 against nullptr before use.
11825
11826 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11827
11828 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11829
11830 2019-04-17 Jim Wilson <jimw@sifive.com>
11831 Andrew Burgess <andrew.burgess@embecosm.com>
11832
11833 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11834 code read might fail, assume 4-byte breakpoint in that case.
11835
11836 2019-04-15 Leszek Swirski <leszeks@google.com>
11837
11838 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11839 rather than a hand-rolled POD check when checking for forced MEMORY
11840 classification.
11841
11842 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11843
11844 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11845 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11846 function.
11847 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11848 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11849 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11850 declaration.
11851
11852 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11853
11854 * aarch64-linux-nat.c
11855 (aarch64_linux_nat_target::thread_architecture): Add override.
11856 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11857 each VQ.
11858
11859 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11860
11861 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11862
11863 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11864
11865 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11866 target types of size 96-bits, add some additional comments, and
11867 check that the builtin type we found was the correct size.
11868
11869 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11870
11871 * utils.c (prompt_for_continue): Don't restore the styling at the
11872 end, as applied_style has the wrong value. This fixes styling in
11873 long lists of file names that are interrupted by the "Continue?"
11874 prompt.
11875
11876 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11877
11878 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11879 * c-lang.c (c_language_defn): Likewise.
11880 (cplus_language_defn): Likewise.
11881 (asm_language_defn): Likewise.
11882 (minimal_language_defn): Likewise.
11883 * d-lang.c (d_language_defn): Likewise.
11884 * f-lang.c (f_language_defn): Likewise.
11885 * go-lang.c (go_language_defn): Likewise.
11886 * language.c (unknown_language_defn): Likewise.
11887 (auto_language_defn): Likewise.
11888 * language.h (struct language_defn): Remove la_magic field.
11889 (LANG_MAGIC): Delete.
11890 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11891 * objc-lang.c (objc_language_defn): Likewise.
11892 * opencl-lang.c (opencl_language_defn): Likewise.
11893 * p-lang.c (pascal_language_defn): Likewise.
11894 * rust-lang.c (rust_language_defn): Likewise.
11895
11896 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11897
11898 * riscv-tdep.c (riscv_type_align): New function.
11899 (riscv_type_alignment): Delete.
11900 (riscv_arg_location): Use 'type_align'.
11901 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11902
11903 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11904
11905 * gdbtypes.c (type_align): A struct with no non-static fields also
11906 has alignment of 1.
11907
11908 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11909
11910 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11911 component to 0.
11912 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11913 member.
11914 (riscv_struct_info::analyse): New implementation using new
11915 analyse_inner member function.
11916 (riscv_struct_info::field_offset): New member function.
11917 (riscv_struct_info::m_offsets): New member variable.
11918 (riscv_struct_info::analyse_inner): New private member function,
11919 takes the old implementation of riscv_struct_info::analyse but
11920 extended to track field offsets.
11921 (riscv_call_arg_struct): Update the struct folding special cases
11922 to handle cases where empty C++ structs, which are non-zero
11923 length, are found.
11924 (riscv_arg_location): Initialise the length of each location, a
11925 non-zero length now indicates the location is in use.
11926 (riscv_push_dummy_call): Allow for the first location having a
11927 non-zero offset when setting up arguments.
11928 (riscv_return_value): Likewise, but for return values.
11929
11930 2019-04-11 Tom Tromey <tromey@adacore.com>
11931
11932 * utils.c (internal_vproblem): Make "msg" const.
11933
11934 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11935
11936 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11937 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11938 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11939 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11940
11941 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11942
11943 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11944 function.
11945 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11946 of amd64_collect_native_gregset.
11947 (amd64_linux_nat_target::store_registers): Likewise.
11948
11949 2019-04-10 Tom Tromey <tom@tromey.com>
11950
11951 * symtab.c (lookup_global_symbol_from_objfile)
11952 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11953 * objfiles.h (class separate_debug_iterator): New.
11954 (class separate_debug_range): New.
11955 (struct objfile) <separate_debug_objfiles>: New method.
11956 (objfile_separate_debug_iterate): Don't declare.
11957 * objfiles.c (separate_debug_iterator::operator++): Rename from
11958 objfile_separate_debug_iterate.
11959 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11960 iterator.
11961 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11962 iterator.
11963
11964 2019-04-10 Tom Tromey <tom@tromey.com>
11965
11966 * symfile.c (reread_symbols): Remove old comment.
11967 * objfiles.c (free_all_objfiles): Fix a typo.
11968
11969 2019-04-10 Tom Tromey <tom@tromey.com>
11970
11971 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11972 * minsyms.c (lookup_minimal_symbol): Use foreach.
11973 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11974 (lookup_minimal_symbol_solib_trampoline): Likewise.
11975 * symfile.c (reread_symbols): Use foreach.
11976
11977 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11978 Tom Tromey <tromey@adacore.com>
11979
11980 PR rust/24414:
11981 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11982 (rust_lex_int_test): Change "value" to be LONGEST.
11983 (rust_lex_tests): Add test for long integer literal.
11984
11985 2019-04-09 Tom Tromey <tromey@adacore.com>
11986
11987 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11988 to bool.
11989 (extended_remote_target::attach): Update.
11990 (remote_target::remote_notice_new_inferior): Update.
11991 (remote_target::add_current_inferior_and_thread): Update.
11992 * inferior.c (exit_inferior_1): Use "false".
11993 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11994
11995 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11996
11997 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11998 the "start" command.
11999
12000 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12001
12002 * python/py-inferior.c (infpy_thread_from_thread_handle):
12003 Adjust comments to reflect renaming of thread_from_thread_handle
12004 to thread_from_handle. Adjust keywords. Fix type error message.
12005 (inferior_object_methods): Add thread_from_handle. Retain
12006 thread_from_thread_handle, but mark it as deprecated.
12007
12008 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12009
12010 * gdbthread.h (find_thread_by_handle): Revise declaration.
12011 * thread.c (find_thread_by_handle): Likewise. Adjust
12012 implementation too.
12013 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
12014 support for buffer objects as handles.
12015
12016 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12017
12018 * python/py-infthread.c (thpy_thread_handle): New function.
12019 (thread_object_methods): Register thpy_thread_handle.
12020
12021 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12022
12023 * gdbthread.h (thread_to_thread_handle): Declare.
12024 * thread.c (gdbtypes.h): Include.
12025 (thread_to_thread_handle): New function.
12026
12027 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12028 (target_thread_info_to_thread_handle): Declare.
12029 * target.c (target_thread_info_to_thread_handle): New function.
12030 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12031 * target-delegates.c: Regenerate.
12032
12033 * linux-thread-db.c (class thread_db_target): Add method
12034 thread_info_to_thread_handle.
12035 (thread_db_target::thread_info_to_thread_handle): Define.
12036 * remote.c (class remote_target): Add new method
12037 thread_info_to_thread_handle.
12038 (remote_target::thread_info_to_thread_handle): Define.
12039
12040 2019-04-08 Pedro Alves <palves@redhat.com>
12041
12042 * common/common-exceptions.c (throw_exception): Don't create
12043 named object to throw; throw directly.
12044 (throw_it): Likewise. Don't initialize gdb_exception::message
12045 here, with new; pass FMT and AP to the ctor instead.
12046 * common/common-exceptions.h: Include <string>.
12047 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12048 const char *, va_list)): New ctor. Use std::make_shared.
12049 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12050 errors)): Delete.
12051 (gdb_exception_error::gdb_exception_error(enum errors, const char
12052 *, va_list)): New.
12053 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12054 Add assertion.
12055 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12056 errors)): Delete.
12057 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12058 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12059 Add assertion.
12060
12061 2019-04-08 Tom Tromey <tom@tromey.com>
12062
12063 * valops.c (value_rtti_indirect_type): Replace throw_exception
12064 with throw.
12065 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12066 with throw.
12067 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12068 throw.
12069 * target.c (target_translate_tls_address): Replace throw_exception
12070 with throw.
12071 * stack.c (frame_apply_command_count): Replace throw_exception
12072 with throw.
12073 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12074 throw.
12075 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12076 with throw.
12077 * rs6000-tdep.c (rs6000_frame_cache)
12078 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12079 * remote.c: Replace throw_exception with throw.
12080 * record-full.c (record_full_message, record_full_wait_1)
12081 (record_full_restore): Replace throw_exception with throw.
12082 * record-btrace.c:
12083 (get_thread_current_frame_id, record_btrace_start_replaying)
12084 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12085 (cmd_record_btrace_start): Replace throw_exception with throw.
12086 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12087 throw.
12088 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12089 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12090 * linespec.c:
12091 (find_linespec_symbols): Replace throw_exception with throw.
12092 * infrun.c (displaced_step_prepare, resume): Replace
12093 throw_exception with throw.
12094 * infcmd.c (post_create_inferior): Replace throw_exception with
12095 throw.
12096 * inf-loop.c (inferior_event_handler): Replace throw_exception
12097 with throw.
12098 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12099 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12100 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12101 (get_prev_frame_always, get_frame_pc_if_available)
12102 (get_frame_address_in_block_if_available, get_frame_language):
12103 Replace throw_exception with throw.
12104 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12105 throw_exception with throw.
12106 * eval.c (fetch_subexp_value, evaluate_var_value)
12107 (evaluate_funcall, evaluate_subexp_standard): Replace
12108 throw_exception with throw.
12109 * dwarf2loc.c (call_site_find_chain)
12110 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12111 Replace throw_exception with throw.
12112 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12113 with throw.
12114 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12115 throw.
12116 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12117 * completer.c (complete_line_internal): Replace throw_exception
12118 with throw.
12119 * compile/compile-object-run.c (compile_object_run): Replace
12120 throw_exception with throw.
12121 * cli/cli-script.c (process_next_line): Replace throw_exception
12122 with throw.
12123 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12124 (btrace_enable, btrace_maint_update_pt_packets): Replace
12125 throw_exception with throw.
12126 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12127 throw_exception with throw.
12128 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12129 throw_exception with throw.
12130 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12131 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12132 * aarch64-tdep.c (aarch64_make_prologue_cache)
12133 (aarch64_make_stub_cache): Replace throw_exception with throw.
12134
12135 2019-04-08 Tom Tromey <tom@tromey.com>
12136
12137 * common/common-exceptions.c (throw_exception): Rename from
12138 throw_exception_cxx. Remove old copy. Make argument const.
12139 (throw_it): Create and throw exception objects directly.
12140 * common/common-exceptions.h (throw_exception): Make argument
12141 const.
12142 (struct gdb_exception_error): Add constructor.
12143 (struct gdb_exception_quit): Add constructor.
12144
12145 2019-04-08 Tom Tromey <tom@tromey.com>
12146
12147 * common/common-exceptions.h (exception_rethrow): Don't declare.
12148 (TRY_SJLJ): Update comment.
12149 (TRY, CATCH, END_CATCH): Remove.
12150 * common/common-exceptions.c (exception_rethrow): Remove.
12151
12152 2019-04-08 Tom Tromey <tom@tromey.com>
12153
12154 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12155 Remove.
12156 (gdb_exception_error): Rename from
12157 gdb_exception_RETURN_MASK_ERROR.
12158 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12159 (gdb_quit_bad_alloc): Update.
12160 * aarch64-tdep.c: Update.
12161 * ada-lang.c: Update.
12162 * ada-typeprint.c: Update.
12163 * ada-valprint.c: Update.
12164 * amd64-tdep.c: Update.
12165 * arch-utils.c: Update.
12166 * break-catch-throw.c: Update.
12167 * breakpoint.c: Update.
12168 * btrace.c: Update.
12169 * c-varobj.c: Update.
12170 * cli/cli-cmds.c: Update.
12171 * cli/cli-interp.c: Update.
12172 * cli/cli-script.c: Update.
12173 * common/common-exceptions.c: Update.
12174 * common/new-op.c: Update.
12175 * common/selftest.c: Update.
12176 * compile/compile-c-symbols.c: Update.
12177 * compile/compile-cplus-symbols.c: Update.
12178 * compile/compile-object-load.c: Update.
12179 * compile/compile-object-run.c: Update.
12180 * completer.c: Update.
12181 * corelow.c: Update.
12182 * cp-abi.c: Update.
12183 * cp-support.c: Update.
12184 * cp-valprint.c: Update.
12185 * darwin-nat.c: Update.
12186 * disasm-selftests.c: Update.
12187 * dtrace-probe.c: Update.
12188 * dwarf-index-cache.c: Update.
12189 * dwarf-index-write.c: Update.
12190 * dwarf2-frame-tailcall.c: Update.
12191 * dwarf2-frame.c: Update.
12192 * dwarf2loc.c: Update.
12193 * dwarf2read.c: Update.
12194 * eval.c: Update.
12195 * event-loop.c: Update.
12196 * event-top.c: Update.
12197 * exec.c: Update.
12198 * f-valprint.c: Update.
12199 * fbsd-tdep.c: Update.
12200 * frame-unwind.c: Update.
12201 * frame.c: Update.
12202 * gdbtypes.c: Update.
12203 * gnu-v3-abi.c: Update.
12204 * guile/guile-internal.h: Update.
12205 * guile/scm-block.c: Update.
12206 * guile/scm-breakpoint.c: Update.
12207 * guile/scm-cmd.c: Update.
12208 * guile/scm-disasm.c: Update.
12209 * guile/scm-frame.c: Update.
12210 * guile/scm-lazy-string.c: Update.
12211 * guile/scm-math.c: Update.
12212 * guile/scm-param.c: Update.
12213 * guile/scm-ports.c: Update.
12214 * guile/scm-pretty-print.c: Update.
12215 * guile/scm-symbol.c: Update.
12216 * guile/scm-symtab.c: Update.
12217 * guile/scm-type.c: Update.
12218 * guile/scm-value.c: Update.
12219 * i386-linux-tdep.c: Update.
12220 * i386-tdep.c: Update.
12221 * inf-loop.c: Update.
12222 * infcall.c: Update.
12223 * infcmd.c: Update.
12224 * infrun.c: Update.
12225 * jit.c: Update.
12226 * language.c: Update.
12227 * linespec.c: Update.
12228 * linux-fork.c: Update.
12229 * linux-nat.c: Update.
12230 * linux-tdep.c: Update.
12231 * linux-thread-db.c: Update.
12232 * main.c: Update.
12233 * mi/mi-cmd-break.c: Update.
12234 * mi/mi-cmd-stack.c: Update.
12235 * mi/mi-interp.c: Update.
12236 * mi/mi-main.c: Update.
12237 * objc-lang.c: Update.
12238 * p-valprint.c: Update.
12239 * parse.c: Update.
12240 * ppc-linux-tdep.c: Update.
12241 * printcmd.c: Update.
12242 * python/py-arch.c: Update.
12243 * python/py-breakpoint.c: Update.
12244 * python/py-cmd.c: Update.
12245 * python/py-finishbreakpoint.c: Update.
12246 * python/py-frame.c: Update.
12247 * python/py-framefilter.c: Update.
12248 * python/py-gdb-readline.c: Update.
12249 * python/py-inferior.c: Update.
12250 * python/py-infthread.c: Update.
12251 * python/py-lazy-string.c: Update.
12252 * python/py-linetable.c: Update.
12253 * python/py-objfile.c: Update.
12254 * python/py-param.c: Update.
12255 * python/py-prettyprint.c: Update.
12256 * python/py-progspace.c: Update.
12257 * python/py-record-btrace.c: Update.
12258 * python/py-record.c: Update.
12259 * python/py-symbol.c: Update.
12260 * python/py-type.c: Update.
12261 * python/py-unwind.c: Update.
12262 * python/py-utils.c: Update.
12263 * python/py-value.c: Update.
12264 * python/python.c: Update.
12265 * record-btrace.c: Update.
12266 * record-full.c: Update.
12267 * remote-fileio.c: Update.
12268 * remote.c: Update.
12269 * riscv-tdep.c: Update.
12270 * rs6000-aix-tdep.c: Update.
12271 * rs6000-tdep.c: Update.
12272 * rust-exp.y: Update.
12273 * rust-lang.c: Update.
12274 * s390-tdep.c: Update.
12275 * selftest-arch.c: Update.
12276 * solib-dsbt.c: Update.
12277 * solib-frv.c: Update.
12278 * solib-spu.c: Update.
12279 * solib-svr4.c: Update.
12280 * solib.c: Update.
12281 * sparc64-linux-tdep.c: Update.
12282 * stack.c: Update.
12283 * symfile-mem.c: Update.
12284 * symmisc.c: Update.
12285 * target.c: Update.
12286 * thread.c: Update.
12287 * top.c: Update.
12288 * tracefile-tfile.c: Update.
12289 * tui/tui.c: Update.
12290 * typeprint.c: Update.
12291 * unittests/cli-utils-selftests.c: Update.
12292 * unittests/parse-connection-spec-selftests.c: Update.
12293 * valops.c: Update.
12294 * valprint.c: Update.
12295 * value.c: Update.
12296 * varobj.c: Update.
12297 * windows-nat.c: Update.
12298 * x86-linux-nat.c: Update.
12299 * xml-support.c: Update.
12300
12301 2019-04-08 Tom Tromey <tom@tromey.com>
12302
12303 * xml-support.c: Use C++ exception handling.
12304 * x86-linux-nat.c: Use C++ exception handling.
12305 * windows-nat.c: Use C++ exception handling.
12306 * varobj.c: Use C++ exception handling.
12307 * value.c: Use C++ exception handling.
12308 * valprint.c: Use C++ exception handling.
12309 * valops.c: Use C++ exception handling.
12310 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12311 handling.
12312 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12313 * typeprint.c: Use C++ exception handling.
12314 * tui/tui.c: Use C++ exception handling.
12315 * tracefile-tfile.c: Use C++ exception handling.
12316 * top.c: Use C++ exception handling.
12317 * thread.c: Use C++ exception handling.
12318 * target.c: Use C++ exception handling.
12319 * symmisc.c: Use C++ exception handling.
12320 * symfile-mem.c: Use C++ exception handling.
12321 * stack.c: Use C++ exception handling.
12322 * sparc64-linux-tdep.c: Use C++ exception handling.
12323 * solib.c: Use C++ exception handling.
12324 * solib-svr4.c: Use C++ exception handling.
12325 * solib-spu.c: Use C++ exception handling.
12326 * solib-frv.c: Use C++ exception handling.
12327 * solib-dsbt.c: Use C++ exception handling.
12328 * selftest-arch.c: Use C++ exception handling.
12329 * s390-tdep.c: Use C++ exception handling.
12330 * rust-lang.c: Use C++ exception handling.
12331 * rust-exp.y: Use C++ exception handling.
12332 * rs6000-tdep.c: Use C++ exception handling.
12333 * rs6000-aix-tdep.c: Use C++ exception handling.
12334 * riscv-tdep.c: Use C++ exception handling.
12335 * remote.c: Use C++ exception handling.
12336 * remote-fileio.c: Use C++ exception handling.
12337 * record-full.c: Use C++ exception handling.
12338 * record-btrace.c: Use C++ exception handling.
12339 * python/python.c: Use C++ exception handling.
12340 * python/py-value.c: Use C++ exception handling.
12341 * python/py-utils.c: Use C++ exception handling.
12342 * python/py-unwind.c: Use C++ exception handling.
12343 * python/py-type.c: Use C++ exception handling.
12344 * python/py-symbol.c: Use C++ exception handling.
12345 * python/py-record.c: Use C++ exception handling.
12346 * python/py-record-btrace.c: Use C++ exception handling.
12347 * python/py-progspace.c: Use C++ exception handling.
12348 * python/py-prettyprint.c: Use C++ exception handling.
12349 * python/py-param.c: Use C++ exception handling.
12350 * python/py-objfile.c: Use C++ exception handling.
12351 * python/py-linetable.c: Use C++ exception handling.
12352 * python/py-lazy-string.c: Use C++ exception handling.
12353 * python/py-infthread.c: Use C++ exception handling.
12354 * python/py-inferior.c: Use C++ exception handling.
12355 * python/py-gdb-readline.c: Use C++ exception handling.
12356 * python/py-framefilter.c: Use C++ exception handling.
12357 * python/py-frame.c: Use C++ exception handling.
12358 * python/py-finishbreakpoint.c: Use C++ exception handling.
12359 * python/py-cmd.c: Use C++ exception handling.
12360 * python/py-breakpoint.c: Use C++ exception handling.
12361 * python/py-arch.c: Use C++ exception handling.
12362 * printcmd.c: Use C++ exception handling.
12363 * ppc-linux-tdep.c: Use C++ exception handling.
12364 * parse.c: Use C++ exception handling.
12365 * p-valprint.c: Use C++ exception handling.
12366 * objc-lang.c: Use C++ exception handling.
12367 * mi/mi-main.c: Use C++ exception handling.
12368 * mi/mi-interp.c: Use C++ exception handling.
12369 * mi/mi-cmd-stack.c: Use C++ exception handling.
12370 * mi/mi-cmd-break.c: Use C++ exception handling.
12371 * main.c: Use C++ exception handling.
12372 * linux-thread-db.c: Use C++ exception handling.
12373 * linux-tdep.c: Use C++ exception handling.
12374 * linux-nat.c: Use C++ exception handling.
12375 * linux-fork.c: Use C++ exception handling.
12376 * linespec.c: Use C++ exception handling.
12377 * language.c: Use C++ exception handling.
12378 * jit.c: Use C++ exception handling.
12379 * infrun.c: Use C++ exception handling.
12380 * infcmd.c: Use C++ exception handling.
12381 * infcall.c: Use C++ exception handling.
12382 * inf-loop.c: Use C++ exception handling.
12383 * i386-tdep.c: Use C++ exception handling.
12384 * i386-linux-tdep.c: Use C++ exception handling.
12385 * guile/scm-value.c: Use C++ exception handling.
12386 * guile/scm-type.c: Use C++ exception handling.
12387 * guile/scm-symtab.c: Use C++ exception handling.
12388 * guile/scm-symbol.c: Use C++ exception handling.
12389 * guile/scm-pretty-print.c: Use C++ exception handling.
12390 * guile/scm-ports.c: Use C++ exception handling.
12391 * guile/scm-param.c: Use C++ exception handling.
12392 * guile/scm-math.c: Use C++ exception handling.
12393 * guile/scm-lazy-string.c: Use C++ exception handling.
12394 * guile/scm-frame.c: Use C++ exception handling.
12395 * guile/scm-disasm.c: Use C++ exception handling.
12396 * guile/scm-cmd.c: Use C++ exception handling.
12397 * guile/scm-breakpoint.c: Use C++ exception handling.
12398 * guile/scm-block.c: Use C++ exception handling.
12399 * guile/guile-internal.h: Use C++ exception handling.
12400 * gnu-v3-abi.c: Use C++ exception handling.
12401 * gdbtypes.c: Use C++ exception handling.
12402 * frame.c: Use C++ exception handling.
12403 * frame-unwind.c: Use C++ exception handling.
12404 * fbsd-tdep.c: Use C++ exception handling.
12405 * f-valprint.c: Use C++ exception handling.
12406 * exec.c: Use C++ exception handling.
12407 * event-top.c: Use C++ exception handling.
12408 * event-loop.c: Use C++ exception handling.
12409 * eval.c: Use C++ exception handling.
12410 * dwarf2read.c: Use C++ exception handling.
12411 * dwarf2loc.c: Use C++ exception handling.
12412 * dwarf2-frame.c: Use C++ exception handling.
12413 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12414 * dwarf-index-write.c: Use C++ exception handling.
12415 * dwarf-index-cache.c: Use C++ exception handling.
12416 * dtrace-probe.c: Use C++ exception handling.
12417 * disasm-selftests.c: Use C++ exception handling.
12418 * darwin-nat.c: Use C++ exception handling.
12419 * cp-valprint.c: Use C++ exception handling.
12420 * cp-support.c: Use C++ exception handling.
12421 * cp-abi.c: Use C++ exception handling.
12422 * corelow.c: Use C++ exception handling.
12423 * completer.c: Use C++ exception handling.
12424 * compile/compile-object-run.c: Use C++ exception handling.
12425 * compile/compile-object-load.c: Use C++ exception handling.
12426 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12427 * compile/compile-c-symbols.c: Use C++ exception handling.
12428 * common/selftest.c: Use C++ exception handling.
12429 * common/new-op.c: Use C++ exception handling.
12430 * cli/cli-script.c: Use C++ exception handling.
12431 * cli/cli-interp.c: Use C++ exception handling.
12432 * cli/cli-cmds.c: Use C++ exception handling.
12433 * c-varobj.c: Use C++ exception handling.
12434 * btrace.c: Use C++ exception handling.
12435 * breakpoint.c: Use C++ exception handling.
12436 * break-catch-throw.c: Use C++ exception handling.
12437 * arch-utils.c: Use C++ exception handling.
12438 * amd64-tdep.c: Use C++ exception handling.
12439 * ada-valprint.c: Use C++ exception handling.
12440 * ada-typeprint.c: Use C++ exception handling.
12441 * ada-lang.c: Use C++ exception handling.
12442 * aarch64-tdep.c: Use C++ exception handling.
12443
12444 2019-04-08 Tom Tromey <tom@tromey.com>
12445
12446 * xml-support.c (gdb_xml_parser::parse): Update.
12447 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12448 * value.c (show_convenience): Update.
12449 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12450 (test_parse_flags_qcs): Update.
12451 * thread.c (thr_try_catch_cmd): Update.
12452 * target.c (target_translate_tls_address): Update.
12453 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12454 (info_frame_command_core, frame_apply_command_count): Update.
12455 * rust-exp.y (rust_lex_exception_test): Update.
12456 * riscv-tdep.c (riscv_print_one_register_info): Update.
12457 * remote.c (remote_target::enable_btrace): Update.
12458 * record-btrace.c (record_btrace_enable_warn): Update.
12459 * python/py-utils.c (gdbpy_convert_exception): Update.
12460 * printcmd.c (do_one_display, print_variable_and_value): Update.
12461 * mi/mi-main.c (mi_print_exception): Update.
12462 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12463 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12464 * linux-nat.c (linux_nat_target::attach): Update.
12465 * linux-fork.c (class scoped_switch_fork_info): Update.
12466 * infrun.c (displaced_step_prepare): Update.
12467 * infcall.c (call_function_by_hand_dummy): Update.
12468 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12469 * gnu-v3-abi.c (print_one_vtable): Update.
12470 * frame.c (get_prev_frame_always): Update.
12471 * f-valprint.c (info_common_command_for_block): Update.
12472 * exec.c (try_open_exec_file): Update.
12473 * exceptions.c (print_exception, exception_print)
12474 (exception_fprintf, exception_print_same): Update.
12475 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12476 * dwarf-index-cache.c (index_cache::store)
12477 (index_cache::lookup_gdb_index): Update.
12478 * darwin-nat.c (maybe_cache_shell): Update.
12479 * cp-valprint.c (cp_print_value_fields): Update.
12480 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12481 (gcc_cplus_symbol_address): Update.
12482 * compile/compile-c-symbols.c (gcc_convert_symbol)
12483 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12484 * common/selftest.c: Update.
12485 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12486 a std::string.
12487 (exception_try_scope_entry, exception_try_scope_exit): Don't
12488 declare.
12489 (struct exception_try_scope): Remove.
12490 (TRY): Don't use exception_try_scope.
12491 (struct gdb_exception): Add constructor, operator=.
12492 <what>: New method.
12493 (struct gdb_exception_RETURN_MASK_ALL)
12494 (struct gdb_exception_RETURN_MASK_ERROR)
12495 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12496 (struct gdb_quit_bad_alloc): Update.
12497 * common/common-exceptions.c (exception_none): Change
12498 initializer.
12499 (struct catcher) <state, exception>: Initialize inline.
12500 <prev>: Remove member.
12501 (current_catcher): Remove.
12502 (catchers): New global.
12503 (exceptions_state_mc_init): Simplify.
12504 (catcher_pop): Remove.
12505 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12506 (try_scope_depth, exception_try_scope_entry)
12507 (exception_try_scope_exit): Remove.
12508 (throw_exception_sjlj): Update.
12509 (exception_messages, exception_messages_size): Remove.
12510 (throw_it): Simplify.
12511 (gdb_exception_sliced_copy): Remove.
12512 (throw_exception_cxx): Update.
12513 * cli/cli-script.c (script_from_file): Update.
12514 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12515 Update.
12516 * ada-valprint.c (ada_val_print): Update.
12517 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12518 (create_excep_cond_exprs): Update.
12519
12520 2019-04-08 Tom Tromey <tom@tromey.com>
12521
12522 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12523 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12524 (TRY, CATCH, END_CATCH): Remove some definitions.
12525 * common/common-exceptions.c: Don't use GDB_XCPT.
12526 (catcher_list_size): Remove.
12527 (throw_exception, throw_it): Simplify.
12528
12529 2019-04-05 Tom Tromey <tom@tromey.com>
12530
12531 Revert the header-sorting patch.
12532 * ft32-tdep.c: Revert.
12533 * frv-tdep.c: Revert.
12534 * frv-linux-tdep.c: Revert.
12535 * frame.c: Revert.
12536 * frame-unwind.c: Revert.
12537 * frame-base.c: Revert.
12538 * fork-child.c: Revert.
12539 * findvar.c: Revert.
12540 * findcmd.c: Revert.
12541 * filesystem.c: Revert.
12542 * filename-seen-cache.h: Revert.
12543 * filename-seen-cache.c: Revert.
12544 * fbsd-tdep.c: Revert.
12545 * fbsd-nat.h: Revert.
12546 * fbsd-nat.c: Revert.
12547 * f-valprint.c: Revert.
12548 * f-typeprint.c: Revert.
12549 * f-lang.c: Revert.
12550 * extension.h: Revert.
12551 * extension.c: Revert.
12552 * extension-priv.h: Revert.
12553 * expprint.c: Revert.
12554 * exec.h: Revert.
12555 * exec.c: Revert.
12556 * exceptions.c: Revert.
12557 * event-top.c: Revert.
12558 * event-loop.c: Revert.
12559 * eval.c: Revert.
12560 * elfread.c: Revert.
12561 * dwarf2read.h: Revert.
12562 * dwarf2read.c: Revert.
12563 * dwarf2loc.c: Revert.
12564 * dwarf2expr.h: Revert.
12565 * dwarf2expr.c: Revert.
12566 * dwarf2-frame.c: Revert.
12567 * dwarf2-frame-tailcall.c: Revert.
12568 * dwarf-index-write.h: Revert.
12569 * dwarf-index-write.c: Revert.
12570 * dwarf-index-common.c: Revert.
12571 * dwarf-index-cache.h: Revert.
12572 * dwarf-index-cache.c: Revert.
12573 * dummy-frame.c: Revert.
12574 * dtrace-probe.c: Revert.
12575 * disasm.h: Revert.
12576 * disasm.c: Revert.
12577 * disasm-selftests.c: Revert.
12578 * dictionary.c: Revert.
12579 * dicos-tdep.c: Revert.
12580 * demangle.c: Revert.
12581 * dcache.h: Revert.
12582 * dcache.c: Revert.
12583 * darwin-nat.h: Revert.
12584 * darwin-nat.c: Revert.
12585 * darwin-nat-info.c: Revert.
12586 * d-valprint.c: Revert.
12587 * d-namespace.c: Revert.
12588 * d-lang.c: Revert.
12589 * ctf.c: Revert.
12590 * csky-tdep.c: Revert.
12591 * csky-linux-tdep.c: Revert.
12592 * cris-tdep.c: Revert.
12593 * cris-linux-tdep.c: Revert.
12594 * cp-valprint.c: Revert.
12595 * cp-support.c: Revert.
12596 * cp-namespace.c: Revert.
12597 * cp-abi.c: Revert.
12598 * corelow.c: Revert.
12599 * corefile.c: Revert.
12600 * continuations.c: Revert.
12601 * completer.h: Revert.
12602 * completer.c: Revert.
12603 * complaints.c: Revert.
12604 * coffread.c: Revert.
12605 * coff-pe-read.c: Revert.
12606 * cli-out.h: Revert.
12607 * cli-out.c: Revert.
12608 * charset.c: Revert.
12609 * c-varobj.c: Revert.
12610 * c-valprint.c: Revert.
12611 * c-typeprint.c: Revert.
12612 * c-lang.c: Revert.
12613 * buildsym.c: Revert.
12614 * buildsym-legacy.c: Revert.
12615 * build-id.h: Revert.
12616 * build-id.c: Revert.
12617 * btrace.c: Revert.
12618 * bsd-uthread.c: Revert.
12619 * breakpoint.h: Revert.
12620 * breakpoint.c: Revert.
12621 * break-catch-throw.c: Revert.
12622 * break-catch-syscall.c: Revert.
12623 * break-catch-sig.c: Revert.
12624 * blockframe.c: Revert.
12625 * block.c: Revert.
12626 * bfin-tdep.c: Revert.
12627 * bfin-linux-tdep.c: Revert.
12628 * bfd-target.c: Revert.
12629 * bcache.c: Revert.
12630 * ax-general.c: Revert.
12631 * ax-gdb.h: Revert.
12632 * ax-gdb.c: Revert.
12633 * avr-tdep.c: Revert.
12634 * auxv.c: Revert.
12635 * auto-load.c: Revert.
12636 * arm-wince-tdep.c: Revert.
12637 * arm-tdep.c: Revert.
12638 * arm-symbian-tdep.c: Revert.
12639 * arm-pikeos-tdep.c: Revert.
12640 * arm-obsd-tdep.c: Revert.
12641 * arm-nbsd-tdep.c: Revert.
12642 * arm-nbsd-nat.c: Revert.
12643 * arm-linux-tdep.c: Revert.
12644 * arm-linux-nat.c: Revert.
12645 * arm-fbsd-tdep.c: Revert.
12646 * arm-fbsd-nat.c: Revert.
12647 * arm-bsd-tdep.c: Revert.
12648 * arch-utils.c: Revert.
12649 * arc-tdep.c: Revert.
12650 * arc-newlib-tdep.c: Revert.
12651 * annotate.h: Revert.
12652 * annotate.c: Revert.
12653 * amd64-windows-tdep.c: Revert.
12654 * amd64-windows-nat.c: Revert.
12655 * amd64-tdep.c: Revert.
12656 * amd64-sol2-tdep.c: Revert.
12657 * amd64-obsd-tdep.c: Revert.
12658 * amd64-obsd-nat.c: Revert.
12659 * amd64-nbsd-tdep.c: Revert.
12660 * amd64-nbsd-nat.c: Revert.
12661 * amd64-nat.c: Revert.
12662 * amd64-linux-tdep.c: Revert.
12663 * amd64-linux-nat.c: Revert.
12664 * amd64-fbsd-tdep.c: Revert.
12665 * amd64-fbsd-nat.c: Revert.
12666 * amd64-dicos-tdep.c: Revert.
12667 * amd64-darwin-tdep.c: Revert.
12668 * amd64-bsd-nat.c: Revert.
12669 * alpha-tdep.c: Revert.
12670 * alpha-obsd-tdep.c: Revert.
12671 * alpha-nbsd-tdep.c: Revert.
12672 * alpha-mdebug-tdep.c: Revert.
12673 * alpha-linux-tdep.c: Revert.
12674 * alpha-linux-nat.c: Revert.
12675 * alpha-bsd-tdep.c: Revert.
12676 * alpha-bsd-nat.c: Revert.
12677 * aix-thread.c: Revert.
12678 * agent.c: Revert.
12679 * addrmap.c: Revert.
12680 * ada-varobj.c: Revert.
12681 * ada-valprint.c: Revert.
12682 * ada-typeprint.c: Revert.
12683 * ada-tasks.c: Revert.
12684 * ada-lang.c: Revert.
12685 * aarch64-tdep.c: Revert.
12686 * aarch64-ravenscar-thread.c: Revert.
12687 * aarch64-newlib-tdep.c: Revert.
12688 * aarch64-linux-tdep.c: Revert.
12689 * aarch64-linux-nat.c: Revert.
12690 * aarch64-fbsd-tdep.c: Revert.
12691 * aarch64-fbsd-nat.c: Revert.
12692 * aarch32-linux-nat.c: Revert.
12693
12694 2019-04-05 Tom Tromey <tom@tromey.com>
12695
12696 * ft32-tdep.c: Sort headers.
12697 * frv-tdep.c: Sort headers.
12698 * frv-linux-tdep.c: Sort headers.
12699 * frame.c: Sort headers.
12700 * frame-unwind.c: Sort headers.
12701 * frame-base.c: Sort headers.
12702 * fork-child.c: Sort headers.
12703 * findvar.c: Sort headers.
12704 * findcmd.c: Sort headers.
12705 * filesystem.c: Sort headers.
12706 * filename-seen-cache.h: Sort headers.
12707 * filename-seen-cache.c: Sort headers.
12708 * fbsd-tdep.c: Sort headers.
12709 * fbsd-nat.h: Sort headers.
12710 * fbsd-nat.c: Sort headers.
12711 * f-valprint.c: Sort headers.
12712 * f-typeprint.c: Sort headers.
12713 * f-lang.c: Sort headers.
12714 * extension.h: Sort headers.
12715 * extension.c: Sort headers.
12716 * extension-priv.h: Sort headers.
12717 * expprint.c: Sort headers.
12718 * exec.h: Sort headers.
12719 * exec.c: Sort headers.
12720 * exceptions.c: Sort headers.
12721 * event-top.c: Sort headers.
12722 * event-loop.c: Sort headers.
12723 * eval.c: Sort headers.
12724 * elfread.c: Sort headers.
12725 * dwarf2read.h: Sort headers.
12726 * dwarf2read.c: Sort headers.
12727 * dwarf2loc.c: Sort headers.
12728 * dwarf2expr.h: Sort headers.
12729 * dwarf2expr.c: Sort headers.
12730 * dwarf2-frame.c: Sort headers.
12731 * dwarf2-frame-tailcall.c: Sort headers.
12732 * dwarf-index-write.h: Sort headers.
12733 * dwarf-index-write.c: Sort headers.
12734 * dwarf-index-common.c: Sort headers.
12735 * dwarf-index-cache.h: Sort headers.
12736 * dwarf-index-cache.c: Sort headers.
12737 * dummy-frame.c: Sort headers.
12738 * dtrace-probe.c: Sort headers.
12739 * disasm.h: Sort headers.
12740 * disasm.c: Sort headers.
12741 * disasm-selftests.c: Sort headers.
12742 * dictionary.c: Sort headers.
12743 * dicos-tdep.c: Sort headers.
12744 * demangle.c: Sort headers.
12745 * dcache.h: Sort headers.
12746 * dcache.c: Sort headers.
12747 * darwin-nat.h: Sort headers.
12748 * darwin-nat.c: Sort headers.
12749 * darwin-nat-info.c: Sort headers.
12750 * d-valprint.c: Sort headers.
12751 * d-namespace.c: Sort headers.
12752 * d-lang.c: Sort headers.
12753 * ctf.c: Sort headers.
12754 * csky-tdep.c: Sort headers.
12755 * csky-linux-tdep.c: Sort headers.
12756 * cris-tdep.c: Sort headers.
12757 * cris-linux-tdep.c: Sort headers.
12758 * cp-valprint.c: Sort headers.
12759 * cp-support.c: Sort headers.
12760 * cp-namespace.c: Sort headers.
12761 * cp-abi.c: Sort headers.
12762 * corelow.c: Sort headers.
12763 * corefile.c: Sort headers.
12764 * continuations.c: Sort headers.
12765 * completer.h: Sort headers.
12766 * completer.c: Sort headers.
12767 * complaints.c: Sort headers.
12768 * coffread.c: Sort headers.
12769 * coff-pe-read.c: Sort headers.
12770 * cli-out.h: Sort headers.
12771 * cli-out.c: Sort headers.
12772 * charset.c: Sort headers.
12773 * c-varobj.c: Sort headers.
12774 * c-valprint.c: Sort headers.
12775 * c-typeprint.c: Sort headers.
12776 * c-lang.c: Sort headers.
12777 * buildsym.c: Sort headers.
12778 * buildsym-legacy.c: Sort headers.
12779 * build-id.h: Sort headers.
12780 * build-id.c: Sort headers.
12781 * btrace.c: Sort headers.
12782 * bsd-uthread.c: Sort headers.
12783 * breakpoint.h: Sort headers.
12784 * breakpoint.c: Sort headers.
12785 * break-catch-throw.c: Sort headers.
12786 * break-catch-syscall.c: Sort headers.
12787 * break-catch-sig.c: Sort headers.
12788 * blockframe.c: Sort headers.
12789 * block.c: Sort headers.
12790 * bfin-tdep.c: Sort headers.
12791 * bfin-linux-tdep.c: Sort headers.
12792 * bfd-target.c: Sort headers.
12793 * bcache.c: Sort headers.
12794 * ax-general.c: Sort headers.
12795 * ax-gdb.h: Sort headers.
12796 * ax-gdb.c: Sort headers.
12797 * avr-tdep.c: Sort headers.
12798 * auxv.c: Sort headers.
12799 * auto-load.c: Sort headers.
12800 * arm-wince-tdep.c: Sort headers.
12801 * arm-tdep.c: Sort headers.
12802 * arm-symbian-tdep.c: Sort headers.
12803 * arm-pikeos-tdep.c: Sort headers.
12804 * arm-obsd-tdep.c: Sort headers.
12805 * arm-nbsd-tdep.c: Sort headers.
12806 * arm-nbsd-nat.c: Sort headers.
12807 * arm-linux-tdep.c: Sort headers.
12808 * arm-linux-nat.c: Sort headers.
12809 * arm-fbsd-tdep.c: Sort headers.
12810 * arm-fbsd-nat.c: Sort headers.
12811 * arm-bsd-tdep.c: Sort headers.
12812 * arch-utils.c: Sort headers.
12813 * arc-tdep.c: Sort headers.
12814 * arc-newlib-tdep.c: Sort headers.
12815 * annotate.h: Sort headers.
12816 * annotate.c: Sort headers.
12817 * amd64-windows-tdep.c: Sort headers.
12818 * amd64-windows-nat.c: Sort headers.
12819 * amd64-tdep.c: Sort headers.
12820 * amd64-sol2-tdep.c: Sort headers.
12821 * amd64-obsd-tdep.c: Sort headers.
12822 * amd64-obsd-nat.c: Sort headers.
12823 * amd64-nbsd-tdep.c: Sort headers.
12824 * amd64-nbsd-nat.c: Sort headers.
12825 * amd64-nat.c: Sort headers.
12826 * amd64-linux-tdep.c: Sort headers.
12827 * amd64-linux-nat.c: Sort headers.
12828 * amd64-fbsd-tdep.c: Sort headers.
12829 * amd64-fbsd-nat.c: Sort headers.
12830 * amd64-dicos-tdep.c: Sort headers.
12831 * amd64-darwin-tdep.c: Sort headers.
12832 * amd64-bsd-nat.c: Sort headers.
12833 * alpha-tdep.c: Sort headers.
12834 * alpha-obsd-tdep.c: Sort headers.
12835 * alpha-nbsd-tdep.c: Sort headers.
12836 * alpha-mdebug-tdep.c: Sort headers.
12837 * alpha-linux-tdep.c: Sort headers.
12838 * alpha-linux-nat.c: Sort headers.
12839 * alpha-bsd-tdep.c: Sort headers.
12840 * alpha-bsd-nat.c: Sort headers.
12841 * aix-thread.c: Sort headers.
12842 * agent.c: Sort headers.
12843 * addrmap.c: Sort headers.
12844 * ada-varobj.c: Sort headers.
12845 * ada-valprint.c: Sort headers.
12846 * ada-typeprint.c: Sort headers.
12847 * ada-tasks.c: Sort headers.
12848 * ada-lang.c: Sort headers.
12849 * aarch64-tdep.c: Sort headers.
12850 * aarch64-ravenscar-thread.c: Sort headers.
12851 * aarch64-newlib-tdep.c: Sort headers.
12852 * aarch64-linux-tdep.c: Sort headers.
12853 * aarch64-linux-nat.c: Sort headers.
12854 * aarch64-fbsd-tdep.c: Sort headers.
12855 * aarch64-fbsd-nat.c: Sort headers.
12856 * aarch32-linux-nat.c: Sort headers.
12857
12858 2019-04-04 Tom Tromey <tom@tromey.com>
12859
12860 * varobj.c (varobj_create): Update.
12861 * rust-exp.y (struct rust_parser) <update_innermost_block,
12862 lookup_symbol>: New methods.
12863 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12864 Rename.
12865 (rust_parser::rust_lookup_type)
12866 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12867 * printcmd.c (display_command, do_one_display): Update.
12868 * parser-defs.h (struct parser_state) <parser_state>: Add
12869 "tracker" parameter.
12870 (block_tracker): New member.
12871 (class innermost_block_tracker) <innermost_block_tracker>: Add
12872 "types" parameter.
12873 <reset>: Remove method.
12874 (innermost_block): Don't declare.
12875 (null_post_parser): Update.
12876 * parse.c (innermost_block): Remove global.
12877 (write_dollar_variable): Update.
12878 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12879 Remove "tracker_types" parameter.
12880 (parse_expression): Add "tracker" parameter.
12881 (parse_expression_for_completion): Update.
12882 (null_post_parser): Add "tracker" parameter.
12883 * p-exp.y: Update rules.
12884 * m2-exp.y: Update rules.
12885 * language.h (struct language_defn) <la_post_parser>: Add
12886 "tracker" parameter.
12887 * go-exp.y: Update rules.
12888 * f-exp.y: Update rules.
12889 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12890 parameter.
12891 * d-exp.y: Update rules.
12892 * c-exp.y: Update rules.
12893 * breakpoint.c (set_breakpoint_condition): Create an
12894 innermost_block_tracker.
12895 (watch_command_1): Likewise.
12896 * ada-lang.c (resolve): Add "tracker" parameter.
12897 (resolve_subexp): Likewise.
12898 * ada-exp.y (write_var_from_sym): Update.
12899
12900 2019-04-04 Tom Tromey <tom@tromey.com>
12901
12902 * type-stack.h: New file.
12903 * type-stack.c: New file.
12904 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12905 type-stack.h.
12906 (insert_into_type_stack, insert_type, push_type, push_type_int)
12907 (insert_type_address_space, pop_type, pop_type_int)
12908 (pop_typelist, pop_type_stack, append_type_stack)
12909 (push_type_stack, get_type_stack, push_typelist)
12910 (follow_type_instance_flags, follow_types): Don't declare.
12911 * parse.c (type_stack): Remove global.
12912 (parse_exp_in_context): Update.
12913 (insert_into_type_stack, insert_type, push_type, push_type_int)
12914 (insert_type_address_space, pop_type, pop_type_int)
12915 (pop_typelist, pop_type_stack, append_type_stack)
12916 (push_type_stack, get_type_stack, push_typelist)
12917 (follow_type_instance_flags, follow_types): Remove (moved to
12918 type-stack.c).
12919 * f-exp.y (type_stack): New global.
12920 Update rules.
12921 (push_kind_type, f_parse): Update.
12922 * d-exp.y (type_stack): New global.
12923 Update rules.
12924 (d_parse): Update.
12925 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12926 Update rules.
12927 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12928 (HFILES_NO_SRCDIR): Add type-stack.h.
12929
12930 2019-04-04 Tom Tromey <tom@tromey.com>
12931
12932 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12933 (rust_parser::convert_ast_to_expression, rust_parse)
12934 (rust_lex_test_completion, rust_lex_tests): Update.
12935 * parser-defs.h (struct expr_completion_state): New.
12936 (struct parser_state) <parser_state>: Add completion parameter.
12937 <mark_struct_expression, mark_completion_tag>: New methods.
12938 <parse_completion, m_completion_state>: New members.
12939 (prefixify_expression, null_post_parser): Update.
12940 (mark_struct_expression, mark_completion_tag): Don't declare.
12941 * parse.c (parse_completion, expout_last_struct)
12942 (expout_tag_completion_type, expout_completion_name): Remove
12943 globals.
12944 (parser_state::mark_struct_expression)
12945 (parser_state::mark_completion_tag): Now methods.
12946 (prefixify_expression): Add last_struct parameter.
12947 (prefixify_subexp): Likewise.
12948 (parse_exp_1): Update.
12949 (parse_exp_in_context): Add cstate parameter. Update.
12950 (parse_expression_for_completion): Create an
12951 expr_completion_state.
12952 (null_post_parser): Add "completion" parameter.
12953 * p-exp.y: Update rules.
12954 (yylex): Update.
12955 * language.h (struct language_defn) <la_post_parser>: Add
12956 "completing" parameter.
12957 * go-exp.y: Update rules.
12958 (lex_one_token): Update.
12959 * expression.h (parse_completion): Don't declare.
12960 * d-exp.y: Update rules.
12961 (lex_one_token): Update rules.
12962 * c-exp.y: Update rules.
12963 (lex_one_token): Update.
12964 * ada-lang.c (resolve): Add "parse_completion" parameter.
12965 (resolve_subexp): Likewise.
12966 (ada_resolve_function): Likewise.
12967
12968 2019-04-04 Tom Tromey <tom@tromey.com>
12969
12970 * parser-defs.h (struct parser_state) <start_arglist,
12971 end_arglist>: New methods.
12972 <arglist_len, m_funcall_chain>: New members.
12973 (arglist_len, start_arglist, end_arglist): Don't declare.
12974 * parse.c (arglist_len, funcall_chain): Remove global.
12975 (start_arglist, end_arglist): Remove functions.
12976 (parse_exp_in_context): Update.
12977 * p-exp.y: Update rules.
12978 * m2-exp.y: Update rules.
12979 * go-exp.y: Update rules.
12980 * f-exp.y: Update rules.
12981 * d-exp.y: Update rules.
12982 * c-exp.y: Update rules.
12983
12984 2019-04-04 Tom Tromey <tom@tromey.com>
12985
12986 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12987 lex_operator, push_back>: New methods.
12988 Update all rules.
12989 (rust_parser::lex_hex, lex_escape): Rename and update.
12990 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12991 (rust_parser::lex_operator): Rename and update.
12992 (rust_parser::lex_number, rustyylex, rustyyerror)
12993 (rust_lex_test_init, rust_lex_test_sequence)
12994 (rust_lex_test_push_back, rust_lex_tests): Update.
12995 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12996 parameter.
12997 <lexptr, prev_lexptr>: New members.
12998 (lexptr, prev_lexptr): Don't declare.
12999 * parse.c (lexptr, prev_lexptr): Remove globals.
13000 (parse_exp_in_context): Update.
13001 * p-exp.y (yylex, yyerror): Update.
13002 * m2-exp.y (parse_number, yylex, yyerror): Update.
13003 * go-exp.y (lex_one_token, yyerror): Update.
13004 * f-exp.y (match_string_literal, yylex, yyerror): Update.
13005 * d-exp.y (lex_one_token, yyerror): Update.
13006 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
13007 (lex_one_token, yyerror): Update.
13008 * ada-lex.l (YY_INPUT): Update.
13009 (rewind_to_char): Update.
13010 * ada-exp.y (yyerror): Update.
13011
13012 2019-04-04 Tom Tromey <tom@tromey.com>
13013
13014 * rust-exp.y (rustyylex, rust_lex_tests): Update.
13015 * parser-defs.h (struct parser_state) <parser_state>: Add new
13016 parameter.
13017 <comma_terminates>: New member.
13018 (comma_terminates): Don't declare global.
13019 * parse.c (comma_terminates): Remove global.
13020 (parse_exp_in_context): Update.
13021 * p-exp.y (yylex): Update.
13022 * m2-exp.y (yylex): Update.
13023 * go-exp.y (lex_one_token): Update.
13024 * f-exp.y (yylex): Update.
13025 * d-exp.y (lex_one_token): Update.
13026 * c-exp.y (lex_one_token): Update.
13027 * ada-lex.l: Update.
13028
13029 2019-04-04 Tom Tromey <tom@tromey.com>
13030
13031 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13032 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13033 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13034 * parser-defs.h (paren_depth): Don't declare.
13035 * parse.c (paren_depth): Remove global.
13036 (parse_exp_in_context): Update.
13037 * p-exp.y (paren_depth): New global.
13038 (pascal_parse): Initialize it.
13039 * m2-exp.y (paren_depth): New global.
13040 (m2_parse): Initialize it.
13041 * go-exp.y (paren_depth): New global.
13042 (go_parse): Initialize it.
13043 * f-exp.y (paren_depth): New global.
13044 (f_parse): Initialize it.
13045 * d-exp.y (paren_depth): New global.
13046 (d_parse): Initialize it.
13047 * c-exp.y (paren_depth): New global.
13048 (c_parse): Initialize it.
13049 * ada-lex.l (paren_depth): New global.
13050 (lexer_init): Initialize it.
13051
13052 2019-04-04 Tom Tromey <tom@tromey.com>
13053
13054 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13055 (rust_parser::convert_ast_to_type)
13056 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13057 * parser-defs.h (struct parser_state) <parser_state>: Add
13058 parameters. Initialize new members.
13059 <expression_context_block, expression_context_pc>: New members.
13060 * parse.c (expression_context_block, expression_context_pc):
13061 Remove globals.
13062 (parse_exp_in_context): Update.
13063 * p-exp.y: Update all rules.
13064 (yylex): Update.
13065 * m2-exp.y: Update all rules.
13066 (yylex): Update.
13067 * go-exp.y (yylex): Update.
13068 * f-exp.y (yylex): Update.
13069 * d-exp.y: Update all rules.
13070 (yylex): Update.
13071 * c-exp.y: Update all rules.
13072 (lex_one_token, classify_name, yylex, c_parse): Update.
13073 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13074
13075 2019-04-04 Tom Tromey <tom@tromey.com>
13076
13077 * gdbarch.h, gdbarch.c: Rebuild.
13078 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13079 * stap-probe.h:
13080 (struct stap_parse_info): Replace "parser_state" with
13081 "expr_builder".
13082 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13083 (parser_state): New class.
13084 * parse.c (expr_builder): Rename.
13085 (expr_builder::release): Rename.
13086 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13087 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13088 (write_exp_elt_longcst, write_exp_elt_floatcst)
13089 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13090 (write_exp_string_vector, write_exp_bitstring)
13091 (write_exp_msymbol, mark_struct_expression)
13092 (write_dollar_variable)
13093 (insert_type_address_space, increase_expout_size): Replace
13094 "parser_state" with "expr_builder".
13095 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13096 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13097 "parser_state" with "expr_builder".
13098
13099 2019-04-04 Tom Tromey <tom@tromey.com>
13100
13101 * rust-exp.y: Replace "parse_language" with method call.
13102 * p-exp.y:
13103 (yylex): Replace "parse_language" with method call.
13104 * m2-exp.y:
13105 (yylex): Replace "parse_language" with method call.
13106 * go-exp.y (classify_name): Replace "parse_language" with method
13107 call.
13108 * f-exp.y (yylex): Replace "parse_language" with method call.
13109 * d-exp.y (lex_one_token): Replace "parse_language" with method
13110 call.
13111 * c-exp.y:
13112 (lex_one_token, classify_name, yylex): Replace "parse_language"
13113 with method call.
13114 * ada-exp.y (find_primitive_type, type_char)
13115 (type_system_address): Replace "parse_language" with method call.
13116
13117 2019-04-04 Tom Tromey <tom@tromey.com>
13118
13119 * rust-exp.y: Replace "parse_gdbarch" with method call.
13120 * parse.c (write_dollar_variable, insert_type_address_space):
13121 Replace "parse_gdbarch" with method call.
13122 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13123 call.
13124 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13125 call.
13126 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13127 "parse_gdbarch" with method call.
13128 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13129 with method call.
13130 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13131 "parse_gdbarch" with method call.
13132 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13133 "parse_gdbarch" with method call.
13134 * c-exp.y (parse_type, parse_number, classify_name): Replace
13135 "parse_gdbarch" with method call.
13136 * ada-lex.l: Replace "parse_gdbarch" with method call.
13137 * ada-exp.y (parse_type, find_primitive_type, type_char)
13138 (type_system_address): Replace "parse_gdbarch" with method call.
13139
13140 2019-04-04 Tom Tromey <tom@tromey.com>
13141
13142 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13143 * stap-probe.c (stap_parse_argument): Update.
13144 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13145 initial_size parameter.
13146 * rust-exp.y (rust_lex_tests): Update.
13147 * parse.c (parser_state): Update.
13148 (parse_exp_in_context): Update.
13149 * parser-defs.h (struct parser_state) <parser_state>: Remove
13150 "initial_size" parameter.
13151
13152 2019-04-04 Tom Tromey <tom@tromey.com>
13153
13154 * parser-defs.h (increase_expout_size): Don't declare.
13155 * parse.c (increase_expout_size): Now static.
13156
13157 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13158
13159 * gnu-nat.c (gnu_nat_target::wait): Fix
13160 target_waitstatus_to_string call.
13161
13162 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13163
13164 * eval.c (evaluate_subexp_standard): Handle internal functions
13165 during Fortran function call handling.
13166
13167 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13168
13169 * NEWS: Mention new internal functions.
13170 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13171 (read_base_type): Use dwarf2_init_complex_target_type.
13172 * value.c (creal_internal_fn): New function.
13173 (cimag_internal_fn): New function.
13174 (_initialize_values): Register new internal functions.
13175
13176 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13177
13178 * infrun.c (stop_all_threads): If debug_infrun, always
13179 trace the wait status after wait_one, using
13180 target_waitstatus_to_string and target_pid_to_str.
13181 (handle_inferior_event): Replace various trace of
13182 wait status kind by a single trace.
13183 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13184 wait status kind image by target_waitstatus_to_string.
13185 * target/waitstatus.c (target_waitstatus_to_string): Fix
13186 obsolete comment.
13187
13188 2019-04-01 Tom Tromey <tromey@adacore.com>
13189
13190 PR symtab/23331:
13191 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13192
13193 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13194 Pedro Alves <palves@redhat.com>
13195
13196 * top.c (quit_force): Call 'finalize_values'.
13197 * value.c (finalize_values): New function.
13198 * value.h (finalize_values): Declare.
13199
13200 2019-03-30 Eli Zaretskii <eliz@gnu.org>
13201
13202 * NEWS: Announce $_gdb_major and $_gdb_minor.
13203
13204 * top.c (init_gdb_version_vars): New function.
13205 (gdb_init): Call init_gdb_version_vars.
13206
13207 2019-03-29 Tom Tromey <tromey@adacore.com>
13208
13209 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13210 help text. Remove dead code.
13211
13212 2019-03-29 Keith Seitz <keiths@redhat.com>
13213
13214 From Siddhesh Poyarekar:
13215 * f-lang.h (f77_get_upperbound): Return LONGEST.
13216 (f77_get_lowerbound): Likewise.
13217 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13218 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13219 print them.
13220 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13221 plongest to format print it.
13222 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13223 (f77_get_upperbound): Likewise.
13224 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13225 LOWER_BOUND to LONGEST.
13226 (f77_create_arrayprint_offset_tbl): Likewise.
13227
13228 2019-03-29 Keith Seitz <keiths@redhat.com>
13229
13230 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13231 %s/pulongest for TYPE_LENGTH instead of %d in format
13232 strings.
13233 * ada-typerint.c (ada_print_type): Likewise.
13234 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13235 * compile/compile-c-support.c (generate_register_struct): Likewise.
13236 * gdbtypes.c (recursive_dump_type): Likewise.
13237 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13238 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13239 instead of %d in format strings.
13240 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13241 to std::min to ULONGEST.
13242 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13243 instead of %d in format strings.
13244 * tracepoint.c (info_scope_command): Likewise.
13245 * typeprint.c (print_offset_data::update)
13246 (print_offset_data::finish): Likewise.
13247 * xtensa-tdep.c (xtensa_store_return_value)
13248 (xtensa_push_dummy_call): Likewise.
13249
13250 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13251
13252 * windows-nat.c (display_selector): Fixed format specifications
13253 for 64-bit Cygwin.
13254
13255 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13256
13257 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13258
13259 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13260
13261 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13262 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13263 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13264 (nios2_linux_init_abi): Install it.
13265
13266 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13267
13268 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13269
13270 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13271
13272 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13273
13274 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13275 Tom Tromey <tromey@adacore.com>
13276
13277 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13278
13279 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13280
13281 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13282 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13283 method to compute the bounds of range types. Also print "[evaluated]"
13284 if the bounds' values come from a dynamic evaluation.
13285
13286 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13287
13288 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13289 whitespace when pretty printing is on.
13290
13291 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13292
13293 * ppc-linux-nat.c: Add include.
13294
13295 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13296
13297 * NEWS: Mention AArch64 Pointer Authentication.
13298
13299 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13300
13301 * arm-linux-nat.c: Add include.
13302
13303 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13304
13305 * source-cache.c (source_cache::get_source_lines): Re-read
13306 fullname after calling open_source_file.
13307
13308 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13309
13310 * NEWS: Mention TLS support for FreeBSD.
13311
13312 2019-03-25 Tom Tromey <tromey@adacore.com>
13313
13314 * minsyms.c (BUNCH_SIZE): Update comment.
13315 (~minimal_symbol_reader): Remove old comment.
13316 (compact_minimal_symbols): Update comment.
13317 (minimal_symbol_reader::install): Remove old comment. Update
13318 other comments.
13319
13320 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13321
13322 * s390-linux-nat.c: Add include.
13323
13324 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13325
13326 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13327 Call linux_get_hwcap.
13328 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13329 Likewise.
13330 (aarch64_linux_get_hwcap): Remove function.
13331 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13332 declaration.
13333 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13334 linux_get_hwcap.
13335 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13336 * linux-tdep.c (linux_get_hwcap): Add function.
13337 (linux_get_hwcap2): Likewise.
13338 * linux-tdep.h (linux_get_hwcap): Add declaration.
13339 (linux_get_hwcap2): Likewise.
13340 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13341 (ppc_linux_get_hwcap2): Likewise.
13342 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13343 linux_get_hwcap.
13344 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13345 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13346 (ppc_linux_nat_target::read_description): Likewise.
13347 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13348 * s390-linux-nat.c: Likewise.
13349 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13350
13351 2019-03-24 Tom Tromey <tom@tromey.com>
13352
13353 * ada-lang.c (standard_lookup): Simplify initialization.
13354 (ada_lookup_symbol_nonlocal): Simplify return.
13355 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13356 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13357 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13358 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13359 initialization.
13360 * solib.c (solib_global_lookup): Simplify.
13361 * symtab.c (null_block_symbol): Remove.
13362 (symbol_cache_lookup): Simplify returns.
13363 (lookup_language_this): Simplify returns.
13364 (lookup_symbol_aux): Simplify return.
13365 (lookup_local_symbol): Simplify returns.
13366 (lookup_global_symbol_from_objfile): Simplify return.
13367 (lookup_symbol_in_objfile_symtabs)
13368 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13369 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13370 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13371 * cp-namespace.c (cp_lookup_bare_symbol)
13372 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13373 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13374 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13375 (cp_lookup_symbol_via_imports): Simplify initialization.
13376 (find_symbol_in_baseclass): Likewise.
13377 * symtab.h (null_block_symbol): Remove.
13378 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13379 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13380 (d_lookup_symbol_module): Likewise.
13381 (find_symbol_in_baseclass): Simplify initialization.
13382
13383 2019-03-24 Tom Tromey <tom@tromey.com>
13384
13385 * expression.h: Don't include symtab.h.
13386 (struct block): Forward declare.
13387
13388 2019-03-24 Tom Tromey <tom@tromey.com>
13389
13390 * c-exp.y (typebase): Remove casts.
13391 * gdbtypes.c (lookup_unsigned_typename, )
13392 (lookup_signed_typename): Remove cast.
13393 * eval.c (parse_to_comma_and_eval): Remove cast.
13394 * parse.c (write_dollar_variable): Remove cast.
13395 * block.h (struct block) <superblock>: Now const.
13396 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13397 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13398 (map_block): Make "block" const.
13399 * symfile.h (struct quick_symbol_functions)
13400 <map_matching_symbols>: Constify block argument to "callback".
13401 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13402 const.
13403 (find_pc_sect_compunit_symtab): Make "b" const.
13404 (find_symbol_at_address): Likewise.
13405 (search_symbols): Likewise.
13406 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13407 (dw2_debug_names_lookup_symbol): Likewise.
13408 (dw2_map_matching_symbols): Update.
13409 * p-valprint.c (pascal_val_print): Remove "block".
13410 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13411 (aux_add_nonlocal_symbols): Make "block" const.
13412 (resolve_subexp): Remove cast.
13413 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13414 const.
13415 (iterate_over_file_blocks): Likewise.
13416 * f-exp.y (%union) <bval>: Remove.
13417 * coffread.c (patch_opaque_types): Make "b" const.
13418 * spu-tdep.c (spu_catch_start): Make "block" const.
13419 * c-valprint.c (print_unpacked_pointer): Remove "block".
13420 * symmisc.c (dump_symtab_1): Make "b" const.
13421 (block_depth): Make "block" const.
13422 * d-exp.y (%union) <bval>: Remove.
13423 * cp-support.h (cp_lookup_rtti_type): Update.
13424 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13425 * psymtab.c (psym_lookup_symbol): Make "block" const.
13426 (maintenance_check_psymtabs): Make "b" const.
13427 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13428 (enumerate_locals, enumerate_args): Update.
13429 * python/py-symtab.c (stpy_global_block): Make "block" const.
13430 (stpy_static_block): Likewise.
13431 * inline-frame.c (block_starting_point_at): Make "new_block"
13432 const.
13433 * block.c (find_block_in_blockvector): Make return type const.
13434 (blockvector_for_pc_sect): Make "b" const.
13435 (find_block_in_blockvector): Make "b" const.
13436
13437 2019-03-23 Tom Tromey <tom@tromey.com>
13438
13439 * varobj.c (varobj_create): Update.
13440 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13441 * printcmd.c (display_command, do_one_display): Don't reset
13442 innermost_block.
13443 * parser-defs.h (enum innermost_block_tracker_type): Move to
13444 expression.h.
13445 (innermost_block): Update comment.
13446 * parse.c (parse_exp_1): Add tracker_types parameter.
13447 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13448 tracker_types parameter. Reset innermost_block.
13449 (parse_exp_in_context): Remove.
13450 (parse_expression_for_completion): Update.
13451 * objfiles.c (~objfile): Don't reset expression_context_block or
13452 innermost_block.
13453 * expression.h (enum innermost_block_tracker_type): Move from
13454 parser-defs.h.
13455 (parse_exp_1): Add tracker_types parameter.
13456 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13457 reset innermost_block.
13458
13459 2019-03-23 Tom Tromey <tom@tromey.com>
13460
13461 * objfiles.h: Include bcache.h.
13462
13463 2019-03-23 Tom Tromey <tom@tromey.com>
13464
13465 * linespec.c (get_current_search_block): Use
13466 scoped_restore_current_language.
13467 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13468
13469 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13470 Jiong Wang <jiong.wang@arm.com>
13471
13472 * aarch64-linux-tdep.c
13473 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13474 section.
13475 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13476
13477 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13478 Jiong Wang <jiong.wang@arm.com>
13479
13480 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13481 instructions.
13482 (aarch64_analyze_prologue_test): Add PACIASP test.
13483 (aarch64_prologue_prev_register): Unmask PC value.
13484
13485 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13486 Jiong Wang <jiong.wang@arm.com>
13487
13488 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13489 (aarch64_dwarf2_prev_register): Unmask PC value.
13490 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13491 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13492 DW_CFA_AARCH64_negate_ra_state.
13493 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13494
13495 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13496 Jiong Wang <jiong.wang@arm.com>
13497
13498 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13499 registers.
13500 (aarch64_pseudo_register_name): Likewise.
13501 (aarch64_pseudo_register_type): Likewise.
13502 (aarch64_pseudo_register_reggroup_p): Likewise.
13503 (aarch64_gdbarch_init): Add pauth registers.
13504 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13505 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13506 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13507 (struct gdbarch_tdep): Add regnum for ra_state.
13508
13509 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13510 Jiong Wang <jiong.wang@arm.com>
13511
13512 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13513
13514 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13515 Jiong Wang <jiong.wang@arm.com>
13516
13517 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13518 function.
13519 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13520 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13521 (aarch64_gdbarch_init): Add puth registers.
13522 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13523 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13524 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13525
13526 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13527 Jiong Wang <jiong.wang@arm.com>
13528
13529 * aarch64-linux-nat.c
13530 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13531 * aarch64-linux-tdep.c
13532 (aarch64_linux_core_read_description): Likewise.
13533 (aarch64_linux_get_hwcap): New function.
13534 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13535 (aarch64_linux_get_hwcap): New declaration.
13536
13537 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13538 Jiong Wang <jiong.wang@arm.com>
13539
13540 * aarch64-linux-nat.c
13541 (aarch64_linux_nat_target::read_description): Add pauth param.
13542 * aarch64-linux-tdep.c
13543 (aarch64_linux_core_read_description): Likewise.
13544 * aarch64-tdep.c (struct target_desc): Add in pauth.
13545 (aarch64_read_description): Add pauth param.
13546 (aarch64_gdbarch_init): Likewise.
13547 * aarch64-tdep.h (aarch64_read_description): Likewise.
13548 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13549 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13550 * features/Makefile: Add new files.
13551 * features/aarch64-pauth.c: New file.
13552 * features/aarch64-pauth.xml: New file.
13553
13554 2019-03-20 Tom Tromey <tromey@adacore.com>
13555
13556 * infrun.c (handle_inferior_event): Rename from
13557 handle_inferior_event_1. Create a scoped_value_mark.
13558 (handle_inferior_event): Remove.
13559
13560 2019-03-19 Tom Tromey <tromey@adacore.com>
13561
13562 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13563 * infrun.h (print_stop_event): Add "displays" parameter.
13564 * infrun.c (print_stop_event): Add "displays" parameter.
13565
13566 2019-03-19 Pedro Alves <palves@redhat.com>
13567
13568 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13569 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13570 to -1. Fix TABs vs spaces.
13571 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13572 * tui/tui-out.h (tui_ui_out) Add intro comments.
13573 <m_line, m_start_of_line>: In-class initialize, and add describing
13574 comment.
13575
13576 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13577
13578 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13579 variable names.
13580 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13581
13582 2019-03-18 Pedro Alves <palves@redhat.com>
13583 Eli Zaretskii <eliz@gnu.org>
13584
13585 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13586 m_line and m_start_of_line.
13587
13588 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13589
13590 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13591 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13592 it returns a newline. This fixes a regression in TU mode, whereby
13593 the next line is output on the same screen line as the user input.
13594
13595 2019-03-18 Tom Tromey <tromey@adacore.com>
13596
13597 * minsyms.c (minimal_symbol_reader::install): Remove call to
13598 obstack_blank.
13599
13600 2019-03-18 Pedro Alves <palves@redhat.com>
13601
13602 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13603 New globals.
13604 (apply_style): New, factored out from ...
13605 (apply_ansi_escape): ... this. Handle reverse video mode.
13606 (tui_set_reverse_mode): New function.
13607 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13608 * tui/tui-winsource.c (tui_show_source_line): Use
13609 tui_set_reverse_mode instead of setting A_STANDOUT.
13610 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13611 New setter methods.
13612
13613 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13614
13615 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13616 Handle tabs.
13617
13618 2019-03-18 Tom Tromey <tromey@adacore.com>
13619
13620 * ada-lang.c (empty_array): Add "high" parameter.
13621 (ada_evaluate_subexp): Update.
13622
13623 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13624
13625 * unittests/string_view-selftests.c: Define
13626 _initialize_string_view_selftests unconditionally.
13627
13628 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13629
13630 PR gdb/24350
13631 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13632
13633 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13634
13635 PR gdb/24351
13636 * windows-nat.c (display_selector): Fix format specifiers.
13637
13638 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13639
13640 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13641 tui_refill_source_window instead of tui_refresh_win, to update the
13642 current execution line. This fixes redisplay of the current line
13643 when stepping through the code with "next" or "step".
13644
13645 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13646
13647 * source-cache.c (source_cache::get_source_lines): Call
13648 find_source_lines to initialize s->nlines. This fixes vertical
13649 scrolling of TUI source window when the DOWN arrow is pressed.
13650
13651 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13652
13653 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13654 linux-thread-db.c (_initialize_thread_db): Likewise.
13655
13656 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13657
13658 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13659 wclrtoeol in tui_show_source_line". This reverts changes made in
13660 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13661
13662 2019-03-15 Tom Tromey <tom@tromey.com>
13663
13664 * symtab.h (struct minimal_symbol): Derive from
13665 general_symbol_info.
13666 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13667 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13668 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13669 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13670 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13671 (MSYMBOL_SEARCH_NAME): Update.
13672 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13673 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13674 * minsyms.c (minimal_symbol_reader::record_full): Update.
13675
13676 2019-03-15 Tom Tromey <tom@tromey.com>
13677
13678 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13679
13680 2019-03-15 Tom Tromey <tom@tromey.com>
13681
13682 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13683 unique_xmalloc_ptr.
13684 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13685 Update.
13686 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13687 (build_minimal_symbol_hash_tables)
13688 (minimal_symbol_reader::install): Update.
13689
13690 2019-03-15 Tom Tromey <tom@tromey.com>
13691
13692 * symtab.c (create_demangled_names_hash): Update.
13693 (symbol_set_names): Update.
13694 * objfiles.h (struct objfile_per_bfd_storage)
13695 <demangled_names_hash>: Now an htab_up.
13696 * objfiles.c (objfile_per_bfd_storage): Simplify.
13697
13698 2019-03-15 Tom Tromey <tom@tromey.com>
13699
13700 * objfiles.h (struct objfile_per_bfd_storage): Declare
13701 destructor.
13702 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13703 New.
13704 (get_objfile_bfd_data): Use new. Don't initialize
13705 language_of_main.
13706 (free_objfile_per_bfd_storage): Remove.
13707 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13708
13709 2019-03-15 Tom Tromey <tom@tromey.com>
13710
13711 * symfile.c (reread_symbols): Update.
13712 * objfiles.c (objfile::objfile): Update.
13713 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13714 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13715 comment.
13716 (minimal_symbol_reader::install): Update.
13717 (terminate_minimal_symbol_table): Remove.
13718 * jit.c (jit_object_close_impl): Update.
13719
13720 2019-03-15 Tom Tromey <tom@tromey.com>
13721
13722 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13723 initializations.
13724
13725 2019-03-15 Tom Tromey <tom@tromey.com>
13726
13727 * objfiles.h (struct objfile_per_bfd_storage)
13728 <demangled_hash_languages>: Now a bitset.
13729 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13730 (lookup_minimal_symbol): Update.
13731
13732 2019-03-15 Tom Tromey <tom@tromey.com>
13733
13734 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13735 Don't return the symbol.
13736 * coffread.c (record_minimal_symbol): Use record_full.
13737
13738 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13739
13740 The MS-Windows port of ncurses fails to switch to a color pair if
13741 one or both of the colors are the implicit default colors. This
13742 change records the default colors when TUI is initialized, and
13743 then specifies them explicitly when a color pair uses the default
13744 colors. This allows color styling in TUI mode on MS-Windows.
13745
13746 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13747 ncurses_norm_attr.
13748 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13749 colors in ncurses_norm_attr.
13750 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13751 "none", replace it with the default color recorded in
13752 ncurses_norm_attr.
13753
13754 2019-03-14 Tom Tromey <tromey@adacore.com>
13755
13756 * source-cache.h (class source_cache) <get_source_lines>: Return
13757 std::string.
13758 * source-cache.c (source_cache::extract_lines): Handle case where
13759 first_pos==npos. Return std::string.
13760 (source_cache::get_source_lines): Update.
13761
13762 2019-03-14 Tom Tromey <tromey@adacore.com>
13763
13764 * NEWS: Add item for "style sources" commands.
13765 * source-cache.c (source_cache::get_source_lines): Check
13766 source_styling.
13767 * cli/cli-style.c (source_styling): New global.
13768 (_initialize_cli_style): Add "style sources" commands.
13769 (show_style_sources): New function.
13770 * cli/cli-style.h (source_styling): Declare.
13771
13772 2019-03-14 Pedro Alves <palves@redhat.com>
13773 Tom Tromey <tromey@adacore.com>
13774
13775 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13776 * tui/tui-winsource.c (tui_refill_source_window): New function,
13777 from...
13778 (tui_horizontal_source_scroll): ... here. Move some logic.
13779 * cli/cli-style.c (set_style_enabled): Notify new observable.
13780 * tui/tui-hooks.c (tui_redisplay_source): New function.
13781 (tui_attach_detach_observers): Attach or detach
13782 tui_redisplay_source.
13783 * observable.h (source_styling_changed): New observable.
13784 * observable.c: Define source_styling_changed observable.
13785
13786 2019-03-13 Tom Tromey <tromey@adacore.com>
13787
13788 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13789 (i386_gnu_nat_target::store_registers): Update.
13790 * target-debug.h (target_debug_print_std_string): New macro.
13791 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13792 * windows-tdep.c (display_one_tib): Update.
13793 * tui/tui-stack.c (tui_make_status_line): Update.
13794 * top.c (print_inferior_quit_action): Update.
13795 * thread.c (thr_try_catch_cmd): Update.
13796 (add_thread_with_info): Update.
13797 (thread_target_id_str): Update.
13798 (thr_try_catch_cmd): Update.
13799 (thread_command): Update.
13800 (thread_find_command): Update.
13801 * record-btrace.c (record_btrace_target::info_record)
13802 (record_btrace_resume_thread, record_btrace_target::resume)
13803 (record_btrace_cancel_resume, record_btrace_step_thread)
13804 (record_btrace_target::wait, record_btrace_target::wait)
13805 (record_btrace_target::wait, record_btrace_target::stop): Update.
13806 * progspace.c (print_program_space): Update.
13807 * process-stratum-target.c
13808 (process_stratum_target::thread_address_space): Update.
13809 * linux-fork.c (linux_fork_mourn_inferior)
13810 (detach_checkpoint_command, info_checkpoints_command)
13811 (linux_fork_context): Update.
13812 (linux_fork_detach): Update.
13813 (class scoped_switch_fork_info): Update.
13814 (delete_checkpoint_command): Update.
13815 * infrun.c (follow_fork_inferior): Update.
13816 (follow_fork_inferior): Update.
13817 (proceed_after_vfork_done): Update.
13818 (handle_vfork_child_exec_or_exit): Update.
13819 (follow_exec): Update.
13820 (displaced_step_prepare_throw): Update.
13821 (displaced_step_restore): Update.
13822 (start_step_over): Update.
13823 (resume_1): Update.
13824 (clear_proceed_status_thread): Update.
13825 (proceed): Update.
13826 (print_target_wait_results): Update.
13827 (do_target_wait): Update.
13828 (context_switch): Update.
13829 (stop_all_threads): Update.
13830 (restart_threads): Update.
13831 (finish_step_over): Update.
13832 (handle_signal_stop): Update.
13833 (switch_back_to_stepped_thread): Update.
13834 (keep_going_pass_signal): Update.
13835 (print_exited_reason): Update.
13836 (normal_stop): Update.
13837 * inferior.c (inferior_pid_to_str): Change return type.
13838 (print_selected_inferior): Update.
13839 (add_inferior): Update.
13840 (detach_inferior): Update.
13841 * dummy-frame.c (fprint_dummy_frames): Update.
13842 * dcache.c (dcache_info_1): Update.
13843 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13844 (btrace_fetch, btrace_clear): Update.
13845 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13846 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13847 type.
13848 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13849 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13850 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13851 * gdbarch.c, gdbarch.h: Rebuild.
13852 * gdbarch.sh (core_pid_to_str): Change return type.
13853 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13854 return type.
13855 (windows_nat_target::pid_to_str): Change return type.
13856 (windows_delete_thread): Update.
13857 (windows_nat_target::attach): Update.
13858 (windows_nat_target::files_info): Update.
13859 * target-delegates.c: Rebuild.
13860 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13861 return type.
13862 (sol_thread_target::pid_to_str): Change return type.
13863 * remote.c (class remote_target) <pid_to_str>: Change return
13864 type.
13865 (remote_target::pid_to_str): Change return type.
13866 (extended_remote_target::attach, remote_target::remote_stop_ns)
13867 (remote_target::remote_notif_remove_queued_reply)
13868 (remote_target::push_stop_reply, remote_target::disable_btrace):
13869 Update.
13870 (extended_remote_target::attach): Update.
13871 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13872 type.
13873 (gdbsim_target::pid_to_str): Change return type.
13874 * ravenscar-thread.c (struct ravenscar_thread_target)
13875 <pid_to_str>: Change return type.
13876 (ravenscar_thread_target::pid_to_str): Change return type.
13877 * procfs.c (class procfs_target) <pid_to_str>: Change return
13878 type.
13879 (procfs_target::pid_to_str): Change return type.
13880 (procfs_target::attach): Update.
13881 (procfs_target::detach): Update.
13882 (procfs_target::fetch_registers): Update.
13883 (procfs_target::store_registers): Update.
13884 (procfs_target::wait): Update.
13885 (procfs_target::files_info): Update.
13886 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13887 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13888 return type.
13889 (nto_procfs_target::pid_to_str): Change return type.
13890 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13891 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13892 return type.
13893 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13894 (exit_lwp): Update.
13895 (attach_proc_task_lwp_callback, get_detach_signal)
13896 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13897 (linux_nat_target::resume, wait_lwp, stop_callback)
13898 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13899 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13900 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13901 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13902 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13903 type.
13904 (inf_ptrace_target::attach): Update.
13905 (inf_ptrace_target::files_info): Update.
13906 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13907 type.
13908 (go32_nat_target::pid_to_str): Change return type.
13909 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13910 (gnu_nat_target::wait): Update.
13911 (gnu_nat_target::wait): Update.
13912 (gnu_nat_target::resume): Update.
13913 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13914 (fbsd_nat_target::wait): Update.
13915 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13916 type.
13917 (darwin_nat_target::attach): Update.
13918 * corelow.c (class core_target) <pid_to_str>: Change return type.
13919 (core_target::pid_to_str): Change return type.
13920 * target.c (normal_pid_to_str): Change return type.
13921 (default_pid_to_str): Likewise.
13922 (target_pid_to_str): Change return type.
13923 (target_translate_tls_address): Update.
13924 (target_announce_detach): Update.
13925 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13926 return type.
13927 (bsd_uthread_target::pid_to_str): Change return type.
13928 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13929 type.
13930 (bsd_kvm_target::pid_to_str): Change return type.
13931 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13932 return type.
13933 (aix_thread_target::pid_to_str): Change return type.
13934 * target.h (struct target_ops) <pid_to_str>: Change return type.
13935 (target_pid_to_str, normal_pid_to_str): Likewise.
13936 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13937 type.
13938 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13939 type.
13940 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13941 return type.
13942 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13943 type.
13944 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13945 type.
13946 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13947 return type.
13948
13949 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13950
13951 * NEWS: Mention that the new default MI version is 3. Mention
13952 changes to the output of commands and events that deal with
13953 multi-location breakpoints.
13954 * breakpoint.c: Include "mi/mi-out.h".
13955 (print_one_breakpoint): Change output syntax if using MI version
13956 >= 3.
13957 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13958 New.
13959 (mi_multi_location_breakpoint_output_fixed): New.
13960 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13961 (mi_cmd_fix_multi_location_breakpoint_output): New.
13962 (mi_multi_location_breakpoint_output_fixed): New.
13963 * mi/mi-cmds.c (mi_cmds): Register command
13964 -fix-multi-location-breakpoint-output.
13965 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13966 interpreter "mi".
13967
13968 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13969
13970 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13971 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13972 instantiate mi_ui_out based on interpreter name.
13973 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13974 * mi/mi-main.c (mi_load_progress): Likewise.
13975
13976 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13977
13978 * NEWS: Combine separate "New targets" sections for 8.3.
13979
13980 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13981
13982 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13983 (ppcfbsd_init_abi): Install gdbarch
13984 "fetch_tls_load_module_address" and "get_thread_local_address"
13985 methods.
13986
13987 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13988
13989 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13990 (riscv_fbsd_init_abi): Install gdbarch
13991 "fetch_tls_load_module_address" and "get_thread_local_address"
13992 methods.
13993
13994 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13995
13996 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13997 (i386fbsd_init_abi): Install gdbarch
13998 "fetch_tls_load_module_address" and "get_thread_local_address"
13999 methods.
14000
14001 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14002
14003 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
14004 (amd64fbsd_init_abi): Install gdbarch
14005 "fetch_tls_load_module_address" and "get_thread_local_address"
14006 methods.
14007
14008 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14009
14010 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
14011 (struct fbsd_pspace_data): New type.
14012 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
14013 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
14014 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
14015 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
14016 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
14017
14018 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14019
14020 * gdbtypes.c (lookup_struct_elt): New function.
14021 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
14022 * gdbtypes.h (struct struct_elt): New type.
14023 (lookup_struct_elt): New prototype.
14024
14025 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14026
14027 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14028 remove disabled code block.
14029
14030 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14031
14032 * gdbarch.sh (get_thread_local_address): New method.
14033 * gdbarch.h, gdbarch.c: Regenerate.
14034 * target.c (target_translate_tls_address): Use
14035 gdbarch_get_thread_local_address if present instead of
14036 target::get_thread_local_address.
14037
14038 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14039
14040 * target.h (target::get_thread_local_address): Update comment.
14041
14042 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14043
14044 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14045 objfile->separate_debug_objfile_backlink if not NULL.
14046
14047 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14048
14049 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14050 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14051 (amd64bsd_store_inferior_registers): Likewise.
14052 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14053 Enable segment base registers.
14054 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14055 PT_GETFSBASE and PT_GETGSBASE.
14056 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14057 PT_SETGSBASE.
14058 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14059 segment base registers.
14060 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14061
14062 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14063
14064 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14065 Update calls to i386_target_description to add 'segments'
14066 parameter.
14067 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14068 add segment base registers.
14069 * arch/i386.c (i386_create_target_description): Add 'segments'
14070 parameter to enable segment base registers.
14071 * arch/i386.h (i386_create_target_description): Likewise.
14072 * features/i386/32bit-segments.xml: New file.
14073 * features/i386/32bit-segments.c: Generate.
14074 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14075 call to i386_target_description to add 'segments' parameter.
14076 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14077 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14078 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14079 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14080 if feature is present.
14081 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14082 Add 'segments' parameter to call to i386_target_description.
14083 (i386_target_description): Add 'segments' parameter to enable
14084 segment base registers.
14085 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14086 to call to i386_target_description.
14087 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14088 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14089 Define I386_NUM_REGS.
14090 (i386_target_description): Add 'segments' parameter to enable
14091 segment base registers.
14092
14093 2019-03-12 Eli Zaretskii <eliz@gnu.org>
14094
14095 PR/24325
14096 * source-cache.c: #undef open and close, to avoid unresolved
14097 externals during linking.
14098
14099 2019-03-12 Tom Tromey <tromey@adacore.com>
14100
14101 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14102 const. Add initializers.
14103 (_initialize_remote): Don't initialize ptid globals.
14104
14105 2019-03-12 Pedro Alves <palves@redhat.com>
14106
14107 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14108
14109 2019-03-12 Pedro Alves <palves@redhat.com>
14110
14111 * cp-name-parser.y (main): Remove unused 'len' variable.
14112
14113 2019-03-12 Tom Tromey <tromey@adacore.com>
14114
14115 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14116 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14117
14118 2019-03-12 Tom Tromey <tromey@adacore.com>
14119
14120 * linux-nat.c (iterate_over_lwps): Update.
14121 (stop_callback): Remove parameter.
14122 (stop_wait_callback, detach_callback, resume_set_callback)
14123 (select_singlestep_lwp_callback, set_ignore_sigint)
14124 (status_callback, resumed_callback, resume_clear_callback)
14125 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14126 data parameter.
14127 (linux_nat_target::detach, linux_nat_target::resume)
14128 (linux_stop_and_wait_all_lwps, select_event_lwp)
14129 (linux_nat_filter_event, linux_nat_wait_1)
14130 (linux_nat_target::kill, linux_nat_target::stop)
14131 (linux_nat_target::stop): Update.
14132 (linux_nat_resume_callback): Change type.
14133 (resume_stopped_resumed_lwps, count_events_callback)
14134 (select_event_lwp_callback): Likewise.
14135 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14136 * arm-linux-nat.c (struct update_registers_data): Remove.
14137 (update_registers_callback): Change type.
14138 (arm_linux_insert_hw_breakpoint1): Update.
14139 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14140 parameter.
14141 (x86_linux_dr_set_addr): Update.
14142 (x86_linux_dr_set_control): Update.
14143 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14144 (iterate_over_lwps): Use gdb::function_view.
14145 * nat/aarch64-linux-hw-point.c (struct
14146 aarch64_dr_update_callback_param): Remove.
14147 (debug_reg_change_callback): Change type.
14148 (aarch64_notify_debug_reg_change): Update.
14149 * s390-linux-nat.c (s390_refresh_per_info): Update.
14150
14151 2019-03-11 Tom Tromey <tromey@adacore.com>
14152
14153 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14154 redundant assignment to "this_cu".
14155
14156 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14157
14158 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14159
14160 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14161
14162 * gdbtypes.c (rank_one_type_parm_set): 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_struct): 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_complex): New function extracted
14175 from...
14176 (rank_one_type): ... this.
14177
14178 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14179
14180 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14181 from...
14182 (rank_one_type): ... this.
14183
14184 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14185
14186 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14187 from...
14188 (rank_one_type): ... this.
14189
14190 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14191
14192 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14193 from...
14194 (rank_one_type): ... this.
14195
14196 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14197
14198 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14199 from...
14200 (rank_one_type): ... this.
14201
14202 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14203
14204 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14205 from...
14206 (rank_one_type): ... this.
14207
14208 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14209
14210 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14211 from...
14212 (rank_one_type): ... this.
14213
14214 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14215
14216 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14217 from...
14218 (rank_one_type): ... this.
14219
14220 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14221
14222 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14223 from...
14224 (rank_one_type): ... this.
14225
14226 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14227
14228 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14229 from...
14230 (rank_one_type): ... this.
14231
14232 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14233
14234 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14235 inferior-events' shows the example events.
14236
14237 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14238
14239 Support styling on native MS-Windows console
14240
14241 PR/24315
14242 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14243 on MS-Windows if $TERM is not defined.
14244
14245 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14246
14247 * posix-hdep.c (gdb_console_fputs):
14248 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14249 functions.
14250 * ui-file.h (gdb_console_fputs): Add prototype.
14251
14252 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14253 back to fputs only if the former returns zero.
14254
14255 2019-03-07 Tom Tromey <tom@tromey.com>
14256
14257 * symmisc.c (print_symbol_bcache_statistics): Update.
14258 (print_objfile_statistics): Update.
14259 * symfile.c (allocate_symtab): Update.
14260 * stabsread.c: Don't include bcache.h.
14261 * psymtab.h (struct psymbol_bcache): Don't declare.
14262 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14263 (psymbol_bcache_init, psymbol_bcache_free)
14264 (psymbol_bcache_get_bcache): Don't declare.
14265 * psymtab.c (struct psymbol_bcache): Remove.
14266 (psymtab_storage::psymtab_storage): Update.
14267 (psymtab_storage::~psymtab_storage): Update.
14268 (psymbol_bcache_init, psymbol_bcache_free)
14269 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14270 (add_psymbol_to_bcache): Update.
14271 (allocate_psymtab): Update.
14272 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14273 macro_cache>: No longer pointers.
14274 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14275 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14276 * macrotab.c (macro_bcache): Update.
14277 * macroexp.c: Don't include bcache.h.
14278 * gdbtypes.c (check_types_worklist): Update.
14279 (types_deeply_equal): Remove TRY/CATCH. Update.
14280 * elfread.c (elf_symtab_read): Update.
14281 * dwarf2read.c: Don't include bcache.h.
14282 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14283 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14284 (print_bcache_statistics, bcache_memory_used): Don't declare.
14285 (struct bcache): Move from bcache.c. Add constructor, destructor,
14286 methods. Rename all data members.
14287 * bcache.c (struct bcache): Move to bcache.h.
14288 (bcache::expand_hash_table): Rename from expand_hash_table.
14289 (bcache): Remove.
14290 (bcache::insert): Rename from bcache_full.
14291 (bcache::compare): Rename from bcache_compare.
14292 (bcache_xmalloc): Remove.
14293 (bcache::~bcache): Rename from bcache_xfree.
14294 (bcache::print_statistics): Rename from print_bcache_statistics.
14295 (bcache::memory_used): Rename from bcache_memory_used.
14296
14297 2019-03-07 Pedro Alves <palves@redhat.com>
14298
14299 * infrun.c (normal_stop): Also check for
14300 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14301
14302 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14303
14304 * f-lang.c (value_from_host_double): Moved to...
14305 * value.c (value_from_host_double): ...here.
14306 * value.h (value_from_host_double): Declare.
14307 * guile/scm-math.c (vlscm_convert_typed_number): Use
14308 value_from_host_double.
14309 (vlscm_convert_number): Likewise.
14310 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14311 * python/py-value.c (convert_value_from_python): Likewise.
14312
14313 2019-03-06 Tom Tromey <tom@tromey.com>
14314
14315 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14316
14317 2019-03-06 Tom Tromey <tom@tromey.com>
14318
14319 * utils.h (free_current_contents): Don't declare.
14320 * utils.c (free_current_contents): Remove.
14321
14322 2019-03-06 Tom Tromey <tom@tromey.com>
14323
14324 * top.c (quit_force): Update.
14325 * main.c (captured_command_loop): Update.
14326 * common/new-op.c (operator new): Update.
14327 * common/common-exceptions.c (struct catcher)
14328 <save_cleanup_chain>: Remove member.
14329 (exceptions_state_mc_init): Update.
14330 (exception_try_scope_entry): Return nullptr.
14331 (exception_try_scope_exit, exception_rethrow)
14332 (throw_exception_sjlj, throw_exception_cxx): Update.
14333 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14334 (all_cleanups, do_cleanups, discard_cleanups)
14335 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14336 (restore_cleanups, restore_final_cleanups): Don't declare.
14337 (do_final_cleanups): Remove parameter.
14338 * common/cleanups.c (cleanup_chain, make_cleanup)
14339 (make_cleanup_dtor, all_cleanups, do_cleanups)
14340 (discard_my_cleanups, discard_cleanups)
14341 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14342 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14343 (null_cleanup): Remove.
14344 (do_final_cleanups): Remove parameter.
14345
14346 2019-03-06 Tom Tromey <tom@tromey.com>
14347
14348 * remote.c (remote_target::remote_parse_stop_reply): Use
14349 unique_xmalloc_ptr.
14350
14351 2019-03-06 Tom Tromey <tom@tromey.com>
14352
14353 * stabsread.c (struct stabs_field_info): Rename from field_info.
14354 <list, fnlist>: Add initializers.
14355 <obstack>: New member.
14356 (read_member_functions, read_struct_fields, read_baseclasses):
14357 Allocate on obstack. Don't use cleanups.
14358 (read_one_struct_field, read_member_functions, read_struct_fields)
14359 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14360 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14361 (read_struct_type): Update.
14362
14363 2019-03-06 Tom Tromey <tom@tromey.com>
14364
14365 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14366 * common/filestuff.h (make_cleanup_close): Don't declare.
14367 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14368 Remove.
14369
14370 2019-03-06 Tom Tromey <tom@tromey.com>
14371
14372 * solib-aix.c: Use make_scope_exit.
14373
14374 2019-03-06 Tom Tromey <tom@tromey.com>
14375
14376 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14377 Use make_scope_exit.
14378
14379 2019-03-06 Tom Tromey <tom@tromey.com>
14380
14381 * solib-svr4.c (disable_probes_interface): Remove parameter.
14382 (svr4_handle_solib_event): Use make_scope_exit.
14383
14384 2019-03-06 Tom Tromey <tom@tromey.com>
14385
14386 * remote.c (struct stop_reply_deleter): Remove.
14387 (stop_reply_up): Update.
14388 (struct stop_reply): Derive from notif_event. Don't typedef.
14389 <regcache>: Now a std::vector.
14390 (stop_reply_xfree): Remove.
14391 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14392 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14393 (remote_target::discard_pending_stop_replies): Use delete.
14394 (remote_target::remote_parse_stop_reply): Update.
14395 (remote_target::process_stop_reply): Update.
14396 * remote-notif.h (struct notif_event): Add virtual destructor.
14397 Remove "dtr" member.
14398 (struct notif_client) <alloc_event>: Return a unique_ptr.
14399 (notif_event_xfree): Don't declare.
14400 (notif_event_up): New typedef.
14401 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14402 (notif_event_xfree, do_notif_event_xfree): Remove.
14403 (remote_notif_state_xfree): Update.
14404
14405 2019-03-06 Tom Tromey <tom@tromey.com>
14406
14407 * infrun.c (displaced_step_clear_cleanup): Now a
14408 forward_scope_exit type.
14409 (displaced_step_prepare_throw): Update.
14410 (displaced_step_fixup): Update.
14411
14412 2019-03-06 Tom Tromey <tom@tromey.com>
14413
14414 * inferior.h (class inferior): Update comment.
14415 * gdbthread.h (class thread_info): Update comment.
14416
14417 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14418 Tom Tromey <tom@tromey.com>
14419
14420 * stabsread.h (struct stab_section_list): Remove.
14421 (coffstab_build_psymtabs): Update.
14422 * dbxread.c (symbuf_sections): Now a std::vector.
14423 (sect_idx): New global.
14424 (fill_symbuf): Update.
14425 (coffstab_build_psymtabs): Change type of stabsects parameter.
14426 Update.
14427 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14428 std::vector.
14429 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14430 (coff_locate_sections): Update.
14431 (coff_symfile_read): Remove cleanups. Update.
14432 (init_stringtab): Add storage parameter.
14433 (free_stringtab, free_stringtab_cleanup): Remove.
14434 (init_lineno): Add storage parameter.
14435 (free_linetab, free_linetab_cleanup): Remove.
14436
14437 2019-03-06 Pedro Alves <palves@redhat.com>
14438
14439 * linux-fork.c (fork_info::clobber_regs): Delete.
14440 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14441 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14442 comment. Adjust.
14443 (scoped_switch_fork_info::scoped_switch_fork_info)
14444 (checkpoint_command, linux_fork_context): Adjust
14445 fork_save_infrun_state calls.
14446
14447 2019-03-06 Pedro Alves <palves@redhat.com>
14448
14449 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14450 (inf_has_multiple_threads): Return 'bool' and rewrite using
14451 inferior_info::threads().
14452
14453 2019-03-06 Pedro Alves <palves@redhat.com>
14454
14455 * linux-fork.c: Include <list>.
14456 (fork_list): Now a std::list instance.
14457 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14458 (forks_exist_p, find_last_fork): Adjust.
14459 (new_fork): Delete.
14460 (one_fork_p): New.
14461 (add_fork): Adjust.
14462 (free_fork): Delete, folded into fork_info::~fork_info().
14463 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14464 Adjust.
14465 (init_fork_list): Delete.
14466 (linux_fork_killall, linux_fork_mourn_inferior)
14467 (linux_fork_detach, info_checkpoints_command): Adjust.
14468 (_initialize_linux_fork): No longer call init_fork_list.
14469
14470 2019-03-06 Pedro Alves <palves@redhat.com>
14471
14472 * linux-fork.c (new_fork): New, split out of ...
14473 (add_fork): ... this. Return void. Move "first fork" special
14474 case from here, to ...
14475 (checkpoint_command): ... here.
14476 * linux-linux.h (add_fork): Return void.
14477
14478 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14479
14480 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14481
14482 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14483 Chris January <chris.january@arm.com>
14484 David Lecomber <david.lecomber@arm.com>
14485
14486 * f-exp.y: New token, UNOP_INTRINSIC.
14487 (exp): New pattern using UNOP_INTRINSIC token.
14488 (f77_keywords): Add 'abs' keyword.
14489 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14490 (value_from_host_double): New function.
14491 (evaluate_subexp_f): Support UNOP_ABS.
14492
14493 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14494
14495 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14496 types.
14497
14498 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14499
14500 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14501 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14502 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14503
14504 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14505
14506 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14507
14508 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14509 Chris January <chris.january@arm.com>
14510
14511 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14512 * f-exp.y: Define 'KIND' token.
14513 (exp): New pattern for KIND expressions.
14514 (ptype): Handle types with a kind extension.
14515 (direct_abs_decl): Extend to spot kind extensions.
14516 (f77_keywords): Add 'kind' to the list.
14517 (push_kind_type): New function.
14518 (convert_to_kind_type): New function.
14519 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14520 * parse.c (operator_length_standard): Likewise.
14521 * parser-defs.h (enum type_pieces): Add tp_kind.
14522 * std-operator.def: Add UNOP_KIND.
14523
14524 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14525
14526 * f-exp.y (f_parse): Set yydebug.
14527
14528 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14529
14530 * f-lang.c (evaluate_subexp_f): New function.
14531 (exp_descriptor_f): New global.
14532 (f_language_defn): Use exp_descriptor_f instead of
14533 exp_descriptor_standard.
14534
14535 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14536
14537 * f-exp.y (struct token): Add comments.
14538 (dot_ops): Remove uppercase versions and the end marker.
14539 (f77_keywords): Likewise.
14540 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14541 entries in the dot_ops array are case insensitive, and use
14542 strncasecmp to compare strings. Also some whitespace cleanup in
14543 this area. Similar for the f77_keywords array, except entries in
14544 this list might be case sensitive.
14545
14546 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14547
14548 * f-exp.y (struct f77_boolean_val): Add comments.
14549 (boolean_values): Remove uppercase versions, and end marker.
14550 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14551 and use strncasecmp to achieve case insensitivity. Additionally,
14552 perform whitespace cleanup around this code.
14553
14554 2019-03-06 Tom Tromey <tromey@adacore.com>
14555
14556 * remote-sim.c (gdbsim_target_open): Use result of
14557 gdb_argv::release.
14558
14559 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14560 Dirk Schubert <dirk.schubert@arm.com>
14561 Chris January <chris.january@arm.com>
14562
14563 * eval.c (evaluate_subexp_standard): Call Fortran argument
14564 wrapping logic.
14565 * f-lang.c (struct value): A value which can be passed into a
14566 Fortran function call.
14567 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14568 where appropriate.
14569 (struct type): Value ready for a Fortran function call.
14570 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14571 is needed.
14572 * f-lang.h (fortran_argument_convert): Declaration.
14573 (fortran_preserve_arg_pointer): Declaration.
14574 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14575
14576 2019-03-05 Tom Tromey <tromey@adacore.com>
14577
14578 * python/py-prettyprint.c (print_string_repr): Remove #if.
14579 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14580
14581 2019-03-05 Tom Tromey <tromey@adacore.com>
14582
14583 * target.c (the_dummy_target): Move later. Change type to
14584 "dummy_target".
14585 (initialize_targets): Don't initialize the_dummy_target.
14586
14587 2019-03-05 Tom Tromey <tromey@adacore.com>
14588
14589 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14590 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14591
14592 2019-03-05 Tom Tromey <tromey@adacore.com>
14593
14594 * windows-nat.c (windows_nat_target::attach)
14595 (windows_nat_target::detach): Don't call gdb_flush.
14596 * valprint.c (generic_val_print, val_print, val_print_string):
14597 Don't call gdb_flush.
14598 * utils.c (defaulted_query): Don't call gdb_flush.
14599 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14600 * target.c (target_announce_detach): Don't call gdb_flush.
14601 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14602 * remote.c (extended_remote_target::attach): Don't call
14603 gdb_flush.
14604 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14605 * printcmd.c (do_examine): Don't call gdb_flush.
14606 (info_display_command): Don't call gdb_flush.
14607 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14608 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14609 * memattr.c (info_mem_command): Don't call gdb_flush.
14610 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14611 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14612 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14613 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14614 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14615 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14616 (gnu_nat_target::detach): Don't call gdb_flush.
14617 * f-valprint.c (f_val_print): Don't call gdb_flush.
14618 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14619 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14620 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14621 gdb_flush.
14622 * c-valprint.c (c_val_print): Don't call gdb_flush.
14623 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14624
14625 2019-03-05 Tom Tromey <tromey@adacore.com>
14626
14627 * varobj.c (update_dynamic_varobj_children): Update.
14628 (install_default_visualizer): Use reset, not release.
14629 * value.c (set_internalvar): Update.
14630 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14631 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14632 ATTRIBUTE_UNUSED_RESULT.
14633
14634 2019-03-05 Tom Tromey <tromey@adacore.com>
14635
14636 * remote.c (class scoped_remote_fd) <release>: Add
14637 ATTRIBUTE_UNUSED_RESULT.
14638
14639 2019-03-05 Tom Tromey <tromey@adacore.com>
14640
14641 * macroexp.c (struct macro_buffer) <release>: Add
14642 ATTRIBUTE_UNUSED_RESULT.
14643
14644 2019-03-05 Tom Tromey <tromey@adacore.com>
14645
14646 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14647 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14648 ATTRIBUTE_UNUSED_RESULT.
14649
14650 2019-03-05 Tom Tromey <tromey@adacore.com>
14651
14652 * common/scoped_fd.h (class scoped_fd) <release>: Add
14653 ATTRIBUTE_UNUSED_RESULT.
14654
14655 2019-03-05 Tom Tromey <tromey@adacore.com>
14656
14657 * parser-defs.h (struct parser_state) <release>: Add
14658 ATTRIBUTE_UNUSED_RESULT.
14659
14660 2019-03-05 Tom Tromey <tromey@adacore.com>
14661
14662 * utils.h (class gdb_argv) <release>: Add
14663 ATTRIBUTE_UNUSED_RESULT.
14664 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14665
14666 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14667
14668 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14669 for-loop range, to avoid compiler warnings.
14670
14671 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14672 avoid compiler warnings about unused variables.
14673
14674 * NEWS: Mention end of support for native debugging on MS-Windows
14675 before XP.
14676
14677 PR gdb/24292
14678 * common/netstuff.c:
14679 * gdbserver/gdbreplay.c
14680 * gdbserver/remote-utils.c:
14681 * ser-tcp.c:
14682 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14683 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14684 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14685 'getaddrinfo' and 'freeaddrinfo' were not available before
14686 Windows XP, and mingw.org's MinGW headers by default define
14687 _WIN32_WINNT to 0x500.
14688
14689 2019-03-01 Gary Benson <gbenson@redhat.com>
14690
14691 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14692
14693 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14694 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14695
14696 PR gdb/8527
14697 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14698 set_sigint_trap, clear_sigint_trap.
14699
14700 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14701
14702 * target.c (target_detach): Clear the regcache and the
14703 frame cache.
14704
14705 2019-02-27 Pedro Alves <palves@redhat.com>
14706
14707 * utils.c (set_screen_size): When we cap the height/width sizes,
14708 tweak the corresponding command variable to show "unlimited":
14709
14710 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14711 Pedro Alves <palves@redhat.com>
14712
14713 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14714 before calling rl_set_screen_size.
14715
14716 2019-02-27 Tom Tromey <tromey@adacore.com>
14717
14718 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14719 define.
14720 * python/py-value.c: Remove Python 2.4 workaround.
14721 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14722 workaround.
14723 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14724 Python 2.4 workaround.
14725 * python/python-internal.h: Remove Python 2.4 comment.
14726 (Py_ssize_t): Don't define.
14727 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14728 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14729 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14730 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14731 * python/python.c (do_start_initialization): Remove Python 2.4
14732 workaround.
14733 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14734 (print_children): Remove Python 2.4 workaround.
14735 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14736 workaround.
14737 (CHARBUFFERPROC_NAME): Remove.
14738 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14739 Python 2.4 workaround.
14740
14741 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14742
14743 * NEWS: Note minimum Python version.
14744
14745 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14746
14747 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14748 code from these functions. Remove corresponding ifdefs. Use
14749 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14750 Remove gotos and target of gotos.
14751 (infpy_search_memory): Likewise.
14752
14753 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14754
14755 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14756 (hppa_gdbarch_init): Don't register deleted functions with
14757 gdbarch.
14758
14759 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14760
14761 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14762 (h8300_unwind_sp): Delete.
14763 (h8300_dummy_id): Delete.
14764 (h8300_gdbarch_init): Don't register deleted functions with
14765 gdbarch.
14766
14767 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14768
14769 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14770 (ft32_unwind_pc): Delete.
14771 (ft32_unwind_sp): Delete.
14772 (ft32_gdbarch_init): Don't register deleted functions with
14773 gdbarch.
14774
14775 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14776
14777 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14778 (frv_unwind_pc): Delete.
14779 (frv_unwind_sp): Delete.
14780 (frv_gdbarch_init): Don't register deleted functions with
14781 gdbarch.
14782
14783 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14784
14785 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14786 (riscv_unwind_pc): Delete.
14787 (riscv_unwind_sp): Delete.
14788 (riscv_gdbarch_init): Don't register deleted functions with
14789 gdbarch.
14790
14791 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14792
14793 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14794 (csky_unwind_pc): Delete.
14795 (csky_unwind_sp): Delete.
14796 (csky_gdbarch_init): Don't register deleted functions with
14797 gdbarch.
14798
14799 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14800
14801 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14802 (cris_unwind_pc): Delete.
14803 (cris_unwind_sp): Delete.
14804 (cris_gdbarch_init): Don't register deleted functions with
14805 gdbarch.
14806
14807 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14808
14809 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14810 (bfin_unwind_pc): Delete.
14811 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14812
14813 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14814
14815 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14816 (arm_unwind_pc): Delete.
14817 (arm_unwind_sp): Delete.
14818 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14819
14820 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14821
14822 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14823 (arc_unwind_pc): Delete.
14824 (arc_unwind_sp): Delete.
14825 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14826
14827 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14828
14829 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14830 (alpha_unwind_pc): Delete.
14831 (alpha_gdbarch_init): Don't register deleted functions with
14832 gdbarch.
14833
14834 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14835
14836 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14837 (aarch64_unwind_pc): Delete.
14838 (aarch64_unwind_sp): Delete.
14839 (aarch64_gdbarch_init): Don't register deleted functions with
14840 gdbarch.
14841
14842 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14843
14844 * gdbtypes.c (type_align): Don't consider static members when
14845 computing structure alignment.
14846
14847 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14848
14849 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14850 return 0 for other types.
14851 * arch-utils.c (default_type_align): Always return 0.
14852 * gdbarch.h: Regenerate.
14853 * gdbarch.sh (type_align): Extend comment.
14854 * gdbtypes.c (type_align): Add additional comments, always call
14855 gdbarch_type_align before applying the default rules.
14856 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14857 generic code will then apply a suitable default.
14858 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14859 types, return 0 for other types.
14860
14861 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14862
14863 * NEWS: Create a new section for the next release branch.
14864 Rename the section of the current branch, now that it has
14865 been cut.
14866
14867 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14868
14869 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14870 * version.in: Bump version to 8.3.50.DATE-git.
14871
14872 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14873
14874 * aix-thread.c (ptid_cmp): Remove unused variable.
14875 (get_signaled_thread): Likewise.
14876 (store_regs_user_thread): Likewise.
14877 (store_regs_kernel_thread): Likewise.
14878 (fetch_regs_kernel_thread): Remove shadowed variable.
14879
14880 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14881
14882 * features/riscv/32bit-cpu.xml: Add register numbers.
14883 * features/riscv/32bit-fpu.c: Regenerate.
14884 * features/riscv/32bit-fpu.xml: Add register numbers.
14885 * features/riscv/64bit-cpu.xml: Add register numbers.
14886 * features/riscv/64bit-fpu.c: Regenerate.
14887 * features/riscv/64bit-fpu.xml: Add register numbers.
14888
14889 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14890
14891 * NEWS: Mention two argument form of gdb.Value constructor.
14892 * python/py-value.c (convert_buffer_and_type_to_value): New
14893 function.
14894 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14895 Add support for handling an optional second argument. Call
14896 convert_buffer_and_type_to_value as appropriate.
14897 * python/python-internal.h (Py_buffer_deleter): New struct.
14898 (Py_buffer_up): New typedef.
14899
14900 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14901
14902 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14903 instead of releasing ownership.
14904
14905 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14906
14907 * dwarf2read.c (open_and_init_dwp_file): Call
14908 elf_numsections instead of bfd_count_sections to initialize
14909 dwp_file->num_sections.
14910
14911 2019-02-25 Tom Tromey <tromey@adacore.com>
14912
14913 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14914
14915 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14916
14917 * gcore.in: Add '--readnever' option when invoking GDB.
14918
14919 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14920
14921 * MAINTAINERS: Update my email address.
14922
14923 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14924
14925 * build-id.c (build_id_to_debug_bfd_1): New function.
14926 (build_id_to_debug_bfd): Look for separate debug file in
14927 sysroot.
14928
14929 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14930
14931 * gdbarch.sh: Update the copyright year range that is placed into
14932 generated files.
14933
14934 2019-02-22 Keith Seitz <keiths@redhat.com>
14935
14936 PR symtab/23853
14937 * linespec.c (create_sals_line_offset): Search for the default
14938 symtab's filename instead of its fullname.
14939
14940 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14941
14942 * NEWS: Update style defaults.
14943
14944 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14945
14946 * main.c (captured_main_1): Disable styling in batch mode.
14947
14948 2019-02-20 Tom Tromey <tom@tromey.com>
14949
14950 * symtab.c (symtab_symbol_info): Fix typos.
14951
14952 2019-02-20 Tom Tromey <tromey@adacore.com>
14953
14954 * findcmd.c (_initialize_mem_search): Use upper case for
14955 metasyntactic variables.
14956
14957 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14958
14959 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14960 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14961
14962 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14963
14964 * top.h (source_file_name): Change to std::string.
14965 * top.c (source_file_name): Likewise.
14966 (command_line_input): Adjust.
14967 * cli/cli-script.c (script_from_file): Adjust.
14968
14969 2019-02-19 Tom Tromey <tromey@adacore.com>
14970
14971 * ravenscar-thread.c
14972 (ravenscar_thread_target::update_thread_list): Don't call
14973 ada_build_task_list.
14974 * ada-lang.h (ada_build_task_list): Don't declare.
14975 * ada-tasks.c (struct ada_tasks_inferior_data)
14976 <task_list_valid_p>: Now bool.
14977 (read_known_tasks, ada_task_list_changed)
14978 (ada_tasks_invalidate_inferior_data): Update.
14979 (read_known_tasks_array): Return bool.
14980 (read_known_tasks_list): Likewise.
14981 (read_known_tasks): Return void.
14982 (ada_build_task_list): Now static.
14983
14984 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14985
14986 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14987 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14988
14989 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14990
14991 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14992 variant for ada_tasks_pspace_data_handle and
14993 ada_tasks_inferior_data_handle.
14994 (ada_tasks_pspace_data_cleanup): New function.
14995 (ada_tasks_inferior_data_cleanup): New function.
14996
14997 2019-02-17 Tom Tromey <tom@tromey.com>
14998
14999 * macrotab.h (macro_source_fullname): Return a std::string.
15000 * macrotab.c (macro_include, check_for_redefinition)
15001 (macro_undef, macro_lookup_definition, foreach_macro)
15002 (foreach_macro_in_scope): Update.
15003 (macro_source_fullname): Return a std::string.
15004 * macrocmd.c (show_pp_source_pos): Update.
15005
15006 2019-02-17 Tom Tromey <tom@tromey.com>
15007
15008 * macrocmd.c (show_pp_source_pos): Style the file names.
15009
15010 2019-02-17 Tom Tromey <tom@tromey.com>
15011
15012 PR tui/24197:
15013 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
15014
15015 2019-02-17 Tom Tromey <tom@tromey.com>
15016
15017 * ada-lang.c (user_select_syms): Use filtered printing.
15018 * utils.c (wrap_style): New global.
15019 (desired_style): Remove.
15020 (emit_style_escape): Add stream parameter.
15021 (set_output_style, reset_terminal_style, prompt_for_continue):
15022 Update.
15023 (flush_wrap_buffer): Only flush gdb_stdout.
15024 (wrap_here): Set wrap_style.
15025 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15026 treat escape sequences as a character. Change when wrap buffer is
15027 flushed.
15028 (fputs_styled): Do not set the output style when the default is
15029 requested.
15030 * ui-style.h (struct ui_file_style) <is_default>: New method.
15031 * source.c (print_source_lines_base): Emit escape sequences in one
15032 piece.
15033
15034 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15035
15036 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15037 integers and enumeration types.
15038
15039 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15040
15041 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15042 instead of lookup_symbol_in_language
15043 (do_exact_match): New function.
15044 (ada_get_symbol_name_matcher): Return do_exact_match when
15045 doing a verbatim match.
15046
15047 2019-02-15 Tom Tromey <tromey@adacore.com>
15048
15049 * ravenscar-thread.c (ravenscar_thread_target::resume)
15050 (ravenscar_thread_target::wait): Special case wildcard requests.
15051
15052 2019-02-15 Tom Tromey <tromey@adacore.com>
15053
15054 * ravenscar-thread.c (base_ptid): Remove.
15055 (struct ravenscar_thread_target) <close>: New method.
15056 <m_base_ptid>: New member.
15057 <update_inferior_ptid, active_task, task_is_currently_active,
15058 runtime_initialized>: Declare methods.
15059 <ravenscar_thread_target>: Add constructor.
15060 (ravenscar_thread_target::task_is_currently_active)
15061 (ravenscar_thread_target::update_inferior_ptid)
15062 (ravenscar_runtime_initialized): Rename. Now methods.
15063 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15064 (ravenscar_thread_target::update_thread_list): Update.
15065 (ravenscar_thread_target::active_task): Now method.
15066 (ravenscar_thread_target::store_registers)
15067 (ravenscar_thread_target::prepare_to_store)
15068 (ravenscar_thread_target::prepare_to_store)
15069 (ravenscar_thread_target::mourn_inferior): Update.
15070 (ravenscar_inferior_created): Use "new" to create target.
15071 (ravenscar_thread_target::get_ada_task_ptid): Update.
15072 (_initialize_ravenscar): Don't initialize base_ptid.
15073 (ravenscar_ops): Remove global.
15074
15075 2019-02-15 Tom Tromey <tromey@adacore.com>
15076
15077 * target.h (push_target): Declare new overload.
15078 * target.c (push_target): New overload, taking an rvalue reference.
15079 * remote.c (remote_target::open_1): Use push_target overload.
15080 * corelow.c (core_target_open): Use push_target overload.
15081
15082 2019-02-15 Tom Tromey <tromey@adacore.com>
15083
15084 * ravenscar-thread.c (is_ravenscar_task)
15085 (ravenscar_task_is_currently_active): Return bool.
15086 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15087 (_initialize_ravenscar): Remove "(void)".
15088 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15089 Return bool.
15090
15091 2019-02-15 Tom Tromey <tromey@adacore.com>
15092
15093 * ravenscar-thread.c (ravenscar_runtime_initializer)
15094 (has_ravenscar_runtime, get_running_thread_id)
15095 (ravenscar_thread_target::resume): Fix indentation.
15096
15097 2019-02-15 Tom Tromey <tromey@adacore.com>
15098
15099 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15100 from ravenscar_arch_ops.
15101 (sparc_ravenscar_ops::fetch_registers)
15102 (sparc_ravenscar_ops::store_registers): Now methods.
15103 (sparc_ravenscar_prepare_to_store): Remove.
15104 (sparc_ravenscar_ops): Redefine.
15105 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15106 methods and destructor. Remove members.
15107 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15108 (ravenscar_thread_target::store_registers)
15109 (ravenscar_thread_target::prepare_to_store): Update.
15110 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15111 Remove.
15112 (struct ppc_ravenscar_powerpc_ops): Derive from
15113 ravenscar_arch_ops.
15114 (ppc_ravenscar_powerpc_ops::fetch_registers)
15115 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15116 (ppc_ravenscar_powerpc_ops): Redefine.
15117 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15118 (ppc_ravenscar_e500_ops::fetch_registers)
15119 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15120 (ppc_ravenscar_e500_ops): Redefine.
15121 * aarch64-ravenscar-thread.c
15122 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15123 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15124 (aarch64_ravenscar_fetch_registers)
15125 (aarch64_ravenscar_store_registers): Now methods.
15126 (aarch64_ravenscar_ops): Redefine.
15127
15128 2019-02-15 Tom Tromey <tromey@adacore.com>
15129
15130 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15131 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15132 (ravenscar_thread_target::stopped_by_watchpoint)
15133 (ravenscar_thread_target::stopped_data_address)
15134 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15135
15136 2019-02-15 Tom Tromey <tromey@adacore.com>
15137
15138 * ravenscar-thread.c: Fix some typos.
15139
15140 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15141 Tom Tromey <tromey@adacore.com>
15142
15143 * ada-lang.c (ada_exception_sal): Change addr_string to a
15144 std::string.
15145 (create_ada_exception_catchpoint): Update.
15146
15147 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15148 Tom Tromey <tromey@adacore.com>
15149
15150 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15151 (bp_location_ops): Remove.
15152 (base_breakpoint_allocate_location): Update.
15153 (free_bp_location): Update.
15154 * ada-lang.c (class ada_catchpoint_location)
15155 <ada_catchpoint_location>: Remove ops parameter.
15156 (ada_catchpoint_location_dtor): Remove.
15157 (ada_catchpoint_location_ops): Remove.
15158 (allocate_location_exception): Update.
15159 * breakpoint.h (struct bp_location_ops): Remove.
15160 (class bp_location) <bp_location>: Remove bp_location_ops
15161 parameter.
15162 <~bp_location>: Add destructor.
15163 <ops>: Remove.
15164
15165 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15166 Pedro Alves <palves@redhat.com>
15167
15168 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15169 'PATH_MAX'.
15170
15171 2019-02-14 David Michael <fedora.dm0@gmail.com>
15172 Samuel Thibault <samuel.thibault@gnu.org>
15173 Thomas Schwinge <thomas@codesourcery.com>
15174
15175 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15176 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15177
15178 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15179
15180 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15181 (check_empty): Use "const char *".
15182
15183 * gnu-nat.c (gnu_nat_target::detach): Instead of
15184 'detach_inferior (pid)' call
15185 'detach_inferior (find_inferior_pid (pid))'.
15186
15187 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15188 'nat/fork-inferior.o'.
15189 * gnu-nat.c: #include "nat/fork-inferior.h".
15190
15191 * gnu-nat.c (gnu_nat_target::detach): Instead of
15192 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15193 * gnu-nat.h: #include "inf-child.h".
15194 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15195 'i386_gnu_nat_target::fetch_registers'.
15196 (gnu_store_registers): Rename/move to
15197 'i386_gnu_nat_target::store_registers'.
15198
15199 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15200 * gnu-nat.h (mach_thread_info): New function.
15201 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15202
15203 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15204
15205 2019-02-14 Frederic Konrad <konrad@adacore.com>
15206
15207 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15208
15209 2019-02-14 Joel Brobecker <brobecker@adacore.com>
15210
15211 * windows-nat.c (windows_add_thread): Add new parameter
15212 "main_thread_p" with default value set to false. Update
15213 function documentation as well as all callers.
15214 (windows_delete_thread): Likewise.
15215 (fake_create_process): Update call to windows_add_thread.
15216 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15217 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15218 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15219 call to windows_delete_thread.
15220
15221 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15222
15223 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15224
15225 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15226
15227 * symfile.c (find_separate_debug_file): Use canonical path of
15228 sysroot with child_path instead of gdb_sysroot if it is valid.
15229
15230 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15231
15232 * symfile.c (find_separate_debug_file): Use child_path to
15233 determine if an object file is under a sysroot.
15234
15235 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15236
15237 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15238 unittests/child-path-selftests.c.
15239 * common/pathstuff.c (child_path): New function.
15240 * common/pathstuff.h (child_path): New prototype.
15241 * unittests/child-path-selftests.c: New file.
15242
15243 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15244
15245 * symfile.c (find_separate_debug_file): Look for separate debug
15246 files in debug directories under the sysroot.
15247
15248 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15249
15250 * symtab.h (struct minimal_symbol data_p): New const method.
15251 (struct minimal_symbol text_p): Likewise.
15252 * symtab.c (output_source_filename): Use file name style
15253 to print file name.
15254 (print_symbol_info): Likewise.
15255 (print_msymbol_info): Use address style to print addresses.
15256 Use function name style to print executable text symbols.
15257 (expand_symtab_containing_pc): Use data_p.
15258 (find_pc_sect_compunit_symtab): Likewise.
15259
15260 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15261
15262 * breakpoint.c (describe_other_breakpoints): Use address style
15263 to print addresses.
15264 (say_where): Likewise.
15265
15266 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15267
15268 * ada-typeprint.c (print_func_type): Print function name
15269 style to print function name.
15270 * c-typeprint.c (c_print_type_1): Likewise.
15271
15272 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15273
15274 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15275 for execve.
15276
15277 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15278
15279 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15280 type_stack.
15281
15282 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15283
15284 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15285 TYPE_CODE_REF types.
15286
15287 2019-02-08 Jim Wilson <jimw@sifive.com>
15288
15289 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15290 (riscv_linux_fregset): New.
15291 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15292
15293 2019-02-07 Tom Tromey <tom@tromey.com>
15294
15295 * thread.c (thread_cancel_execution_command): Update.
15296 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15297 methods.
15298 (struct thread_fsm_ops): Remove.
15299 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15300 (thread_fsm_should_stop, thread_fsm_return_value)
15301 (thread_fsm_set_finished, thread_fsm_finished_p)
15302 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15303 Don't declare.
15304 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15305 * infrun.c (clear_proceed_status_thread)
15306 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15307 (print_stop_event): Update.
15308 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15309 Add constructor.
15310 (step_command_fsm_ops): Remove.
15311 (new_step_command_fsm): Remove.
15312 (step_1): Update.
15313 (step_command_fsm::should_stop): Rename from
15314 step_command_fsm_should_stop.
15315 (step_command_fsm::clean_up): Rename from
15316 step_command_fsm_clean_up.
15317 (step_command_fsm::do_async_reply_reason): Rename from
15318 step_command_fsm_async_reply_reason.
15319 (struct until_next_fsm): Inherit from thread_fsm. Add
15320 constructor.
15321 (until_next_fsm_ops): Remove.
15322 (new_until_next_fsm): Remove.
15323 (until_next_fsm::should_stop): Rename from
15324 until_next_fsm_should_stop.
15325 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15326 (until_next_fsm::do_async_reply_reason): Rename from
15327 until_next_fsm_async_reply_reason.
15328 (struct finish_command_fsm): Inherit from thread_fsm. Add
15329 constructor. Change type of breakpoint.
15330 (finish_command_fsm_ops): Remove.
15331 (new_finish_command_fsm): Remove.
15332 (finish_command_fsm::should_stop): Rename from
15333 finish_command_fsm_should_stop.
15334 (finish_command_fsm::clean_up): Rename from
15335 finish_command_fsm_clean_up.
15336 (finish_command_fsm::return_value): Rename from
15337 finish_command_fsm_return_value.
15338 (finish_command_fsm::do_async_reply_reason): Rename from
15339 finish_command_fsm_async_reply_reason.
15340 (finish_command): Update.
15341 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15342 Add constructor.
15343 (call_thread_fsm_ops): Remove.
15344 (call_thread_fsm::call_thread_fsm): Rename from
15345 new_call_thread_fsm.
15346 (call_thread_fsm::should_stop): Rename from
15347 call_thread_fsm_should_stop.
15348 (call_thread_fsm::should_notify_stop): Rename from
15349 call_thread_fsm_should_notify_stop.
15350 (run_inferior_call, call_function_by_hand_dummy): Update.
15351 * cli/cli-interp.c (should_print_stop_to_console): Update.
15352 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15353 Add constructor. Change type of location_breakpoint,
15354 caller_breakpoint.
15355 (until_break_fsm_ops): Remove.
15356 (new_until_break_fsm): Remove.
15357 (until_break_fsm::should_stop): Rename from
15358 until_break_fsm_should_stop.
15359 (until_break_fsm::clean_up): Rename from
15360 until_break_fsm_clean_up.
15361 (until_break_fsm::do_async_reply_reason): Rename from
15362 until_break_fsm_async_reply_reason.
15363 (until_break_command): Update.
15364 * thread-fsm.c: Remove.
15365 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15366
15367 2019-02-07 Tom Tromey <tom@tromey.com>
15368
15369 * yy-remap.h: Add include guard.
15370 * xtensa-tdep.h: Add include guard.
15371 * xcoffread.h: Rename include guard.
15372 * varobj-iter.h: Add include guard.
15373 * tui/tui.h: Rename include guard.
15374 * tui/tui-winsource.h: Rename include guard.
15375 * tui/tui-wingeneral.h: Rename include guard.
15376 * tui/tui-windata.h: Rename include guard.
15377 * tui/tui-win.h: Rename include guard.
15378 * tui/tui-stack.h: Rename include guard.
15379 * tui/tui-source.h: Rename include guard.
15380 * tui/tui-regs.h: Rename include guard.
15381 * tui/tui-out.h: Rename include guard.
15382 * tui/tui-layout.h: Rename include guard.
15383 * tui/tui-io.h: Rename include guard.
15384 * tui/tui-hooks.h: Rename include guard.
15385 * tui/tui-file.h: Rename include guard.
15386 * tui/tui-disasm.h: Rename include guard.
15387 * tui/tui-data.h: Rename include guard.
15388 * tui/tui-command.h: Rename include guard.
15389 * tic6x-tdep.h: Add include guard.
15390 * target/waitstatus.h: Rename include guard.
15391 * target/wait.h: Rename include guard.
15392 * target/target.h: Rename include guard.
15393 * target/resume.h: Rename include guard.
15394 * target-float.h: Rename include guard.
15395 * stabsread.h: Add include guard.
15396 * rs6000-tdep.h: Add include guard.
15397 * riscv-fbsd-tdep.h: Add include guard.
15398 * regformats/regdef.h: Rename include guard.
15399 * record.h: Rename include guard.
15400 * python/python.h: Rename include guard.
15401 * python/python-internal.h: Rename include guard.
15402 * python/py-stopevent.h: Rename include guard.
15403 * python/py-ref.h: Rename include guard.
15404 * python/py-record.h: Rename include guard.
15405 * python/py-record-full.h: Rename include guard.
15406 * python/py-record-btrace.h: Rename include guard.
15407 * python/py-instruction.h: Rename include guard.
15408 * python/py-events.h: Rename include guard.
15409 * python/py-event.h: Rename include guard.
15410 * procfs.h: Add include guard.
15411 * proc-utils.h: Add include guard.
15412 * p-lang.h: Add include guard.
15413 * or1k-tdep.h: Rename include guard.
15414 * observable.h: Rename include guard.
15415 * nto-tdep.h: Rename include guard.
15416 * nat/x86-linux.h: Rename include guard.
15417 * nat/x86-linux-dregs.h: Rename include guard.
15418 * nat/x86-gcc-cpuid.h: Add include guard.
15419 * nat/x86-dregs.h: Rename include guard.
15420 * nat/x86-cpuid.h: Rename include guard.
15421 * nat/ppc-linux.h: Rename include guard.
15422 * nat/mips-linux-watch.h: Rename include guard.
15423 * nat/linux-waitpid.h: Rename include guard.
15424 * nat/linux-ptrace.h: Rename include guard.
15425 * nat/linux-procfs.h: Rename include guard.
15426 * nat/linux-osdata.h: Rename include guard.
15427 * nat/linux-nat.h: Rename include guard.
15428 * nat/linux-namespaces.h: Rename include guard.
15429 * nat/linux-btrace.h: Rename include guard.
15430 * nat/glibc_thread_db.h: Rename include guard.
15431 * nat/gdb_thread_db.h: Rename include guard.
15432 * nat/gdb_ptrace.h: Rename include guard.
15433 * nat/fork-inferior.h: Rename include guard.
15434 * nat/amd64-linux-siginfo.h: Rename include guard.
15435 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15436 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15437 * nat/aarch64-linux.h: Rename include guard.
15438 * nat/aarch64-linux-hw-point.h: Rename include guard.
15439 * mn10300-tdep.h: Add include guard.
15440 * mips-linux-tdep.h: Add include guard.
15441 * mi/mi-parse.h: Rename include guard.
15442 * mi/mi-out.h: Rename include guard.
15443 * mi/mi-main.h: Rename include guard.
15444 * mi/mi-interp.h: Rename include guard.
15445 * mi/mi-getopt.h: Rename include guard.
15446 * mi/mi-console.h: Rename include guard.
15447 * mi/mi-common.h: Rename include guard.
15448 * mi/mi-cmds.h: Rename include guard.
15449 * mi/mi-cmd-break.h: Rename include guard.
15450 * m2-lang.h: Add include guard.
15451 * location.h: Rename include guard.
15452 * linux-record.h: Rename include guard.
15453 * linux-nat.h: Add include guard.
15454 * linux-fork.h: Add include guard.
15455 * i386-darwin-tdep.h: Rename include guard.
15456 * hppa-linux-offsets.h: Add include guard.
15457 * guile/guile.h: Rename include guard.
15458 * guile/guile-internal.h: Rename include guard.
15459 * gnu-nat.h: Rename include guard.
15460 * gdb-stabs.h: Rename include guard.
15461 * frv-tdep.h: Add include guard.
15462 * f-lang.h: Add include guard.
15463 * event-loop.h: Add include guard.
15464 * darwin-nat.h: Rename include guard.
15465 * cp-abi.h: Rename include guard.
15466 * config/sparc/nm-sol2.h: Rename include guard.
15467 * config/nm-nto.h: Rename include guard.
15468 * config/nm-linux.h: Add include guard.
15469 * config/i386/nm-i386gnu.h: Rename include guard.
15470 * config/djgpp/nl_types.h: Rename include guard.
15471 * config/djgpp/langinfo.h: Rename include guard.
15472 * compile/gcc-cp-plugin.h: Add include guard.
15473 * compile/gcc-c-plugin.h: Add include guard.
15474 * compile/compile.h: Rename include guard.
15475 * compile/compile-object-run.h: Rename include guard.
15476 * compile/compile-object-load.h: Rename include guard.
15477 * compile/compile-internal.h: Rename include guard.
15478 * compile/compile-cplus.h: Rename include guard.
15479 * compile/compile-c.h: Rename include guard.
15480 * common/xml-utils.h: Rename include guard.
15481 * common/x86-xstate.h: Rename include guard.
15482 * common/version.h: Rename include guard.
15483 * common/vec.h: Rename include guard.
15484 * common/tdesc.h: Rename include guard.
15485 * common/selftest.h: Rename include guard.
15486 * common/scoped_restore.h: Rename include guard.
15487 * common/scoped_mmap.h: Rename include guard.
15488 * common/scoped_fd.h: Rename include guard.
15489 * common/safe-iterator.h: Rename include guard.
15490 * common/run-time-clock.h: Rename include guard.
15491 * common/refcounted-object.h: Rename include guard.
15492 * common/queue.h: Rename include guard.
15493 * common/ptid.h: Rename include guard.
15494 * common/print-utils.h: Rename include guard.
15495 * common/preprocessor.h: Rename include guard.
15496 * common/pathstuff.h: Rename include guard.
15497 * common/observable.h: Rename include guard.
15498 * common/netstuff.h: Rename include guard.
15499 * common/job-control.h: Rename include guard.
15500 * common/host-defs.h: Rename include guard.
15501 * common/gdb_wait.h: Rename include guard.
15502 * common/gdb_vecs.h: Rename include guard.
15503 * common/gdb_unlinker.h: Rename include guard.
15504 * common/gdb_unique_ptr.h: Rename include guard.
15505 * common/gdb_tilde_expand.h: Rename include guard.
15506 * common/gdb_sys_time.h: Rename include guard.
15507 * common/gdb_string_view.h: Rename include guard.
15508 * common/gdb_splay_tree.h: Rename include guard.
15509 * common/gdb_setjmp.h: Rename include guard.
15510 * common/gdb_ref_ptr.h: Rename include guard.
15511 * common/gdb_optional.h: Rename include guard.
15512 * common/gdb_locale.h: Rename include guard.
15513 * common/gdb_assert.h: Rename include guard.
15514 * common/filtered-iterator.h: Rename include guard.
15515 * common/filestuff.h: Rename include guard.
15516 * common/fileio.h: Rename include guard.
15517 * common/environ.h: Rename include guard.
15518 * common/common-utils.h: Rename include guard.
15519 * common/common-types.h: Rename include guard.
15520 * common/common-regcache.h: Rename include guard.
15521 * common/common-inferior.h: Rename include guard.
15522 * common/common-gdbthread.h: Rename include guard.
15523 * common/common-exceptions.h: Rename include guard.
15524 * common/common-defs.h: Rename include guard.
15525 * common/common-debug.h: Rename include guard.
15526 * common/cleanups.h: Rename include guard.
15527 * common/buffer.h: Rename include guard.
15528 * common/btrace-common.h: Rename include guard.
15529 * common/break-common.h: Rename include guard.
15530 * cli/cli-utils.h: Rename include guard.
15531 * cli/cli-style.h: Rename include guard.
15532 * cli/cli-setshow.h: Rename include guard.
15533 * cli/cli-script.h: Rename include guard.
15534 * cli/cli-interp.h: Rename include guard.
15535 * cli/cli-decode.h: Rename include guard.
15536 * cli/cli-cmds.h: Rename include guard.
15537 * charset-list.h: Add include guard.
15538 * buildsym-legacy.h: Rename include guard.
15539 * bfin-tdep.h: Add include guard.
15540 * ax.h: Rename include guard.
15541 * arm-linux-tdep.h: Add include guard.
15542 * arm-fbsd-tdep.h: Add include guard.
15543 * arch/xtensa.h: Rename include guard.
15544 * arch/tic6x.h: Add include guard.
15545 * arch/i386.h: Add include guard.
15546 * arch/arm.h: Rename include guard.
15547 * arch/arm-linux.h: Rename include guard.
15548 * arch/arm-get-next-pcs.h: Rename include guard.
15549 * arch/amd64.h: Add include guard.
15550 * arch/aarch64-insn.h: Rename include guard.
15551 * arch-utils.h: Rename include guard.
15552 * annotate.h: Add include guard.
15553 * amd64-darwin-tdep.h: Rename include guard.
15554 * aarch64-linux-tdep.h: Add include guard.
15555 * aarch64-fbsd-tdep.h: Add include guard.
15556 * aarch32-linux-nat.h: Add include guard.
15557
15558 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15559
15560 * macrotab.c (macro_define_internal): New function that
15561 factorizes macro_define_object_internal and macro_define_function
15562 code.
15563 (macro_define_object_internal): Use macro_define_internal.
15564 (macro_define_function): Likewise.
15565
15566 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15567
15568 * macrocmd.c (extract_identifier): Return
15569 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15570 callers.
15571
15572 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15573
15574 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15575
15576 2019-02-05 Tom Tromey <tom@tromey.com>
15577
15578 * target.c (target_stack::unpush): Move assertion earlier.
15579
15580 2019-01-30 Tom Tromey <tom@tromey.com>
15581
15582 PR python/23615:
15583 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15584 (gdbpy_parse_and_eval): Likewise.
15585 * python/python-internal.h (gdbpy_allow_threads): New class.
15586
15587 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15588
15589 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15590 (aarch64_fbsd_fpregmap): Move earlier.
15591 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15592 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15593 instead of individual calls to trad_frame_set_reg_addr.
15594 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15595 earlier.
15596 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15597 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15598 instead of individual calls to trad_frame_set_reg_addr.
15599
15600 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15601
15602 * CONTRIBUTE: Replace contribution list with wiki link.
15603
15604 2019-01-25 Tom Tromey <tom@tromey.com>
15605
15606 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15607
15608 2019-01-25 Tom Tromey <tom@tromey.com>
15609
15610 * xtensa-linux-nat.c: Fix common/ includes.
15611 * xml-support.h: Fix common/ includes.
15612 * xml-support.c: Fix common/ includes.
15613 * x86-linux-nat.c: Fix common/ includes.
15614 * windows-nat.c: Fix common/ includes.
15615 * varobj.h: Fix common/ includes.
15616 * varobj.c: Fix common/ includes.
15617 * value.c: Fix common/ includes.
15618 * valops.c: Fix common/ includes.
15619 * utils.c: Fix common/ includes.
15620 * unittests/xml-utils-selftests.c: Fix common/ includes.
15621 * unittests/utils-selftests.c: Fix common/ includes.
15622 * unittests/unpack-selftests.c: Fix common/ includes.
15623 * unittests/tracepoint-selftests.c: Fix common/ includes.
15624 * unittests/style-selftests.c: Fix common/ includes.
15625 * unittests/string_view-selftests.c: Fix common/ includes.
15626 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15627 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15628 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15629 * unittests/rsp-low-selftests.c: Fix common/ includes.
15630 * unittests/parse-connection-spec-selftests.c: Fix common/
15631 includes.
15632 * unittests/optional-selftests.c: Fix common/ includes.
15633 * unittests/offset-type-selftests.c: Fix common/ includes.
15634 * unittests/observable-selftests.c: Fix common/ includes.
15635 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15636 * unittests/memrange-selftests.c: Fix common/ includes.
15637 * unittests/memory-map-selftests.c: Fix common/ includes.
15638 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15639 * unittests/function-view-selftests.c: Fix common/ includes.
15640 * unittests/environ-selftests.c: Fix common/ includes.
15641 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15642 * unittests/common-utils-selftests.c: Fix common/ includes.
15643 * unittests/cli-utils-selftests.c: Fix common/ includes.
15644 * unittests/array-view-selftests.c: Fix common/ includes.
15645 * ui-file.c: Fix common/ includes.
15646 * tui/tui-io.c: Fix common/ includes.
15647 * tracepoint.h: Fix common/ includes.
15648 * tracepoint.c: Fix common/ includes.
15649 * tracefile-tfile.c: Fix common/ includes.
15650 * top.h: Fix common/ includes.
15651 * top.c: Fix common/ includes.
15652 * thread.c: Fix common/ includes.
15653 * target/waitstatus.h: Fix common/ includes.
15654 * target/waitstatus.c: Fix common/ includes.
15655 * target.h: Fix common/ includes.
15656 * target.c: Fix common/ includes.
15657 * target-memory.c: Fix common/ includes.
15658 * target-descriptions.c: Fix common/ includes.
15659 * symtab.h: Fix common/ includes.
15660 * symfile.c: Fix common/ includes.
15661 * stap-probe.c: Fix common/ includes.
15662 * spu-linux-nat.c: Fix common/ includes.
15663 * sparc-nat.c: Fix common/ includes.
15664 * source.c: Fix common/ includes.
15665 * solib.c: Fix common/ includes.
15666 * solib-target.c: Fix common/ includes.
15667 * ser-unix.c: Fix common/ includes.
15668 * ser-tcp.c: Fix common/ includes.
15669 * ser-pipe.c: Fix common/ includes.
15670 * ser-base.c: Fix common/ includes.
15671 * selftest-arch.c: Fix common/ includes.
15672 * s12z-tdep.c: Fix common/ includes.
15673 * rust-exp.y: Fix common/ includes.
15674 * rs6000-aix-tdep.c: Fix common/ includes.
15675 * riscv-tdep.c: Fix common/ includes.
15676 * remote.c: Fix common/ includes.
15677 * remote-notif.h: Fix common/ includes.
15678 * remote-fileio.h: Fix common/ includes.
15679 * remote-fileio.c: Fix common/ includes.
15680 * regcache.h: Fix common/ includes.
15681 * regcache.c: Fix common/ includes.
15682 * record-btrace.c: Fix common/ includes.
15683 * python/python.c: Fix common/ includes.
15684 * python/py-type.c: Fix common/ includes.
15685 * python/py-inferior.c: Fix common/ includes.
15686 * progspace.h: Fix common/ includes.
15687 * producer.c: Fix common/ includes.
15688 * procfs.c: Fix common/ includes.
15689 * proc-api.c: Fix common/ includes.
15690 * printcmd.c: Fix common/ includes.
15691 * ppc-linux-nat.c: Fix common/ includes.
15692 * parser-defs.h: Fix common/ includes.
15693 * osdata.c: Fix common/ includes.
15694 * obsd-nat.c: Fix common/ includes.
15695 * nat/x86-linux.c: Fix common/ includes.
15696 * nat/x86-linux-dregs.c: Fix common/ includes.
15697 * nat/x86-dregs.h: Fix common/ includes.
15698 * nat/x86-dregs.c: Fix common/ includes.
15699 * nat/ppc-linux.c: Fix common/ includes.
15700 * nat/mips-linux-watch.h: Fix common/ includes.
15701 * nat/mips-linux-watch.c: Fix common/ includes.
15702 * nat/linux-waitpid.c: Fix common/ includes.
15703 * nat/linux-ptrace.h: Fix common/ includes.
15704 * nat/linux-ptrace.c: Fix common/ includes.
15705 * nat/linux-procfs.c: Fix common/ includes.
15706 * nat/linux-personality.c: Fix common/ includes.
15707 * nat/linux-osdata.c: Fix common/ includes.
15708 * nat/linux-namespaces.c: Fix common/ includes.
15709 * nat/linux-btrace.h: Fix common/ includes.
15710 * nat/linux-btrace.c: Fix common/ includes.
15711 * nat/fork-inferior.c: Fix common/ includes.
15712 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15713 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15714 * nat/aarch64-linux.c: Fix common/ includes.
15715 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15716 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15717 * namespace.h: Fix common/ includes.
15718 * mips-linux-tdep.c: Fix common/ includes.
15719 * minsyms.c: Fix common/ includes.
15720 * mi/mi-parse.h: Fix common/ includes.
15721 * mi/mi-main.c: Fix common/ includes.
15722 * mi/mi-cmd-env.c: Fix common/ includes.
15723 * memrange.h: Fix common/ includes.
15724 * memattr.c: Fix common/ includes.
15725 * maint.h: Fix common/ includes.
15726 * maint.c: Fix common/ includes.
15727 * main.c: Fix common/ includes.
15728 * machoread.c: Fix common/ includes.
15729 * location.c: Fix common/ includes.
15730 * linux-thread-db.c: Fix common/ includes.
15731 * linux-nat.c: Fix common/ includes.
15732 * linux-fork.c: Fix common/ includes.
15733 * inline-frame.c: Fix common/ includes.
15734 * infrun.c: Fix common/ includes.
15735 * inflow.c: Fix common/ includes.
15736 * inferior.h: Fix common/ includes.
15737 * inferior.c: Fix common/ includes.
15738 * infcmd.c: Fix common/ includes.
15739 * inf-ptrace.c: Fix common/ includes.
15740 * inf-child.c: Fix common/ includes.
15741 * ia64-linux-nat.c: Fix common/ includes.
15742 * i387-tdep.c: Fix common/ includes.
15743 * i386-tdep.c: Fix common/ includes.
15744 * i386-linux-tdep.c: Fix common/ includes.
15745 * i386-linux-nat.c: Fix common/ includes.
15746 * i386-go32-tdep.c: Fix common/ includes.
15747 * i386-fbsd-tdep.c: Fix common/ includes.
15748 * i386-fbsd-nat.c: Fix common/ includes.
15749 * guile/scm-type.c: Fix common/ includes.
15750 * guile/guile.c: Fix common/ includes.
15751 * go32-nat.c: Fix common/ includes.
15752 * gnu-nat.c: Fix common/ includes.
15753 * gdbthread.h: Fix common/ includes.
15754 * gdbarch-selftests.c: Fix common/ includes.
15755 * gdb_usleep.c: Fix common/ includes.
15756 * gdb_select.h: Fix common/ includes.
15757 * gdb_bfd.c: Fix common/ includes.
15758 * gcore.c: Fix common/ includes.
15759 * fork-child.c: Fix common/ includes.
15760 * findvar.c: Fix common/ includes.
15761 * fbsd-nat.c: Fix common/ includes.
15762 * event-top.c: Fix common/ includes.
15763 * event-loop.c: Fix common/ includes.
15764 * dwarf2read.c: Fix common/ includes.
15765 * dwarf2loc.c: Fix common/ includes.
15766 * dwarf2-frame.c: Fix common/ includes.
15767 * dwarf-index-cache.c: Fix common/ includes.
15768 * dtrace-probe.c: Fix common/ includes.
15769 * disasm-selftests.c: Fix common/ includes.
15770 * defs.h: Fix common/ includes.
15771 * csky-tdep.c: Fix common/ includes.
15772 * cp-valprint.c: Fix common/ includes.
15773 * cp-support.h: Fix common/ includes.
15774 * cp-support.c: Fix common/ includes.
15775 * corelow.c: Fix common/ includes.
15776 * completer.h: Fix common/ includes.
15777 * completer.c: Fix common/ includes.
15778 * compile/compile.c: Fix common/ includes.
15779 * compile/compile-loc2c.c: Fix common/ includes.
15780 * compile/compile-cplus-types.c: Fix common/ includes.
15781 * compile/compile-cplus-symbols.c: Fix common/ includes.
15782 * command.h: Fix common/ includes.
15783 * cli/cli-dump.c: Fix common/ includes.
15784 * cli/cli-cmds.c: Fix common/ includes.
15785 * charset.c: Fix common/ includes.
15786 * build-id.c: Fix common/ includes.
15787 * btrace.h: Fix common/ includes.
15788 * btrace.c: Fix common/ includes.
15789 * breakpoint.h: Fix common/ includes.
15790 * breakpoint.c: Fix common/ includes.
15791 * ax.h:
15792 (enum agent_op): Fix common/ includes.
15793 * ax-general.c (struct aop_map): Fix common/ includes.
15794 * ax-gdb.c: Fix common/ includes.
15795 * auxv.c: Fix common/ includes.
15796 * auto-load.c: Fix common/ includes.
15797 * arm-tdep.c: Fix common/ includes.
15798 * arch/riscv.c: Fix common/ includes.
15799 * arch/ppc-linux-common.c: Fix common/ includes.
15800 * arch/i386.c: Fix common/ includes.
15801 * arch/arm.c: Fix common/ includes.
15802 * arch/arm-linux.c: Fix common/ includes.
15803 * arch/arm-get-next-pcs.c: Fix common/ includes.
15804 * arch/amd64.c: Fix common/ includes.
15805 * arch/aarch64.c: Fix common/ includes.
15806 * arch/aarch64-insn.c: Fix common/ includes.
15807 * arch-utils.c: Fix common/ includes.
15808 * amd64-windows-tdep.c: Fix common/ includes.
15809 * amd64-tdep.c: Fix common/ includes.
15810 * amd64-sol2-tdep.c: Fix common/ includes.
15811 * amd64-obsd-tdep.c: Fix common/ includes.
15812 * amd64-nbsd-tdep.c: Fix common/ includes.
15813 * amd64-linux-tdep.c: Fix common/ includes.
15814 * amd64-linux-nat.c: Fix common/ includes.
15815 * amd64-fbsd-tdep.c: Fix common/ includes.
15816 * amd64-fbsd-nat.c: Fix common/ includes.
15817 * amd64-dicos-tdep.c: Fix common/ includes.
15818 * amd64-darwin-tdep.c: Fix common/ includes.
15819 * agent.c: Fix common/ includes.
15820 * ada-lang.h: Fix common/ includes.
15821 * ada-lang.c: Fix common/ includes.
15822 * aarch64-tdep.c: Fix common/ includes.
15823
15824 2019-01-25 Tom Tromey <tom@tromey.com>
15825
15826 * common/create-version.sh: Use common/version.h.
15827
15828 2019-01-24 Pedro Alves <palves@redhat.com>
15829
15830 * infrun.c (signal_stop, signal_print, signal_program)
15831 (signal_catch, signal_pass): Now arrays instead of pointers.
15832 (update_signals_program_target, do_target_resume)
15833 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15834 * linux-nat.c (linux_nat_target::pass_signals)
15835 (linux_nat_target::create_inferior, linux_nat_target::attach):
15836 Adjust.
15837 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15838 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15839 * procfs.c (procfs_target::pass_signals): Adjust.
15840 * record-full.c (record_full_target::resume): Adjust.
15841 * remote.c (remote_target::pass_signals)
15842 (remote_target::program_signals): Adjust.
15843 * target-debug.h (target_debug_print_signals): Now takes a
15844 gdb::array_view as parameter. Adjust.
15845 * target.h (target_ops) <pass_signals, program_signals>: Replace
15846 pointer and length parameters with gdb::array_view.
15847 (target_pass_signals, target_program_signals): Likewise.
15848 * target-delegates.c: Regenerate.
15849
15850 2019-01-24 Pedro Alves <palves@redhat.com>
15851
15852 * common/forward-scope-exit.h
15853 (forward_scope_exit::forward_scope_exit): Pass arguments to
15854 m_bind_function directly, instead of creating a std::bind and
15855 copying that.
15856
15857 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15858
15859 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15860 for static members.
15861 (pass_in_v_vfp_candidate): Likewise.
15862
15863 2019-01-23 Tom Tromey <tom@tromey.com>
15864 Pedro Alves <palves@redhat.com>
15865
15866 * regcache.c (class regcache_invalidator): Remove.
15867 (regcache::raw_write): Use make_scope_exit.
15868
15869 2019-01-23 Tom Tromey <tom@tromey.com>
15870
15871 * ui-out.h (class ui_out_emit_type): Update comment.
15872
15873 2019-01-23 Tom Tromey <tom@tromey.com>
15874
15875 * infrun.c (fetch_inferior_event): Update comment.
15876
15877 2019-01-23 Tom Tromey <tom@tromey.com>
15878 Pedro Alves <palves@redhat.com>
15879
15880 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15881 parameter.
15882 (fetch_inferior_event): Use SCOPE_EXIT.
15883
15884
15885 2019-01-23 Tom Tromey <tom@tromey.com>
15886 Pedro Alves <palves@redhat.com>
15887
15888 * infrun.c (disable_thread_events): Delete.
15889 (stop_all_threads): Use SCOPE_EXIT.
15890
15891 2019-01-23 Tom Tromey <tom@tromey.com>
15892 Pedro Alves <palves@redhat.com>
15893
15894 * symfile.c: Include forward-scope-exit.h.
15895 (clear_symtab_users_cleanup): Replace forward declaration with
15896 a FORWARD_SCOPE_EXIT.
15897 (syms_from_objfile_1): Use the forward_scope_exit and
15898 gdb::optional instead of cleanup_function.
15899 (reread_symbols): Use the forward_scope_exit instead of
15900 cleanup_function.
15901 (clear_symtab_users_cleanup): Remove function.
15902
15903 2019-01-23 Tom Tromey <tom@tromey.com>
15904 Pedro Alves <palves@redhat.com>
15905
15906 * linux-nat.c: Include scope-exit.h.
15907 (cleanup_target_stop): Remove.
15908 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15909 SCOPE_EXIT.
15910
15911 2019-01-23 Tom Tromey <tom@tromey.com>
15912 Pedro Alves <palves@redhat.com>
15913
15914 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15915 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15916
15917 2019-01-23 Tom Tromey <tom@tromey.com>
15918 Andrew Burgess <andrew.burgess@embecosm.com>
15919 Pedro Alves <palves@redhat.com>
15920
15921 * infrun.c (fetch_inferior_event): Use scope_exit.
15922 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15923 * top.c (execute_command): Use scope_exit.
15924 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15925 * utils.c (do_bpstat_clear_actions_cleanup)
15926 (make_bpstat_clear_actions_cleanup): Remove.
15927
15928 2019-01-23 Tom Tromey <tom@tromey.com>
15929 Pedro Alves <palves@redhat.com>
15930
15931 * infrun.c: Include "common/scope-exit.h"
15932 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15933 (wait_for_inferior): Use SCOPE_EXIT.
15934 (fetch_inferior_event): Use scope_exit.
15935
15936 2019-01-23 Tom Tromey <tom@tromey.com>
15937 Pedro Alves <palves@redhat.com>
15938
15939 * breakpoint.c (create_breakpoint): Remove cleanup.
15940
15941 2019-01-23 Tom Tromey <tom@tromey.com>
15942 Andrew Burgess <andrew.burgess@embecosm.com>
15943 Pedro Alves <palves@redhat.com>
15944
15945 2019-01-23 Pedro Alves <palves@redhat.com>
15946
15947 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15948
15949 2019-01-23 Pedro Alves <palves@redhat.com>
15950 Andrew Burgess <andrew.burgess@embecosm.com>
15951
15952 * gdbthread.h: Include "common/forward-scope-exit.h".
15953 (scoped_finish_thread_state): Redefine custom class in terms of
15954 forward_scope_exit.
15955
15956 2019-01-23 Pedro Alves <palves@redhat.com>
15957 Andrew Burgess <andrew.burgess@embecosm.com>
15958
15959 * common/forward-scope-exit.h: New file.
15960
15961 2019-01-23 Pedro Alves <palves@redhat.com>
15962 Andrew Burgess <andrew.burgess@embecosm.com>
15963 Tom Tromey <tom@tromey.com>
15964
15965 * common/scope-exit.h: New file.
15966
15967 2019-01-23 Pedro Alves <palves@redhat.com>
15968
15969 * common/preprocessor.h (ESC): Rename to ...
15970 (ESC_PARENS): ... this.
15971 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15972 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15973
15974 2019-01-23 Tom Tromey <tom@tromey.com>
15975
15976 * language.h (class scoped_switch_to_sym_language_if_auto):
15977 Initialize m_lang in both cases.
15978
15979 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15980
15981 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15982 with XCNEW.
15983
15984 2019-01-22 Tom Tromey <tom@tromey.com>
15985
15986 * corelow.c: Do not include sys/file.h.
15987
15988 2019-01-22 Tom Tromey <tom@tromey.com>
15989
15990 * tui/tui-wingeneral.h: Include gdb_curses.h.
15991
15992 2019-01-22 Tom Tromey <tom@tromey.com>
15993
15994 * source-cache.h (class source_cache) <get_source_lines,
15995 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15996
15997 2019-01-22 Tom Tromey <tom@tromey.com>
15998
15999 * remote-fileio.h (struct remote_target): Declare.
16000
16001 2019-01-22 Tom Tromey <tom@tromey.com>
16002
16003 * python/py-arch.c: Do not include py-ref.h.
16004 * python/py-bpevent.c: Do not include py-ref.h.
16005 * python/py-cmd.c: Do not include py-ref.h.
16006 * python/py-continueevent.c: Do not include py-ref.h.
16007 * python/py-event.h: Do not include py-ref.h.
16008 * python/py-evtregistry.c: Do not include py-ref.h.
16009 * python/py-finishbreakpoint.c: Do not include py-ref.h.
16010 * python/py-frame.c: Do not include py-ref.h.
16011 * python/py-framefilter.c: Do not include py-ref.h.
16012 * python/py-function.c: Do not include py-ref.h.
16013 * python/py-infevents.c: Do not include py-ref.h.
16014 * python/py-linetable.c: Do not include py-ref.h.
16015 * python/py-objfile.c: Do not include py-ref.h.
16016 * python/py-param.c: Do not include py-ref.h.
16017 * python/py-prettyprint.c: Do not include py-ref.h.
16018 * python/py-progspace.c: Do not include py-ref.h.
16019 * python/py-symbol.c: Do not include py-ref.h.
16020 * python/py-symtab.c: Do not include py-ref.h.
16021 * python/py-type.c: Do not include py-ref.h.
16022 * python/py-unwind.c: Do not include py-ref.h.
16023 * python/py-utils.c: Do not include py-ref.h.
16024 * python/py-value.c: Do not include py-ref.h.
16025 * python/py-varobj.c: Do not include py-ref.h.
16026 * python/py-xmethods.c: Do not include py-ref.h.
16027 * python/python.c: Do not include py-ref.h.
16028 * varobj.c: Do not include py-ref.h.
16029
16030 2019-01-22 Tom Tromey <tom@tromey.com>
16031
16032 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16033 keyword for bcache.
16034
16035 2019-01-22 Tom Tromey <tom@tromey.com>
16036
16037 * compile/compile-cplus-types.c: Remove a comment by #include.
16038
16039 2019-01-22 Tom Tromey <tom@tromey.com>
16040
16041 * compile/gcc-c-plugin.h: Include compile-internal.h.
16042
16043 2019-01-22 Tom Tromey <tom@tromey.com>
16044
16045 * stabsread.c (EXTERN): Do not define.
16046 (symnum, next_symbol_text_func, processing_gcc_compilation)
16047 (within_function, global_sym_chain, global_stabs)
16048 (previous_stab_code, this_object_header_files)
16049 (n_this_object_header_files)
16050 (n_allocated_this_object_header_files): Define.
16051 * stabsread.h (EXTERN): Never define. Use "extern".
16052
16053 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16054
16055 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16056 history_value.
16057
16058 2019-01-21 Tom Tromey <tom@tromey.com>
16059
16060 * ui-out.c: Fix includes.
16061 * tui/tui-source.c: Fix includes.
16062 * target.c: Fix includes.
16063 * remote.c: Fix includes.
16064 * regcache.c: Fix includes.
16065 * python/py-block.c: Fix includes.
16066 * printcmd.c: Fix includes.
16067 * or1k-tdep.c: Fix includes.
16068 * mi/mi-main.c: Fix includes.
16069 * m32r-tdep.c: Fix includes.
16070 * csky-tdep.c: Fix includes.
16071 * compile/compile-cplus-types.c: Fix includes.
16072 * cli/cli-interp.c: Fix includes.
16073
16074 2019-01-21 Alan Hayward <alan.hayward@arm.com>
16075
16076 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16077 for padding.
16078
16079 2019-01-16 Tom Tromey <tom@tromey.com>
16080
16081 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16082 earlier.
16083 (struct objfile) <msymbols_range>: Move from top level.
16084 <msymbols>: New method.
16085 (class objfile_msymbols): Remove.
16086 * symtab.c (default_collect_symbol_completion_matches_break_on):
16087 Update.
16088 * symmisc.c (dump_msymbols): Update.
16089 * stabsread.c (scan_file_globals): Update.
16090 * objc-lang.c (info_selectors_command, info_classes_command)
16091 (find_methods): Update.
16092 * minsyms.c (find_solib_trampoline_target): Update.
16093 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16094 * coffread.c (coff_symfile_read): Update.
16095 * ada-lang.c (ada_lookup_simple_minsym)
16096 (ada_collect_symbol_completion_matches): Update.
16097
16098 2019-01-16 Tom Tromey <tom@tromey.com>
16099
16100 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16101 type. Remove no-argument constructor.
16102 <iterator::operator++>: Simplify.
16103 <begin>: Update.
16104 <end>: Use minimal_symbol_count.
16105
16106 2019-01-16 Tom Tromey <tom@tromey.com>
16107
16108 * objfiles.h (struct objfile) <psymtabs>: New method.
16109 (class objfile_psymtabs): Remove.
16110 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16111 typedef.
16112 <range>: New method.
16113 (require_partial_symbols): Change return type.
16114 * psymtab.c (require_partial_symbols)
16115 (psym_expand_symtabs_matching): Update.
16116 * mdebugread.c (parse_partial_symbols): Update.
16117 * dbxread.c (dbx_end_psymtab): Update.
16118
16119 2019-01-15 Tom Tromey <tom@tromey.com>
16120
16121 * symtab.c (lookup_objfile_from_block)
16122 (lookup_symbol_in_objfile_symtabs)
16123 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16124 (find_line_symtab, info_sources_command)
16125 (default_collect_symbol_completion_matches_break_on)
16126 (make_source_files_completion_list): Update.
16127 * symmisc.c (print_objfile_statistics, dump_objfile)
16128 (maintenance_print_symbols, maintenance_info_symtabs)
16129 (maintenance_check_symtabs, maintenance_info_line_tables):
16130 Update.
16131 * source.c (select_source_symtab)
16132 (forget_cached_source_info_for_objfile): Update.
16133 * objfiles.h (class objfile_compunits): Remove.
16134 (struct objfile) <compunits_range>: New typedef.
16135 (compunits): New method.
16136 * objfiles.c (objfile_relocate1): Update.
16137 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16138 * maint.c (count_symtabs_and_blocks): Update.
16139 * linespec.c (iterate_over_all_matching_symtabs): Update.
16140 * cp-support.c (add_symbol_overload_list_qualified): Update.
16141 * coffread.c (coff_symtab_read): Update.
16142 * ada-lang.c (add_nonlocal_symbols)
16143 (ada_collect_symbol_completion_matches)
16144 (ada_add_global_exceptions): Update.
16145
16146 2019-01-15 Tom Tromey <tom@tromey.com>
16147
16148 * progspace.h (program_space) <objfiles_safe_range>: New
16149 typedef.
16150 <objfiles_safe>: New method.
16151 * objfiles.h (class all_objfiles_safe): Remove.
16152 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16153 * jit.c (jit_inferior_exit_hook): Update.
16154
16155 2019-01-17 Tom Tromey <tom@tromey.com>
16156
16157 * progspace.h (program_space) <objfiles_range>: New typedef.
16158 <objfiles>: New method.
16159 <objfiles_head>: Rename from objfiles.
16160 (object_files): Update.
16161 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16162 * guile/scm-pretty-print.c
16163 (ppscm_find_pretty_printer_from_objfiles): Update.
16164 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16165 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16166 Update.
16167 * python/py-progspace.c (pspy_get_objfiles): Update.
16168 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16169 Update.
16170 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16171 (objfpy_lookup_objfile_by_build_id): Update.
16172 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16173 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16174 Update.
16175 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16176 (expand_symtab_containing_pc, lookup_objfile_from_block)
16177 (lookup_static_symbol, basic_lookup_transparent_type)
16178 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16179 (find_line_symtab, info_sources_command)
16180 (default_collect_symbol_completion_matches_break_on)
16181 (make_source_files_completion_list, find_main_name): Update.
16182 * symmisc.c (print_symbol_bcache_statistics)
16183 (print_objfile_statistics, maintenance_print_symbols)
16184 (maintenance_print_msymbols, maintenance_print_objfiles)
16185 (maintenance_info_symtabs, maintenance_check_symtabs)
16186 (maintenance_expand_symtabs, maintenance_info_line_tables):
16187 Update.
16188 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16189 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16190 (map_overlay_command, unmap_overlay_command)
16191 (simple_overlay_update, expand_symtabs_matching)
16192 (map_symbol_filenames): Update.
16193 * symfile-debug.c (set_debug_symfile): Update.
16194 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16195 Update.
16196 * source.c (select_source_symtab, forget_cached_source_info):
16197 Update.
16198 * solib.c (solib_read_symbols): Update.
16199 * solib-spu.c (append_ocl_sos): Update.
16200 * psymtab.c (maintenance_print_psymbols)
16201 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16202 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16203 * printcmd.c (info_symbol_command): Update.
16204 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16205 Update.
16206 * objfiles.h (class all_objfiles): Remove.
16207 * objfiles.c (have_partial_symbols, have_full_symbols)
16208 (have_minimal_symbols, qsort_cmp, update_section_map)
16209 (shared_objfile_contains_address_p)
16210 (default_iterate_over_objfiles_in_search_order): Update.
16211 * objc-lang.c (info_selectors_command, info_classes_command)
16212 (find_methods): Update.
16213 * minsyms.c (find_solib_trampoline_target): Update.
16214 * maint.c (maintenance_info_sections)
16215 (maintenance_translate_address, count_symtabs_and_blocks):
16216 Update.
16217 * main.c (captured_main_1): Update.
16218 * linux-thread-db.c (try_thread_db_load_from_pdir)
16219 (has_libpthread): Update.
16220 * linespec.c (iterate_over_all_matching_symtabs)
16221 (search_minsyms_for_name): Update.
16222 * jit.c (jit_find_objf_with_entry_addr): Update.
16223 * hppa-tdep.c (find_unwind_entry)
16224 (hppa_lookup_stub_minimal_symbol): Update.
16225 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16226 Update.
16227 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16228 (elf_gnu_ifunc_resolve_by_got): Update.
16229 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16230 * dwarf-index-write.c (save_gdb_index_command): Update.
16231 * cp-support.c (add_symbol_overload_list_qualified): Update.
16232 * breakpoint.c (create_overlay_event_breakpoint)
16233 (create_longjmp_master_breakpoint)
16234 (create_std_terminate_master_breakpoint)
16235 (create_exception_master_breakpoint): Update.
16236 * blockframe.c (find_pc_partial_function): Update.
16237 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16238 (ada_collect_symbol_completion_matches)
16239 (ada_add_global_exceptions): Update.
16240
16241 2019-01-17 Tom Tromey <tom@tromey.com>
16242
16243 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16244 declare VEC.
16245 (solib_target_parse_libraries): Change return type.
16246 (library_list_start_segment, library_list_start_section)
16247 (library_list_end_library, library_list_start_library); Update.
16248 (solib_target_free_library_list): Remove.
16249 (solib_target_parse_libraries): Remove cleanup. Change return
16250 type.
16251 (solib_target_current_sos): Update.
16252
16253 2019-01-17 Tom Tromey <tromey@bapiya>
16254
16255 * valprint.c: Replace "the the" with "the".
16256 * symtab.c: Replace "the the" with "the".
16257 * solib.c: Replace "the the" with "the".
16258 * solib-dsbt.c: Replace "the the" with "the".
16259 * linespec.c: Replace "the the" with "the".
16260 * dwarf2loc.h: Replace "the the" with "the".
16261 * amd64-windows-tdep.c: Replace "the the" with "the".
16262 * aarch64-tdep.c: Replace "the the" with "the".
16263
16264 2019-01-16 Keith Seitz <keiths@redhat.com>
16265
16266 PR gdb/23773
16267 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16268 <builder>: Rename to ..
16269 <m_builder>: ... this and make private.
16270 (dwarf2_cu::get_builder): New method. Change all users of
16271 `builder' to use this method.
16272 (dwarf2_start_symtab): Move to ...
16273 (dwarf2_cu::start_symtab): ... here. Update all callers
16274 (setup_type_unit_groups): Move to ...
16275 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16276 callers.
16277 (dwarf2_cu::reset_builder): New method.
16278 (process_full_compunit, process_full_type_unit): Use
16279 dwarf2_cu::reset_builder.
16280 (follow_die_offset): Record the ancestor CU if it is different
16281 from the followed DIE's CU.
16282 (follow_die_sig_1): Likewise.
16283
16284 2019-01-15 Tom Tromey <tom@tromey.com>
16285
16286 * remote.c (class remote_state) <buf>: Now a char_vector.
16287 <buf_size>: Remove.
16288 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16289 parameter.
16290 (remote_target::getpkt_or_notif_sane_1)
16291 (remote_target::getpkt_sane)
16292 (remote_target::getpkt_or_notif_sane): Likewise.
16293 (class remote_target) <putpkt>: New overload.
16294 (remote_target::read_frame): Change type of "buf_p". Remove
16295 sizeof_p parameter.
16296 (packet_ok): New overload.
16297 (packet_check_result): New overload.
16298 Update all uses.
16299
16300 2019-01-14 Tom Tromey <tom@tromey.com>
16301
16302 * remote-notif.c (handle_notification, remote_notif_ack)
16303 (remote_notif_parse): Make "buf" const.
16304 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16305 const.
16306 (remote_notif_parse, remote_notif_ack, handle_notification):
16307 Likewise.
16308 * remote.c (remote_notif_stop_parse): Make "buf" const.
16309 (remote_target::remote_parse_stop_reply): Make "buf" const.
16310 (remote_notif_stop_ack): Make "buf" const.
16311
16312 2019-01-14 Tom Tromey <tom@tromey.com>
16313
16314 * remote.c (remote_console_output): Make parameter const.
16315
16316 2019-01-14 Tom Tromey <tom@tromey.com>
16317
16318 * target-debug.h (target_debug_print_signals): Constify.
16319 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16320 * procfs.c (procfs_target::pass_signals): Update.
16321 * linux-nat.c (linux_nat_target::pass_signals): Update.
16322 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16323 * target-delegates.c: Rebuild.
16324 * remote.c (remote_target::program_signals): Update.
16325 (remote_target::pass_signals): Update.
16326 * target.c (target_pass_signals): Constify argument.
16327 (target_program_signals): Likewise.
16328 * target.h (struct target_ops) <pass_signals, program_signals>:
16329 Constify argument.
16330 (target_pass_signals, target_program_signals): Constify argument.
16331
16332 2019-01-14 Tom Tromey <tom@tromey.com>
16333
16334 PR tui/28819:
16335 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16336
16337 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16338
16339 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16340 field.
16341 * rs6000-tdep.c: Include reggroups.h.
16342 (IS_V_ALIAS_PSEUDOREG): Define.
16343 (rs6000_register_name): Return names for the "vX" aliases.
16344 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16345 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16346 aliases. Call default_register_reggroup_p for all other
16347 pseudo-registers.
16348 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16349 New functions.
16350 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16351 Handle "vX" aliases.
16352 (v_alias_pseudo_register_collect): New function.
16353 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16354 (rs6000_gdbarch_init): Initialize "vX" aliases as
16355 pseudo-registers. Restore registration of
16356 rs6000_pseudo_register_reggroup_p with
16357 set_tdesc_pseudo_register_reggroup_p.
16358
16359 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16360
16361 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16362 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16363 set_gdbarch_num_pseudo_regs.
16364
16365 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16366
16367 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16368 Remove arg prefixname, add do_set and do_show.
16369 Add member functions set_list and show_list.
16370 * cli/cli-style.c (class cli_style_option): Update accordingly.
16371 (style_set_list): Move to file scope.
16372 (style_show_list): Likewise.
16373 (set_style): Call help_list.
16374 (show_style): Call cmd_show_list.
16375 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16376 Update to use the new macro.
16377
16378 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16379
16380 * ada-lang.c (_initialize_ada_language): Expand the help text
16381 for the "catch exception" command.
16382
16383 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16384
16385 * symtab.c (matching_obj_sections): Initialize obj,
16386 declare it closer to its usage.
16387
16388 2019-01-10 Tom Tromey <tom@tromey.com>
16389
16390 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16391 (basic_inf_threads_range): Remove.
16392 (inf_threads_range, inf_non_exited_threads_range)
16393 (safe_inf_threads_range): Use next_adapter.
16394
16395 2019-01-10 Keith Seitz <keiths@redhat.com>
16396
16397 PR gdb/23712
16398 PR symtab/23010
16399 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16400 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16401
16402 2019-01-10 Keith Seitz <keiths@redhat.com>
16403
16404 PR gdb/23712
16405 PR symtab/23010
16406 * dictionary.c (pending_to_vector): Remove.
16407 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16408 Remove _1 suffix, replacing functions of the same name. Update
16409 all callers.
16410 (dict_create_hashed, dict_create_hashed_expandable)
16411 (dict_create_linear, dict_create_linear_expandable, dict_free)
16412 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16413 Make functions static.
16414
16415 2019-01-10 Keith Seitz <keiths@redhat.com>
16416
16417 PR gdb/23712
16418 PR symtab/23010
16419 * dictionary.h (struct dictionary): Replace declaration with
16420 multidictionary.
16421 (dict_create_hashed, dict_create_hashed_expandable)
16422 (dict_create_linear, dict_create_linear_expandable)
16423 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16424 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16425 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16426 taking multidictionary argument.
16427 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16428 * block.h (struct block) <dict>: Change to multidictionary
16429 and rename `multidict'.
16430 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16431 symmisc.c: Update all dictionary references to multidictionary.
16432
16433 2019-01-10 Keith Seitz <keiths@redhat.com>
16434
16435 PR gdb/23712
16436 PR symtab/23010
16437 * dictionary.c: Include unordered_map.
16438 (pending_to_vector): New function.
16439 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16440 Rewrite the non-"_1" functions to take vector instead
16441 of linked list.
16442 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16443 "new" _1 versions of the same name.
16444 (multidictionary): Define.
16445 (std::hash<enum language): New definition.
16446 (collate_pending_symbols_by_language, mdict_create_hashed)
16447 (mdict_create_hashed_expandable, mdict_create_linear)
16448 (mdict_create_linear_expandable, mdict_free)
16449 (find_language_dictionary, create_new_language_dictionary)
16450 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16451 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16452 (mdict_size, mdict_empty): New functions.
16453 * dictionary.h (mdict_iterator): Define.
16454
16455 2019-01-10 Pedro Alves <palves@redhat.com>
16456
16457 * breakpoint.c (read_uploaded_action)
16458 (create_tracepoint_from_upload): Adjust to use
16459 gdb::unique_xmalloc_ptr.
16460 * ctf.c (ctf_write_uploaded_tp):
16461 (SET_ARRAY_FIELD): Use emplace_back.
16462 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16463 * tracefile-tfile.c (tfile_write_uploaded_tp):
16464 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16465 gdb::unique_xmalloc_ptr.
16466 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16467 at_string, cond_string, cmd_strings>: Replace char pointers
16468 with gdb::unique_xmalloc_ptr.
16469
16470 2019-01-10 Pedro Alves <palves@redhat.com>
16471
16472 * solib-target.c (library_list_start_library): Don't xstrdup name.
16473
16474 2019-01-10 Pedro Alves <palves@redhat.com>
16475
16476 * mdebugread.c (parse_partial_symbols): Use
16477 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16478
16479 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16480
16481 * linux-fork.c (scoped_switch_fork_info)
16482 <~scoped_switch_fork_info>: Fix incorrect variable name.
16483
16484 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16485
16486 * linux-fork.c (scoped_switch_fork_info)
16487 <scoped_switch_fork_info>: Make explicit.
16488 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16489
16490 2019-01-10 Tom Tromey <tom@tromey.com>
16491
16492 * objfiles.h (objfile::reset_psymtabs): Update.
16493 * objfiles.c (objfile::objfile): Update.
16494 * psymtab.h (psymtab_storage::obstack): Update.
16495 (psymtab_storage::m_obstack): Use gdb::optional.
16496 (class psymtab_storage): Update comment. Remove objfile
16497 parameter.
16498 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16499
16500 2019-01-10 Tom Tromey <tom@tromey.com>
16501
16502 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16503 <free_psymtabs>: Now private.
16504 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16505 (allocate_psymtab): Use new method.
16506
16507 2019-01-10 Tom Tromey <tom@tromey.com>
16508
16509 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16510 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16511 * mdebugread.c (parse_partial_symbols): Use
16512 allocate_dependencies.
16513 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16514 allocate_dependencies.
16515 (process_psymtab_comp_unit_reader)
16516 (build_type_psymtab_dependencies): Likewise.
16517 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16518
16519 2019-01-10 Tom Tromey <tom@tromey.com>
16520
16521 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16522 PSYMBOL_SET_LANGUAGE.
16523 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16524
16525 2019-01-10 Tom Tromey <tom@tromey.com>
16526
16527 * psymtab.h (psymtab_storage::obstack): New method.
16528 <m_obstack>: Rename from obstack; now private.
16529 * psymtab.c (psymtab_storage): Update.
16530 * dwarf2read.c (create_addrmap_from_index)
16531 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16532 Update.
16533
16534 2019-01-10 Tom Tromey <tom@tromey.com>
16535
16536 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16537 * objfiles.h (objfile::reset_psymtabs): New method.
16538
16539 2019-01-10 Tom Tromey <tom@tromey.com>
16540
16541 * symmisc.c (print_symbol_bcache_statistics): Update.
16542 (print_objfile_statistics): Update.
16543 * symfile.c (reread_symbols): Update.
16544 * psymtab.h (class psymtab_storage): New.
16545 * psymtab.c (psymtab_storage): New constructor.
16546 (~psymtab_storage): New destructor.
16547 (require_partial_symbols): Update.
16548 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16549 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16550 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16551 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16552 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16553 (start_psymtab_common, end_psymtab_common)
16554 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16555 (allocate_psymtab): Update.
16556 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16557 Update.
16558 (dump_psymtab_addrmap, maintenance_print_psymbols)
16559 (maintenance_check_psymtabs): Update.
16560 (class objfile_psymtabs): Move to objfiles.h.
16561 * psympriv.h (discard_psymtab): Now inline.
16562 (psymtab_discarder::psymtab_discarder): Update.
16563 (psymtab_discarder::~psymtab_discarder): Update.
16564 (ALL_OBJFILE_PSYMTABS): Rewrite.
16565 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16566 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16567 Remove fields.
16568 <partial_symtabs>: New field.
16569 (class objfile_psymtabs): Move from psymtab.h. Update.
16570 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16571 psymbol_cache.
16572 (objfile::~objfile): Don't destroy psymbol_cache.
16573 * mdebugread.c (parse_partial_symbols): Update.
16574 * dwarf2read.c (create_addrmap_from_index)
16575 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16576 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16577 (add_partial_subprogram, dwarf2_ranges_read): Update.
16578 * dwarf-index-write.c (write_address_map)
16579 (write_one_signatured_type, recursively_write_psymbols)
16580 (class debug_names, class debug_names, write_psymtabs_to_index):
16581 Update.
16582
16583 2019-01-10 Tom Tromey <tom@tromey.com>
16584
16585 * symtab.h (SYMBOL_SET_NAMES): Update.
16586 (symbol_set_names): Update.
16587 (MSYMBOL_SET_NAMES): Update.
16588 * symtab.c (symbol_set_names): Change argument to be an
16589 objfile_per_bfd_storage.
16590 * psymtab.c (add_psymbol_to_bcache): Update.
16591 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16592
16593 2019-01-10 Tom Tromey <tom@tromey.com>
16594
16595 * symtab.c (create_demangled_names_hash): Change argument to be an
16596 objfile_per_bfd_storage.
16597 (symbol_set_names): Update.
16598
16599 2019-01-10 Tom Tromey <tom@tromey.com>
16600
16601 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16602 init_psymbol_list.
16603 * psymtab.c (init_psymbol_list): Do nothing if already called.
16604 * psympriv.h (init_psymbol_list): Add comment.
16605 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16606 init_psymbol_list.
16607 * dbxread.c (dbx_symfile_read): Unconditionally call
16608 init_psymbol_list.
16609
16610 2019-01-10 Tom Tromey <tom@tromey.com>
16611
16612 * xcoffread.c (scan_xcoff_symtab): Update.
16613 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16614 "where".
16615 * mdebugread.c (parse_partial_symbols)
16616 (handle_psymbol_enumerators): Update.
16617 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16618 * dbxread.c (read_dbx_symtab): Update.
16619 * psympriv.h (psymbol_placement): New enum.
16620 (add_psymbol_to_list): Update.
16621
16622 2019-01-10 Tom Tromey <tom@tromey.com>
16623
16624 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16625 static_psymbols parameters.
16626 (scan_xcoff_symtab): Update.
16627 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16628 static_psymbols parameters.
16629 * psympriv.h (start_psymtab_common): Update.
16630 * mdebugread.c (parse_partial_symbols): Update.
16631 * dwarf2read.c (create_partial_symtab): Update.
16632 * dbxread.c (read_dbx_symtab): Update.
16633 (start_psymtab): Remove global_psymbols and static_psymbols
16634 parameters.
16635
16636 2019-01-10 Tom Tromey <tom@tromey.com>
16637
16638 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16639 * psymtab.c (allocate_psymtab): Add comment.
16640 * psympriv.h (allocate_psymtab): Add comment.
16641 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16642 initializations.
16643 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16644
16645 2019-01-10 Tom Tromey <tom@tromey.com>
16646
16647 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16648 Don't declare.
16649 * mipsread.c: Include mdebugread.h.
16650 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16651 Declare.
16652 * elfread.c: Include mdebugread.h.
16653
16654 2019-01-09 Tom Tromey <tom@tromey.com>
16655
16656 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16657 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16658 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16659 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16660 (psym_lookup_symbol, psym_find_last_source_symtab)
16661 (psym_forget_cached_source_info, psym_print_stats)
16662 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16663 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16664 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16665 (psym_find_compunit_symtab_by_address)
16666 (maintenance_print_psymbols, maintenance_info_psymtabs)
16667 (maintenance_check_psymtabs): Use ranged for.
16668 * psymtab.h (class objfile_psymtabs): New.
16669 (require_partial_symbols): Return objfile_psymtabs.
16670 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16671
16672 2019-01-09 Tom Tromey <tom@tromey.com>
16673
16674 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16675 (find_pc_mapped_section, list_overlays_command)
16676 (map_overlay_command, unmap_overlay_command)
16677 (simple_overlay_update): Use all_objfiles.
16678 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16679 * printcmd.c (info_symbol_command): Use all_objfiles.
16680 * objfiles.h (ALL_OBJSECTIONS): Remove.
16681 * maint.c (maintenance_translate_address): Use all_objfiles.
16682 * gcore.c (gcore_create_callback): Use all_objfiles.
16683 (objfile_find_memory_regions): Likewise.
16684
16685 2019-01-09 Tom Tromey <tom@tromey.com>
16686
16687 * symtab.c (find_line_symtab, info_sources_command)
16688 (make_source_files_completion_list): Use objfile_compunits.
16689 * source.c (select_source_symtab): Use objfile_compunits.
16690 * objfiles.h (struct objfile): Update comment.
16691 (ALL_OBJFILES): Remove.
16692 (ALL_FILETABS): Remove.
16693 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16694 objfile_compunits.
16695
16696 2019-01-09 Tom Tromey <tom@tromey.com>
16697
16698 * symmisc.c (print_objfile_statistics, dump_objfile)
16699 (maintenance_print_symbols): Use compunit_filetabs.
16700 * source.c (forget_cached_source_info_for_objfile): Use
16701 compunit_filetabs.
16702 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16703 (ALL_FILETABS): Use compunit_filetabs.
16704 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16705 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16706
16707 2019-01-09 Tom Tromey <tom@tromey.com>
16708
16709 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16710 (compunit_filetabs): New.
16711 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16712 compunit_filetabs.
16713 (info_sources_command, make_source_files_completion_list): Remove
16714 declaration.
16715 * symmisc.c (print_objfile_statistics, dump_objfile)
16716 (maintenance_print_symbols): Remove declaration.
16717 (maintenance_info_symtabs): Use compunit_filetabs.
16718 (maintenance_info_line_tables): Likewise.
16719 * source.c (select_source_symtab): Change local variable name.
16720 (forget_cached_source_info_for_objfile): Remove declaration.
16721 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16722 * objfiles.c (objfile_relocate1): Remove declaration.
16723 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16724 declaration.
16725 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16726 * coffread.c (coff_symtab_read): Remove declaration.
16727 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16728 compunit_filetabs.
16729
16730 2019-01-09 Tom Tromey <tom@tromey.com>
16731
16732 * symtab.c (lookup_objfile_from_block)
16733 (find_pc_sect_compunit_symtab, search_symbols)
16734 (default_collect_symbol_completion_matches_break_on): Use
16735 objfile_compunits.
16736 * objfiles.h (ALL_COMPUNITS): Remove.
16737 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16738 * cp-support.c (add_symbol_overload_list_qualified): Use
16739 objfile_compunits.
16740 * ada-lang.c (ada_collect_symbol_completion_matches)
16741 (ada_add_global_exceptions): Use objfile_compunits.
16742
16743 2019-01-09 Tom Tromey <tom@tromey.com>
16744
16745 * source.c (select_source_symtab)
16746 (forget_cached_source_info_for_objfile): Remove declaration.
16747 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16748 declaration.
16749 * maint.c (count_symtabs_and_blocks): Remove declaration.
16750 * cp-support.c (add_symbol_overload_list_qualified): Remove
16751 declaration.
16752 * coffread.c (coff_symtab_read): Remove declaration.
16753 * symtab.c (lookup_symbol_in_objfile_symtabs)
16754 (basic_lookup_transparent_type_1): Use objfile_compunits.
16755 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16756 (info_sources_command, search_symbols)
16757 (default_collect_symbol_completion_matches_break_on)
16758 (make_source_files_completion_list): Remove declaration.
16759 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16760 (ada_collect_symbol_completion_matches)
16761 (ada_add_global_exceptions): Remove declaration.
16762 * linespec.c (iterate_over_all_matching_symtabs): Use
16763 objfile_compunits.
16764 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16765 (class objfile_compunits): New.
16766 (ALL_COMPUNITS): Use objfile_compunits.
16767 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16768 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16769 objfile_compunits.
16770 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16771
16772 2019-01-09 Tom Tromey <tom@tromey.com>
16773
16774 * symtab.c (search_symbols)
16775 (default_collect_symbol_completion_matches_break_on): Use
16776 objfile_msymbols.
16777 * ada-lang.c (ada_lookup_simple_minsym)
16778 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16779 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16780 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16781 objfile_msymbols.
16782 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16783 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16784 * objc-lang.c (find_methods): Use objfile_msymbols.
16785 (info_selectors_command, info_classes_command): Likewise.
16786 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16787 * objfiles.h (class objfile_msymbols): New.
16788 (ALL_OBJFILE_MSYMBOLS): Remove.
16789 (ALL_MSYMBOLS): Remove.
16790
16791 2019-01-09 Tom Tromey <tom@tromey.com>
16792
16793 * common/next-iterator.h (next_adapter): Add Iterator template
16794 parameter.
16795 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16796 (class all_objfiles_safe): New.
16797 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16798 * objfiles.c (put_objfile_before): Update comment.
16799 (add_separate_debug_objfile): Likewise.
16800 (free_all_objfiles): Use all_objfiles_safe.
16801 (objfile_purge_solibs): Likewise.
16802
16803 2019-01-09 Tom Tromey <tom@tromey.com>
16804
16805 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16806 (expand_symtab_containing_pc, lookup_static_symbol)
16807 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16808 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16809 all_objfiles.
16810 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16811 * breakpoint.c (create_overlay_event_breakpoint)
16812 (create_longjmp_master_breakpoint)
16813 (create_std_terminate_master_breakpoint)
16814 (create_exception_master_breakpoint): Use all_objfiles.
16815 * linux-thread-db.c (try_thread_db_load_from_pdir)
16816 (has_libpthread): Use all_objfiles.
16817 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16818 * linespec.c (iterate_over_all_matching_symtabs)
16819 (search_minsyms_for_name): Use all_objfiles.
16820 * maint.c (maintenance_info_sections): Use all_objfiles.
16821 * main.c (captured_main_1): Use all_objfiles.
16822 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16823 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16824 * guile/scm-pretty-print.c
16825 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16826 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16827 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16828 (maintenance_print_msymbols): Use all_objfiles.
16829 * source.c (select_source_symtab): Use all_objfiles.
16830 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16831 * symfile.c (remove_symbol_file_command)
16832 (expand_symtabs_matching, map_symbol_filenames): Use
16833 all_objfiles.
16834 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16835 all_objfiles.
16836 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16837 * objc-lang.c (find_methods): Use all_objfiles.
16838 * objfiles.c (have_partial_symbols, have_full_symbols)
16839 (have_minimal_symbols, qsort_cmp)
16840 (default_iterate_over_objfiles_in_search_order): Use
16841 all_objfiles.
16842 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16843 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16844 (maintenance_check_psymtabs): Use all_objfiles.
16845 (ALL_PSYMTABS): Remove.
16846 * compile/compile-object-run.c (do_module_cleanup): Use
16847 all_objfiles.
16848 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16849 * cp-support.c (add_symbol_overload_list_qualified): Use
16850 all_objfiles.
16851 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16852 Use all_objfiles.
16853 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16854 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16855 all_objfiles.
16856 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16857 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16858 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16859 Uses all_objfiles.
16860 * solib.c (solib_read_symbols): Use all_objfiles
16861
16862 2019-01-09 Tom Tromey <tom@tromey.com>
16863
16864 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16865 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16866 all_objfiles.
16867 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16868 * symmisc.c (print_symbol_bcache_statistics)
16869 (print_objfile_statistics, maintenance_print_objfiles)
16870 (maintenance_info_symtabs, maintenance_check_symtabs)
16871 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16872 all_objfiles.
16873 * source.c (forget_cached_source_info): Use all_objfiles.
16874 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16875 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16876 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16877 * objfiles.c (update_section_map): Use all_objfiles.
16878 (shared_objfile_contains_address_p): Likewise.
16879 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16880 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16881
16882 2019-01-09 Tom Tromey <tom@tromey.com>
16883
16884 * common/next-iterator.h: New file.
16885 * objfiles.h (class all_objfiles): New.
16886 (struct objfile_iterator): New.
16887
16888 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16889
16890 * NEWS: Move the description of the changed "frame", "select-frame",
16891 and "info frame" commands to the Changed commands section.
16892
16893 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16894
16895 * gdbtypes.c (check_stub_method_group): Remove handling of old
16896 mangling schemes.
16897 * linespec.c (find_methods): Likewise.
16898 * stabsread.c (read_member_functions): Likewise.
16899 * valops.c (search_struct_method): Likewise.
16900 (value_struct_elt_for_reference): Likewise.
16901 * NEWS: Mention this change.
16902
16903 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16904
16905 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16906 print_source_lines.
16907 * source.c (print_source_lines_base): Update line number check.
16908 (print_source_lines): New function.
16909 (source_lines_range::source_lines_range): New function.
16910 * source.h (class source_lines_range): New class.
16911 (print_source_lines): New declaration.
16912
16913 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16914
16915 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16916
16917 2019-01-08 Tom Tromey <tom@tromey.com>
16918 Simon Marchi <simon.marchi@ericsson.com>
16919
16920 PR gdb/24060
16921 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16922 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16923 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16924 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16925 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16926 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16927
16928 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16929
16930 * source.c (select_source_symtab): Move header comment to
16931 declaration in source.h.
16932 (forget_cached_source_info_for_objfile): Likewise.
16933 (forget_cached_source_info): Likewise.
16934 (identify_source_line): Likewise.
16935 * source.h (identify_source_line): Move declaration from symtab.h
16936 and add comment from source.c
16937 (print_source_lines): Likewise.
16938 (forget_cached_source_info_for_objfile): Likewise.
16939 (forget_cached_source_info): Likewise.
16940 (select_source_symtab): Likewise.
16941 (enum print_source_lines_flag): Move definition from symtab.h.
16942 * symtab.h (identify_source_line): Move declaration to source.h.
16943 (print_source_lines): Likewise.
16944 (forget_cached_source_info_for_objfile): Likewise.
16945 (forget_cached_source_info): Likewise.
16946 (select_source_symtab): Likewise.
16947 (enum print_source_lines_flag): Move definition to source.h.
16948 * tui/tui-hooks.c: Add 'source.h' include.
16949
16950 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16951
16952 * source.c (print_source_lines_base): Handle requests to print
16953 reverse line number sequences, and guard against empty lines
16954 string.
16955
16956 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16957
16958 * source.c (print_source_lines_base): Fix skip of '\r' if next
16959 character is '\n'.
16960
16961 2019-01-06 Tom Tromey <tom@tromey.com>
16962
16963 * c-exp.y (struct c_parse_state) <macro_original_text,
16964 expansion_obstack>: New member.
16965 (macro_original_text, expansion_obstack): Remove globals.
16966 (scan_macro_expansion, scanning_macro_expansion)
16967 (finished_macro_expansion): Update.
16968 (scan_macro_cleanup): Remove.
16969 (yylex, c_parse): Update.
16970
16971 2019-01-06 Tom Tromey <tom@tromey.com>
16972
16973 * c-exp.y (struct c_parse_state) <strings>: New member.
16974 (operator_stoken): Update.
16975
16976 2019-01-06 Tom Tromey <tom@tromey.com>
16977
16978 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16979 (union type_stack_elt) <typelist_val>: Now a pointer to
16980 std::vector.
16981 (type_stack_cleanup): Don't declare.
16982 (push_typelist): Update.
16983 * parse.c (pop_typelist): Return a std::vector.
16984 (push_typelist): Take a std::vector.
16985 (follow_types): Update. Do not free args.
16986 (type_stack_cleanup): Remove.
16987 * c-exp.y (struct c_parse_state): New.
16988 (cpstate): New global.
16989 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16990 (nonempty_typelist): Update.
16991 (func_mod): Create a new vector.
16992 (c_parse): Create a c_parse_state.
16993 (check_parameter_typelist): Do not delete params.
16994 (function_method): Update. Do not delete type_list.
16995
16996 2019-01-06 Tom Tromey <tom@tromey.com>
16997
16998 PR gdb/28155:
16999 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
17000 check_typedef.
17001 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
17002 (print_return_value): Likewise.
17003
17004 2019-01-05 Tom Tromey <tom@tromey.com>
17005
17006 * contrib/cleanup_check.py: Remove.
17007 * contrib/gcc-with-excheck: Remove.
17008 * contrib/exsummary.py: Remove.
17009 * contrib/excheck.py: Remove.
17010
17011 2019-01-05 Joel Brobecker <brobecker@adacore.com>
17012
17013 * thread.c (delete_thread_1): Add gdb_assert that THR is not
17014 NULL. Initialize tpprev to NULL instead of assigning it
17015 to NULL on the next statement.
17016 * windows-nat.c (windows_delete_thread): Remove check for
17017 main_thread_id before printing thread exit notifications.
17018 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
17019 Remove thread ID check against main_thread_id.
17020 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
17021 windows_delete_thread.
17022 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17023
17024 2019-01-04 Tom Tromey <tom@tromey.com>
17025
17026 * compile/compile.c (_initialize_compile): Use upper case for
17027 metasyntactic variables.
17028 * symmisc.c (_initialize_symmisc): Use upper case for
17029 metasyntactic variables.
17030 * psymtab.c (_initialize_psymtab): Use upper case for
17031 metasyntactic variables.
17032 * demangle.c (demangle_command): Use upper case for metasyntactic
17033 variables.
17034 (_initialize_demangler): Likewise.
17035 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17036 variables.
17037
17038 2019-01-03 Tom Tromey <tom@tromey.com>
17039
17040 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17041
17042 2019-01-03 Tom Tromey <tom@tromey.com>
17043
17044 * python/py-symtab.c (salpy_str): Update.
17045 (struct salpy_sal_object) <symtab>: Now a PyObject.
17046 (salpy_dealloc): Update.
17047 (del_objfile_sal): Use gdbpy_ref.
17048
17049 2019-01-03 Tom Tromey <tom@tromey.com>
17050
17051 * python/py-type.c (convert_field): Use new_reference. Return
17052 gdbpy_ref.
17053 (make_fielditem): Return gdbpy_ref.
17054 (typy_fields): Update.
17055 (typy_getitem): Update.
17056 (field_name): Return gdbpy_ref. Use new_reference.
17057 (typy_iterator_iternext): Update.
17058
17059 2019-01-03 Tom Tromey <tom@tromey.com>
17060
17061 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17062
17063 2019-01-03 Tom Tromey <tom@tromey.com>
17064
17065 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17066 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17067 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17068 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17069 (pspy_set_type_printers): Likewise.
17070 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17071 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17072 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17073 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17074 (objfpy_set_type_printers): Likewise.
17075
17076 2019-01-03 Tom Tromey <tom@tromey.com>
17077
17078 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17079 (gdbpy_print_stack): Use gdbpy_err_fetch.
17080 * python/python-internal.h (class gdbpy_err_fetch): New class.
17081 (class gdbpy_enter) <m_error_type, m_error_value,
17082 m_error_traceback>: Remove.
17083 <m_error>: New member.
17084 (gdbpy_exception_to_string): Don't declare.
17085 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17086 * python/py-value.c (convert_value_from_python): Use
17087 gdbpy_err_fetch.
17088 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17089 gdbpy_exception_to_string.
17090 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17091 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17092 gdbpy_err_fetch.
17093
17094 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17095
17096 * linux-nat.c (delete_lwp_cleanup): Delete.
17097 (struct lwp_deleter): New struct.
17098 (lwp_info_up): New typedef.
17099 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17100 lwp_info_up.
17101
17102 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17103
17104 * linux-fork.c (class scoped_switch_fork_info): New class.
17105 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17106
17107 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17108
17109 * valops.c (find_overload_match): Remove use of null_cleanup, and
17110 calls to do_cleanups.
17111
17112 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17113
17114 * compile/compile-cplus-types.c
17115 (compile_cplus_instance::decl_name): Handle changes to
17116 cp_func_name.
17117 * cp-support.c (cp_func_name): Update header comment, update
17118 return type.
17119 * cp-support.h (cp_func_name): Update return type in declaration.
17120 * valops.c (find_overload_match): Move temp_func local to top
17121 level of function and change its type. Use temp_func to hold and
17122 delete temporary string obtained from cp_func_name.
17123
17124 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17125
17126 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17127 gdb::char_vector, remove cleanup, and update uses of `msg`.
17128
17129 2019-01-03 Jim Wilson <jimw@sifive.com>
17130
17131 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17132
17133 2019-01-02 Tom Tromey <tom@tromey.com>
17134
17135 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17136 (tdesc_parse_xml): Remove cleanups.
17137 * target-descriptions.h (make_cleanup_free_target_description):
17138 Don't declare.
17139 (target_desc_deleter): New struct.
17140 (target_desc_up): New typedef.
17141 * target-descriptions.c (target_desc_deleter::operator()): Rename
17142 from free_target_description.
17143 (make_cleanup_free_target_description): Remove.
17144
17145 2019-01-02 Tom Tromey <tom@tromey.com>
17146
17147 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17148 constructor, destructor.
17149 (linespec_parser): Remove typedef.
17150 (~linespec_parser): Rename from linespec_parser_delete.
17151 (linespec_lex_to_end, linespec_complete_label)
17152 (linespec_complete): Update.
17153 (decode_line_full): Remove cleanups.
17154 (decode_line_1): Update.
17155
17156 2019-01-02 Tom Tromey <tom@tromey.com>
17157
17158 * python/python-internal.h (inferior_to_inferior_object): Change
17159 return type.
17160 * python/py-exitedevent.c (create_exited_event_object): Update.
17161 * python/py-inferior.c (inferior_to_inferior_object): Return
17162 gdbpy_ref.
17163 (python_new_inferior, python_inferior_deleted)
17164 (thread_to_thread_object, delete_thread_object)
17165 (build_inferior_list, gdbpy_selected_inferior): Update.
17166 * python/py-infthread.c (create_thread_object): Update. Also fail
17167 if inferior_to_inferior_object fails.
17168
17169 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17170
17171 * inferior.h (class inferior) <displaced_step_state>: New field.
17172 * infrun.h (struct displaced_step_state): Move here from
17173 infrun.c. Initialize fields, add constructor.
17174 <inf>: Remove field.
17175 <reset>: New method.
17176 * infrun.c (struct displaced_step_inferior_state): Move to
17177 infrun.h.
17178 (displaced_step_inferior_states): Remove.
17179 (get_displaced_stepping_state): Adust.
17180 (displaced_step_in_progress_any_inferior): Adjust.
17181 (displaced_step_in_progress_thread): Adjust.
17182 (displaced_step_in_progress): Adjust.
17183 (add_displaced_stepping_state): Remove.
17184 (get_displaced_step_closure_by_addr): Adjust.
17185 (remove_displaced_stepping_state): Remove.
17186 (infrun_inferior_exit): Call displaced_step_state.reset.
17187 (use_displaced_stepping): Don't check for NULL.
17188 (displaced_step_prepare_throw): Call
17189 get_displaced_stepping_state.
17190 (displaced_step_fixup): Don't check for NULL.
17191 (prepare_for_detach): Don't check for NULL.
17192
17193 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17194
17195 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17196 in case of call that did not complete.
17197
17198 2019-01-02 Andrey Utkin <autkin@undo.io>
17199
17200 * symfile.c (find_separate_debug_file): Fix search of debug files for
17201 remote debuggee.
17202
17203 2019-01-02 Tom Tromey <tom@tromey.com>
17204
17205 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17206 indentation.
17207 * python/py-frame.c (frapy_older): Remove cast.
17208 (frapy_newer): Likewise.
17209 * python/py-breakpoint.c (local_setattro): Remove cast.
17210 * python/py-arch.c (archpy_name): Remove local variable.
17211 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17212
17213 2019-01-02 Joel Brobecker <brobecker@adacore.com>
17214
17215 * unittests/basic_string_view/element_access/char/empty.cc:
17216 Fix year range in copyright header.
17217
17218 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17219
17220 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17221 Delete.
17222 <operator==>: Update with for removed field.
17223 <hash>: Likewise.
17224 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17225 <isa_features>: ...this.
17226 <abi_features>: New field.
17227 (riscv_isa_flen): Update comment.
17228 (riscv_abi_xlen): New declaration.
17229 (riscv_abi_flen): New declaration.
17230 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17231 isa_features.
17232 (riscv_abi_xlen): New function.
17233 (riscv_isa_flen): Update to get answer from isa_features.
17234 (riscv_abi_flen): New function.
17235 (riscv_has_fp_abi): Update to get answer from abi_features.
17236 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17237 xlen and flen.
17238 (riscv_call_info) <xlen, flen>: Update comment.
17239 (riscv_call_arg_struct): Remove invalid assertions
17240 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17241 is removed.
17242 (riscv_gdbarch_init): Gather isa features and abi features
17243 separately, ensure both match on the gdbarch when reusing an old
17244 gdbarch. Relax an error check to allow 32-bit abi float to run on
17245 a target with 64-bit float hardware.
17246
17247 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17248
17249 * source.c (search_command_helper): Stop reverse search
17250 when line 1 has been searched.
17251
17252 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17253
17254 * record-full.c (record_full_base_target::close): Rewrite
17255 record_full_core_buf_list free logic.
17256
17257 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17258
17259 * break-catch-syscall.c (print_one_catch_syscall): xfree
17260 the last text.
17261
17262 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17263
17264 * top.c (print_gdb_version): Update Copyright year in version
17265 message.
17266
17267 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17268
17269 Update copyright year range in all GDB files.
17270
17271 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17272
17273 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17274
17275 For older changes see ChangeLog-2018.
17276 \f
17277 Local Variables:
17278 mode: change-log
17279 left-margin: 8
17280 fill-column: 74
17281 version-control: never
17282 coding: utf-8
17283 End:
17284
This page took 1.00629 seconds and 4 git commands to generate.