Remove dead code from TUI
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-27 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4 commented-out code.
5 * tui/tui.c: Remove #if 0 code.
6
7 2019-12-27 Tom Tromey <tom@tromey.com>
8
9 * cli/cli-cmds.c (print_disassembly): Reorder "if".
10
11 2019-12-27 Tom Tromey <tom@tromey.com>
12
13 * tui/tui.c (tui_active): Now bool.
14 (tui_finish_init): Likewise.
15 (tui_enable): Update.
16 (tui_disable): Update.
17 (tui_is_window_visible): Update.
18 * tui/tui.h (tui_active): Now bool.
19
20 2019-12-27 Tom Tromey <tom@tromey.com>
21
22 * tui/tui-source.c (tui_source_window::maybe_update): Update.
23 * tui/tui-regs.c (tui_data_window::display_registers_from):
24 Update.
25 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
26 * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>:
27 Remove.
28 * tui/tui-command.c (tui_cmd_window::resize): Update.
29
30 2019-12-26 Christian Biesinger <cbiesinger@google.com>
31
32 * ada-lang.c (ada_decode_symbol): Update.
33 * buildsym.c (add_symbol_to_list): Update.
34 * coffread.c (process_coff_symbol): Update.
35 * ctfread.c (ctf_add_enum_member_cb): Update.
36 (new_symbol): Update.
37 (ctf_add_var_cb): Update.
38 * dwarf2read.c (fixup_go_packaging): Update.
39 (dwarf2_compute_name): Update.
40 (new_symbol): Update.
41 * jit.c (finalize_symtab): Update.
42 * language.c (language_alloc_type_symbol): Update.
43 * mdebugread.c (new_symbol): Update.
44 * minsyms.c (minimal_symbol_reader::record_full): Update.
45 (minimal_symbol_reader::install): Update.
46 * psymtab.c (print_partial_symbols): Update.
47 (psymbol_hash): Update.
48 (psymbol_compare): Update.
49 (add_psymbol_to_bcache): Update.
50 (maintenance_check_psymtabs): Update.
51 * stabsread.c (define_symbol): Update.
52 * symtab.c (symbol_set_names): Rename to...
53 (general_symbol_info::compute_and_set_names): ...this.
54 (general_symbol_info::natural_name): Update.
55 (general_symbol_info::search_name): Update.
56 (fixup_section): Update.
57 * symtab.h (struct general_symbol_info) <name>: Rename to...
58 <m_name>: ...this.
59 <compute_and_set_names>: Rename from...
60 (symbol_set_names): ...this.
61 (SYMBOL_SET_NAMES): Remove.
62 (struct symbol) <ctor>: Update.
63
64 2019-12-26 Christian Biesinger <cbiesinger@google.com>
65
66 * NEWS: Mention that multithreaded symbol loading is now on by
67 default.
68
69 2019-12-26 Ruslan Kabatsayev <b7.10110111@gmail.com>
70
71 * dwarf2read.c (is_valid_DW_AT_defaulted)
72 (is_valid_DW_AT_calling_convention_for_type)
73 (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
74 ULONGEST variables on x86-32.
75
76 2019-12-21 George Barrett <bob@bob131.so>
77
78 * solib-svr4.c (svr4_handle_solib_event): Add fallback link
79 namespace test for when the debug struct isn't available.
80
81 2019-12-21 Eli Zaretskii <eliz@gnu.org>
82
83 * top.c (print_gdb_configuration): Print "--with-xxhash" or
84 "--without-xxhash" according to HAVE_LIBXXHASH.
85
86 2019-12-20 Weimin Pan <weimin.pan@oracle.com>
87 * ctfread.c (ctf_file_key): Change type to objfile_key.
88 (struct ctf_context): Remove typedef.
89 (get_objfile_text_range): Use ANOFFSET to get text base.
90
91 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
92
93 * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
94 New function.
95 (read_subroutine_type): Validate the parsed
96 DW_AT_calling_convention value before assigning it to a
97 subroutine's calling_convention attribute.
98 * gdbtypes.h (struct func_type) <calling_convention>: Use
99 an enum bitfield as its type, instead of plain unsigned.
100
101 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
102
103 PR gdb/25054
104 * infcall.c (call_function_by_hand_dummy): Update the argument-
105 passing section for call-by-value parameters.
106 (struct destructor_info): New struct.
107 (call_destructors): New auxiliary function.
108
109 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
110
111 * gnu-v3-abi.c (enum definition_style): New enum type.
112 (get_def_style): New function.
113 (is_user_provided_def): New function.
114 (is_implicit_def): New function.
115 (is_copy_or_move_constructor_type): New function.
116 (is_copy_constructor_type): New function.
117 (is_move_constructor_type): New function.
118 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
119 for a given type.
120
121 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
122
123 * language.h (struct language_pass_by_ref_info): New struct.
124 (struct language_defn)<la_pass_by_reference>: Change the signature
125 to return a language_pass_by_ref_info instead of an int.
126 (language_pass_by_reference): Ditto.
127 (default_pass_by_reference): Ditto.
128 Adjust the users listed below.
129 * arch-utils.c (default_return_in_first_hidden_param_p):
130 Update.
131 * cp-abi.c (cp_pass_by_reference): Update.
132 * cp-abi.h (cp_pass_by_reference): Update declaration.
133 (struct cp_abi_ops)<pass_by_reference>: Update.
134 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
135 * infcall.c (call_function_by_hand_dummy): Update.
136 * language.c (language_pass_by_reference): Update.
137 (default_pass_by_reference): Update.
138 * tic6x-tdep.c (tic6x_return_value): Update.
139
140 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
141
142 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
143 and DW_AT_deleted attributes of a function.
144 (read_structure_type): Read the DW_AT_calling_convention attribute
145 of a type.
146 (is_valid_DW_AT_defaulted): New function.
147 (is_valid_DW_AT_calling_convention_for_type): New function.
148 * gdbtypes.h: Include dwarf2.h.
149 (struct fn_field)<defaulted>: New field to store the
150 DW_AT_defaulted attribute.
151 (struct fn_field)<is_deleted>: New field to store the
152 DW_AT_deleted attribute.
153 (struct cplus_struct_type)<calling_convention>: New field to store
154 the DW_AT_calling_convention attribute.
155 (TYPE_FN_FIELD_DEFAULTED): New macro.
156 (TYPE_FN_FIELD_DELETED): New macro.
157 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
158 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
159 to the .h file.
160 (print_cplus_stuff): Likewise.
161
162 2019-12-20 Tom Tromey <tom@tromey.com>
163
164 * tui/tui.c (tui_show_source): Remove.
165 * tui/tui.h (tui_show_source): Don't declare.
166 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
167 tui_show_source.
168
169 2019-12-20 Tom Tromey <tom@tromey.com>
170
171 * tui/tui-stack.h (tui_show_frame_info): Return bool.
172 * tui/tui-stack.c (tui_show_frame_info): Return bool.
173 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
174 Update.
175
176 2019-12-20 Tom Tromey <tom@tromey.com>
177
178 PR tui/18932:
179 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
180 Rename parameters. Handle the not-from-stack-frame case.
181 (from_stack, from_source_symtab): New globals.
182 (tui_before_prompt, tui_normal_stop): Update.
183 (tui_context_changed, tui_symtab_changed): New functions.
184 (tui_attach_detach_observers): Attach new observers.
185
186 2019-12-20 Tom Tromey <tom@tromey.com>
187
188 * source.c (struct current_source_location) <set, symtab, line>:
189 New methods.
190 <m_symtab, m_line>: Rename. Now private.
191 (get_current_source_symtab_and_line)
192 (set_default_source_symtab_and_line)
193 (set_current_source_symtab_and_line)
194 (clear_current_source_symtab_and_line, select_source_symtab)
195 (info_source_command, print_source_lines_base)
196 (info_line_command, search_command_helper): Update.
197 * observable.h (current_source_symtab_and_line_changed): Declare
198 observable.
199 * observable.c (current_source_symtab_and_line_changed): Define
200 observable.
201
202 2019-12-20 Tom Tromey <tom@tromey.com>
203
204 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
205 (tui_before_prompt, tui_normal_stop): Update.
206
207 2019-12-20 Tom Tromey <tom@tromey.com>
208
209 * tui/tui-winsource.c
210 (tui_source_window_base::update_source_window_as_is): Don't call
211 set_current_source_symtab_and_line.
212
213 2019-12-20 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
216 Take a symtab_and_line.
217 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
218 symtab_and_line.
219 (tui_show_frame_info): Update.
220
221 2019-12-20 Tom Tromey <tom@tromey.com>
222
223 * tui/tui-stack.c (tui_show_frame_info): Don't call
224 update_exec_info.
225
226 2019-12-20 Tom Tromey <tom@tromey.com>
227
228 * tui/tui.c (tui_enable): Call tui_display_main.
229
230 2019-12-20 Tom Tromey <tom@tromey.com>
231
232 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
233 get_current_source_symtab_and_line, and main_name.
234
235 2019-12-20 Tom Tromey <tom@tromey.com>
236
237 * tui/tui.c (tui_show_source): Update.
238 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
239 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
240 a symtab_symbol_info, not a separate symtab and line. Simplify.
241
242 2019-12-20 Tom Tromey <tom@tromey.com>
243
244 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
245 Simplify.
246
247 2019-12-20 Tom Tromey <tom@tromey.com>
248
249 * tui/tui-winsource.h (struct tui_source_window_base)
250 <set_contents, update_source_window_as_is, update_source_window>:
251 Take a sal, not a separate symtab and tui_line_or_address.
252 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
253 (tui_source_window_base::update_source_window_as_is): Take a sal,
254 not a separate symtab and tui_line_or_address.
255 (tui_update_source_windows_with_addr)
256 (tui_update_source_windows_with_line)
257 (tui_source_window_base::rerender)
258 (tui_source_window_base::refill): Update.
259 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
260 a sal, not a separate symtab and tui_line_or_address.
261 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
262 not a separate symtab and tui_line_or_address.
263 (tui_source_window::maybe_update): Update.
264 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
265 a sal, not a separate symtab and tui_line_or_address.
266 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
267 not a separate symtab and tui_line_or_address.
268 (tui_disasm_window::do_scroll_vertical)
269 (tui_disasm_window::maybe_update): Update.
270
271 2019-12-20 Tom Tromey <tom@tromey.com>
272
273 * tui/tui-winsource.c (tui_source_window_base::refill): Use
274 start_line_or_addr.
275 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
276 start_line_or_addr.
277 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
278 start_line_or_addr.
279
280 2019-12-20 Tom Tromey <tom@tromey.com>
281
282 * tui/tui-winsource.h (struct tui_source_window_base)
283 <set_contents>: Return bool.
284 * tui/tui-winsource.c
285 (tui_source_window_base::update_source_window_as_is): Update.
286 * tui/tui-source.h (struct tui_source_window) <set_contents>:
287 Return bool.
288 * tui/tui-source.c (tui_source_window::set_contents): Return
289 bool. Simplify.
290 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
291 Return bool.
292 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
293 bool.
294
295 2019-12-20 Tom Tromey <tom@tromey.com>
296
297 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
298 (tui_update_source_windows_with_line): Call update_source_window.
299 * tui/tui-source.h (struct tui_source_window)
300 <show_symtab_source>: Don't declare.
301 * tui/tui-source.c (tui_source_window::show_symtab_source):
302 Remove.
303
304 2019-12-20 Tom Tromey <tom@tromey.com>
305
306 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
307 update_source_window directly.
308 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
309 * tui/tui-disasm.c (tui_show_disassem): Remove.
310
311 2019-12-20 Tom Tromey <tom@tromey.com>
312
313 * tui/tui-winsource.c
314 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
315 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
316
317 2019-12-20 Tom Tromey <tom@tromey.com>
318
319 * tui/tui-winsource.h (struct tui_source_window_base)
320 <maybe_update>: Remove line_no and addr parameters.
321 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
322 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
323 Update.
324 * tui/tui-source.c (tui_source_window::maybe_update): Remove
325 line_no and addr parameters.
326 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
327 Update.
328 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
329 line_no and addr parameters.
330
331 2019-12-20 Tom Tromey <tom@tromey.com>
332
333 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
334 (tui_source_window_base::update_breakpoint_info): Remove asserts.
335
336 2019-12-20 Tom Tromey <tom@tromey.com>
337
338 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
339 tui_show_disassem.
340 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
341 declare.
342 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
343
344 2019-12-20 Tom Tromey <tom@tromey.com>
345
346 * tui/tui.h (tui_show_source): Remove parameters.
347 * tui/tui.c (tui_show_source): Remove parameters.
348 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
349
350 2019-12-20 Tom Tromey <tom@tromey.com>
351
352 * tui/tui.c (tui_show_source): Update.
353 * tui/tui-winsource.c (tui_display_main): Update.
354 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
355 to symtab.
356 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
357 to symtab.
358 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
359
360 2019-12-20 Tom Tromey <tom@tromey.com>
361
362 PR tui/23619:
363 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
364 (tui_redisplay_readline): Use rl_display_prompt.
365 (tui_prep_terminal): Update.
366
367 2019-12-19 Christian Biesinger <cbiesinger@google.com>
368
369 * configure: Regenerate.
370 * configure.ac: Quote variable arguments of test.
371 * gdbsupport/common.m4: Likewise.
372
373 2019-12-19 Christian Biesinger <cbiesinger@google.com>
374
375 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
376 2 to pow ().
377
378 2019-12-19 Christian Biesinger <cbiesinger@google.com>
379
380 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
381 log10 to double to fix Solaris 11 with gcc 5.5.
382
383 2019-12-19 Christian Biesinger <cbiesinger@google.com>
384
385 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
386 "sun" to "saddr_un".
387
388 2019-12-19 Tom Tromey <tromey@adacore.com>
389
390 * ui-out.h (enum class field_kind): Fix comment.
391
392 2019-12-11 Tom Tromey <tromey@adacore.com>
393
394 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
395
396 2019-12-18 Tom Tromey <tromey@adacore.com>
397
398 PR build/25268:
399 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
400 type on macOS. Add comment.
401
402 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
403
404 * c-lang.c (c_get_string, asm_language_defn): Remove space
405 before tab.
406
407 2019-12-18 Tom Tromey <tromey@adacore.com>
408
409 PR build/25250:
410 * ui-out.c (ui_out::vmessage): Update.
411 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
412 Rename.
413 (string_field): Update.
414 (signed_field): Update.
415
416 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
417
418 * top.c (print_gdb_configuration): Adjust indentation.
419
420 2019-12-17 Christian Biesinger <cbiesinger@google.com>
421
422 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
423
424 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * tui/tui-layout.h (class tui_layout_base): Add virtual
427 destructor.
428
429 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
430
431 * infcmd.c (prepare_one_step): Step over skipped inline functions.
432 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
433 (process_event_stop_test): Keep stepping over skipped inline functions.
434
435 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
436
437 * jit.c (struct gdb_block) <next>: Remove field.
438 (struct gdb_symtab) <~gdb_symtab>: Remove.
439 <blocks>: Change type to std::forward_list<gdb_block>.
440 (compare_block): Remove.
441 (jit_block_open_impl): Adjust to std::forward_list. Place the new
442 block at the beginning, don't mind about sorting.
443 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
444 before using it.
445
446 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * jit.c (struct gdb_block): Add constructor, initialize
449 real_block and next fields.
450 <name>: Change type to gdb::unique_xmalloc_ptr.
451 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
452 (jit_block_open_impl): Allocate gdb_block with new.
453 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
454
455 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
456
457 * jit.c: Include forward_list.
458 (struct gdb_symtab) <next>: Remove field.
459 (struct gdb_object) <symtabs>: Change type to
460 std::forward_list<gdb_symtab>.
461 (jit_object_open_impl): Allocate gdb_object with new.
462 (jit_symtab_open_impl): Adjust to std::forward_list.
463 (finalize_symtab): Don't delete symtab.
464 (jit_object_close_impl): Adjust to std::forward_list. Free
465 gdb_object with delete.
466
467 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * jit.c (struct gdb_symtab): Add constructor, destructor,
470 initialize fields.
471 <linetable>: Change type to unique_xmalloc_ptr.
472 <file_name>: Change type to std::string.
473 (jit_symtab_open_impl): Allocate gdb_symtab with new.
474 (jit_symtab_line_mapping_add_impl): Adjust.
475 (finalize_symtab): Adjust, call delete on stab.
476
477 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
478
479 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
480
481 2019-12-16 Tom Tromey <tromey@adacore.com>
482
483 * windows-nat.c (windows_nat_target::attach): Update.
484 * remote.c (extended_remote_target::attach): Update.
485 * procfs.c (procfs_target::attach): Update.
486 * nto-procfs.c (nto_procfs_target::attach): Update.
487 (nto_procfs_target::create_inferior): Update.
488 * inf-ptrace.c (inf_ptrace_target::attach): Update.
489 * gnu-nat.c (gnu_nat_target::attach): Update.
490 (gnu_nat_target::detach): Update.
491 * darwin-nat.c (darwin_nat_target::attach): Update.
492 * corefile.c (get_exec_file): Constify result. Remove extraneous
493 return.
494 * bsd-kvm.c (bsd_kvm_target_open): Update.
495 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
496
497 2019-12-16 Christian Biesinger <cbiesinger@google.com>
498
499 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
500 (we no longer need to include time.h before pathmax.h)
501
502 2019-12-15 Christian Biesinger <cbiesinger@google.com>
503
504 * ada-exp.y (write_ambiguous_var): Update.
505 * coffread.c (process_coff_symbol): Update.
506 * ctfread.c (ctf_add_enum_member_cb): Update.
507 (new_symbol): Update.
508 * dwarf2read.c (fixup_go_packaging): Update.
509 (new_symbol): Update.
510 * language.c (language_alloc_type_symbol): Update.
511 * mdebugread.c (new_symbol): Update.
512 * minsyms.c (minimal_symbol_reader::record_full): Update.
513 * psymtab.c (add_psymbol_to_bcache): Update.
514 * stabsread.c (define_symbol): Update.
515 (read_enum_type): Update.
516 * symtab.c (symbol_set_language): Make this a member function...
517 (general_symbol_info::set_language): ... here.
518 * symtab.h (struct general_symbol_info) <set_language>: New function.
519 (SYMBOL_SET_LANGUAGE): Remove.
520 (symbol_set_language): Remove.
521
522 2019-12-15 Christian Biesinger <cbiesinger@google.com>
523
524 * ada-lang.c (ada_add_block_symbols): Update.
525 (ada_collect_symbol_completion_matches): Update.
526 * ax-gdb.c (gen_expr): Update.
527 * block.c (block_lookup_symbol): Update.
528 (block_lookup_symbol_primary): Update.
529 (block_find_symbol): Update.
530 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
531 * dbxread.c (process_one_symbol): Update.
532 * dictionary.c (insert_symbol_hashed): Update.
533 (collate_pending_symbols_by_language): Update.
534 (mdict_add_symbol): Update.
535 * dwarf-index-write.c (write_psymbols): Update.
536 * dwarf2read.c (fixup_go_packaging): Update.
537 * findvar.c (read_var_value): Update.
538 * ft32-tdep.c (ft32_skip_prologue): Update.
539 * go-lang.c (go_symbol_package_name): Update.
540 * language.h (scoped_switch_to_sym_language_if_auto::
541 scoped_switch_to_sym_language_if_auto): Update.
542 * linespec.c (find_method): Update.
543 (find_label_symbols_in_block): Update.
544 * mdebugread.c (parse_symbol): Update.
545 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
546 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
547 (minimal_symbol_reader::install): Update.
548 * moxie-tdep.c (moxie_skip_prologue): Update.
549 * parse.c (parse_exp_in_context): Update.
550 * psymtab.c (psymbol_name_matches): Update.
551 (match_partial_symbol): Update.
552 (lookup_partial_symbol): Update.
553 (psymbol_hash): Update.
554 (psymbol_compare): Update.
555 * python/py-framefilter.c (extract_sym): Update.
556 (py_print_single_arg): Update.
557 * stabsread.c (define_symbol): Update.
558 * stack.c (print_frame_arg): Update.
559 (find_frame_funname): Update.
560 (info_frame_command_core): Update.
561 * symfile.c (set_initial_language): Update.
562 * symtab.c (symbol_set_demangled_name): Update.
563 (symbol_get_demangled_name): Update.
564 (symbol_set_language): Update.
565 (symbol_find_demangled_name): Update.
566 (symbol_set_names): Update.
567 (general_symbol_info::natural_name): Update.
568 (general_symbol_info::demangled_name): Update.
569 (general_symbol_info::search_name): Update.
570 (symbol_matches_search_name): Update.
571 (eq_symbol_entry): Update.
572 (iterate_over_symbols): Update.
573 (completion_list_add_symbol): Update.
574 (completion_list_add_msymbol): Update.
575 (completion_list_add_fields): Update.
576 * symtab.h (struct general_symbol_info) <language>: New function.
577 <language>: Rename to...
578 <m_language>: ...this.
579 (SYMBOL_LANGUAGE): Remove.
580 (MSYMBOL_LANGUAGE): Remove.
581 (struct symbol) <ctor>: Update.
582 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
583
584 2019-12-15 Christian Biesinger <cbiesinger@google.com>
585
586 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
587 set the language of sym.
588 * language.c (language_alloc_type_symbol): Likewise.
589
590 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
591
592 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
593 PR gdb/23613
594 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
595 * corelow.c: Include 'gdbsupport/pathstuff.h'.
596 (core_target_open): Use 'gdb_abspath'.
597 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
598 'current_directory == NULL' case.
599 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
600 explain what happens when 'current_directory' is NULL.
601 * go32-nat.c (go32_nat_target::wait): Check if
602 'current_directory' is NULL before call to 'chdir'.
603 * source.c (add_path): Use 'gdb_abspath'.
604 * top.c: Include 'gdbsupport/pathstuff.h'.
605 (init_history): Use 'gdb_abspath'.
606 (set_history_filename): Likewise.
607 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
608 (tfile_target_open): Use 'gdb_abspath'.
609
610 2019-12-13 Tom Tromey <tromey@adacore.com>
611
612 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
613 warning or error.
614
615 2019-12-13 Tom Tromey <tromey@adacore.com>
616
617 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
618
619 2019-12-13 Tom Tromey <tromey@adacore.com>
620
621 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
622
623 2019-12-13 Tom Tromey <tromey@adacore.com>
624
625 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
626
627 2019-12-13 Tom Tromey <tromey@adacore.com>
628
629 * gdbsupport/common-utils.c (string_printf, string_vprintf)
630 (string_vappendf): Add ARI comment.
631
632 2019-12-13 Tom Tromey <tromey@adacore.com>
633
634 * contrib/ari/gdb_ari.sh: Remove "fix" call for
635 floatformat_to_double.
636 * target-float.c (host_float_ops<T>::from_target): Add ARI
637 comment.
638
639 2019-12-13 Tom Tromey <tromey@adacore.com>
640
641 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
642 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
643 ARI marker to abort.
644 * event-top.c (handle_sigsegv): Add ARI marker to abort.
645
646 2019-12-13 Tom Tromey <tromey@adacore.com>
647
648 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
649
650 2019-12-13 Tom Tromey <tromey@adacore.com>
651
652 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
653
654 2019-12-13 Tom Tromey <tromey@adacore.com>
655
656 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
657 checks.
658
659 2019-12-13 Tom Tromey <tromey@adacore.com>
660
661 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
662 end>: No longer "const".
663
664 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * jit.c: Fix indentation, replace spaces with tabs where
667 applicable.
668
669 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
670
671 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
672
673 2019-12-12 Tom Tromey <tom@tromey.com>
674
675 * objfiles.h (struct objfile) <partial_symtabs>: Now a
676 unique_ptr.
677
678 2019-12-12 Tom Tromey <tom@tromey.com>
679
680 * progspace.h (objfile_list): New typedef.
681 (class unwrapping_objfile_iterator)
682 (struct unwrapping_objfile_range): Newl
683 (struct program_space) <objfiles_range>: Change type.
684 <objfiles>: Change return type.
685 <add_objfile>: Change type of "objfile" parameter.
686 <objfiles_list>: Now a list of shared_ptr.
687 * progspace.c (program_space::add_objfile): Change type of
688 "objfile". Update.
689 (program_space::remove_objfile): Update.
690 * objfiles.h (struct objfile) <~objfile>: Make public.
691 * objfiles.c (objfile::make): Update.
692 (objfile::unlink): Don't call delete.
693
694 2019-12-12 Tom Tromey <tom@tromey.com>
695
696 * symfile.c (symbol_file_clear): Update.
697 * progspace.h (struct program_space) <free_all_objfiles>: Declare
698 method.
699 * progspace.c (program_space::free_all_objfiles): New method.
700 * objfiles.h (free_all_objfiles): Don't declare.
701 * objfiles.c (free_all_objfiles): Move to program_space.
702
703 2019-12-12 Tom Tromey <tom@tromey.com>
704
705 * progspace.c (program_space::add_objfile)
706 (program_space::remove_objfile): Update.
707 (program_space::multi_objfile_p): Remove.
708 * objfiles.h (struct objfile) <next>: Remove.
709 * objfiles.c (objfile::objfile): Update.
710 (put_objfile_before): Update.
711 (unlink_objfile): Update.
712 * progspace.h (object_files): Remove.
713 (struct program_space) <objfiles_head>: Remove.
714 <objfiles_list>: New member.
715 <objfiles_range, objfiles_safe_range>: Change type.
716 (objfiles): Change return type.
717 (objfiles_safe): Update.
718 (multi_objfile_p): Rewrite and inline.
719 (object_files): Remove macro.
720
721 2019-12-12 Tom Tromey <tom@tromey.com>
722
723 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
724 second constructor.
725 (basic_safe_range): New class.
726
727 2019-12-12 Tom Tromey <tom@tromey.com>
728
729 * progspace.c (program_space::multi_objfile_p): New method.
730 * printcmd.c (info_symbol_command): Update.
731 * maint.c (maintenance_translate_address): Update.
732 * objfiles.h (MULTI_OBJFILE_P): Remove.
733 * progspace.h (struct program_space) <multi_objfile_p>: New
734 method.
735
736 2019-12-12 Tom Tromey <tom@tromey.com>
737
738 * progspace.h (struct program_space) <remove_objfile>: Declare.
739 * progspace.c (program_space::remove_objfile): New method.
740 * objfiles.c (unlink_objfile): Remove.
741 (objfile::unlink): Call remove_objfile.
742 (objfile): Don't call unlink_objfile.
743
744 2019-12-12 Tom Tromey <tom@tromey.com>
745
746 * progspace.h (struct program_space) <add_objfile>: Declare
747 method.
748 * progspace.c (program_space::add_objfile): New method.
749 * objfiles.c (~objfile): Don't unlink objfile.
750 (put_objfile_before): Remove.
751 (add_separate_debug_objfile): Don't call put_objfile_before.
752 (objfile::make): Call add_objfile. Set new_objfiles_available on
753 the per-program-space data.
754
755 2019-12-12 Tom Tromey <tom@tromey.com>
756
757 * symfile.c (syms_from_objfile_1): Use objfile_up.
758 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
759 method.
760 (reread_symbols): Use objfile_up.
761 * solib.c (update_solib_list, reload_shared_libraries_1): Call
762 unlink method.
763 * objfiles.h (struct objfile) <~objfile>: Now private.
764 <unlink>: New method.
765 (struct objfile_deleter): New.
766 (objfile_up): New typedef.
767 * objfiles.c (objfile::unlink): New method.
768 (free_objfile_separate_debug, free_all_objfiles)
769 (objfile_purge_solibs): Use it.
770 * jit.c (jit_unregister_code): Remove.
771 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
772 objfile.
773 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
774 objfile.
775 * compile/compile-object-load.c (compile_object_load): Use
776 objfile_up.
777
778 2019-12-12 Tom Tromey <tom@tromey.com>
779
780 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
781 objfile::make.
782 * objfiles.h (struct objjfile) <make>: No longer inline.
783 (add_separate_debug_objfile): Don't declare.
784 * objfiles.c (add_separate_debug_objfile): Now static.
785 (objfile::make): Move from objfiles.h. Call
786 add_separate_debug_objfile. Add "parent" parameter.
787
788 2019-12-12 Tom Tromey <tom@tromey.com>
789
790 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
791 * objfiles.h (struct objfile): Make constructor private.
792 <make>: New static method.
793 * jit.c (jit_object_close_impl): Update.
794
795 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
798 gdb::byte_vector.
799
800 2019-12-12 Tom Tromey <tromey@adacore.com>
801
802 * xml-support.c (xml_fetch_content_from_file): Don't call
803 malloc_failure.
804 * utils.h (class gdb_argv): Remove malloc_failure comment.
805 * utils.c (gdb_argv::reset): Don't call malloc_failure.
806
807 2019-12-12 Tom Tromey <tromey@adacore.com>
808
809 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
810 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
811 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
812 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
813 * riscv-ravenscar-thread.c: New file.
814 * riscv-ravenscar-thread.h: New file.
815 * riscv-tdep.c (riscv_gdbarch_init): Call
816 register_riscv_ravenscar_ops.
817
818 2019-12-12 Tom Tromey <tromey@adacore.com>
819
820 * gdbsupport/thread-pool.c (set_thread_name): Use
821 ATTRIBUTE_UNUSED.
822
823 2019-12-12 Luis Machado <luis.machado@linaro.org>
824
825 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
826 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
827 macros.
828
829 2019-12-11 Tom Tromey <tom@tromey.com>
830
831 * tui/tui-win.c (tui_set_win_height_command): Call
832 tui_adjust_window_height.
833 (tui_adjust_win_heights, new_height_ok): Remove.
834 * tui/tui-layout.h (tui_adjust_window_height): Declare.
835 * tui/tui-layout.c (tui_adjust_window_height): New function.
836
837 2019-12-11 Tom Tromey <tom@tromey.com>
838
839 * tui/tui-win.c (tui_resize_all): Remove code, call
840 tui_apply_current_layout.
841
842 2019-12-11 Tom Tromey <tom@tromey.com>
843
844 * tui/tui-layout.h (tui_apply_current_layout): Declare.
845 * tui/tui-layout.c (standard_layouts, applied_layout): New
846 globals.
847 (tui_apply_current_layout): New function.
848 (show_layout): Set applied_layout. Call
849 tui_apply_current_layout.
850 (show_source_command, show_disasm_command)
851 (show_source_disasm_command, show_data)
852 (show_source_or_disasm_and_command): Remove.
853 (initialize_layouts): New function.
854 (_initialize_tui_layout): Call initialize_layouts.
855
856 2019-12-11 Tom Tromey <tom@tromey.com>
857
858 * tui/tui-layout.h (class tui_layout_base)
859 (class tui_layout_window, class tui_layout_split): New.
860 * tui/tui-layout.c (tui_get_window_by_name)
861 (tui_layout_window::clone, tui_layout_window::apply)
862 (tui_layout_window::get_sizes, tui_layout_window::add_split)
863 (tui_layout_split::add_window, tui_layout_split::clone)
864 (tui_layout_split::get_sizes)
865 (tui_layout_split::set_weights_from_heights)
866 (tui_layout_split::adjust_size, tui_layout_split::apply): New
867 functions.
868 (tui_layout_split::add_split, tui_layout_split::add_split)
869 (tui_layout_split::set_weights_from_heights)
870 (tui_layout_split::set_weights_from_heights): New functions.
871
872 2019-12-11 Tom Tromey <tom@tromey.com>
873
874 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
875 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
876 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
877 * tui/tui-data.h (struct tui_point): Remove.
878 (struct tui_gen_win_info) <origin>: Remove.
879 <x, y>: New fields.
880 * tui/tui-command.c (tui_cmd_window::resize): Update.
881
882 2019-12-11 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
885 Implement.
886 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
887 Implement.
888 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
889 method.
890 (struct tui_win_info) <min_height>: Implement.
891
892 2019-12-11 Tom Tromey <tom@tromey.com>
893
894 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
895 (struct tui_win_info) <can_box>: Update.
896
897 2019-12-11 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
900 method.
901 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
902 method.
903 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
904 method.
905 (struct tui_win_info) <max_height>: Now override.
906
907 2019-12-11 Joel Brobecker <brobecker@adacore.com>
908
909 * NEWS: Create a new section for the next release branch.
910 Rename the section of the current branch, now that it has
911 been cut.
912
913 2019-12-11 Joel Brobecker <brobecker@adacore.com>
914
915 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
916 * version.in: Bump version to 10.0.50.DATE-git.
917
918 2019-12-11 Tom Tromey <tromey@adacore.com>
919
920 PR build/25268:
921 * gdbsupport/thread-pool.c (set_thread_name): New function.
922 (thread_pool::set_thread_count): Don't call pthread_setname_np.
923 (thread_pool::thread_function): Call set_thread_name.
924
925 2019-12-11 Tom Tromey <tromey@adacore.com>
926
927 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
928 bfd_get_signed_8.
929
930 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
931
932 * NEWS: Document -raw-values option and the related setting commands.
933 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
934 only set it on when /r is given.
935 * valprint.c (value_print_option_defs): New element raw-values.
936 * Makefile.in: Add the new file.
937
938 2019-12-10 Christian Biesinger <cbiesinger@google.com>
939
940 * gdbsupport/safe-strerror.c: Supress the unused function warning
941 for select_strerror_r.
942
943 2019-12-10 Christian Biesinger <cbiesinger@google.com>
944
945 * config.in: Regenerate.
946 * configure: Regenerate.
947 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
948 safe_strerror instead of strerror.
949 * gdbsupport/common.m4: Don't check for strerror.
950 * gdbsupport/safe-strerror.c: Support both the glibc version
951 of strerror_r and the XSI version.
952
953 2019-12-10 Tom Tromey <tromey@adacore.com>
954
955 * ada-typeprint.c (print_choices): Use a single "?".
956 (print_variant_part): Print "?" if the discriminant name
957 is not known.
958
959 2019-12-10 George Barrett <bob@bob131.so>
960
961 Fix scripted probe breakpoints.
962 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
963 declaration forward.
964 (breakpoint_ops_for_event_location_type)
965 (breakpoint_ops_for_event_location): Add function definitions.
966 (break_command_1, trace_command): Use
967 breakpoint_ops_for_event_location.
968 * breakpoint.h (breakpoint_ops_for_event_location): Add function
969 declarations.
970 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
971 breakpoint_ops_for_event_location.
972 * python/py-breakpoint.c (bppy_init): Use
973 breakpoint_ops_for_event_location.
974
975 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
978 when ranking an lvalue argument for an rvalue parameter.
979
980 2019-12-08 Wataru Ashihara <wataash@wataash.com>
981
982 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
983 template argument for scoped_restore_tmpl from bool to int.
984
985 2019-12-07 Keith Seitz <keiths@redhat.com>
986
987 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
988 (build_id_to_debug_bfd): Make static, rewriting to use
989 build_id_to_bfd_suffix.
990 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
991 adding `suffix' parameter. Append SUFFIX to file names
992 when searching for matching files.
993 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
994 (build_id_to_exec_bfd): Likewise.
995 * build-id.h (build_id_to_debug_bfd): Clarify that function
996 searches for BFD of debug info file.
997 (build_id_to_exec_bfd): Declare.
998 * corelow.c: Include build-id.h.
999 (locate_exec_from_corefile_build_id): New function.
1000 (core_target_open): If no executable BFD is found,
1001 search for a core file BFD using build-id.
1002
1003 2019-12-06 Christian Biesinger <cbiesinger@google.com>
1004
1005 * bcache.c: Put in namespace gdb.
1006 * bcache.h: Likewise.
1007 * gdbtypes.c (check_types_worklist): Update.
1008 (types_deeply_equal): Update.
1009 * macrotab.c (struct macro_table) <bcache>: Update.
1010 (new_macro_table): Update.
1011 * macrotab.h (struct bcache): Put this forward declaration
1012 inside namespace gdb.
1013 (new_macro_table): Update.
1014 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
1015 Update.
1016 <macro_cache>: Update.
1017 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
1018
1019 2019-12-06 Tom de Vries <tdevries@suse.de>
1020
1021 PR symtab/24971
1022 * block.c (best_symbol, better_symbol): New function.
1023 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
1024 decl.
1025
1026 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1027
1028 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
1029 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
1030 for ranking see-through reference cases.
1031
1032 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1033 * stack.c (faas_command): Check a command is provided.
1034 * thread.c (taas_command, tfaas_command): Likewise.
1035
1036 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1037 * inferior.c (prune_inferiors): Only call delete_inferior,
1038 Do not modify the inferior list.
1039
1040 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1041
1042 * c-exp.y: Update calls to lookup_typename,
1043 lookup_signed_typename and lookup_unsigned_typename.
1044 * c-lang.c (evaluate_subexp_c): Likewise.
1045 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
1046 Likewise.
1047 * eval.c (binop_promote): Likewise.
1048 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
1049 (lookup_unsigned_typename): Likewise.
1050 (lookup_signed_typename): Likewise.
1051 * gdbtypes.h (lookup_unsigned_typename): Likewise.
1052 (lookup_signed_typename): Likewise.
1053 (lookup_typename): Likewise.
1054 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
1055 lookup_typename, lookup_signed_typename,
1056 lookup_unsigned_typename.
1057 * m2-exp.y: Likewise.
1058 * printcmd.c (printf_wide_c_string): Likewise.
1059 (ui_printf): Likewise.
1060 * python/py-type.c (typy_lookup_typename): Likewise.
1061 * python/py-xmethods.c (python_xmethod_worker::invoke):
1062 Likewise.
1063 * rust-exp.y: Likewise.
1064
1065 2019-12-04 Christian Biesinger <cbiesinger@google.com>
1066
1067 * configure.nat (obsd64): Add missing files x86-nat.o and
1068 nat/x86-dregs.o.
1069
1070 2019-12-04 Tom Tromey <tom@tromey.com>
1071
1072 * valprint.c (val_print_string): Use metadata_style.
1073 * go-valprint.c (print_go_string): Use metadata style.
1074 * p-valprint.c (pascal_object_print_static_field): Use metadata
1075 style.
1076 * cp-valprint.c (cp_print_static_field): Use metadata style.
1077
1078 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1079 Chris January <chris.january@arm.com>
1080
1081 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
1082 tokens.
1083 (typebase): New patterns for complex, single/double precision, and
1084 single/double complex.
1085 (f77_keywords): Change token for complex keyword, and add single,
1086 double, and precision keywords.
1087
1088 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
1091 "info io_registers".
1092
1093 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1094
1095 * regcache.c (cooked_read_test): Initialize thread list of
1096 mock_inferior.
1097
1098 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * aarch64-linux-tdep.c: Remove includes.
1101
1102 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * aarch64-tdep.c: Remove includes.
1105
1106 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
1107
1108 * filtered-iterator.h (filtered_iterator) <operator==,
1109 operator!=>: Compare wrapped iterators, not wrapped pointers.
1110 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1111 unittests/filtered_iterator-selftests.c.
1112 * unittests/filtered_iterator-selftests.c: New file.
1113
1114 2019-12-04 Tom Tromey <tromey@adacore.com>
1115
1116 * gdbtypes.c (create_range_type): Inherit endianity
1117 from base type.
1118
1119 2019-12-04 Tom Tromey <tromey@adacore.com>
1120
1121 * ada-lang.c (decode_constrained_packed_array)
1122 (ada_value_assign, value_assign_to_component): Update.
1123 * dwarf2loc.c (rw_pieced_value, access_memory)
1124 (dwarf2_compile_expr_to_ax): Update.
1125 * dwarf2read.c (dwarf2_add_field): Update.
1126 * eval.c (evaluate_subexp_standard): Update.
1127 * gdbarch.c, gdbarch.h: Rebuild.
1128 * gdbarch.sh (bits_big_endian): Remove.
1129 * gdbtypes.h (union field_location): Update comment.
1130 * target-descriptions.c (make_gdb_type): Update.
1131 * valarith.c (value_bit_index): Update.
1132 * value.c (struct value) <bitpos>: Update comment.
1133 (unpack_bits_as_long, modify_field): Update.
1134 * value.h (value_bitpos): Update comment.
1135
1136 2019-12-04 Tom Tromey <tromey@adacore.com>
1137
1138 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1139 endian-ness.
1140
1141 2019-12-04 Tom Tromey <tromey@adacore.com>
1142
1143 * dwarf2read.c (dwarf2_init_float_type)
1144 (dwarf2_init_complex_target_type): Add byte_order parameter.
1145 (read_base_type): Compute byte order earlier.
1146 * gdbtypes.c (init_float_type): Add byte_order parameter.
1147 * gdbtypes.h (init_float_type): Add byte_order parameter.
1148
1149 2019-12-04 Tom Tromey <tromey@adacore.com>
1150
1151 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1152
1153 2019-12-04 Tom Tromey <tromey@adacore.com>
1154
1155 * dwarf2read.c (process_structure_scope): Initialize
1156 "discr_offset".
1157
1158 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1161 add it into the search spec.
1162 (parse_max_results_option): New function.
1163 (mi_info_functions_or_variables): Parse -max-results flag and pass
1164 it to mi_symbol_info.
1165 (mi_cmd_symbol_info_modules): Likewise.
1166 (mi_cmd_symbol_info_types): Likewise.
1167 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1168 return type to bool, change result container into a set, and don't
1169 add new results if we have enough already.
1170 (global_symbol_searcher::add_matching_msymbols): Change return
1171 type to bool, and don't add new results if we have enough already.
1172 (sort_search_symbols_remove_dups): Delete.
1173 (global_symbol_searcher::search): Early exit from search loop when
1174 we have enough results. Use a std::set to collect the results
1175 from calling add_matching_symbols.
1176 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1177 member function.
1178 (global_symbol_searcher) <m_max_search_results>: New member
1179 variable.
1180 (global_symbol_searcher) <add_matching_symbols>: Update header
1181 comment and change return type to bool.
1182 (global_symbol_searcher) <add_matching_msymbols>: Update header
1183 comment and change return type to bool.
1184
1185 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * symtab.c (symbol_search::compare_search_syms): Update header
1188 comment.
1189 (global_symbol_searcher::is_suitable_msymbol): New function.
1190 (global_symbol_searcher::expand_symtabs): New function.
1191 (global_symbol_searcher::add_matching_symbols): New function.
1192 (global_symbol_searcher::add_matching_msymbols): New function.
1193 (global_symbol_searcher::search): Move most of the content
1194 into the new functions above, and call them as needed.
1195 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1196 function.
1197 (global_symbol_searcher) <add_matching_symbols>: New member
1198 function.
1199 (global_symbol_searcher) <add_matching_msymbols>: New member
1200 function.
1201 (global_symbol_searcher) <is_suitable_msymbol>: New member
1202 function.
1203
1204 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1207 -symbol-info-module-variables entries.
1208 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1209 (mi_cmd_symbol_info_module_variables): Declare.
1210 * mi/mi-symbol-cmds.c
1211 (module_symbol_search_iterator): New typedef.
1212 (output_module_symbols_in_single_module_and_file): New function.
1213 (output_module_symbols_in_single_module): New function.
1214 (mi_info_module_functions_or_variables): New function.
1215 (mi_cmd_symbol_info_module_functions): New function.
1216 (mi_cmd_symbol_info_module_variables): New function.
1217 * NEWS: Mention new MI command.
1218
1219 2019-12-03 Christian Biesinger <cbiesinger@google.com>
1220
1221 * bcache.c (hash): Remove.
1222 (hash_continue): Remove.
1223 * bcache.h (hash): Remove.
1224 (hash_continue): Remove.
1225 (struct bcache) <ctor>: Update.
1226 * psymtab.c (psymbol_hash): Update.
1227 * stabsread.c (hashname): Update.
1228 * utils.h (fast_hash): Add an argument for a start value,
1229 defaulting to zero.
1230
1231 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1232 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1233 (destroy_block_symbol_cache): New function.
1234 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1235 (resize_symbol_cache): Likewise.
1236
1237 2019-12-02 Tom Tromey <tom@tromey.com>
1238
1239 * unittests/tui-selftests.c (run_tests): Make conditional.
1240 (_initialize_tui_selftest): Make conditional.
1241
1242 2019-12-02 Christian Biesinger <cbiesinger@google.com>
1243
1244 * aix-thread.c (debug_aix_thread): Change type to bool.
1245
1246 2019-12-02 Luis Machado <luis.machado@linaro.org>
1247
1248 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1249
1250 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * dwarf2read.c (read_tag_string_type): Read the fields required to
1253 make a dynamic string, and possibly create a dynamic range for the
1254 string.
1255 (attr_to_dynamic_prop): Setup is_reference based on the type of
1256 attribute being processed.
1257 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1258 (resolve_dynamic_array): Rename to...
1259 (resolve_dynamic_array_or_string): ...this, update header comment,
1260 and accept TYPE_CODE_STRING.
1261 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1262
1263 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1266 of its implementation from...
1267 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1268 the new function.
1269
1270 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1273 create a range with stride where appropriate.
1274 * f-valprint.c: Include 'gdbarch.h'.
1275 (f77_print_array_1): Take the stride into account when walking the
1276 array. Also convert the stride into addressable units.
1277 * gdbtypes.c (create_range_type): Initialise the stride to
1278 constant zero.
1279 (create_range_type_with_stride): New function, initialise the
1280 range as normal, and then setup the stride.
1281 (has_static_range): Include the stride here. Also change the
1282 return type to bool.
1283 (create_array_type_with_stride): Consider the range stride if the
1284 array isn't given its own stride.
1285 (resolve_dynamic_range): Resolve the stride if needed.
1286 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1287 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1288 (TYPE_BIT_STRIDE): Define.
1289 (TYPE_ARRAY_BIT_STRIDE): Define.
1290 (create_range_type_with_stride): Declare.
1291 * valarith.c (value_subscripted_rvalue): Take range stride into
1292 account when walking the array.
1293
1294 2019-12-01 Tom Tromey <tom@tromey.com>
1295
1296 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1297 specially.
1298
1299 2019-12-01 Tom Tromey <tom@tromey.com>
1300
1301 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1302 \0.
1303 * unittests/tui-selftests.c: New file.
1304 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1305
1306 2019-12-01 Tom Tromey <tom@tromey.com>
1307
1308 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1309
1310 2019-12-01 Tom Tromey <tom@tromey.com>
1311
1312 * NEWS: Document new settings.
1313 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1314 * tui/tui-win.c (_initialize_tui_win): Add border style
1315 observers.
1316 * tui/tui-io.h (tui_apply_style): Declare.
1317 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1318 longer static.
1319 (apply_ansi_escape, tui_set_reverse_mode): Update.
1320 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1321 Add "skip_intensity" parameter.
1322 <changed>: New member.
1323 <do_set_value>: Declare.
1324 (tui_border_style, tui_active_border_style): Declare.
1325 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1326 globals.
1327 (cli_style_option): Initialize "changed".
1328 (cli_style_option::do_set_value): New function.
1329 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1330 parameter. Update.
1331 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1332 (_initialize_cli_style): Update. Create TUI border style
1333 commands.
1334
1335 2019-12-01 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1338 parameter.
1339 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1340 parameter.
1341 * tui/tui-win.h (compact_source): Declare.
1342 * tui/tui-win.c (compact_source): New global.
1343 (tui_set_compact_source, tui_show_compact_source): New functions.
1344 (_initialize_tui_win): Add "compact-source" setting.
1345 * tui/tui-source.c (tui_source_window::set_contents): Handle
1346 compact_source setting.
1347 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1348 * NEWS: Document new setting.
1349
1350 2019-11-30 Tom Tromey <tom@tromey.com>
1351
1352 * dwarf2read.c (dwarf2_add_field): Include field offset when
1353 computing variant part length.
1354
1355 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1356 * NEWS: Mention define-prefix. Tell that command names can now
1357 contain a . character.
1358
1359 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1360
1361 * command.h (valid_cmd_char_p): Declare.
1362 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1363 the check of valid command char.
1364 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1365 valid_cmd_char_p.
1366 * cli/cli-script.c (validate_comname): Likewise.
1367 * completer.c (gdb_completer_command_word_break_characters):
1368 Do not remove . from the word break char, update comments.
1369 (complete_line_internal_1): Use valid_cmd_char_p.
1370 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1371 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1372
1373 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1374
1375 * cli/cli-script.c (do_define_command): Ensure a redefined
1376 prefix command is kept as a prefix command.
1377 (define_prefix_command): New function.
1378 (show_user_1): Report user defined prefixes.
1379 (_initialize_cli_script): Create the new 'define-prefix' command.
1380 Add completers for 'define' and 'document'.
1381 * top.c (execute_command): If command is a user-defined prefix only
1382 command, report the list of commands for this prefix command.
1383
1384 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1385
1386 * valops.c (find_oload_champ): Improve debug output.
1387
1388 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1389
1390 * valops.c (find_oload_champ): Print part of debug messages
1391 before the badness vector is std::move'd.
1392
1393 2019-11-28 Tom Tromey <tom@tromey.com>
1394
1395 * value.c (creal_internal_fn): Fix comment.
1396
1397 2019-11-28 Tom Tromey <tom@tromey.com>
1398
1399 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1400 flag_bound_evaluated>: Now unsigned.
1401
1402 2019-11-28 Tom Tromey <tom@tromey.com>
1403
1404 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1405 declare.
1406
1407 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1408
1409 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1410 debug output.
1411 * jit.c (jit_unregister_code): Add debug print to match
1412 `jit_register_code`.
1413
1414 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1415
1416 * NEWS: Mention the new multithreaded symbol loading.
1417
1418 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1419
1420 * maint.c (n_worker_threads): Default to 0.
1421 (worker_threads_disabled): New function.
1422 * maint.h (worker_threads_disabled): New function.
1423 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1424 here if worker_threads_disabled () is true.
1425 (minimal_symbol_reader::install): Skip all threading if
1426 worker_threads_disabled () is true.
1427
1428 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1429
1430 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1431 hash code if possible.
1432 (add_minsym_to_demangled_hash_table): Likewise.
1433 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1434 on the background thread.
1435 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1436 Add these fields.
1437
1438 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1439
1440 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1441 of the mangled name on the background thread.
1442 * symtab.c (symbol_set_names): Allow passing in the hash of the
1443 linkage_name.
1444 * symtab.h (symbol_set_names): Likewise.
1445
1446 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1447
1448 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1449 physnames are computed for inherited DIEs.
1450
1451 2019-11-27 Tom Tromey <tromey@adacore.com>
1452
1453 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1454 backslashes.
1455 * cp-support.c: Remove unnecessary backslashes.
1456
1457 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1458
1459 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1460 with sym->set_linkage_name.
1461 * coffread.c (coff_read_enum_type): Likewise.
1462 * mdebugread.c (parse_symbol): Likewise.
1463 * stabsread.c (patch_block_stabs): Likewise.
1464 (define_symbol): Likewise.
1465 (read_enum_type): Likewise.
1466 (common_block_end): Likewise.
1467 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1468 function.
1469 (SYMBOL_SET_LINKAGE_NAME): Remove.
1470 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1471 with sym->set_linkage_name.
1472
1473 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1474
1475 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1476 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1477 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1478 * NEWS: Mention new MI command.
1479
1480 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1483 '-symbol-info-types', and '-symbol-info-variables'.
1484 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1485 (mi_cmd_symbol_info_types): Declare.
1486 (mi_cmd_symbol_info_variables): Declare.
1487 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1488 (output_debug_symbol): New function.
1489 (output_nondebug_symbol): New function.
1490 (mi_symbol_info): New function.
1491 (mi_info_functions_or_variables): New function.
1492 (mi_cmd_symbol_info_functions): New function.
1493 (mi_cmd_symbol_info_types): New function.
1494 (mi_cmd_symbol_info_variables): New function.
1495 * NEWS: Mention new commands.
1496
1497 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * symtab.c (symbol_to_info_string): New function, most content
1500 moved from print_symbol_info, but updated to return a std::string.
1501 (print_symbol_info): Update to use symbol_to_info_string and print
1502 returned string.
1503 * symtab.h (symbol_to_info_string): Declare new function.
1504
1505 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * python/python.c (gdbpy_rbreak): Convert to using
1508 global_symbol_searcher.
1509 * symtab.c (file_matches): Convert return type to bool, change
1510 file list to std::vector, update header comment.
1511 (search_symbols): Rename to...
1512 (global_symbol_searcher::search): ...this and update now its
1513 a member function of global_symbol_searcher. Take account of the
1514 changes to file_matches.
1515 (symtab_symbol_info): Convert to using global_symbol_searcher.
1516 (rbreak_command): Likewise.
1517 (search_module_symbols): Likewise.
1518 * symtab.h (enum symbol_search): Update comment.
1519 (search_symbols): Remove declaration.
1520 (class global_symbol_searcher): New class.
1521
1522 2019-11-26 Tom Tromey <tromey@adacore.com>
1523
1524 * cp-support.c (_initialize_cp_support): Conditionally initialize
1525 gdb_demangle_attempt_core_dump.
1526
1527 2019-11-26 Tom Tromey <tom@tromey.com>
1528
1529 * python/py-function.c (fnpy_init): Update.
1530 * value.h (add_internal_function): Adjust declaration.
1531 * value.c (function_destroyer): Remove.
1532 (do_add_internal_function): Don't set destroyer or copy name.
1533 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1534 Set name_allocated.
1535 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1536 (cmdpy_init): Set name_allocated.
1537 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1538 member.
1539 (~cmd_list_element): Free "name" if needed.
1540
1541 2019-11-26 Tom Tromey <tom@tromey.com>
1542
1543 * value.h (add_internal_function): Add new overload. Move
1544 documentation from value.h.
1545 * value.c (do_add_internal_function): New function.
1546 (add_internal_function): Use it. Add new overload.
1547 (function_destroyer): Don't free doc.
1548 * python/py-function.c (fnpy_init): Update.
1549
1550 2019-11-26 Tom Tromey <tom@tromey.com>
1551
1552 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1553 (cmdpy_init): Set "doc_allocated".
1554
1555 2019-11-26 Tom Tromey <tom@tromey.com>
1556
1557 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1558 name of worker thread.
1559 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1560 pthread_setname_np.
1561 * configure, config.in: Rebuild.
1562
1563 2019-11-26 Tom Tromey <tom@tromey.com>
1564
1565 * python/python.c (class gdbpy_gil): New.
1566 (struct gdbpy_event): Add constructor, destructor, operator().
1567 (gdbpy_post_event): Use run_on_main_thread.
1568 (gdbpy_initialize_events): Remove.
1569 (do_start_initialization): Update.
1570
1571 2019-11-26 Tom Tromey <tom@tromey.com>
1572
1573 * NEWS: Add entry.
1574 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1575 commands. Call update_thread_pool_size.
1576 (update_thread_pool_size, maintenance_set_worker_threads): New
1577 functions.
1578 (n_worker_threads): New global.
1579
1580 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1581 Tom Tromey <tom@tromey.com>
1582
1583 * minsyms.c (minimal_symbol_reader::install): Use
1584 parallel_for_each.
1585 * gdbsupport/parallel-for.h: New file.
1586 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1587
1588 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1589 Tom Tromey <tom@tromey.com>
1590
1591 * gdbsupport/thread-pool.h: New file.
1592 * gdbsupport/thread-pool.c: New file.
1593 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1594 (HFILES_NO_SRCDIR): Add thread-pool.h.
1595
1596 2019-11-26 Tom Tromey <tom@tromey.com>
1597
1598 * event-top.h (thread_local_segv_handler): Declare.
1599 * event-top.c (thread_local_segv_handler): New global.
1600 (install_handle_sigsegv, handle_sigsegv): New functions.
1601 (async_init_signals): Install SIGSEGV handler.
1602 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1603 thread-local.
1604 (report_failed_demangle): New function.
1605 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1606 handler-setting code, instead use segv_handler. Run warning code
1607 on main thread.
1608
1609 2019-11-26 Tom Tromey <tom@tromey.com>
1610
1611 * run-on-main-thread.c: New file.
1612 * run-on-main-thread.h: New file.
1613 * unittests/main-thread-selftests.c: New file.
1614 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1615 main-thread-selftests.c.
1616 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1617 (COMMON_SFILES): Add run-on-main-thread.c.
1618
1619 2019-11-26 Tom Tromey <tom@tromey.com>
1620
1621 * main.c (setup_alternate_signal_stack): Remove.
1622 (captured_main_1): Use gdb::alternate_signal_stack.
1623 * gdbsupport/alt-stack.h: New file.
1624
1625 2019-11-26 Tom Tromey <tom@tromey.com>
1626
1627 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1628 Remove comment.
1629 (save_original_signals_state, restore_original_signals_state): Use
1630 gdb_sigmask.
1631 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1632 (_initialize_linux_nat): Use gdb_sigmask.
1633 * guile/guile.c (_initialize_guile): Use block_signals.
1634 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1635 * gdbsupport/gdb-sigmask.h: New file.
1636 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1637 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1638 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1639 pthread_sigmask.
1640 * configure, config.in: Rebuild.
1641 * gdbsupport/block-signals.h: New file.
1642
1643 2019-11-26 Tom Tromey <tom@tromey.com>
1644
1645 * acinclude.m4: Include ax_pthread.m4.
1646 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1647 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1648 (CLIBS): Use PTHREAD_LIBS.
1649 (aclocal_m4_deps): Add ax_pthread.m4.
1650 * config.in, configure: Rebuild.
1651 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1652
1653 2019-11-26 Tom Tromey <tom@tromey.com>
1654
1655 * symtab.h (struct minimal_symbol) <name_set>: New member.
1656 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1657 Don't call symbol_set_names.
1658 (minimal_symbol_reader::install): Call symbol_set_names.
1659
1660 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1661
1662 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1663 restore_active_ext_lang, as GIL is needed for (indirectly)
1664 called PyOS_InterruptOccurred.
1665
1666 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1667
1668 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1669 definition.
1670
1671 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * remote-sim.c (simulator_command): Make static, remove
1674 declaration.
1675
1676 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1679 static.
1680 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1681 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1682 (main): Likewise.
1683 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1684 (main): Likewise.
1685 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1686 (main): Likewise.
1687 * unittests/basic_string_view/element_access/char/1.cc (test01):
1688 Likewise.
1689 (main): Likewise.
1690 * unittests/basic_string_view/element_access/char/empty.cc (main):
1691 Likewise.
1692 * unittests/basic_string_view/element_access/char/front_back.cc
1693 (test01): Likewise.
1694 (main): Likewise.
1695 * unittests/basic_string_view/inserters/char/2.cc (test05):
1696 Likewise.
1697 (main): Likewise.
1698 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1699 (test01): Likewise.
1700 (main): Likewise.
1701 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1702 (test01): Likewise.
1703 (main): Likewise.
1704 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1705 Likewise.
1706 * unittests/basic_string_view/operations/compare/char/1.cc
1707 (test01): Likewise.
1708 (main): Likewise.
1709 * unittests/basic_string_view/operations/compare/char/13650.cc
1710 (test01): Likewise.
1711 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1712 Likewise.
1713 (main): Likewise.
1714 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1715 Likewise.
1716 (main): Likewise.
1717 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1718 Likewise.
1719 (main): Likewise.
1720 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1721 Likewise.
1722 (main): Likewise.
1723 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1724 Likewise.
1725 (main): Likewise.
1726 * unittests/basic_string_view/operations/find/char/4.cc (main):
1727 Likewise.
1728 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1729 Likewise.
1730 (main): Likewise.
1731 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1732 Likewise.
1733 (main): Likewise.
1734 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1735 Likewise.
1736 (main): Likewise.
1737 * unittests/basic_string_view/operations/substr/char/1.cc
1738 (test01): Likewise.
1739 (main): Likewise.
1740 * unittests/basic_string_view/operators/char/2.cc (main):
1741 Likewise.
1742 * unittests/optional/assignment/1.cc (test): Likewise.
1743 * unittests/optional/assignment/2.cc (test): Likewise.
1744 * unittests/optional/assignment/3.cc (test): Likewise.
1745 * unittests/optional/assignment/4.cc (test): Likewise.
1746 * unittests/optional/assignment/5.cc (test): Likewise.
1747 * unittests/optional/assignment/6.cc (test): Likewise.
1748 * unittests/optional/assignment/7.cc (test): Likewise.
1749 * unittests/optional/cons/copy.cc (test): Likewise.
1750 * unittests/optional/cons/default.cc (test): Likewise.
1751 * unittests/optional/cons/move.cc (test): Likewise.
1752 * unittests/optional/cons/value.cc (test): Likewise.
1753 * unittests/optional/in_place.cc (test): Likewise.
1754 * unittests/optional/observers/1.cc (test): Likewise.
1755 * unittests/optional/observers/2.cc (test): Likewise.
1756
1757 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1758
1759 * tui-win.h (tui_set_var_cmd): Remove.
1760 * tui-win.c (tui_set_var_cmd): Make static.
1761
1762 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1763
1764 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1765 rbreak_command_wrapper): Remove.
1766 * symtab.c (rbreak_command_wrapper): Remove.
1767
1768 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1769
1770 * inferior.h (info_terminal_command): Remove declaration.
1771 * inflow.c (info_terminal_command): Make static.
1772
1773 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1774
1775 * inferior.c (exit_inferior_silent): Remove.
1776
1777 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * dictionary.c (dict_empty, mdict_empty): Remove.
1780 * dictionary.c (mdict_empty): Remove.
1781
1782 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1785 (arc_insn_get_memory_offset): Likewise.
1786 (arc_insn_dump): Likewise.
1787 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1788 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1789 * dictionary.c (dict_iterator_next): Likewise.
1790 (dict_iter_match_first): Likewise.
1791 (dict_iter_match_next): Likewise.
1792 * f-lang.c (evaluate_subexp_f): Likewise.
1793 * hppa-tdep.c (hppa_read_pc): Likewise.
1794 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1795 * parse.c (write_exp_elt_msym): Likewise.
1796 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1797 * remote.c (remote_packet_size): Likewise.
1798 (remote_notif_stop_parse): Likewise.
1799 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1800 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1801 * source.c (prepare_path_for_appending): Likewise.
1802 * sparc64-linux-tdep.c
1803 (sparc64_linux_handle_segmentation_fault); Likewise.
1804 * stack.c (frame_selection_by_function_completer): Likewise.
1805
1806 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * completer.c (set_gdb_completion_word_break_characters):
1809 Remove.
1810
1811 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1812
1813 * dwarf-index-write.c: Include dwarf-index-write.h.
1814 * mi/mi-interp.c: Include mi/mi-interp.h.
1815
1816 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1817
1818 * aarch32-tdep.c: Include aarch32-tdep.h.
1819 * aarch32-tdep.h: Forward-declare struct target_desc.
1820
1821 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1822
1823 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1824 strerror.
1825 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1826 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1827
1828 2019-11-25 Tom de Vries <tdevries@suse.de>
1829
1830 * contrib/words.sh: Add -c option.
1831
1832 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1833
1834 * solib.c (solib_find_1): Change int to bool.
1835 (exec_file_find): Change int to bool.
1836 (solib_find): Change int to bool.
1837 (solib_read_symbols): Change int to bool.
1838 (solib_used): Change int to bool.
1839 (solib_add): Change int to bool.
1840 (info_sharedlibrary_command): Change int to bool.
1841 (solib_contains_address_p): Change int to bool.
1842 (solib_keep_data_in_core): Change int to bool.
1843 (in_solib_dynsym_resolve_code): Change int to bool.
1844 (reload_shared_libraries_1): Change int to bool.
1845 (gdb_sysroot_changed): Change int to bool.
1846 * solib.h (solib_read_symbols): Change int to bool.
1847 (solib_contains_address_p): Change int to bool.
1848 (solib_keep_data_in_core): Change int to bool.
1849 (in_solib_dynsym_resolve_code): Change int to bool.
1850 (libpthread_name_p): Change int to bool.
1851
1852 2019-11-25 Luis Machado <luis.machado@linaro.org>
1853
1854 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1855 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1856 (remote_packet_max_chars): New static global.
1857 (show_remote_packet_max_chars): New function.
1858 (remote_target::putpkt_binary): Adjust to use new
1859 remote_packet_max_chars option.
1860 (remote_target::getpkt_or_notif_sane_1): Likewise.
1861 (_initialize_remote): Register new remote-packet-max-chars option.
1862
1863 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1864
1865 * m68k-linux-nat.c: Include gdbarch.h.
1866
1867 2019-11-24 Tom Tromey <tom@tromey.com>
1868
1869 * symfile.c (read_symbols): Update.
1870 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1871 bool.
1872 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1873 (psym_lookup_symbol, psym_find_last_source_symtab)
1874 (psym_forget_cached_source_info, psym_print_stats)
1875 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1876 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1877 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1878 (psym_find_compunit_symtab_by_address)
1879 (maintenance_print_psymbols, maintenance_info_psymtabs)
1880 (maintenance_check_psymtabs): Update.
1881 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1882 bool.
1883
1884 2019-11-22 Tom Tromey <tom@tromey.com>
1885
1886 * observable.h: Update comments.
1887
1888 2019-11-22 Tom Tromey <tromey@adacore.com>
1889
1890 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1891 (print_ada_task_info): Don't try to fetch thread id if task is not
1892 alive.
1893
1894 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1895
1896 * ada-exp.y: Update.
1897 * ada-lang.c (sort_choices): Update.
1898 (ada_print_symbol_signature): Update.
1899 (resolve_subexp): Update.
1900 (ada_parse_renaming): Update.
1901 (ada_read_renaming_var_value): Update.
1902 (lesseq_defined_than): Update.
1903 (remove_extra_symbols): Update.
1904 (remove_irrelevant_renamings): Update.
1905 (ada_add_block_symbols): Update.
1906 (ada_collect_symbol_completion_matches): Update.
1907 (ada_is_renaming_symbol): Update.
1908 (aggregate_assign_from_choices): Update.
1909 (ada_evaluate_subexp): Update.
1910 (ada_has_this_exception_support): Update.
1911 (ada_is_non_standard_exception_sym): Update.
1912 (ada_add_exceptions_from_frame): Update.
1913 (ada_add_global_exceptions): Update.
1914 (ada_print_subexp): Update.
1915 * ax-gdb.c (gen_var_ref): Update.
1916 (gen_maybe_namespace_elt): Update.
1917 (gen_expr_for_cast): Update.
1918 (gen_expr): Update.
1919 * block.h: Update.
1920 * blockframe.c (find_pc_partial_function): Update.
1921 * breakpoint.c (print_breakpoint_location): Update.
1922 (update_static_tracepoint): Update.
1923 * btrace.c (ftrace_print_function_name): Update.
1924 (ftrace_function_switched): Update.
1925 * buildsym.c (find_symbol_in_list): Update.
1926 * c-exp.y: Update.
1927 * c-typeprint.c (c_print_typedef): Update.
1928 (c_type_print_template_args): Update.
1929 * cli/cli-cmds.c (edit_command): Update.
1930 (list_command): Update.
1931 (print_sal_location): Update.
1932 * coffread.c (patch_opaque_types): Update.
1933 (process_coff_symbol): Update.
1934 (coff_read_enum_type): Update.
1935 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1936 (convert_one_symbol): Update.
1937 (hash_symname): Update.
1938 (eq_symname): Update.
1939 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1940 * compile/compile-cplus-types.c (debug_print_scope): Update.
1941 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1942 * compile/compile-object-load.c (get_out_value_type): Update.
1943 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1944 (search_symbol_list): Update.
1945 (cp_lookup_symbol_imports_or_template): Update.
1946 * cp-support.c (overload_list_add_symbol): Update.
1947 * ctfread.c (psymtab_to_symtab): Update.
1948 * dbxread.c (cp_set_block_scope): Update.
1949 * dictionary.c (iter_match_first_hashed): Update.
1950 (iter_match_next_hashed): Update.
1951 (insert_symbol_hashed): Update.
1952 (iter_match_next_linear): Update.
1953 * dictionary.h: Update.
1954 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1955 (locexpr_describe_location_piece): Update.
1956 (locexpr_describe_location_1): Update.
1957 (locexpr_generate_c_location): Update.
1958 (loclist_describe_location): Update.
1959 (loclist_generate_c_location): Update.
1960 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1961 (read_func_scope): Update.
1962 (process_enumeration_scope): Update.
1963 (new_symbol): Update.
1964 (dwarf2_const_value): Update.
1965 (dwarf2_symbol_mark_computed): Update.
1966 * eval.c (evaluate_funcall): Update.
1967 (evaluate_subexp_standard): Update.
1968 * expprint.c (print_subexp_standard): Update.
1969 (dump_subexp_body_standard): Update.
1970 * f-valprint.c (info_common_command_for_block): Update.
1971 * findvar.c (get_hosting_frame): Update.
1972 (default_read_var_value): Update.
1973 * go-lang.c (go_symbol_package_name): Update.
1974 * guile/scm-block.c (bkscm_print_block_smob): Update.
1975 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1976 (gdbscm_symbol_name): Update.
1977 (gdbscm_symbol_linkage_name): Update.
1978 (gdbscm_symbol_print_name): Update.
1979 * infcall.c (get_function_name): Update.
1980 * infcmd.c (jump_command): Update.
1981 (finish_command): Update.
1982 * infrun.c (insert_exception_resume_breakpoint): Update.
1983 * linespec.c (canonicalize_linespec): Update.
1984 (create_sals_line_offset): Update.
1985 (convert_linespec_to_sals): Update.
1986 (complete_label): Update.
1987 (find_label_symbols_in_block): Update.
1988 * m2-typeprint.c (m2_print_typedef): Update.
1989 * mdebugread.c (mdebug_reg_to_regnum): Update.
1990 (parse_symbol): Update.
1991 (mylookup_symbol): Update.
1992 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1993 (list_args_or_locals): Update.
1994 * objc-lang.c (compare_selectors): Update.
1995 (info_selectors_command): Update.
1996 (compare_classes): Update.
1997 (info_classes_command): Update.
1998 (find_imps): Update.
1999 * p-typeprint.c (pascal_print_typedef): Update.
2000 * printcmd.c (build_address_symbolic): Update.
2001 (info_address_command): Update.
2002 (print_variable_and_value): Update.
2003 * python/py-framefilter.c (extract_sym): Update.
2004 (py_print_single_arg): Update.
2005 * python/py-symbol.c (sympy_str): Update.
2006 (sympy_get_name): Update.
2007 (sympy_get_linkage_name): Update.
2008 * python/python.c (gdbpy_rbreak): Update.
2009 * record-btrace.c (btrace_get_bfun_name): Update.
2010 (btrace_call_history): Update.
2011 * rust-lang.c (rust_print_typedef): Update.
2012 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
2013 * stabsread.c (stab_reg_to_regnum): Update.
2014 (define_symbol): Update.
2015 (read_enum_type): Update.
2016 (common_block_end): Update.
2017 (cleanup_undefined_types_1): Update.
2018 (scan_file_globals): Update.
2019 * stack.c (print_frame_arg): Update.
2020 (print_frame_args): Update.
2021 (find_frame_funname): Update.
2022 (info_frame_command_core): Update.
2023 (iterate_over_block_locals): Update.
2024 (print_block_frame_labels): Update.
2025 (do_print_variable_and_value): Update.
2026 (iterate_over_block_arg_vars): Update.
2027 (return_command): Update.
2028 * symmisc.c (dump_symtab_1): Update.
2029 (print_symbol): Update.
2030 * symtab.c (eq_symbol_entry): Update.
2031 (symbol_cache_dump): Update.
2032 (lookup_language_this): Update.
2033 (find_pc_sect_line): Update.
2034 (skip_prologue_sal): Update.
2035 (symbol_search::compare_search_syms): Update.
2036 (treg_matches_sym_type_name): Update.
2037 (search_symbols): Update.
2038 (print_symbol_info): Update.
2039 (rbreak_command): Update.
2040 (completion_list_add_symbol): Update.
2041 (find_gnu_ifunc): Update.
2042 (get_symbol_address): Update.
2043 (search_module_symbols): Update.
2044 (info_module_subcommand): Update.
2045 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
2046 (SYMBOL_LINKAGE_NAME): Remove.
2047 (SYMBOL_DEMANGLED_NAME): Remove.
2048 (SYMBOL_PRINT_NAME): Remove.
2049 (SYMBOL_SEARCH_NAME): Remove.
2050 * tracepoint.c (set_traceframe_context): Update.
2051 (validate_actionline): Update.
2052 (collection_list::collect_symbol): Update.
2053 (encode_actions_1): Update.
2054 (info_scope_command): Update.
2055 (print_one_static_tracepoint_marker): Update.
2056 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
2057 * valops.c (address_of_variable): Update.
2058 (find_overload_match): Update.
2059 (find_oload_champ): Update.
2060
2061 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2062
2063 * ada-lang.c (ada_lookup_simple_minsym): Update.
2064 (ada_collect_symbol_completion_matches): Update.
2065 * ada-tasks.c (read_atcb): Update.
2066 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2067 (amd64_windows_skip_trampoline_code): Update.
2068 * arm-tdep.c (skip_prologue_function): Update.
2069 (arm_skip_stack_protector): Update.
2070 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2071 (arm_wince_skip_main_prologue): Update.
2072 * ax-gdb.c (gen_expr): Update.
2073 * block.c (call_site_for_pc): Update.
2074 * blockframe.c (find_pc_partial_function): Update.
2075 * breakpoint.c (set_breakpoint_location_function): Update.
2076 * btrace.c (ftrace_print_function_name): Update.
2077 (ftrace_function_switched): Update.
2078 * c-valprint.c (print_unpacked_pointer): Update.
2079 * coffread.c (coff_symfile_read): Update.
2080 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
2081 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
2082 * dwarf-index-write.c (write_psymbols): Update.
2083 * dwarf2loc.c (call_site_to_target_addr): Update.
2084 (func_verify_no_selftailcall): Update.
2085 (tailcall_dump): Update.
2086 (call_site_find_chain_1): Update.
2087 (dwarf_expr_reg_to_entry_parameter): Update.
2088 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2089 * eval.c (evaluate_funcall): Update.
2090 (evaluate_subexp_standard): Update.
2091 (evaluate_subexp_for_sizeof): Update.
2092 * expprint.c (print_subexp_standard): Update.
2093 (dump_subexp_body_standard): Update.
2094 * frame.c (get_prev_frame_always_1): Update.
2095 * frv-tdep.c (frv_skip_main_prologue): Update.
2096 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2097 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2098 (gnuv3_get_typename_from_type_info): Update.
2099 (gnuv3_skip_trampoline): Update.
2100 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2101 * i386-tdep.c (i386_skip_main_prologue): Update.
2102 (i386_pe_skip_trampoline_code): Update.
2103 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2104 * infcall.c (get_function_name): Update.
2105 * linespec.c (minsym_found): Update.
2106 * linux-fork.c (info_checkpoints_command): Update.
2107 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2108 (m32c_m16c_pointer_to_address): Update.
2109 * maint.c (maintenance_translate_address): Update.
2110 * minsyms.c (add_minsym_to_hash_table): Update.
2111 (add_minsym_to_demangled_hash_table): Update.
2112 (lookup_minimal_symbol_mangled): Update.
2113 (lookup_minimal_symbol_demangled): Update.
2114 (lookup_minimal_symbol_linkage): Update.
2115 (lookup_minimal_symbol_text): Update.
2116 (lookup_minimal_symbol_by_pc_name): Update.
2117 (minimal_symbol_is_less_than): Update.
2118 (compact_minimal_symbols): Update.
2119 (build_minimal_symbol_hash_tables): Update.
2120 (find_solib_trampoline_target): Update.
2121 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2122 (mips_skip_pic_trampoline_code): Update.
2123 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2124 * objc-lang.c (info_selectors_command): Update.
2125 (info_classes_command): Update.
2126 (find_methods): Update.
2127 (find_imps): Update.
2128 * p-valprint.c (pascal_val_print): Update.
2129 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2130 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2131 * printcmd.c (build_address_symbolic): Update.
2132 (info_symbol_command): Update.
2133 * psymtab.c (psymbol_name_matches): Update.
2134 (match_partial_symbol): Update.
2135 (lookup_partial_symbol): Update.
2136 (print_partial_symbols): Update.
2137 (sort_pst_symbols): Update.
2138 (maintenance_check_psymtabs): Update.
2139 * python/py-framefilter.c (py_print_frame): Update.
2140 * python/python.c (gdbpy_rbreak): Update.
2141 * record-btrace.c (btrace_get_bfun_name): Update.
2142 (btrace_call_history): Update.
2143 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2144 (rs6000_skip_trampoline_code): Update.
2145 * sol-thread.c (info_cb): Update.
2146 * stabsread.c (scan_file_globals): Update.
2147 * stack.c (find_frame_funname): Update.
2148 (info_frame_command_core): Update.
2149 * symmisc.c (dump_msymbols): Update.
2150 * symtab.c (symbol_natural_name): Rename to..,
2151 (general_symbol_info::natural_name): ...this.
2152 (symbol_demangled_name): Rename to...
2153 (general_symbol_info::demangled_name): ...this.
2154 (symbol_search_name): Rename to...
2155 (general_symbol_info::search_name): ...this.
2156 (symbol_matches_search_name): Update.
2157 (find_pc_sect_line): Update.
2158 (skip_prologue_sal): Update.
2159 (search_symbols): Update.
2160 (print_msymbol_info): Update.
2161 (rbreak_command): Update.
2162 (completion_list_add_msymbol): Update.
2163 (completion_list_objc_symbol): Update.
2164 (get_msymbol_address): Update.
2165 * symtab.h (struct general_symbol_info): Add member functions
2166 natural_name (), linkage_name (), print_name (), demangled_name (),
2167 and search_name ().
2168 (SYMBOL_NATURAL_NAME): Update.
2169 (symbol_natural_name): Move to a member function on general_symbol_info.
2170 (SYMBOL_DEMANGLED_NAME): Update.
2171 (symbol_demangled_name): Move to a member function on
2172 general_symbol_info.
2173 (SYMBOL_SEARCH_NAME): Update.
2174 (symbol_search_name): Move to a member function on general_symbol_info.
2175 (MSYMBOL_NATURAL_NAME): Remove.
2176 (MSYMBOL_LINKAGE_NAME): Remove.
2177 (MSYMBOL_PRINT_NAME): Remove.
2178 (MSYMBOL_DEMANGLED_NAME): Remove.
2179 (MSYMBOL_SEARCH_NAME): Remove.
2180 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2181
2182 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2183
2184 * symtab.c (create_demangled_names_hash): Use per_bfd->
2185 minimal_symbol_count for computing the initial size, if greater
2186 than our default size.
2187
2188 2019-11-22 Tom de Vries <tdevries@suse.de>
2189
2190 * contrib/words.sh: Improve words extraction.
2191
2192 2019-11-22 Tom de Vries <tdevries@suse.de>
2193
2194 * contrib/words.sh: Combine sed invocations.
2195
2196 2019-11-21 Christian Biesinger <cbiesinger@google.com>
2197
2198 * Makefile.in: Update.
2199 * demangle.c: Rename to...
2200 * gdb-demangle.c: ..this.
2201 (is_cplus_marker): Change return type to bool.
2202 (_initialize_demangler): Rename to...
2203 (_initialize_gdb_demangle): ...this.
2204 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2205 * symtab.h (demangle): Remove declaration; instead include
2206 gdb-demangle.h.
2207
2208 2019-11-21 Tom Tromey <tromey@adacore.com>
2209
2210 * gdbsupport/format.c (format_pieces): Parse %I64d.
2211 * unittests/format_pieces-selftests.c (test_windows_formats): New
2212 function.
2213 (run_tests): Call it.
2214
2215 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2216
2217 Byte reverse display of variables with DW_END_big, DW_END_little
2218 (DW_AT_endianity) dwarf attributes if different than the native
2219 byte order.
2220 * ada-lang.c (ada_value_binop):
2221 Use type_byte_order instead of gdbarch_byte_order.
2222 * ada-valprint.c (printstr):
2223 (ada_val_print_string):
2224 * ada-lang.c (value_pointer):
2225 (ada_value_binop):
2226 Use type_byte_order instead of gdbarch_byte_order.
2227 * c-lang.c (c_get_string):
2228 Use type_byte_order instead of gdbarch_byte_order.
2229 * c-valprint.c (c_val_print_array):
2230 Use type_byte_order instead of gdbarch_byte_order.
2231 * cp-valprint.c (cp_print_class_member):
2232 Use type_byte_order instead of gdbarch_byte_order.
2233 * dwarf2loc.c (rw_pieced_value):
2234 Use type_byte_order instead of gdbarch_byte_order.
2235 * dwarf2read.c (read_base_type): Handle DW_END_big,
2236 DW_END_little
2237 * f-lang.c (f_get_encoding):
2238 Use type_byte_order instead of gdbarch_byte_order.
2239 * findvar.c (default_read_var_value):
2240 Use type_byte_order instead of gdbarch_byte_order.
2241 * gdbtypes.c (check_types_equal):
2242 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2243 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2244 and TYPE_ENDIANITY_LITTLE if set.
2245 (type_byte_order): new function.
2246 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2247 (struct main_type) <flag_endianity_not_default>:
2248 New field.
2249 (type_byte_order): New function.
2250 * infcmd.c (default_print_one_register_info):
2251 Use type_byte_order instead of gdbarch_byte_order.
2252 * p-lang.c (pascal_printstr):
2253 Use type_byte_order instead of gdbarch_byte_order.
2254 * p-valprint.c (pascal_val_print):
2255 Use type_byte_order instead of gdbarch_byte_order.
2256 * printcmd.c (print_scalar_formatted):
2257 Use type_byte_order instead of gdbarch_byte_order.
2258 * solib-darwin.c (darwin_current_sos):
2259 Use type_byte_order instead of gdbarch_byte_order.
2260 * solib-svr4.c (solib_svr4_r_ldsomap):
2261 Use type_byte_order instead of gdbarch_byte_order.
2262 * stap-probe.c (stap_modify_semaphore):
2263 Use type_byte_order instead of gdbarch_byte_order.
2264 * target-float.c (target_float_same_format_p):
2265 Use type_byte_order instead of gdbarch_byte_order.
2266 * valarith.c (scalar_binop):
2267 (value_bit_index):
2268 Use type_byte_order instead of gdbarch_byte_order.
2269 * valops.c (value_cast):
2270 Use type_byte_order instead of gdbarch_byte_order.
2271 * valprint.c (generic_emit_char):
2272 (generic_printstr):
2273 (val_print_string):
2274 Use type_byte_order instead of gdbarch_byte_order.
2275 * value.c (unpack_long):
2276 (unpack_bits_as_long):
2277 (unpack_value_bitfield):
2278 (modify_field):
2279 (pack_long):
2280 (pack_unsigned_long):
2281 Use type_byte_order instead of gdbarch_byte_order.
2282 * findvar.c (unsigned_pointer_to_address):
2283 (signed_pointer_to_address):
2284 (unsigned_address_to_pointer):
2285 (address_to_signed_pointer):
2286 (default_read_var_value):
2287 (default_value_from_register):
2288 Use type_byte_order instead of gdbarch_byte_order.
2289 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2290 Use type_byte_order instead of gdbarch_byte_order.
2291 * riscv-tdep.c (riscv_print_one_register_info):
2292 Use type_byte_order instead of gdbarch_byte_order.
2293
2294 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2295
2296 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2297 (current_ui_gdb_stdin_ptr): Likewise.
2298 (current_ui_gdb_stderr_ptr): Likewise.
2299 (current_ui_gdb_stdlog_ptr): Likewise.
2300 (current_ui_current_uiout_ptr): Likewise.
2301 (gen_ret_current_ui_field_ptr): Remove.
2302
2303 2019-11-21 Tom de Vries <tdevries@suse.de>
2304
2305 PR gdb/24956
2306 * cli/cli-script.c (execute_control_command): Only switch to
2307 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2308
2309 2019-11-19 Tom Tromey <tom@tromey.com>
2310
2311 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2312 Now static. Change type of "name".
2313 (tui_set_win_height_command): Don't copy "arg".
2314 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2315 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2316
2317 2019-11-19 Ali Tamur <tamur@google.com>
2318
2319 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2320 "if (attr != nullptr)".
2321 (dwarf2_find_base_address): Likewise.
2322 (dwarf2_build_include_psymtabs): Likewise.
2323 (read_cutu_die_from_dwo): Likewise.
2324 (read_func_scope): Likewise.
2325 (read_call_site_scope): Likewise.
2326 (dwarf2_get_pc_bounds): Likewise.
2327 (dwarf2_record_block_ranges): Likewise.
2328 (dwarf2_add_field): Likewise.
2329 (dwarf2_add_member_fn): Likewise.
2330 (read_structure_type): Likewise.
2331 (read_enumeration_type): Likewise.
2332 (read_array_type): Likewise.
2333 (read_array_order): Likewise.
2334 (read_set_type): Likewise.
2335 (read_common_block): Likewise.
2336 (read_tag_reference_type): Likewise.
2337 (read_tag_string_type): Likewise.
2338 (read_subroutine_type): Likewise.
2339 (read_base_type): Likewise.
2340 (read_subrange_type): Likewise.
2341 (new_symbol): Likewise.
2342 (prepare_one_comp_unit): Likewise.
2343
2344 2019-11-19 Tom Tromey <tromey@adacore.com>
2345
2346 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2347 result in error when DebugActiveProcess fails.
2348
2349 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2350 Pedro Alves <palves@redhat.com>
2351
2352 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2353 * target.c (target_stack::push): Call 'unpush' if there's a
2354 target on top of the stack.
2355
2356 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2357
2358 * python/py-block.c (blpy_dealloc): Call tp_free.
2359 (blpy_block_syms_dealloc): Likewise.
2360 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2361 * python/py-inferior.c (infpy_dealloc): Likewise.
2362 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2363 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2364 * python/py-symbol.c (sympy_dealloc): Likewise.
2365 * python/py-symtab.c (stpy_dealloc): Likewise.
2366 * python/py-type.c (typy_iterator_dealloc): Likewise.
2367
2368 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2369
2370 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2371 constructor instead of using a class initializer.
2372
2373 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2374
2375 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2376 * configure: Regenerate.
2377 * configure.ac: Don't source common.host.
2378 * gdbsupport/common.host: Remove.
2379 * gdbsupport/mingw-strerror.c: Remove.
2380 * gdbsupport/posix-strerror.c: Rename to...
2381 * gdbsupport/safe-strerror.c: ...this.
2382
2383 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2384
2385 * maint.c (scoped_command_stats::print_time): Use localtime_r
2386 instead of localtime (provided through gnulib if necessary).
2387 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2388 of ctime.
2389
2390 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2391
2392 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2393 avoid compile errors.
2394
2395 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2396
2397 * config.in: Regenerate.
2398 * configure: Regenerate.
2399 * gdbsupport/common.m4: No longer check for strerror_r.
2400 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2401 POSIX version of strerror_r, now that gnulib provides it if
2402 necessary.
2403
2404 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2405
2406 * README (`configure' options): Update.
2407
2408 2019-11-14 Tom Tromey <tromey@adacore.com>
2409
2410 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2411 expected type for the RHS if the LHS is a convenience variable.
2412
2413 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2416 Provide explicit default and copy constructor.
2417
2418 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2419
2420 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2421 only call Py_INCREF (newbp) in the bppy_pending_object case.
2422
2423 2019-11-13 Tom Tromey <tromey@adacore.com>
2424
2425 PR build/25182:
2426 * psympriv.h (partial_symbol): Remove static assert.
2427 * symtab.h (general_symbol_info, symbol): Remove static assert.
2428
2429 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * gdbsupport/format.c (format_pieces::format_pieces): Support
2432 printf 'z' size modifier.
2433 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2434 * printcmd.c (ui_printf): Handle size_t_arg.
2435 * ui-out.c (ui_out::vmessage): Likewise.
2436 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2437 function.
2438 (run_tests): Call test_format_int_sizes.
2439
2440 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2441
2442 * ada-exp.y (write_ambiguous_var): Update.
2443 * buildsym.c (add_symbol_to_list): Update.
2444 * dwarf2read.c (read_variable): Update.
2445 (new_symbol): Update.
2446 * jit.c (finalize_symtab): Update.
2447 * language.c (language_alloc_type_symbol): Update.
2448 * symtab.c (fixup_symbol_section): Update.
2449 (initialize_objfile_symbol_1): Move code to...
2450 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2451 (allocate_symbol): Update.
2452 (allocate_template_symbol): Update.
2453 (get_symbol_address): Update.
2454 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2455 of having as a field, and add a constructor.
2456 (SYMBOL_VALUE): Update.
2457 (SYMBOL_VALUE_ADDRESS): Update.
2458 (SET_SYMBOL_VALUE_ADDRESS): Update.
2459 (SYMBOL_VALUE_BYTES): Update.
2460 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2461 (SYMBOL_BLOCK_VALUE): Update.
2462 (SYMBOL_VALUE_CHAIN): Update.
2463 (SYMBOL_LANGUAGE): Update.
2464 (SYMBOL_SECTION): Update.
2465 (SYMBOL_OBJ_SECTION): Update.
2466 (SYMBOL_SET_LANGUAGE): Update.
2467 (SYMBOL_SET_LINKAGE_NAME): Update.
2468 (SYMBOL_SET_NAMES): Update.
2469 (SYMBOL_NATURAL_NAME): Update.
2470 (SYMBOL_LINKAGE_NAME): Update.
2471 (SYMBOL_DEMANGLED_NAME): Update.
2472 (SYMBOL_SEARCH_NAME): Update.
2473 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2474 (struct symbol): Update.
2475 (struct template_symbol): Update.
2476 (struct rust_vtable_symbol): Update.
2477 * xcoffread.c (SYMBOL_DUP): Update.
2478
2479 2019-11-12 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-layout.c (show_layout): Set current_layout.
2482 (show_source_disasm_command, show_data)
2483 (show_source_or_disasm_and_command): Don't set current_layout.
2484
2485 2019-11-12 Tom Tromey <tom@tromey.com>
2486
2487 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2488
2489 2019-11-12 Tom Tromey <tom@tromey.com>
2490
2491 * tui/tui-win.c (resize_message): New global.
2492 (show_tui_resize_message): New function.
2493 (tui_async_resize_screen): Print message if requested.
2494 (_initialize_tui_win): Add tui-resize-message setting.
2495 * NEWS: Add entry for new commands.
2496
2497 2019-11-11 Tom Tromey <tom@tromey.com>
2498
2499 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2500 functions.
2501
2502 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2503
2504 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2505
2506 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2509 function.
2510 * python/python-internal.h (gdbpy_lookup_static_symbols):
2511 Declare new function.
2512 * python/python.c (python_GdbMethods): Add
2513 gdb.lookup_static_symbols method.
2514 * NEWS: Mention gdb.lookup_static_symbols.
2515
2516 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2519 static block of current object file first. Also fix typo in
2520 header comment.
2521
2522 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * stack.c (set_last_displayed_sal): Delete.
2525 (last_displayed_sal_valid): Delete.
2526 (last_displayed_pspace): Delete.
2527 (last_displayed_addr): Delete.
2528 (last_displayed_symtab): Delete.
2529 (last_displayed_line): Delete.
2530 (class last_displayed_symtab_info_type): New.
2531 (last_displayed_symtab_info): New static global variable.
2532 (print_frame_info): Call methods on last_displayed_symtab_info.
2533 (clear_last_displayed_sal): Update header comment, and make use of
2534 last_displayed_symtab_info.
2535 (last_displayed_sal_is_valid): Likewise.
2536 (get_last_displayed_pspace): Likewise.
2537 (get_last_displayed_addr): Likewise.
2538 (get_last_displayed_symtab): Likewise.
2539 (get_last_displayed_line): Likewise.
2540 (get_last_displayed_sal): Likewise.
2541 * stack.h (clear_last_displayed_sal): Update header comment.
2542 (last_displayed_sal_is_valid): Likewise.
2543 (get_last_displayed_pspace): Likewise.
2544 (get_last_displayed_addr): Likewise.
2545 (get_last_displayed_symtab): Likewise.
2546 (get_last_displayed_line): Likewise.
2547 (get_last_displayed_sal): Likewise.
2548
2549 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * stack.c (frame_show_address): Convert return type to bool.
2552 * stack.h (frame_show_address): Likewise, and update header
2553 comment.
2554
2555 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2556
2557 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2558 * unittests/vec-utils-selftests.c: New file.
2559 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2560
2561 2019-11-10 Tom Tromey <tom@tromey.com>
2562
2563 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2564 (tui_highlight_win): Likewise.
2565 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2566 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2567 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2568 Don't set can_highlight.
2569
2570 2019-11-10 Tom Tromey <tom@tromey.com>
2571
2572 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2573 Remove unused declaration.
2574
2575 2019-11-08 Tom Tromey <tromey@adacore.com>
2576
2577 * top.c (read_command_file): Update.
2578 (command_line_input): Make return type const.
2579 * python/py-gdb-readline.c: Update.
2580 * linespec.c (decode_line_2): Update.
2581 * defs.h (command_line_input): Make return type const.
2582 * cli/cli-script.c (read_next_line): Make return type const.
2583 * ada-lang.c (get_selections): Update.
2584
2585 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2586
2587 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2588 * mi/mi-main.c (output_cores): Likewise.
2589 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2590 (linux_xfer_osdata_modules): Likewise.
2591 * remote.c (register_remote_support_xml): Likewise.
2592 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2593 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2594
2595 2019-11-06 Tom Tromey <tom@tromey.com>
2596
2597 * tui/tui-interp.c: Don't include readline.h.
2598 * tui/tui-hooks.c: Don't include readline.h.
2599 * symmisc.c: Include tilde.h, not readline.h.
2600 * symfile.c: Include tilde.h, not readline.h.
2601 * source.c: Include tilde.h, not readline.h.
2602 * solib.c: Include tilde.h, not readline.h.
2603 * psymtab.c: Include tilde.h, not readline.h.
2604 * exec.c: Include tilde.h, not readline.h.
2605 * corelow.c: Include tilde.h, not readline.h.
2606 * cli/cli-dump.c: Include tilde.h, not readline.h.
2607 * cli/cli-cmds.c: Don't include readline.h.
2608
2609 2019-11-05 Tom Tromey <tom@tromey.com>
2610
2611 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2612 (tui_disassemble): Set addr_size.
2613 (tui_disasm_window::set_contents): Use addr_size.
2614
2615 2019-11-05 Tom Tromey <tom@tromey.com>
2616
2617 * rust-lang.c (rust_language_defn): Update.
2618 * python/py-value.c (valpy_string): Call c_get_string.
2619 * p-lang.c (pascal_language_defn): Update.
2620 * opencl-lang.c (opencl_language_defn): Update.
2621 * objc-lang.c (objc_language_defn): Update.
2622 * m2-lang.c (m2_language_defn): Update.
2623 * language.c (unknown_language_defn, auto_language_defn): Update.
2624 (default_get_string): Remove.
2625 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2626 * go-lang.c (go_language_defn): Update.
2627 * f-lang.c (f_language_defn): Update.
2628 * d-lang.c (d_language_defn): Update.
2629 * c-lang.c (c_language_defn, cplus_language_defn)
2630 (asm_language_defn, minimal_language_defn): Update.
2631 * ada-lang.c (ada_language_defn): Update.
2632 * language.h (struct language_defn) <la_get_string>: Remove.
2633 (LA_GET_STRING): Remove.
2634 (default_get_string): Don't declare.
2635
2636 2019-11-05 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-source.h (struct tui_source_window): Inline
2639 constructor. Remove destructor.
2640 <style_changed, m_observable>: Move to superclass.
2641 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2642 (struct tui_source_window_base): Move private members to end.
2643 <style_changed, m_observable>: Move from tui_source_window.
2644 * tui/tui-winsource.c (tui_copy_source_line): Move from
2645 tui-source.c. Rename from copy_source_line. Add special handling
2646 for negative line number.
2647 (tui_source_window_base::style_changed): Move from
2648 tui_source_window.
2649 (tui_source_window_base): Register observer.
2650 (~tui_source_window_base): New.
2651 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2652 rename.
2653 (tui_source_window::set_contents): Use tui_copy_source_line.
2654 (tui_source_window::tui_source_window): Move to tui-source.h.
2655 (tui_source_window::~tui_source_window): Remove.
2656 (tui_source_window::style_changed): Move to superclass.
2657 * tui/tui-disasm.c (tui_disassemble): Create string file with
2658 styling, when possible. Add "addr_size" parameter.
2659 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2660 Don't compute maximum size.
2661 (len_without_escapes): New function
2662
2663 2019-11-05 Tom Tromey <tom@tromey.com>
2664
2665 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2666 std::string.
2667 * tui/tui-winsource.c (tui_show_source_line): Update.
2668 * tui/tui-source.c (tui_source_window::set_contents): Update.
2669 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2670
2671 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2672
2673 * symtab.h (gdb_static_assert): Put && operator at the beginning
2674 of the line instead of the end.
2675
2676 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2677
2678 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2679 and sizeof (symbol).
2680 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2681
2682 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2683
2684 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2685 * configure.host: Mark *-*-solaris2.10* obsolete.
2686 * configure.tgt: Mark Solaris < 11 obsolete.
2687 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2688 Update target triplet.
2689
2690 2019-11-01 Tom Tromey <tromey@adacore.com>
2691
2692 * utils.c (print_sys_errmsg): Simplify.
2693
2694 2019-11-01 Tom Tromey <tromey@adacore.com>
2695
2696 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2697
2698 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2699
2700 * configure: Regenerate.
2701 * configure.ac: Remove check for strerror_r.
2702 * gdbsupport/common.m4: Check for strerror_r.
2703
2704 2019-11-01 Luis Machado <luis.machado@linaro.org>
2705
2706 PR gdb/25124
2707
2708 * arm-tdep.c (arm_per_objfile): Rename to ...
2709 (arm_per_bfd): ... this.
2710 (arm_objfile_data_key): Rename to ...
2711 (arm_bfd_data_key): ... this.
2712 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2713 data.
2714 (arm_record_special_symbol): Likewise.
2715
2716 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2717
2718 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2719 end.
2720 * c-typeprint.c (c_print_typedef): Likewise.
2721 * f-typeprint.c (f_print_typedef): Likewise.
2722 * m2-typeprint.c (m2_print_typedef): Likewise.
2723 * p-typeprint.c (pascal_print_typedef): Likewise.
2724 * rust-lang.c (rust_print_typedef): Likewise.
2725 * symtab.c (print_symbol_info): Print a newline after calling
2726 typedef_print.
2727
2728 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * symtab.c (info_module_cmdlist): New variable.
2731 (info_module_command): New function.
2732 (search_module_symbols): New function.
2733 (info_module_subcommand): New function.
2734 (struct info_modules_var_func_options): New struct.
2735 (info_modules_var_func_options_defs): New variable.
2736 (make_info_modules_var_func_options_def_group): New function.
2737 (info_module_functions_command): New function.
2738 (info_module_variables_command): New function.
2739 (info_module_var_func_command_completer): New function.
2740 (_initialize_symtab): Register new 'info module functions' and
2741 'info module variables' commands.
2742 * symtab.h (typedef symbol_search_in_module): New typedef.
2743 (search_module_symbols): Declare new function.
2744 * NEWS: Mention new commands.
2745
2746 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2747
2748 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2749 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2750 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2751 MODULES_DOMAIN.
2752 (scan_partial_symbols): Only create partial module symbols for non
2753 declarations.
2754 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2755 and MODULES_DOMAIN.
2756 * symtab.c (search_domain_name): Likewise.
2757 (search_symbols): Likewise.
2758 (print_symbol_info): Likewise.
2759 (symtab_symbol_info): Likewise.
2760 (info_modules_command): New function.
2761 (_initialize_symtab): Register 'info modules' command.
2762 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2763 * NEWS: Mention new 'info modules' command.
2764
2765 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2766
2767 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2768 and $_gdb_maint_setting_str.
2769
2770 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2771
2772 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2773 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2774 (str_value_from_setting, gdb_setting_str_internal_fn)
2775 (gdb_maint_setting_str_internal_fn): New functions.
2776 (_initialize_cli_cmds): Define the new convenience functions.
2777 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2778 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2779
2780 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2781
2782 * agent.c (set_can_use_agent): When the setting is turned on,
2783 look up agent symbols if we don't have them yet.
2784 (agent_new_objfile): Don't look up agent symbols when the agent
2785 setting is off.
2786
2787 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2788
2789 * config.in: Regenerate.
2790
2791 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2792
2793 * configure: Regenerate.
2794 * configure.ac: Check for strerror_r.
2795 * gdbsupport/common-utils.h (safe_strerror): Change return value
2796 to const char * and document that this function is now threadsafe.
2797 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2798 thread_local and call strerror_r, if available.
2799 * utils.c (perror_string): Update.
2800 (print_sys_errmsg): Update.
2801
2802 2019-10-31 Luis Machado <luis.machado@linaro.org>
2803
2804 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2805 objfile_key.
2806 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2807 objfile to fetch per-bfd data.
2808 (arm_find_exidx_entry): Likewise.
2809
2810 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2811
2812 * gdbsupport/agent.c (debug_agent): Change type to bool.
2813 (use_agent): Likewise.
2814 (all_agent_symbols_look_up): Likewise.
2815 (agent_loaded_p): Change return value to bool.
2816 (agent_look_up_symbols): Update.
2817 (agent_capability_check): Change return value to bool.
2818 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2819 (debug_agent): Change type to bool.
2820 (use_agent): Likewise.
2821 (agent_capability_check): Change return value to bool.
2822
2823 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2824
2825 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2826 (build_minimal_symbol_hash_tables): Code to clear the table moved
2827 to clear_minimal_symbol_hash_tables.
2828 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2829 when needed.
2830
2831 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2832
2833 * infcmd.c: Remove includes.
2834 * infrun.c: Remove includes.
2835
2836 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2839 (grow_vect): Remove declaration.
2840 (ada_type_of_array): Remove declaration.
2841 (ada_update_initial_language): Remove declaration.
2842 (ada_fold_name): Remove declaration.
2843 (ada_fill_in_ada_prototype): Remove declaration.
2844 (user_select_syms): Remove declaration.
2845 (get_selections): Remove declaration.
2846 (ada_tag_type): Remove declaration.
2847 (ada_value_tag): Remove declaration.
2848 (ada_is_others_clause): Remove declaration.
2849 (ada_in_variant): Remove declaration.
2850 (ada_value_struct_elt): Remove declaration.
2851 (ada_attribute_name): Remove declaration.
2852 (ada_system_address_type): Remove declaration.
2853 * ada-lang.c (ada_watch_location_expression): Make static.
2854 (GROW_VECT): Move here from ada-lang.h.
2855 (grow_vect): Make static.
2856 (ada_update_initial_language): Make static.
2857 (ada_fold_name): Make static.
2858 (ada_type_of_array): Make static.
2859 (encoded_ordered_before): Move up.
2860 (sort_choices): Move up.
2861 (print_signatures): Move up.
2862 (ada_print_symbol_signature): Move up.
2863 (get_selections): Move up and make static.
2864 (user_select_syms): Move up and make static.
2865 (ada_value_struct_elt): Move up and make static.
2866 (ada_tag_type): Make static.
2867 (ada_value_tag): Make static.
2868 (ada_is_others_clause): Make static.
2869 (ada_in_variant): Make static.
2870 (ada_attribute_name): Make static.
2871
2872 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2873
2874 * ada-lang.c: Remove includes.
2875 * ada-typeprint.c: Remove includes.
2876 * ada-valprint.c: Remove includes.
2877
2878 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * addrmap.c: Add static assertions of type size, moved from
2881 _initialize_addrmap.
2882 (_initialize_addrmap): Remove.
2883
2884 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2885
2886 * coffread.c (record_minimal_symbol): Update.
2887 (process_coff_symbol): Update.
2888 * dbxread.c (read_dbx_symtab): Update.
2889 * dwarf2read.c (add_partial_symbol): Update.
2890 (fixup_go_packaging): Update.
2891 (load_partial_dies): Update.
2892 (new_symbol): Update.
2893 * elfread.c (record_minimal_symbol): Change signature to use
2894 gdb::string_view instead of name+len.
2895 (elf_symtab_read): Update.
2896 (elf_rel_plt_read): Update.
2897 * mdebugread.c (parse_partial_symbols): Update.
2898 (handle_psymbol_enumerators): Update.
2899 (new_symbol): Update.
2900 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2901 to use gdb::string_view instead of name+len.
2902 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2903 * psympriv.h (add_psymbol_to_list): Likewise.
2904 * psymtab.c (add_psymbol_to_bcache): Likewise.
2905 (add_psymbol_to_list): Likewise.
2906 * stabsread.c (define_symbol): Update.
2907 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2908 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2909 (symbol_set_names): Likewise.
2910 * xcoffread.c (scan_xcoff_symtab): Update.
2911
2912 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2913
2914 * symtab.h (symbol_set_names): Document that copy_name must be
2915 set to true for non-nullterminated strings.
2916 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2917 linkage_name if the entry was not found and we need to demangle.
2918
2919 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2920
2921 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2922 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2923 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2924 * gdbsupport/gdb_binary_search.h: New file.
2925
2926 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2927
2928 * NEWS: Mention new --with-system-gdbinit-dir option.
2929 * config.in: Regenerate.
2930 * configure: Regenerate.
2931 * configure.ac: Add new option --with-system-gdbinit-dir.
2932 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2933 for a ".gdb" suffix.
2934 * main.c (get_init_files): Change system_gdbinit argument to
2935 a vector and return the files in SYSTEM_GDBINIT_DIR in
2936 addition to SYSTEM_GDBINIT.
2937 (captured_main_1): Update.
2938 (print_gdb_help): Update.
2939 * top.c (print_gdb_configuration): Also print the value of
2940 SYSTEM_GDBINIT_DIR.
2941
2942 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2943
2944 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2945 that takes gdb::string_view arguments.
2946
2947 2019-10-26 Tom de Vries <tdevries@suse.de>
2948
2949 * aarch64-linux-tdep.c: Fix typos in comments.
2950 * aarch64-tdep.c: Same.
2951 * ada-lang.c: Same.
2952 * amd64-nat.c: Same.
2953 * arc-tdep.c: Same.
2954 * arch/aarch64-insn.c: Same.
2955 * block.c: Same.
2956 * breakpoint.h: Same.
2957 * btrace.h: Same.
2958 * c-varobj.c: Same.
2959 * cli/cli-decode.c: Same.
2960 * cli/cli-script.c: Same.
2961 * cli/cli-utils.h: Same.
2962 * coff-pe-read.c: Same.
2963 * coffread.c: Same.
2964 * compile/compile-cplus-symbols.c: Same.
2965 * compile/compile-object-run.c: Same.
2966 * completer.c: Same.
2967 * corelow.c: Same.
2968 * cp-support.c: Same.
2969 * demangle.c: Same.
2970 * dwarf-index-write.c: Same.
2971 * dwarf2-frame.c: Same.
2972 * dwarf2-frame.h: Same.
2973 * eval.c: Same.
2974 * frame-base.h: Same.
2975 * frame.h: Same.
2976 * gdbcmd.h: Same.
2977 * gdbtypes.h: Same.
2978 * gnu-nat.c: Same.
2979 * guile/scm-objfile.c: Same.
2980 * i386-tdep.c: Same.
2981 * i386-tdep.h: Same.
2982 * infcall.c: Same.
2983 * infcall.h: Same.
2984 * linux-nat.c: Same.
2985 * m68k-tdep.c: Same.
2986 * macroexp.c: Same.
2987 * memattr.c: Same.
2988 * mi/mi-cmd-disas.c: Same.
2989 * mi/mi-getopt.h: Same.
2990 * mi/mi-main.c: Same.
2991 * minsyms.c: Same.
2992 * nat/aarch64-sve-linux-sigcontext.h: Same.
2993 * objfiles.h: Same.
2994 * ppc-linux-nat.c: Same.
2995 * ppc-linux-tdep.c: Same.
2996 * ppc-tdep.h: Same.
2997 * progspace.h: Same.
2998 * prologue-value.h: Same.
2999 * python/py-evtregistry.c: Same.
3000 * python/py-instruction.h: Same.
3001 * record-btrace.c: Same.
3002 * record-full.c: Same.
3003 * remote.c: Same.
3004 * rs6000-tdep.c: Same.
3005 * ser-tcp.c: Same.
3006 * sol-thread.c: Same.
3007 * sparc-sol2-tdep.c: Same.
3008 * sparc64-tdep.c: Same.
3009 * stabsread.c: Same.
3010 * symfile.c: Same.
3011 * symtab.h: Same.
3012 * target.c: Same.
3013 * tracepoint.c: Same.
3014 * tui/tui-data.h: Same.
3015 * tui/tui-io.c: Same.
3016 * tui/tui-win.c: Same.
3017 * tui/tui.c: Same.
3018 * unittests/rsp-low-selftests.c: Same.
3019 * user-regs.h: Same.
3020 * utils.c: Same.
3021 * utils.h: Same.
3022 * valarith.c: Same.
3023 * valops.c: Same.
3024 * valprint.c: Same.
3025 * valprint.h: Same.
3026 * value.c: Same.
3027 * value.h: Same.
3028 * varobj.c: Same.
3029 * x86-nat.h: Same.
3030 * xtensa-tdep.c: Same.
3031
3032 2019-10-25 Ali Tamur <tamur@google.com>
3033
3034 * charset.c (find_charset_names): Reflect API change.
3035
3036 2019-10-25 Christian Biesinger <cbiesinger@google.com>
3037
3038 * symtab.c (struct demangled_name_entry): Change demangled name
3039 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
3040 part of the struct anymore.
3041 (symbol_set_names): No longer obstack allocate + copy the demangled
3042 name, just store the allocated name from bfd.
3043
3044 2019-10-25 Tom Tromey <tromey@adacore.com>
3045
3046 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
3047 (bsearch_cie_cmp, add_cie): Remove.
3048 (find_cie): Reimplement.
3049 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
3050 (dwarf2_build_frame_info): Update.
3051
3052 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
3053
3054 PR gdb/25126
3055 * symfile.c (reread_symbols): Call forget_cached_source_info to
3056 clear the stale source cache.
3057
3058 2019-10-24 Christian Biesinger <cbiesinger@google.com>
3059
3060 * configure: Regenerate.
3061 * configure.ac: Remove code that sets python_has_threads.
3062
3063 2019-10-24 Christian Biesinger <cbiesinger@google.com>
3064
3065 * config.in: Regenerate.
3066 * configure: Regenerate.
3067 * configure.ac: Remove the code that uses sed to get the python
3068 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
3069
3070 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 * python/py-progspace.c (pspy_block_for_pc): Return None for all
3073 error paths.
3074
3075 2019-10-23 Tom Tromey <tom@tromey.com>
3076
3077 * arc-tdep.c: Remove ".." from include.
3078 * frv-tdep.c: Remove ".." from include.
3079 * lm32-tdep.c: Remove ".." from include.
3080 * microblaze-tdep.c: Remove ".." from include.
3081 * or1k-tdep.h: Remove ".." from include.
3082 * s12z-tdep.c: Remove ".." from include.
3083 * Makefile.in (OPCODES_CFLAGS): Add comment.
3084 (TOP_CFLAGS): New variable.
3085 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
3086
3087 2019-10-23 Tom Tromey <tom@tromey.com>
3088
3089 * Makefile.in (READLINE_DIR): Update.
3090
3091 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3092
3093 * infcall.c (call_function_by_hand_dummy): Fix the function
3094 comment. And extract out a code section into...
3095 (reserve_stack_space): ...this new function.
3096
3097 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3098
3099 * infcall.c (value_arg_coerce): Remove an unused parameter.
3100 (call_function_by_hand_dummy): Update the call to
3101 'value_arg_coerce'.
3102
3103 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3104
3105 * infcall.c (call_function_by_hand_dummy): Refactor.
3106
3107 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3108
3109 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3110
3111 2019-10-23 Tom Tromey <tom@tromey.com>
3112
3113 * configure: Rebuild.
3114 * configure.ac: Don't check for sigprocmask.
3115 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3116
3117 2019-10-23 Tom Tromey <tom@tromey.com>
3118
3119 * configure: Rebuild.
3120 * acinclude.m4: Use m4_include, not sinclude.
3121
3122 2019-10-23 Tom de Vries <tdevries@suse.de>
3123
3124 PR breakpoints/24687
3125 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3126
3127 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3128
3129 * symtab.c (struct demangled_name_entry) <language>: Change from
3130 bitfield to regular variable.
3131
3132 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3133
3134 * symtab.c (struct demangled_name_entry): Add a constructor.
3135 (free_demangled_name_entry): New function to call the destructor
3136 for demangled_name_entry.
3137 (create_demangled_names_hash): Pass free_demangled_name_entry to
3138 htab_create_alloc.
3139 (symbol_set_names): Call placement new for demangled_name_entry.
3140 * utils.c: No longer include xxhash.h here, now that fast_hash
3141 is inlined in the header.
3142 * utils.h: Instead, include it here.
3143
3144 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3145
3146 * Makefile.in: Link with libxxhash.
3147 * config.in: Regenerate.
3148 * configure: Regenerate.
3149 * configure.ac: Search for libxxhash.
3150 * utils.c (fast_hash): Use xxhash if present.
3151
3152 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3153
3154 * utils.h (fast_hash): New function.
3155 * symtab.c (hash_demangled_name_entry): Call new function
3156 fast_hash.
3157
3158 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3159
3160 * symtab.c (struct demangled_name_entry): Change type of mangled
3161 to gdb::string_view. Also adds a constructor that takes the
3162 mangled name.
3163 (hash_demangled_name_entry): Update.
3164 (eq_demangled_name_entry): Update.
3165 (free_demangled_name_entry): New function to call the destructor
3166 now that this is not a POD anymore.
3167 (create_demangled_names_hash): Pass free_demangled_name_entry to
3168 htab_create_alloc.
3169 (symbol_set_names): Update.
3170
3171 2019-10-21 Ali Tamur <tamu@google.com>
3172
3173 * dwarf2read.c (dir_index): Change type.
3174 (file_name_index): Likewise.
3175 (line_header::include_dir_at): Change comment and implementation on
3176 whether it is DWARF 5.
3177 (line_header::is_valid_file_index): New function.
3178 (line_header::file_name_at): Change comment and implementation on
3179 whether it is DWARF 5.
3180 (line_header::file_names): Change to private field renamed as
3181 m_file_names and introduce a new accessor method.
3182 (line_header::file_names_size): New method.
3183 (line_header::include_dirs): Change to private field and rename as
3184 m_include_dirs.
3185 (dw2_get_file_names_reader): Define local var at a smaller scope and
3186 reflect API change.
3187 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3188 (process_structure_scope): Likewise.
3189 (line_header::add_include_dir): Change message and reflect renaming.
3190 (line_header::add_file_name): Likewise.
3191 (read_formatted_entries): Handle DW_FORM_data16.
3192 (dwarf_decode_line_header): Fix line header length calculation.
3193 (psymtab_include_file_name): Change comment and API.
3194 (lnp_state_machine::m_file): Update comment and reflect type change.
3195 (lnp_state_machine::record_line): Reflect type change.
3196 (dwarf_decode_lines): Reflect API change.
3197 (file_file_name): Likewise.
3198 (file_full_name): Likewise.
3199
3200 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3203
3204 2019-10-21 Tom Tromey <tom@tromey.com>
3205
3206 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3207
3208 2019-10-21 Tom Tromey <tom@tromey.com>
3209
3210 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3211 NM_H. Use AC_CONFIG_LINKS.
3212 * configure: Rebuild.
3213 * Makefile.in (NM_H): New variable.
3214 (generated_files): Add NM_H. Remove gcore.
3215 (nm.h, stamp-nmh): New targets.
3216
3217 2019-10-20 Tom Tromey <tom@tromey.com>
3218
3219 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3220 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3221 obsolete comment.
3222 (put_objfile_before): Now static.
3223
3224 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3225
3226 * gdbsupport/common-utils.h (startswith): Change return type to
3227 bool.
3228
3229 2019-10-19 Christian Biesinger <cbiesinger@google.com>
3230
3231 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3232 * breakpoint.c (bp_locations_compare): Rename to...
3233 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3234 (update_global_location_list): Use std::sort instead of qsort.
3235 * buildsym.c (compare_line_numbers): Rename to...
3236 (lte_is_less_than): ...this, and change to std::sort semantics.
3237 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3238 instead of qsort.
3239 * disasm.c (compare_lines): Rename to...
3240 (line_is_less_than): ...this, and change to std::sort semantics.
3241 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3242 of qsort.
3243 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3244 (fde_is_less_than): ...this, and change to std::sort semantics.
3245 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3246 * mdebugread.c (compare_blocks):
3247 (block_is_less_than): ...this, and change to std::sort semantics.
3248 (sort_blocks): Call std::sort instead of qsort.
3249 * objfiles.c (qsort_cmp): Rename to...
3250 (sort_cmp): ...this, and change to std::sort semantics.
3251 (update_section_map): Call std::sort instead of qsort.
3252 * remote.c (compare_pnums): Remove.
3253 (map_regcache_remote_table): Call std::sort instead of qsort.
3254 * utils.c (compare_positive_ints): Remove.
3255 * utils.h (compare_positive_ints): Remove.
3256 * xcoffread.c (compare_lte): Remove.
3257 (arrange_linetable): Call std::sort instead of qsort.
3258
3259 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3260
3261 * symfile.c (init_entry_point_info): Fix typo.
3262 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3263
3264 2019-10-18 Tom de Vries <tdevries@suse.de>
3265
3266 * aarch64-tdep.c: Fix typos in comments.
3267 * ada-lang.c: Same.
3268 * ada-tasks.c: Same.
3269 * alpha-tdep.c: Same.
3270 * alpha-tdep.h: Same.
3271 * amd64-nat.c: Same.
3272 * amd64-windows-tdep.c: Same.
3273 * arc-tdep.c: Same.
3274 * arc-tdep.h: Same.
3275 * arch-utils.c: Same.
3276 * arm-nbsd-tdep.c: Same.
3277 * arm-tdep.c: Same.
3278 * ax-gdb.c: Same.
3279 * blockframe.c: Same.
3280 * btrace.c: Same.
3281 * c-varobj.c: Same.
3282 * coff-pe-read.c: Same.
3283 * coffread.c: Same.
3284 * cris-tdep.c: Same.
3285 * darwin-nat.c: Same.
3286 * dbxread.c: Same.
3287 * dcache.c: Same.
3288 * disasm.c: Same.
3289 * dtrace-probe.c: Same.
3290 * dwarf-index-write.c: Same.
3291 * dwarf2-frame-tailcall.c: Same.
3292 * dwarf2-frame.c: Same.
3293 * dwarf2read.c: Same.
3294 * eval.c: Same.
3295 * exceptions.c: Same.
3296 * fbsd-tdep.c: Same.
3297 * findvar.c: Same.
3298 * frame.c: Same.
3299 * frv-tdep.c: Same.
3300 * gnu-v3-abi.c: Same.
3301 * go32-nat.c: Same.
3302 * h8300-tdep.c: Same.
3303 * hppa-tdep.c: Same.
3304 * i386-linux-tdep.c: Same.
3305 * i386-tdep.c: Same.
3306 * ia64-libunwind-tdep.c: Same.
3307 * ia64-tdep.c: Same.
3308 * infcmd.c: Same.
3309 * infrun.c: Same.
3310 * linespec.c: Same.
3311 * linux-nat.c: Same.
3312 * linux-thread-db.c: Same.
3313 * machoread.c: Same.
3314 * mdebugread.c: Same.
3315 * mep-tdep.c: Same.
3316 * mn10300-tdep.c: Same.
3317 * namespace.c: Same.
3318 * objfiles.c: Same.
3319 * opencl-lang.c: Same.
3320 * or1k-tdep.c: Same.
3321 * osabi.c: Same.
3322 * ppc-linux-nat.c: Same.
3323 * ppc-linux-tdep.c: Same.
3324 * ppc-sysv-tdep.c: Same.
3325 * printcmd.c: Same.
3326 * procfs.c: Same.
3327 * record-btrace.c: Same.
3328 * record-full.c: Same.
3329 * remote-fileio.c: Same.
3330 * remote.c: Same.
3331 * rs6000-tdep.c: Same.
3332 * s12z-tdep.c: Same.
3333 * score-tdep.c: Same.
3334 * ser-base.c: Same.
3335 * ser-go32.c: Same.
3336 * skip.c: Same.
3337 * sol-thread.c: Same.
3338 * solib-svr4.c: Same.
3339 * solib.c: Same.
3340 * source.c: Same.
3341 * sparc-nat.c: Same.
3342 * sparc-sol2-tdep.c: Same.
3343 * sparc-tdep.c: Same.
3344 * sparc64-tdep.c: Same.
3345 * stabsread.c: Same.
3346 * stack.c: Same.
3347 * symfile.c: Same.
3348 * symtab.c: Same.
3349 * target-descriptions.c: Same.
3350 * target-float.c: Same.
3351 * thread.c: Same.
3352 * utils.c: Same.
3353 * valops.c: Same.
3354 * valprint.c: Same.
3355 * value.c: Same.
3356 * varobj.c: Same.
3357 * windows-nat.c: Same.
3358 * xcoffread.c: Same.
3359 * xstormy16-tdep.c: Same.
3360 * xtensa-tdep.c: Same.
3361
3362 2019-10-17 Tom Tromey <tromey@adacore.com>
3363
3364 * configure: Rebuild.
3365 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3366 in AC_CONFIG_FILES invocation.
3367 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3368 new-style config.status invocation.
3369
3370 2019-10-17 Tom de Vries <tdevries@suse.de>
3371
3372 * arm-nbsd-nat.c: Fix typos in comments.
3373 * arm-tdep.c: Same.
3374 * darwin-nat-info.c: Same.
3375 * dwarf2read.c: Same.
3376 * elfread.c: Same.
3377 * event-top.c: Same.
3378 * findvar.c: Same.
3379 * gdbtypes.c: Same.
3380 * hppa-tdep.c: Same.
3381 * i386-tdep.c: Same.
3382 * jit.c: Same.
3383 * main.c: Same.
3384 * mdebugread.c: Same.
3385 * moxie-tdep.c: Same.
3386 * nto-procfs.c: Same.
3387 * osabi.c: Same.
3388 * ppc-linux-tdep.c: Same.
3389 * remote.c: Same.
3390 * riscv-tdep.c: Same.
3391 * s390-tdep.c: Same.
3392 * sh-tdep.c: Same.
3393 * sparc-linux-tdep.c: Same.
3394 * sparc-nat.c: Same.
3395 * stack.c: Same.
3396 * target-descriptions.c: Same.
3397 * top.c: Same.
3398 * varobj.c: Same.
3399
3400 2019-10-16 Tom Tromey <tom@tromey.com>
3401
3402 * objfiles.h (struct objfile) <original_name>: Now const.
3403
3404 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3405
3406 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3407 pass on to sigsetjmp's second argument.
3408 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3409
3410 2019-10-16 Keith Seitz <keiths@redhat.com>
3411
3412 PR gdb/23567
3413 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3414 sections whose size is greater than the file size.
3415
3416 2019-10-16 Jim Wilson <jimw@sifive.com>
3417
3418 * riscv-tdep.c (riscv_gcc_target_options): New.
3419 (riscv_gnu_triplet_regexp): New.
3420 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3421 set_gdbarch_gnu_triplet_regexp.
3422
3423 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3424
3425 * Makefile.in: Add xml-builtin.h.
3426 * features/feature_to_c.sh: Add an include for xml-builtin.h
3427 to ensure that the compiler checks that the types match.
3428 * xml-builtin.h: New file.
3429 * xml-support.c (fetch_xml_builtin): Add missing const.
3430 * xml-support.h: Remove declaration of xml_builtins.
3431
3432 2019-10-16 Tom de Vries <tdevries@suse.de>
3433
3434 PR tdep/25096
3435 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3436 (amd64_classify_aggregate): ... here.
3437 (amd64_classify_aggregate_field): Handled fiels of nested structs
3438 recursively.
3439
3440 2019-10-16 Tom de Vries <tdevries@suse.de>
3441
3442 PR tdep/24104
3443 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3444 that handles 'theclass'.
3445
3446 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3447
3448 * linespec.c (decode_digits_ordinary): Update comment.
3449 * make-target-delegates: No longer need to handle VEC case.
3450 * memrange.c (normalize_mem_ranges): Update comment.
3451 * namespace.c (add_using_directive): Update comment.
3452 * objc-lang.c (uniquify_strings): Update comment.
3453 * ppc-linux-nat.c (struct thread_points): Update comment.
3454 * probe.h (find_probes_in_objfile): Update comment.
3455 * target.h (enum flash_preserve_mode): Update comment.
3456 * varobj.c (varobj_restrict_range): Update comment.
3457 * varobj.h (varobj_list_children): Update comment.
3458
3459 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 * Makefile.in: Remove references to vec.h and vec.c.
3462 * aarch64-tdep.c: No longer include vec.h.
3463 * ada-lang.c: Likewise.
3464 * ada-lang.h: Likewise.
3465 * arm-tdep.c: Likewise.
3466 * ax.h: Likewise.
3467 * breakpoint.h: Likewise.
3468 * charset.c: Likewise.
3469 * cp-support.h: Likewise.
3470 * dtrace-probe.c: Likewise.
3471 * dwarf2read.c: Likewise.
3472 * extension.h: Likewise.
3473 * gdb_bfd.c: Likewise.
3474 * gdbsupport/gdb_vecs.h: Likewise.
3475 * gdbsupport/vec.c: Remove.
3476 * gdbsupport/vec.h: Remove.
3477 * gdbthread.h: Likewise.
3478 * guile/scm-type.c: Likewise.
3479 * inline-frame.c: Likewise.
3480 * machoread.c: Likewise.
3481 * memattr.c: Likewise.
3482 * memrange.h: Likewise.
3483 * namespace.h: Likewise.
3484 * nat/linux-btrace.h: Likewise.
3485 * osdata.c: Likewise.
3486 * parser-defs.h: Likewise.
3487 * progspace.h: Likewise.
3488 * python/py-type.c: Likewise.
3489 * record-btrace.c: Likewise.
3490 * rust-exp.y: Likewise.
3491 * solib-target.c: Likewise.
3492 * stap-probe.c: Likewise.
3493 * target-descriptions.c: Likewise.
3494 * target-memory.c: Likewise.
3495 * target.h: Likewise.
3496 * varobj.c: Likewise.
3497 * varobj.h: Likewise.
3498 * xml-support.h: Likewise.
3499
3500 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3501
3502 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3503 Update for new std::vector based implementation.
3504 (process_psymtab_comp_unit_reader): Likewise.
3505 (scan_partial_symbols): Likewise.
3506 (recursively_compute_inclusions): Likewise.
3507 (compute_compunit_symtab_includes): Likewise.
3508 (process_imported_unit_die): Likewise.
3509 (queue_and_load_dwo_tu): Likewise.
3510 (follow_die_sig_1): Likewise.
3511 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3512 (typedef dwarf2_per_cu_ptr): Remove.
3513 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3514 function.
3515 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3516 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3517 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3518 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3519 std::vector.
3520
3521 2019-10-15 Tom Tromey <tromey@adacore.com>
3522
3523 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3524 TID.
3525
3526 2019-10-15 Tom Tromey <tromey@adacore.com>
3527
3528 * windows-nat.c (windows_nat_target::fetch_registers)
3529 (windows_nat_target::store_registers): Rename "pid" to "tid".
3530
3531 2019-10-15 Tom Tromey <tromey@adacore.com>
3532
3533 * gdbarch.h, gdbarch.c: Rebuild.
3534 * gdbarch.sh (gcc_target_options): Change return type to
3535 std::string.
3536 * compile/compile.c (get_args): Update.
3537 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3538 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3539 std::string.
3540 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3541 std::string.
3542 * arch-utils.c (default_gcc_target_options): Return std::string.
3543 * arch-utils.h (default_gcc_target_options): Return std::string.
3544 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3545
3546 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3547
3548 * breakpoint.c (breakpoint_chain): Make static.
3549 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3550 of accessing breakpoint_chain.
3551
3552 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3553
3554 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3555 to a gdb::function_view and return value to bool.
3556 * breakpoint.h (iterate_over_breakpoints): Likewise.
3557 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3558 (pop_dummy_frame): Update.
3559 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3560 (gdbscm_breakpoints): Update.
3561 * python/py-breakpoint.c (build_bp_list): Update.
3562 (gdbpy_breakpoints): Update.
3563 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3564 Update.
3565 (bpfinishpy_handle_stop): Update.
3566 (bpfinishpy_handle_exit): Update.
3567 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3568 (svr4_update_solib_event_breakpoints): Update.
3569
3570 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3571
3572 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3573 when unwrapping single-field structs.
3574
3575 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * dwarf2read.c: Remove includes.
3578
3579 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3580
3581 * ui-out.c (ui_out::call_do_message): Silence
3582 -Wformat-nonliteral warning.
3583
3584 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3585
3586 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3587 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3588 include: readline/tilde.h.
3589
3590 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3591
3592 * remote.c (remote_target::get_trace_status): Remove declaration of
3593 trace_regblock_size.
3594
3595 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3596
3597 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3598 (show_user): Remove declaration of cmdlist.
3599 * cli/cli-cmds.h (max_user_call_depth): Declare.
3600 * cli/cli-script.c (execute_user_command): Remove declaration
3601 of max_user_call_depth.
3602
3603 2019-10-11 Jim Wilson <jimw@sifive.com>
3604
3605 * gdbsupport/print-utils.h (pulongest): Fix comment.
3606 (plongest): Likewise.
3607 (phex): Add missing comment, mention leading zeros.
3608 (phex_nz): Add mention of no leading zeros to comment.
3609
3610 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3611 plongest instead of unsigned long long cast.
3612
3613 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3614
3615 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3616 for external_editor_command and gdbtk_test.
3617
3618 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3619
3620 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3621 * varobj.c (varobjdebug): Move comment to...
3622 * varobj.h (varobjdebug): ...here, and declare.
3623
3624 2019-10-09 Tom Tromey <tom@tromey.com>
3625
3626 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3627 erase_data_content.
3628
3629 2019-10-09 Tom Tromey <tom@tromey.com>
3630
3631 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3632 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3633 * tui/tui-command.c (tui_cmd_window::resize)
3634 (tui_refresh_cmd_win): Update.
3635 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3636 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3637 * tui/tui-data.c (~tui_gen_win_info): Remove.
3638 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3639 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3640 (tui_redisplay_readline, tui_mld_flush)
3641 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3642 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3643 (tui_data_window::erase_data_content)
3644 (tui_data_item_window::rerender)
3645 (tui_data_item_window::refresh_window): Update.
3646 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3647 (box_win, tui_gen_win_info::make_window)
3648 (tui_gen_win_info::make_visible): Update.
3649 (tui_delete_win): Remove.
3650 * tui/tui-winsource.c
3651 (tui_source_window_base::do_erase_source_content): Update.
3652 (tui_show_source_line, tui_source_window_base::update_tab_width)
3653 (tui_source_window_base::update_exec_info): Update.
3654 * tui/tui-data.h (struct curses_deleter): New.
3655 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3656 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3657
3658 2019-10-09 Tom Tromey <tom@tromey.com>
3659
3660 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3661
3662 2019-10-09 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3665 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3666
3667 2019-10-09 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3670 window height directly.
3671 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3672 declare.
3673 * tui/tui-layout.c (tui_default_win_height): Remove.
3674 (tui_default_win_viewport_height): Remove.
3675
3676 2019-10-09 Tom Tromey <tom@tromey.com>
3677
3678 * tui/tui.h: Remove comments.
3679
3680 2019-10-09 Tom de Vries <tdevries@suse.de>
3681
3682 * python/lib/gdb/printer/bound_registers.py: Use
3683 '^builtin_type_bound128' as regexp argument for
3684 add_builtin_pretty_printer.
3685
3686 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3687
3688 * guile/guile.c (guile_extension_script_ops): Remove forward
3689 declaration and mark as static.
3690 (guile_script_ops): Likewise.
3691 (extension_language_guile): Move further down in the file so
3692 it can reference the definitions for guile_{extension_,}script_ops.
3693
3694 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3695
3696 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3697 except SORTL, DFLTCC, and KDSA.
3698
3699 2019-10-08 Tom Tromey <tromey@adacore.com>
3700
3701 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3702 (struct safe_symbol_file_add_args): Remove.
3703
3704 2019-10-08 Tom Tromey <tromey@adacore.com>
3705
3706 * windows-nat.c: Don't include buildsym-legacy.h.
3707
3708 2019-10-08 Tom Tromey <tromey@adacore.com>
3709
3710 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3711
3712 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3713
3714 * gdbtypes.c (overload_debug): Move comment to header.
3715 * gdbtypes.h (overload_debug): Declare.
3716 * valops.c: Remove declaration of overload_debug, instead
3717 include gdbtypes.h.
3718
3719 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3720
3721 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3722 through _().
3723 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3724 move comment...
3725 * language.h (lang_frame_mismatch_warn): ... here. Also add
3726 declaration.
3727 * top.c (lang_frame_mismatch_warn): Remove declaration.
3728 (check_frame_language_change): Pass lang_frame_mismatch_warn
3729 through _().
3730
3731 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3732
3733 * c-lang.h (vtbl_ptr_name): Declare.
3734 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3735 it from the header.
3736 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3737
3738 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3739
3740 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3741 gdb_static_assert.
3742
3743 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3744
3745 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3746 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3747 * ctfread.c: New file.
3748 * ctfread.h: New file.
3749 * elfread.c: Include ctfread.h.
3750 (struct elfinfo text_p): New member ctfsect.
3751 (elf_locate_sections): Mark CTF section.
3752 (elf_symfile_read): Call elfctf_build_psymtabs.
3753 * Makefile.in (LIBCTF): Add.
3754 (CLIBS): Use it.
3755 (CDEPS): Likewise.
3756 (DIST): Add ctfread.c.
3757
3758 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 * ctfread.c (struct nextfield): Renamed to ...
3761 (struct ctf_nextfield): ... this.
3762 (struct field_info): Renamed to ...
3763 (strut ctf_field_info): ... this.
3764 (attach_fields_to_type): Update for renamed structures.
3765 (ctf_add_member_cb): Likewise.
3766 (ctf_add_enum_member_cb): Likewise.
3767 (process_struct_members): Likewise.
3768 (process_enum_type): Likewise.
3769
3770 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3771
3772 * tracectf.h: Rename, was ctf.h.
3773 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3774 * tracefile.c: Likewise.
3775 * tracepoint.c: Remove unused include ctf.h.
3776 * mi/mi-main.c: Likewise.
3777 * Makefile.in Replace ctf.c with tracectf.c.
3778
3779 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3780
3781 * version.in: Change version number to "9.0.50.DATE-git".
3782
3783 2019-10-03 Tom Tromey <tom@tromey.com>
3784
3785 PR rust/24976:
3786 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3787
3788 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3789
3790 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3791 cp_search_name_hash.
3792 * NEWS: Add entry about nested function support.
3793
3794 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3795 Andrew Burgess <andrew.burgess@embecosm.com>
3796
3797 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3798 for nested static variables when searchin VAR_DOMAIN.
3799 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3800 global scope, update comment.
3801 (add_partial_subprogram): Call add_partial_subprogram recursively
3802 for nested subroutines when processinng Fortran.
3803 (load_partial_dies): Process the child entities of a subprogram
3804 when processing Fortran.
3805 (partial_die_parent_scope): Handle building scope
3806 for Fortran nested functions.
3807 (process_die): Record that nested functions have a scope.
3808 (new_symbol): Always record Fortran subprograms on the global
3809 symbol list.
3810 (determine_prefix): How to build the prefix for Fortran
3811 subprograms.
3812
3813 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3814
3815 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3816 have just sent the thread a SIGSTOP and are waiting for it to
3817 arrive.
3818
3819 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * btrace.c (btrace_add_pc): Remove whitespace before the template
3822 parameter in 'std::vector <...>'.
3823 (parse_xml_btrace_block): Likewise.
3824 (btrace_maint_decode_pt): Likewise.
3825 (btrace_maint_update_packets): Likewise.
3826 (btrace_maint_print_packets): Likewise.
3827 * btrace.h (struct btrace_maint_info): Likewise.
3828 * dwarf2read.c (struct type_unit_group): Likewise.
3829 (build_type_psymtabs_reader): Likewise.
3830 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3831 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3832 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3833
3834 2019-10-03 Tom de Vries <tdevries@suse.de>
3835
3836 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3837 the first line of the help text for set/show style metadata.
3838
3839 2019-10-02 Tom Tromey <tromey@adacore.com>
3840
3841 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3842 * gdbsupport/common-inferior.c: New file.
3843 * infcmd.c (startup_with_shell): Don't define.
3844 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3845 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3846 * inferior.h (startup_with_shell): Don't declare.
3847
3848 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3849
3850 * gdbsupport/gdb_assert.h: Include errors.h.
3851 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3852
3853 2019-10-02 Tom Tromey <tromey@adacore.com>
3854
3855 * NEWS: Add $_ada_exception entry.
3856 * ada-lang.c (struct ada_catchpoint): Add constructor.
3857 <m_kind>: New member.
3858 (allocate_location_exception, re_set_exception): Remove
3859 "ex" parameter.
3860 (should_stop_exception): Compute $_ada_exception.
3861 (check_status_exception, print_it_exception)
3862 (print_one_exception, print_mention_exception): Remove
3863 "ex" parameter.
3864 (allocate_location_catch_exception, re_set_catch_exception)
3865 (check_status_exception, print_it_catch_exception)
3866 (print_one_catch_exception, print_mention_catch_exception)
3867 (print_recreate_catch_exception)
3868 (allocate_location_catch_exception_unhandled)
3869 (re_set_catch_exception_unhandled)
3870 (check_status_exception, print_it_catch_exception_unhandled)
3871 (print_one_catch_exception_unhandled)
3872 (print_mention_catch_exception_unhandled)
3873 (print_recreate_catch_exception_unhandled)
3874 (allocate_location_catch_assert, re_set_catch_assert)
3875 (check_status_assert, print_it_catch_assert)
3876 (print_one_catch_assert, print_mention_catch_assert)
3877 (print_recreate_catch_assert)
3878 (allocate_location_catch_handlers, re_set_catch_handlers)
3879 (check_status_handlers, print_it_catch_handlers)
3880 (print_one_catch_handlers, print_mention_catch_handlers)
3881 (print_recreate_catch_handlers): Remove.
3882 (create_ada_exception_catchpoint): Update.
3883 (initialize_ada_catchpoint_ops): Update.
3884
3885 2019-10-02 Tom Tromey <tromey@adacore.com>
3886
3887 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3888 (create_excep_cond_exprs): Simplify exception string computation.
3889 (ada_exception_catchpoint_cond_string): Likewise.
3890
3891 2019-10-02 Tom Tromey <tromey@adacore.com>
3892
3893 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3894 * ada-lang.c (lesseq_defined_than): Handle
3895 LOC_STATIC.
3896 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3897 parameter.
3898 (dwarf2_has_info): Likewise.
3899 (new_symbol): Set maybe_copied on symbol when
3900 appropriate.
3901 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3902 parameter.
3903 <can_copy>: New member.
3904 * elfread.c (record_minimal_symbol): Set maybe_copied
3905 on symbol when appropriate.
3906 (elf_symfile_read): Update call to dwarf2_has_info.
3907 * minsyms.c (lookup_minimal_symbol_linkage): New
3908 function.
3909 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3910 * symtab.c (get_symbol_address, get_msymbol_address):
3911 New functions.
3912 * symtab.h (get_symbol_address, get_msymbol_address):
3913 Declare.
3914 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3915 maybe_copied.
3916 (struct symbol, struct minimal_symbol) <maybe_copied>:
3917 New member.
3918
3919 2019-10-02 Tom Tromey <tromey@adacore.com>
3920
3921 * source.c (struct current_source_location): New.
3922 (current_source_key): New global.
3923 (current_source_symtab, current_source_line)
3924 (current_source_pspace): Remove.
3925 (get_source_location): New function.
3926 (get_current_source_symtab_and_line)
3927 (set_default_source_symtab_and_line)
3928 (set_current_source_symtab_and_line)
3929 (clear_current_source_symtab_and_line, select_source_symtab)
3930 (info_source_command, print_source_lines_base)
3931 (info_line_command, search_command_helper, _initialize_source):
3932 Update.
3933
3934 2019-10-02 Tom Tromey <tromey@adacore.com>
3935
3936 * source.c (select_source_symtab): Don't call
3937 decode_line_with_current_source.
3938
3939 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * symtab.c (lookup_global_symbol): Search global block.
3942
3943 2019-10-02 Tom Tromey <tromey@adacore.com>
3944
3945 * coffread.c (process_coff_symbol): Update.
3946 * dwarf2read.c (var_decode_location, new_symbol): Update.
3947 * mdebugread.c (parse_symbol): Update.
3948 * objfiles.c (relocate_one_symbol): Update.
3949 * stabsread.c (define_symbol, fix_common_block)
3950 (scan_file_globals): Update.
3951 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3952 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3953 * xcoffread.c (process_xcoff_symbol): Update.
3954
3955 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3956
3957 * MAINTAINERS: Update my email address.
3958
3959 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3962 std::vector.
3963 (build_type_psymtabs_reader): Update for std::vector.
3964 (build_type_psymtab_dependencies): Likewise.
3965 * dwarf2read.h: Remove use of DEF_VEC_P.
3966 (typedef sig_type_ptr): Delete.
3967
3968 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3969
3970 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3971 to std::vector.
3972 (btrace_maint_decode_pt): Likewise, and move allocation of the
3973 vector outside of the loop.
3974 (btrace_maint_update_packets): Update to handle change from VEC to
3975 std::vector.
3976 (btrace_maint_print_packets): Likewise.
3977 (maint_info_btrace_cmd): Likewise.
3978 * btrace.h: Remove use of DEF_VEC_O.
3979 (typedef btrace_pt_packet_s): Delete.
3980 (struct btrace_maint_info) <packets>: Change fromm VEC to
3981 std::vector.
3982 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3983
3984 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3987 make accesses into the vector constant references.
3988 (btrace_add_pc): Update for std::vector.
3989 (btrace_stitch_bts): Likewise.
3990 (parse_xml_btrace_block): Likewise.
3991 (btrace_maint_update_packets): Likewise.
3992 (btrace_maint_print_packets): Likewise.
3993 (maint_info_btrace_cmd): Likewise.
3994 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3995 std::vector.
3996 (btrace_data::empty): Likewise.
3997 (btrace_data_append): Likewise.
3998 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3999 (typedef btrace_block_s): Delete.
4000 (struct btrace_block): Add constructor.
4001 (struct btrace_data_bts) <blocks>: Change to std::vector.
4002 * nat/linux-btrace.c (perf_event_read_bts): Update for
4003 std::vector.
4004 (linux_read_bts): Likewise.
4005
4006 2019-10-01 Tom Tromey <tom@tromey.com>
4007
4008 * cli/cli-logging.c (show_logging_filename): Use styled_string.
4009
4010 2019-10-01 Tom Tromey <tom@tromey.com>
4011
4012 * stack.c (print_frame, info_frame_command_core): Use
4013 styled_string.
4014 * linux-thread-db.c (try_thread_db_load_1)
4015 (try_thread_db_load_from_pdir_1): Use styled_string.
4016 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
4017 (auto_load_section_scripts, info_auto_load_local_gdbinit)
4018 (maybe_print_unsupported_script_warning)
4019 (maybe_print_script_not_found_warning): Use styled_string.
4020 * ada-lang.c (user_select_syms): Use styled_string.
4021
4022 2019-10-01 Tom Tromey <tom@tromey.com>
4023
4024 * p-lang.c (pascal_printstr): Use metadata style.
4025 * value.c (show_convenience): Use metadata style.
4026 * valprint.c (valprint_check_validity, val_print_optimized_out)
4027 (val_print_not_saved, val_print_unavailable)
4028 (val_print_invalid_address, generic_val_print, val_print)
4029 (value_check_printable, val_print_array_elements): Use metadata
4030 style.
4031 * ui-out.h (class ui_out) <field_fmt>: New overload.
4032 <do_field_fmt>: Add style parameter.
4033 * ui-out.c (ui_out::field_fmt): New overload.
4034 * typeprint.c (type_print_unknown_return_type)
4035 (val_print_not_allocated, val_print_not_associated): Use metadata
4036 style.
4037 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
4038 parameter.
4039 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
4040 * tracepoint.c (tvariables_info_1): Use metadata style.
4041 * stack.c (print_frame_arg, print_frame_info, print_frame)
4042 (info_frame_command_core): Use metadata style.
4043 * skip.c (info_skip_command): Use metadata style.
4044 * rust-lang.c (rust_print_enum): Use metadata style.
4045 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
4046 metadata style.
4047 * python/py-framefilter.c (py_print_single_arg): Use metadata
4048 style.
4049 * printcmd.c (do_one_display, print_variable_and_value): Use
4050 metadata style.
4051 * p-valprint.c (pascal_val_print)
4052 (pascal_object_print_value_fields): Use metadata style.
4053 * p-typeprint.c (pascal_type_print_base): Use metadata style.
4054 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
4055 parameter.
4056 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
4057 * m2-valprint.c (m2_print_long_set): Use metadata style.
4058 * m2-typeprint.c (m2_print_type): Use metadata style.
4059 * infcmd.c (print_return_value_1): Use metadata style.
4060 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
4061 * f-valprint.c (info_common_command_for_block): Use metadata
4062 style.
4063 * f-typeprint.c (f_type_print_base): Use metadata style.
4064 * expprint.c (print_subexp_standard): Use metadata style.
4065 * cp-valprint.c (cp_print_value_fields): Use metadata style.
4066 * cli/cli-style.h (class cli_style_option): Add constructor.
4067 (metadata_style): Declare.
4068 * cli/cli-style.c (metadata_style): New global.
4069 (_initialize_cli_style): Register metadata style.
4070 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
4071 parameter.
4072 * cli-out.c (cli_ui_out::do_field_fmt): Update.
4073 * c-typeprint.c (c_type_print_base_struct_union)
4074 (c_type_print_base_1): Use metadata style.
4075 * breakpoint.c (watchpoint_value_print)
4076 (print_one_breakpoint_location): Use metadata style.
4077 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
4078 style.
4079 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
4080 style.
4081 * ada-valprint.c (val_print_packed_array_elements, printstr)
4082 (print_field_values, ada_val_print_ref, ada_val_print): Use
4083 metadata style.
4084 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
4085 style.
4086 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
4087 style.
4088 * ada-lang.c (user_select_syms): Use metadata style.
4089
4090 2019-10-01 Tom Tromey <tom@tromey.com>
4091
4092 * cli/cli-cmds.c (pwd_command): Style output.
4093
4094 2019-10-01 Pedro Alves <palves@redhat.com>
4095 Tom Tromey <tom@tromey.com>
4096
4097 * symtab.c (print_symbol_info): Use %ps.
4098 (print_msymbol_info): Use %ps.
4099 * symfile.c (symbol_file_add_with_addrs): Use %ps.
4100 * printcmd.c (print_variable_and_value): Use %ps.
4101 * macrocmd.c (show_pp_source_pos): Use %ps.
4102 * infrun.c (print_exited_reason): Use ui_out::message.
4103 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
4104 (describe_other_breakpoints): Use ui_out::message and new
4105 formats.
4106 (say_where): Use new formats.
4107 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4108 and new formats.
4109
4110 2019-10-01 Pedro Alves <palves@redhat.com>
4111 Tom Tromey <tom@tromey.com>
4112
4113 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4114 (test_gdb_formats): New function.
4115 (run_tests): Call it.
4116 (test_format_specifier): Update.
4117 * utils.h (fputs_filtered): Update comment.
4118 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4119 (fputs_styled_unfiltered): Declare.
4120 * utils.c (fputs_styled_unfiltered): New function.
4121 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4122 (vfprintf_filtered): Update.
4123 (vfprintf_unfiltered, vprintf_filtered): Update.
4124 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4125 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4126 disallow_ui_out_field>: New constants.
4127 (enum class field_kind): New.
4128 (struct base_field_s, struct signed_field_s): New.
4129 (signed_field): New function.
4130 (struct string_field_s): New.
4131 (string_field): New function.
4132 (struct styled_string_s): New.
4133 (styled_string): New function.
4134 (class ui_out) <message>: Add comment.
4135 <vmessage, call_do_message>: New methods.
4136 <do_message>: Add style parameter.
4137 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4138 methods.
4139 (ui_out::message): Rewrite.
4140 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4141 parameter.
4142 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4143 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4144 gdb_extensions parameter.
4145 (class format_piece): Add parameter to constructor.
4146 (n_int_args): New field.
4147 * gdbsupport/format.c (format_pieces::format_pieces): Add
4148 gdb_extensions parameter. Handle '*'.
4149 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4150 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4151 vfprintf_styled_no_gdbfmt.
4152 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4153 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4154 unfiltered output.
4155 * ui-style.h (struct ui_file_style) <ptr>: New method.
4156
4157 2019-10-01 Tom Tromey <tom@tromey.com>
4158
4159 * unittests/format_pieces-selftests.c: Update. Add final format.
4160 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4161 empty literal pieces.
4162
4163 2019-10-01 Tom Tromey <tom@tromey.com>
4164
4165 * ui-out.h (enum class ui_out_style_kind): Remove.
4166 (class ui_out) <field_string, field_stsream, do_field_string>:
4167 Change type of "style".
4168 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4169 (ui_out::field_string): Update.
4170 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4171 of "style".
4172 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4173 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4174 * stack.c (print_frame_arg, print_frame_info, print_frame):
4175 Update.
4176 * source.c (print_source_lines_base): Update.
4177 * solib.c (info_sharedlibrary_command): Update.
4178 * skip.c (info_skip_command): Update.
4179 * record-btrace.c (btrace_call_history_src_line)
4180 (btrace_call_history): Update.
4181 * python/py-framefilter.c (py_print_frame): Update.
4182 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4183 "style".
4184 * mi/mi-out.c (mi_ui_out::do_table_header)
4185 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4186 (mi_ui_out::do_field_string): Update.
4187 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4188 Update.
4189 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4190 "style".
4191 * cli-out.c (cli_ui_out::do_table_header)
4192 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4193 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4194 (cli_ui_out::do_field_fmt): Update.
4195 * breakpoint.c (print_breakpoint_location): Update.
4196 (update_static_tracepoint): Update.
4197
4198 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4199
4200 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4201 conversion of gdb_datadir.
4202 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4203 remove not needed c_str ().
4204
4205 2019-09-30 Ali Tamur <tamur@google.com>
4206
4207 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4208 (dwarf2_string_attr): Likewise.
4209
4210 2019-09-30 Ali Tamur <tamur@google.com>
4211
4212 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4213 (process_full_type_unit): Likewise.
4214 (dump_die_shallow): Likewise.
4215 (cu_debug_loc_section): Likewise.
4216
4217 2019-09-28 Christian Biesinger <cbiesinger@google.com>
4218
4219 * minsyms.c (compare_minimal_symbols): Rename to...
4220 (minimal_symbol_is_less_than): ...this, and adjust to STL
4221 conventions (return bool, take arguments as references)
4222 (minimal_symbol_reader::install): Call std::sort instead
4223 of qsort.
4224
4225 2019-09-29 Christian Biesinger <cbiesinger@google.com>
4226
4227 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4228 hash and why.
4229 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4230 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4231
4232 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4233
4234 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4235 * psympriv.h (add_psymbol_to_list): Move comment here and update
4236 it.
4237
4238 2019-09-29 Tom de Vries <tdevries@suse.de>
4239
4240 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4241 Use $tmpdir/$(basename "$output_file").dwz instead of
4242 "${output_file}.dwz".
4243
4244 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4245
4246 PR gdb/25045
4247 * hppa-linux-nat.c: Include gdbarch.h.
4248
4249 2019-09-26 Christian Biesinger <cbiesinger@google.com>
4250
4251 * blockframe.c (find_pc_partial_function): Change return type to bool.
4252 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4253 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4254 (stub_gnu_ifunc_resolve_name): Likewise.
4255 * symtab.c (compare_filenames_for_search): Likewise.
4256 (compare_glob_filenames_for_search): Likewise.
4257 (matching_obj_sections): Likewise.
4258 (symbol_matches_domain): Likewise.
4259 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4260 (find_line_pc): Change return type to bool.
4261 (find_line_pc_range): Likewise.
4262 (producer_is_realview): Likewise.
4263 * symtab.h (symbol_matches_domain): Likewise.
4264 (find_pc_partial_function): Likewise.
4265 (find_pc_line_pc_range): Likewise.
4266 (in_gnu_ifunc_stub): Likewise.
4267 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4268 (find_line_pc): Likewise.
4269 (find_line_pc_range): Likewise.
4270 (matching_obj_sections): Likewise.
4271 (find_line_symtab): Change out parameter to bool.
4272 (producer_is_realview): Change return type to bool.
4273 (compare_filenames_for_search): Likewise.
4274 (compare_glob_filenames_for_search): Likewise.
4275
4276 2019-09-26 Tom Tromey <tom@tromey.com>
4277
4278 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4279 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4280 * gdb_usleep.h: Remove.
4281 * gdb_usleep.c: Remove.
4282 * utils.c: Don't include gdb_usleep.h.
4283
4284 2019-09-26 Tom Tromey <tromey@adacore.com>
4285
4286 * python/py-type.c (type_to_type_object): Call check_typedef
4287 for stub types.
4288
4289 2019-09-26 Tom Tromey <tom@tromey.com>
4290
4291 * utils.h (initialize_utils): Don't declare.
4292 * top.c (gdb_init): Don't call initialize_utils.
4293 * utils.c (initialize_utils): Remove. Move contents...
4294 (_initialize_utils): ... here.
4295
4296 2019-09-25 Tom Tromey <tom@tromey.com>
4297
4298 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4299 * utils.h (make_hex_string): Don't declare.
4300 * utils.c (make_hex_string): Remove.
4301
4302 2019-09-24 Tom de Vries <tdevries@suse.de>
4303
4304 PR gdb/23815
4305 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4306 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4307
4308 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4309
4310 * NEWS: Mention new simulator port for PRU.
4311
4312 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4313
4314 * ada-exp.y (write_object_remaining): Update.
4315 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4316 and eliminate the static buffer.
4317 (ada_decode_symbol): Update.
4318 (ada_la_decode): Update.
4319 (ada_sniff_from_mangled_name): Update.
4320 (is_valid_name_for_wild_match): Update.
4321 (ada_lookup_name_info::matches): Update and simplify.
4322 (name_matches_regex): Update.
4323 (ada_add_global_exceptions): Update.
4324 * ada-lang.h (ada_decode): Update signature.
4325 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4326 * dwarf-index-write.c (debug_names::insert): Update.
4327
4328 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4329
4330 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4331 formatting.
4332
4333 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4334
4335 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4336 Change "nonzero" to "true" in documentation.
4337
4338 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4339
4340 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4341 (_initialize_darwin_solib): Don't set
4342 darwin_so_ops.lookup_lib_global_symbol.
4343 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4344 set_gdbarch_iterate_over_objfiles_in_search_order.
4345 (elf_lookup_lib_symbol): Rename to...
4346 (svr4_iterate_over_objfiles_in_search_order): this, and update
4347 to iterate semantics.
4348 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4349 * solib.c (solib_global_lookup): Remove.
4350 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4351 (solib_global_lookup): Remove.
4352 * symtab.c (lookup_global_or_static_symbol): Remove call to
4353 solib_global_lookup.
4354
4355 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4356
4357 * NEWS: Move entries about default MI version now being
4358 version 3, and about the GDB/MI fix for multi-location
4359 breakpoints to the "since GDB 8.3" section.
4360
4361 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4362
4363 GDB 8.3.1 released.
4364
4365 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4366
4367 * NEWS: Mention that Cell/B.E. debugging support was removed.
4368 * MAINTAINERS: Remove spu target.
4369
4370 * config/djgpp/fnchange.lst: Remove entries for removed files.
4371
4372 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4373 spu-multiarch.o, and spu-tdep.o.
4374 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4375 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4376 spu-multiarch.c, and spu-tdep.c.
4377 * spu-linux-nat.c: Remove file.
4378 * spu-multiarch.c: Remove file.
4379 * spu-tdep.c: Remove file.
4380 * spu-tdep.h: Remove file.
4381 * solib-spu.c: Remove file.
4382 * solib-spu.h: Remove file.
4383
4384 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4385 * configure.nat (spu-linux): Remove.
4386 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4387 solib-multiarch.o from gdb_target_obs.
4388 (spu*-*-*): Remove.
4389
4390 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4391 feature flag.
4392 (ppc_linux_no_features): Update.
4393 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4394 Cell/B.E. support.
4395 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4396 (tdesc_powerpc_cell64l): Likewise.
4397 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4398 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4399 Cell/B.E. support.
4400 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4401 Do not include "features/rs6000/powerpc-cell32l.c" or
4402 "features/rs6000/powerpc-cell64l.c".
4403 (ppc_linux_spu_section): Remove.
4404 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4405 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4406 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4407 (ppc_linux_spe_context_lookup): Remove.
4408 (ppc_linux_spe_context_inferior_created): Remove.
4409 (ppc_linux_spe_context_solib_loaded): Remove.
4410 (ppc_linux_spe_context_solib_unloaded): Remove.
4411 (ppc_linux_spe_context): Remove.
4412 (struct ppu2spu_cache): Remove.
4413 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4414 (struct ppu2spu_data): Remove.
4415 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4416 ppu2spu_unwind): Remove.
4417 (ppc_linux_init_abi): Remove Cell/B.E. support.
4418 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4419
4420 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4421 (rs6000/powerpc-cell64l-expedite): Likewise
4422 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4423 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4424 rs6000/powerpc-cell64l.xml.
4425 * features/rs6000/powerpc-cell32l.xml: Remove.
4426 * features/rs6000/powerpc-cell64l.xml: Likewise.
4427 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4428 * features/rs6000/powerpc-cell64l.c: Likewise.
4429 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4430 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4431 * regformats/reg-spu.dat: Remove.
4432
4433 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4434 * corelow.c (struct spuid_list): Remove.
4435 (add_to_spuid_list): Remove.
4436 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4437 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4438 (remote_protocol_features): Remove associated entries.
4439 (_initialize_remote): No longer initialize them.
4440 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4441 * linux-nat.c (SPUFS_MAGIC): Remove.
4442 (linux_proc_xfer_spu): Remove.
4443 (spu_enumerate_spu_ids): Remove.
4444 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4445 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4446 (linux_make_corefile_notes): No longer call it.
4447
4448 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4449 (cooked_write_test): Likewise.
4450
4451 2019-09-20 Tom Tromey <tom@tromey.com>
4452
4453 * NEWS: Mention case-sensitivity of TUI commands.
4454 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4455 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4456 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4457
4458 2019-09-20 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-source.c (tui_source_window::set_contents): Use
4461 make_unique_xstrdup.
4462 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4463 make_unique_xstrdup.
4464
4465 2019-09-20 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-data.c: Remove separator comments.
4468 * tui/tui-layout.c: Remove separator comments.
4469 * tui/tui-win.c: Remove separator comments.
4470 * tui/tui-wingeneral.c: Remove separator comments.
4471
4472 2019-09-20 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui.h (strcat_to_buf): Don't declare.
4475 * tui/tui.c (strcat_to_buf): Remove.
4476
4477 2019-09-20 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4480 from "fullname".
4481 * tui/tui-source.c (tui_source_window::set_contents)
4482 (tui_source_window::location_matches_p)
4483 (tui_source_window::maybe_update): Update.
4484
4485 2019-09-20 Tom Tromey <tom@tromey.com>
4486
4487 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4488 Update.
4489 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4490 prefix.
4491 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4492 (tui_data_window::line_from_reg_element_no)
4493 (tui_data_window::first_reg_element_no_inline)
4494 (tui_data_window::show_registers)
4495 (tui_data_window::show_register_group)
4496 (tui_data_window::display_registers_from)
4497 (tui_data_window::display_registers_from_line)
4498 (tui_data_window::first_data_item_displayed)
4499 (tui_data_window::delete_data_content_windows)
4500 (tui_data_window::erase_data_content)
4501 (tui_data_window::do_scroll_vertical)
4502 (tui_data_window::refresh_window)
4503 (tui_data_window::check_register_values): Update.
4504
4505 2019-09-20 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4508 (struct tui_locator_window) <full_name, proc_name>: Now
4509 std::string.
4510 * tui/tui-stack.c (tui_locator_window::make_status_line)
4511 (tui_locator_window::set_locator_fullname)
4512 (tui_locator_window::set_locator_info): Update.
4513 * tui/tui-source.c (tui_source_window::set_contents)
4514 (tui_source_window::showing_source_p): Update.
4515
4516 2019-09-20 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4519 Don't call tui_locator_win_info_ptr.
4520
4521 2019-09-20 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4524
4525 2019-09-20 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4528 height for locator.
4529 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4530 * tui/tui-layout.c (show_source_disasm_command, show_data)
4531 (show_source_or_disasm_and_command): Use 1 as height for locator.
4532
4533 2019-09-20 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui.c (tui_enable): Update.
4536 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4537 Update.
4538 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4539 Update.
4540 * tui/tui-data.c (win_resized): Now bool.
4541 (tui_win_resized): Return bool.
4542 (tui_set_win_resized_to): Accept a bool.
4543
4544 2019-09-20 Tom Tromey <tom@tromey.com>
4545
4546 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4547 Change type of "refresh_values_only".
4548 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4549 type of "refresh_values_only".
4550
4551 2019-09-20 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4554 std::string.
4555 (tui_disassemble): Add "pos" parameter.
4556 (tui_disasm_window::set_contents): Simplify.
4557
4558 2019-09-20 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-winsource.h (struct tui_source_window_base)
4561 <show_source_content>: Now private.
4562 * tui/tui-winsource.c
4563 (tui_source_window_base::show_source_content): Don't handle empty
4564 content case.
4565
4566 2019-09-20 Tom Tromey <tom@tromey.com>
4567
4568 * tui/tui-layout.c (show_source_disasm_command)
4569 (show_source_or_disasm_and_command): Don't call
4570 show_source_content.
4571
4572 2019-09-20 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4575 Declare.
4576 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4577 from tui_make_status_line.
4578 (tui_locator_window::rerender): Update.
4579
4580 2019-09-20 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4583 (tui_locator_window::rerender): Update.
4584
4585 2019-09-20 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-winsource.h (struct tui_source_window_base)
4588 <~tui_source_window_base>: Don't declare.
4589 <fullname>: Remove.
4590 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4591 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4592 member.
4593 * tui/tui-source.c (tui_source_window::set_contents): Update.
4594 (tui_source_window::location_matches_p)
4595 (tui_source_window::maybe_update): Update.
4596
4597 2019-09-20 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-winsource.h (~tui_source_element): Remove.
4600 (tui_source_element): Update.
4601 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4602 * tui/tui-winsource.c (tui_show_source_line): Update.
4603 * tui/tui-source.c (tui_source_window::set_contents): Update.
4604 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4605
4606 2019-09-20 Tom Tromey <tom@tromey.com>
4607
4608 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4609 declare.
4610 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4611 tui_clear_source_windows_detail.
4612 * tui/tui-winsource.h (struct tui_source_window_base)
4613 <clear_detail>: Don't declare.
4614 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4615 Remove.
4616 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4617
4618 2019-09-20 Tom Tromey <tromey@adacore.com>
4619
4620 PR ada/24919:
4621 * block.c (contained_in): Fix final return value.
4622
4623 2019-09-20 Alan Modra <amodra@gmail.com>
4624
4625 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4626 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4627 (read_indirect_string_from_dwz): Use bfd accessor.
4628 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4629 * machoread.c (macho_symfile_read_all_oso): Likewise.
4630 * solib.c (solib_bfd_open): Likewise.
4631
4632 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4633
4634 * eval.c: Move declaration of overload_resolution to...
4635 * value.h: ...here.
4636
4637 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4638
4639 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4640 * arm-linux-tdep.c: Likewise.
4641 * arm-nbsd-nat.c: Likewise.
4642 * arm-tdep.h: Declare arm_apcs_32.
4643 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4644
4645 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4646
4647 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4648 * dwarf2read.h: Declare dwarf_always_disassemble.
4649
4650 2019-09-19 Tom de Vries <tdevries@suse.de>
4651
4652 PR gdb/25009
4653 * source-cache.c (source_cache::ensure): Catch exception thrown during
4654 construction of the highlighter.
4655
4656 2019-09-18 Alan Modra <amodra@gmail.com>
4657
4658 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4659 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4660 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4661 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4662 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4663 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4664 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4665 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4666 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4667 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4668 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4669 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4670 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4671 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4672 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4673 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4674 * mi/mi-interp.c: Update throughout for bfd section macro and
4675 function changes.
4676 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4677 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4678
4679 2019-09-18 Tom Tromey <tom@tromey.com>
4680
4681 * NEWS: Add entry.
4682 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4683 call rl_initialize.
4684 (tui_enable): Do not call rl_initialize.
4685
4686 2019-09-18 Christian Groessler <chris@groessler.org>
4687
4688 * alpha-linux-nat.c: Include gdbarch.h.
4689
4690 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4691
4692 * ui-file.c: Include cli/cli-style.h.
4693 (term_cli_styling): Remove cli_styling declaration.
4694
4695 2019-09-18 Alan Modra <amodra@gmail.com>
4696
4697 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4698 to bfd_asymbol_section.
4699
4700 2019-09-18 Alan Modra <amodra@gmail.com>
4701
4702 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4703 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4704 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4705
4706 2019-09-18 Alan Modra <amodra@gmail.com>
4707
4708 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4709 * spu-linux-nat.c (spu_bfd_open): Likewise.
4710
4711 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4712
4713 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4714 to bool to match definition in dwarf2read.c.
4715
4716 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4717
4718 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4719 (print_signatures): Likewise.
4720 (trust_pad_over_xvs): Likewise.
4721 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4722 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4723 * arm-linux-nat.c (arm_apcs_32): Likewise.
4724 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4725 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4726 * arm-tdep.c (arm_debug): Likewise.
4727 (arm_apcs_32): Likewise.
4728 * auto-load.c (debug_auto_load): Likewise.
4729 (auto_load_gdb_scripts): Likewise.
4730 (global_auto_load): Likewise.
4731 (auto_load_local_gdbinit): Likewise.
4732 (auto_load_local_gdbinit_loaded): Likewise.
4733 * auto-load.h (global_auto_load): Likewise.
4734 (auto_load_local_gdbinit): Likewise.
4735 (auto_load_local_gdbinit_loaded): Likewise.
4736 * breakpoint.c (disconnected_dprintf): Likewise.
4737 (breakpoint_proceeded): Likewise.
4738 (automatic_hardware_breakpoints): Likewise.
4739 (always_inserted_mode): Likewise.
4740 (target_exact_watchpoints): Likewise.
4741 (_initialize_breakpoint): Update.
4742 * breakpoint.h (target_exact_watchpoints): Change to bool.
4743 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4744 * cli/cli-cmds.c (trace_commands): Likewise.
4745 * cli/cli-cmds.h (trace_commands): Likewise.
4746 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4747 to bool*.
4748 * cli/cli-logging.c (logging_overwrite): Change to bool.
4749 (logging_redirect): Likewise.
4750 (debug_redirect): Likewise.
4751 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4752 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4753 to bool.
4754 <boolean_option_def>: Update.
4755 (struct flag_option_def): Change default type of Context to bool
4756 from int.
4757 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4758 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4759 (get_setshow_command_value_string): Likewise.
4760 * cli/cli-style.c (cli_styling): Change to bool.
4761 (source_styling): Likewise.
4762 * cli/cli-style.h (source_styling): Likewise.
4763 (cli_styling): Likewise.
4764 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4765 to bool.
4766 * command.h (var_types): Update comment.
4767 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4768 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4769 bool.
4770 (debug_compile_cplus_scopes): Likewise.
4771 * compile/compile-internal.h (compile_debug): Likewise.
4772 * compile/compile.c (compile_debug): Likewise.
4773 (struct compile_options) <raw>: Likewise.
4774 * cp-support.c (catch_demangler_crashes): Likewise.
4775 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4776 (usr_cmd_cris_dwarf2_cfi): Likewise.
4777 * csky-tdep.c (csky_debug): Likewise.
4778 * darwin-nat.c (enable_mach_exceptions): Likewise.
4779 * dcache.c (dcache_enabled_p): Likewise.
4780 * defs.h (info_verbose): Likewise.
4781 * demangle.c (demangle): Likewise.
4782 (asm_demangle): Likewise.
4783 * dwarf-index-cache.c (debug_index_cache): Likewise.
4784 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4785 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4786 * dwarf2read.c (check_physname): Likewise.
4787 (use_deprecated_index_sections): Likewise.
4788 (dwarf_always_disassemble): Likewise.
4789 * eval.c (overload_resolution): Likewise.
4790 * event-top.c (set_editing_cmd_var): Likewise.
4791 (exec_done_display_p): Likewise.
4792 * event-top.h (set_editing_cmd_var): Likewise.
4793 (exec_done_display_p): Likewise.
4794 * exec.c (write_files): Likewise.
4795 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4796 (debug_fbsd_nat): Likewise.
4797 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4798 Likewise.
4799 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4800 <backtrace_past_entry> Likewise.
4801 * gdb-demangle.h (demangle): Likewise.
4802 (asm_demangle): Likewise.
4803 * gdb_bfd.c (bfd_sharing): Likewise.
4804 * gdbcore.h (write_files): Likewise.
4805 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4806 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4807 * gdbthread.h (print_thread_events): Likewise.
4808 * gdbtypes.c (opaque_type_resolution): Likewise.
4809 (strict_type_checking): Likewise.
4810 * gnu-nat.c (gnu_debug_flag): Likewise.
4811 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4812 * guile/scm-param.c (pascm_variable): Add boolval.
4813 (add_setshow_generic): Update.
4814 (pascm_param_value): Update.
4815 (pascm_set_param_value_x): Update.
4816 * hppa-tdep.c (hppa_debug): Change to bool..
4817 * infcall.c (may_call_functions_p): Likewise.
4818 (coerce_float_to_double_p): Likewise.
4819 (unwind_on_signal_p): Likewise.
4820 (unwind_on_terminating_exception_p): Likewise.
4821 * infcmd.c (startup_with_shell): Likewise.
4822 * inferior.c (print_inferior_events): Likewise.
4823 * inferior.h (startup_with_shell): Likewise.
4824 (print_inferior_events): Likewise.
4825 * infrun.c (step_stop_if_no_debug): Likewise.
4826 (detach_fork): Likewise.
4827 (debug_displaced): Likewise.
4828 (disable_randomization): Likewise.
4829 (non_stop): Likewise.
4830 (non_stop_1): Likewise.
4831 (observer_mode): Likewise.
4832 (observer_mode_1): Likewise.
4833 (set_observer_mode): Update.
4834 (sched_multi): Change to bool.
4835 * infrun.h (debug_displaced): Likewise.
4836 (sched_multi): Likewise.
4837 (step_stop_if_no_debug): Likewise.
4838 (non_stop): Likewise.
4839 (disable_randomization): Likewise.
4840 * linux-tdep.c (use_coredump_filter): Likewise.
4841 (dump_excluded_mappings): Likewise.
4842 * linux-thread-db.c (auto_load_thread_db): Likewise.
4843 (check_thread_db_on_load): Likewise.
4844 * main.c (captured_main_1): Update.
4845 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4846 xx2_opt, boolean_opt>: Change to bool.
4847 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4848 * maint.c (maintenance_profile_p): Likewise.
4849 (per_command_time): Likewise.
4850 (per_command_space): Likewise.
4851 (per_command_symtab): Likewise.
4852 * memattr.c (inaccessible_by_default): Likewise.
4853 * mi/mi-main.c (mi_async): Likewise.
4854 (mi_async_1): Likewise.
4855 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4856 * nat/fork-inferior.h (startup_with_shell): Likewise.
4857 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4858 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4859 * nios2-tdep.c (nios2_debug): Likewise.
4860 * or1k-tdep.c (or1k_debug): Likewise.
4861 * parse.c (parser_debug): Likewise.
4862 * parser-defs.h (parser_debug): Likewise.
4863 * printcmd.c (print_symbol_filename): Likewise.
4864 * proc-api.c (procfs_trace): Likewise.
4865 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4866 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4867 (set_parameter_value): Update.
4868 (add_setshow_generic): Update.
4869 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4870 to bool*.
4871 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4872 int*.
4873 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4874 * record-btrace.c (record_btrace_target::store_registers): Update.
4875 * record-full.c (record_full_memory_query): Change to bool.
4876 (record_full_stop_at_limit): Likewise.
4877 * record-full.h (record_full_memory_query): Likewise.
4878 * remote-notif.c (notif_debug): Likewise.
4879 * remote-notif.h (notif_debug): Likewise.
4880 * remote.c (use_range_stepping): Likewise.
4881 (interrupt_on_connect): Likewise.
4882 (remote_break): Likewise.
4883 * ser-tcp.c (tcp_auto_retry): Likewise.
4884 * ser-unix.c (serial_hwflow): Likewise.
4885 * skip.c (debug_skip): Likewise.
4886 * solib-aix.c (solib_aix_debug): Likewise.
4887 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4888 (spu_auto_flush_cache_p): Likewise.
4889 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4890 Likewise.
4891 (struct info_print_options) <quiet>: Likewise.
4892 * symfile-debug.c (debug_symfile): Likewise.
4893 * symfile.c (auto_solib_add): Likewise.
4894 (separate_debug_file_debug): Likewise.
4895 * symfile.h (auto_solib_add): Likewise.
4896 (separate_debug_file_debug): Likewise.
4897 * symtab.c (basenames_may_differ): Likewise.
4898 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4899 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4900 (struct info_types_options) <quiet>: Likewise.
4901 * symtab.h (demangle): Likewise.
4902 (basenames_may_differ): Likewise.
4903 * target-dcache.c (stack_cache_enabled_1): Likewise.
4904 (code_cache_enabled_1): Likewise.
4905 * target.c (trust_readonly): Likewise.
4906 (may_write_registers): Likewise.
4907 (may_write_memory): Likewise.
4908 (may_insert_breakpoints): Likewise.
4909 (may_insert_tracepoints): Likewise.
4910 (may_insert_fast_tracepoints): Likewise.
4911 (may_stop): Likewise.
4912 (auto_connect_native_target): Likewise.
4913 (target_stop_and_wait): Update.
4914 (target_async_permitted): Change to bool.
4915 (target_async_permitted_1): Likewise.
4916 (may_write_registers_1): Likewise.
4917 (may_write_memory_1): Likewise.
4918 (may_insert_breakpoints_1): Likewise.
4919 (may_insert_tracepoints_1): Likewise.
4920 (may_insert_fast_tracepoints_1): Likewise.
4921 (may_stop_1): Likewise.
4922 * target.h (target_async_permitted): Likewise.
4923 (may_write_registers): Likewise.
4924 (may_write_memory): Likewise.
4925 (may_insert_breakpoints): Likewise.
4926 (may_insert_tracepoints): Likewise.
4927 (may_insert_fast_tracepoints): Likewise.
4928 (may_stop): Likewise.
4929 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4930 (make_thread_apply_all_options_def_group): Change argument from int*
4931 to bool*.
4932 (thread_apply_all_command): Update.
4933 (print_thread_events): Change to bool.
4934 * top.c (confirm): Likewise.
4935 (command_editing_p): Likewise.
4936 (history_expansion_p): Likewise.
4937 (write_history_p): Likewise.
4938 (info_verbose): Likewise.
4939 * top.h (confirm): Likewise.
4940 (history_expansion_p): Likewise.
4941 * tracepoint.c (disconnected_tracing): Likewise.
4942 (circular_trace_buffer): Likewise.
4943 * typeprint.c (print_methods): Likewise.
4944 (print_typedefs): Likewise.
4945 * utils.c (debug_timestamp): Likewise.
4946 (sevenbit_strings): Likewise.
4947 (pagination_enabled): Likewise.
4948 * utils.h (sevenbit_strings): Likewise.
4949 (pagination_enabled): Likewise.
4950 * valops.c (overload_resolution): Likewise.
4951 * valprint.h (struct value_print_options) <prettyformat_arrays,
4952 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4953 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4954 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4955 Likewise.
4956 * windows-nat.c (new_console): Likewise.
4957 (cygwin_exceptions): Likewise.
4958 (new_group): Likewise.
4959 (debug_exec): Likewise.
4960 (debug_events): Likewise.
4961 (debug_memory): Likewise.
4962 (debug_exceptions): Likewise.
4963 (useshell): Likewise.
4964 * windows-tdep.c (maint_display_all_tib): Likewise.
4965 * xml-support.c (debug_xml): Likewise.
4966
4967 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4968
4969 * source.c (prepare_path_for_appending): New function.
4970 (openp): Make use of new function.
4971 (find_and_open_source): Search for the compilation directory and
4972 source file as a relative path beneath the directory search path.
4973
4974 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * source-cache.c (source_cache::get_line_charpos): Catch
4977 exceptions and return false, this matches the behaviour documented
4978 in the header file.
4979
4980 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4981
4982 * ada-tasks.c (info_task): Remove quoting of the task's name.
4983
4984 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4985
4986 * symfile.c (auto_solib_add): Replace comment with a reference
4987 to the header file.
4988
4989 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4990
4991 * NEWS: Mention that gdb can now be compiled with Python 3
4992 on Windows.
4993
4994 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4995
4996 * maint.c (maint_print_section_data::maint_print_section_data):
4997 Force use of 'float log10 (float)' by casting the argument to
4998 float.
4999
5000 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * maint.c: Add 'cmath' include.
5003 (struct maint_print_section_data): New structure.
5004 (print_section_index): New function.
5005 (print_bfd_section_info): Add header comment, small whitespace
5006 cleanup, and update to call new print_section_index function.
5007 (print_objfile_section_info): Likewise.
5008 (maint_obj_section_from_bfd_section): New function.
5009 (print_bfd_section_info_maybe_relocated): New function.
5010 (maintenance_info_sections): Add header comment, always use
5011 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
5012
5013 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
5016 inner scope, add check that the objfile has psymtabs before
5017 checking psymtabs_addrmap.
5018 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
5019
5020 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5021
5022 * NEWS: Announce that Ada task names are now shown at more places,
5023 and between quotes (except in info task output).
5024 * gdb/ada-tasks.c (task_to_str): New function.
5025 (display_current_task_id): Call task_to_str.
5026 (task_command_1): Likewise.
5027 (print_ada_task_info): In non-mi mode, Properly align headers and data
5028 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
5029
5030 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5031
5032 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
5033 prstatus.pr_lwp.pr_info instead of making it up.
5034
5035 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5036
5037 * auto-load.c (auto_load_expand_dir_vars): Update.
5038 * defs.h (gdb_datadir): Change to std::string.
5039 (python_libdir): Likewise.
5040 (relocate_gdb_directory): Change return type to std::string.
5041 * guile/guile.c (gdbscm_data_directory): Update.
5042 (initialize_scheme_side): Update.
5043 * jit.c (jit_reader_dir): Change to std::string.
5044 (jit_reader_load_command): Update.
5045 * main.c (gdb_datadir): Change to std::string.
5046 (python_libdir): Likewise.
5047 (set_gdb_data_directory): Update.
5048 (relocate_path): Change to return std::string.
5049 (relocate_gdb_directory): Change to return std::string.
5050 (relocate_gdbinit_path_maybe_in_datadir): Update.
5051 (captured_main_1): Update.
5052 * python/python.c (do_start_initialization): Update.
5053 * top.c (show_gdb_datadir): Update.
5054 * xml-syscall.c (xml_init_syscalls_info): Update.
5055 (init_syscalls_info): Update.
5056
5057 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5058
5059 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
5060 out of get_init_files.
5061 (get_init_files): Update.
5062
5063 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5064
5065 * main.c (get_init_files): Change to use std::string.
5066 (captured_main_1): Update.
5067 (print_gdb_help): Update.
5068
5069 2019-09-11 Ali Tamur <tamur@google.com>
5070
5071 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
5072 implementation.
5073
5074 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5075
5076 * dbxread.c (read_dbx_symtab): Update.
5077 * dwarf2read.c (load_partial_dies): Update.
5078 * mdebugread.c (parse_partial_symbols): Update.
5079 (handle_psymbol_enumerators): Update.
5080 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
5081 * psymtab.c (add_psymbol_to_bcache): Likewise.
5082 (add_psymbol_to_list): Likewise.
5083 * symtab.c (symbol_set_names): Likewise.
5084 * symtab.h (symbol_set_names): Likewise.
5085 * xcoffread.c (scan_xcoff_symtab): Update.
5086
5087 2019-09-11 Tom Tromey <tom@tromey.com>
5088
5089 * symfile-mem.c (symbol_file_add_from_memory): Use
5090 bfd_set_filename.
5091 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
5092 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
5093
5094 2019-09-10 Tom Tromey <tromey@adacore.com>
5095
5096 * dwarf-index-write.c (write_psymbols): Extend error message.
5097 (debug_names::insert): Add Ada code.
5098 (debug_names::write_psymbols): Remove Ada check.
5099 (debug_names) <m_string_obstack>: New member.
5100 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
5101 (gdb_index_symbol_name_matcher::matches): Remove.
5102 (mapped_index_base::find_name_components_bounds): Add "lang"
5103 parameter.
5104 (mapped_index_base::build_name_components): Also split names
5105 according to Ada syntax.
5106 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
5107 type of "match_callback".
5108 (check_match, check_find_bounds_finds)
5109 (dw2_expand_symtabs_matching): Update.
5110 (dw2_debug_names_iterator): Add new constructor.
5111 (dw2_debug_names_map_matching_symbols): New function.
5112 (dw2_debug_names_expand_symtabs_matching): Update.
5113 (dwarf2_debug_names_functions): Use
5114 dw2_debug_names_map_matching_symbols.
5115
5116 2019-09-10 Tom Tromey <tromey@adacore.com>
5117
5118 * dwarf2read.c (dw2_get_file_names_reader): Add the
5119 CU's file name to the results.
5120
5121 2019-09-10 Tom Tromey <tromey@adacore.com>
5122
5123 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5124 map_matching_symbols. Update.
5125 * dwarf2read.c (dw2_map_matching_symbols): Update.
5126 * psymtab.c (match_partial_symbol): Change type; update.
5127 (psym_map_matching_symbols): Likewise.
5128 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5129 type; update.
5130 * symfile.h (struct quick_symbol_functions)
5131 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5132 Remove "match".
5133
5134 2019-09-10 Tom Tromey <tromey@adacore.com>
5135
5136 * psymtab.c (map_block): Remove.
5137 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5138 * symtab.c (iterate_over_symbols_terminated): New function.
5139 * symtab.c (iterate_over_symbols_terminated): Declare.
5140
5141 2019-09-10 Tom Tromey <tromey@adacore.com>
5142
5143 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5144 * language.h (struct language_defn) <la_iterate_over_symbols>:
5145 Return bool.
5146 * symtab.c (iterate_over_symbols): Return bool.
5147 * symtab.h (iterate_over_symbols): Return bool.
5148
5149 2019-09-10 Tom Tromey <tromey@adacore.com>
5150
5151 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5152 (add_nonlocal_symbols): Update.
5153 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5154 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5155 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5156 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5157 Change type of "callback". Remove "data".
5158
5159
5160 2019-09-09 Ali Tamur <tamur@google.com>
5161
5162 * dwarf2read.c (comp_unit_head): Update comment.
5163 (dwarf2_dwo_name): New function declaration.
5164 (dwarf_unit_type_name): New function declaration.
5165 (read_comp_unit_head): Add support for new compilation units,
5166 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5167 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5168 (currently named as "signature") in their header. Also clarify error
5169 messages.
5170 (lookup_dwo_id): New function. Returns the dwo id of the given
5171 compile unit.
5172 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5173 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5174 functions.
5175 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5176 (dwarf2_dwo_name): Get the dwo name if present.
5177 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5178 purposes.
5179
5180 2019-09-09 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5183
5184 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5185
5186 * python/python.c (do_start_initialization): Make progname_copy static,
5187 to avoid a leak report.
5188
5189 2019-09-08 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5192
5193 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
5194
5195 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5196 Change type to gdb::optional<block_enum>.
5197 (dw2_symtab_iter_init): Change block_index parameter type
5198 to gdb::optional<block_enum>.
5199 (dw2_lookup_symbol): Change block_index parameter
5200 type to block_enum.c
5201 (dw2_debug_names_lookup_symbol): Likewise.
5202 * psymtab.c (psym_lookup_symbol): Likewise.
5203 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5204 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5205 Likewise.
5206
5207 2019-09-06 Christian Biesinger <cbiesinger@google.com>
5208
5209 * defs.h (relocate_gdb_directory): Change int to bool in
5210 signature and rename flag to relocatable.
5211 * main.c (relocate_path): Likewise.
5212 (relocate_gdb_directory): Likewise.
5213
5214 2019-09-06 Alan Modra <amodra@gmail.com>
5215
5216 * coffread.c (coff_symfile_read): Constify filename variable.
5217 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5218 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5219 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5220 * solib.c (reload_shared_libraries_1): Likewise.
5221 * symfile.c (reread_symbols): Likewise.
5222 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5223 * solib-darwin.c (darwin_bfd_open): Likewise.
5224 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5225
5226 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5227
5228 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5229 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5230
5231 2019-09-03 Tom Tromey <tromey@adacore.com>
5232
5233 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5234 types.
5235 (has_negatives): Unbias a range type bound.
5236 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5237 * gdbtypes.c (operator==): Handle new field.
5238 (create_range_type): Add "bias" parameter.
5239 (create_static_range_type, resolve_dynamic_range): Update.
5240 * gdbtypes.h (struct range_bounds) <bias>: New member.
5241 (create_range_type): Add bias parameter.
5242 * printcmd.c (print_scalar_formatted): Unbias range types.
5243 * value.c (unpack_long): Unbias range types.
5244 (pack_long): Bias range types.
5245
5246 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5247
5248 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5249 probe arguments.
5250
5251 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5252
5253 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5254 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5255 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5256 (compile_probe_arg): Likewise.
5257 * probe.h (get_argument_count): Likewise.
5258 * solib-svr4.c (solib_event_probe_action): Likewise.
5259 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5260
5261 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5262
5263 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5264 code to here...
5265 (svr4_create_solib_event_breakpoints): ...from here.
5266
5267 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5268
5269 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5270 suffix from warning message.
5271
5272 2019-08-30 Tom Tromey <tom@tromey.com>
5273
5274 * tui/tui-winsource.h (struct tui_source_window_base)
5275 <refresh_all>: Don't declare.
5276 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5277 Remove.
5278 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5279 tui_show_locator_content.
5280 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5281 declare.
5282 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5283 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5284 declare.
5285
5286 2019-08-30 Tom Tromey <tom@tromey.com>
5287
5288 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5289
5290 2019-08-30 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5293 Remove unnecessary forward declarations.
5294
5295 2019-08-30 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5298 rerender.
5299 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5300 tui_show_locator_content.
5301
5302 2019-08-30 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5305 (tui_locator_window::rerender): Rewrite using body of previous
5306 tui_show_locator_content.
5307
5308 2019-08-30 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5311 set_locator_fullname>: New methods.
5312 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5313 Rename from tui_set_locator_fullname.
5314 (tui_locator_window::set_locator_info): Rename from
5315 tui_set_locator_info. Return bool.
5316 (tui_update_locator_fullname, tui_show_frame_info): Update.
5317
5318 2019-08-30 Tom Tromey <tom@tromey.com>
5319
5320 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5321
5322 2019-08-30 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5325 call touchwin.
5326
5327 2019-08-30 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-wingeneral.c (box_win): Assume win_info and
5330 win_info->handle cannot be NULL.
5331
5332 2019-08-30 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5335 refresh_window>: Declare.
5336 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5337 resize.
5338 (tui_data_item_window::rerender): Rename from
5339 tui_display_register.
5340 (tui_data_item_window::refresh_window): New method.
5341 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5342 no-op.
5343
5344 2019-08-30 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5347 regs_column_count, current_group>: Move later. Now private.
5348 <get_current_group>: New method.
5349 * tui/tui-regs.c (tui_reg_command): Update.
5350 * tui/tui-layout.c (tui_set_layout): Update.
5351
5352 2019-08-30 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5355 (tui_data_window::rerender): Don't call
5356 check_and_display_highlight_if_needed.
5357 (tui_data_window::refresh_all): Remove call to
5358 erase_data_content.
5359
5360 2019-08-30 Tom Tromey <tom@tromey.com>
5361
5362 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5363 (tui_data_window::display_registers_from)
5364 (tui_data_window::display_reg_element_at_line)
5365 (tui_data_window::display_registers_from_line): Remove checks of
5366 "empty".
5367
5368 2019-08-30 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5371 Don't declare.
5372 * tui/tui-regs.c (tui_data_window::show_registers): Call
5373 rerender.
5374 (tui_data_window::rerender): Rename from display_all_data.
5375 (tui_data_window::rerender): Remove old implementation.
5376
5377 2019-08-30 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5380 text.
5381 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5382
5383 2019-08-29 Bernhard Wodok <barto@gmx.net>
5384 Sergio Durigan Junior <sergiodj@redhat.com>
5385
5386 PR win32/24284
5387 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5388
5389 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5390
5391 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5392 when searching for types.
5393
5394 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * f-lang.c (f_language_defn): Use f_print_typedef.
5397 * f-lang.h (f_print_typedef): Declare.
5398 * f-typeprint.c (f_print_typedef): Define.
5399
5400 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5401
5402 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5403
5404 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5405
5406 * cli/cli-utils.c (info_print_options_defs): Delete.
5407 (make_info_print_options_def_group): Delete.
5408 (extract_info_print_options): Delete.
5409 (info_print_command_completer): Delete.
5410 (info_print_args_help): Add extra parameter, and optionally
5411 include text about -n flag.
5412 * cli/cli-utils.h (struct info_print_options): Delete.
5413 (extract_info_print_options): Delete declaration.
5414 (info_print_command_completer): Delete declaration.
5415 (info_print_args_help): Add extra parameter, extend header
5416 comment.
5417 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5418 search_symbols.
5419 * stack.c (struct info_print_options): New type.
5420 (info_print_options_defs): New file scoped variable.
5421 (make_info_print_options_def_group): New static function.
5422 (info_print_command_completer): New static function.
5423 (info_locals_command): Update to use new local functions.
5424 (info_args_command): Likewise.
5425 (_initialize_stack): Add extra parameter to calls to
5426 info_print_args_help.
5427 * symtab.c (search_symbols): Add extra parameter, use this to
5428 possibly excluse non-debug symbols.
5429 (symtab_symbol_info): Add extra parameter, which is passed on to
5430 search_symbols.
5431 (struct info_print_options): New type.
5432 (info_print_options_defs): New file scoped variable.
5433 (make_info_print_options_def_group): New static function.
5434 (info_print_command_completer): New static function.
5435 (info_variables_command): Update to use local functions, and pass
5436 extra parameter through to symtab_symbol_info.
5437 (info_functions_command): Likewise.
5438 (info_types_command): Pass additional argument through to
5439 symtab_symbol_info.
5440 (rbreak_command): Pass extra argument to search_symbols.
5441 (_initialize_symtab): Add extra arguments for calls to
5442 info_print_args_help, and update help text for 'info variables',
5443 'whereis', and 'info functions' commands.
5444 * symtab.h (search_symbols): Add extra argument to declaration.
5445 * NEWS: Mention new flags.
5446
5447 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5448
5449 * symtab.c (lookup_static_symbol): Call the new function (and move
5450 it down to be next to lookup_global_symbol).
5451 (struct global_sym_lookup_data): Add block_enum member and rename to...
5452 (struct global_or_static_sym_lookup_data): ...this.
5453 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5454 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5455 (lookup_symbol_global_or_static_iterator_cb): ...this.
5456 (lookup_global_or_static_symbol): New function.
5457 (lookup_global_symbol): Call new function.
5458
5459 2019-08-26 Tom de Vries <tdevries@suse.de>
5460
5461 PR c++/24852
5462 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5463 when pc_probe.prob == NULL.
5464
5465 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5466
5467 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5468 variable symbol_linkage to symbol_linkage_.
5469
5470 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5471
5472 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5473 represent whether the symbol is static, dynamic, or we don't
5474 know.
5475
5476 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5477
5478 * gdb/rx-tdep.c (rx_register_names): New.
5479 (rx_register_name): Delete.
5480 (rx_psw_type): Delete.
5481 (rx_fpsw_type): Delete.
5482 (rx_register_type): Delete.
5483 (rx_gdbarch_init): Convert target-descriptions.
5484 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5485 * gdb/features/Makefile: Add rx.xml.
5486 * gdb/features/rx.xml: New.
5487 * gdb/features/rx.c: Generated.
5488 * gdb/NEWS: Mention target description support.
5489
5490 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5491
5492 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5493 *slot_ptr.
5494
5495 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5496
5497 * configure.ac: Don't check for 'dlfcn.h' (moved to
5498 gdbsupport/common.m4).
5499 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5500 'gdbsupport/'.
5501 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5502 * compile/compile-c-support.c: Include
5503 'gdbsupport/gdb-dlfcn.h'.
5504 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5505 * gdb-dlfcn.c: Move to...
5506 * gdbsupport/gdb-dlfcn.c: ... here.
5507 * gdb-dlfcn.h: Move to...
5508 * gdbsupport/gdb-dlfcn.h: ... here.
5509
5510 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5511
5512 * nios2-tdep.c (struct reg_value): Improve comments. Make
5513 the offset field signed.
5514
5515 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5516
5517 * python/lib/gdb/__init__.py (_execute_file): New function.
5518 * python/python.c (python_run_simple_file): Call gdb._execute_file
5519 on Windows.
5520
5521 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5522
5523 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5524 all uses as this was never set to anything but a zero value.
5525
5526 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5527
5528 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5529
5530 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5531
5532 * tui/tui-data.h (tui_gen_win_info): Add an =default
5533 move constructor, required by some GCC versions.
5534
5535 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5536
5537 * go32-nat.c (go32_sysinfo): Add hygon_p.
5538
5539 2019-08-20 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5542 line_from_reg_element_no, first_reg_element_no_inline,
5543 display_all_data, delete_data_content_windows,
5544 erase_data_content>: Now private.
5545
5546 2019-08-20 Tom Tromey <tom@tromey.com>
5547
5548 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5549 (tui_unhighlight_win, tui_highlight_win)
5550 (tui_win_info::make_window): Update.
5551 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5552
5553 2019-08-20 Tom Tromey <tom@tromey.com>
5554
5555 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5556 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5557 (MAX_PID_WIDTH): Move to tui-stack.c.
5558 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5559 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5560 (MAX_PID_WIDTH): Move from tui-data.h.
5561
5562 2019-08-20 Tom Tromey <tom@tromey.com>
5563
5564 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5565 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5566 (box_win): Update.
5567 (tui_gen_win_info::make_window): Rename from tui_make_window.
5568 (tui_win_info::make_window): New method.
5569 (tui_gen_win_info::make_visible): Update.
5570 * tui/tui-source.c (tui_source_window::set_contents): Update.
5571 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5572 (tui_data_window::display_registers_from): Update.
5573 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5574 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5575 Declare.
5576 <can_box>: Remove.
5577 <title>: Remove.
5578 (struct tui_win_info) <make_window>: Declare.
5579 <can_box>: Now virtual.
5580 <title>: New member.
5581 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5582 * tui/tui-command.c (tui_cmd_window::resize): Update.
5583
5584 2019-08-20 Tom Tromey <tom@tromey.com>
5585
5586 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5587 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5588 (tui_data_window::check_register_values): Update.
5589
5590 2019-08-20 Tom Tromey <tom@tromey.com>
5591
5592 * tui/tui-regs.h (struct tui_data_window): Use
5593 DISABLE_COPY_AND_ASSIGN.
5594 <regs_content>: Change type, removing unique_ptr.
5595 <tui_data_window>: Add move constructor.
5596 * tui/tui-regs.c (tui_data_window::show_registers)
5597 (tui_data_window::show_register_group)
5598 (tui_data_window::display_registers_from)
5599 (tui_data_window::display_registers_from)
5600 (tui_data_window::first_data_item_displayed)
5601 (tui_data_window::delete_data_content_windows)
5602 (tui_data_window::rerender, tui_data_window::refresh_window)
5603 (tui_data_window::check_register_values): Update.
5604
5605 2019-08-20 Tom Tromey <tom@tromey.com>
5606
5607 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5608 show_register_group>: Declare.
5609 (tui_show_register_group): Don't declare.
5610 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5611 tui_show_registers.
5612 (tui_data_window::show_register_group): Rename from
5613 tui_show_register_group.
5614 (tui_data_window::check_register_values, tui_reg_command):
5615 Update.
5616 * tui/tui-layout.c (tui_set_layout): Update.
5617
5618 2019-08-20 Tom Tromey <tom@tromey.com>
5619
5620 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5621 Declare.
5622 (tui_check_register_values): Don't declare.
5623 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5624 from tui_check_register_values.
5625 * tui/tui-hooks.c (tui_register_changed): Update.
5626
5627 2019-08-20 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-regs.c (tui_reg_layout): Move later.
5630 (tui_show_registers): Don't enable TUI mode or change layout.
5631
5632 2019-08-20 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-regs.h (struct tui_data_item_window)
5635 <~tui_data_item_window>: Remove.
5636 <content>: Now a unique_xmalloc_ptr.
5637 * tui/tui-regs.c (tui_register_format): Return a
5638 unique_xmalloc_ptr.
5639 (tui_get_register): Update.
5640 (~tui_data_item_window): Remove.
5641 (tui_data_window::display_registers_from, tui_display_register):
5642 Update.
5643 * tui/tui-io.h (tui_expand_tabs): Update.
5644 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5645 Remove "col" parameter.
5646
5647 2019-08-20 Tom Tromey <tom@tromey.com>
5648
5649 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5650 field.
5651 * tui/tui-regs.c (~tui_data_item_window): Update.
5652
5653 2019-08-20 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5656 earlier.
5657
5658 2019-08-20 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5661
5662 2019-08-20 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-source.h (struct tui_source_window): Update.
5665 * tui/tui-regs.c (tui_show_registers): Update.
5666 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5667 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5668 (NO_REGS_STRING): Remove defines.
5669
5670 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5671
5672 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5673 unnecessary thread walk if remote doesn't support the packet.
5674
5675 2019-08-19 Tom Tromey <tromey@adacore.com>
5676
5677 * python/py-value.c (value_has_field): Fix indentation.
5678
5679 2019-08-19 Tom Tromey <tromey@adacore.com>
5680
5681 * printcmd.c (do_one_display, info_display_command): Update.
5682 * block.h (contained_in): Return bool. Add allow_nested
5683 parameter.
5684 * block.c (contained_in): Return bool. Add allow_nested
5685 parameter.
5686
5687 2019-08-19 Tom Tromey <tom@tromey.com>
5688
5689 * configure: Rebuild.
5690 * configure.ac: Disallow the combination of -static-libstdc++ and
5691 source highlight.
5692 * source-cache.c (get_language_name): Handle rust.
5693 (source_cache::get_source_lines): Ignore highlighting exceptions.
5694
5695 2019-08-16 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5698 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5699 (struct tui_source_window_base) <make_visible, refresh_window,
5700 resize>: Remove methods.
5701 <execution_info>: Remove field.
5702 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5703 (tui_show_source_line, tui_source_window_base)
5704 (~tui_source_window_base): Update.
5705 (tui_source_window_base::resize)
5706 (tui_source_window_base::make_visible)
5707 (tui_source_window_base::refresh_window): Remove.
5708 (tui_source_window_base::update_exec_info): Update.
5709 * tui/tui-source.c (tui_source_window::set_contents): Update.
5710 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5711
5712 2019-08-16 Tom Tromey <tom@tromey.com>
5713
5714 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5715 deprecated_query_hook.
5716
5717 2019-08-16 Tom Tromey <tom@tromey.com>
5718
5719 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5720 (tui_update_source_windows_with_line): Update.
5721 * tui/tui-source.h (struct tui_source_window)
5722 <show_symtab_source>: Declare.
5723 (tui_show_symtab_source): Don't declare.
5724 * tui/tui-source.c (tui_show_symtab_source): Rename from
5725 tui_show_symtab_source.
5726
5727 2019-08-16 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-winsource.h (struct tui_source_window_base)
5730 <set_contents>: Declare.
5731 * tui/tui-winsource.c
5732 (tui_source_window_base::update_source_window_as_is): Update.
5733 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5734 Declare.
5735 (tui_set_source_content): Don't declare.
5736 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5737 tui_set_source_content.
5738 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5739 Declare.
5740 (tui_set_disassem_content): Don't declare.
5741 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5742 tui_set_disassem_content.
5743
5744 2019-08-16 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-winsource.h (struct tui_source_window_base)
5747 <update_breakpoint_info>: Declare.
5748 (tui_update_breakpoint_info): Don't declare.
5749 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5750 (tui_update_all_breakpoint_info): Update.
5751 (tui_source_window_base::update_breakpoint_info): Rename from
5752 tui_update_breakpoint_info.
5753 (tui_source_window_base::update_exec_info): Update.
5754
5755 2019-08-16 Tom Tromey <tom@tromey.com>
5756
5757 * tui/tui-winsource.h (struct tui_source_window_base)
5758 <update_source_window>: Declare.
5759 (tui_update_source_window): Don't declare.
5760 * tui/tui-winsource.c
5761 (tui_source_window_base::update_source_window): Rename from
5762 tui_update_source_window.
5763 (tui_source_window_base::rerender): Update.
5764 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5765 * tui/tui-disasm.c (tui_show_disassem)
5766 (tui_show_disassem_and_update_source)
5767 (tui_disasm_window::maybe_update): Update.
5768
5769 2019-08-16 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-winsource.h (struct tui_source_window_base)
5772 <update_source_window_as_is>: Declare.
5773 (tui_update_source_window_as_is): Don't declare.
5774 * tui/tui-winsource.c (tui_update_source_window): Update
5775 (tui_source_window_base::update_source_window_as_is): Rename from
5776 tui_update_source_window_as_is.
5777 (tui_source_window_base::refill): Update.
5778 * tui/tui-source.c (tui_show_symtab_source): Update.
5779 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5780 Update.
5781
5782 2019-08-16 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-winsource.h (tui_update_source_window)
5785 (tui_update_source_window_as_is): Remove "noerror" parameter.
5786 * tui/tui-winsource.c (tui_update_source_window)
5787 (tui_update_source_window_as_is): Remove "noerror" parameter.
5788 (tui_update_source_windows_with_addr)
5789 (tui_update_source_windows_with_line)
5790 (tui_source_window_base::rerender)
5791 (tui_source_window_base::refill): Update.
5792 * tui/tui-source.h (tui_set_source_content)
5793 (tui_show_symtab_source): Remove "noerror" parameter.
5794 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5795 parameter.
5796 (tui_show_symtab_source): Likewise.
5797 (tui_source_window::maybe_update): Update.
5798 * tui/tui-disasm.c (tui_show_disassem)
5799 (tui_show_disassem_and_update_source)
5800 (tui_disasm_window::do_scroll_vertical)
5801 (tui_disasm_window::maybe_update): Update.
5802
5803 2019-08-16 Tom Tromey <tom@tromey.com>
5804
5805 * tui/tui.c (tui_is_window_visible): Update.
5806 * tui/tui-wingeneral.c (tui_make_window)
5807 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5808 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5809 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5810 (tui_set_win_height_command, parse_scrolling_args): Update.
5811 * tui/tui-source.c (tui_source_window::style_changed): Update.
5812 * tui/tui-regs.c (tui_show_registers)
5813 (tui_data_window::first_data_item_displayed)
5814 (tui_data_window::delete_data_content_windows)
5815 (tui_check_register_values, tui_reg_command): Update.
5816 * tui/tui-disasm.c (tui_show_disassem): Update.
5817 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5818 method.
5819 <is_visible>: Remove field.
5820 * tui/tui-data.c (tui_next_win, tui_prev_win)
5821 (tui_delete_invisible_windows): Update.
5822
5823 2019-08-16 Tom Tromey <tom@tromey.com>
5824
5825 * tui/tui-winsource.h (struct tui_source_window_base)
5826 <m_has_locator>: Remove.
5827 * tui/tui-layout.c (show_source_disasm_command, show_data)
5828 (show_source_or_disasm_and_command): Update.
5829
5830 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5831
5832 * NEWS (Other MI changes): New subsection.
5833 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5834 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5835 * arch-utils.c (default_get_pc_address_flags): New function.
5836 * arch-utils.h (default_get_pc_address_flags): New declaration.
5837 * gdbarch.sh: Add get_pc_address_flags.
5838 * gdbarch.c: Regenerate.
5839 * gdbarch.h: Likewise.
5840 * stack.c (print_pc): New function.
5841 (print_frame_info) (print_frame): Call print_pc.
5842
5843 2019-08-16 Tom de Vries <tdevries@suse.de>
5844
5845 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5846 print_objfile_section_info.
5847
5848 2019-08-15 Tom Tromey <tom@tromey.com>
5849
5850 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5851 calling update_cmdwin_start_line.
5852 * tui/tui-winsource.h (struct tui_source_window_base)
5853 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5854 <rerender>: Declare.
5855 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5856 Call rerender.
5857 (tui_source_window_base::set_new_height): Remove.
5858 (tui_source_window_base::rerender): Rename from
5859 do_make_visible_with_new_height.
5860 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5861 resize method.
5862 (tui_win_info::make_invisible_and_set_new_height)
5863 (tui_win_info::make_visible_with_new_height): Remove.
5864 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5865 Declare.
5866 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5867 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5868 do_make_visible_with_new_height>: Don't declare.
5869 <rerender>: Declare.
5870 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5871 set_new_height.
5872 (tui_data_window::do_make_visible_with_new_height): Remove.
5873 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5874 call tui_show_locator_content.
5875 (tui_gen_win_info::resize): Call rerender.
5876 (show_source_or_disasm_and_command): Don't call
5877 tui_show_locator_content.
5878 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5879 method.
5880 (struct tui_win_info) <rerender>: Declare.
5881 <set_new_height, make_invisible_and_set_new_height,
5882 make_visible_with_new_height>: Don't declare.
5883 * tui/tui-data.c (tui_win_list::rerender): New method.
5884 * tui/tui-command.h (struct tui_cmd_window)
5885 <do_make_visible_with_new_height>: Don't declare.
5886 * tui/tui-command.c
5887 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5888
5889 2019-08-15 Tom Tromey <tromey@adacore.com>
5890
5891 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5892 * ada-lang.c (ada_enum_name): Likewise.
5893
5894 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5895
5896 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5897 leading underscore.
5898 (GdbOutputErrorFile): Likewise.
5899 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5900 accordingly.
5901 (execute_unwinders): Rename to have a leading underscore.
5902 (auto_load_packages): Likewise.
5903 (global scope): Adjust call to auto_load_packages accordingly.
5904 (GdbSetPythonDirectory): Likewise.
5905 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5906 instead of execute_unwinders.
5907
5908 2019-08-15 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5911 (show_data): Don't change window visibility.
5912 (tui_gen_win_info::resize): Remove special case for command
5913 window. Use wresize, when available.
5914 (show_source_or_disasm_and_command): Don't change window
5915 visibility.
5916 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5917 <make_visible>: New method.
5918 * tui/tui-command.c (tui_cmd_window::resize): New method.
5919
5920 2019-08-15 Tom Tromey <tom@tromey.com>
5921
5922 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5923 (struct tui_source_windows): New.
5924 * tui/tui-winsource.c (tui_display_main): Update.
5925 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5926 (new_height_ok, parse_scrolling_args): Update.
5927 * tui/tui-layout.c (show_layout, show_data): Update.
5928 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5929 (tui_add_to_source_windows): Don't declare.
5930 * tui/tui-data.c (source_windows, tui_source_windows)
5931 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5932
5933 2019-08-15 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5936 Rename from reset.
5937 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5938 * tui/tui-layout.c (show_source_disasm_command, show_data):
5939 Update.
5940 (tui_gen_win_info::resize): Rename.
5941 (show_source_or_disasm_and_command): Update.
5942 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5943 reset.
5944
5945 2019-08-15 Tom Tromey <tom@tromey.com>
5946
5947 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5948 * tui/tui-interp.c (tui_interp::init): Don't call
5949 tui_initialize_static_data.
5950 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5951
5952 2019-08-15 Tom Tromey <tom@tromey.com>
5953
5954 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5955 examine tui_win_list.
5956
5957 2019-08-15 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5960 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5961 tui_clear_source_content.
5962 (tui_clear_source_content): Remove.
5963 (tui_source_window_base::do_erase_source_content): Hoist call to
5964 content.clear().
5965 * tui/tui-stack.c (tui_show_frame_info): Don't call
5966 tui_clear_source_content.
5967
5968 2019-08-15 Tom Tromey <tom@tromey.com>
5969
5970 * tui/tui-winsource.h (struct tui_source_window_base)
5971 <do_erase_source_content>: New method.
5972 <erase_source_content>: New method.
5973 (tui_erase_source_content): Don't declare.
5974 * tui/tui-winsource.c (tui_clear_source_content): Update.
5975 (tui_source_window_base::do_erase_source_content): Rename from
5976 tui_erase_source_content.
5977 (tui_source_window_base::show_source_content): Update.
5978 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5979 * tui/tui-source.h (struct tui_source_window)
5980 <erase_source_content>: New method.
5981 * tui/tui-disasm.h (struct tui_disasm_window)
5982 <erase_source_content>: New method.
5983
5984 2019-08-15 Tom Tromey <tom@tromey.com>
5985
5986 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5987 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5988 constructor.
5989 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5990 * tui/tui-source.c (tui_set_source_content): Update.
5991 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5992
5993 2019-08-15 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5996 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5997 tui-source.c.
5998 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5999 Declare.
6000 * tui/tui-source.c (tui_source_window::line_is_displayed): New
6001 method.
6002 (tui_source_window::maybe_update): Update.
6003
6004 2019-08-15 Tom Tromey <tom@tromey.com>
6005
6006 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
6007 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
6008 tui-disasm.c.
6009 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
6010 Declare.
6011 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
6012 method.
6013 (tui_disasm_window::maybe_update): Update.
6014
6015 2019-08-15 Tom Tromey <tom@tromey.com>
6016
6017 * tui/tui-winsource.h (struct tui_source_window_base)
6018 <maybe_update>: Declare.
6019 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
6020 method.
6021 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
6022 Declare.
6023 * tui/tui-source.c (tui_source_window::maybe_update): New method.
6024 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
6025 Declare.
6026 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
6027
6028 2019-08-15 Tom Tromey <tom@tromey.com>
6029
6030 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
6031
6032 2019-08-15 Tom Tromey <tom@tromey.com>
6033
6034 * tui/tui-wingeneral.c: Include tui-stack.h.
6035 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
6036 (struct tui_locator_window): Move from tui-data.h.
6037 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
6038 (tui_initialize_static_data): Move from tui-data.c.
6039 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
6040 (struct tui_locator_window): Move to tui-stack.c.
6041 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
6042 (tui_initialize_static_data): Move to tui-stack.c.
6043
6044 2019-08-15 Tom Tromey <tom@tromey.com>
6045
6046 * tui/tui-layout.c (show_source_disasm_command)
6047 (show_source_or_disasm_and_command): Use make_visible method, not
6048 tui_make_window.
6049 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
6050 Remove.
6051
6052 2019-08-15 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui-wingeneral.h (tui_make_window): Update.
6055 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
6056 parameter.
6057 (tui_gen_win_info::make_visible): Update.
6058 * tui/tui-regs.c (tui_data_window::display_registers_from):
6059 Update.
6060 * tui/tui-layout.c (show_source_disasm_command)
6061 (show_source_or_disasm_and_command): Update.
6062 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
6063 (enum tui_box): Remove.
6064 (struct tui_win_info) <can_box>: New method.
6065 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
6066 method.
6067
6068 2019-08-15 Tom de Vries <tdevries@suse.de>
6069
6070 * linux-nat-trad.c: Include gdbarch.h.
6071
6072 2019-08-14 Alan Hayward <alan.hayward@arm.com>
6073
6074 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
6075 register sizes.
6076
6077 2019-08-14 Tom Tromey <tromey@adacore.com>
6078
6079 * darwin-nat.c: Include gdbarch.h.
6080 * darwin-nat-info.c: Include gdbarch.h.
6081
6082 2019-08-13 Tom Tromey <tom@tromey.com>
6083
6084 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
6085 Remove.
6086 * tui/tui-data.c (tui_initialize_static_data): Update.
6087
6088 2019-08-13 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-winsource.h (struct tui_exec_info_window)
6091 <~tui_exec_info_window, maybe_allocate_content, get_content,
6092 m_content>: Remove.
6093 (struct tui_source_window_base) <set_exec_info_content,
6094 show_exec_info_content>: Don't declare.
6095 * tui/tui-winsource.c
6096 (tui_exec_info_window::maybe_allocate_content): Remove.
6097 (tui_source_window_base::update_exec_info): Rename from
6098 set_exec_info_content.
6099 (tui_source_window_base::show_exec_info_content)
6100 (tui_source_window_base::update_exec_info): Remove.
6101
6102 2019-08-13 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
6105 declare.
6106 * tui/tui-winsource.c (tui_update_source_window_as_is)
6107 (tui_update_source_windows_with_addr, tui_erase_source_content):
6108 Update.
6109 (tui_clear_exec_info_content): Remove.
6110
6111 2019-08-13 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6114 declare.
6115 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6116 call tui_erase_exec_info_content.
6117 (tui_clear_exec_info_content): Rename from
6118 tui_erase_exec_info_content.
6119 (tui_clear_exec_info_content): Delete.
6120
6121 2019-08-13 Tom Tromey <tom@tromey.com>
6122
6123 * tui/tui-winsource.h (struct tui_source_window_base)
6124 <show_exec_info_content>: Declare.
6125 (tui_show_exec_info_content): Don't declare.
6126 * tui/tui-winsource.c
6127 (tui_source_window_base::show_exec_info_content): Rename from
6128 tui_show_exec_info_content.
6129 (tui_source_window_base::update_exec_info): Update.
6130
6131 2019-08-13 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6134 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6135 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6136 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6137 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6138 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6139 ... here.
6140
6141 2019-08-13 Tom Tromey <tom@tromey.com>
6142
6143 * tui/tui-winsource.h (struct tui_source_window_base)
6144 <update_exec_info>: Declare.
6145 (tui_update_exec_info): Don't declare.
6146 * tui/tui-winsource.c (tui_update_source_window_as_is)
6147 (tui_source_window_base::refresh_all)
6148 (tui_update_all_breakpoint_info): Update.
6149 (tui_source_window_base::update_exec_info): Rename from
6150 tui_update_exec_info.
6151 * tui/tui-stack.c (tui_show_frame_info): Update.
6152
6153 2019-08-13 Tom Tromey <tom@tromey.com>
6154
6155 * tui/tui-winsource.h (struct tui_source_window_base)
6156 <set_exec_info_content>: Declare.
6157 (tui_set_exec_info_content): Don't declare.
6158 * tui/tui-winsource.c
6159 (tui_source_window_base::set_exec_info_content): Rename from
6160 tui_set_exec_info_content.
6161 (tui_update_exec_info): Update.
6162
6163 2019-08-13 Tom Tromey <tom@tromey.com>
6164
6165 * tui/tui-winsource.h (struct tui_source_window_base)
6166 <show_source_content>: Declare.
6167 (tui_show_source_content): Don't declare.
6168 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6169 (tui_source_window_base::show_source_content): Rename from
6170 tui_show_source_content.
6171 (tui_source_window_base::refresh_all): Update.
6172 * tui/tui-layout.c (show_source_disasm_command)
6173 (show_source_or_disasm_and_command): Update.
6174
6175 2019-08-13 Tom Tromey <tom@tromey.com>
6176
6177 * tui/tui-winsource.c (tui_erase_source_content)
6178 (tui_show_source_content, tui_source_window_base::refresh_all):
6179 Update.
6180 * tui/tui-wingeneral.h
6181 (tui_check_and_display_highlight_if_needed): Don't declare.
6182 * tui/tui-wingeneral.c
6183 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6184 check_and_display_highlight_if_needed.
6185 * tui/tui-win.c (tui_rehighlight_all)
6186 (tui_win_info::make_visible_with_new_height): Update.
6187 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6188 (tui_data_window::erase_data_content)
6189 (tui_data_window::display_all_data): Update.
6190 * tui/tui-data.h (struct tui_win_info)
6191 <check_and_display_highlight_if_needed>: Declare.
6192
6193 2019-08-13 Tom Tromey <tom@tromey.com>
6194
6195 * tui/tui-win.c (tui_resize_all): Call
6196 tui_delete_invisible_windows.
6197 * tui/tui-layout.c (show_layout): Call
6198 tui_delete_invisible_windows.
6199 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6200 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6201
6202 2019-08-13 Tom Tromey <tom@tromey.com>
6203
6204 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6205 tui_add_win_to_layout.
6206
6207 2019-08-13 Tom Tromey <tom@tromey.com>
6208
6209 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6210 * tui/tui-layout.c (tui_default_win_height): Now static.
6211
6212 2019-08-13 Tom Tromey <tom@tromey.com>
6213
6214 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6215 single switch.
6216 (show_source_disasm_command, show_source_or_disasm_and_command):
6217 Don't check current layout.
6218
6219 2019-08-13 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-wingeneral.c (make_all_visible): Remove.
6222 (tui_make_all_invisible): Simplify.
6223 * tui/tui-layout.c (tui_make_all_invisible): Move from
6224 tui-wingeneral.c; simplify.
6225 (show_layout): Hoist call to tui_make_all_invisible.
6226 (show_data): Don't call tui_make_all_invisible.
6227
6228 2019-08-13 Tom Tromey <tom@tromey.com>
6229
6230 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6231 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6232
6233 2019-08-13 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6236 tui-data.c.
6237 (show_source_disasm_command, show_data)
6238 (show_source_or_disasm_and_command): Don't use
6239 tui_set_current_layout_to.
6240 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6241 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6242 tui-layout.c.
6243 (tui_set_current_layout_to): Remove.
6244
6245 2019-08-13 Tom Tromey <tom@tromey.com>
6246
6247 * tui/tui-layout.c (tui_set_layout): Update.
6248 * tui/tui-data.h (struct tui_layout_def): Remove.
6249 (tui_layout_def): Don't declare.
6250 * tui/tui-data.c (layout_def): Remove.
6251 (tui_layout_def): Remove.
6252
6253 2019-08-13 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-winsource.h (struct tui_source_window_base)
6256 <clear_detail>: No longer "override".
6257 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6258 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6259 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6260 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6261 Remove.
6262 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6263
6264 2019-08-13 Tom Tromey <tromey@adacore.com>
6265
6266 * tracepoint.c: Don't include readline.h or history.h.
6267
6268 2019-08-12 Tom Tromey <tom@tromey.com>
6269
6270 * configure: Rebuild.
6271 * configure.ac: Check for readline 7.
6272 * NEWS: Mention readline 7 requirement.
6273 * README: Update.
6274
6275 2019-08-12 Tom Tromey <tom@tromey.com>
6276
6277 * mingw-hdep.c (gdb_select): Remove readline hack.
6278
6279 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6280
6281 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6282 when the function fails.
6283
6284 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6285
6286 * s390-tdep.c (s390_type_align): New function.
6287 (s390_gdbarch_init): Set it as type_align gdbarch method.
6288
6289 2019-08-09 Tom de Vries <tdevries@suse.de>
6290
6291 PR gdb/24591
6292 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6293 pc_low with relocation offset.
6294
6295 2019-08-07 Tom Tromey <tromey@adacore.com>
6296
6297 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6298 (print_frame_args): Update.
6299 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6300 Update.
6301 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6302 * frame.h (struct frame_arg): Add initializers.
6303 <error>: Now a unique_xmalloc_ptr.
6304
6305 2019-08-07 Alan Hayward <alan.hayward@arm.com>
6306
6307 * NEWS: Expand the Pointer Authentication entry.
6308 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6309 (aarch64_frame_unmask_lr): ... to this.
6310 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6311 Call aarch64_frame_unmask_lr.
6312 * frame.c (struct frame_info): Add "masked" variable.
6313 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6314 (fprint_frame): Check for masked pc.
6315 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6316 declarations.
6317 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6318 * stack.c (print_frame): Check for masked pc.
6319
6320 2019-08-06 Tom Tromey <tom@tromey.com>
6321
6322 * stabsread.c (patch_block_stabs, read_one_struct_field)
6323 (read_enum_type): Use obstack_strndup.
6324 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6325 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6326 * dwarf2read.c (guess_full_die_structure_name)
6327 (anonymous_struct_prefix): Use obstack_strndup.
6328 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6329 * c-exp.y (yylex): Use obstack_strndup.
6330 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6331 (write_var_or_type): Use obstack_strndup.
6332
6333 2019-08-06 Tom Tromey <tom@tromey.com>
6334
6335 * symfile.c (reread_symbols): Use obstack_strdup.
6336 * stabsread.c (read_type): Use obstack_strdup.
6337 * gdb_obstack.h (obstack_strdup): New overload.
6338 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6339 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6340 (dwarf2_canonicalize_name): Use obstack_strdup.
6341 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6342 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6343 Use obstack_strdup.
6344
6345 2019-08-06 Tom Tromey <tom@tromey.com>
6346
6347 * gdb_obstack.h (obstack_strdup): Define.
6348 * gdb_obstack.c (obstack_strdup): Don't define.
6349
6350 2019-08-06 Tom Tromey <tom@tromey.com>
6351
6352 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6353 obstack_strdup.
6354 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6355 obstack_strdup.
6356 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6357 * stabsread.c (common_block_start): Use obstack_strdup.
6358 * objfiles.c (set_objfile_main_name, objfile): Use
6359 obstack_strdup.
6360 * namespace.c (add_using_directive): Use obstack_strdup.
6361 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6362 * jit.c (finalize_symtab): Use obstack_strdup.
6363 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6364 (guess_partial_die_structure_name, partial_die_info::fixup)
6365 (dwarf2_name): Use obstack_strdup.
6366 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6367 obstack_strdup.
6368 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6369 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6370 obstack_strdup.
6371 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6372
6373 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6374
6375 * unittests/help-doc-selftests.c: New file.
6376 * Makefile.in: Add the new file.
6377
6378 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6379
6380 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6381 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6382 the full first line, except when FOR_VALUE_PREFIX. In this case,
6383 the trailing '.' is not output, and the first character is uppercased.
6384 (print_help_for_command): Update call to print_doc_line.
6385 (print_doc_of_command): Likewise.
6386 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6387 * cli/cli-option.c (append_indented_doc): Do not append newline.
6388 (build_help_option): Append newline after first appended_indented_doc
6389 only if a second call is done.
6390 (build_help): Append 2 new lines before each option, except the first
6391 one.
6392 * compile/compile.c (_initialize_compile): Add new lines after
6393 %OPTIONS%, when not at the end of the help.
6394 Change help doc or code
6395 producing the help doc to respect the invariants.
6396 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6397 Also removed the new line after 'Options:', as all other commands
6398 do not put an empty line between 'Options:' and the first option.
6399 * printcmd.c (_initialize_printcmd): Likewise.
6400 * stack.c (_initialize_stack): Likewise.
6401 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6402 incorrectly telling COMMAND is optional.
6403 * ada-lang.c (_initialize_ada_language): Change help doc or code
6404 producing the help doc to respect the invariants.
6405 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6406 * breakpoint.c (_initialize_breakpoint): Likewise.
6407 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6408 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6409 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6410 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6411 _initialize_cli_style): Likewise.
6412 * corelow.c (core_target_info): Likewise.
6413 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6414 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6415 * filesystem.c (_initialize_filesystem): Likewise.
6416 * frame.c (_initialize_frame): Likewise.
6417 * gnu-nat.c (add_task_commands): Likewise.
6418 * infcall.c (_initialize_infcall): Likewise.
6419 * infcmd.c (_initialize_infcmd): Likewise.
6420 * interps.c (_initialize_interpreter): Likewise.
6421 * language.c (_initialize_language): Likewise.
6422 * linux-fork.c (_initialize_linux_fork): Likewise.
6423 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6424 * maint.c (_initialize_maint_cmds): Likewise.
6425 * memattr.c (_initialize_mem): Likewise.
6426 * printcmd.c (_initialize_printcmd): Likewise.
6427 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6428 _RegEx): Likewise.
6429 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6430 * record-btrace.c (_initialize_record_btrace): Likewise.
6431 * record-full.c (_initialize_record_full): Likewise.
6432 * record.c (_initialize_record): Likewise.
6433 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6434 * regcache.c (_initialize_regcache): Likewise.
6435 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6436 _initialize_remote): Likewise.
6437 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6438 * serial.c (_initialize_serial): Likewise.
6439 * skip.c (_initialize_step_skip): Likewise.
6440 * source.c (_initialize_source): Likewise.
6441 * stack.c (_initialize_stack): Likewise.
6442 * symfile.c (_initialize_symfile): Likewise.
6443 * symtab.c (_initialize_symtab): Likewise.
6444 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6445 * top.c (init_main): Likewise.
6446 * tracefile-tfile.c (tfile_target_info): Likewise.
6447 * tracepoint.c (_initialize_tracepoint): Likewise.
6448 * tui/tui-win.c (_initialize_tui_win): Likewise.
6449 * utils.c (add_internal_problem_command): Likewise.
6450 * valprint.c (value_print_option_defs): Likewise.
6451
6452 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6453
6454 PR build/24886
6455 * configure.ac: Drop enable-libmcheck support.
6456 * configure, config.in: Rebuild.
6457 * libmcheck.m4: Remove.
6458 * acinclude.m4: Don't include it.
6459 * Makefile.in: Don't distribute it.
6460 * top.c (print_gdb_configuration): Don't mention it.
6461
6462 2019-08-06 Tom Tromey <tom@tromey.com>
6463
6464 * utils.c (set_output_style): Sometimes pass stream to
6465 emit_style_escape.
6466 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6467 * record-btrace.c (btrace_insn_history): Update.
6468 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6469 method.
6470 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6471 Update initializers.
6472 <m_uiout>: New field.
6473 <m_di>: Move lower.
6474 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6475 Remove "uiout" parameter.
6476 (dump_insns): Update.
6477 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6478 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6479
6480 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6481
6482 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6483 (error_in_psymtab_expansion): Likewise.
6484 (lookup_symbol_via_quick_fns): Likewise.
6485 (basic_lookup_transparent_type_quick): Likewise.
6486 (basic_lookup_transparent_type_1): Likewise.
6487
6488 2019-08-06 Tom Tromey <tromey@adacore.com>
6489
6490 * source.c (last_source_error): Now bool.
6491 (print_source_lines_base): Make "noprint" bool. Only open
6492 source file when last_source_visited changes.
6493
6494 2019-08-06 Tom Tromey <tromey@adacore.com>
6495
6496 * annotate.c (annotate_source_line): Use g_source_cache.
6497 * source-cache.c (source_cache::get_plain_source_lines): Change
6498 parameters. Populate m_offset_cache.
6499 (source_cache::ensure): New method.
6500 (source_cache::get_line_charpos): New method.
6501 (extract_lines): Move lower. Change parameters.
6502 (source_cache::get_source_lines): Move lower.
6503 * source-cache.h (class source_cache): Update comment.
6504 <get_line_charpos>: New method.
6505 <get_source_lines>: Update comment.
6506 <clear>: Clear m_offset_cache.
6507 <get_plain_source_lines>: Change parameters.
6508 <ensure>: New method
6509 <m_offset_cache>: New member.
6510 * source.c (forget_cached_source_info_for_objfile): Update.
6511 (info_source_command): Use g_source_cache.
6512 (find_source_lines, open_source_file_with_line_charpos): Remove.
6513 (print_source_lines_base, search_command_helper): Use g_source_cache.
6514 * source.h (open_source_file_with_line_charpos): Don't declare.
6515 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6516 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6517 Use g_source_cache.
6518
6519 2019-08-06 Tom Tromey <tromey@adacore.com>
6520
6521 * source-cache.c (source_cache::get_plain_source_lines):
6522 Remove "first_line" and "last_line" parameters.
6523 (source_cache::get_source_lines): Cache plain text.
6524 * source-cache.h (class source_cache)
6525 <get_plain_source_lines>: Update.
6526
6527 2019-08-06 Tom Tromey <tromey@adacore.com>
6528
6529 * source-cache.c (extract_lines): No longer a method.
6530 Changed type of parameter. Include final newline.
6531 (selftests::extract_lines_test): New function.
6532 (_initialize_source_cache): Likewise.
6533 * source-cache.h (class source_cache)
6534 <extract_lines>: Don't declare.
6535
6536 2019-08-06 Tom Tromey <tromey@adacore.com>
6537
6538 * breakpoint.c (init_breakpoint_sal): Update.
6539 (breakpoint): Update.
6540 * breakpoint.h (struct breakpoint) <filter>: Now a
6541 unique_xmalloc_ptr.
6542
6543 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6544
6545 * NEWS: Mention dictionary access on blocks.
6546 * python/py-block.c (blpy_getitem): New function.
6547 (block_object_as_mapping): New struct.
6548 (block_object_type): Use new struct for tp_as_mapping field.
6549
6550 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6551
6552 * objfiles.h (objfile): Add a comment describing partial symbols.
6553
6554 2019-08-05 Tom Tromey <tromey@adacore.com>
6555
6556 * compile/compile.c (_initialize_compile): Use _(), not N_().
6557 * thread.c (_initialize_thread): Use _(), not N_().
6558 * stack.c (_initialize_stack): Use _(), not N_().
6559 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6560
6561 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6562
6563 * dwarf2read.c (struct dw2_symtab_iterator):
6564 <want_specific_block>: Remove.
6565 <block_index>: Change type to gdb::optional.
6566 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6567 change type of BLOCK_INDEX parameter to gdb::optional.
6568 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6569 (dw2_lookup_symbol): Don't pass argument for
6570 WANT_SPECIFIC_BLOCK.
6571 (dw2_expand_symtabs_for_function): Don't pass argument for
6572 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6573 (class dw2_debug_names_iterator)
6574 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6575 parameter, change BLOCK_INDEX type to gdb::optional.
6576 <m_want_specific_block>: Remove.
6577 <m_block_index>: Change type to gdb::optional.
6578 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6579 gdb::optional. Re-write in function of gdb::optional.
6580 (dw2_debug_names_lookup_symbol): Don't pass argument for
6581 WANT_SPECIFIC_BLOCK.
6582 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6583 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6584 BLOCK_INDEX.
6585
6586 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6587
6588 * NEWS: Mention changes to "info sources" command.
6589
6590 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6591
6592 * symtab.c (filename_partial_match_opts): New struct type.
6593 (struct output_source_filename_data): New members
6594 regexp, c_regexp, partial_match.
6595 (output_source_filename): Use new members to decide to print file.
6596 (info_sources_option_defs): New variable.
6597 (make_info_sources_options_def_group, print_info_sources_header,
6598 info_sources_command_completer):
6599 New functions.
6600 (info_sources_command): Read new optional arguments.
6601 (_initialize_symtab): Update info sources help.
6602
6603 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6604
6605 * ada-lang.c (exception_support_info_v0): Renamed from...
6606 (default_exception_support_info): ... this. Create new
6607 definition for v1.
6608 (ada_has_this_exception_support): Look up catch_handlers_sym.
6609 (ada_exception_support_info_sniffer): Try v0 after default.
6610
6611 2019-08-01 Tom Tromey <tromey@adacore.com>
6612
6613 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6614 gdbarch.h.
6615
6616 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6617
6618 * s12z-tdep.c: Fix include path for s12z-opc.h.
6619
6620 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6621
6622 * NEWS: Require GNU make 3.82.
6623
6624 2019-07-16 Tom Tromey <tom@tromey.com>
6625
6626 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6627 declare.
6628
6629 2019-07-30 Tom Tromey <tromey@adacore.com>
6630
6631 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6632
6633 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6634
6635 * printcmd.c (print_address_symbolic): Print negative offsets.
6636 (build_address_symbolic): Force signed arithmetic when computing
6637 offset.
6638
6639 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6640
6641 PR/24474: Add a function to lookup static variables.
6642 * NEWS: Mention this new function.
6643 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6644 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6645 * python/python.c (python_GdbMethods): Add new function.
6646
6647 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6648
6649 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6650 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6651 (objfpy_lookup_static_symbol): New function.
6652 (objfile_object_methods): Add new functions.
6653
6654 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6655
6656 * NEWS: Mention 'set|show print frame-info'. Mention new
6657 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6658 backtrace argument. Mention that python frame filtering code
6659 is now consistent with what 'backtrace' command prints.
6660
6661 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6662
6663 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6664 comments.
6665 (print_frame_info_auto, print_frame_info_source_line,
6666 print_frame_info_location, print_frame_info_source_and_location,
6667 print_frame_info_location_and_address, print_frame_info_short_location):
6668 New declarations.
6669 (struct frame_print_options): New member print_frame_info.
6670 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6671 * stack.h (get_user_print_what_frame_info): New declaration.
6672 (frame_show_address): New declaration.
6673 * stack.c (print_frame_arguments_choices): New value 'presence'.
6674 (print_frame_info_auto, print_frame_info_source_line,
6675 print_frame_info_location, print_frame_info_source_and_location,
6676 print_frame_info_location_and_address, print_frame_info_short_location,
6677 print_frame_info_choices, print_frame_info_print_what): New definitions.
6678 (print_frame_args): Only print dots for args if print frame-arguments
6679 is 'presence'.
6680 (frame_print_option_defs): New element for "frame-info".
6681 (get_user_print_what_frame_info): New function.
6682 (frame_show_address): Make non static. Move comment to stack.h.
6683 (print_frame_info_to_print_what): New function.
6684 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6685 to decide what to print.
6686 (backtrace_command_1): Handle the new print_frame_arguments_presence
6687 value.
6688 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6689 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6690 (py_print_frame): In non-mi mode, use LOCATION as default for
6691 print_what, similarly to frame information printed directly by
6692 backtrace command. Handle frame-info user option in non MI mode.
6693
6694 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6695
6696 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6697 Add case for debugging 32-bit target on 64-bit host. Revise
6698 comment.
6699
6700 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6701
6702 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6703 instead of find_function_entry_range_from_pc.
6704
6705 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6706
6707 * stack.c (find_frame_funname): Remove code which preferred
6708 minsym over symtab sym in "certain pathological cases".
6709
6710 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6711 parameter. Change type of "do_demangle" to bool.
6712 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6713 Pass suitable "prefer_sym_over_minsym" flag to
6714 build_address_symbolic(). Don't output "+" for negative offsets.
6715 * printcmd.c (print_address_symbolic): Update invocation of
6716 build_address_symbolic to include a "prefer_sym_over_minsym"
6717 flag.
6718 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6719 Restrict cases in which use of minimal symbol is preferred to that
6720 of a found symbol. Update comments.
6721
6722 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6723 for entry pc when entry pc is out of range for that FDE.
6724
6725 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6726
6727 PR gdb/24839:
6728 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6729 type.
6730
6731 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6732
6733 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6734 this function's Python signature.
6735
6736
6737 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6738
6739 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6740 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6741 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6742 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6743 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6744
6745
6746 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6747
6748 * h8300-tdep.c (h8300_register_name_common): New.
6749 h8300_register_name): Use h8300_register_name_common.
6750 (h8300s_register_name): Likewise.
6751 (h8300sx_register_name): Likewise.
6752 (h8300h_register_nam): New.
6753 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6754
6755
6756 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6757
6758 * arm-tdep.c (arm_skip_cmse_entry): New function.
6759 (arm_is_sgstubs_section): New function.
6760 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6761
6762 2019-07-22 Tom Tromey <tom@tromey.com>
6763
6764 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6765 Don't self-assign.
6766
6767 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6770 type_print.
6771
6772 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6775 so that GDB doesn't match any msymbols when searching in the
6776 TYPES_DOMAIN.
6777 (print_symbol_info): Print using typedef_print or type_print based
6778 on the type of the symbol. Add updated FIXME comment moved from...
6779 (_initialize_symtab): ... move and update FIXME comment to above.
6780
6781 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6782
6783 * NEWS: Mention adding -q option to "info types".
6784 * symtab.c (struct info_types_options): New struct.
6785 (info_types_options_defs): New variable.
6786 (make_info_types_options_def_group): New function.
6787 (info_types_command): Use gdb::option framework to parse options.
6788 (info_types_command_completer): New function.
6789 (_initialize_symtab): Extend the help text on "info types" and
6790 register command completer.
6791
6792 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6793
6794 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6795 (lookup_symbol_in_objfile): Change int to block_enum and add a
6796 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6797
6798 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6799
6800 * MAINTAINERS (Write After Approval): Add self.
6801
6802 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6803
6804 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6805 instruction to the dummy code region.
6806
6807 2019-07-19 Tom Tromey <tromey@adacore.com>
6808
6809 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6810 (ARGSUSED, PARAMS, __func__): Remove rules.
6811
6812 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6813
6814 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6815 * features/arm/arm-with-iwmmxt.c: Remove.
6816 * features/arm/arm-with-iwmmxt.xml: Remove.
6817 * features/arm/arm-with-m-fpa-layout.c: Remove.
6818 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6819 * features/arm/arm-with-m-vfp-d16.c: Remove.
6820 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6821 * features/arm/arm-with-m.c: Remove.
6822 * features/arm/arm-with-m.xml: Remove.
6823 * features/arm/arm-with-neon.c: Remove.
6824 * features/arm/arm-with-neon.xml: Remove.
6825 * features/arm/arm-with-vfpv2.c: Remove.
6826 * features/arm/arm-with-vfpv2.xml: Remove.
6827 * features/arm/arm-with-vfpv3.c: Remove.
6828 * features/arm/arm-with-vfpv3.xml: Remove.
6829
6830 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6831
6832 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6833
6834 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6835
6836 * arch/aarch32.c (aarch32_create_target_description): Create
6837 target descriptions using features.
6838 * arch/arm.c (arm_create_target_description)
6839 (arm_create_mprofile_target_description): Likewise.
6840 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6841
6842 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6843
6844 * Makefile.in: Add new files.
6845 * aarch32-tdep.c: New file.
6846 * aarch32-tdep.h: New file.
6847 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6848 Call aarch32_read_description.
6849 * arch/aarch32.c: New file.
6850 * arch/aarch32.h: New file.
6851 * arch/arm.c (arm_create_target_description)
6852 (arm_create_mprofile_target_description): New function.
6853 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6854 (arm_create_target_description)
6855 (arm_create_mprofile_target_description): New declaration.
6856 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6857 read_description functions.
6858 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6859 Likewise.
6860 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6861 * arm-tdep.c (tdesc_arm_list): New variable.
6862 (arm_register_g_packet_guesses): Call create description functions.
6863 (arm_read_description) (arm_read_mprofile_description): New
6864 function.
6865 * arm-tdep.h (arm_read_description)
6866 (arm_read_mprofile_description): Add declaration.
6867 * configure.tgt: Add new files.
6868
6869 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6870
6871 * top.c (new_ui_command): Open specified terminal just once.
6872
6873 2019-07-18 Tom Tromey <tromey@adacore.com>
6874
6875 * symtab.c (main_name): Constify return type.
6876 * symfile.c (set_initial_language): Update.
6877 * symtab.h (main_name): Constify return type.
6878
6879 2019-07-17 Tom Tromey <tom@tromey.com>
6880
6881 * tui/tui-winsource.c (tui_update_source_window)
6882 (tui_update_source_window_as_is)
6883 (tui_update_source_windows_with_line): Remove return.
6884 * tui/tui-disasm.c (tui_show_disassem)
6885 (tui_show_disassem_and_update_source): Remove return.
6886 * tui/tui.c (tui_reset): Remove return.
6887 * tui/tui-wingeneral.c
6888 (tui_check_and_display_highlight_if_needed): Remove return.
6889
6890 2019-07-17 Tom Tromey <tom@tromey.com>
6891
6892 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6893
6894 2019-07-17 Tom Tromey <tom@tromey.com>
6895
6896 * tui/tui-winsource.h (struct tui_exec_info_window)
6897 (struct tui_source_window_base): Move from tui-data.h.
6898 * tui/tui-winsource.c: Move many method definitions from
6899 elsewhere. Remove "structuring" comments.
6900 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6901 (tui_source_window_base::refresh_window): Move to
6902 tui-winsource.c.
6903 * tui/tui-win.c (tui_source_window_base::refresh_all)
6904 (tui_source_window_base::update_tab_width)
6905 (tui_source_window_base::set_new_height)
6906 (tui_source_window_base::do_make_visible_with_new_height): Move to
6907 tui-winsource.c.
6908 * tui/tui-source.h: Update.
6909 * tui/tui-source.c (tui_source_window_base::reset): Move to
6910 tui-winsource.c.
6911 * tui/tui-disasm.h: Update.
6912 * tui/tui-data.h (struct tui_exec_info_window): Move to
6913 tui-winsource.h.
6914 (struct tui_source_window_base): Likewise.
6915 * tui/tui-data.c (tui_source_window_base::clear_detail)
6916 (tui_source_window_base, ~tui_source_window_base): Move to
6917 tui-winsource.c.
6918
6919 2019-07-17 Tom Tromey <tom@tromey.com>
6920
6921 * tui/tui-win.c (tui_resize_all)
6922 (tui_source_window_base::update_tab_width)
6923 (tui_adjust_win_heights): Update.
6924 (tui_win_info::make_invisible_and_set_new_height): Rename from
6925 make_invisible_and_set_new_height.
6926 * tui/tui-data.h (struct tui_win_info)
6927 <make_invisible_and_set_new_height>: New method.
6928
6929 2019-07-17 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui.c: Update.
6932 * tui/tui-source.h (struct tui_source_window): Move from
6933 tui-data.h.
6934 * tui/tui-layout.c: Update.
6935 * tui/tui-disasm.c: Update.
6936 * tui/tui-data.h (struct tui_source_window): Move to
6937 tui-source.h.
6938
6939 2019-07-17 Tom Tromey <tom@tromey.com>
6940
6941 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6942 tui-data.h.
6943 * tui/tui-data.h (struct tui_disasm_window): Move to
6944 tui-disasm.h.
6945
6946 2019-07-17 Tom Tromey <tom@tromey.com>
6947
6948 * tui/tui-regs.h (struct tui_data_item_window): Move from
6949 tui-data.h.
6950 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6951 * tui/tui-data.h (struct tui_data_item_window): Move to
6952 tui-regs.h.
6953 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6954
6955 2019-07-17 Tom Tromey <tom@tromey.com>
6956
6957 * tui/tui.c: Update.
6958 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6959 (tui_cmd_window::max_height): Move to tui-command.c.
6960 * tui/tui-layout.c: Update.
6961 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6962 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6963 tui-command.c.
6964 * tui/tui-command.h (struct tui_cmd_window): Move from
6965 tui-data.h.
6966 * tui/tui-command.c: Remove "structuring" comments.
6967 (tui_cmd_window::clear_detail)
6968 (tui_cmd_window::do_make_visible_with_new_height)
6969 (tui_cmd_window::max_height): Move from elsewhere.
6970
6971 2019-07-17 Tom Tromey <tom@tromey.com>
6972
6973 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6974 Now static.
6975 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6976 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6977
6978 2019-07-17 Tom Tromey <tom@tromey.com>
6979
6980 * tui/tui.c: Update.
6981 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6982 tui-regs.c.
6983 * tui/tui-windata.h: Remove file.
6984 * tui/tui-windata.c: Remove file.
6985 * tui/tui-win.c (tui_data_window::set_new_height)
6986 (tui_data_window::do_make_visible_with_new_height): Move to
6987 tui-regs.c.
6988 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6989 * tui/tui-regs.c: Remove "structuring" comments.
6990 (tui_data_window::first_data_item_displayed)
6991 (tui_data_window::delete_data_content_windows)
6992 (tui_data_window::erase_data_content)
6993 (tui_data_window::display_all_data)
6994 (tui_data_window::refresh_all)
6995 (tui_data_window::do_scroll_vertical)
6996 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6997 (tui_data_window::do_make_visible_with_new_height)
6998 (tui_data_window::refresh_window): Move from elsewhere.
6999 (_initialize_tui_regs): Move to end of file.
7000 * tui/tui-layout.c: Update.
7001 * tui/tui-hooks.c: Update.
7002 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
7003 * tui/tui-data.c (tui_data_window::clear_detail): Move to
7004 tui-regs.c.
7005 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
7006
7007 2019-07-17 Tom Tromey <tom@tromey.com>
7008
7009 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
7010 seen.
7011
7012 2019-07-17 Tom Tromey <tom@tromey.com>
7013
7014 * tui/tui-win.c (tui_source_window_base::set_new_height)
7015 (tui_source_window_base::do_make_visible_with_new_height): Use
7016 m_has_locator field directly.
7017 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
7018 method.
7019 (struct tui_source_window_base) <has_locator>: Likewise.
7020
7021 2019-07-17 Tom Tromey <tom@tromey.com>
7022
7023 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
7024 Don't declare.
7025 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
7026 Remove.
7027 * tui/tui-win.c (tui_source_window_base::set_new_height)
7028 (tui_source_window_base::set_new_height)
7029 (make_invisible_and_set_new_height)
7030 (tui_source_window_base::do_make_visible_with_new_height)
7031 (tui_source_window_base::do_make_visible_with_new_height):
7032 Update.
7033 * tui/tui-layout.c (show_source_disasm_command, show_data)
7034 (show_source_or_disasm_and_command): Update.
7035 * tui/tui-layout.c (show_layout): Update.
7036
7037 2019-07-17 Tom Tromey <tom@tromey.com>
7038
7039 * tui/tui-layout.c (make_data_window): Remove.
7040 (show_data): Unify creation and re-initialization cases.
7041
7042 2019-07-17 Tom Tromey <tom@tromey.com>
7043
7044 * tui/tui-layout.c (make_source_window, make_disasm_window):
7045 Remove.
7046 (show_data): Unify creation and re-initialization cases.
7047
7048 2019-07-17 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-layout.c (make_command_window): Remove.
7051 (show_source_disasm_command, show_source_or_disasm_and_command):
7052 Unify creation and re-initialization cases.
7053
7054 2019-07-17 Tom Tromey <tom@tromey.com>
7055
7056 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
7057 creation and re-initialization cases.
7058
7059 2019-07-17 Tom Tromey <tom@tromey.com>
7060
7061 * tui/tui-regs.c (tui_get_register): Return void.
7062
7063 2019-07-17 Tom Tromey <tom@tromey.com>
7064
7065 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
7066 Simplify.
7067
7068 2019-07-17 Tom Tromey <tom@tromey.com>
7069
7070 * tui/tui-layout.c (show_source_disasm_command): Simplify window
7071 resetting.
7072
7073 2019-07-17 Tom Tromey <tom@tromey.com>
7074
7075 * tui/tui.h (tui_set_layout_by_name): Don't declare.
7076 * tui/tui-regs.c (tui_reg_layout): New function.
7077 (tui_show_registers, tui_reg_command): Use it.
7078 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
7079 (tui_layout_command): Rename from tui_set_layout_by_name. Change
7080 parameters.
7081 (tui_layout_command): Remove.
7082
7083 2019-07-17 Tom Tromey <tom@tromey.com>
7084
7085 * tui/tui-layout.h (tui/tui-layout): Return void.
7086 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
7087
7088 2019-07-17 Tom Tromey <tom@tromey.com>
7089
7090 * tui/tui-layout.c (show_source_disasm_command, show_data):
7091 Update.
7092 (reset_locator): Remove.
7093 (show_source_or_disasm_and_command): Update.
7094
7095 2019-07-17 Tom Tromey <tom@tromey.com>
7096
7097 * tui/tui-source.c (tui_source_window_base::reset): Remove
7098 win_type parameter.
7099 * tui/tui-layout.c (make_command_window, make_source_window)
7100 (make_disasm_window, make_data_window)
7101 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
7102 (reset_locator, show_source_or_disasm_and_command): Update.
7103 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
7104 win_type parameter.
7105 (struct tui_source_window_base) <reset>: Likewise.
7106
7107 2019-07-17 Tom Tromey <tom@tromey.com>
7108
7109 * tui/tui-layout.c (show_source_disasm_command): Use
7110 reset_locator.
7111 (reset_locator): New function.
7112 (init_and_make_win): Remove.
7113 (show_source_or_disasm_and_command): Use reset_locator.
7114
7115 2019-07-17 Tom Tromey <tom@tromey.com>
7116
7117 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7118 condition.
7119 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7120 Remove condition.
7121 * tui/tui-source.c (tui_source_window_base::reset): New method.
7122 * tui/tui-layout.c (make_command_window): Don't call
7123 init_and_make_win.
7124 (make_source_window, make_disasm_window): Don't call
7125 make_source_or_disasm_window.
7126 (make_data_window): Don't call init_and_make_win. Change calling
7127 convention.
7128 (show_source_disasm_command, show_data): Simplify.
7129 (make_source_or_disasm_window): Remove.
7130 (show_source_or_disasm_and_command): Simplify.
7131 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7132 (struct tui_source_window_base) <reset>: Likewise.
7133 <execution_info>: Remove initializer.
7134 * tui/tui-data.c (tui_source_window_base): Initialize
7135 execution_info.
7136
7137 2019-07-17 Tom Tromey <tom@tromey.com>
7138
7139 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7140 variable.
7141
7142 2019-07-17 Tom Tromey <tom@tromey.com>
7143
7144 * tui/tui.c (tui_rl_other_window): Update.
7145 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7146 superclass method first. Always iterate over regs_content.
7147 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7148 method.
7149 * tui/tui-win.c (tui_set_focus_command): Update.
7150
7151 2019-07-17 Tom Tromey <tom@tromey.com>
7152
7153 * tui/tui-win.c (tui_set_focus_command): Rename from
7154 tui_set_focus. Call tui_enable.
7155 (tui_set_focus_command): Remove.
7156
7157 2019-07-17 Tom Tromey <tom@tromey.com>
7158
7159 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7160 refresh_window.
7161 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7162 touchwin.
7163 (tui_data_window::refresh_window): Call refresh_window on data
7164 items. Always call superclass refresh_window.
7165 (tui_win_info::refresh): Remove.
7166 (tui_source_window_base::refresh_window): Update.
7167 (tui_refresh_all): Update.
7168 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7169 refresh_window.
7170 (show_source_or_disasm_and_command): Likewise.
7171 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7172 (struct tui_source_window_base) <refresh>: Likewise.
7173
7174 2019-07-17 Tom Tromey <tom@tromey.com>
7175
7176 * tui/tui-winsource.c (tui_clear_source_content)
7177 (tui_show_source_content): Update.
7178 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7179 whether content is empty.
7180 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7181 Remove.
7182
7183 2019-07-17 Tom Tromey <tom@tromey.com>
7184
7185 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7186 window's contents.
7187 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7188 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7189
7190 2019-07-17 Tom Tromey <tom@tromey.com>
7191
7192 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7193 (struct tui_data_item_window): Update.
7194
7195 2019-07-17 Tom Tromey <tom@tromey.com>
7196
7197 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7198 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7199 defines.
7200
7201 2019-07-17 Tom Tromey <tom@tromey.com>
7202
7203 * tui/tui-winsource.h (tui_erase_source_content)
7204 (tui_clear_source_content): Remove "display_prompt" parameter.
7205 * tui/tui-winsource.c (tui_update_source_window_as_is)
7206 (tui_update_source_windows_with_addr): Update.
7207 (tui_clear_source_content): Remove "display_prompt" parameter.
7208 (tui_erase_source_content): Likewise. Simplify.
7209 (tui_show_source_content): Update.
7210 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7211 * tui/tui-stack.c (tui_show_frame_info): Update.
7212 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7213 Remove defines.
7214
7215 2019-07-17 Tom Tromey <tom@tromey.com>
7216
7217 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7218 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7219 parameter.
7220 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7221 parameter.
7222
7223 2019-07-17 Tom Tromey <tom@tromey.com>
7224
7225 * tui/tui-winsource.c (tui_clear_source_content)
7226 (tui_show_source_content, tui_show_exec_info_content)
7227 (tui_clear_exec_info_content): Update.
7228 * tui/tui-stack.c (tui_show_locator_content): Update.
7229 (tui_show_frame_info): Update.
7230 * tui/tui-source.h (tui_source_window): Don't declare.
7231 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7232 from tui_source_is_displayed.
7233 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7234 Remove field.
7235 (struct tui_source_window_base) <content_in_use>: New field. Now
7236 bool.
7237 (struct tui_source_window) <showing_source_p>: New method.
7238 (TUI_SRC_WIN): Change cast.
7239 * tui/tui-data.c (tui_initialize_static_data): Update.
7240
7241 2019-07-17 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7244 location_matches_p.
7245 * tui/tui-source.c (tui_source_window::location_matches_p): New
7246 method.
7247 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7248 method.
7249 * tui/tui-data.h (struct tui_source_window_base)
7250 <location_matches_p>: New method.
7251 (struct tui_source_window, struct tui_disasm_window)
7252 <location_matches_p>: Likewise.
7253
7254 2019-07-17 Tom Tromey <tom@tromey.com>
7255
7256 * tui/tui-win.c (tui_set_win_height_command): Rename from
7257 tui_set_win_height.
7258 (tui_set_win_height_command): Remove.
7259
7260 2019-07-17 Tom Tromey <tom@tromey.com>
7261
7262 * tui/tui-source.c (tui_source_window): New constructor. Add
7263 observer.
7264 (~tui_source_window): New destructor.
7265 (tui_source_window::style_changed): New method.
7266 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7267 (tui_attach_detach_observers): Update.
7268 * tui/tui-data.h (struct tui_source_window): Make constructor not
7269 inline. Add destructor.
7270 (struct tui_source_window) <style_changed>: New method.
7271 <m_observable>: New member.
7272
7273 2019-07-17 Tom Tromey <tom@tromey.com>
7274
7275 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7276 * tui/tui-win.c (tui_resize_all): Fix typo.
7277
7278 2019-07-17 Tom Tromey <tom@tromey.com>
7279
7280 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7281 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7282 (tui_refresh_all): Remove "list" parameter. Use foreach.
7283 * tui/tui-win.c (window_name_completer): Use foreach.
7284 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7285 (update_tab_width): Likewise.
7286 * tui/tui-layout.c (show_layout): Update.
7287 * tui/tui-data.h (class tui_window_iterator): New.
7288 (struct all_tui_windows): New.
7289 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7290
7291 2019-07-17 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7294 parameter. Don't reference globals.
7295 (tui_reg_command): Update.
7296
7297 2019-07-17 Tom Tromey <tom@tromey.com>
7298
7299 * tui/tui-regs.c (tui_show_registers): Simplify.
7300
7301 2019-07-17 Tom Tromey <tom@tromey.com>
7302
7303 * tui/tui-regs.c (tui_show_registers): Update.
7304 (tui_show_register_group): Add win_info parameter.
7305
7306 2019-07-17 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7309 Rename from tui_display_reg_element_at_line.
7310 (tui_data_window::display_registers_from_line): Update.
7311 * tui/tui-data.h (struct tui_data_window)
7312 <display_reg_element_at_line>: New method.
7313
7314 2019-07-17 Tom Tromey <tom@tromey.com>
7315
7316 * tui/tui-regs.h (tui_display_registers_from)
7317 (tui_display_registers_from_line): Don't declare.
7318 * tui/tui-windata.c (tui_data_window::display_all_data)
7319 (tui_data_window::refresh_all)
7320 (tui_data_window::do_scroll_vertical): Update.
7321 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7322 from tui_display_registers_from.
7323 (tui_display_reg_element_at_line): Update.
7324 (tui_data_window::display_registers_from_line): Rename from
7325 tui_display_registers_from_line.
7326 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7327 display_registers_from_line>: New methods.
7328
7329 2019-07-17 Tom Tromey <tom@tromey.com>
7330
7331 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7332 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7333 from tui_erase_data_content.
7334 (tui_data_window::display_all_data)
7335 (tui_data_window::refresh_all)
7336 (tui_data_window::do_scroll_vertical): Update.
7337 * tui/tui-regs.c (tui_show_registers): Update.
7338 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7339 New method.
7340
7341 2019-07-17 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7344 declare.
7345 * tui/tui-windata.c
7346 (tui_data_window::delete_data_content_windows): Rename from
7347 tui_delete_data_content_windows.
7348 (tui_data_window::display_all_data)
7349 (tui_data_window::do_scroll_vertical): Update.
7350 * tui/tui-data.h (struct tui_data_window)
7351 <delete_data_content_windows>: New method.
7352
7353 2019-07-17 Tom Tromey <tom@tromey.com>
7354
7355 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7356 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7357
7358 2019-07-17 Tom Tromey <tom@tromey.com>
7359
7360 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7361 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7362 from tui_display_all_data.
7363 * tui/tui-win.c
7364 (tui_data_window::do_make_visible_with_new_height): Update.
7365 * tui/tui-regs.c (tui_show_registers): Update.
7366 * tui/tui-layout.c (tui_set_layout): Update.
7367 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7368 method.
7369
7370 2019-07-17 Tom Tromey <tom@tromey.com>
7371
7372 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7373 * tui/tui-windata.c (tui_display_data_from): Remove.
7374 (tui_data_window::refresh_all): Update.
7375
7376 2019-07-17 Tom Tromey <tom@tromey.com>
7377
7378 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7379 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7380 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7381 tui_display_registers_from_line.
7382 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7383 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7384 "force_display" parameter.
7385
7386 2019-07-17 Tom Tromey <tom@tromey.com>
7387
7388 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7389 declare.
7390 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7391 Rename from tui_first_reg_element_no_inline.
7392 (tui_display_reg_element_at_line)
7393 (tui_display_registers_from_line): Update.
7394 * tui/tui-data.h (struct tui_data_window)
7395 <first_reg_element_no_inline>: New method.
7396
7397 2019-07-17 Tom Tromey <tom@tromey.com>
7398
7399 * tui/tui-windata.c (tui_display_data_from)
7400 (tui_data_window::do_scroll_vertical): Update.
7401 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7402 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7403 Rename from tui_line_from_reg_element_no.
7404 (tui_display_registers_from_line): Update.
7405 * tui/tui-data.h (struct tui_data_window)
7406 <line_from_reg_element_no>: New method.
7407
7408 2019-07-17 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7411 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7412 tui_last_regs_line_no.
7413 (tui_display_reg_element_at_line)
7414 (tui_display_registers_from_line): Update.
7415 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7416 method.
7417
7418 2019-07-17 Tom Tromey <tom@tromey.com>
7419
7420 PR tui/24722:
7421 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7422 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7423 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7424 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7425 (tui_update_breakpoint_info): Likewise.
7426 * tui/tui-hooks.c (tui_event_create_breakpoint)
7427 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7428 Update.
7429
7430 2019-07-17 Tom Tromey <tom@tromey.com>
7431
7432 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7433
7434 2019-07-17 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-winsource.c (tui_update_source_window_as_is)
7437 (tui_update_source_windows_with_addr): Update.
7438 * tui/tui-source.h (tui_set_source_content)
7439 (tui_show_symtab_source): Add "win_info" parameter.
7440 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7441 parameter.
7442 (tui_show_symtab_source): Likewise.
7443
7444 2019-07-17 Tom Tromey <tom@tromey.com>
7445
7446 * tui/tui-wingeneral.c
7447 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7448
7449 2019-07-17 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7452 (struct tui_cmd_window) <can_scroll>: New method.
7453 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7454 method.
7455
7456 2019-07-17 Tom Tromey <tromey@adacore.com>
7457
7458 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7459 do_field_signed>: Rename. Change type of "value".
7460 * ui-out.c (ui_out::field_signed): Rename from field_int.
7461 Change type of "value".
7462 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7463 type of "value".
7464 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7465 do_field_int. Change type of "value".
7466 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7467 do_field_int. Change type of "value".
7468 * tracepoint.c (trace_status_mi, tfind_1)
7469 (print_one_static_tracepoint_marker): Update.
7470 * thread.c (print_thread_info_1, print_selected_thread_frame):
7471 Update.
7472 * stack.c (print_frame, print_frame_info): Update.
7473 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7474 Update.
7475 * source.c (print_source_lines_base): Update.
7476 * skip.c (info_skip_command): Update.
7477 * record-btrace.c (btrace_ui_out_decode_error)
7478 (btrace_call_history_src_line): Update.
7479 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7480 Update.
7481 * progspace.c (print_program_space): Update.
7482 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7483 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7484 do_field_int. Change type of "value".
7485 * mi/mi-out.c (mi_ui_out::do_table_begin)
7486 (mi_ui_out::do_table_header): Update.
7487 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7488 type of "value".
7489 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7490 (mi_cmd_data_list_changed_registers, output_register)
7491 (mi_cmd_data_read_memory, mi_load_progress)
7492 (mi_cmd_trace_frame_collected): Update.
7493 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7494 Update.
7495 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7496 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7497 (mi_cmd_var_list_children, varobj_update_one): Update.
7498 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7499 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7500 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7501 * inferior.c (print_inferior): Update.
7502 * gdb_bfd.c (print_one_bfd): Update.
7503 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7504 Update.
7505 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7506 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7507 do_field_int. Change type of "value".
7508 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7509 do_field_int. Change type of "value".
7510 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7511 (print_one_breakpoint_location, print_it_catch_fork)
7512 (print_one_catch_fork, print_it_catch_vfork)
7513 (print_one_catch_vfork, print_it_catch_solib)
7514 (print_it_catch_exec, print_it_ranged_breakpoint)
7515 (print_mention_watchpoint, print_mention_masked_watchpoint)
7516 (bkpt_print_it, update_static_tracepoint): Update.
7517 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7518 * break-catch-syscall.c (print_it_catch_syscall): Update.
7519 * ada-tasks.c (print_ada_task_info): Update.
7520 * ada-lang.c (print_it_exception, print_mention_exception):
7521 Update.
7522
7523 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7524
7525 PR breakpoints/24541
7526 * gdbarch.c: Regenerate.
7527 * gdbarch.h: Regenerate.
7528 * gdbarch.sh: Adjust return type and parameter types for
7529 'stap_adjust_register'.
7530 (i386_stap_adjust_register): Adjust signature and return new
7531 register name.
7532 * stap-probe.c (stap_parse_register_operand): Adjust use of
7533 'gdbarch_stap_adjust_register'.
7534
7535 2019-07-17 Tom Tromey <tromey@adacore.com>
7536
7537 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7538 declare VEC.
7539 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7540 std::vector.
7541 (struct s390_process_info): Add initializers.
7542 (s390_add_process): Use new.
7543 (s390_linux_nat_target::low_forget_process): Use delete.
7544 (s390_linux_nat_target::low_new_fork)
7545 (s390_linux_nat_target::stopped_by_watchpoint)
7546 (s390_linux_nat_target::low_prepare_to_resume)
7547 (s390_linux_nat_target::insert_watchpoint)
7548 (s390_linux_nat_target::insert_hw_breakpoint)
7549 (s390_linux_nat_target::remove_watchpoint)
7550 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7551
7552 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7553
7554 * aarch64-fbsd-nat.c: Include regcache.h.
7555 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7556 argument.
7557 (aarch64_fbsd_nat_target::fetch_registers)
7558 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7559 variable.
7560 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7561
7562 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7563
7564 * fbsd-nat.c: Include gdbarch.h.
7565
7566 2019-07-15 Tom Tromey <tromey@adacore.com>
7567
7568 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7569
7570 2019-07-15 Tom Tromey <tromey@adacore.com>
7571
7572 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7573 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7574 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7575 * cli-out.c (cli_ui_out::do_field_int): New method.
7576 * ui-out.c (ui_out::field_unsigned): New method.
7577 * symfile.c (generic_load): Use field_unsigned.
7578 (print_transfer_performance): Likewise.
7579 * record-btrace.c (ui_out_field_uint): Remove.
7580 (btrace_call_history_insn_range, btrace_call_history): Use
7581 field_unsigned.
7582 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7583 field_unsigned.
7584 * ui-out.h (class ui_out) <field_unsigned>: New method.
7585 <do_field_unsigned>: Likewise.
7586
7587 2019-07-15 Tom Tromey <tromey@adacore.com>
7588
7589 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7590 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7591 * target.c (flash_erase_command): Use field_string.
7592 * infrun.c (print_signal_received_reason): Use field_string.
7593 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7594 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7595 field_string.
7596 * ada-tasks.c (print_ada_task_info): Use field_string.
7597
7598 2019-07-15 Tom Tromey <tromey@adacore.com>
7599
7600 * target.c (flash_erase_command): Use field_core_addr.
7601 * symfile.c (generic_load): Use field_core_addr.
7602 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7603 Use field_core_addr.
7604 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7605 field_core_addr.
7606
7607 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7608
7609 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7610 value if its desired type is smaller than a CORE_ADDR and signed.
7611
7612 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7613
7614 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7615 of changes to field names, and use new is_reference field to
7616 decide if a property is a reference or not.
7617 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7618 field.
7619 (struct dwarf2_property_baton): Update header comment, rename
7620 'referenced_type' to 'property_type' and update comments.
7621 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7622 default property type, store in property baton, update to take
7623 accound of renamed field.
7624 (read_func_scope): Update call to attr_to_dynamic_prop.
7625 (read_array_type): Likewise.
7626 (dwarf2_per_cu_addr_sized_int_type): New function.
7627 (read_subrange_index_type): Move type finding code to
7628 dwarf2_per_cu_addr_sized_int_type.
7629 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7630 (dwarf2_per_cu_addr_type): New function.
7631 (set_die_type): Update calls to attr_to_dynamic_prop.
7632
7633 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7634
7635 * dwarf2read.c (read_subrange_index_type): New function.
7636 (read_subrange_type): Move code into new function and call it.
7637 * gdbtypes.c (create_range_type): Add some asserts.
7638
7639 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7640
7641 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7642 update return statements.
7643 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7644 declaration, and update comment to match.
7645 * gdbtypes.c (resolve_dynamic_array): Update call to
7646 dwarf2_evaluate_property to match new return type.
7647
7648 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7649
7650 * valarith.c (value_subscripted_rvalue): Change lowerbound
7651 parameter type from int to LONGEST.
7652 * value.h (value_subscripted_rvalue): Likewise in declaration.
7653
7654 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7655
7656 * cli/cli-utils.c (info_print_command_completer): New function.
7657 * cli/cli-utils.h: Add 'completer.h' include, and forward
7658 declaration for 'struct cmd_list_element'.
7659 (info_print_command_completer): Declare.
7660 * stack.c (_initialize_stack): Add completer for 'info locals' and
7661 'info args'.
7662 * symtab.c (_initialize_symtab): Add completer for 'info
7663 variables' and 'info functions'.
7664 * NEWS: Mention completion for additional info commands.
7665
7666 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * cli/cli-utils.c (extract_info_print_args): Delete.
7669 (extract_arg_maybe_quoted): Delete.
7670 (info_print_options_defs): New variable.
7671 (make_info_print_options_def_group): New function.
7672 (extract_info_print_options): Define new function.
7673 * cli/cli-utils.h (extract_info_print_args): Delete.
7674 (struct info_print_options): New structure.
7675 (extract_info_print_options): Declare new function.
7676 * stack.c (info_locals_command): Update to use new
7677 extract_info_print_options, also add a header comment.
7678 (info_args_command): Likewise.
7679 * symtab.c (info_variables_command): Likewise.
7680 (info_functions_command): Likewise.
7681
7682 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7683
7684 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7685 to extract string arguments.
7686 * common/common-utils.c (extract_string_maybe_quoted): New function.
7687 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7688
7689 2019-07-11 Tom Tromey <tromey@adacore.com>
7690
7691 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7692 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7693 * top.h (gdbinit): Don't declare.
7694 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7695 into...
7696 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7697 * top.c (gdb_init): Don't call init_cli_cmds.
7698 (gdbinit): Remove.
7699 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7700
7701 2019-07-11 Tom Tromey <tromey@adacore.com>
7702
7703 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7704 after it has been moved.
7705
7706 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7707
7708 * valops.c (value_must_coerce_to_target): Change return type to
7709 bool.
7710 * value.h (value_must_coerce_to_target): Likewise.
7711
7712 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * breakpoint.c (is_hardware_watchpoint): Remove
7715 forward-declaration.
7716 (is_masked_watchpoint): Change return type to bool.
7717 (is_tracepoint): Likewise.
7718 (is_breakpoint): Likewise.
7719 (is_hardware_watchpoint): Likewise.
7720 (is_watchpoint): Likewise.
7721 (is_no_memory_software_watchpoint): Likewise.
7722 (is_catchpoint): Likewise.
7723 (breakpoint_1): Make FILTER parameter's return type bool.
7724 is_masked_watchpoint): Change return type to bool.
7725 (save_breakpoints): Make FILTER parameter's return type bool.
7726 * breakpoint.h (is_breakpoint): Change return type to bool.
7727 (is_watchpoint): Likewise.
7728 (is_catchpoint): Likewise.
7729 (is_tracepoint): Likewise.
7730
7731 2019-07-10 Tom Tromey <tom@tromey.com>
7732
7733 * defs.h: Don't include gdbarch.h.
7734 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7735 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7736 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7737 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7738 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7739 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7740 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7741 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7742 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7743 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7744 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7745 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7746 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7747 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7748 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7749 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7750 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7751 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7752 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7753 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7754 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7755 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7756 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7757 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7758 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7759 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7760 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7761
7762 2019-07-10 Tom Tromey <tromey@adacore.com>
7763
7764 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7765 * breakpoint.c (init_ada_exception_breakpoint): Register as
7766 bp_catchpoint.
7767 (print_one_breakpoint_location, print_one_breakpoint): Use
7768 is_ada_exception_catchpoint.
7769 * ada-lang.c (class ada_catchpoint_location): Pass
7770 bp_loc_software_breakpoint to bp_location constructor.
7771 (is_ada_exception_catchpoint): New function.
7772
7773 2019-07-10 Tom Tromey <tromey@adacore.com>
7774
7775 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7776 VEC.
7777 (struct arm_exidx_entry): New method operator<.
7778 (struct arm_exidx_data) <section_maps>: Change type.
7779 (arm_exidx_data_free): Remove.
7780 (arm_exidx_data_key): Change type. Move lower.
7781 (arm_exidx_new_objfile): Update.
7782 (arm_compare_exidx_entries): Remove.
7783 (arm_find_exidx_entry, _initialize_arm_tdep)
7784
7785 2019-07-10 Tom Tromey <tromey@adacore.com>
7786
7787 * solib-spu.c (ocl_program_data_key): Change type.
7788 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7789 Update.
7790
7791 2019-07-10 Tom Tromey <tromey@adacore.com>
7792
7793 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7794 (struct solib_aix_inferior_data) <library_list>: Change type.
7795 (solib_aix_inferior_data_handle): Change type.
7796 (get_solib_aix_inferior_data): Update.
7797 (solib_aix_free_library_list): Remove.
7798 (library_list_start_library): Update.
7799 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7800 return type.
7801 (solib_aix_get_library_list)
7802 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7803 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7804
7805 2019-07-10 Tom Tromey <tromey@adacore.com>
7806
7807 * solib-dsbt.c (struct dsbt_info): Add initializers.
7808 (solib_dsbt_pspace_data): Change type.
7809 (dsbt_pspace_data_cleanup): Remove.
7810 (get_dsbt_info, _initialize_dsbt_solib): Update.
7811
7812 2019-07-10 Tom Tromey <tromey@adacore.com>
7813
7814 * spu-tdep.c (spu_overlay_data): Change type.
7815 (spu_get_overlay_table, spu_overlay_new_objfile)
7816 (_initialize_spu_tdep): Update.
7817
7818 2019-07-10 Tom Tromey <tromey@adacore.com>
7819
7820 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7821 destructor.
7822 (dbx_objfile_data_key): Change type and declare later.
7823 (DBX_SYMFILE_INFO): Rewrite.
7824 * dbxread.c (dbx_objfile_data_key): Change type.
7825 (dbx_symfile_init): Update.
7826 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7827 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7828 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7829
7830 2019-07-10 Tom Tromey <tromey@adacore.com>
7831
7832 * jit.c (jit_program_space_key): Change type. Move lower.
7833 (get_jit_program_space_data): Update.
7834 (jit_program_space_data_cleanup): Remove.
7835 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7836 Update.
7837 (struct jit_program_space_data): Add initializers.
7838
7839 2019-07-10 Tom Tromey <tromey@adacore.com>
7840
7841 * solib-darwin.c (struct darwin_info): Add initializers.
7842 (solib_darwin_pspace_data): Change type.
7843 (darwin_pspace_data_cleanup): Remove.
7844 (get_darwin_info, _initialize_darwin_solib): Update.
7845
7846 2019-07-10 Tom Tromey <tromey@adacore.com>
7847
7848 * remote-sim.c (struct sim_inferior_data): Add initializers,
7849 constructor, and destructor.
7850 (sim_inferior_data_key): Change type. Move lower.
7851 (check_for_duplicate_sim_descriptor): Update.
7852 (get_sim_inferior_data): Use new. Update.
7853 (~sim_inferior_data_cleanup): Rename from
7854 sim_inferior_data_cleanup. Simplify.
7855 (gdbsim_close_inferior, simulator_command)
7856 (sim_command_completer, _initialize_remote_sim): Update.
7857 (next_pid, INITIAL_PID): Move earlier.
7858
7859 2019-07-10 Tom Tromey <tromey@adacore.com>
7860
7861 * python/python-internal.h (create_thread_object): Return
7862 gdbpy_ref.
7863 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7864 * python/py-inferior.c (struct threadlist_entry): Add
7865 constructor.
7866 <thread_obj>: Now a gdbpy_ref.
7867 (thread_to_thread_object): Update.
7868 (add_thread_object): Use new.
7869 (delete_thread_object): Use delete.
7870 (infpy_threads): Update.
7871 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7872 GIL.
7873
7874 2019-07-10 Tom Tromey <tromey@adacore.com>
7875
7876 * valops.c (value_cast): Specialize error message for Ada.
7877
7878 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7879
7880 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7881
7882 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7883
7884 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7885 bpstat_should_step): Return bool, adjust comments.
7886 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7887 bpstat_should_step): Likewise.
7888
7889 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7890
7891 * features/Makefile: Use feature target descriptions for Arm.
7892 * features/arm/arm-core.c: Generate new file.
7893 * features/arm/arm-fpa.c: Likewise.
7894 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7895 * features/arm/arm-m-profile.c: Likewise.
7896 * features/arm/arm-vfpv2.c: Likewise.
7897 * features/arm/arm-vfpv3.c: Likewise.
7898 * features/arm/xscale-iwmmxt.c: Likewise.
7899 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7900
7901 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7902
7903 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7904 ptrace earlier.
7905
7906 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7907
7908 * features/aarch64-pauth.c: Regenerate.
7909
7910 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7913 bool.
7914 (bpstat_what): Use false instead of 0.
7915
7916 2019-07-09 Pedro Alves <palves@redhat.com>
7917
7918 * break-catch-throw.c (is_exception_catchpoint): New.
7919 * breakpoint.c (print_one_breakpoint_location): New parameter
7920 'raw_loc'. Handle it. Use
7921 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7922 looking at the breakpoint's type.
7923 (print_one_breakpoint): If handling "maint info breakpoints", also
7924 print locations of exception catchpoints.
7925 * breakpoint.h (is_exception_catchpoint): Declare.
7926
7927 2019-07-09 Pedro Alves <palves@redhat.com>
7928
7929 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7930 "addr" field.
7931 (allocate_location_exception_catchpoint): New.
7932 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7933 (initialize_throw_catchpoint_ops): Install
7934 allocate_location_exception_catchpoint as allocate_location
7935 method.
7936 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7937 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7938 bp_loc_other.
7939 (breakpoint_address_is_meaningful): Delete.
7940 (bl_address_is_meaningful): New.
7941 (breakpoint_locations_match): Adjust comment.
7942 (bp_location_from_bp_type): New, factored out of...
7943 (bp_location::bp_location(breakpoint *)): ... this.
7944 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7945 factored out of...
7946 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7947 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7948 breakpoint_address_is_meaningful.
7949 (bp_locations_compare): Adjust comment.
7950 (update_global_location_list): Use bl_address_is_meaningful
7951 instead of breakpoint_address_is_meaningful.
7952 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7953 explicit.
7954 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7955 * python/py-breakpoint.c (bppy_get_location): No longer check
7956 whether location is null.
7957
7958 2019-07-09 Pedro Alves <palves@redhat.com>
7959
7960 PR c++/15468
7961 * breakpoint.c (print_one_breakpoint_location): Remove
7962 single-location assert.
7963
7964 2019-07-09 Tom Tromey <tom@tromey.com>
7965
7966 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7967 * configure: Rebuild.
7968 * configure.ac: Change common to gdbsupport.
7969 * gdbsupport: Rename from common.
7970 * acinclude.m4: Change common to gdbsupport.
7971 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7972 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7973 gdbsupport.
7974 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7975 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7976 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7977 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7978 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7979 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7980 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7981 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7982 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7983 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7984 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7985 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7986 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7987 coff-pe-read.c, command.h, compile/compile-c-support.c,
7988 compile/compile-c.h, compile/compile-cplus-symbols.c,
7989 compile/compile-cplus-types.c, compile/compile-cplus.h,
7990 compile/compile-loc2c.c, compile/compile.c, completer.c,
7991 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7992 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7993 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7994 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7995 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7996 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7997 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7998 features/aarch64-core.c, features/aarch64-fpu.c,
7999 features/aarch64-pauth.c, features/aarch64-sve.c,
8000 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
8001 features/i386/32bit-core.c, features/i386/32bit-linux.c,
8002 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
8003 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
8004 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
8005 features/i386/64bit-core.c, features/i386/64bit-linux.c,
8006 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
8007 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
8008 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
8009 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
8010 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
8011 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
8012 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
8013 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
8014 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
8015 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
8016 go32-nat.c, guile/guile.c, guile/scm-ports.c,
8017 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
8018 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
8019 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
8020 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
8021 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
8022 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
8023 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
8024 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
8025 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
8026 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
8027 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
8028 minsyms.c, mips-linux-tdep.c, namespace.h,
8029 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
8030 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
8031 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
8032 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
8033 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
8034 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
8035 nat/linux-waitpid.c, nat/mips-linux-watch.c,
8036 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
8037 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
8038 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
8039 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
8040 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
8041 procfs.c, producer.c, progspace.h, psymtab.h,
8042 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
8043 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
8044 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
8045 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
8046 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
8047 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
8048 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
8049 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
8050 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
8051 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
8052 target-memory.c, target.c, target.h, target/waitstatus.c,
8053 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
8054 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
8055 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
8056 unittests/array-view-selftests.c,
8057 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
8058 unittests/common-utils-selftests.c,
8059 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
8060 unittests/format_pieces-selftests.c,
8061 unittests/function-view-selftests.c,
8062 unittests/lookup_name_info-selftests.c,
8063 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
8064 unittests/mkdir-recursive-selftests.c,
8065 unittests/observable-selftests.c,
8066 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
8067 unittests/parse-connection-spec-selftests.c,
8068 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
8069 unittests/scoped_fd-selftests.c,
8070 unittests/scoped_mmap-selftests.c,
8071 unittests/scoped_restore-selftests.c,
8072 unittests/string_view-selftests.c, unittests/style-selftests.c,
8073 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
8074 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
8075 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
8076 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
8077 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
8078 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
8079
8080 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * linespec.c (decode_digits_list_mode): Set explicit_line to a
8083 bool value.
8084 (decode_digits_ordinary): Set explicit_line field in sal.
8085 * symtab.c (skip_prologue_sal): Don't skip prologue for a
8086 symtab_and_line that was set on an explicit line number in
8087 assembler code. Do always update the recorded symtab and line if
8088 we do skip the prologue.
8089
8090 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8091
8092 * breakpoint.c (set_breakpoint_location_function): Remove
8093 explicit_loc parameter.
8094 (momentary_breakpoint_from_master): Update call to
8095 set_breakpoint_location_function.
8096 (add_location_to_breakpoint): Likewise.
8097
8098 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
8101 required features based on default bfd type when no specific bfd
8102 is present.
8103
8104 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8105
8106 * NEWS: Mention that GDB printf and eval commands can now print
8107 C-style and Ada-style convenience var strings without
8108 calling the inferior.
8109 * printcmd.c (printf_c_string): Locally print GDB internal var
8110 instead of transiting via the inferior.
8111 (printf_wide_c_string): Likewise.
8112
8113 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8114
8115 PR breakpoints/25011
8116 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8117
8118 2019-07-04 Tom Tromey <tom@tromey.com>
8119
8120 PR tui/24724:
8121 * tui/tui-winsource.c (tui_clear_source_content): Update.
8122 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8123 (tui_update_breakpoint_info): Update.
8124 (tui_set_exec_info_content): Update.
8125 * tui/tui-source.c (tui_set_source_content_nil): Update.
8126 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8127 has_break.
8128 * tui/tui-data.h (enum tui_bp_flag): New.
8129 (tui_bp_flags): New enum flags type.
8130 (struct tui_source_element) <break_mode>: Change type. Rename
8131 from has_break.
8132 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8133 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8134 constants.
8135 * tui/tui-winsource.h: Fix comment.
8136
8137 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8138
8139 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8140 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8141 (store_fpregs_to_thread)
8142 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8143 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8144 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8145 (IWMMXT_REGS_SIZE): Add define.
8146 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8147 (fetch_vfp_regs, store_vfp_regs)
8148 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8149 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8150
8151 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8152
8153 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8154 defines.
8155 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8156 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8157 (ARM_INT_REGISTER_SIZE): ...to this.
8158 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8159 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8160 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8161 (arm_linux_collect_gregset, supply_nwfpe_register)
8162 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8163 defines.
8164 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8165 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8166 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8167 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8168 (arm_return_in_memory, arm_store_return_value)
8169 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8170 (arm_record_ld_st_multiple): Likewise.
8171 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8172 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8173
8174 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8175
8176 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8177 AARCH64_DISPLACED_MODIFIED_INSNS.
8178 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8179 (aarch64_displaced_step_copy_insn): Likewise.
8180 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8181 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8182 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8183 ARM_DISPLACED_MODIFIED_INSNS.
8184 * arm-tdep.c (arm_gdbarch_init): Likewise.
8185 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8186 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8187 (struct arm_displaced_step_closure): Use
8188 ARM_DISPLACED_MODIFIED_INSNS.
8189
8190 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8191
8192 * features/Makefile: Remove unused xml files.
8193 * features/aarch64.xml: Remove.
8194 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8195 * features/i386/amd64-avx-avx512.xml: Remove.
8196 * features/i386/amd64-avx-linux.xml: Remove.
8197 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8198 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8199 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8200 * features/i386/amd64-avx-mpx.xml: Remove.
8201 * features/i386/amd64-avx.xml: Remove.
8202 * features/i386/amd64-linux.xml: Remove.
8203 * features/i386/amd64-mpx-linux.xml: Remove.
8204 * features/i386/amd64-mpx.xml: Remove.
8205 * features/i386/amd64.xml: Remove.
8206 * features/i386/i386-avx-avx512-linux.xml: Remove.
8207 * features/i386/i386-avx-avx512.xml: Remove.
8208 * features/i386/i386-avx-linux.xml: Remove.
8209 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8210 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8211 * features/i386/i386-avx-mpx-linux.xml: Remove.
8212 * features/i386/i386-avx-mpx.xml: Remove.
8213 * features/i386/i386-avx.xml: Remove.
8214 * features/i386/i386-linux.xml: Remove.
8215 * features/i386/i386-mmx-linux.xml: Remove.
8216 * features/i386/i386-mmx.xml: Remove.
8217 * features/i386/i386-mpx-linux.xml: Remove.
8218 * features/i386/i386-mpx.xml: Remove.
8219 * features/i386/i386.xml: Remove.
8220 * features/i386/x32-avx-avx512-linux.xml: Remove.
8221 * features/i386/x32-avx-linux.xml: Remove.
8222 * features/i386/x32-linux.xml: Remove.
8223
8224 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8225
8226 * regformats/aarch64.dat: Remove.
8227 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8228 * regformats/i386/amd64-avx-linux.dat: Remove.
8229 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8230 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8231 * regformats/i386/amd64-linux.dat: Remove.
8232 * regformats/i386/amd64-mpx-linux.dat: Remove.
8233 * regformats/i386/amd64.dat: Remove.
8234 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8235 * regformats/i386/i386-avx-linux.dat: Remove.
8236 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8237 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8238 * regformats/i386/i386-linux.dat: Remove.
8239 * regformats/i386/i386-mmx-linux.dat: Remove.
8240 * regformats/i386/i386-mpx-linux.dat: Remove.
8241 * regformats/i386/i386.dat: Remove.
8242 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8243 * regformats/i386/x32-avx-linux.dat: Remove.
8244 * regformats/i386/x32-linux.dat: Remove.
8245
8246 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8247
8248 * aarch64-tdep.c: Remove xml self tests.
8249 * amd64-linux-tdep.c: Likewise.
8250 * amd64-tdep.c: Likewise.
8251 * i386-linux-tdep.c: Likewise.
8252 * i386-tdep.c: Likewise.
8253
8254 2019-07-03 Pedro Alves <palves@redhat.com>
8255
8256 PR cli/24732
8257 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8258 (pipe_cmd_option_defs): New.
8259 (make_pipe_cmd_options_def_group): New.
8260 (pipe_command): Use gdb::option::process_options.
8261 (pipe_command_completer): New function.
8262 (_initialize_cli_cmds): Install completer for "pipe" command.
8263
8264 2019-07-03 Pedro Alves <palves@redhat.com>
8265
8266 * cli/cli-option.c (union option_value) <string>: New field.
8267 (struct option_def_and_value): Add ctor, move ctor, dtor and
8268 use DISABLE_COPY_AND_ASSIGN.
8269 (option_def_and_value::clear_value): New.
8270 (parse_option, save_option_value_in_ctx, get_val_type_str)
8271 (add_setshow_cmds_for_options): Handle var_string.
8272 * cli-option.h (union option_def::var_address) <string>: New
8273 field.
8274 (struct string_option_def): New.
8275 * maint-test-options.c (struct test_options_opts): Add default
8276 ctor and use DISABLE_COPY_AND_ASSIGN.
8277 <string_opt>: New field.
8278 (test_options_opts::~test_options_opts): New.
8279 (test_options_opts::dump): Also dump "-string".
8280 (test_options_option_defs): Install "string.
8281
8282 2019-07-03 Pedro Alves <palves@redhat.com>
8283
8284 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8285 option_value with a null enumeration.
8286 (complete_options): Save the option values in the context.
8287 (save_option_value_in_ctx): New, factored out from ...
8288 (process_options): ... here.
8289 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8290 of the function.
8291 * maint-test-options.c (test_options_opts::dump): New, factored
8292 out from ...
8293 (maintenance_test_options_command_mode): ... here.
8294 (maintenance_test_options_command_completion_result): Delete.
8295 (maintenance_test_options_command_completion_text): Update
8296 comment.
8297 (maintenance_show_test_options_completion_result): Change
8298 prototype. Just print
8299 maintenance_test_options_command_completion_text.
8300 (save_completion_result): New.
8301 (maintenance_test_options_completer_mode): Pass options context to
8302 complete_options, and then save a dump.
8303 (_initialize_maint_test_options): Use add_cmd to install "maint
8304 show test-options-completion-result".
8305
8306 2019-07-03 Pedro Alves <palves@redhat.com>
8307
8308 * NEWS (New commands): Mention "with" and "maint with".
8309 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8310 (with_command, with_command_completer): New.
8311 (pipe_command): Adjust to new repeat_previous
8312 interface.
8313 (_initialize_cli_cmds): Install the "with" command and its "w"
8314 alias.
8315 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8316 declarations.
8317 * cli/cli-setshow.c (parse_cli_var_uinteger)
8318 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8319 argument strings for all var_types.
8320 (get_setshow_command_value_string): New, factored out from ...
8321 (do_show_command): ... this.
8322 * cli/cli-setshow.h: Include <string>.
8323 (get_setshow_command_value_string): Declare.
8324 * command.h (repeat_previous): Now returns const char *. Adjust
8325 comment.
8326 * maint.c: Include "cli/cli-cmds.h".
8327 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8328 (_initialize_maint_cmds): Register the "maintenance with" command.
8329 * top.c (repeat_previous): Move bits from pipe_command here:
8330 Return the saved command line, if any; error out if there's no
8331 command to relaunch.
8332
8333 2019-07-03 Pedro Alves <palves@redhat.com>
8334
8335 * NEWS (New commands): Mention "maint set/show test-settings"
8336 instead of "maint test-settings".
8337 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8338 (maintenance_test_settings_set_list): Rename to ...
8339 (maintenance_set_test_settings_list): ... this.
8340 (maintenance_test_settings_show_list): Rename to ...
8341 (maintenance_show_test_settings_list): ... this.
8342 (maintenance_test_settings_cmd): Delete.
8343 (maintenance_test_settings_set_cmd): ...
8344 (maintenance_set_test_settings_cmd): ... this.
8345 (maintenance_test_settings_show_cmd): ...
8346 (maintenance_show_test_settings_cmd): ... this.
8347 (maintenance_test_settings_show_value_cmd):
8348 (maintenance_show_test_settings_value_cmd): ... this.
8349 (_initialize_maint_test_settings): No longer install the "maint
8350 test-settings" prefix command. Rename "maint test-settings set"
8351 to "maint set test-settings", and "maint test-settings show" to
8352 "maint show test-settings". Adjust all subcommands.
8353
8354 2019-07-03 Pedro Alves <palves@redhat.com>
8355
8356 * maint-test-settings.c: Fix file's intro comment. Replace all
8357 references to "test-options" with references to "test-settings",
8358 in comments.
8359
8360 2019-07-03 Pedro Alves <palves@redhat.com>
8361
8362 * maint-test-settings.c (maintenance_test_settings_xxx)
8363 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8364 New.
8365 (maintenance_test_settings_enums): Use them.
8366 (maintenance_test_settings_enum): Default to
8367 maintenance_test_settings_xxx.
8368 (_initialize_maint_test_settings): Initialize
8369 MAINTENANCE_TEST_SETTINGS_FILENAME.
8370
8371 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8372
8373 * breakpoint.h (remove_breakpoints_inf): Change return type to
8374 void, move function documentation here.
8375 * breakpoint.c (remove_breakpoints_inf): Change return type to
8376 void, move function documentation to header.
8377
8378 2019-07-02 Pedro Alves <palves@redhat.com>
8379
8380 * NEWS (Completion improvements): Mention "info threads".
8381 * thread.c (struct info_threads_opts, info_threads_option_defs)
8382 (make_info_threads_options_def_group): New.
8383 (info_threads_command): Use gdb::option::process_options.
8384 (info_threads_command_completer): New.
8385 (_initialize_thread): Use gdb::option::build_help to build the
8386 help text for "info threads".
8387
8388 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8389
8390 * defs.h (generic_load): Move from here...
8391 * symfile.h (generic_load): ... to here. Rename name parameter
8392 to args.
8393 * symfile.c (generic_load): Add comment.
8394
8395 2019-07-01 Tom Tromey <tromey@adacore.com>
8396
8397 * dwarf2read.c
8398 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8399 declaration of without_params. Fix formatting.
8400
8401 2019-07-01 Tom Tromey <tromey@adacore.com>
8402
8403 * ada-exp.y (find_primitive_type): Update.
8404 * ada-lang.h (ada_lookup_symbol): Update.
8405 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8406 parameter.
8407 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8408
8409 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8410
8411 PR breakpoints/24541
8412 * gdbarch.c: Regenerate.
8413 * gdbarch.h: Regenerate.
8414 * gdbarch.sh: Add 'stap_adjust_register'.
8415 * i386-tdep.c: Include '<unordered_set>'.
8416 (i386_stap_adjust_register): New function.
8417 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8418 * stap-probe.c (stap_parse_register_operand): Call
8419 'gdbarch_stap_adjust_register'.
8420
8421 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8422
8423 PR python/24742
8424 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8425 * python/python.c (do_start_initialization): Use 'xmalloc'
8426 instead of 'PyMem_Malloc'.
8427
8428 2019-06-28 Tom Tromey <tromey@adacore.com>
8429
8430 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8431 for Ada.
8432
8433 2019-06-27 Tom Tromey <tromey@adacore.com>
8434
8435 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8436 objfile_key.
8437 (arm_find_mapping_symbol, arm_record_special_symbol)
8438 (_initialize_arm_tdep): Update.
8439 (arm_objfile_data_free): Remove.
8440
8441 2019-06-27 Tom Tromey <tromey@adacore.com>
8442
8443 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8444 to cp_print_static_field.
8445
8446 2019-06-26 Tom Tromey <tromey@adacore.com>
8447
8448 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8449 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8450 declare.
8451
8452 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8453
8454 * features/aarch64-core.c (create_feature_aarch64_core):
8455 Regenerate.
8456 * features/aarch64-core.xml: Add cpsr flags.
8457
8458 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8459
8460 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8461 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8462
8463 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8464
8465 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8466 field.
8467 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8468 use.
8469 (arm_record_special_symbol): Don't insert new symbol in sorted
8470 position, push it at the end.
8471
8472 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8473
8474 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8475 (arm_mapping_symbol_s): Remove.
8476 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8477 (arm_mapping_symbol_vec): New typedef.
8478 (struct arm_per_objfile): Add constructor.
8479 <section_maps>: Change type to
8480 std::unique_ptr<arm_mapping_symbol_vec[]>.
8481 (arm_compare_mapping_symbols): Remove.
8482 (arm_find_mapping_symbol): Adjust to section_maps type change.
8483 (arm_objfile_data_free): Call delete on arm_per_objfile.
8484 (arm_record_special_symbol): Adjust to section_maps type change.
8485 Allocate arm_per_objfile with new.
8486
8487 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8488
8489 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8490 with the command prefix.
8491
8492 2019-06-25 Tom Tromey <tom@tromey.com>
8493
8494 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8495 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8496
8497 2019-06-25 Tom Tromey <tom@tromey.com>
8498
8499 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8500 type.
8501 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8502 protected.
8503
8504 2019-06-25 Tom Tromey <tom@tromey.com>
8505
8506 * tui/tui-winsource.c
8507 (tui_source_window_base::set_is_exec_point_at): Add check against
8508 LOA_ADDRESS.
8509
8510 2019-06-25 Tom Tromey <tom@tromey.com>
8511
8512 * tui/tui-source.c (tui_set_source_content): Don't check before
8513 xfree.
8514 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8515
8516 2019-06-25 Tom Tromey <tom@tromey.com>
8517
8518 * tui/tui-winsource.h (tui_update_source_window_as_is)
8519 (tui_alloc_source_buffer, tui_line_is_displayed)
8520 (tui_addr_is_displayed): Change type of win_info.
8521 * tui/tui-winsource.c (tui_update_source_window_as_is)
8522 (tui_clear_source_content, tui_show_source_line)
8523 (tui_show_source_content, tui_source_window_base::refill)
8524 (tui_source_window_base::set_is_exec_point_at)
8525 (tui_source_window_base::set_is_exec_point_at)
8526 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8527 (tui_alloc_source_buffer, tui_line_is_displayed)
8528 (tui_addr_is_displayed): Change type of win_info. Update.
8529 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8530 (tui_source_window_base::do_make_visible_with_new_height):
8531 Update.
8532 * tui/tui-source.c (tui_set_source_content)
8533 (tui_set_source_content_nil)
8534 (tui_source_window::do_scroll_vertical): Update.
8535 * tui/tui-layout.c (show_layout): Update.
8536 * tui/tui-disasm.c (tui_set_disassem_content)
8537 (tui_disasm_window::do_scroll_vertical): Update.
8538 * tui/tui-data.h (tui_win_content): Remove.
8539 (struct tui_gen_win_info) <content, content_size>: Remove.
8540 (struct tui_source_element): Add initializers and destructor.
8541 (union tui_which_element, struct tui_win_element): Remove.
8542 (struct tui_source_window_base) <content>: New field.
8543 (struct tui_data_window): Remove destructor.
8544 (tui_alloc_content, tui_free_win_content)
8545 (tui_free_all_source_wins_content): Don't declare.
8546 * tui/tui-data.c (tui_initialize_static_data): Update.
8547 (init_content_element, tui_alloc_content): Remove.
8548 (~tui_gen_win_info): Update.
8549 (~tui_data_window, tui_free_all_source_wins_content)
8550 (tui_free_win_content, free_content, free_content_elements):
8551 Remove.
8552
8553 2019-06-25 Tom Tromey <tom@tromey.com>
8554
8555 * tui/tui-winsource.h (tui_clear_source_content)
8556 (tui_erase_source_content, tui_show_source_content): Change type
8557 of win_info.
8558 * tui/tui-winsource.c (tui_clear_source_content)
8559 (tui_erase_source_content, tui_show_source_content): Change type
8560 of win_info.
8561 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8562 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8563 win_info.
8564 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8565 win_info.
8566 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8567
8568 2019-06-25 Tom Tromey <tom@tromey.com>
8569
8570 * tui/tui-winsource.c (tui_clear_source_content)
8571 (tui_source_window_base::set_is_exec_point_at): Update.
8572 * tui/tui-source.c (tui_set_source_content_nil): Update.
8573 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8574 a bool.
8575 * tui/tui-data.c (init_content_element): Update.
8576
8577 2019-06-25 Tom Tromey <tom@tromey.com>
8578
8579 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8580 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8581 * tui/tui-layout.c (init_and_make_win): Update.
8582 * tui/tui.h (enum tui_win_type): Update.
8583 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8584 tui_win_is_auxillary.
8585 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8586 tui_win_is_auxillary.
8587
8588 2019-06-25 Tom Tromey <tom@tromey.com>
8589
8590 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8591 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8592 (tui_delete_data_content_windows, tui_display_all_data)
8593 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8594 Update.
8595 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8596 * tui/tui-regs.c (tui_last_regs_line_no)
8597 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8598 (tui_show_registers): Update.
8599 (tui_show_register_group): Return void. Update.
8600 (tui_display_registers_from, tui_display_reg_element_at_line)
8601 (tui_display_registers_from_line, tui_check_register_values):
8602 Update.
8603 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8604 member.
8605 (struct tui_data_window) <regs_content>: Now a std::vector.
8606 <regs_content_count>: Remove.
8607 (tui_add_content_elements, tui_free_data_content): Don't declare.
8608 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8609 (init_content_element): Remove DATA_WIN case. Add assert.
8610 (tui_add_content_elements): Remove.
8611 (tui_data_window): Update.
8612 (tui_free_data_content): Remove.
8613 (free_content_elements): Remove DATA_WIN case.
8614
8615 2019-06-25 Tom Tromey <tom@tromey.com>
8616
8617 * tui/tui-data.c (tui_data_item_window): Update.
8618 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8619 * tui/tui-windata.c (tui_display_all_data)
8620 (tui_display_data_from_line): Update.
8621 (tui_check_data_values): Remove.
8622 * tui/tui-regs.c (tui_show_register_group)
8623 (tui_display_reg_element_at_line): Update.
8624 * tui/tui-hooks.c (tui_register_changed)
8625 (tui_refresh_frame_and_register_information): Call
8626 tui_check_register_values.
8627 * tui/tui-data.h (struct tui_data_window) <data_content,
8628 data_content_count, data_type>: Remove.
8629 (enum tui_data_type): Remove.
8630
8631 * tui/tui-data.c (tui_data_window::clear_detail)
8632 (~tui_data_window): Update.
8633
8634 2019-06-25 Tom Tromey <tom@tromey.com>
8635
8636 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8637 declare.
8638 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8639 Rename from tui_first_data_item_displayed. Update.
8640 (tui_data_window::refresh_all)
8641 (tui_data_window::do_scroll_vertical): Update.
8642 * tui/tui-data.h (struct tui_data_window)
8643 <first_data_item_displayed>: Declare new method.
8644
8645 2019-06-25 Tom Tromey <tom@tromey.com>
8646
8647 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8648 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8649 contents...
8650 (tui_initialize_static_data): ...here.
8651
8652 2019-06-25 Tom Tromey <tom@tromey.com>
8653
8654 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8655 (tui_display_registers_from, tui_check_register_values): Update.
8656 (tui_display_register): Remove win_info parameter; update.
8657 (tui_get_register): Change type of parameters.
8658 * tui/tui-data.h (struct tui_data_element): Remove.
8659 (union tui_which_element) <data>: Remove.
8660 <data_window>: Change type.
8661 (struct tui_data_item_window): New.
8662 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8663 case. Add assert.
8664 (~tui_data_item_window): New destructor.
8665 (free_content_elements): Remove DATA_ITEM_WIN case.
8666
8667 2019-06-25 Tom Tromey <tom@tromey.com>
8668
8669 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8670 Remove.
8671
8672 2019-06-25 Tom Tromey <tom@tromey.com>
8673
8674 * tui/tui-data.h (struct tui_command_element): Remove.
8675 (union tui_which_element) <command>: Remove.
8676 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8677 assert.
8678 (free_content_elements): Remove CMD_WIN case.
8679
8680 2019-06-25 Tom Tromey <tom@tromey.com>
8681
8682 * tui/tui-layout.c (tui_set_layout): Update.
8683 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8684 * tui/tui-data.c (layout_def): Update.
8685
8686 2019-06-25 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8689 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8690 (tui_source_window_base::set_new_height): Update.
8691 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8692 Update.
8693 (tui_set_locator_fullname, tui_set_locator_info)
8694 (tui_show_frame_info): Update.
8695 * tui/tui-source.c (tui_set_source_content)
8696 (tui_source_is_displayed): Update.
8697 * tui/tui-layout.c (show_source_disasm_command, show_data)
8698 (show_source_or_disasm_and_command): Update.
8699 * tui/tui-disasm.c (tui_set_disassem_content)
8700 (tui_get_begin_asm_address): Update.
8701 * tui/tui-data.h (struct tui_locator_element): Remove.
8702 (union tui_which_element) <locator>: Remove.
8703 (struct tui_locator_window): New.
8704 (tui_locator_win_info_ptr): Change return type.
8705 * tui/tui-data.c (_locator): Change type.
8706 (tui_locator_win_info_ptr): Change return type.
8707 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8708 (tui_alloc_content): Add assert.
8709
8710 2019-06-25 Tom Tromey <tom@tromey.com>
8711
8712 * tui/tui-winsource.c
8713 (tui_exec_info_window::maybe_allocate_content): New method.
8714 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8715 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8716 (make_source_or_disasm_window): Add cast.
8717 * tui/tui-data.h (union tui_which_element) <simple_string>:
8718 Remove.
8719 (struct tui_source_info): New.
8720 (struct tui_source_window_base) <execution_info>: Change type.
8721 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8722 case, and add assert.
8723 (tui_alloc_content): Add assert.
8724
8725 2019-06-25 Tom Tromey <tom@tromey.com>
8726
8727 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8728 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8729 * tui/tui-data.c (tui_alloc_win_info): Remove.
8730
8731 2019-06-25 Tom Tromey <tom@tromey.com>
8732
8733 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8734 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8735 can_highlight.
8736
8737 2019-06-25 Tom Tromey <tom@tromey.com>
8738
8739 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8740 make_visible_with_new_height method.
8741 (tui_win_info::make_visible_with_new_height): New method.
8742 (tui_source_window_base::do_make_visible_with_new_height)
8743 (tui_data_window::do_make_visible_with_new_height)
8744 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8745 (make_visible_with_new_height): Remove.
8746 (tui_resize_all, tui_adjust_win_heights): Use
8747 make_visible_with_new_height method.
8748 * tui/tui-data.h (struct tui_win_info)
8749 <do_make_visible_with_new_height, make_visible_with_new_height>:
8750 New methods.
8751 (struct tui_source_window_base, struct tui_data_window)
8752 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8753 methods.
8754
8755 2019-06-25 Tom Tromey <tom@tromey.com>
8756
8757 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8758 method.
8759 (update_tab_width): Call update_tab_width method.
8760 * tui/tui-data.h (struct tui_win_info)
8761 (struct tui_source_window_base) <update_tab_width>: New methods.
8762
8763 2019-06-25 Tom Tromey <tom@tromey.com>
8764
8765 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8766 parameter.
8767 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8768 parameter.
8769 (tui_gen_win_info::make_visible): Update.
8770 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8771 parameter.
8772 * tui/tui-data.h (enum tui_box): New enum.
8773 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8774
8775 2019-06-25 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8778 init_and_make_win for EXEC_INFO_WIN.
8779 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8780 longer inline.
8781 (struct tui_win_info) <~tui_win_info>: Inline.
8782 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8783 Don't declare.
8784 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8785 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8786 Remove.
8787 (tui_initialize_static_data): Update.
8788 (~tui_gen_win_info): Handle more cleanup here.
8789 (~tui_source_window_base): Delete "execution_info".
8790 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8791
8792 2019-06-25 Tom Tromey <tom@tromey.com>
8793
8794 * tui/tui-layout.c (make_command_window): Don't set
8795 can_highlight.
8796 (show_source_disasm_command): Call the reset method.
8797 (show_data): Don't set can_highlight. Call the reset method.
8798 (tui_gen_win_info::reset): Rename from init_gen_win_info
8799 (init_and_make_win): Simplify. Return tui_gen_win_info.
8800 (show_source_or_disasm_and_command): Call the reset method.
8801 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8802 (struct tui_cmd_window): Set can_highlight.
8803
8804 2019-06-25 Tom Tromey <tom@tromey.com>
8805
8806 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8807 from make_visible.
8808 (tui_make_visible, tui_make_invisible): Rewrite.
8809 (tui_win_info::make_visible): Remove.
8810 (tui_source_window_base::make_visible): Update.
8811 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8812 method. Moved from...
8813 (struct tui_win_info) <make_visible>: ...here.
8814
8815 2019-06-25 Tom Tromey <tom@tromey.com>
8816
8817 * tui/tui-winsource.c
8818 (tui_source_window_base::do_scroll_horizontal): Remove direction
8819 parameter.
8820 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8821 direction parameter.
8822 * tui/tui-win.c (tui_win_info::forward_scroll)
8823 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8824 (tui_win_info::right_scroll): Update.
8825 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8826 direction parameter.
8827 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8828 direction parameter.
8829 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8830 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8831 Remove direction parameter.
8832 (struct tui_source_window_base, struct tui_source_window)
8833 (struct tui_disasm_window, struct tui_data_window)
8834 (struct tui_cmd_window): Update.
8835
8836 2019-06-25 Tom Tromey <tom@tromey.com>
8837
8838 * tui/tui-winsource.h (tui_set_exec_info_content)
8839 (tui_show_exec_info_content, tui_erase_exec_info_content)
8840 (tui_clear_exec_info_content, tui_update_exec_info): Change
8841 argument to tui_source_window_base.
8842 * tui/tui-winsource.c (tui_set_exec_info_content)
8843 (tui_show_exec_info_content, tui_erase_exec_info_content)
8844 (tui_clear_exec_info_content, tui_update_exec_info): Change
8845 argument to tui_source_window_base.
8846
8847 2019-06-25 Tom Tromey <tom@tromey.com>
8848
8849 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8850 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8851
8852 2019-06-25 Tom Tromey <tom@tromey.com>
8853
8854 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8855 check.
8856
8857 2019-06-25 Tom Tromey <tom@tromey.com>
8858
8859 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8860 type to void.
8861 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8862 type to void.
8863 * tui/tui-source.c (tui_set_source_content): Update.
8864 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8865
8866 2019-06-25 Tom Tromey <tom@tromey.com>
8867
8868 * tui/tui-win.c (window_name_completer, tui_set_focus)
8869 (tui_all_windows_info): Use name method.
8870 * tui/tui-data.h (struct tui_gen_win_info)
8871 (struct tui_source_window, struct tui_disasm_window)
8872 (struct tui_data_window, struct tui_cmd_window) <name>: New
8873 method.
8874 (tui_win_name): Don't declare.
8875 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8876 (tui_win_name): Remove.
8877
8878 2019-06-25 Tom Tromey <tom@tromey.com>
8879
8880 * tui/tui-winsource.h (tui_update_source_window)
8881 (tui_update_source_window_as_is): Change parameter type.
8882 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8883 to be a tui_source_window_base.
8884 (tui_update_source_window_as_is): Likewise.
8885 * tui/tui-win.c (make_visible_with_new_height): Update.
8886
8887 2019-06-25 Tom Tromey <tom@tromey.com>
8888
8889 * tui/tui-winsource.c (tui_erase_source_content)
8890 (tui_show_source_content, tui_show_exec_info_content)
8891 (tui_erase_exec_info_content): Use refresh_window method.
8892 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8893 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8894 from tui_refresh_win.
8895 (tui_data_window::refresh_window): New method.
8896 (tui_win_info::refresh, tui_source_window_base::refresh)
8897 (tui_refresh_all): Use refresh_window method.
8898 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8899 method.
8900 * tui/tui-regs.c (tui_display_register): Call refresh_window
8901 method.
8902 * tui/tui-layout.c (show_source_disasm_command)
8903 (show_source_or_disasm_and_command): Call refresh_window method.
8904 * tui/tui-data.h (struct tui_gen_win_info)
8905 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8906 New method.
8907
8908 2019-06-25 Tom Tromey <tom@tromey.com>
8909
8910 * tui/tui.c (tui_rl_other_window, tui_enable)
8911 (tui_is_window_visible, tui_get_command_dimension): Update.
8912 * tui/tui-winsource.c (tui_update_source_window_as_is)
8913 (tui_clear_source_content, tui_erase_source_content)
8914 (tui_show_source_line, tui_source_window_base::refill)
8915 (tui_source_window_base::do_scroll_horizontal)
8916 (tui_source_window_base::set_is_exec_point_at)
8917 (tui_update_breakpoint_info, tui_set_exec_info_content)
8918 (tui_alloc_source_buffer, tui_line_is_displayed)
8919 (tui_addr_is_displayed): Update.
8920 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8921 (tui_check_and_display_highlight_if_needed)
8922 (tui_win_info::make_visible, tui_win_info::refresh)
8923 (tui_refresh_all): Update.
8924 * tui/tui-windata.c (tui_first_data_item_displayed)
8925 (tui_delete_data_content_windows, tui_erase_data_content)
8926 (tui_display_all_data, tui_data_window::refresh_all)
8927 (tui_check_data_values): Update.
8928 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8929 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8930 (tui_win_info::backward_scroll, tui_refresh_all_win)
8931 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8932 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8933 (tui_source_window_base::set_new_height)
8934 (tui_data_window::set_new_height)
8935 (make_invisible_and_set_new_height)
8936 (make_visible_with_new_height, new_height_ok)
8937 (parse_scrolling_args): Update.
8938 * tui/tui-stack.c (tui_show_frame_info): Update.
8939 * tui/tui-source.c (tui_set_source_content)
8940 (tui_set_source_content_nil, tui_source_is_displayed)
8941 (tui_source_window::do_scroll_vertical): Update.
8942 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8943 (tui_display_registers_from, tui_display_reg_element_at_line)
8944 (tui_check_register_values, tui_reg_command): Update.
8945 * tui/tui-layout.c (tui_default_win_height)
8946 (show_source_disasm_command, show_data, init_and_make_win)
8947 (show_source_or_disasm_and_command): Update.
8948 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8949 (tui_redisplay_readline, tui_mld_flush)
8950 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8951 (tui_getc): Update.
8952 * tui/tui-disasm.c (tui_set_disassem_content)
8953 (tui_disasm_window::do_scroll_vertical): Update.
8954 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8955 Now virtual.
8956 (struct tui_win_info): Derive from tui_gen_win_info.
8957 <~tui_win_info>: Mark as override.
8958 <generic>: Remove member.
8959 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8960 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8961 (~tui_data_window, ~tui_win_info)
8962 (tui_free_all_source_wins_content): Update.
8963 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8964
8965 2019-06-25 Tom Tromey <tom@tromey.com>
8966
8967 * tui/tui-layout.c (init_and_make_win): Use new.
8968 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8969 destructor, initializers.
8970 (tui_alloc_generic_win_info): Don't declare.
8971 * tui/tui-data.c (_locator): Add argument to constructor.
8972 (source_win, disasm_win): New globals.
8973 (exec_info): Remove.
8974 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8975 Update.
8976 (tui_alloc_generic_win_info): Remove.
8977 (init_content_element): Use new.
8978 (tui_win_info::tui_win_info): Update.
8979 (free_content_elements) <case DATA_WIN>: Use delete.
8980
8981 2019-06-25 Tom Tromey <tom@tromey.com>
8982
8983 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8984 * tui/tui-windata.c (tui_first_data_item_displayed)
8985 (tui_delete_data_content_windows): Update.
8986 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8987 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8988 (tui_display_registers_from, tui_check_register_values): Update.
8989 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8990 pointer.
8991 * tui/tui-data.c (init_content_element): Update. Allocate the new
8992 window.
8993 (tui_free_data_content): Update.
8994 (free_content_elements) <case DATA_WIN>: Free the window.
8995
8996 2019-06-25 Tom Tromey <tom@tromey.com>
8997
8998 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8999 Update.
9000 * tui/tui-layout.c (make_command_window)
9001 (show_source_disasm_command, show_data, init_and_make_win)
9002 (show_source_or_disasm_and_command): Update.
9003 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
9004 method.
9005 <can_highight, is_highlighted>: Now bool.
9006 (tui_set_win_highlight): Don't declare.
9007 * tui/tui-data.c (tui_set_win_highlight): Remove.
9008
9009 2019-06-25 Tom Tromey <tom@tromey.com>
9010
9011 * tui/tui-wingeneral.c (make_visible): Remove check of window
9012 type.
9013
9014 2019-06-25 Tom Tromey <tom@tromey.com>
9015
9016 * tui/tui-win.c (tui_win_info::max_height)
9017 (tui_cmd_window::max_height): New methods.
9018 (new_height_ok): Call max_height.
9019 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
9020 <max_height>: New method.
9021
9022 2019-06-25 Tom Tromey <tom@tromey.com>
9023
9024 * tui/tui-win.c (tui_source_window_base::set_new_height)
9025 (tui_data_window::set_new_height): New methods.
9026 (make_invisible_and_set_new_height): Call set_new_height method.
9027 * tui/tui-data.h (struct tui_win_info)
9028 (struct tui_source_window_base, struct tui_data_window)
9029 <set_new_height>: New method.
9030
9031 2019-06-25 Tom Tromey <tom@tromey.com>
9032
9033 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
9034 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
9035 tui_refresh_data_win.
9036 * tui/tui-win.c (tui_source_window_base::refresh_all): New
9037 method.
9038 (tui_refresh_all_win): Call the refresh_all method.
9039 (tui_set_focus): Likewise.
9040 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
9041 (struct tui_source_window_base, struct tui_data_window) <refresh>:
9042 Likewise.
9043
9044 2019-06-25 Tom Tromey <tom@tromey.com>
9045
9046 * tui/tui-winsource.h (tui_refill_source_window)
9047 (tui_set_is_exec_point_at): Don't declare.
9048 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
9049 (tui_source_window_base::refill): Rename from
9050 tui_refill_source_window.
9051 (tui_source_window_base::do_scroll_horizontal): Update.
9052 (tui_source_window_base::set_is_exec_point_at): Rename from
9053 tui_set_is_exec_point_at.
9054 (tui_update_all_breakpoint_info): Update.
9055 * tui/tui-stack.c (tui_show_frame_info): Update.
9056 * tui/tui-layout.c (show_data): Add cast.
9057 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
9058 * tui/tui-data.h (struct tui_source_window_base) <refill,
9059 set_is_exec_point_at>: New methods.
9060 (tui_source_windows, tui_add_to_source_windows): Update types.
9061 (tui_add_to_source_windows): Remove redundant declaration.
9062 * tui/tui-data.c (source_windows): Store tui_source_window_base.
9063 (tui_source_windows): Change return type.
9064 (tui_clear_source_windows_detail): Update.
9065 (tui_add_to_source_windows): Change type of parameter.
9066 (tui_free_all_source_wins_content): Update.
9067
9068 2019-06-25 Tom Tromey <tom@tromey.com>
9069
9070 * tui/tui-wingeneral.c (tui_win_info::refresh)
9071 (tui_source_window_base::refresh): New methods.
9072 (tui_refresh_all): Call the refresh method.
9073 * tui/tui-data.h (struct tui_win_info)
9074 (struct tui_source_window_base) <refresh>: New method.
9075
9076 2019-06-25 Tom Tromey <tom@tromey.com>
9077
9078 * tui/tui.h (tui_is_window_visible): Return bool.
9079 * tui/tui.c (tui_is_window_visible): Return bool.
9080 * tui/tui-wingeneral.c (tui_make_window, make_visible)
9081 (tui_make_visible, tui_make_invisible)
9082 (tui_win_info::make_visible)
9083 (tui_source_window_base::make_visible, make_all_visible)
9084 (tui_make_all_visible, tui_make_all_invisible): Update.
9085 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
9086 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
9087 bool.
9088 (struct tui_win_info, struct tui_source_window_base)
9089 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
9090 * tui/tui-data.c (tui_init_generic_part): Update.
9091
9092 2019-06-25 Tom Tromey <tom@tromey.com>
9093
9094 * tui/tui-wingeneral.c (tui_win_info::make_visible)
9095 (tui_source_window_base::make_visible): New methods.
9096 (make_all_visible): Make method call.
9097 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
9098 (struct tui_source_window_base, struct tui_cmd_window): Override
9099 make_visible.
9100 (tui_win_is_source_type): Don't declare.
9101 * tui/tui-data.c (tui_win_is_source_type): Remove.
9102
9103 2019-06-25 Tom Tromey <tom@tromey.com>
9104
9105 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9106 NULL check.
9107
9108 2019-06-25 Tom Tromey <tom@tromey.com>
9109
9110 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9111 Inline constructor. Add initializers for members.
9112 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9113 constructors; now inline in class.
9114
9115 2019-06-25 Tom Tromey <tom@tromey.com>
9116
9117 * tui/tui-regs.c (tui_show_registers): Update.
9118 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9119 bool.
9120 * tui/tui-data.c (tui_data_window::clear_detail)
9121 (tui_data_window): Update.
9122
9123 2019-06-25 Tom Tromey <tom@tromey.com>
9124
9125 * tui/tui-windata.c (tui_display_all_data)
9126 (tui_display_data_from_line, tui_display_data_from)
9127 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9128 Update.
9129 * tui/tui-regs.c (tui_last_regs_line_no)
9130 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9131 (tui_show_registers, tui_show_register_group)
9132 (tui_display_registers_from, tui_display_reg_element_at_line)
9133 (tui_display_registers_from_line, tui_check_register_values)
9134 (tui_reg_next, tui_reg_prev): Update.
9135 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9136 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9137 tui_data_window.
9138 (struct tui_win_info) <detail>: Remove. Add new fields from
9139 tui_data_info.
9140 (TUI_DATA_WIN): Add cast.
9141 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9142 (~tui_data_window): Simplify.
9143
9144 2019-06-25 Tom Tromey <tom@tromey.com>
9145
9146 * tui/tui-layout.c (show_source_disasm_command)
9147 (show_source_or_disasm_and_command): Update.
9148 * tui/tui-io.c (update_cmdwin_start_line)
9149 (tui_redisplay_readline): Update.
9150 * tui/tui-data.h (struct tui_command_info): Remove.
9151 (struct tui_win_info) <detail>: Remove command_info member.
9152 (struct tui_data_window) <start_line>: New member, from
9153 tui_command_info.
9154 (TUI_CMD_WIN): Add casts.
9155
9156 2019-06-25 Tom Tromey <tom@tromey.com>
9157
9158 * tui/tui-winsource.c (tui_update_source_window)
9159 (tui_refill_source_window)
9160 (tui_source_window_base::do_scroll_horizontal)
9161 (tui_update_breakpoint_info, tui_set_exec_info_content)
9162 (tui_show_exec_info_content, tui_erase_exec_info_content)
9163 (tui_clear_exec_info_content): Update.
9164 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9165 Update.
9166 * tui/tui-win.c (make_invisible_and_set_new_height)
9167 (make_visible_with_new_height): Update.
9168 * tui/tui-source.c (tui_set_source_content)
9169 (tui_show_symtab_source): Update.
9170 * tui/tui-layout.c (extract_display_start_addr)
9171 (show_source_disasm_command, show_data)
9172 (make_source_or_disasm_window)
9173 (show_source_or_disasm_and_command): Update.
9174 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9175 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9176 "gdbarch".
9177 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9178 to tui_source_window_base.
9179 (struct tui_win_info) <detail>: Remove source_info member.
9180 (struct tui_source_window_base) <has_locator>: Inline.
9181 Move contents from tui_source_info; rename has_locator member to
9182 m_has_locator.
9183 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9184 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9185 header file.
9186 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9187 Simplify.
9188 (tui_free_all_source_wins_content): Cast to
9189 tui_source_window_base.
9190
9191 2019-06-25 Tom Tromey <tom@tromey.com>
9192
9193 * tui/tui-win.c (make_invisible_and_set_new_height)
9194 (make_visible_with_new_height): Call has_locator method.
9195 * tui/tui-layout.c (show_source_disasm_command, show_data)
9196 (show_source_or_disasm_and_command): Update for bool change.
9197 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9198 (tui_win_info) <has_locator>: New method.
9199 (struct tui_source_window_base) <has_locator>: New method.
9200 (tui_win_has_locator): Don't declare.
9201 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9202 from tui_win_has_locator.
9203 (tui_source_window_base): Use false, not FALSE.
9204
9205 2019-06-25 Tom Tromey <tom@tromey.com>
9206
9207 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9208 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9209 clear_detail method directly.
9210 (tui_clear_win_detail): Remove.
9211
9212 2019-06-25 Tom Tromey <tom@tromey.com>
9213
9214 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9215 "this", not TUI_DISASM_WIN.
9216
9217 2019-06-25 Tom Tromey <tom@tromey.com>
9218
9219 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9220 declare.
9221 * tui/tui-winsource.c
9222 (tui_source_window_base::do_scroll_horizontal): Rename from
9223 tui_horizontal_source_scroll.
9224 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9225 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9226 from tui_vertical_data_scroll.
9227 * tui/tui-win.h (tui_scroll): Don't declare.
9228 * tui/tui-win.c (tui_win_info::forward_scroll)
9229 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9230 (tui_win_info::right_scroll): Rename and update.
9231 (tui_scroll_forward_command, tui_scroll_backward_command)
9232 (tui_scroll_left_command, tui_scroll_right_command): Update.
9233 (tui_scroll): Remove.
9234 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9235 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9236 from tui_vertical_source_scroll.
9237 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9238 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9239 from tui_vertical_disassem_scroll.
9240 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9241 do_scroll_horizontal>: New methods.
9242 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9243 Likewise.
9244 (struct tui_source_window_base): Add do_scroll_horizontal.
9245 (struct tui_source_window, struct tui_disasm_window): Add
9246 do_scroll_vertical.
9247 (struct tui_data_window, struct tui_cmd_window): Add
9248 do_scroll_horizontal and do_scroll_vertical.
9249 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9250
9251 2019-06-25 Tom Tromey <tom@tromey.com>
9252
9253 * tui/tui-data.h (struct tui_source_window_base): New struct.
9254 (struct tui_source_window): Derive from tui_source_window_base.
9255 (struct tui_disasm_window): New struct.
9256 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9257 from tui_source_window::clear_detail.
9258 (tui_source_window_base): Rename from tui_source_window.
9259 (~tui_source_window_base): Rename from ~tui_source_window.
9260 (tui_alloc_win_info): Create a tui_disasm_window.
9261
9262 2019-06-25 Tom Tromey <tom@tromey.com>
9263
9264 * tui/tui-data.h (struct tui_source_window)
9265 (struct tui_data_window): Declare destructors.
9266 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9267 destructors.
9268 (tui_win_info): Simplify.
9269
9270 2019-06-25 Tom Tromey <tom@tromey.com>
9271
9272 * tui/tui-winsource.c (tui_display_main)
9273 (tui_update_source_windows_with_addr)
9274 (tui_update_all_breakpoint_info): Update.
9275 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9276 (new_height_ok, parse_scrolling_args): Update.
9277 * tui/tui-stack.c (tui_show_frame_info): Update.
9278 * tui/tui-data.h (struct tui_list): Remove.
9279 (tui_source_windows): Return a reference to a std::vector.
9280 * tui/tui-data.c (source_windows): Now a std::vector.
9281 (tui_source_windows): Change return type.
9282 (tui_clear_source_windows): Rewrite.
9283 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9284 (tui_free_all_source_wins_content): Rewrite.
9285
9286 2019-06-25 Tom Tromey <tom@tromey.com>
9287
9288 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9289 (struct tui_data_window, struct tui_cmd_window): Declare
9290 clear_detail method.
9291 * tui/tui-data.c (tui_source_window::clear_detail)
9292 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9293 methods.
9294 (tui_clear_win_detail): Simplify.
9295
9296 2019-06-25 Tom Tromey <tom@tromey.com>
9297
9298 * tui/tui-layout.c (make_source_window, make_disasm_window)
9299 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9300 Return the new window.
9301 (show_source_disasm_command, show_data)
9302 (show_source_or_disasm_and_command): Update.
9303
9304 2019-06-25 Tom Tromey <tom@tromey.com>
9305
9306 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9307 parameter. Return the new window.
9308 (show_source_disasm_command): Update and remove NULL check.
9309 (show_source_or_disasm_and_command): Update.
9310
9311 2019-06-25 Tom Tromey <tom@tromey.com>
9312
9313 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9314
9315 2019-06-25 Tom Tromey <tom@tromey.com>
9316
9317 * tui/tui-data.h (struct tui_win_info): Make constructor
9318 protected. Make destructor virtual. Add initializers.
9319 (tui_source_window, tui_data_window, tui_cmd_window): New
9320 classes.
9321 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9322 constructor. Add "type" parameter.
9323 (tui_source_window, tui_data_window, tui_cmd_window): New
9324 constructors.
9325 (tui_alloc_win_info): Instantiate the appropriate subclass.
9326
9327 2019-06-25 Tom Tromey <tom@tromey.com>
9328
9329 * tui/tui-win.c (tui_resize_all): Use delete.
9330 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9331 destructor.
9332 (tui_free_window): Don't declare.
9333 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9334 Update.
9335
9336 2019-06-25 Tom Tromey <tom@tromey.com>
9337
9338 * tui/tui-data.h (struct tui_win_info): Add constructor.
9339 * tui/tui-data.c (tui_alloc_win_info): Use new.
9340 (tui_free_window): Use delete.
9341
9342 2019-06-22 Tom Tromey <tom@tromey.com>
9343
9344 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9345 declare.
9346 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9347
9348 2019-06-22 Tom Tromey <tom@tromey.com>
9349
9350 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9351 declare.
9352 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9353
9354 2019-06-22 Tom de Vries <tdevries@suse.de>
9355
9356 * dwarf2read.c (create_addrmap_from_aranges)
9357 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9358 instead of '%zu'.
9359
9360 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9361
9362 * dwarf2read.h (dwarf2_section_info_def): Remove.
9363 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9364 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9365 std::vector<dwarf2_section_info>.
9366 (struct dwo_file) <~dwo_file>: Remove.
9367 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9368 types field.
9369 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9370 (dwarf2_read_debug_names): Likewise.
9371 (create_debug_types_hash_table): Change parameter type to
9372 array_view, adjust code accordingly.
9373 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9374 (partial_die_info::fixup): Likewise.
9375 (determine_prefix): Likewise.
9376 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9377
9378 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9379
9380 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9381 gdb_bfd_ref_ptr.
9382 <~dwo_file>: Remove call to gdb_bfd_unref.
9383 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9384 gdb_bfd_ref_ptr::get.
9385
9386 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9387
9388 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9389 type to htab_up.
9390 * dwarf2read.c (struct dwo_file): Initialize fields.
9391 <~dwo_file>: New.
9392 (free_dwo_file): Remove, move content to ~dwo_file.
9393 (struct dwo_file_deleter): Remove.
9394 (dwo_file_up>: Remove custom deleter.
9395 (free_dwo_files): Remove.
9396 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9397 dwo_files.
9398 (process_skeletonless_type_units): Call unique_ptr::get.
9399 (allocate_dwo_file_hash_table): Add deleter to created hash
9400 table. Change return type to htab_up.
9401 (lookup_dwo_file_slot): Don't memset dwo_file, call
9402 unique_ptr::get.
9403 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9404 (create_dwo_unit_in_dwp_v2): Likewise.
9405 (open_and_init_dwo_file): Likewise.
9406 (free_dwo_file_from_slot): Remove.
9407
9408 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9409
9410 * dwarf2read.h (struct dwarf2_section_info) <readin,
9411 is_virtual>: Change type to bool.
9412 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9413 true instead of 1.
9414
9415 2019-06-19 Tom Tromey <tom@tromey.com>
9416
9417 * tui/tui-data.h (tui_init_content_element): Don't declare.
9418
9419 2019-06-19 Tom Tromey <tom@tromey.com>
9420
9421 * tui/tui-data.h (tui_init_win_info): Don't declare.
9422
9423 2019-06-19 Tom de Vries <tdevries@suse.de>
9424
9425 * dwarf2read.h (abstract_to_concrete): Change type to
9426 std::unordered_map<sect_offset, std::vector<sect_offset>,
9427 gdb::hash_enum<sect_offset>>.
9428
9429 2019-06-19 Tom Tromey <tromey@adacore.com>
9430
9431 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9432 EVAL_AVOID_SIDE_EFFECTS specially.
9433
9434 2019-06-19 Tom Tromey <tromey@adacore.com>
9435
9436 * source-cache.c (highlighter): New global.
9437 (source_cache::get_source_lines): Create a highlighter on demand.
9438
9439 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 * defs.h (deprecated_interactive_hook): Delete declaration.
9442 * interps.c (clear_interpreter_hooks): Remove use of
9443 deprecated_interactive_hook.
9444 * top.c (deprecated_interactive_hook): Delete definition.
9445 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9446
9447 2019-06-18 Tom de Vries <tdevries@suse.de>
9448
9449 PR gdb/24515
9450 * dwarf2read.h (abstract_to_concrete): Change type from
9451 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9452 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9453 * dwarf2read.c (read_variable): Update.
9454 (dwarf2_fetch_die_loc_sect_off): Update.
9455
9456 2019-06-17 Tom de Vries <tdevries@suse.de>
9457
9458 PR gdb/24617
9459 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9460 accessing parent[parent_len - 1].
9461
9462 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9463
9464 PR gdb/24364
9465 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9466 call dtrace_process_dof with NULL dof.
9467
9468 2019-06-16 Tom de Vries <tdevries@suse.de>
9469
9470 PR gdb/24445
9471 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9472
9473 2019-06-16 Tom Tromey <tom@tromey.com>
9474
9475 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9476 (make_all_visible): Use address of member.
9477
9478 2019-06-16 Tom Tromey <tom@tromey.com>
9479
9480 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9481 (tui_free_window, free_content, free_content_elements): Remove
9482 unnecessary cast.
9483 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9484 cast.
9485 * tui/tui-regs.c (tui_show_register_group)
9486 (tui_display_registers_from, tui_display_reg_element_at_line):
9487 Remove unnecessary cast.
9488
9489 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9490
9491 * linux-nat.c (normal_mask): Delete.
9492 (_initialize_linux_nat): Don't initialise normal_mask.
9493
9494 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9495
9496 PR gdb/24445
9497 * dwarf-index-write.h (write_psymtabs_to_index): Add
9498 dwz_basename parameter.
9499 * dwarf-index-write.c (write_gdbindex): Move file writing to
9500 write_gdbindex_1. Change return type void.
9501 (assert_file_size): Move up, remove filename parameter.
9502 (write_gdbindex_1): New function.
9503 (write_debug_names): Change return type to void, call
9504 assert_file_size.
9505 (struct index_wip_file): New struct.
9506 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9507 file logic to index_wip_file. Write index for dwz file if
9508 needed.
9509 (save_gdb_index_command): Pass basename of dwz file, if present.
9510 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9511 build-id of dwz file, if present.
9512 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9513 (dwarf2_get_dwz_file): Likewise.
9514 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9515 (dwarf2_get_dwz_file): Likewise.
9516
9517 2019-06-16 Tom Tromey <tom@tromey.com>
9518
9519 * coffread.c (process_coff_symbol): Use xstrdup.
9520 * value.c (create_internalvar): Use xstrdup.
9521
9522 2019-06-16 Tom Tromey <tom@tromey.com>
9523
9524 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9525 * breakpoint.c (stopin_command, stopat_command)
9526 (until_break_command, decode_location_default): Remove unnecessary
9527 cast.
9528 * utils.c (subset_compare): Remove unnecessary cast.
9529 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9530 cast.
9531 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9532 cast.
9533 * infcmd.c (path_command): Remove unnecessary cast.
9534 * coffread.c (decode_type): Remove unnecessary cast.
9535 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9536 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9537 * tui/tui-stack.c (tui_show_locator_content)
9538 (tui_show_frame_info): Remove unnecessary cast.
9539 * tui/tui-win.c (tui_scroll_forward_command)
9540 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9541 (parse_scrolling_args): Remove unnecessary cast.
9542 * tui/tui-data.c (init_win_info, tui_del_window)
9543 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9544 (free_content_elements): Remove unnecessary cast.
9545 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9546 unnecessary cast.
9547 * tui/tui-source.c (tui_set_source_content)
9548 (tui_vertical_source_scroll): Remove unnecessary cast.
9549 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9550 cast.
9551 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9552 * tui/tui-regs.c (tui_display_registers_from)
9553 (tui_display_register): Remove unnecessary cast.
9554 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9555 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9556 (make_visible): Remove unnecessary cast.
9557 * tui/tui-winsource.c (tui_erase_source_content)
9558 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9559 unnecessary cast.
9560 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9561 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9562 * stabsread.c (read_type, read_array_type, read_range_type):
9563 Remove unnecessary cast.
9564 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9565 (parse_symbol, parse_type, upgrade_type, parse_external)
9566 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9567 unnecessary cast.
9568 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9569
9570 2019-06-16 Tom Tromey <tom@tromey.com>
9571
9572 * tui/tui-data.c (tui_alloc_generic_win_info)
9573 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9574 checks.
9575
9576 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9577 Andrew Burgess <andrew.burgess@embecosm.com>
9578
9579 * f-typeprint.c (f_print_type): Don't return early for not
9580 associated or not allocated types.
9581 (f_type_print_varspec_suffix): Add print_rank parameter and print
9582 ranks of array types in case they dangling.
9583 (f_type_print_base): Add print_rank parameter.
9584
9585 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 * NEWS: Mention new MI commands.
9588 * break-catch-throw.c (enum exception_event_kind): Move to
9589 breakpoint.h.
9590 (print_mention_exception_catchpoint): Output text as a single
9591 message.
9592 (catch_exception_command_1): Rename to...
9593 (catch_exception_event): ...this, make non-static, update header
9594 command, and change some parameter types.
9595 (catch_catch_command): Update for changes to
9596 catch_exception_command_1.
9597 (catch_throw_command): Likewise.
9598 (catch_rethrow_command): Likewise.
9599 * breakpoint.c (enum exception_event_kind): Delete.
9600 * breakpoint.h (enum exception_event_kind): Moved here from
9601 break-catch-throw.c.
9602 (catch_exception_event): Declare.
9603 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9604 (mi_cmd_catch_throw): New function.
9605 (mi_cmd_catch_rethrow): New function.
9606 (mi_cmd_catch_catch): New function.
9607 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9608 'catch-catch' entries.
9609 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9610 (mi_cmd_catch_rethrow): Declare.
9611 (mi_cmd_catch_catch): Declare.
9612
9613 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9614
9615 * annotate.c (annotate_source_line): Change return type to void,
9616 update implementation to match.
9617 * annotate.h (annotate_source_line): Change return type to void,
9618 update header comment.
9619 * stack.c (print_frame_info): Don't change what frame information
9620 is printed based on whether annotations are on or not.
9621
9622 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9623
9624 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9625 (annotate_source): Make static.
9626 (annotate_source_line): Moved from source.c and renamed from
9627 identify_source_line. Update the return type.
9628 * annotate.h (annotate_source): Delete declaration.
9629 (annotate_source_line): Declaration moved from source.h, and
9630 renamed from identify_source_line. Return type updated.
9631 * source.c (identify_source_line): Moved to annotate.c and renamed
9632 to annotate_source_line.
9633 (info_line_command): Remove check of annotation_level.
9634 * source.h (identify_source_line): Move declaration to annotate.h
9635 and rename to annotate_source_line.
9636 * stack.c: Add 'annotate.h' include.
9637 (print_frame_info): Remove check of annotation_level before
9638 calling annotate_source_line.
9639
9640 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9641
9642 * source-cache.c (source_cache::get_plain_source_lines): Use
9643 open_source_file_with_line_charpos instead of just
9644 open_source_file, remove call to find_source_lines.
9645 (source_cache::get_source_lines): Likewise.
9646 * source.c (find_source_lines): Make static.
9647 (get_filename_and_charpos): Renamed into...
9648 (open_source_file_with_line_charpos): ..this along with changes to
9649 return a scoped_fd, and some other minor clean ups.
9650 (identify_source_line): Use open_source_file_with_line_charpos.
9651 (search_command_helper): Use open_source_file_with_line_charpos
9652 instead of just open_source_file, remove call to
9653 find_source_lines.
9654 * source.h (open_source_file_with_line_charpos): Declare new
9655 function.
9656 (find_source_lines): Delete declaration.
9657
9658 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9659
9660 * source.c (get_filename_and_charpos): Remove fullname
9661 parameter.
9662 (identify_source_line): Update call to get_filename_and_charpos.
9663
9664 2019-06-14 Tom Tromey <tromey@adacore.com>
9665
9666 PR gdb/24502:
9667 * ui-style.h (skip_ansi_escape): Update comment.
9668 * ui-file.h (class no_terminal_escape_file): New class.
9669 * ui-file.c (no_terminal_escape_file::write)
9670 (no_terminal_escape_file::puts): New methods.
9671 * cli/cli-logging.c (handle_redirections): Use
9672 no_terminal_escape_file.
9673
9674 2019-06-14 Tom Tromey <tromey@adacore.com>
9675
9676 * NEWS: Move convenience variable news above Python news.
9677
9678 2019-06-14 Tom Tromey <tom@tromey.com>
9679
9680 * gnulib: Move directory to top-level.
9681 * configure.ac: Don't configure gnulib.
9682 * configure: Rebuild.
9683 * common/common-defs.h: Use new path to gnulib.
9684 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9685 (GNULIB_H): Remove.
9686 (INCGNU): Look in new gnulib location.
9687 (HFILES_NO_SRCDIR): Remove gnulib files.
9688 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9689 (generated_files): Remove GNULIB_H.
9690 ($(LIBGNU), all-lib): Remove targets.
9691 (distclean): Don't mention GNULIB_BUILDDIR.
9692 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9693
9694 2019-06-14 Tom Tromey <tromey@adacore.com>
9695
9696 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9697 Warn if symbol file does not provide any symbols.
9698
9699 2019-06-14 Tom Tromey <tromey@adacore.com>
9700
9701 * source.c (find_and_open_source): Respect basenames_may_differ.
9702
9703 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * annotate.c (annotate_breakpoints_invalid): Make use of
9706 scoped_restore_terminal_state.
9707 (annotate_frames_invalid): Likewise.
9708
9709 2019-06-14 Tom Tromey <tromey@adacore.com>
9710
9711 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9712 allow assignment to an internalvar.
9713
9714 2019-06-14 Tom Tromey <tromey@adacore.com>
9715
9716 * ada-lex.l: Allow "_" in attribute names.
9717
9718 2019-06-14 Tom Tromey <tromey@adacore.com>
9719
9720 PR gdb/24653:
9721 * regcache.c (registers_changed): Don't call alloca.
9722 * top.c (execute_command): Don't call alloca.
9723
9724 2019-06-13 Pedro Alves <palves@redhat.com>
9725
9726 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9727 'expression'. When parsing an expression, error out if there's
9728 junk after "unlimited".
9729 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9730 (do_set_command): Adjust calls to is_unlimited_literal.
9731
9732 2019-06-13 Pedro Alves <palves@redhat.com>
9733
9734 * compile/compile.c (make_compile_options_def_group): Add braces
9735 around array_view initializer.
9736 * thread.c (make_thread_apply_all_options_def_group)
9737 (make_thread_apply_all_options_def_group): Likewise.
9738
9739 2019-06-13 Pedro Alves <palves@redhat.com>
9740
9741 * NEWS (New commands): Mention "maint test-options
9742 require-delimiter", "maint test-options unknown-is-error", "maint
9743 test-options unknown-is-operand" and "maint show
9744 test-options-completion-result".
9745 (New command options, command completion): New section.
9746 (Completion improvements): New section.
9747 Mention that you can abbreviate "unlimited".
9748
9749 2019-06-13 Pedro Alves <palves@redhat.com>
9750
9751 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9752 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9753 * unittests/cli-utils-selftests.c (test_parse_flags)
9754 (test_parse_flags_qcs): Delete.
9755 (test_cli_utils): Don't call deleted functions.
9756
9757 2019-06-13 Pedro Alves <palves@redhat.com>
9758
9759 * thread.c: Include "cli/cli-option.h".
9760 (tp_array_compar_ascending): Global.
9761 (tp_array_compar): Delete function.
9762 (tp_array_compar_ascending, tp_array_compar_descending): New
9763 functions.
9764 (ascending_option_def, qcs_flag_option_def)
9765 (thr_qcs_flags_option_defs)
9766 (make_thread_apply_all_options_def_group)
9767 (make_thread_apply_options_def_group): New.
9768 (thread_apply_all_command): Use gdb::option::process_options.
9769 (thread_apply_command_completer)
9770 (thread_apply_all_command_completer): New.
9771 (thread_apply_command): Use gdb::option::process_options.
9772 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9773 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9774 to generate help text of "thread apply". Adjust "taas"'s help.
9775 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9776 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9777
9778 2019-06-13 Pedro Alves <palves@redhat.com>
9779
9780 * thread.c (thread_apply_command): Check for invalid TID with
9781 isdigit instead of !isalpha.
9782
9783 2019-06-13 Pedro Alves <palves@redhat.com>
9784
9785 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9786 (validate_flags_qcs): New.
9787 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9788 (validate_flags_qcs): Declare.
9789 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9790 (make_frame_apply_options_def_group): New.
9791 (frame_apply_command_count): Process options with
9792 gdb::option::process_options.
9793 (frame_apply_completer): New.
9794 (frame_apply_level_completer, frame_apply_all_completer)
9795 (frame_apply_completer): New.
9796 (_initialize_stack): Update help of "frame apply", "frame apply
9797 level", "frame apply all" and "faas" to mention supported options
9798 and install command completers.
9799 * stack.h (frame_apply_all_completer): Declare.
9800 * thread.c: Include "stack.h".
9801 (tfaas_command): Add "--".
9802 (_initialize_thread): Update help "tfaas" to mention supported
9803 options and install command completer.
9804
9805 2019-06-13 Pedro Alves <palves@redhat.com>
9806
9807 * completer.c (complete_nested_command_line): New.
9808 (gdb_completion_word_break_characters_throw): Add assertion.
9809 * completer.h (complete_nested_command_line): Declare.
9810
9811 2019-06-13 Pedro Alves <palves@redhat.com>
9812
9813 * stack.c (parse_backtrace_qualifiers): New.
9814 (backtrace_command): Use it.
9815 (backtrace_command_completer): Complete on qualifiers.
9816
9817 2019-06-13 Pedro Alves <palves@redhat.com>
9818
9819 * frame.c: Include "cli/cli-option.h.
9820 (user_set_backtrace_options): New.
9821 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9822 Delete.
9823 (get_prev_frame): Adjust.
9824 (boolean_option_def, uinteger_option_def)
9825 (set_backtrace_option_defs): New.
9826 (_initialize_frame): Adjust and use
9827 gdb::option::add_setshow_cmds_for_options to install "set
9828 backtrace past-main" and "set backtrace past-entry".
9829 * frame.h: Include "cli/cli-option.h".
9830 (struct frame_print_options): Forward declare.
9831 (print_frame_arguments_all, print_frame_arguments_scalars)
9832 (print_frame_arguments_none): Declare.
9833 (print_entry_values): Delete declaration.
9834 (struct frame_print_options, user_frame_print_options): New.
9835 (struct set_backtrace_options): New.
9836 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9837 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9838 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9839 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9840 (list_args_or_locals): Add frame_print_options parameter.
9841 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9842 * python/py-framefilter.c (enumerate_args): Pass down
9843 USER_FRAME_PRINT_OPTIONS.
9844 * stack.c: Include "cli/cli-option.h".
9845 (print_frame_arguments_all, print_frame_arguments_scalars)
9846 (print_frame_arguments_none): Declare.
9847 (print_raw_frame_arguments, print_entry_values): Delete.
9848 (user_frame_print_options): New.
9849 (boolean_option_def, enum_option_def, frame_print_option_defs):
9850 New.
9851 (struct backtrace_cmd_options): New.
9852 (bt_flag_option_def): New.
9853 (backtrace_command_option_defs): New.
9854 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9855 (print_frame_arg, read_frame_arg, print_frame_args)
9856 (print_frame_info, print_frame): Add frame_print_options parameter
9857 and use it.
9858 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9859 (backtrace_command_1): Add frame_print_options and
9860 backtrace_cmd_options parameters and use them.
9861 (make_backtrace_options_def_group): New.
9862 (backtrace_command): Process command options with
9863 gdb::option::process_options.
9864 (backtrace_command_completer): New.
9865 (_initialize_stack): Extend "backtrace"'s help to mention
9866 supported options. Install completer for "backtrace".
9867 Install some settings commands with add_setshow_cmds_for_options.
9868
9869 2019-06-13 Pedro Alves <palves@redhat.com>
9870
9871 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9872 and that "set/show print raw frame-arguments" are now deprecated.
9873
9874 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9875 command.
9876 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9877 * stack.c (_initialize_stack): Install "set/show print
9878 raw-frame-arguments", and deprecate "set/show print raw
9879 frame-arguments".
9880 * valprint.c (_initialize_valprint): Deprecate "set/show print
9881 raw".
9882
9883 2019-06-13 Pedro Alves <palves@redhat.com>
9884
9885 * compile/compile.c (struct compile_options): New.
9886 (compile_flag_option_def, compile_command_option_defs)
9887 (make_compile_options_def_group): New.
9888 (compile_file_command): Handle options with
9889 gdb::option::process_options.
9890 (compile_file_command_completer): New function.
9891 (compile_code_command): Handle options with
9892 gdb::option::process_options.
9893 (compile_code_command_completer): New function.
9894 (_initialize_compiler): Install completers for "compile code" and
9895 "compile file". Mention available options in "compile code" and
9896 "compile code"'s help.
9897 * completer.c (advance_to_completion_word): New, factored out from
9898 ...
9899 (advance_to_expression_complete_word_point): ... this.
9900 (advance_to_filename_complete_word_point): New.
9901 * completer.h (advance_to_filename_complete_word_point): New
9902 declaration.
9903
9904 2019-06-13 Pedro Alves <palves@redhat.com>
9905
9906 * compile/compile.c: Include "cli/cli-option.h".
9907 (compile_print_value): Scope data pointer is now a
9908 value_print_options pointer; adjust.
9909 (compile_print_command): Process options. Scope data pointer is
9910 now a value_print_options pointer; adjust.
9911 (_initialize_compile): Update "compile print"'s help to include
9912 supported options. Install a completer for "compile print".
9913 * cp-valprint.c (show_vtblprint, show_objectprint)
9914 (show_static_field_print): Delete.
9915 (_initialize_cp_valprint): Don't install "set print
9916 static-members", "set print vtbl", "set print object" here.
9917 * printcmd.c: Include "cli/cli-option.h" and
9918 "common/gdb_optional.h".
9919 (print_command_parse_format): Rework to fill in a
9920 value_print_options instead of a format_data.
9921 (print_value): Change parameter type from format_data pointer to
9922 value_print_options reference. Adjust.
9923 (print_command_1): Process options. Adjust to pass down a
9924 value_print_options.
9925 (print_command_completer): New.
9926 (_initialize_printcmd): Install print_command_completer as
9927 handle_brkchars completer for the "print" command. Update
9928 "print"'s help to include supported options.
9929 * valprint.c: Include "cli/cli-option.h".
9930 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9931 here from cp-valprint.c.
9932 (boolean_option_def, uinteger_option_def)
9933 (value_print_option_defs, make_value_print_options_def_group):
9934 New. Use gdb::option::add_setshow_cmds_for_options to install
9935 "set print elements", "set print null-stop", "set print repeats",
9936 "set print pretty", "set print union", "set print array", "set
9937 print address", "set print symbol", "set print array-indexes".
9938 * valprint.h: Include <string> and "cli/cli-option.h".
9939 (make_value_print_options_def_group): Declare.
9940 (print_value): Change parameter type from format_data pointer to
9941 value_print_options reference.
9942 (print_command_completer): Declare.
9943
9944 2019-06-13 Pedro Alves <palves@redhat.com>
9945
9946 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9947 (COMMON_SFILES): Add maint-test-settings.c.
9948 * cli/cli-decode.c (boolean_enums): New global, factored out from
9949 ...
9950 (add_setshow_boolean_cmd): ... here.
9951 * cli/cli-decode.h (boolean_enums): Declare.
9952 * cli/cli-option.c: New file.
9953 * cli/cli-option.h: New file.
9954 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9955 factored out from ...
9956 (parse_cli_boolean_value(const char *)): ... this.
9957 (is_unlimited_literal): Change parameter type to pointer to
9958 pointer. Adjust and advance ARG pointer.
9959 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9960 (parse_cli_var_enum): New, factored out from ...
9961 (do_set_command): ... this. Adjust.
9962 * cli/cli-setshow.h (parse_cli_boolean_value)
9963 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9964 (parse_cli_var_enum): Declare.
9965 * cli/cli-utils.c: Include "cli/cli-option.h".
9966 (get_ulongest): New.
9967 * cli/cli-utils.h (get_ulongest): Declare.
9968 (check_for_argument): New overloads.
9969 * maint-test-options.c: New file.
9970
9971 2019-06-13 Pedro Alves <palves@redhat.com>
9972
9973 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9974 parse a range if "-" is at the end of the string.
9975
9976 2019-06-13 Pedro Alves <palves@redhat.com>
9977
9978 * cli/cli-setshow.c (parse_auto_binary_operation)
9979 (parse_cli_boolean_value): Don't allow "o".
9980
9981 2019-06-13 Pedro Alves <palves@redhat.com>
9982
9983 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9984 * NEWS: Mention maint test-settings KIND.
9985 * maint-test-settings.c: New file.
9986
9987 2019-06-13 Pedro Alves <palves@redhat.com>
9988
9989 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9990 completer.
9991 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9992 "set" completers.
9993
9994 2019-06-13 Pedro Alves <palves@redhat.com>
9995
9996 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9997 after item.
9998
9999 2019-06-13 Pedro Alves <palves@redhat.com>
10000
10001 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
10002
10003 2019-06-13 Pedro Alves <palves@redhat.com>
10004
10005 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
10006 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
10007 call.
10008 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
10009 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
10010 calls.
10011 (check_for_argument): Skip spaces after argument.
10012
10013 2019-06-13 Pedro Alves <palves@redhat.com>
10014
10015 * thread.c (thread_apply_command): Adjust TID parsing.
10016 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
10017 detected before end of string.
10018 (tid_is_in_list): Error out if LIST is invalid.
10019
10020 2019-06-13 Pedro Alves <palves@redhat.com>
10021
10022 * completer.c (complete_line_internal_1): Rewind completion word
10023 point.
10024 (completion_tracker::advance_custom_word_point_by): Change
10025 parameter type to int.
10026 * completer.h (completion_tracker::advance_custom_word_point_by):
10027 Likewise.
10028
10029 2019-06-13 Pedro Alves <palves@redhat.com>
10030
10031 * completer.c (advance_to_completion_word): Handle delimiters.
10032
10033 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
10034
10035 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
10036
10037 2019-06-11 Tom Tromey <tom@tromey.com>
10038
10039 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
10040 (xmalloc_failed): Move to alloc.c.
10041 * alloc.c: New file.
10042 * Makefile.in (COMMON_SFILES): Add alloc.c.
10043
10044 2019-06-11 Tom Tromey <tom@tromey.com>
10045
10046 * nat/linux-waitpid.c: Don't include server.h.
10047 (linux_debug): Remove.
10048 (my_waitpid): Update.
10049
10050 2019-06-11 Tom Tromey <tromey@adacore.com>
10051
10052 * infcall.c (_initialize_infcall): Remove trailing newline from
10053 help.
10054 * user-regs.c (_initialize_user_regs): Remove trailing newline
10055 from help.
10056 * typeprint.c (_initialize_typeprint): Remove trailing newline
10057 from help.
10058 * reverse.c (_initialize_reverse): Remove trailing newlines from
10059 help.
10060 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
10061 from help.
10062 * language.c (add_set_language_command): Remove trailing newline
10063 from help.
10064 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
10065 help.
10066 * disasm.c (_initialize_disasm): Remove trailing newline from
10067 help.
10068 * top.c (init_main): Remove trailing newline from help.
10069 * interps.c (_initialize_interpreter): Remove trailing newline
10070 from help.
10071 * btrace.c (_initialize_btrace): Remove trailing newlines from
10072 help.
10073 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
10074 from help.
10075 * python/python.c (_initialize_python): Remove trailing newline
10076 from help.
10077 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
10078 help.
10079 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
10080 from help. Reformat some text.
10081 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
10082 from help.
10083 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
10084 newline from help.
10085
10086 2019-06-11 Tom Tromey <tromey@adacore.com>
10087
10088 * darwin-nat.c (darwin_decode_exception_message)
10089 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
10090
10091 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
10092
10093 * valops.c (value_slice): Check for not allocated or not
10094 associated values.
10095
10096 2019-06-10 Tom de Vries <tdevries@suse.de>
10097
10098 PR gdb/24618
10099 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10100 sure an empty slot (defined by a 32-bit zero pair) is recognized as
10101 invalid.
10102
10103 2019-06-10 Tom de Vries <tdevries@suse.de>
10104
10105 PR gdb/24611
10106 * linespec.c (linespec_lexer_lex_string): Remove incorrect
10107 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10108
10109 2019-06-10 Tom de Vries <tdevries@suse.de>
10110
10111 PR symtab/24545
10112 * symtab.c (struct demangled_name_entry): Add language field.
10113 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10114 static minimal symbol". Set and use language field.
10115
10116 2019-06-10 Tom Tromey <tromey@adacore.com>
10117
10118 * ada-lang.c (_initialize_ada_language): Update help text.
10119
10120 2019-06-10 Tom Tromey <tromey@adacore.com>
10121
10122 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10123 with a newline.
10124 * guile/guile.c (handle_boot_error): Don't end warning with a
10125 newline.
10126 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10127 warning with a newline.
10128 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10129 newline.
10130 (s12z_frame_cache): Likewise.
10131 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10132 a newline.
10133 * solib-svr4.c (disable_probes_interface): Don't end warning with
10134 a newline.
10135 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10136 newline.
10137 * python/python.c (do_finish_initialization): Don't end warning
10138 with a newline.
10139
10140 2019-06-10 Tom Tromey <tom@tromey.com>
10141
10142 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10143 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10144 gdbpy_enter.
10145
10146 2019-06-10 Tom Tromey <tromey@adacore.com>
10147
10148 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10149 data.
10150 (elf_new_init): Don't call stabsread_new_init.
10151 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10152 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10153 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10154
10155 2019-06-10 Tom de Vries <tdevries@suse.de>
10156
10157 PR symtab/16264
10158 PR symtab/24517
10159 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10160
10161 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10162
10163 * source.c (find_and_open_source): Also rewrite relative file
10164 names.
10165
10166 2019-04-26 Amos Bird <amosbird@gmail.com>
10167
10168 * annotate.c (annotate_thread_exited): Add "thread-exited"
10169 annotation.
10170
10171 2019-06-06 Tom Tromey <tromey@adacore.com>
10172
10173 * maint.h (class scoped_command_stats): Use
10174 DISABLE_COPY_AND_ASSIGN.
10175 <print_time>: New method.
10176 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10177 print_time.
10178 (scoped_command_stats::print_time): New method.
10179
10180 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10181
10182 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10183 instructions of lengths 6 or 8 bytes.
10184
10185 2019-06-04 Pedro Alves <palves@redhat.com>
10186
10187 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10188
10189 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10190 * breakpoint.c (condition_completer): Likewise.
10191 * cli/cli-dump.c (scan_expression): Likewise.
10192 * common/filestuff.c (mkdir_recursive): Likewise.
10193 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10194 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10195 (gdb_abspath): Likewise.
10196 * compile/compile-cplus-types.c
10197 (compile_cplus_instance::decl_name): Likewise.
10198 * completer.c (complete_explicit_location):
10199 (signal_completer, reg_or_group_completer_1): Likewise.
10200 * cp-support.c (cp_remove_params_if_any): Likewise.
10201 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10202 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10203 * infcmd.c (strip_bg_char): Likewise.
10204 * linespec.c (copy_token_string): Likewise.
10205 * mi/mi-main.c (output_cores): Likewise.
10206 * psymtab.c (psymtab_search_name):
10207 * symfile.c (test_set_ext_lang_command): Likewise.
10208 * target.c (target_fileio_read_stralloc): Likewise.
10209 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10210 * value.c (complete_internalvar): Likewise.
10211
10212 2019-06-04 Christian Biesinger <cbiesinger@google.com>
10213
10214 Add objfile property to gdb.Type.
10215 * NEWS: Mention Python API addition.
10216 * python/py-type.c (typy_get_objfile): New method.
10217
10218 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10219
10220 * NEWS: Mention the new set|show style [title|highlight].
10221 Mention changes to "show style", "help" and "apropos".
10222
10223 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10224
10225 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10226 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10227 instead of print_help_for_command.
10228 (print_doc_of_command): New function.
10229 (help_list): Add 'apropos -v word' suggestion.
10230 (print_help_for_command): Style the command name using title style.
10231 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10232 (_initialize_cli_cmds): Describe -v in apropos_command help.
10233
10234 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10235
10236 * cli/cli-style.h (cli_style_option): Add name in constructor,
10237 add m_name class member, add constructor with intensity,
10238 add name class function.
10239 (cli_style_option::add_setshow_commands): Remove name argument.
10240 (highlight_style, title_style): New styles.
10241 * cli/cli-style.c (do_show): New function that shows a style
10242 characteristic styling the style name with itself.
10243 (set_style_name): New function.
10244 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10245 Update all callers according to the changes in cli/cli-style.h.
10246 * utils.h (fputs_highlighted): New function.
10247 * utils.c (fputs_highlighted): Likewise.
10248
10249 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10250
10251 * NEWS: Mention new pipe command and new convenience variables.
10252
10253 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10254
10255 * cli/cli-cmds.c (pipe_command): New function.
10256 (_initialize_cli_cmds): Call add_com for pipe_command.
10257 Define | as an alias for pipe.
10258 (exit_status_set_internal_vars): New function.
10259 (shell_escape): Call exit_status_set_internal_vars.
10260 cli/cli-decode.c (find_command_name_length): Recognize | as
10261 a single character command.
10262
10263 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10264
10265 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10266 top.c (execute_command_to_ui_file): New function, mostly a copy
10267 of execute_command_to_string.
10268 (execute_command_to_string): Implement by calling
10269 execute_command_to_ui_file.
10270
10271 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10272
10273 * top.h (saved_command_line): Remove declaration.
10274 * top.c (previous_saved_command_line, previous_repeat_arguments):
10275 New variables.
10276 (saved_command_line): Make static, define together with other
10277 'repeat variables'.
10278 (dont_repeat): Clear repeat_arguments.
10279 (repeat_previous, get_saved_command_line, save_command_line):
10280 New functions.
10281 (gdb_init): Initialize saved_command_line
10282 and previous_saved_command_line.
10283 * main.c (captured_main_1): Remove saved_command_line initialization.
10284 * event-top.c (handle_line_of_input): Update to use
10285 the new 'repeat' related functions instead of direct access to
10286 saved_command_line.
10287 * command.h (repeat_previous, get_saved_command_line,
10288 save_command_line): New declarations.
10289 (dont_repeat): Add comment.
10290
10291 2019-05-30 Tom Tromey <tromey@adacore.com>
10292
10293 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10294 Fix comment.
10295 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10296
10297 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10298
10299 PR cli/24587
10300 * completer.c (complete): Initialize variable word.
10301
10302 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10303
10304 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10305 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10306 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10307 'body' is NULL to the outter 'if', protecting the '!is_define'
10308 situation as well.
10309
10310 2019-05-29 Tom Tromey <tromey@adacore.com>
10311
10312 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10313 (dwarf_unknown): New function.
10314 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10315 (dwarf_type_encoding_name): Use dwarf_unknown.
10316
10317 2019-05-29 Tom Tromey <tromey@adacore.com>
10318
10319 PR c++/20020:
10320 * cp-valprint.c (cp_print_value_fields): Call
10321 cp_print_static_field inside "try".
10322
10323 2019-05-29 Tom Tromey <tromey@adacore.com>
10324
10325 * inflow.c (struct terminal_info): Add default operator=.
10326 * configure: Rebuild.
10327 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10328 -Wdeprecated-copy-dtor, -Wredundant-move.
10329
10330 2019-05-29 Tom Tromey <tromey@adacore.com>
10331
10332 * NEWS: Add entry.
10333 * infcmd.c (print_return_value_1): Handle finish_print
10334 option.
10335 (show_print_finish): New function.
10336 (_initialize_infcmd): Add "set/show print finish" commands.
10337 * valprint.c (user_print_options): Initialize new member.
10338 * valprint.h (struct value_print_options) <finish_print>: New
10339 member.
10340
10341 2019-05-28 Tom Tromey <tromey@adacore.com>
10342
10343 * ada-lang.c (ada_remove_Xbn_suffix)
10344 (find_old_style_renaming_symbol)
10345 (parse_old_style_renaming): Remove.
10346 (ada_find_renaming_symbol): Don't call
10347 find_old_style_renaming_symbol.
10348 (ada_is_renaming_symbol): Rename from
10349 ada_find_renaming_symbol. Remove "block" parameter. Return
10350 bool. Now static.
10351 (ada_read_var_value): Update and simplify.
10352 * ada-exp.y (write_var_or_type): Remove old code.
10353
10354 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10355
10356 PR gdb/25010
10357 * event-top.c: Remove include comment.
10358 * inflow.c (class scoped_ignore_sigttou): Move from here...
10359 * inflow.h (class scoped_ignore_sigttou): ...to here.
10360 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10361 * top.c: Remove include comment.
10362
10363 2019-05-27 Tom Tromey <tom@tromey.com>
10364
10365 * NEWS: Fix typo.
10366
10367 2019-05-22 Tom Tromey <tromey@adacore.com>
10368
10369 * target.c (target_follow_exec): Constify parameter.
10370 * target-delegates.c: Rebuild.
10371 * remote.c (remote_target::follow_exec): Constify parameter.
10372 * infrun.c (follow_exec): Constify parameter.
10373 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10374 (target_follow_exec): Likewise.
10375
10376 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10377
10378 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10379 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10380
10381 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10382
10383 * NEWS: Add debugredirect and testsuite sections.
10384
10385 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10386
10387 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10388 target descriptions using exclusively floating point register name
10389 aliases.
10390
10391 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10392
10393 PR gdb/18644:
10394 * f-lang.c (build_fortran_types): Handle the case where
10395 gdbarch_floatformat_for_type returns a nullptr.
10396
10397 2019-05-21 Tom de Vries <tdevries@suse.de>
10398
10399 PR cli/24587
10400 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10401
10402 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10403
10404 PR gdb/18644:
10405 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10406 16-byte floats.
10407 * i386-tdep.c (i386_floatformat_for_type): Use
10408 floatformats_ia64_quad for the 16-byte floating point component
10409 within a fortran 32-byte complex number.
10410
10411 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10414 delete default constructor.
10415 (find_partial_die): Update to return const struct.
10416 (partial_die_parent_scope): Move variable declaration into scope
10417 of its use and change its type to auto.
10418 (guess_partial_die_structure_name): Likewise.
10419 (partial_die_info::fixup): Likewise.
10420
10421 2019-05-17 Tom Tromey <tromey@adacore.com>
10422
10423 * source.c (find_and_open_source): Remove cast.
10424
10425 2019-05-17 Tom Tromey <tromey@adacore.com>
10426
10427 * annotate.c (annotate_source): Make "filename" const.
10428 * annotate.h (annotate_source): Use const.
10429
10430 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10431
10432 * disasm.c (set_disassembler_options): Send errors to stderr.
10433
10434 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10435
10436 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10437 (cli_interp_base::set_logging): Check debug_redirect.
10438 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10439 * cli/cli-logging.c (debug_redirect): Add static variable.
10440 (pop_output_files): Add default param.
10441 (handle_redirections): Print debug setting.
10442 (show_logging_command): Likewise.
10443 (_initialize_cli_logging): Add debugredirect command.
10444 * interps.c (current_interp_set_logging): Add debug_redirect
10445 parameter.
10446 * interps.h (set_logging): Add debug_redirect parameter.
10447 (current_interp_set_logging): Likewise.
10448 * mi/mi-common.h: Likewise.
10449 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10450
10451 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10452 Tom Tromey <tromey@adacore.com>
10453
10454 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10455 directly.
10456 * cli/cli-interp.h (make_logging_output): Remove declaration.
10457 * cli/cli-logging.c (make_logging_output): Remove function.
10458 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10459 directly.
10460 * ui-file.c (tee_file::tee_file): Remove bools.
10461 (tee_file::~tee_file): Remove deletes.
10462 * ui-file.h (tee_file): Remove bools.
10463
10464 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10465
10466 * mi/mi-cmds.h (mi_cmd_complete): New function.
10467 * mi/mi-main.c (mi_cmd_complete): Likewise.
10468 * mi/mi-cmds.c: Define new MI command -complete.
10469 * NEWS: Mention new -complete command.
10470
10471 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10472
10473 * completer.h (complete): New function.
10474 * completer.c (complete): Likewise.
10475 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10476 function defined in completer.h.
10477
10478 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10479
10480 * MAINTAINERS (Write After Approval): Add myself.
10481
10482 2019-05-17 Tom de Vries <tdevries@suse.de>
10483
10484 PR gdb/24094
10485 * dwarf2read.c (struct cu_partial_die_info): New struct.
10486 (find_partial_die): Return cu_partial_die_info.
10487 (partial_die_parent_scope, guess_partial_die_structure_name)
10488 (partial_die_info::fixup): Handle new return type of find_partial_die.
10489
10490 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10491
10492 PR breakpoints/24541
10493 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10494 "std::string", simplifying the algorithm.
10495
10496 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10497
10498 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10499 (stap_static_probe_ops::get_probes): Likewise.
10500
10501 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10502
10503 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10504 '-')" and "else if".
10505 (stap_parse_single_operand): Join checks for
10506 "gdbarch_stap_parse_special_token_p" and
10507 "gdbarch_stap_parse_special_token" in the same "if" statement.
10508 Invert check when verifying for operation on register
10509 displacement.
10510
10511 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10512
10513 * stap-probe.c (stap_get_opcode): Update comment.
10514 (stap_get_expected_argument_type): Likewise.
10515 (handle_stap_probe): Likewise.
10516
10517 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10518
10519 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10520 return type to 'bool'. Adjust comment. Use 'bool' when
10521 appropriate.
10522 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10523 * stap-probe.c (stap_parse_argument_1): Likewise.
10524 (stap_is_operator): Likewise.
10525 (stap_is_generic_prefix): Likewise.
10526 (stap_is_register_prefix): Likewise.
10527 (stap_is_register_indirection_prefix): Likewise.
10528 (stap_is_integer_prefix): Likewise.
10529 (stap_generic_check_suffix): Likewise.
10530 (stap_check_integer_suffix): Likewise.
10531 (stap_check_register_suffix): Likewise.
10532 (stap_check_register_indirection_suffix): Likewise.
10533 (stap_parse_register_operand): Likewise.
10534 (stap_parse_single_operand): Likewise.
10535 (stap_parse_argument_1): Likewise.
10536 (stap_probe::get_argument_count): Likewise.
10537 (stap_is_operator): Likewise.
10538
10539 2019-05-16 Tom Tromey <tromey@adacore.com>
10540
10541 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10542 keyword to foreach.
10543
10544 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10545
10546 * linux-thread-db.c (try_thread_db_load_1): Change return type
10547 to bool.
10548 (try_thread_db_load): Likewise.
10549 (try_thread_db_load_from_pdir_1): Likewise.
10550 (try_thread_db_load_from_pdir): Likewise.
10551 (try_thread_db_load_from_sdir): Likewise.
10552 (try_thread_db_load_from_dir): Likewise.
10553 (thread_db_load_search): Likewise.
10554 (has_libpthread): Likewise.
10555 (thread_db_load): Likewise.
10556
10557 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10558
10559 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10560 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10561 NULL, and complain/return if that's the case.
10562
10563 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10564
10565 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10566 (advance, posn, abstract_read_memory): New functions.
10567 [struct mem_read_abstraction]: New struct.
10568 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10569
10570 2019-05-14 Tom Tromey <tromey@adacore.com>
10571
10572 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10573 value is not lval_memory.
10574
10575 2019-05-14 Tom Tromey <tromey@adacore.com>
10576
10577 * solib.c (info_sharedlibrary_command): Style the file name.
10578
10579 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10580
10581 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10582 (aarch64_vnv_type): Likewise.
10583 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10584 * common/tdesc.c: Likewise.
10585 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10586 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10587 * features/aarch64-fpu.xml: Add ieee half view.
10588 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10589 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10590 * gdbtypes.h (struct builtin_type): Likewise.
10591 (struct objfile_type): Likewise.
10592
10593 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10594
10595 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10596 typo.
10597 * location.h (string_to_event_location): Likewise.
10598
10599 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10600
10601 GDB 8.3 released.
10602
10603 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10606 New variable declaration.
10607 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10608 New variable.
10609 (print_one_breakpoint): Use ui_out::test_flags and new global
10610 variable to compute use_fixed_output.
10611 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10612 Remove.
10613 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10614 (mi_multi_location_breakpoint_output_fixed): Remove.
10615 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10616 new variable.
10617 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10618 fix_multi_location_breakpoint_output flag if version >= 3.
10619 * ui-out.h (enum ui_out_flag)
10620 <fix_multi_location_breakpoint_output>: New enumerator.
10621
10622 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10623
10624 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10625
10626 2019-05-10 Tom Tromey <tromey@adacore.com>
10627
10628 * ada-lang.c (catch_ada_completer): New function.
10629 (_initialize_ada_language): Use it.
10630
10631 2019-05-10 Tom Tromey <tromey@adacore.com>
10632
10633 * thread.c (print_thread_info): Make "requested_threads" const.
10634 * gdbthread.h (print_thread_info): Make "requested_threads"
10635 const.
10636 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10637 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10638
10639 2019-05-08 Tom Tromey <tom@tromey.com>
10640
10641 * gdbtypes.c (objfile_type_data): Change type.
10642 (objfile_type, _initialize_gdbtypes): Update.
10643
10644 2019-05-08 Tom Tromey <tom@tromey.com>
10645
10646 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10647 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10648 (_initialize_dwarf2_frame): Update.
10649
10650 2019-05-08 Tom Tromey <tom@tromey.com>
10651
10652 * objc-lang.c (objc_objfile_data): Change type.
10653 (find_methods): Update.
10654 (_initialize_objc_lang): Remove.
10655
10656 2019-05-08 Tom Tromey <tom@tromey.com>
10657
10658 * stabsread.c (rs6000_builtin_type_data): Change type.
10659 (rs6000_builtin_type, _initialize_stabsread): Update.
10660
10661 2019-05-08 Tom Tromey <tom@tromey.com>
10662
10663 * mips-tdep.c (mips_pdr_data): Remove.
10664 (_initialize_mips_tdep): Update.
10665
10666 2019-05-08 Tom Tromey <tom@tromey.com>
10667
10668 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10669 (hppa_init_objfile_priv_data, read_unwind_info)
10670 (find_unwind_entry, _initialize_hppa_tdep): Update.
10671
10672 2019-05-08 Tom Tromey <tom@tromey.com>
10673
10674 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10675 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10676 on obstack.
10677 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10678
10679 2019-05-08 Tom Tromey <tom@tromey.com>
10680
10681 * mdebugread.c (basic_type_data): Change type.
10682 (basic_type, _initialize_mdebugread): Update.
10683
10684 2019-05-08 Tom Tromey <tom@tromey.com>
10685
10686 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10687
10688 2019-05-08 Tom Tromey <tom@tromey.com>
10689
10690 * nto-tdep.c (nto_inferior_data_reg): Change type.
10691 (nto_inferior_data): Update.
10692 (nto_inferior_data_cleanup, nto_new_inferior_data)
10693 (_initialize_nto_tdep): Remove.
10694 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10695
10696 2019-05-08 Tom Tromey <tom@tromey.com>
10697
10698 * ada-lang.c (struct ada_inferior_data): Add initializers.
10699 (ada_inferior_data): Change type.
10700 (ada_inferior_data_cleanup): Remove.
10701 (get_ada_inferior_data, ada_inferior_exit)
10702 (struct ada_pspace_data): Add initializers, destructor.
10703 (ada_pspace_data_handle): Change type.
10704 (get_ada_pspace_data): Update.
10705 (ada_pspace_data_cleanup): Remove.
10706
10707 2019-05-08 Tom Tromey <tom@tromey.com>
10708
10709 * coffread.c (struct coff_symfile_info): Add initializers.
10710 (coff_objfile_data_key): Move lower. Change type.
10711 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10712 Update.
10713 (coff_free_info): Remove.
10714
10715 2019-05-08 Tom Tromey <tom@tromey.com>
10716
10717 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10718 (fbsd_pspace_data_handle): Move lower. Change type.
10719 (get_fbsd_pspace_data): Update.
10720 (fbsd_pspace_data_cleanup): Remove.
10721 (_initialize_fbsd_tdep): Update.
10722
10723 2019-05-08 Tom Tromey <tom@tromey.com>
10724
10725 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10726 (get_ada_tasks_pspace_data): Update.
10727 (ada_tasks_pspace_data_cleanup): Remove.
10728 (_initialize_tasks): Update.
10729 (ada_tasks_inferior_data_handle): Change type.
10730 (get_ada_tasks_inferior_data): Update.
10731 (ada_tasks_inferior_data_cleanup): Remove.
10732 (struct ada_tasks_pspace_data): Add initializers.
10733
10734 2019-05-08 Tom Tromey <tom@tromey.com>
10735
10736 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10737 * symfile-debug.c (debug_sym_get_probes): Change type.
10738 * stap-probe.c (handle_stap_probe):
10739 (stap_static_probe_ops::get_probes): Change type.
10740 * probe.h (class static_probe_ops) <get_probes>: Change type.
10741 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10742 (parse_probes_in_pspace): Update.
10743 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10744 Update.
10745 (any_static_probe_ops::get_probes): Change type.
10746 * elfread.c (elfread_data): New typedef.
10747 (probe_key): Change type.
10748 (elf_get_probes): Likewise. Update.
10749 (probe_key_free): Remove.
10750 (_initialize_elfread): Update.
10751 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10752 Change type.
10753 (dtrace_process_dof_probe, dtrace_process_dof)
10754 (dtrace_static_probe_ops::get_probe): Change type.
10755
10756 2019-05-08 Tom Tromey <tom@tromey.com>
10757
10758 * xcoffread.c (struct xcoff_symfile_info): Rename from
10759 coff_symfile_info. Add initializers.
10760 (xcoff_objfile_data_key): Move lower. Change type.
10761 (XCOFF_DATA): Rewrite.
10762 (xcoff_free_info): Remove.
10763 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10764 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10765 (xcoff_initial_scan): Update.
10766
10767 2019-05-08 Tom Tromey <tom@tromey.com>
10768
10769 * solib-svr4.c (struct svr4_info): Add initializers and
10770 destructor.
10771 <probes_table>: Now an htab_up.
10772 (solib_svr4_pspace_data): Change type.
10773 (free_probes_table): Simplify.
10774 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10775 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10776 (probes_table_remove_objfile_probes, register_solib_event_probe)
10777 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10778 (_initialize_svr4_solib): Update.
10779
10780 2019-05-08 Tom Tromey <tom@tromey.com>
10781
10782 * remote.c (remote_pspace_data): Change type.
10783 (remote_pspace_data_cleanup): Remove.
10784 (get_remote_exec_file, set_pspace_remote_exec_file)
10785 (_initialize_remote): Update.
10786
10787 2019-05-08 Tom Tromey <tom@tromey.com>
10788
10789 * breakpoint.c (breakpoint_objfile_key): Change type.
10790 (get_breakpoint_objfile_data): Update.
10791 (free_breakpoint_objfile_data): Remove.
10792 (_initialize_breakpoint): Update.
10793
10794 2019-05-08 Tom Tromey <tom@tromey.com>
10795
10796 * linux-tdep.c (struct linux_info): Add initializers.
10797 (linux_inferior_data): Move. Change type.
10798 (invalidate_linux_cache_inf): Update.
10799 (linux_inferior_data_cleanup): Remove.
10800 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10801
10802 2019-05-08 Tom Tromey <tom@tromey.com>
10803
10804 * auxv.c (auxv_inferior_data): Move. Change type.
10805 (auxv_inferior_data_cleanup): Remove.
10806 (invalidate_auxv_cache_inf): Rewrite.
10807 (get_auxv_inferior_data, _initialize_auxv): Update.
10808
10809 2019-05-08 Tom Tromey <tom@tromey.com>
10810
10811 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10812 (symfile_debug_objfile_data_key): Change type.
10813 (symfile_debug_installed, debug_qf_has_symbols)
10814 (debug_qf_find_last_source_symtab)
10815 (debug_qf_forget_cached_source_info)
10816 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10817 (debug_qf_print_stats, debug_qf_dump)
10818 (debug_qf_expand_symtabs_for_function)
10819 (debug_qf_expand_all_symtabs)
10820 (debug_qf_expand_symtabs_with_fullname)
10821 (debug_qf_map_matching_symbols)
10822 (debug_qf_expand_symtabs_matching)
10823 (debug_qf_find_pc_sect_compunit_symtab)
10824 (debug_qf_map_symbol_filenames)
10825 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10826 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10827 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10828 (debug_sym_read_linetable, debug_sym_relocate): Update.
10829 (symfile_debug_free_objfile): Remove.
10830 (install_symfile_debug_logging, _initialize_symfile_debug):
10831 Update.
10832
10833 2019-05-08 Tom Tromey <tom@tromey.com>
10834
10835 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10836 allocate_on_obstack.
10837 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10838 (get_dwarf2_per_objfile): Update.
10839 (set_dwarf2_per_objfile): Remove.
10840 (dwarf2_has_info, dwarf2_get_section_info): Update.
10841 (dwarf2_free_objfile): Remove.
10842 (_initialize_dwarf2_read): Update.
10843
10844 2019-05-08 Tom Tromey <tom@tromey.com>
10845
10846 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10847 initializers.
10848 <unsupported_script_warning_printed,
10849 script_not_found_warning_printed>: Now bool.
10850 (auto_load_pspace_data): Change type.
10851 (~auto_load_pspace_info): Rename from
10852 auto_load_pspace_data_cleanup.
10853 (get_auto_load_pspace_data, init_loaded_scripts_info)
10854 (clear_section_scripts, maybe_print_unsupported_script_warning)
10855 (maybe_print_script_not_found_warning, _initialize_auto_load):
10856 Update.
10857
10858 2019-05-08 Tom Tromey <tom@tromey.com>
10859
10860 * objfiles.c (objfile_pspace_info): Add destructor and
10861 initializers.
10862 (objfiles_pspace_data): Change type.
10863 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10864 (get_objfile_pspace_data): Update.
10865 (objfiles_bfd_data): Change type.
10866 (get_objfile_bfd_data): Update.
10867 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10868
10869 2019-05-08 Tom Tromey <tom@tromey.com>
10870
10871 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10872 Change type.
10873 (get_catch_syscall_inferior_data): Update.
10874 (catch_syscall_inferior_data_cleanup): Remove.
10875 (_initialize_break_catch_syscall): Update.
10876
10877 2019-05-08 Tom Tromey <tom@tromey.com>
10878
10879 * inflow.c (struct terminal_info): Add destructor and
10880 initializers.
10881 (inflow_inferior_data): Change type.
10882 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10883 (get_inflow_inferior_data, inflow_inferior_exit)
10884 (swap_terminal_info, _initialize_inflow): Update.
10885
10886 2019-05-08 Tom Tromey <tom@tromey.com>
10887
10888 * target-dcache.c (target_dcache_cleanup): Remove.
10889 (target_dcache_aspace_key): Change type.
10890 (target_dcache_init_p, target_dcache_invalidate)
10891 (target_dcache_get, target_dcache_get_or_init)
10892 (_initialize_target_dcache): Update.
10893 * dcache.h (struct dcache_deleter): New.
10894
10895 2019-05-08 Tom Tromey <tom@tromey.com>
10896
10897 * symtab.c (struct symbol_cache): Add destructor and
10898 initializers.
10899 (symbol_cache_key): Move. Change type.
10900 (make_symbol_cache, free_symbol_cache): Remove.
10901 (get_symbol_cache): Update.
10902 (symbol_cache_cleanup): Remove.
10903 (ALL_PSPACES, symbol_cache_flush)
10904 (maintenance_print_symbol_cache)
10905 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10906 Update.
10907
10908 2019-05-08 Tom Tromey <tom@tromey.com>
10909
10910 * symtab.c (struct main_info): Add destructor and initializers.
10911 (main_progspace_key): Move. Change type.
10912 (get_main_info): Update.
10913 (main_info_cleanup): Remove.
10914 (_initialize_symtab): Update.
10915
10916 2019-05-08 Tom Tromey <tom@tromey.com>
10917
10918 * registry.h (DECLARE_REGISTRY): Define the _key class.
10919
10920 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10921
10922 * NEWS: Merge two 'New commands' sections.
10923
10924 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10925
10926 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10927 parameter and use Ada language definition instead.
10928 (ada_val_print_ptr): Remove unused language parameter.
10929 (ada_val_print_num): Remove language parameter and use Ada language
10930 definition instead.
10931 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10932 parameter.
10933 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10934 parameter and use Ada language definition instead.
10935 (ada_val_print_1): Update all ada_val_print_xxx calls.
10936 Remove language parameter.
10937 (ada_val_print): Update ada_val_print_1 call.
10938
10939 2019-05-08 Tom Tromey <tromey@adacore.com>
10940
10941 * remote.c (remote_hw_watchpoint_limit)
10942 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10943 Now static.
10944
10945 2019-05-08 Tom Tromey <tromey@adacore.com>
10946
10947 * maint.c (_initialize_maint_cmds): Move initialization code to
10948 remote.c.
10949 (watchdog, show_watchdog): Move to remote.c.
10950 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10951 "watchdog" static.
10952 (_initialize_remote): Move initialization code from maint.c.
10953 * defs.h (watchdog): Don't declare.
10954
10955 2019-05-08 Tom Tromey <tromey@adacore.com>
10956
10957 * tui/tui-interp.c: Include main.h.
10958 * interps.c: Include main.h.
10959 * main.h (interpreter_p): Declare.
10960 * defs.h (interpreter_p): Don't declare.
10961
10962 2019-05-08 Tom Tromey <tromey@adacore.com>
10963
10964 * dwarf2loc.c: Include dwarf2read.h.
10965 * defs.h (read_unsigned_leb128): Don't declare.
10966 * dwarf2read.h (read_unsigned_leb128): Declare.
10967
10968 2019-05-08 Tom Tromey <tromey@adacore.com>
10969
10970 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10971 method.
10972
10973 2019-05-08 Tom Tromey <tromey@adacore.com>
10974
10975 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10976 when no wrap column is set.
10977
10978 2019-05-08 Tom Tromey <tromey@adacore.com>
10979
10980 * c-lang.c (c_get_string): Handle non-C-style arrays.
10981
10982 2019-05-08 Tom Tromey <tromey@adacore.com>
10983
10984 * typeprint.c (print_offset_data::update): Print the bit offset,
10985 not the number of bits remaining.
10986
10987 2019-05-08 Tom Tromey <tromey@adacore.com>
10988
10989 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10990 padding at end of comment.
10991
10992 2019-05-08 Tom Tromey <tromey@adacore.com>
10993
10994 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10995 Compare main types.
10996
10997 2019-05-06 Tom Tromey <tom@tromey.com>
10998
10999 * common/scoped_mmap.c: Include common-defs.h.
11000 * common/scoped_mmap.h: Don't include config.h.
11001
11002 2019-05-04 Tom Tromey <tom@tromey.com>
11003
11004 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
11005 (struct aarch64_call_info): Add initializers.
11006 <si>: Now a std::vector.
11007 (pass_on_stack, aarch64_push_dummy_call): Update.
11008
11009 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
11010 Tom Tromey <tom@tromey.com>
11011
11012 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
11013 (ppc_threads): Now a std::vector. Now static.
11014 (hwdebug_find_thread_points_by_tid)
11015 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
11016 Update.
11017
11018 2019-05-04 Tom Tromey <tom@tromey.com>
11019
11020 * arc-tdep.c (arc_tdesc_init): Return bool.
11021
11022 2019-05-04 Tom Tromey <tom@tromey.com>
11023
11024 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
11025 Use gdb_assert_not_reached.
11026
11027 2019-05-04 Tom Tromey <tom@tromey.com>
11028
11029 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
11030 "false".
11031
11032 2019-05-04 Tom Tromey <tom@tromey.com>
11033
11034 * arc-tdep.c (arc_tdesc_init): Use bool.
11035
11036 2019-05-04 Tom Tromey <tom@tromey.com>
11037
11038 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
11039
11040 2019-05-04 Tom Tromey <tom@tromey.com>
11041
11042 * cli/cli-cmds.c (valid_command_p): Return bool.
11043
11044 2019-05-04 Tom Tromey <tom@tromey.com>
11045
11046 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
11047 * command.h (valid_user_defined_cmd_name_p): Channge return type.
11048
11049 2019-05-04 Raul Tambre <raul@tambre.ee>
11050
11051 * python/lib/gdb/prompt.py (_ExtendedPrompt)
11052 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
11053 operator for comparison.
11054
11055 2019-05-04 Tom Tromey <tom@tromey.com>
11056
11057 * psymtab.c (psymbol_name_matches, match_partial_symbol)
11058 (lookup_partial_symbol, print_partial_symbols)
11059 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
11060 (psymbol_compare): Update.
11061 (add_psymbol_to_bcache): Clear the entire psymbol.
11062 (maintenance_check_psymtabs): Update.
11063 * psympriv.h (struct partial_symbol): Don't derive from
11064 general_symbol_info.
11065 <obj_section, unrelocated_address, address,
11066 set_unrelocated_address>: Update.
11067 <ginfo>: New member.
11068 * dwarf-index-write.c (write_psymbols, debug_names::insert)
11069 (debug_names::write_psymbols): Update.
11070
11071 2019-05-04 Tom de Vries <tdevries@suse.de>
11072
11073 * contrib/cc-with-tweaks.sh: Support -n arg.
11074
11075 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11076
11077 * corelow.c (core_target::detach): Ensure frame cache and
11078 register caches are cleared.
11079 inferior.c (exit_inferior_1): Likewise.
11080
11081 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
11082 Tom Tromey <tom@tromey.com>
11083
11084 * dictionary.c (collate_pending_symbols_by_language): Remove
11085 "struct" from foreach.
11086 * symtab.c (lookup_global_symbol_from_objfile)
11087 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
11088 foreach.
11089 * ser-tcp.c (net_open): Remove "struct" from foreach.
11090 * objfiles.c (objfile_relocate, objfile_rebase)
11091 (objfile_has_symbols): Remove "struct" from foreach.
11092 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
11093 from foreach.
11094 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
11095 foreach.
11096 * darwin-nat.c (thread_info_from_private_thread_info): Remove
11097 "struct" from foreach.
11098 * ada-lang.c (create_excep_cond_exprs)
11099 (ada_exception_catchpoint_cond_string): Remove "struct" from
11100 foreach.
11101
11102 2019-05-03 Tom Tromey <tromey@adacore.com>
11103
11104 * ada-exp.y (convert_char_literal): Check suffix of each
11105 enumerator.
11106
11107 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11108
11109 PR ada/21406:
11110 * ada-exp.y (yywrap): Don't define.
11111 * ada-lex.l (%option): Add noyywrap
11112 (yywrap): Remove.
11113
11114 2019-05-03 Eli Zaretskii <eliz@gnu.org>
11115
11116 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11117 _WIN32_WINNT to the XP level, unless already defined to a higher
11118 level.
11119
11120 * unittests/parse-connection-spec-selftests.c:
11121 * ser-tcp.c:
11122 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11123 override.
11124
11125 * symfile.c (find_separate_debug_file): Remove colon from the
11126 drive spec of DOS/Windows file names of the target, so that the
11127 file name produced from DEBUGDIR and the target's directory will
11128 be valid on DOS/Windows systems.
11129
11130 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11131
11132 * rust-lang.c (val_print_struct): Handle printing structures
11133 containing strings.
11134
11135 2019-05-02 Tom Tromey <tromey@adacore.com>
11136
11137 * valarith.c (_initialize_valarith): Remove.
11138
11139 2019-05-01 Tom Tromey <tromey@adacore.com>
11140
11141 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11142 bitfields.
11143
11144 2019-05-01 Tom Tromey <tromey@adacore.com>
11145
11146 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11147 for big-endian copies.
11148
11149 2019-04-30 Ali Tamur <tamur@google.com>
11150 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11151 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11152 (read_3_bytes): New function.
11153
11154 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11155
11156 * windows-nat.c (main_thread_id): Delete.
11157 (handle_output_debug_string): Replace main_thread_id by
11158 current_event.dwThreadId.
11159 (fake_create_process): Likewise.
11160 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11161 Do not set main_thread_id.
11162 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11163 current_event.dwThreadId.
11164 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11165
11166 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11167
11168 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11169 Use current_event.dwThreadId instead of main_thread_id.
11170
11171 2019-04-30 Tom Tromey <tromey@adacore.com>
11172
11173 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11174 (create_excep_cond_exprs): Iterate over program spaces.
11175 (ada_exception_catchpoint_cond_string): Examine all minimal
11176 symbols for exception types.
11177
11178 2019-04-30 Tom Tromey <tromey@adacore.com>
11179
11180 PR c++/24470:
11181 * dwarf2read.c (process_structure_scope): Handle case where type
11182 has template parameters but no symbol was created.
11183
11184 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11185 Chris January <chris.january@arm.com>
11186
11187 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11188 qualifier.
11189 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11190
11191 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11192
11193 * f-typeprint.c (f_print_type): Update rules for printing
11194 whitespace.
11195 (f_type_print_varspec_suffix): Likewise.
11196
11197 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11198 Chris January <chris.january@arm.com>
11199
11200 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11201 function arguments.
11202
11203 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11204
11205 * f-lang.c (build_fortran_types): Change name of void type to
11206 lower case.
11207 * f-typeprint.c (f_type_print_base): Print the name of the void
11208 type, rather than a fixed string.
11209 * f-valprint.c (f_decorations): Use lower case void string.
11210
11211 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11212 Chris January <chris.january@arm.com>
11213
11214 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11215 types for Fortran.
11216
11217 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11218 Chris January <chris.january@arm.com>
11219 David Lecomber <david.lecomber@arm.com>
11220
11221 * f-exp.y (BINOP_INTRINSIC): New token.
11222 (exp): New parser rule handling BINOP_INTRINSIC.
11223 (f77_keywords): Add new builtin procedures.
11224 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11225 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11226 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11227 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11228 (print_unop_subexp_f): New function.
11229 (print_binop_subexp_f): New function.
11230 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11231 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11232 (dump_subexp_body_f): Likewise.
11233 (operator_check_f): Likewise.
11234 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11235 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11236
11237 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11238
11239 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11240 UNOP_KIND.
11241 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11242 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11243 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11244 (operator_length_f): New fuction.
11245 (print_subexp_f): New function.
11246 (op_name_f): New function.
11247 (dump_subexp_body_f): New function.
11248 (operator_check_f): New function.
11249 (exp_descriptor_f): Replace standard expression handling functions
11250 with new functions.
11251 * gdb/fortran-operator.def: New file.
11252 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11253 * gdb/std-operator.def: Remove UNOP_KIND.
11254
11255 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * std-operator.def: Remove unbalanced, stray double quote
11258 character.
11259
11260 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11261 Chris January <chris.january@arm.com>
11262 Daniel Everett <daniel.everett@arm.com>
11263 Nick Forrington <nick.forrington@arm.com>
11264 Richard Bunt <richard.bunt@arm.com>
11265
11266 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11267 of depth when printing anonymous structs or unions.
11268 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11269 Don't print either the top-level value, or the children if the
11270 max-depth is exceeded.
11271 (ppscm_print_children): When printing the key of a map, allow one
11272 extra level of depth.
11273 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11274 print either the top-level value, or the children if the max-depth
11275 is exceeded.
11276 (print_children): When printing the key of a map, allow one extra
11277 level of depth.
11278 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11279 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11280 (user_print_options): Initialise max_depth field.
11281 (val_print_scalar_or_string_type_p): New function.
11282 (val_print): Check to see if the max depth has been reached.
11283 (val_print_check_max_depth): Define new function.
11284 (show_print_max_depth): New function.
11285 (_initialize_valprint): Add 'print max-depth' option.
11286 * valprint.h (struct value_print_options) <max_depth>: New field.
11287 (val_print_check_max_depth): Declare new function.
11288 * NEWS: Document new feature.
11289
11290 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11291
11292 * ada-lang.c (ada_language_defn): Initialise new field.
11293 * c-lang.c (c_is_string_type_p): New function.
11294 (c_language_defn): Initialise new field.
11295 (cplus_language_defn): Initialise new field.
11296 (asm_language_defn): Initialise new field.
11297 (minimal_language_defn): Initialise new field.
11298 * c-lang.h (c_is_string_type_p): Declare new function.
11299 * d-lang.c (d_language_defn): Initialise new field.
11300 * f-lang.c (f_is_string_type_p): New function.
11301 (f_language_defn): Initialise new field.
11302 * go-lang.c (go_is_string_type_p): New function.
11303 (go_language_defn): Initialise new field.
11304 * language.c (default_is_string_type_p): New function.
11305 (unknown_language_defn): Initialise new field.
11306 (auto_language_defn): Initialise new field.
11307 * language.h (struct language_defn) <la_is_string_type_p>: New
11308 member variable.
11309 (default_is_string_type_p): Declare new function.
11310 * m2-lang.c (m2_language_defn): Initialise new field.
11311 * objc-lang.c (objc_language_defn): Initialise new field.
11312 * opencl-lang.c (opencl_language_defn): Initialise new field.
11313 * p-lang.c (pascal_is_string_type_p): New function.
11314 (pascal_language_defn): Initialise new field.
11315 * rust-lang.c (rust_is_string_type_p): New function.
11316 (rust_language_defn): Initialise new field.
11317
11318 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11319
11320 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11321 New field.
11322 * ada-lang.c (ada_language_defn): Initialise new field.
11323 * c-lang.c (c_language_defn): Likewise.
11324 (cplus_language_defn): Likewise.
11325 (asm_language_defn): Likewise.
11326 (minimal_language_defn): Likewise.
11327 * d-lang.c (d_language_defn): Likewise.
11328 * f-lang.c (f_language_defn): Likewise.
11329 * go-lang.c (go_language_defn): Likewise.
11330 * language.c (unknown_language_defn): Likewise.
11331 (auto_language_defn): Likewise.
11332 * m2-lang.c (m2_language_defn): Likewise.
11333 * objc-lang.c (objc_language_defn): Likewise.
11334 * opencl-lang.c (opencl_language_defn): Likewise.
11335 * p-lang.c (pascal_language_defn): Likewise.
11336 * rust-lang.c (rust_language_defn): Likewise.
11337
11338 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11339
11340 * ada-lang.c (ada_is_character_type): Change return type to bool.
11341 (ada_is_string_type): Likewise.
11342 * ada-lang.h (ada_is_character_type): Update declaration
11343 (ada_is_string_type): Likewise.
11344
11345 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11346
11347 Support style in 'frame|thread apply'
11348
11349 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11350 * record.c (record_start, record_stop): Update callers of
11351 execute_command_to_string with false.
11352 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11353 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11354 methods.
11355 (class string_file): New constructor with term_out parameter.
11356 Override methods term_out and can_emit_style_escape. New member
11357 term_out.
11358 (class stdio_file): Override can_emit_style_escape.
11359 (class tee_file): Override term_out and can_emit_style_escape.
11360 * utils.h (can_emit_style_escape): Remove.
11361 * utils.c (can_emit_style_escape): Likewise.
11362 Update all callers of can_emit_style_escape (SOMESTREAM) to
11363 SOMESTREAM->can_emit_style_escape.
11364 * source-cache.c (source_cache::get_source_lines): Likewise.
11365 * stack.c (frame_apply_command_count): Call execute_command_to_string
11366 passing the term_out characteristic of the current gdb_stdout.
11367 * thread.c (thr_try_catch_cmd): Likewise.
11368 * top.c (execute_command_to_string): pass term_out parameter
11369 to construct the string_file for the command output.
11370 * ui-file.c (term_cli_styling): New function (most code moved
11371 from utils.c can_emit_style_escape).
11372 (string_file::string_file, string_file::can_emit_style_escape,
11373 stdio_file::can_emit_style_escape, tee_file::term_out,
11374 tee_file::can_emit_style_escape): New functions.
11375
11376 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11377
11378 * NEWS: Mention the new set|show may-call-functions.
11379 * infcall.c (may_call_functions_p): New variable.
11380 (show_may_call_functions_p): New function.
11381 (call_function_by_hand_dummy): Throws an error if not
11382 may-call-functions.
11383 (_initialize_infcall): Call add_setshow_boolean_cmd for
11384 may-call-functions.
11385
11386 2019-04-25 Keith Seitz <keiths@redhat.com>
11387
11388 PR c++/24367
11389 * cp-support.c (inspect_type): Don't attempt substitutions
11390 of symbol with the same name.
11391
11392 2019-04-25 Tom Tromey <tromey@adacore.com>
11393
11394 PR gdb/24475:
11395 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11396 static.
11397
11398 2019-04-25 Tom Tromey <tromey@adacore.com>
11399
11400 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11401 rvalue reference.
11402 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11403 (gdb_xml_parser::parse): Use std::move.
11404 * python/python-internal.h (gdbpy_convert_exception): Take a const
11405 reference.
11406 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11407 std::move.
11408 * python/py-utils.c (gdbpy_convert_exception): Take a const
11409 reference.
11410 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11411 Use std::move.
11412 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11413 Use std::move.
11414 * mi/mi-main.c (mi_print_exception): Take a const reference.
11415 * main.c (handle_command_errors): Take a const reference.
11416 * linespec.c (parse_linespec): Use std::move.
11417 * infcall.c (run_inferior_call): Use std::move.
11418 (call_function_by_hand_dummy): Use std::move.
11419 * exec.c (try_open_exec_file): Use std::move.
11420 * exceptions.h (exception_print, exception_fprintf)
11421 (exception_print_same): Update.
11422 * exceptions.c (print_exception, exception_print)
11423 (exception_fprintf, exception_print_same): Change parameters to
11424 const reference.
11425 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11426 * common/new-op.c: Use std::move.
11427 * common/common-exceptions.h (struct gdb_exception): Add move
11428 constructor.
11429 (struct gdb_exception_error, struct gdb_exception_quit, struct
11430 gdb_quit_bad_alloc): Change constructor to move constructor.
11431 (throw_exception): Change parameter to rvalue reference.
11432 * common/common-exceptions.c (throw_exception): Take rvalue
11433 reference.
11434 * cli/cli-interp.c (safe_execute_command): Use std::move.
11435 * breakpoint.c (insert_bp_location, location_to_sals): Use
11436 std::move.
11437
11438 2019-04-25 Tom Tromey <tromey@adacore.com>
11439
11440 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11441 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11442 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11443 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11444 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11445 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11446 guile/scm-value.c: Use unpack.
11447 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11448 gdbscm_gdb_exception.
11449 (gdbscm_throw_gdb_exception): Likewise.
11450 (struct gdbscm_gdb_exception): New.
11451 (unpack): New function.
11452 (gdbscm_wrap): Use unpack.
11453
11454 2019-04-25 Tom Tromey <tromey@adacore.com>
11455
11456 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11457 (gdb_rl_callback_handler): Use std::move.
11458 * common/common-exceptions.h (struct gdb_exception): Add move
11459 assignment operator.
11460 (throw_exception_sjlj): Change "exception" to const reference.
11461 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11462 (throw_exception_sjlj): Change "exception" to const reference.
11463
11464 2019-04-25 Tom Tromey <tromey@adacore.com>
11465
11466 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11467 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11468 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11469 Update.
11470 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11471 Update.
11472 * mi/mi-interp.c (mi_interp::exec): Update.
11473 * linespec.c (parse_linespec): Update.
11474 * infcall.c (run_inferior_call): Update.
11475 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11476 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11477 (gdbscm_lookup_global_symbol): Update.
11478 * guile/scm-param.c (gdbscm_parameter_value): Update.
11479 * guile/scm-frame.c (gdbscm_frame_read_register)
11480 (gdbscm_frame_read_var): Update.
11481 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11482 * exec.c (try_open_exec_file): Update.
11483 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11484 (gdb_rl_callback_handler): Update.
11485 * common/common-exceptions.h (exception_none): Don't declare.
11486 * common/common-exceptions.c (exception_none): Don't define.
11487 (struct catcher) <exception>: Update.
11488 * cli/cli-interp.c (safe_execute_command): Update.
11489 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11490
11491 2019-04-25 Ali Tamur <tamur@google.com>
11492
11493 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11494 (read_attribute_value): Likewise.
11495 (dwarf2_read_addr_index): Update comment.
11496 (read_str_index): Add DW_FORM_strx.
11497 (dwarf2_string_attr): Likewise.
11498 (dwarf2_const_value_attr): Likewise.
11499 (dump_die_shallow): Likewise.
11500 (dwarf2_fetch_constant_bytes): Likewise.
11501 (skip_form_bytes): Likewise.
11502 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11503
11504 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11505
11506 PR corefiles/11608
11507 PR corefiles/18187
11508 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11509 OFFSET. Verify if current mapping contains an ELF header.
11510 (linux_find_memory_regions_full): Adjust call to
11511 dump_mapping_p.
11512
11513 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11514 Kang Li <kanglictf@gmail.com>
11515
11516 PR gdb/21600
11517
11518 * dwarf2-frame.c (read_initial_length): Be consistent about using
11519 unsigned representation of length.
11520 (decode_frame_entry_1): Likewise. Check for wraparound of
11521 end pointer as well as buffer overflow.
11522
11523 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11524
11525 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11526 "vq".
11527
11528 2019-04-24 Tom Tromey <tromey@adacore.com>
11529
11530 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11531
11532 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * s12z-tdep.c (s12z_unwind_pc): Delete.
11535 (s12z_unwind_sp): Delete.
11536 (s12z_gdbarch_init): Don't register deleted functions with
11537 gdbarch.
11538
11539 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11540
11541 * rl78-tdep.c (rl78_unwind_sp): Delete.
11542 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11543
11544 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11545
11546 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11547 (xstormy16_unwind_pc): Delete.
11548 (xstormy16_dummy_id): Delete.
11549 (xstormy16_gdbarch_init): Don't register deleted functions with
11550 gdbarch.
11551
11552 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11553
11554 * vax-tdep.c (vax_unwind_pc): Delete.
11555 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11556
11557 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11558
11559 * v850-tdep.c (v850_unwind_sp): Delete.
11560 (v850_unwind_pc): Delete.
11561 (v850_dummy_id): Delete.
11562 (v850_gdbarch_init): Don't register deleted functions with
11563 gdbarch.
11564
11565 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11566
11567 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11568 (tilegx_unwind_pc): Delete.
11569 (tilegx_unwind_dummy_id): Delete.
11570 (tilegx_gdbarch_init): Don't register deleted functions with
11571 gdbarch.
11572
11573 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11574
11575 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11576 (tic6x_dummy_id): Delete.
11577 (tic6x_gdbarch_init): Don't register deleted functions with
11578 gdbarch.
11579
11580 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11581
11582 * sparc-tdep.c (sparc_unwind_pc): Delete.
11583 (sparc32_gdbarch_init): Don't register deleted function with
11584 gdbarch.
11585
11586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11587
11588 * sh-tdep.c (sh_unwind_sp): Delete.
11589 (sh_unwind_pc): Delete.
11590 (sh_dummy_id): Delete.
11591 (sh_gdbarch_init): Don't register deleted functions with
11592 gdbarch.
11593
11594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11595
11596 * score-tdep.c (score_unwind_sp): Delete.
11597 (score_unwind_pc): Delete.
11598 (score_dummy_id): Delete.
11599 (score_gdbarch_init): Don't register deleted functions with
11600 gdbarch.
11601
11602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11603
11604 * rx-tdep.c (rx_unwind_pc): Delete.
11605 (rx_unwind_sp): Delete.
11606 (rx_dummy_id): Delete.
11607 (rx_gdbarch_init): Don't register deleted functions with
11608 gdbarch. Update comment.
11609
11610 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11611
11612 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11613 (rs6000_dummy_id): Delete.
11614 (rs6000_gdbarch_init): Don't register deleted functions with
11615 gdbarch.
11616
11617 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11618
11619 * or1k-tdep.c (or1k_dummy_id): Delete.
11620 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11621
11622 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * nios2-tdep.c (nios2_dummy_id): Delete.
11625 (nios2_unwind_sp): Delete.
11626 (nios2_gdbarch_init): Don't register deleted functions with
11627 gdbarch.
11628
11629 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11630
11631 * nds32-tdep.c (nds32_dummy_id): Delete.
11632 (nds32_unwind_pc): Delete.
11633 (nds32_unwind_sp): Delete.
11634 (nds32_gdbarch_init): Don't register deleted functions with
11635 gdbarch.
11636
11637 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11638
11639 * msp430-tdep.c (msp430_unwind_pc): Delete.
11640 (msp430_unwind_sp): Delete.
11641 (msp430_dummy_id): Delete.
11642 (msp430_gdbarch_init): Don't register deleted functions with
11643 gdbarch.
11644
11645 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11646
11647 * moxie-tdep.c (moxie_unwind_sp): Delete.
11648 (moxie_unwind_pc): Delete.
11649 (moxie_dummy_id): Delete.
11650 (moxie_gdbarch_init): Don't register deleted functions with
11651 gdbarch.
11652
11653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11654
11655 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11656 (mn10300_unwind_pc): Delete.
11657 (mn10300_unwind_sp): Delete.
11658 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11659 mn10300_unwind_sp.
11660 (mn10300_frame_unwind_init): Don't register deleted functions with
11661 gdbarch.
11662
11663 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11664
11665 * mep-tdep.c (mep_unwind_pc): Delete.
11666 (mep_unwind_sp): Delete.
11667 (mep_dummy_id): Delete.
11668 (mep_gdbarch_init): Don't register deleted functions with
11669 gdbarch.
11670
11671 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11672
11673 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11674 (m68hc11_unwind_sp): Delete.
11675 (m68hc11_gdbarch_init): Don't register deleted functions with
11676 gdbarch.
11677
11678 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11679
11680 * m32r-tdep.c (m32r_unwind_sp): Delete.
11681 (m32r_unwind_pc): Delete.
11682 (m32r_dummy_id): Delete.
11683 (m32r_gdbarch_init): Don't register deleted functions with
11684 gdbarch.
11685
11686 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11687
11688 * m32c-tdep.c (m32c_unwind_pc): Delete.
11689 (m32c_unwind_sp): Delete.
11690 (m32c_dummy_id): Delete.
11691 (m32c_gdbarch_init): Don't register deleted functions with
11692 gdbarch.
11693
11694 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11695
11696 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11697 (lm32_unwind_pc): Delete.
11698 (lm32_dummy_id): Delete.
11699 (lm32_gdbarch_init): Don't register deleted functions with
11700 gdbarch.
11701
11702 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11703
11704 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11705 (iq2000_unwind_pc): Delete.
11706 (iq2000_dummy_id): Delete.
11707 (iq2000_gdbarch_init): Don't register deleted functions with
11708 gdbarch.
11709
11710 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11711
11712 * nds32-tdep.c (nds32_type_align): Delete.
11713 (nds32_push_dummy_call): Use type_align instead.
11714
11715 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11716
11717 * arm-tdep.c (arm_type_align): Only handle vector override case.
11718 (arm_push_dummy_call): Use type_align.
11719 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11720
11721 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11722
11723 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11724 case.
11725 (pass_on_stack): Use type_align.
11726 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11727 function.
11728
11729 2019-04-23 Tom Tromey <tromey@adacore.com>
11730
11731 * dwarf2read.c (line_header::file_name_at): Remove unused
11732 overload.
11733
11734 2019-04-23 Tom de Vries <tdevries@suse.de>
11735
11736 PR gdb/24438
11737 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11738 invocation.
11739
11740
11741 2019-03-27 Ali Tamur <tamur@google.com>
11742
11743 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11744 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11745 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11746 (dwarf_expr_context::get_addr_index): Likewise
11747 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11748 (symbol_needs_eval_context::get_addr_index): Likewise
11749 (disassemble_dwarf_expression): Add DW_OP_addrx
11750 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11751 (read_cutu_die_from_dwo): Update comment
11752 (skip_one_die): Add DW_FORM_addrx
11753 (read_attribute_value): Likewise
11754 (var_decode_location): Add DW_OP_addrx
11755 (dwarf2_const_value_attr): Add DW_FORM_addrx
11756 (dump_die_shallow): Likewise
11757 (dwarf2_fetch_constant_bytes): Likewise
11758 (decode_locdesc): Add DW_OP_addrx
11759 (skip_form_bytes): Add DW_FORM_addrx
11760
11761 2019-04-22 Ali Tamur <tamur@google.com>
11762
11763 * MAINTAINERS (Write After Approval): Add self.
11764
11765 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11766
11767 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11768 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11769 (open_symbol_file_object): Likewise.
11770 (svr4_default_sos): Add info parameter.
11771 (svr4_read_so_list): Likewise.
11772 (svr4_current_sos_direct): Adjust functions calls to pass down
11773 info.
11774 (svr4_current_sos_1): Add info parameter.
11775 (svr4_current_sos): Call get_svr4_info, pass info down to
11776 svr4_current_sos_1.
11777 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11778 get_svr4_info.
11779 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11780 get_svr4_info.
11781 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11782 to get_svr4_info.
11783 (probes_table_remove_objfile_probes): Likewise.
11784 (register_solib_event_probe): Add info parameter.
11785 (solist_update_incremental): Pass info parameter down to
11786 svr4_read_so_list.
11787 (disable_probes_interface): Add info parameter.
11788 (svr4_handle_solib_event): Pass current_program_space to
11789 get_svr4_info. Adjust disable_probes_interface cleanup.
11790 (svr4_create_probe_breakpoints): Add info parameter, pass it
11791 down to register_solib_event_probe.
11792 (svr4_create_solib_event_breakpoints): Add info parameter,
11793 pass it down to svr4_create_probe_breakpoints.
11794 (enable_break): Pass info down to
11795 svr4_create_solib_event_breakpoints.
11796 (svr4_solib_create_inferior_hook): Pass current_program_space to
11797 get_svr4_info.
11798 (svr4_clear_solib): Likewise.
11799
11800 2019-04-22 Pedro Alves <palves@redhat.com>
11801
11802 * solib-svr4.c (svr4_free_objfile_observer): New.
11803 (probe_and_action::objfile): New field.
11804 (probes_table_htab_remove_objfile_probes)
11805 (probes_table_remove_objfile_probes): New functions.
11806 (register_solib_event_probe): Add 'objfile' parameter. Store it
11807 in the new probe_and_action. Don't store the probe in 'lookup'.
11808 (svr4_create_probe_breakpoints): Pass objfile to
11809 register_solib_event_probe.
11810 (_initialize_svr4_solib): Register a free_objfile observer.
11811
11812 2019-04-19 Tom Tromey <tom@tromey.com>
11813
11814 * common/queue.h: Remove.
11815
11816 2019-04-19 Tom Tromey <tom@tromey.com>
11817
11818 * event-loop.c: Don't include "common/queue.h".
11819
11820 2019-04-19 Tom Tromey <tom@tromey.com>
11821
11822 * remote.c (remote_target): Use delete.
11823 * remote-notif.h: Include <list>, not "common/queue.h".
11824 (notif_client_p): Remove typedef.
11825 (remote_notif_state): Add constructor, destructor, initializer.
11826 <notif_queue>: Now a std::list.
11827 (remote_notif_state_xfree): Don't declare.
11828 * remote-notif.c (remote_notif_process, handle_notification)
11829 (remote_notif_state_allocate): Update.
11830 (~remote_notif_state): Rename from remote_notif_state_xfree.
11831
11832 2019-04-19 Tom Tromey <tom@tromey.com>
11833
11834 * symfile.c (reread_symbols): Update.
11835 * objfiles.c (objfile_register_static_link)
11836 (objfile_lookup_static_link): Update
11837 (~objfile) Don't delete static_links.
11838 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11839
11840 2019-04-19 Tom Tromey <tom@tromey.com>
11841
11842 * type-stack.h (struct type_stack) <insert>: Constify string.
11843 * type-stack.c (type_stack::insert): Constify string.
11844 * gdbtypes.h (lookup_template_type): Update.
11845 (address_space_name_to_int): Update.
11846 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11847 const.
11848 (lookup_template_type): Make name const.
11849 * c-exp.y: Update rules.
11850 (lex_one_token, classify_name, classify_inner_name)
11851 (c_print_token): Update.
11852 * p-exp.y: Update rules.
11853 (yylex): Update.
11854 * f-exp.y: Update rules.
11855 (yylex): Update.
11856 * d-exp.y: Update rules.
11857 (lex_one_token, classify_name, classify_inner_name): Update.
11858 * parse.c (write_dollar_variable, copy_name): Return std::string.
11859 * parser-defs.h (copy_name): Change return type.
11860 * m2-exp.y: Update rules.
11861 (yylex): Update.
11862 * go-exp.y (lex_one_token): Update.
11863 Update rules.
11864 (classify_unsafe_function, classify_packaged_name)
11865 (classify_name, yylex): Update.
11866
11867 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11868
11869 * configure.ac: add --enable-source-highlight switch.
11870 * configure: Regenerate.
11871 * top.c (print_gdb_version): plumb --enable-source-highlight
11872 status to "show configuration".
11873
11874 2019-04-19 Tom Tromey <tromey@adacore.com>
11875
11876 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11877 Check ADA_TYPE_P.
11878 (empty_record, ada_template_to_fixed_record_type_1)
11879 (template_to_static_fixed_type)
11880 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11881 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11882 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11883 macros.
11884
11885 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11886
11887 PR symtab/24423:
11888 * source.c (print_source_lines_base): Advance "iter" when a
11889 control character is seen.
11890
11891 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11892
11893 * inferior.h (struct infcall_suspend_state_deleter):
11894 Catch exception in destructor to avoid crash.
11895
11896 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11897
11898 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11899 close to the add_com "shell".
11900
11901 2019-04-18 Tom Tromey <tromey@adacore.com>
11902
11903 * process-stratum-target.h (class process_stratum_target)
11904 <stratum>: Add "final".
11905
11906 2019-04-17 Tom Tromey <tromey@adacore.com>
11907
11908 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11909 against nullptr before use.
11910
11911 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11912
11913 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11914
11915 2019-04-17 Jim Wilson <jimw@sifive.com>
11916 Andrew Burgess <andrew.burgess@embecosm.com>
11917
11918 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11919 code read might fail, assume 4-byte breakpoint in that case.
11920
11921 2019-04-15 Leszek Swirski <leszeks@google.com>
11922
11923 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11924 rather than a hand-rolled POD check when checking for forced MEMORY
11925 classification.
11926
11927 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11928
11929 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11930 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11931 function.
11932 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11933 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11934 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11935 declaration.
11936
11937 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11938
11939 * aarch64-linux-nat.c
11940 (aarch64_linux_nat_target::thread_architecture): Add override.
11941 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11942 each VQ.
11943
11944 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11945
11946 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11947
11948 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11949
11950 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11951 target types of size 96-bits, add some additional comments, and
11952 check that the builtin type we found was the correct size.
11953
11954 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11955
11956 * utils.c (prompt_for_continue): Don't restore the styling at the
11957 end, as applied_style has the wrong value. This fixes styling in
11958 long lists of file names that are interrupted by the "Continue?"
11959 prompt.
11960
11961 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11962
11963 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11964 * c-lang.c (c_language_defn): Likewise.
11965 (cplus_language_defn): Likewise.
11966 (asm_language_defn): Likewise.
11967 (minimal_language_defn): Likewise.
11968 * d-lang.c (d_language_defn): Likewise.
11969 * f-lang.c (f_language_defn): Likewise.
11970 * go-lang.c (go_language_defn): Likewise.
11971 * language.c (unknown_language_defn): Likewise.
11972 (auto_language_defn): Likewise.
11973 * language.h (struct language_defn): Remove la_magic field.
11974 (LANG_MAGIC): Delete.
11975 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11976 * objc-lang.c (objc_language_defn): Likewise.
11977 * opencl-lang.c (opencl_language_defn): Likewise.
11978 * p-lang.c (pascal_language_defn): Likewise.
11979 * rust-lang.c (rust_language_defn): Likewise.
11980
11981 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11982
11983 * riscv-tdep.c (riscv_type_align): New function.
11984 (riscv_type_alignment): Delete.
11985 (riscv_arg_location): Use 'type_align'.
11986 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11987
11988 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11989
11990 * gdbtypes.c (type_align): A struct with no non-static fields also
11991 has alignment of 1.
11992
11993 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11994
11995 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11996 component to 0.
11997 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11998 member.
11999 (riscv_struct_info::analyse): New implementation using new
12000 analyse_inner member function.
12001 (riscv_struct_info::field_offset): New member function.
12002 (riscv_struct_info::m_offsets): New member variable.
12003 (riscv_struct_info::analyse_inner): New private member function,
12004 takes the old implementation of riscv_struct_info::analyse but
12005 extended to track field offsets.
12006 (riscv_call_arg_struct): Update the struct folding special cases
12007 to handle cases where empty C++ structs, which are non-zero
12008 length, are found.
12009 (riscv_arg_location): Initialise the length of each location, a
12010 non-zero length now indicates the location is in use.
12011 (riscv_push_dummy_call): Allow for the first location having a
12012 non-zero offset when setting up arguments.
12013 (riscv_return_value): Likewise, but for return values.
12014
12015 2019-04-11 Tom Tromey <tromey@adacore.com>
12016
12017 * utils.c (internal_vproblem): Make "msg" const.
12018
12019 2019-04-11 Alan Hayward <alan.hayward@arm.com>
12020
12021 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
12022 * trad-frame.c (trad_frame_reset_saved_regs): New function.
12023 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
12024 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
12025
12026 2019-04-10 Kevin Buettner <kevinb@redhat.com>
12027
12028 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
12029 function.
12030 (fill_gregset): Call amd64_linux_collect_native_gregset instead
12031 of amd64_collect_native_gregset.
12032 (amd64_linux_nat_target::store_registers): Likewise.
12033
12034 2019-04-10 Tom Tromey <tom@tromey.com>
12035
12036 * symtab.c (lookup_global_symbol_from_objfile)
12037 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
12038 * objfiles.h (class separate_debug_iterator): New.
12039 (class separate_debug_range): New.
12040 (struct objfile) <separate_debug_objfiles>: New method.
12041 (objfile_separate_debug_iterate): Don't declare.
12042 * objfiles.c (separate_debug_iterator::operator++): Rename from
12043 objfile_separate_debug_iterate.
12044 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
12045 iterator.
12046 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
12047 iterator.
12048
12049 2019-04-10 Tom Tromey <tom@tromey.com>
12050
12051 * symfile.c (reread_symbols): Remove old comment.
12052 * objfiles.c (free_all_objfiles): Fix a typo.
12053
12054 2019-04-10 Tom Tromey <tom@tromey.com>
12055
12056 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
12057 * minsyms.c (lookup_minimal_symbol): Use foreach.
12058 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
12059 (lookup_minimal_symbol_solib_trampoline): Likewise.
12060 * symfile.c (reread_symbols): Use foreach.
12061
12062 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
12063 Tom Tromey <tromey@adacore.com>
12064
12065 PR rust/24414:
12066 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
12067 (rust_lex_int_test): Change "value" to be LONGEST.
12068 (rust_lex_tests): Add test for long integer literal.
12069
12070 2019-04-09 Tom Tromey <tromey@adacore.com>
12071
12072 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
12073 to bool.
12074 (extended_remote_target::attach): Update.
12075 (remote_target::remote_notice_new_inferior): Update.
12076 (remote_target::add_current_inferior_and_thread): Update.
12077 * inferior.c (exit_inferior_1): Use "false".
12078 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
12079
12080 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
12081
12082 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
12083 the "start" command.
12084
12085 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12086
12087 * python/py-inferior.c (infpy_thread_from_thread_handle):
12088 Adjust comments to reflect renaming of thread_from_thread_handle
12089 to thread_from_handle. Adjust keywords. Fix type error message.
12090 (inferior_object_methods): Add thread_from_handle. Retain
12091 thread_from_thread_handle, but mark it as deprecated.
12092
12093 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12094
12095 * gdbthread.h (find_thread_by_handle): Revise declaration.
12096 * thread.c (find_thread_by_handle): Likewise. Adjust
12097 implementation too.
12098 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
12099 support for buffer objects as handles.
12100
12101 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12102
12103 * python/py-infthread.c (thpy_thread_handle): New function.
12104 (thread_object_methods): Register thpy_thread_handle.
12105
12106 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12107
12108 * gdbthread.h (thread_to_thread_handle): Declare.
12109 * thread.c (gdbtypes.h): Include.
12110 (thread_to_thread_handle): New function.
12111
12112 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12113 (target_thread_info_to_thread_handle): Declare.
12114 * target.c (target_thread_info_to_thread_handle): New function.
12115 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12116 * target-delegates.c: Regenerate.
12117
12118 * linux-thread-db.c (class thread_db_target): Add method
12119 thread_info_to_thread_handle.
12120 (thread_db_target::thread_info_to_thread_handle): Define.
12121 * remote.c (class remote_target): Add new method
12122 thread_info_to_thread_handle.
12123 (remote_target::thread_info_to_thread_handle): Define.
12124
12125 2019-04-08 Pedro Alves <palves@redhat.com>
12126
12127 * common/common-exceptions.c (throw_exception): Don't create
12128 named object to throw; throw directly.
12129 (throw_it): Likewise. Don't initialize gdb_exception::message
12130 here, with new; pass FMT and AP to the ctor instead.
12131 * common/common-exceptions.h: Include <string>.
12132 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12133 const char *, va_list)): New ctor. Use std::make_shared.
12134 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12135 errors)): Delete.
12136 (gdb_exception_error::gdb_exception_error(enum errors, const char
12137 *, va_list)): New.
12138 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12139 Add assertion.
12140 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12141 errors)): Delete.
12142 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12143 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12144 Add assertion.
12145
12146 2019-04-08 Tom Tromey <tom@tromey.com>
12147
12148 * valops.c (value_rtti_indirect_type): Replace throw_exception
12149 with throw.
12150 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12151 with throw.
12152 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12153 throw.
12154 * target.c (target_translate_tls_address): Replace throw_exception
12155 with throw.
12156 * stack.c (frame_apply_command_count): Replace throw_exception
12157 with throw.
12158 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12159 throw.
12160 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12161 with throw.
12162 * rs6000-tdep.c (rs6000_frame_cache)
12163 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12164 * remote.c: Replace throw_exception with throw.
12165 * record-full.c (record_full_message, record_full_wait_1)
12166 (record_full_restore): Replace throw_exception with throw.
12167 * record-btrace.c:
12168 (get_thread_current_frame_id, record_btrace_start_replaying)
12169 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12170 (cmd_record_btrace_start): Replace throw_exception with throw.
12171 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12172 throw.
12173 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12174 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12175 * linespec.c:
12176 (find_linespec_symbols): Replace throw_exception with throw.
12177 * infrun.c (displaced_step_prepare, resume): Replace
12178 throw_exception with throw.
12179 * infcmd.c (post_create_inferior): Replace throw_exception with
12180 throw.
12181 * inf-loop.c (inferior_event_handler): Replace throw_exception
12182 with throw.
12183 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12184 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12185 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12186 (get_prev_frame_always, get_frame_pc_if_available)
12187 (get_frame_address_in_block_if_available, get_frame_language):
12188 Replace throw_exception with throw.
12189 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12190 throw_exception with throw.
12191 * eval.c (fetch_subexp_value, evaluate_var_value)
12192 (evaluate_funcall, evaluate_subexp_standard): Replace
12193 throw_exception with throw.
12194 * dwarf2loc.c (call_site_find_chain)
12195 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12196 Replace throw_exception with throw.
12197 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12198 with throw.
12199 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12200 throw.
12201 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12202 * completer.c (complete_line_internal): Replace throw_exception
12203 with throw.
12204 * compile/compile-object-run.c (compile_object_run): Replace
12205 throw_exception with throw.
12206 * cli/cli-script.c (process_next_line): Replace throw_exception
12207 with throw.
12208 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12209 (btrace_enable, btrace_maint_update_pt_packets): Replace
12210 throw_exception with throw.
12211 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12212 throw_exception with throw.
12213 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12214 throw_exception with throw.
12215 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12216 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12217 * aarch64-tdep.c (aarch64_make_prologue_cache)
12218 (aarch64_make_stub_cache): Replace throw_exception with throw.
12219
12220 2019-04-08 Tom Tromey <tom@tromey.com>
12221
12222 * common/common-exceptions.c (throw_exception): Rename from
12223 throw_exception_cxx. Remove old copy. Make argument const.
12224 (throw_it): Create and throw exception objects directly.
12225 * common/common-exceptions.h (throw_exception): Make argument
12226 const.
12227 (struct gdb_exception_error): Add constructor.
12228 (struct gdb_exception_quit): Add constructor.
12229
12230 2019-04-08 Tom Tromey <tom@tromey.com>
12231
12232 * common/common-exceptions.h (exception_rethrow): Don't declare.
12233 (TRY_SJLJ): Update comment.
12234 (TRY, CATCH, END_CATCH): Remove.
12235 * common/common-exceptions.c (exception_rethrow): Remove.
12236
12237 2019-04-08 Tom Tromey <tom@tromey.com>
12238
12239 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12240 Remove.
12241 (gdb_exception_error): Rename from
12242 gdb_exception_RETURN_MASK_ERROR.
12243 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12244 (gdb_quit_bad_alloc): Update.
12245 * aarch64-tdep.c: Update.
12246 * ada-lang.c: Update.
12247 * ada-typeprint.c: Update.
12248 * ada-valprint.c: Update.
12249 * amd64-tdep.c: Update.
12250 * arch-utils.c: Update.
12251 * break-catch-throw.c: Update.
12252 * breakpoint.c: Update.
12253 * btrace.c: Update.
12254 * c-varobj.c: Update.
12255 * cli/cli-cmds.c: Update.
12256 * cli/cli-interp.c: Update.
12257 * cli/cli-script.c: Update.
12258 * common/common-exceptions.c: Update.
12259 * common/new-op.c: Update.
12260 * common/selftest.c: Update.
12261 * compile/compile-c-symbols.c: Update.
12262 * compile/compile-cplus-symbols.c: Update.
12263 * compile/compile-object-load.c: Update.
12264 * compile/compile-object-run.c: Update.
12265 * completer.c: Update.
12266 * corelow.c: Update.
12267 * cp-abi.c: Update.
12268 * cp-support.c: Update.
12269 * cp-valprint.c: Update.
12270 * darwin-nat.c: Update.
12271 * disasm-selftests.c: Update.
12272 * dtrace-probe.c: Update.
12273 * dwarf-index-cache.c: Update.
12274 * dwarf-index-write.c: Update.
12275 * dwarf2-frame-tailcall.c: Update.
12276 * dwarf2-frame.c: Update.
12277 * dwarf2loc.c: Update.
12278 * dwarf2read.c: Update.
12279 * eval.c: Update.
12280 * event-loop.c: Update.
12281 * event-top.c: Update.
12282 * exec.c: Update.
12283 * f-valprint.c: Update.
12284 * fbsd-tdep.c: Update.
12285 * frame-unwind.c: Update.
12286 * frame.c: Update.
12287 * gdbtypes.c: Update.
12288 * gnu-v3-abi.c: Update.
12289 * guile/guile-internal.h: Update.
12290 * guile/scm-block.c: Update.
12291 * guile/scm-breakpoint.c: Update.
12292 * guile/scm-cmd.c: Update.
12293 * guile/scm-disasm.c: Update.
12294 * guile/scm-frame.c: Update.
12295 * guile/scm-lazy-string.c: Update.
12296 * guile/scm-math.c: Update.
12297 * guile/scm-param.c: Update.
12298 * guile/scm-ports.c: Update.
12299 * guile/scm-pretty-print.c: Update.
12300 * guile/scm-symbol.c: Update.
12301 * guile/scm-symtab.c: Update.
12302 * guile/scm-type.c: Update.
12303 * guile/scm-value.c: Update.
12304 * i386-linux-tdep.c: Update.
12305 * i386-tdep.c: Update.
12306 * inf-loop.c: Update.
12307 * infcall.c: Update.
12308 * infcmd.c: Update.
12309 * infrun.c: Update.
12310 * jit.c: Update.
12311 * language.c: Update.
12312 * linespec.c: Update.
12313 * linux-fork.c: Update.
12314 * linux-nat.c: Update.
12315 * linux-tdep.c: Update.
12316 * linux-thread-db.c: Update.
12317 * main.c: Update.
12318 * mi/mi-cmd-break.c: Update.
12319 * mi/mi-cmd-stack.c: Update.
12320 * mi/mi-interp.c: Update.
12321 * mi/mi-main.c: Update.
12322 * objc-lang.c: Update.
12323 * p-valprint.c: Update.
12324 * parse.c: Update.
12325 * ppc-linux-tdep.c: Update.
12326 * printcmd.c: Update.
12327 * python/py-arch.c: Update.
12328 * python/py-breakpoint.c: Update.
12329 * python/py-cmd.c: Update.
12330 * python/py-finishbreakpoint.c: Update.
12331 * python/py-frame.c: Update.
12332 * python/py-framefilter.c: Update.
12333 * python/py-gdb-readline.c: Update.
12334 * python/py-inferior.c: Update.
12335 * python/py-infthread.c: Update.
12336 * python/py-lazy-string.c: Update.
12337 * python/py-linetable.c: Update.
12338 * python/py-objfile.c: Update.
12339 * python/py-param.c: Update.
12340 * python/py-prettyprint.c: Update.
12341 * python/py-progspace.c: Update.
12342 * python/py-record-btrace.c: Update.
12343 * python/py-record.c: Update.
12344 * python/py-symbol.c: Update.
12345 * python/py-type.c: Update.
12346 * python/py-unwind.c: Update.
12347 * python/py-utils.c: Update.
12348 * python/py-value.c: Update.
12349 * python/python.c: Update.
12350 * record-btrace.c: Update.
12351 * record-full.c: Update.
12352 * remote-fileio.c: Update.
12353 * remote.c: Update.
12354 * riscv-tdep.c: Update.
12355 * rs6000-aix-tdep.c: Update.
12356 * rs6000-tdep.c: Update.
12357 * rust-exp.y: Update.
12358 * rust-lang.c: Update.
12359 * s390-tdep.c: Update.
12360 * selftest-arch.c: Update.
12361 * solib-dsbt.c: Update.
12362 * solib-frv.c: Update.
12363 * solib-spu.c: Update.
12364 * solib-svr4.c: Update.
12365 * solib.c: Update.
12366 * sparc64-linux-tdep.c: Update.
12367 * stack.c: Update.
12368 * symfile-mem.c: Update.
12369 * symmisc.c: Update.
12370 * target.c: Update.
12371 * thread.c: Update.
12372 * top.c: Update.
12373 * tracefile-tfile.c: Update.
12374 * tui/tui.c: Update.
12375 * typeprint.c: Update.
12376 * unittests/cli-utils-selftests.c: Update.
12377 * unittests/parse-connection-spec-selftests.c: Update.
12378 * valops.c: Update.
12379 * valprint.c: Update.
12380 * value.c: Update.
12381 * varobj.c: Update.
12382 * windows-nat.c: Update.
12383 * x86-linux-nat.c: Update.
12384 * xml-support.c: Update.
12385
12386 2019-04-08 Tom Tromey <tom@tromey.com>
12387
12388 * xml-support.c: Use C++ exception handling.
12389 * x86-linux-nat.c: Use C++ exception handling.
12390 * windows-nat.c: Use C++ exception handling.
12391 * varobj.c: Use C++ exception handling.
12392 * value.c: Use C++ exception handling.
12393 * valprint.c: Use C++ exception handling.
12394 * valops.c: Use C++ exception handling.
12395 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12396 handling.
12397 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12398 * typeprint.c: Use C++ exception handling.
12399 * tui/tui.c: Use C++ exception handling.
12400 * tracefile-tfile.c: Use C++ exception handling.
12401 * top.c: Use C++ exception handling.
12402 * thread.c: Use C++ exception handling.
12403 * target.c: Use C++ exception handling.
12404 * symmisc.c: Use C++ exception handling.
12405 * symfile-mem.c: Use C++ exception handling.
12406 * stack.c: Use C++ exception handling.
12407 * sparc64-linux-tdep.c: Use C++ exception handling.
12408 * solib.c: Use C++ exception handling.
12409 * solib-svr4.c: Use C++ exception handling.
12410 * solib-spu.c: Use C++ exception handling.
12411 * solib-frv.c: Use C++ exception handling.
12412 * solib-dsbt.c: Use C++ exception handling.
12413 * selftest-arch.c: Use C++ exception handling.
12414 * s390-tdep.c: Use C++ exception handling.
12415 * rust-lang.c: Use C++ exception handling.
12416 * rust-exp.y: Use C++ exception handling.
12417 * rs6000-tdep.c: Use C++ exception handling.
12418 * rs6000-aix-tdep.c: Use C++ exception handling.
12419 * riscv-tdep.c: Use C++ exception handling.
12420 * remote.c: Use C++ exception handling.
12421 * remote-fileio.c: Use C++ exception handling.
12422 * record-full.c: Use C++ exception handling.
12423 * record-btrace.c: Use C++ exception handling.
12424 * python/python.c: Use C++ exception handling.
12425 * python/py-value.c: Use C++ exception handling.
12426 * python/py-utils.c: Use C++ exception handling.
12427 * python/py-unwind.c: Use C++ exception handling.
12428 * python/py-type.c: Use C++ exception handling.
12429 * python/py-symbol.c: Use C++ exception handling.
12430 * python/py-record.c: Use C++ exception handling.
12431 * python/py-record-btrace.c: Use C++ exception handling.
12432 * python/py-progspace.c: Use C++ exception handling.
12433 * python/py-prettyprint.c: Use C++ exception handling.
12434 * python/py-param.c: Use C++ exception handling.
12435 * python/py-objfile.c: Use C++ exception handling.
12436 * python/py-linetable.c: Use C++ exception handling.
12437 * python/py-lazy-string.c: Use C++ exception handling.
12438 * python/py-infthread.c: Use C++ exception handling.
12439 * python/py-inferior.c: Use C++ exception handling.
12440 * python/py-gdb-readline.c: Use C++ exception handling.
12441 * python/py-framefilter.c: Use C++ exception handling.
12442 * python/py-frame.c: Use C++ exception handling.
12443 * python/py-finishbreakpoint.c: Use C++ exception handling.
12444 * python/py-cmd.c: Use C++ exception handling.
12445 * python/py-breakpoint.c: Use C++ exception handling.
12446 * python/py-arch.c: Use C++ exception handling.
12447 * printcmd.c: Use C++ exception handling.
12448 * ppc-linux-tdep.c: Use C++ exception handling.
12449 * parse.c: Use C++ exception handling.
12450 * p-valprint.c: Use C++ exception handling.
12451 * objc-lang.c: Use C++ exception handling.
12452 * mi/mi-main.c: Use C++ exception handling.
12453 * mi/mi-interp.c: Use C++ exception handling.
12454 * mi/mi-cmd-stack.c: Use C++ exception handling.
12455 * mi/mi-cmd-break.c: Use C++ exception handling.
12456 * main.c: Use C++ exception handling.
12457 * linux-thread-db.c: Use C++ exception handling.
12458 * linux-tdep.c: Use C++ exception handling.
12459 * linux-nat.c: Use C++ exception handling.
12460 * linux-fork.c: Use C++ exception handling.
12461 * linespec.c: Use C++ exception handling.
12462 * language.c: Use C++ exception handling.
12463 * jit.c: Use C++ exception handling.
12464 * infrun.c: Use C++ exception handling.
12465 * infcmd.c: Use C++ exception handling.
12466 * infcall.c: Use C++ exception handling.
12467 * inf-loop.c: Use C++ exception handling.
12468 * i386-tdep.c: Use C++ exception handling.
12469 * i386-linux-tdep.c: Use C++ exception handling.
12470 * guile/scm-value.c: Use C++ exception handling.
12471 * guile/scm-type.c: Use C++ exception handling.
12472 * guile/scm-symtab.c: Use C++ exception handling.
12473 * guile/scm-symbol.c: Use C++ exception handling.
12474 * guile/scm-pretty-print.c: Use C++ exception handling.
12475 * guile/scm-ports.c: Use C++ exception handling.
12476 * guile/scm-param.c: Use C++ exception handling.
12477 * guile/scm-math.c: Use C++ exception handling.
12478 * guile/scm-lazy-string.c: Use C++ exception handling.
12479 * guile/scm-frame.c: Use C++ exception handling.
12480 * guile/scm-disasm.c: Use C++ exception handling.
12481 * guile/scm-cmd.c: Use C++ exception handling.
12482 * guile/scm-breakpoint.c: Use C++ exception handling.
12483 * guile/scm-block.c: Use C++ exception handling.
12484 * guile/guile-internal.h: Use C++ exception handling.
12485 * gnu-v3-abi.c: Use C++ exception handling.
12486 * gdbtypes.c: Use C++ exception handling.
12487 * frame.c: Use C++ exception handling.
12488 * frame-unwind.c: Use C++ exception handling.
12489 * fbsd-tdep.c: Use C++ exception handling.
12490 * f-valprint.c: Use C++ exception handling.
12491 * exec.c: Use C++ exception handling.
12492 * event-top.c: Use C++ exception handling.
12493 * event-loop.c: Use C++ exception handling.
12494 * eval.c: Use C++ exception handling.
12495 * dwarf2read.c: Use C++ exception handling.
12496 * dwarf2loc.c: Use C++ exception handling.
12497 * dwarf2-frame.c: Use C++ exception handling.
12498 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12499 * dwarf-index-write.c: Use C++ exception handling.
12500 * dwarf-index-cache.c: Use C++ exception handling.
12501 * dtrace-probe.c: Use C++ exception handling.
12502 * disasm-selftests.c: Use C++ exception handling.
12503 * darwin-nat.c: Use C++ exception handling.
12504 * cp-valprint.c: Use C++ exception handling.
12505 * cp-support.c: Use C++ exception handling.
12506 * cp-abi.c: Use C++ exception handling.
12507 * corelow.c: Use C++ exception handling.
12508 * completer.c: Use C++ exception handling.
12509 * compile/compile-object-run.c: Use C++ exception handling.
12510 * compile/compile-object-load.c: Use C++ exception handling.
12511 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12512 * compile/compile-c-symbols.c: Use C++ exception handling.
12513 * common/selftest.c: Use C++ exception handling.
12514 * common/new-op.c: Use C++ exception handling.
12515 * cli/cli-script.c: Use C++ exception handling.
12516 * cli/cli-interp.c: Use C++ exception handling.
12517 * cli/cli-cmds.c: Use C++ exception handling.
12518 * c-varobj.c: Use C++ exception handling.
12519 * btrace.c: Use C++ exception handling.
12520 * breakpoint.c: Use C++ exception handling.
12521 * break-catch-throw.c: Use C++ exception handling.
12522 * arch-utils.c: Use C++ exception handling.
12523 * amd64-tdep.c: Use C++ exception handling.
12524 * ada-valprint.c: Use C++ exception handling.
12525 * ada-typeprint.c: Use C++ exception handling.
12526 * ada-lang.c: Use C++ exception handling.
12527 * aarch64-tdep.c: Use C++ exception handling.
12528
12529 2019-04-08 Tom Tromey <tom@tromey.com>
12530
12531 * xml-support.c (gdb_xml_parser::parse): Update.
12532 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12533 * value.c (show_convenience): Update.
12534 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12535 (test_parse_flags_qcs): Update.
12536 * thread.c (thr_try_catch_cmd): Update.
12537 * target.c (target_translate_tls_address): Update.
12538 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12539 (info_frame_command_core, frame_apply_command_count): Update.
12540 * rust-exp.y (rust_lex_exception_test): Update.
12541 * riscv-tdep.c (riscv_print_one_register_info): Update.
12542 * remote.c (remote_target::enable_btrace): Update.
12543 * record-btrace.c (record_btrace_enable_warn): Update.
12544 * python/py-utils.c (gdbpy_convert_exception): Update.
12545 * printcmd.c (do_one_display, print_variable_and_value): Update.
12546 * mi/mi-main.c (mi_print_exception): Update.
12547 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12548 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12549 * linux-nat.c (linux_nat_target::attach): Update.
12550 * linux-fork.c (class scoped_switch_fork_info): Update.
12551 * infrun.c (displaced_step_prepare): Update.
12552 * infcall.c (call_function_by_hand_dummy): Update.
12553 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12554 * gnu-v3-abi.c (print_one_vtable): Update.
12555 * frame.c (get_prev_frame_always): Update.
12556 * f-valprint.c (info_common_command_for_block): Update.
12557 * exec.c (try_open_exec_file): Update.
12558 * exceptions.c (print_exception, exception_print)
12559 (exception_fprintf, exception_print_same): Update.
12560 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12561 * dwarf-index-cache.c (index_cache::store)
12562 (index_cache::lookup_gdb_index): Update.
12563 * darwin-nat.c (maybe_cache_shell): Update.
12564 * cp-valprint.c (cp_print_value_fields): Update.
12565 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12566 (gcc_cplus_symbol_address): Update.
12567 * compile/compile-c-symbols.c (gcc_convert_symbol)
12568 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12569 * common/selftest.c: Update.
12570 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12571 a std::string.
12572 (exception_try_scope_entry, exception_try_scope_exit): Don't
12573 declare.
12574 (struct exception_try_scope): Remove.
12575 (TRY): Don't use exception_try_scope.
12576 (struct gdb_exception): Add constructor, operator=.
12577 <what>: New method.
12578 (struct gdb_exception_RETURN_MASK_ALL)
12579 (struct gdb_exception_RETURN_MASK_ERROR)
12580 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12581 (struct gdb_quit_bad_alloc): Update.
12582 * common/common-exceptions.c (exception_none): Change
12583 initializer.
12584 (struct catcher) <state, exception>: Initialize inline.
12585 <prev>: Remove member.
12586 (current_catcher): Remove.
12587 (catchers): New global.
12588 (exceptions_state_mc_init): Simplify.
12589 (catcher_pop): Remove.
12590 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12591 (try_scope_depth, exception_try_scope_entry)
12592 (exception_try_scope_exit): Remove.
12593 (throw_exception_sjlj): Update.
12594 (exception_messages, exception_messages_size): Remove.
12595 (throw_it): Simplify.
12596 (gdb_exception_sliced_copy): Remove.
12597 (throw_exception_cxx): Update.
12598 * cli/cli-script.c (script_from_file): Update.
12599 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12600 Update.
12601 * ada-valprint.c (ada_val_print): Update.
12602 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12603 (create_excep_cond_exprs): Update.
12604
12605 2019-04-08 Tom Tromey <tom@tromey.com>
12606
12607 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12608 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12609 (TRY, CATCH, END_CATCH): Remove some definitions.
12610 * common/common-exceptions.c: Don't use GDB_XCPT.
12611 (catcher_list_size): Remove.
12612 (throw_exception, throw_it): Simplify.
12613
12614 2019-04-05 Tom Tromey <tom@tromey.com>
12615
12616 Revert the header-sorting patch.
12617 * ft32-tdep.c: Revert.
12618 * frv-tdep.c: Revert.
12619 * frv-linux-tdep.c: Revert.
12620 * frame.c: Revert.
12621 * frame-unwind.c: Revert.
12622 * frame-base.c: Revert.
12623 * fork-child.c: Revert.
12624 * findvar.c: Revert.
12625 * findcmd.c: Revert.
12626 * filesystem.c: Revert.
12627 * filename-seen-cache.h: Revert.
12628 * filename-seen-cache.c: Revert.
12629 * fbsd-tdep.c: Revert.
12630 * fbsd-nat.h: Revert.
12631 * fbsd-nat.c: Revert.
12632 * f-valprint.c: Revert.
12633 * f-typeprint.c: Revert.
12634 * f-lang.c: Revert.
12635 * extension.h: Revert.
12636 * extension.c: Revert.
12637 * extension-priv.h: Revert.
12638 * expprint.c: Revert.
12639 * exec.h: Revert.
12640 * exec.c: Revert.
12641 * exceptions.c: Revert.
12642 * event-top.c: Revert.
12643 * event-loop.c: Revert.
12644 * eval.c: Revert.
12645 * elfread.c: Revert.
12646 * dwarf2read.h: Revert.
12647 * dwarf2read.c: Revert.
12648 * dwarf2loc.c: Revert.
12649 * dwarf2expr.h: Revert.
12650 * dwarf2expr.c: Revert.
12651 * dwarf2-frame.c: Revert.
12652 * dwarf2-frame-tailcall.c: Revert.
12653 * dwarf-index-write.h: Revert.
12654 * dwarf-index-write.c: Revert.
12655 * dwarf-index-common.c: Revert.
12656 * dwarf-index-cache.h: Revert.
12657 * dwarf-index-cache.c: Revert.
12658 * dummy-frame.c: Revert.
12659 * dtrace-probe.c: Revert.
12660 * disasm.h: Revert.
12661 * disasm.c: Revert.
12662 * disasm-selftests.c: Revert.
12663 * dictionary.c: Revert.
12664 * dicos-tdep.c: Revert.
12665 * demangle.c: Revert.
12666 * dcache.h: Revert.
12667 * dcache.c: Revert.
12668 * darwin-nat.h: Revert.
12669 * darwin-nat.c: Revert.
12670 * darwin-nat-info.c: Revert.
12671 * d-valprint.c: Revert.
12672 * d-namespace.c: Revert.
12673 * d-lang.c: Revert.
12674 * ctf.c: Revert.
12675 * csky-tdep.c: Revert.
12676 * csky-linux-tdep.c: Revert.
12677 * cris-tdep.c: Revert.
12678 * cris-linux-tdep.c: Revert.
12679 * cp-valprint.c: Revert.
12680 * cp-support.c: Revert.
12681 * cp-namespace.c: Revert.
12682 * cp-abi.c: Revert.
12683 * corelow.c: Revert.
12684 * corefile.c: Revert.
12685 * continuations.c: Revert.
12686 * completer.h: Revert.
12687 * completer.c: Revert.
12688 * complaints.c: Revert.
12689 * coffread.c: Revert.
12690 * coff-pe-read.c: Revert.
12691 * cli-out.h: Revert.
12692 * cli-out.c: Revert.
12693 * charset.c: Revert.
12694 * c-varobj.c: Revert.
12695 * c-valprint.c: Revert.
12696 * c-typeprint.c: Revert.
12697 * c-lang.c: Revert.
12698 * buildsym.c: Revert.
12699 * buildsym-legacy.c: Revert.
12700 * build-id.h: Revert.
12701 * build-id.c: Revert.
12702 * btrace.c: Revert.
12703 * bsd-uthread.c: Revert.
12704 * breakpoint.h: Revert.
12705 * breakpoint.c: Revert.
12706 * break-catch-throw.c: Revert.
12707 * break-catch-syscall.c: Revert.
12708 * break-catch-sig.c: Revert.
12709 * blockframe.c: Revert.
12710 * block.c: Revert.
12711 * bfin-tdep.c: Revert.
12712 * bfin-linux-tdep.c: Revert.
12713 * bfd-target.c: Revert.
12714 * bcache.c: Revert.
12715 * ax-general.c: Revert.
12716 * ax-gdb.h: Revert.
12717 * ax-gdb.c: Revert.
12718 * avr-tdep.c: Revert.
12719 * auxv.c: Revert.
12720 * auto-load.c: Revert.
12721 * arm-wince-tdep.c: Revert.
12722 * arm-tdep.c: Revert.
12723 * arm-symbian-tdep.c: Revert.
12724 * arm-pikeos-tdep.c: Revert.
12725 * arm-obsd-tdep.c: Revert.
12726 * arm-nbsd-tdep.c: Revert.
12727 * arm-nbsd-nat.c: Revert.
12728 * arm-linux-tdep.c: Revert.
12729 * arm-linux-nat.c: Revert.
12730 * arm-fbsd-tdep.c: Revert.
12731 * arm-fbsd-nat.c: Revert.
12732 * arm-bsd-tdep.c: Revert.
12733 * arch-utils.c: Revert.
12734 * arc-tdep.c: Revert.
12735 * arc-newlib-tdep.c: Revert.
12736 * annotate.h: Revert.
12737 * annotate.c: Revert.
12738 * amd64-windows-tdep.c: Revert.
12739 * amd64-windows-nat.c: Revert.
12740 * amd64-tdep.c: Revert.
12741 * amd64-sol2-tdep.c: Revert.
12742 * amd64-obsd-tdep.c: Revert.
12743 * amd64-obsd-nat.c: Revert.
12744 * amd64-nbsd-tdep.c: Revert.
12745 * amd64-nbsd-nat.c: Revert.
12746 * amd64-nat.c: Revert.
12747 * amd64-linux-tdep.c: Revert.
12748 * amd64-linux-nat.c: Revert.
12749 * amd64-fbsd-tdep.c: Revert.
12750 * amd64-fbsd-nat.c: Revert.
12751 * amd64-dicos-tdep.c: Revert.
12752 * amd64-darwin-tdep.c: Revert.
12753 * amd64-bsd-nat.c: Revert.
12754 * alpha-tdep.c: Revert.
12755 * alpha-obsd-tdep.c: Revert.
12756 * alpha-nbsd-tdep.c: Revert.
12757 * alpha-mdebug-tdep.c: Revert.
12758 * alpha-linux-tdep.c: Revert.
12759 * alpha-linux-nat.c: Revert.
12760 * alpha-bsd-tdep.c: Revert.
12761 * alpha-bsd-nat.c: Revert.
12762 * aix-thread.c: Revert.
12763 * agent.c: Revert.
12764 * addrmap.c: Revert.
12765 * ada-varobj.c: Revert.
12766 * ada-valprint.c: Revert.
12767 * ada-typeprint.c: Revert.
12768 * ada-tasks.c: Revert.
12769 * ada-lang.c: Revert.
12770 * aarch64-tdep.c: Revert.
12771 * aarch64-ravenscar-thread.c: Revert.
12772 * aarch64-newlib-tdep.c: Revert.
12773 * aarch64-linux-tdep.c: Revert.
12774 * aarch64-linux-nat.c: Revert.
12775 * aarch64-fbsd-tdep.c: Revert.
12776 * aarch64-fbsd-nat.c: Revert.
12777 * aarch32-linux-nat.c: Revert.
12778
12779 2019-04-05 Tom Tromey <tom@tromey.com>
12780
12781 * ft32-tdep.c: Sort headers.
12782 * frv-tdep.c: Sort headers.
12783 * frv-linux-tdep.c: Sort headers.
12784 * frame.c: Sort headers.
12785 * frame-unwind.c: Sort headers.
12786 * frame-base.c: Sort headers.
12787 * fork-child.c: Sort headers.
12788 * findvar.c: Sort headers.
12789 * findcmd.c: Sort headers.
12790 * filesystem.c: Sort headers.
12791 * filename-seen-cache.h: Sort headers.
12792 * filename-seen-cache.c: Sort headers.
12793 * fbsd-tdep.c: Sort headers.
12794 * fbsd-nat.h: Sort headers.
12795 * fbsd-nat.c: Sort headers.
12796 * f-valprint.c: Sort headers.
12797 * f-typeprint.c: Sort headers.
12798 * f-lang.c: Sort headers.
12799 * extension.h: Sort headers.
12800 * extension.c: Sort headers.
12801 * extension-priv.h: Sort headers.
12802 * expprint.c: Sort headers.
12803 * exec.h: Sort headers.
12804 * exec.c: Sort headers.
12805 * exceptions.c: Sort headers.
12806 * event-top.c: Sort headers.
12807 * event-loop.c: Sort headers.
12808 * eval.c: Sort headers.
12809 * elfread.c: Sort headers.
12810 * dwarf2read.h: Sort headers.
12811 * dwarf2read.c: Sort headers.
12812 * dwarf2loc.c: Sort headers.
12813 * dwarf2expr.h: Sort headers.
12814 * dwarf2expr.c: Sort headers.
12815 * dwarf2-frame.c: Sort headers.
12816 * dwarf2-frame-tailcall.c: Sort headers.
12817 * dwarf-index-write.h: Sort headers.
12818 * dwarf-index-write.c: Sort headers.
12819 * dwarf-index-common.c: Sort headers.
12820 * dwarf-index-cache.h: Sort headers.
12821 * dwarf-index-cache.c: Sort headers.
12822 * dummy-frame.c: Sort headers.
12823 * dtrace-probe.c: Sort headers.
12824 * disasm.h: Sort headers.
12825 * disasm.c: Sort headers.
12826 * disasm-selftests.c: Sort headers.
12827 * dictionary.c: Sort headers.
12828 * dicos-tdep.c: Sort headers.
12829 * demangle.c: Sort headers.
12830 * dcache.h: Sort headers.
12831 * dcache.c: Sort headers.
12832 * darwin-nat.h: Sort headers.
12833 * darwin-nat.c: Sort headers.
12834 * darwin-nat-info.c: Sort headers.
12835 * d-valprint.c: Sort headers.
12836 * d-namespace.c: Sort headers.
12837 * d-lang.c: Sort headers.
12838 * ctf.c: Sort headers.
12839 * csky-tdep.c: Sort headers.
12840 * csky-linux-tdep.c: Sort headers.
12841 * cris-tdep.c: Sort headers.
12842 * cris-linux-tdep.c: Sort headers.
12843 * cp-valprint.c: Sort headers.
12844 * cp-support.c: Sort headers.
12845 * cp-namespace.c: Sort headers.
12846 * cp-abi.c: Sort headers.
12847 * corelow.c: Sort headers.
12848 * corefile.c: Sort headers.
12849 * continuations.c: Sort headers.
12850 * completer.h: Sort headers.
12851 * completer.c: Sort headers.
12852 * complaints.c: Sort headers.
12853 * coffread.c: Sort headers.
12854 * coff-pe-read.c: Sort headers.
12855 * cli-out.h: Sort headers.
12856 * cli-out.c: Sort headers.
12857 * charset.c: Sort headers.
12858 * c-varobj.c: Sort headers.
12859 * c-valprint.c: Sort headers.
12860 * c-typeprint.c: Sort headers.
12861 * c-lang.c: Sort headers.
12862 * buildsym.c: Sort headers.
12863 * buildsym-legacy.c: Sort headers.
12864 * build-id.h: Sort headers.
12865 * build-id.c: Sort headers.
12866 * btrace.c: Sort headers.
12867 * bsd-uthread.c: Sort headers.
12868 * breakpoint.h: Sort headers.
12869 * breakpoint.c: Sort headers.
12870 * break-catch-throw.c: Sort headers.
12871 * break-catch-syscall.c: Sort headers.
12872 * break-catch-sig.c: Sort headers.
12873 * blockframe.c: Sort headers.
12874 * block.c: Sort headers.
12875 * bfin-tdep.c: Sort headers.
12876 * bfin-linux-tdep.c: Sort headers.
12877 * bfd-target.c: Sort headers.
12878 * bcache.c: Sort headers.
12879 * ax-general.c: Sort headers.
12880 * ax-gdb.h: Sort headers.
12881 * ax-gdb.c: Sort headers.
12882 * avr-tdep.c: Sort headers.
12883 * auxv.c: Sort headers.
12884 * auto-load.c: Sort headers.
12885 * arm-wince-tdep.c: Sort headers.
12886 * arm-tdep.c: Sort headers.
12887 * arm-symbian-tdep.c: Sort headers.
12888 * arm-pikeos-tdep.c: Sort headers.
12889 * arm-obsd-tdep.c: Sort headers.
12890 * arm-nbsd-tdep.c: Sort headers.
12891 * arm-nbsd-nat.c: Sort headers.
12892 * arm-linux-tdep.c: Sort headers.
12893 * arm-linux-nat.c: Sort headers.
12894 * arm-fbsd-tdep.c: Sort headers.
12895 * arm-fbsd-nat.c: Sort headers.
12896 * arm-bsd-tdep.c: Sort headers.
12897 * arch-utils.c: Sort headers.
12898 * arc-tdep.c: Sort headers.
12899 * arc-newlib-tdep.c: Sort headers.
12900 * annotate.h: Sort headers.
12901 * annotate.c: Sort headers.
12902 * amd64-windows-tdep.c: Sort headers.
12903 * amd64-windows-nat.c: Sort headers.
12904 * amd64-tdep.c: Sort headers.
12905 * amd64-sol2-tdep.c: Sort headers.
12906 * amd64-obsd-tdep.c: Sort headers.
12907 * amd64-obsd-nat.c: Sort headers.
12908 * amd64-nbsd-tdep.c: Sort headers.
12909 * amd64-nbsd-nat.c: Sort headers.
12910 * amd64-nat.c: Sort headers.
12911 * amd64-linux-tdep.c: Sort headers.
12912 * amd64-linux-nat.c: Sort headers.
12913 * amd64-fbsd-tdep.c: Sort headers.
12914 * amd64-fbsd-nat.c: Sort headers.
12915 * amd64-dicos-tdep.c: Sort headers.
12916 * amd64-darwin-tdep.c: Sort headers.
12917 * amd64-bsd-nat.c: Sort headers.
12918 * alpha-tdep.c: Sort headers.
12919 * alpha-obsd-tdep.c: Sort headers.
12920 * alpha-nbsd-tdep.c: Sort headers.
12921 * alpha-mdebug-tdep.c: Sort headers.
12922 * alpha-linux-tdep.c: Sort headers.
12923 * alpha-linux-nat.c: Sort headers.
12924 * alpha-bsd-tdep.c: Sort headers.
12925 * alpha-bsd-nat.c: Sort headers.
12926 * aix-thread.c: Sort headers.
12927 * agent.c: Sort headers.
12928 * addrmap.c: Sort headers.
12929 * ada-varobj.c: Sort headers.
12930 * ada-valprint.c: Sort headers.
12931 * ada-typeprint.c: Sort headers.
12932 * ada-tasks.c: Sort headers.
12933 * ada-lang.c: Sort headers.
12934 * aarch64-tdep.c: Sort headers.
12935 * aarch64-ravenscar-thread.c: Sort headers.
12936 * aarch64-newlib-tdep.c: Sort headers.
12937 * aarch64-linux-tdep.c: Sort headers.
12938 * aarch64-linux-nat.c: Sort headers.
12939 * aarch64-fbsd-tdep.c: Sort headers.
12940 * aarch64-fbsd-nat.c: Sort headers.
12941 * aarch32-linux-nat.c: Sort headers.
12942
12943 2019-04-04 Tom Tromey <tom@tromey.com>
12944
12945 * varobj.c (varobj_create): Update.
12946 * rust-exp.y (struct rust_parser) <update_innermost_block,
12947 lookup_symbol>: New methods.
12948 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12949 Rename.
12950 (rust_parser::rust_lookup_type)
12951 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12952 * printcmd.c (display_command, do_one_display): Update.
12953 * parser-defs.h (struct parser_state) <parser_state>: Add
12954 "tracker" parameter.
12955 (block_tracker): New member.
12956 (class innermost_block_tracker) <innermost_block_tracker>: Add
12957 "types" parameter.
12958 <reset>: Remove method.
12959 (innermost_block): Don't declare.
12960 (null_post_parser): Update.
12961 * parse.c (innermost_block): Remove global.
12962 (write_dollar_variable): Update.
12963 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12964 Remove "tracker_types" parameter.
12965 (parse_expression): Add "tracker" parameter.
12966 (parse_expression_for_completion): Update.
12967 (null_post_parser): Add "tracker" parameter.
12968 * p-exp.y: Update rules.
12969 * m2-exp.y: Update rules.
12970 * language.h (struct language_defn) <la_post_parser>: Add
12971 "tracker" parameter.
12972 * go-exp.y: Update rules.
12973 * f-exp.y: Update rules.
12974 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12975 parameter.
12976 * d-exp.y: Update rules.
12977 * c-exp.y: Update rules.
12978 * breakpoint.c (set_breakpoint_condition): Create an
12979 innermost_block_tracker.
12980 (watch_command_1): Likewise.
12981 * ada-lang.c (resolve): Add "tracker" parameter.
12982 (resolve_subexp): Likewise.
12983 * ada-exp.y (write_var_from_sym): Update.
12984
12985 2019-04-04 Tom Tromey <tom@tromey.com>
12986
12987 * type-stack.h: New file.
12988 * type-stack.c: New file.
12989 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12990 type-stack.h.
12991 (insert_into_type_stack, insert_type, push_type, push_type_int)
12992 (insert_type_address_space, pop_type, pop_type_int)
12993 (pop_typelist, pop_type_stack, append_type_stack)
12994 (push_type_stack, get_type_stack, push_typelist)
12995 (follow_type_instance_flags, follow_types): Don't declare.
12996 * parse.c (type_stack): Remove global.
12997 (parse_exp_in_context): Update.
12998 (insert_into_type_stack, insert_type, push_type, push_type_int)
12999 (insert_type_address_space, pop_type, pop_type_int)
13000 (pop_typelist, pop_type_stack, append_type_stack)
13001 (push_type_stack, get_type_stack, push_typelist)
13002 (follow_type_instance_flags, follow_types): Remove (moved to
13003 type-stack.c).
13004 * f-exp.y (type_stack): New global.
13005 Update rules.
13006 (push_kind_type, f_parse): Update.
13007 * d-exp.y (type_stack): New global.
13008 Update rules.
13009 (d_parse): Update.
13010 * c-exp.y (struct c_parse_state) <type_stack>: New member.
13011 Update rules.
13012 * Makefile.in (COMMON_SFILES): Add type-stack.c.
13013 (HFILES_NO_SRCDIR): Add type-stack.h.
13014
13015 2019-04-04 Tom Tromey <tom@tromey.com>
13016
13017 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
13018 (rust_parser::convert_ast_to_expression, rust_parse)
13019 (rust_lex_test_completion, rust_lex_tests): Update.
13020 * parser-defs.h (struct expr_completion_state): New.
13021 (struct parser_state) <parser_state>: Add completion parameter.
13022 <mark_struct_expression, mark_completion_tag>: New methods.
13023 <parse_completion, m_completion_state>: New members.
13024 (prefixify_expression, null_post_parser): Update.
13025 (mark_struct_expression, mark_completion_tag): Don't declare.
13026 * parse.c (parse_completion, expout_last_struct)
13027 (expout_tag_completion_type, expout_completion_name): Remove
13028 globals.
13029 (parser_state::mark_struct_expression)
13030 (parser_state::mark_completion_tag): Now methods.
13031 (prefixify_expression): Add last_struct parameter.
13032 (prefixify_subexp): Likewise.
13033 (parse_exp_1): Update.
13034 (parse_exp_in_context): Add cstate parameter. Update.
13035 (parse_expression_for_completion): Create an
13036 expr_completion_state.
13037 (null_post_parser): Add "completion" parameter.
13038 * p-exp.y: Update rules.
13039 (yylex): Update.
13040 * language.h (struct language_defn) <la_post_parser>: Add
13041 "completing" parameter.
13042 * go-exp.y: Update rules.
13043 (lex_one_token): Update.
13044 * expression.h (parse_completion): Don't declare.
13045 * d-exp.y: Update rules.
13046 (lex_one_token): Update rules.
13047 * c-exp.y: Update rules.
13048 (lex_one_token): Update.
13049 * ada-lang.c (resolve): Add "parse_completion" parameter.
13050 (resolve_subexp): Likewise.
13051 (ada_resolve_function): Likewise.
13052
13053 2019-04-04 Tom Tromey <tom@tromey.com>
13054
13055 * parser-defs.h (struct parser_state) <start_arglist,
13056 end_arglist>: New methods.
13057 <arglist_len, m_funcall_chain>: New members.
13058 (arglist_len, start_arglist, end_arglist): Don't declare.
13059 * parse.c (arglist_len, funcall_chain): Remove global.
13060 (start_arglist, end_arglist): Remove functions.
13061 (parse_exp_in_context): Update.
13062 * p-exp.y: Update rules.
13063 * m2-exp.y: Update rules.
13064 * go-exp.y: Update rules.
13065 * f-exp.y: Update rules.
13066 * d-exp.y: Update rules.
13067 * c-exp.y: Update rules.
13068
13069 2019-04-04 Tom Tromey <tom@tromey.com>
13070
13071 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
13072 lex_operator, push_back>: New methods.
13073 Update all rules.
13074 (rust_parser::lex_hex, lex_escape): Rename and update.
13075 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
13076 (rust_parser::lex_operator): Rename and update.
13077 (rust_parser::lex_number, rustyylex, rustyyerror)
13078 (rust_lex_test_init, rust_lex_test_sequence)
13079 (rust_lex_test_push_back, rust_lex_tests): Update.
13080 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
13081 parameter.
13082 <lexptr, prev_lexptr>: New members.
13083 (lexptr, prev_lexptr): Don't declare.
13084 * parse.c (lexptr, prev_lexptr): Remove globals.
13085 (parse_exp_in_context): Update.
13086 * p-exp.y (yylex, yyerror): Update.
13087 * m2-exp.y (parse_number, yylex, yyerror): Update.
13088 * go-exp.y (lex_one_token, yyerror): Update.
13089 * f-exp.y (match_string_literal, yylex, yyerror): Update.
13090 * d-exp.y (lex_one_token, yyerror): Update.
13091 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
13092 (lex_one_token, yyerror): Update.
13093 * ada-lex.l (YY_INPUT): Update.
13094 (rewind_to_char): Update.
13095 * ada-exp.y (yyerror): Update.
13096
13097 2019-04-04 Tom Tromey <tom@tromey.com>
13098
13099 * rust-exp.y (rustyylex, rust_lex_tests): Update.
13100 * parser-defs.h (struct parser_state) <parser_state>: Add new
13101 parameter.
13102 <comma_terminates>: New member.
13103 (comma_terminates): Don't declare global.
13104 * parse.c (comma_terminates): Remove global.
13105 (parse_exp_in_context): Update.
13106 * p-exp.y (yylex): Update.
13107 * m2-exp.y (yylex): Update.
13108 * go-exp.y (lex_one_token): Update.
13109 * f-exp.y (yylex): Update.
13110 * d-exp.y (lex_one_token): Update.
13111 * c-exp.y (lex_one_token): Update.
13112 * ada-lex.l: Update.
13113
13114 2019-04-04 Tom Tromey <tom@tromey.com>
13115
13116 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13117 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13118 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13119 * parser-defs.h (paren_depth): Don't declare.
13120 * parse.c (paren_depth): Remove global.
13121 (parse_exp_in_context): Update.
13122 * p-exp.y (paren_depth): New global.
13123 (pascal_parse): Initialize it.
13124 * m2-exp.y (paren_depth): New global.
13125 (m2_parse): Initialize it.
13126 * go-exp.y (paren_depth): New global.
13127 (go_parse): Initialize it.
13128 * f-exp.y (paren_depth): New global.
13129 (f_parse): Initialize it.
13130 * d-exp.y (paren_depth): New global.
13131 (d_parse): Initialize it.
13132 * c-exp.y (paren_depth): New global.
13133 (c_parse): Initialize it.
13134 * ada-lex.l (paren_depth): New global.
13135 (lexer_init): Initialize it.
13136
13137 2019-04-04 Tom Tromey <tom@tromey.com>
13138
13139 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13140 (rust_parser::convert_ast_to_type)
13141 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13142 * parser-defs.h (struct parser_state) <parser_state>: Add
13143 parameters. Initialize new members.
13144 <expression_context_block, expression_context_pc>: New members.
13145 * parse.c (expression_context_block, expression_context_pc):
13146 Remove globals.
13147 (parse_exp_in_context): Update.
13148 * p-exp.y: Update all rules.
13149 (yylex): Update.
13150 * m2-exp.y: Update all rules.
13151 (yylex): Update.
13152 * go-exp.y (yylex): Update.
13153 * f-exp.y (yylex): Update.
13154 * d-exp.y: Update all rules.
13155 (yylex): Update.
13156 * c-exp.y: Update all rules.
13157 (lex_one_token, classify_name, yylex, c_parse): Update.
13158 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13159
13160 2019-04-04 Tom Tromey <tom@tromey.com>
13161
13162 * gdbarch.h, gdbarch.c: Rebuild.
13163 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13164 * stap-probe.h:
13165 (struct stap_parse_info): Replace "parser_state" with
13166 "expr_builder".
13167 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13168 (parser_state): New class.
13169 * parse.c (expr_builder): Rename.
13170 (expr_builder::release): Rename.
13171 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13172 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13173 (write_exp_elt_longcst, write_exp_elt_floatcst)
13174 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13175 (write_exp_string_vector, write_exp_bitstring)
13176 (write_exp_msymbol, mark_struct_expression)
13177 (write_dollar_variable)
13178 (insert_type_address_space, increase_expout_size): Replace
13179 "parser_state" with "expr_builder".
13180 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13181 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13182 "parser_state" with "expr_builder".
13183
13184 2019-04-04 Tom Tromey <tom@tromey.com>
13185
13186 * rust-exp.y: Replace "parse_language" with method call.
13187 * p-exp.y:
13188 (yylex): Replace "parse_language" with method call.
13189 * m2-exp.y:
13190 (yylex): Replace "parse_language" with method call.
13191 * go-exp.y (classify_name): Replace "parse_language" with method
13192 call.
13193 * f-exp.y (yylex): Replace "parse_language" with method call.
13194 * d-exp.y (lex_one_token): Replace "parse_language" with method
13195 call.
13196 * c-exp.y:
13197 (lex_one_token, classify_name, yylex): Replace "parse_language"
13198 with method call.
13199 * ada-exp.y (find_primitive_type, type_char)
13200 (type_system_address): Replace "parse_language" with method call.
13201
13202 2019-04-04 Tom Tromey <tom@tromey.com>
13203
13204 * rust-exp.y: Replace "parse_gdbarch" with method call.
13205 * parse.c (write_dollar_variable, insert_type_address_space):
13206 Replace "parse_gdbarch" with method call.
13207 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13208 call.
13209 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13210 call.
13211 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13212 "parse_gdbarch" with method call.
13213 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13214 with method call.
13215 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13216 "parse_gdbarch" with method call.
13217 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13218 "parse_gdbarch" with method call.
13219 * c-exp.y (parse_type, parse_number, classify_name): Replace
13220 "parse_gdbarch" with method call.
13221 * ada-lex.l: Replace "parse_gdbarch" with method call.
13222 * ada-exp.y (parse_type, find_primitive_type, type_char)
13223 (type_system_address): Replace "parse_gdbarch" with method call.
13224
13225 2019-04-04 Tom Tromey <tom@tromey.com>
13226
13227 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13228 * stap-probe.c (stap_parse_argument): Update.
13229 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13230 initial_size parameter.
13231 * rust-exp.y (rust_lex_tests): Update.
13232 * parse.c (parser_state): Update.
13233 (parse_exp_in_context): Update.
13234 * parser-defs.h (struct parser_state) <parser_state>: Remove
13235 "initial_size" parameter.
13236
13237 2019-04-04 Tom Tromey <tom@tromey.com>
13238
13239 * parser-defs.h (increase_expout_size): Don't declare.
13240 * parse.c (increase_expout_size): Now static.
13241
13242 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13243
13244 * gnu-nat.c (gnu_nat_target::wait): Fix
13245 target_waitstatus_to_string call.
13246
13247 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * eval.c (evaluate_subexp_standard): Handle internal functions
13250 during Fortran function call handling.
13251
13252 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13253
13254 * NEWS: Mention new internal functions.
13255 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13256 (read_base_type): Use dwarf2_init_complex_target_type.
13257 * value.c (creal_internal_fn): New function.
13258 (cimag_internal_fn): New function.
13259 (_initialize_values): Register new internal functions.
13260
13261 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13262
13263 * infrun.c (stop_all_threads): If debug_infrun, always
13264 trace the wait status after wait_one, using
13265 target_waitstatus_to_string and target_pid_to_str.
13266 (handle_inferior_event): Replace various trace of
13267 wait status kind by a single trace.
13268 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13269 wait status kind image by target_waitstatus_to_string.
13270 * target/waitstatus.c (target_waitstatus_to_string): Fix
13271 obsolete comment.
13272
13273 2019-04-01 Tom Tromey <tromey@adacore.com>
13274
13275 PR symtab/23331:
13276 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13277
13278 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13279 Pedro Alves <palves@redhat.com>
13280
13281 * top.c (quit_force): Call 'finalize_values'.
13282 * value.c (finalize_values): New function.
13283 * value.h (finalize_values): Declare.
13284
13285 2019-03-30 Eli Zaretskii <eliz@gnu.org>
13286
13287 * NEWS: Announce $_gdb_major and $_gdb_minor.
13288
13289 * top.c (init_gdb_version_vars): New function.
13290 (gdb_init): Call init_gdb_version_vars.
13291
13292 2019-03-29 Tom Tromey <tromey@adacore.com>
13293
13294 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13295 help text. Remove dead code.
13296
13297 2019-03-29 Keith Seitz <keiths@redhat.com>
13298
13299 From Siddhesh Poyarekar:
13300 * f-lang.h (f77_get_upperbound): Return LONGEST.
13301 (f77_get_lowerbound): Likewise.
13302 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13303 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13304 print them.
13305 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13306 plongest to format print it.
13307 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13308 (f77_get_upperbound): Likewise.
13309 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13310 LOWER_BOUND to LONGEST.
13311 (f77_create_arrayprint_offset_tbl): Likewise.
13312
13313 2019-03-29 Keith Seitz <keiths@redhat.com>
13314
13315 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13316 %s/pulongest for TYPE_LENGTH instead of %d in format
13317 strings.
13318 * ada-typerint.c (ada_print_type): Likewise.
13319 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13320 * compile/compile-c-support.c (generate_register_struct): Likewise.
13321 * gdbtypes.c (recursive_dump_type): Likewise.
13322 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13323 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13324 instead of %d in format strings.
13325 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13326 to std::min to ULONGEST.
13327 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13328 instead of %d in format strings.
13329 * tracepoint.c (info_scope_command): Likewise.
13330 * typeprint.c (print_offset_data::update)
13331 (print_offset_data::finish): Likewise.
13332 * xtensa-tdep.c (xtensa_store_return_value)
13333 (xtensa_push_dummy_call): Likewise.
13334
13335 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13336
13337 * windows-nat.c (display_selector): Fixed format specifications
13338 for 64-bit Cygwin.
13339
13340 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13341
13342 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13343
13344 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13345
13346 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13347 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13348 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13349 (nios2_linux_init_abi): Install it.
13350
13351 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13352
13353 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13354
13355 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13356
13357 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13358
13359 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13360 Tom Tromey <tromey@adacore.com>
13361
13362 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13363
13364 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13365
13366 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13367 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13368 method to compute the bounds of range types. Also print "[evaluated]"
13369 if the bounds' values come from a dynamic evaluation.
13370
13371 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13372
13373 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13374 whitespace when pretty printing is on.
13375
13376 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13377
13378 * ppc-linux-nat.c: Add include.
13379
13380 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13381
13382 * NEWS: Mention AArch64 Pointer Authentication.
13383
13384 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13385
13386 * arm-linux-nat.c: Add include.
13387
13388 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13389
13390 * source-cache.c (source_cache::get_source_lines): Re-read
13391 fullname after calling open_source_file.
13392
13393 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13394
13395 * NEWS: Mention TLS support for FreeBSD.
13396
13397 2019-03-25 Tom Tromey <tromey@adacore.com>
13398
13399 * minsyms.c (BUNCH_SIZE): Update comment.
13400 (~minimal_symbol_reader): Remove old comment.
13401 (compact_minimal_symbols): Update comment.
13402 (minimal_symbol_reader::install): Remove old comment. Update
13403 other comments.
13404
13405 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13406
13407 * s390-linux-nat.c: Add include.
13408
13409 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13410
13411 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13412 Call linux_get_hwcap.
13413 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13414 Likewise.
13415 (aarch64_linux_get_hwcap): Remove function.
13416 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13417 declaration.
13418 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13419 linux_get_hwcap.
13420 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13421 * linux-tdep.c (linux_get_hwcap): Add function.
13422 (linux_get_hwcap2): Likewise.
13423 * linux-tdep.h (linux_get_hwcap): Add declaration.
13424 (linux_get_hwcap2): Likewise.
13425 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13426 (ppc_linux_get_hwcap2): Likewise.
13427 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13428 linux_get_hwcap.
13429 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13430 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13431 (ppc_linux_nat_target::read_description): Likewise.
13432 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13433 * s390-linux-nat.c: Likewise.
13434 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13435
13436 2019-03-24 Tom Tromey <tom@tromey.com>
13437
13438 * ada-lang.c (standard_lookup): Simplify initialization.
13439 (ada_lookup_symbol_nonlocal): Simplify return.
13440 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13441 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13442 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13443 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13444 initialization.
13445 * solib.c (solib_global_lookup): Simplify.
13446 * symtab.c (null_block_symbol): Remove.
13447 (symbol_cache_lookup): Simplify returns.
13448 (lookup_language_this): Simplify returns.
13449 (lookup_symbol_aux): Simplify return.
13450 (lookup_local_symbol): Simplify returns.
13451 (lookup_global_symbol_from_objfile): Simplify return.
13452 (lookup_symbol_in_objfile_symtabs)
13453 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13454 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13455 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13456 * cp-namespace.c (cp_lookup_bare_symbol)
13457 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13458 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13459 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13460 (cp_lookup_symbol_via_imports): Simplify initialization.
13461 (find_symbol_in_baseclass): Likewise.
13462 * symtab.h (null_block_symbol): Remove.
13463 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13464 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13465 (d_lookup_symbol_module): Likewise.
13466 (find_symbol_in_baseclass): Simplify initialization.
13467
13468 2019-03-24 Tom Tromey <tom@tromey.com>
13469
13470 * expression.h: Don't include symtab.h.
13471 (struct block): Forward declare.
13472
13473 2019-03-24 Tom Tromey <tom@tromey.com>
13474
13475 * c-exp.y (typebase): Remove casts.
13476 * gdbtypes.c (lookup_unsigned_typename, )
13477 (lookup_signed_typename): Remove cast.
13478 * eval.c (parse_to_comma_and_eval): Remove cast.
13479 * parse.c (write_dollar_variable): Remove cast.
13480 * block.h (struct block) <superblock>: Now const.
13481 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13482 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13483 (map_block): Make "block" const.
13484 * symfile.h (struct quick_symbol_functions)
13485 <map_matching_symbols>: Constify block argument to "callback".
13486 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13487 const.
13488 (find_pc_sect_compunit_symtab): Make "b" const.
13489 (find_symbol_at_address): Likewise.
13490 (search_symbols): Likewise.
13491 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13492 (dw2_debug_names_lookup_symbol): Likewise.
13493 (dw2_map_matching_symbols): Update.
13494 * p-valprint.c (pascal_val_print): Remove "block".
13495 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13496 (aux_add_nonlocal_symbols): Make "block" const.
13497 (resolve_subexp): Remove cast.
13498 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13499 const.
13500 (iterate_over_file_blocks): Likewise.
13501 * f-exp.y (%union) <bval>: Remove.
13502 * coffread.c (patch_opaque_types): Make "b" const.
13503 * spu-tdep.c (spu_catch_start): Make "block" const.
13504 * c-valprint.c (print_unpacked_pointer): Remove "block".
13505 * symmisc.c (dump_symtab_1): Make "b" const.
13506 (block_depth): Make "block" const.
13507 * d-exp.y (%union) <bval>: Remove.
13508 * cp-support.h (cp_lookup_rtti_type): Update.
13509 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13510 * psymtab.c (psym_lookup_symbol): Make "block" const.
13511 (maintenance_check_psymtabs): Make "b" const.
13512 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13513 (enumerate_locals, enumerate_args): Update.
13514 * python/py-symtab.c (stpy_global_block): Make "block" const.
13515 (stpy_static_block): Likewise.
13516 * inline-frame.c (block_starting_point_at): Make "new_block"
13517 const.
13518 * block.c (find_block_in_blockvector): Make return type const.
13519 (blockvector_for_pc_sect): Make "b" const.
13520 (find_block_in_blockvector): Make "b" const.
13521
13522 2019-03-23 Tom Tromey <tom@tromey.com>
13523
13524 * varobj.c (varobj_create): Update.
13525 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13526 * printcmd.c (display_command, do_one_display): Don't reset
13527 innermost_block.
13528 * parser-defs.h (enum innermost_block_tracker_type): Move to
13529 expression.h.
13530 (innermost_block): Update comment.
13531 * parse.c (parse_exp_1): Add tracker_types parameter.
13532 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13533 tracker_types parameter. Reset innermost_block.
13534 (parse_exp_in_context): Remove.
13535 (parse_expression_for_completion): Update.
13536 * objfiles.c (~objfile): Don't reset expression_context_block or
13537 innermost_block.
13538 * expression.h (enum innermost_block_tracker_type): Move from
13539 parser-defs.h.
13540 (parse_exp_1): Add tracker_types parameter.
13541 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13542 reset innermost_block.
13543
13544 2019-03-23 Tom Tromey <tom@tromey.com>
13545
13546 * objfiles.h: Include bcache.h.
13547
13548 2019-03-23 Tom Tromey <tom@tromey.com>
13549
13550 * linespec.c (get_current_search_block): Use
13551 scoped_restore_current_language.
13552 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13553
13554 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13555 Jiong Wang <jiong.wang@arm.com>
13556
13557 * aarch64-linux-tdep.c
13558 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13559 section.
13560 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13561
13562 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13563 Jiong Wang <jiong.wang@arm.com>
13564
13565 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13566 instructions.
13567 (aarch64_analyze_prologue_test): Add PACIASP test.
13568 (aarch64_prologue_prev_register): Unmask PC value.
13569
13570 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13571 Jiong Wang <jiong.wang@arm.com>
13572
13573 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13574 (aarch64_dwarf2_prev_register): Unmask PC value.
13575 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13576 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13577 DW_CFA_AARCH64_negate_ra_state.
13578 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13579
13580 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13581 Jiong Wang <jiong.wang@arm.com>
13582
13583 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13584 registers.
13585 (aarch64_pseudo_register_name): Likewise.
13586 (aarch64_pseudo_register_type): Likewise.
13587 (aarch64_pseudo_register_reggroup_p): Likewise.
13588 (aarch64_gdbarch_init): Add pauth registers.
13589 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13590 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13591 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13592 (struct gdbarch_tdep): Add regnum for ra_state.
13593
13594 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13595 Jiong Wang <jiong.wang@arm.com>
13596
13597 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13598
13599 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13600 Jiong Wang <jiong.wang@arm.com>
13601
13602 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13603 function.
13604 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13605 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13606 (aarch64_gdbarch_init): Add puth registers.
13607 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13608 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13609 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13610
13611 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13612 Jiong Wang <jiong.wang@arm.com>
13613
13614 * aarch64-linux-nat.c
13615 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13616 * aarch64-linux-tdep.c
13617 (aarch64_linux_core_read_description): Likewise.
13618 (aarch64_linux_get_hwcap): New function.
13619 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13620 (aarch64_linux_get_hwcap): New declaration.
13621
13622 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13623 Jiong Wang <jiong.wang@arm.com>
13624
13625 * aarch64-linux-nat.c
13626 (aarch64_linux_nat_target::read_description): Add pauth param.
13627 * aarch64-linux-tdep.c
13628 (aarch64_linux_core_read_description): Likewise.
13629 * aarch64-tdep.c (struct target_desc): Add in pauth.
13630 (aarch64_read_description): Add pauth param.
13631 (aarch64_gdbarch_init): Likewise.
13632 * aarch64-tdep.h (aarch64_read_description): Likewise.
13633 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13634 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13635 * features/Makefile: Add new files.
13636 * features/aarch64-pauth.c: New file.
13637 * features/aarch64-pauth.xml: New file.
13638
13639 2019-03-20 Tom Tromey <tromey@adacore.com>
13640
13641 * infrun.c (handle_inferior_event): Rename from
13642 handle_inferior_event_1. Create a scoped_value_mark.
13643 (handle_inferior_event): Remove.
13644
13645 2019-03-19 Tom Tromey <tromey@adacore.com>
13646
13647 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13648 * infrun.h (print_stop_event): Add "displays" parameter.
13649 * infrun.c (print_stop_event): Add "displays" parameter.
13650
13651 2019-03-19 Pedro Alves <palves@redhat.com>
13652
13653 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13654 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13655 to -1. Fix TABs vs spaces.
13656 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13657 * tui/tui-out.h (tui_ui_out) Add intro comments.
13658 <m_line, m_start_of_line>: In-class initialize, and add describing
13659 comment.
13660
13661 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13662
13663 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13664 variable names.
13665 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13666
13667 2019-03-18 Pedro Alves <palves@redhat.com>
13668 Eli Zaretskii <eliz@gnu.org>
13669
13670 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13671 m_line and m_start_of_line.
13672
13673 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13674
13675 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13676 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13677 it returns a newline. This fixes a regression in TU mode, whereby
13678 the next line is output on the same screen line as the user input.
13679
13680 2019-03-18 Tom Tromey <tromey@adacore.com>
13681
13682 * minsyms.c (minimal_symbol_reader::install): Remove call to
13683 obstack_blank.
13684
13685 2019-03-18 Pedro Alves <palves@redhat.com>
13686
13687 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13688 New globals.
13689 (apply_style): New, factored out from ...
13690 (apply_ansi_escape): ... this. Handle reverse video mode.
13691 (tui_set_reverse_mode): New function.
13692 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13693 * tui/tui-winsource.c (tui_show_source_line): Use
13694 tui_set_reverse_mode instead of setting A_STANDOUT.
13695 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13696 New setter methods.
13697
13698 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13699
13700 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13701 Handle tabs.
13702
13703 2019-03-18 Tom Tromey <tromey@adacore.com>
13704
13705 * ada-lang.c (empty_array): Add "high" parameter.
13706 (ada_evaluate_subexp): Update.
13707
13708 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13709
13710 * unittests/string_view-selftests.c: Define
13711 _initialize_string_view_selftests unconditionally.
13712
13713 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13714
13715 PR gdb/24350
13716 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13717
13718 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13719
13720 PR gdb/24351
13721 * windows-nat.c (display_selector): Fix format specifiers.
13722
13723 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13724
13725 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13726 tui_refill_source_window instead of tui_refresh_win, to update the
13727 current execution line. This fixes redisplay of the current line
13728 when stepping through the code with "next" or "step".
13729
13730 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13731
13732 * source-cache.c (source_cache::get_source_lines): Call
13733 find_source_lines to initialize s->nlines. This fixes vertical
13734 scrolling of TUI source window when the DOWN arrow is pressed.
13735
13736 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13737
13738 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13739 linux-thread-db.c (_initialize_thread_db): Likewise.
13740
13741 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13742
13743 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13744 wclrtoeol in tui_show_source_line". This reverts changes made in
13745 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13746
13747 2019-03-15 Tom Tromey <tom@tromey.com>
13748
13749 * symtab.h (struct minimal_symbol): Derive from
13750 general_symbol_info.
13751 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13752 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13753 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13754 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13755 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13756 (MSYMBOL_SEARCH_NAME): Update.
13757 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13758 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13759 * minsyms.c (minimal_symbol_reader::record_full): Update.
13760
13761 2019-03-15 Tom Tromey <tom@tromey.com>
13762
13763 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13764
13765 2019-03-15 Tom Tromey <tom@tromey.com>
13766
13767 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13768 unique_xmalloc_ptr.
13769 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13770 Update.
13771 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13772 (build_minimal_symbol_hash_tables)
13773 (minimal_symbol_reader::install): Update.
13774
13775 2019-03-15 Tom Tromey <tom@tromey.com>
13776
13777 * symtab.c (create_demangled_names_hash): Update.
13778 (symbol_set_names): Update.
13779 * objfiles.h (struct objfile_per_bfd_storage)
13780 <demangled_names_hash>: Now an htab_up.
13781 * objfiles.c (objfile_per_bfd_storage): Simplify.
13782
13783 2019-03-15 Tom Tromey <tom@tromey.com>
13784
13785 * objfiles.h (struct objfile_per_bfd_storage): Declare
13786 destructor.
13787 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13788 New.
13789 (get_objfile_bfd_data): Use new. Don't initialize
13790 language_of_main.
13791 (free_objfile_per_bfd_storage): Remove.
13792 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13793
13794 2019-03-15 Tom Tromey <tom@tromey.com>
13795
13796 * symfile.c (reread_symbols): Update.
13797 * objfiles.c (objfile::objfile): Update.
13798 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13799 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13800 comment.
13801 (minimal_symbol_reader::install): Update.
13802 (terminate_minimal_symbol_table): Remove.
13803 * jit.c (jit_object_close_impl): Update.
13804
13805 2019-03-15 Tom Tromey <tom@tromey.com>
13806
13807 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13808 initializations.
13809
13810 2019-03-15 Tom Tromey <tom@tromey.com>
13811
13812 * objfiles.h (struct objfile_per_bfd_storage)
13813 <demangled_hash_languages>: Now a bitset.
13814 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13815 (lookup_minimal_symbol): Update.
13816
13817 2019-03-15 Tom Tromey <tom@tromey.com>
13818
13819 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13820 Don't return the symbol.
13821 * coffread.c (record_minimal_symbol): Use record_full.
13822
13823 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13824
13825 The MS-Windows port of ncurses fails to switch to a color pair if
13826 one or both of the colors are the implicit default colors. This
13827 change records the default colors when TUI is initialized, and
13828 then specifies them explicitly when a color pair uses the default
13829 colors. This allows color styling in TUI mode on MS-Windows.
13830
13831 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13832 ncurses_norm_attr.
13833 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13834 colors in ncurses_norm_attr.
13835 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13836 "none", replace it with the default color recorded in
13837 ncurses_norm_attr.
13838
13839 2019-03-14 Tom Tromey <tromey@adacore.com>
13840
13841 * source-cache.h (class source_cache) <get_source_lines>: Return
13842 std::string.
13843 * source-cache.c (source_cache::extract_lines): Handle case where
13844 first_pos==npos. Return std::string.
13845 (source_cache::get_source_lines): Update.
13846
13847 2019-03-14 Tom Tromey <tromey@adacore.com>
13848
13849 * NEWS: Add item for "style sources" commands.
13850 * source-cache.c (source_cache::get_source_lines): Check
13851 source_styling.
13852 * cli/cli-style.c (source_styling): New global.
13853 (_initialize_cli_style): Add "style sources" commands.
13854 (show_style_sources): New function.
13855 * cli/cli-style.h (source_styling): Declare.
13856
13857 2019-03-14 Pedro Alves <palves@redhat.com>
13858 Tom Tromey <tromey@adacore.com>
13859
13860 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13861 * tui/tui-winsource.c (tui_refill_source_window): New function,
13862 from...
13863 (tui_horizontal_source_scroll): ... here. Move some logic.
13864 * cli/cli-style.c (set_style_enabled): Notify new observable.
13865 * tui/tui-hooks.c (tui_redisplay_source): New function.
13866 (tui_attach_detach_observers): Attach or detach
13867 tui_redisplay_source.
13868 * observable.h (source_styling_changed): New observable.
13869 * observable.c: Define source_styling_changed observable.
13870
13871 2019-03-13 Tom Tromey <tromey@adacore.com>
13872
13873 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13874 (i386_gnu_nat_target::store_registers): Update.
13875 * target-debug.h (target_debug_print_std_string): New macro.
13876 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13877 * windows-tdep.c (display_one_tib): Update.
13878 * tui/tui-stack.c (tui_make_status_line): Update.
13879 * top.c (print_inferior_quit_action): Update.
13880 * thread.c (thr_try_catch_cmd): Update.
13881 (add_thread_with_info): Update.
13882 (thread_target_id_str): Update.
13883 (thr_try_catch_cmd): Update.
13884 (thread_command): Update.
13885 (thread_find_command): Update.
13886 * record-btrace.c (record_btrace_target::info_record)
13887 (record_btrace_resume_thread, record_btrace_target::resume)
13888 (record_btrace_cancel_resume, record_btrace_step_thread)
13889 (record_btrace_target::wait, record_btrace_target::wait)
13890 (record_btrace_target::wait, record_btrace_target::stop): Update.
13891 * progspace.c (print_program_space): Update.
13892 * process-stratum-target.c
13893 (process_stratum_target::thread_address_space): Update.
13894 * linux-fork.c (linux_fork_mourn_inferior)
13895 (detach_checkpoint_command, info_checkpoints_command)
13896 (linux_fork_context): Update.
13897 (linux_fork_detach): Update.
13898 (class scoped_switch_fork_info): Update.
13899 (delete_checkpoint_command): Update.
13900 * infrun.c (follow_fork_inferior): Update.
13901 (follow_fork_inferior): Update.
13902 (proceed_after_vfork_done): Update.
13903 (handle_vfork_child_exec_or_exit): Update.
13904 (follow_exec): Update.
13905 (displaced_step_prepare_throw): Update.
13906 (displaced_step_restore): Update.
13907 (start_step_over): Update.
13908 (resume_1): Update.
13909 (clear_proceed_status_thread): Update.
13910 (proceed): Update.
13911 (print_target_wait_results): Update.
13912 (do_target_wait): Update.
13913 (context_switch): Update.
13914 (stop_all_threads): Update.
13915 (restart_threads): Update.
13916 (finish_step_over): Update.
13917 (handle_signal_stop): Update.
13918 (switch_back_to_stepped_thread): Update.
13919 (keep_going_pass_signal): Update.
13920 (print_exited_reason): Update.
13921 (normal_stop): Update.
13922 * inferior.c (inferior_pid_to_str): Change return type.
13923 (print_selected_inferior): Update.
13924 (add_inferior): Update.
13925 (detach_inferior): Update.
13926 * dummy-frame.c (fprint_dummy_frames): Update.
13927 * dcache.c (dcache_info_1): Update.
13928 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13929 (btrace_fetch, btrace_clear): Update.
13930 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13931 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13932 type.
13933 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13934 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13935 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13936 * gdbarch.c, gdbarch.h: Rebuild.
13937 * gdbarch.sh (core_pid_to_str): Change return type.
13938 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13939 return type.
13940 (windows_nat_target::pid_to_str): Change return type.
13941 (windows_delete_thread): Update.
13942 (windows_nat_target::attach): Update.
13943 (windows_nat_target::files_info): Update.
13944 * target-delegates.c: Rebuild.
13945 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13946 return type.
13947 (sol_thread_target::pid_to_str): Change return type.
13948 * remote.c (class remote_target) <pid_to_str>: Change return
13949 type.
13950 (remote_target::pid_to_str): Change return type.
13951 (extended_remote_target::attach, remote_target::remote_stop_ns)
13952 (remote_target::remote_notif_remove_queued_reply)
13953 (remote_target::push_stop_reply, remote_target::disable_btrace):
13954 Update.
13955 (extended_remote_target::attach): Update.
13956 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13957 type.
13958 (gdbsim_target::pid_to_str): Change return type.
13959 * ravenscar-thread.c (struct ravenscar_thread_target)
13960 <pid_to_str>: Change return type.
13961 (ravenscar_thread_target::pid_to_str): Change return type.
13962 * procfs.c (class procfs_target) <pid_to_str>: Change return
13963 type.
13964 (procfs_target::pid_to_str): Change return type.
13965 (procfs_target::attach): Update.
13966 (procfs_target::detach): Update.
13967 (procfs_target::fetch_registers): Update.
13968 (procfs_target::store_registers): Update.
13969 (procfs_target::wait): Update.
13970 (procfs_target::files_info): Update.
13971 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13972 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13973 return type.
13974 (nto_procfs_target::pid_to_str): Change return type.
13975 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13976 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13977 return type.
13978 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13979 (exit_lwp): Update.
13980 (attach_proc_task_lwp_callback, get_detach_signal)
13981 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13982 (linux_nat_target::resume, wait_lwp, stop_callback)
13983 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13984 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13985 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13986 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13987 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13988 type.
13989 (inf_ptrace_target::attach): Update.
13990 (inf_ptrace_target::files_info): Update.
13991 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13992 type.
13993 (go32_nat_target::pid_to_str): Change return type.
13994 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13995 (gnu_nat_target::wait): Update.
13996 (gnu_nat_target::wait): Update.
13997 (gnu_nat_target::resume): Update.
13998 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13999 (fbsd_nat_target::wait): Update.
14000 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
14001 type.
14002 (darwin_nat_target::attach): Update.
14003 * corelow.c (class core_target) <pid_to_str>: Change return type.
14004 (core_target::pid_to_str): Change return type.
14005 * target.c (normal_pid_to_str): Change return type.
14006 (default_pid_to_str): Likewise.
14007 (target_pid_to_str): Change return type.
14008 (target_translate_tls_address): Update.
14009 (target_announce_detach): Update.
14010 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
14011 return type.
14012 (bsd_uthread_target::pid_to_str): Change return type.
14013 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
14014 type.
14015 (bsd_kvm_target::pid_to_str): Change return type.
14016 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
14017 return type.
14018 (aix_thread_target::pid_to_str): Change return type.
14019 * target.h (struct target_ops) <pid_to_str>: Change return type.
14020 (target_pid_to_str, normal_pid_to_str): Likewise.
14021 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
14022 type.
14023 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
14024 type.
14025 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
14026 return type.
14027 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
14028 type.
14029 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
14030 type.
14031 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
14032 return type.
14033
14034 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
14035
14036 * NEWS: Mention that the new default MI version is 3. Mention
14037 changes to the output of commands and events that deal with
14038 multi-location breakpoints.
14039 * breakpoint.c: Include "mi/mi-out.h".
14040 (print_one_breakpoint): Change output syntax if using MI version
14041 >= 3.
14042 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
14043 New.
14044 (mi_multi_location_breakpoint_output_fixed): New.
14045 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
14046 (mi_cmd_fix_multi_location_breakpoint_output): New.
14047 (mi_multi_location_breakpoint_output_fixed): New.
14048 * mi/mi-cmds.c (mi_cmds): Register command
14049 -fix-multi-location-breakpoint-output.
14050 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
14051 interpreter "mi".
14052
14053 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14054
14055 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
14056 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
14057 instantiate mi_ui_out based on interpreter name.
14058 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
14059 * mi/mi-main.c (mi_load_progress): Likewise.
14060
14061 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14062
14063 * NEWS: Combine separate "New targets" sections for 8.3.
14064
14065 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14066
14067 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
14068 (ppcfbsd_init_abi): Install gdbarch
14069 "fetch_tls_load_module_address" and "get_thread_local_address"
14070 methods.
14071
14072 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14073
14074 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
14075 (riscv_fbsd_init_abi): Install gdbarch
14076 "fetch_tls_load_module_address" and "get_thread_local_address"
14077 methods.
14078
14079 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14080
14081 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
14082 (i386fbsd_init_abi): Install gdbarch
14083 "fetch_tls_load_module_address" and "get_thread_local_address"
14084 methods.
14085
14086 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14087
14088 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
14089 (amd64fbsd_init_abi): Install gdbarch
14090 "fetch_tls_load_module_address" and "get_thread_local_address"
14091 methods.
14092
14093 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14094
14095 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
14096 (struct fbsd_pspace_data): New type.
14097 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
14098 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
14099 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
14100 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
14101 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
14102
14103 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14104
14105 * gdbtypes.c (lookup_struct_elt): New function.
14106 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
14107 * gdbtypes.h (struct struct_elt): New type.
14108 (lookup_struct_elt): New prototype.
14109
14110 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14111
14112 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14113 remove disabled code block.
14114
14115 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14116
14117 * gdbarch.sh (get_thread_local_address): New method.
14118 * gdbarch.h, gdbarch.c: Regenerate.
14119 * target.c (target_translate_tls_address): Use
14120 gdbarch_get_thread_local_address if present instead of
14121 target::get_thread_local_address.
14122
14123 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14124
14125 * target.h (target::get_thread_local_address): Update comment.
14126
14127 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14128
14129 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14130 objfile->separate_debug_objfile_backlink if not NULL.
14131
14132 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14133
14134 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14135 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14136 (amd64bsd_store_inferior_registers): Likewise.
14137 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14138 Enable segment base registers.
14139 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14140 PT_GETFSBASE and PT_GETGSBASE.
14141 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14142 PT_SETGSBASE.
14143 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14144 segment base registers.
14145 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14146
14147 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14148
14149 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14150 Update calls to i386_target_description to add 'segments'
14151 parameter.
14152 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14153 add segment base registers.
14154 * arch/i386.c (i386_create_target_description): Add 'segments'
14155 parameter to enable segment base registers.
14156 * arch/i386.h (i386_create_target_description): Likewise.
14157 * features/i386/32bit-segments.xml: New file.
14158 * features/i386/32bit-segments.c: Generate.
14159 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14160 call to i386_target_description to add 'segments' parameter.
14161 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14162 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14163 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14164 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14165 if feature is present.
14166 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14167 Add 'segments' parameter to call to i386_target_description.
14168 (i386_target_description): Add 'segments' parameter to enable
14169 segment base registers.
14170 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14171 to call to i386_target_description.
14172 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14173 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14174 Define I386_NUM_REGS.
14175 (i386_target_description): Add 'segments' parameter to enable
14176 segment base registers.
14177
14178 2019-03-12 Eli Zaretskii <eliz@gnu.org>
14179
14180 PR/24325
14181 * source-cache.c: #undef open and close, to avoid unresolved
14182 externals during linking.
14183
14184 2019-03-12 Tom Tromey <tromey@adacore.com>
14185
14186 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14187 const. Add initializers.
14188 (_initialize_remote): Don't initialize ptid globals.
14189
14190 2019-03-12 Pedro Alves <palves@redhat.com>
14191
14192 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14193
14194 2019-03-12 Pedro Alves <palves@redhat.com>
14195
14196 * cp-name-parser.y (main): Remove unused 'len' variable.
14197
14198 2019-03-12 Tom Tromey <tromey@adacore.com>
14199
14200 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14201 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14202
14203 2019-03-12 Tom Tromey <tromey@adacore.com>
14204
14205 * linux-nat.c (iterate_over_lwps): Update.
14206 (stop_callback): Remove parameter.
14207 (stop_wait_callback, detach_callback, resume_set_callback)
14208 (select_singlestep_lwp_callback, set_ignore_sigint)
14209 (status_callback, resumed_callback, resume_clear_callback)
14210 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14211 data parameter.
14212 (linux_nat_target::detach, linux_nat_target::resume)
14213 (linux_stop_and_wait_all_lwps, select_event_lwp)
14214 (linux_nat_filter_event, linux_nat_wait_1)
14215 (linux_nat_target::kill, linux_nat_target::stop)
14216 (linux_nat_target::stop): Update.
14217 (linux_nat_resume_callback): Change type.
14218 (resume_stopped_resumed_lwps, count_events_callback)
14219 (select_event_lwp_callback): Likewise.
14220 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14221 * arm-linux-nat.c (struct update_registers_data): Remove.
14222 (update_registers_callback): Change type.
14223 (arm_linux_insert_hw_breakpoint1): Update.
14224 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14225 parameter.
14226 (x86_linux_dr_set_addr): Update.
14227 (x86_linux_dr_set_control): Update.
14228 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14229 (iterate_over_lwps): Use gdb::function_view.
14230 * nat/aarch64-linux-hw-point.c (struct
14231 aarch64_dr_update_callback_param): Remove.
14232 (debug_reg_change_callback): Change type.
14233 (aarch64_notify_debug_reg_change): Update.
14234 * s390-linux-nat.c (s390_refresh_per_info): Update.
14235
14236 2019-03-11 Tom Tromey <tromey@adacore.com>
14237
14238 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14239 redundant assignment to "this_cu".
14240
14241 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14244
14245 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14246
14247 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14248 from...
14249 (rank_one_type): ... this.
14250
14251 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14252
14253 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14254 from...
14255 (rank_one_type): ... this.
14256
14257 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14258
14259 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14260 from...
14261 (rank_one_type): ... this.
14262
14263 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14264
14265 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14266 from...
14267 (rank_one_type): ... this.
14268
14269 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14270
14271 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14272 from...
14273 (rank_one_type): ... this.
14274
14275 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14276
14277 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14278 from...
14279 (rank_one_type): ... this.
14280
14281 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14282
14283 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14284 from...
14285 (rank_one_type): ... this.
14286
14287 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14288
14289 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14290 from...
14291 (rank_one_type): ... this.
14292
14293 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14294
14295 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14296 from...
14297 (rank_one_type): ... this.
14298
14299 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14300
14301 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14302 from...
14303 (rank_one_type): ... this.
14304
14305 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14306
14307 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14308 from...
14309 (rank_one_type): ... this.
14310
14311 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14312
14313 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14314 from...
14315 (rank_one_type): ... this.
14316
14317 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14318
14319 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14320 inferior-events' shows the example events.
14321
14322 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14323
14324 Support styling on native MS-Windows console
14325
14326 PR/24315
14327 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14328 on MS-Windows if $TERM is not defined.
14329
14330 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14331
14332 * posix-hdep.c (gdb_console_fputs):
14333 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14334 functions.
14335 * ui-file.h (gdb_console_fputs): Add prototype.
14336
14337 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14338 back to fputs only if the former returns zero.
14339
14340 2019-03-07 Tom Tromey <tom@tromey.com>
14341
14342 * symmisc.c (print_symbol_bcache_statistics): Update.
14343 (print_objfile_statistics): Update.
14344 * symfile.c (allocate_symtab): Update.
14345 * stabsread.c: Don't include bcache.h.
14346 * psymtab.h (struct psymbol_bcache): Don't declare.
14347 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14348 (psymbol_bcache_init, psymbol_bcache_free)
14349 (psymbol_bcache_get_bcache): Don't declare.
14350 * psymtab.c (struct psymbol_bcache): Remove.
14351 (psymtab_storage::psymtab_storage): Update.
14352 (psymtab_storage::~psymtab_storage): Update.
14353 (psymbol_bcache_init, psymbol_bcache_free)
14354 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14355 (add_psymbol_to_bcache): Update.
14356 (allocate_psymtab): Update.
14357 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14358 macro_cache>: No longer pointers.
14359 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14360 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14361 * macrotab.c (macro_bcache): Update.
14362 * macroexp.c: Don't include bcache.h.
14363 * gdbtypes.c (check_types_worklist): Update.
14364 (types_deeply_equal): Remove TRY/CATCH. Update.
14365 * elfread.c (elf_symtab_read): Update.
14366 * dwarf2read.c: Don't include bcache.h.
14367 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14368 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14369 (print_bcache_statistics, bcache_memory_used): Don't declare.
14370 (struct bcache): Move from bcache.c. Add constructor, destructor,
14371 methods. Rename all data members.
14372 * bcache.c (struct bcache): Move to bcache.h.
14373 (bcache::expand_hash_table): Rename from expand_hash_table.
14374 (bcache): Remove.
14375 (bcache::insert): Rename from bcache_full.
14376 (bcache::compare): Rename from bcache_compare.
14377 (bcache_xmalloc): Remove.
14378 (bcache::~bcache): Rename from bcache_xfree.
14379 (bcache::print_statistics): Rename from print_bcache_statistics.
14380 (bcache::memory_used): Rename from bcache_memory_used.
14381
14382 2019-03-07 Pedro Alves <palves@redhat.com>
14383
14384 * infrun.c (normal_stop): Also check for
14385 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14386
14387 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14388
14389 * f-lang.c (value_from_host_double): Moved to...
14390 * value.c (value_from_host_double): ...here.
14391 * value.h (value_from_host_double): Declare.
14392 * guile/scm-math.c (vlscm_convert_typed_number): Use
14393 value_from_host_double.
14394 (vlscm_convert_number): Likewise.
14395 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14396 * python/py-value.c (convert_value_from_python): Likewise.
14397
14398 2019-03-06 Tom Tromey <tom@tromey.com>
14399
14400 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14401
14402 2019-03-06 Tom Tromey <tom@tromey.com>
14403
14404 * utils.h (free_current_contents): Don't declare.
14405 * utils.c (free_current_contents): Remove.
14406
14407 2019-03-06 Tom Tromey <tom@tromey.com>
14408
14409 * top.c (quit_force): Update.
14410 * main.c (captured_command_loop): Update.
14411 * common/new-op.c (operator new): Update.
14412 * common/common-exceptions.c (struct catcher)
14413 <save_cleanup_chain>: Remove member.
14414 (exceptions_state_mc_init): Update.
14415 (exception_try_scope_entry): Return nullptr.
14416 (exception_try_scope_exit, exception_rethrow)
14417 (throw_exception_sjlj, throw_exception_cxx): Update.
14418 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14419 (all_cleanups, do_cleanups, discard_cleanups)
14420 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14421 (restore_cleanups, restore_final_cleanups): Don't declare.
14422 (do_final_cleanups): Remove parameter.
14423 * common/cleanups.c (cleanup_chain, make_cleanup)
14424 (make_cleanup_dtor, all_cleanups, do_cleanups)
14425 (discard_my_cleanups, discard_cleanups)
14426 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14427 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14428 (null_cleanup): Remove.
14429 (do_final_cleanups): Remove parameter.
14430
14431 2019-03-06 Tom Tromey <tom@tromey.com>
14432
14433 * remote.c (remote_target::remote_parse_stop_reply): Use
14434 unique_xmalloc_ptr.
14435
14436 2019-03-06 Tom Tromey <tom@tromey.com>
14437
14438 * stabsread.c (struct stabs_field_info): Rename from field_info.
14439 <list, fnlist>: Add initializers.
14440 <obstack>: New member.
14441 (read_member_functions, read_struct_fields, read_baseclasses):
14442 Allocate on obstack. Don't use cleanups.
14443 (read_one_struct_field, read_member_functions, read_struct_fields)
14444 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14445 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14446 (read_struct_type): Update.
14447
14448 2019-03-06 Tom Tromey <tom@tromey.com>
14449
14450 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14451 * common/filestuff.h (make_cleanup_close): Don't declare.
14452 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14453 Remove.
14454
14455 2019-03-06 Tom Tromey <tom@tromey.com>
14456
14457 * solib-aix.c: Use make_scope_exit.
14458
14459 2019-03-06 Tom Tromey <tom@tromey.com>
14460
14461 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14462 Use make_scope_exit.
14463
14464 2019-03-06 Tom Tromey <tom@tromey.com>
14465
14466 * solib-svr4.c (disable_probes_interface): Remove parameter.
14467 (svr4_handle_solib_event): Use make_scope_exit.
14468
14469 2019-03-06 Tom Tromey <tom@tromey.com>
14470
14471 * remote.c (struct stop_reply_deleter): Remove.
14472 (stop_reply_up): Update.
14473 (struct stop_reply): Derive from notif_event. Don't typedef.
14474 <regcache>: Now a std::vector.
14475 (stop_reply_xfree): Remove.
14476 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14477 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14478 (remote_target::discard_pending_stop_replies): Use delete.
14479 (remote_target::remote_parse_stop_reply): Update.
14480 (remote_target::process_stop_reply): Update.
14481 * remote-notif.h (struct notif_event): Add virtual destructor.
14482 Remove "dtr" member.
14483 (struct notif_client) <alloc_event>: Return a unique_ptr.
14484 (notif_event_xfree): Don't declare.
14485 (notif_event_up): New typedef.
14486 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14487 (notif_event_xfree, do_notif_event_xfree): Remove.
14488 (remote_notif_state_xfree): Update.
14489
14490 2019-03-06 Tom Tromey <tom@tromey.com>
14491
14492 * infrun.c (displaced_step_clear_cleanup): Now a
14493 forward_scope_exit type.
14494 (displaced_step_prepare_throw): Update.
14495 (displaced_step_fixup): Update.
14496
14497 2019-03-06 Tom Tromey <tom@tromey.com>
14498
14499 * inferior.h (class inferior): Update comment.
14500 * gdbthread.h (class thread_info): Update comment.
14501
14502 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14503 Tom Tromey <tom@tromey.com>
14504
14505 * stabsread.h (struct stab_section_list): Remove.
14506 (coffstab_build_psymtabs): Update.
14507 * dbxread.c (symbuf_sections): Now a std::vector.
14508 (sect_idx): New global.
14509 (fill_symbuf): Update.
14510 (coffstab_build_psymtabs): Change type of stabsects parameter.
14511 Update.
14512 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14513 std::vector.
14514 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14515 (coff_locate_sections): Update.
14516 (coff_symfile_read): Remove cleanups. Update.
14517 (init_stringtab): Add storage parameter.
14518 (free_stringtab, free_stringtab_cleanup): Remove.
14519 (init_lineno): Add storage parameter.
14520 (free_linetab, free_linetab_cleanup): Remove.
14521
14522 2019-03-06 Pedro Alves <palves@redhat.com>
14523
14524 * linux-fork.c (fork_info::clobber_regs): Delete.
14525 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14526 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14527 comment. Adjust.
14528 (scoped_switch_fork_info::scoped_switch_fork_info)
14529 (checkpoint_command, linux_fork_context): Adjust
14530 fork_save_infrun_state calls.
14531
14532 2019-03-06 Pedro Alves <palves@redhat.com>
14533
14534 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14535 (inf_has_multiple_threads): Return 'bool' and rewrite using
14536 inferior_info::threads().
14537
14538 2019-03-06 Pedro Alves <palves@redhat.com>
14539
14540 * linux-fork.c: Include <list>.
14541 (fork_list): Now a std::list instance.
14542 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14543 (forks_exist_p, find_last_fork): Adjust.
14544 (new_fork): Delete.
14545 (one_fork_p): New.
14546 (add_fork): Adjust.
14547 (free_fork): Delete, folded into fork_info::~fork_info().
14548 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14549 Adjust.
14550 (init_fork_list): Delete.
14551 (linux_fork_killall, linux_fork_mourn_inferior)
14552 (linux_fork_detach, info_checkpoints_command): Adjust.
14553 (_initialize_linux_fork): No longer call init_fork_list.
14554
14555 2019-03-06 Pedro Alves <palves@redhat.com>
14556
14557 * linux-fork.c (new_fork): New, split out of ...
14558 (add_fork): ... this. Return void. Move "first fork" special
14559 case from here, to ...
14560 (checkpoint_command): ... here.
14561 * linux-linux.h (add_fork): Return void.
14562
14563 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14564
14565 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14566
14567 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14568 Chris January <chris.january@arm.com>
14569 David Lecomber <david.lecomber@arm.com>
14570
14571 * f-exp.y: New token, UNOP_INTRINSIC.
14572 (exp): New pattern using UNOP_INTRINSIC token.
14573 (f77_keywords): Add 'abs' keyword.
14574 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14575 (value_from_host_double): New function.
14576 (evaluate_subexp_f): Support UNOP_ABS.
14577
14578 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14579
14580 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14581 types.
14582
14583 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14584
14585 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14586 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14587 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14588
14589 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14590
14591 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14592
14593 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14594 Chris January <chris.january@arm.com>
14595
14596 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14597 * f-exp.y: Define 'KIND' token.
14598 (exp): New pattern for KIND expressions.
14599 (ptype): Handle types with a kind extension.
14600 (direct_abs_decl): Extend to spot kind extensions.
14601 (f77_keywords): Add 'kind' to the list.
14602 (push_kind_type): New function.
14603 (convert_to_kind_type): New function.
14604 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14605 * parse.c (operator_length_standard): Likewise.
14606 * parser-defs.h (enum type_pieces): Add tp_kind.
14607 * std-operator.def: Add UNOP_KIND.
14608
14609 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14610
14611 * f-exp.y (f_parse): Set yydebug.
14612
14613 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14614
14615 * f-lang.c (evaluate_subexp_f): New function.
14616 (exp_descriptor_f): New global.
14617 (f_language_defn): Use exp_descriptor_f instead of
14618 exp_descriptor_standard.
14619
14620 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14621
14622 * f-exp.y (struct token): Add comments.
14623 (dot_ops): Remove uppercase versions and the end marker.
14624 (f77_keywords): Likewise.
14625 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14626 entries in the dot_ops array are case insensitive, and use
14627 strncasecmp to compare strings. Also some whitespace cleanup in
14628 this area. Similar for the f77_keywords array, except entries in
14629 this list might be case sensitive.
14630
14631 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14632
14633 * f-exp.y (struct f77_boolean_val): Add comments.
14634 (boolean_values): Remove uppercase versions, and end marker.
14635 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14636 and use strncasecmp to achieve case insensitivity. Additionally,
14637 perform whitespace cleanup around this code.
14638
14639 2019-03-06 Tom Tromey <tromey@adacore.com>
14640
14641 * remote-sim.c (gdbsim_target_open): Use result of
14642 gdb_argv::release.
14643
14644 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14645 Dirk Schubert <dirk.schubert@arm.com>
14646 Chris January <chris.january@arm.com>
14647
14648 * eval.c (evaluate_subexp_standard): Call Fortran argument
14649 wrapping logic.
14650 * f-lang.c (struct value): A value which can be passed into a
14651 Fortran function call.
14652 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14653 where appropriate.
14654 (struct type): Value ready for a Fortran function call.
14655 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14656 is needed.
14657 * f-lang.h (fortran_argument_convert): Declaration.
14658 (fortran_preserve_arg_pointer): Declaration.
14659 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14660
14661 2019-03-05 Tom Tromey <tromey@adacore.com>
14662
14663 * python/py-prettyprint.c (print_string_repr): Remove #if.
14664 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14665
14666 2019-03-05 Tom Tromey <tromey@adacore.com>
14667
14668 * target.c (the_dummy_target): Move later. Change type to
14669 "dummy_target".
14670 (initialize_targets): Don't initialize the_dummy_target.
14671
14672 2019-03-05 Tom Tromey <tromey@adacore.com>
14673
14674 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14675 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14676
14677 2019-03-05 Tom Tromey <tromey@adacore.com>
14678
14679 * windows-nat.c (windows_nat_target::attach)
14680 (windows_nat_target::detach): Don't call gdb_flush.
14681 * valprint.c (generic_val_print, val_print, val_print_string):
14682 Don't call gdb_flush.
14683 * utils.c (defaulted_query): Don't call gdb_flush.
14684 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14685 * target.c (target_announce_detach): Don't call gdb_flush.
14686 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14687 * remote.c (extended_remote_target::attach): Don't call
14688 gdb_flush.
14689 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14690 * printcmd.c (do_examine): Don't call gdb_flush.
14691 (info_display_command): Don't call gdb_flush.
14692 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14693 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14694 * memattr.c (info_mem_command): Don't call gdb_flush.
14695 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14696 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14697 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14698 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14699 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14700 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14701 (gnu_nat_target::detach): Don't call gdb_flush.
14702 * f-valprint.c (f_val_print): Don't call gdb_flush.
14703 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14704 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14705 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14706 gdb_flush.
14707 * c-valprint.c (c_val_print): Don't call gdb_flush.
14708 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14709
14710 2019-03-05 Tom Tromey <tromey@adacore.com>
14711
14712 * varobj.c (update_dynamic_varobj_children): Update.
14713 (install_default_visualizer): Use reset, not release.
14714 * value.c (set_internalvar): Update.
14715 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14716 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14717 ATTRIBUTE_UNUSED_RESULT.
14718
14719 2019-03-05 Tom Tromey <tromey@adacore.com>
14720
14721 * remote.c (class scoped_remote_fd) <release>: Add
14722 ATTRIBUTE_UNUSED_RESULT.
14723
14724 2019-03-05 Tom Tromey <tromey@adacore.com>
14725
14726 * macroexp.c (struct macro_buffer) <release>: Add
14727 ATTRIBUTE_UNUSED_RESULT.
14728
14729 2019-03-05 Tom Tromey <tromey@adacore.com>
14730
14731 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14732 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14733 ATTRIBUTE_UNUSED_RESULT.
14734
14735 2019-03-05 Tom Tromey <tromey@adacore.com>
14736
14737 * common/scoped_fd.h (class scoped_fd) <release>: Add
14738 ATTRIBUTE_UNUSED_RESULT.
14739
14740 2019-03-05 Tom Tromey <tromey@adacore.com>
14741
14742 * parser-defs.h (struct parser_state) <release>: Add
14743 ATTRIBUTE_UNUSED_RESULT.
14744
14745 2019-03-05 Tom Tromey <tromey@adacore.com>
14746
14747 * utils.h (class gdb_argv) <release>: Add
14748 ATTRIBUTE_UNUSED_RESULT.
14749 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14750
14751 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14752
14753 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14754 for-loop range, to avoid compiler warnings.
14755
14756 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14757 avoid compiler warnings about unused variables.
14758
14759 * NEWS: Mention end of support for native debugging on MS-Windows
14760 before XP.
14761
14762 PR gdb/24292
14763 * common/netstuff.c:
14764 * gdbserver/gdbreplay.c
14765 * gdbserver/remote-utils.c:
14766 * ser-tcp.c:
14767 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14768 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14769 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14770 'getaddrinfo' and 'freeaddrinfo' were not available before
14771 Windows XP, and mingw.org's MinGW headers by default define
14772 _WIN32_WINNT to 0x500.
14773
14774 2019-03-01 Gary Benson <gbenson@redhat.com>
14775
14776 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14777
14778 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14779 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14780
14781 PR gdb/8527
14782 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14783 set_sigint_trap, clear_sigint_trap.
14784
14785 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14786
14787 * target.c (target_detach): Clear the regcache and the
14788 frame cache.
14789
14790 2019-02-27 Pedro Alves <palves@redhat.com>
14791
14792 * utils.c (set_screen_size): When we cap the height/width sizes,
14793 tweak the corresponding command variable to show "unlimited":
14794
14795 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14796 Pedro Alves <palves@redhat.com>
14797
14798 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14799 before calling rl_set_screen_size.
14800
14801 2019-02-27 Tom Tromey <tromey@adacore.com>
14802
14803 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14804 define.
14805 * python/py-value.c: Remove Python 2.4 workaround.
14806 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14807 workaround.
14808 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14809 Python 2.4 workaround.
14810 * python/python-internal.h: Remove Python 2.4 comment.
14811 (Py_ssize_t): Don't define.
14812 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14813 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14814 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14815 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14816 * python/python.c (do_start_initialization): Remove Python 2.4
14817 workaround.
14818 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14819 (print_children): Remove Python 2.4 workaround.
14820 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14821 workaround.
14822 (CHARBUFFERPROC_NAME): Remove.
14823 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14824 Python 2.4 workaround.
14825
14826 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14827
14828 * NEWS: Note minimum Python version.
14829
14830 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14831
14832 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14833 code from these functions. Remove corresponding ifdefs. Use
14834 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14835 Remove gotos and target of gotos.
14836 (infpy_search_memory): Likewise.
14837
14838 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14839
14840 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14841 (hppa_gdbarch_init): Don't register deleted functions with
14842 gdbarch.
14843
14844 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14845
14846 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14847 (h8300_unwind_sp): Delete.
14848 (h8300_dummy_id): Delete.
14849 (h8300_gdbarch_init): Don't register deleted functions with
14850 gdbarch.
14851
14852 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14853
14854 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14855 (ft32_unwind_pc): Delete.
14856 (ft32_unwind_sp): Delete.
14857 (ft32_gdbarch_init): Don't register deleted functions with
14858 gdbarch.
14859
14860 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14861
14862 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14863 (frv_unwind_pc): Delete.
14864 (frv_unwind_sp): Delete.
14865 (frv_gdbarch_init): Don't register deleted functions with
14866 gdbarch.
14867
14868 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14869
14870 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14871 (riscv_unwind_pc): Delete.
14872 (riscv_unwind_sp): Delete.
14873 (riscv_gdbarch_init): Don't register deleted functions with
14874 gdbarch.
14875
14876 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14877
14878 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14879 (csky_unwind_pc): Delete.
14880 (csky_unwind_sp): Delete.
14881 (csky_gdbarch_init): Don't register deleted functions with
14882 gdbarch.
14883
14884 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14885
14886 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14887 (cris_unwind_pc): Delete.
14888 (cris_unwind_sp): Delete.
14889 (cris_gdbarch_init): Don't register deleted functions with
14890 gdbarch.
14891
14892 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14893
14894 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14895 (bfin_unwind_pc): Delete.
14896 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14897
14898 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14899
14900 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14901 (arm_unwind_pc): Delete.
14902 (arm_unwind_sp): Delete.
14903 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14904
14905 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14906
14907 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14908 (arc_unwind_pc): Delete.
14909 (arc_unwind_sp): Delete.
14910 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14911
14912 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14913
14914 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14915 (alpha_unwind_pc): Delete.
14916 (alpha_gdbarch_init): Don't register deleted functions with
14917 gdbarch.
14918
14919 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14920
14921 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14922 (aarch64_unwind_pc): Delete.
14923 (aarch64_unwind_sp): Delete.
14924 (aarch64_gdbarch_init): Don't register deleted functions with
14925 gdbarch.
14926
14927 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14928
14929 * gdbtypes.c (type_align): Don't consider static members when
14930 computing structure alignment.
14931
14932 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14933
14934 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14935 return 0 for other types.
14936 * arch-utils.c (default_type_align): Always return 0.
14937 * gdbarch.h: Regenerate.
14938 * gdbarch.sh (type_align): Extend comment.
14939 * gdbtypes.c (type_align): Add additional comments, always call
14940 gdbarch_type_align before applying the default rules.
14941 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14942 generic code will then apply a suitable default.
14943 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14944 types, return 0 for other types.
14945
14946 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14947
14948 * NEWS: Create a new section for the next release branch.
14949 Rename the section of the current branch, now that it has
14950 been cut.
14951
14952 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14953
14954 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14955 * version.in: Bump version to 8.3.50.DATE-git.
14956
14957 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14958
14959 * aix-thread.c (ptid_cmp): Remove unused variable.
14960 (get_signaled_thread): Likewise.
14961 (store_regs_user_thread): Likewise.
14962 (store_regs_kernel_thread): Likewise.
14963 (fetch_regs_kernel_thread): Remove shadowed variable.
14964
14965 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14966
14967 * features/riscv/32bit-cpu.xml: Add register numbers.
14968 * features/riscv/32bit-fpu.c: Regenerate.
14969 * features/riscv/32bit-fpu.xml: Add register numbers.
14970 * features/riscv/64bit-cpu.xml: Add register numbers.
14971 * features/riscv/64bit-fpu.c: Regenerate.
14972 * features/riscv/64bit-fpu.xml: Add register numbers.
14973
14974 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14975
14976 * NEWS: Mention two argument form of gdb.Value constructor.
14977 * python/py-value.c (convert_buffer_and_type_to_value): New
14978 function.
14979 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14980 Add support for handling an optional second argument. Call
14981 convert_buffer_and_type_to_value as appropriate.
14982 * python/python-internal.h (Py_buffer_deleter): New struct.
14983 (Py_buffer_up): New typedef.
14984
14985 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14986
14987 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14988 instead of releasing ownership.
14989
14990 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14991
14992 * dwarf2read.c (open_and_init_dwp_file): Call
14993 elf_numsections instead of bfd_count_sections to initialize
14994 dwp_file->num_sections.
14995
14996 2019-02-25 Tom Tromey <tromey@adacore.com>
14997
14998 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14999
15000 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
15001
15002 * gcore.in: Add '--readnever' option when invoking GDB.
15003
15004 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
15005
15006 * MAINTAINERS: Update my email address.
15007
15008 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
15009
15010 * build-id.c (build_id_to_debug_bfd_1): New function.
15011 (build_id_to_debug_bfd): Look for separate debug file in
15012 sysroot.
15013
15014 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
15015
15016 * gdbarch.sh: Update the copyright year range that is placed into
15017 generated files.
15018
15019 2019-02-22 Keith Seitz <keiths@redhat.com>
15020
15021 PR symtab/23853
15022 * linespec.c (create_sals_line_offset): Search for the default
15023 symtab's filename instead of its fullname.
15024
15025 2019-02-21 Alan Hayward <alan.hayward@arm.com>
15026
15027 * NEWS: Update style defaults.
15028
15029 2019-02-21 Alan Hayward <alan.hayward@arm.com>
15030
15031 * main.c (captured_main_1): Disable styling in batch mode.
15032
15033 2019-02-20 Tom Tromey <tom@tromey.com>
15034
15035 * symtab.c (symtab_symbol_info): Fix typos.
15036
15037 2019-02-20 Tom Tromey <tromey@adacore.com>
15038
15039 * findcmd.c (_initialize_mem_search): Use upper case for
15040 metasyntactic variables.
15041
15042 2019-02-20 Alan Hayward <alan.hayward@arm.com>
15043
15044 * aarch64-tdep.c (aarch64_add_reggroups): New function.
15045 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
15046
15047 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
15048
15049 * top.h (source_file_name): Change to std::string.
15050 * top.c (source_file_name): Likewise.
15051 (command_line_input): Adjust.
15052 * cli/cli-script.c (script_from_file): Adjust.
15053
15054 2019-02-19 Tom Tromey <tromey@adacore.com>
15055
15056 * ravenscar-thread.c
15057 (ravenscar_thread_target::update_thread_list): Don't call
15058 ada_build_task_list.
15059 * ada-lang.h (ada_build_task_list): Don't declare.
15060 * ada-tasks.c (struct ada_tasks_inferior_data)
15061 <task_list_valid_p>: Now bool.
15062 (read_known_tasks, ada_task_list_changed)
15063 (ada_tasks_invalidate_inferior_data): Update.
15064 (read_known_tasks_array): Return bool.
15065 (read_known_tasks_list): Likewise.
15066 (read_known_tasks): Return void.
15067 (ada_build_task_list): Now static.
15068
15069 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
15070
15071 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
15072 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
15073
15074 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15075
15076 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
15077 variant for ada_tasks_pspace_data_handle and
15078 ada_tasks_inferior_data_handle.
15079 (ada_tasks_pspace_data_cleanup): New function.
15080 (ada_tasks_inferior_data_cleanup): New function.
15081
15082 2019-02-17 Tom Tromey <tom@tromey.com>
15083
15084 * macrotab.h (macro_source_fullname): Return a std::string.
15085 * macrotab.c (macro_include, check_for_redefinition)
15086 (macro_undef, macro_lookup_definition, foreach_macro)
15087 (foreach_macro_in_scope): Update.
15088 (macro_source_fullname): Return a std::string.
15089 * macrocmd.c (show_pp_source_pos): Update.
15090
15091 2019-02-17 Tom Tromey <tom@tromey.com>
15092
15093 * macrocmd.c (show_pp_source_pos): Style the file names.
15094
15095 2019-02-17 Tom Tromey <tom@tromey.com>
15096
15097 PR tui/24197:
15098 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
15099
15100 2019-02-17 Tom Tromey <tom@tromey.com>
15101
15102 * ada-lang.c (user_select_syms): Use filtered printing.
15103 * utils.c (wrap_style): New global.
15104 (desired_style): Remove.
15105 (emit_style_escape): Add stream parameter.
15106 (set_output_style, reset_terminal_style, prompt_for_continue):
15107 Update.
15108 (flush_wrap_buffer): Only flush gdb_stdout.
15109 (wrap_here): Set wrap_style.
15110 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15111 treat escape sequences as a character. Change when wrap buffer is
15112 flushed.
15113 (fputs_styled): Do not set the output style when the default is
15114 requested.
15115 * ui-style.h (struct ui_file_style) <is_default>: New method.
15116 * source.c (print_source_lines_base): Emit escape sequences in one
15117 piece.
15118
15119 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15120
15121 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15122 integers and enumeration types.
15123
15124 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15125
15126 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15127 instead of lookup_symbol_in_language
15128 (do_exact_match): New function.
15129 (ada_get_symbol_name_matcher): Return do_exact_match when
15130 doing a verbatim match.
15131
15132 2019-02-15 Tom Tromey <tromey@adacore.com>
15133
15134 * ravenscar-thread.c (ravenscar_thread_target::resume)
15135 (ravenscar_thread_target::wait): Special case wildcard requests.
15136
15137 2019-02-15 Tom Tromey <tromey@adacore.com>
15138
15139 * ravenscar-thread.c (base_ptid): Remove.
15140 (struct ravenscar_thread_target) <close>: New method.
15141 <m_base_ptid>: New member.
15142 <update_inferior_ptid, active_task, task_is_currently_active,
15143 runtime_initialized>: Declare methods.
15144 <ravenscar_thread_target>: Add constructor.
15145 (ravenscar_thread_target::task_is_currently_active)
15146 (ravenscar_thread_target::update_inferior_ptid)
15147 (ravenscar_runtime_initialized): Rename. Now methods.
15148 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15149 (ravenscar_thread_target::update_thread_list): Update.
15150 (ravenscar_thread_target::active_task): Now method.
15151 (ravenscar_thread_target::store_registers)
15152 (ravenscar_thread_target::prepare_to_store)
15153 (ravenscar_thread_target::prepare_to_store)
15154 (ravenscar_thread_target::mourn_inferior): Update.
15155 (ravenscar_inferior_created): Use "new" to create target.
15156 (ravenscar_thread_target::get_ada_task_ptid): Update.
15157 (_initialize_ravenscar): Don't initialize base_ptid.
15158 (ravenscar_ops): Remove global.
15159
15160 2019-02-15 Tom Tromey <tromey@adacore.com>
15161
15162 * target.h (push_target): Declare new overload.
15163 * target.c (push_target): New overload, taking an rvalue reference.
15164 * remote.c (remote_target::open_1): Use push_target overload.
15165 * corelow.c (core_target_open): Use push_target overload.
15166
15167 2019-02-15 Tom Tromey <tromey@adacore.com>
15168
15169 * ravenscar-thread.c (is_ravenscar_task)
15170 (ravenscar_task_is_currently_active): Return bool.
15171 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15172 (_initialize_ravenscar): Remove "(void)".
15173 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15174 Return bool.
15175
15176 2019-02-15 Tom Tromey <tromey@adacore.com>
15177
15178 * ravenscar-thread.c (ravenscar_runtime_initializer)
15179 (has_ravenscar_runtime, get_running_thread_id)
15180 (ravenscar_thread_target::resume): Fix indentation.
15181
15182 2019-02-15 Tom Tromey <tromey@adacore.com>
15183
15184 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15185 from ravenscar_arch_ops.
15186 (sparc_ravenscar_ops::fetch_registers)
15187 (sparc_ravenscar_ops::store_registers): Now methods.
15188 (sparc_ravenscar_prepare_to_store): Remove.
15189 (sparc_ravenscar_ops): Redefine.
15190 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15191 methods and destructor. Remove members.
15192 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15193 (ravenscar_thread_target::store_registers)
15194 (ravenscar_thread_target::prepare_to_store): Update.
15195 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15196 Remove.
15197 (struct ppc_ravenscar_powerpc_ops): Derive from
15198 ravenscar_arch_ops.
15199 (ppc_ravenscar_powerpc_ops::fetch_registers)
15200 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15201 (ppc_ravenscar_powerpc_ops): Redefine.
15202 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15203 (ppc_ravenscar_e500_ops::fetch_registers)
15204 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15205 (ppc_ravenscar_e500_ops): Redefine.
15206 * aarch64-ravenscar-thread.c
15207 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15208 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15209 (aarch64_ravenscar_fetch_registers)
15210 (aarch64_ravenscar_store_registers): Now methods.
15211 (aarch64_ravenscar_ops): Redefine.
15212
15213 2019-02-15 Tom Tromey <tromey@adacore.com>
15214
15215 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15216 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15217 (ravenscar_thread_target::stopped_by_watchpoint)
15218 (ravenscar_thread_target::stopped_data_address)
15219 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15220
15221 2019-02-15 Tom Tromey <tromey@adacore.com>
15222
15223 * ravenscar-thread.c: Fix some typos.
15224
15225 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15226 Tom Tromey <tromey@adacore.com>
15227
15228 * ada-lang.c (ada_exception_sal): Change addr_string to a
15229 std::string.
15230 (create_ada_exception_catchpoint): Update.
15231
15232 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15233 Tom Tromey <tromey@adacore.com>
15234
15235 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15236 (bp_location_ops): Remove.
15237 (base_breakpoint_allocate_location): Update.
15238 (free_bp_location): Update.
15239 * ada-lang.c (class ada_catchpoint_location)
15240 <ada_catchpoint_location>: Remove ops parameter.
15241 (ada_catchpoint_location_dtor): Remove.
15242 (ada_catchpoint_location_ops): Remove.
15243 (allocate_location_exception): Update.
15244 * breakpoint.h (struct bp_location_ops): Remove.
15245 (class bp_location) <bp_location>: Remove bp_location_ops
15246 parameter.
15247 <~bp_location>: Add destructor.
15248 <ops>: Remove.
15249
15250 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15251 Pedro Alves <palves@redhat.com>
15252
15253 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15254 'PATH_MAX'.
15255
15256 2019-02-14 David Michael <fedora.dm0@gmail.com>
15257 Samuel Thibault <samuel.thibault@gnu.org>
15258 Thomas Schwinge <thomas@codesourcery.com>
15259
15260 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15261 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15262
15263 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15264
15265 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15266 (check_empty): Use "const char *".
15267
15268 * gnu-nat.c (gnu_nat_target::detach): Instead of
15269 'detach_inferior (pid)' call
15270 'detach_inferior (find_inferior_pid (pid))'.
15271
15272 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15273 'nat/fork-inferior.o'.
15274 * gnu-nat.c: #include "nat/fork-inferior.h".
15275
15276 * gnu-nat.c (gnu_nat_target::detach): Instead of
15277 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15278 * gnu-nat.h: #include "inf-child.h".
15279 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15280 'i386_gnu_nat_target::fetch_registers'.
15281 (gnu_store_registers): Rename/move to
15282 'i386_gnu_nat_target::store_registers'.
15283
15284 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15285 * gnu-nat.h (mach_thread_info): New function.
15286 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15287
15288 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15289
15290 2019-02-14 Frederic Konrad <konrad@adacore.com>
15291
15292 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15293
15294 2019-02-14 Joel Brobecker <brobecker@adacore.com>
15295
15296 * windows-nat.c (windows_add_thread): Add new parameter
15297 "main_thread_p" with default value set to false. Update
15298 function documentation as well as all callers.
15299 (windows_delete_thread): Likewise.
15300 (fake_create_process): Update call to windows_add_thread.
15301 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15302 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15303 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15304 call to windows_delete_thread.
15305
15306 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15307
15308 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15309
15310 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15311
15312 * symfile.c (find_separate_debug_file): Use canonical path of
15313 sysroot with child_path instead of gdb_sysroot if it is valid.
15314
15315 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15316
15317 * symfile.c (find_separate_debug_file): Use child_path to
15318 determine if an object file is under a sysroot.
15319
15320 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15321
15322 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15323 unittests/child-path-selftests.c.
15324 * common/pathstuff.c (child_path): New function.
15325 * common/pathstuff.h (child_path): New prototype.
15326 * unittests/child-path-selftests.c: New file.
15327
15328 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15329
15330 * symfile.c (find_separate_debug_file): Look for separate debug
15331 files in debug directories under the sysroot.
15332
15333 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15334
15335 * symtab.h (struct minimal_symbol data_p): New const method.
15336 (struct minimal_symbol text_p): Likewise.
15337 * symtab.c (output_source_filename): Use file name style
15338 to print file name.
15339 (print_symbol_info): Likewise.
15340 (print_msymbol_info): Use address style to print addresses.
15341 Use function name style to print executable text symbols.
15342 (expand_symtab_containing_pc): Use data_p.
15343 (find_pc_sect_compunit_symtab): Likewise.
15344
15345 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15346
15347 * breakpoint.c (describe_other_breakpoints): Use address style
15348 to print addresses.
15349 (say_where): Likewise.
15350
15351 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15352
15353 * ada-typeprint.c (print_func_type): Print function name
15354 style to print function name.
15355 * c-typeprint.c (c_print_type_1): Likewise.
15356
15357 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15358
15359 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15360 for execve.
15361
15362 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15363
15364 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15365 type_stack.
15366
15367 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15368
15369 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15370 TYPE_CODE_REF types.
15371
15372 2019-02-08 Jim Wilson <jimw@sifive.com>
15373
15374 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15375 (riscv_linux_fregset): New.
15376 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15377
15378 2019-02-07 Tom Tromey <tom@tromey.com>
15379
15380 * thread.c (thread_cancel_execution_command): Update.
15381 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15382 methods.
15383 (struct thread_fsm_ops): Remove.
15384 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15385 (thread_fsm_should_stop, thread_fsm_return_value)
15386 (thread_fsm_set_finished, thread_fsm_finished_p)
15387 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15388 Don't declare.
15389 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15390 * infrun.c (clear_proceed_status_thread)
15391 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15392 (print_stop_event): Update.
15393 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15394 Add constructor.
15395 (step_command_fsm_ops): Remove.
15396 (new_step_command_fsm): Remove.
15397 (step_1): Update.
15398 (step_command_fsm::should_stop): Rename from
15399 step_command_fsm_should_stop.
15400 (step_command_fsm::clean_up): Rename from
15401 step_command_fsm_clean_up.
15402 (step_command_fsm::do_async_reply_reason): Rename from
15403 step_command_fsm_async_reply_reason.
15404 (struct until_next_fsm): Inherit from thread_fsm. Add
15405 constructor.
15406 (until_next_fsm_ops): Remove.
15407 (new_until_next_fsm): Remove.
15408 (until_next_fsm::should_stop): Rename from
15409 until_next_fsm_should_stop.
15410 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15411 (until_next_fsm::do_async_reply_reason): Rename from
15412 until_next_fsm_async_reply_reason.
15413 (struct finish_command_fsm): Inherit from thread_fsm. Add
15414 constructor. Change type of breakpoint.
15415 (finish_command_fsm_ops): Remove.
15416 (new_finish_command_fsm): Remove.
15417 (finish_command_fsm::should_stop): Rename from
15418 finish_command_fsm_should_stop.
15419 (finish_command_fsm::clean_up): Rename from
15420 finish_command_fsm_clean_up.
15421 (finish_command_fsm::return_value): Rename from
15422 finish_command_fsm_return_value.
15423 (finish_command_fsm::do_async_reply_reason): Rename from
15424 finish_command_fsm_async_reply_reason.
15425 (finish_command): Update.
15426 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15427 Add constructor.
15428 (call_thread_fsm_ops): Remove.
15429 (call_thread_fsm::call_thread_fsm): Rename from
15430 new_call_thread_fsm.
15431 (call_thread_fsm::should_stop): Rename from
15432 call_thread_fsm_should_stop.
15433 (call_thread_fsm::should_notify_stop): Rename from
15434 call_thread_fsm_should_notify_stop.
15435 (run_inferior_call, call_function_by_hand_dummy): Update.
15436 * cli/cli-interp.c (should_print_stop_to_console): Update.
15437 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15438 Add constructor. Change type of location_breakpoint,
15439 caller_breakpoint.
15440 (until_break_fsm_ops): Remove.
15441 (new_until_break_fsm): Remove.
15442 (until_break_fsm::should_stop): Rename from
15443 until_break_fsm_should_stop.
15444 (until_break_fsm::clean_up): Rename from
15445 until_break_fsm_clean_up.
15446 (until_break_fsm::do_async_reply_reason): Rename from
15447 until_break_fsm_async_reply_reason.
15448 (until_break_command): Update.
15449 * thread-fsm.c: Remove.
15450 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15451
15452 2019-02-07 Tom Tromey <tom@tromey.com>
15453
15454 * yy-remap.h: Add include guard.
15455 * xtensa-tdep.h: Add include guard.
15456 * xcoffread.h: Rename include guard.
15457 * varobj-iter.h: Add include guard.
15458 * tui/tui.h: Rename include guard.
15459 * tui/tui-winsource.h: Rename include guard.
15460 * tui/tui-wingeneral.h: Rename include guard.
15461 * tui/tui-windata.h: Rename include guard.
15462 * tui/tui-win.h: Rename include guard.
15463 * tui/tui-stack.h: Rename include guard.
15464 * tui/tui-source.h: Rename include guard.
15465 * tui/tui-regs.h: Rename include guard.
15466 * tui/tui-out.h: Rename include guard.
15467 * tui/tui-layout.h: Rename include guard.
15468 * tui/tui-io.h: Rename include guard.
15469 * tui/tui-hooks.h: Rename include guard.
15470 * tui/tui-file.h: Rename include guard.
15471 * tui/tui-disasm.h: Rename include guard.
15472 * tui/tui-data.h: Rename include guard.
15473 * tui/tui-command.h: Rename include guard.
15474 * tic6x-tdep.h: Add include guard.
15475 * target/waitstatus.h: Rename include guard.
15476 * target/wait.h: Rename include guard.
15477 * target/target.h: Rename include guard.
15478 * target/resume.h: Rename include guard.
15479 * target-float.h: Rename include guard.
15480 * stabsread.h: Add include guard.
15481 * rs6000-tdep.h: Add include guard.
15482 * riscv-fbsd-tdep.h: Add include guard.
15483 * regformats/regdef.h: Rename include guard.
15484 * record.h: Rename include guard.
15485 * python/python.h: Rename include guard.
15486 * python/python-internal.h: Rename include guard.
15487 * python/py-stopevent.h: Rename include guard.
15488 * python/py-ref.h: Rename include guard.
15489 * python/py-record.h: Rename include guard.
15490 * python/py-record-full.h: Rename include guard.
15491 * python/py-record-btrace.h: Rename include guard.
15492 * python/py-instruction.h: Rename include guard.
15493 * python/py-events.h: Rename include guard.
15494 * python/py-event.h: Rename include guard.
15495 * procfs.h: Add include guard.
15496 * proc-utils.h: Add include guard.
15497 * p-lang.h: Add include guard.
15498 * or1k-tdep.h: Rename include guard.
15499 * observable.h: Rename include guard.
15500 * nto-tdep.h: Rename include guard.
15501 * nat/x86-linux.h: Rename include guard.
15502 * nat/x86-linux-dregs.h: Rename include guard.
15503 * nat/x86-gcc-cpuid.h: Add include guard.
15504 * nat/x86-dregs.h: Rename include guard.
15505 * nat/x86-cpuid.h: Rename include guard.
15506 * nat/ppc-linux.h: Rename include guard.
15507 * nat/mips-linux-watch.h: Rename include guard.
15508 * nat/linux-waitpid.h: Rename include guard.
15509 * nat/linux-ptrace.h: Rename include guard.
15510 * nat/linux-procfs.h: Rename include guard.
15511 * nat/linux-osdata.h: Rename include guard.
15512 * nat/linux-nat.h: Rename include guard.
15513 * nat/linux-namespaces.h: Rename include guard.
15514 * nat/linux-btrace.h: Rename include guard.
15515 * nat/glibc_thread_db.h: Rename include guard.
15516 * nat/gdb_thread_db.h: Rename include guard.
15517 * nat/gdb_ptrace.h: Rename include guard.
15518 * nat/fork-inferior.h: Rename include guard.
15519 * nat/amd64-linux-siginfo.h: Rename include guard.
15520 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15521 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15522 * nat/aarch64-linux.h: Rename include guard.
15523 * nat/aarch64-linux-hw-point.h: Rename include guard.
15524 * mn10300-tdep.h: Add include guard.
15525 * mips-linux-tdep.h: Add include guard.
15526 * mi/mi-parse.h: Rename include guard.
15527 * mi/mi-out.h: Rename include guard.
15528 * mi/mi-main.h: Rename include guard.
15529 * mi/mi-interp.h: Rename include guard.
15530 * mi/mi-getopt.h: Rename include guard.
15531 * mi/mi-console.h: Rename include guard.
15532 * mi/mi-common.h: Rename include guard.
15533 * mi/mi-cmds.h: Rename include guard.
15534 * mi/mi-cmd-break.h: Rename include guard.
15535 * m2-lang.h: Add include guard.
15536 * location.h: Rename include guard.
15537 * linux-record.h: Rename include guard.
15538 * linux-nat.h: Add include guard.
15539 * linux-fork.h: Add include guard.
15540 * i386-darwin-tdep.h: Rename include guard.
15541 * hppa-linux-offsets.h: Add include guard.
15542 * guile/guile.h: Rename include guard.
15543 * guile/guile-internal.h: Rename include guard.
15544 * gnu-nat.h: Rename include guard.
15545 * gdb-stabs.h: Rename include guard.
15546 * frv-tdep.h: Add include guard.
15547 * f-lang.h: Add include guard.
15548 * event-loop.h: Add include guard.
15549 * darwin-nat.h: Rename include guard.
15550 * cp-abi.h: Rename include guard.
15551 * config/sparc/nm-sol2.h: Rename include guard.
15552 * config/nm-nto.h: Rename include guard.
15553 * config/nm-linux.h: Add include guard.
15554 * config/i386/nm-i386gnu.h: Rename include guard.
15555 * config/djgpp/nl_types.h: Rename include guard.
15556 * config/djgpp/langinfo.h: Rename include guard.
15557 * compile/gcc-cp-plugin.h: Add include guard.
15558 * compile/gcc-c-plugin.h: Add include guard.
15559 * compile/compile.h: Rename include guard.
15560 * compile/compile-object-run.h: Rename include guard.
15561 * compile/compile-object-load.h: Rename include guard.
15562 * compile/compile-internal.h: Rename include guard.
15563 * compile/compile-cplus.h: Rename include guard.
15564 * compile/compile-c.h: Rename include guard.
15565 * common/xml-utils.h: Rename include guard.
15566 * common/x86-xstate.h: Rename include guard.
15567 * common/version.h: Rename include guard.
15568 * common/vec.h: Rename include guard.
15569 * common/tdesc.h: Rename include guard.
15570 * common/selftest.h: Rename include guard.
15571 * common/scoped_restore.h: Rename include guard.
15572 * common/scoped_mmap.h: Rename include guard.
15573 * common/scoped_fd.h: Rename include guard.
15574 * common/safe-iterator.h: Rename include guard.
15575 * common/run-time-clock.h: Rename include guard.
15576 * common/refcounted-object.h: Rename include guard.
15577 * common/queue.h: Rename include guard.
15578 * common/ptid.h: Rename include guard.
15579 * common/print-utils.h: Rename include guard.
15580 * common/preprocessor.h: Rename include guard.
15581 * common/pathstuff.h: Rename include guard.
15582 * common/observable.h: Rename include guard.
15583 * common/netstuff.h: Rename include guard.
15584 * common/job-control.h: Rename include guard.
15585 * common/host-defs.h: Rename include guard.
15586 * common/gdb_wait.h: Rename include guard.
15587 * common/gdb_vecs.h: Rename include guard.
15588 * common/gdb_unlinker.h: Rename include guard.
15589 * common/gdb_unique_ptr.h: Rename include guard.
15590 * common/gdb_tilde_expand.h: Rename include guard.
15591 * common/gdb_sys_time.h: Rename include guard.
15592 * common/gdb_string_view.h: Rename include guard.
15593 * common/gdb_splay_tree.h: Rename include guard.
15594 * common/gdb_setjmp.h: Rename include guard.
15595 * common/gdb_ref_ptr.h: Rename include guard.
15596 * common/gdb_optional.h: Rename include guard.
15597 * common/gdb_locale.h: Rename include guard.
15598 * common/gdb_assert.h: Rename include guard.
15599 * common/filtered-iterator.h: Rename include guard.
15600 * common/filestuff.h: Rename include guard.
15601 * common/fileio.h: Rename include guard.
15602 * common/environ.h: Rename include guard.
15603 * common/common-utils.h: Rename include guard.
15604 * common/common-types.h: Rename include guard.
15605 * common/common-regcache.h: Rename include guard.
15606 * common/common-inferior.h: Rename include guard.
15607 * common/common-gdbthread.h: Rename include guard.
15608 * common/common-exceptions.h: Rename include guard.
15609 * common/common-defs.h: Rename include guard.
15610 * common/common-debug.h: Rename include guard.
15611 * common/cleanups.h: Rename include guard.
15612 * common/buffer.h: Rename include guard.
15613 * common/btrace-common.h: Rename include guard.
15614 * common/break-common.h: Rename include guard.
15615 * cli/cli-utils.h: Rename include guard.
15616 * cli/cli-style.h: Rename include guard.
15617 * cli/cli-setshow.h: Rename include guard.
15618 * cli/cli-script.h: Rename include guard.
15619 * cli/cli-interp.h: Rename include guard.
15620 * cli/cli-decode.h: Rename include guard.
15621 * cli/cli-cmds.h: Rename include guard.
15622 * charset-list.h: Add include guard.
15623 * buildsym-legacy.h: Rename include guard.
15624 * bfin-tdep.h: Add include guard.
15625 * ax.h: Rename include guard.
15626 * arm-linux-tdep.h: Add include guard.
15627 * arm-fbsd-tdep.h: Add include guard.
15628 * arch/xtensa.h: Rename include guard.
15629 * arch/tic6x.h: Add include guard.
15630 * arch/i386.h: Add include guard.
15631 * arch/arm.h: Rename include guard.
15632 * arch/arm-linux.h: Rename include guard.
15633 * arch/arm-get-next-pcs.h: Rename include guard.
15634 * arch/amd64.h: Add include guard.
15635 * arch/aarch64-insn.h: Rename include guard.
15636 * arch-utils.h: Rename include guard.
15637 * annotate.h: Add include guard.
15638 * amd64-darwin-tdep.h: Rename include guard.
15639 * aarch64-linux-tdep.h: Add include guard.
15640 * aarch64-fbsd-tdep.h: Add include guard.
15641 * aarch32-linux-nat.h: Add include guard.
15642
15643 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15644
15645 * macrotab.c (macro_define_internal): New function that
15646 factorizes macro_define_object_internal and macro_define_function
15647 code.
15648 (macro_define_object_internal): Use macro_define_internal.
15649 (macro_define_function): Likewise.
15650
15651 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15652
15653 * macrocmd.c (extract_identifier): Return
15654 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15655 callers.
15656
15657 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15658
15659 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15660
15661 2019-02-05 Tom Tromey <tom@tromey.com>
15662
15663 * target.c (target_stack::unpush): Move assertion earlier.
15664
15665 2019-01-30 Tom Tromey <tom@tromey.com>
15666
15667 PR python/23615:
15668 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15669 (gdbpy_parse_and_eval): Likewise.
15670 * python/python-internal.h (gdbpy_allow_threads): New class.
15671
15672 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15673
15674 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15675 (aarch64_fbsd_fpregmap): Move earlier.
15676 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15677 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15678 instead of individual calls to trad_frame_set_reg_addr.
15679 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15680 earlier.
15681 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15682 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15683 instead of individual calls to trad_frame_set_reg_addr.
15684
15685 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15686
15687 * CONTRIBUTE: Replace contribution list with wiki link.
15688
15689 2019-01-25 Tom Tromey <tom@tromey.com>
15690
15691 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15692
15693 2019-01-25 Tom Tromey <tom@tromey.com>
15694
15695 * xtensa-linux-nat.c: Fix common/ includes.
15696 * xml-support.h: Fix common/ includes.
15697 * xml-support.c: Fix common/ includes.
15698 * x86-linux-nat.c: Fix common/ includes.
15699 * windows-nat.c: Fix common/ includes.
15700 * varobj.h: Fix common/ includes.
15701 * varobj.c: Fix common/ includes.
15702 * value.c: Fix common/ includes.
15703 * valops.c: Fix common/ includes.
15704 * utils.c: Fix common/ includes.
15705 * unittests/xml-utils-selftests.c: Fix common/ includes.
15706 * unittests/utils-selftests.c: Fix common/ includes.
15707 * unittests/unpack-selftests.c: Fix common/ includes.
15708 * unittests/tracepoint-selftests.c: Fix common/ includes.
15709 * unittests/style-selftests.c: Fix common/ includes.
15710 * unittests/string_view-selftests.c: Fix common/ includes.
15711 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15712 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15713 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15714 * unittests/rsp-low-selftests.c: Fix common/ includes.
15715 * unittests/parse-connection-spec-selftests.c: Fix common/
15716 includes.
15717 * unittests/optional-selftests.c: Fix common/ includes.
15718 * unittests/offset-type-selftests.c: Fix common/ includes.
15719 * unittests/observable-selftests.c: Fix common/ includes.
15720 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15721 * unittests/memrange-selftests.c: Fix common/ includes.
15722 * unittests/memory-map-selftests.c: Fix common/ includes.
15723 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15724 * unittests/function-view-selftests.c: Fix common/ includes.
15725 * unittests/environ-selftests.c: Fix common/ includes.
15726 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15727 * unittests/common-utils-selftests.c: Fix common/ includes.
15728 * unittests/cli-utils-selftests.c: Fix common/ includes.
15729 * unittests/array-view-selftests.c: Fix common/ includes.
15730 * ui-file.c: Fix common/ includes.
15731 * tui/tui-io.c: Fix common/ includes.
15732 * tracepoint.h: Fix common/ includes.
15733 * tracepoint.c: Fix common/ includes.
15734 * tracefile-tfile.c: Fix common/ includes.
15735 * top.h: Fix common/ includes.
15736 * top.c: Fix common/ includes.
15737 * thread.c: Fix common/ includes.
15738 * target/waitstatus.h: Fix common/ includes.
15739 * target/waitstatus.c: Fix common/ includes.
15740 * target.h: Fix common/ includes.
15741 * target.c: Fix common/ includes.
15742 * target-memory.c: Fix common/ includes.
15743 * target-descriptions.c: Fix common/ includes.
15744 * symtab.h: Fix common/ includes.
15745 * symfile.c: Fix common/ includes.
15746 * stap-probe.c: Fix common/ includes.
15747 * spu-linux-nat.c: Fix common/ includes.
15748 * sparc-nat.c: Fix common/ includes.
15749 * source.c: Fix common/ includes.
15750 * solib.c: Fix common/ includes.
15751 * solib-target.c: Fix common/ includes.
15752 * ser-unix.c: Fix common/ includes.
15753 * ser-tcp.c: Fix common/ includes.
15754 * ser-pipe.c: Fix common/ includes.
15755 * ser-base.c: Fix common/ includes.
15756 * selftest-arch.c: Fix common/ includes.
15757 * s12z-tdep.c: Fix common/ includes.
15758 * rust-exp.y: Fix common/ includes.
15759 * rs6000-aix-tdep.c: Fix common/ includes.
15760 * riscv-tdep.c: Fix common/ includes.
15761 * remote.c: Fix common/ includes.
15762 * remote-notif.h: Fix common/ includes.
15763 * remote-fileio.h: Fix common/ includes.
15764 * remote-fileio.c: Fix common/ includes.
15765 * regcache.h: Fix common/ includes.
15766 * regcache.c: Fix common/ includes.
15767 * record-btrace.c: Fix common/ includes.
15768 * python/python.c: Fix common/ includes.
15769 * python/py-type.c: Fix common/ includes.
15770 * python/py-inferior.c: Fix common/ includes.
15771 * progspace.h: Fix common/ includes.
15772 * producer.c: Fix common/ includes.
15773 * procfs.c: Fix common/ includes.
15774 * proc-api.c: Fix common/ includes.
15775 * printcmd.c: Fix common/ includes.
15776 * ppc-linux-nat.c: Fix common/ includes.
15777 * parser-defs.h: Fix common/ includes.
15778 * osdata.c: Fix common/ includes.
15779 * obsd-nat.c: Fix common/ includes.
15780 * nat/x86-linux.c: Fix common/ includes.
15781 * nat/x86-linux-dregs.c: Fix common/ includes.
15782 * nat/x86-dregs.h: Fix common/ includes.
15783 * nat/x86-dregs.c: Fix common/ includes.
15784 * nat/ppc-linux.c: Fix common/ includes.
15785 * nat/mips-linux-watch.h: Fix common/ includes.
15786 * nat/mips-linux-watch.c: Fix common/ includes.
15787 * nat/linux-waitpid.c: Fix common/ includes.
15788 * nat/linux-ptrace.h: Fix common/ includes.
15789 * nat/linux-ptrace.c: Fix common/ includes.
15790 * nat/linux-procfs.c: Fix common/ includes.
15791 * nat/linux-personality.c: Fix common/ includes.
15792 * nat/linux-osdata.c: Fix common/ includes.
15793 * nat/linux-namespaces.c: Fix common/ includes.
15794 * nat/linux-btrace.h: Fix common/ includes.
15795 * nat/linux-btrace.c: Fix common/ includes.
15796 * nat/fork-inferior.c: Fix common/ includes.
15797 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15798 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15799 * nat/aarch64-linux.c: Fix common/ includes.
15800 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15801 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15802 * namespace.h: Fix common/ includes.
15803 * mips-linux-tdep.c: Fix common/ includes.
15804 * minsyms.c: Fix common/ includes.
15805 * mi/mi-parse.h: Fix common/ includes.
15806 * mi/mi-main.c: Fix common/ includes.
15807 * mi/mi-cmd-env.c: Fix common/ includes.
15808 * memrange.h: Fix common/ includes.
15809 * memattr.c: Fix common/ includes.
15810 * maint.h: Fix common/ includes.
15811 * maint.c: Fix common/ includes.
15812 * main.c: Fix common/ includes.
15813 * machoread.c: Fix common/ includes.
15814 * location.c: Fix common/ includes.
15815 * linux-thread-db.c: Fix common/ includes.
15816 * linux-nat.c: Fix common/ includes.
15817 * linux-fork.c: Fix common/ includes.
15818 * inline-frame.c: Fix common/ includes.
15819 * infrun.c: Fix common/ includes.
15820 * inflow.c: Fix common/ includes.
15821 * inferior.h: Fix common/ includes.
15822 * inferior.c: Fix common/ includes.
15823 * infcmd.c: Fix common/ includes.
15824 * inf-ptrace.c: Fix common/ includes.
15825 * inf-child.c: Fix common/ includes.
15826 * ia64-linux-nat.c: Fix common/ includes.
15827 * i387-tdep.c: Fix common/ includes.
15828 * i386-tdep.c: Fix common/ includes.
15829 * i386-linux-tdep.c: Fix common/ includes.
15830 * i386-linux-nat.c: Fix common/ includes.
15831 * i386-go32-tdep.c: Fix common/ includes.
15832 * i386-fbsd-tdep.c: Fix common/ includes.
15833 * i386-fbsd-nat.c: Fix common/ includes.
15834 * guile/scm-type.c: Fix common/ includes.
15835 * guile/guile.c: Fix common/ includes.
15836 * go32-nat.c: Fix common/ includes.
15837 * gnu-nat.c: Fix common/ includes.
15838 * gdbthread.h: Fix common/ includes.
15839 * gdbarch-selftests.c: Fix common/ includes.
15840 * gdb_usleep.c: Fix common/ includes.
15841 * gdb_select.h: Fix common/ includes.
15842 * gdb_bfd.c: Fix common/ includes.
15843 * gcore.c: Fix common/ includes.
15844 * fork-child.c: Fix common/ includes.
15845 * findvar.c: Fix common/ includes.
15846 * fbsd-nat.c: Fix common/ includes.
15847 * event-top.c: Fix common/ includes.
15848 * event-loop.c: Fix common/ includes.
15849 * dwarf2read.c: Fix common/ includes.
15850 * dwarf2loc.c: Fix common/ includes.
15851 * dwarf2-frame.c: Fix common/ includes.
15852 * dwarf-index-cache.c: Fix common/ includes.
15853 * dtrace-probe.c: Fix common/ includes.
15854 * disasm-selftests.c: Fix common/ includes.
15855 * defs.h: Fix common/ includes.
15856 * csky-tdep.c: Fix common/ includes.
15857 * cp-valprint.c: Fix common/ includes.
15858 * cp-support.h: Fix common/ includes.
15859 * cp-support.c: Fix common/ includes.
15860 * corelow.c: Fix common/ includes.
15861 * completer.h: Fix common/ includes.
15862 * completer.c: Fix common/ includes.
15863 * compile/compile.c: Fix common/ includes.
15864 * compile/compile-loc2c.c: Fix common/ includes.
15865 * compile/compile-cplus-types.c: Fix common/ includes.
15866 * compile/compile-cplus-symbols.c: Fix common/ includes.
15867 * command.h: Fix common/ includes.
15868 * cli/cli-dump.c: Fix common/ includes.
15869 * cli/cli-cmds.c: Fix common/ includes.
15870 * charset.c: Fix common/ includes.
15871 * build-id.c: Fix common/ includes.
15872 * btrace.h: Fix common/ includes.
15873 * btrace.c: Fix common/ includes.
15874 * breakpoint.h: Fix common/ includes.
15875 * breakpoint.c: Fix common/ includes.
15876 * ax.h:
15877 (enum agent_op): Fix common/ includes.
15878 * ax-general.c (struct aop_map): Fix common/ includes.
15879 * ax-gdb.c: Fix common/ includes.
15880 * auxv.c: Fix common/ includes.
15881 * auto-load.c: Fix common/ includes.
15882 * arm-tdep.c: Fix common/ includes.
15883 * arch/riscv.c: Fix common/ includes.
15884 * arch/ppc-linux-common.c: Fix common/ includes.
15885 * arch/i386.c: Fix common/ includes.
15886 * arch/arm.c: Fix common/ includes.
15887 * arch/arm-linux.c: Fix common/ includes.
15888 * arch/arm-get-next-pcs.c: Fix common/ includes.
15889 * arch/amd64.c: Fix common/ includes.
15890 * arch/aarch64.c: Fix common/ includes.
15891 * arch/aarch64-insn.c: Fix common/ includes.
15892 * arch-utils.c: Fix common/ includes.
15893 * amd64-windows-tdep.c: Fix common/ includes.
15894 * amd64-tdep.c: Fix common/ includes.
15895 * amd64-sol2-tdep.c: Fix common/ includes.
15896 * amd64-obsd-tdep.c: Fix common/ includes.
15897 * amd64-nbsd-tdep.c: Fix common/ includes.
15898 * amd64-linux-tdep.c: Fix common/ includes.
15899 * amd64-linux-nat.c: Fix common/ includes.
15900 * amd64-fbsd-tdep.c: Fix common/ includes.
15901 * amd64-fbsd-nat.c: Fix common/ includes.
15902 * amd64-dicos-tdep.c: Fix common/ includes.
15903 * amd64-darwin-tdep.c: Fix common/ includes.
15904 * agent.c: Fix common/ includes.
15905 * ada-lang.h: Fix common/ includes.
15906 * ada-lang.c: Fix common/ includes.
15907 * aarch64-tdep.c: Fix common/ includes.
15908
15909 2019-01-25 Tom Tromey <tom@tromey.com>
15910
15911 * common/create-version.sh: Use common/version.h.
15912
15913 2019-01-24 Pedro Alves <palves@redhat.com>
15914
15915 * infrun.c (signal_stop, signal_print, signal_program)
15916 (signal_catch, signal_pass): Now arrays instead of pointers.
15917 (update_signals_program_target, do_target_resume)
15918 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15919 * linux-nat.c (linux_nat_target::pass_signals)
15920 (linux_nat_target::create_inferior, linux_nat_target::attach):
15921 Adjust.
15922 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15923 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15924 * procfs.c (procfs_target::pass_signals): Adjust.
15925 * record-full.c (record_full_target::resume): Adjust.
15926 * remote.c (remote_target::pass_signals)
15927 (remote_target::program_signals): Adjust.
15928 * target-debug.h (target_debug_print_signals): Now takes a
15929 gdb::array_view as parameter. Adjust.
15930 * target.h (target_ops) <pass_signals, program_signals>: Replace
15931 pointer and length parameters with gdb::array_view.
15932 (target_pass_signals, target_program_signals): Likewise.
15933 * target-delegates.c: Regenerate.
15934
15935 2019-01-24 Pedro Alves <palves@redhat.com>
15936
15937 * common/forward-scope-exit.h
15938 (forward_scope_exit::forward_scope_exit): Pass arguments to
15939 m_bind_function directly, instead of creating a std::bind and
15940 copying that.
15941
15942 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15943
15944 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15945 for static members.
15946 (pass_in_v_vfp_candidate): Likewise.
15947
15948 2019-01-23 Tom Tromey <tom@tromey.com>
15949 Pedro Alves <palves@redhat.com>
15950
15951 * regcache.c (class regcache_invalidator): Remove.
15952 (regcache::raw_write): Use make_scope_exit.
15953
15954 2019-01-23 Tom Tromey <tom@tromey.com>
15955
15956 * ui-out.h (class ui_out_emit_type): Update comment.
15957
15958 2019-01-23 Tom Tromey <tom@tromey.com>
15959
15960 * infrun.c (fetch_inferior_event): Update comment.
15961
15962 2019-01-23 Tom Tromey <tom@tromey.com>
15963 Pedro Alves <palves@redhat.com>
15964
15965 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15966 parameter.
15967 (fetch_inferior_event): Use SCOPE_EXIT.
15968
15969
15970 2019-01-23 Tom Tromey <tom@tromey.com>
15971 Pedro Alves <palves@redhat.com>
15972
15973 * infrun.c (disable_thread_events): Delete.
15974 (stop_all_threads): Use SCOPE_EXIT.
15975
15976 2019-01-23 Tom Tromey <tom@tromey.com>
15977 Pedro Alves <palves@redhat.com>
15978
15979 * symfile.c: Include forward-scope-exit.h.
15980 (clear_symtab_users_cleanup): Replace forward declaration with
15981 a FORWARD_SCOPE_EXIT.
15982 (syms_from_objfile_1): Use the forward_scope_exit and
15983 gdb::optional instead of cleanup_function.
15984 (reread_symbols): Use the forward_scope_exit instead of
15985 cleanup_function.
15986 (clear_symtab_users_cleanup): Remove function.
15987
15988 2019-01-23 Tom Tromey <tom@tromey.com>
15989 Pedro Alves <palves@redhat.com>
15990
15991 * linux-nat.c: Include scope-exit.h.
15992 (cleanup_target_stop): Remove.
15993 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15994 SCOPE_EXIT.
15995
15996 2019-01-23 Tom Tromey <tom@tromey.com>
15997 Pedro Alves <palves@redhat.com>
15998
15999 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
16000 (call_function_by_hand_dummy): Use SCOPE_EXIT.
16001
16002 2019-01-23 Tom Tromey <tom@tromey.com>
16003 Andrew Burgess <andrew.burgess@embecosm.com>
16004 Pedro Alves <palves@redhat.com>
16005
16006 * infrun.c (fetch_inferior_event): Use scope_exit.
16007 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
16008 * top.c (execute_command): Use scope_exit.
16009 * breakpoint.c (bpstat_do_actions): Use scope_exit.
16010 * utils.c (do_bpstat_clear_actions_cleanup)
16011 (make_bpstat_clear_actions_cleanup): Remove.
16012
16013 2019-01-23 Tom Tromey <tom@tromey.com>
16014 Pedro Alves <palves@redhat.com>
16015
16016 * infrun.c: Include "common/scope-exit.h"
16017 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
16018 (wait_for_inferior): Use SCOPE_EXIT.
16019 (fetch_inferior_event): Use scope_exit.
16020
16021 2019-01-23 Tom Tromey <tom@tromey.com>
16022 Pedro Alves <palves@redhat.com>
16023
16024 * breakpoint.c (create_breakpoint): Remove cleanup.
16025
16026 2019-01-23 Tom Tromey <tom@tromey.com>
16027 Andrew Burgess <andrew.burgess@embecosm.com>
16028 Pedro Alves <palves@redhat.com>
16029
16030 2019-01-23 Pedro Alves <palves@redhat.com>
16031
16032 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
16033
16034 2019-01-23 Pedro Alves <palves@redhat.com>
16035 Andrew Burgess <andrew.burgess@embecosm.com>
16036
16037 * gdbthread.h: Include "common/forward-scope-exit.h".
16038 (scoped_finish_thread_state): Redefine custom class in terms of
16039 forward_scope_exit.
16040
16041 2019-01-23 Pedro Alves <palves@redhat.com>
16042 Andrew Burgess <andrew.burgess@embecosm.com>
16043
16044 * common/forward-scope-exit.h: New file.
16045
16046 2019-01-23 Pedro Alves <palves@redhat.com>
16047 Andrew Burgess <andrew.burgess@embecosm.com>
16048 Tom Tromey <tom@tromey.com>
16049
16050 * common/scope-exit.h: New file.
16051
16052 2019-01-23 Pedro Alves <palves@redhat.com>
16053
16054 * common/preprocessor.h (ESC): Rename to ...
16055 (ESC_PARENS): ... this.
16056 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
16057 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
16058
16059 2019-01-23 Tom Tromey <tom@tromey.com>
16060
16061 * language.h (class scoped_switch_to_sym_language_if_auto):
16062 Initialize m_lang in both cases.
16063
16064 2019-01-23 Alan Hayward <alan.hayward@arm.com>
16065
16066 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
16067 with XCNEW.
16068
16069 2019-01-22 Tom Tromey <tom@tromey.com>
16070
16071 * corelow.c: Do not include sys/file.h.
16072
16073 2019-01-22 Tom Tromey <tom@tromey.com>
16074
16075 * tui/tui-wingeneral.h: Include gdb_curses.h.
16076
16077 2019-01-22 Tom Tromey <tom@tromey.com>
16078
16079 * source-cache.h (class source_cache) <get_source_lines,
16080 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
16081
16082 2019-01-22 Tom Tromey <tom@tromey.com>
16083
16084 * remote-fileio.h (struct remote_target): Declare.
16085
16086 2019-01-22 Tom Tromey <tom@tromey.com>
16087
16088 * python/py-arch.c: Do not include py-ref.h.
16089 * python/py-bpevent.c: Do not include py-ref.h.
16090 * python/py-cmd.c: Do not include py-ref.h.
16091 * python/py-continueevent.c: Do not include py-ref.h.
16092 * python/py-event.h: Do not include py-ref.h.
16093 * python/py-evtregistry.c: Do not include py-ref.h.
16094 * python/py-finishbreakpoint.c: Do not include py-ref.h.
16095 * python/py-frame.c: Do not include py-ref.h.
16096 * python/py-framefilter.c: Do not include py-ref.h.
16097 * python/py-function.c: Do not include py-ref.h.
16098 * python/py-infevents.c: Do not include py-ref.h.
16099 * python/py-linetable.c: Do not include py-ref.h.
16100 * python/py-objfile.c: Do not include py-ref.h.
16101 * python/py-param.c: Do not include py-ref.h.
16102 * python/py-prettyprint.c: Do not include py-ref.h.
16103 * python/py-progspace.c: Do not include py-ref.h.
16104 * python/py-symbol.c: Do not include py-ref.h.
16105 * python/py-symtab.c: Do not include py-ref.h.
16106 * python/py-type.c: Do not include py-ref.h.
16107 * python/py-unwind.c: Do not include py-ref.h.
16108 * python/py-utils.c: Do not include py-ref.h.
16109 * python/py-value.c: Do not include py-ref.h.
16110 * python/py-varobj.c: Do not include py-ref.h.
16111 * python/py-xmethods.c: Do not include py-ref.h.
16112 * python/python.c: Do not include py-ref.h.
16113 * varobj.c: Do not include py-ref.h.
16114
16115 2019-01-22 Tom Tromey <tom@tromey.com>
16116
16117 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16118 keyword for bcache.
16119
16120 2019-01-22 Tom Tromey <tom@tromey.com>
16121
16122 * compile/compile-cplus-types.c: Remove a comment by #include.
16123
16124 2019-01-22 Tom Tromey <tom@tromey.com>
16125
16126 * compile/gcc-c-plugin.h: Include compile-internal.h.
16127
16128 2019-01-22 Tom Tromey <tom@tromey.com>
16129
16130 * stabsread.c (EXTERN): Do not define.
16131 (symnum, next_symbol_text_func, processing_gcc_compilation)
16132 (within_function, global_sym_chain, global_stabs)
16133 (previous_stab_code, this_object_header_files)
16134 (n_this_object_header_files)
16135 (n_allocated_this_object_header_files): Define.
16136 * stabsread.h (EXTERN): Never define. Use "extern".
16137
16138 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16139
16140 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16141 history_value.
16142
16143 2019-01-21 Tom Tromey <tom@tromey.com>
16144
16145 * ui-out.c: Fix includes.
16146 * tui/tui-source.c: Fix includes.
16147 * target.c: Fix includes.
16148 * remote.c: Fix includes.
16149 * regcache.c: Fix includes.
16150 * python/py-block.c: Fix includes.
16151 * printcmd.c: Fix includes.
16152 * or1k-tdep.c: Fix includes.
16153 * mi/mi-main.c: Fix includes.
16154 * m32r-tdep.c: Fix includes.
16155 * csky-tdep.c: Fix includes.
16156 * compile/compile-cplus-types.c: Fix includes.
16157 * cli/cli-interp.c: Fix includes.
16158
16159 2019-01-21 Alan Hayward <alan.hayward@arm.com>
16160
16161 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16162 for padding.
16163
16164 2019-01-16 Tom Tromey <tom@tromey.com>
16165
16166 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16167 earlier.
16168 (struct objfile) <msymbols_range>: Move from top level.
16169 <msymbols>: New method.
16170 (class objfile_msymbols): Remove.
16171 * symtab.c (default_collect_symbol_completion_matches_break_on):
16172 Update.
16173 * symmisc.c (dump_msymbols): Update.
16174 * stabsread.c (scan_file_globals): Update.
16175 * objc-lang.c (info_selectors_command, info_classes_command)
16176 (find_methods): Update.
16177 * minsyms.c (find_solib_trampoline_target): Update.
16178 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16179 * coffread.c (coff_symfile_read): Update.
16180 * ada-lang.c (ada_lookup_simple_minsym)
16181 (ada_collect_symbol_completion_matches): Update.
16182
16183 2019-01-16 Tom Tromey <tom@tromey.com>
16184
16185 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16186 type. Remove no-argument constructor.
16187 <iterator::operator++>: Simplify.
16188 <begin>: Update.
16189 <end>: Use minimal_symbol_count.
16190
16191 2019-01-16 Tom Tromey <tom@tromey.com>
16192
16193 * objfiles.h (struct objfile) <psymtabs>: New method.
16194 (class objfile_psymtabs): Remove.
16195 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16196 typedef.
16197 <range>: New method.
16198 (require_partial_symbols): Change return type.
16199 * psymtab.c (require_partial_symbols)
16200 (psym_expand_symtabs_matching): Update.
16201 * mdebugread.c (parse_partial_symbols): Update.
16202 * dbxread.c (dbx_end_psymtab): Update.
16203
16204 2019-01-15 Tom Tromey <tom@tromey.com>
16205
16206 * symtab.c (lookup_objfile_from_block)
16207 (lookup_symbol_in_objfile_symtabs)
16208 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16209 (find_line_symtab, info_sources_command)
16210 (default_collect_symbol_completion_matches_break_on)
16211 (make_source_files_completion_list): Update.
16212 * symmisc.c (print_objfile_statistics, dump_objfile)
16213 (maintenance_print_symbols, maintenance_info_symtabs)
16214 (maintenance_check_symtabs, maintenance_info_line_tables):
16215 Update.
16216 * source.c (select_source_symtab)
16217 (forget_cached_source_info_for_objfile): Update.
16218 * objfiles.h (class objfile_compunits): Remove.
16219 (struct objfile) <compunits_range>: New typedef.
16220 (compunits): New method.
16221 * objfiles.c (objfile_relocate1): Update.
16222 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16223 * maint.c (count_symtabs_and_blocks): Update.
16224 * linespec.c (iterate_over_all_matching_symtabs): Update.
16225 * cp-support.c (add_symbol_overload_list_qualified): Update.
16226 * coffread.c (coff_symtab_read): Update.
16227 * ada-lang.c (add_nonlocal_symbols)
16228 (ada_collect_symbol_completion_matches)
16229 (ada_add_global_exceptions): Update.
16230
16231 2019-01-15 Tom Tromey <tom@tromey.com>
16232
16233 * progspace.h (program_space) <objfiles_safe_range>: New
16234 typedef.
16235 <objfiles_safe>: New method.
16236 * objfiles.h (class all_objfiles_safe): Remove.
16237 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16238 * jit.c (jit_inferior_exit_hook): Update.
16239
16240 2019-01-17 Tom Tromey <tom@tromey.com>
16241
16242 * progspace.h (program_space) <objfiles_range>: New typedef.
16243 <objfiles>: New method.
16244 <objfiles_head>: Rename from objfiles.
16245 (object_files): Update.
16246 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16247 * guile/scm-pretty-print.c
16248 (ppscm_find_pretty_printer_from_objfiles): Update.
16249 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16250 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16251 Update.
16252 * python/py-progspace.c (pspy_get_objfiles): Update.
16253 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16254 Update.
16255 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16256 (objfpy_lookup_objfile_by_build_id): Update.
16257 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16258 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16259 Update.
16260 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16261 (expand_symtab_containing_pc, lookup_objfile_from_block)
16262 (lookup_static_symbol, basic_lookup_transparent_type)
16263 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16264 (find_line_symtab, info_sources_command)
16265 (default_collect_symbol_completion_matches_break_on)
16266 (make_source_files_completion_list, find_main_name): Update.
16267 * symmisc.c (print_symbol_bcache_statistics)
16268 (print_objfile_statistics, maintenance_print_symbols)
16269 (maintenance_print_msymbols, maintenance_print_objfiles)
16270 (maintenance_info_symtabs, maintenance_check_symtabs)
16271 (maintenance_expand_symtabs, maintenance_info_line_tables):
16272 Update.
16273 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16274 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16275 (map_overlay_command, unmap_overlay_command)
16276 (simple_overlay_update, expand_symtabs_matching)
16277 (map_symbol_filenames): Update.
16278 * symfile-debug.c (set_debug_symfile): Update.
16279 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16280 Update.
16281 * source.c (select_source_symtab, forget_cached_source_info):
16282 Update.
16283 * solib.c (solib_read_symbols): Update.
16284 * solib-spu.c (append_ocl_sos): Update.
16285 * psymtab.c (maintenance_print_psymbols)
16286 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16287 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16288 * printcmd.c (info_symbol_command): Update.
16289 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16290 Update.
16291 * objfiles.h (class all_objfiles): Remove.
16292 * objfiles.c (have_partial_symbols, have_full_symbols)
16293 (have_minimal_symbols, qsort_cmp, update_section_map)
16294 (shared_objfile_contains_address_p)
16295 (default_iterate_over_objfiles_in_search_order): Update.
16296 * objc-lang.c (info_selectors_command, info_classes_command)
16297 (find_methods): Update.
16298 * minsyms.c (find_solib_trampoline_target): Update.
16299 * maint.c (maintenance_info_sections)
16300 (maintenance_translate_address, count_symtabs_and_blocks):
16301 Update.
16302 * main.c (captured_main_1): Update.
16303 * linux-thread-db.c (try_thread_db_load_from_pdir)
16304 (has_libpthread): Update.
16305 * linespec.c (iterate_over_all_matching_symtabs)
16306 (search_minsyms_for_name): Update.
16307 * jit.c (jit_find_objf_with_entry_addr): Update.
16308 * hppa-tdep.c (find_unwind_entry)
16309 (hppa_lookup_stub_minimal_symbol): Update.
16310 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16311 Update.
16312 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16313 (elf_gnu_ifunc_resolve_by_got): Update.
16314 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16315 * dwarf-index-write.c (save_gdb_index_command): Update.
16316 * cp-support.c (add_symbol_overload_list_qualified): Update.
16317 * breakpoint.c (create_overlay_event_breakpoint)
16318 (create_longjmp_master_breakpoint)
16319 (create_std_terminate_master_breakpoint)
16320 (create_exception_master_breakpoint): Update.
16321 * blockframe.c (find_pc_partial_function): Update.
16322 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16323 (ada_collect_symbol_completion_matches)
16324 (ada_add_global_exceptions): Update.
16325
16326 2019-01-17 Tom Tromey <tom@tromey.com>
16327
16328 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16329 declare VEC.
16330 (solib_target_parse_libraries): Change return type.
16331 (library_list_start_segment, library_list_start_section)
16332 (library_list_end_library, library_list_start_library); Update.
16333 (solib_target_free_library_list): Remove.
16334 (solib_target_parse_libraries): Remove cleanup. Change return
16335 type.
16336 (solib_target_current_sos): Update.
16337
16338 2019-01-17 Tom Tromey <tromey@bapiya>
16339
16340 * valprint.c: Replace "the the" with "the".
16341 * symtab.c: Replace "the the" with "the".
16342 * solib.c: Replace "the the" with "the".
16343 * solib-dsbt.c: Replace "the the" with "the".
16344 * linespec.c: Replace "the the" with "the".
16345 * dwarf2loc.h: Replace "the the" with "the".
16346 * amd64-windows-tdep.c: Replace "the the" with "the".
16347 * aarch64-tdep.c: Replace "the the" with "the".
16348
16349 2019-01-16 Keith Seitz <keiths@redhat.com>
16350
16351 PR gdb/23773
16352 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16353 <builder>: Rename to ..
16354 <m_builder>: ... this and make private.
16355 (dwarf2_cu::get_builder): New method. Change all users of
16356 `builder' to use this method.
16357 (dwarf2_start_symtab): Move to ...
16358 (dwarf2_cu::start_symtab): ... here. Update all callers
16359 (setup_type_unit_groups): Move to ...
16360 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16361 callers.
16362 (dwarf2_cu::reset_builder): New method.
16363 (process_full_compunit, process_full_type_unit): Use
16364 dwarf2_cu::reset_builder.
16365 (follow_die_offset): Record the ancestor CU if it is different
16366 from the followed DIE's CU.
16367 (follow_die_sig_1): Likewise.
16368
16369 2019-01-15 Tom Tromey <tom@tromey.com>
16370
16371 * remote.c (class remote_state) <buf>: Now a char_vector.
16372 <buf_size>: Remove.
16373 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16374 parameter.
16375 (remote_target::getpkt_or_notif_sane_1)
16376 (remote_target::getpkt_sane)
16377 (remote_target::getpkt_or_notif_sane): Likewise.
16378 (class remote_target) <putpkt>: New overload.
16379 (remote_target::read_frame): Change type of "buf_p". Remove
16380 sizeof_p parameter.
16381 (packet_ok): New overload.
16382 (packet_check_result): New overload.
16383 Update all uses.
16384
16385 2019-01-14 Tom Tromey <tom@tromey.com>
16386
16387 * remote-notif.c (handle_notification, remote_notif_ack)
16388 (remote_notif_parse): Make "buf" const.
16389 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16390 const.
16391 (remote_notif_parse, remote_notif_ack, handle_notification):
16392 Likewise.
16393 * remote.c (remote_notif_stop_parse): Make "buf" const.
16394 (remote_target::remote_parse_stop_reply): Make "buf" const.
16395 (remote_notif_stop_ack): Make "buf" const.
16396
16397 2019-01-14 Tom Tromey <tom@tromey.com>
16398
16399 * remote.c (remote_console_output): Make parameter const.
16400
16401 2019-01-14 Tom Tromey <tom@tromey.com>
16402
16403 * target-debug.h (target_debug_print_signals): Constify.
16404 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16405 * procfs.c (procfs_target::pass_signals): Update.
16406 * linux-nat.c (linux_nat_target::pass_signals): Update.
16407 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16408 * target-delegates.c: Rebuild.
16409 * remote.c (remote_target::program_signals): Update.
16410 (remote_target::pass_signals): Update.
16411 * target.c (target_pass_signals): Constify argument.
16412 (target_program_signals): Likewise.
16413 * target.h (struct target_ops) <pass_signals, program_signals>:
16414 Constify argument.
16415 (target_pass_signals, target_program_signals): Constify argument.
16416
16417 2019-01-14 Tom Tromey <tom@tromey.com>
16418
16419 PR tui/28819:
16420 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16421
16422 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16423
16424 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16425 field.
16426 * rs6000-tdep.c: Include reggroups.h.
16427 (IS_V_ALIAS_PSEUDOREG): Define.
16428 (rs6000_register_name): Return names for the "vX" aliases.
16429 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16430 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16431 aliases. Call default_register_reggroup_p for all other
16432 pseudo-registers.
16433 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16434 New functions.
16435 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16436 Handle "vX" aliases.
16437 (v_alias_pseudo_register_collect): New function.
16438 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16439 (rs6000_gdbarch_init): Initialize "vX" aliases as
16440 pseudo-registers. Restore registration of
16441 rs6000_pseudo_register_reggroup_p with
16442 set_tdesc_pseudo_register_reggroup_p.
16443
16444 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16445
16446 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16447 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16448 set_gdbarch_num_pseudo_regs.
16449
16450 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16451
16452 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16453 Remove arg prefixname, add do_set and do_show.
16454 Add member functions set_list and show_list.
16455 * cli/cli-style.c (class cli_style_option): Update accordingly.
16456 (style_set_list): Move to file scope.
16457 (style_show_list): Likewise.
16458 (set_style): Call help_list.
16459 (show_style): Call cmd_show_list.
16460 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16461 Update to use the new macro.
16462
16463 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16464
16465 * ada-lang.c (_initialize_ada_language): Expand the help text
16466 for the "catch exception" command.
16467
16468 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16469
16470 * symtab.c (matching_obj_sections): Initialize obj,
16471 declare it closer to its usage.
16472
16473 2019-01-10 Tom Tromey <tom@tromey.com>
16474
16475 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16476 (basic_inf_threads_range): Remove.
16477 (inf_threads_range, inf_non_exited_threads_range)
16478 (safe_inf_threads_range): Use next_adapter.
16479
16480 2019-01-10 Keith Seitz <keiths@redhat.com>
16481
16482 PR gdb/23712
16483 PR symtab/23010
16484 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16485 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16486
16487 2019-01-10 Keith Seitz <keiths@redhat.com>
16488
16489 PR gdb/23712
16490 PR symtab/23010
16491 * dictionary.c (pending_to_vector): Remove.
16492 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16493 Remove _1 suffix, replacing functions of the same name. Update
16494 all callers.
16495 (dict_create_hashed, dict_create_hashed_expandable)
16496 (dict_create_linear, dict_create_linear_expandable, dict_free)
16497 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16498 Make functions static.
16499
16500 2019-01-10 Keith Seitz <keiths@redhat.com>
16501
16502 PR gdb/23712
16503 PR symtab/23010
16504 * dictionary.h (struct dictionary): Replace declaration with
16505 multidictionary.
16506 (dict_create_hashed, dict_create_hashed_expandable)
16507 (dict_create_linear, dict_create_linear_expandable)
16508 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16509 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16510 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16511 taking multidictionary argument.
16512 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16513 * block.h (struct block) <dict>: Change to multidictionary
16514 and rename `multidict'.
16515 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16516 symmisc.c: Update all dictionary references to multidictionary.
16517
16518 2019-01-10 Keith Seitz <keiths@redhat.com>
16519
16520 PR gdb/23712
16521 PR symtab/23010
16522 * dictionary.c: Include unordered_map.
16523 (pending_to_vector): New function.
16524 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16525 Rewrite the non-"_1" functions to take vector instead
16526 of linked list.
16527 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16528 "new" _1 versions of the same name.
16529 (multidictionary): Define.
16530 (std::hash<enum language): New definition.
16531 (collate_pending_symbols_by_language, mdict_create_hashed)
16532 (mdict_create_hashed_expandable, mdict_create_linear)
16533 (mdict_create_linear_expandable, mdict_free)
16534 (find_language_dictionary, create_new_language_dictionary)
16535 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16536 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16537 (mdict_size, mdict_empty): New functions.
16538 * dictionary.h (mdict_iterator): Define.
16539
16540 2019-01-10 Pedro Alves <palves@redhat.com>
16541
16542 * breakpoint.c (read_uploaded_action)
16543 (create_tracepoint_from_upload): Adjust to use
16544 gdb::unique_xmalloc_ptr.
16545 * ctf.c (ctf_write_uploaded_tp):
16546 (SET_ARRAY_FIELD): Use emplace_back.
16547 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16548 * tracefile-tfile.c (tfile_write_uploaded_tp):
16549 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16550 gdb::unique_xmalloc_ptr.
16551 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16552 at_string, cond_string, cmd_strings>: Replace char pointers
16553 with gdb::unique_xmalloc_ptr.
16554
16555 2019-01-10 Pedro Alves <palves@redhat.com>
16556
16557 * solib-target.c (library_list_start_library): Don't xstrdup name.
16558
16559 2019-01-10 Pedro Alves <palves@redhat.com>
16560
16561 * mdebugread.c (parse_partial_symbols): Use
16562 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16563
16564 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16565
16566 * linux-fork.c (scoped_switch_fork_info)
16567 <~scoped_switch_fork_info>: Fix incorrect variable name.
16568
16569 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16570
16571 * linux-fork.c (scoped_switch_fork_info)
16572 <scoped_switch_fork_info>: Make explicit.
16573 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16574
16575 2019-01-10 Tom Tromey <tom@tromey.com>
16576
16577 * objfiles.h (objfile::reset_psymtabs): Update.
16578 * objfiles.c (objfile::objfile): Update.
16579 * psymtab.h (psymtab_storage::obstack): Update.
16580 (psymtab_storage::m_obstack): Use gdb::optional.
16581 (class psymtab_storage): Update comment. Remove objfile
16582 parameter.
16583 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16584
16585 2019-01-10 Tom Tromey <tom@tromey.com>
16586
16587 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16588 <free_psymtabs>: Now private.
16589 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16590 (allocate_psymtab): Use new method.
16591
16592 2019-01-10 Tom Tromey <tom@tromey.com>
16593
16594 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16595 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16596 * mdebugread.c (parse_partial_symbols): Use
16597 allocate_dependencies.
16598 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16599 allocate_dependencies.
16600 (process_psymtab_comp_unit_reader)
16601 (build_type_psymtab_dependencies): Likewise.
16602 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16603
16604 2019-01-10 Tom Tromey <tom@tromey.com>
16605
16606 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16607 PSYMBOL_SET_LANGUAGE.
16608 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16609
16610 2019-01-10 Tom Tromey <tom@tromey.com>
16611
16612 * psymtab.h (psymtab_storage::obstack): New method.
16613 <m_obstack>: Rename from obstack; now private.
16614 * psymtab.c (psymtab_storage): Update.
16615 * dwarf2read.c (create_addrmap_from_index)
16616 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16617 Update.
16618
16619 2019-01-10 Tom Tromey <tom@tromey.com>
16620
16621 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16622 * objfiles.h (objfile::reset_psymtabs): New method.
16623
16624 2019-01-10 Tom Tromey <tom@tromey.com>
16625
16626 * symmisc.c (print_symbol_bcache_statistics): Update.
16627 (print_objfile_statistics): Update.
16628 * symfile.c (reread_symbols): Update.
16629 * psymtab.h (class psymtab_storage): New.
16630 * psymtab.c (psymtab_storage): New constructor.
16631 (~psymtab_storage): New destructor.
16632 (require_partial_symbols): Update.
16633 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16634 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16635 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16636 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16637 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16638 (start_psymtab_common, end_psymtab_common)
16639 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16640 (allocate_psymtab): Update.
16641 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16642 Update.
16643 (dump_psymtab_addrmap, maintenance_print_psymbols)
16644 (maintenance_check_psymtabs): Update.
16645 (class objfile_psymtabs): Move to objfiles.h.
16646 * psympriv.h (discard_psymtab): Now inline.
16647 (psymtab_discarder::psymtab_discarder): Update.
16648 (psymtab_discarder::~psymtab_discarder): Update.
16649 (ALL_OBJFILE_PSYMTABS): Rewrite.
16650 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16651 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16652 Remove fields.
16653 <partial_symtabs>: New field.
16654 (class objfile_psymtabs): Move from psymtab.h. Update.
16655 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16656 psymbol_cache.
16657 (objfile::~objfile): Don't destroy psymbol_cache.
16658 * mdebugread.c (parse_partial_symbols): Update.
16659 * dwarf2read.c (create_addrmap_from_index)
16660 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16661 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16662 (add_partial_subprogram, dwarf2_ranges_read): Update.
16663 * dwarf-index-write.c (write_address_map)
16664 (write_one_signatured_type, recursively_write_psymbols)
16665 (class debug_names, class debug_names, write_psymtabs_to_index):
16666 Update.
16667
16668 2019-01-10 Tom Tromey <tom@tromey.com>
16669
16670 * symtab.h (SYMBOL_SET_NAMES): Update.
16671 (symbol_set_names): Update.
16672 (MSYMBOL_SET_NAMES): Update.
16673 * symtab.c (symbol_set_names): Change argument to be an
16674 objfile_per_bfd_storage.
16675 * psymtab.c (add_psymbol_to_bcache): Update.
16676 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16677
16678 2019-01-10 Tom Tromey <tom@tromey.com>
16679
16680 * symtab.c (create_demangled_names_hash): Change argument to be an
16681 objfile_per_bfd_storage.
16682 (symbol_set_names): Update.
16683
16684 2019-01-10 Tom Tromey <tom@tromey.com>
16685
16686 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16687 init_psymbol_list.
16688 * psymtab.c (init_psymbol_list): Do nothing if already called.
16689 * psympriv.h (init_psymbol_list): Add comment.
16690 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16691 init_psymbol_list.
16692 * dbxread.c (dbx_symfile_read): Unconditionally call
16693 init_psymbol_list.
16694
16695 2019-01-10 Tom Tromey <tom@tromey.com>
16696
16697 * xcoffread.c (scan_xcoff_symtab): Update.
16698 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16699 "where".
16700 * mdebugread.c (parse_partial_symbols)
16701 (handle_psymbol_enumerators): Update.
16702 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16703 * dbxread.c (read_dbx_symtab): Update.
16704 * psympriv.h (psymbol_placement): New enum.
16705 (add_psymbol_to_list): Update.
16706
16707 2019-01-10 Tom Tromey <tom@tromey.com>
16708
16709 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16710 static_psymbols parameters.
16711 (scan_xcoff_symtab): Update.
16712 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16713 static_psymbols parameters.
16714 * psympriv.h (start_psymtab_common): Update.
16715 * mdebugread.c (parse_partial_symbols): Update.
16716 * dwarf2read.c (create_partial_symtab): Update.
16717 * dbxread.c (read_dbx_symtab): Update.
16718 (start_psymtab): Remove global_psymbols and static_psymbols
16719 parameters.
16720
16721 2019-01-10 Tom Tromey <tom@tromey.com>
16722
16723 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16724 * psymtab.c (allocate_psymtab): Add comment.
16725 * psympriv.h (allocate_psymtab): Add comment.
16726 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16727 initializations.
16728 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16729
16730 2019-01-10 Tom Tromey <tom@tromey.com>
16731
16732 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16733 Don't declare.
16734 * mipsread.c: Include mdebugread.h.
16735 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16736 Declare.
16737 * elfread.c: Include mdebugread.h.
16738
16739 2019-01-09 Tom Tromey <tom@tromey.com>
16740
16741 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16742 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16743 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16744 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16745 (psym_lookup_symbol, psym_find_last_source_symtab)
16746 (psym_forget_cached_source_info, psym_print_stats)
16747 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16748 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16749 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16750 (psym_find_compunit_symtab_by_address)
16751 (maintenance_print_psymbols, maintenance_info_psymtabs)
16752 (maintenance_check_psymtabs): Use ranged for.
16753 * psymtab.h (class objfile_psymtabs): New.
16754 (require_partial_symbols): Return objfile_psymtabs.
16755 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16756
16757 2019-01-09 Tom Tromey <tom@tromey.com>
16758
16759 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16760 (find_pc_mapped_section, list_overlays_command)
16761 (map_overlay_command, unmap_overlay_command)
16762 (simple_overlay_update): Use all_objfiles.
16763 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16764 * printcmd.c (info_symbol_command): Use all_objfiles.
16765 * objfiles.h (ALL_OBJSECTIONS): Remove.
16766 * maint.c (maintenance_translate_address): Use all_objfiles.
16767 * gcore.c (gcore_create_callback): Use all_objfiles.
16768 (objfile_find_memory_regions): Likewise.
16769
16770 2019-01-09 Tom Tromey <tom@tromey.com>
16771
16772 * symtab.c (find_line_symtab, info_sources_command)
16773 (make_source_files_completion_list): Use objfile_compunits.
16774 * source.c (select_source_symtab): Use objfile_compunits.
16775 * objfiles.h (struct objfile): Update comment.
16776 (ALL_OBJFILES): Remove.
16777 (ALL_FILETABS): Remove.
16778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16779 objfile_compunits.
16780
16781 2019-01-09 Tom Tromey <tom@tromey.com>
16782
16783 * symmisc.c (print_objfile_statistics, dump_objfile)
16784 (maintenance_print_symbols): Use compunit_filetabs.
16785 * source.c (forget_cached_source_info_for_objfile): Use
16786 compunit_filetabs.
16787 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16788 (ALL_FILETABS): Use compunit_filetabs.
16789 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16790 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16791
16792 2019-01-09 Tom Tromey <tom@tromey.com>
16793
16794 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16795 (compunit_filetabs): New.
16796 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16797 compunit_filetabs.
16798 (info_sources_command, make_source_files_completion_list): Remove
16799 declaration.
16800 * symmisc.c (print_objfile_statistics, dump_objfile)
16801 (maintenance_print_symbols): Remove declaration.
16802 (maintenance_info_symtabs): Use compunit_filetabs.
16803 (maintenance_info_line_tables): Likewise.
16804 * source.c (select_source_symtab): Change local variable name.
16805 (forget_cached_source_info_for_objfile): Remove declaration.
16806 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16807 * objfiles.c (objfile_relocate1): Remove declaration.
16808 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16809 declaration.
16810 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16811 * coffread.c (coff_symtab_read): Remove declaration.
16812 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16813 compunit_filetabs.
16814
16815 2019-01-09 Tom Tromey <tom@tromey.com>
16816
16817 * symtab.c (lookup_objfile_from_block)
16818 (find_pc_sect_compunit_symtab, search_symbols)
16819 (default_collect_symbol_completion_matches_break_on): Use
16820 objfile_compunits.
16821 * objfiles.h (ALL_COMPUNITS): Remove.
16822 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16823 * cp-support.c (add_symbol_overload_list_qualified): Use
16824 objfile_compunits.
16825 * ada-lang.c (ada_collect_symbol_completion_matches)
16826 (ada_add_global_exceptions): Use objfile_compunits.
16827
16828 2019-01-09 Tom Tromey <tom@tromey.com>
16829
16830 * source.c (select_source_symtab)
16831 (forget_cached_source_info_for_objfile): Remove declaration.
16832 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16833 declaration.
16834 * maint.c (count_symtabs_and_blocks): Remove declaration.
16835 * cp-support.c (add_symbol_overload_list_qualified): Remove
16836 declaration.
16837 * coffread.c (coff_symtab_read): Remove declaration.
16838 * symtab.c (lookup_symbol_in_objfile_symtabs)
16839 (basic_lookup_transparent_type_1): Use objfile_compunits.
16840 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16841 (info_sources_command, search_symbols)
16842 (default_collect_symbol_completion_matches_break_on)
16843 (make_source_files_completion_list): Remove declaration.
16844 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16845 (ada_collect_symbol_completion_matches)
16846 (ada_add_global_exceptions): Remove declaration.
16847 * linespec.c (iterate_over_all_matching_symtabs): Use
16848 objfile_compunits.
16849 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16850 (class objfile_compunits): New.
16851 (ALL_COMPUNITS): Use objfile_compunits.
16852 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16853 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16854 objfile_compunits.
16855 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16856
16857 2019-01-09 Tom Tromey <tom@tromey.com>
16858
16859 * symtab.c (search_symbols)
16860 (default_collect_symbol_completion_matches_break_on): Use
16861 objfile_msymbols.
16862 * ada-lang.c (ada_lookup_simple_minsym)
16863 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16864 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16865 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16866 objfile_msymbols.
16867 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16868 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16869 * objc-lang.c (find_methods): Use objfile_msymbols.
16870 (info_selectors_command, info_classes_command): Likewise.
16871 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16872 * objfiles.h (class objfile_msymbols): New.
16873 (ALL_OBJFILE_MSYMBOLS): Remove.
16874 (ALL_MSYMBOLS): Remove.
16875
16876 2019-01-09 Tom Tromey <tom@tromey.com>
16877
16878 * common/next-iterator.h (next_adapter): Add Iterator template
16879 parameter.
16880 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16881 (class all_objfiles_safe): New.
16882 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16883 * objfiles.c (put_objfile_before): Update comment.
16884 (add_separate_debug_objfile): Likewise.
16885 (free_all_objfiles): Use all_objfiles_safe.
16886 (objfile_purge_solibs): Likewise.
16887
16888 2019-01-09 Tom Tromey <tom@tromey.com>
16889
16890 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16891 (expand_symtab_containing_pc, lookup_static_symbol)
16892 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16893 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16894 all_objfiles.
16895 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16896 * breakpoint.c (create_overlay_event_breakpoint)
16897 (create_longjmp_master_breakpoint)
16898 (create_std_terminate_master_breakpoint)
16899 (create_exception_master_breakpoint): Use all_objfiles.
16900 * linux-thread-db.c (try_thread_db_load_from_pdir)
16901 (has_libpthread): Use all_objfiles.
16902 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16903 * linespec.c (iterate_over_all_matching_symtabs)
16904 (search_minsyms_for_name): Use all_objfiles.
16905 * maint.c (maintenance_info_sections): Use all_objfiles.
16906 * main.c (captured_main_1): Use all_objfiles.
16907 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16908 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16909 * guile/scm-pretty-print.c
16910 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16911 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16912 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16913 (maintenance_print_msymbols): Use all_objfiles.
16914 * source.c (select_source_symtab): Use all_objfiles.
16915 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16916 * symfile.c (remove_symbol_file_command)
16917 (expand_symtabs_matching, map_symbol_filenames): Use
16918 all_objfiles.
16919 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16920 all_objfiles.
16921 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16922 * objc-lang.c (find_methods): Use all_objfiles.
16923 * objfiles.c (have_partial_symbols, have_full_symbols)
16924 (have_minimal_symbols, qsort_cmp)
16925 (default_iterate_over_objfiles_in_search_order): Use
16926 all_objfiles.
16927 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16928 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16929 (maintenance_check_psymtabs): Use all_objfiles.
16930 (ALL_PSYMTABS): Remove.
16931 * compile/compile-object-run.c (do_module_cleanup): Use
16932 all_objfiles.
16933 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16934 * cp-support.c (add_symbol_overload_list_qualified): Use
16935 all_objfiles.
16936 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16937 Use all_objfiles.
16938 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16939 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16940 all_objfiles.
16941 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16942 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16943 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16944 Uses all_objfiles.
16945 * solib.c (solib_read_symbols): Use all_objfiles
16946
16947 2019-01-09 Tom Tromey <tom@tromey.com>
16948
16949 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16950 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16951 all_objfiles.
16952 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16953 * symmisc.c (print_symbol_bcache_statistics)
16954 (print_objfile_statistics, maintenance_print_objfiles)
16955 (maintenance_info_symtabs, maintenance_check_symtabs)
16956 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16957 all_objfiles.
16958 * source.c (forget_cached_source_info): Use all_objfiles.
16959 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16960 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16961 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16962 * objfiles.c (update_section_map): Use all_objfiles.
16963 (shared_objfile_contains_address_p): Likewise.
16964 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16965 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16966
16967 2019-01-09 Tom Tromey <tom@tromey.com>
16968
16969 * common/next-iterator.h: New file.
16970 * objfiles.h (class all_objfiles): New.
16971 (struct objfile_iterator): New.
16972
16973 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16974
16975 * NEWS: Move the description of the changed "frame", "select-frame",
16976 and "info frame" commands to the Changed commands section.
16977
16978 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16979
16980 * gdbtypes.c (check_stub_method_group): Remove handling of old
16981 mangling schemes.
16982 * linespec.c (find_methods): Likewise.
16983 * stabsread.c (read_member_functions): Likewise.
16984 * valops.c (search_struct_method): Likewise.
16985 (value_struct_elt_for_reference): Likewise.
16986 * NEWS: Mention this change.
16987
16988 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16989
16990 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16991 print_source_lines.
16992 * source.c (print_source_lines_base): Update line number check.
16993 (print_source_lines): New function.
16994 (source_lines_range::source_lines_range): New function.
16995 * source.h (class source_lines_range): New class.
16996 (print_source_lines): New declaration.
16997
16998 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16999
17000 * linespec.c (linespec_state_destructor): Free self->canonical_names.
17001
17002 2019-01-08 Tom Tromey <tom@tromey.com>
17003 Simon Marchi <simon.marchi@ericsson.com>
17004
17005 PR gdb/24060
17006 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
17007 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
17008 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17009 * f-exp.y (DOLLAR_VARIABLE): Likewise.
17010 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
17011 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17012
17013 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17014
17015 * source.c (select_source_symtab): Move header comment to
17016 declaration in source.h.
17017 (forget_cached_source_info_for_objfile): Likewise.
17018 (forget_cached_source_info): Likewise.
17019 (identify_source_line): Likewise.
17020 * source.h (identify_source_line): Move declaration from symtab.h
17021 and add comment from source.c
17022 (print_source_lines): Likewise.
17023 (forget_cached_source_info_for_objfile): Likewise.
17024 (forget_cached_source_info): Likewise.
17025 (select_source_symtab): Likewise.
17026 (enum print_source_lines_flag): Move definition from symtab.h.
17027 * symtab.h (identify_source_line): Move declaration to source.h.
17028 (print_source_lines): Likewise.
17029 (forget_cached_source_info_for_objfile): Likewise.
17030 (forget_cached_source_info): Likewise.
17031 (select_source_symtab): Likewise.
17032 (enum print_source_lines_flag): Move definition to source.h.
17033 * tui/tui-hooks.c: Add 'source.h' include.
17034
17035 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17036
17037 * source.c (print_source_lines_base): Handle requests to print
17038 reverse line number sequences, and guard against empty lines
17039 string.
17040
17041 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17042
17043 * source.c (print_source_lines_base): Fix skip of '\r' if next
17044 character is '\n'.
17045
17046 2019-01-06 Tom Tromey <tom@tromey.com>
17047
17048 * c-exp.y (struct c_parse_state) <macro_original_text,
17049 expansion_obstack>: New member.
17050 (macro_original_text, expansion_obstack): Remove globals.
17051 (scan_macro_expansion, scanning_macro_expansion)
17052 (finished_macro_expansion): Update.
17053 (scan_macro_cleanup): Remove.
17054 (yylex, c_parse): Update.
17055
17056 2019-01-06 Tom Tromey <tom@tromey.com>
17057
17058 * c-exp.y (struct c_parse_state) <strings>: New member.
17059 (operator_stoken): Update.
17060
17061 2019-01-06 Tom Tromey <tom@tromey.com>
17062
17063 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
17064 (union type_stack_elt) <typelist_val>: Now a pointer to
17065 std::vector.
17066 (type_stack_cleanup): Don't declare.
17067 (push_typelist): Update.
17068 * parse.c (pop_typelist): Return a std::vector.
17069 (push_typelist): Take a std::vector.
17070 (follow_types): Update. Do not free args.
17071 (type_stack_cleanup): Remove.
17072 * c-exp.y (struct c_parse_state): New.
17073 (cpstate): New global.
17074 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
17075 (nonempty_typelist): Update.
17076 (func_mod): Create a new vector.
17077 (c_parse): Create a c_parse_state.
17078 (check_parameter_typelist): Do not delete params.
17079 (function_method): Update. Do not delete type_list.
17080
17081 2019-01-06 Tom Tromey <tom@tromey.com>
17082
17083 PR gdb/28155:
17084 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
17085 check_typedef.
17086 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
17087 (print_return_value): Likewise.
17088
17089 2019-01-05 Tom Tromey <tom@tromey.com>
17090
17091 * contrib/cleanup_check.py: Remove.
17092 * contrib/gcc-with-excheck: Remove.
17093 * contrib/exsummary.py: Remove.
17094 * contrib/excheck.py: Remove.
17095
17096 2019-01-05 Joel Brobecker <brobecker@adacore.com>
17097
17098 * thread.c (delete_thread_1): Add gdb_assert that THR is not
17099 NULL. Initialize tpprev to NULL instead of assigning it
17100 to NULL on the next statement.
17101 * windows-nat.c (windows_delete_thread): Remove check for
17102 main_thread_id before printing thread exit notifications.
17103 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
17104 Remove thread ID check against main_thread_id.
17105 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
17106 windows_delete_thread.
17107 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17108
17109 2019-01-04 Tom Tromey <tom@tromey.com>
17110
17111 * compile/compile.c (_initialize_compile): Use upper case for
17112 metasyntactic variables.
17113 * symmisc.c (_initialize_symmisc): Use upper case for
17114 metasyntactic variables.
17115 * psymtab.c (_initialize_psymtab): Use upper case for
17116 metasyntactic variables.
17117 * demangle.c (demangle_command): Use upper case for metasyntactic
17118 variables.
17119 (_initialize_demangler): Likewise.
17120 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17121 variables.
17122
17123 2019-01-03 Tom Tromey <tom@tromey.com>
17124
17125 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17126
17127 2019-01-03 Tom Tromey <tom@tromey.com>
17128
17129 * python/py-symtab.c (salpy_str): Update.
17130 (struct salpy_sal_object) <symtab>: Now a PyObject.
17131 (salpy_dealloc): Update.
17132 (del_objfile_sal): Use gdbpy_ref.
17133
17134 2019-01-03 Tom Tromey <tom@tromey.com>
17135
17136 * python/py-type.c (convert_field): Use new_reference. Return
17137 gdbpy_ref.
17138 (make_fielditem): Return gdbpy_ref.
17139 (typy_fields): Update.
17140 (typy_getitem): Update.
17141 (field_name): Return gdbpy_ref. Use new_reference.
17142 (typy_iterator_iternext): Update.
17143
17144 2019-01-03 Tom Tromey <tom@tromey.com>
17145
17146 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17147
17148 2019-01-03 Tom Tromey <tom@tromey.com>
17149
17150 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17151 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17152 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17153 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17154 (pspy_set_type_printers): Likewise.
17155 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17156 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17157 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17158 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17159 (objfpy_set_type_printers): Likewise.
17160
17161 2019-01-03 Tom Tromey <tom@tromey.com>
17162
17163 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17164 (gdbpy_print_stack): Use gdbpy_err_fetch.
17165 * python/python-internal.h (class gdbpy_err_fetch): New class.
17166 (class gdbpy_enter) <m_error_type, m_error_value,
17167 m_error_traceback>: Remove.
17168 <m_error>: New member.
17169 (gdbpy_exception_to_string): Don't declare.
17170 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17171 * python/py-value.c (convert_value_from_python): Use
17172 gdbpy_err_fetch.
17173 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17174 gdbpy_exception_to_string.
17175 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17176 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17177 gdbpy_err_fetch.
17178
17179 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17180
17181 * linux-nat.c (delete_lwp_cleanup): Delete.
17182 (struct lwp_deleter): New struct.
17183 (lwp_info_up): New typedef.
17184 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17185 lwp_info_up.
17186
17187 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17188
17189 * linux-fork.c (class scoped_switch_fork_info): New class.
17190 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17191
17192 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17193
17194 * valops.c (find_overload_match): Remove use of null_cleanup, and
17195 calls to do_cleanups.
17196
17197 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17198
17199 * compile/compile-cplus-types.c
17200 (compile_cplus_instance::decl_name): Handle changes to
17201 cp_func_name.
17202 * cp-support.c (cp_func_name): Update header comment, update
17203 return type.
17204 * cp-support.h (cp_func_name): Update return type in declaration.
17205 * valops.c (find_overload_match): Move temp_func local to top
17206 level of function and change its type. Use temp_func to hold and
17207 delete temporary string obtained from cp_func_name.
17208
17209 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17210
17211 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17212 gdb::char_vector, remove cleanup, and update uses of `msg`.
17213
17214 2019-01-03 Jim Wilson <jimw@sifive.com>
17215
17216 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17217
17218 2019-01-02 Tom Tromey <tom@tromey.com>
17219
17220 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17221 (tdesc_parse_xml): Remove cleanups.
17222 * target-descriptions.h (make_cleanup_free_target_description):
17223 Don't declare.
17224 (target_desc_deleter): New struct.
17225 (target_desc_up): New typedef.
17226 * target-descriptions.c (target_desc_deleter::operator()): Rename
17227 from free_target_description.
17228 (make_cleanup_free_target_description): Remove.
17229
17230 2019-01-02 Tom Tromey <tom@tromey.com>
17231
17232 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17233 constructor, destructor.
17234 (linespec_parser): Remove typedef.
17235 (~linespec_parser): Rename from linespec_parser_delete.
17236 (linespec_lex_to_end, linespec_complete_label)
17237 (linespec_complete): Update.
17238 (decode_line_full): Remove cleanups.
17239 (decode_line_1): Update.
17240
17241 2019-01-02 Tom Tromey <tom@tromey.com>
17242
17243 * python/python-internal.h (inferior_to_inferior_object): Change
17244 return type.
17245 * python/py-exitedevent.c (create_exited_event_object): Update.
17246 * python/py-inferior.c (inferior_to_inferior_object): Return
17247 gdbpy_ref.
17248 (python_new_inferior, python_inferior_deleted)
17249 (thread_to_thread_object, delete_thread_object)
17250 (build_inferior_list, gdbpy_selected_inferior): Update.
17251 * python/py-infthread.c (create_thread_object): Update. Also fail
17252 if inferior_to_inferior_object fails.
17253
17254 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17255
17256 * inferior.h (class inferior) <displaced_step_state>: New field.
17257 * infrun.h (struct displaced_step_state): Move here from
17258 infrun.c. Initialize fields, add constructor.
17259 <inf>: Remove field.
17260 <reset>: New method.
17261 * infrun.c (struct displaced_step_inferior_state): Move to
17262 infrun.h.
17263 (displaced_step_inferior_states): Remove.
17264 (get_displaced_stepping_state): Adust.
17265 (displaced_step_in_progress_any_inferior): Adjust.
17266 (displaced_step_in_progress_thread): Adjust.
17267 (displaced_step_in_progress): Adjust.
17268 (add_displaced_stepping_state): Remove.
17269 (get_displaced_step_closure_by_addr): Adjust.
17270 (remove_displaced_stepping_state): Remove.
17271 (infrun_inferior_exit): Call displaced_step_state.reset.
17272 (use_displaced_stepping): Don't check for NULL.
17273 (displaced_step_prepare_throw): Call
17274 get_displaced_stepping_state.
17275 (displaced_step_fixup): Don't check for NULL.
17276 (prepare_for_detach): Don't check for NULL.
17277
17278 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17279
17280 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17281 in case of call that did not complete.
17282
17283 2019-01-02 Andrey Utkin <autkin@undo.io>
17284
17285 * symfile.c (find_separate_debug_file): Fix search of debug files for
17286 remote debuggee.
17287
17288 2019-01-02 Tom Tromey <tom@tromey.com>
17289
17290 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17291 indentation.
17292 * python/py-frame.c (frapy_older): Remove cast.
17293 (frapy_newer): Likewise.
17294 * python/py-breakpoint.c (local_setattro): Remove cast.
17295 * python/py-arch.c (archpy_name): Remove local variable.
17296 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17297
17298 2019-01-02 Joel Brobecker <brobecker@adacore.com>
17299
17300 * unittests/basic_string_view/element_access/char/empty.cc:
17301 Fix year range in copyright header.
17302
17303 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17304
17305 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17306 Delete.
17307 <operator==>: Update with for removed field.
17308 <hash>: Likewise.
17309 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17310 <isa_features>: ...this.
17311 <abi_features>: New field.
17312 (riscv_isa_flen): Update comment.
17313 (riscv_abi_xlen): New declaration.
17314 (riscv_abi_flen): New declaration.
17315 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17316 isa_features.
17317 (riscv_abi_xlen): New function.
17318 (riscv_isa_flen): Update to get answer from isa_features.
17319 (riscv_abi_flen): New function.
17320 (riscv_has_fp_abi): Update to get answer from abi_features.
17321 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17322 xlen and flen.
17323 (riscv_call_info) <xlen, flen>: Update comment.
17324 (riscv_call_arg_struct): Remove invalid assertions
17325 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17326 is removed.
17327 (riscv_gdbarch_init): Gather isa features and abi features
17328 separately, ensure both match on the gdbarch when reusing an old
17329 gdbarch. Relax an error check to allow 32-bit abi float to run on
17330 a target with 64-bit float hardware.
17331
17332 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17333
17334 * source.c (search_command_helper): Stop reverse search
17335 when line 1 has been searched.
17336
17337 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17338
17339 * record-full.c (record_full_base_target::close): Rewrite
17340 record_full_core_buf_list free logic.
17341
17342 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17343
17344 * break-catch-syscall.c (print_one_catch_syscall): xfree
17345 the last text.
17346
17347 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17348
17349 * top.c (print_gdb_version): Update Copyright year in version
17350 message.
17351
17352 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17353
17354 Update copyright year range in all GDB files.
17355
17356 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17357
17358 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17359
17360 For older changes see ChangeLog-2018.
17361 \f
17362 Local Variables:
17363 mode: change-log
17364 left-margin: 8
17365 fill-column: 74
17366 version-control: never
17367 coding: utf-8
17368 End:
17369
This page took 0.504367 seconds and 4 git commands to generate.